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

Subversion Repositories openrisc

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

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 538 julius
# Generated by GNU Autoconf 2.64 for or1ksim-testsuite 2011-04-28.
4 90 jeremybenn
#
5
# Report bugs to .
6
#
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 538 julius
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9
# Foundation, Inc.
10 346 jeremybenn
#
11 90 jeremybenn
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13 346 jeremybenn
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
16 90 jeremybenn
 
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19 346 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 90 jeremybenn
  emulate sh
21
  NULLCMD=:
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
  # is contrary to our usage.  Disable this feature.
24
  alias -g '${1+"$@"}'='"$@"'
25
  setopt NO_GLOB_SUBST
26
else
27 346 jeremybenn
  case `(set -o) 2>/dev/null` in #(
28
  *posix*) :
29
    set -o posix ;; #(
30
  *) :
31
     ;;
32 90 jeremybenn
esac
33
fi
34
 
35
 
36
as_nl='
37
'
38
export as_nl
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 346 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47
  as_echo='print -r --'
48
  as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 90 jeremybenn
  as_echo='printf %s\n'
51
  as_echo_n='printf %s'
52
else
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
    as_echo_n='/usr/ucb/echo -n'
56
  else
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
    as_echo_n_body='eval
59
      arg=$1;
60 346 jeremybenn
      case $arg in #(
61 90 jeremybenn
      *"$as_nl"*)
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
      esac;
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
    '
67
    export as_echo_n_body
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
69
  fi
70
  export as_echo_body
71
  as_echo='sh -c $as_echo_body as_echo'
72
fi
73
 
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
76
  PATH_SEPARATOR=:
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79
      PATH_SEPARATOR=';'
80
  }
81
fi
82
 
83
 
84
# IFS
85
# We need space, tab and new line, in precisely that order.  Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
89
IFS=" ""        $as_nl"
90
 
91
# Find who we are.  Look in the path if we contain no directory separator.
92 346 jeremybenn
case $0 in #((
93 90 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
94
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95
for as_dir in $PATH
96
do
97
  IFS=$as_save_IFS
98
  test -z "$as_dir" && as_dir=.
99 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100
  done
101 90 jeremybenn
IFS=$as_save_IFS
102
 
103
     ;;
104
esac
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
108
  as_myself=$0
109
fi
110
if test ! -f "$as_myself"; then
111
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 346 jeremybenn
  exit 1
113 90 jeremybenn
fi
114
 
115 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there.  '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 90 jeremybenn
done
123
PS1='$ '
124
PS2='> '
125
PS4='+ '
126
 
127
# NLS nuisances.
128
LC_ALL=C
129
export LC_ALL
130
LANGUAGE=C
131
export LANGUAGE
132
 
133
# CDPATH.
134 346 jeremybenn
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 90 jeremybenn
 
136
if test "x$CONFIG_SHELL" = x; then
137 346 jeremybenn
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138
  emulate sh
139
  NULLCMD=:
140
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
  # is contrary to our usage.  Disable this feature.
142
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143
  setopt NO_GLOB_SUBST
144 90 jeremybenn
else
145 346 jeremybenn
  case \`(set -o) 2>/dev/null\` in #(
146
  *posix*) :
147
    set -o posix ;; #(
148
  *) :
149
     ;;
150
esac
151 90 jeremybenn
fi
152 346 jeremybenn
"
153
  as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
158 90 jeremybenn
 
159
exitcode=0
160 346 jeremybenn
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 90 jeremybenn
 
166
else
167 346 jeremybenn
  exitcode=1; echo positional parameters were not saved.
168 90 jeremybenn
fi
169 346 jeremybenn
test x\$exitcode = x0 || exit 1"
170
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
  if (eval "$as_required") 2>/dev/null; then :
176
  as_have_required=yes
177 90 jeremybenn
else
178 346 jeremybenn
  as_have_required=no
179 90 jeremybenn
fi
180 346 jeremybenn
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 90 jeremybenn
 
182
else
183 346 jeremybenn
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184
as_found=false
185 90 jeremybenn
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186
do
187
  IFS=$as_save_IFS
188
  test -z "$as_dir" && as_dir=.
189 346 jeremybenn
  as_found=:
190
  case $as_dir in #(
191 90 jeremybenn
         /*)
192
           for as_base in sh bash ksh sh5; do
193 346 jeremybenn
             # Try only shells that exist, to save several forks.
194
             as_shell=$as_dir/$as_base
195
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
  CONFIG_SHELL=$as_shell as_have_required=yes
198
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
  break 2
200
fi
201
fi
202 90 jeremybenn
           done;;
203
       esac
204 346 jeremybenn
  as_found=false
205 90 jeremybenn
done
206 346 jeremybenn
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
  CONFIG_SHELL=$SHELL as_have_required=yes
209
fi; }
210 90 jeremybenn
IFS=$as_save_IFS
211
 
212
 
213 346 jeremybenn
      if test "x$CONFIG_SHELL" != x; then :
214
  # We cannot yet assume a decent shell, so we have to provide a
215
        # neutralization value for shells without unset; and this also
216
        # works around shells that cannot unset nonexistent variables.
217
        BASH_ENV=/dev/null
218
        ENV=/dev/null
219
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220
        export CONFIG_SHELL
221
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 90 jeremybenn
fi
223
 
224 346 jeremybenn
    if test x$as_have_required = xno; then :
225
  $as_echo "$0: This script requires a shell more modern than all"
226
  $as_echo "$0: the shells that I found on your system."
227
  if test x${ZSH_VERSION+set} = xset ; then
228
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230
  else
231
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
232
$0: openrisc@opencores.org about your system, including any
233
$0: error possibly output before this message. Then install
234
$0: a modern shell, or manually run the script under such a
235
$0: shell if you do have one."
236
  fi
237
  exit 1
238 90 jeremybenn
fi
239
fi
240
fi
241 346 jeremybenn
SHELL=${CONFIG_SHELL-/bin/sh}
242
export SHELL
243
# Unset more variables known to interfere with behavior of common tools.
244
CLICOLOR_FORCE= GREP_OPTIONS=
245
unset CLICOLOR_FORCE GREP_OPTIONS
246 90 jeremybenn
 
247 346 jeremybenn
## --------------------- ##
248
## M4sh Shell Functions. ##
249
## --------------------- ##
250
# as_fn_unset VAR
251
# ---------------
252
# Portably unset VAR.
253
as_fn_unset ()
254
{
255
  { eval $1=; unset $1;}
256
}
257
as_unset=as_fn_unset
258 90 jeremybenn
 
259 346 jeremybenn
# as_fn_set_status STATUS
260
# -----------------------
261
# Set $? to STATUS, without forking.
262
as_fn_set_status ()
263
{
264
  return $1
265
} # as_fn_set_status
266 90 jeremybenn
 
267 346 jeremybenn
# as_fn_exit STATUS
268
# -----------------
269
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270
as_fn_exit ()
271
{
272
  set +e
273
  as_fn_set_status $1
274
  exit $1
275
} # as_fn_exit
276 90 jeremybenn
 
277 346 jeremybenn
# as_fn_mkdir_p
278
# -------------
279
# Create "$as_dir" as a directory, including parents if necessary.
280
as_fn_mkdir_p ()
281
{
282 90 jeremybenn
 
283 346 jeremybenn
  case $as_dir in #(
284
  -*) as_dir=./$as_dir;;
285
  esac
286
  test -d "$as_dir" || eval $as_mkdir_p || {
287
    as_dirs=
288
    while :; do
289
      case $as_dir in #(
290
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291
      *) as_qdir=$as_dir;;
292
      esac
293
      as_dirs="'$as_qdir' $as_dirs"
294
      as_dir=`$as_dirname -- "$as_dir" ||
295
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296
         X"$as_dir" : 'X\(//\)[^/]' \| \
297
         X"$as_dir" : 'X\(//\)$' \| \
298
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299
$as_echo X"$as_dir" |
300
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301
            s//\1/
302
            q
303
          }
304
          /^X\(\/\/\)[^/].*/{
305
            s//\1/
306
            q
307
          }
308
          /^X\(\/\/\)$/{
309
            s//\1/
310
            q
311
          }
312
          /^X\(\/\).*/{
313
            s//\1/
314
            q
315
          }
316
          s/.*/./; q'`
317
      test -d "$as_dir" && break
318
    done
319
    test -z "$as_dirs" || eval "mkdir $as_dirs"
320
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 90 jeremybenn
 
322
 
323 346 jeremybenn
} # as_fn_mkdir_p
324
# as_fn_append VAR VALUE
325
# ----------------------
326
# Append the text in VALUE to the end of the definition contained in VAR. Take
327
# advantage of any shell optimizations that allow amortized linear growth over
328
# repeated appends, instead of the typical quadratic growth present in naive
329
# implementations.
330
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331
  eval 'as_fn_append ()
332
  {
333
    eval $1+=\$2
334
  }'
335
else
336
  as_fn_append ()
337
  {
338
    eval $1=\$$1\$2
339
  }
340
fi # as_fn_append
341 90 jeremybenn
 
342 346 jeremybenn
# as_fn_arith ARG...
343
# ------------------
344
# Perform arithmetic evaluation on the ARGs, and store the result in the
345
# global $as_val. Take advantage of shells that can avoid forks. The arguments
346
# must be portable across $(()) and expr.
347
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348
  eval 'as_fn_arith ()
349
  {
350
    as_val=$(( $* ))
351
  }'
352
else
353
  as_fn_arith ()
354
  {
355
    as_val=`expr "$@" || test $? -eq 1`
356
  }
357
fi # as_fn_arith
358 90 jeremybenn
 
359
 
360 346 jeremybenn
# as_fn_error ERROR [LINENO LOG_FD]
361
# ---------------------------------
362
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364
# script with status $?, using 1 if that was 0.
365
as_fn_error ()
366
{
367
  as_status=$?; test $as_status -eq 0 && as_status=1
368
  if test "$3"; then
369
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371
  fi
372
  $as_echo "$as_me: error: $1" >&2
373
  as_fn_exit $as_status
374
} # as_fn_error
375 90 jeremybenn
 
376 346 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
377
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
378
  as_expr=expr
379 90 jeremybenn
else
380 346 jeremybenn
  as_expr=false
381 90 jeremybenn
fi
382
 
383 346 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384
  as_basename=basename
385 90 jeremybenn
else
386 346 jeremybenn
  as_basename=false
387 90 jeremybenn
fi
388
 
389 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390
  as_dirname=dirname
391 90 jeremybenn
else
392 346 jeremybenn
  as_dirname=false
393 90 jeremybenn
fi
394
 
395 346 jeremybenn
as_me=`$as_basename -- "$0" ||
396
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397
         X"$0" : 'X\(//\)$' \| \
398
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399
$as_echo X/"$0" |
400
    sed '/^.*\/\([^/][^/]*\)\/*$/{
401
            s//\1/
402
            q
403
          }
404
          /^X\/\(\/\/\)$/{
405
            s//\1/
406
            q
407
          }
408
          /^X\/\(\/\).*/{
409
            s//\1/
410
            q
411
          }
412
          s/.*/./; q'`
413 90 jeremybenn
 
414 346 jeremybenn
# Avoid depending upon Character Ranges.
415
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418
as_cr_digits='0123456789'
419
as_cr_alnum=$as_cr_Letters$as_cr_digits
420 90 jeremybenn
 
421
 
422 346 jeremybenn
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
423
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
424
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427 90 jeremybenn
  sed -n '
428
    p
429
    /[$]LINENO/=
430
  ' <$as_myself |
431
    sed '
432
      s/[$]LINENO.*/&-/
433
      t lineno
434
      b
435
      :lineno
436
      N
437
      :loop
438
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439
      t loop
440
      s/-\n.*//
441
    ' >$as_me.lineno &&
442
  chmod +x "$as_me.lineno" ||
443 346 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 90 jeremybenn
 
445
  # Don't try to exec as it changes $[0], causing all sort of problems
446
  # (the dirname of $[0] is not the place where we might find the
447
  # original and so on.  Autoconf is especially sensitive to this).
448
  . "./$as_me.lineno"
449
  # Exit status is that of the last command.
450
  exit
451
}
452
 
453
ECHO_C= ECHO_N= ECHO_T=
454 346 jeremybenn
case `echo -n x` in #(((((
455 90 jeremybenn
-n*)
456 346 jeremybenn
  case `echo 'xy\c'` in
457 90 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
458 346 jeremybenn
  xy)  ECHO_C='\c';;
459
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460
       ECHO_T=' ';;
461 90 jeremybenn
  esac;;
462
*)
463
  ECHO_N='-n';;
464
esac
465
 
466
rm -f conf$$ conf$$.exe conf$$.file
467
if test -d conf$$.dir; then
468
  rm -f conf$$.dir/conf$$.file
469
else
470
  rm -f conf$$.dir
471
  mkdir conf$$.dir 2>/dev/null
472
fi
473
if (echo >conf$$.file) 2>/dev/null; then
474
  if ln -s conf$$.file conf$$ 2>/dev/null; then
475
    as_ln_s='ln -s'
476
    # ... but there are two gotchas:
477
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479
    # In both cases, we have to default to `cp -p'.
480
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481
      as_ln_s='cp -p'
482
  elif ln conf$$.file conf$$ 2>/dev/null; then
483
    as_ln_s=ln
484
  else
485
    as_ln_s='cp -p'
486
  fi
487
else
488
  as_ln_s='cp -p'
489
fi
490
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491
rmdir conf$$.dir 2>/dev/null
492
 
493
if mkdir -p . 2>/dev/null; then
494 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
495 90 jeremybenn
else
496
  test -d ./-p && rmdir ./-p
497
  as_mkdir_p=false
498
fi
499
 
500
if test -x / >/dev/null 2>&1; then
501
  as_test_x='test -x'
502
else
503
  if ls -dL / >/dev/null 2>&1; then
504
    as_ls_L_option=L
505
  else
506
    as_ls_L_option=
507
  fi
508
  as_test_x='
509
    eval sh -c '\''
510
      if test -d "$1"; then
511
        test -d "$1/.";
512
      else
513 346 jeremybenn
        case $1 in #(
514 90 jeremybenn
        -*)set "./$1";;
515
        esac;
516 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 90 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
518
    '\'' sh
519
  '
520
fi
521
as_executable_p=$as_test_x
522
 
523
# Sed expression to map a string onto a valid CPP name.
524
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
 
526
# Sed expression to map a string onto a valid variable name.
527
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
 
529
 
530
 
531
# Check that we are running under the correct shell.
532
SHELL=${CONFIG_SHELL-/bin/sh}
533
 
534
case X$lt_ECHO in
535
X*--fallback-echo)
536
  # Remove one level of quotation (which was required for Make).
537
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538
  ;;
539
esac
540
 
541
ECHO=${lt_ECHO-echo}
542
if test "X$1" = X--no-reexec; then
543
  # Discard the --no-reexec flag, and continue.
544
  shift
545
elif test "X$1" = X--fallback-echo; then
546
  # Avoid inline document here, it may be left over
547
  :
548
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549
  # Yippee, $ECHO works!
550
  :
551
else
552
  # Restart under the correct shell.
553
  exec $SHELL "$0" --no-reexec ${1+"$@"}
554
fi
555
 
556
if test "X$1" = X--fallback-echo; then
557
  # used as fallback echo
558
  shift
559
  cat <<_LT_EOF
560
$*
561
_LT_EOF
562
  exit 0
563
fi
564
 
565
# The HP-UX ksh and POSIX shell print the target directory to stdout
566
# if CDPATH is set.
567
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
 
569
if test -z "$lt_ECHO"; then
570
  if test "X${echo_test_string+set}" != Xset; then
571
    # find a string as large as possible, as long as the shell can cope with it
572
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576
      then
577
        break
578
      fi
579
    done
580
  fi
581
 
582
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584
     test "X$echo_testing_string" = "X$echo_test_string"; then
585
    :
586
  else
587
    # The Solaris, AIX, and Digital Unix default echo programs unquote
588
    # backslashes.  This makes it impossible to quote backslashes using
589
    #   echo "$something" | sed 's/\\/\\\\/g'
590
    #
591
    # So, first we look for a working echo in the user's PATH.
592
 
593
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594
    for dir in $PATH /usr/ucb; do
595
      IFS="$lt_save_ifs"
596
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599
         test "X$echo_testing_string" = "X$echo_test_string"; then
600
        ECHO="$dir/echo"
601
        break
602
      fi
603
    done
604
    IFS="$lt_save_ifs"
605
 
606
    if test "X$ECHO" = Xecho; then
607
      # We didn't find a better echo, so look for alternatives.
608
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610
         test "X$echo_testing_string" = "X$echo_test_string"; then
611
        # This shell has a builtin print -r that does the trick.
612
        ECHO='print -r'
613
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614
           test "X$CONFIG_SHELL" != X/bin/ksh; then
615
        # If we have ksh, try running configure again with it.
616
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617
        export ORIGINAL_CONFIG_SHELL
618
        CONFIG_SHELL=/bin/ksh
619
        export CONFIG_SHELL
620
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621
      else
622
        # Try using printf.
623
        ECHO='printf %s\n'
624
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626
           test "X$echo_testing_string" = "X$echo_test_string"; then
627
          # Cool, printf works
628
          :
629
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630
             test "X$echo_testing_string" = 'X\t' &&
631
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632
             test "X$echo_testing_string" = "X$echo_test_string"; then
633
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634
          export CONFIG_SHELL
635
          SHELL="$CONFIG_SHELL"
636
          export SHELL
637
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
638
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639
             test "X$echo_testing_string" = 'X\t' &&
640
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641
             test "X$echo_testing_string" = "X$echo_test_string"; then
642
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
643
        else
644
          # maybe with a smaller string...
645
          prev=:
646
 
647
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649
            then
650
              break
651
            fi
652
            prev="$cmd"
653
          done
654
 
655
          if test "$prev" != 'sed 50q "$0"'; then
656
            echo_test_string=`eval $prev`
657
            export echo_test_string
658
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659
          else
660
            # Oops.  We lost completely, so just stick with echo.
661
            ECHO=echo
662
          fi
663
        fi
664
      fi
665
    fi
666
  fi
667
fi
668
 
669
# Copy echo and quote the copy suitably for passing to libtool from
670
# the Makefile, instead of quoting the original, which is used later.
671
lt_ECHO=$ECHO
672
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674
fi
675
 
676
 
677
 
678
 
679 538 julius
exec 7<&0 &1
680 90 jeremybenn
 
681
# Name of the host.
682
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683
# so uname gets run too.
684
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
 
686
#
687
# Initializations.
688
#
689
ac_default_prefix=/usr/local
690
ac_clean_files=
691
ac_config_libobj_dir=.
692
LIBOBJS=
693
cross_compiling=no
694
subdirs=
695
MFLAGS=
696
MAKEFLAGS=
697
 
698
# Identity of this package.
699
PACKAGE_NAME='or1ksim-testsuite'
700
PACKAGE_TARNAME='or1ksim-testsuite'
701 532 jeremybenn
PACKAGE_VERSION='2011-04-28'
702
PACKAGE_STRING='or1ksim-testsuite 2011-04-28'
703 90 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
704 346 jeremybenn
PACKAGE_URL=''
705 90 jeremybenn
 
706
# Factoring default headers for most tests.
707
ac_includes_default="\
708
#include 
709
#ifdef HAVE_SYS_TYPES_H
710
# include 
711
#endif
712
#ifdef HAVE_SYS_STAT_H
713
# include 
714
#endif
715
#ifdef STDC_HEADERS
716
# include 
717
# include 
718
#else
719
# ifdef HAVE_STDLIB_H
720
#  include 
721
# endif
722
#endif
723
#ifdef HAVE_STRING_H
724
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725
#  include 
726
# endif
727
# include 
728
#endif
729
#ifdef HAVE_STRINGS_H
730
# include 
731
#endif
732
#ifdef HAVE_INTTYPES_H
733
# include 
734
#endif
735
#ifdef HAVE_STDINT_H
736
# include 
737
#endif
738
#ifdef HAVE_UNISTD_H
739
# include 
740
#endif"
741
 
742
ac_subst_vars='am__EXEEXT_FALSE
743
am__EXEEXT_TRUE
744
LTLIBOBJS
745
LIBOBJS
746
am__fastdepCCAS_FALSE
747
am__fastdepCCAS_TRUE
748
CCASDEPMODE
749
CCASFLAGS
750
CCAS
751
SIM
752
BUILD_ALL_TESTS_FALSE
753
BUILD_ALL_TESTS_TRUE
754
am__fastdepCC_FALSE
755
am__fastdepCC_TRUE
756
CCDEPMODE
757
AMDEPBACKSLASH
758
AMDEP_FALSE
759
AMDEP_TRUE
760
am__quote
761
am__include
762
DEPDIR
763
am__untar
764
am__tar
765
AMTAR
766
am__leading_dot
767
SET_MAKE
768
AWK
769
mkdir_p
770
MKDIR_P
771
INSTALL_STRIP_PROGRAM
772
install_sh
773
MAKEINFO
774
AUTOHEADER
775
AUTOMAKE
776
AUTOCONF
777
ACLOCAL
778
VERSION
779
PACKAGE
780
CYGPATH_W
781
am__isrc
782
INSTALL_DATA
783
INSTALL_SCRIPT
784
INSTALL_PROGRAM
785
CPP
786
OTOOL64
787
OTOOL
788
LIPO
789
NMEDIT
790
DSYMUTIL
791
lt_ECHO
792
RANLIB
793
STRIP
794
AR
795
OBJDUMP
796
LN_S
797
NM
798
ac_ct_DUMPBIN
799
DUMPBIN
800
LD
801
FGREP
802
EGREP
803
GREP
804
SED
805
OBJEXT
806
EXEEXT
807
ac_ct_CC
808
CPPFLAGS
809
LDFLAGS
810
CFLAGS
811
CC
812
host_os
813
host_vendor
814
host_cpu
815
host
816
build_os
817
build_vendor
818
build_cpu
819
build
820
LIBTOOL
821
target_alias
822
host_alias
823
build_alias
824
LIBS
825
ECHO_T
826
ECHO_N
827
ECHO_C
828
DEFS
829
mandir
830
localedir
831
libdir
832
psdir
833
pdfdir
834
dvidir
835
htmldir
836
infodir
837
docdir
838
oldincludedir
839
includedir
840
localstatedir
841
sharedstatedir
842
sysconfdir
843
datadir
844
datarootdir
845
libexecdir
846
sbindir
847
bindir
848
program_transform_name
849
prefix
850
exec_prefix
851 346 jeremybenn
PACKAGE_URL
852 90 jeremybenn
PACKAGE_BUGREPORT
853
PACKAGE_STRING
854
PACKAGE_VERSION
855
PACKAGE_TARNAME
856
PACKAGE_NAME
857
PATH_SEPARATOR
858
SHELL'
859
ac_subst_files=''
860
ac_user_opts='
861
enable_option_checking
862
enable_shared
863
enable_static
864
with_pic
865
enable_fast_install
866
with_gnu_ld
867
enable_libtool_lock
868
enable_dependency_tracking
869
enable_all_tests
870 458 julius
enable_check_opt
871 90 jeremybenn
'
872
      ac_precious_vars='build_alias
873
host_alias
874
target_alias
875
CC
876
CFLAGS
877
LDFLAGS
878
LIBS
879
CPPFLAGS
880
CPP
881
CCAS
882
CCASFLAGS'
883
 
884
 
885
# Initialize some variables set by options.
886
ac_init_help=
887
ac_init_version=false
888
ac_unrecognized_opts=
889
ac_unrecognized_sep=
890
# The variables have the same names as the options, with
891
# dashes changed to underlines.
892
cache_file=/dev/null
893
exec_prefix=NONE
894
no_create=
895
no_recursion=
896
prefix=NONE
897
program_prefix=NONE
898
program_suffix=NONE
899
program_transform_name=s,x,x,
900
silent=
901
site=
902
srcdir=
903
verbose=
904
x_includes=NONE
905
x_libraries=NONE
906
 
907
# Installation directory options.
908
# These are left unexpanded so users can "make install exec_prefix=/foo"
909
# and all the variables that are supposed to be based on exec_prefix
910
# by default will actually change.
911
# Use braces instead of parens because sh, perl, etc. also accept them.
912
# (The list follows the same order as the GNU Coding Standards.)
913
bindir='${exec_prefix}/bin'
914
sbindir='${exec_prefix}/sbin'
915
libexecdir='${exec_prefix}/libexec'
916
datarootdir='${prefix}/share'
917
datadir='${datarootdir}'
918
sysconfdir='${prefix}/etc'
919
sharedstatedir='${prefix}/com'
920
localstatedir='${prefix}/var'
921
includedir='${prefix}/include'
922
oldincludedir='/usr/include'
923
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
924
infodir='${datarootdir}/info'
925
htmldir='${docdir}'
926
dvidir='${docdir}'
927
pdfdir='${docdir}'
928
psdir='${docdir}'
929
libdir='${exec_prefix}/lib'
930
localedir='${datarootdir}/locale'
931
mandir='${datarootdir}/man'
932
 
933
ac_prev=
934
ac_dashdash=
935
for ac_option
936
do
937
  # If the previous option needs an argument, assign it.
938
  if test -n "$ac_prev"; then
939
    eval $ac_prev=\$ac_option
940
    ac_prev=
941
    continue
942
  fi
943
 
944
  case $ac_option in
945
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946
  *)    ac_optarg=yes ;;
947
  esac
948
 
949
  # Accept the important Cygnus configure options, so we can diagnose typos.
950
 
951
  case $ac_dashdash$ac_option in
952
  --)
953
    ac_dashdash=yes ;;
954
 
955
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
956
    ac_prev=bindir ;;
957
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958
    bindir=$ac_optarg ;;
959
 
960
  -build | --build | --buil | --bui | --bu)
961
    ac_prev=build_alias ;;
962
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963
    build_alias=$ac_optarg ;;
964
 
965
  -cache-file | --cache-file | --cache-fil | --cache-fi \
966
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967
    ac_prev=cache_file ;;
968
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970
    cache_file=$ac_optarg ;;
971
 
972
  --config-cache | -C)
973
    cache_file=config.cache ;;
974
 
975
  -datadir | --datadir | --datadi | --datad)
976
    ac_prev=datadir ;;
977
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
978
    datadir=$ac_optarg ;;
979
 
980
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981
  | --dataroo | --dataro | --datar)
982
    ac_prev=datarootdir ;;
983
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985
    datarootdir=$ac_optarg ;;
986
 
987
  -disable-* | --disable-*)
988
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989
    # Reject names that are not valid shell variable names.
990
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 346 jeremybenn
      as_fn_error "invalid feature name: $ac_useropt"
992 90 jeremybenn
    ac_useropt_orig=$ac_useropt
993
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994
    case $ac_user_opts in
995
      *"
996
"enable_$ac_useropt"
997
"*) ;;
998
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999
         ac_unrecognized_sep=', ';;
1000
    esac
1001
    eval enable_$ac_useropt=no ;;
1002
 
1003
  -docdir | --docdir | --docdi | --doc | --do)
1004
    ac_prev=docdir ;;
1005
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006
    docdir=$ac_optarg ;;
1007
 
1008
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009
    ac_prev=dvidir ;;
1010
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011
    dvidir=$ac_optarg ;;
1012
 
1013
  -enable-* | --enable-*)
1014
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015
    # Reject names that are not valid shell variable names.
1016
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 346 jeremybenn
      as_fn_error "invalid feature name: $ac_useropt"
1018 90 jeremybenn
    ac_useropt_orig=$ac_useropt
1019
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020
    case $ac_user_opts in
1021
      *"
1022
"enable_$ac_useropt"
1023
"*) ;;
1024
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025
         ac_unrecognized_sep=', ';;
1026
    esac
1027
    eval enable_$ac_useropt=\$ac_optarg ;;
1028
 
1029
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031
  | --exec | --exe | --ex)
1032
    ac_prev=exec_prefix ;;
1033
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035
  | --exec=* | --exe=* | --ex=*)
1036
    exec_prefix=$ac_optarg ;;
1037
 
1038
  -gas | --gas | --ga | --g)
1039
    # Obsolete; use --with-gas.
1040
    with_gas=yes ;;
1041
 
1042
  -help | --help | --hel | --he | -h)
1043
    ac_init_help=long ;;
1044
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045
    ac_init_help=recursive ;;
1046
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047
    ac_init_help=short ;;
1048
 
1049
  -host | --host | --hos | --ho)
1050
    ac_prev=host_alias ;;
1051
  -host=* | --host=* | --hos=* | --ho=*)
1052
    host_alias=$ac_optarg ;;
1053
 
1054
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055
    ac_prev=htmldir ;;
1056
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057
  | --ht=*)
1058
    htmldir=$ac_optarg ;;
1059
 
1060
  -includedir | --includedir | --includedi | --included | --include \
1061
  | --includ | --inclu | --incl | --inc)
1062
    ac_prev=includedir ;;
1063
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1065
    includedir=$ac_optarg ;;
1066
 
1067
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1068
    ac_prev=infodir ;;
1069
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070
    infodir=$ac_optarg ;;
1071
 
1072
  -libdir | --libdir | --libdi | --libd)
1073
    ac_prev=libdir ;;
1074
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075
    libdir=$ac_optarg ;;
1076
 
1077
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078
  | --libexe | --libex | --libe)
1079
    ac_prev=libexecdir ;;
1080
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081
  | --libexe=* | --libex=* | --libe=*)
1082
    libexecdir=$ac_optarg ;;
1083
 
1084
  -localedir | --localedir | --localedi | --localed | --locale)
1085
    ac_prev=localedir ;;
1086
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087
    localedir=$ac_optarg ;;
1088
 
1089
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1090
  | --localstate | --localstat | --localsta | --localst | --locals)
1091
    ac_prev=localstatedir ;;
1092
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094
    localstatedir=$ac_optarg ;;
1095
 
1096
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097
    ac_prev=mandir ;;
1098
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099
    mandir=$ac_optarg ;;
1100
 
1101
  -nfp | --nfp | --nf)
1102
    # Obsolete; use --without-fp.
1103
    with_fp=no ;;
1104
 
1105
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106
  | --no-cr | --no-c | -n)
1107
    no_create=yes ;;
1108
 
1109
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111
    no_recursion=yes ;;
1112
 
1113
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115
  | --oldin | --oldi | --old | --ol | --o)
1116
    ac_prev=oldincludedir ;;
1117
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120
    oldincludedir=$ac_optarg ;;
1121
 
1122
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123
    ac_prev=prefix ;;
1124
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125
    prefix=$ac_optarg ;;
1126
 
1127
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128
  | --program-pre | --program-pr | --program-p)
1129
    ac_prev=program_prefix ;;
1130
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132
    program_prefix=$ac_optarg ;;
1133
 
1134
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135
  | --program-suf | --program-su | --program-s)
1136
    ac_prev=program_suffix ;;
1137
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139
    program_suffix=$ac_optarg ;;
1140
 
1141
  -program-transform-name | --program-transform-name \
1142
  | --program-transform-nam | --program-transform-na \
1143
  | --program-transform-n | --program-transform- \
1144
  | --program-transform | --program-transfor \
1145
  | --program-transfo | --program-transf \
1146
  | --program-trans | --program-tran \
1147
  | --progr-tra | --program-tr | --program-t)
1148
    ac_prev=program_transform_name ;;
1149
  -program-transform-name=* | --program-transform-name=* \
1150
  | --program-transform-nam=* | --program-transform-na=* \
1151
  | --program-transform-n=* | --program-transform-=* \
1152
  | --program-transform=* | --program-transfor=* \
1153
  | --program-transfo=* | --program-transf=* \
1154
  | --program-trans=* | --program-tran=* \
1155
  | --progr-tra=* | --program-tr=* | --program-t=*)
1156
    program_transform_name=$ac_optarg ;;
1157
 
1158
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159
    ac_prev=pdfdir ;;
1160
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161
    pdfdir=$ac_optarg ;;
1162
 
1163
  -psdir | --psdir | --psdi | --psd | --ps)
1164
    ac_prev=psdir ;;
1165
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166
    psdir=$ac_optarg ;;
1167
 
1168
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169
  | -silent | --silent | --silen | --sile | --sil)
1170
    silent=yes ;;
1171
 
1172
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173
    ac_prev=sbindir ;;
1174
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175
  | --sbi=* | --sb=*)
1176
    sbindir=$ac_optarg ;;
1177
 
1178
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180
  | --sharedst | --shareds | --shared | --share | --shar \
1181
  | --sha | --sh)
1182
    ac_prev=sharedstatedir ;;
1183
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186
  | --sha=* | --sh=*)
1187
    sharedstatedir=$ac_optarg ;;
1188
 
1189
  -site | --site | --sit)
1190
    ac_prev=site ;;
1191
  -site=* | --site=* | --sit=*)
1192
    site=$ac_optarg ;;
1193
 
1194
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195
    ac_prev=srcdir ;;
1196
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197
    srcdir=$ac_optarg ;;
1198
 
1199
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200
  | --syscon | --sysco | --sysc | --sys | --sy)
1201
    ac_prev=sysconfdir ;;
1202
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204
    sysconfdir=$ac_optarg ;;
1205
 
1206
  -target | --target | --targe | --targ | --tar | --ta | --t)
1207
    ac_prev=target_alias ;;
1208
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209
    target_alias=$ac_optarg ;;
1210
 
1211
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212
    verbose=yes ;;
1213
 
1214
  -version | --version | --versio | --versi | --vers | -V)
1215
    ac_init_version=: ;;
1216
 
1217
  -with-* | --with-*)
1218
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219
    # Reject names that are not valid shell variable names.
1220
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 346 jeremybenn
      as_fn_error "invalid package name: $ac_useropt"
1222 90 jeremybenn
    ac_useropt_orig=$ac_useropt
1223
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224
    case $ac_user_opts in
1225
      *"
1226
"with_$ac_useropt"
1227
"*) ;;
1228
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229
         ac_unrecognized_sep=', ';;
1230
    esac
1231
    eval with_$ac_useropt=\$ac_optarg ;;
1232
 
1233
  -without-* | --without-*)
1234
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235
    # Reject names that are not valid shell variable names.
1236
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 346 jeremybenn
      as_fn_error "invalid package name: $ac_useropt"
1238 90 jeremybenn
    ac_useropt_orig=$ac_useropt
1239
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240
    case $ac_user_opts in
1241
      *"
1242
"with_$ac_useropt"
1243
"*) ;;
1244
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245
         ac_unrecognized_sep=', ';;
1246
    esac
1247
    eval with_$ac_useropt=no ;;
1248
 
1249
  --x)
1250
    # Obsolete; use --with-x.
1251
    with_x=yes ;;
1252
 
1253
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254
  | --x-incl | --x-inc | --x-in | --x-i)
1255
    ac_prev=x_includes ;;
1256
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258
    x_includes=$ac_optarg ;;
1259
 
1260
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262
    ac_prev=x_libraries ;;
1263
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265
    x_libraries=$ac_optarg ;;
1266
 
1267 346 jeremybenn
  -*) as_fn_error "unrecognized option: \`$ac_option'
1268
Try \`$0 --help' for more information."
1269 90 jeremybenn
    ;;
1270
 
1271
  *=*)
1272
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273
    # Reject names that are not valid shell variable names.
1274 346 jeremybenn
    case $ac_envvar in #(
1275
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1276
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1277
    esac
1278 90 jeremybenn
    eval $ac_envvar=\$ac_optarg
1279
    export $ac_envvar ;;
1280
 
1281
  *)
1282
    # FIXME: should be removed in autoconf 3.0.
1283
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287
    ;;
1288
 
1289
  esac
1290
done
1291
 
1292
if test -n "$ac_prev"; then
1293
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294 346 jeremybenn
  as_fn_error "missing argument to $ac_option"
1295 90 jeremybenn
fi
1296
 
1297
if test -n "$ac_unrecognized_opts"; then
1298
  case $enable_option_checking in
1299
    no) ;;
1300 346 jeremybenn
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1301 90 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302
  esac
1303
fi
1304
 
1305
# Check all directory arguments for consistency.
1306
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307
                datadir sysconfdir sharedstatedir localstatedir includedir \
1308
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309
                libdir localedir mandir
1310
do
1311
  eval ac_val=\$$ac_var
1312
  # Remove trailing slashes.
1313
  case $ac_val in
1314
    */ )
1315
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316
      eval $ac_var=\$ac_val;;
1317
  esac
1318
  # Be sure to have absolute directory names.
1319
  case $ac_val in
1320
    [\\/$]* | ?:[\\/]* )  continue;;
1321
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322
  esac
1323 346 jeremybenn
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1324 90 jeremybenn
done
1325
 
1326
# There might be people who depend on the old broken behavior: `$host'
1327
# used to hold the argument of --host etc.
1328
# FIXME: To remove some day.
1329
build=$build_alias
1330
host=$host_alias
1331
target=$target_alias
1332
 
1333
# FIXME: To remove some day.
1334
if test "x$host_alias" != x; then
1335
  if test "x$build_alias" = x; then
1336
    cross_compiling=maybe
1337
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1338
    If a cross compiler is detected then cross compile mode will be used." >&2
1339
  elif test "x$build_alias" != "x$host_alias"; then
1340
    cross_compiling=yes
1341
  fi
1342
fi
1343
 
1344
ac_tool_prefix=
1345
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
 
1347
test "$silent" = yes && exec 6>/dev/null
1348
 
1349
 
1350
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351
ac_ls_di=`ls -di .` &&
1352
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 346 jeremybenn
  as_fn_error "working directory cannot be determined"
1354 90 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 346 jeremybenn
  as_fn_error "pwd does not report name of working directory"
1356 90 jeremybenn
 
1357
 
1358
# Find the source files, if location was not specified.
1359
if test -z "$srcdir"; then
1360
  ac_srcdir_defaulted=yes
1361
  # Try the directory containing this script, then the parent directory.
1362
  ac_confdir=`$as_dirname -- "$as_myself" ||
1363
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364
         X"$as_myself" : 'X\(//\)[^/]' \| \
1365
         X"$as_myself" : 'X\(//\)$' \| \
1366
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367
$as_echo X"$as_myself" |
1368
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369
            s//\1/
1370
            q
1371
          }
1372
          /^X\(\/\/\)[^/].*/{
1373
            s//\1/
1374
            q
1375
          }
1376
          /^X\(\/\/\)$/{
1377
            s//\1/
1378
            q
1379
          }
1380
          /^X\(\/\).*/{
1381
            s//\1/
1382
            q
1383
          }
1384
          s/.*/./; q'`
1385
  srcdir=$ac_confdir
1386
  if test ! -r "$srcdir/$ac_unique_file"; then
1387
    srcdir=..
1388
  fi
1389
else
1390
  ac_srcdir_defaulted=no
1391
fi
1392
if test ! -r "$srcdir/$ac_unique_file"; then
1393
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394 346 jeremybenn
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1395 90 jeremybenn
fi
1396
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397
ac_abs_confdir=`(
1398 346 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1399 90 jeremybenn
        pwd)`
1400
# When building in place, set srcdir=.
1401
if test "$ac_abs_confdir" = "$ac_pwd"; then
1402
  srcdir=.
1403
fi
1404
# Remove unnecessary trailing slashes from srcdir.
1405
# Double slashes in file names in object file debugging info
1406
# mess up M-x gdb in Emacs.
1407
case $srcdir in
1408
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409
esac
1410
for ac_var in $ac_precious_vars; do
1411
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412
  eval ac_env_${ac_var}_value=\$${ac_var}
1413
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415
done
1416
 
1417
#
1418
# Report the --help message.
1419
#
1420
if test "$ac_init_help" = "long"; then
1421
  # Omit some internal or obsolete options to make the list less imposing.
1422
  # This message is too long to be a string in the A/UX 3.1 sh.
1423
  cat <<_ACEOF
1424 532 jeremybenn
\`configure' configures or1ksim-testsuite 2011-04-28 to adapt to many kinds of systems.
1425 90 jeremybenn
 
1426
Usage: $0 [OPTION]... [VAR=VALUE]...
1427
 
1428
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429
VAR=VALUE.  See below for descriptions of some of the useful variables.
1430
 
1431
Defaults for the options are specified in brackets.
1432
 
1433
Configuration:
1434
  -h, --help              display this help and exit
1435
      --help=short        display options specific to this package
1436
      --help=recursive    display the short help of all the included packages
1437
  -V, --version           display version information and exit
1438
  -q, --quiet, --silent   do not print \`checking...' messages
1439
      --cache-file=FILE   cache test results in FILE [disabled]
1440
  -C, --config-cache      alias for \`--cache-file=config.cache'
1441
  -n, --no-create         do not create output files
1442
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1443
 
1444
Installation directories:
1445
  --prefix=PREFIX         install architecture-independent files in PREFIX
1446
                          [$ac_default_prefix]
1447
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1448
                          [PREFIX]
1449
 
1450
By default, \`make install' will install all the files in
1451
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1452
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453
for instance \`--prefix=\$HOME'.
1454
 
1455
For better control, use the options below.
1456
 
1457
Fine tuning of the installation directories:
1458
  --bindir=DIR            user executables [EPREFIX/bin]
1459
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1460
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1461
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1462
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1463
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1464
  --libdir=DIR            object code libraries [EPREFIX/lib]
1465
  --includedir=DIR        C header files [PREFIX/include]
1466
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1467
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1468
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1469
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1470
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1471
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1472
  --docdir=DIR            documentation root
1473
                          [DATAROOTDIR/doc/or1ksim-testsuite]
1474
  --htmldir=DIR           html documentation [DOCDIR]
1475
  --dvidir=DIR            dvi documentation [DOCDIR]
1476
  --pdfdir=DIR            pdf documentation [DOCDIR]
1477
  --psdir=DIR             ps documentation [DOCDIR]
1478
_ACEOF
1479
 
1480
  cat <<\_ACEOF
1481
 
1482
Program names:
1483
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1484
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1485
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1486
 
1487
System types:
1488
  --build=BUILD     configure for building on BUILD [guessed]
1489
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1490
_ACEOF
1491
fi
1492
 
1493
if test -n "$ac_init_help"; then
1494
  case $ac_init_help in
1495 532 jeremybenn
     short | recursive ) echo "Configuration of or1ksim-testsuite 2011-04-28:";;
1496 90 jeremybenn
   esac
1497
  cat <<\_ACEOF
1498
 
1499
Optional Features:
1500
  --disable-option-checking  ignore unrecognized --enable/--with options
1501
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1502
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1503
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1504
  --enable-static[=PKGS]  build static libraries [default=yes]
1505
  --enable-fast-install[=PKGS]
1506
                          optimize for fast installation [default=yes]
1507
  --disable-libtool-lock  avoid locking (might break parallel builds)
1508
  --disable-dependency-tracking  speeds up one-time build
1509
  --enable-dependency-tracking   do not reject slow dependency extractors
1510
  --enable-all-tests      enable all tests, including those which do not
1511
                          compile
1512
  --enable-check-opt      enable optimizations
1513
  --enable-check-opt=level     same as gcc -O switch
1514
 
1515
Optional Packages:
1516
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1517
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1518
  --with-pic              try to use only PIC/non-PIC objects [default=use
1519
                          both]
1520
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1521
 
1522
Some influential environment variables:
1523
  CC          C compiler command
1524
  CFLAGS      C compiler flags
1525
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1526
              nonstandard directory 
1527
  LIBS        libraries to pass to the linker, e.g. -l
1528 538 julius
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1529 90 jeremybenn
              you have headers in a nonstandard directory 
1530
  CPP         C preprocessor
1531
  CCAS        assembler compiler command (defaults to CC)
1532
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1533
 
1534
Use these variables to override the choices made by `configure' or to help
1535
it to find libraries and programs with nonstandard names/locations.
1536
 
1537
Report bugs to .
1538
_ACEOF
1539
ac_status=$?
1540
fi
1541
 
1542
if test "$ac_init_help" = "recursive"; then
1543
  # If there are subdirs, report their specific --help.
1544
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545
    test -d "$ac_dir" ||
1546
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547
      continue
1548
    ac_builddir=.
1549
 
1550
case "$ac_dir" in
1551
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552
*)
1553
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554
  # A ".." for each directory in $ac_dir_suffix.
1555
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556
  case $ac_top_builddir_sub in
1557
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559
  esac ;;
1560
esac
1561
ac_abs_top_builddir=$ac_pwd
1562
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563
# for backward compatibility:
1564
ac_top_builddir=$ac_top_build_prefix
1565
 
1566
case $srcdir in
1567
  .)  # We are building in place.
1568
    ac_srcdir=.
1569
    ac_top_srcdir=$ac_top_builddir_sub
1570
    ac_abs_top_srcdir=$ac_pwd ;;
1571
  [\\/]* | ?:[\\/]* )  # Absolute name.
1572
    ac_srcdir=$srcdir$ac_dir_suffix;
1573
    ac_top_srcdir=$srcdir
1574
    ac_abs_top_srcdir=$srcdir ;;
1575
  *) # Relative name.
1576
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1578
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579
esac
1580
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
 
1582
    cd "$ac_dir" || { ac_status=$?; continue; }
1583
    # Check for guested configure.
1584
    if test -f "$ac_srcdir/configure.gnu"; then
1585
      echo &&
1586
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587
    elif test -f "$ac_srcdir/configure"; then
1588
      echo &&
1589
      $SHELL "$ac_srcdir/configure" --help=recursive
1590
    else
1591
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592
    fi || ac_status=$?
1593
    cd "$ac_pwd" || { ac_status=$?; break; }
1594
  done
1595
fi
1596
 
1597
test -n "$ac_init_help" && exit $ac_status
1598
if $ac_init_version; then
1599
  cat <<\_ACEOF
1600 532 jeremybenn
or1ksim-testsuite configure 2011-04-28
1601 538 julius
generated by GNU Autoconf 2.64
1602 90 jeremybenn
 
1603 346 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
1604 90 jeremybenn
This configure script is free software; the Free Software Foundation
1605
gives unlimited permission to copy, distribute and modify it.
1606
_ACEOF
1607
  exit
1608
fi
1609 346 jeremybenn
 
1610
## ------------------------ ##
1611
## Autoconf initialization. ##
1612
## ------------------------ ##
1613
 
1614
# ac_fn_c_try_compile LINENO
1615
# --------------------------
1616
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1617
ac_fn_c_try_compile ()
1618
{
1619
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620
  rm -f conftest.$ac_objext
1621
  if { { ac_try="$ac_compile"
1622
case "(($ac_try" in
1623
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624
  *) ac_try_echo=$ac_try;;
1625
esac
1626
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627
$as_echo "$ac_try_echo"; } >&5
1628
  (eval "$ac_compile") 2>conftest.err
1629
  ac_status=$?
1630
  if test -s conftest.err; then
1631
    grep -v '^ *+' conftest.err >conftest.er1
1632
    cat conftest.er1 >&5
1633
    mv -f conftest.er1 conftest.err
1634
  fi
1635
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636
  test $ac_status = 0; } && {
1637
         test -z "$ac_c_werror_flag" ||
1638
         test ! -s conftest.err
1639
       } && test -s conftest.$ac_objext; then :
1640
  ac_retval=0
1641
else
1642
  $as_echo "$as_me: failed program was:" >&5
1643
sed 's/^/| /' conftest.$ac_ext >&5
1644
 
1645
        ac_retval=1
1646
fi
1647
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648 538 julius
  return $ac_retval
1649 346 jeremybenn
 
1650
} # ac_fn_c_try_compile
1651
 
1652
# ac_fn_c_try_link LINENO
1653
# -----------------------
1654
# Try to link conftest.$ac_ext, and return whether this succeeded.
1655
ac_fn_c_try_link ()
1656
{
1657
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658
  rm -f conftest.$ac_objext conftest$ac_exeext
1659
  if { { ac_try="$ac_link"
1660
case "(($ac_try" in
1661
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662
  *) ac_try_echo=$ac_try;;
1663
esac
1664
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665
$as_echo "$ac_try_echo"; } >&5
1666
  (eval "$ac_link") 2>conftest.err
1667
  ac_status=$?
1668
  if test -s conftest.err; then
1669
    grep -v '^ *+' conftest.err >conftest.er1
1670
    cat conftest.er1 >&5
1671
    mv -f conftest.er1 conftest.err
1672
  fi
1673
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674
  test $ac_status = 0; } && {
1675
         test -z "$ac_c_werror_flag" ||
1676
         test ! -s conftest.err
1677
       } && test -s conftest$ac_exeext && {
1678
         test "$cross_compiling" = yes ||
1679
         $as_test_x conftest$ac_exeext
1680
       }; then :
1681
  ac_retval=0
1682
else
1683
  $as_echo "$as_me: failed program was:" >&5
1684
sed 's/^/| /' conftest.$ac_ext >&5
1685
 
1686
        ac_retval=1
1687
fi
1688
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1689
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1690
  # interfere with the next link command; also delete a directory that is
1691
  # left behind by Apple's compiler.  We do this before executing the actions.
1692
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694 538 julius
  return $ac_retval
1695 346 jeremybenn
 
1696
} # ac_fn_c_try_link
1697
 
1698
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1699
# -------------------------------------------------------
1700
# Tests whether HEADER exists and can be compiled using the include files in
1701
# INCLUDES, setting the cache variable VAR accordingly.
1702
ac_fn_c_check_header_compile ()
1703
{
1704
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706
$as_echo_n "checking for $2... " >&6; }
1707
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1708
  $as_echo_n "(cached) " >&6
1709
else
1710
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711
/* end confdefs.h.  */
1712
$4
1713
#include <$2>
1714
_ACEOF
1715
if ac_fn_c_try_compile "$LINENO"; then :
1716
  eval "$3=yes"
1717
else
1718
  eval "$3=no"
1719
fi
1720
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721
fi
1722
eval ac_res=\$$3
1723
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724
$as_echo "$ac_res" >&6; }
1725
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726
 
1727
} # ac_fn_c_check_header_compile
1728
 
1729
# ac_fn_c_try_cpp LINENO
1730
# ----------------------
1731
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1732
ac_fn_c_try_cpp ()
1733
{
1734
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1736
case "(($ac_try" in
1737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738
  *) ac_try_echo=$ac_try;;
1739
esac
1740
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741
$as_echo "$ac_try_echo"; } >&5
1742
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1743
  ac_status=$?
1744
  if test -s conftest.err; then
1745
    grep -v '^ *+' conftest.err >conftest.er1
1746
    cat conftest.er1 >&5
1747
    mv -f conftest.er1 conftest.err
1748
  fi
1749
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750
  test $ac_status = 0; } >/dev/null && {
1751
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1752
         test ! -s conftest.err
1753
       }; then :
1754
  ac_retval=0
1755
else
1756
  $as_echo "$as_me: failed program was:" >&5
1757
sed 's/^/| /' conftest.$ac_ext >&5
1758
 
1759
    ac_retval=1
1760
fi
1761
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762 538 julius
  return $ac_retval
1763 346 jeremybenn
 
1764
} # ac_fn_c_try_cpp
1765
 
1766
# ac_fn_c_try_run LINENO
1767
# ----------------------
1768
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1769
# that executables *can* be run.
1770
ac_fn_c_try_run ()
1771
{
1772
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773
  if { { ac_try="$ac_link"
1774
case "(($ac_try" in
1775
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776
  *) ac_try_echo=$ac_try;;
1777
esac
1778
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779
$as_echo "$ac_try_echo"; } >&5
1780
  (eval "$ac_link") 2>&5
1781
  ac_status=$?
1782
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1784
  { { case "(($ac_try" in
1785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786
  *) ac_try_echo=$ac_try;;
1787
esac
1788
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789
$as_echo "$ac_try_echo"; } >&5
1790
  (eval "$ac_try") 2>&5
1791
  ac_status=$?
1792
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793
  test $ac_status = 0; }; }; then :
1794
  ac_retval=0
1795
else
1796
  $as_echo "$as_me: program exited with status $ac_status" >&5
1797
       $as_echo "$as_me: failed program was:" >&5
1798
sed 's/^/| /' conftest.$ac_ext >&5
1799
 
1800
       ac_retval=$ac_status
1801
fi
1802
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 538 julius
  return $ac_retval
1805 346 jeremybenn
 
1806
} # ac_fn_c_try_run
1807
 
1808
# ac_fn_c_check_func LINENO FUNC VAR
1809
# ----------------------------------
1810
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1811
ac_fn_c_check_func ()
1812
{
1813
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815
$as_echo_n "checking for $2... " >&6; }
1816
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1817
  $as_echo_n "(cached) " >&6
1818
else
1819
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820
/* end confdefs.h.  */
1821
/* Define $2 to an innocuous variant, in case  declares $2.
1822
   For example, HP-UX 11i  declares gettimeofday.  */
1823
#define $2 innocuous_$2
1824
 
1825
/* System header to define __stub macros and hopefully few prototypes,
1826
    which can conflict with char $2 (); below.
1827
    Prefer  to  if __STDC__ is defined, since
1828
     exists even on freestanding compilers.  */
1829
 
1830
#ifdef __STDC__
1831
# include 
1832
#else
1833
# include 
1834
#endif
1835
 
1836
#undef $2
1837
 
1838
/* Override any GCC internal prototype to avoid an error.
1839
   Use char because int might match the return type of a GCC
1840
   builtin and then its argument prototype would still apply.  */
1841
#ifdef __cplusplus
1842
extern "C"
1843
#endif
1844
char $2 ();
1845
/* The GNU C library defines this for functions which it implements
1846
    to always fail with ENOSYS.  Some functions are actually named
1847
    something starting with __ and the normal name is an alias.  */
1848
#if defined __stub_$2 || defined __stub___$2
1849
choke me
1850
#endif
1851
 
1852
int
1853
main ()
1854
{
1855
return $2 ();
1856
  ;
1857
  return 0;
1858
}
1859
_ACEOF
1860
if ac_fn_c_try_link "$LINENO"; then :
1861
  eval "$3=yes"
1862
else
1863
  eval "$3=no"
1864
fi
1865
rm -f core conftest.err conftest.$ac_objext \
1866
    conftest$ac_exeext conftest.$ac_ext
1867
fi
1868
eval ac_res=\$$3
1869
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870
$as_echo "$ac_res" >&6; }
1871
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872
 
1873
} # ac_fn_c_check_func
1874
 
1875
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876
# -------------------------------------------------------
1877
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878
# the include files in INCLUDES and setting the cache variable VAR
1879
# accordingly.
1880
ac_fn_c_check_header_mongrel ()
1881
{
1882
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885
$as_echo_n "checking for $2... " >&6; }
1886
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887
  $as_echo_n "(cached) " >&6
1888
fi
1889
eval ac_res=\$$3
1890
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891
$as_echo "$ac_res" >&6; }
1892
else
1893
  # Is the header compilable?
1894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895
$as_echo_n "checking $2 usability... " >&6; }
1896
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897
/* end confdefs.h.  */
1898
$4
1899
#include <$2>
1900
_ACEOF
1901
if ac_fn_c_try_compile "$LINENO"; then :
1902
  ac_header_compiler=yes
1903
else
1904
  ac_header_compiler=no
1905
fi
1906
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908
$as_echo "$ac_header_compiler" >&6; }
1909
 
1910
# Is the header present?
1911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912
$as_echo_n "checking $2 presence... " >&6; }
1913
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914
/* end confdefs.h.  */
1915
#include <$2>
1916
_ACEOF
1917
if ac_fn_c_try_cpp "$LINENO"; then :
1918
  ac_header_preproc=yes
1919
else
1920
  ac_header_preproc=no
1921
fi
1922
rm -f conftest.err conftest.$ac_ext
1923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924
$as_echo "$ac_header_preproc" >&6; }
1925
 
1926
# So?  What about this header?
1927
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928
  yes:no: )
1929
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933
    ;;
1934
  no:yes:* )
1935
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1938
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1939
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1942
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1943
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945
( cat <<\_ASBOX
1946
## ------------------------------------- ##
1947
## Report this to openrisc@opencores.org ##
1948
## ------------------------------------- ##
1949
_ASBOX
1950
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1951
    ;;
1952
esac
1953
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954
$as_echo_n "checking for $2... " >&6; }
1955
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1956
  $as_echo_n "(cached) " >&6
1957
else
1958
  eval "$3=\$ac_header_compiler"
1959
fi
1960
eval ac_res=\$$3
1961
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962
$as_echo "$ac_res" >&6; }
1963
fi
1964
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965
 
1966
} # ac_fn_c_check_header_mongrel
1967
 
1968
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1969
# -------------------------------------------
1970
# Tests whether TYPE exists after having included INCLUDES, setting cache
1971
# variable VAR accordingly.
1972
ac_fn_c_check_type ()
1973
{
1974
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976
$as_echo_n "checking for $2... " >&6; }
1977
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1978
  $as_echo_n "(cached) " >&6
1979
else
1980
  eval "$3=no"
1981
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982
/* end confdefs.h.  */
1983
$4
1984
int
1985
main ()
1986
{
1987
if (sizeof ($2))
1988
         return 0;
1989
  ;
1990
  return 0;
1991
}
1992
_ACEOF
1993
if ac_fn_c_try_compile "$LINENO"; then :
1994
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995
/* end confdefs.h.  */
1996
$4
1997
int
1998
main ()
1999
{
2000
if (sizeof (($2)))
2001
            return 0;
2002
  ;
2003
  return 0;
2004
}
2005
_ACEOF
2006
if ac_fn_c_try_compile "$LINENO"; then :
2007
 
2008
else
2009
  eval "$3=yes"
2010
fi
2011
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012
fi
2013
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014
fi
2015
eval ac_res=\$$3
2016
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017
$as_echo "$ac_res" >&6; }
2018
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019
 
2020
} # ac_fn_c_check_type
2021 90 jeremybenn
cat >config.log <<_ACEOF
2022
This file contains any messages produced by compilers while
2023
running configure, to aid debugging if configure makes a mistake.
2024
 
2025 532 jeremybenn
It was created by or1ksim-testsuite $as_me 2011-04-28, which was
2026 538 julius
generated by GNU Autoconf 2.64.  Invocation command line was
2027 90 jeremybenn
 
2028
  $ $0 $@
2029
 
2030
_ACEOF
2031
exec 5>>config.log
2032
{
2033
cat <<_ASUNAME
2034
## --------- ##
2035
## Platform. ##
2036
## --------- ##
2037
 
2038
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2039
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2040
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2041
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2042
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2043
 
2044
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2045
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2046
 
2047
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2048
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2049
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2050
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2051
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2052
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2053
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2054
 
2055
_ASUNAME
2056
 
2057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058
for as_dir in $PATH
2059
do
2060
  IFS=$as_save_IFS
2061
  test -z "$as_dir" && as_dir=.
2062 346 jeremybenn
    $as_echo "PATH: $as_dir"
2063
  done
2064 90 jeremybenn
IFS=$as_save_IFS
2065
 
2066
} >&5
2067
 
2068
cat >&5 <<_ACEOF
2069
 
2070
 
2071
## ----------- ##
2072
## Core tests. ##
2073
## ----------- ##
2074
 
2075
_ACEOF
2076
 
2077
 
2078
# Keep a trace of the command line.
2079
# Strip out --no-create and --no-recursion so they do not pile up.
2080
# Strip out --silent because we don't want to record it for future runs.
2081
# Also quote any args containing shell meta-characters.
2082
# Make two passes to allow for proper duplicate-argument suppression.
2083
ac_configure_args=
2084
ac_configure_args0=
2085
ac_configure_args1=
2086
ac_must_keep_next=false
2087
for ac_pass in 1 2
2088
do
2089
  for ac_arg
2090
  do
2091
    case $ac_arg in
2092
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2093
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2094
    | -silent | --silent | --silen | --sile | --sil)
2095
      continue ;;
2096
    *\'*)
2097
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2098
    esac
2099
    case $ac_pass in
2100 346 jeremybenn
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2101 90 jeremybenn
    2)
2102 346 jeremybenn
      as_fn_append ac_configure_args1 " '$ac_arg'"
2103 90 jeremybenn
      if test $ac_must_keep_next = true; then
2104
        ac_must_keep_next=false # Got value, back to normal.
2105
      else
2106
        case $ac_arg in
2107
          *=* | --config-cache | -C | -disable-* | --disable-* \
2108
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2109
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2110
          | -with-* | --with-* | -without-* | --without-* | --x)
2111
            case "$ac_configure_args0 " in
2112
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2113
            esac
2114
            ;;
2115
          -* ) ac_must_keep_next=true ;;
2116
        esac
2117
      fi
2118 346 jeremybenn
      as_fn_append ac_configure_args " '$ac_arg'"
2119 90 jeremybenn
      ;;
2120
    esac
2121
  done
2122
done
2123 346 jeremybenn
{ ac_configure_args0=; unset ac_configure_args0;}
2124
{ ac_configure_args1=; unset ac_configure_args1;}
2125 90 jeremybenn
 
2126
# When interrupted or exit'd, cleanup temporary files, and complete
2127
# config.log.  We remove comments because anyway the quotes in there
2128
# would cause problems or look ugly.
2129
# WARNING: Use '\'' to represent an apostrophe within the trap.
2130
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2131
trap 'exit_status=$?
2132
  # Save into config.log some information that might help in debugging.
2133
  {
2134
    echo
2135
 
2136
    cat <<\_ASBOX
2137
## ---------------- ##
2138
## Cache variables. ##
2139
## ---------------- ##
2140
_ASBOX
2141
    echo
2142
    # The following way of writing the cache mishandles newlines in values,
2143
(
2144
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2145
    eval ac_val=\$$ac_var
2146
    case $ac_val in #(
2147
    *${as_nl}*)
2148
      case $ac_var in #(
2149 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2150 90 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2151
      esac
2152
      case $ac_var in #(
2153
      _ | IFS | as_nl) ;; #(
2154
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2155 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
2156 90 jeremybenn
      esac ;;
2157
    esac
2158
  done
2159
  (set) 2>&1 |
2160
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2161
    *${as_nl}ac_space=\ *)
2162
      sed -n \
2163
        "s/'\''/'\''\\\\'\'''\''/g;
2164
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2165
      ;; #(
2166
    *)
2167
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2168
      ;;
2169
    esac |
2170
    sort
2171
)
2172
    echo
2173
 
2174
    cat <<\_ASBOX
2175
## ----------------- ##
2176
## Output variables. ##
2177
## ----------------- ##
2178
_ASBOX
2179
    echo
2180
    for ac_var in $ac_subst_vars
2181
    do
2182
      eval ac_val=\$$ac_var
2183
      case $ac_val in
2184
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2185
      esac
2186
      $as_echo "$ac_var='\''$ac_val'\''"
2187
    done | sort
2188
    echo
2189
 
2190
    if test -n "$ac_subst_files"; then
2191
      cat <<\_ASBOX
2192
## ------------------- ##
2193
## File substitutions. ##
2194
## ------------------- ##
2195
_ASBOX
2196
      echo
2197
      for ac_var in $ac_subst_files
2198
      do
2199
        eval ac_val=\$$ac_var
2200
        case $ac_val in
2201
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2202
        esac
2203
        $as_echo "$ac_var='\''$ac_val'\''"
2204
      done | sort
2205
      echo
2206
    fi
2207
 
2208
    if test -s confdefs.h; then
2209
      cat <<\_ASBOX
2210
## ----------- ##
2211
## confdefs.h. ##
2212
## ----------- ##
2213
_ASBOX
2214
      echo
2215
      cat confdefs.h
2216
      echo
2217
    fi
2218
    test "$ac_signal" != 0 &&
2219
      $as_echo "$as_me: caught signal $ac_signal"
2220
    $as_echo "$as_me: exit $exit_status"
2221
  } >&5
2222
  rm -f core *.core core.conftest.* &&
2223
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2224
    exit $exit_status
2225
' 0
2226
for ac_signal in 1 2 13 15; do
2227 346 jeremybenn
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2228 90 jeremybenn
done
2229
ac_signal=0
2230
 
2231
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2232
rm -f -r conftest* confdefs.h
2233
 
2234 346 jeremybenn
$as_echo "/* confdefs.h */" > confdefs.h
2235
 
2236 90 jeremybenn
# Predefined preprocessor variables.
2237
 
2238
cat >>confdefs.h <<_ACEOF
2239
#define PACKAGE_NAME "$PACKAGE_NAME"
2240
_ACEOF
2241
 
2242
cat >>confdefs.h <<_ACEOF
2243
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2244
_ACEOF
2245
 
2246
cat >>confdefs.h <<_ACEOF
2247
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2248
_ACEOF
2249
 
2250
cat >>confdefs.h <<_ACEOF
2251
#define PACKAGE_STRING "$PACKAGE_STRING"
2252
_ACEOF
2253
 
2254
cat >>confdefs.h <<_ACEOF
2255
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2256
_ACEOF
2257
 
2258 346 jeremybenn
cat >>confdefs.h <<_ACEOF
2259
#define PACKAGE_URL "$PACKAGE_URL"
2260
_ACEOF
2261 90 jeremybenn
 
2262 346 jeremybenn
 
2263 90 jeremybenn
# Let the site file select an alternate cache file if it wants to.
2264
# Prefer an explicitly selected file to automatically selected ones.
2265
ac_site_file1=NONE
2266
ac_site_file2=NONE
2267
if test -n "$CONFIG_SITE"; then
2268
  ac_site_file1=$CONFIG_SITE
2269
elif test "x$prefix" != xNONE; then
2270
  ac_site_file1=$prefix/share/config.site
2271
  ac_site_file2=$prefix/etc/config.site
2272
else
2273
  ac_site_file1=$ac_default_prefix/share/config.site
2274
  ac_site_file2=$ac_default_prefix/etc/config.site
2275
fi
2276
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2277
do
2278
  test "x$ac_site_file" = xNONE && continue
2279 538 julius
  if test -r "$ac_site_file"; then
2280 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2281 90 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2282
    sed 's/^/| /' "$ac_site_file" >&5
2283
    . "$ac_site_file"
2284
  fi
2285
done
2286
 
2287
if test -r "$cache_file"; then
2288 538 julius
  # Some versions of bash will fail to source /dev/null (special
2289
  # files actually), so we avoid doing that.
2290
  if test -f "$cache_file"; then
2291 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2292 90 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2293
    case $cache_file in
2294
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2295
      *)                      . "./$cache_file";;
2296
    esac
2297
  fi
2298
else
2299 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2300 90 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2301
  >$cache_file
2302
fi
2303
 
2304
# Check that the precious variables saved in the cache have kept the same
2305
# value.
2306
ac_cache_corrupted=false
2307
for ac_var in $ac_precious_vars; do
2308
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2309
  eval ac_new_set=\$ac_env_${ac_var}_set
2310
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2311
  eval ac_new_val=\$ac_env_${ac_var}_value
2312
  case $ac_old_set,$ac_new_set in
2313
    set,)
2314 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2315 90 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2316
      ac_cache_corrupted=: ;;
2317
    ,set)
2318 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2319 90 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2320
      ac_cache_corrupted=: ;;
2321
    ,);;
2322
    *)
2323
      if test "x$ac_old_val" != "x$ac_new_val"; then
2324
        # differences in whitespace do not lead to failure.
2325
        ac_old_val_w=`echo x $ac_old_val`
2326
        ac_new_val_w=`echo x $ac_new_val`
2327
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2328 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2329 90 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2330
          ac_cache_corrupted=:
2331
        else
2332 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2333 90 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2334
          eval $ac_var=\$ac_old_val
2335
        fi
2336 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2337 90 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2338 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2339 90 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2340
      fi;;
2341
  esac
2342
  # Pass precious variables to config.status.
2343
  if test "$ac_new_set" = set; then
2344
    case $ac_new_val in
2345
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2346
    *) ac_arg=$ac_var=$ac_new_val ;;
2347
    esac
2348
    case " $ac_configure_args " in
2349
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2350 346 jeremybenn
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2351 90 jeremybenn
    esac
2352
  fi
2353
done
2354
if $ac_cache_corrupted; then
2355 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2356 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2357 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2358 90 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2359 346 jeremybenn
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2360 90 jeremybenn
fi
2361 346 jeremybenn
## -------------------- ##
2362
## Main body of script. ##
2363
## -------------------- ##
2364 90 jeremybenn
 
2365
ac_ext=c
2366
ac_cpp='$CPP $CPPFLAGS'
2367
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2368
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2369
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370
 
2371
 
2372
 
2373
 
2374
case `pwd` in
2375
  *\ * | *\     *)
2376 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2377 90 jeremybenn
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2378
esac
2379
 
2380
 
2381
 
2382 95 jeremybenn
macro_version='2.2.6b'
2383
macro_revision='1.3017'
2384 90 jeremybenn
 
2385
 
2386
 
2387
 
2388
 
2389
 
2390
 
2391
 
2392
 
2393
 
2394
 
2395
 
2396
 
2397
ltmain="$ac_aux_dir/ltmain.sh"
2398
 
2399
ac_aux_dir=
2400
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2401 346 jeremybenn
  for ac_t in install-sh install.sh shtool; do
2402
    if test -f "$ac_dir/$ac_t"; then
2403
      ac_aux_dir=$ac_dir
2404
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2405
      break 2
2406
    fi
2407
  done
2408 90 jeremybenn
done
2409
if test -z "$ac_aux_dir"; then
2410 346 jeremybenn
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2411 90 jeremybenn
fi
2412
 
2413
# These three variables are undocumented and unsupported,
2414
# and are intended to be withdrawn in a future Autoconf release.
2415
# They can cause serious problems if a builder's source tree is in a directory
2416
# whose full name contains unusual characters.
2417
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2418
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2419
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2420
 
2421
 
2422
# Make sure we can run config.sub.
2423
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2424 346 jeremybenn
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2425 90 jeremybenn
 
2426 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2427 90 jeremybenn
$as_echo_n "checking build system type... " >&6; }
2428 346 jeremybenn
if test "${ac_cv_build+set}" = set; then :
2429 90 jeremybenn
  $as_echo_n "(cached) " >&6
2430
else
2431
  ac_build_alias=$build_alias
2432
test "x$ac_build_alias" = x &&
2433
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2434
test "x$ac_build_alias" = x &&
2435 346 jeremybenn
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2436 90 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2437 346 jeremybenn
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2438 90 jeremybenn
 
2439
fi
2440 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2441 90 jeremybenn
$as_echo "$ac_cv_build" >&6; }
2442
case $ac_cv_build in
2443
*-*-*) ;;
2444 346 jeremybenn
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2445 90 jeremybenn
esac
2446
build=$ac_cv_build
2447
ac_save_IFS=$IFS; IFS='-'
2448
set x $ac_cv_build
2449
shift
2450
build_cpu=$1
2451
build_vendor=$2
2452
shift; shift
2453
# Remember, the first character of IFS is used to create $*,
2454
# except with old shells:
2455
build_os=$*
2456
IFS=$ac_save_IFS
2457
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2458
 
2459
 
2460 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2461 90 jeremybenn
$as_echo_n "checking host system type... " >&6; }
2462 346 jeremybenn
if test "${ac_cv_host+set}" = set; then :
2463 90 jeremybenn
  $as_echo_n "(cached) " >&6
2464
else
2465
  if test "x$host_alias" = x; then
2466
  ac_cv_host=$ac_cv_build
2467
else
2468
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2469 346 jeremybenn
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2470 90 jeremybenn
fi
2471
 
2472
fi
2473 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2474 90 jeremybenn
$as_echo "$ac_cv_host" >&6; }
2475
case $ac_cv_host in
2476
*-*-*) ;;
2477 346 jeremybenn
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2478 90 jeremybenn
esac
2479
host=$ac_cv_host
2480
ac_save_IFS=$IFS; IFS='-'
2481
set x $ac_cv_host
2482
shift
2483
host_cpu=$1
2484
host_vendor=$2
2485
shift; shift
2486
# Remember, the first character of IFS is used to create $*,
2487
# except with old shells:
2488
host_os=$*
2489
IFS=$ac_save_IFS
2490
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2491
 
2492
 
2493
ac_ext=c
2494
ac_cpp='$CPP $CPPFLAGS'
2495
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498
if test -n "$ac_tool_prefix"; then
2499
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2500
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2501 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2503 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2504 90 jeremybenn
  $as_echo_n "(cached) " >&6
2505
else
2506
  if test -n "$CC"; then
2507
  ac_cv_prog_CC="$CC" # Let the user override the test.
2508
else
2509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510
for as_dir in $PATH
2511
do
2512
  IFS=$as_save_IFS
2513
  test -z "$as_dir" && as_dir=.
2514 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2515 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2517 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 90 jeremybenn
    break 2
2519
  fi
2520
done
2521 346 jeremybenn
  done
2522 90 jeremybenn
IFS=$as_save_IFS
2523
 
2524
fi
2525
fi
2526
CC=$ac_cv_prog_CC
2527
if test -n "$CC"; then
2528 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2529 90 jeremybenn
$as_echo "$CC" >&6; }
2530
else
2531 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532 90 jeremybenn
$as_echo "no" >&6; }
2533
fi
2534
 
2535
 
2536
fi
2537
if test -z "$ac_cv_prog_CC"; then
2538
  ac_ct_CC=$CC
2539
  # Extract the first word of "gcc", so it can be a program name with args.
2540
set dummy gcc; ac_word=$2
2541 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2543 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2544 90 jeremybenn
  $as_echo_n "(cached) " >&6
2545
else
2546
  if test -n "$ac_ct_CC"; then
2547
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2548
else
2549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550
for as_dir in $PATH
2551
do
2552
  IFS=$as_save_IFS
2553
  test -z "$as_dir" && as_dir=.
2554 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2555 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556
    ac_cv_prog_ac_ct_CC="gcc"
2557 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 90 jeremybenn
    break 2
2559
  fi
2560
done
2561 346 jeremybenn
  done
2562 90 jeremybenn
IFS=$as_save_IFS
2563
 
2564
fi
2565
fi
2566
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2567
if test -n "$ac_ct_CC"; then
2568 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2569 90 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2570
else
2571 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572 90 jeremybenn
$as_echo "no" >&6; }
2573
fi
2574
 
2575
  if test "x$ac_ct_CC" = x; then
2576
    CC=""
2577
  else
2578
    case $cross_compiling:$ac_tool_warned in
2579
yes:)
2580 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2581 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2582
ac_tool_warned=yes ;;
2583
esac
2584
    CC=$ac_ct_CC
2585
  fi
2586
else
2587
  CC="$ac_cv_prog_CC"
2588
fi
2589
 
2590
if test -z "$CC"; then
2591
          if test -n "$ac_tool_prefix"; then
2592
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2593
set dummy ${ac_tool_prefix}cc; ac_word=$2
2594 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2596 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2597 90 jeremybenn
  $as_echo_n "(cached) " >&6
2598
else
2599
  if test -n "$CC"; then
2600
  ac_cv_prog_CC="$CC" # Let the user override the test.
2601
else
2602
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603
for as_dir in $PATH
2604
do
2605
  IFS=$as_save_IFS
2606
  test -z "$as_dir" && as_dir=.
2607 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2608 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2610 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 90 jeremybenn
    break 2
2612
  fi
2613
done
2614 346 jeremybenn
  done
2615 90 jeremybenn
IFS=$as_save_IFS
2616
 
2617
fi
2618
fi
2619
CC=$ac_cv_prog_CC
2620
if test -n "$CC"; then
2621 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2622 90 jeremybenn
$as_echo "$CC" >&6; }
2623
else
2624 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 90 jeremybenn
$as_echo "no" >&6; }
2626
fi
2627
 
2628
 
2629
  fi
2630
fi
2631
if test -z "$CC"; then
2632
  # Extract the first word of "cc", so it can be a program name with args.
2633
set dummy cc; ac_word=$2
2634 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2636 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2637 90 jeremybenn
  $as_echo_n "(cached) " >&6
2638
else
2639
  if test -n "$CC"; then
2640
  ac_cv_prog_CC="$CC" # Let the user override the test.
2641
else
2642
  ac_prog_rejected=no
2643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644
for as_dir in $PATH
2645
do
2646
  IFS=$as_save_IFS
2647
  test -z "$as_dir" && as_dir=.
2648 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2649 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2651
       ac_prog_rejected=yes
2652
       continue
2653
     fi
2654
    ac_cv_prog_CC="cc"
2655 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 90 jeremybenn
    break 2
2657
  fi
2658
done
2659 346 jeremybenn
  done
2660 90 jeremybenn
IFS=$as_save_IFS
2661
 
2662
if test $ac_prog_rejected = yes; then
2663
  # We found a bogon in the path, so make sure we never use it.
2664
  set dummy $ac_cv_prog_CC
2665
  shift
2666
  if test $# != 0; then
2667
    # We chose a different compiler from the bogus one.
2668
    # However, it has the same basename, so the bogon will be chosen
2669
    # first if we set CC to just the basename; use the full file name.
2670
    shift
2671
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2672
  fi
2673
fi
2674
fi
2675
fi
2676
CC=$ac_cv_prog_CC
2677
if test -n "$CC"; then
2678 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2679 90 jeremybenn
$as_echo "$CC" >&6; }
2680
else
2681 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 90 jeremybenn
$as_echo "no" >&6; }
2683
fi
2684
 
2685
 
2686
fi
2687
if test -z "$CC"; then
2688
  if test -n "$ac_tool_prefix"; then
2689
  for ac_prog in cl.exe
2690
  do
2691
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2692
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2693 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2695 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2696 90 jeremybenn
  $as_echo_n "(cached) " >&6
2697
else
2698
  if test -n "$CC"; then
2699
  ac_cv_prog_CC="$CC" # Let the user override the test.
2700
else
2701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702
for as_dir in $PATH
2703
do
2704
  IFS=$as_save_IFS
2705
  test -z "$as_dir" && as_dir=.
2706 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2707 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2709 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 90 jeremybenn
    break 2
2711
  fi
2712
done
2713 346 jeremybenn
  done
2714 90 jeremybenn
IFS=$as_save_IFS
2715
 
2716
fi
2717
fi
2718
CC=$ac_cv_prog_CC
2719
if test -n "$CC"; then
2720 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2721 90 jeremybenn
$as_echo "$CC" >&6; }
2722
else
2723 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 90 jeremybenn
$as_echo "no" >&6; }
2725
fi
2726
 
2727
 
2728
    test -n "$CC" && break
2729
  done
2730
fi
2731
if test -z "$CC"; then
2732
  ac_ct_CC=$CC
2733
  for ac_prog in cl.exe
2734
do
2735
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2736
set dummy $ac_prog; ac_word=$2
2737 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2739 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2740 90 jeremybenn
  $as_echo_n "(cached) " >&6
2741
else
2742
  if test -n "$ac_ct_CC"; then
2743
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2744
else
2745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746
for as_dir in $PATH
2747
do
2748
  IFS=$as_save_IFS
2749
  test -z "$as_dir" && as_dir=.
2750 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2751 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752
    ac_cv_prog_ac_ct_CC="$ac_prog"
2753 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 90 jeremybenn
    break 2
2755
  fi
2756
done
2757 346 jeremybenn
  done
2758 90 jeremybenn
IFS=$as_save_IFS
2759
 
2760
fi
2761
fi
2762
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2763
if test -n "$ac_ct_CC"; then
2764 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2765 90 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2766
else
2767 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 90 jeremybenn
$as_echo "no" >&6; }
2769
fi
2770
 
2771
 
2772
  test -n "$ac_ct_CC" && break
2773
done
2774
 
2775
  if test "x$ac_ct_CC" = x; then
2776
    CC=""
2777
  else
2778
    case $cross_compiling:$ac_tool_warned in
2779
yes:)
2780 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2781 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2782
ac_tool_warned=yes ;;
2783
esac
2784
    CC=$ac_ct_CC
2785
  fi
2786
fi
2787
 
2788
fi
2789
 
2790
 
2791 346 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2792 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2793 346 jeremybenn
as_fn_error "no acceptable C compiler found in \$PATH
2794
See \`config.log' for more details." "$LINENO" 5; }
2795 90 jeremybenn
 
2796
# Provide some information about the compiler.
2797 346 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2798 90 jeremybenn
set X $ac_compile
2799
ac_compiler=$2
2800 346 jeremybenn
for ac_option in --version -v -V -qversion; do
2801
  { { ac_try="$ac_compiler $ac_option >&5"
2802 90 jeremybenn
case "(($ac_try" in
2803
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804
  *) ac_try_echo=$ac_try;;
2805
esac
2806 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2807
$as_echo "$ac_try_echo"; } >&5
2808
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2809 90 jeremybenn
  ac_status=$?
2810 346 jeremybenn
  if test -s conftest.err; then
2811
    sed '10a\
2812
... rest of stderr output deleted ...
2813
         10q' conftest.err >conftest.er1
2814
    cat conftest.er1 >&5
2815 538 julius
    rm -f conftest.er1 conftest.err
2816 346 jeremybenn
  fi
2817
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2818
  test $ac_status = 0; }
2819
done
2820 90 jeremybenn
 
2821 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 90 jeremybenn
/* end confdefs.h.  */
2823 538 julius
#include 
2824 90 jeremybenn
int
2825
main ()
2826
{
2827 538 julius
FILE *f = fopen ("conftest.out", "w");
2828
 return ferror (f) || fclose (f) != 0;
2829 90 jeremybenn
 
2830
  ;
2831
  return 0;
2832
}
2833
_ACEOF
2834
ac_clean_files_save=$ac_clean_files
2835 538 julius
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2836 90 jeremybenn
# Try to create an executable without -o first, disregard a.out.
2837
# It will help us diagnose broken compilers, and finding out an intuition
2838
# of exeext.
2839 538 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2840
$as_echo_n "checking for C compiler default output file name... " >&6; }
2841 90 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2842
 
2843
# The possible output files:
2844
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2845
 
2846
ac_rmfiles=
2847
for ac_file in $ac_files
2848
do
2849
  case $ac_file in
2850
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2851
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2852
  esac
2853
done
2854
rm -f $ac_rmfiles
2855
 
2856 346 jeremybenn
if { { ac_try="$ac_link_default"
2857 90 jeremybenn
case "(($ac_try" in
2858
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859
  *) ac_try_echo=$ac_try;;
2860
esac
2861 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2862
$as_echo "$ac_try_echo"; } >&5
2863 90 jeremybenn
  (eval "$ac_link_default") 2>&5
2864
  ac_status=$?
2865 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2866
  test $ac_status = 0; }; then :
2867 90 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2868
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2869
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2870
# so that the user can short-circuit this test for compilers unknown to
2871
# Autoconf.
2872
for ac_file in $ac_files ''
2873
do
2874
  test -f "$ac_file" || continue
2875
  case $ac_file in
2876
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2877
        ;;
2878
    [ab].out )
2879
        # We found the default executable, but exeext='' is most
2880
        # certainly right.
2881
        break;;
2882
    *.* )
2883 346 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2884 90 jeremybenn
        then :; else
2885
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2886
        fi
2887
        # We set ac_cv_exeext here because the later test for it is not
2888
        # safe: cross compilers may not add the suffix if given an `-o'
2889
        # argument, so we may need to know it at that point already.
2890
        # Even if this section looks crufty: it has the advantage of
2891
        # actually working.
2892
        break;;
2893
    * )
2894
        break;;
2895
  esac
2896
done
2897
test "$ac_cv_exeext" = no && ac_cv_exeext=
2898
 
2899
else
2900
  ac_file=''
2901
fi
2902 538 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2903
$as_echo "$ac_file" >&6; }
2904 346 jeremybenn
if test -z "$ac_file"; then :
2905 538 julius
  $as_echo "$as_me: failed program was:" >&5
2906 90 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2907
 
2908 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2909 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910 346 jeremybenn
{ as_fn_set_status 77
2911
as_fn_error "C compiler cannot create executables
2912
See \`config.log' for more details." "$LINENO" 5; }; }
2913 90 jeremybenn
fi
2914
ac_exeext=$ac_cv_exeext
2915
 
2916 538 julius
# Check that the compiler produces executables we can run.  If not, either
2917
# the compiler is broken, or we cross compile.
2918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2919
$as_echo_n "checking whether the C compiler works... " >&6; }
2920
# If not cross compiling, check that we can run a simple program.
2921
if test "$cross_compiling" != yes; then
2922
  if { ac_try='./$ac_file'
2923
  { { case "(($ac_try" in
2924
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925
  *) ac_try_echo=$ac_try;;
2926
esac
2927
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928
$as_echo "$ac_try_echo"; } >&5
2929
  (eval "$ac_try") 2>&5
2930
  ac_status=$?
2931
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2932
  test $ac_status = 0; }; }; then
2933
    cross_compiling=no
2934
  else
2935
    if test "$cross_compiling" = maybe; then
2936
        cross_compiling=yes
2937
    else
2938
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940
as_fn_error "cannot run C compiled programs.
2941
If you meant to cross compile, use \`--host'.
2942
See \`config.log' for more details." "$LINENO" 5; }
2943
    fi
2944
  fi
2945
fi
2946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2947
$as_echo "yes" >&6; }
2948
 
2949
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2950 90 jeremybenn
ac_clean_files=$ac_clean_files_save
2951 538 julius
# Check that the compiler produces executables we can run.  If not, either
2952
# the compiler is broken, or we cross compile.
2953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2954
$as_echo_n "checking whether we are cross compiling... " >&6; }
2955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2956
$as_echo "$cross_compiling" >&6; }
2957
 
2958 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2959 90 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
2960 346 jeremybenn
if { { ac_try="$ac_link"
2961 90 jeremybenn
case "(($ac_try" in
2962
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963
  *) ac_try_echo=$ac_try;;
2964
esac
2965 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966
$as_echo "$ac_try_echo"; } >&5
2967 90 jeremybenn
  (eval "$ac_link") 2>&5
2968
  ac_status=$?
2969 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970
  test $ac_status = 0; }; then :
2971 90 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2972
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2973
# work properly (i.e., refer to `conftest.exe'), while it won't with
2974
# `rm'.
2975
for ac_file in conftest.exe conftest conftest.*; do
2976
  test -f "$ac_file" || continue
2977
  case $ac_file in
2978
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2979
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2980
          break;;
2981
    * ) break;;
2982
  esac
2983
done
2984
else
2985 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2986 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2987 346 jeremybenn
as_fn_error "cannot compute suffix of executables: cannot compile and link
2988
See \`config.log' for more details." "$LINENO" 5; }
2989 90 jeremybenn
fi
2990 538 julius
rm -f conftest$ac_cv_exeext
2991 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2992 90 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
2993
 
2994
rm -f conftest.$ac_ext
2995
EXEEXT=$ac_cv_exeext
2996
ac_exeext=$EXEEXT
2997 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2998 90 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
2999 346 jeremybenn
if test "${ac_cv_objext+set}" = set; then :
3000 90 jeremybenn
  $as_echo_n "(cached) " >&6
3001
else
3002 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 90 jeremybenn
/* end confdefs.h.  */
3004
 
3005
int
3006
main ()
3007
{
3008
 
3009
  ;
3010
  return 0;
3011
}
3012
_ACEOF
3013
rm -f conftest.o conftest.obj
3014 346 jeremybenn
if { { ac_try="$ac_compile"
3015 90 jeremybenn
case "(($ac_try" in
3016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017
  *) ac_try_echo=$ac_try;;
3018
esac
3019 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3020
$as_echo "$ac_try_echo"; } >&5
3021 90 jeremybenn
  (eval "$ac_compile") 2>&5
3022
  ac_status=$?
3023 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024
  test $ac_status = 0; }; then :
3025 90 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
3026
  test -f "$ac_file" || continue;
3027
  case $ac_file in
3028
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3029
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3030
       break;;
3031
  esac
3032
done
3033
else
3034
  $as_echo "$as_me: failed program was:" >&5
3035
sed 's/^/| /' conftest.$ac_ext >&5
3036
 
3037 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3038 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3039 346 jeremybenn
as_fn_error "cannot compute suffix of object files: cannot compile
3040
See \`config.log' for more details." "$LINENO" 5; }
3041 90 jeremybenn
fi
3042
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3043
fi
3044 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3045 90 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
3046
OBJEXT=$ac_cv_objext
3047
ac_objext=$OBJEXT
3048 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3049 90 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3050 346 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3051 90 jeremybenn
  $as_echo_n "(cached) " >&6
3052
else
3053 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054 90 jeremybenn
/* end confdefs.h.  */
3055
 
3056
int
3057
main ()
3058
{
3059
#ifndef __GNUC__
3060
       choke me
3061
#endif
3062
 
3063
  ;
3064
  return 0;
3065
}
3066
_ACEOF
3067 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3068 90 jeremybenn
  ac_compiler_gnu=yes
3069
else
3070 346 jeremybenn
  ac_compiler_gnu=no
3071 90 jeremybenn
fi
3072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3073
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3074
 
3075
fi
3076 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3077 90 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3078
if test $ac_compiler_gnu = yes; then
3079
  GCC=yes
3080
else
3081
  GCC=
3082
fi
3083
ac_test_CFLAGS=${CFLAGS+set}
3084
ac_save_CFLAGS=$CFLAGS
3085 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3086 90 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3087 346 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then :
3088 90 jeremybenn
  $as_echo_n "(cached) " >&6
3089
else
3090
  ac_save_c_werror_flag=$ac_c_werror_flag
3091
   ac_c_werror_flag=yes
3092
   ac_cv_prog_cc_g=no
3093
   CFLAGS="-g"
3094 346 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095 90 jeremybenn
/* end confdefs.h.  */
3096
 
3097
int
3098
main ()
3099
{
3100
 
3101
  ;
3102
  return 0;
3103
}
3104
_ACEOF
3105 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3106 90 jeremybenn
  ac_cv_prog_cc_g=yes
3107
else
3108 346 jeremybenn
  CFLAGS=""
3109
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 90 jeremybenn
/* end confdefs.h.  */
3111
 
3112
int
3113
main ()
3114
{
3115
 
3116
  ;
3117
  return 0;
3118
}
3119
_ACEOF
3120 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3121
 
3122 236 jeremybenn
else
3123 346 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
3124 90 jeremybenn
         CFLAGS="-g"
3125 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126 90 jeremybenn
/* end confdefs.h.  */
3127
 
3128
int
3129
main ()
3130
{
3131
 
3132
  ;
3133
  return 0;
3134
}
3135
_ACEOF
3136 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3137 90 jeremybenn
  ac_cv_prog_cc_g=yes
3138
fi
3139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140
fi
3141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142
fi
3143
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144
   ac_c_werror_flag=$ac_save_c_werror_flag
3145
fi
3146 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3147 90 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
3148
if test "$ac_test_CFLAGS" = set; then
3149
  CFLAGS=$ac_save_CFLAGS
3150
elif test $ac_cv_prog_cc_g = yes; then
3151
  if test "$GCC" = yes; then
3152
    CFLAGS="-g -O2"
3153
  else
3154
    CFLAGS="-g"
3155
  fi
3156
else
3157
  if test "$GCC" = yes; then
3158
    CFLAGS="-O2"
3159
  else
3160
    CFLAGS=
3161
  fi
3162
fi
3163 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3164 90 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3165 346 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3166 90 jeremybenn
  $as_echo_n "(cached) " >&6
3167
else
3168
  ac_cv_prog_cc_c89=no
3169
ac_save_CC=$CC
3170 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 90 jeremybenn
/* end confdefs.h.  */
3172
#include 
3173
#include 
3174
#include 
3175
#include 
3176
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3177
struct buf { int x; };
3178
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3179
static char *e (p, i)
3180
     char **p;
3181
     int i;
3182
{
3183
  return p[i];
3184
}
3185
static char *f (char * (*g) (char **, int), char **p, ...)
3186
{
3187
  char *s;
3188
  va_list v;
3189
  va_start (v,p);
3190
  s = g (p, va_arg (v,int));
3191
  va_end (v);
3192
  return s;
3193
}
3194
 
3195
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3196
   function prototypes and stuff, but not '\xHH' hex character constants.
3197
   These don't provoke an error unfortunately, instead are silently treated
3198
   as 'x'.  The following induces an error, until -std is added to get
3199
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3200
   array size at least.  It's necessary to write '\x00'==0 to get something
3201
   that's true only with -std.  */
3202
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3203
 
3204
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3205
   inside strings and character constants.  */
3206
#define FOO(x) 'x'
3207
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3208
 
3209
int test (int i, double x);
3210
struct s1 {int (*f) (int a);};
3211
struct s2 {int (*f) (double a);};
3212
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3213
int argc;
3214
char **argv;
3215
int
3216
main ()
3217
{
3218
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3219
  ;
3220
  return 0;
3221
}
3222
_ACEOF
3223
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3224
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3225
do
3226
  CC="$ac_save_CC $ac_arg"
3227 346 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
3228 90 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3229
fi
3230
rm -f core conftest.err conftest.$ac_objext
3231
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3232
done
3233
rm -f conftest.$ac_ext
3234
CC=$ac_save_CC
3235
 
3236
fi
3237
# AC_CACHE_VAL
3238
case "x$ac_cv_prog_cc_c89" in
3239
  x)
3240 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3241 90 jeremybenn
$as_echo "none needed" >&6; } ;;
3242
  xno)
3243 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3244 90 jeremybenn
$as_echo "unsupported" >&6; } ;;
3245
  *)
3246
    CC="$CC $ac_cv_prog_cc_c89"
3247 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3248 90 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3249
esac
3250 346 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
3251 90 jeremybenn
 
3252 346 jeremybenn
fi
3253 90 jeremybenn
 
3254
ac_ext=c
3255
ac_cpp='$CPP $CPPFLAGS'
3256
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259
 
3260 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3261 90 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3262 346 jeremybenn
if test "${ac_cv_path_SED+set}" = set; then :
3263 90 jeremybenn
  $as_echo_n "(cached) " >&6
3264
else
3265
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3266
     for ac_i in 1 2 3 4 5 6 7; do
3267
       ac_script="$ac_script$as_nl$ac_script"
3268
     done
3269
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3270 346 jeremybenn
     { ac_script=; unset ac_script;}
3271 90 jeremybenn
     if test -z "$SED"; then
3272
  ac_path_SED_found=false
3273
  # Loop through the user's path and test for each of PROGNAME-LIST
3274
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275
for as_dir in $PATH
3276
do
3277
  IFS=$as_save_IFS
3278
  test -z "$as_dir" && as_dir=.
3279 346 jeremybenn
    for ac_prog in sed gsed; do
3280 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3281
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3282
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3283
# Check for GNU ac_path_SED and select it if it is found.
3284
  # Check for GNU $ac_path_SED
3285
case `"$ac_path_SED" --version 2>&1` in
3286
*GNU*)
3287
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3288
*)
3289
  ac_count=0
3290
  $as_echo_n 0123456789 >"conftest.in"
3291
  while :
3292
  do
3293
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3294
    mv "conftest.tmp" "conftest.in"
3295
    cp "conftest.in" "conftest.nl"
3296
    $as_echo '' >> "conftest.nl"
3297
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3298
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3299 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3300 90 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3301
      # Best one so far, save it but keep looking for a better one
3302
      ac_cv_path_SED="$ac_path_SED"
3303
      ac_path_SED_max=$ac_count
3304
    fi
3305
    # 10*(2^10) chars as input seems more than enough
3306
    test $ac_count -gt 10 && break
3307
  done
3308
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3309
esac
3310
 
3311
      $ac_path_SED_found && break 3
3312
    done
3313
  done
3314 346 jeremybenn
  done
3315 90 jeremybenn
IFS=$as_save_IFS
3316
  if test -z "$ac_cv_path_SED"; then
3317 346 jeremybenn
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3318 90 jeremybenn
  fi
3319
else
3320
  ac_cv_path_SED=$SED
3321
fi
3322
 
3323
fi
3324 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3325 90 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
3326
 SED="$ac_cv_path_SED"
3327
  rm -f conftest.sed
3328
 
3329
test -z "$SED" && SED=sed
3330
Xsed="$SED -e 1s/^X//"
3331
 
3332
 
3333
 
3334
 
3335
 
3336
 
3337
 
3338
 
3339
 
3340
 
3341
 
3342 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3343 90 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3344 346 jeremybenn
if test "${ac_cv_path_GREP+set}" = set; then :
3345 90 jeremybenn
  $as_echo_n "(cached) " >&6
3346
else
3347
  if test -z "$GREP"; then
3348
  ac_path_GREP_found=false
3349
  # Loop through the user's path and test for each of PROGNAME-LIST
3350
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3352
do
3353
  IFS=$as_save_IFS
3354
  test -z "$as_dir" && as_dir=.
3355 346 jeremybenn
    for ac_prog in grep ggrep; do
3356 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3357
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3358
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3359
# Check for GNU ac_path_GREP and select it if it is found.
3360
  # Check for GNU $ac_path_GREP
3361
case `"$ac_path_GREP" --version 2>&1` in
3362
*GNU*)
3363
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3364
*)
3365
  ac_count=0
3366
  $as_echo_n 0123456789 >"conftest.in"
3367
  while :
3368
  do
3369
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3370
    mv "conftest.tmp" "conftest.in"
3371
    cp "conftest.in" "conftest.nl"
3372
    $as_echo 'GREP' >> "conftest.nl"
3373
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3374
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3375 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3376 90 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3377
      # Best one so far, save it but keep looking for a better one
3378
      ac_cv_path_GREP="$ac_path_GREP"
3379
      ac_path_GREP_max=$ac_count
3380
    fi
3381
    # 10*(2^10) chars as input seems more than enough
3382
    test $ac_count -gt 10 && break
3383
  done
3384
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3385
esac
3386
 
3387
      $ac_path_GREP_found && break 3
3388
    done
3389
  done
3390 346 jeremybenn
  done
3391 90 jeremybenn
IFS=$as_save_IFS
3392
  if test -z "$ac_cv_path_GREP"; then
3393 346 jeremybenn
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3394 90 jeremybenn
  fi
3395
else
3396
  ac_cv_path_GREP=$GREP
3397
fi
3398
 
3399
fi
3400 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3401 90 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3402
 GREP="$ac_cv_path_GREP"
3403
 
3404
 
3405 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3406 90 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3407 346 jeremybenn
if test "${ac_cv_path_EGREP+set}" = set; then :
3408 90 jeremybenn
  $as_echo_n "(cached) " >&6
3409
else
3410
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3411
   then ac_cv_path_EGREP="$GREP -E"
3412
   else
3413
     if test -z "$EGREP"; then
3414
  ac_path_EGREP_found=false
3415
  # Loop through the user's path and test for each of PROGNAME-LIST
3416
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3418
do
3419
  IFS=$as_save_IFS
3420
  test -z "$as_dir" && as_dir=.
3421 346 jeremybenn
    for ac_prog in egrep; do
3422 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3423
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3424
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3425
# Check for GNU ac_path_EGREP and select it if it is found.
3426
  # Check for GNU $ac_path_EGREP
3427
case `"$ac_path_EGREP" --version 2>&1` in
3428
*GNU*)
3429
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3430
*)
3431
  ac_count=0
3432
  $as_echo_n 0123456789 >"conftest.in"
3433
  while :
3434
  do
3435
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3436
    mv "conftest.tmp" "conftest.in"
3437
    cp "conftest.in" "conftest.nl"
3438
    $as_echo 'EGREP' >> "conftest.nl"
3439
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3440
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3441 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3442 90 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3443
      # Best one so far, save it but keep looking for a better one
3444
      ac_cv_path_EGREP="$ac_path_EGREP"
3445
      ac_path_EGREP_max=$ac_count
3446
    fi
3447
    # 10*(2^10) chars as input seems more than enough
3448
    test $ac_count -gt 10 && break
3449
  done
3450
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3451
esac
3452
 
3453
      $ac_path_EGREP_found && break 3
3454
    done
3455
  done
3456 346 jeremybenn
  done
3457 90 jeremybenn
IFS=$as_save_IFS
3458
  if test -z "$ac_cv_path_EGREP"; then
3459 346 jeremybenn
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3460 90 jeremybenn
  fi
3461
else
3462
  ac_cv_path_EGREP=$EGREP
3463
fi
3464
 
3465
   fi
3466
fi
3467 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3468 90 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3469
 EGREP="$ac_cv_path_EGREP"
3470
 
3471
 
3472 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3473 90 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
3474 346 jeremybenn
if test "${ac_cv_path_FGREP+set}" = set; then :
3475 90 jeremybenn
  $as_echo_n "(cached) " >&6
3476
else
3477
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3478
   then ac_cv_path_FGREP="$GREP -F"
3479
   else
3480
     if test -z "$FGREP"; then
3481
  ac_path_FGREP_found=false
3482
  # Loop through the user's path and test for each of PROGNAME-LIST
3483
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3485
do
3486
  IFS=$as_save_IFS
3487
  test -z "$as_dir" && as_dir=.
3488 346 jeremybenn
    for ac_prog in fgrep; do
3489 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3490
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3491
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3492
# Check for GNU ac_path_FGREP and select it if it is found.
3493
  # Check for GNU $ac_path_FGREP
3494
case `"$ac_path_FGREP" --version 2>&1` in
3495
*GNU*)
3496
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3497
*)
3498
  ac_count=0
3499
  $as_echo_n 0123456789 >"conftest.in"
3500
  while :
3501
  do
3502
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3503
    mv "conftest.tmp" "conftest.in"
3504
    cp "conftest.in" "conftest.nl"
3505
    $as_echo 'FGREP' >> "conftest.nl"
3506
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3507
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3508 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3509 90 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3510
      # Best one so far, save it but keep looking for a better one
3511
      ac_cv_path_FGREP="$ac_path_FGREP"
3512
      ac_path_FGREP_max=$ac_count
3513
    fi
3514
    # 10*(2^10) chars as input seems more than enough
3515
    test $ac_count -gt 10 && break
3516
  done
3517
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3518
esac
3519
 
3520
      $ac_path_FGREP_found && break 3
3521
    done
3522
  done
3523 346 jeremybenn
  done
3524 90 jeremybenn
IFS=$as_save_IFS
3525
  if test -z "$ac_cv_path_FGREP"; then
3526 346 jeremybenn
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3527 90 jeremybenn
  fi
3528
else
3529
  ac_cv_path_FGREP=$FGREP
3530
fi
3531
 
3532
   fi
3533
fi
3534 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3535 90 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
3536
 FGREP="$ac_cv_path_FGREP"
3537
 
3538
 
3539
test -z "$GREP" && GREP=grep
3540
 
3541
 
3542
 
3543
 
3544
 
3545
 
3546
 
3547
 
3548
 
3549
 
3550
 
3551
 
3552
 
3553
 
3554
 
3555
 
3556
 
3557
 
3558
 
3559
# Check whether --with-gnu-ld was given.
3560 346 jeremybenn
if test "${with_gnu_ld+set}" = set; then :
3561 90 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3562
else
3563
  with_gnu_ld=no
3564
fi
3565
 
3566
ac_prog=ld
3567
if test "$GCC" = yes; then
3568
  # Check if gcc -print-prog-name=ld gives a path.
3569 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3570 90 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
3571
  case $host in
3572
  *-*-mingw*)
3573
    # gcc leaves a trailing carriage return which upsets mingw
3574
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3575
  *)
3576
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3577
  esac
3578
  case $ac_prog in
3579
    # Accept absolute paths.
3580
    [\\/]* | ?:[\\/]*)
3581
      re_direlt='/[^/][^/]*/\.\./'
3582
      # Canonicalize the pathname of ld
3583
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3584
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3585
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3586
      done
3587
      test -z "$LD" && LD="$ac_prog"
3588
      ;;
3589
  "")
3590
    # If it fails, then pretend we aren't using GCC.
3591
    ac_prog=ld
3592
    ;;
3593
  *)
3594
    # If it is relative, then search for the first ld in PATH.
3595
    with_gnu_ld=unknown
3596
    ;;
3597
  esac
3598
elif test "$with_gnu_ld" = yes; then
3599 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3600 90 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
3601
else
3602 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3603 90 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
3604
fi
3605 346 jeremybenn
if test "${lt_cv_path_LD+set}" = set; then :
3606 90 jeremybenn
  $as_echo_n "(cached) " >&6
3607
else
3608
  if test -z "$LD"; then
3609
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3610
  for ac_dir in $PATH; do
3611
    IFS="$lt_save_ifs"
3612
    test -z "$ac_dir" && ac_dir=.
3613
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3614
      lt_cv_path_LD="$ac_dir/$ac_prog"
3615
      # Check to see if the program is GNU ld.  I'd rather use --version,
3616
      # but apparently some variants of GNU ld only accept -v.
3617
      # Break only if it was the GNU/non-GNU ld that we prefer.
3618
      case `"$lt_cv_path_LD" -v 2>&1 
3619
      *GNU* | *'with BFD'*)
3620
        test "$with_gnu_ld" != no && break
3621
        ;;
3622
      *)
3623
        test "$with_gnu_ld" != yes && break
3624
        ;;
3625
      esac
3626
    fi
3627
  done
3628
  IFS="$lt_save_ifs"
3629
else
3630
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3631
fi
3632
fi
3633
 
3634
LD="$lt_cv_path_LD"
3635
if test -n "$LD"; then
3636 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3637 90 jeremybenn
$as_echo "$LD" >&6; }
3638
else
3639 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 90 jeremybenn
$as_echo "no" >&6; }
3641
fi
3642 346 jeremybenn
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3644 90 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3645 346 jeremybenn
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3646 90 jeremybenn
  $as_echo_n "(cached) " >&6
3647
else
3648
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3649
case `$LD -v 2>&1 
3650
*GNU* | *'with BFD'*)
3651
  lt_cv_prog_gnu_ld=yes
3652
  ;;
3653
*)
3654
  lt_cv_prog_gnu_ld=no
3655
  ;;
3656
esac
3657
fi
3658 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3659 90 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3660
with_gnu_ld=$lt_cv_prog_gnu_ld
3661
 
3662
 
3663
 
3664
 
3665
 
3666
 
3667
 
3668
 
3669
 
3670 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3671 90 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3672 346 jeremybenn
if test "${lt_cv_path_NM+set}" = set; then :
3673 90 jeremybenn
  $as_echo_n "(cached) " >&6
3674
else
3675
  if test -n "$NM"; then
3676
  # Let the user override the test.
3677
  lt_cv_path_NM="$NM"
3678
else
3679
  lt_nm_to_check="${ac_tool_prefix}nm"
3680
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3681
    lt_nm_to_check="$lt_nm_to_check nm"
3682
  fi
3683
  for lt_tmp_nm in $lt_nm_to_check; do
3684
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3685
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3686
      IFS="$lt_save_ifs"
3687
      test -z "$ac_dir" && ac_dir=.
3688
      tmp_nm="$ac_dir/$lt_tmp_nm"
3689
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3690
        # Check to see if the nm accepts a BSD-compat flag.
3691
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3692
        #   nm: unknown option "B" ignored
3693
        # Tru64's nm complains that /dev/null is an invalid object file
3694
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3695
        */dev/null* | *'Invalid file or object type'*)
3696
          lt_cv_path_NM="$tmp_nm -B"
3697
          break
3698
          ;;
3699
        *)
3700
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3701
          */dev/null*)
3702
            lt_cv_path_NM="$tmp_nm -p"
3703
            break
3704
            ;;
3705
          *)
3706
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3707
            continue # so that we can try to find one that supports BSD flags
3708
            ;;
3709
          esac
3710
          ;;
3711
        esac
3712
      fi
3713
    done
3714
    IFS="$lt_save_ifs"
3715
  done
3716
  : ${lt_cv_path_NM=no}
3717
fi
3718
fi
3719 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3720 90 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
3721
if test "$lt_cv_path_NM" != "no"; then
3722
  NM="$lt_cv_path_NM"
3723
else
3724
  # Didn't find any BSD compatible name lister, look for dumpbin.
3725
  if test -n "$ac_tool_prefix"; then
3726
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3727
  do
3728
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3729
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3730 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
3732 346 jeremybenn
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
3733 90 jeremybenn
  $as_echo_n "(cached) " >&6
3734
else
3735
  if test -n "$DUMPBIN"; then
3736
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3737
else
3738
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739
for as_dir in $PATH
3740
do
3741
  IFS=$as_save_IFS
3742
  test -z "$as_dir" && as_dir=.
3743 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3744 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3745
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3746 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 90 jeremybenn
    break 2
3748
  fi
3749
done
3750 346 jeremybenn
  done
3751 90 jeremybenn
IFS=$as_save_IFS
3752
 
3753
fi
3754
fi
3755
DUMPBIN=$ac_cv_prog_DUMPBIN
3756
if test -n "$DUMPBIN"; then
3757 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3758 90 jeremybenn
$as_echo "$DUMPBIN" >&6; }
3759
else
3760 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 90 jeremybenn
$as_echo "no" >&6; }
3762
fi
3763
 
3764
 
3765
    test -n "$DUMPBIN" && break
3766
  done
3767
fi
3768
if test -z "$DUMPBIN"; then
3769
  ac_ct_DUMPBIN=$DUMPBIN
3770
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3771
do
3772
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3773
set dummy $ac_prog; ac_word=$2
3774 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
3776 346 jeremybenn
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
3777 90 jeremybenn
  $as_echo_n "(cached) " >&6
3778
else
3779
  if test -n "$ac_ct_DUMPBIN"; then
3780
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3781
else
3782
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783
for as_dir in $PATH
3784
do
3785
  IFS=$as_save_IFS
3786
  test -z "$as_dir" && as_dir=.
3787 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3788 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3789
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3790 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3791 90 jeremybenn
    break 2
3792
  fi
3793
done
3794 346 jeremybenn
  done
3795 90 jeremybenn
IFS=$as_save_IFS
3796
 
3797
fi
3798
fi
3799
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3800
if test -n "$ac_ct_DUMPBIN"; then
3801 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3802 90 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
3803
else
3804 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 90 jeremybenn
$as_echo "no" >&6; }
3806
fi
3807
 
3808
 
3809
  test -n "$ac_ct_DUMPBIN" && break
3810
done
3811
 
3812
  if test "x$ac_ct_DUMPBIN" = x; then
3813
    DUMPBIN=":"
3814
  else
3815
    case $cross_compiling:$ac_tool_warned in
3816
yes:)
3817 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3818 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3819
ac_tool_warned=yes ;;
3820
esac
3821
    DUMPBIN=$ac_ct_DUMPBIN
3822
  fi
3823
fi
3824
 
3825
 
3826
  if test "$DUMPBIN" != ":"; then
3827
    NM="$DUMPBIN"
3828
  fi
3829
fi
3830
test -z "$NM" && NM=nm
3831
 
3832
 
3833
 
3834
 
3835
 
3836
 
3837 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3838 90 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3839 346 jeremybenn
if test "${lt_cv_nm_interface+set}" = set; then :
3840 90 jeremybenn
  $as_echo_n "(cached) " >&6
3841
else
3842
  lt_cv_nm_interface="BSD nm"
3843
  echo "int some_variable = 0;" > conftest.$ac_ext
3844 538 julius
  (eval echo "\"\$as_me:3844: $ac_compile\"" >&5)
3845 90 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
3846
  cat conftest.err >&5
3847 538 julius
  (eval echo "\"\$as_me:3847: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3848 90 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3849
  cat conftest.err >&5
3850 538 julius
  (eval echo "\"\$as_me:3850: output\"" >&5)
3851 90 jeremybenn
  cat conftest.out >&5
3852
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3853
    lt_cv_nm_interface="MS dumpbin"
3854
  fi
3855
  rm -f conftest*
3856
fi
3857 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3858 90 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
3859
 
3860 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3861 90 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
3862
LN_S=$as_ln_s
3863
if test "$LN_S" = "ln -s"; then
3864 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3865 90 jeremybenn
$as_echo "yes" >&6; }
3866
else
3867 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3868 90 jeremybenn
$as_echo "no, using $LN_S" >&6; }
3869
fi
3870
 
3871
# find the maximum length of command line arguments
3872 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3873 90 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3874 346 jeremybenn
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
3875 90 jeremybenn
  $as_echo_n "(cached) " >&6
3876
else
3877
    i=0
3878
  teststring="ABCD"
3879
 
3880
  case $build_os in
3881
  msdosdjgpp*)
3882
    # On DJGPP, this test can blow up pretty badly due to problems in libc
3883
    # (any single argument exceeding 2000 bytes causes a buffer overrun
3884
    # during glob expansion).  Even if it were fixed, the result of this
3885
    # check would be larger than it should be.
3886
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3887
    ;;
3888
 
3889
  gnu*)
3890
    # Under GNU Hurd, this test is not required because there is
3891
    # no limit to the length of command line arguments.
3892
    # Libtool will interpret -1 as no limit whatsoever
3893
    lt_cv_sys_max_cmd_len=-1;
3894
    ;;
3895
 
3896
  cygwin* | mingw* | cegcc*)
3897
    # On Win9x/ME, this test blows up -- it succeeds, but takes
3898
    # about 5 minutes as the teststring grows exponentially.
3899
    # Worse, since 9x/ME are not pre-emptively multitasking,
3900
    # you end up with a "frozen" computer, even though with patience
3901
    # the test eventually succeeds (with a max line length of 256k).
3902
    # Instead, let's just punt: use the minimum linelength reported by
3903
    # all of the supported platforms: 8192 (on NT/2K/XP).
3904
    lt_cv_sys_max_cmd_len=8192;
3905
    ;;
3906
 
3907
  amigaos*)
3908
    # On AmigaOS with pdksh, this test takes hours, literally.
3909
    # So we just punt and use a minimum line length of 8192.
3910
    lt_cv_sys_max_cmd_len=8192;
3911
    ;;
3912
 
3913
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3914
    # This has been around since 386BSD, at least.  Likely further.
3915
    if test -x /sbin/sysctl; then
3916
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3917
    elif test -x /usr/sbin/sysctl; then
3918
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3919
    else
3920
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3921
    fi
3922
    # And add a safety zone
3923
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3924
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3925
    ;;
3926
 
3927
  interix*)
3928
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3929
    lt_cv_sys_max_cmd_len=196608
3930
    ;;
3931
 
3932
  osf*)
3933
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3934
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3935
    # nice to cause kernel panics so lets avoid the loop below.
3936
    # First set a reasonable default.
3937
    lt_cv_sys_max_cmd_len=16384
3938
    #
3939
    if test -x /sbin/sysconfig; then
3940
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3941
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3942
      esac
3943
    fi
3944
    ;;
3945
  sco3.2v5*)
3946
    lt_cv_sys_max_cmd_len=102400
3947
    ;;
3948
  sysv5* | sco5v6* | sysv4.2uw2*)
3949
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3950
    if test -n "$kargmax"; then
3951
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3952
    else
3953
      lt_cv_sys_max_cmd_len=32768
3954
    fi
3955
    ;;
3956
  *)
3957
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3958
    if test -n "$lt_cv_sys_max_cmd_len"; then
3959
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3960
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3961
    else
3962
      # Make teststring a little bigger before we do anything with it.
3963
      # a 1K string should be a reasonable start.
3964
      for i in 1 2 3 4 5 6 7 8 ; do
3965
        teststring=$teststring$teststring
3966
      done
3967
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3968
      # If test is not a shell built-in, we'll probably end up computing a
3969
      # maximum length that is only half of the actual maximum length, but
3970
      # we can't tell.
3971
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3972
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3973
              test $i != 17 # 1/2 MB should be enough
3974
      do
3975
        i=`expr $i + 1`
3976
        teststring=$teststring$teststring
3977
      done
3978
      # Only check the string length outside the loop.
3979
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3980
      teststring=
3981
      # Add a significant safety factor because C++ compilers can tack on
3982
      # massive amounts of additional arguments before passing them to the
3983
      # linker.  It appears as though 1/2 is a usable value.
3984
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3985
    fi
3986
    ;;
3987
  esac
3988
 
3989
fi
3990
 
3991
if test -n $lt_cv_sys_max_cmd_len ; then
3992 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
3993 90 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3994
else
3995 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
3996 90 jeremybenn
$as_echo "none" >&6; }
3997
fi
3998
max_cmd_len=$lt_cv_sys_max_cmd_len
3999
 
4000
 
4001
 
4002
 
4003
 
4004
 
4005
: ${CP="cp -f"}
4006
: ${MV="mv -f"}
4007
: ${RM="rm -f"}
4008
 
4009 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4010 90 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4011
# Try some XSI features
4012
xsi_shell=no
4013
( _lt_dummy="a/b/c"
4014
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4015
      = c,a/b,, \
4016
    && eval 'test $(( 1 + 1 )) -eq 2 \
4017
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4018
  && xsi_shell=yes
4019 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4020 90 jeremybenn
$as_echo "$xsi_shell" >&6; }
4021
 
4022
 
4023 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4024 90 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4025
lt_shell_append=no
4026
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4027
    >/dev/null 2>&1 \
4028
  && lt_shell_append=yes
4029 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4030 90 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4031
 
4032
 
4033
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4034
  lt_unset=unset
4035
else
4036
  lt_unset=false
4037
fi
4038
 
4039
 
4040
 
4041
 
4042
 
4043
# test EBCDIC or ASCII
4044
case `echo X|tr X '\101'` in
4045
 A) # ASCII based system
4046
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4047
  lt_SP2NL='tr \040 \012'
4048
  lt_NL2SP='tr \015\012 \040\040'
4049
  ;;
4050
 *) # EBCDIC based system
4051
  lt_SP2NL='tr \100 \n'
4052
  lt_NL2SP='tr \r\n \100\100'
4053
  ;;
4054
esac
4055
 
4056
 
4057
 
4058
 
4059
 
4060
 
4061
 
4062
 
4063
 
4064 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4065 90 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4066 346 jeremybenn
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4067 90 jeremybenn
  $as_echo_n "(cached) " >&6
4068
else
4069
  lt_cv_ld_reload_flag='-r'
4070
fi
4071 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4072 90 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4073
reload_flag=$lt_cv_ld_reload_flag
4074
case $reload_flag in
4075
"" | " "*) ;;
4076
*) reload_flag=" $reload_flag" ;;
4077
esac
4078
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4079
case $host_os in
4080
  darwin*)
4081
    if test "$GCC" = yes; then
4082
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4083
    else
4084
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4085
    fi
4086
    ;;
4087
esac
4088
 
4089
 
4090
 
4091
 
4092
 
4093
 
4094
 
4095
 
4096
 
4097
if test -n "$ac_tool_prefix"; then
4098
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4099
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4100 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4102 346 jeremybenn
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4103 90 jeremybenn
  $as_echo_n "(cached) " >&6
4104
else
4105
  if test -n "$OBJDUMP"; then
4106
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4107
else
4108
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109
for as_dir in $PATH
4110
do
4111
  IFS=$as_save_IFS
4112
  test -z "$as_dir" && as_dir=.
4113 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4114 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4116 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 90 jeremybenn
    break 2
4118
  fi
4119
done
4120 346 jeremybenn
  done
4121 90 jeremybenn
IFS=$as_save_IFS
4122
 
4123
fi
4124
fi
4125
OBJDUMP=$ac_cv_prog_OBJDUMP
4126
if test -n "$OBJDUMP"; then
4127 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4128 90 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4129
else
4130 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 90 jeremybenn
$as_echo "no" >&6; }
4132
fi
4133
 
4134
 
4135
fi
4136
if test -z "$ac_cv_prog_OBJDUMP"; then
4137
  ac_ct_OBJDUMP=$OBJDUMP
4138
  # Extract the first word of "objdump", so it can be a program name with args.
4139
set dummy objdump; ac_word=$2
4140 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4142 346 jeremybenn
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4143 90 jeremybenn
  $as_echo_n "(cached) " >&6
4144
else
4145
  if test -n "$ac_ct_OBJDUMP"; then
4146
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4147
else
4148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149
for as_dir in $PATH
4150
do
4151
  IFS=$as_save_IFS
4152
  test -z "$as_dir" && as_dir=.
4153 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4154 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4155
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4156 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 90 jeremybenn
    break 2
4158
  fi
4159
done
4160 346 jeremybenn
  done
4161 90 jeremybenn
IFS=$as_save_IFS
4162
 
4163
fi
4164
fi
4165
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4166
if test -n "$ac_ct_OBJDUMP"; then
4167 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4168 90 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4169
else
4170 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 90 jeremybenn
$as_echo "no" >&6; }
4172
fi
4173
 
4174
  if test "x$ac_ct_OBJDUMP" = x; then
4175
    OBJDUMP="false"
4176
  else
4177
    case $cross_compiling:$ac_tool_warned in
4178
yes:)
4179 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4180 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4181
ac_tool_warned=yes ;;
4182
esac
4183
    OBJDUMP=$ac_ct_OBJDUMP
4184
  fi
4185
else
4186
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4187
fi
4188
 
4189
test -z "$OBJDUMP" && OBJDUMP=objdump
4190
 
4191
 
4192
 
4193
 
4194
 
4195
 
4196
 
4197
 
4198
 
4199 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4200 90 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4201 346 jeremybenn
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4202 90 jeremybenn
  $as_echo_n "(cached) " >&6
4203
else
4204
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4205
lt_cv_file_magic_test_file=
4206
lt_cv_deplibs_check_method='unknown'
4207
# Need to set the preceding variable on all platforms that support
4208
# interlibrary dependencies.
4209
# 'none' -- dependencies not supported.
4210
# `unknown' -- same as none, but documents that we really don't know.
4211
# 'pass_all' -- all dependencies passed with no checks.
4212
# 'test_compile' -- check by making test program.
4213
# 'file_magic [[regex]]' -- check by looking for files in library path
4214
# which responds to the $file_magic_cmd with a given extended regex.
4215
# If you have `file' or equivalent on your system and you're not sure
4216
# whether `pass_all' will *always* work, you probably want this one.
4217
 
4218
case $host_os in
4219
aix[4-9]*)
4220
  lt_cv_deplibs_check_method=pass_all
4221
  ;;
4222
 
4223
beos*)
4224
  lt_cv_deplibs_check_method=pass_all
4225
  ;;
4226
 
4227
bsdi[45]*)
4228
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4229
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4230
  lt_cv_file_magic_test_file=/shlib/libc.so
4231
  ;;
4232
 
4233
cygwin*)
4234
  # func_win32_libid is a shell function defined in ltmain.sh
4235
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4236
  lt_cv_file_magic_cmd='func_win32_libid'
4237
  ;;
4238
 
4239
mingw* | pw32*)
4240
  # Base MSYS/MinGW do not provide the 'file' command needed by
4241
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4242
  # unless we find 'file', for example because we are cross-compiling.
4243
  if ( file / ) >/dev/null 2>&1; then
4244
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4245
    lt_cv_file_magic_cmd='func_win32_libid'
4246
  else
4247
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4248
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4249
  fi
4250
  ;;
4251
 
4252
cegcc)
4253
  # use the weaker test based on 'objdump'. See mingw*.
4254
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4255
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4256
  ;;
4257
 
4258
darwin* | rhapsody*)
4259
  lt_cv_deplibs_check_method=pass_all
4260
  ;;
4261
 
4262
freebsd* | dragonfly*)
4263
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4264
    case $host_cpu in
4265
    i*86 )
4266
      # Not sure whether the presence of OpenBSD here was a mistake.
4267
      # Let's accept both of them until this is cleared up.
4268
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4269
      lt_cv_file_magic_cmd=/usr/bin/file
4270
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4271
      ;;
4272
    esac
4273
  else
4274
    lt_cv_deplibs_check_method=pass_all
4275
  fi
4276
  ;;
4277
 
4278
gnu*)
4279
  lt_cv_deplibs_check_method=pass_all
4280
  ;;
4281
 
4282
hpux10.20* | hpux11*)
4283
  lt_cv_file_magic_cmd=/usr/bin/file
4284
  case $host_cpu in
4285
  ia64*)
4286
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4287
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4288
    ;;
4289
  hppa*64*)
4290
    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]'
4291
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4292
    ;;
4293
  *)
4294
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4295
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4296
    ;;
4297
  esac
4298
  ;;
4299
 
4300
interix[3-9]*)
4301
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4302
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4303
  ;;
4304
 
4305
irix5* | irix6* | nonstopux*)
4306
  case $LD in
4307
  *-32|*"-32 ") libmagic=32-bit;;
4308
  *-n32|*"-n32 ") libmagic=N32;;
4309
  *-64|*"-64 ") libmagic=64-bit;;
4310
  *) libmagic=never-match;;
4311
  esac
4312
  lt_cv_deplibs_check_method=pass_all
4313
  ;;
4314
 
4315
# This must be Linux ELF.
4316
linux* | k*bsd*-gnu)
4317
  lt_cv_deplibs_check_method=pass_all
4318
  ;;
4319
 
4320 93 jeremybenn
netbsd* | netbsdelf*-gnu)
4321 90 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4322
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4323
  else
4324
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4325
  fi
4326
  ;;
4327
 
4328
newos6*)
4329
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4330
  lt_cv_file_magic_cmd=/usr/bin/file
4331
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4332
  ;;
4333
 
4334
*nto* | *qnx*)
4335
  lt_cv_deplibs_check_method=pass_all
4336
  ;;
4337
 
4338
openbsd*)
4339
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4340
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4341
  else
4342
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4343
  fi
4344
  ;;
4345
 
4346
osf3* | osf4* | osf5*)
4347
  lt_cv_deplibs_check_method=pass_all
4348
  ;;
4349
 
4350
rdos*)
4351
  lt_cv_deplibs_check_method=pass_all
4352
  ;;
4353
 
4354
solaris*)
4355
  lt_cv_deplibs_check_method=pass_all
4356
  ;;
4357
 
4358
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4359
  lt_cv_deplibs_check_method=pass_all
4360
  ;;
4361
 
4362
sysv4 | sysv4.3*)
4363
  case $host_vendor in
4364
  motorola)
4365
    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]'
4366
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4367
    ;;
4368
  ncr)
4369
    lt_cv_deplibs_check_method=pass_all
4370
    ;;
4371
  sequent)
4372
    lt_cv_file_magic_cmd='/bin/file'
4373
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4374
    ;;
4375
  sni)
4376
    lt_cv_file_magic_cmd='/bin/file'
4377
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4378
    lt_cv_file_magic_test_file=/lib/libc.so
4379
    ;;
4380
  siemens)
4381
    lt_cv_deplibs_check_method=pass_all
4382
    ;;
4383
  pc)
4384
    lt_cv_deplibs_check_method=pass_all
4385
    ;;
4386
  esac
4387
  ;;
4388
 
4389
tpf*)
4390
  lt_cv_deplibs_check_method=pass_all
4391
  ;;
4392
esac
4393
 
4394
fi
4395 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4396 90 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
4397
file_magic_cmd=$lt_cv_file_magic_cmd
4398
deplibs_check_method=$lt_cv_deplibs_check_method
4399
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4400
 
4401
 
4402
 
4403
 
4404
 
4405
 
4406
 
4407
 
4408
 
4409
 
4410
 
4411
 
4412
if test -n "$ac_tool_prefix"; then
4413
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4414
set dummy ${ac_tool_prefix}ar; ac_word=$2
4415 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4417 346 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then :
4418 90 jeremybenn
  $as_echo_n "(cached) " >&6
4419
else
4420
  if test -n "$AR"; then
4421
  ac_cv_prog_AR="$AR" # Let the user override the test.
4422
else
4423
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424
for as_dir in $PATH
4425
do
4426
  IFS=$as_save_IFS
4427
  test -z "$as_dir" && as_dir=.
4428 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4429 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4431 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 90 jeremybenn
    break 2
4433
  fi
4434
done
4435 346 jeremybenn
  done
4436 90 jeremybenn
IFS=$as_save_IFS
4437
 
4438
fi
4439
fi
4440
AR=$ac_cv_prog_AR
4441
if test -n "$AR"; then
4442 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4443 90 jeremybenn
$as_echo "$AR" >&6; }
4444
else
4445 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 90 jeremybenn
$as_echo "no" >&6; }
4447
fi
4448
 
4449
 
4450
fi
4451
if test -z "$ac_cv_prog_AR"; then
4452
  ac_ct_AR=$AR
4453
  # Extract the first word of "ar", so it can be a program name with args.
4454
set dummy ar; ac_word=$2
4455 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4457 346 jeremybenn
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4458 90 jeremybenn
  $as_echo_n "(cached) " >&6
4459
else
4460
  if test -n "$ac_ct_AR"; then
4461
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4462
else
4463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464
for as_dir in $PATH
4465
do
4466
  IFS=$as_save_IFS
4467
  test -z "$as_dir" && as_dir=.
4468 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4469 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470
    ac_cv_prog_ac_ct_AR="ar"
4471 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 90 jeremybenn
    break 2
4473
  fi
4474
done
4475 346 jeremybenn
  done
4476 90 jeremybenn
IFS=$as_save_IFS
4477
 
4478
fi
4479
fi
4480
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4481
if test -n "$ac_ct_AR"; then
4482 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4483 90 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
4484
else
4485 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 90 jeremybenn
$as_echo "no" >&6; }
4487
fi
4488
 
4489
  if test "x$ac_ct_AR" = x; then
4490
    AR="false"
4491
  else
4492
    case $cross_compiling:$ac_tool_warned in
4493
yes:)
4494 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4495 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496
ac_tool_warned=yes ;;
4497
esac
4498
    AR=$ac_ct_AR
4499
  fi
4500
else
4501
  AR="$ac_cv_prog_AR"
4502
fi
4503
 
4504
test -z "$AR" && AR=ar
4505
test -z "$AR_FLAGS" && AR_FLAGS=cru
4506
 
4507
 
4508
 
4509
 
4510
 
4511
 
4512
 
4513
 
4514
 
4515
 
4516
 
4517
if test -n "$ac_tool_prefix"; then
4518
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4519
set dummy ${ac_tool_prefix}strip; ac_word=$2
4520 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4522 346 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then :
4523 90 jeremybenn
  $as_echo_n "(cached) " >&6
4524
else
4525
  if test -n "$STRIP"; then
4526
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4527
else
4528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529
for as_dir in $PATH
4530
do
4531
  IFS=$as_save_IFS
4532
  test -z "$as_dir" && as_dir=.
4533 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4534 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4536 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 90 jeremybenn
    break 2
4538
  fi
4539
done
4540 346 jeremybenn
  done
4541 90 jeremybenn
IFS=$as_save_IFS
4542
 
4543
fi
4544
fi
4545
STRIP=$ac_cv_prog_STRIP
4546
if test -n "$STRIP"; then
4547 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4548 90 jeremybenn
$as_echo "$STRIP" >&6; }
4549
else
4550 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 90 jeremybenn
$as_echo "no" >&6; }
4552
fi
4553
 
4554
 
4555
fi
4556
if test -z "$ac_cv_prog_STRIP"; then
4557
  ac_ct_STRIP=$STRIP
4558
  # Extract the first word of "strip", so it can be a program name with args.
4559
set dummy strip; ac_word=$2
4560 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4562 346 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4563 90 jeremybenn
  $as_echo_n "(cached) " >&6
4564
else
4565
  if test -n "$ac_ct_STRIP"; then
4566
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4567
else
4568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569
for as_dir in $PATH
4570
do
4571
  IFS=$as_save_IFS
4572
  test -z "$as_dir" && as_dir=.
4573 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4574 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575
    ac_cv_prog_ac_ct_STRIP="strip"
4576 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 90 jeremybenn
    break 2
4578
  fi
4579
done
4580 346 jeremybenn
  done
4581 90 jeremybenn
IFS=$as_save_IFS
4582
 
4583
fi
4584
fi
4585
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4586
if test -n "$ac_ct_STRIP"; then
4587 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4588 90 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
4589
else
4590 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 90 jeremybenn
$as_echo "no" >&6; }
4592
fi
4593
 
4594
  if test "x$ac_ct_STRIP" = x; then
4595
    STRIP=":"
4596
  else
4597
    case $cross_compiling:$ac_tool_warned in
4598
yes:)
4599 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601
ac_tool_warned=yes ;;
4602
esac
4603
    STRIP=$ac_ct_STRIP
4604
  fi
4605
else
4606
  STRIP="$ac_cv_prog_STRIP"
4607
fi
4608
 
4609
test -z "$STRIP" && STRIP=:
4610
 
4611
 
4612
 
4613
 
4614
 
4615
 
4616
if test -n "$ac_tool_prefix"; then
4617
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4618
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4619 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4621 346 jeremybenn
if test "${ac_cv_prog_RANLIB+set}" = set; then :
4622 90 jeremybenn
  $as_echo_n "(cached) " >&6
4623
else
4624
  if test -n "$RANLIB"; then
4625
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4626
else
4627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628
for as_dir in $PATH
4629
do
4630
  IFS=$as_save_IFS
4631
  test -z "$as_dir" && as_dir=.
4632 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4633 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4635 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 90 jeremybenn
    break 2
4637
  fi
4638
done
4639 346 jeremybenn
  done
4640 90 jeremybenn
IFS=$as_save_IFS
4641
 
4642
fi
4643
fi
4644
RANLIB=$ac_cv_prog_RANLIB
4645
if test -n "$RANLIB"; then
4646 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4647 90 jeremybenn
$as_echo "$RANLIB" >&6; }
4648
else
4649 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 90 jeremybenn
$as_echo "no" >&6; }
4651
fi
4652
 
4653
 
4654
fi
4655
if test -z "$ac_cv_prog_RANLIB"; then
4656
  ac_ct_RANLIB=$RANLIB
4657
  # Extract the first word of "ranlib", so it can be a program name with args.
4658
set dummy ranlib; ac_word=$2
4659 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4661 346 jeremybenn
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4662 90 jeremybenn
  $as_echo_n "(cached) " >&6
4663
else
4664
  if test -n "$ac_ct_RANLIB"; then
4665
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4666
else
4667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668
for as_dir in $PATH
4669
do
4670
  IFS=$as_save_IFS
4671
  test -z "$as_dir" && as_dir=.
4672 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4673 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4675 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 90 jeremybenn
    break 2
4677
  fi
4678
done
4679 346 jeremybenn
  done
4680 90 jeremybenn
IFS=$as_save_IFS
4681
 
4682
fi
4683
fi
4684
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4685
if test -n "$ac_ct_RANLIB"; then
4686 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4687 90 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
4688
else
4689 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 90 jeremybenn
$as_echo "no" >&6; }
4691
fi
4692
 
4693
  if test "x$ac_ct_RANLIB" = x; then
4694
    RANLIB=":"
4695
  else
4696
    case $cross_compiling:$ac_tool_warned in
4697
yes:)
4698 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4699 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4700
ac_tool_warned=yes ;;
4701
esac
4702
    RANLIB=$ac_ct_RANLIB
4703
  fi
4704
else
4705
  RANLIB="$ac_cv_prog_RANLIB"
4706
fi
4707
 
4708
test -z "$RANLIB" && RANLIB=:
4709
 
4710
 
4711
 
4712
 
4713
 
4714
 
4715
# Determine commands to create old-style static archives.
4716
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4717
old_postinstall_cmds='chmod 644 $oldlib'
4718
old_postuninstall_cmds=
4719
 
4720
if test -n "$RANLIB"; then
4721
  case $host_os in
4722
  openbsd*)
4723
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4724
    ;;
4725
  *)
4726
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4727
    ;;
4728
  esac
4729
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4730
fi
4731
 
4732
 
4733
 
4734
 
4735
 
4736
 
4737
 
4738
 
4739
 
4740
 
4741
 
4742
 
4743
 
4744
 
4745
 
4746
 
4747
 
4748
 
4749
 
4750
 
4751
 
4752
 
4753
 
4754
 
4755
 
4756
 
4757
 
4758
 
4759
 
4760
 
4761
 
4762
 
4763
 
4764
 
4765
# If no C compiler was specified, use CC.
4766
LTCC=${LTCC-"$CC"}
4767
 
4768
# If no C compiler flags were specified, use CFLAGS.
4769
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4770
 
4771
# Allow CC to be a program name with arguments.
4772
compiler=$CC
4773
 
4774
 
4775
# Check for command to grab the raw symbol name followed by C symbol from nm.
4776 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4777 90 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4778 346 jeremybenn
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
4779 90 jeremybenn
  $as_echo_n "(cached) " >&6
4780
else
4781
 
4782
# These are sane defaults that work on at least a few old systems.
4783
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4784
 
4785
# Character class describing NM global symbol codes.
4786
symcode='[BCDEGRST]'
4787
 
4788
# Regexp to match symbols that can be accessed directly from C.
4789
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4790
 
4791
# Define system-specific variables.
4792
case $host_os in
4793
aix*)
4794
  symcode='[BCDT]'
4795
  ;;
4796
cygwin* | mingw* | pw32* | cegcc*)
4797
  symcode='[ABCDGISTW]'
4798
  ;;
4799
hpux*)
4800
  if test "$host_cpu" = ia64; then
4801
    symcode='[ABCDEGRST]'
4802
  fi
4803
  ;;
4804
irix* | nonstopux*)
4805
  symcode='[BCDEGRST]'
4806
  ;;
4807
osf*)
4808
  symcode='[BCDEGQRST]'
4809
  ;;
4810
solaris*)
4811
  symcode='[BDRT]'
4812
  ;;
4813
sco3.2v5*)
4814
  symcode='[DT]'
4815
  ;;
4816
sysv4.2uw2*)
4817
  symcode='[DT]'
4818
  ;;
4819
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4820
  symcode='[ABDT]'
4821
  ;;
4822
sysv4)
4823
  symcode='[DFNSTU]'
4824
  ;;
4825
esac
4826
 
4827
# If we're using GNU nm, then use its standard symbol codes.
4828
case `$NM -V 2>&1` in
4829
*GNU* | *'with BFD'*)
4830
  symcode='[ABCDGIRSTW]' ;;
4831
esac
4832
 
4833
# Transform an extracted symbol line into a proper C declaration.
4834
# Some systems (esp. on ia64) link data and code symbols differently,
4835
# so use this general approach.
4836
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4837
 
4838
# Transform an extracted symbol line into symbol name and symbol address
4839
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4840
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'"
4841
 
4842
# Handle CRLF in mingw tool chain
4843
opt_cr=
4844
case $build_os in
4845
mingw*)
4846
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4847
  ;;
4848
esac
4849
 
4850
# Try without a prefix underscore, then with it.
4851
for ac_symprfx in "" "_"; do
4852
 
4853
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4854
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4855
 
4856
  # Write the raw and C identifiers.
4857
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4858
    # Fake it for dumpbin and say T for any non-static function
4859
    # and D for any global variable.
4860
    # Also find C++ and __fastcall symbols from MSVC++,
4861
    # which start with @ or ?.
4862
    lt_cv_sys_global_symbol_pipe="$AWK '"\
4863
"     {last_section=section; section=\$ 3};"\
4864
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4865
"     \$ 0!~/External *\|/{next};"\
4866
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4867
"     {if(hide[section]) next};"\
4868
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4869
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4870
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4871
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4872
"     ' prfx=^$ac_symprfx"
4873
  else
4874
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4875
  fi
4876
 
4877
  # Check to see that the pipe works correctly.
4878
  pipe_works=no
4879
 
4880
  rm -f conftest*
4881
  cat > conftest.$ac_ext <<_LT_EOF
4882
#ifdef __cplusplus
4883
extern "C" {
4884
#endif
4885
char nm_test_var;
4886
void nm_test_func(void);
4887
void nm_test_func(void){}
4888
#ifdef __cplusplus
4889
}
4890
#endif
4891
int main(){nm_test_var='a';nm_test_func();return(0);}
4892
_LT_EOF
4893
 
4894 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4895 90 jeremybenn
  (eval $ac_compile) 2>&5
4896
  ac_status=$?
4897 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4898
  test $ac_status = 0; }; then
4899 90 jeremybenn
    # Now try to grab the symbols.
4900
    nlist=conftest.nm
4901 346 jeremybenn
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4902 90 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4903
  ac_status=$?
4904 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4905
  test $ac_status = 0; } && test -s "$nlist"; then
4906 90 jeremybenn
      # Try sorting and uniquifying the output.
4907
      if sort "$nlist" | uniq > "$nlist"T; then
4908
        mv -f "$nlist"T "$nlist"
4909
      else
4910
        rm -f "$nlist"T
4911
      fi
4912
 
4913
      # Make sure that we snagged all the symbols we need.
4914
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4915
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4916
          cat <<_LT_EOF > conftest.$ac_ext
4917
#ifdef __cplusplus
4918
extern "C" {
4919
#endif
4920
 
4921
_LT_EOF
4922
          # Now generate the symbol file.
4923
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4924
 
4925
          cat <<_LT_EOF >> conftest.$ac_ext
4926
 
4927
/* The mapping between symbol names and symbols.  */
4928
const struct {
4929
  const char *name;
4930
  void       *address;
4931
}
4932
lt__PROGRAM__LTX_preloaded_symbols[] =
4933
{
4934
  { "@PROGRAM@", (void *) 0 },
4935
_LT_EOF
4936
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4937
          cat <<\_LT_EOF >> conftest.$ac_ext
4938
  {0, (void *) 0}
4939
};
4940
 
4941
/* This works around a problem in FreeBSD linker */
4942
#ifdef FREEBSD_WORKAROUND
4943
static const void *lt_preloaded_setup() {
4944
  return lt__PROGRAM__LTX_preloaded_symbols;
4945
}
4946
#endif
4947
 
4948
#ifdef __cplusplus
4949
}
4950
#endif
4951
_LT_EOF
4952
          # Now try linking the two files.
4953
          mv conftest.$ac_objext conftstm.$ac_objext
4954
          lt_save_LIBS="$LIBS"
4955
          lt_save_CFLAGS="$CFLAGS"
4956
          LIBS="conftstm.$ac_objext"
4957
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4958 346 jeremybenn
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4959 90 jeremybenn
  (eval $ac_link) 2>&5
4960
  ac_status=$?
4961 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4962
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
4963 90 jeremybenn
            pipe_works=yes
4964
          fi
4965
          LIBS="$lt_save_LIBS"
4966
          CFLAGS="$lt_save_CFLAGS"
4967
        else
4968
          echo "cannot find nm_test_func in $nlist" >&5
4969
        fi
4970
      else
4971
        echo "cannot find nm_test_var in $nlist" >&5
4972
      fi
4973
    else
4974
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4975
    fi
4976
  else
4977
    echo "$progname: failed program was:" >&5
4978
    cat conftest.$ac_ext >&5
4979
  fi
4980
  rm -rf conftest* conftst*
4981
 
4982
  # Do not use the global_symbol_pipe unless it works.
4983
  if test "$pipe_works" = yes; then
4984
    break
4985
  else
4986
    lt_cv_sys_global_symbol_pipe=
4987
  fi
4988
done
4989
 
4990
fi
4991
 
4992
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4993
  lt_cv_sys_global_symbol_to_cdecl=
4994
fi
4995
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4996 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4997 90 jeremybenn
$as_echo "failed" >&6; }
4998
else
4999 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5000 90 jeremybenn
$as_echo "ok" >&6; }
5001
fi
5002
 
5003
 
5004
 
5005
 
5006
 
5007
 
5008
 
5009
 
5010
 
5011
 
5012
 
5013
 
5014
 
5015
 
5016
 
5017
 
5018
 
5019
 
5020
 
5021
 
5022
 
5023
 
5024
 
5025
# Check whether --enable-libtool-lock was given.
5026 346 jeremybenn
if test "${enable_libtool_lock+set}" = set; then :
5027 90 jeremybenn
  enableval=$enable_libtool_lock;
5028
fi
5029
 
5030
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5031
 
5032
# Some flags need to be propagated to the compiler or linker for good
5033
# libtool support.
5034
case $host in
5035
ia64-*-hpux*)
5036
  # Find out which ABI we are using.
5037
  echo 'int i;' > conftest.$ac_ext
5038 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5039 90 jeremybenn
  (eval $ac_compile) 2>&5
5040
  ac_status=$?
5041 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5042
  test $ac_status = 0; }; then
5043 90 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
5044
      *ELF-32*)
5045
        HPUX_IA64_MODE="32"
5046
        ;;
5047
      *ELF-64*)
5048
        HPUX_IA64_MODE="64"
5049
        ;;
5050
    esac
5051
  fi
5052
  rm -rf conftest*
5053
  ;;
5054
*-*-irix6*)
5055
  # Find out which ABI we are using.
5056 538 julius
  echo '#line 5056 "configure"' > conftest.$ac_ext
5057 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5058 90 jeremybenn
  (eval $ac_compile) 2>&5
5059
  ac_status=$?
5060 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5061
  test $ac_status = 0; }; then
5062 90 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5063
      case `/usr/bin/file conftest.$ac_objext` in
5064
        *32-bit*)
5065
          LD="${LD-ld} -melf32bsmip"
5066
          ;;
5067
        *N32*)
5068
          LD="${LD-ld} -melf32bmipn32"
5069
          ;;
5070
        *64-bit*)
5071
          LD="${LD-ld} -melf64bmip"
5072
        ;;
5073
      esac
5074
    else
5075
      case `/usr/bin/file conftest.$ac_objext` in
5076
        *32-bit*)
5077
          LD="${LD-ld} -32"
5078
          ;;
5079
        *N32*)
5080
          LD="${LD-ld} -n32"
5081
          ;;
5082
        *64-bit*)
5083
          LD="${LD-ld} -64"
5084
          ;;
5085
      esac
5086
    fi
5087
  fi
5088
  rm -rf conftest*
5089
  ;;
5090
 
5091
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5092
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5093
  # Find out which ABI we are using.
5094
  echo 'int i;' > conftest.$ac_ext
5095 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5096 90 jeremybenn
  (eval $ac_compile) 2>&5
5097
  ac_status=$?
5098 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5099
  test $ac_status = 0; }; then
5100 90 jeremybenn
    case `/usr/bin/file conftest.o` in
5101
      *32-bit*)
5102
        case $host in
5103
          x86_64-*kfreebsd*-gnu)
5104
            LD="${LD-ld} -m elf_i386_fbsd"
5105
            ;;
5106
          x86_64-*linux*)
5107
            LD="${LD-ld} -m elf_i386"
5108
            ;;
5109
          ppc64-*linux*|powerpc64-*linux*)
5110
            LD="${LD-ld} -m elf32ppclinux"
5111
            ;;
5112
          s390x-*linux*)
5113
            LD="${LD-ld} -m elf_s390"
5114
            ;;
5115
          sparc64-*linux*)
5116
            LD="${LD-ld} -m elf32_sparc"
5117
            ;;
5118
        esac
5119
        ;;
5120
      *64-bit*)
5121
        case $host in
5122
          x86_64-*kfreebsd*-gnu)
5123
            LD="${LD-ld} -m elf_x86_64_fbsd"
5124
            ;;
5125
          x86_64-*linux*)
5126
            LD="${LD-ld} -m elf_x86_64"
5127
            ;;
5128
          ppc*-*linux*|powerpc*-*linux*)
5129
            LD="${LD-ld} -m elf64ppc"
5130
            ;;
5131
          s390*-*linux*|s390*-*tpf*)
5132
            LD="${LD-ld} -m elf64_s390"
5133
            ;;
5134
          sparc*-*linux*)
5135
            LD="${LD-ld} -m elf64_sparc"
5136
            ;;
5137
        esac
5138
        ;;
5139
    esac
5140
  fi
5141
  rm -rf conftest*
5142
  ;;
5143
 
5144
*-*-sco3.2v5*)
5145
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5146
  SAVE_CFLAGS="$CFLAGS"
5147
  CFLAGS="$CFLAGS -belf"
5148 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5149 90 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5150 346 jeremybenn
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5151 90 jeremybenn
  $as_echo_n "(cached) " >&6
5152
else
5153
  ac_ext=c
5154
ac_cpp='$CPP $CPPFLAGS'
5155
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5158
 
5159 346 jeremybenn
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 90 jeremybenn
/* end confdefs.h.  */
5161
 
5162
int
5163
main ()
5164
{
5165
 
5166
  ;
5167
  return 0;
5168
}
5169
_ACEOF
5170 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
5171 90 jeremybenn
  lt_cv_cc_needs_belf=yes
5172
else
5173 346 jeremybenn
  lt_cv_cc_needs_belf=no
5174 90 jeremybenn
fi
5175 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
5176
    conftest$ac_exeext conftest.$ac_ext
5177 90 jeremybenn
     ac_ext=c
5178
ac_cpp='$CPP $CPPFLAGS'
5179
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5182
 
5183
fi
5184 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5185 90 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5186
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5187
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5188
    CFLAGS="$SAVE_CFLAGS"
5189
  fi
5190
  ;;
5191
sparc*-*solaris*)
5192
  # Find out which ABI we are using.
5193
  echo 'int i;' > conftest.$ac_ext
5194 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5195 90 jeremybenn
  (eval $ac_compile) 2>&5
5196
  ac_status=$?
5197 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5198
  test $ac_status = 0; }; then
5199 90 jeremybenn
    case `/usr/bin/file conftest.o` in
5200
    *64-bit*)
5201
      case $lt_cv_prog_gnu_ld in
5202
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5203
      *)
5204
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5205
          LD="${LD-ld} -64"
5206
        fi
5207
        ;;
5208
      esac
5209
      ;;
5210
    esac
5211
  fi
5212
  rm -rf conftest*
5213
  ;;
5214
esac
5215
 
5216
need_locks="$enable_libtool_lock"
5217
 
5218
 
5219
  case $host_os in
5220
    rhapsody* | darwin*)
5221
    if test -n "$ac_tool_prefix"; then
5222
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5223
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5224 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5226 346 jeremybenn
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5227 90 jeremybenn
  $as_echo_n "(cached) " >&6
5228
else
5229
  if test -n "$DSYMUTIL"; then
5230
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5231
else
5232
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233
for as_dir in $PATH
5234
do
5235
  IFS=$as_save_IFS
5236
  test -z "$as_dir" && as_dir=.
5237 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5238 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5240 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 90 jeremybenn
    break 2
5242
  fi
5243
done
5244 346 jeremybenn
  done
5245 90 jeremybenn
IFS=$as_save_IFS
5246
 
5247
fi
5248
fi
5249
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5250
if test -n "$DSYMUTIL"; then
5251 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5252 90 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5253
else
5254 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255 90 jeremybenn
$as_echo "no" >&6; }
5256
fi
5257
 
5258
 
5259
fi
5260
if test -z "$ac_cv_prog_DSYMUTIL"; then
5261
  ac_ct_DSYMUTIL=$DSYMUTIL
5262
  # Extract the first word of "dsymutil", so it can be a program name with args.
5263
set dummy dsymutil; ac_word=$2
5264 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5266 346 jeremybenn
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5267 90 jeremybenn
  $as_echo_n "(cached) " >&6
5268
else
5269
  if test -n "$ac_ct_DSYMUTIL"; then
5270
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5271
else
5272
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273
for as_dir in $PATH
5274
do
5275
  IFS=$as_save_IFS
5276
  test -z "$as_dir" && as_dir=.
5277 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5278 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5280 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 90 jeremybenn
    break 2
5282
  fi
5283
done
5284 346 jeremybenn
  done
5285 90 jeremybenn
IFS=$as_save_IFS
5286
 
5287
fi
5288
fi
5289
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5290
if test -n "$ac_ct_DSYMUTIL"; then
5291 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5292 90 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5293
else
5294 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 90 jeremybenn
$as_echo "no" >&6; }
5296
fi
5297
 
5298
  if test "x$ac_ct_DSYMUTIL" = x; then
5299
    DSYMUTIL=":"
5300
  else
5301
    case $cross_compiling:$ac_tool_warned in
5302
yes:)
5303 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5304 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5305
ac_tool_warned=yes ;;
5306
esac
5307
    DSYMUTIL=$ac_ct_DSYMUTIL
5308
  fi
5309
else
5310
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5311
fi
5312
 
5313
    if test -n "$ac_tool_prefix"; then
5314
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5315
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5316 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5318 346 jeremybenn
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5319 90 jeremybenn
  $as_echo_n "(cached) " >&6
5320
else
5321
  if test -n "$NMEDIT"; then
5322
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5323
else
5324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325
for as_dir in $PATH
5326
do
5327
  IFS=$as_save_IFS
5328
  test -z "$as_dir" && as_dir=.
5329 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5330 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5332 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 90 jeremybenn
    break 2
5334
  fi
5335
done
5336 346 jeremybenn
  done
5337 90 jeremybenn
IFS=$as_save_IFS
5338
 
5339
fi
5340
fi
5341
NMEDIT=$ac_cv_prog_NMEDIT
5342
if test -n "$NMEDIT"; then
5343 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5344 90 jeremybenn
$as_echo "$NMEDIT" >&6; }
5345
else
5346 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 90 jeremybenn
$as_echo "no" >&6; }
5348
fi
5349
 
5350
 
5351
fi
5352
if test -z "$ac_cv_prog_NMEDIT"; then
5353
  ac_ct_NMEDIT=$NMEDIT
5354
  # Extract the first word of "nmedit", so it can be a program name with args.
5355
set dummy nmedit; ac_word=$2
5356 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5358 346 jeremybenn
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5359 90 jeremybenn
  $as_echo_n "(cached) " >&6
5360
else
5361
  if test -n "$ac_ct_NMEDIT"; then
5362
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5363
else
5364
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365
for as_dir in $PATH
5366
do
5367
  IFS=$as_save_IFS
5368
  test -z "$as_dir" && as_dir=.
5369 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5370 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5372 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 90 jeremybenn
    break 2
5374
  fi
5375
done
5376 346 jeremybenn
  done
5377 90 jeremybenn
IFS=$as_save_IFS
5378
 
5379
fi
5380
fi
5381
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5382
if test -n "$ac_ct_NMEDIT"; then
5383 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5384 90 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
5385
else
5386 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 90 jeremybenn
$as_echo "no" >&6; }
5388
fi
5389
 
5390
  if test "x$ac_ct_NMEDIT" = x; then
5391
    NMEDIT=":"
5392
  else
5393
    case $cross_compiling:$ac_tool_warned in
5394
yes:)
5395 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5396 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5397
ac_tool_warned=yes ;;
5398
esac
5399
    NMEDIT=$ac_ct_NMEDIT
5400
  fi
5401
else
5402
  NMEDIT="$ac_cv_prog_NMEDIT"
5403
fi
5404
 
5405
    if test -n "$ac_tool_prefix"; then
5406
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5407
set dummy ${ac_tool_prefix}lipo; ac_word=$2
5408 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5410 346 jeremybenn
if test "${ac_cv_prog_LIPO+set}" = set; then :
5411 90 jeremybenn
  $as_echo_n "(cached) " >&6
5412
else
5413
  if test -n "$LIPO"; then
5414
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5415
else
5416
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417
for as_dir in $PATH
5418
do
5419
  IFS=$as_save_IFS
5420
  test -z "$as_dir" && as_dir=.
5421 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5422 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5424 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 90 jeremybenn
    break 2
5426
  fi
5427
done
5428 346 jeremybenn
  done
5429 90 jeremybenn
IFS=$as_save_IFS
5430
 
5431
fi
5432
fi
5433
LIPO=$ac_cv_prog_LIPO
5434
if test -n "$LIPO"; then
5435 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5436 90 jeremybenn
$as_echo "$LIPO" >&6; }
5437
else
5438 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 90 jeremybenn
$as_echo "no" >&6; }
5440
fi
5441
 
5442
 
5443
fi
5444
if test -z "$ac_cv_prog_LIPO"; then
5445
  ac_ct_LIPO=$LIPO
5446
  # Extract the first word of "lipo", so it can be a program name with args.
5447
set dummy lipo; ac_word=$2
5448 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5450 346 jeremybenn
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5451 90 jeremybenn
  $as_echo_n "(cached) " >&6
5452
else
5453
  if test -n "$ac_ct_LIPO"; then
5454
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5455
else
5456
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457
for as_dir in $PATH
5458
do
5459
  IFS=$as_save_IFS
5460
  test -z "$as_dir" && as_dir=.
5461 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5462 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463
    ac_cv_prog_ac_ct_LIPO="lipo"
5464 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 90 jeremybenn
    break 2
5466
  fi
5467
done
5468 346 jeremybenn
  done
5469 90 jeremybenn
IFS=$as_save_IFS
5470
 
5471
fi
5472
fi
5473
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5474
if test -n "$ac_ct_LIPO"; then
5475 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5476 90 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
5477
else
5478 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 90 jeremybenn
$as_echo "no" >&6; }
5480
fi
5481
 
5482
  if test "x$ac_ct_LIPO" = x; then
5483
    LIPO=":"
5484
  else
5485
    case $cross_compiling:$ac_tool_warned in
5486
yes:)
5487 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5488 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5489
ac_tool_warned=yes ;;
5490
esac
5491
    LIPO=$ac_ct_LIPO
5492
  fi
5493
else
5494
  LIPO="$ac_cv_prog_LIPO"
5495
fi
5496
 
5497
    if test -n "$ac_tool_prefix"; then
5498
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5499
set dummy ${ac_tool_prefix}otool; ac_word=$2
5500 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5502 346 jeremybenn
if test "${ac_cv_prog_OTOOL+set}" = set; then :
5503 90 jeremybenn
  $as_echo_n "(cached) " >&6
5504
else
5505
  if test -n "$OTOOL"; then
5506
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5507
else
5508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509
for as_dir in $PATH
5510
do
5511
  IFS=$as_save_IFS
5512
  test -z "$as_dir" && as_dir=.
5513 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5514 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5516 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 90 jeremybenn
    break 2
5518
  fi
5519
done
5520 346 jeremybenn
  done
5521 90 jeremybenn
IFS=$as_save_IFS
5522
 
5523
fi
5524
fi
5525
OTOOL=$ac_cv_prog_OTOOL
5526
if test -n "$OTOOL"; then
5527 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5528 90 jeremybenn
$as_echo "$OTOOL" >&6; }
5529
else
5530 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 90 jeremybenn
$as_echo "no" >&6; }
5532
fi
5533
 
5534
 
5535
fi
5536
if test -z "$ac_cv_prog_OTOOL"; then
5537
  ac_ct_OTOOL=$OTOOL
5538
  # Extract the first word of "otool", so it can be a program name with args.
5539
set dummy otool; ac_word=$2
5540 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5542 346 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5543 90 jeremybenn
  $as_echo_n "(cached) " >&6
5544
else
5545
  if test -n "$ac_ct_OTOOL"; then
5546
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5547
else
5548
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549
for as_dir in $PATH
5550
do
5551
  IFS=$as_save_IFS
5552
  test -z "$as_dir" && as_dir=.
5553 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5554 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555
    ac_cv_prog_ac_ct_OTOOL="otool"
5556 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 90 jeremybenn
    break 2
5558
  fi
5559
done
5560 346 jeremybenn
  done
5561 90 jeremybenn
IFS=$as_save_IFS
5562
 
5563
fi
5564
fi
5565
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5566
if test -n "$ac_ct_OTOOL"; then
5567 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5568 90 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
5569
else
5570 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 90 jeremybenn
$as_echo "no" >&6; }
5572
fi
5573
 
5574
  if test "x$ac_ct_OTOOL" = x; then
5575
    OTOOL=":"
5576
  else
5577
    case $cross_compiling:$ac_tool_warned in
5578
yes:)
5579 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5580 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581
ac_tool_warned=yes ;;
5582
esac
5583
    OTOOL=$ac_ct_OTOOL
5584
  fi
5585
else
5586
  OTOOL="$ac_cv_prog_OTOOL"
5587
fi
5588
 
5589
    if test -n "$ac_tool_prefix"; then
5590
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5591
set dummy ${ac_tool_prefix}otool64; ac_word=$2
5592 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5594 346 jeremybenn
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5595 90 jeremybenn
  $as_echo_n "(cached) " >&6
5596
else
5597
  if test -n "$OTOOL64"; then
5598
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5599
else
5600
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601
for as_dir in $PATH
5602
do
5603
  IFS=$as_save_IFS
5604
  test -z "$as_dir" && as_dir=.
5605 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5606 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5608 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 90 jeremybenn
    break 2
5610
  fi
5611
done
5612 346 jeremybenn
  done
5613 90 jeremybenn
IFS=$as_save_IFS
5614
 
5615
fi
5616
fi
5617
OTOOL64=$ac_cv_prog_OTOOL64
5618
if test -n "$OTOOL64"; then
5619 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5620 90 jeremybenn
$as_echo "$OTOOL64" >&6; }
5621
else
5622 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 90 jeremybenn
$as_echo "no" >&6; }
5624
fi
5625
 
5626
 
5627
fi
5628
if test -z "$ac_cv_prog_OTOOL64"; then
5629
  ac_ct_OTOOL64=$OTOOL64
5630
  # Extract the first word of "otool64", so it can be a program name with args.
5631
set dummy otool64; ac_word=$2
5632 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5634 346 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5635 90 jeremybenn
  $as_echo_n "(cached) " >&6
5636
else
5637
  if test -n "$ac_ct_OTOOL64"; then
5638
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5639
else
5640
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641
for as_dir in $PATH
5642
do
5643
  IFS=$as_save_IFS
5644
  test -z "$as_dir" && as_dir=.
5645 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5646 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647
    ac_cv_prog_ac_ct_OTOOL64="otool64"
5648 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 90 jeremybenn
    break 2
5650
  fi
5651
done
5652 346 jeremybenn
  done
5653 90 jeremybenn
IFS=$as_save_IFS
5654
 
5655
fi
5656
fi
5657
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5658
if test -n "$ac_ct_OTOOL64"; then
5659 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5660 90 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
5661
else
5662 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 90 jeremybenn
$as_echo "no" >&6; }
5664
fi
5665
 
5666
  if test "x$ac_ct_OTOOL64" = x; then
5667
    OTOOL64=":"
5668
  else
5669
    case $cross_compiling:$ac_tool_warned in
5670
yes:)
5671 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5672 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5673
ac_tool_warned=yes ;;
5674
esac
5675
    OTOOL64=$ac_ct_OTOOL64
5676
  fi
5677
else
5678
  OTOOL64="$ac_cv_prog_OTOOL64"
5679
fi
5680
 
5681
 
5682
 
5683
 
5684
 
5685
 
5686
 
5687
 
5688
 
5689
 
5690
 
5691
 
5692
 
5693
 
5694
 
5695
 
5696
 
5697
 
5698
 
5699
 
5700
 
5701
 
5702
 
5703
 
5704
 
5705
 
5706
 
5707 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5708 90 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
5709 346 jeremybenn
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5710 90 jeremybenn
  $as_echo_n "(cached) " >&6
5711
else
5712
  lt_cv_apple_cc_single_mod=no
5713
      if test -z "${LT_MULTI_MODULE}"; then
5714
        # By default we will add the -single_module flag. You can override
5715
        # by either setting the environment variable LT_MULTI_MODULE
5716
        # non-empty at configure time, or by adding -multi_module to the
5717
        # link flags.
5718
        rm -rf libconftest.dylib*
5719
        echo "int foo(void){return 1;}" > conftest.c
5720
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5721
-dynamiclib -Wl,-single_module conftest.c" >&5
5722
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5723
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5724
        _lt_result=$?
5725
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5726
          lt_cv_apple_cc_single_mod=yes
5727
        else
5728
          cat conftest.err >&5
5729
        fi
5730
        rm -rf libconftest.dylib*
5731
        rm -f conftest.*
5732
      fi
5733
fi
5734 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5735 90 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5736 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5737 90 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5738 346 jeremybenn
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5739 90 jeremybenn
  $as_echo_n "(cached) " >&6
5740
else
5741
  lt_cv_ld_exported_symbols_list=no
5742
      save_LDFLAGS=$LDFLAGS
5743
      echo "_main" > conftest.sym
5744
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5745 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 90 jeremybenn
/* end confdefs.h.  */
5747
 
5748
int
5749
main ()
5750
{
5751
 
5752
  ;
5753
  return 0;
5754
}
5755
_ACEOF
5756 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
5757 90 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
5758
else
5759 346 jeremybenn
  lt_cv_ld_exported_symbols_list=no
5760 90 jeremybenn
fi
5761 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
5762
    conftest$ac_exeext conftest.$ac_ext
5763 90 jeremybenn
        LDFLAGS="$save_LDFLAGS"
5764
 
5765
fi
5766 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5767 90 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5768
    case $host_os in
5769
    rhapsody* | darwin1.[012])
5770
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5771
    darwin1.*)
5772
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5773
    darwin*) # darwin 5.x on
5774
      # if running on 10.5 or later, the deployment target defaults
5775
      # to the OS version, if on x86, and 10.4, the deployment
5776
      # target defaults to 10.4. Don't you love it?
5777
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5778
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5779
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5780
        10.[012]*)
5781
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5782
        10.*)
5783
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5784
      esac
5785
    ;;
5786
  esac
5787
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5788
      _lt_dar_single_mod='$single_module'
5789
    fi
5790
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5791
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5792
    else
5793
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5794
    fi
5795
    if test "$DSYMUTIL" != ":"; then
5796
      _lt_dsymutil='~$DSYMUTIL $lib || :'
5797
    else
5798
      _lt_dsymutil=
5799
    fi
5800
    ;;
5801
  esac
5802
 
5803
ac_ext=c
5804
ac_cpp='$CPP $CPPFLAGS'
5805
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5808 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5809 90 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5810
# On Suns, sometimes $CPP names a directory.
5811
if test -n "$CPP" && test -d "$CPP"; then
5812
  CPP=
5813
fi
5814
if test -z "$CPP"; then
5815 346 jeremybenn
  if test "${ac_cv_prog_CPP+set}" = set; then :
5816 90 jeremybenn
  $as_echo_n "(cached) " >&6
5817
else
5818
      # Double quotes because CPP needs to be expanded
5819
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5820
    do
5821
      ac_preproc_ok=false
5822
for ac_c_preproc_warn_flag in '' yes
5823
do
5824
  # Use a header file that comes with gcc, so configuring glibc
5825
  # with a fresh cross-compiler works.
5826
  # Prefer  to  if __STDC__ is defined, since
5827
  #  exists even on freestanding compilers.
5828
  # On the NeXT, cc -E runs the code through the compiler's parser,
5829
  # not just through cpp. "Syntax error" is here to catch this case.
5830 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 90 jeremybenn
/* end confdefs.h.  */
5832
#ifdef __STDC__
5833
# include 
5834
#else
5835
# include 
5836
#endif
5837
                     Syntax error
5838
_ACEOF
5839 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
5840
 
5841 236 jeremybenn
else
5842 90 jeremybenn
  # Broken: fails on valid input.
5843
continue
5844
fi
5845
rm -f conftest.err conftest.$ac_ext
5846
 
5847
  # OK, works on sane cases.  Now check whether nonexistent headers
5848
  # can be detected and how.
5849 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 90 jeremybenn
/* end confdefs.h.  */
5851
#include 
5852
_ACEOF
5853 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
5854 90 jeremybenn
  # Broken: success on invalid input.
5855
continue
5856
else
5857
  # Passes both tests.
5858
ac_preproc_ok=:
5859
break
5860
fi
5861
rm -f conftest.err conftest.$ac_ext
5862
 
5863
done
5864
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5865
rm -f conftest.err conftest.$ac_ext
5866 346 jeremybenn
if $ac_preproc_ok; then :
5867 90 jeremybenn
  break
5868
fi
5869
 
5870
    done
5871
    ac_cv_prog_CPP=$CPP
5872
 
5873
fi
5874
  CPP=$ac_cv_prog_CPP
5875
else
5876
  ac_cv_prog_CPP=$CPP
5877
fi
5878 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5879 90 jeremybenn
$as_echo "$CPP" >&6; }
5880
ac_preproc_ok=false
5881
for ac_c_preproc_warn_flag in '' yes
5882
do
5883
  # Use a header file that comes with gcc, so configuring glibc
5884
  # with a fresh cross-compiler works.
5885
  # Prefer  to  if __STDC__ is defined, since
5886
  #  exists even on freestanding compilers.
5887
  # On the NeXT, cc -E runs the code through the compiler's parser,
5888
  # not just through cpp. "Syntax error" is here to catch this case.
5889 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 90 jeremybenn
/* end confdefs.h.  */
5891
#ifdef __STDC__
5892
# include 
5893
#else
5894
# include 
5895
#endif
5896
                     Syntax error
5897
_ACEOF
5898 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
5899
 
5900 236 jeremybenn
else
5901 90 jeremybenn
  # Broken: fails on valid input.
5902
continue
5903
fi
5904
rm -f conftest.err conftest.$ac_ext
5905
 
5906
  # OK, works on sane cases.  Now check whether nonexistent headers
5907
  # can be detected and how.
5908 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 90 jeremybenn
/* end confdefs.h.  */
5910
#include 
5911
_ACEOF
5912 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
5913 90 jeremybenn
  # Broken: success on invalid input.
5914
continue
5915
else
5916
  # Passes both tests.
5917
ac_preproc_ok=:
5918
break
5919
fi
5920
rm -f conftest.err conftest.$ac_ext
5921
 
5922
done
5923
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5924
rm -f conftest.err conftest.$ac_ext
5925 346 jeremybenn
if $ac_preproc_ok; then :
5926
 
5927 90 jeremybenn
else
5928 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5929 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5930 346 jeremybenn
as_fn_error "C preprocessor \"$CPP\" fails sanity check
5931
See \`config.log' for more details." "$LINENO" 5; }
5932 90 jeremybenn
fi
5933
 
5934
ac_ext=c
5935
ac_cpp='$CPP $CPPFLAGS'
5936
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5937
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5938
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5939
 
5940
 
5941 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5942 90 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
5943 346 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then :
5944 90 jeremybenn
  $as_echo_n "(cached) " >&6
5945
else
5946 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 90 jeremybenn
/* end confdefs.h.  */
5948
#include 
5949
#include 
5950
#include 
5951
#include 
5952
 
5953
int
5954
main ()
5955
{
5956
 
5957
  ;
5958
  return 0;
5959
}
5960
_ACEOF
5961 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
5962 90 jeremybenn
  ac_cv_header_stdc=yes
5963
else
5964 346 jeremybenn
  ac_cv_header_stdc=no
5965 90 jeremybenn
fi
5966
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967
 
5968
if test $ac_cv_header_stdc = yes; then
5969
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5970 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 90 jeremybenn
/* end confdefs.h.  */
5972
#include 
5973
 
5974
_ACEOF
5975
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5976 346 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then :
5977
 
5978 90 jeremybenn
else
5979
  ac_cv_header_stdc=no
5980
fi
5981
rm -f conftest*
5982
 
5983
fi
5984
 
5985
if test $ac_cv_header_stdc = yes; then
5986
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5987 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 90 jeremybenn
/* end confdefs.h.  */
5989
#include 
5990
 
5991
_ACEOF
5992
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5993 346 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then :
5994
 
5995 90 jeremybenn
else
5996
  ac_cv_header_stdc=no
5997
fi
5998
rm -f conftest*
5999
 
6000
fi
6001
 
6002
if test $ac_cv_header_stdc = yes; then
6003
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6004 346 jeremybenn
  if test "$cross_compiling" = yes; then :
6005 90 jeremybenn
  :
6006
else
6007 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 90 jeremybenn
/* end confdefs.h.  */
6009
#include 
6010
#include 
6011
#if ((' ' & 0x0FF) == 0x020)
6012
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6013
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6014
#else
6015
# define ISLOWER(c) \
6016
                   (('a' <= (c) && (c) <= 'i') \
6017
                     || ('j' <= (c) && (c) <= 'r') \
6018
                     || ('s' <= (c) && (c) <= 'z'))
6019
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6020
#endif
6021
 
6022
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6023
int
6024
main ()
6025
{
6026
  int i;
6027
  for (i = 0; i < 256; i++)
6028
    if (XOR (islower (i), ISLOWER (i))
6029
        || toupper (i) != TOUPPER (i))
6030
      return 2;
6031
  return 0;
6032
}
6033
_ACEOF
6034 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
6035
 
6036 236 jeremybenn
else
6037 346 jeremybenn
  ac_cv_header_stdc=no
6038 90 jeremybenn
fi
6039 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6040
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6041 90 jeremybenn
fi
6042
 
6043
fi
6044
fi
6045 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6046 90 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
6047
if test $ac_cv_header_stdc = yes; then
6048
 
6049 346 jeremybenn
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6050 90 jeremybenn
 
6051
fi
6052
 
6053
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6054
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6055
                  inttypes.h stdint.h unistd.h
6056 346 jeremybenn
do :
6057
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6058
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6059
"
6060
eval as_val=\$$as_ac_Header
6061
   if test "x$as_val" = x""yes; then :
6062 90 jeremybenn
  cat >>confdefs.h <<_ACEOF
6063
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6064
_ACEOF
6065
 
6066
fi
6067
 
6068
done
6069
 
6070
 
6071
for ac_header in dlfcn.h
6072 346 jeremybenn
do :
6073
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6074
"
6075
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6076 90 jeremybenn
  cat >>confdefs.h <<_ACEOF
6077 346 jeremybenn
#define HAVE_DLFCN_H 1
6078 90 jeremybenn
_ACEOF
6079
 
6080
fi
6081
 
6082
done
6083
 
6084
 
6085
 
6086
# Set options
6087
 
6088
 
6089
 
6090
        enable_dlopen=no
6091
 
6092
 
6093
  enable_win32_dll=no
6094
 
6095
 
6096
            # Check whether --enable-shared was given.
6097 346 jeremybenn
if test "${enable_shared+set}" = set; then :
6098 90 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
6099
    case $enableval in
6100
    yes) enable_shared=yes ;;
6101
    no) enable_shared=no ;;
6102
    *)
6103
      enable_shared=no
6104
      # Look at the argument we got.  We use all the common list separators.
6105
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6106
      for pkg in $enableval; do
6107
        IFS="$lt_save_ifs"
6108
        if test "X$pkg" = "X$p"; then
6109
          enable_shared=yes
6110
        fi
6111
      done
6112
      IFS="$lt_save_ifs"
6113
      ;;
6114
    esac
6115
else
6116
  enable_shared=yes
6117
fi
6118
 
6119
 
6120
 
6121
 
6122
 
6123
 
6124
 
6125
 
6126
 
6127
  # Check whether --enable-static was given.
6128 346 jeremybenn
if test "${enable_static+set}" = set; then :
6129 90 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
6130
    case $enableval in
6131
    yes) enable_static=yes ;;
6132
    no) enable_static=no ;;
6133
    *)
6134
     enable_static=no
6135
      # Look at the argument we got.  We use all the common list separators.
6136
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6137
      for pkg in $enableval; do
6138
        IFS="$lt_save_ifs"
6139
        if test "X$pkg" = "X$p"; then
6140
          enable_static=yes
6141
        fi
6142
      done
6143
      IFS="$lt_save_ifs"
6144
      ;;
6145
    esac
6146
else
6147
  enable_static=yes
6148
fi
6149
 
6150
 
6151
 
6152
 
6153
 
6154
 
6155
 
6156
 
6157
 
6158
 
6159
# Check whether --with-pic was given.
6160 346 jeremybenn
if test "${with_pic+set}" = set; then :
6161 90 jeremybenn
  withval=$with_pic; pic_mode="$withval"
6162
else
6163
  pic_mode=default
6164
fi
6165
 
6166
 
6167
test -z "$pic_mode" && pic_mode=default
6168
 
6169
 
6170
 
6171
 
6172
 
6173
 
6174
 
6175
  # Check whether --enable-fast-install was given.
6176 346 jeremybenn
if test "${enable_fast_install+set}" = set; then :
6177 90 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
6178
    case $enableval in
6179
    yes) enable_fast_install=yes ;;
6180
    no) enable_fast_install=no ;;
6181
    *)
6182
      enable_fast_install=no
6183
      # Look at the argument we got.  We use all the common list separators.
6184
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6185
      for pkg in $enableval; do
6186
        IFS="$lt_save_ifs"
6187
        if test "X$pkg" = "X$p"; then
6188
          enable_fast_install=yes
6189
        fi
6190
      done
6191
      IFS="$lt_save_ifs"
6192
      ;;
6193
    esac
6194
else
6195
  enable_fast_install=yes
6196
fi
6197
 
6198
 
6199
 
6200
 
6201
 
6202
 
6203
 
6204
 
6205
 
6206
 
6207
 
6208
# This can be used to rebuild libtool when needed
6209
LIBTOOL_DEPS="$ltmain"
6210
 
6211
# Always use our own libtool.
6212
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6213
 
6214
 
6215
 
6216
 
6217
 
6218
 
6219
 
6220
 
6221
 
6222
 
6223
 
6224
 
6225
 
6226
 
6227
 
6228
 
6229
 
6230
 
6231
 
6232
 
6233
 
6234
 
6235
 
6236
 
6237
 
6238
test -z "$LN_S" && LN_S="ln -s"
6239
 
6240
 
6241
 
6242
 
6243
 
6244
 
6245
 
6246
 
6247
 
6248
 
6249
 
6250
 
6251
 
6252
 
6253
if test -n "${ZSH_VERSION+set}" ; then
6254
   setopt NO_GLOB_SUBST
6255
fi
6256
 
6257 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6258 90 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6259 346 jeremybenn
if test "${lt_cv_objdir+set}" = set; then :
6260 90 jeremybenn
  $as_echo_n "(cached) " >&6
6261
else
6262
  rm -f .libs 2>/dev/null
6263
mkdir .libs 2>/dev/null
6264
if test -d .libs; then
6265
  lt_cv_objdir=.libs
6266
else
6267
  # MS-DOS does not allow filenames that begin with a dot.
6268
  lt_cv_objdir=_libs
6269
fi
6270
rmdir .libs 2>/dev/null
6271
fi
6272 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6273 90 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
6274
objdir=$lt_cv_objdir
6275
 
6276
 
6277
 
6278
 
6279
 
6280
cat >>confdefs.h <<_ACEOF
6281
#define LT_OBJDIR "$lt_cv_objdir/"
6282
_ACEOF
6283
 
6284
 
6285
 
6286
 
6287
 
6288
 
6289
 
6290
 
6291
 
6292
 
6293
 
6294
 
6295
 
6296
 
6297
 
6298
 
6299
 
6300
case $host_os in
6301
aix3*)
6302
  # AIX sometimes has problems with the GCC collect2 program.  For some
6303
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6304
  # vanish in a puff of smoke.
6305
  if test "X${COLLECT_NAMES+set}" != Xset; then
6306
    COLLECT_NAMES=
6307
    export COLLECT_NAMES
6308
  fi
6309
  ;;
6310
esac
6311
 
6312
# Sed substitution that helps us do robust quoting.  It backslashifies
6313
# metacharacters that are still active within double-quoted strings.
6314
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6315
 
6316
# Same as above, but do not quote variable references.
6317
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6318
 
6319
# Sed substitution to delay expansion of an escaped shell variable in a
6320
# double_quote_subst'ed string.
6321
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6322
 
6323
# Sed substitution to delay expansion of an escaped single quote.
6324
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6325
 
6326
# Sed substitution to avoid accidental globbing in evaled expressions
6327
no_glob_subst='s/\*/\\\*/g'
6328
 
6329
# Global variables:
6330
ofile=libtool
6331
can_build_shared=yes
6332
 
6333
# All known linkers require a `.a' archive for static linking (except MSVC,
6334
# which needs '.lib').
6335
libext=a
6336
 
6337
with_gnu_ld="$lt_cv_prog_gnu_ld"
6338
 
6339
old_CC="$CC"
6340
old_CFLAGS="$CFLAGS"
6341
 
6342
# Set sane defaults for various variables
6343
test -z "$CC" && CC=cc
6344
test -z "$LTCC" && LTCC=$CC
6345
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6346
test -z "$LD" && LD=ld
6347
test -z "$ac_objext" && ac_objext=o
6348
 
6349
for cc_temp in $compiler""; do
6350
  case $cc_temp in
6351
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6352
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6353
    \-*) ;;
6354
    *) break;;
6355
  esac
6356
done
6357
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6358
 
6359
 
6360
# Only perform the check for file, if the check method requires it
6361
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6362
case $deplibs_check_method in
6363
file_magic*)
6364
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6365 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6366 90 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6367 346 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6368 90 jeremybenn
  $as_echo_n "(cached) " >&6
6369
else
6370
  case $MAGIC_CMD in
6371
[\\/*] |  ?:[\\/]*)
6372
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6373
  ;;
6374
*)
6375
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6376
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6377
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6378
  for ac_dir in $ac_dummy; do
6379
    IFS="$lt_save_ifs"
6380
    test -z "$ac_dir" && ac_dir=.
6381
    if test -f $ac_dir/${ac_tool_prefix}file; then
6382
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6383
      if test -n "$file_magic_test_file"; then
6384
        case $deplibs_check_method in
6385
        "file_magic "*)
6386
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6387
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6388
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6389
            $EGREP "$file_magic_regex" > /dev/null; then
6390
            :
6391
          else
6392
            cat <<_LT_EOF 1>&2
6393
 
6394
*** Warning: the command libtool uses to detect shared libraries,
6395
*** $file_magic_cmd, produces output that libtool cannot recognize.
6396
*** The result is that libtool may fail to recognize shared libraries
6397
*** as such.  This will affect the creation of libtool libraries that
6398
*** depend on shared libraries, but programs linked with such libtool
6399
*** libraries will work regardless of this problem.  Nevertheless, you
6400
*** may want to report the problem to your system manager and/or to
6401
*** bug-libtool@gnu.org
6402
 
6403
_LT_EOF
6404
          fi ;;
6405
        esac
6406
      fi
6407
      break
6408
    fi
6409
  done
6410
  IFS="$lt_save_ifs"
6411
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6412
  ;;
6413
esac
6414
fi
6415
 
6416
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6417
if test -n "$MAGIC_CMD"; then
6418 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6419 90 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6420
else
6421 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 90 jeremybenn
$as_echo "no" >&6; }
6423
fi
6424
 
6425
 
6426
 
6427
 
6428
 
6429
if test -z "$lt_cv_path_MAGIC_CMD"; then
6430
  if test -n "$ac_tool_prefix"; then
6431 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6432 90 jeremybenn
$as_echo_n "checking for file... " >&6; }
6433 346 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6434 90 jeremybenn
  $as_echo_n "(cached) " >&6
6435
else
6436
  case $MAGIC_CMD in
6437
[\\/*] |  ?:[\\/]*)
6438
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6439
  ;;
6440
*)
6441
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6442
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6443
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6444
  for ac_dir in $ac_dummy; do
6445
    IFS="$lt_save_ifs"
6446
    test -z "$ac_dir" && ac_dir=.
6447
    if test -f $ac_dir/file; then
6448
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6449
      if test -n "$file_magic_test_file"; then
6450
        case $deplibs_check_method in
6451
        "file_magic "*)
6452
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6453
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6454
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6455
            $EGREP "$file_magic_regex" > /dev/null; then
6456
            :
6457
          else
6458
            cat <<_LT_EOF 1>&2
6459
 
6460
*** Warning: the command libtool uses to detect shared libraries,
6461
*** $file_magic_cmd, produces output that libtool cannot recognize.
6462
*** The result is that libtool may fail to recognize shared libraries
6463
*** as such.  This will affect the creation of libtool libraries that
6464
*** depend on shared libraries, but programs linked with such libtool
6465
*** libraries will work regardless of this problem.  Nevertheless, you
6466
*** may want to report the problem to your system manager and/or to
6467
*** bug-libtool@gnu.org
6468
 
6469
_LT_EOF
6470
          fi ;;
6471
        esac
6472
      fi
6473
      break
6474
    fi
6475
  done
6476
  IFS="$lt_save_ifs"
6477
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6478
  ;;
6479
esac
6480
fi
6481
 
6482
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6483
if test -n "$MAGIC_CMD"; then
6484 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6485 90 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6486
else
6487 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 90 jeremybenn
$as_echo "no" >&6; }
6489
fi
6490
 
6491
 
6492
  else
6493
    MAGIC_CMD=:
6494
  fi
6495
fi
6496
 
6497
  fi
6498
  ;;
6499
esac
6500
 
6501
# Use C for the default configuration in the libtool script
6502
 
6503
lt_save_CC="$CC"
6504
ac_ext=c
6505
ac_cpp='$CPP $CPPFLAGS'
6506
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6507
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6508
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6509
 
6510
 
6511
# Source file extension for C test sources.
6512
ac_ext=c
6513
 
6514
# Object file extension for compiled C test sources.
6515
objext=o
6516
objext=$objext
6517
 
6518
# Code to be used in simple compile tests
6519
lt_simple_compile_test_code="int some_variable = 0;"
6520
 
6521
# Code to be used in simple link tests
6522
lt_simple_link_test_code='int main(){return(0);}'
6523
 
6524
 
6525
 
6526
 
6527
 
6528
 
6529
 
6530
# If no C compiler was specified, use CC.
6531
LTCC=${LTCC-"$CC"}
6532
 
6533
# If no C compiler flags were specified, use CFLAGS.
6534
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6535
 
6536
# Allow CC to be a program name with arguments.
6537
compiler=$CC
6538
 
6539
# Save the default compiler, since it gets overwritten when the other
6540
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6541
compiler_DEFAULT=$CC
6542
 
6543
# save warnings/boilerplate of simple test code
6544
ac_outfile=conftest.$ac_objext
6545
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6546
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6547
_lt_compiler_boilerplate=`cat conftest.err`
6548
$RM conftest*
6549
 
6550
ac_outfile=conftest.$ac_objext
6551
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6552
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6553
_lt_linker_boilerplate=`cat conftest.err`
6554
$RM -r conftest*
6555
 
6556
 
6557
## CAVEAT EMPTOR:
6558
## There is no encapsulation within the following macros, do not change
6559
## the running order or otherwise move them around unless you know exactly
6560
## what you are doing...
6561
if test -n "$compiler"; then
6562
 
6563
lt_prog_compiler_no_builtin_flag=
6564
 
6565
if test "$GCC" = yes; then
6566
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6567
 
6568 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6569 90 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6570 346 jeremybenn
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6571 90 jeremybenn
  $as_echo_n "(cached) " >&6
6572
else
6573
  lt_cv_prog_compiler_rtti_exceptions=no
6574
   ac_outfile=conftest.$ac_objext
6575
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6576
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6577
   # Insert the option either (1) after the last *FLAGS variable, or
6578
   # (2) before a word containing "conftest.", or (3) at the end.
6579
   # Note that $ac_compile itself does not contain backslashes and begins
6580
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6581
   # The option is referenced via a variable to avoid confusing sed.
6582
   lt_compile=`echo "$ac_compile" | $SED \
6583
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6584
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6585
   -e 's:$: $lt_compiler_flag:'`
6586 538 julius
   (eval echo "\"\$as_me:6586: $lt_compile\"" >&5)
6587 90 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
6588
   ac_status=$?
6589
   cat conftest.err >&5
6590 538 julius
   echo "$as_me:6590: \$? = $ac_status" >&5
6591 90 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
6592
     # The compiler can only warn and ignore the option if not recognized
6593
     # So say no if there are warnings other than the usual output.
6594
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6595
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6596
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6597
       lt_cv_prog_compiler_rtti_exceptions=yes
6598
     fi
6599
   fi
6600
   $RM conftest*
6601
 
6602
fi
6603 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6604 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6605
 
6606
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6607
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6608
else
6609
    :
6610
fi
6611
 
6612
fi
6613
 
6614
 
6615
 
6616
 
6617
 
6618
 
6619
  lt_prog_compiler_wl=
6620
lt_prog_compiler_pic=
6621
lt_prog_compiler_static=
6622
 
6623 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6624 90 jeremybenn
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6625
 
6626
  if test "$GCC" = yes; then
6627
    lt_prog_compiler_wl='-Wl,'
6628
    lt_prog_compiler_static='-static'
6629
 
6630
    case $host_os in
6631
      aix*)
6632
      # All AIX code is PIC.
6633
      if test "$host_cpu" = ia64; then
6634
        # AIX 5 now supports IA64 processor
6635
        lt_prog_compiler_static='-Bstatic'
6636
      fi
6637
      ;;
6638
 
6639
    amigaos*)
6640
      case $host_cpu in
6641
      powerpc)
6642
            # see comment about AmigaOS4 .so support
6643
            lt_prog_compiler_pic='-fPIC'
6644
        ;;
6645
      m68k)
6646
            # FIXME: we need at least 68020 code to build shared libraries, but
6647
            # adding the `-m68020' flag to GCC prevents building anything better,
6648
            # like `-m68040'.
6649
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6650
        ;;
6651
      esac
6652
      ;;
6653
 
6654
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6655
      # PIC is the default for these OSes.
6656
      ;;
6657
 
6658
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6659
      # This hack is so that the source file can tell whether it is being
6660
      # built for inclusion in a dll (and should export symbols for example).
6661
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6662
      # (--disable-auto-import) libraries
6663
      lt_prog_compiler_pic='-DDLL_EXPORT'
6664
      ;;
6665
 
6666
    darwin* | rhapsody*)
6667
      # PIC is the default on this platform
6668
      # Common symbols not allowed in MH_DYLIB files
6669
      lt_prog_compiler_pic='-fno-common'
6670
      ;;
6671
 
6672
    hpux*)
6673
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6674
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6675
      # sets the default TLS model and affects inlining.
6676
      case $host_cpu in
6677
      hppa*64*)
6678
        # +Z the default
6679
        ;;
6680
      *)
6681
        lt_prog_compiler_pic='-fPIC'
6682
        ;;
6683
      esac
6684
      ;;
6685
 
6686
    interix[3-9]*)
6687
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6688
      # Instead, we relocate shared libraries at runtime.
6689
      ;;
6690
 
6691
    msdosdjgpp*)
6692
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6693
      # on systems that don't support them.
6694
      lt_prog_compiler_can_build_shared=no
6695
      enable_shared=no
6696
      ;;
6697
 
6698
    *nto* | *qnx*)
6699
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6700
      # it will coredump.
6701
      lt_prog_compiler_pic='-fPIC -shared'
6702
      ;;
6703
 
6704
    sysv4*MP*)
6705
      if test -d /usr/nec; then
6706
        lt_prog_compiler_pic=-Kconform_pic
6707
      fi
6708
      ;;
6709
 
6710
    *)
6711
      lt_prog_compiler_pic='-fPIC'
6712
      ;;
6713
    esac
6714
  else
6715
    # PORTME Check for flag to pass linker flags through the system compiler.
6716
    case $host_os in
6717
    aix*)
6718
      lt_prog_compiler_wl='-Wl,'
6719
      if test "$host_cpu" = ia64; then
6720
        # AIX 5 now supports IA64 processor
6721
        lt_prog_compiler_static='-Bstatic'
6722
      else
6723
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6724
      fi
6725
      ;;
6726
 
6727
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6728
      # This hack is so that the source file can tell whether it is being
6729
      # built for inclusion in a dll (and should export symbols for example).
6730
      lt_prog_compiler_pic='-DDLL_EXPORT'
6731
      ;;
6732
 
6733
    hpux9* | hpux10* | hpux11*)
6734
      lt_prog_compiler_wl='-Wl,'
6735
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6736
      # not for PA HP-UX.
6737
      case $host_cpu in
6738
      hppa*64*|ia64*)
6739
        # +Z the default
6740
        ;;
6741
      *)
6742
        lt_prog_compiler_pic='+Z'
6743
        ;;
6744
      esac
6745
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6746
      lt_prog_compiler_static='${wl}-a ${wl}archive'
6747
      ;;
6748
 
6749
    irix5* | irix6* | nonstopux*)
6750
      lt_prog_compiler_wl='-Wl,'
6751
      # PIC (with -KPIC) is the default.
6752
      lt_prog_compiler_static='-non_shared'
6753
      ;;
6754
 
6755
    linux* | k*bsd*-gnu)
6756
      case $cc_basename in
6757
      # old Intel for x86_64 which still supported -KPIC.
6758
      ecc*)
6759
        lt_prog_compiler_wl='-Wl,'
6760
        lt_prog_compiler_pic='-KPIC'
6761
        lt_prog_compiler_static='-static'
6762
        ;;
6763
      # icc used to be incompatible with GCC.
6764
      # ICC 10 doesn't accept -KPIC any more.
6765
      icc* | ifort*)
6766
        lt_prog_compiler_wl='-Wl,'
6767
        lt_prog_compiler_pic='-fPIC'
6768
        lt_prog_compiler_static='-static'
6769
        ;;
6770
      # Lahey Fortran 8.1.
6771
      lf95*)
6772
        lt_prog_compiler_wl='-Wl,'
6773
        lt_prog_compiler_pic='--shared'
6774
        lt_prog_compiler_static='--static'
6775
        ;;
6776
      pgcc* | pgf77* | pgf90* | pgf95*)
6777
        # Portland Group compilers (*not* the Pentium gcc compiler,
6778
        # which looks to be a dead project)
6779
        lt_prog_compiler_wl='-Wl,'
6780
        lt_prog_compiler_pic='-fpic'
6781
        lt_prog_compiler_static='-Bstatic'
6782
        ;;
6783
      ccc*)
6784
        lt_prog_compiler_wl='-Wl,'
6785
        # All Alpha code is PIC.
6786
        lt_prog_compiler_static='-non_shared'
6787
        ;;
6788
      xl*)
6789
        # IBM XL C 8.0/Fortran 10.1 on PPC
6790
        lt_prog_compiler_wl='-Wl,'
6791
        lt_prog_compiler_pic='-qpic'
6792
        lt_prog_compiler_static='-qstaticlink'
6793
        ;;
6794
      *)
6795
        case `$CC -V 2>&1 | sed 5q` in
6796
        *Sun\ C*)
6797
          # Sun C 5.9
6798
          lt_prog_compiler_pic='-KPIC'
6799
          lt_prog_compiler_static='-Bstatic'
6800
          lt_prog_compiler_wl='-Wl,'
6801
          ;;
6802
        *Sun\ F*)
6803
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6804
          lt_prog_compiler_pic='-KPIC'
6805
          lt_prog_compiler_static='-Bstatic'
6806
          lt_prog_compiler_wl=''
6807
          ;;
6808
        esac
6809
        ;;
6810
      esac
6811
      ;;
6812
 
6813
    newsos6)
6814
      lt_prog_compiler_pic='-KPIC'
6815
      lt_prog_compiler_static='-Bstatic'
6816
      ;;
6817
 
6818
    *nto* | *qnx*)
6819
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6820
      # it will coredump.
6821
      lt_prog_compiler_pic='-fPIC -shared'
6822
      ;;
6823
 
6824
    osf3* | osf4* | osf5*)
6825
      lt_prog_compiler_wl='-Wl,'
6826
      # All OSF/1 code is PIC.
6827
      lt_prog_compiler_static='-non_shared'
6828
      ;;
6829
 
6830
    rdos*)
6831
      lt_prog_compiler_static='-non_shared'
6832
      ;;
6833
 
6834
    solaris*)
6835
      lt_prog_compiler_pic='-KPIC'
6836
      lt_prog_compiler_static='-Bstatic'
6837
      case $cc_basename in
6838
      f77* | f90* | f95*)
6839
        lt_prog_compiler_wl='-Qoption ld ';;
6840
      *)
6841
        lt_prog_compiler_wl='-Wl,';;
6842
      esac
6843
      ;;
6844
 
6845
    sunos4*)
6846
      lt_prog_compiler_wl='-Qoption ld '
6847
      lt_prog_compiler_pic='-PIC'
6848
      lt_prog_compiler_static='-Bstatic'
6849
      ;;
6850
 
6851
    sysv4 | sysv4.2uw2* | sysv4.3*)
6852
      lt_prog_compiler_wl='-Wl,'
6853
      lt_prog_compiler_pic='-KPIC'
6854
      lt_prog_compiler_static='-Bstatic'
6855
      ;;
6856
 
6857
    sysv4*MP*)
6858
      if test -d /usr/nec ;then
6859
        lt_prog_compiler_pic='-Kconform_pic'
6860
        lt_prog_compiler_static='-Bstatic'
6861
      fi
6862
      ;;
6863
 
6864
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6865
      lt_prog_compiler_wl='-Wl,'
6866
      lt_prog_compiler_pic='-KPIC'
6867
      lt_prog_compiler_static='-Bstatic'
6868
      ;;
6869
 
6870
    unicos*)
6871
      lt_prog_compiler_wl='-Wl,'
6872
      lt_prog_compiler_can_build_shared=no
6873
      ;;
6874
 
6875
    uts4*)
6876
      lt_prog_compiler_pic='-pic'
6877
      lt_prog_compiler_static='-Bstatic'
6878
      ;;
6879
 
6880
    *)
6881
      lt_prog_compiler_can_build_shared=no
6882
      ;;
6883
    esac
6884
  fi
6885
 
6886
case $host_os in
6887
  # For platforms which do not support PIC, -DPIC is meaningless:
6888
  *djgpp*)
6889
    lt_prog_compiler_pic=
6890
    ;;
6891
  *)
6892
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6893
    ;;
6894
esac
6895 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6896 90 jeremybenn
$as_echo "$lt_prog_compiler_pic" >&6; }
6897
 
6898
 
6899
 
6900
 
6901
 
6902
 
6903
#
6904
# Check to make sure the PIC flag actually works.
6905
#
6906
if test -n "$lt_prog_compiler_pic"; then
6907 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6908 90 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6909 346 jeremybenn
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
6910 90 jeremybenn
  $as_echo_n "(cached) " >&6
6911
else
6912
  lt_cv_prog_compiler_pic_works=no
6913
   ac_outfile=conftest.$ac_objext
6914
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6915
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6916
   # Insert the option either (1) after the last *FLAGS variable, or
6917
   # (2) before a word containing "conftest.", or (3) at the end.
6918
   # Note that $ac_compile itself does not contain backslashes and begins
6919
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6920
   # The option is referenced via a variable to avoid confusing sed.
6921
   lt_compile=`echo "$ac_compile" | $SED \
6922
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6923
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6924
   -e 's:$: $lt_compiler_flag:'`
6925 538 julius
   (eval echo "\"\$as_me:6925: $lt_compile\"" >&5)
6926 90 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
6927
   ac_status=$?
6928
   cat conftest.err >&5
6929 538 julius
   echo "$as_me:6929: \$? = $ac_status" >&5
6930 90 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
6931
     # The compiler can only warn and ignore the option if not recognized
6932
     # So say no if there are warnings other than the usual output.
6933
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6934
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6935
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6936
       lt_cv_prog_compiler_pic_works=yes
6937
     fi
6938
   fi
6939
   $RM conftest*
6940
 
6941
fi
6942 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
6943 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
6944
 
6945
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
6946
    case $lt_prog_compiler_pic in
6947
     "" | " "*) ;;
6948
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6949
     esac
6950
else
6951
    lt_prog_compiler_pic=
6952
     lt_prog_compiler_can_build_shared=no
6953
fi
6954
 
6955
fi
6956
 
6957
 
6958
 
6959
 
6960
 
6961
 
6962
#
6963
# Check to make sure the static flag actually works.
6964
#
6965
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6966 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6967 90 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
6968 346 jeremybenn
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
6969 90 jeremybenn
  $as_echo_n "(cached) " >&6
6970
else
6971
  lt_cv_prog_compiler_static_works=no
6972
   save_LDFLAGS="$LDFLAGS"
6973
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6974
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
6975
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6976
     # The linker can only warn and ignore the option if not recognized
6977
     # So say no if there are warnings
6978
     if test -s conftest.err; then
6979
       # Append any errors to the config.log.
6980
       cat conftest.err 1>&5
6981
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6982
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6983
       if diff conftest.exp conftest.er2 >/dev/null; then
6984
         lt_cv_prog_compiler_static_works=yes
6985
       fi
6986
     else
6987
       lt_cv_prog_compiler_static_works=yes
6988
     fi
6989
   fi
6990
   $RM -r conftest*
6991
   LDFLAGS="$save_LDFLAGS"
6992
 
6993
fi
6994 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
6995 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
6996
 
6997
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
6998
    :
6999
else
7000
    lt_prog_compiler_static=
7001
fi
7002
 
7003
 
7004
 
7005
 
7006
 
7007
 
7008
 
7009 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7010 90 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7011 346 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7012 90 jeremybenn
  $as_echo_n "(cached) " >&6
7013
else
7014
  lt_cv_prog_compiler_c_o=no
7015
   $RM -r conftest 2>/dev/null
7016
   mkdir conftest
7017
   cd conftest
7018
   mkdir out
7019
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7020
 
7021
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7022
   # Insert the option either (1) after the last *FLAGS variable, or
7023
   # (2) before a word containing "conftest.", or (3) at the end.
7024
   # Note that $ac_compile itself does not contain backslashes and begins
7025
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7026
   lt_compile=`echo "$ac_compile" | $SED \
7027
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7028
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7029
   -e 's:$: $lt_compiler_flag:'`
7030 538 julius
   (eval echo "\"\$as_me:7030: $lt_compile\"" >&5)
7031 90 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7032
   ac_status=$?
7033
   cat out/conftest.err >&5
7034 538 julius
   echo "$as_me:7034: \$? = $ac_status" >&5
7035 90 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7036
   then
7037
     # The compiler can only warn and ignore the option if not recognized
7038
     # So say no if there are warnings
7039
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7040
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7041
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7042
       lt_cv_prog_compiler_c_o=yes
7043
     fi
7044
   fi
7045
   chmod u+w . 2>&5
7046
   $RM conftest*
7047
   # SGI C++ compiler will create directory out/ii_files/ for
7048
   # template instantiation
7049
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7050
   $RM out/* && rmdir out
7051
   cd ..
7052
   $RM -r conftest
7053
   $RM conftest*
7054
 
7055
fi
7056 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7057 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7058
 
7059
 
7060
 
7061
 
7062
 
7063
 
7064 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7065 90 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7066 346 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7067 90 jeremybenn
  $as_echo_n "(cached) " >&6
7068
else
7069
  lt_cv_prog_compiler_c_o=no
7070
   $RM -r conftest 2>/dev/null
7071
   mkdir conftest
7072
   cd conftest
7073
   mkdir out
7074
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7075
 
7076
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7077
   # Insert the option either (1) after the last *FLAGS variable, or
7078
   # (2) before a word containing "conftest.", or (3) at the end.
7079
   # Note that $ac_compile itself does not contain backslashes and begins
7080
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7081
   lt_compile=`echo "$ac_compile" | $SED \
7082
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7083
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7084
   -e 's:$: $lt_compiler_flag:'`
7085 538 julius
   (eval echo "\"\$as_me:7085: $lt_compile\"" >&5)
7086 90 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7087
   ac_status=$?
7088
   cat out/conftest.err >&5
7089 538 julius
   echo "$as_me:7089: \$? = $ac_status" >&5
7090 90 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7091
   then
7092
     # The compiler can only warn and ignore the option if not recognized
7093
     # So say no if there are warnings
7094
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7095
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7096
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7097
       lt_cv_prog_compiler_c_o=yes
7098
     fi
7099
   fi
7100
   chmod u+w . 2>&5
7101
   $RM conftest*
7102
   # SGI C++ compiler will create directory out/ii_files/ for
7103
   # template instantiation
7104
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7105
   $RM out/* && rmdir out
7106
   cd ..
7107
   $RM -r conftest
7108
   $RM conftest*
7109
 
7110
fi
7111 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7112 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7113
 
7114
 
7115
 
7116
 
7117
hard_links="nottested"
7118
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7119
  # do not overwrite the value of need_locks provided by the user
7120 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7121 90 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
7122
  hard_links=yes
7123
  $RM conftest*
7124
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7125
  touch conftest.a
7126
  ln conftest.a conftest.b 2>&5 || hard_links=no
7127
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7128 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7129 90 jeremybenn
$as_echo "$hard_links" >&6; }
7130
  if test "$hard_links" = no; then
7131 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7132 90 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7133
    need_locks=warn
7134
  fi
7135
else
7136
  need_locks=no
7137
fi
7138
 
7139
 
7140
 
7141
 
7142
 
7143
 
7144 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7145 90 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7146
 
7147
  runpath_var=
7148
  allow_undefined_flag=
7149
  always_export_symbols=no
7150
  archive_cmds=
7151
  archive_expsym_cmds=
7152
  compiler_needs_object=no
7153
  enable_shared_with_static_runtimes=no
7154
  export_dynamic_flag_spec=
7155
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7156
  hardcode_automatic=no
7157
  hardcode_direct=no
7158
  hardcode_direct_absolute=no
7159
  hardcode_libdir_flag_spec=
7160
  hardcode_libdir_flag_spec_ld=
7161
  hardcode_libdir_separator=
7162
  hardcode_minus_L=no
7163
  hardcode_shlibpath_var=unsupported
7164
  inherit_rpath=no
7165
  link_all_deplibs=unknown
7166
  module_cmds=
7167
  module_expsym_cmds=
7168
  old_archive_from_new_cmds=
7169
  old_archive_from_expsyms_cmds=
7170
  thread_safe_flag_spec=
7171
  whole_archive_flag_spec=
7172
  # include_expsyms should be a list of space-separated symbols to be *always*
7173
  # included in the symbol list
7174
  include_expsyms=
7175
  # exclude_expsyms can be an extended regexp of symbols to exclude
7176
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7177
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7178
  # as well as any symbol that contains `d'.
7179
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7180
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7181
  # platforms (ab)use it in PIC code, but their linkers get confused if
7182
  # the symbol is explicitly referenced.  Since portable code cannot
7183
  # rely on this symbol name, it's probably fine to never include it in
7184
  # preloaded symbol tables.
7185
  # Exclude shared library initialization/finalization symbols.
7186
  extract_expsyms_cmds=
7187
 
7188
  case $host_os in
7189
  cygwin* | mingw* | pw32* | cegcc*)
7190
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7191
    # When not using gcc, we currently assume that we are using
7192
    # Microsoft Visual C++.
7193
    if test "$GCC" != yes; then
7194
      with_gnu_ld=no
7195
    fi
7196
    ;;
7197
  interix*)
7198
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7199
    with_gnu_ld=yes
7200
    ;;
7201
  openbsd*)
7202
    with_gnu_ld=no
7203
    ;;
7204 93 jeremybenn
  linux* | k*bsd*-gnu)
7205
    link_all_deplibs=no
7206
    ;;
7207 90 jeremybenn
  esac
7208
 
7209
  ld_shlibs=yes
7210
  if test "$with_gnu_ld" = yes; then
7211
    # If archive_cmds runs LD, not CC, wlarc should be empty
7212
    wlarc='${wl}'
7213
 
7214
    # Set some defaults for GNU ld with shared library support. These
7215
    # are reset later if shared libraries are not supported. Putting them
7216
    # here allows them to be overridden if necessary.
7217
    runpath_var=LD_RUN_PATH
7218
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7219
    export_dynamic_flag_spec='${wl}--export-dynamic'
7220
    # ancient GNU ld didn't support --whole-archive et. al.
7221
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7222
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7223
    else
7224
      whole_archive_flag_spec=
7225
    fi
7226
    supports_anon_versioning=no
7227
    case `$LD -v 2>&1` in
7228
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7229
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7230
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7231
      *\ 2.11.*) ;; # other 2.11 versions
7232
      *) supports_anon_versioning=yes ;;
7233
    esac
7234
 
7235
    # See if GNU ld supports shared libraries.
7236
    case $host_os in
7237
    aix[3-9]*)
7238
      # On AIX/PPC, the GNU linker is very broken
7239
      if test "$host_cpu" != ia64; then
7240
        ld_shlibs=no
7241
        cat <<_LT_EOF 1>&2
7242
 
7243
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7244
*** to be unable to reliably create shared libraries on AIX.
7245
*** Therefore, libtool is disabling shared libraries support.  If you
7246
*** really care for shared libraries, you may want to modify your PATH
7247
*** so that a non-GNU linker is found, and then restart.
7248
 
7249
_LT_EOF
7250
      fi
7251
      ;;
7252
 
7253
    amigaos*)
7254
      case $host_cpu in
7255
      powerpc)
7256
            # see comment about AmigaOS4 .so support
7257
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7258
            archive_expsym_cmds=''
7259
        ;;
7260
      m68k)
7261
            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)'
7262
            hardcode_libdir_flag_spec='-L$libdir'
7263
            hardcode_minus_L=yes
7264
        ;;
7265
      esac
7266
      ;;
7267
 
7268
    beos*)
7269
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7270
        allow_undefined_flag=unsupported
7271
        # Joseph Beckenbach  says some releases of gcc
7272
        # support --undefined.  This deserves some investigation.  FIXME
7273
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7274
      else
7275
        ld_shlibs=no
7276
      fi
7277
      ;;
7278
 
7279
    cygwin* | mingw* | pw32* | cegcc*)
7280
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7281
      # as there is no search path for DLLs.
7282
      hardcode_libdir_flag_spec='-L$libdir'
7283
      allow_undefined_flag=unsupported
7284
      always_export_symbols=no
7285
      enable_shared_with_static_runtimes=yes
7286
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7287
 
7288
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7289
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7290
        # If the export-symbols file already is a .def file (1st line
7291
        # is EXPORTS), use it as is; otherwise, prepend...
7292
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7293
          cp $export_symbols $output_objdir/$soname.def;
7294
        else
7295
          echo EXPORTS > $output_objdir/$soname.def;
7296
          cat $export_symbols >> $output_objdir/$soname.def;
7297
        fi~
7298
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7299
      else
7300
        ld_shlibs=no
7301
      fi
7302
      ;;
7303
 
7304
    interix[3-9]*)
7305
      hardcode_direct=no
7306
      hardcode_shlibpath_var=no
7307
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7308
      export_dynamic_flag_spec='${wl}-E'
7309
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7310
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7311
      # default) and relocated if they conflict, which is a slow very memory
7312
      # consuming and fragmenting process.  To avoid this, we pick a random,
7313
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7314
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7315
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7316
      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'
7317
      ;;
7318
 
7319
    gnu* | linux* | tpf* | k*bsd*-gnu)
7320
      tmp_diet=no
7321
      if test "$host_os" = linux-dietlibc; then
7322
        case $cc_basename in
7323
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7324
        esac
7325
      fi
7326
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7327
         && test "$tmp_diet" = no
7328
      then
7329
        tmp_addflag=
7330
        tmp_sharedflag='-shared'
7331
        case $cc_basename,$host_cpu in
7332
        pgcc*)                          # Portland Group C compiler
7333
          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'
7334
          tmp_addflag=' $pic_flag'
7335
          ;;
7336
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7337
          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'
7338
          tmp_addflag=' $pic_flag -Mnomain' ;;
7339
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7340
          tmp_addflag=' -i_dynamic' ;;
7341
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7342
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7343
        ifc* | ifort*)                  # Intel Fortran compiler
7344
          tmp_addflag=' -nofor_main' ;;
7345
        lf95*)                          # Lahey Fortran 8.1
7346
          whole_archive_flag_spec=
7347
          tmp_sharedflag='--shared' ;;
7348
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7349
          tmp_sharedflag='-qmkshrobj'
7350
          tmp_addflag= ;;
7351
        esac
7352
        case `$CC -V 2>&1 | sed 5q` in
7353
        *Sun\ C*)                       # Sun C 5.9
7354
          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'
7355
          compiler_needs_object=yes
7356
          tmp_sharedflag='-G' ;;
7357
        *Sun\ F*)                       # Sun Fortran 8.3
7358
          tmp_sharedflag='-G' ;;
7359
        esac
7360
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7361
 
7362
        if test "x$supports_anon_versioning" = xyes; then
7363
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7364
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7365
            echo "local: *; };" >> $output_objdir/$libname.ver~
7366
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7367
        fi
7368
 
7369
        case $cc_basename in
7370
        xlf*)
7371
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7372
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7373
          hardcode_libdir_flag_spec=
7374
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7375
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7376
          if test "x$supports_anon_versioning" = xyes; then
7377
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7378
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7379
              echo "local: *; };" >> $output_objdir/$libname.ver~
7380
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7381
          fi
7382
          ;;
7383
        esac
7384
      else
7385
        ld_shlibs=no
7386
      fi
7387
      ;;
7388
 
7389 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7390 90 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7391
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7392
        wlarc=
7393
      else
7394
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7395
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7396
      fi
7397
      ;;
7398
 
7399
    solaris*)
7400
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7401
        ld_shlibs=no
7402
        cat <<_LT_EOF 1>&2
7403
 
7404
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7405
*** create shared libraries on Solaris systems.  Therefore, libtool
7406
*** is disabling shared libraries support.  We urge you to upgrade GNU
7407
*** binutils to release 2.9.1 or newer.  Another option is to modify
7408
*** your PATH or compiler configuration so that the native linker is
7409
*** used, and then restart.
7410
 
7411
_LT_EOF
7412
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7413
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7414
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7415
      else
7416
        ld_shlibs=no
7417
      fi
7418
      ;;
7419
 
7420
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7421
      case `$LD -v 2>&1` in
7422
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7423
        ld_shlibs=no
7424
        cat <<_LT_EOF 1>&2
7425
 
7426
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7427
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7428
*** is disabling shared libraries support.  We urge you to upgrade GNU
7429
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7430
*** your PATH or compiler configuration so that the native linker is
7431
*** used, and then restart.
7432
 
7433
_LT_EOF
7434
        ;;
7435
        *)
7436
          # For security reasons, it is highly recommended that you always
7437
          # use absolute paths for naming shared libraries, and exclude the
7438
          # DT_RUNPATH tag from executables and libraries.  But doing so
7439
          # requires that you compile everything twice, which is a pain.
7440
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7441
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7442
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7443
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7444
          else
7445
            ld_shlibs=no
7446
          fi
7447
        ;;
7448
      esac
7449
      ;;
7450
 
7451
    sunos4*)
7452
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7453
      wlarc=
7454
      hardcode_direct=yes
7455
      hardcode_shlibpath_var=no
7456
      ;;
7457
 
7458
    *)
7459
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7460
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7461
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7462
      else
7463
        ld_shlibs=no
7464
      fi
7465
      ;;
7466
    esac
7467
 
7468
    if test "$ld_shlibs" = no; then
7469
      runpath_var=
7470
      hardcode_libdir_flag_spec=
7471
      export_dynamic_flag_spec=
7472
      whole_archive_flag_spec=
7473
    fi
7474
  else
7475
    # PORTME fill in a description of your system's linker (not GNU ld)
7476
    case $host_os in
7477
    aix3*)
7478
      allow_undefined_flag=unsupported
7479
      always_export_symbols=yes
7480
      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'
7481
      # Note: this linker hardcodes the directories in LIBPATH if there
7482
      # are no directories specified by -L.
7483
      hardcode_minus_L=yes
7484
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7485
        # Neither direct hardcoding nor static linking is supported with a
7486
        # broken collect2.
7487
        hardcode_direct=unsupported
7488
      fi
7489
      ;;
7490
 
7491
    aix[4-9]*)
7492
      if test "$host_cpu" = ia64; then
7493
        # On IA64, the linker does run time linking by default, so we don't
7494
        # have to do anything special.
7495
        aix_use_runtimelinking=no
7496
        exp_sym_flag='-Bexport'
7497
        no_entry_flag=""
7498
      else
7499
        # If we're using GNU nm, then we don't want the "-C" option.
7500
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7501
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7502
          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'
7503
        else
7504
          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'
7505
        fi
7506
        aix_use_runtimelinking=no
7507
 
7508
        # Test if we are trying to use run time linking or normal
7509
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7510
        # need to do runtime linking.
7511
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7512
          for ld_flag in $LDFLAGS; do
7513
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7514
            aix_use_runtimelinking=yes
7515
            break
7516
          fi
7517
          done
7518
          ;;
7519
        esac
7520
 
7521
        exp_sym_flag='-bexport'
7522
        no_entry_flag='-bnoentry'
7523
      fi
7524
 
7525
      # When large executables or shared objects are built, AIX ld can
7526
      # have problems creating the table of contents.  If linking a library
7527
      # or program results in "error TOC overflow" add -mminimal-toc to
7528
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7529
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7530
 
7531
      archive_cmds=''
7532
      hardcode_direct=yes
7533
      hardcode_direct_absolute=yes
7534
      hardcode_libdir_separator=':'
7535
      link_all_deplibs=yes
7536
      file_list_spec='${wl}-f,'
7537
 
7538
      if test "$GCC" = yes; then
7539
        case $host_os in aix4.[012]|aix4.[012].*)
7540
        # We only want to do this on AIX 4.2 and lower, the check
7541
        # below for broken collect2 doesn't work under 4.3+
7542
          collect2name=`${CC} -print-prog-name=collect2`
7543
          if test -f "$collect2name" &&
7544
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7545
          then
7546
          # We have reworked collect2
7547
          :
7548
          else
7549
          # We have old collect2
7550
          hardcode_direct=unsupported
7551
          # It fails to find uninstalled libraries when the uninstalled
7552
          # path is not listed in the libpath.  Setting hardcode_minus_L
7553
          # to unsupported forces relinking
7554
          hardcode_minus_L=yes
7555
          hardcode_libdir_flag_spec='-L$libdir'
7556
          hardcode_libdir_separator=
7557
          fi
7558
          ;;
7559
        esac
7560
        shared_flag='-shared'
7561
        if test "$aix_use_runtimelinking" = yes; then
7562
          shared_flag="$shared_flag "'${wl}-G'
7563
        fi
7564 93 jeremybenn
        link_all_deplibs=no
7565 90 jeremybenn
      else
7566
        # not using gcc
7567
        if test "$host_cpu" = ia64; then
7568
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7569
        # chokes on -Wl,-G. The following line is correct:
7570
          shared_flag='-G'
7571
        else
7572
          if test "$aix_use_runtimelinking" = yes; then
7573
            shared_flag='${wl}-G'
7574
          else
7575
            shared_flag='${wl}-bM:SRE'
7576
          fi
7577
        fi
7578
      fi
7579
 
7580
      export_dynamic_flag_spec='${wl}-bexpall'
7581
      # It seems that -bexpall does not export symbols beginning with
7582
      # underscore (_), so it is better to generate a list of symbols to export.
7583
      always_export_symbols=yes
7584
      if test "$aix_use_runtimelinking" = yes; then
7585
        # Warning - without using the other runtime loading flags (-brtl),
7586
        # -berok will link without error, but may produce a broken library.
7587
        allow_undefined_flag='-berok'
7588
        # Determine the default libpath from the value encoded in an
7589
        # empty executable.
7590 346 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 90 jeremybenn
/* end confdefs.h.  */
7592
 
7593
int
7594
main ()
7595
{
7596
 
7597
  ;
7598
  return 0;
7599
}
7600
_ACEOF
7601 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
7602 90 jeremybenn
 
7603
lt_aix_libpath_sed='
7604
    /Import File Strings/,/^$/ {
7605
        /^0/ {
7606
            s/^0  *\(.*\)$/\1/
7607
            p
7608
        }
7609
    }'
7610
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7611
# Check for a 64-bit object if we didn't find anything.
7612
if test -z "$aix_libpath"; then
7613
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7614
fi
7615
fi
7616 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
7617
    conftest$ac_exeext conftest.$ac_ext
7618 90 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7619
 
7620
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7621
        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"
7622
      else
7623
        if test "$host_cpu" = ia64; then
7624
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7625
          allow_undefined_flag="-z nodefs"
7626
          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"
7627
        else
7628
         # Determine the default libpath from the value encoded in an
7629
         # empty executable.
7630 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 90 jeremybenn
/* end confdefs.h.  */
7632
 
7633
int
7634
main ()
7635
{
7636
 
7637
  ;
7638
  return 0;
7639
}
7640
_ACEOF
7641 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
7642 90 jeremybenn
 
7643
lt_aix_libpath_sed='
7644
    /Import File Strings/,/^$/ {
7645
        /^0/ {
7646
            s/^0  *\(.*\)$/\1/
7647
            p
7648
        }
7649
    }'
7650
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7651
# Check for a 64-bit object if we didn't find anything.
7652
if test -z "$aix_libpath"; then
7653
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7654
fi
7655
fi
7656 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
7657
    conftest$ac_exeext conftest.$ac_ext
7658 90 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7659
 
7660
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7661
          # Warning - without using the other run time loading flags,
7662
          # -berok will link without error, but may produce a broken library.
7663
          no_undefined_flag=' ${wl}-bernotok'
7664
          allow_undefined_flag=' ${wl}-berok'
7665
          # Exported symbols can be pulled into shared objects from archives
7666
          whole_archive_flag_spec='$convenience'
7667
          archive_cmds_need_lc=yes
7668
          # This is similar to how AIX traditionally builds its shared libraries.
7669
          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'
7670
        fi
7671
      fi
7672
      ;;
7673
 
7674
    amigaos*)
7675
      case $host_cpu in
7676
      powerpc)
7677
            # see comment about AmigaOS4 .so support
7678
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7679
            archive_expsym_cmds=''
7680
        ;;
7681
      m68k)
7682
            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)'
7683
            hardcode_libdir_flag_spec='-L$libdir'
7684
            hardcode_minus_L=yes
7685
        ;;
7686
      esac
7687
      ;;
7688
 
7689
    bsdi[45]*)
7690
      export_dynamic_flag_spec=-rdynamic
7691
      ;;
7692
 
7693
    cygwin* | mingw* | pw32* | cegcc*)
7694
      # When not using gcc, we currently assume that we are using
7695
      # Microsoft Visual C++.
7696
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7697
      # no search path for DLLs.
7698
      hardcode_libdir_flag_spec=' '
7699
      allow_undefined_flag=unsupported
7700
      # Tell ltmain to make .lib files, not .a files.
7701
      libext=lib
7702
      # Tell ltmain to make .dll files, not .so files.
7703
      shrext_cmds=".dll"
7704
      # FIXME: Setting linknames here is a bad hack.
7705
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7706
      # The linker will automatically build a .lib file if we build a DLL.
7707
      old_archive_from_new_cmds='true'
7708
      # FIXME: Should let the user specify the lib program.
7709
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7710
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7711
      enable_shared_with_static_runtimes=yes
7712
      ;;
7713
 
7714
    darwin* | rhapsody*)
7715
 
7716
 
7717
  archive_cmds_need_lc=no
7718
  hardcode_direct=no
7719
  hardcode_automatic=yes
7720
  hardcode_shlibpath_var=unsupported
7721
  whole_archive_flag_spec=''
7722
  link_all_deplibs=yes
7723
  allow_undefined_flag="$_lt_dar_allow_undefined"
7724
  case $cc_basename in
7725
     ifort*) _lt_dar_can_shared=yes ;;
7726
     *) _lt_dar_can_shared=$GCC ;;
7727
  esac
7728
  if test "$_lt_dar_can_shared" = "yes"; then
7729
    output_verbose_link_cmd=echo
7730
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7731
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7732
    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}"
7733
    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}"
7734
 
7735
  else
7736
  ld_shlibs=no
7737
  fi
7738
 
7739
      ;;
7740
 
7741
    dgux*)
7742
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7743
      hardcode_libdir_flag_spec='-L$libdir'
7744
      hardcode_shlibpath_var=no
7745
      ;;
7746
 
7747
    freebsd1*)
7748
      ld_shlibs=no
7749
      ;;
7750
 
7751
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7752
    # support.  Future versions do this automatically, but an explicit c++rt0.o
7753
    # does not break anything, and helps significantly (at the cost of a little
7754
    # extra space).
7755
    freebsd2.2*)
7756
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7757
      hardcode_libdir_flag_spec='-R$libdir'
7758
      hardcode_direct=yes
7759
      hardcode_shlibpath_var=no
7760
      ;;
7761
 
7762
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7763
    freebsd2*)
7764
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7765
      hardcode_direct=yes
7766
      hardcode_minus_L=yes
7767
      hardcode_shlibpath_var=no
7768
      ;;
7769
 
7770
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7771
    freebsd* | dragonfly*)
7772
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7773
      hardcode_libdir_flag_spec='-R$libdir'
7774
      hardcode_direct=yes
7775
      hardcode_shlibpath_var=no
7776
      ;;
7777
 
7778
    hpux9*)
7779
      if test "$GCC" = yes; then
7780
        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'
7781
      else
7782
        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'
7783
      fi
7784
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7785
      hardcode_libdir_separator=:
7786
      hardcode_direct=yes
7787
 
7788
      # hardcode_minus_L: Not really in the search PATH,
7789
      # but as the default location of the library.
7790
      hardcode_minus_L=yes
7791
      export_dynamic_flag_spec='${wl}-E'
7792
      ;;
7793
 
7794
    hpux10*)
7795
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7796
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7797
      else
7798
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7799
      fi
7800
      if test "$with_gnu_ld" = no; then
7801
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7802
        hardcode_libdir_flag_spec_ld='+b $libdir'
7803
        hardcode_libdir_separator=:
7804
        hardcode_direct=yes
7805
        hardcode_direct_absolute=yes
7806
        export_dynamic_flag_spec='${wl}-E'
7807
        # hardcode_minus_L: Not really in the search PATH,
7808
        # but as the default location of the library.
7809
        hardcode_minus_L=yes
7810
      fi
7811
      ;;
7812
 
7813
    hpux11*)
7814
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7815
        case $host_cpu in
7816
        hppa*64*)
7817
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7818
          ;;
7819
        ia64*)
7820
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7821
          ;;
7822
        *)
7823
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7824
          ;;
7825
        esac
7826
      else
7827
        case $host_cpu in
7828
        hppa*64*)
7829
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7830
          ;;
7831
        ia64*)
7832
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7833
          ;;
7834
        *)
7835
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7836
          ;;
7837
        esac
7838
      fi
7839
      if test "$with_gnu_ld" = no; then
7840
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7841
        hardcode_libdir_separator=:
7842
 
7843
        case $host_cpu in
7844
        hppa*64*|ia64*)
7845
          hardcode_direct=no
7846
          hardcode_shlibpath_var=no
7847
          ;;
7848
        *)
7849
          hardcode_direct=yes
7850
          hardcode_direct_absolute=yes
7851
          export_dynamic_flag_spec='${wl}-E'
7852
 
7853
          # hardcode_minus_L: Not really in the search PATH,
7854
          # but as the default location of the library.
7855
          hardcode_minus_L=yes
7856
          ;;
7857
        esac
7858
      fi
7859
      ;;
7860
 
7861
    irix5* | irix6* | nonstopux*)
7862
      if test "$GCC" = yes; then
7863
        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'
7864
        # Try to use the -exported_symbol ld option, if it does not
7865
        # work, assume that -exports_file does not work either and
7866
        # implicitly export all symbols.
7867
        save_LDFLAGS="$LDFLAGS"
7868
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7869 346 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870
/* end confdefs.h.  */
7871 90 jeremybenn
int foo(void) {}
7872
_ACEOF
7873 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
7874 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'
7875
 
7876
fi
7877 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
7878
    conftest$ac_exeext conftest.$ac_ext
7879 90 jeremybenn
        LDFLAGS="$save_LDFLAGS"
7880
      else
7881
        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'
7882
        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'
7883
      fi
7884
      archive_cmds_need_lc='no'
7885
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7886
      hardcode_libdir_separator=:
7887
      inherit_rpath=yes
7888
      link_all_deplibs=yes
7889
      ;;
7890
 
7891 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7892 90 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7893
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7894
      else
7895
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7896
      fi
7897
      hardcode_libdir_flag_spec='-R$libdir'
7898
      hardcode_direct=yes
7899
      hardcode_shlibpath_var=no
7900
      ;;
7901
 
7902
    newsos6)
7903
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7904
      hardcode_direct=yes
7905
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7906
      hardcode_libdir_separator=:
7907
      hardcode_shlibpath_var=no
7908
      ;;
7909
 
7910
    *nto* | *qnx*)
7911
      ;;
7912
 
7913
    openbsd*)
7914
      if test -f /usr/libexec/ld.so; then
7915
        hardcode_direct=yes
7916
        hardcode_shlibpath_var=no
7917
        hardcode_direct_absolute=yes
7918
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7919
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7920
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7921
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7922
          export_dynamic_flag_spec='${wl}-E'
7923
        else
7924
          case $host_os in
7925
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7926
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7927
             hardcode_libdir_flag_spec='-R$libdir'
7928
             ;;
7929
           *)
7930
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7931
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7932
             ;;
7933
          esac
7934
        fi
7935
      else
7936
        ld_shlibs=no
7937
      fi
7938
      ;;
7939
 
7940
    os2*)
7941
      hardcode_libdir_flag_spec='-L$libdir'
7942
      hardcode_minus_L=yes
7943
      allow_undefined_flag=unsupported
7944
      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'
7945
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7946
      ;;
7947
 
7948
    osf3*)
7949
      if test "$GCC" = yes; then
7950
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7951
        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'
7952
      else
7953
        allow_undefined_flag=' -expect_unresolved \*'
7954
        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'
7955
      fi
7956
      archive_cmds_need_lc='no'
7957
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7958
      hardcode_libdir_separator=:
7959
      ;;
7960
 
7961
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7962
      if test "$GCC" = yes; then
7963
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7964
        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'
7965
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7966
      else
7967
        allow_undefined_flag=' -expect_unresolved \*'
7968
        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'
7969
        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~
7970
        $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'
7971
 
7972
        # Both c and cxx compiler support -rpath directly
7973
        hardcode_libdir_flag_spec='-rpath $libdir'
7974
      fi
7975
      archive_cmds_need_lc='no'
7976
      hardcode_libdir_separator=:
7977
      ;;
7978
 
7979
    solaris*)
7980
      no_undefined_flag=' -z defs'
7981
      if test "$GCC" = yes; then
7982
        wlarc='${wl}'
7983
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7984
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7985
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7986
      else
7987
        case `$CC -V 2>&1` in
7988
        *"Compilers 5.0"*)
7989
          wlarc=''
7990
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7991
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7992
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7993
          ;;
7994
        *)
7995
          wlarc='${wl}'
7996
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7997
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7998
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7999
          ;;
8000
        esac
8001
      fi
8002
      hardcode_libdir_flag_spec='-R$libdir'
8003
      hardcode_shlibpath_var=no
8004
      case $host_os in
8005
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8006
      *)
8007
        # The compiler driver will combine and reorder linker options,
8008
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8009
        # but is careful enough not to reorder.
8010
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8011
        if test "$GCC" = yes; then
8012
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8013
        else
8014
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8015
        fi
8016
        ;;
8017
      esac
8018
      link_all_deplibs=yes
8019
      ;;
8020
 
8021
    sunos4*)
8022
      if test "x$host_vendor" = xsequent; then
8023
        # Use $CC to link under sequent, because it throws in some extra .o
8024
        # files that make .init and .fini sections work.
8025
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8026
      else
8027
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8028
      fi
8029
      hardcode_libdir_flag_spec='-L$libdir'
8030
      hardcode_direct=yes
8031
      hardcode_minus_L=yes
8032
      hardcode_shlibpath_var=no
8033
      ;;
8034
 
8035
    sysv4)
8036
      case $host_vendor in
8037
        sni)
8038
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8039
          hardcode_direct=yes # is this really true???
8040
        ;;
8041
        siemens)
8042
          ## LD is ld it makes a PLAMLIB
8043
          ## CC just makes a GrossModule.
8044
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8045
          reload_cmds='$CC -r -o $output$reload_objs'
8046
          hardcode_direct=no
8047
        ;;
8048
        motorola)
8049
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8050
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8051
        ;;
8052
      esac
8053
      runpath_var='LD_RUN_PATH'
8054
      hardcode_shlibpath_var=no
8055
      ;;
8056
 
8057
    sysv4.3*)
8058
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8059
      hardcode_shlibpath_var=no
8060
      export_dynamic_flag_spec='-Bexport'
8061
      ;;
8062
 
8063
    sysv4*MP*)
8064
      if test -d /usr/nec; then
8065
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8066
        hardcode_shlibpath_var=no
8067
        runpath_var=LD_RUN_PATH
8068
        hardcode_runpath_var=yes
8069
        ld_shlibs=yes
8070
      fi
8071
      ;;
8072
 
8073
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8074
      no_undefined_flag='${wl}-z,text'
8075
      archive_cmds_need_lc=no
8076
      hardcode_shlibpath_var=no
8077
      runpath_var='LD_RUN_PATH'
8078
 
8079
      if test "$GCC" = yes; then
8080
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8081
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8082
      else
8083
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8084
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8085
      fi
8086
      ;;
8087
 
8088
    sysv5* | sco3.2v5* | sco5v6*)
8089
      # Note: We can NOT use -z defs as we might desire, because we do not
8090
      # link with -lc, and that would cause any symbols used from libc to
8091
      # always be unresolved, which means just about no library would
8092
      # ever link correctly.  If we're not using GNU ld we use -z text
8093
      # though, which does catch some bad symbols but isn't as heavy-handed
8094
      # as -z defs.
8095
      no_undefined_flag='${wl}-z,text'
8096
      allow_undefined_flag='${wl}-z,nodefs'
8097
      archive_cmds_need_lc=no
8098
      hardcode_shlibpath_var=no
8099
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8100
      hardcode_libdir_separator=':'
8101
      link_all_deplibs=yes
8102
      export_dynamic_flag_spec='${wl}-Bexport'
8103
      runpath_var='LD_RUN_PATH'
8104
 
8105
      if test "$GCC" = yes; then
8106
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8107
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8108
      else
8109
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8110
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8111
      fi
8112
      ;;
8113
 
8114
    uts4*)
8115
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8116
      hardcode_libdir_flag_spec='-L$libdir'
8117
      hardcode_shlibpath_var=no
8118
      ;;
8119
 
8120
    *)
8121
      ld_shlibs=no
8122
      ;;
8123
    esac
8124
 
8125
    if test x$host_vendor = xsni; then
8126
      case $host in
8127
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8128
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8129
        ;;
8130
      esac
8131
    fi
8132
  fi
8133
 
8134 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8135 90 jeremybenn
$as_echo "$ld_shlibs" >&6; }
8136
test "$ld_shlibs" = no && can_build_shared=no
8137
 
8138
with_gnu_ld=$with_gnu_ld
8139
 
8140
 
8141
 
8142
 
8143
 
8144
 
8145
 
8146
 
8147
 
8148
 
8149
 
8150
 
8151
 
8152
 
8153
 
8154
#
8155
# Do we need to explicitly link libc?
8156
#
8157
case "x$archive_cmds_need_lc" in
8158
x|xyes)
8159
  # Assume -lc should be added
8160
  archive_cmds_need_lc=yes
8161
 
8162
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8163
    case $archive_cmds in
8164
    *'~'*)
8165
      # FIXME: we may have to deal with multi-command sequences.
8166
      ;;
8167
    '$CC '*)
8168
      # Test whether the compiler implicitly links with -lc since on some
8169
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8170
      # to ld, don't add -lc before -lgcc.
8171 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8172 90 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8173
      $RM conftest*
8174
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8175
 
8176 346 jeremybenn
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8177 90 jeremybenn
  (eval $ac_compile) 2>&5
8178
  ac_status=$?
8179 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8180
  test $ac_status = 0; } 2>conftest.err; then
8181 90 jeremybenn
        soname=conftest
8182
        lib=conftest
8183
        libobjs=conftest.$ac_objext
8184
        deplibs=
8185
        wl=$lt_prog_compiler_wl
8186
        pic_flag=$lt_prog_compiler_pic
8187
        compiler_flags=-v
8188
        linker_flags=-v
8189
        verstring=
8190
        output_objdir=.
8191
        libname=conftest
8192
        lt_save_allow_undefined_flag=$allow_undefined_flag
8193
        allow_undefined_flag=
8194 346 jeremybenn
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8195 90 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8196
  ac_status=$?
8197 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8198
  test $ac_status = 0; }
8199 90 jeremybenn
        then
8200
          archive_cmds_need_lc=no
8201
        else
8202
          archive_cmds_need_lc=yes
8203
        fi
8204
        allow_undefined_flag=$lt_save_allow_undefined_flag
8205
      else
8206
        cat conftest.err 1>&5
8207
      fi
8208
      $RM conftest*
8209 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8210 90 jeremybenn
$as_echo "$archive_cmds_need_lc" >&6; }
8211
      ;;
8212
    esac
8213
  fi
8214
  ;;
8215
esac
8216
 
8217
 
8218
 
8219
 
8220
 
8221
 
8222
 
8223
 
8224
 
8225
 
8226
 
8227
 
8228
 
8229
 
8230
 
8231
 
8232
 
8233
 
8234
 
8235
 
8236
 
8237
 
8238
 
8239
 
8240
 
8241
 
8242
 
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 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8374 90 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8375
 
8376
if test "$GCC" = yes; then
8377
  case $host_os in
8378
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8379
    *) lt_awk_arg="/^libraries:/" ;;
8380
  esac
8381
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8382
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8383
    # if the path contains ";" then we assume it to be the separator
8384
    # otherwise default to the standard path separator (i.e. ":") - it is
8385
    # assumed that no part of a normal pathname contains ";" but that should
8386
    # okay in the real world where ";" in dirpaths is itself problematic.
8387
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8388
  else
8389
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8390
  fi
8391
  # Ok, now we have the path, separated by spaces, we can step through it
8392
  # and add multilib dir if necessary.
8393
  lt_tmp_lt_search_path_spec=
8394
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8395
  for lt_sys_path in $lt_search_path_spec; do
8396
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8397
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8398
    else
8399
      test -d "$lt_sys_path" && \
8400
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8401
    fi
8402
  done
8403
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8404
BEGIN {RS=" "; FS="/|\n";} {
8405
  lt_foo="";
8406
  lt_count=0;
8407
  for (lt_i = NF; lt_i > 0; lt_i--) {
8408
    if ($lt_i != "" && $lt_i != ".") {
8409
      if ($lt_i == "..") {
8410
        lt_count++;
8411
      } else {
8412
        if (lt_count == 0) {
8413
          lt_foo="/" $lt_i lt_foo;
8414
        } else {
8415
          lt_count--;
8416
        }
8417
      }
8418
    }
8419
  }
8420
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8421
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8422
}'`
8423
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8424
else
8425
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8426
fi
8427
library_names_spec=
8428
libname_spec='lib$name'
8429
soname_spec=
8430
shrext_cmds=".so"
8431
postinstall_cmds=
8432
postuninstall_cmds=
8433
finish_cmds=
8434
finish_eval=
8435
shlibpath_var=
8436
shlibpath_overrides_runpath=unknown
8437
version_type=none
8438
dynamic_linker="$host_os ld.so"
8439
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8440
need_lib_prefix=unknown
8441
hardcode_into_libs=no
8442
 
8443
# when you set need_version to no, make sure it does not cause -set_version
8444
# flags to be left without arguments
8445
need_version=unknown
8446
 
8447
case $host_os in
8448
aix3*)
8449
  version_type=linux
8450
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8451
  shlibpath_var=LIBPATH
8452
 
8453
  # AIX 3 has no versioning support, so we append a major version to the name.
8454
  soname_spec='${libname}${release}${shared_ext}$major'
8455
  ;;
8456
 
8457
aix[4-9]*)
8458
  version_type=linux
8459
  need_lib_prefix=no
8460
  need_version=no
8461
  hardcode_into_libs=yes
8462
  if test "$host_cpu" = ia64; then
8463
    # AIX 5 supports IA64
8464
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8465
    shlibpath_var=LD_LIBRARY_PATH
8466
  else
8467
    # With GCC up to 2.95.x, collect2 would create an import file
8468
    # for dependence libraries.  The import file would start with
8469
    # the line `#! .'.  This would cause the generated library to
8470
    # depend on `.', always an invalid library.  This was fixed in
8471
    # development snapshots of GCC prior to 3.0.
8472
    case $host_os in
8473
      aix4 | aix4.[01] | aix4.[01].*)
8474
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8475
           echo ' yes '
8476
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8477
        :
8478
      else
8479
        can_build_shared=no
8480
      fi
8481
      ;;
8482
    esac
8483
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8484
    # soname into executable. Probably we can add versioning support to
8485
    # collect2, so additional links can be useful in future.
8486
    if test "$aix_use_runtimelinking" = yes; then
8487
      # If using run time linking (on AIX 4.2 or later) use lib.so
8488
      # instead of lib.a to let people know that these are not
8489
      # typical AIX shared libraries.
8490
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8491
    else
8492
      # We preserve .a as extension for shared libraries through AIX4.2
8493
      # and later when we are not doing run time linking.
8494
      library_names_spec='${libname}${release}.a $libname.a'
8495
      soname_spec='${libname}${release}${shared_ext}$major'
8496
    fi
8497
    shlibpath_var=LIBPATH
8498
  fi
8499
  ;;
8500
 
8501
amigaos*)
8502
  case $host_cpu in
8503
  powerpc)
8504
    # Since July 2007 AmigaOS4 officially supports .so libraries.
8505
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8506
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8507
    ;;
8508
  m68k)
8509
    library_names_spec='$libname.ixlibrary $libname.a'
8510
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8511
    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'
8512
    ;;
8513
  esac
8514
  ;;
8515
 
8516
beos*)
8517
  library_names_spec='${libname}${shared_ext}'
8518
  dynamic_linker="$host_os ld.so"
8519
  shlibpath_var=LIBRARY_PATH
8520
  ;;
8521
 
8522
bsdi[45]*)
8523
  version_type=linux
8524
  need_version=no
8525
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8526
  soname_spec='${libname}${release}${shared_ext}$major'
8527
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8528
  shlibpath_var=LD_LIBRARY_PATH
8529
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8530
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8531
  # the default ld.so.conf also contains /usr/contrib/lib and
8532
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8533
  # libtool to hard-code these into programs
8534
  ;;
8535
 
8536
cygwin* | mingw* | pw32* | cegcc*)
8537
  version_type=windows
8538
  shrext_cmds=".dll"
8539
  need_version=no
8540
  need_lib_prefix=no
8541
 
8542
  case $GCC,$host_os in
8543
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8544
    library_names_spec='$libname.dll.a'
8545
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8546
    postinstall_cmds='base_file=`basename \${file}`~
8547
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8548
      dldir=$destdir/`dirname \$dlpath`~
8549
      test -d \$dldir || mkdir -p \$dldir~
8550
      $install_prog $dir/$dlname \$dldir/$dlname~
8551
      chmod a+x \$dldir/$dlname~
8552
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8553
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8554
      fi'
8555
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8556
      dlpath=$dir/\$dldll~
8557
       $RM \$dlpath'
8558
    shlibpath_overrides_runpath=yes
8559
 
8560
    case $host_os in
8561
    cygwin*)
8562
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8563
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8564
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8565
      ;;
8566
    mingw* | cegcc*)
8567
      # MinGW DLLs use traditional 'lib' prefix
8568
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8569
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8570
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8571
        # It is most probably a Windows format PATH printed by
8572
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8573
        # path with ; separators, and with drive letters. We can handle the
8574
        # drive letters (cygwin fileutils understands them), so leave them,
8575
        # especially as we might pass files found there to a mingw objdump,
8576
        # which wouldn't understand a cygwinified path. Ahh.
8577
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8578
      else
8579
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8580
      fi
8581
      ;;
8582
    pw32*)
8583
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8584
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8585
      ;;
8586
    esac
8587
    ;;
8588
 
8589
  *)
8590
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8591
    ;;
8592
  esac
8593
  dynamic_linker='Win32 ld.exe'
8594
  # FIXME: first we should search . and the directory the executable is in
8595
  shlibpath_var=PATH
8596
  ;;
8597
 
8598
darwin* | rhapsody*)
8599
  dynamic_linker="$host_os dyld"
8600
  version_type=darwin
8601
  need_lib_prefix=no
8602
  need_version=no
8603
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8604
  soname_spec='${libname}${release}${major}$shared_ext'
8605
  shlibpath_overrides_runpath=yes
8606
  shlibpath_var=DYLD_LIBRARY_PATH
8607
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8608
 
8609
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8610
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8611
  ;;
8612
 
8613
dgux*)
8614
  version_type=linux
8615
  need_lib_prefix=no
8616
  need_version=no
8617
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8618
  soname_spec='${libname}${release}${shared_ext}$major'
8619
  shlibpath_var=LD_LIBRARY_PATH
8620
  ;;
8621
 
8622
freebsd1*)
8623
  dynamic_linker=no
8624
  ;;
8625
 
8626
freebsd* | dragonfly*)
8627
  # DragonFly does not have aout.  When/if they implement a new
8628
  # versioning mechanism, adjust this.
8629
  if test -x /usr/bin/objformat; then
8630
    objformat=`/usr/bin/objformat`
8631
  else
8632
    case $host_os in
8633
    freebsd[123]*) objformat=aout ;;
8634
    *) objformat=elf ;;
8635
    esac
8636
  fi
8637
  version_type=freebsd-$objformat
8638
  case $version_type in
8639
    freebsd-elf*)
8640
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8641
      need_version=no
8642
      need_lib_prefix=no
8643
      ;;
8644
    freebsd-*)
8645
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8646
      need_version=yes
8647
      ;;
8648
  esac
8649
  shlibpath_var=LD_LIBRARY_PATH
8650
  case $host_os in
8651
  freebsd2*)
8652
    shlibpath_overrides_runpath=yes
8653
    ;;
8654
  freebsd3.[01]* | freebsdelf3.[01]*)
8655
    shlibpath_overrides_runpath=yes
8656
    hardcode_into_libs=yes
8657
    ;;
8658
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8659
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8660
    shlibpath_overrides_runpath=no
8661
    hardcode_into_libs=yes
8662
    ;;
8663
  *) # from 4.6 on, and DragonFly
8664
    shlibpath_overrides_runpath=yes
8665
    hardcode_into_libs=yes
8666
    ;;
8667
  esac
8668
  ;;
8669
 
8670
gnu*)
8671
  version_type=linux
8672
  need_lib_prefix=no
8673
  need_version=no
8674
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8675
  soname_spec='${libname}${release}${shared_ext}$major'
8676
  shlibpath_var=LD_LIBRARY_PATH
8677
  hardcode_into_libs=yes
8678
  ;;
8679
 
8680
hpux9* | hpux10* | hpux11*)
8681
  # Give a soname corresponding to the major version so that dld.sl refuses to
8682
  # link against other versions.
8683
  version_type=sunos
8684
  need_lib_prefix=no
8685
  need_version=no
8686
  case $host_cpu in
8687
  ia64*)
8688
    shrext_cmds='.so'
8689
    hardcode_into_libs=yes
8690
    dynamic_linker="$host_os dld.so"
8691
    shlibpath_var=LD_LIBRARY_PATH
8692
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8693
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8694
    soname_spec='${libname}${release}${shared_ext}$major'
8695
    if test "X$HPUX_IA64_MODE" = X32; then
8696
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8697
    else
8698
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8699
    fi
8700
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8701
    ;;
8702
  hppa*64*)
8703
    shrext_cmds='.sl'
8704
    hardcode_into_libs=yes
8705
    dynamic_linker="$host_os dld.sl"
8706
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8707
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8708
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8709
    soname_spec='${libname}${release}${shared_ext}$major'
8710
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8711
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8712
    ;;
8713
  *)
8714
    shrext_cmds='.sl'
8715
    dynamic_linker="$host_os dld.sl"
8716
    shlibpath_var=SHLIB_PATH
8717
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8718
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8719
    soname_spec='${libname}${release}${shared_ext}$major'
8720
    ;;
8721
  esac
8722
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8723
  postinstall_cmds='chmod 555 $lib'
8724
  ;;
8725
 
8726
interix[3-9]*)
8727
  version_type=linux
8728
  need_lib_prefix=no
8729
  need_version=no
8730
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8731
  soname_spec='${libname}${release}${shared_ext}$major'
8732
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8733
  shlibpath_var=LD_LIBRARY_PATH
8734
  shlibpath_overrides_runpath=no
8735
  hardcode_into_libs=yes
8736
  ;;
8737
 
8738
irix5* | irix6* | nonstopux*)
8739
  case $host_os in
8740
    nonstopux*) version_type=nonstopux ;;
8741
    *)
8742
        if test "$lt_cv_prog_gnu_ld" = yes; then
8743
                version_type=linux
8744
        else
8745
                version_type=irix
8746
        fi ;;
8747
  esac
8748
  need_lib_prefix=no
8749
  need_version=no
8750
  soname_spec='${libname}${release}${shared_ext}$major'
8751
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8752
  case $host_os in
8753
  irix5* | nonstopux*)
8754
    libsuff= shlibsuff=
8755
    ;;
8756
  *)
8757
    case $LD in # libtool.m4 will add one of these switches to LD
8758
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8759
      libsuff= shlibsuff= libmagic=32-bit;;
8760
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8761
      libsuff=32 shlibsuff=N32 libmagic=N32;;
8762
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8763
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8764
    *) libsuff= shlibsuff= libmagic=never-match;;
8765
    esac
8766
    ;;
8767
  esac
8768
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8769
  shlibpath_overrides_runpath=no
8770
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8771
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8772
  hardcode_into_libs=yes
8773
  ;;
8774
 
8775
# No shared lib support for Linux oldld, aout, or coff.
8776
linux*oldld* | linux*aout* | linux*coff*)
8777
  dynamic_linker=no
8778
  ;;
8779
 
8780
# This must be Linux ELF.
8781
linux* | k*bsd*-gnu)
8782
  version_type=linux
8783
  need_lib_prefix=no
8784
  need_version=no
8785
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8786
  soname_spec='${libname}${release}${shared_ext}$major'
8787
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8788
  shlibpath_var=LD_LIBRARY_PATH
8789
  shlibpath_overrides_runpath=no
8790
  # Some binutils ld are patched to set DT_RUNPATH
8791
  save_LDFLAGS=$LDFLAGS
8792
  save_libdir=$libdir
8793
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8794
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8795 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796 90 jeremybenn
/* end confdefs.h.  */
8797
 
8798
int
8799
main ()
8800
{
8801
 
8802
  ;
8803
  return 0;
8804
}
8805
_ACEOF
8806 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8807
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8808 90 jeremybenn
  shlibpath_overrides_runpath=yes
8809
fi
8810
fi
8811 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8812
    conftest$ac_exeext conftest.$ac_ext
8813 90 jeremybenn
  LDFLAGS=$save_LDFLAGS
8814
  libdir=$save_libdir
8815
 
8816
  # This implies no fast_install, which is unacceptable.
8817
  # Some rework will be needed to allow for fast_install
8818
  # before this can be enabled.
8819
  hardcode_into_libs=yes
8820
 
8821
  # Append ld.so.conf contents to the search path
8822
  if test -f /etc/ld.so.conf; then
8823
    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' ' '`
8824 93 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8825 90 jeremybenn
  fi
8826
 
8827
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8828
  # powerpc, because MkLinux only supported shared libraries with the
8829
  # GNU dynamic linker.  Since this was broken with cross compilers,
8830
  # most powerpc-linux boxes support dynamic linking these days and
8831
  # people can always --disable-shared, the test was removed, and we
8832
  # assume the GNU/Linux dynamic linker is in use.
8833
  dynamic_linker='GNU/Linux ld.so'
8834
  ;;
8835
 
8836 93 jeremybenn
netbsdelf*-gnu)
8837
  version_type=linux
8838
  need_lib_prefix=no
8839
  need_version=no
8840
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8841
  soname_spec='${libname}${release}${shared_ext}$major'
8842
  shlibpath_var=LD_LIBRARY_PATH
8843
  shlibpath_overrides_runpath=no
8844
  hardcode_into_libs=yes
8845
  dynamic_linker='NetBSD ld.elf_so'
8846
  ;;
8847
 
8848 90 jeremybenn
netbsd*)
8849
  version_type=sunos
8850
  need_lib_prefix=no
8851
  need_version=no
8852
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8853
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8854
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8855
    dynamic_linker='NetBSD (a.out) ld.so'
8856
  else
8857
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8858
    soname_spec='${libname}${release}${shared_ext}$major'
8859
    dynamic_linker='NetBSD ld.elf_so'
8860
  fi
8861
  shlibpath_var=LD_LIBRARY_PATH
8862
  shlibpath_overrides_runpath=yes
8863
  hardcode_into_libs=yes
8864
  ;;
8865
 
8866
newsos6)
8867
  version_type=linux
8868
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8869
  shlibpath_var=LD_LIBRARY_PATH
8870
  shlibpath_overrides_runpath=yes
8871
  ;;
8872
 
8873
*nto* | *qnx*)
8874
  version_type=qnx
8875
  need_lib_prefix=no
8876
  need_version=no
8877
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8878
  soname_spec='${libname}${release}${shared_ext}$major'
8879
  shlibpath_var=LD_LIBRARY_PATH
8880
  shlibpath_overrides_runpath=no
8881
  hardcode_into_libs=yes
8882
  dynamic_linker='ldqnx.so'
8883
  ;;
8884
 
8885
openbsd*)
8886
  version_type=sunos
8887
  sys_lib_dlsearch_path_spec="/usr/lib"
8888
  need_lib_prefix=no
8889
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8890
  case $host_os in
8891
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
8892
    *)                          need_version=no  ;;
8893
  esac
8894
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8895
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8896
  shlibpath_var=LD_LIBRARY_PATH
8897
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8898
    case $host_os in
8899
      openbsd2.[89] | openbsd2.[89].*)
8900
        shlibpath_overrides_runpath=no
8901
        ;;
8902
      *)
8903
        shlibpath_overrides_runpath=yes
8904
        ;;
8905
      esac
8906
  else
8907
    shlibpath_overrides_runpath=yes
8908
  fi
8909
  ;;
8910
 
8911
os2*)
8912
  libname_spec='$name'
8913
  shrext_cmds=".dll"
8914
  need_lib_prefix=no
8915
  library_names_spec='$libname${shared_ext} $libname.a'
8916
  dynamic_linker='OS/2 ld.exe'
8917
  shlibpath_var=LIBPATH
8918
  ;;
8919
 
8920
osf3* | osf4* | osf5*)
8921
  version_type=osf
8922
  need_lib_prefix=no
8923
  need_version=no
8924
  soname_spec='${libname}${release}${shared_ext}$major'
8925
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8926
  shlibpath_var=LD_LIBRARY_PATH
8927
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8928
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8929
  ;;
8930
 
8931
rdos*)
8932
  dynamic_linker=no
8933
  ;;
8934
 
8935
solaris*)
8936
  version_type=linux
8937
  need_lib_prefix=no
8938
  need_version=no
8939
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940
  soname_spec='${libname}${release}${shared_ext}$major'
8941
  shlibpath_var=LD_LIBRARY_PATH
8942
  shlibpath_overrides_runpath=yes
8943
  hardcode_into_libs=yes
8944
  # ldd complains unless libraries are executable
8945
  postinstall_cmds='chmod +x $lib'
8946
  ;;
8947
 
8948
sunos4*)
8949
  version_type=sunos
8950
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8951
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8952
  shlibpath_var=LD_LIBRARY_PATH
8953
  shlibpath_overrides_runpath=yes
8954
  if test "$with_gnu_ld" = yes; then
8955
    need_lib_prefix=no
8956
  fi
8957
  need_version=yes
8958
  ;;
8959
 
8960
sysv4 | sysv4.3*)
8961
  version_type=linux
8962
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963
  soname_spec='${libname}${release}${shared_ext}$major'
8964
  shlibpath_var=LD_LIBRARY_PATH
8965
  case $host_vendor in
8966
    sni)
8967
      shlibpath_overrides_runpath=no
8968
      need_lib_prefix=no
8969
      runpath_var=LD_RUN_PATH
8970
      ;;
8971
    siemens)
8972
      need_lib_prefix=no
8973
      ;;
8974
    motorola)
8975
      need_lib_prefix=no
8976
      need_version=no
8977
      shlibpath_overrides_runpath=no
8978
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8979
      ;;
8980
  esac
8981
  ;;
8982
 
8983
sysv4*MP*)
8984
  if test -d /usr/nec ;then
8985
    version_type=linux
8986
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8987
    soname_spec='$libname${shared_ext}.$major'
8988
    shlibpath_var=LD_LIBRARY_PATH
8989
  fi
8990
  ;;
8991
 
8992
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8993
  version_type=freebsd-elf
8994
  need_lib_prefix=no
8995
  need_version=no
8996
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8997
  soname_spec='${libname}${release}${shared_ext}$major'
8998
  shlibpath_var=LD_LIBRARY_PATH
8999
  shlibpath_overrides_runpath=yes
9000
  hardcode_into_libs=yes
9001
  if test "$with_gnu_ld" = yes; then
9002
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9003
  else
9004
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9005
    case $host_os in
9006
      sco3.2v5*)
9007
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9008
        ;;
9009
    esac
9010
  fi
9011
  sys_lib_dlsearch_path_spec='/usr/lib'
9012
  ;;
9013
 
9014
tpf*)
9015
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9016
  version_type=linux
9017
  need_lib_prefix=no
9018
  need_version=no
9019
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020
  shlibpath_var=LD_LIBRARY_PATH
9021
  shlibpath_overrides_runpath=no
9022
  hardcode_into_libs=yes
9023
  ;;
9024
 
9025
uts4*)
9026
  version_type=linux
9027
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9028
  soname_spec='${libname}${release}${shared_ext}$major'
9029
  shlibpath_var=LD_LIBRARY_PATH
9030
  ;;
9031
 
9032
*)
9033
  dynamic_linker=no
9034
  ;;
9035
esac
9036 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9037 90 jeremybenn
$as_echo "$dynamic_linker" >&6; }
9038
test "$dynamic_linker" = no && can_build_shared=no
9039
 
9040
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9041
if test "$GCC" = yes; then
9042
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9043
fi
9044
 
9045
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9046
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9047
fi
9048
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9049
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9050
fi
9051
 
9052
 
9053
 
9054
 
9055
 
9056
 
9057
 
9058
 
9059
 
9060
 
9061
 
9062
 
9063
 
9064
 
9065
 
9066
 
9067
 
9068
 
9069
 
9070
 
9071
 
9072
 
9073
 
9074
 
9075
 
9076
 
9077
 
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 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9139 90 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9140
hardcode_action=
9141
if test -n "$hardcode_libdir_flag_spec" ||
9142
   test -n "$runpath_var" ||
9143
   test "X$hardcode_automatic" = "Xyes" ; then
9144
 
9145
  # We can hardcode non-existent directories.
9146
  if test "$hardcode_direct" != no &&
9147
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9148
     # have to relink, otherwise we might link with an installed library
9149
     # when we should be linking with a yet-to-be-installed one
9150
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9151
     test "$hardcode_minus_L" != no; then
9152
    # Linking always hardcodes the temporary library directory.
9153
    hardcode_action=relink
9154
  else
9155
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9156
    hardcode_action=immediate
9157
  fi
9158
else
9159
  # We cannot hardcode anything, or else we can only hardcode existing
9160
  # directories.
9161
  hardcode_action=unsupported
9162
fi
9163 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9164 90 jeremybenn
$as_echo "$hardcode_action" >&6; }
9165
 
9166
if test "$hardcode_action" = relink ||
9167
   test "$inherit_rpath" = yes; then
9168
  # Fast installation is not supported
9169
  enable_fast_install=no
9170
elif test "$shlibpath_overrides_runpath" = yes ||
9171
     test "$enable_shared" = no; then
9172
  # Fast installation is not necessary
9173
  enable_fast_install=needless
9174
fi
9175
 
9176
 
9177
 
9178
 
9179
 
9180
 
9181
  if test "x$enable_dlopen" != xyes; then
9182
  enable_dlopen=unknown
9183
  enable_dlopen_self=unknown
9184
  enable_dlopen_self_static=unknown
9185
else
9186
  lt_cv_dlopen=no
9187
  lt_cv_dlopen_libs=
9188
 
9189
  case $host_os in
9190
  beos*)
9191
    lt_cv_dlopen="load_add_on"
9192
    lt_cv_dlopen_libs=
9193
    lt_cv_dlopen_self=yes
9194
    ;;
9195
 
9196
  mingw* | pw32* | cegcc*)
9197
    lt_cv_dlopen="LoadLibrary"
9198
    lt_cv_dlopen_libs=
9199
    ;;
9200
 
9201
  cygwin*)
9202
    lt_cv_dlopen="dlopen"
9203
    lt_cv_dlopen_libs=
9204
    ;;
9205
 
9206
  darwin*)
9207
  # if libdl is installed we need to link against it
9208 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9209 90 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9210 346 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9211 90 jeremybenn
  $as_echo_n "(cached) " >&6
9212
else
9213
  ac_check_lib_save_LIBS=$LIBS
9214
LIBS="-ldl  $LIBS"
9215 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 90 jeremybenn
/* end confdefs.h.  */
9217
 
9218
/* Override any GCC internal prototype to avoid an error.
9219
   Use char because int might match the return type of a GCC
9220
   builtin and then its argument prototype would still apply.  */
9221
#ifdef __cplusplus
9222
extern "C"
9223
#endif
9224
char dlopen ();
9225
int
9226
main ()
9227
{
9228
return dlopen ();
9229
  ;
9230
  return 0;
9231
}
9232
_ACEOF
9233 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9234 90 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9235
else
9236 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
9237 90 jeremybenn
fi
9238 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9239
    conftest$ac_exeext conftest.$ac_ext
9240 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9241
fi
9242 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9243 90 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9244 346 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9245 90 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9246
else
9247
 
9248
    lt_cv_dlopen="dyld"
9249
    lt_cv_dlopen_libs=
9250
    lt_cv_dlopen_self=yes
9251
 
9252
fi
9253
 
9254
    ;;
9255
 
9256
  *)
9257 346 jeremybenn
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9258
if test "x$ac_cv_func_shl_load" = x""yes; then :
9259 90 jeremybenn
  lt_cv_dlopen="shl_load"
9260
else
9261 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9262 90 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9263 346 jeremybenn
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9264 90 jeremybenn
  $as_echo_n "(cached) " >&6
9265
else
9266
  ac_check_lib_save_LIBS=$LIBS
9267
LIBS="-ldld  $LIBS"
9268 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 90 jeremybenn
/* end confdefs.h.  */
9270
 
9271
/* Override any GCC internal prototype to avoid an error.
9272
   Use char because int might match the return type of a GCC
9273
   builtin and then its argument prototype would still apply.  */
9274
#ifdef __cplusplus
9275
extern "C"
9276
#endif
9277
char shl_load ();
9278
int
9279
main ()
9280
{
9281
return shl_load ();
9282
  ;
9283
  return 0;
9284
}
9285
_ACEOF
9286 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9287 90 jeremybenn
  ac_cv_lib_dld_shl_load=yes
9288
else
9289 346 jeremybenn
  ac_cv_lib_dld_shl_load=no
9290 90 jeremybenn
fi
9291 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9292
    conftest$ac_exeext conftest.$ac_ext
9293 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9294
fi
9295 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9296 90 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9297 346 jeremybenn
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9298 90 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9299
else
9300 346 jeremybenn
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9301
if test "x$ac_cv_func_dlopen" = x""yes; then :
9302 90 jeremybenn
  lt_cv_dlopen="dlopen"
9303
else
9304 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9305 90 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9306 346 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9307 90 jeremybenn
  $as_echo_n "(cached) " >&6
9308
else
9309
  ac_check_lib_save_LIBS=$LIBS
9310
LIBS="-ldl  $LIBS"
9311 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 90 jeremybenn
/* end confdefs.h.  */
9313
 
9314
/* Override any GCC internal prototype to avoid an error.
9315
   Use char because int might match the return type of a GCC
9316
   builtin and then its argument prototype would still apply.  */
9317
#ifdef __cplusplus
9318
extern "C"
9319
#endif
9320
char dlopen ();
9321
int
9322
main ()
9323
{
9324
return dlopen ();
9325
  ;
9326
  return 0;
9327
}
9328
_ACEOF
9329 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9330 90 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9331
else
9332 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
9333 90 jeremybenn
fi
9334 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9335
    conftest$ac_exeext conftest.$ac_ext
9336 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9337
fi
9338 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9339 90 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9340 346 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9341 90 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9342
else
9343 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9344 90 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9345 346 jeremybenn
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9346 90 jeremybenn
  $as_echo_n "(cached) " >&6
9347
else
9348
  ac_check_lib_save_LIBS=$LIBS
9349
LIBS="-lsvld  $LIBS"
9350 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351 90 jeremybenn
/* end confdefs.h.  */
9352
 
9353
/* Override any GCC internal prototype to avoid an error.
9354
   Use char because int might match the return type of a GCC
9355
   builtin and then its argument prototype would still apply.  */
9356
#ifdef __cplusplus
9357
extern "C"
9358
#endif
9359
char dlopen ();
9360
int
9361
main ()
9362
{
9363
return dlopen ();
9364
  ;
9365
  return 0;
9366
}
9367
_ACEOF
9368 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9369 90 jeremybenn
  ac_cv_lib_svld_dlopen=yes
9370
else
9371 346 jeremybenn
  ac_cv_lib_svld_dlopen=no
9372 90 jeremybenn
fi
9373 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9374
    conftest$ac_exeext conftest.$ac_ext
9375 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9376
fi
9377 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9378 90 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9379 346 jeremybenn
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9380 90 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9381
else
9382 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9383 90 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9384 346 jeremybenn
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9385 90 jeremybenn
  $as_echo_n "(cached) " >&6
9386
else
9387
  ac_check_lib_save_LIBS=$LIBS
9388
LIBS="-ldld  $LIBS"
9389 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 90 jeremybenn
/* end confdefs.h.  */
9391
 
9392
/* Override any GCC internal prototype to avoid an error.
9393
   Use char because int might match the return type of a GCC
9394
   builtin and then its argument prototype would still apply.  */
9395
#ifdef __cplusplus
9396
extern "C"
9397
#endif
9398
char dld_link ();
9399
int
9400
main ()
9401
{
9402
return dld_link ();
9403
  ;
9404
  return 0;
9405
}
9406
_ACEOF
9407 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9408 90 jeremybenn
  ac_cv_lib_dld_dld_link=yes
9409
else
9410 346 jeremybenn
  ac_cv_lib_dld_dld_link=no
9411 90 jeremybenn
fi
9412 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9413
    conftest$ac_exeext conftest.$ac_ext
9414 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9415
fi
9416 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9417 90 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9418 346 jeremybenn
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9419 90 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9420
fi
9421
 
9422
 
9423
fi
9424
 
9425
 
9426
fi
9427
 
9428
 
9429
fi
9430
 
9431
 
9432
fi
9433
 
9434
 
9435
fi
9436
 
9437
    ;;
9438
  esac
9439
 
9440
  if test "x$lt_cv_dlopen" != xno; then
9441
    enable_dlopen=yes
9442
  else
9443
    enable_dlopen=no
9444
  fi
9445
 
9446
  case $lt_cv_dlopen in
9447
  dlopen)
9448
    save_CPPFLAGS="$CPPFLAGS"
9449
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9450
 
9451
    save_LDFLAGS="$LDFLAGS"
9452
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9453
 
9454
    save_LIBS="$LIBS"
9455
    LIBS="$lt_cv_dlopen_libs $LIBS"
9456
 
9457 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9458 90 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9459 346 jeremybenn
if test "${lt_cv_dlopen_self+set}" = set; then :
9460 90 jeremybenn
  $as_echo_n "(cached) " >&6
9461
else
9462
          if test "$cross_compiling" = yes; then :
9463
  lt_cv_dlopen_self=cross
9464
else
9465
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9466
  lt_status=$lt_dlunknown
9467
  cat > conftest.$ac_ext <<_LT_EOF
9468 538 julius
#line 9468 "configure"
9469 90 jeremybenn
#include "confdefs.h"
9470
 
9471
#if HAVE_DLFCN_H
9472
#include 
9473
#endif
9474
 
9475
#include 
9476
 
9477
#ifdef RTLD_GLOBAL
9478
#  define LT_DLGLOBAL           RTLD_GLOBAL
9479
#else
9480
#  ifdef DL_GLOBAL
9481
#    define LT_DLGLOBAL         DL_GLOBAL
9482
#  else
9483
#    define LT_DLGLOBAL         0
9484
#  endif
9485
#endif
9486
 
9487
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9488
   find out it does not work in some platform. */
9489
#ifndef LT_DLLAZY_OR_NOW
9490
#  ifdef RTLD_LAZY
9491
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9492
#  else
9493
#    ifdef DL_LAZY
9494
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9495
#    else
9496
#      ifdef RTLD_NOW
9497
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9498
#      else
9499
#        ifdef DL_NOW
9500
#          define LT_DLLAZY_OR_NOW      DL_NOW
9501
#        else
9502
#          define LT_DLLAZY_OR_NOW      0
9503
#        endif
9504
#      endif
9505
#    endif
9506
#  endif
9507
#endif
9508
 
9509
void fnord() { int i=42;}
9510
int main ()
9511
{
9512
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9513
  int status = $lt_dlunknown;
9514
 
9515
  if (self)
9516
    {
9517
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9518
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9519
      /* dlclose (self); */
9520
    }
9521
  else
9522
    puts (dlerror ());
9523
 
9524
  return status;
9525
}
9526
_LT_EOF
9527 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9528 90 jeremybenn
  (eval $ac_link) 2>&5
9529
  ac_status=$?
9530 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9531
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9532 90 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9533
    lt_status=$?
9534
    case x$lt_status in
9535
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9536
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9537
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9538
    esac
9539
  else :
9540
    # compilation failed
9541
    lt_cv_dlopen_self=no
9542
  fi
9543
fi
9544
rm -fr conftest*
9545
 
9546
 
9547
fi
9548 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9549 90 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
9550
 
9551
    if test "x$lt_cv_dlopen_self" = xyes; then
9552
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9553 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9554 90 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9555 346 jeremybenn
if test "${lt_cv_dlopen_self_static+set}" = set; then :
9556 90 jeremybenn
  $as_echo_n "(cached) " >&6
9557
else
9558
          if test "$cross_compiling" = yes; then :
9559
  lt_cv_dlopen_self_static=cross
9560
else
9561
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9562
  lt_status=$lt_dlunknown
9563
  cat > conftest.$ac_ext <<_LT_EOF
9564 538 julius
#line 9564 "configure"
9565 90 jeremybenn
#include "confdefs.h"
9566
 
9567
#if HAVE_DLFCN_H
9568
#include 
9569
#endif
9570
 
9571
#include 
9572
 
9573
#ifdef RTLD_GLOBAL
9574
#  define LT_DLGLOBAL           RTLD_GLOBAL
9575
#else
9576
#  ifdef DL_GLOBAL
9577
#    define LT_DLGLOBAL         DL_GLOBAL
9578
#  else
9579
#    define LT_DLGLOBAL         0
9580
#  endif
9581
#endif
9582
 
9583
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9584
   find out it does not work in some platform. */
9585
#ifndef LT_DLLAZY_OR_NOW
9586
#  ifdef RTLD_LAZY
9587
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9588
#  else
9589
#    ifdef DL_LAZY
9590
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9591
#    else
9592
#      ifdef RTLD_NOW
9593
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9594
#      else
9595
#        ifdef DL_NOW
9596
#          define LT_DLLAZY_OR_NOW      DL_NOW
9597
#        else
9598
#          define LT_DLLAZY_OR_NOW      0
9599
#        endif
9600
#      endif
9601
#    endif
9602
#  endif
9603
#endif
9604
 
9605
void fnord() { int i=42;}
9606
int main ()
9607
{
9608
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9609
  int status = $lt_dlunknown;
9610
 
9611
  if (self)
9612
    {
9613
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9614
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9615
      /* dlclose (self); */
9616
    }
9617
  else
9618
    puts (dlerror ());
9619
 
9620
  return status;
9621
}
9622
_LT_EOF
9623 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9624 90 jeremybenn
  (eval $ac_link) 2>&5
9625
  ac_status=$?
9626 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9627
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9628 90 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9629
    lt_status=$?
9630
    case x$lt_status in
9631
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9632
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9633
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9634
    esac
9635
  else :
9636
    # compilation failed
9637
    lt_cv_dlopen_self_static=no
9638
  fi
9639
fi
9640
rm -fr conftest*
9641
 
9642
 
9643
fi
9644 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9645 90 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
9646
    fi
9647
 
9648
    CPPFLAGS="$save_CPPFLAGS"
9649
    LDFLAGS="$save_LDFLAGS"
9650
    LIBS="$save_LIBS"
9651
    ;;
9652
  esac
9653
 
9654
  case $lt_cv_dlopen_self in
9655
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9656
  *) enable_dlopen_self=unknown ;;
9657
  esac
9658
 
9659
  case $lt_cv_dlopen_self_static in
9660
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9661
  *) enable_dlopen_self_static=unknown ;;
9662
  esac
9663
fi
9664
 
9665
 
9666
 
9667
 
9668
 
9669
 
9670
 
9671
 
9672
 
9673
 
9674
 
9675
 
9676
 
9677
 
9678
 
9679
 
9680
 
9681
striplib=
9682
old_striplib=
9683 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9684 90 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9685
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9686
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9687
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9688 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9689 90 jeremybenn
$as_echo "yes" >&6; }
9690
else
9691
# FIXME - insert some real tests, host_os isn't really good enough
9692
  case $host_os in
9693
  darwin*)
9694
    if test -n "$STRIP" ; then
9695
      striplib="$STRIP -x"
9696
      old_striplib="$STRIP -S"
9697 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9698 90 jeremybenn
$as_echo "yes" >&6; }
9699
    else
9700 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 90 jeremybenn
$as_echo "no" >&6; }
9702
    fi
9703
    ;;
9704
  *)
9705 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9706 90 jeremybenn
$as_echo "no" >&6; }
9707
    ;;
9708
  esac
9709
fi
9710
 
9711
 
9712
 
9713
 
9714
 
9715
 
9716
 
9717
 
9718
 
9719
 
9720
 
9721
 
9722
  # Report which library types will actually be built
9723 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9724 90 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9725 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9726 90 jeremybenn
$as_echo "$can_build_shared" >&6; }
9727
 
9728 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9729 90 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
9730
  test "$can_build_shared" = "no" && enable_shared=no
9731
 
9732
  # On AIX, shared libraries and static libraries use the same namespace, and
9733
  # are all built from PIC.
9734
  case $host_os in
9735
  aix3*)
9736
    test "$enable_shared" = yes && enable_static=no
9737
    if test -n "$RANLIB"; then
9738
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
9739
      postinstall_cmds='$RANLIB $lib'
9740
    fi
9741
    ;;
9742
 
9743
  aix[4-9]*)
9744
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9745
      test "$enable_shared" = yes && enable_static=no
9746
    fi
9747
    ;;
9748
  esac
9749 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9750 90 jeremybenn
$as_echo "$enable_shared" >&6; }
9751
 
9752 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9753 90 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
9754
  # Make sure either enable_shared or enable_static is yes.
9755
  test "$enable_shared" = yes || enable_static=yes
9756 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9757 90 jeremybenn
$as_echo "$enable_static" >&6; }
9758
 
9759
 
9760
 
9761
 
9762
fi
9763
ac_ext=c
9764
ac_cpp='$CPP $CPPFLAGS'
9765
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9766
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9767
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9768
 
9769
CC="$lt_save_CC"
9770
 
9771
 
9772
 
9773
 
9774
 
9775
 
9776
 
9777
 
9778
 
9779
 
9780
 
9781
 
9782
 
9783
        ac_config_commands="$ac_config_commands libtool"
9784
 
9785
 
9786
 
9787
 
9788
# Only expand once:
9789
 
9790
 
9791
am__api_version='1.11'
9792
 
9793
# Find a good install program.  We prefer a C program (faster),
9794
# so one script is as good as another.  But avoid the broken or
9795
# incompatible versions:
9796
# SysV /etc/install, /usr/sbin/install
9797
# SunOS /usr/etc/install
9798
# IRIX /sbin/install
9799
# AIX /bin/install
9800
# AmigaOS /C/install, which installs bootblocks on floppy discs
9801
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9802
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9803
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9804
# OS/2's system install, which has a completely different semantic
9805
# ./install, which can be erroneously created by make from ./install.sh.
9806
# Reject install programs that cannot install multiple files.
9807 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9808 90 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
9809
if test -z "$INSTALL"; then
9810 346 jeremybenn
if test "${ac_cv_path_install+set}" = set; then :
9811 90 jeremybenn
  $as_echo_n "(cached) " >&6
9812
else
9813
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814
for as_dir in $PATH
9815
do
9816
  IFS=$as_save_IFS
9817
  test -z "$as_dir" && as_dir=.
9818 346 jeremybenn
    # Account for people who put trailing slashes in PATH elements.
9819
case $as_dir/ in #((
9820
  ./ | .// | /[cC]/* | \
9821 90 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9822 346 jeremybenn
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9823 90 jeremybenn
  /usr/ucb/* ) ;;
9824
  *)
9825
    # OSF1 and SCO ODT 3.0 have their own names for install.
9826
    # Don't use installbsd from OSF since it installs stuff as root
9827
    # by default.
9828
    for ac_prog in ginstall scoinst install; do
9829
      for ac_exec_ext in '' $ac_executable_extensions; do
9830
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9831
          if test $ac_prog = install &&
9832
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9833
            # AIX install.  It has an incompatible calling convention.
9834
            :
9835
          elif test $ac_prog = install &&
9836
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9837
            # program-specific install script used by HP pwplus--don't use.
9838
            :
9839
          else
9840
            rm -rf conftest.one conftest.two conftest.dir
9841
            echo one > conftest.one
9842
            echo two > conftest.two
9843
            mkdir conftest.dir
9844
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9845
              test -s conftest.one && test -s conftest.two &&
9846
              test -s conftest.dir/conftest.one &&
9847
              test -s conftest.dir/conftest.two
9848
            then
9849
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9850
              break 3
9851
            fi
9852
          fi
9853
        fi
9854
      done
9855
    done
9856
    ;;
9857
esac
9858
 
9859 346 jeremybenn
  done
9860 90 jeremybenn
IFS=$as_save_IFS
9861
 
9862
rm -rf conftest.one conftest.two conftest.dir
9863
 
9864
fi
9865
  if test "${ac_cv_path_install+set}" = set; then
9866
    INSTALL=$ac_cv_path_install
9867
  else
9868
    # As a last resort, use the slow shell script.  Don't cache a
9869
    # value for INSTALL within a source directory, because that will
9870
    # break other packages using the cache if that directory is
9871
    # removed, or if the value is a relative name.
9872
    INSTALL=$ac_install_sh
9873
  fi
9874
fi
9875 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9876 90 jeremybenn
$as_echo "$INSTALL" >&6; }
9877
 
9878
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9879
# It thinks the first close brace ends the variable substitution.
9880
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9881
 
9882
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9883
 
9884
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9885
 
9886 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
9887 90 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
9888
# Just in case
9889
sleep 1
9890
echo timestamp > conftest.file
9891
# Reject unsafe characters in $srcdir or the absolute working directory
9892
# name.  Accept space and tab only in the latter.
9893
am_lf='
9894
'
9895
case `pwd` in
9896
  *[\\\"\#\$\&\'\`$am_lf]*)
9897 346 jeremybenn
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
9898 90 jeremybenn
esac
9899
case $srcdir in
9900
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
9901 346 jeremybenn
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
9902 90 jeremybenn
esac
9903
 
9904
# Do `set' in a subshell so we don't clobber the current shell's
9905
# arguments.  Must try -L first in case configure is actually a
9906
# symlink; some systems play weird games with the mod time of symlinks
9907
# (eg FreeBSD returns the mod time of the symlink's containing
9908
# directory).
9909
if (
9910
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9911
   if test "$*" = "X"; then
9912
      # -L didn't work.
9913
      set X `ls -t "$srcdir/configure" conftest.file`
9914
   fi
9915
   rm -f conftest.file
9916
   if test "$*" != "X $srcdir/configure conftest.file" \
9917
      && test "$*" != "X conftest.file $srcdir/configure"; then
9918
 
9919
      # If neither matched, then we have a broken ls.  This can happen
9920
      # if, for instance, CONFIG_SHELL is bash and it inherits a
9921
      # broken ls alias from the environment.  This has actually
9922
      # happened.  Such a system could not be considered "sane".
9923 346 jeremybenn
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
9924
alias in your environment" "$LINENO" 5
9925 90 jeremybenn
   fi
9926
 
9927
   test "$2" = conftest.file
9928
   )
9929
then
9930
   # Ok.
9931
   :
9932
else
9933 346 jeremybenn
   as_fn_error "newly created file is older than distributed files!
9934
Check your system clock" "$LINENO" 5
9935 90 jeremybenn
fi
9936 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9937 90 jeremybenn
$as_echo "yes" >&6; }
9938
test "$program_prefix" != NONE &&
9939
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
9940
# Use a double $ so make ignores it.
9941
test "$program_suffix" != NONE &&
9942
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
9943
# Double any \ or $.
9944
# By default was `s,x,x', remove it if useless.
9945
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
9946
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
9947
 
9948
# expand $ac_aux_dir to an absolute path
9949
am_aux_dir=`cd $ac_aux_dir && pwd`
9950
 
9951
if test x"${MISSING+set}" != xset; then
9952
  case $am_aux_dir in
9953
  *\ * | *\     *)
9954
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9955
  *)
9956
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
9957
  esac
9958
fi
9959
# Use eval to expand $SHELL
9960
if eval "$MISSING --run true"; then
9961
  am_missing_run="$MISSING --run "
9962
else
9963
  am_missing_run=
9964 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
9965 90 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
9966
fi
9967
 
9968
if test x"${install_sh}" != xset; then
9969
  case $am_aux_dir in
9970
  *\ * | *\     *)
9971
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9972
  *)
9973
    install_sh="\${SHELL} $am_aux_dir/install-sh"
9974
  esac
9975
fi
9976
 
9977
# Installed binaries are usually stripped using `strip' when the user
9978
# run `make install-strip'.  However `strip' might not be the right
9979
# tool to use in cross-compilation environments, therefore Automake
9980
# will honor the `STRIP' environment variable to overrule this program.
9981
if test "$cross_compiling" != no; then
9982
  if test -n "$ac_tool_prefix"; then
9983
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9984
set dummy ${ac_tool_prefix}strip; ac_word=$2
9985 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
9987 346 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then :
9988 90 jeremybenn
  $as_echo_n "(cached) " >&6
9989
else
9990
  if test -n "$STRIP"; then
9991
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9992
else
9993
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994
for as_dir in $PATH
9995
do
9996
  IFS=$as_save_IFS
9997
  test -z "$as_dir" && as_dir=.
9998 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9999 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10000
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10001 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 90 jeremybenn
    break 2
10003
  fi
10004
done
10005 346 jeremybenn
  done
10006 90 jeremybenn
IFS=$as_save_IFS
10007
 
10008
fi
10009
fi
10010
STRIP=$ac_cv_prog_STRIP
10011
if test -n "$STRIP"; then
10012 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10013 90 jeremybenn
$as_echo "$STRIP" >&6; }
10014
else
10015 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10016 90 jeremybenn
$as_echo "no" >&6; }
10017
fi
10018
 
10019
 
10020
fi
10021
if test -z "$ac_cv_prog_STRIP"; then
10022
  ac_ct_STRIP=$STRIP
10023
  # Extract the first word of "strip", so it can be a program name with args.
10024
set dummy strip; ac_word=$2
10025 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10026 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10027 346 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10028 90 jeremybenn
  $as_echo_n "(cached) " >&6
10029
else
10030
  if test -n "$ac_ct_STRIP"; then
10031
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10032
else
10033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034
for as_dir in $PATH
10035
do
10036
  IFS=$as_save_IFS
10037
  test -z "$as_dir" && as_dir=.
10038 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10039 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10040
    ac_cv_prog_ac_ct_STRIP="strip"
10041 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10042 90 jeremybenn
    break 2
10043
  fi
10044
done
10045 346 jeremybenn
  done
10046 90 jeremybenn
IFS=$as_save_IFS
10047
 
10048
fi
10049
fi
10050
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10051
if test -n "$ac_ct_STRIP"; then
10052 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10053 90 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
10054
else
10055 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056 90 jeremybenn
$as_echo "no" >&6; }
10057
fi
10058
 
10059
  if test "x$ac_ct_STRIP" = x; then
10060
    STRIP=":"
10061
  else
10062
    case $cross_compiling:$ac_tool_warned in
10063
yes:)
10064 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10065 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10066
ac_tool_warned=yes ;;
10067
esac
10068
    STRIP=$ac_ct_STRIP
10069
  fi
10070
else
10071
  STRIP="$ac_cv_prog_STRIP"
10072
fi
10073
 
10074
fi
10075
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10076
 
10077 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10078 90 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10079
if test -z "$MKDIR_P"; then
10080 346 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then :
10081 90 jeremybenn
  $as_echo_n "(cached) " >&6
10082
else
10083
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10085
do
10086
  IFS=$as_save_IFS
10087
  test -z "$as_dir" && as_dir=.
10088 346 jeremybenn
    for ac_prog in mkdir gmkdir; do
10089 90 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
10090
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10091
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10092
             'mkdir (GNU coreutils) '* | \
10093
             'mkdir (coreutils) '* | \
10094
             'mkdir (fileutils) '4.1*)
10095
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10096
               break 3;;
10097
           esac
10098
         done
10099
       done
10100 346 jeremybenn
  done
10101 90 jeremybenn
IFS=$as_save_IFS
10102
 
10103
fi
10104
 
10105
  if test "${ac_cv_path_mkdir+set}" = set; then
10106
    MKDIR_P="$ac_cv_path_mkdir -p"
10107
  else
10108
    # As a last resort, use the slow shell script.  Don't cache a
10109
    # value for MKDIR_P within a source directory, because that will
10110
    # break other packages using the cache if that directory is
10111
    # removed, or if the value is a relative name.
10112 538 julius
    test -d ./--version && rmdir ./--version
10113 90 jeremybenn
    MKDIR_P="$ac_install_sh -d"
10114
  fi
10115
fi
10116 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10117 90 jeremybenn
$as_echo "$MKDIR_P" >&6; }
10118
 
10119
mkdir_p="$MKDIR_P"
10120
case $mkdir_p in
10121
  [\\/$]* | ?:[\\/]*) ;;
10122
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10123
esac
10124
 
10125
for ac_prog in gawk mawk nawk awk
10126
do
10127
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10128
set dummy $ac_prog; ac_word=$2
10129 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10130 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10131 346 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then :
10132 90 jeremybenn
  $as_echo_n "(cached) " >&6
10133
else
10134
  if test -n "$AWK"; then
10135
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10136
else
10137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138
for as_dir in $PATH
10139
do
10140
  IFS=$as_save_IFS
10141
  test -z "$as_dir" && as_dir=.
10142 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10143 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10144
    ac_cv_prog_AWK="$ac_prog"
10145 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10146 90 jeremybenn
    break 2
10147
  fi
10148
done
10149 346 jeremybenn
  done
10150 90 jeremybenn
IFS=$as_save_IFS
10151
 
10152
fi
10153
fi
10154
AWK=$ac_cv_prog_AWK
10155
if test -n "$AWK"; then
10156 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10157 90 jeremybenn
$as_echo "$AWK" >&6; }
10158
else
10159 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160 90 jeremybenn
$as_echo "no" >&6; }
10161
fi
10162
 
10163
 
10164
  test -n "$AWK" && break
10165
done
10166
 
10167 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10168 90 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10169
set x ${MAKE-make}
10170
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10171 346 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
10172 90 jeremybenn
  $as_echo_n "(cached) " >&6
10173
else
10174
  cat >conftest.make <<\_ACEOF
10175
SHELL = /bin/sh
10176
all:
10177
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10178
_ACEOF
10179
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10180
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10181
  *@@@%%%=?*=@@@%%%*)
10182
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10183
  *)
10184
    eval ac_cv_prog_make_${ac_make}_set=no;;
10185
esac
10186
rm -f conftest.make
10187
fi
10188
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10189 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10190 90 jeremybenn
$as_echo "yes" >&6; }
10191
  SET_MAKE=
10192
else
10193 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10194 90 jeremybenn
$as_echo "no" >&6; }
10195
  SET_MAKE="MAKE=${MAKE-make}"
10196
fi
10197
 
10198
rm -rf .tst 2>/dev/null
10199
mkdir .tst 2>/dev/null
10200
if test -d .tst; then
10201
  am__leading_dot=.
10202
else
10203
  am__leading_dot=_
10204
fi
10205
rmdir .tst 2>/dev/null
10206
 
10207
DEPDIR="${am__leading_dot}deps"
10208
 
10209
ac_config_commands="$ac_config_commands depfiles"
10210
 
10211
 
10212
am_make=${MAKE-make}
10213
cat > confinc << 'END'
10214
am__doit:
10215
        @echo this is the am__doit target
10216
.PHONY: am__doit
10217
END
10218
# If we don't find an include directive, just comment out the code.
10219 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10220 90 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
10221
am__include="#"
10222
am__quote=
10223
_am_result=none
10224
# First try GNU make style include.
10225
echo "include confinc" > confmf
10226
# Ignore all kinds of additional output from `make'.
10227
case `$am_make -s -f confmf 2> /dev/null` in #(
10228
*the\ am__doit\ target*)
10229
  am__include=include
10230
  am__quote=
10231
  _am_result=GNU
10232
  ;;
10233
esac
10234
# Now try BSD make style include.
10235
if test "$am__include" = "#"; then
10236
   echo '.include "confinc"' > confmf
10237
   case `$am_make -s -f confmf 2> /dev/null` in #(
10238
   *the\ am__doit\ target*)
10239
     am__include=.include
10240
     am__quote="\""
10241
     _am_result=BSD
10242
     ;;
10243
   esac
10244
fi
10245
 
10246
 
10247 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10248 90 jeremybenn
$as_echo "$_am_result" >&6; }
10249
rm -f confinc confmf
10250
 
10251
# Check whether --enable-dependency-tracking was given.
10252 346 jeremybenn
if test "${enable_dependency_tracking+set}" = set; then :
10253 90 jeremybenn
  enableval=$enable_dependency_tracking;
10254
fi
10255
 
10256
if test "x$enable_dependency_tracking" != xno; then
10257
  am_depcomp="$ac_aux_dir/depcomp"
10258
  AMDEPBACKSLASH='\'
10259
fi
10260
 if test "x$enable_dependency_tracking" != xno; then
10261
  AMDEP_TRUE=
10262
  AMDEP_FALSE='#'
10263
else
10264
  AMDEP_TRUE='#'
10265
  AMDEP_FALSE=
10266
fi
10267
 
10268
 
10269
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10270
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10271
  # is not polluted with repeated "-I."
10272
  am__isrc=' -I$(srcdir)'
10273
  # test to see if srcdir already configured
10274
  if test -f $srcdir/config.status; then
10275 346 jeremybenn
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10276 90 jeremybenn
  fi
10277
fi
10278
 
10279
# test whether we have cygpath
10280
if test -z "$CYGPATH_W"; then
10281
  if (cygpath --version) >/dev/null 2>/dev/null; then
10282
    CYGPATH_W='cygpath -w'
10283
  else
10284
    CYGPATH_W=echo
10285
  fi
10286
fi
10287
 
10288
 
10289
# Define the identity of the package.
10290
 PACKAGE='or1ksim-testsuite'
10291 532 jeremybenn
 VERSION='2011-04-28'
10292 90 jeremybenn
 
10293
 
10294
cat >>confdefs.h <<_ACEOF
10295
#define PACKAGE "$PACKAGE"
10296
_ACEOF
10297
 
10298
 
10299
cat >>confdefs.h <<_ACEOF
10300
#define VERSION "$VERSION"
10301
_ACEOF
10302
 
10303
# Some tools Automake needs.
10304
 
10305
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10306
 
10307
 
10308
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10309
 
10310
 
10311
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10312
 
10313
 
10314
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10315
 
10316
 
10317
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10318
 
10319
# We need awk for the "check" target.  The system "awk" is bad on
10320
# some platforms.
10321
# Always define AMTAR for backward compatibility.
10322
 
10323
AMTAR=${AMTAR-"${am_missing_run}tar"}
10324
 
10325
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
10326
 
10327
 
10328
 
10329
 
10330
depcc="$CC"   am_compiler_list=
10331
 
10332 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10333 90 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10334 346 jeremybenn
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10335 90 jeremybenn
  $as_echo_n "(cached) " >&6
10336
else
10337
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10338
  # We make a subdir and do the tests there.  Otherwise we can end up
10339
  # making bogus files that we don't know about and never remove.  For
10340
  # instance it was reported that on HP-UX the gcc test will end up
10341
  # making a dummy file named `D' -- because `-MD' means `put the output
10342
  # in D'.
10343
  mkdir conftest.dir
10344
  # Copy depcomp to subdir because otherwise we won't find it if we're
10345
  # using a relative directory.
10346
  cp "$am_depcomp" conftest.dir
10347
  cd conftest.dir
10348
  # We will build objects and dependencies in a subdirectory because
10349
  # it helps to detect inapplicable dependency modes.  For instance
10350
  # both Tru64's cc and ICC support -MD to output dependencies as a
10351
  # side effect of compilation, but ICC will put the dependencies in
10352
  # the current directory while Tru64 will put them in the object
10353
  # directory.
10354
  mkdir sub
10355
 
10356
  am_cv_CC_dependencies_compiler_type=none
10357
  if test "$am_compiler_list" = ""; then
10358
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10359
  fi
10360
  am__universal=false
10361
  case " $depcc " in #(
10362
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10363
     esac
10364
 
10365
  for depmode in $am_compiler_list; do
10366
    # Setup a source with many dependencies, because some compilers
10367
    # like to wrap large dependency lists on column 80 (with \), and
10368
    # we should not choose a depcomp mode which is confused by this.
10369
    #
10370
    # We need to recreate these files for each test, as the compiler may
10371
    # overwrite some of them when testing with obscure command lines.
10372
    # This happens at least with the AIX C compiler.
10373
    : > sub/conftest.c
10374
    for i in 1 2 3 4 5 6; do
10375
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10376
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10377
      # Solaris 8's {/usr,}/bin/sh.
10378
      touch sub/conftst$i.h
10379
    done
10380
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10381
 
10382
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10383
    # mode.  It turns out that the SunPro C++ compiler does not properly
10384
    # handle `-M -o', and we need to detect this.  Also, some Intel
10385
    # versions had trouble with output in subdirs
10386
    am__obj=sub/conftest.${OBJEXT-o}
10387
    am__minus_obj="-o $am__obj"
10388
    case $depmode in
10389
    gcc)
10390
      # This depmode causes a compiler race in universal mode.
10391
      test "$am__universal" = false || continue
10392
      ;;
10393
    nosideeffect)
10394
      # after this tag, mechanisms are not by side-effect, so they'll
10395
      # only be used when explicitly requested
10396
      if test "x$enable_dependency_tracking" = xyes; then
10397
        continue
10398
      else
10399
        break
10400
      fi
10401
      ;;
10402
    msvisualcpp | msvcmsys)
10403
      # This compiler won't grok `-c -o', but also, the minuso test has
10404
      # not run yet.  These depmodes are late enough in the game, and
10405
      # so weak that their functioning should not be impacted.
10406
      am__obj=conftest.${OBJEXT-o}
10407
      am__minus_obj=
10408
      ;;
10409
    none) break ;;
10410
    esac
10411
    if depmode=$depmode \
10412
       source=sub/conftest.c object=$am__obj \
10413
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10414
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10415
         >/dev/null 2>conftest.err &&
10416
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10417
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10418
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10419
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10420
      # icc doesn't choke on unknown options, it will just issue warnings
10421
      # or remarks (even with -Werror).  So we grep stderr for any message
10422
      # that says an option was ignored or not supported.
10423
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10424
      #   icc: Command line warning: ignoring option '-M'; no argument required
10425
      # The diagnosis changed in icc 8.0:
10426
      #   icc: Command line remark: option '-MP' not supported
10427
      if (grep 'ignoring option' conftest.err ||
10428
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10429
        am_cv_CC_dependencies_compiler_type=$depmode
10430
        break
10431
      fi
10432
    fi
10433
  done
10434
 
10435
  cd ..
10436
  rm -rf conftest.dir
10437
else
10438
  am_cv_CC_dependencies_compiler_type=none
10439
fi
10440
 
10441
fi
10442 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10443 90 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10444
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10445
 
10446
 if
10447
  test "x$enable_dependency_tracking" != xno \
10448
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10449
  am__fastdepCC_TRUE=
10450
  am__fastdepCC_FALSE='#'
10451
else
10452
  am__fastdepCC_TRUE='#'
10453
  am__fastdepCC_FALSE=
10454
fi
10455
 
10456
 
10457
 
10458
ac_config_headers="$ac_config_headers config.h"
10459
 
10460
 
10461
# make sure we are using a recent autoconf version
10462
 
10463
 
10464 385 jeremybenn
# This is not nice, but it gets round the problem of the target not being
10465
# specified. We don't need to warn again - the main configure did that for us.
10466
case "$target_cpu" in
10467
or32*)
10468
        ;;
10469
 
10470
dlx*)
10471
        ;;
10472
 
10473
*)      target_alias=or32-elf;
10474
        ;;
10475
esac
10476
 
10477 90 jeremybenn
# check for --enable-all-tests argument, in which case we attempt to build all
10478
# tests, even those that do not compile properly.
10479
# Check whether --enable-all-tests was given.
10480 346 jeremybenn
if test "${enable_all_tests+set}" = set; then :
10481 90 jeremybenn
  enableval=$enable_all_tests; all_tests=true all_tests=false
10482
fi
10483
 
10484
 if test x$all_tests = xtrue; then
10485
  BUILD_ALL_TESTS_TRUE=
10486
  BUILD_ALL_TESTS_FALSE='#'
10487
else
10488
  BUILD_ALL_TESTS_TRUE='#'
10489
  BUILD_ALL_TESTS_FALSE=
10490
fi
10491
 
10492
 
10493
# Sort out the tools. Using the target tool chain here, not native. Note that
10494
# AC_CHECK_PROGS will not override an already set variable, so we must
10495
# explicitly unset them first.
10496
unset CC
10497
unset RANLIB
10498
unset LD
10499
unset SIM
10500
for ac_prog in $target_alias-gcc
10501
do
10502
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10503
set dummy $ac_prog; ac_word=$2
10504 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10506 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
10507 90 jeremybenn
  $as_echo_n "(cached) " >&6
10508
else
10509
  if test -n "$CC"; then
10510
  ac_cv_prog_CC="$CC" # Let the user override the test.
10511
else
10512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513
for as_dir in $PATH
10514
do
10515
  IFS=$as_save_IFS
10516
  test -z "$as_dir" && as_dir=.
10517 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10518 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10519
    ac_cv_prog_CC="$ac_prog"
10520 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10521 90 jeremybenn
    break 2
10522
  fi
10523
done
10524 346 jeremybenn
  done
10525 90 jeremybenn
IFS=$as_save_IFS
10526
 
10527
fi
10528
fi
10529
CC=$ac_cv_prog_CC
10530
if test -n "$CC"; then
10531 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10532 90 jeremybenn
$as_echo "$CC" >&6; }
10533
else
10534 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 90 jeremybenn
$as_echo "no" >&6; }
10536
fi
10537
 
10538
 
10539
  test -n "$CC" && break
10540
done
10541
 
10542
for ac_prog in $target_alias-ranlib
10543
do
10544
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10545
set dummy $ac_prog; ac_word=$2
10546 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10547 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10548 346 jeremybenn
if test "${ac_cv_prog_RANLIB+set}" = set; then :
10549 90 jeremybenn
  $as_echo_n "(cached) " >&6
10550
else
10551
  if test -n "$RANLIB"; then
10552
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10553
else
10554
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10555
for as_dir in $PATH
10556
do
10557
  IFS=$as_save_IFS
10558
  test -z "$as_dir" && as_dir=.
10559 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10560 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10561
    ac_cv_prog_RANLIB="$ac_prog"
10562 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10563 90 jeremybenn
    break 2
10564
  fi
10565
done
10566 346 jeremybenn
  done
10567 90 jeremybenn
IFS=$as_save_IFS
10568
 
10569
fi
10570
fi
10571
RANLIB=$ac_cv_prog_RANLIB
10572
if test -n "$RANLIB"; then
10573 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10574 90 jeremybenn
$as_echo "$RANLIB" >&6; }
10575
else
10576 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10577 90 jeremybenn
$as_echo "no" >&6; }
10578
fi
10579
 
10580
 
10581
  test -n "$RANLIB" && break
10582
done
10583
 
10584
for ac_prog in $target_alias-ld
10585
do
10586
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10587
set dummy $ac_prog; ac_word=$2
10588 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10589 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10590 346 jeremybenn
if test "${ac_cv_prog_LD+set}" = set; then :
10591 90 jeremybenn
  $as_echo_n "(cached) " >&6
10592
else
10593
  if test -n "$LD"; then
10594
  ac_cv_prog_LD="$LD" # Let the user override the test.
10595
else
10596
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597
for as_dir in $PATH
10598
do
10599
  IFS=$as_save_IFS
10600
  test -z "$as_dir" && as_dir=.
10601 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10602 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10603
    ac_cv_prog_LD="$ac_prog"
10604 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10605 90 jeremybenn
    break 2
10606
  fi
10607
done
10608 346 jeremybenn
  done
10609 90 jeremybenn
IFS=$as_save_IFS
10610
 
10611
fi
10612
fi
10613
LD=$ac_cv_prog_LD
10614
if test -n "$LD"; then
10615 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10616 90 jeremybenn
$as_echo "$LD" >&6; }
10617
else
10618 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619 90 jeremybenn
$as_echo "no" >&6; }
10620
fi
10621
 
10622
 
10623
  test -n "$LD" && break
10624
done
10625
 
10626
for ac_prog in $target_alias-sim
10627
do
10628
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10629
set dummy $ac_prog; ac_word=$2
10630 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10632 346 jeremybenn
if test "${ac_cv_prog_SIM+set}" = set; then :
10633 90 jeremybenn
  $as_echo_n "(cached) " >&6
10634
else
10635
  if test -n "$SIM"; then
10636
  ac_cv_prog_SIM="$SIM" # Let the user override the test.
10637
else
10638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639
for as_dir in $PATH
10640
do
10641
  IFS=$as_save_IFS
10642
  test -z "$as_dir" && as_dir=.
10643 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10644 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10645
    ac_cv_prog_SIM="$ac_prog"
10646 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10647 90 jeremybenn
    break 2
10648
  fi
10649
done
10650 346 jeremybenn
  done
10651 90 jeremybenn
IFS=$as_save_IFS
10652
 
10653
fi
10654
fi
10655
SIM=$ac_cv_prog_SIM
10656
if test -n "$SIM"; then
10657 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM" >&5
10658 90 jeremybenn
$as_echo "$SIM" >&6; }
10659
else
10660 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 90 jeremybenn
$as_echo "no" >&6; }
10662
fi
10663
 
10664
 
10665
  test -n "$SIM" && break
10666
done
10667
 
10668
 
10669
 
10670
 
10671
 
10672
 
10673 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10674 90 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
10675 346 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then :
10676 90 jeremybenn
  $as_echo_n "(cached) " >&6
10677
else
10678 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679 90 jeremybenn
/* end confdefs.h.  */
10680
#include 
10681
#include 
10682
#include 
10683
#include 
10684
 
10685
int
10686
main ()
10687
{
10688
 
10689
  ;
10690
  return 0;
10691
}
10692
_ACEOF
10693 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
10694 90 jeremybenn
  ac_cv_header_stdc=yes
10695
else
10696 346 jeremybenn
  ac_cv_header_stdc=no
10697 90 jeremybenn
fi
10698
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10699
 
10700
if test $ac_cv_header_stdc = yes; then
10701
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10702 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 90 jeremybenn
/* end confdefs.h.  */
10704
#include 
10705
 
10706
_ACEOF
10707
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10708 346 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then :
10709
 
10710 90 jeremybenn
else
10711
  ac_cv_header_stdc=no
10712
fi
10713
rm -f conftest*
10714
 
10715
fi
10716
 
10717
if test $ac_cv_header_stdc = yes; then
10718
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10719 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 90 jeremybenn
/* end confdefs.h.  */
10721
#include 
10722
 
10723
_ACEOF
10724
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10725 346 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then :
10726
 
10727 90 jeremybenn
else
10728
  ac_cv_header_stdc=no
10729
fi
10730
rm -f conftest*
10731
 
10732
fi
10733
 
10734
if test $ac_cv_header_stdc = yes; then
10735
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10736 346 jeremybenn
  if test "$cross_compiling" = yes; then :
10737 90 jeremybenn
  :
10738
else
10739 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740 90 jeremybenn
/* end confdefs.h.  */
10741
#include 
10742
#include 
10743
#if ((' ' & 0x0FF) == 0x020)
10744
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10745
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10746
#else
10747
# define ISLOWER(c) \
10748
                   (('a' <= (c) && (c) <= 'i') \
10749
                     || ('j' <= (c) && (c) <= 'r') \
10750
                     || ('s' <= (c) && (c) <= 'z'))
10751
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10752
#endif
10753
 
10754
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10755
int
10756
main ()
10757
{
10758
  int i;
10759
  for (i = 0; i < 256; i++)
10760
    if (XOR (islower (i), ISLOWER (i))
10761
        || toupper (i) != TOUPPER (i))
10762
      return 2;
10763
  return 0;
10764
}
10765
_ACEOF
10766 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
10767
 
10768 236 jeremybenn
else
10769 346 jeremybenn
  ac_cv_header_stdc=no
10770 90 jeremybenn
fi
10771 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10772
  conftest.$ac_objext conftest.beam conftest.$ac_ext
10773 90 jeremybenn
fi
10774
 
10775
fi
10776
fi
10777 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10778 90 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
10779
if test $ac_cv_header_stdc = yes; then
10780
 
10781 346 jeremybenn
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10782 90 jeremybenn
 
10783
fi
10784
 
10785
 
10786
# We need assembler, installer and per target C flags
10787
 
10788
# By default we simply use the C compiler to build assembly code.
10789
 
10790
test "${CCAS+set}" = set || CCAS=$CC
10791
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10792
 
10793
 
10794
 
10795
depcc="$CCAS"   am_compiler_list=
10796
 
10797 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10798 90 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10799 346 jeremybenn
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
10800 90 jeremybenn
  $as_echo_n "(cached) " >&6
10801
else
10802
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10803
  # We make a subdir and do the tests there.  Otherwise we can end up
10804
  # making bogus files that we don't know about and never remove.  For
10805
  # instance it was reported that on HP-UX the gcc test will end up
10806
  # making a dummy file named `D' -- because `-MD' means `put the output
10807
  # in D'.
10808
  mkdir conftest.dir
10809
  # Copy depcomp to subdir because otherwise we won't find it if we're
10810
  # using a relative directory.
10811
  cp "$am_depcomp" conftest.dir
10812
  cd conftest.dir
10813
  # We will build objects and dependencies in a subdirectory because
10814
  # it helps to detect inapplicable dependency modes.  For instance
10815
  # both Tru64's cc and ICC support -MD to output dependencies as a
10816
  # side effect of compilation, but ICC will put the dependencies in
10817
  # the current directory while Tru64 will put them in the object
10818
  # directory.
10819
  mkdir sub
10820
 
10821
  am_cv_CCAS_dependencies_compiler_type=none
10822
  if test "$am_compiler_list" = ""; then
10823
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10824
  fi
10825
  am__universal=false
10826
 
10827
 
10828
  for depmode in $am_compiler_list; do
10829
    # Setup a source with many dependencies, because some compilers
10830
    # like to wrap large dependency lists on column 80 (with \), and
10831
    # we should not choose a depcomp mode which is confused by this.
10832
    #
10833
    # We need to recreate these files for each test, as the compiler may
10834
    # overwrite some of them when testing with obscure command lines.
10835
    # This happens at least with the AIX C compiler.
10836
    : > sub/conftest.c
10837
    for i in 1 2 3 4 5 6; do
10838
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10839
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10840
      # Solaris 8's {/usr,}/bin/sh.
10841
      touch sub/conftst$i.h
10842
    done
10843
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10844
 
10845
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10846
    # mode.  It turns out that the SunPro C++ compiler does not properly
10847
    # handle `-M -o', and we need to detect this.  Also, some Intel
10848
    # versions had trouble with output in subdirs
10849
    am__obj=sub/conftest.${OBJEXT-o}
10850
    am__minus_obj="-o $am__obj"
10851
    case $depmode in
10852
    gcc)
10853
      # This depmode causes a compiler race in universal mode.
10854
      test "$am__universal" = false || continue
10855
      ;;
10856
    nosideeffect)
10857
      # after this tag, mechanisms are not by side-effect, so they'll
10858
      # only be used when explicitly requested
10859
      if test "x$enable_dependency_tracking" = xyes; then
10860
        continue
10861
      else
10862
        break
10863
      fi
10864
      ;;
10865
    msvisualcpp | msvcmsys)
10866
      # This compiler won't grok `-c -o', but also, the minuso test has
10867
      # not run yet.  These depmodes are late enough in the game, and
10868
      # so weak that their functioning should not be impacted.
10869
      am__obj=conftest.${OBJEXT-o}
10870
      am__minus_obj=
10871
      ;;
10872
    none) break ;;
10873
    esac
10874
    if depmode=$depmode \
10875
       source=sub/conftest.c object=$am__obj \
10876
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10877
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10878
         >/dev/null 2>conftest.err &&
10879
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10880
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10881
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10882
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10883
      # icc doesn't choke on unknown options, it will just issue warnings
10884
      # or remarks (even with -Werror).  So we grep stderr for any message
10885
      # that says an option was ignored or not supported.
10886
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10887
      #   icc: Command line warning: ignoring option '-M'; no argument required
10888
      # The diagnosis changed in icc 8.0:
10889
      #   icc: Command line remark: option '-MP' not supported
10890
      if (grep 'ignoring option' conftest.err ||
10891
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10892
        am_cv_CCAS_dependencies_compiler_type=$depmode
10893
        break
10894
      fi
10895
    fi
10896
  done
10897
 
10898
  cd ..
10899
  rm -rf conftest.dir
10900
else
10901
  am_cv_CCAS_dependencies_compiler_type=none
10902
fi
10903
 
10904
fi
10905 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
10906 90 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
10907
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
10908
 
10909
 if
10910
  test "x$enable_dependency_tracking" != xno \
10911
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
10912
  am__fastdepCCAS_TRUE=
10913
  am__fastdepCCAS_FALSE='#'
10914
else
10915
  am__fastdepCCAS_TRUE='#'
10916
  am__fastdepCCAS_FALSE=
10917
fi
10918
 
10919
 
10920
if test "x$CC" != xcc; then
10921 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10922 90 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10923
else
10924 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10925 90 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10926
fi
10927
set dummy $CC; ac_cc=`$as_echo "$2" |
10928
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10929 346 jeremybenn
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
10930 90 jeremybenn
  $as_echo_n "(cached) " >&6
10931
else
10932 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 90 jeremybenn
/* end confdefs.h.  */
10934
 
10935
int
10936
main ()
10937
{
10938
 
10939
  ;
10940
  return 0;
10941
}
10942
_ACEOF
10943
# Make sure it works both with $CC and with simple cc.
10944
# We do the test twice because some compilers refuse to overwrite an
10945
# existing .o file with -o, though they will create one.
10946
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10947
rm -f conftest2.*
10948 346 jeremybenn
if { { case "(($ac_try" in
10949 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950
  *) ac_try_echo=$ac_try;;
10951
esac
10952 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10953
$as_echo "$ac_try_echo"; } >&5
10954 90 jeremybenn
  (eval "$ac_try") 2>&5
10955
  ac_status=$?
10956 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10957
  test $ac_status = 0; } &&
10958
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
10959 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960
  *) ac_try_echo=$ac_try;;
10961
esac
10962 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10963
$as_echo "$ac_try_echo"; } >&5
10964 90 jeremybenn
  (eval "$ac_try") 2>&5
10965
  ac_status=$?
10966 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10967
  test $ac_status = 0; };
10968 90 jeremybenn
then
10969
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10970
  if test "x$CC" != xcc; then
10971
    # Test first that cc exists at all.
10972
    if { ac_try='cc -c conftest.$ac_ext >&5'
10973 346 jeremybenn
  { { case "(($ac_try" in
10974 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975
  *) ac_try_echo=$ac_try;;
10976
esac
10977 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10978
$as_echo "$ac_try_echo"; } >&5
10979 90 jeremybenn
  (eval "$ac_try") 2>&5
10980
  ac_status=$?
10981 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10982
  test $ac_status = 0; }; }; then
10983 90 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10984
      rm -f conftest2.*
10985 346 jeremybenn
      if { { 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
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
10996 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997
  *) ac_try_echo=$ac_try;;
10998
esac
10999 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11000
$as_echo "$ac_try_echo"; } >&5
11001 90 jeremybenn
  (eval "$ac_try") 2>&5
11002
  ac_status=$?
11003 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11004
  test $ac_status = 0; };
11005 90 jeremybenn
      then
11006
        # cc works too.
11007
        :
11008
      else
11009
        # cc exists but doesn't like -o.
11010
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
11011
      fi
11012
    fi
11013
  fi
11014
else
11015
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11016
fi
11017
rm -f core conftest*
11018
 
11019
fi
11020
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11021 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11022 90 jeremybenn
$as_echo "yes" >&6; }
11023
else
11024 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 90 jeremybenn
$as_echo "no" >&6; }
11026
 
11027 346 jeremybenn
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11028 90 jeremybenn
 
11029
fi
11030
 
11031
# FIXME: we rely on the cache variable name because
11032
# there is no other way.
11033
set dummy $CC
11034
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11035
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11036
if test "$am_t" != yes; then
11037
   # Losing compiler, so override with the script.
11038
   # FIXME: It is wrong to rewrite CC.
11039
   # But if we don't then we get into trouble of one sort or another.
11040
   # A longer-term fix would be to have automake use am__CC in this case,
11041
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11042
   CC="$am_aux_dir/compile $CC"
11043
fi
11044
 
11045
 
11046
 
11047
 
11048
# Specify our baseline CFLAGS
11049 458 julius
CPPFLAGS="-I\${top_srcdir}/support -I\${top_srcdir}/except"
11050 90 jeremybenn
CFLAGS="-Wall -Werror -g -nostdlib -mhard-div -mhard-mul"
11051
 
11052
# Flag to specify whether we want optimization when checking
11053 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable optimizations when checking" >&5
11054 90 jeremybenn
$as_echo_n "checking whether to enable optimizations when checking... " >&6; }
11055 458 julius
# Check whether --enable-check-opt was given.
11056
if test "${enable_check_opt+set}" = set; then :
11057
  enableval=$enable_check_opt;
11058 90 jeremybenn
    case "$enableval" in
11059
        yes)
11060
            CFLAGS="$CFLAGS -O"
11061
            ;;
11062
        *)
11063
            CFLAGS="$CFLAGS -O$enableval"
11064
            ;;
11065
    esac
11066
 
11067
fi
11068
 
11069 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_check_opt-default}" >&5
11070 90 jeremybenn
$as_echo "${enable_check_opt-default}" >&6; }
11071
 
11072
 
11073
 
11074
 
11075
# This is GNU compliant source and uses GNU libraries
11076
 
11077 346 jeremybenn
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
11078 90 jeremybenn
 
11079
 
11080
# Check for functions doesn't work, since we can't execute code. Define some
11081
# we know are definitely there in OR1K GCC. This is all to allow reused
11082
# headers from the main code body (for the memory controller tests
11083
# principally) to work.
11084
 
11085 346 jeremybenn
$as_echo "#define HAVE_STRNDUP /**/" >>confdefs.h
11086 90 jeremybenn
 
11087
 
11088 346 jeremybenn
$as_echo "#define HAVE_ISBLANK /**/" >>confdefs.h
11089 90 jeremybenn
 
11090
 
11091
# Check for headers
11092
for ac_header in sys/types.h inttypes.h
11093 346 jeremybenn
do :
11094
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11095
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11096
eval as_val=\$$as_ac_Header
11097
   if test "x$as_val" = x""yes; then :
11098 90 jeremybenn
  cat >>confdefs.h <<_ACEOF
11099
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11100
_ACEOF
11101
 
11102
fi
11103
 
11104
done
11105
 
11106
 
11107
# check for types and sizes
11108 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include 
11109
"
11110
if test "x$ac_cv_type_uint8_t" = x""yes; then :
11111 90 jeremybenn
 
11112
cat >>confdefs.h <<_ACEOF
11113
#define HAVE_UINT8_T 1
11114
_ACEOF
11115
 
11116
 
11117
fi
11118 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include 
11119
"
11120
if test "x$ac_cv_type_uint16_t" = x""yes; then :
11121 90 jeremybenn
 
11122
cat >>confdefs.h <<_ACEOF
11123
#define HAVE_UINT16_T 1
11124
_ACEOF
11125
 
11126
 
11127
fi
11128 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
11129
"
11130
if test "x$ac_cv_type_uint32_t" = x""yes; then :
11131 90 jeremybenn
 
11132
cat >>confdefs.h <<_ACEOF
11133
#define HAVE_UINT32_T 1
11134
_ACEOF
11135
 
11136
 
11137
fi
11138
 
11139 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include 
11140
"
11141
if test "x$ac_cv_type_int8_t" = x""yes; then :
11142 90 jeremybenn
 
11143
cat >>confdefs.h <<_ACEOF
11144
#define HAVE_INT8_T 1
11145
_ACEOF
11146
 
11147
 
11148
fi
11149 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include 
11150
"
11151
if test "x$ac_cv_type_int16_t" = x""yes; then :
11152 90 jeremybenn
 
11153
cat >>confdefs.h <<_ACEOF
11154
#define HAVE_INT16_T 1
11155
_ACEOF
11156
 
11157
 
11158
fi
11159 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include 
11160
"
11161
if test "x$ac_cv_type_int32_t" = x""yes; then :
11162 90 jeremybenn
 
11163
cat >>confdefs.h <<_ACEOF
11164
#define HAVE_INT32_T 1
11165
_ACEOF
11166
 
11167
 
11168
fi
11169
 
11170
 
11171
# Checking sizeof doesn't really work, since it needs to run compiled code. So
11172
# we do it by hand.
11173
 
11174 346 jeremybenn
$as_echo "#define SIZEOF_CHAR 1" >>confdefs.h
11175 90 jeremybenn
 
11176
 
11177 346 jeremybenn
$as_echo "#define SIZEOF_SHORT 2" >>confdefs.h
11178 90 jeremybenn
 
11179
 
11180 346 jeremybenn
$as_echo "#define SIZEOF_INT 4" >>confdefs.h
11181 90 jeremybenn
 
11182
 
11183 346 jeremybenn
$as_echo "#define SIZEOF_LONG 4" >>confdefs.h
11184 90 jeremybenn
 
11185
 
11186 556 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 pcu/Makefile"
11187 90 jeremybenn
 
11188
 
11189
cat >confcache <<\_ACEOF
11190
# This file is a shell script that caches the results of configure
11191
# tests run on this system so they can be shared between configure
11192
# scripts and configure runs, see configure's option --config-cache.
11193
# It is not useful on other systems.  If it contains results you don't
11194
# want to keep, you may remove or edit it.
11195
#
11196
# config.status only pays attention to the cache file if you give it
11197
# the --recheck option to rerun configure.
11198
#
11199
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11200
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11201
# following values.
11202
 
11203
_ACEOF
11204
 
11205
# The following way of writing the cache mishandles newlines in values,
11206
# but we know of no workaround that is simple, portable, and efficient.
11207
# So, we kill variables containing newlines.
11208
# Ultrix sh set writes to stderr and can't be redirected directly,
11209
# and sets the high bit in the cache file unless we assign to the vars.
11210
(
11211
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11212
    eval ac_val=\$$ac_var
11213
    case $ac_val in #(
11214
    *${as_nl}*)
11215
      case $ac_var in #(
11216 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11217 90 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11218
      esac
11219
      case $ac_var in #(
11220
      _ | IFS | as_nl) ;; #(
11221
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11222 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
11223 90 jeremybenn
      esac ;;
11224
    esac
11225
  done
11226
 
11227
  (set) 2>&1 |
11228
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11229
    *${as_nl}ac_space=\ *)
11230 346 jeremybenn
      # `set' does not quote correctly, so add quotes: double-quote
11231
      # substitution turns \\\\ into \\, and sed turns \\ into \.
11232 90 jeremybenn
      sed -n \
11233
        "s/'/'\\\\''/g;
11234
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11235
      ;; #(
11236
    *)
11237
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11238
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11239
      ;;
11240
    esac |
11241
    sort
11242
) |
11243
  sed '
11244
     /^ac_cv_env_/b end
11245
     t clear
11246
     :clear
11247
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11248
     t end
11249
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11250
     :end' >>confcache
11251
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11252
  if test -w "$cache_file"; then
11253
    test "x$cache_file" != "x/dev/null" &&
11254 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11255 90 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
11256
    cat confcache >$cache_file
11257
  else
11258 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11259 90 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11260
  fi
11261
fi
11262
rm -f confcache
11263
 
11264
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11265
# Let make expand exec_prefix.
11266
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11267
 
11268
DEFS=-DHAVE_CONFIG_H
11269
 
11270
ac_libobjs=
11271
ac_ltlibobjs=
11272
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11273
  # 1. Remove the extension, and $U if already installed.
11274
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11275
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11276
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11277
  #    will be set to the directory where LIBOBJS objects are built.
11278 346 jeremybenn
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11279
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11280 90 jeremybenn
done
11281
LIBOBJS=$ac_libobjs
11282
 
11283
LTLIBOBJS=$ac_ltlibobjs
11284
 
11285
 
11286
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11287 346 jeremybenn
  as_fn_error "conditional \"AMDEP\" was never defined.
11288
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11289 90 jeremybenn
fi
11290
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11291 346 jeremybenn
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
11292
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11293 90 jeremybenn
fi
11294
 if test -n "$EXEEXT"; then
11295
  am__EXEEXT_TRUE=
11296
  am__EXEEXT_FALSE='#'
11297
else
11298
  am__EXEEXT_TRUE='#'
11299
  am__EXEEXT_FALSE=
11300
fi
11301
 
11302
if test -z "${BUILD_ALL_TESTS_TRUE}" && test -z "${BUILD_ALL_TESTS_FALSE}"; then
11303 346 jeremybenn
  as_fn_error "conditional \"BUILD_ALL_TESTS\" was never defined.
11304
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11305 90 jeremybenn
fi
11306
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
11307 346 jeremybenn
  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
11308
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11309 90 jeremybenn
fi
11310
 
11311
: ${CONFIG_STATUS=./config.status}
11312
ac_write_fail=0
11313
ac_clean_files_save=$ac_clean_files
11314
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11315 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11316 90 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11317 346 jeremybenn
as_write_fail=0
11318
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11319 90 jeremybenn
#! $SHELL
11320
# Generated by $as_me.
11321
# Run this file to recreate the current configuration.
11322
# Compiler output produced by configure, useful for debugging
11323
# configure, is in config.log if it exists.
11324
 
11325
debug=false
11326
ac_cs_recheck=false
11327
ac_cs_silent=false
11328 346 jeremybenn
 
11329 90 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
11330 346 jeremybenn
export SHELL
11331
_ASEOF
11332
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11333
## -------------------- ##
11334
## M4sh Initialization. ##
11335
## -------------------- ##
11336 90 jeremybenn
 
11337
# Be more Bourne compatible
11338
DUALCASE=1; export DUALCASE # for MKS sh
11339 346 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11340 90 jeremybenn
  emulate sh
11341
  NULLCMD=:
11342
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11343
  # is contrary to our usage.  Disable this feature.
11344
  alias -g '${1+"$@"}'='"$@"'
11345
  setopt NO_GLOB_SUBST
11346
else
11347 346 jeremybenn
  case `(set -o) 2>/dev/null` in #(
11348
  *posix*) :
11349
    set -o posix ;; #(
11350
  *) :
11351
     ;;
11352 90 jeremybenn
esac
11353
fi
11354
 
11355
 
11356
as_nl='
11357
'
11358
export as_nl
11359
# Printing a long string crashes Solaris 7 /usr/bin/printf.
11360
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11361
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11362
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11363 346 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
11364
# but without wasting forks for bash or zsh.
11365
if test -z "$BASH_VERSION$ZSH_VERSION" \
11366
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11367
  as_echo='print -r --'
11368
  as_echo_n='print -rn --'
11369
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11370 90 jeremybenn
  as_echo='printf %s\n'
11371
  as_echo_n='printf %s'
11372
else
11373
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11374
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11375
    as_echo_n='/usr/ucb/echo -n'
11376
  else
11377
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11378
    as_echo_n_body='eval
11379
      arg=$1;
11380 346 jeremybenn
      case $arg in #(
11381 90 jeremybenn
      *"$as_nl"*)
11382
        expr "X$arg" : "X\\(.*\\)$as_nl";
11383
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11384
      esac;
11385
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11386
    '
11387
    export as_echo_n_body
11388
    as_echo_n='sh -c $as_echo_n_body as_echo'
11389
  fi
11390
  export as_echo_body
11391
  as_echo='sh -c $as_echo_body as_echo'
11392
fi
11393
 
11394
# The user is always right.
11395
if test "${PATH_SEPARATOR+set}" != set; then
11396
  PATH_SEPARATOR=:
11397
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11398
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11399
      PATH_SEPARATOR=';'
11400
  }
11401
fi
11402
 
11403
 
11404
# IFS
11405
# We need space, tab and new line, in precisely that order.  Quoting is
11406
# there to prevent editors from complaining about space-tab.
11407
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11408
# splitting by setting IFS to empty value.)
11409
IFS=" ""        $as_nl"
11410
 
11411
# Find who we are.  Look in the path if we contain no directory separator.
11412 346 jeremybenn
case $0 in #((
11413 90 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
11414
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415
for as_dir in $PATH
11416
do
11417
  IFS=$as_save_IFS
11418
  test -z "$as_dir" && as_dir=.
11419 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11420
  done
11421 90 jeremybenn
IFS=$as_save_IFS
11422
 
11423
     ;;
11424
esac
11425
# We did not find ourselves, most probably we were run as `sh COMMAND'
11426
# in which case we are not to be found in the path.
11427
if test "x$as_myself" = x; then
11428
  as_myself=$0
11429
fi
11430
if test ! -f "$as_myself"; then
11431
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11432 346 jeremybenn
  exit 1
11433 90 jeremybenn
fi
11434
 
11435 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
11436
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11437
# suppresses any "Segmentation fault" message there.  '((' could
11438
# trigger a bug in pdksh 5.2.14.
11439
for as_var in BASH_ENV ENV MAIL MAILPATH
11440
do eval test x\${$as_var+set} = xset \
11441
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11442 90 jeremybenn
done
11443
PS1='$ '
11444
PS2='> '
11445
PS4='+ '
11446
 
11447
# NLS nuisances.
11448
LC_ALL=C
11449
export LC_ALL
11450
LANGUAGE=C
11451
export LANGUAGE
11452
 
11453 346 jeremybenn
# CDPATH.
11454
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11455
 
11456
 
11457
# as_fn_error ERROR [LINENO LOG_FD]
11458
# ---------------------------------
11459
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11460
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11461
# script with status $?, using 1 if that was 0.
11462
as_fn_error ()
11463
{
11464
  as_status=$?; test $as_status -eq 0 && as_status=1
11465
  if test "$3"; then
11466
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11467
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11468
  fi
11469
  $as_echo "$as_me: error: $1" >&2
11470
  as_fn_exit $as_status
11471
} # as_fn_error
11472
 
11473
 
11474
# as_fn_set_status STATUS
11475
# -----------------------
11476
# Set $? to STATUS, without forking.
11477
as_fn_set_status ()
11478
{
11479
  return $1
11480
} # as_fn_set_status
11481
 
11482
# as_fn_exit STATUS
11483
# -----------------
11484
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11485
as_fn_exit ()
11486
{
11487
  set +e
11488
  as_fn_set_status $1
11489
  exit $1
11490
} # as_fn_exit
11491
 
11492
# as_fn_unset VAR
11493
# ---------------
11494
# Portably unset VAR.
11495
as_fn_unset ()
11496
{
11497
  { eval $1=; unset $1;}
11498
}
11499
as_unset=as_fn_unset
11500
# as_fn_append VAR VALUE
11501
# ----------------------
11502
# Append the text in VALUE to the end of the definition contained in VAR. Take
11503
# advantage of any shell optimizations that allow amortized linear growth over
11504
# repeated appends, instead of the typical quadratic growth present in naive
11505
# implementations.
11506
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11507
  eval 'as_fn_append ()
11508
  {
11509
    eval $1+=\$2
11510
  }'
11511
else
11512
  as_fn_append ()
11513
  {
11514
    eval $1=\$$1\$2
11515
  }
11516
fi # as_fn_append
11517
 
11518
# as_fn_arith ARG...
11519
# ------------------
11520
# Perform arithmetic evaluation on the ARGs, and store the result in the
11521
# global $as_val. Take advantage of shells that can avoid forks. The arguments
11522
# must be portable across $(()) and expr.
11523
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11524
  eval 'as_fn_arith ()
11525
  {
11526
    as_val=$(( $* ))
11527
  }'
11528
else
11529
  as_fn_arith ()
11530
  {
11531
    as_val=`expr "$@" || test $? -eq 1`
11532
  }
11533
fi # as_fn_arith
11534
 
11535
 
11536 90 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
11537
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11538
  as_expr=expr
11539
else
11540
  as_expr=false
11541
fi
11542
 
11543
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11544
  as_basename=basename
11545
else
11546
  as_basename=false
11547
fi
11548
 
11549 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11550
  as_dirname=dirname
11551
else
11552
  as_dirname=false
11553
fi
11554 90 jeremybenn
 
11555
as_me=`$as_basename -- "$0" ||
11556
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11557
         X"$0" : 'X\(//\)$' \| \
11558
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11559
$as_echo X/"$0" |
11560
    sed '/^.*\/\([^/][^/]*\)\/*$/{
11561
            s//\1/
11562
            q
11563
          }
11564
          /^X\/\(\/\/\)$/{
11565
            s//\1/
11566
            q
11567
          }
11568
          /^X\/\(\/\).*/{
11569
            s//\1/
11570
            q
11571
          }
11572
          s/.*/./; q'`
11573
 
11574 346 jeremybenn
# Avoid depending upon Character Ranges.
11575
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11576
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11577
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11578
as_cr_digits='0123456789'
11579
as_cr_alnum=$as_cr_Letters$as_cr_digits
11580 90 jeremybenn
 
11581
ECHO_C= ECHO_N= ECHO_T=
11582 346 jeremybenn
case `echo -n x` in #(((((
11583 90 jeremybenn
-n*)
11584 346 jeremybenn
  case `echo 'xy\c'` in
11585 90 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11586 346 jeremybenn
  xy)  ECHO_C='\c';;
11587
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11588
       ECHO_T=' ';;
11589 90 jeremybenn
  esac;;
11590
*)
11591
  ECHO_N='-n';;
11592
esac
11593
 
11594
rm -f conf$$ conf$$.exe conf$$.file
11595
if test -d conf$$.dir; then
11596
  rm -f conf$$.dir/conf$$.file
11597
else
11598
  rm -f conf$$.dir
11599
  mkdir conf$$.dir 2>/dev/null
11600
fi
11601
if (echo >conf$$.file) 2>/dev/null; then
11602
  if ln -s conf$$.file conf$$ 2>/dev/null; then
11603
    as_ln_s='ln -s'
11604
    # ... but there are two gotchas:
11605
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11606
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11607
    # In both cases, we have to default to `cp -p'.
11608
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11609
      as_ln_s='cp -p'
11610
  elif ln conf$$.file conf$$ 2>/dev/null; then
11611
    as_ln_s=ln
11612
  else
11613
    as_ln_s='cp -p'
11614
  fi
11615
else
11616
  as_ln_s='cp -p'
11617
fi
11618
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11619
rmdir conf$$.dir 2>/dev/null
11620
 
11621 346 jeremybenn
 
11622
# as_fn_mkdir_p
11623
# -------------
11624
# Create "$as_dir" as a directory, including parents if necessary.
11625
as_fn_mkdir_p ()
11626
{
11627
 
11628
  case $as_dir in #(
11629
  -*) as_dir=./$as_dir;;
11630
  esac
11631
  test -d "$as_dir" || eval $as_mkdir_p || {
11632
    as_dirs=
11633
    while :; do
11634
      case $as_dir in #(
11635
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11636
      *) as_qdir=$as_dir;;
11637
      esac
11638
      as_dirs="'$as_qdir' $as_dirs"
11639
      as_dir=`$as_dirname -- "$as_dir" ||
11640
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11641
         X"$as_dir" : 'X\(//\)[^/]' \| \
11642
         X"$as_dir" : 'X\(//\)$' \| \
11643
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11644
$as_echo X"$as_dir" |
11645
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11646
            s//\1/
11647
            q
11648
          }
11649
          /^X\(\/\/\)[^/].*/{
11650
            s//\1/
11651
            q
11652
          }
11653
          /^X\(\/\/\)$/{
11654
            s//\1/
11655
            q
11656
          }
11657
          /^X\(\/\).*/{
11658
            s//\1/
11659
            q
11660
          }
11661
          s/.*/./; q'`
11662
      test -d "$as_dir" && break
11663
    done
11664
    test -z "$as_dirs" || eval "mkdir $as_dirs"
11665
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11666
 
11667
 
11668
} # as_fn_mkdir_p
11669 90 jeremybenn
if mkdir -p . 2>/dev/null; then
11670 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
11671 90 jeremybenn
else
11672
  test -d ./-p && rmdir ./-p
11673
  as_mkdir_p=false
11674
fi
11675
 
11676
if test -x / >/dev/null 2>&1; then
11677
  as_test_x='test -x'
11678
else
11679
  if ls -dL / >/dev/null 2>&1; then
11680
    as_ls_L_option=L
11681
  else
11682
    as_ls_L_option=
11683
  fi
11684
  as_test_x='
11685
    eval sh -c '\''
11686
      if test -d "$1"; then
11687
        test -d "$1/.";
11688
      else
11689 346 jeremybenn
        case $1 in #(
11690 90 jeremybenn
        -*)set "./$1";;
11691
        esac;
11692 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11693 90 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
11694
    '\'' sh
11695
  '
11696
fi
11697
as_executable_p=$as_test_x
11698
 
11699
# Sed expression to map a string onto a valid CPP name.
11700
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11701
 
11702
# Sed expression to map a string onto a valid variable name.
11703
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11704
 
11705
 
11706
exec 6>&1
11707 346 jeremybenn
## ----------------------------------- ##
11708
## Main body of $CONFIG_STATUS script. ##
11709
## ----------------------------------- ##
11710
_ASEOF
11711
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11712 90 jeremybenn
 
11713 346 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11714
# Save the log message, to keep $0 and so on meaningful, and to
11715 90 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
11716
# values after options handling.
11717
ac_log="
11718 532 jeremybenn
This file was extended by or1ksim-testsuite $as_me 2011-04-28, which was
11719 538 julius
generated by GNU Autoconf 2.64.  Invocation command line was
11720 90 jeremybenn
 
11721
  CONFIG_FILES    = $CONFIG_FILES
11722
  CONFIG_HEADERS  = $CONFIG_HEADERS
11723
  CONFIG_LINKS    = $CONFIG_LINKS
11724
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11725
  $ $0 $@
11726
 
11727
on `(hostname || uname -n) 2>/dev/null | sed 1q`
11728
"
11729
 
11730
_ACEOF
11731
 
11732
case $ac_config_files in *"
11733
"*) set x $ac_config_files; shift; ac_config_files=$*;;
11734
esac
11735
 
11736
case $ac_config_headers in *"
11737
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11738
esac
11739
 
11740
 
11741
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11742
# Files that config.status was made for.
11743
config_files="$ac_config_files"
11744
config_headers="$ac_config_headers"
11745
config_commands="$ac_config_commands"
11746
 
11747
_ACEOF
11748
 
11749
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11750
ac_cs_usage="\
11751 346 jeremybenn
\`$as_me' instantiates files and other configuration actions
11752
from templates according to the current configuration.  Unless the files
11753
and actions are specified as TAGs, all are instantiated by default.
11754 90 jeremybenn
 
11755 346 jeremybenn
Usage: $0 [OPTION]... [TAG]...
11756 90 jeremybenn
 
11757
  -h, --help       print this help, then exit
11758
  -V, --version    print version number and configuration settings, then exit
11759
  -q, --quiet, --silent
11760
                   do not print progress messages
11761
  -d, --debug      don't remove temporary files
11762
      --recheck    update $as_me by reconfiguring in the same conditions
11763
      --file=FILE[:TEMPLATE]
11764
                   instantiate the configuration file FILE
11765
      --header=FILE[:TEMPLATE]
11766
                   instantiate the configuration header FILE
11767
 
11768
Configuration files:
11769
$config_files
11770
 
11771
Configuration headers:
11772
$config_headers
11773
 
11774
Configuration commands:
11775
$config_commands
11776
 
11777 346 jeremybenn
Report bugs to ."
11778 90 jeremybenn
 
11779
_ACEOF
11780
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11781
ac_cs_version="\\
11782 532 jeremybenn
or1ksim-testsuite config.status 2011-04-28
11783 538 julius
configured by $0, generated by GNU Autoconf 2.64,
11784
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11785 90 jeremybenn
 
11786 346 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
11787 90 jeremybenn
This config.status script is free software; the Free Software Foundation
11788
gives unlimited permission to copy, distribute and modify it."
11789
 
11790
ac_pwd='$ac_pwd'
11791
srcdir='$srcdir'
11792
INSTALL='$INSTALL'
11793
MKDIR_P='$MKDIR_P'
11794
AWK='$AWK'
11795
test -n "\$AWK" || AWK=awk
11796
_ACEOF
11797
 
11798
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11799
# The default lists apply if the user does not specify any file.
11800
ac_need_defaults=:
11801
while test $# != 0
11802
do
11803
  case $1 in
11804
  --*=*)
11805
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11806
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11807
    ac_shift=:
11808
    ;;
11809
  *)
11810
    ac_option=$1
11811
    ac_optarg=$2
11812
    ac_shift=shift
11813
    ;;
11814
  esac
11815
 
11816
  case $ac_option in
11817
  # Handling of the options.
11818
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11819
    ac_cs_recheck=: ;;
11820
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11821
    $as_echo "$ac_cs_version"; exit ;;
11822
  --debug | --debu | --deb | --de | --d | -d )
11823
    debug=: ;;
11824
  --file | --fil | --fi | --f )
11825
    $ac_shift
11826
    case $ac_optarg in
11827
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11828
    esac
11829 346 jeremybenn
    as_fn_append CONFIG_FILES " '$ac_optarg'"
11830 90 jeremybenn
    ac_need_defaults=false;;
11831
  --header | --heade | --head | --hea )
11832
    $ac_shift
11833
    case $ac_optarg in
11834
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11835
    esac
11836 346 jeremybenn
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11837 90 jeremybenn
    ac_need_defaults=false;;
11838
  --he | --h)
11839
    # Conflict between --help and --header
11840 346 jeremybenn
    as_fn_error "ambiguous option: \`$1'
11841
Try \`$0 --help' for more information.";;
11842 90 jeremybenn
  --help | --hel | -h )
11843
    $as_echo "$ac_cs_usage"; exit ;;
11844
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11845
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11846
    ac_cs_silent=: ;;
11847
 
11848
  # This is an error.
11849 346 jeremybenn
  -*) as_fn_error "unrecognized option: \`$1'
11850
Try \`$0 --help' for more information." ;;
11851 90 jeremybenn
 
11852 346 jeremybenn
  *) as_fn_append ac_config_targets " $1"
11853 90 jeremybenn
     ac_need_defaults=false ;;
11854
 
11855
  esac
11856
  shift
11857
done
11858
 
11859
ac_configure_extra_args=
11860
 
11861
if $ac_cs_silent; then
11862
  exec 6>/dev/null
11863
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11864
fi
11865
 
11866
_ACEOF
11867
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11868
if \$ac_cs_recheck; then
11869
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11870
  shift
11871
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11872
  CONFIG_SHELL='$SHELL'
11873
  export CONFIG_SHELL
11874
  exec "\$@"
11875
fi
11876
 
11877
_ACEOF
11878
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11879
exec 5>>config.log
11880
{
11881
  echo
11882
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11883
## Running $as_me. ##
11884
_ASBOX
11885
  $as_echo "$ac_log"
11886
} >&5
11887
 
11888
_ACEOF
11889
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11890
#
11891
# INIT-COMMANDS
11892
#
11893
 
11894
 
11895
# The HP-UX ksh and POSIX shell print the target directory to stdout
11896
# if CDPATH is set.
11897
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11898
 
11899
sed_quote_subst='$sed_quote_subst'
11900
double_quote_subst='$double_quote_subst'
11901
delay_variable_subst='$delay_variable_subst'
11902
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11903
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11904
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11905
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11906
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11907
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11908
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11909
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11910
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11911
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11912
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11913
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11914
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11915
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11916
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11917
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11918
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11919
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11920
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11921
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11922
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11923
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11924
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11925
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11926
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11927
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11928
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11929
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11930
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11931
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11932
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11933
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11934
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11935
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11936
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11937
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11938
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11939
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11940
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11941
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11942
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11943
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11944
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11945
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11946
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"`'
11947
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"`'
11948
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11949
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11950
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11951
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11952
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11953
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11954
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11955
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11956
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11957
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11958
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11959
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11960
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11961
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11962
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11963
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11964
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11965
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11966
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11967
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11968
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11969
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11970
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11971
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11972
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11973
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11974
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11975
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11976
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11977
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11978
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11979
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11980
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11981
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11982
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11983
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11984
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11985
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11986
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11987
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11988
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11989
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11990
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11991
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11992
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11993
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11994
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11995
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11996
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11997
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11998
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11999
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12000
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12001
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12002
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12003
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12004
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12005
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12006
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12007
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12008
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12009
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12010
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12011
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12012
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12013
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12014
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12015
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12016
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12017
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12018
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12019
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12020
 
12021
LTCC='$LTCC'
12022
LTCFLAGS='$LTCFLAGS'
12023
compiler='$compiler_DEFAULT'
12024
 
12025
# Quote evaled strings.
12026
for var in SED \
12027
GREP \
12028
EGREP \
12029
FGREP \
12030
LD \
12031
NM \
12032
LN_S \
12033
lt_SP2NL \
12034
lt_NL2SP \
12035
reload_flag \
12036
OBJDUMP \
12037
deplibs_check_method \
12038
file_magic_cmd \
12039
AR \
12040
AR_FLAGS \
12041
STRIP \
12042
RANLIB \
12043
CC \
12044
CFLAGS \
12045
compiler \
12046
lt_cv_sys_global_symbol_pipe \
12047
lt_cv_sys_global_symbol_to_cdecl \
12048
lt_cv_sys_global_symbol_to_c_name_address \
12049
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12050
SHELL \
12051
ECHO \
12052
lt_prog_compiler_no_builtin_flag \
12053
lt_prog_compiler_wl \
12054
lt_prog_compiler_pic \
12055
lt_prog_compiler_static \
12056
lt_cv_prog_compiler_c_o \
12057
need_locks \
12058
DSYMUTIL \
12059
NMEDIT \
12060
LIPO \
12061
OTOOL \
12062
OTOOL64 \
12063
shrext_cmds \
12064
export_dynamic_flag_spec \
12065
whole_archive_flag_spec \
12066
compiler_needs_object \
12067
with_gnu_ld \
12068
allow_undefined_flag \
12069
no_undefined_flag \
12070
hardcode_libdir_flag_spec \
12071
hardcode_libdir_flag_spec_ld \
12072
hardcode_libdir_separator \
12073
fix_srcfile_path \
12074
exclude_expsyms \
12075
include_expsyms \
12076
file_list_spec \
12077
variables_saved_for_relink \
12078
libname_spec \
12079
library_names_spec \
12080
soname_spec \
12081
finish_eval \
12082
old_striplib \
12083
striplib; do
12084
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12085
    *[\\\\\\\`\\"\\\$]*)
12086
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12087
      ;;
12088
    *)
12089
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12090
      ;;
12091
    esac
12092
done
12093
 
12094
# Double-quote double-evaled strings.
12095
for var in reload_cmds \
12096
old_postinstall_cmds \
12097
old_postuninstall_cmds \
12098
old_archive_cmds \
12099
extract_expsyms_cmds \
12100
old_archive_from_new_cmds \
12101
old_archive_from_expsyms_cmds \
12102
archive_cmds \
12103
archive_expsym_cmds \
12104
module_cmds \
12105
module_expsym_cmds \
12106
export_symbols_cmds \
12107
prelink_cmds \
12108
postinstall_cmds \
12109
postuninstall_cmds \
12110
finish_cmds \
12111
sys_lib_search_path_spec \
12112
sys_lib_dlsearch_path_spec; do
12113
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12114
    *[\\\\\\\`\\"\\\$]*)
12115
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12116
      ;;
12117
    *)
12118
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12119
      ;;
12120
    esac
12121
done
12122
 
12123
# Fix-up fallback echo if it was mangled by the above quoting rules.
12124
case \$lt_ECHO in
12125
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12126
  ;;
12127
esac
12128
 
12129
ac_aux_dir='$ac_aux_dir'
12130
xsi_shell='$xsi_shell'
12131
lt_shell_append='$lt_shell_append'
12132
 
12133
# See if we are running on zsh, and set the options which allow our
12134
# commands through without removal of \ escapes INIT.
12135
if test -n "\${ZSH_VERSION+set}" ; then
12136
   setopt NO_GLOB_SUBST
12137
fi
12138
 
12139
 
12140
    PACKAGE='$PACKAGE'
12141
    VERSION='$VERSION'
12142
    TIMESTAMP='$TIMESTAMP'
12143
    RM='$RM'
12144
    ofile='$ofile'
12145
 
12146
 
12147
 
12148
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12149
 
12150
_ACEOF
12151
 
12152
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12153
 
12154
# Handling of arguments.
12155
for ac_config_target in $ac_config_targets
12156
do
12157
  case $ac_config_target in
12158
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12159
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12160
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12161
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12162
    "acv-gpio/Makefile") CONFIG_FILES="$CONFIG_FILES acv-gpio/Makefile" ;;
12163
    "acv-uart/Makefile") CONFIG_FILES="$CONFIG_FILES acv-uart/Makefile" ;;
12164
    "basic/Makefile") CONFIG_FILES="$CONFIG_FILES basic/Makefile" ;;
12165
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
12166
    "cbasic/Makefile") CONFIG_FILES="$CONFIG_FILES cbasic/Makefile" ;;
12167
    "cfg/Makefile") CONFIG_FILES="$CONFIG_FILES cfg/Makefile" ;;
12168
    "dhry/Makefile") CONFIG_FILES="$CONFIG_FILES dhry/Makefile" ;;
12169
    "dmatest/Makefile") CONFIG_FILES="$CONFIG_FILES dmatest/Makefile" ;;
12170
    "eth/Makefile") CONFIG_FILES="$CONFIG_FILES eth/Makefile" ;;
12171
    "except/Makefile") CONFIG_FILES="$CONFIG_FILES except/Makefile" ;;
12172
    "except-test/Makefile") CONFIG_FILES="$CONFIG_FILES except-test/Makefile" ;;
12173
    "exit/Makefile") CONFIG_FILES="$CONFIG_FILES exit/Makefile" ;;
12174
    "ext/Makefile") CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;;
12175
    "fbtest/Makefile") CONFIG_FILES="$CONFIG_FILES fbtest/Makefile" ;;
12176 104 jeremybenn
    "fp/Makefile") CONFIG_FILES="$CONFIG_FILES fp/Makefile" ;;
12177 233 julius
    "testfloat/Makefile") CONFIG_FILES="$CONFIG_FILES testfloat/Makefile" ;;
12178 90 jeremybenn
    "functest/Makefile") CONFIG_FILES="$CONFIG_FILES functest/Makefile" ;;
12179
    "flag/Makefile") CONFIG_FILES="$CONFIG_FILES flag/Makefile" ;;
12180
    "int-test/Makefile") CONFIG_FILES="$CONFIG_FILES int-test/Makefile" ;;
12181 93 jeremybenn
    "int-logger/Makefile") CONFIG_FILES="$CONFIG_FILES int-logger/Makefile" ;;
12182 90 jeremybenn
    "inst-set-test/Makefile") CONFIG_FILES="$CONFIG_FILES inst-set-test/Makefile" ;;
12183
    "kbdtest/Makefile") CONFIG_FILES="$CONFIG_FILES kbdtest/Makefile" ;;
12184
    "local-global/Makefile") CONFIG_FILES="$CONFIG_FILES local-global/Makefile" ;;
12185
    "loop/Makefile") CONFIG_FILES="$CONFIG_FILES loop/Makefile" ;;
12186
    "mc-async/Makefile") CONFIG_FILES="$CONFIG_FILES mc-async/Makefile" ;;
12187
    "mc-dram/Makefile") CONFIG_FILES="$CONFIG_FILES mc-dram/Makefile" ;;
12188
    "mc-ssram/Makefile") CONFIG_FILES="$CONFIG_FILES mc-ssram/Makefile" ;;
12189
    "mc-sync/Makefile") CONFIG_FILES="$CONFIG_FILES mc-sync/Makefile" ;;
12190
    "mc-common/Makefile") CONFIG_FILES="$CONFIG_FILES mc-common/Makefile" ;;
12191
    "mem-test/Makefile") CONFIG_FILES="$CONFIG_FILES mem-test/Makefile" ;;
12192
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
12193
    "mul/Makefile") CONFIG_FILES="$CONFIG_FILES mul/Makefile" ;;
12194
    "mycompress/Makefile") CONFIG_FILES="$CONFIG_FILES mycompress/Makefile" ;;
12195
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
12196
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
12197
    "uos/Makefile") CONFIG_FILES="$CONFIG_FILES uos/Makefile" ;;
12198 93 jeremybenn
    "upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES upcalls/Makefile" ;;
12199 556 julius
    "pcu/Makefile") CONFIG_FILES="$CONFIG_FILES pcu/Makefile" ;;
12200 90 jeremybenn
 
12201 346 jeremybenn
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12202 90 jeremybenn
  esac
12203
done
12204
 
12205
 
12206
# If the user did not use the arguments to specify the items to instantiate,
12207
# then the envvar interface is used.  Set only those that are not.
12208
# We use the long form for the default assignment because of an extremely
12209
# bizarre bug on SunOS 4.1.3.
12210
if $ac_need_defaults; then
12211
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12212
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12213
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12214
fi
12215
 
12216
# Have a temporary directory for convenience.  Make it in the build tree
12217
# simply because there is no reason against having it here, and in addition,
12218
# creating and moving files from /tmp can sometimes cause problems.
12219
# Hook for its removal unless debugging.
12220
# Note that there is a small window in which the directory will not be cleaned:
12221
# after its creation but before its name has been assigned to `$tmp'.
12222
$debug ||
12223
{
12224
  tmp=
12225
  trap 'exit_status=$?
12226
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12227
' 0
12228 346 jeremybenn
  trap 'as_fn_exit 1' 1 2 13 15
12229 90 jeremybenn
}
12230
# Create a (secure) tmp directory for tmp files.
12231
 
12232
{
12233
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12234
  test -n "$tmp" && test -d "$tmp"
12235
}  ||
12236
{
12237
  tmp=./conf$$-$RANDOM
12238
  (umask 077 && mkdir "$tmp")
12239 346 jeremybenn
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12240 90 jeremybenn
 
12241
# Set up the scripts for CONFIG_FILES section.
12242
# No need to generate them if there are no CONFIG_FILES.
12243
# This happens for instance with `./config.status config.h'.
12244
if test -n "$CONFIG_FILES"; then
12245
 
12246
 
12247 346 jeremybenn
ac_cr=`echo X | tr X '\015'`
12248
# On cygwin, bash can eat \r inside `` if the user requested igncr.
12249
# But we know of no other shell where ac_cr would be empty at this
12250
# point, so we can use a bashism as a fallback.
12251
if test "x$ac_cr" = x; then
12252
  eval ac_cr=\$\'\\r\'
12253
fi
12254 90 jeremybenn
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
12255
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12256 346 jeremybenn
  ac_cs_awk_cr='\r'
12257 90 jeremybenn
else
12258
  ac_cs_awk_cr=$ac_cr
12259
fi
12260
 
12261
echo 'BEGIN {' >"$tmp/subs1.awk" &&
12262
_ACEOF
12263
 
12264
 
12265
{
12266
  echo "cat >conf$$subs.awk <<_ACEOF" &&
12267
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12268
  echo "_ACEOF"
12269
} >conf$$subs.sh ||
12270 346 jeremybenn
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12271 90 jeremybenn
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12272
ac_delim='%!_!# '
12273
for ac_last_try in false false false false false :; do
12274
  . ./conf$$subs.sh ||
12275 346 jeremybenn
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12276 90 jeremybenn
 
12277
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12278
  if test $ac_delim_n = $ac_delim_num; then
12279
    break
12280
  elif $ac_last_try; then
12281 346 jeremybenn
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12282 90 jeremybenn
  else
12283
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12284
  fi
12285
done
12286
rm -f conf$$subs.sh
12287
 
12288
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12289
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12290
_ACEOF
12291
sed -n '
12292
h
12293
s/^/S["/; s/!.*/"]=/
12294
p
12295
g
12296
s/^[^!]*!//
12297
:repl
12298
t repl
12299
s/'"$ac_delim"'$//
12300
t delim
12301
:nl
12302
h
12303 538 julius
s/\(.\{148\}\).*/\1/
12304 90 jeremybenn
t more1
12305
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12306
p
12307
n
12308
b repl
12309
:more1
12310
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12311
p
12312
g
12313
s/.\{148\}//
12314
t nl
12315
:delim
12316
h
12317 538 julius
s/\(.\{148\}\).*/\1/
12318 90 jeremybenn
t more2
12319
s/["\\]/\\&/g; s/^/"/; s/$/"/
12320
p
12321
b
12322
:more2
12323
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12324
p
12325
g
12326
s/.\{148\}//
12327
t delim
12328
' 
12329
/^[^""]/{
12330
  N
12331
  s/\n//
12332
}
12333
' >>$CONFIG_STATUS || ac_write_fail=1
12334
rm -f conf$$subs.awk
12335
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12336
_ACAWK
12337
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12338
  for (key in S) S_is_set[key] = 1
12339
  FS = ""
12340
 
12341
}
12342
{
12343
  line = $ 0
12344
  nfields = split(line, field, "@")
12345
  substed = 0
12346
  len = length(field[1])
12347
  for (i = 2; i < nfields; i++) {
12348
    key = field[i]
12349
    keylen = length(key)
12350
    if (S_is_set[key]) {
12351
      value = S[key]
12352
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12353
      len += length(value) + length(field[++i])
12354
      substed = 1
12355
    } else
12356
      len += 1 + keylen
12357
  }
12358
 
12359
  print line
12360
}
12361
 
12362
_ACAWK
12363
_ACEOF
12364
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12365
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12366
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12367
else
12368
  cat
12369
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12370 346 jeremybenn
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12371 90 jeremybenn
_ACEOF
12372
 
12373
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12374
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12375
# trailing colons and then remove the whole line if VPATH becomes empty
12376
# (actually we leave an empty line to preserve line numbers).
12377
if test "x$srcdir" = x.; then
12378
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
12379
s/:*\$(srcdir):*/:/
12380
s/:*\${srcdir}:*/:/
12381
s/:*@srcdir@:*/:/
12382
s/^\([^=]*=[     ]*\):*/\1/
12383
s/:*$//
12384
s/^[^=]*=[       ]*$//
12385
}'
12386
fi
12387
 
12388
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12389
fi # test -n "$CONFIG_FILES"
12390
 
12391
# Set up the scripts for CONFIG_HEADERS section.
12392
# No need to generate them if there are no CONFIG_HEADERS.
12393
# This happens for instance with `./config.status Makefile'.
12394
if test -n "$CONFIG_HEADERS"; then
12395
cat >"$tmp/defines.awk" <<\_ACAWK ||
12396
BEGIN {
12397
_ACEOF
12398
 
12399
# Transform confdefs.h into an awk script `defines.awk', embedded as
12400
# here-document in config.status, that substitutes the proper values into
12401
# config.h.in to produce config.h.
12402
 
12403
# Create a delimiter string that does not exist in confdefs.h, to ease
12404
# handling of long lines.
12405
ac_delim='%!_!# '
12406
for ac_last_try in false false :; do
12407
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12408
  if test -z "$ac_t"; then
12409
    break
12410
  elif $ac_last_try; then
12411 346 jeremybenn
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12412 90 jeremybenn
  else
12413
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12414
  fi
12415
done
12416
 
12417
# For the awk script, D is an array of macro values keyed by name,
12418
# likewise P contains macro parameters if any.  Preserve backslash
12419
# newline sequences.
12420
 
12421
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12422
sed -n '
12423
s/.\{148\}/&'"$ac_delim"'/g
12424
t rset
12425
:rset
12426
s/^[     ]*#[    ]*define[       ][      ]*/ /
12427
t def
12428
d
12429
:def
12430
s/\\$//
12431
t bsnl
12432
s/["\\]/\\&/g
12433
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12434
D["\1"]=" \3"/p
12435
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12436
d
12437
:bsnl
12438
s/["\\]/\\&/g
12439
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12440
D["\1"]=" \3\\\\\\n"\\/p
12441
t cont
12442
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12443
t cont
12444
d
12445
:cont
12446
n
12447
s/.\{148\}/&'"$ac_delim"'/g
12448
t clear
12449
:clear
12450
s/\\$//
12451
t bsnlc
12452
s/["\\]/\\&/g; s/^/"/; s/$/"/p
12453
d
12454
:bsnlc
12455
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12456
b cont
12457
' 
12458
s/'"$ac_delim"'/"\\\
12459
"/g' >>$CONFIG_STATUS || ac_write_fail=1
12460
 
12461
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12462
  for (key in D) D_is_set[key] = 1
12463
  FS = ""
12464
}
12465
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12466
  line = \$ 0
12467
  split(line, arg, " ")
12468
  if (arg[1] == "#") {
12469
    defundef = arg[2]
12470
    mac1 = arg[3]
12471
  } else {
12472
    defundef = substr(arg[1], 2)
12473
    mac1 = arg[2]
12474
  }
12475
  split(mac1, mac2, "(") #)
12476
  macro = mac2[1]
12477
  prefix = substr(line, 1, index(line, defundef) - 1)
12478
  if (D_is_set[macro]) {
12479
    # Preserve the white space surrounding the "#".
12480
    print prefix "define", macro P[macro] D[macro]
12481
    next
12482
  } else {
12483
    # Replace #undef with comments.  This is necessary, for example,
12484
    # in the case of _POSIX_SOURCE, which is predefined and required
12485
    # on some systems where configure will not decide to define it.
12486
    if (defundef == "undef") {
12487
      print "/*", prefix defundef, macro, "*/"
12488
      next
12489
    }
12490
  }
12491
}
12492
{ print }
12493
_ACAWK
12494
_ACEOF
12495
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12496 346 jeremybenn
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
12497 90 jeremybenn
fi # test -n "$CONFIG_HEADERS"
12498
 
12499
 
12500
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12501
shift
12502
for ac_tag
12503
do
12504
  case $ac_tag in
12505
  :[FHLC]) ac_mode=$ac_tag; continue;;
12506
  esac
12507
  case $ac_mode$ac_tag in
12508
  :[FHL]*:*);;
12509 346 jeremybenn
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12510 90 jeremybenn
  :[FH]-) ac_tag=-:-;;
12511
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12512
  esac
12513
  ac_save_IFS=$IFS
12514
  IFS=:
12515
  set x $ac_tag
12516
  IFS=$ac_save_IFS
12517
  shift
12518
  ac_file=$1
12519
  shift
12520
 
12521
  case $ac_mode in
12522
  :L) ac_source=$1;;
12523
  :[FH])
12524
    ac_file_inputs=
12525
    for ac_f
12526
    do
12527
      case $ac_f in
12528
      -) ac_f="$tmp/stdin";;
12529
      *) # Look for the file first in the build tree, then in the source tree
12530
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
12531
         # because $ac_f cannot contain `:'.
12532
         test -f "$ac_f" ||
12533
           case $ac_f in
12534
           [\\/$]*) false;;
12535
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12536
           esac ||
12537 346 jeremybenn
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12538 90 jeremybenn
      esac
12539
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12540 346 jeremybenn
      as_fn_append ac_file_inputs " '$ac_f'"
12541 90 jeremybenn
    done
12542
 
12543
    # Let's still pretend it is `configure' which instantiates (i.e., don't
12544
    # use $as_me), people would be surprised to read:
12545
    #    /* config.h.  Generated by config.status.  */
12546
    configure_input='Generated from '`
12547
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12548
        `' by configure.'
12549
    if test x"$ac_file" != x-; then
12550
      configure_input="$ac_file.  $configure_input"
12551 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12552 90 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
12553
    fi
12554
    # Neutralize special characters interpreted by sed in replacement strings.
12555
    case $configure_input in #(
12556
    *\&* | *\|* | *\\* )
12557
       ac_sed_conf_input=`$as_echo "$configure_input" |
12558
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12559
    *) ac_sed_conf_input=$configure_input;;
12560
    esac
12561
 
12562
    case $ac_tag in
12563
    *:-:* | *:-) cat >"$tmp/stdin" \
12564 346 jeremybenn
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12565 90 jeremybenn
    esac
12566
    ;;
12567
  esac
12568
 
12569
  ac_dir=`$as_dirname -- "$ac_file" ||
12570
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12571
         X"$ac_file" : 'X\(//\)[^/]' \| \
12572
         X"$ac_file" : 'X\(//\)$' \| \
12573
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12574
$as_echo X"$ac_file" |
12575
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12576
            s//\1/
12577
            q
12578
          }
12579
          /^X\(\/\/\)[^/].*/{
12580
            s//\1/
12581
            q
12582
          }
12583
          /^X\(\/\/\)$/{
12584
            s//\1/
12585
            q
12586
          }
12587
          /^X\(\/\).*/{
12588
            s//\1/
12589
            q
12590
          }
12591
          s/.*/./; q'`
12592 346 jeremybenn
  as_dir="$ac_dir"; as_fn_mkdir_p
12593 90 jeremybenn
  ac_builddir=.
12594
 
12595
case "$ac_dir" in
12596
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12597
*)
12598
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12599
  # A ".." for each directory in $ac_dir_suffix.
12600
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12601
  case $ac_top_builddir_sub in
12602
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12603
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12604
  esac ;;
12605
esac
12606
ac_abs_top_builddir=$ac_pwd
12607
ac_abs_builddir=$ac_pwd$ac_dir_suffix
12608
# for backward compatibility:
12609
ac_top_builddir=$ac_top_build_prefix
12610
 
12611
case $srcdir in
12612
  .)  # We are building in place.
12613
    ac_srcdir=.
12614
    ac_top_srcdir=$ac_top_builddir_sub
12615
    ac_abs_top_srcdir=$ac_pwd ;;
12616
  [\\/]* | ?:[\\/]* )  # Absolute name.
12617
    ac_srcdir=$srcdir$ac_dir_suffix;
12618
    ac_top_srcdir=$srcdir
12619
    ac_abs_top_srcdir=$srcdir ;;
12620
  *) # Relative name.
12621
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12622
    ac_top_srcdir=$ac_top_build_prefix$srcdir
12623
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12624
esac
12625
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12626
 
12627
 
12628
  case $ac_mode in
12629
  :F)
12630
  #
12631
  # CONFIG_FILE
12632
  #
12633
 
12634
  case $INSTALL in
12635
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12636
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12637
  esac
12638
  ac_MKDIR_P=$MKDIR_P
12639
  case $MKDIR_P in
12640
  [\\/$]* | ?:[\\/]* ) ;;
12641
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12642
  esac
12643
_ACEOF
12644
 
12645
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12646
# If the template does not know about datarootdir, expand it.
12647
# FIXME: This hack should be removed a few years after 2.60.
12648
ac_datarootdir_hack=; ac_datarootdir_seen=
12649
ac_sed_dataroot='
12650
/datarootdir/ {
12651
  p
12652
  q
12653
}
12654
/@datadir@/p
12655
/@docdir@/p
12656
/@infodir@/p
12657
/@localedir@/p
12658 346 jeremybenn
/@mandir@/p'
12659 90 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12660
*datarootdir*) ac_datarootdir_seen=yes;;
12661
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12662 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12663 90 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12664
_ACEOF
12665
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12666
  ac_datarootdir_hack='
12667
  s&@datadir@&$datadir&g
12668
  s&@docdir@&$docdir&g
12669
  s&@infodir@&$infodir&g
12670
  s&@localedir@&$localedir&g
12671
  s&@mandir@&$mandir&g
12672 346 jeremybenn
  s&\\\${datarootdir}&$datarootdir&g' ;;
12673 90 jeremybenn
esac
12674
_ACEOF
12675
 
12676
# Neutralize VPATH when `$srcdir' = `.'.
12677
# Shell code in configure.ac might set extrasub.
12678
# FIXME: do we really want to maintain this feature?
12679
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12680
ac_sed_extra="$ac_vpsub
12681
$extrasub
12682
_ACEOF
12683
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12684
:t
12685
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12686
s|@configure_input@|$ac_sed_conf_input|;t t
12687
s&@top_builddir@&$ac_top_builddir_sub&;t t
12688
s&@top_build_prefix@&$ac_top_build_prefix&;t t
12689
s&@srcdir@&$ac_srcdir&;t t
12690
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12691
s&@top_srcdir@&$ac_top_srcdir&;t t
12692
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12693
s&@builddir@&$ac_builddir&;t t
12694
s&@abs_builddir@&$ac_abs_builddir&;t t
12695
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12696
s&@INSTALL@&$ac_INSTALL&;t t
12697
s&@MKDIR_P@&$ac_MKDIR_P&;t t
12698
$ac_datarootdir_hack
12699
"
12700
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12701 346 jeremybenn
  || as_fn_error "could not create $ac_file" "$LINENO" 5
12702 90 jeremybenn
 
12703
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12704
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12705
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12706 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12707 90 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
12708
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12709
which seems to be undefined.  Please make sure it is defined." >&2;}
12710
 
12711
  rm -f "$tmp/stdin"
12712
  case $ac_file in
12713
  -) cat "$tmp/out" && rm -f "$tmp/out";;
12714
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12715
  esac \
12716 346 jeremybenn
  || as_fn_error "could not create $ac_file" "$LINENO" 5
12717 90 jeremybenn
 ;;
12718
  :H)
12719
  #
12720
  # CONFIG_HEADER
12721
  #
12722
  if test x"$ac_file" != x-; then
12723
    {
12724
      $as_echo "/* $configure_input  */" \
12725
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12726
    } >"$tmp/config.h" \
12727 346 jeremybenn
      || as_fn_error "could not create $ac_file" "$LINENO" 5
12728 90 jeremybenn
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12729 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12730 90 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
12731
    else
12732
      rm -f "$ac_file"
12733
      mv "$tmp/config.h" "$ac_file" \
12734 346 jeremybenn
        || as_fn_error "could not create $ac_file" "$LINENO" 5
12735 90 jeremybenn
    fi
12736
  else
12737
    $as_echo "/* $configure_input  */" \
12738
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12739 346 jeremybenn
      || as_fn_error "could not create -" "$LINENO" 5
12740 90 jeremybenn
  fi
12741
# Compute "$ac_file"'s index in $config_headers.
12742
_am_arg="$ac_file"
12743
_am_stamp_count=1
12744
for _am_header in $config_headers :; do
12745
  case $_am_header in
12746
    $_am_arg | $_am_arg:* )
12747
      break ;;
12748
    * )
12749
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12750
  esac
12751
done
12752
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12753
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12754
         X"$_am_arg" : 'X\(//\)[^/]' \| \
12755
         X"$_am_arg" : 'X\(//\)$' \| \
12756
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12757
$as_echo X"$_am_arg" |
12758
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12759
            s//\1/
12760
            q
12761
          }
12762
          /^X\(\/\/\)[^/].*/{
12763
            s//\1/
12764
            q
12765
          }
12766
          /^X\(\/\/\)$/{
12767
            s//\1/
12768
            q
12769
          }
12770
          /^X\(\/\).*/{
12771
            s//\1/
12772
            q
12773
          }
12774
          s/.*/./; q'`/stamp-h$_am_stamp_count
12775
 ;;
12776
 
12777 346 jeremybenn
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12778 90 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
12779
 ;;
12780
  esac
12781
 
12782
 
12783
  case $ac_file$ac_mode in
12784
    "libtool":C)
12785
 
12786
    # See if we are running on zsh, and set the options which allow our
12787
    # commands through without removal of \ escapes.
12788
    if test -n "${ZSH_VERSION+set}" ; then
12789
      setopt NO_GLOB_SUBST
12790
    fi
12791
 
12792
    cfgfile="${ofile}T"
12793
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12794
    $RM "$cfgfile"
12795
 
12796
    cat <<_LT_EOF >> "$cfgfile"
12797
#! $SHELL
12798
 
12799
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12800
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12801
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12802
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12803
#
12804
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12805
#                 2006, 2007, 2008 Free Software Foundation, Inc.
12806
#   Written by Gordon Matzigkeit, 1996
12807
#
12808
#   This file is part of GNU Libtool.
12809
#
12810
# GNU Libtool is free software; you can redistribute it and/or
12811
# modify it under the terms of the GNU General Public License as
12812
# published by the Free Software Foundation; either version 2 of
12813
# the License, or (at your option) any later version.
12814
#
12815
# As a special exception to the GNU General Public License,
12816
# if you distribute this file as part of a program or library that
12817
# is built using GNU Libtool, you may include this file under the
12818
# same distribution terms that you use for the rest of that program.
12819
#
12820
# GNU Libtool is distributed in the hope that it will be useful,
12821
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12822
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12823
# GNU General Public License for more details.
12824
#
12825
# You should have received a copy of the GNU General Public License
12826
# along with GNU Libtool; see the file COPYING.  If not, a copy
12827
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12828
# obtained by writing to the Free Software Foundation, Inc.,
12829
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12830
 
12831
 
12832
# The names of the tagged configurations supported by this script.
12833
available_tags=""
12834
 
12835
# ### BEGIN LIBTOOL CONFIG
12836
 
12837
# Which release of libtool.m4 was used?
12838
macro_version=$macro_version
12839
macro_revision=$macro_revision
12840
 
12841
# Whether or not to build shared libraries.
12842
build_libtool_libs=$enable_shared
12843
 
12844
# Whether or not to build static libraries.
12845
build_old_libs=$enable_static
12846
 
12847
# What type of objects to build.
12848
pic_mode=$pic_mode
12849
 
12850
# Whether or not to optimize for fast installation.
12851
fast_install=$enable_fast_install
12852
 
12853
# The host system.
12854
host_alias=$host_alias
12855
host=$host
12856
host_os=$host_os
12857
 
12858
# The build system.
12859
build_alias=$build_alias
12860
build=$build
12861
build_os=$build_os
12862
 
12863
# A sed program that does not truncate output.
12864
SED=$lt_SED
12865
 
12866
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12867
Xsed="\$SED -e 1s/^X//"
12868
 
12869
# A grep program that handles long lines.
12870
GREP=$lt_GREP
12871
 
12872
# An ERE matcher.
12873
EGREP=$lt_EGREP
12874
 
12875
# A literal string matcher.
12876
FGREP=$lt_FGREP
12877
 
12878
# A BSD- or MS-compatible name lister.
12879
NM=$lt_NM
12880
 
12881
# Whether we need soft or hard links.
12882
LN_S=$lt_LN_S
12883
 
12884
# What is the maximum length of a command?
12885
max_cmd_len=$max_cmd_len
12886
 
12887
# Object file suffix (normally "o").
12888
objext=$ac_objext
12889
 
12890
# Executable file suffix (normally "").
12891
exeext=$exeext
12892
 
12893
# whether the shell understands "unset".
12894
lt_unset=$lt_unset
12895
 
12896
# turn spaces into newlines.
12897
SP2NL=$lt_lt_SP2NL
12898
 
12899
# turn newlines into spaces.
12900
NL2SP=$lt_lt_NL2SP
12901
 
12902
# How to create reloadable object files.
12903
reload_flag=$lt_reload_flag
12904
reload_cmds=$lt_reload_cmds
12905
 
12906
# An object symbol dumper.
12907
OBJDUMP=$lt_OBJDUMP
12908
 
12909
# Method to check whether dependent libraries are shared objects.
12910
deplibs_check_method=$lt_deplibs_check_method
12911
 
12912
# Command to use when deplibs_check_method == "file_magic".
12913
file_magic_cmd=$lt_file_magic_cmd
12914
 
12915
# The archiver.
12916
AR=$lt_AR
12917
AR_FLAGS=$lt_AR_FLAGS
12918
 
12919
# A symbol stripping program.
12920
STRIP=$lt_STRIP
12921
 
12922
# Commands used to install an old-style archive.
12923
RANLIB=$lt_RANLIB
12924
old_postinstall_cmds=$lt_old_postinstall_cmds
12925
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12926
 
12927
# A C compiler.
12928
LTCC=$lt_CC
12929
 
12930
# LTCC compiler flags.
12931
LTCFLAGS=$lt_CFLAGS
12932
 
12933
# Take the output of nm and produce a listing of raw symbols and C names.
12934
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12935
 
12936
# Transform the output of nm in a proper C declaration.
12937
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12938
 
12939
# Transform the output of nm in a C name address pair.
12940
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12941
 
12942
# Transform the output of nm in a C name address pair when lib prefix is needed.
12943
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12944
 
12945
# The name of the directory that contains temporary libtool files.
12946
objdir=$objdir
12947
 
12948
# Shell to use when invoking shell scripts.
12949
SHELL=$lt_SHELL
12950
 
12951
# An echo program that does not interpret backslashes.
12952
ECHO=$lt_ECHO
12953
 
12954
# Used to examine libraries when file_magic_cmd begins with "file".
12955
MAGIC_CMD=$MAGIC_CMD
12956
 
12957
# Must we lock files when doing compilation?
12958
need_locks=$lt_need_locks
12959
 
12960
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12961
DSYMUTIL=$lt_DSYMUTIL
12962
 
12963
# Tool to change global to local symbols on Mac OS X.
12964
NMEDIT=$lt_NMEDIT
12965
 
12966
# Tool to manipulate fat objects and archives on Mac OS X.
12967
LIPO=$lt_LIPO
12968
 
12969
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12970
OTOOL=$lt_OTOOL
12971
 
12972
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12973
OTOOL64=$lt_OTOOL64
12974
 
12975
# Old archive suffix (normally "a").
12976
libext=$libext
12977
 
12978
# Shared library suffix (normally ".so").
12979
shrext_cmds=$lt_shrext_cmds
12980
 
12981
# The commands to extract the exported symbol list from a shared archive.
12982
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12983
 
12984
# Variables whose values should be saved in libtool wrapper scripts and
12985
# restored at link time.
12986
variables_saved_for_relink=$lt_variables_saved_for_relink
12987
 
12988
# Do we need the "lib" prefix for modules?
12989
need_lib_prefix=$need_lib_prefix
12990
 
12991
# Do we need a version for libraries?
12992
need_version=$need_version
12993
 
12994
# Library versioning type.
12995
version_type=$version_type
12996
 
12997
# Shared library runtime path variable.
12998
runpath_var=$runpath_var
12999
 
13000
# Shared library path variable.
13001
shlibpath_var=$shlibpath_var
13002
 
13003
# Is shlibpath searched before the hard-coded library search path?
13004
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13005
 
13006
# Format of library name prefix.
13007
libname_spec=$lt_libname_spec
13008
 
13009
# List of archive names.  First name is the real one, the rest are links.
13010
# The last name is the one that the linker finds with -lNAME
13011
library_names_spec=$lt_library_names_spec
13012
 
13013
# The coded name of the library, if different from the real name.
13014
soname_spec=$lt_soname_spec
13015
 
13016
# Command to use after installation of a shared archive.
13017
postinstall_cmds=$lt_postinstall_cmds
13018
 
13019
# Command to use after uninstallation of a shared archive.
13020
postuninstall_cmds=$lt_postuninstall_cmds
13021
 
13022
# Commands used to finish a libtool library installation in a directory.
13023
finish_cmds=$lt_finish_cmds
13024
 
13025
# As "finish_cmds", except a single script fragment to be evaled but
13026
# not shown.
13027
finish_eval=$lt_finish_eval
13028
 
13029
# Whether we should hardcode library paths into libraries.
13030
hardcode_into_libs=$hardcode_into_libs
13031
 
13032
# Compile-time system search path for libraries.
13033
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13034
 
13035
# Run-time system search path for libraries.
13036
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13037
 
13038
# Whether dlopen is supported.
13039
dlopen_support=$enable_dlopen
13040
 
13041
# Whether dlopen of programs is supported.
13042
dlopen_self=$enable_dlopen_self
13043
 
13044
# Whether dlopen of statically linked programs is supported.
13045
dlopen_self_static=$enable_dlopen_self_static
13046
 
13047
# Commands to strip libraries.
13048
old_striplib=$lt_old_striplib
13049
striplib=$lt_striplib
13050
 
13051
 
13052
# The linker used to build libraries.
13053
LD=$lt_LD
13054
 
13055
# Commands used to build an old-style archive.
13056
old_archive_cmds=$lt_old_archive_cmds
13057
 
13058
# A language specific compiler.
13059
CC=$lt_compiler
13060
 
13061
# Is the compiler the GNU compiler?
13062
with_gcc=$GCC
13063
 
13064
# Compiler flag to turn off builtin functions.
13065
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13066
 
13067
# How to pass a linker flag through the compiler.
13068
wl=$lt_lt_prog_compiler_wl
13069
 
13070
# Additional compiler flags for building library objects.
13071
pic_flag=$lt_lt_prog_compiler_pic
13072
 
13073
# Compiler flag to prevent dynamic linking.
13074
link_static_flag=$lt_lt_prog_compiler_static
13075
 
13076
# Does compiler simultaneously support -c and -o options?
13077
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13078
 
13079
# Whether or not to add -lc for building shared libraries.
13080
build_libtool_need_lc=$archive_cmds_need_lc
13081
 
13082
# Whether or not to disallow shared libs when runtime libs are static.
13083
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13084
 
13085
# Compiler flag to allow reflexive dlopens.
13086
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13087
 
13088
# Compiler flag to generate shared objects directly from archives.
13089
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13090
 
13091
# Whether the compiler copes with passing no objects directly.
13092
compiler_needs_object=$lt_compiler_needs_object
13093
 
13094
# Create an old-style archive from a shared archive.
13095
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13096
 
13097
# Create a temporary old-style archive to link instead of a shared archive.
13098
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13099
 
13100
# Commands used to build a shared archive.
13101
archive_cmds=$lt_archive_cmds
13102
archive_expsym_cmds=$lt_archive_expsym_cmds
13103
 
13104
# Commands used to build a loadable module if different from building
13105
# a shared archive.
13106
module_cmds=$lt_module_cmds
13107
module_expsym_cmds=$lt_module_expsym_cmds
13108
 
13109
# Whether we are building with GNU ld or not.
13110
with_gnu_ld=$lt_with_gnu_ld
13111
 
13112
# Flag that allows shared libraries with undefined symbols to be built.
13113
allow_undefined_flag=$lt_allow_undefined_flag
13114
 
13115
# Flag that enforces no undefined symbols.
13116
no_undefined_flag=$lt_no_undefined_flag
13117
 
13118
# Flag to hardcode \$libdir into a binary during linking.
13119
# This must work even if \$libdir does not exist
13120
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13121
 
13122
# If ld is used when linking, flag to hardcode \$libdir into a binary
13123
# during linking.  This must work even if \$libdir does not exist.
13124
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13125
 
13126
# Whether we need a single "-rpath" flag with a separated argument.
13127
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13128
 
13129
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13130
# DIR into the resulting binary.
13131
hardcode_direct=$hardcode_direct
13132
 
13133
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13134
# DIR into the resulting binary and the resulting library dependency is
13135
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13136
# library is relocated.
13137
hardcode_direct_absolute=$hardcode_direct_absolute
13138
 
13139
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13140
# into the resulting binary.
13141
hardcode_minus_L=$hardcode_minus_L
13142
 
13143
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13144
# into the resulting binary.
13145
hardcode_shlibpath_var=$hardcode_shlibpath_var
13146
 
13147
# Set to "yes" if building a shared library automatically hardcodes DIR
13148
# into the library and all subsequent libraries and executables linked
13149
# against it.
13150
hardcode_automatic=$hardcode_automatic
13151
 
13152
# Set to yes if linker adds runtime paths of dependent libraries
13153
# to runtime path list.
13154
inherit_rpath=$inherit_rpath
13155
 
13156
# Whether libtool must link a program against all its dependency libraries.
13157
link_all_deplibs=$link_all_deplibs
13158
 
13159
# Fix the shell variable \$srcfile for the compiler.
13160
fix_srcfile_path=$lt_fix_srcfile_path
13161
 
13162
# Set to "yes" if exported symbols are required.
13163
always_export_symbols=$always_export_symbols
13164
 
13165
# The commands to list exported symbols.
13166
export_symbols_cmds=$lt_export_symbols_cmds
13167
 
13168
# Symbols that should not be listed in the preloaded symbols.
13169
exclude_expsyms=$lt_exclude_expsyms
13170
 
13171
# Symbols that must always be exported.
13172
include_expsyms=$lt_include_expsyms
13173
 
13174
# Commands necessary for linking programs (against libraries) with templates.
13175
prelink_cmds=$lt_prelink_cmds
13176
 
13177
# Specify filename containing input files.
13178
file_list_spec=$lt_file_list_spec
13179
 
13180
# How to hardcode a shared library path into an executable.
13181
hardcode_action=$hardcode_action
13182
 
13183
# ### END LIBTOOL CONFIG
13184
 
13185
_LT_EOF
13186
 
13187
  case $host_os in
13188
  aix3*)
13189
    cat <<\_LT_EOF >> "$cfgfile"
13190
# AIX sometimes has problems with the GCC collect2 program.  For some
13191
# reason, if we set the COLLECT_NAMES environment variable, the problems
13192
# vanish in a puff of smoke.
13193
if test "X${COLLECT_NAMES+set}" != Xset; then
13194
  COLLECT_NAMES=
13195
  export COLLECT_NAMES
13196
fi
13197
_LT_EOF
13198
    ;;
13199
  esac
13200
 
13201
 
13202
ltmain="$ac_aux_dir/ltmain.sh"
13203
 
13204
 
13205
  # We use sed instead of cat because bash on DJGPP gets confused if
13206
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13207
  # text mode, it properly converts lines to CR/LF.  This bash problem
13208
  # is reportedly fixed, but why not run on old versions too?
13209
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13210
    || (rm -f "$cfgfile"; exit 1)
13211
 
13212
  case $xsi_shell in
13213
  yes)
13214
    cat << \_LT_EOF >> "$cfgfile"
13215
 
13216
# func_dirname file append nondir_replacement
13217
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13218
# otherwise set result to NONDIR_REPLACEMENT.
13219
func_dirname ()
13220
{
13221
  case ${1} in
13222
    */*) func_dirname_result="${1%/*}${2}" ;;
13223
    *  ) func_dirname_result="${3}" ;;
13224
  esac
13225
}
13226
 
13227
# func_basename file
13228
func_basename ()
13229
{
13230
  func_basename_result="${1##*/}"
13231
}
13232
 
13233
# func_dirname_and_basename file append nondir_replacement
13234
# perform func_basename and func_dirname in a single function
13235
# call:
13236
#   dirname:  Compute the dirname of FILE.  If nonempty,
13237
#             add APPEND to the result, otherwise set result
13238
#             to NONDIR_REPLACEMENT.
13239
#             value returned in "$func_dirname_result"
13240
#   basename: Compute filename of FILE.
13241
#             value retuned in "$func_basename_result"
13242
# Implementation must be kept synchronized with func_dirname
13243
# and func_basename. For efficiency, we do not delegate to
13244
# those functions but instead duplicate the functionality here.
13245
func_dirname_and_basename ()
13246
{
13247
  case ${1} in
13248
    */*) func_dirname_result="${1%/*}${2}" ;;
13249
    *  ) func_dirname_result="${3}" ;;
13250
  esac
13251
  func_basename_result="${1##*/}"
13252
}
13253
 
13254
# func_stripname prefix suffix name
13255
# strip PREFIX and SUFFIX off of NAME.
13256
# PREFIX and SUFFIX must not contain globbing or regex special
13257
# characters, hashes, percent signs, but SUFFIX may contain a leading
13258
# dot (in which case that matches only a dot).
13259
func_stripname ()
13260
{
13261
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13262
  # positional parameters, so assign one to ordinary parameter first.
13263
  func_stripname_result=${3}
13264
  func_stripname_result=${func_stripname_result#"${1}"}
13265
  func_stripname_result=${func_stripname_result%"${2}"}
13266
}
13267
 
13268
# func_opt_split
13269
func_opt_split ()
13270
{
13271
  func_opt_split_opt=${1%%=*}
13272
  func_opt_split_arg=${1#*=}
13273
}
13274
 
13275
# func_lo2o object
13276
func_lo2o ()
13277
{
13278
  case ${1} in
13279
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13280
    *)    func_lo2o_result=${1} ;;
13281
  esac
13282
}
13283
 
13284
# func_xform libobj-or-source
13285
func_xform ()
13286
{
13287
  func_xform_result=${1%.*}.lo
13288
}
13289
 
13290
# func_arith arithmetic-term...
13291
func_arith ()
13292
{
13293
  func_arith_result=$(( $* ))
13294
}
13295
 
13296
# func_len string
13297
# STRING may not start with a hyphen.
13298
func_len ()
13299
{
13300
  func_len_result=${#1}
13301
}
13302
 
13303
_LT_EOF
13304
    ;;
13305
  *) # Bourne compatible functions.
13306
    cat << \_LT_EOF >> "$cfgfile"
13307
 
13308
# func_dirname file append nondir_replacement
13309
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13310
# otherwise set result to NONDIR_REPLACEMENT.
13311
func_dirname ()
13312
{
13313
  # Extract subdirectory from the argument.
13314
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13315
  if test "X$func_dirname_result" = "X${1}"; then
13316
    func_dirname_result="${3}"
13317
  else
13318
    func_dirname_result="$func_dirname_result${2}"
13319
  fi
13320
}
13321
 
13322
# func_basename file
13323
func_basename ()
13324
{
13325
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13326
}
13327
 
13328
 
13329
# func_stripname prefix suffix name
13330
# strip PREFIX and SUFFIX off of NAME.
13331
# PREFIX and SUFFIX must not contain globbing or regex special
13332
# characters, hashes, percent signs, but SUFFIX may contain a leading
13333
# dot (in which case that matches only a dot).
13334
# func_strip_suffix prefix name
13335
func_stripname ()
13336
{
13337
  case ${2} in
13338
    .*) func_stripname_result=`$ECHO "X${3}" \
13339
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13340
    *)  func_stripname_result=`$ECHO "X${3}" \
13341
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13342
  esac
13343
}
13344
 
13345
# sed scripts:
13346
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13347
my_sed_long_arg='1s/^-[^=]*=//'
13348
 
13349
# func_opt_split
13350
func_opt_split ()
13351
{
13352
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13353
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13354
}
13355
 
13356
# func_lo2o object
13357
func_lo2o ()
13358
{
13359
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13360
}
13361
 
13362
# func_xform libobj-or-source
13363
func_xform ()
13364
{
13365
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13366
}
13367
 
13368
# func_arith arithmetic-term...
13369
func_arith ()
13370
{
13371
  func_arith_result=`expr "$@"`
13372
}
13373
 
13374
# func_len string
13375
# STRING may not start with a hyphen.
13376
func_len ()
13377
{
13378
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13379
}
13380
 
13381
_LT_EOF
13382
esac
13383
 
13384
case $lt_shell_append in
13385
  yes)
13386
    cat << \_LT_EOF >> "$cfgfile"
13387
 
13388
# func_append var value
13389
# Append VALUE to the end of shell variable VAR.
13390
func_append ()
13391
{
13392
  eval "$1+=\$2"
13393
}
13394
_LT_EOF
13395
    ;;
13396
  *)
13397
    cat << \_LT_EOF >> "$cfgfile"
13398
 
13399
# func_append var value
13400
# Append VALUE to the end of shell variable VAR.
13401
func_append ()
13402
{
13403
  eval "$1=\$$1\$2"
13404
}
13405
 
13406
_LT_EOF
13407
    ;;
13408
  esac
13409
 
13410
 
13411
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13412
    || (rm -f "$cfgfile"; exit 1)
13413
 
13414
  mv -f "$cfgfile" "$ofile" ||
13415
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13416
  chmod +x "$ofile"
13417
 
13418
 ;;
13419
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13420
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13421
  # are listed without --file.  Let's play safe and only enable the eval
13422
  # if we detect the quoting.
13423
  case $CONFIG_FILES in
13424
  *\'*) eval set x "$CONFIG_FILES" ;;
13425
  *)   set x $CONFIG_FILES ;;
13426
  esac
13427
  shift
13428
  for mf
13429
  do
13430
    # Strip MF so we end up with the name of the file.
13431
    mf=`echo "$mf" | sed -e 's/:.*$//'`
13432
    # Check whether this is an Automake generated Makefile or not.
13433
    # We used to match only the files named `Makefile.in', but
13434
    # some people rename them; so instead we look at the file content.
13435
    # Grep'ing the first line is not enough: some people post-process
13436
    # each Makefile.in and add a new line on top of each file to say so.
13437
    # Grep'ing the whole file is not good either: AIX grep has a line
13438
    # limit of 2048, but all sed's we know have understand at least 4000.
13439
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13440
      dirpart=`$as_dirname -- "$mf" ||
13441
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13442
         X"$mf" : 'X\(//\)[^/]' \| \
13443
         X"$mf" : 'X\(//\)$' \| \
13444
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13445
$as_echo X"$mf" |
13446
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13447
            s//\1/
13448
            q
13449
          }
13450
          /^X\(\/\/\)[^/].*/{
13451
            s//\1/
13452
            q
13453
          }
13454
          /^X\(\/\/\)$/{
13455
            s//\1/
13456
            q
13457
          }
13458
          /^X\(\/\).*/{
13459
            s//\1/
13460
            q
13461
          }
13462
          s/.*/./; q'`
13463
    else
13464
      continue
13465
    fi
13466
    # Extract the definition of DEPDIR, am__include, and am__quote
13467
    # from the Makefile without running `make'.
13468
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13469
    test -z "$DEPDIR" && continue
13470
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13471
    test -z "am__include" && continue
13472
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13473
    # When using ansi2knr, U may be empty or an underscore; expand it
13474
    U=`sed -n 's/^U = //p' < "$mf"`
13475
    # Find all dependency output files, they are included files with
13476
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13477
    # simplest approach to changing $(DEPDIR) to its actual value in the
13478
    # expansion.
13479
    for file in `sed -n "
13480
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13481
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13482
      # Make sure the directory exists.
13483
      test -f "$dirpart/$file" && continue
13484
      fdir=`$as_dirname -- "$file" ||
13485
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13486
         X"$file" : 'X\(//\)[^/]' \| \
13487
         X"$file" : 'X\(//\)$' \| \
13488
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13489
$as_echo X"$file" |
13490
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13491
            s//\1/
13492
            q
13493
          }
13494
          /^X\(\/\/\)[^/].*/{
13495
            s//\1/
13496
            q
13497
          }
13498
          /^X\(\/\/\)$/{
13499
            s//\1/
13500
            q
13501
          }
13502
          /^X\(\/\).*/{
13503
            s//\1/
13504
            q
13505
          }
13506
          s/.*/./; q'`
13507 346 jeremybenn
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13508 90 jeremybenn
      # echo "creating $dirpart/$file"
13509
      echo '# dummy' > "$dirpart/$file"
13510
    done
13511
  done
13512
}
13513
 ;;
13514
 
13515
  esac
13516
done # for ac_tag
13517
 
13518
 
13519 346 jeremybenn
as_fn_exit 0
13520 90 jeremybenn
_ACEOF
13521
ac_clean_files=$ac_clean_files_save
13522
 
13523
test $ac_write_fail = 0 ||
13524 346 jeremybenn
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13525 90 jeremybenn
 
13526
 
13527
# configure is writing to config.log, and then calls config.status.
13528
# config.status does its own redirection, appending to config.log.
13529
# Unfortunately, on DOS this fails, as config.log is still kept open
13530
# by configure, so config.status won't be able to write to it; its
13531
# output is simply discarded.  So we exec the FD to /dev/null,
13532
# effectively closing config.log, so it can be properly (re)opened and
13533
# appended to by config.status.  When coming back to configure, we
13534
# need to make the FD available again.
13535
if test "$no_create" != yes; then
13536
  ac_cs_success=:
13537
  ac_config_status_args=
13538
  test "$silent" = yes &&
13539
    ac_config_status_args="$ac_config_status_args --quiet"
13540
  exec 5>/dev/null
13541
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13542
  exec 5>>config.log
13543
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13544
  # would make configure fail if this is the last instruction.
13545 346 jeremybenn
  $ac_cs_success || as_fn_exit $?
13546 90 jeremybenn
fi
13547
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13548 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13549 90 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13550
fi
13551
 

powered by: WebSVN 2.1.0

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