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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 538 julius
# From configure.ac Id: configure.ac 532 2011-04-28 18:34:59Z jeremybennett  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 538 julius
# Generated by GNU Autoconf 2.64 for or1ksim 2011-04-28.
5 19 jeremybenn
#
6
# Report bugs to .
7
#
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 538 julius
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
10
# Foundation, Inc.
11 346 jeremybenn
#
12 19 jeremybenn
# This configure script is free software; the Free Software Foundation
13
# gives unlimited permission to copy, distribute and modify it.
14 82 jeremybenn
#
15
# Copyright (C) 1999-2008 OpenCores
16
# Copyright (C) 2008, 2010 Embecosm Limited
17
#
18
# Contributor Jeremy Bennett 
19
#
20
# This file is part of OpenRISC 1000 Architectural Simulator.
21
#
22
# This program is free software; you can redistribute it and/or modify it
23
# under the terms of the GNU General Public License as published by the Free
24
# Software Foundation; either version 3 of the License, or (at your option)
25
# any later version.
26
#
27
# This program is distributed in the hope that it will be useful, but WITHOUT
28
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
29
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
30
# more details.
31
#
32
# You should have received a copy of the GNU General Public License along
33
# with this program.  If not, see .
34 346 jeremybenn
## -------------------- ##
35
## M4sh Initialization. ##
36
## -------------------- ##
37 19 jeremybenn
 
38
# Be more Bourne compatible
39
DUALCASE=1; export DUALCASE # for MKS sh
40 346 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41 19 jeremybenn
  emulate sh
42
  NULLCMD=:
43 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
44 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
45
  alias -g '${1+"$@"}'='"$@"'
46
  setopt NO_GLOB_SUBST
47
else
48 346 jeremybenn
  case `(set -o) 2>/dev/null` in #(
49
  *posix*) :
50
    set -o posix ;; #(
51
  *) :
52
     ;;
53 19 jeremybenn
esac
54
fi
55
 
56
 
57 82 jeremybenn
as_nl='
58
'
59
export as_nl
60
# Printing a long string crashes Solaris 7 /usr/bin/printf.
61
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
62
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
63
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
64 346 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
65
# but without wasting forks for bash or zsh.
66
if test -z "$BASH_VERSION$ZSH_VERSION" \
67
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
68
  as_echo='print -r --'
69
  as_echo_n='print -rn --'
70
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
71 82 jeremybenn
  as_echo='printf %s\n'
72
  as_echo_n='printf %s'
73
else
74
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
75
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
76
    as_echo_n='/usr/ucb/echo -n'
77 19 jeremybenn
  else
78 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
79
    as_echo_n_body='eval
80
      arg=$1;
81 346 jeremybenn
      case $arg in #(
82 82 jeremybenn
      *"$as_nl"*)
83
        expr "X$arg" : "X\\(.*\\)$as_nl";
84
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
85
      esac;
86
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
87
    '
88
    export as_echo_n_body
89
    as_echo_n='sh -c $as_echo_n_body as_echo'
90 19 jeremybenn
  fi
91 82 jeremybenn
  export as_echo_body
92
  as_echo='sh -c $as_echo_body as_echo'
93 19 jeremybenn
fi
94
 
95 82 jeremybenn
# The user is always right.
96
if test "${PATH_SEPARATOR+set}" != set; then
97
  PATH_SEPARATOR=:
98
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
99
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
100
      PATH_SEPARATOR=';'
101
  }
102
fi
103
 
104 19 jeremybenn
 
105
# IFS
106
# We need space, tab and new line, in precisely that order.  Quoting is
107
# there to prevent editors from complaining about space-tab.
108
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
109
# splitting by setting IFS to empty value.)
110
IFS=" ""        $as_nl"
111
 
112
# Find who we are.  Look in the path if we contain no directory separator.
113 346 jeremybenn
case $0 in #((
114 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
115
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116
for as_dir in $PATH
117
do
118
  IFS=$as_save_IFS
119
  test -z "$as_dir" && as_dir=.
120 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
  done
122 19 jeremybenn
IFS=$as_save_IFS
123
 
124
     ;;
125
esac
126
# We did not find ourselves, most probably we were run as `sh COMMAND'
127
# in which case we are not to be found in the path.
128
if test "x$as_myself" = x; then
129
  as_myself=$0
130
fi
131
if test ! -f "$as_myself"; then
132 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
133 346 jeremybenn
  exit 1
134 19 jeremybenn
fi
135
 
136 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
137
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
138
# suppresses any "Segmentation fault" message there.  '((' could
139
# trigger a bug in pdksh 5.2.14.
140
for as_var in BASH_ENV ENV MAIL MAILPATH
141
do eval test x\${$as_var+set} = xset \
142
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
143 19 jeremybenn
done
144
PS1='$ '
145
PS2='> '
146
PS4='+ '
147
 
148
# NLS nuisances.
149 82 jeremybenn
LC_ALL=C
150
export LC_ALL
151
LANGUAGE=C
152
export LANGUAGE
153 19 jeremybenn
 
154
# CDPATH.
155 346 jeremybenn
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
156 19 jeremybenn
 
157
if test "x$CONFIG_SHELL" = x; then
158 346 jeremybenn
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
159
  emulate sh
160
  NULLCMD=:
161
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
162
  # is contrary to our usage.  Disable this feature.
163
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
164
  setopt NO_GLOB_SUBST
165 19 jeremybenn
else
166 346 jeremybenn
  case \`(set -o) 2>/dev/null\` in #(
167
  *posix*) :
168
    set -o posix ;; #(
169
  *) :
170
     ;;
171
esac
172 19 jeremybenn
fi
173 346 jeremybenn
"
174
  as_required="as_fn_return () { (exit \$1); }
175
as_fn_success () { as_fn_return 0; }
176
as_fn_failure () { as_fn_return 1; }
177
as_fn_ret_success () { return 0; }
178
as_fn_ret_failure () { return 1; }
179 19 jeremybenn
 
180
exitcode=0
181 346 jeremybenn
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
182
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
183
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
184
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
185
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
186 19 jeremybenn
 
187
else
188 346 jeremybenn
  exitcode=1; echo positional parameters were not saved.
189 19 jeremybenn
fi
190 346 jeremybenn
test x\$exitcode = x0 || exit 1"
191
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
192
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
193
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
194
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
195
test \$(( 1 + 1 )) = 2 || exit 1"
196
  if (eval "$as_required") 2>/dev/null; then :
197
  as_have_required=yes
198 19 jeremybenn
else
199 346 jeremybenn
  as_have_required=no
200 19 jeremybenn
fi
201 346 jeremybenn
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
202 19 jeremybenn
 
203
else
204 346 jeremybenn
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
205
as_found=false
206 19 jeremybenn
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
207
do
208
  IFS=$as_save_IFS
209
  test -z "$as_dir" && as_dir=.
210 346 jeremybenn
  as_found=:
211
  case $as_dir in #(
212 19 jeremybenn
         /*)
213
           for as_base in sh bash ksh sh5; do
214 346 jeremybenn
             # Try only shells that exist, to save several forks.
215
             as_shell=$as_dir/$as_base
216
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
217
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
218
  CONFIG_SHELL=$as_shell as_have_required=yes
219
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
220
  break 2
221
fi
222
fi
223 19 jeremybenn
           done;;
224
       esac
225 346 jeremybenn
  as_found=false
226 19 jeremybenn
done
227 346 jeremybenn
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
228
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
229
  CONFIG_SHELL=$SHELL as_have_required=yes
230
fi; }
231 19 jeremybenn
IFS=$as_save_IFS
232
 
233
 
234 346 jeremybenn
      if test "x$CONFIG_SHELL" != x; then :
235
  # We cannot yet assume a decent shell, so we have to provide a
236
        # neutralization value for shells without unset; and this also
237
        # works around shells that cannot unset nonexistent variables.
238
        BASH_ENV=/dev/null
239
        ENV=/dev/null
240
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
241
        export CONFIG_SHELL
242
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
243 19 jeremybenn
fi
244
 
245 346 jeremybenn
    if test x$as_have_required = xno; then :
246
  $as_echo "$0: This script requires a shell more modern than all"
247
  $as_echo "$0: the shells that I found on your system."
248
  if test x${ZSH_VERSION+set} = xset ; then
249
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
250
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
251
  else
252
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
253
$0: openrisc@opencores.org about your system, including any
254
$0: error possibly output before this message. Then install
255
$0: a modern shell, or manually run the script under such a
256
$0: shell if you do have one."
257
  fi
258
  exit 1
259 19 jeremybenn
fi
260
fi
261
fi
262 346 jeremybenn
SHELL=${CONFIG_SHELL-/bin/sh}
263
export SHELL
264
# Unset more variables known to interfere with behavior of common tools.
265
CLICOLOR_FORCE= GREP_OPTIONS=
266
unset CLICOLOR_FORCE GREP_OPTIONS
267 19 jeremybenn
 
268 346 jeremybenn
## --------------------- ##
269
## M4sh Shell Functions. ##
270
## --------------------- ##
271
# as_fn_unset VAR
272
# ---------------
273
# Portably unset VAR.
274
as_fn_unset ()
275
{
276
  { eval $1=; unset $1;}
277
}
278
as_unset=as_fn_unset
279 19 jeremybenn
 
280 346 jeremybenn
# as_fn_set_status STATUS
281
# -----------------------
282
# Set $? to STATUS, without forking.
283
as_fn_set_status ()
284
{
285
  return $1
286
} # as_fn_set_status
287 19 jeremybenn
 
288 346 jeremybenn
# as_fn_exit STATUS
289
# -----------------
290
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
291
as_fn_exit ()
292
{
293
  set +e
294
  as_fn_set_status $1
295
  exit $1
296
} # as_fn_exit
297 19 jeremybenn
 
298 346 jeremybenn
# as_fn_mkdir_p
299
# -------------
300
# Create "$as_dir" as a directory, including parents if necessary.
301
as_fn_mkdir_p ()
302
{
303 19 jeremybenn
 
304 346 jeremybenn
  case $as_dir in #(
305
  -*) as_dir=./$as_dir;;
306
  esac
307
  test -d "$as_dir" || eval $as_mkdir_p || {
308
    as_dirs=
309
    while :; do
310
      case $as_dir in #(
311
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312
      *) as_qdir=$as_dir;;
313
      esac
314
      as_dirs="'$as_qdir' $as_dirs"
315
      as_dir=`$as_dirname -- "$as_dir" ||
316
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
317
         X"$as_dir" : 'X\(//\)[^/]' \| \
318
         X"$as_dir" : 'X\(//\)$' \| \
319
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
320
$as_echo X"$as_dir" |
321
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322
            s//\1/
323
            q
324
          }
325
          /^X\(\/\/\)[^/].*/{
326
            s//\1/
327
            q
328
          }
329
          /^X\(\/\/\)$/{
330
            s//\1/
331
            q
332
          }
333
          /^X\(\/\).*/{
334
            s//\1/
335
            q
336
          }
337
          s/.*/./; q'`
338
      test -d "$as_dir" && break
339
    done
340
    test -z "$as_dirs" || eval "mkdir $as_dirs"
341
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
342 19 jeremybenn
 
343
 
344 346 jeremybenn
} # as_fn_mkdir_p
345
# as_fn_append VAR VALUE
346
# ----------------------
347
# Append the text in VALUE to the end of the definition contained in VAR. Take
348
# advantage of any shell optimizations that allow amortized linear growth over
349
# repeated appends, instead of the typical quadratic growth present in naive
350
# implementations.
351
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
352
  eval 'as_fn_append ()
353
  {
354
    eval $1+=\$2
355
  }'
356
else
357
  as_fn_append ()
358
  {
359
    eval $1=\$$1\$2
360
  }
361
fi # as_fn_append
362 19 jeremybenn
 
363 346 jeremybenn
# as_fn_arith ARG...
364
# ------------------
365
# Perform arithmetic evaluation on the ARGs, and store the result in the
366
# global $as_val. Take advantage of shells that can avoid forks. The arguments
367
# must be portable across $(()) and expr.
368
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
369
  eval 'as_fn_arith ()
370
  {
371
    as_val=$(( $* ))
372
  }'
373
else
374
  as_fn_arith ()
375
  {
376
    as_val=`expr "$@" || test $? -eq 1`
377
  }
378
fi # as_fn_arith
379 19 jeremybenn
 
380
 
381 346 jeremybenn
# as_fn_error ERROR [LINENO LOG_FD]
382
# ---------------------------------
383
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
384
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
385
# script with status $?, using 1 if that was 0.
386
as_fn_error ()
387
{
388
  as_status=$?; test $as_status -eq 0 && as_status=1
389
  if test "$3"; then
390
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
391
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
392
  fi
393
  $as_echo "$as_me: error: $1" >&2
394
  as_fn_exit $as_status
395
} # as_fn_error
396 19 jeremybenn
 
397 346 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
398
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
399
  as_expr=expr
400 19 jeremybenn
else
401 346 jeremybenn
  as_expr=false
402 19 jeremybenn
fi
403
 
404 346 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
405
  as_basename=basename
406 19 jeremybenn
else
407 346 jeremybenn
  as_basename=false
408 19 jeremybenn
fi
409
 
410 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
411
  as_dirname=dirname
412 19 jeremybenn
else
413 346 jeremybenn
  as_dirname=false
414 19 jeremybenn
fi
415
 
416 346 jeremybenn
as_me=`$as_basename -- "$0" ||
417
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
418
         X"$0" : 'X\(//\)$' \| \
419
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
420
$as_echo X/"$0" |
421
    sed '/^.*\/\([^/][^/]*\)\/*$/{
422
            s//\1/
423
            q
424
          }
425
          /^X\/\(\/\/\)$/{
426
            s//\1/
427
            q
428
          }
429
          /^X\/\(\/\).*/{
430
            s//\1/
431
            q
432
          }
433
          s/.*/./; q'`
434 19 jeremybenn
 
435 346 jeremybenn
# Avoid depending upon Character Ranges.
436
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
437
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
438
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
439
as_cr_digits='0123456789'
440
as_cr_alnum=$as_cr_Letters$as_cr_digits
441 19 jeremybenn
 
442
 
443 346 jeremybenn
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
444
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
445
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
446
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
447
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
448 19 jeremybenn
  sed -n '
449
    p
450
    /[$]LINENO/=
451
  ' <$as_myself |
452
    sed '
453
      s/[$]LINENO.*/&-/
454
      t lineno
455
      b
456
      :lineno
457
      N
458
      :loop
459
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460
      t loop
461
      s/-\n.*//
462
    ' >$as_me.lineno &&
463
  chmod +x "$as_me.lineno" ||
464 346 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
465 19 jeremybenn
 
466
  # Don't try to exec as it changes $[0], causing all sort of problems
467
  # (the dirname of $[0] is not the place where we might find the
468
  # original and so on.  Autoconf is especially sensitive to this).
469
  . "./$as_me.lineno"
470
  # Exit status is that of the last command.
471
  exit
472
}
473
 
474
ECHO_C= ECHO_N= ECHO_T=
475 346 jeremybenn
case `echo -n x` in #(((((
476 19 jeremybenn
-n*)
477 346 jeremybenn
  case `echo 'xy\c'` in
478 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479 346 jeremybenn
  xy)  ECHO_C='\c';;
480
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
481
       ECHO_T=' ';;
482 19 jeremybenn
  esac;;
483
*)
484
  ECHO_N='-n';;
485
esac
486
 
487
rm -f conf$$ conf$$.exe conf$$.file
488
if test -d conf$$.dir; then
489
  rm -f conf$$.dir/conf$$.file
490
else
491
  rm -f conf$$.dir
492 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
493 19 jeremybenn
fi
494 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
495
  if ln -s conf$$.file conf$$ 2>/dev/null; then
496
    as_ln_s='ln -s'
497
    # ... but there are two gotchas:
498
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500
    # In both cases, we have to default to `cp -p'.
501
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502
      as_ln_s='cp -p'
503
  elif ln conf$$.file conf$$ 2>/dev/null; then
504
    as_ln_s=ln
505
  else
506 19 jeremybenn
    as_ln_s='cp -p'
507 82 jeremybenn
  fi
508 19 jeremybenn
else
509
  as_ln_s='cp -p'
510
fi
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
513
 
514
if mkdir -p . 2>/dev/null; then
515 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
516 19 jeremybenn
else
517
  test -d ./-p && rmdir ./-p
518
  as_mkdir_p=false
519
fi
520
 
521
if test -x / >/dev/null 2>&1; then
522
  as_test_x='test -x'
523
else
524
  if ls -dL / >/dev/null 2>&1; then
525
    as_ls_L_option=L
526
  else
527
    as_ls_L_option=
528
  fi
529
  as_test_x='
530
    eval sh -c '\''
531
      if test -d "$1"; then
532 82 jeremybenn
        test -d "$1/.";
533 19 jeremybenn
      else
534 346 jeremybenn
        case $1 in #(
535 82 jeremybenn
        -*)set "./$1";;
536 19 jeremybenn
        esac;
537 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
538 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
539
    '\'' sh
540
  '
541
fi
542
as_executable_p=$as_test_x
543
 
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
 
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
 
550
 
551
 
552
# Check that we are running under the correct shell.
553
SHELL=${CONFIG_SHELL-/bin/sh}
554
 
555 82 jeremybenn
case X$lt_ECHO in
556 19 jeremybenn
X*--fallback-echo)
557
  # Remove one level of quotation (which was required for Make).
558 82 jeremybenn
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
559 19 jeremybenn
  ;;
560
esac
561
 
562 82 jeremybenn
ECHO=${lt_ECHO-echo}
563 19 jeremybenn
if test "X$1" = X--no-reexec; then
564
  # Discard the --no-reexec flag, and continue.
565
  shift
566
elif test "X$1" = X--fallback-echo; then
567
  # Avoid inline document here, it may be left over
568
  :
569 82 jeremybenn
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
570
  # Yippee, $ECHO works!
571 19 jeremybenn
  :
572
else
573
  # Restart under the correct shell.
574
  exec $SHELL "$0" --no-reexec ${1+"$@"}
575
fi
576
 
577
if test "X$1" = X--fallback-echo; then
578
  # used as fallback echo
579
  shift
580 82 jeremybenn
  cat <<_LT_EOF
581 19 jeremybenn
$*
582 82 jeremybenn
_LT_EOF
583 19 jeremybenn
  exit 0
584
fi
585
 
586
# The HP-UX ksh and POSIX shell print the target directory to stdout
587
# if CDPATH is set.
588
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
589
 
590 82 jeremybenn
if test -z "$lt_ECHO"; then
591
  if test "X${echo_test_string+set}" != Xset; then
592
    # find a string as large as possible, as long as the shell can cope with it
593
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
594
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
595
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
596
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
597
      then
598
        break
599
      fi
600
    done
601
  fi
602 19 jeremybenn
 
603 82 jeremybenn
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
604
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
605
     test "X$echo_testing_string" = "X$echo_test_string"; then
606
    :
607
  else
608
    # The Solaris, AIX, and Digital Unix default echo programs unquote
609
    # backslashes.  This makes it impossible to quote backslashes using
610
    #   echo "$something" | sed 's/\\/\\\\/g'
611
    #
612
    # So, first we look for a working echo in the user's PATH.
613 19 jeremybenn
 
614 82 jeremybenn
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
615
    for dir in $PATH /usr/ucb; do
616
      IFS="$lt_save_ifs"
617
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
618
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
619
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
620
         test "X$echo_testing_string" = "X$echo_test_string"; then
621
        ECHO="$dir/echo"
622
        break
623
      fi
624
    done
625 19 jeremybenn
    IFS="$lt_save_ifs"
626
 
627 82 jeremybenn
    if test "X$ECHO" = Xecho; then
628
      # We didn't find a better echo, so look for alternatives.
629
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
630
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
631
         test "X$echo_testing_string" = "X$echo_test_string"; then
632
        # This shell has a builtin print -r that does the trick.
633
        ECHO='print -r'
634
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
635
           test "X$CONFIG_SHELL" != X/bin/ksh; then
636
        # If we have ksh, try running configure again with it.
637
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
638
        export ORIGINAL_CONFIG_SHELL
639
        CONFIG_SHELL=/bin/ksh
640
        export CONFIG_SHELL
641
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
642
      else
643
        # Try using printf.
644
        ECHO='printf %s\n'
645
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
646
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
647 19 jeremybenn
           test "X$echo_testing_string" = "X$echo_test_string"; then
648 82 jeremybenn
          # Cool, printf works
649
          :
650
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651
             test "X$echo_testing_string" = 'X\t' &&
652
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653
             test "X$echo_testing_string" = "X$echo_test_string"; then
654
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
655
          export CONFIG_SHELL
656
          SHELL="$CONFIG_SHELL"
657
          export SHELL
658
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
659
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
660
             test "X$echo_testing_string" = 'X\t' &&
661
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
662
             test "X$echo_testing_string" = "X$echo_test_string"; then
663
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
664
        else
665
          # maybe with a smaller string...
666
          prev=:
667 19 jeremybenn
 
668 82 jeremybenn
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
669
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
670
            then
671
              break
672
            fi
673
            prev="$cmd"
674
          done
675
 
676
          if test "$prev" != 'sed 50q "$0"'; then
677
            echo_test_string=`eval $prev`
678
            export echo_test_string
679
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
680
          else
681
            # Oops.  We lost completely, so just stick with echo.
682
            ECHO=echo
683 19 jeremybenn
          fi
684 82 jeremybenn
        fi
685 19 jeremybenn
      fi
686
    fi
687
  fi
688
fi
689
 
690
# Copy echo and quote the copy suitably for passing to libtool from
691
# the Makefile, instead of quoting the original, which is used later.
692 82 jeremybenn
lt_ECHO=$ECHO
693
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
694
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
695 19 jeremybenn
fi
696
 
697
 
698
 
699
 
700 538 julius
exec 7<&0 &1
701 19 jeremybenn
 
702
# Name of the host.
703
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
704
# so uname gets run too.
705
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
706
 
707
#
708
# Initializations.
709
#
710
ac_default_prefix=/usr/local
711
ac_clean_files=
712
ac_config_libobj_dir=.
713
LIBOBJS=
714
cross_compiling=no
715
subdirs=
716
MFLAGS=
717
MAKEFLAGS=
718
 
719
# Identity of this package.
720
PACKAGE_NAME='or1ksim'
721
PACKAGE_TARNAME='or1ksim'
722 532 jeremybenn
PACKAGE_VERSION='2011-04-28'
723
PACKAGE_STRING='or1ksim 2011-04-28'
724 19 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
725 346 jeremybenn
PACKAGE_URL=''
726 19 jeremybenn
 
727
# Factoring default headers for most tests.
728
ac_includes_default="\
729
#include 
730
#ifdef HAVE_SYS_TYPES_H
731
# include 
732
#endif
733
#ifdef HAVE_SYS_STAT_H
734
# include 
735
#endif
736
#ifdef STDC_HEADERS
737
# include 
738
# include 
739
#else
740
# ifdef HAVE_STDLIB_H
741
#  include 
742
# endif
743
#endif
744
#ifdef HAVE_STRING_H
745
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
746
#  include 
747
# endif
748
# include 
749
#endif
750
#ifdef HAVE_STRINGS_H
751
# include 
752
#endif
753
#ifdef HAVE_INTTYPES_H
754
# include 
755
#endif
756
#ifdef HAVE_STDINT_H
757
# include 
758
#endif
759
#ifdef HAVE_UNISTD_H
760
# include 
761
#endif"
762
 
763 91 jeremybenn
ac_unique_file="cpu/or32/execute.c"
764
enable_option_checking=no
765 82 jeremybenn
ac_subst_vars='am__EXEEXT_FALSE
766
am__EXEEXT_TRUE
767
LTLIBOBJS
768
INCLUDES
769
TERMCAP_LIB
770
SUMVERSION
771
ARFLAGS
772
LOCAL_DEFS
773
LOCAL_LDFLAGS
774
LOCAL_CFLAGS
775
BUILD_DIR
776 96 jeremybenn
RUNTESTDEFAULTFLAGS
777 90 jeremybenn
DEJAGNU
778 82 jeremybenn
DYNAMIC_EXECUTION_FALSE
779
DYNAMIC_EXECUTION_TRUE
780
GENERATE_NEEDED_FALSE
781
GENERATE_NEEDED_TRUE
782
DEBUGFLAGS
783
USE_ARGDATE_FALSE
784
USE_ARGDATE_TRUE
785
USE_ARGREX_FALSE
786
USE_ARGREX_TRUE
787
USE_SYS_GETOPTLONG_FALSE
788
USE_SYS_GETOPTLONG_TRUE
789
POW_LIB
790
LIBOBJS
791
am__fastdepCCAS_FALSE
792
am__fastdepCCAS_TRUE
793
CCASDEPMODE
794
CCASFLAGS
795
CCAS
796
CPU_ARCH
797
am__fastdepCC_FALSE
798
am__fastdepCC_TRUE
799
CCDEPMODE
800
AMDEPBACKSLASH
801
AMDEP_FALSE
802
AMDEP_TRUE
803
am__quote
804
am__include
805
DEPDIR
806
am__untar
807
am__tar
808
AMTAR
809
am__leading_dot
810
SET_MAKE
811
AWK
812
mkdir_p
813
MKDIR_P
814
INSTALL_STRIP_PROGRAM
815
install_sh
816
MAKEINFO
817
AUTOHEADER
818
AUTOMAKE
819
AUTOCONF
820
ACLOCAL
821
VERSION
822
PACKAGE
823
CYGPATH_W
824
am__isrc
825
INSTALL_DATA
826
INSTALL_SCRIPT
827
INSTALL_PROGRAM
828
OTOOL64
829
OTOOL
830
LIPO
831
NMEDIT
832
DSYMUTIL
833
lt_ECHO
834 19 jeremybenn
RANLIB
835
STRIP
836 82 jeremybenn
AR
837
OBJDUMP
838
LN_S
839
NM
840
ac_ct_DUMPBIN
841
DUMPBIN
842
LD
843
FGREP
844
SED
845 19 jeremybenn
LIBTOOL
846 82 jeremybenn
target_os
847
target_vendor
848
target_cpu
849
target
850
host_os
851
host_vendor
852
host_cpu
853
host
854
build_os
855
build_vendor
856
build_cpu
857
build
858
subdirs
859 91 jeremybenn
EGREP
860
GREP
861
CPP
862
OBJEXT
863
EXEEXT
864
ac_ct_CC
865
CPPFLAGS
866
LDFLAGS
867
CFLAGS
868
CC
869 82 jeremybenn
target_alias
870
host_alias
871
build_alias
872
LIBS
873
ECHO_T
874
ECHO_N
875
ECHO_C
876
DEFS
877
mandir
878
localedir
879
libdir
880
psdir
881
pdfdir
882
dvidir
883
htmldir
884
infodir
885
docdir
886
oldincludedir
887
includedir
888
localstatedir
889
sharedstatedir
890
sysconfdir
891
datadir
892
datarootdir
893
libexecdir
894
sbindir
895
bindir
896
program_transform_name
897
prefix
898
exec_prefix
899 346 jeremybenn
PACKAGE_URL
900 82 jeremybenn
PACKAGE_BUGREPORT
901
PACKAGE_STRING
902
PACKAGE_VERSION
903
PACKAGE_TARNAME
904
PACKAGE_NAME
905
PATH_SEPARATOR
906
SHELL'
907 19 jeremybenn
ac_subst_files=''
908 82 jeremybenn
ac_user_opts='
909
enable_option_checking
910
enable_shared
911
enable_static
912
with_pic
913
enable_fast_install
914
with_gnu_ld
915
enable_libtool_lock
916
enable_dependency_tracking
917
enable_profiling
918
enable_execution
919
enable_ethphy
920 127 jeremybenn
enable_unsigned_xori
921 82 jeremybenn
enable_range_stats
922
enable_debug
923
'
924 19 jeremybenn
      ac_precious_vars='build_alias
925
host_alias
926
target_alias
927
CC
928
CFLAGS
929
LDFLAGS
930
LIBS
931
CPPFLAGS
932
CPP
933 82 jeremybenn
CCAS
934
CCASFLAGS'
935 90 jeremybenn
ac_subdirs_all='testsuite/test-code-or1k'
936 19 jeremybenn
 
937
# Initialize some variables set by options.
938
ac_init_help=
939
ac_init_version=false
940 82 jeremybenn
ac_unrecognized_opts=
941
ac_unrecognized_sep=
942 19 jeremybenn
# The variables have the same names as the options, with
943
# dashes changed to underlines.
944
cache_file=/dev/null
945
exec_prefix=NONE
946
no_create=
947
no_recursion=
948
prefix=NONE
949
program_prefix=NONE
950
program_suffix=NONE
951
program_transform_name=s,x,x,
952
silent=
953
site=
954
srcdir=
955
verbose=
956
x_includes=NONE
957
x_libraries=NONE
958
 
959
# Installation directory options.
960
# These are left unexpanded so users can "make install exec_prefix=/foo"
961
# and all the variables that are supposed to be based on exec_prefix
962
# by default will actually change.
963
# Use braces instead of parens because sh, perl, etc. also accept them.
964
# (The list follows the same order as the GNU Coding Standards.)
965
bindir='${exec_prefix}/bin'
966
sbindir='${exec_prefix}/sbin'
967
libexecdir='${exec_prefix}/libexec'
968
datarootdir='${prefix}/share'
969
datadir='${datarootdir}'
970
sysconfdir='${prefix}/etc'
971
sharedstatedir='${prefix}/com'
972
localstatedir='${prefix}/var'
973
includedir='${prefix}/include'
974
oldincludedir='/usr/include'
975
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976
infodir='${datarootdir}/info'
977
htmldir='${docdir}'
978
dvidir='${docdir}'
979
pdfdir='${docdir}'
980
psdir='${docdir}'
981
libdir='${exec_prefix}/lib'
982
localedir='${datarootdir}/locale'
983
mandir='${datarootdir}/man'
984
 
985
ac_prev=
986
ac_dashdash=
987
for ac_option
988
do
989
  # If the previous option needs an argument, assign it.
990
  if test -n "$ac_prev"; then
991
    eval $ac_prev=\$ac_option
992
    ac_prev=
993
    continue
994
  fi
995
 
996
  case $ac_option in
997
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998
  *)    ac_optarg=yes ;;
999
  esac
1000
 
1001
  # Accept the important Cygnus configure options, so we can diagnose typos.
1002
 
1003
  case $ac_dashdash$ac_option in
1004
  --)
1005
    ac_dashdash=yes ;;
1006
 
1007
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008
    ac_prev=bindir ;;
1009
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010
    bindir=$ac_optarg ;;
1011
 
1012
  -build | --build | --buil | --bui | --bu)
1013
    ac_prev=build_alias ;;
1014
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015
    build_alias=$ac_optarg ;;
1016
 
1017
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1018
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019
    ac_prev=cache_file ;;
1020
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022
    cache_file=$ac_optarg ;;
1023
 
1024
  --config-cache | -C)
1025
    cache_file=config.cache ;;
1026
 
1027
  -datadir | --datadir | --datadi | --datad)
1028
    ac_prev=datadir ;;
1029
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030
    datadir=$ac_optarg ;;
1031
 
1032
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033
  | --dataroo | --dataro | --datar)
1034
    ac_prev=datarootdir ;;
1035
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037
    datarootdir=$ac_optarg ;;
1038
 
1039
  -disable-* | --disable-*)
1040 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 19 jeremybenn
    # Reject names that are not valid shell variable names.
1042 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 346 jeremybenn
      as_fn_error "invalid feature name: $ac_useropt"
1044 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1045
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046
    case $ac_user_opts in
1047
      *"
1048
"enable_$ac_useropt"
1049
"*) ;;
1050
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051
         ac_unrecognized_sep=', ';;
1052
    esac
1053
    eval enable_$ac_useropt=no ;;
1054 19 jeremybenn
 
1055
  -docdir | --docdir | --docdi | --doc | --do)
1056
    ac_prev=docdir ;;
1057
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058
    docdir=$ac_optarg ;;
1059
 
1060
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061
    ac_prev=dvidir ;;
1062
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063
    dvidir=$ac_optarg ;;
1064
 
1065
  -enable-* | --enable-*)
1066 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 19 jeremybenn
    # Reject names that are not valid shell variable names.
1068 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 346 jeremybenn
      as_fn_error "invalid feature name: $ac_useropt"
1070 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1071
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072
    case $ac_user_opts in
1073
      *"
1074
"enable_$ac_useropt"
1075
"*) ;;
1076
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077
         ac_unrecognized_sep=', ';;
1078
    esac
1079
    eval enable_$ac_useropt=\$ac_optarg ;;
1080 19 jeremybenn
 
1081
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083
  | --exec | --exe | --ex)
1084
    ac_prev=exec_prefix ;;
1085
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087
  | --exec=* | --exe=* | --ex=*)
1088
    exec_prefix=$ac_optarg ;;
1089
 
1090
  -gas | --gas | --ga | --g)
1091
    # Obsolete; use --with-gas.
1092
    with_gas=yes ;;
1093
 
1094
  -help | --help | --hel | --he | -h)
1095
    ac_init_help=long ;;
1096
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097
    ac_init_help=recursive ;;
1098
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099
    ac_init_help=short ;;
1100
 
1101
  -host | --host | --hos | --ho)
1102
    ac_prev=host_alias ;;
1103
  -host=* | --host=* | --hos=* | --ho=*)
1104
    host_alias=$ac_optarg ;;
1105
 
1106
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107
    ac_prev=htmldir ;;
1108
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109
  | --ht=*)
1110
    htmldir=$ac_optarg ;;
1111
 
1112
  -includedir | --includedir | --includedi | --included | --include \
1113
  | --includ | --inclu | --incl | --inc)
1114
    ac_prev=includedir ;;
1115
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1117
    includedir=$ac_optarg ;;
1118
 
1119
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1120
    ac_prev=infodir ;;
1121
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122
    infodir=$ac_optarg ;;
1123
 
1124
  -libdir | --libdir | --libdi | --libd)
1125
    ac_prev=libdir ;;
1126
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127
    libdir=$ac_optarg ;;
1128
 
1129
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130
  | --libexe | --libex | --libe)
1131
    ac_prev=libexecdir ;;
1132
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133
  | --libexe=* | --libex=* | --libe=*)
1134
    libexecdir=$ac_optarg ;;
1135
 
1136
  -localedir | --localedir | --localedi | --localed | --locale)
1137
    ac_prev=localedir ;;
1138
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139
    localedir=$ac_optarg ;;
1140
 
1141
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1142
  | --localstate | --localstat | --localsta | --localst | --locals)
1143
    ac_prev=localstatedir ;;
1144
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146
    localstatedir=$ac_optarg ;;
1147
 
1148
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149
    ac_prev=mandir ;;
1150
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151
    mandir=$ac_optarg ;;
1152
 
1153
  -nfp | --nfp | --nf)
1154
    # Obsolete; use --without-fp.
1155
    with_fp=no ;;
1156
 
1157
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158
  | --no-cr | --no-c | -n)
1159
    no_create=yes ;;
1160
 
1161
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163
    no_recursion=yes ;;
1164
 
1165
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167
  | --oldin | --oldi | --old | --ol | --o)
1168
    ac_prev=oldincludedir ;;
1169
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172
    oldincludedir=$ac_optarg ;;
1173
 
1174
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175
    ac_prev=prefix ;;
1176
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177
    prefix=$ac_optarg ;;
1178
 
1179
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180
  | --program-pre | --program-pr | --program-p)
1181
    ac_prev=program_prefix ;;
1182
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184
    program_prefix=$ac_optarg ;;
1185
 
1186
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187
  | --program-suf | --program-su | --program-s)
1188
    ac_prev=program_suffix ;;
1189
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191
    program_suffix=$ac_optarg ;;
1192
 
1193
  -program-transform-name | --program-transform-name \
1194
  | --program-transform-nam | --program-transform-na \
1195
  | --program-transform-n | --program-transform- \
1196
  | --program-transform | --program-transfor \
1197
  | --program-transfo | --program-transf \
1198
  | --program-trans | --program-tran \
1199
  | --progr-tra | --program-tr | --program-t)
1200
    ac_prev=program_transform_name ;;
1201
  -program-transform-name=* | --program-transform-name=* \
1202
  | --program-transform-nam=* | --program-transform-na=* \
1203
  | --program-transform-n=* | --program-transform-=* \
1204
  | --program-transform=* | --program-transfor=* \
1205
  | --program-transfo=* | --program-transf=* \
1206
  | --program-trans=* | --program-tran=* \
1207
  | --progr-tra=* | --program-tr=* | --program-t=*)
1208
    program_transform_name=$ac_optarg ;;
1209
 
1210
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211
    ac_prev=pdfdir ;;
1212
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213
    pdfdir=$ac_optarg ;;
1214
 
1215
  -psdir | --psdir | --psdi | --psd | --ps)
1216
    ac_prev=psdir ;;
1217
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218
    psdir=$ac_optarg ;;
1219
 
1220
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221
  | -silent | --silent | --silen | --sile | --sil)
1222
    silent=yes ;;
1223
 
1224
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225
    ac_prev=sbindir ;;
1226
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227
  | --sbi=* | --sb=*)
1228
    sbindir=$ac_optarg ;;
1229
 
1230
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232
  | --sharedst | --shareds | --shared | --share | --shar \
1233
  | --sha | --sh)
1234
    ac_prev=sharedstatedir ;;
1235
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238
  | --sha=* | --sh=*)
1239
    sharedstatedir=$ac_optarg ;;
1240
 
1241
  -site | --site | --sit)
1242
    ac_prev=site ;;
1243
  -site=* | --site=* | --sit=*)
1244
    site=$ac_optarg ;;
1245
 
1246
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247
    ac_prev=srcdir ;;
1248
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249
    srcdir=$ac_optarg ;;
1250
 
1251
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252
  | --syscon | --sysco | --sysc | --sys | --sy)
1253
    ac_prev=sysconfdir ;;
1254
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256
    sysconfdir=$ac_optarg ;;
1257
 
1258
  -target | --target | --targe | --targ | --tar | --ta | --t)
1259
    ac_prev=target_alias ;;
1260
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261
    target_alias=$ac_optarg ;;
1262
 
1263
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264
    verbose=yes ;;
1265
 
1266
  -version | --version | --versio | --versi | --vers | -V)
1267
    ac_init_version=: ;;
1268
 
1269
  -with-* | --with-*)
1270 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 19 jeremybenn
    # Reject names that are not valid shell variable names.
1272 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 346 jeremybenn
      as_fn_error "invalid package name: $ac_useropt"
1274 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1275
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276
    case $ac_user_opts in
1277
      *"
1278
"with_$ac_useropt"
1279
"*) ;;
1280
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281
         ac_unrecognized_sep=', ';;
1282
    esac
1283
    eval with_$ac_useropt=\$ac_optarg ;;
1284 19 jeremybenn
 
1285
  -without-* | --without-*)
1286 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 19 jeremybenn
    # Reject names that are not valid shell variable names.
1288 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 346 jeremybenn
      as_fn_error "invalid package name: $ac_useropt"
1290 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1291
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292
    case $ac_user_opts in
1293
      *"
1294
"with_$ac_useropt"
1295
"*) ;;
1296
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297
         ac_unrecognized_sep=', ';;
1298
    esac
1299
    eval with_$ac_useropt=no ;;
1300 19 jeremybenn
 
1301
  --x)
1302
    # Obsolete; use --with-x.
1303
    with_x=yes ;;
1304
 
1305
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306
  | --x-incl | --x-inc | --x-in | --x-i)
1307
    ac_prev=x_includes ;;
1308
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310
    x_includes=$ac_optarg ;;
1311
 
1312
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314
    ac_prev=x_libraries ;;
1315
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317
    x_libraries=$ac_optarg ;;
1318
 
1319 346 jeremybenn
  -*) as_fn_error "unrecognized option: \`$ac_option'
1320
Try \`$0 --help' for more information."
1321 19 jeremybenn
    ;;
1322
 
1323
  *=*)
1324
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325
    # Reject names that are not valid shell variable names.
1326 346 jeremybenn
    case $ac_envvar in #(
1327
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1328
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1329
    esac
1330 19 jeremybenn
    eval $ac_envvar=\$ac_optarg
1331
    export $ac_envvar ;;
1332
 
1333
  *)
1334
    # FIXME: should be removed in autoconf 3.0.
1335 82 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 82 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 19 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339
    ;;
1340
 
1341
  esac
1342
done
1343
 
1344
if test -n "$ac_prev"; then
1345
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 346 jeremybenn
  as_fn_error "missing argument to $ac_option"
1347 19 jeremybenn
fi
1348
 
1349 82 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1350
  case $enable_option_checking in
1351
    no) ;;
1352 346 jeremybenn
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353 82 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354
  esac
1355
fi
1356
 
1357
# Check all directory arguments for consistency.
1358 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359
                datadir sysconfdir sharedstatedir localstatedir includedir \
1360
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361
                libdir localedir mandir
1362
do
1363
  eval ac_val=\$$ac_var
1364 82 jeremybenn
  # Remove trailing slashes.
1365 19 jeremybenn
  case $ac_val in
1366 82 jeremybenn
    */ )
1367
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368
      eval $ac_var=\$ac_val;;
1369
  esac
1370
  # Be sure to have absolute directory names.
1371
  case $ac_val in
1372 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1373
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374
  esac
1375 346 jeremybenn
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1376 19 jeremybenn
done
1377
 
1378
# There might be people who depend on the old broken behavior: `$host'
1379
# used to hold the argument of --host etc.
1380
# FIXME: To remove some day.
1381
build=$build_alias
1382
host=$host_alias
1383
target=$target_alias
1384
 
1385
# FIXME: To remove some day.
1386
if test "x$host_alias" != x; then
1387
  if test "x$build_alias" = x; then
1388
    cross_compiling=maybe
1389 82 jeremybenn
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390 19 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1391
  elif test "x$build_alias" != "x$host_alias"; then
1392
    cross_compiling=yes
1393
  fi
1394
fi
1395
 
1396
ac_tool_prefix=
1397
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398
 
1399
test "$silent" = yes && exec 6>/dev/null
1400
 
1401
 
1402
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403
ac_ls_di=`ls -di .` &&
1404
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405 346 jeremybenn
  as_fn_error "working directory cannot be determined"
1406 19 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 346 jeremybenn
  as_fn_error "pwd does not report name of working directory"
1408 19 jeremybenn
 
1409
 
1410
# Find the source files, if location was not specified.
1411
if test -z "$srcdir"; then
1412
  ac_srcdir_defaulted=yes
1413
  # Try the directory containing this script, then the parent directory.
1414 82 jeremybenn
  ac_confdir=`$as_dirname -- "$as_myself" ||
1415
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416
         X"$as_myself" : 'X\(//\)[^/]' \| \
1417
         X"$as_myself" : 'X\(//\)$' \| \
1418
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419
$as_echo X"$as_myself" |
1420 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421
            s//\1/
1422
            q
1423
          }
1424
          /^X\(\/\/\)[^/].*/{
1425
            s//\1/
1426
            q
1427
          }
1428
          /^X\(\/\/\)$/{
1429
            s//\1/
1430
            q
1431
          }
1432
          /^X\(\/\).*/{
1433
            s//\1/
1434
            q
1435
          }
1436
          s/.*/./; q'`
1437
  srcdir=$ac_confdir
1438
  if test ! -r "$srcdir/$ac_unique_file"; then
1439
    srcdir=..
1440
  fi
1441
else
1442
  ac_srcdir_defaulted=no
1443
fi
1444
if test ! -r "$srcdir/$ac_unique_file"; then
1445
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446 346 jeremybenn
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1447 19 jeremybenn
fi
1448
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449
ac_abs_confdir=`(
1450 346 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451 19 jeremybenn
        pwd)`
1452
# When building in place, set srcdir=.
1453
if test "$ac_abs_confdir" = "$ac_pwd"; then
1454
  srcdir=.
1455
fi
1456
# Remove unnecessary trailing slashes from srcdir.
1457
# Double slashes in file names in object file debugging info
1458
# mess up M-x gdb in Emacs.
1459
case $srcdir in
1460
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461
esac
1462
for ac_var in $ac_precious_vars; do
1463
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464
  eval ac_env_${ac_var}_value=\$${ac_var}
1465
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467
done
1468
 
1469
#
1470
# Report the --help message.
1471
#
1472
if test "$ac_init_help" = "long"; then
1473
  # Omit some internal or obsolete options to make the list less imposing.
1474
  # This message is too long to be a string in the A/UX 3.1 sh.
1475
  cat <<_ACEOF
1476 532 jeremybenn
\`configure' configures or1ksim 2011-04-28 to adapt to many kinds of systems.
1477 19 jeremybenn
 
1478
Usage: $0 [OPTION]... [VAR=VALUE]...
1479
 
1480
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481
VAR=VALUE.  See below for descriptions of some of the useful variables.
1482
 
1483
Defaults for the options are specified in brackets.
1484
 
1485
Configuration:
1486
  -h, --help              display this help and exit
1487
      --help=short        display options specific to this package
1488
      --help=recursive    display the short help of all the included packages
1489
  -V, --version           display version information and exit
1490
  -q, --quiet, --silent   do not print \`checking...' messages
1491
      --cache-file=FILE   cache test results in FILE [disabled]
1492
  -C, --config-cache      alias for \`--cache-file=config.cache'
1493
  -n, --no-create         do not create output files
1494
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1495
 
1496
Installation directories:
1497
  --prefix=PREFIX         install architecture-independent files in PREFIX
1498 82 jeremybenn
                          [$ac_default_prefix]
1499 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1500 82 jeremybenn
                          [PREFIX]
1501 19 jeremybenn
 
1502
By default, \`make install' will install all the files in
1503
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1504
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505
for instance \`--prefix=\$HOME'.
1506
 
1507
For better control, use the options below.
1508
 
1509
Fine tuning of the installation directories:
1510 82 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1511
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1512
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1513
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1514
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1515
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1516
  --libdir=DIR            object code libraries [EPREFIX/lib]
1517
  --includedir=DIR        C header files [PREFIX/include]
1518
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1519
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1520
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1521
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1522
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1523
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1524
  --docdir=DIR            documentation root [DATAROOTDIR/doc/or1ksim]
1525
  --htmldir=DIR           html documentation [DOCDIR]
1526
  --dvidir=DIR            dvi documentation [DOCDIR]
1527
  --pdfdir=DIR            pdf documentation [DOCDIR]
1528
  --psdir=DIR             ps documentation [DOCDIR]
1529 19 jeremybenn
_ACEOF
1530
 
1531
  cat <<\_ACEOF
1532
 
1533
Program names:
1534
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1535
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1536
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1537
 
1538
System types:
1539
  --build=BUILD     configure for building on BUILD [guessed]
1540
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1541
  --target=TARGET   configure for building compilers for TARGET [HOST]
1542
_ACEOF
1543
fi
1544
 
1545
if test -n "$ac_init_help"; then
1546
  case $ac_init_help in
1547 532 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 2011-04-28:";;
1548 19 jeremybenn
   esac
1549
  cat <<\_ACEOF
1550
 
1551
Optional Features:
1552 82 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1553 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1554
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1555
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1556
  --enable-static[=PKGS]  build static libraries [default=yes]
1557
  --enable-fast-install[=PKGS]
1558
                          optimize for fast installation [default=yes]
1559
  --disable-libtool-lock  avoid locking (might break parallel builds)
1560
  --disable-dependency-tracking  speeds up one-time build
1561
  --enable-dependency-tracking   do not reject slow dependency extractors
1562
  --enable-profiling      generate profiling code
1563
  --enable-execution Execution style to use (simple/complex/dynamic)
1564
  --enable-ethphy    compiles sim with ethernet phy support
1565 127 jeremybenn
  --enable-unsigned-xori    l.xori immediate operand treated as unsigned
1566 19 jeremybenn
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1567
  --enable-debug          enable library debugging symbols
1568
 
1569
Optional Packages:
1570
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1571
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1572
  --with-pic              try to use only PIC/non-PIC objects [default=use
1573
                          both]
1574 82 jeremybenn
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1575 19 jeremybenn
 
1576
Some influential environment variables:
1577
  CC          C compiler command
1578
  CFLAGS      C compiler flags
1579
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1580
              nonstandard directory 
1581
  LIBS        libraries to pass to the linker, e.g. -l
1582 538 julius
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1583 19 jeremybenn
              you have headers in a nonstandard directory 
1584
  CPP         C preprocessor
1585 82 jeremybenn
  CCAS        assembler compiler command (defaults to CC)
1586
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1587 19 jeremybenn
 
1588
Use these variables to override the choices made by `configure' or to help
1589
it to find libraries and programs with nonstandard names/locations.
1590
 
1591
Report bugs to .
1592
_ACEOF
1593
ac_status=$?
1594
fi
1595
 
1596
if test "$ac_init_help" = "recursive"; then
1597
  # If there are subdirs, report their specific --help.
1598
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599 82 jeremybenn
    test -d "$ac_dir" ||
1600
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601
      continue
1602 19 jeremybenn
    ac_builddir=.
1603
 
1604
case "$ac_dir" in
1605
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606
*)
1607 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1609 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 19 jeremybenn
  case $ac_top_builddir_sub in
1611
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613
  esac ;;
1614
esac
1615
ac_abs_top_builddir=$ac_pwd
1616
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617
# for backward compatibility:
1618
ac_top_builddir=$ac_top_build_prefix
1619
 
1620
case $srcdir in
1621
  .)  # We are building in place.
1622
    ac_srcdir=.
1623
    ac_top_srcdir=$ac_top_builddir_sub
1624
    ac_abs_top_srcdir=$ac_pwd ;;
1625
  [\\/]* | ?:[\\/]* )  # Absolute name.
1626
    ac_srcdir=$srcdir$ac_dir_suffix;
1627
    ac_top_srcdir=$srcdir
1628
    ac_abs_top_srcdir=$srcdir ;;
1629
  *) # Relative name.
1630
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1632
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633
esac
1634
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635
 
1636
    cd "$ac_dir" || { ac_status=$?; continue; }
1637
    # Check for guested configure.
1638
    if test -f "$ac_srcdir/configure.gnu"; then
1639
      echo &&
1640
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641
    elif test -f "$ac_srcdir/configure"; then
1642
      echo &&
1643
      $SHELL "$ac_srcdir/configure" --help=recursive
1644
    else
1645 82 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 19 jeremybenn
    fi || ac_status=$?
1647
    cd "$ac_pwd" || { ac_status=$?; break; }
1648
  done
1649
fi
1650
 
1651
test -n "$ac_init_help" && exit $ac_status
1652
if $ac_init_version; then
1653
  cat <<\_ACEOF
1654 532 jeremybenn
or1ksim configure 2011-04-28
1655 538 julius
generated by GNU Autoconf 2.64
1656 19 jeremybenn
 
1657 346 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
1658 19 jeremybenn
This configure script is free software; the Free Software Foundation
1659
gives unlimited permission to copy, distribute and modify it.
1660 82 jeremybenn
 
1661
Copyright (C) 1999-2008 OpenCores
1662
Copyright (C) 2008, 2010 Embecosm Limited
1663
 
1664
Contributor Jeremy Bennett 
1665
 
1666
This file is part of OpenRISC 1000 Architectural Simulator.
1667
 
1668
This program is free software; you can redistribute it and/or modify it
1669
under the terms of the GNU General Public License as published by the Free
1670
Software Foundation; either version 3 of the License, or (at your option)
1671
any later version.
1672
 
1673
This program is distributed in the hope that it will be useful, but WITHOUT
1674
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1675
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1676
more details.
1677
 
1678
You should have received a copy of the GNU General Public License along
1679
with this program.  If not, see .
1680 19 jeremybenn
_ACEOF
1681
  exit
1682
fi
1683 346 jeremybenn
 
1684
## ------------------------ ##
1685
## Autoconf initialization. ##
1686
## ------------------------ ##
1687
 
1688
# ac_fn_c_try_compile LINENO
1689
# --------------------------
1690
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1691
ac_fn_c_try_compile ()
1692
{
1693
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694
  rm -f conftest.$ac_objext
1695
  if { { ac_try="$ac_compile"
1696
case "(($ac_try" in
1697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698
  *) ac_try_echo=$ac_try;;
1699
esac
1700
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701
$as_echo "$ac_try_echo"; } >&5
1702
  (eval "$ac_compile") 2>conftest.err
1703
  ac_status=$?
1704
  if test -s conftest.err; then
1705
    grep -v '^ *+' conftest.err >conftest.er1
1706
    cat conftest.er1 >&5
1707
    mv -f conftest.er1 conftest.err
1708
  fi
1709
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710
  test $ac_status = 0; } && {
1711
         test -z "$ac_c_werror_flag" ||
1712
         test ! -s conftest.err
1713
       } && test -s conftest.$ac_objext; then :
1714
  ac_retval=0
1715
else
1716
  $as_echo "$as_me: failed program was:" >&5
1717
sed 's/^/| /' conftest.$ac_ext >&5
1718
 
1719
        ac_retval=1
1720
fi
1721
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 538 julius
  return $ac_retval
1723 346 jeremybenn
 
1724
} # ac_fn_c_try_compile
1725
 
1726
# ac_fn_c_try_cpp LINENO
1727
# ----------------------
1728
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729
ac_fn_c_try_cpp ()
1730
{
1731
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1733
case "(($ac_try" in
1734
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735
  *) ac_try_echo=$ac_try;;
1736
esac
1737
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738
$as_echo "$ac_try_echo"; } >&5
1739
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740
  ac_status=$?
1741
  if test -s conftest.err; then
1742
    grep -v '^ *+' conftest.err >conftest.er1
1743
    cat conftest.er1 >&5
1744
    mv -f conftest.er1 conftest.err
1745
  fi
1746
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747
  test $ac_status = 0; } >/dev/null && {
1748
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749
         test ! -s conftest.err
1750
       }; then :
1751
  ac_retval=0
1752
else
1753
  $as_echo "$as_me: failed program was:" >&5
1754
sed 's/^/| /' conftest.$ac_ext >&5
1755
 
1756
    ac_retval=1
1757
fi
1758
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 538 julius
  return $ac_retval
1760 346 jeremybenn
 
1761
} # ac_fn_c_try_cpp
1762
 
1763
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1764
# -------------------------------------------------------
1765
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1766
# the include files in INCLUDES and setting the cache variable VAR
1767
# accordingly.
1768
ac_fn_c_check_header_mongrel ()
1769
{
1770
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773
$as_echo_n "checking for $2... " >&6; }
1774
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1775
  $as_echo_n "(cached) " >&6
1776
fi
1777
eval ac_res=\$$3
1778
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779
$as_echo "$ac_res" >&6; }
1780
else
1781
  # Is the header compilable?
1782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1783
$as_echo_n "checking $2 usability... " >&6; }
1784
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785
/* end confdefs.h.  */
1786
$4
1787
#include <$2>
1788
_ACEOF
1789
if ac_fn_c_try_compile "$LINENO"; then :
1790
  ac_header_compiler=yes
1791
else
1792
  ac_header_compiler=no
1793
fi
1794
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1796
$as_echo "$ac_header_compiler" >&6; }
1797
 
1798
# Is the header present?
1799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1800
$as_echo_n "checking $2 presence... " >&6; }
1801
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802
/* end confdefs.h.  */
1803
#include <$2>
1804
_ACEOF
1805
if ac_fn_c_try_cpp "$LINENO"; then :
1806
  ac_header_preproc=yes
1807
else
1808
  ac_header_preproc=no
1809
fi
1810
rm -f conftest.err conftest.$ac_ext
1811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1812
$as_echo "$ac_header_preproc" >&6; }
1813
 
1814
# So?  What about this header?
1815
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816
  yes:no: )
1817
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1818
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1819
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821
    ;;
1822
  no:yes:* )
1823
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1824
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1825
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1826
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1827
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1828
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1829
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1830
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1831
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833
( cat <<\_ASBOX
1834
## ------------------------------------- ##
1835
## Report this to openrisc@opencores.org ##
1836
## ------------------------------------- ##
1837
_ASBOX
1838
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1839
    ;;
1840
esac
1841
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842
$as_echo_n "checking for $2... " >&6; }
1843
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1844
  $as_echo_n "(cached) " >&6
1845
else
1846
  eval "$3=\$ac_header_compiler"
1847
fi
1848
eval ac_res=\$$3
1849
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850
$as_echo "$ac_res" >&6; }
1851
fi
1852
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853
 
1854
} # ac_fn_c_check_header_mongrel
1855
 
1856
# ac_fn_c_try_run LINENO
1857
# ----------------------
1858
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859
# that executables *can* be run.
1860
ac_fn_c_try_run ()
1861
{
1862
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863
  if { { ac_try="$ac_link"
1864
case "(($ac_try" in
1865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866
  *) ac_try_echo=$ac_try;;
1867
esac
1868
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869
$as_echo "$ac_try_echo"; } >&5
1870
  (eval "$ac_link") 2>&5
1871
  ac_status=$?
1872
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874
  { { case "(($ac_try" in
1875
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876
  *) ac_try_echo=$ac_try;;
1877
esac
1878
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879
$as_echo "$ac_try_echo"; } >&5
1880
  (eval "$ac_try") 2>&5
1881
  ac_status=$?
1882
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883
  test $ac_status = 0; }; }; then :
1884
  ac_retval=0
1885
else
1886
  $as_echo "$as_me: program exited with status $ac_status" >&5
1887
       $as_echo "$as_me: failed program was:" >&5
1888
sed 's/^/| /' conftest.$ac_ext >&5
1889
 
1890
       ac_retval=$ac_status
1891
fi
1892
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894 538 julius
  return $ac_retval
1895 346 jeremybenn
 
1896
} # ac_fn_c_try_run
1897
 
1898
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899
# -------------------------------------------------------
1900
# Tests whether HEADER exists and can be compiled using the include files in
1901
# INCLUDES, setting the cache variable VAR accordingly.
1902
ac_fn_c_check_header_compile ()
1903
{
1904
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906
$as_echo_n "checking for $2... " >&6; }
1907
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908
  $as_echo_n "(cached) " >&6
1909
else
1910
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911
/* end confdefs.h.  */
1912
$4
1913
#include <$2>
1914
_ACEOF
1915
if ac_fn_c_try_compile "$LINENO"; then :
1916
  eval "$3=yes"
1917
else
1918
  eval "$3=no"
1919
fi
1920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921
fi
1922
eval ac_res=\$$3
1923
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924
$as_echo "$ac_res" >&6; }
1925
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926
 
1927
} # ac_fn_c_check_header_compile
1928
 
1929
# ac_fn_c_try_link LINENO
1930
# -----------------------
1931
# Try to link conftest.$ac_ext, and return whether this succeeded.
1932
ac_fn_c_try_link ()
1933
{
1934
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935
  rm -f conftest.$ac_objext conftest$ac_exeext
1936
  if { { ac_try="$ac_link"
1937
case "(($ac_try" in
1938
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939
  *) ac_try_echo=$ac_try;;
1940
esac
1941
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942
$as_echo "$ac_try_echo"; } >&5
1943
  (eval "$ac_link") 2>conftest.err
1944
  ac_status=$?
1945
  if test -s conftest.err; then
1946
    grep -v '^ *+' conftest.err >conftest.er1
1947
    cat conftest.er1 >&5
1948
    mv -f conftest.er1 conftest.err
1949
  fi
1950
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951
  test $ac_status = 0; } && {
1952
         test -z "$ac_c_werror_flag" ||
1953
         test ! -s conftest.err
1954
       } && test -s conftest$ac_exeext && {
1955
         test "$cross_compiling" = yes ||
1956
         $as_test_x conftest$ac_exeext
1957
       }; then :
1958
  ac_retval=0
1959
else
1960
  $as_echo "$as_me: failed program was:" >&5
1961
sed 's/^/| /' conftest.$ac_ext >&5
1962
 
1963
        ac_retval=1
1964
fi
1965
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1966
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1967
  # interfere with the next link command; also delete a directory that is
1968
  # left behind by Apple's compiler.  We do this before executing the actions.
1969
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971 538 julius
  return $ac_retval
1972 346 jeremybenn
 
1973
} # ac_fn_c_try_link
1974
 
1975
# ac_fn_c_check_func LINENO FUNC VAR
1976
# ----------------------------------
1977
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1978
ac_fn_c_check_func ()
1979
{
1980
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982
$as_echo_n "checking for $2... " >&6; }
1983
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1984
  $as_echo_n "(cached) " >&6
1985
else
1986
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987
/* end confdefs.h.  */
1988
/* Define $2 to an innocuous variant, in case  declares $2.
1989
   For example, HP-UX 11i  declares gettimeofday.  */
1990
#define $2 innocuous_$2
1991
 
1992
/* System header to define __stub macros and hopefully few prototypes,
1993
    which can conflict with char $2 (); below.
1994
    Prefer  to  if __STDC__ is defined, since
1995
     exists even on freestanding compilers.  */
1996
 
1997
#ifdef __STDC__
1998
# include 
1999
#else
2000
# include 
2001
#endif
2002
 
2003
#undef $2
2004
 
2005
/* Override any GCC internal prototype to avoid an error.
2006
   Use char because int might match the return type of a GCC
2007
   builtin and then its argument prototype would still apply.  */
2008
#ifdef __cplusplus
2009
extern "C"
2010
#endif
2011
char $2 ();
2012
/* The GNU C library defines this for functions which it implements
2013
    to always fail with ENOSYS.  Some functions are actually named
2014
    something starting with __ and the normal name is an alias.  */
2015
#if defined __stub_$2 || defined __stub___$2
2016
choke me
2017
#endif
2018
 
2019
int
2020
main ()
2021
{
2022
return $2 ();
2023
  ;
2024
  return 0;
2025
}
2026
_ACEOF
2027
if ac_fn_c_try_link "$LINENO"; then :
2028
  eval "$3=yes"
2029
else
2030
  eval "$3=no"
2031
fi
2032
rm -f core conftest.err conftest.$ac_objext \
2033
    conftest$ac_exeext conftest.$ac_ext
2034
fi
2035
eval ac_res=\$$3
2036
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037
$as_echo "$ac_res" >&6; }
2038
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039
 
2040
} # ac_fn_c_check_func
2041
 
2042
# ac_fn_c_check_decl LINENO SYMBOL VAR
2043
# ------------------------------------
2044
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2045
ac_fn_c_check_decl ()
2046
{
2047
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2049
$as_echo_n "checking whether $2 is declared... " >&6; }
2050
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2051
  $as_echo_n "(cached) " >&6
2052
else
2053
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054
/* end confdefs.h.  */
2055
$4
2056
int
2057
main ()
2058
{
2059
#ifndef $2
2060
  (void) $2;
2061
#endif
2062
 
2063
  ;
2064
  return 0;
2065
}
2066
_ACEOF
2067
if ac_fn_c_try_compile "$LINENO"; then :
2068
  eval "$3=yes"
2069
else
2070
  eval "$3=no"
2071
fi
2072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073
fi
2074
eval ac_res=\$$3
2075
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076
$as_echo "$ac_res" >&6; }
2077
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078
 
2079
} # ac_fn_c_check_decl
2080
 
2081
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2082
# -------------------------------------------
2083
# Tests whether TYPE exists after having included INCLUDES, setting cache
2084
# variable VAR accordingly.
2085
ac_fn_c_check_type ()
2086
{
2087
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089
$as_echo_n "checking for $2... " >&6; }
2090
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2091
  $as_echo_n "(cached) " >&6
2092
else
2093
  eval "$3=no"
2094
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095
/* end confdefs.h.  */
2096
$4
2097
int
2098
main ()
2099
{
2100
if (sizeof ($2))
2101
         return 0;
2102
  ;
2103
  return 0;
2104
}
2105
_ACEOF
2106
if ac_fn_c_try_compile "$LINENO"; then :
2107
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108
/* end confdefs.h.  */
2109
$4
2110
int
2111
main ()
2112
{
2113
if (sizeof (($2)))
2114
            return 0;
2115
  ;
2116
  return 0;
2117
}
2118
_ACEOF
2119
if ac_fn_c_try_compile "$LINENO"; then :
2120
 
2121
else
2122
  eval "$3=yes"
2123
fi
2124
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125
fi
2126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127
fi
2128
eval ac_res=\$$3
2129
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130
$as_echo "$ac_res" >&6; }
2131
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132
 
2133
} # ac_fn_c_check_type
2134
 
2135
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2136
# --------------------------------------------
2137
# Tries to find the compile-time value of EXPR in a program that includes
2138
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2139
# computed
2140
ac_fn_c_compute_int ()
2141
{
2142
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143
  if test "$cross_compiling" = yes; then
2144
    # Depending upon the size, compute the lo and hi bounds.
2145
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146
/* end confdefs.h.  */
2147
$4
2148
int
2149
main ()
2150
{
2151
static int test_array [1 - 2 * !(($2) >= 0)];
2152
test_array [0] = 0
2153
 
2154
  ;
2155
  return 0;
2156
}
2157
_ACEOF
2158
if ac_fn_c_try_compile "$LINENO"; then :
2159
  ac_lo=0 ac_mid=0
2160
  while :; do
2161
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162
/* end confdefs.h.  */
2163
$4
2164
int
2165
main ()
2166
{
2167
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2168
test_array [0] = 0
2169
 
2170
  ;
2171
  return 0;
2172
}
2173
_ACEOF
2174
if ac_fn_c_try_compile "$LINENO"; then :
2175
  ac_hi=$ac_mid; break
2176
else
2177
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2178
                        if test $ac_lo -le $ac_mid; then
2179
                          ac_lo= ac_hi=
2180
                          break
2181
                        fi
2182
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2183
fi
2184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185
  done
2186
else
2187
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188
/* end confdefs.h.  */
2189
$4
2190
int
2191
main ()
2192
{
2193
static int test_array [1 - 2 * !(($2) < 0)];
2194
test_array [0] = 0
2195
 
2196
  ;
2197
  return 0;
2198
}
2199
_ACEOF
2200
if ac_fn_c_try_compile "$LINENO"; then :
2201
  ac_hi=-1 ac_mid=-1
2202
  while :; do
2203
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204
/* end confdefs.h.  */
2205
$4
2206
int
2207
main ()
2208
{
2209
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2210
test_array [0] = 0
2211
 
2212
  ;
2213
  return 0;
2214
}
2215
_ACEOF
2216
if ac_fn_c_try_compile "$LINENO"; then :
2217
  ac_lo=$ac_mid; break
2218
else
2219
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2220
                        if test $ac_mid -le $ac_hi; then
2221
                          ac_lo= ac_hi=
2222
                          break
2223
                        fi
2224
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2225
fi
2226
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227
  done
2228
else
2229
  ac_lo= ac_hi=
2230
fi
2231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232
fi
2233
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234
# Binary search between lo and hi bounds.
2235
while test "x$ac_lo" != "x$ac_hi"; do
2236
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2237
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238
/* end confdefs.h.  */
2239
$4
2240
int
2241
main ()
2242
{
2243
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2244
test_array [0] = 0
2245
 
2246
  ;
2247
  return 0;
2248
}
2249
_ACEOF
2250
if ac_fn_c_try_compile "$LINENO"; then :
2251
  ac_hi=$ac_mid
2252
else
2253
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2254
fi
2255
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256
done
2257
case $ac_lo in #((
2258
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2259
'') ac_retval=1 ;;
2260
esac
2261
  else
2262
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263
/* end confdefs.h.  */
2264
$4
2265
static long int longval () { return $2; }
2266
static unsigned long int ulongval () { return $2; }
2267
#include 
2268
#include 
2269
int
2270
main ()
2271
{
2272
 
2273
  FILE *f = fopen ("conftest.val", "w");
2274
  if (! f)
2275
    return 1;
2276
  if (($2) < 0)
2277
    {
2278
      long int i = longval ();
2279
      if (i != ($2))
2280
        return 1;
2281
      fprintf (f, "%ld", i);
2282
    }
2283
  else
2284
    {
2285
      unsigned long int i = ulongval ();
2286
      if (i != ($2))
2287
        return 1;
2288
      fprintf (f, "%lu", i);
2289
    }
2290
  /* Do not output a trailing newline, as this causes \r\n confusion
2291
     on some platforms.  */
2292
  return ferror (f) || fclose (f) != 0;
2293
 
2294
  ;
2295
  return 0;
2296
}
2297
_ACEOF
2298
if ac_fn_c_try_run "$LINENO"; then :
2299
  echo >>conftest.val; read $3 
2300
else
2301
  ac_retval=1
2302
fi
2303
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2304
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2305
rm -f conftest.val
2306
 
2307
  fi
2308
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2309 538 julius
  return $ac_retval
2310 346 jeremybenn
 
2311
} # ac_fn_c_compute_int
2312 19 jeremybenn
cat >config.log <<_ACEOF
2313
This file contains any messages produced by compilers while
2314
running configure, to aid debugging if configure makes a mistake.
2315
 
2316 532 jeremybenn
It was created by or1ksim $as_me 2011-04-28, which was
2317 538 julius
generated by GNU Autoconf 2.64.  Invocation command line was
2318 19 jeremybenn
 
2319
  $ $0 $@
2320
 
2321
_ACEOF
2322
exec 5>>config.log
2323
{
2324
cat <<_ASUNAME
2325
## --------- ##
2326
## Platform. ##
2327
## --------- ##
2328
 
2329
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2330
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2331
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2332
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2333
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2334
 
2335
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2336
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2337
 
2338
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2339
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2340
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2341
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2342
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2343
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2344
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2345
 
2346
_ASUNAME
2347
 
2348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349
for as_dir in $PATH
2350
do
2351
  IFS=$as_save_IFS
2352
  test -z "$as_dir" && as_dir=.
2353 346 jeremybenn
    $as_echo "PATH: $as_dir"
2354
  done
2355 19 jeremybenn
IFS=$as_save_IFS
2356
 
2357
} >&5
2358
 
2359
cat >&5 <<_ACEOF
2360
 
2361
 
2362
## ----------- ##
2363
## Core tests. ##
2364
## ----------- ##
2365
 
2366
_ACEOF
2367
 
2368
 
2369
# Keep a trace of the command line.
2370
# Strip out --no-create and --no-recursion so they do not pile up.
2371
# Strip out --silent because we don't want to record it for future runs.
2372
# Also quote any args containing shell meta-characters.
2373
# Make two passes to allow for proper duplicate-argument suppression.
2374
ac_configure_args=
2375
ac_configure_args0=
2376
ac_configure_args1=
2377
ac_must_keep_next=false
2378
for ac_pass in 1 2
2379
do
2380
  for ac_arg
2381
  do
2382
    case $ac_arg in
2383
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2384
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2385
    | -silent | --silent | --silen | --sile | --sil)
2386
      continue ;;
2387
    *\'*)
2388 82 jeremybenn
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2389 19 jeremybenn
    esac
2390
    case $ac_pass in
2391 346 jeremybenn
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2392 19 jeremybenn
    2)
2393 346 jeremybenn
      as_fn_append ac_configure_args1 " '$ac_arg'"
2394 19 jeremybenn
      if test $ac_must_keep_next = true; then
2395
        ac_must_keep_next=false # Got value, back to normal.
2396
      else
2397
        case $ac_arg in
2398
          *=* | --config-cache | -C | -disable-* | --disable-* \
2399
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2400
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2401
          | -with-* | --with-* | -without-* | --without-* | --x)
2402
            case "$ac_configure_args0 " in
2403
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2404
            esac
2405
            ;;
2406
          -* ) ac_must_keep_next=true ;;
2407
        esac
2408
      fi
2409 346 jeremybenn
      as_fn_append ac_configure_args " '$ac_arg'"
2410 19 jeremybenn
      ;;
2411
    esac
2412
  done
2413
done
2414 346 jeremybenn
{ ac_configure_args0=; unset ac_configure_args0;}
2415
{ ac_configure_args1=; unset ac_configure_args1;}
2416 19 jeremybenn
 
2417
# When interrupted or exit'd, cleanup temporary files, and complete
2418
# config.log.  We remove comments because anyway the quotes in there
2419
# would cause problems or look ugly.
2420
# WARNING: Use '\'' to represent an apostrophe within the trap.
2421
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2422
trap 'exit_status=$?
2423
  # Save into config.log some information that might help in debugging.
2424
  {
2425
    echo
2426
 
2427
    cat <<\_ASBOX
2428
## ---------------- ##
2429
## Cache variables. ##
2430
## ---------------- ##
2431
_ASBOX
2432
    echo
2433
    # The following way of writing the cache mishandles newlines in values,
2434
(
2435
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2436
    eval ac_val=\$$ac_var
2437
    case $ac_val in #(
2438
    *${as_nl}*)
2439
      case $ac_var in #(
2440 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2441 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2442 19 jeremybenn
      esac
2443
      case $ac_var in #(
2444
      _ | IFS | as_nl) ;; #(
2445 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2446 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
2447 19 jeremybenn
      esac ;;
2448
    esac
2449
  done
2450
  (set) 2>&1 |
2451
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2452
    *${as_nl}ac_space=\ *)
2453
      sed -n \
2454
        "s/'\''/'\''\\\\'\'''\''/g;
2455
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2456
      ;; #(
2457
    *)
2458
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2459
      ;;
2460
    esac |
2461
    sort
2462
)
2463
    echo
2464
 
2465
    cat <<\_ASBOX
2466
## ----------------- ##
2467
## Output variables. ##
2468
## ----------------- ##
2469
_ASBOX
2470
    echo
2471
    for ac_var in $ac_subst_vars
2472
    do
2473
      eval ac_val=\$$ac_var
2474
      case $ac_val in
2475 82 jeremybenn
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2476 19 jeremybenn
      esac
2477 82 jeremybenn
      $as_echo "$ac_var='\''$ac_val'\''"
2478 19 jeremybenn
    done | sort
2479
    echo
2480
 
2481
    if test -n "$ac_subst_files"; then
2482
      cat <<\_ASBOX
2483
## ------------------- ##
2484
## File substitutions. ##
2485
## ------------------- ##
2486
_ASBOX
2487
      echo
2488
      for ac_var in $ac_subst_files
2489
      do
2490
        eval ac_val=\$$ac_var
2491
        case $ac_val in
2492 82 jeremybenn
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493 19 jeremybenn
        esac
2494 82 jeremybenn
        $as_echo "$ac_var='\''$ac_val'\''"
2495 19 jeremybenn
      done | sort
2496
      echo
2497
    fi
2498
 
2499
    if test -s confdefs.h; then
2500
      cat <<\_ASBOX
2501
## ----------- ##
2502
## confdefs.h. ##
2503
## ----------- ##
2504
_ASBOX
2505
      echo
2506
      cat confdefs.h
2507
      echo
2508
    fi
2509
    test "$ac_signal" != 0 &&
2510 82 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
2511
    $as_echo "$as_me: exit $exit_status"
2512 19 jeremybenn
  } >&5
2513
  rm -f core *.core core.conftest.* &&
2514
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2515
    exit $exit_status
2516
' 0
2517
for ac_signal in 1 2 13 15; do
2518 346 jeremybenn
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2519 19 jeremybenn
done
2520
ac_signal=0
2521
 
2522
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2523
rm -f -r conftest* confdefs.h
2524
 
2525 346 jeremybenn
$as_echo "/* confdefs.h */" > confdefs.h
2526
 
2527 19 jeremybenn
# Predefined preprocessor variables.
2528
 
2529
cat >>confdefs.h <<_ACEOF
2530
#define PACKAGE_NAME "$PACKAGE_NAME"
2531
_ACEOF
2532
 
2533
cat >>confdefs.h <<_ACEOF
2534
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2535
_ACEOF
2536
 
2537
cat >>confdefs.h <<_ACEOF
2538
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2539
_ACEOF
2540
 
2541
cat >>confdefs.h <<_ACEOF
2542
#define PACKAGE_STRING "$PACKAGE_STRING"
2543
_ACEOF
2544
 
2545
cat >>confdefs.h <<_ACEOF
2546
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2547
_ACEOF
2548
 
2549 346 jeremybenn
cat >>confdefs.h <<_ACEOF
2550
#define PACKAGE_URL "$PACKAGE_URL"
2551
_ACEOF
2552 19 jeremybenn
 
2553 346 jeremybenn
 
2554 19 jeremybenn
# Let the site file select an alternate cache file if it wants to.
2555 82 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
2556
ac_site_file1=NONE
2557
ac_site_file2=NONE
2558 19 jeremybenn
if test -n "$CONFIG_SITE"; then
2559 82 jeremybenn
  ac_site_file1=$CONFIG_SITE
2560 19 jeremybenn
elif test "x$prefix" != xNONE; then
2561 82 jeremybenn
  ac_site_file1=$prefix/share/config.site
2562
  ac_site_file2=$prefix/etc/config.site
2563 19 jeremybenn
else
2564 82 jeremybenn
  ac_site_file1=$ac_default_prefix/share/config.site
2565
  ac_site_file2=$ac_default_prefix/etc/config.site
2566 19 jeremybenn
fi
2567 82 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2568 19 jeremybenn
do
2569 82 jeremybenn
  test "x$ac_site_file" = xNONE && continue
2570 538 julius
  if test -r "$ac_site_file"; then
2571 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2572 82 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2573 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2574
    . "$ac_site_file"
2575
  fi
2576
done
2577
 
2578
if test -r "$cache_file"; then
2579 538 julius
  # Some versions of bash will fail to source /dev/null (special
2580
  # files actually), so we avoid doing that.
2581
  if test -f "$cache_file"; then
2582 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2583 82 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2584 19 jeremybenn
    case $cache_file in
2585
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2586
      *)                      . "./$cache_file";;
2587
    esac
2588
  fi
2589
else
2590 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2591 82 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2592 19 jeremybenn
  >$cache_file
2593
fi
2594
 
2595
# Check that the precious variables saved in the cache have kept the same
2596
# value.
2597
ac_cache_corrupted=false
2598
for ac_var in $ac_precious_vars; do
2599
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2600
  eval ac_new_set=\$ac_env_${ac_var}_set
2601
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2602
  eval ac_new_val=\$ac_env_${ac_var}_value
2603
  case $ac_old_set,$ac_new_set in
2604
    set,)
2605 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2606 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2607 19 jeremybenn
      ac_cache_corrupted=: ;;
2608
    ,set)
2609 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2610 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2611 19 jeremybenn
      ac_cache_corrupted=: ;;
2612
    ,);;
2613
    *)
2614
      if test "x$ac_old_val" != "x$ac_new_val"; then
2615 82 jeremybenn
        # differences in whitespace do not lead to failure.
2616
        ac_old_val_w=`echo x $ac_old_val`
2617
        ac_new_val_w=`echo x $ac_new_val`
2618
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2619 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2620 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2621
          ac_cache_corrupted=:
2622
        else
2623 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2624 82 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2625
          eval $ac_var=\$ac_old_val
2626
        fi
2627 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2628 82 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2629 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2630 82 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2631 19 jeremybenn
      fi;;
2632
  esac
2633
  # Pass precious variables to config.status.
2634
  if test "$ac_new_set" = set; then
2635
    case $ac_new_val in
2636 82 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2637 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2638
    esac
2639
    case " $ac_configure_args " in
2640
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2641 346 jeremybenn
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2642 19 jeremybenn
    esac
2643
  fi
2644
done
2645
if $ac_cache_corrupted; then
2646 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2649 82 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2650 346 jeremybenn
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2651 19 jeremybenn
fi
2652 346 jeremybenn
## -------------------- ##
2653
## Main body of script. ##
2654
## -------------------- ##
2655 19 jeremybenn
 
2656
ac_ext=c
2657
ac_cpp='$CPP $CPPFLAGS'
2658
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661
 
2662
 
2663
 
2664 82 jeremybenn
 
2665 91 jeremybenn
# Generically use extensions such as _GNU_SOURCE if available.
2666 19 jeremybenn
ac_ext=c
2667
ac_cpp='$CPP $CPPFLAGS'
2668
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671
if test -n "$ac_tool_prefix"; then
2672
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2673
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2674 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2676 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2677 82 jeremybenn
  $as_echo_n "(cached) " >&6
2678 19 jeremybenn
else
2679
  if test -n "$CC"; then
2680
  ac_cv_prog_CC="$CC" # Let the user override the test.
2681
else
2682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683
for as_dir in $PATH
2684
do
2685
  IFS=$as_save_IFS
2686
  test -z "$as_dir" && as_dir=.
2687 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2688 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2690 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 19 jeremybenn
    break 2
2692
  fi
2693
done
2694 346 jeremybenn
  done
2695 19 jeremybenn
IFS=$as_save_IFS
2696
 
2697
fi
2698
fi
2699
CC=$ac_cv_prog_CC
2700
if test -n "$CC"; then
2701 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702 82 jeremybenn
$as_echo "$CC" >&6; }
2703 19 jeremybenn
else
2704 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 82 jeremybenn
$as_echo "no" >&6; }
2706 19 jeremybenn
fi
2707
 
2708
 
2709
fi
2710
if test -z "$ac_cv_prog_CC"; then
2711
  ac_ct_CC=$CC
2712
  # Extract the first word of "gcc", so it can be a program name with args.
2713
set dummy gcc; ac_word=$2
2714 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2716 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2717 82 jeremybenn
  $as_echo_n "(cached) " >&6
2718 19 jeremybenn
else
2719
  if test -n "$ac_ct_CC"; then
2720
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2721
else
2722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723
for as_dir in $PATH
2724
do
2725
  IFS=$as_save_IFS
2726
  test -z "$as_dir" && as_dir=.
2727 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2728 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729
    ac_cv_prog_ac_ct_CC="gcc"
2730 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 19 jeremybenn
    break 2
2732
  fi
2733
done
2734 346 jeremybenn
  done
2735 19 jeremybenn
IFS=$as_save_IFS
2736
 
2737
fi
2738
fi
2739
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2740
if test -n "$ac_ct_CC"; then
2741 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2742 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2743 19 jeremybenn
else
2744 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 82 jeremybenn
$as_echo "no" >&6; }
2746 19 jeremybenn
fi
2747
 
2748
  if test "x$ac_ct_CC" = x; then
2749
    CC=""
2750
  else
2751
    case $cross_compiling:$ac_tool_warned in
2752
yes:)
2753 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2754 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2755 19 jeremybenn
ac_tool_warned=yes ;;
2756
esac
2757
    CC=$ac_ct_CC
2758
  fi
2759
else
2760
  CC="$ac_cv_prog_CC"
2761
fi
2762
 
2763
if test -z "$CC"; then
2764
          if test -n "$ac_tool_prefix"; then
2765
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2766
set dummy ${ac_tool_prefix}cc; ac_word=$2
2767 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2769 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2770 82 jeremybenn
  $as_echo_n "(cached) " >&6
2771 19 jeremybenn
else
2772
  if test -n "$CC"; then
2773
  ac_cv_prog_CC="$CC" # Let the user override the test.
2774
else
2775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776
for as_dir in $PATH
2777
do
2778
  IFS=$as_save_IFS
2779
  test -z "$as_dir" && as_dir=.
2780 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2781 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2783 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 19 jeremybenn
    break 2
2785
  fi
2786
done
2787 346 jeremybenn
  done
2788 19 jeremybenn
IFS=$as_save_IFS
2789
 
2790
fi
2791
fi
2792
CC=$ac_cv_prog_CC
2793
if test -n "$CC"; then
2794 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 82 jeremybenn
$as_echo "$CC" >&6; }
2796 19 jeremybenn
else
2797 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 82 jeremybenn
$as_echo "no" >&6; }
2799 19 jeremybenn
fi
2800
 
2801
 
2802
  fi
2803
fi
2804
if test -z "$CC"; then
2805
  # Extract the first word of "cc", so it can be a program name with args.
2806
set dummy cc; ac_word=$2
2807 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2809 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2810 82 jeremybenn
  $as_echo_n "(cached) " >&6
2811 19 jeremybenn
else
2812
  if test -n "$CC"; then
2813
  ac_cv_prog_CC="$CC" # Let the user override the test.
2814
else
2815
  ac_prog_rejected=no
2816
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817
for as_dir in $PATH
2818
do
2819
  IFS=$as_save_IFS
2820
  test -z "$as_dir" && as_dir=.
2821 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2822 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2824
       ac_prog_rejected=yes
2825
       continue
2826
     fi
2827
    ac_cv_prog_CC="cc"
2828 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 19 jeremybenn
    break 2
2830
  fi
2831
done
2832 346 jeremybenn
  done
2833 19 jeremybenn
IFS=$as_save_IFS
2834
 
2835
if test $ac_prog_rejected = yes; then
2836
  # We found a bogon in the path, so make sure we never use it.
2837
  set dummy $ac_cv_prog_CC
2838
  shift
2839
  if test $# != 0; then
2840
    # We chose a different compiler from the bogus one.
2841
    # However, it has the same basename, so the bogon will be chosen
2842
    # first if we set CC to just the basename; use the full file name.
2843
    shift
2844
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2845
  fi
2846
fi
2847
fi
2848
fi
2849
CC=$ac_cv_prog_CC
2850
if test -n "$CC"; then
2851 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 82 jeremybenn
$as_echo "$CC" >&6; }
2853 19 jeremybenn
else
2854 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 82 jeremybenn
$as_echo "no" >&6; }
2856 19 jeremybenn
fi
2857
 
2858
 
2859
fi
2860
if test -z "$CC"; then
2861
  if test -n "$ac_tool_prefix"; then
2862
  for ac_prog in cl.exe
2863
  do
2864
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2865
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2866 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2868 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2869 82 jeremybenn
  $as_echo_n "(cached) " >&6
2870 19 jeremybenn
else
2871
  if test -n "$CC"; then
2872
  ac_cv_prog_CC="$CC" # Let the user override the test.
2873
else
2874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875
for as_dir in $PATH
2876
do
2877
  IFS=$as_save_IFS
2878
  test -z "$as_dir" && as_dir=.
2879 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2880 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2882 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 19 jeremybenn
    break 2
2884
  fi
2885
done
2886 346 jeremybenn
  done
2887 19 jeremybenn
IFS=$as_save_IFS
2888
 
2889
fi
2890
fi
2891
CC=$ac_cv_prog_CC
2892
if test -n "$CC"; then
2893 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2894 82 jeremybenn
$as_echo "$CC" >&6; }
2895 19 jeremybenn
else
2896 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 82 jeremybenn
$as_echo "no" >&6; }
2898 19 jeremybenn
fi
2899
 
2900
 
2901
    test -n "$CC" && break
2902
  done
2903
fi
2904
if test -z "$CC"; then
2905
  ac_ct_CC=$CC
2906
  for ac_prog in cl.exe
2907
do
2908
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2909
set dummy $ac_prog; ac_word=$2
2910 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2912 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2913 82 jeremybenn
  $as_echo_n "(cached) " >&6
2914 19 jeremybenn
else
2915
  if test -n "$ac_ct_CC"; then
2916
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2917
else
2918
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919
for as_dir in $PATH
2920
do
2921
  IFS=$as_save_IFS
2922
  test -z "$as_dir" && as_dir=.
2923 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2924 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925
    ac_cv_prog_ac_ct_CC="$ac_prog"
2926 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 19 jeremybenn
    break 2
2928
  fi
2929
done
2930 346 jeremybenn
  done
2931 19 jeremybenn
IFS=$as_save_IFS
2932
 
2933
fi
2934
fi
2935
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936
if test -n "$ac_ct_CC"; then
2937 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2938 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2939 19 jeremybenn
else
2940 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 82 jeremybenn
$as_echo "no" >&6; }
2942 19 jeremybenn
fi
2943
 
2944
 
2945
  test -n "$ac_ct_CC" && break
2946
done
2947
 
2948
  if test "x$ac_ct_CC" = x; then
2949
    CC=""
2950
  else
2951
    case $cross_compiling:$ac_tool_warned in
2952
yes:)
2953 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2954 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2955 19 jeremybenn
ac_tool_warned=yes ;;
2956
esac
2957
    CC=$ac_ct_CC
2958
  fi
2959
fi
2960
 
2961
fi
2962
 
2963
 
2964 346 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966 346 jeremybenn
as_fn_error "no acceptable C compiler found in \$PATH
2967
See \`config.log' for more details." "$LINENO" 5; }
2968 19 jeremybenn
 
2969
# Provide some information about the compiler.
2970 346 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2971 82 jeremybenn
set X $ac_compile
2972
ac_compiler=$2
2973 346 jeremybenn
for ac_option in --version -v -V -qversion; do
2974
  { { ac_try="$ac_compiler $ac_option >&5"
2975 19 jeremybenn
case "(($ac_try" in
2976
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977
  *) ac_try_echo=$ac_try;;
2978
esac
2979 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980
$as_echo "$ac_try_echo"; } >&5
2981
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2982 19 jeremybenn
  ac_status=$?
2983 346 jeremybenn
  if test -s conftest.err; then
2984
    sed '10a\
2985
... rest of stderr output deleted ...
2986
         10q' conftest.err >conftest.er1
2987
    cat conftest.er1 >&5
2988 538 julius
    rm -f conftest.er1 conftest.err
2989 346 jeremybenn
  fi
2990
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991
  test $ac_status = 0; }
2992
done
2993 19 jeremybenn
 
2994 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 19 jeremybenn
/* end confdefs.h.  */
2996 538 julius
#include 
2997 19 jeremybenn
int
2998
main ()
2999
{
3000 538 julius
FILE *f = fopen ("conftest.out", "w");
3001
 return ferror (f) || fclose (f) != 0;
3002 19 jeremybenn
 
3003
  ;
3004
  return 0;
3005
}
3006
_ACEOF
3007
ac_clean_files_save=$ac_clean_files
3008 538 julius
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3009 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
3010
# It will help us diagnose broken compilers, and finding out an intuition
3011
# of exeext.
3012 538 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3013
$as_echo_n "checking for C compiler default output file name... " >&6; }
3014 82 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3015
 
3016
# The possible output files:
3017
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3018
 
3019 19 jeremybenn
ac_rmfiles=
3020
for ac_file in $ac_files
3021
do
3022
  case $ac_file in
3023 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3024 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3025
  esac
3026
done
3027
rm -f $ac_rmfiles
3028
 
3029 346 jeremybenn
if { { ac_try="$ac_link_default"
3030 19 jeremybenn
case "(($ac_try" in
3031
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032
  *) ac_try_echo=$ac_try;;
3033
esac
3034 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035
$as_echo "$ac_try_echo"; } >&5
3036 19 jeremybenn
  (eval "$ac_link_default") 2>&5
3037
  ac_status=$?
3038 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039
  test $ac_status = 0; }; then :
3040 19 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3041
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3042
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3043
# so that the user can short-circuit this test for compilers unknown to
3044
# Autoconf.
3045
for ac_file in $ac_files ''
3046
do
3047
  test -f "$ac_file" || continue
3048
  case $ac_file in
3049 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3050 19 jeremybenn
        ;;
3051
    [ab].out )
3052
        # We found the default executable, but exeext='' is most
3053
        # certainly right.
3054
        break;;
3055
    *.* )
3056 346 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3057 19 jeremybenn
        then :; else
3058
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059
        fi
3060
        # We set ac_cv_exeext here because the later test for it is not
3061
        # safe: cross compilers may not add the suffix if given an `-o'
3062
        # argument, so we may need to know it at that point already.
3063
        # Even if this section looks crufty: it has the advantage of
3064
        # actually working.
3065
        break;;
3066
    * )
3067
        break;;
3068
  esac
3069
done
3070
test "$ac_cv_exeext" = no && ac_cv_exeext=
3071
 
3072
else
3073
  ac_file=''
3074
fi
3075 538 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3076
$as_echo "$ac_file" >&6; }
3077 346 jeremybenn
if test -z "$ac_file"; then :
3078 538 julius
  $as_echo "$as_me: failed program was:" >&5
3079 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3080
 
3081 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 346 jeremybenn
{ as_fn_set_status 77
3084
as_fn_error "C compiler cannot create executables
3085
See \`config.log' for more details." "$LINENO" 5; }; }
3086 19 jeremybenn
fi
3087
ac_exeext=$ac_cv_exeext
3088
 
3089 538 julius
# Check that the compiler produces executables we can run.  If not, either
3090
# the compiler is broken, or we cross compile.
3091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3092
$as_echo_n "checking whether the C compiler works... " >&6; }
3093
# If not cross compiling, check that we can run a simple program.
3094
if test "$cross_compiling" != yes; then
3095
  if { ac_try='./$ac_file'
3096
  { { case "(($ac_try" in
3097
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098
  *) ac_try_echo=$ac_try;;
3099
esac
3100
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101
$as_echo "$ac_try_echo"; } >&5
3102
  (eval "$ac_try") 2>&5
3103
  ac_status=$?
3104
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105
  test $ac_status = 0; }; }; then
3106
    cross_compiling=no
3107
  else
3108
    if test "$cross_compiling" = maybe; then
3109
        cross_compiling=yes
3110
    else
3111
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3112
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3113
as_fn_error "cannot run C compiled programs.
3114
If you meant to cross compile, use \`--host'.
3115
See \`config.log' for more details." "$LINENO" 5; }
3116
    fi
3117
  fi
3118
fi
3119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3120
$as_echo "yes" >&6; }
3121
 
3122
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3123 19 jeremybenn
ac_clean_files=$ac_clean_files_save
3124 538 julius
# Check that the compiler produces executables we can run.  If not, either
3125
# the compiler is broken, or we cross compile.
3126
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3127
$as_echo_n "checking whether we are cross compiling... " >&6; }
3128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3129
$as_echo "$cross_compiling" >&6; }
3130
 
3131 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3132 82 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
3133 346 jeremybenn
if { { ac_try="$ac_link"
3134 19 jeremybenn
case "(($ac_try" in
3135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136
  *) ac_try_echo=$ac_try;;
3137
esac
3138 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139
$as_echo "$ac_try_echo"; } >&5
3140 19 jeremybenn
  (eval "$ac_link") 2>&5
3141
  ac_status=$?
3142 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143
  test $ac_status = 0; }; then :
3144 19 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3145
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3146
# work properly (i.e., refer to `conftest.exe'), while it won't with
3147
# `rm'.
3148
for ac_file in conftest.exe conftest conftest.*; do
3149
  test -f "$ac_file" || continue
3150
  case $ac_file in
3151 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3152 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153
          break;;
3154
    * ) break;;
3155
  esac
3156
done
3157
else
3158 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 346 jeremybenn
as_fn_error "cannot compute suffix of executables: cannot compile and link
3161
See \`config.log' for more details." "$LINENO" 5; }
3162 19 jeremybenn
fi
3163 538 julius
rm -f conftest$ac_cv_exeext
3164 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3165 82 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
3166 19 jeremybenn
 
3167
rm -f conftest.$ac_ext
3168
EXEEXT=$ac_cv_exeext
3169
ac_exeext=$EXEEXT
3170 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3171 82 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
3172 346 jeremybenn
if test "${ac_cv_objext+set}" = set; then :
3173 82 jeremybenn
  $as_echo_n "(cached) " >&6
3174 19 jeremybenn
else
3175 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 19 jeremybenn
/* end confdefs.h.  */
3177
 
3178
int
3179
main ()
3180
{
3181
 
3182
  ;
3183
  return 0;
3184
}
3185
_ACEOF
3186
rm -f conftest.o conftest.obj
3187 346 jeremybenn
if { { ac_try="$ac_compile"
3188 19 jeremybenn
case "(($ac_try" in
3189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190
  *) ac_try_echo=$ac_try;;
3191
esac
3192 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193
$as_echo "$ac_try_echo"; } >&5
3194 19 jeremybenn
  (eval "$ac_compile") 2>&5
3195
  ac_status=$?
3196 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197
  test $ac_status = 0; }; then :
3198 19 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
3199
  test -f "$ac_file" || continue;
3200
  case $ac_file in
3201 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3202 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3203
       break;;
3204
  esac
3205
done
3206
else
3207 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3208 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3209
 
3210 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212 346 jeremybenn
as_fn_error "cannot compute suffix of object files: cannot compile
3213
See \`config.log' for more details." "$LINENO" 5; }
3214 19 jeremybenn
fi
3215
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3216
fi
3217 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3218 82 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
3219 19 jeremybenn
OBJEXT=$ac_cv_objext
3220
ac_objext=$OBJEXT
3221 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3222 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3223 346 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3224 82 jeremybenn
  $as_echo_n "(cached) " >&6
3225 19 jeremybenn
else
3226 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 19 jeremybenn
/* end confdefs.h.  */
3228
 
3229
int
3230
main ()
3231
{
3232
#ifndef __GNUC__
3233
       choke me
3234
#endif
3235
 
3236
  ;
3237
  return 0;
3238
}
3239
_ACEOF
3240 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3241 19 jeremybenn
  ac_compiler_gnu=yes
3242
else
3243 346 jeremybenn
  ac_compiler_gnu=no
3244 19 jeremybenn
fi
3245
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3247
 
3248
fi
3249 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3250 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3251
if test $ac_compiler_gnu = yes; then
3252
  GCC=yes
3253
else
3254
  GCC=
3255
fi
3256 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
3257
ac_save_CFLAGS=$CFLAGS
3258 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3259 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3260 346 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then :
3261 82 jeremybenn
  $as_echo_n "(cached) " >&6
3262 19 jeremybenn
else
3263
  ac_save_c_werror_flag=$ac_c_werror_flag
3264
   ac_c_werror_flag=yes
3265
   ac_cv_prog_cc_g=no
3266
   CFLAGS="-g"
3267 346 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 19 jeremybenn
/* end confdefs.h.  */
3269
 
3270
int
3271
main ()
3272
{
3273
 
3274
  ;
3275
  return 0;
3276
}
3277
_ACEOF
3278 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3279 19 jeremybenn
  ac_cv_prog_cc_g=yes
3280
else
3281 346 jeremybenn
  CFLAGS=""
3282
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 19 jeremybenn
/* end confdefs.h.  */
3284
 
3285
int
3286
main ()
3287
{
3288
 
3289
  ;
3290
  return 0;
3291
}
3292
_ACEOF
3293 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3294
 
3295 236 jeremybenn
else
3296 346 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
3297 19 jeremybenn
         CFLAGS="-g"
3298 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 19 jeremybenn
/* end confdefs.h.  */
3300
 
3301
int
3302
main ()
3303
{
3304
 
3305
  ;
3306
  return 0;
3307
}
3308
_ACEOF
3309 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3310 19 jeremybenn
  ac_cv_prog_cc_g=yes
3311
fi
3312
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313
fi
3314
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315
fi
3316
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317
   ac_c_werror_flag=$ac_save_c_werror_flag
3318
fi
3319 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3320 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
3321 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
3322
  CFLAGS=$ac_save_CFLAGS
3323
elif test $ac_cv_prog_cc_g = yes; then
3324
  if test "$GCC" = yes; then
3325
    CFLAGS="-g -O2"
3326
  else
3327
    CFLAGS="-g"
3328
  fi
3329
else
3330
  if test "$GCC" = yes; then
3331
    CFLAGS="-O2"
3332
  else
3333
    CFLAGS=
3334
  fi
3335
fi
3336 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3337 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3338 346 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3339 82 jeremybenn
  $as_echo_n "(cached) " >&6
3340 19 jeremybenn
else
3341
  ac_cv_prog_cc_c89=no
3342
ac_save_CC=$CC
3343 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 19 jeremybenn
/* end confdefs.h.  */
3345
#include 
3346
#include 
3347
#include 
3348
#include 
3349
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3350
struct buf { int x; };
3351
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3352
static char *e (p, i)
3353
     char **p;
3354
     int i;
3355
{
3356
  return p[i];
3357
}
3358
static char *f (char * (*g) (char **, int), char **p, ...)
3359
{
3360
  char *s;
3361
  va_list v;
3362
  va_start (v,p);
3363
  s = g (p, va_arg (v,int));
3364
  va_end (v);
3365
  return s;
3366
}
3367
 
3368
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3369
   function prototypes and stuff, but not '\xHH' hex character constants.
3370
   These don't provoke an error unfortunately, instead are silently treated
3371
   as 'x'.  The following induces an error, until -std is added to get
3372
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3373
   array size at least.  It's necessary to write '\x00'==0 to get something
3374
   that's true only with -std.  */
3375
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3376
 
3377
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3378
   inside strings and character constants.  */
3379
#define FOO(x) 'x'
3380
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3381
 
3382
int test (int i, double x);
3383
struct s1 {int (*f) (int a);};
3384
struct s2 {int (*f) (double a);};
3385
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3386
int argc;
3387
char **argv;
3388
int
3389
main ()
3390
{
3391
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3392
  ;
3393
  return 0;
3394
}
3395
_ACEOF
3396
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3397
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3398
do
3399
  CC="$ac_save_CC $ac_arg"
3400 346 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
3401 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3402
fi
3403
rm -f core conftest.err conftest.$ac_objext
3404
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3405
done
3406
rm -f conftest.$ac_ext
3407
CC=$ac_save_CC
3408
 
3409
fi
3410
# AC_CACHE_VAL
3411
case "x$ac_cv_prog_cc_c89" in
3412
  x)
3413 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3414 82 jeremybenn
$as_echo "none needed" >&6; } ;;
3415 19 jeremybenn
  xno)
3416 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3417 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
3418 19 jeremybenn
  *)
3419
    CC="$CC $ac_cv_prog_cc_c89"
3420 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3421 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3422 19 jeremybenn
esac
3423 346 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
3424 19 jeremybenn
 
3425 346 jeremybenn
fi
3426 19 jeremybenn
 
3427
ac_ext=c
3428
ac_cpp='$CPP $CPPFLAGS'
3429
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432
 
3433 91 jeremybenn
 
3434
ac_ext=c
3435
ac_cpp='$CPP $CPPFLAGS'
3436
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3440 91 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3441
# On Suns, sometimes $CPP names a directory.
3442
if test -n "$CPP" && test -d "$CPP"; then
3443
  CPP=
3444
fi
3445
if test -z "$CPP"; then
3446 346 jeremybenn
  if test "${ac_cv_prog_CPP+set}" = set; then :
3447 82 jeremybenn
  $as_echo_n "(cached) " >&6
3448 19 jeremybenn
else
3449 91 jeremybenn
      # Double quotes because CPP needs to be expanded
3450
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3451
    do
3452
      ac_preproc_ok=false
3453
for ac_c_preproc_warn_flag in '' yes
3454 19 jeremybenn
do
3455 91 jeremybenn
  # Use a header file that comes with gcc, so configuring glibc
3456
  # with a fresh cross-compiler works.
3457
  # Prefer  to  if __STDC__ is defined, since
3458
  #  exists even on freestanding compilers.
3459
  # On the NeXT, cc -E runs the code through the compiler's parser,
3460
  # not just through cpp. "Syntax error" is here to catch this case.
3461 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 91 jeremybenn
/* end confdefs.h.  */
3463
#ifdef __STDC__
3464
# include 
3465
#else
3466
# include 
3467
#endif
3468
                     Syntax error
3469
_ACEOF
3470 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3471
 
3472 236 jeremybenn
else
3473 91 jeremybenn
  # Broken: fails on valid input.
3474
continue
3475
fi
3476
rm -f conftest.err conftest.$ac_ext
3477
 
3478
  # OK, works on sane cases.  Now check whether nonexistent headers
3479
  # can be detected and how.
3480 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 91 jeremybenn
/* end confdefs.h.  */
3482
#include 
3483
_ACEOF
3484 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3485 91 jeremybenn
  # Broken: success on invalid input.
3486
continue
3487 82 jeremybenn
else
3488 91 jeremybenn
  # Passes both tests.
3489
ac_preproc_ok=:
3490
break
3491 82 jeremybenn
fi
3492 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3493
 
3494
done
3495
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3496
rm -f conftest.err conftest.$ac_ext
3497 346 jeremybenn
if $ac_preproc_ok; then :
3498 91 jeremybenn
  break
3499 19 jeremybenn
fi
3500
 
3501 91 jeremybenn
    done
3502
    ac_cv_prog_CPP=$CPP
3503 19 jeremybenn
 
3504 91 jeremybenn
fi
3505
  CPP=$ac_cv_prog_CPP
3506
else
3507
  ac_cv_prog_CPP=$CPP
3508
fi
3509 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3510 91 jeremybenn
$as_echo "$CPP" >&6; }
3511
ac_preproc_ok=false
3512
for ac_c_preproc_warn_flag in '' yes
3513
do
3514
  # Use a header file that comes with gcc, so configuring glibc
3515
  # with a fresh cross-compiler works.
3516
  # Prefer  to  if __STDC__ is defined, since
3517
  #  exists even on freestanding compilers.
3518
  # On the NeXT, cc -E runs the code through the compiler's parser,
3519
  # not just through cpp. "Syntax error" is here to catch this case.
3520 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 91 jeremybenn
/* end confdefs.h.  */
3522
#ifdef __STDC__
3523
# include 
3524
#else
3525
# include 
3526
#endif
3527
                     Syntax error
3528
_ACEOF
3529 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3530
 
3531 236 jeremybenn
else
3532 91 jeremybenn
  # Broken: fails on valid input.
3533
continue
3534
fi
3535
rm -f conftest.err conftest.$ac_ext
3536 82 jeremybenn
 
3537 91 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
3538
  # can be detected and how.
3539 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 91 jeremybenn
/* end confdefs.h.  */
3541
#include 
3542
_ACEOF
3543 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3544 91 jeremybenn
  # Broken: success on invalid input.
3545
continue
3546
else
3547
  # Passes both tests.
3548
ac_preproc_ok=:
3549
break
3550
fi
3551
rm -f conftest.err conftest.$ac_ext
3552 82 jeremybenn
 
3553 91 jeremybenn
done
3554
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3555
rm -f conftest.err conftest.$ac_ext
3556 346 jeremybenn
if $ac_preproc_ok; then :
3557
 
3558 91 jeremybenn
else
3559 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560 91 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 346 jeremybenn
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3562
See \`config.log' for more details." "$LINENO" 5; }
3563 91 jeremybenn
fi
3564 82 jeremybenn
 
3565 91 jeremybenn
ac_ext=c
3566
ac_cpp='$CPP $CPPFLAGS'
3567
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570 82 jeremybenn
 
3571
 
3572 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3573 82 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3574 346 jeremybenn
if test "${ac_cv_path_GREP+set}" = set; then :
3575 82 jeremybenn
  $as_echo_n "(cached) " >&6
3576 19 jeremybenn
else
3577 82 jeremybenn
  if test -z "$GREP"; then
3578 19 jeremybenn
  ac_path_GREP_found=false
3579 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3580
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3582
do
3583
  IFS=$as_save_IFS
3584
  test -z "$as_dir" && as_dir=.
3585 346 jeremybenn
    for ac_prog in grep ggrep; do
3586 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3587
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3588
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3589
# Check for GNU ac_path_GREP and select it if it is found.
3590 19 jeremybenn
  # Check for GNU $ac_path_GREP
3591
case `"$ac_path_GREP" --version 2>&1` in
3592
*GNU*)
3593
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3594
*)
3595
  ac_count=0
3596 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3597 19 jeremybenn
  while :
3598
  do
3599
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3600
    mv "conftest.tmp" "conftest.in"
3601
    cp "conftest.in" "conftest.nl"
3602 82 jeremybenn
    $as_echo 'GREP' >> "conftest.nl"
3603 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3604
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3605 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3606 19 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3607
      # Best one so far, save it but keep looking for a better one
3608
      ac_cv_path_GREP="$ac_path_GREP"
3609
      ac_path_GREP_max=$ac_count
3610
    fi
3611
    # 10*(2^10) chars as input seems more than enough
3612
    test $ac_count -gt 10 && break
3613
  done
3614
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3615
esac
3616
 
3617 82 jeremybenn
      $ac_path_GREP_found && break 3
3618
    done
3619 19 jeremybenn
  done
3620 346 jeremybenn
  done
3621 19 jeremybenn
IFS=$as_save_IFS
3622 82 jeremybenn
  if test -z "$ac_cv_path_GREP"; then
3623 346 jeremybenn
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3624 82 jeremybenn
  fi
3625 19 jeremybenn
else
3626
  ac_cv_path_GREP=$GREP
3627
fi
3628
 
3629
fi
3630 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3631 82 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3632 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3633
 
3634
 
3635 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3636 82 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3637 346 jeremybenn
if test "${ac_cv_path_EGREP+set}" = set; then :
3638 82 jeremybenn
  $as_echo_n "(cached) " >&6
3639 19 jeremybenn
else
3640
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3641
   then ac_cv_path_EGREP="$GREP -E"
3642
   else
3643 82 jeremybenn
     if test -z "$EGREP"; then
3644 19 jeremybenn
  ac_path_EGREP_found=false
3645 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3646
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3648
do
3649
  IFS=$as_save_IFS
3650
  test -z "$as_dir" && as_dir=.
3651 346 jeremybenn
    for ac_prog in egrep; do
3652 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3653
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3654
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3655
# Check for GNU ac_path_EGREP and select it if it is found.
3656 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3657
case `"$ac_path_EGREP" --version 2>&1` in
3658
*GNU*)
3659
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3660
*)
3661
  ac_count=0
3662 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3663 19 jeremybenn
  while :
3664
  do
3665
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3666
    mv "conftest.tmp" "conftest.in"
3667
    cp "conftest.in" "conftest.nl"
3668 82 jeremybenn
    $as_echo 'EGREP' >> "conftest.nl"
3669 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3670
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3671 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3672 19 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3673
      # Best one so far, save it but keep looking for a better one
3674
      ac_cv_path_EGREP="$ac_path_EGREP"
3675
      ac_path_EGREP_max=$ac_count
3676
    fi
3677
    # 10*(2^10) chars as input seems more than enough
3678
    test $ac_count -gt 10 && break
3679
  done
3680
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3681
esac
3682
 
3683 82 jeremybenn
      $ac_path_EGREP_found && break 3
3684
    done
3685 19 jeremybenn
  done
3686 346 jeremybenn
  done
3687 19 jeremybenn
IFS=$as_save_IFS
3688 82 jeremybenn
  if test -z "$ac_cv_path_EGREP"; then
3689 346 jeremybenn
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3690 82 jeremybenn
  fi
3691
else
3692
  ac_cv_path_EGREP=$EGREP
3693 19 jeremybenn
fi
3694
 
3695 82 jeremybenn
   fi
3696 19 jeremybenn
fi
3697 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3698 82 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3699
 EGREP="$ac_cv_path_EGREP"
3700 19 jeremybenn
 
3701 82 jeremybenn
 
3702 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3703 91 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
3704 346 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then :
3705 91 jeremybenn
  $as_echo_n "(cached) " >&6
3706
else
3707 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 91 jeremybenn
/* end confdefs.h.  */
3709
#include 
3710
#include 
3711
#include 
3712
#include 
3713
 
3714
int
3715
main ()
3716
{
3717
 
3718
  ;
3719
  return 0;
3720
}
3721
_ACEOF
3722 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3723 91 jeremybenn
  ac_cv_header_stdc=yes
3724
else
3725 346 jeremybenn
  ac_cv_header_stdc=no
3726 91 jeremybenn
fi
3727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728
 
3729
if test $ac_cv_header_stdc = yes; then
3730
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3731 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 91 jeremybenn
/* end confdefs.h.  */
3733
#include 
3734
 
3735
_ACEOF
3736
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3737 346 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then :
3738
 
3739 91 jeremybenn
else
3740
  ac_cv_header_stdc=no
3741
fi
3742
rm -f conftest*
3743
 
3744
fi
3745
 
3746
if test $ac_cv_header_stdc = yes; then
3747
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3748 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 91 jeremybenn
/* end confdefs.h.  */
3750
#include 
3751
 
3752
_ACEOF
3753
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3754 346 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then :
3755
 
3756 91 jeremybenn
else
3757
  ac_cv_header_stdc=no
3758
fi
3759
rm -f conftest*
3760
 
3761
fi
3762
 
3763
if test $ac_cv_header_stdc = yes; then
3764
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3765 346 jeremybenn
  if test "$cross_compiling" = yes; then :
3766 91 jeremybenn
  :
3767
else
3768 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 91 jeremybenn
/* end confdefs.h.  */
3770
#include 
3771
#include 
3772
#if ((' ' & 0x0FF) == 0x020)
3773
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3774
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3775
#else
3776
# define ISLOWER(c) \
3777
                   (('a' <= (c) && (c) <= 'i') \
3778
                     || ('j' <= (c) && (c) <= 'r') \
3779
                     || ('s' <= (c) && (c) <= 'z'))
3780
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3781
#endif
3782
 
3783
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3784
int
3785
main ()
3786
{
3787
  int i;
3788
  for (i = 0; i < 256; i++)
3789
    if (XOR (islower (i), ISLOWER (i))
3790
        || toupper (i) != TOUPPER (i))
3791
      return 2;
3792
  return 0;
3793
}
3794
_ACEOF
3795 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
3796
 
3797 236 jeremybenn
else
3798 346 jeremybenn
  ac_cv_header_stdc=no
3799 91 jeremybenn
fi
3800 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3801
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3802 91 jeremybenn
fi
3803
 
3804
fi
3805
fi
3806 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3807 91 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
3808
if test $ac_cv_header_stdc = yes; then
3809
 
3810 346 jeremybenn
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3811 91 jeremybenn
 
3812
fi
3813
 
3814
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3815
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3816
                  inttypes.h stdint.h unistd.h
3817 346 jeremybenn
do :
3818
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3819
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3820
"
3821
eval as_val=\$$as_ac_Header
3822
   if test "x$as_val" = x""yes; then :
3823 91 jeremybenn
  cat >>confdefs.h <<_ACEOF
3824
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3825
_ACEOF
3826
 
3827
fi
3828
 
3829
done
3830
 
3831
 
3832
 
3833 346 jeremybenn
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3834
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3835 91 jeremybenn
  MINIX=yes
3836
else
3837
  MINIX=
3838
fi
3839
 
3840
 
3841
  if test "$MINIX" = yes; then
3842
 
3843 346 jeremybenn
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3844 91 jeremybenn
 
3845
 
3846 346 jeremybenn
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3847 91 jeremybenn
 
3848
 
3849 346 jeremybenn
$as_echo "#define _MINIX 1" >>confdefs.h
3850 91 jeremybenn
 
3851
  fi
3852
 
3853
 
3854 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3855 91 jeremybenn
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3856 346 jeremybenn
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3857 91 jeremybenn
  $as_echo_n "(cached) " >&6
3858
else
3859 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 91 jeremybenn
/* end confdefs.h.  */
3861
 
3862
#         define __EXTENSIONS__ 1
3863
          $ac_includes_default
3864
int
3865
main ()
3866
{
3867
 
3868
  ;
3869
  return 0;
3870
}
3871
_ACEOF
3872 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3873 91 jeremybenn
  ac_cv_safe_to_define___extensions__=yes
3874
else
3875 346 jeremybenn
  ac_cv_safe_to_define___extensions__=no
3876 91 jeremybenn
fi
3877
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878
fi
3879 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3880 91 jeremybenn
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3881
  test $ac_cv_safe_to_define___extensions__ = yes &&
3882 346 jeremybenn
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3883 91 jeremybenn
 
3884 346 jeremybenn
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3885 91 jeremybenn
 
3886 346 jeremybenn
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3887 91 jeremybenn
 
3888 346 jeremybenn
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3889 91 jeremybenn
 
3890 346 jeremybenn
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3891 91 jeremybenn
 
3892
 
3893
 
3894
# Check we have the execute source file present for sanity. Specify a separate
3895
# config for the testsuite OR1K specific programs, since we'll need different
3896
# tool chain there (the OpenRISC one, rather than the native one).
3897
 
3898
ac_aux_dir=
3899
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3900 346 jeremybenn
  for ac_t in install-sh install.sh shtool; do
3901
    if test -f "$ac_dir/$ac_t"; then
3902
      ac_aux_dir=$ac_dir
3903
      ac_install_sh="$ac_aux_dir/$ac_t -c"
3904
      break 2
3905
    fi
3906
  done
3907 91 jeremybenn
done
3908
if test -z "$ac_aux_dir"; then
3909 346 jeremybenn
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3910 91 jeremybenn
fi
3911
 
3912
# These three variables are undocumented and unsupported,
3913
# and are intended to be withdrawn in a future Autoconf release.
3914
# They can cause serious problems if a builder's source tree is in a directory
3915
# whose full name contains unusual characters.
3916
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3917
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3918
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3919
 
3920
 
3921
 
3922
 
3923
subdirs="$subdirs testsuite/test-code-or1k"
3924
 
3925
 
3926
# Make sure we can run config.sub.
3927
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3928 346 jeremybenn
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3929 91 jeremybenn
 
3930 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3931 91 jeremybenn
$as_echo_n "checking build system type... " >&6; }
3932 346 jeremybenn
if test "${ac_cv_build+set}" = set; then :
3933 91 jeremybenn
  $as_echo_n "(cached) " >&6
3934
else
3935
  ac_build_alias=$build_alias
3936
test "x$ac_build_alias" = x &&
3937
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3938
test "x$ac_build_alias" = x &&
3939 346 jeremybenn
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3940 91 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3941 346 jeremybenn
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3942 91 jeremybenn
 
3943
fi
3944 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3945 91 jeremybenn
$as_echo "$ac_cv_build" >&6; }
3946
case $ac_cv_build in
3947
*-*-*) ;;
3948 346 jeremybenn
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3949 91 jeremybenn
esac
3950
build=$ac_cv_build
3951
ac_save_IFS=$IFS; IFS='-'
3952
set x $ac_cv_build
3953
shift
3954
build_cpu=$1
3955
build_vendor=$2
3956
shift; shift
3957
# Remember, the first character of IFS is used to create $*,
3958
# except with old shells:
3959
build_os=$*
3960
IFS=$ac_save_IFS
3961
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3962
 
3963
 
3964 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3965 91 jeremybenn
$as_echo_n "checking host system type... " >&6; }
3966 346 jeremybenn
if test "${ac_cv_host+set}" = set; then :
3967 91 jeremybenn
  $as_echo_n "(cached) " >&6
3968
else
3969
  if test "x$host_alias" = x; then
3970
  ac_cv_host=$ac_cv_build
3971
else
3972
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3973 346 jeremybenn
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3974 91 jeremybenn
fi
3975
 
3976
fi
3977 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3978 91 jeremybenn
$as_echo "$ac_cv_host" >&6; }
3979
case $ac_cv_host in
3980
*-*-*) ;;
3981 346 jeremybenn
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3982 91 jeremybenn
esac
3983
host=$ac_cv_host
3984
ac_save_IFS=$IFS; IFS='-'
3985
set x $ac_cv_host
3986
shift
3987
host_cpu=$1
3988
host_vendor=$2
3989
shift; shift
3990
# Remember, the first character of IFS is used to create $*,
3991
# except with old shells:
3992
host_os=$*
3993
IFS=$ac_save_IFS
3994
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3995
 
3996
 
3997 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3998 91 jeremybenn
$as_echo_n "checking target system type... " >&6; }
3999 346 jeremybenn
if test "${ac_cv_target+set}" = set; then :
4000 91 jeremybenn
  $as_echo_n "(cached) " >&6
4001
else
4002
  if test "x$target_alias" = x; then
4003
  ac_cv_target=$ac_cv_host
4004
else
4005
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4006 346 jeremybenn
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4007 91 jeremybenn
fi
4008
 
4009
fi
4010 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4011 91 jeremybenn
$as_echo "$ac_cv_target" >&6; }
4012
case $ac_cv_target in
4013
*-*-*) ;;
4014 346 jeremybenn
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4015 91 jeremybenn
esac
4016
target=$ac_cv_target
4017
ac_save_IFS=$IFS; IFS='-'
4018
set x $ac_cv_target
4019
shift
4020
target_cpu=$1
4021
target_vendor=$2
4022
shift; shift
4023
# Remember, the first character of IFS is used to create $*,
4024
# except with old shells:
4025
target_os=$*
4026
IFS=$ac_save_IFS
4027
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4028
 
4029
 
4030
# The aliases save the names the user supplied, while $host etc.
4031
# will get canonicalized.
4032
test -n "$target_alias" &&
4033
  test "$program_prefix$program_suffix$program_transform_name" = \
4034
    NONENONEs,x,x, &&
4035
  program_prefix=${target_alias}-
4036
case `pwd` in
4037
  *\ * | *\     *)
4038 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4039 91 jeremybenn
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4040
esac
4041
 
4042
 
4043
 
4044 96 jeremybenn
macro_version='2.2.6b'
4045
macro_revision='1.3017'
4046 91 jeremybenn
 
4047
 
4048
 
4049
 
4050
 
4051
 
4052
 
4053
 
4054
 
4055
 
4056
 
4057
 
4058
 
4059
ltmain="$ac_aux_dir/ltmain.sh"
4060
 
4061 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4062 91 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4063 346 jeremybenn
if test "${ac_cv_path_SED+set}" = set; then :
4064 91 jeremybenn
  $as_echo_n "(cached) " >&6
4065
else
4066
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4067
     for ac_i in 1 2 3 4 5 6 7; do
4068
       ac_script="$ac_script$as_nl$ac_script"
4069
     done
4070
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4071 346 jeremybenn
     { ac_script=; unset ac_script;}
4072 91 jeremybenn
     if test -z "$SED"; then
4073
  ac_path_SED_found=false
4074
  # Loop through the user's path and test for each of PROGNAME-LIST
4075
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076
for as_dir in $PATH
4077
do
4078
  IFS=$as_save_IFS
4079
  test -z "$as_dir" && as_dir=.
4080 346 jeremybenn
    for ac_prog in sed gsed; do
4081 91 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4082
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4083
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4084
# Check for GNU ac_path_SED and select it if it is found.
4085
  # Check for GNU $ac_path_SED
4086
case `"$ac_path_SED" --version 2>&1` in
4087
*GNU*)
4088
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4089
*)
4090
  ac_count=0
4091
  $as_echo_n 0123456789 >"conftest.in"
4092
  while :
4093
  do
4094
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4095
    mv "conftest.tmp" "conftest.in"
4096
    cp "conftest.in" "conftest.nl"
4097
    $as_echo '' >> "conftest.nl"
4098
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4099
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4100 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4101 91 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4102
      # Best one so far, save it but keep looking for a better one
4103
      ac_cv_path_SED="$ac_path_SED"
4104
      ac_path_SED_max=$ac_count
4105
    fi
4106
    # 10*(2^10) chars as input seems more than enough
4107
    test $ac_count -gt 10 && break
4108
  done
4109
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4110
esac
4111
 
4112
      $ac_path_SED_found && break 3
4113
    done
4114
  done
4115 346 jeremybenn
  done
4116 91 jeremybenn
IFS=$as_save_IFS
4117
  if test -z "$ac_cv_path_SED"; then
4118 346 jeremybenn
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4119 91 jeremybenn
  fi
4120
else
4121
  ac_cv_path_SED=$SED
4122
fi
4123
 
4124
fi
4125 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4126 91 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
4127
 SED="$ac_cv_path_SED"
4128
  rm -f conftest.sed
4129
 
4130
test -z "$SED" && SED=sed
4131
Xsed="$SED -e 1s/^X//"
4132
 
4133
 
4134
 
4135
 
4136
 
4137
 
4138
 
4139
 
4140
 
4141
 
4142
 
4143 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4144 82 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
4145 346 jeremybenn
if test "${ac_cv_path_FGREP+set}" = set; then :
4146 82 jeremybenn
  $as_echo_n "(cached) " >&6
4147 19 jeremybenn
else
4148 82 jeremybenn
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4149
   then ac_cv_path_FGREP="$GREP -F"
4150
   else
4151
     if test -z "$FGREP"; then
4152
  ac_path_FGREP_found=false
4153
  # Loop through the user's path and test for each of PROGNAME-LIST
4154
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156
do
4157
  IFS=$as_save_IFS
4158
  test -z "$as_dir" && as_dir=.
4159 346 jeremybenn
    for ac_prog in fgrep; do
4160 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4161
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4162
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4163
# Check for GNU ac_path_FGREP and select it if it is found.
4164
  # Check for GNU $ac_path_FGREP
4165
case `"$ac_path_FGREP" --version 2>&1` in
4166
*GNU*)
4167
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4168
*)
4169
  ac_count=0
4170
  $as_echo_n 0123456789 >"conftest.in"
4171
  while :
4172
  do
4173
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4174
    mv "conftest.tmp" "conftest.in"
4175
    cp "conftest.in" "conftest.nl"
4176
    $as_echo 'FGREP' >> "conftest.nl"
4177
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4178
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4179 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4180 82 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4181
      # Best one so far, save it but keep looking for a better one
4182
      ac_cv_path_FGREP="$ac_path_FGREP"
4183
      ac_path_FGREP_max=$ac_count
4184
    fi
4185
    # 10*(2^10) chars as input seems more than enough
4186
    test $ac_count -gt 10 && break
4187
  done
4188
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4189
esac
4190
 
4191
      $ac_path_FGREP_found && break 3
4192
    done
4193
  done
4194 346 jeremybenn
  done
4195 82 jeremybenn
IFS=$as_save_IFS
4196
  if test -z "$ac_cv_path_FGREP"; then
4197 346 jeremybenn
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198 82 jeremybenn
  fi
4199
else
4200
  ac_cv_path_FGREP=$FGREP
4201 19 jeremybenn
fi
4202
 
4203
   fi
4204
fi
4205 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4206 82 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
4207
 FGREP="$ac_cv_path_FGREP"
4208 19 jeremybenn
 
4209
 
4210 82 jeremybenn
test -z "$GREP" && GREP=grep
4211 19 jeremybenn
 
4212 82 jeremybenn
 
4213
 
4214
 
4215
 
4216
 
4217
 
4218
 
4219
 
4220
 
4221
 
4222
 
4223
 
4224
 
4225
 
4226
 
4227
 
4228
 
4229
 
4230 19 jeremybenn
# Check whether --with-gnu-ld was given.
4231 346 jeremybenn
if test "${with_gnu_ld+set}" = set; then :
4232 19 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4233
else
4234
  with_gnu_ld=no
4235
fi
4236
 
4237
ac_prog=ld
4238
if test "$GCC" = yes; then
4239
  # Check if gcc -print-prog-name=ld gives a path.
4240 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4241 82 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
4242 19 jeremybenn
  case $host in
4243
  *-*-mingw*)
4244
    # gcc leaves a trailing carriage return which upsets mingw
4245
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4246
  *)
4247
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4248
  esac
4249
  case $ac_prog in
4250
    # Accept absolute paths.
4251
    [\\/]* | ?:[\\/]*)
4252
      re_direlt='/[^/][^/]*/\.\./'
4253
      # Canonicalize the pathname of ld
4254 82 jeremybenn
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4255
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4256
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4257 19 jeremybenn
      done
4258
      test -z "$LD" && LD="$ac_prog"
4259
      ;;
4260
  "")
4261
    # If it fails, then pretend we aren't using GCC.
4262
    ac_prog=ld
4263
    ;;
4264
  *)
4265
    # If it is relative, then search for the first ld in PATH.
4266
    with_gnu_ld=unknown
4267
    ;;
4268
  esac
4269
elif test "$with_gnu_ld" = yes; then
4270 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4271 82 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
4272 19 jeremybenn
else
4273 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4274 82 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
4275 19 jeremybenn
fi
4276 346 jeremybenn
if test "${lt_cv_path_LD+set}" = set; then :
4277 82 jeremybenn
  $as_echo_n "(cached) " >&6
4278 19 jeremybenn
else
4279
  if test -z "$LD"; then
4280
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4281
  for ac_dir in $PATH; do
4282
    IFS="$lt_save_ifs"
4283
    test -z "$ac_dir" && ac_dir=.
4284
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4285
      lt_cv_path_LD="$ac_dir/$ac_prog"
4286
      # Check to see if the program is GNU ld.  I'd rather use --version,
4287
      # but apparently some variants of GNU ld only accept -v.
4288
      # Break only if it was the GNU/non-GNU ld that we prefer.
4289
      case `"$lt_cv_path_LD" -v 2>&1 
4290
      *GNU* | *'with BFD'*)
4291
        test "$with_gnu_ld" != no && break
4292
        ;;
4293
      *)
4294
        test "$with_gnu_ld" != yes && break
4295
        ;;
4296
      esac
4297
    fi
4298
  done
4299
  IFS="$lt_save_ifs"
4300
else
4301
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4302
fi
4303
fi
4304
 
4305
LD="$lt_cv_path_LD"
4306
if test -n "$LD"; then
4307 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4308 82 jeremybenn
$as_echo "$LD" >&6; }
4309 19 jeremybenn
else
4310 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 82 jeremybenn
$as_echo "no" >&6; }
4312 19 jeremybenn
fi
4313 346 jeremybenn
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4315 82 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4316 346 jeremybenn
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4317 82 jeremybenn
  $as_echo_n "(cached) " >&6
4318 19 jeremybenn
else
4319
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4320
case `$LD -v 2>&1 
4321
*GNU* | *'with BFD'*)
4322
  lt_cv_prog_gnu_ld=yes
4323
  ;;
4324
*)
4325
  lt_cv_prog_gnu_ld=no
4326
  ;;
4327
esac
4328
fi
4329 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4330 82 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4331 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
4332
 
4333
 
4334
 
4335 82 jeremybenn
 
4336
 
4337
 
4338
 
4339
 
4340
 
4341 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4342 82 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4343 346 jeremybenn
if test "${lt_cv_path_NM+set}" = set; then :
4344 82 jeremybenn
  $as_echo_n "(cached) " >&6
4345 19 jeremybenn
else
4346
  if test -n "$NM"; then
4347
  # Let the user override the test.
4348
  lt_cv_path_NM="$NM"
4349
else
4350
  lt_nm_to_check="${ac_tool_prefix}nm"
4351
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4352
    lt_nm_to_check="$lt_nm_to_check nm"
4353
  fi
4354
  for lt_tmp_nm in $lt_nm_to_check; do
4355
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4356
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4357
      IFS="$lt_save_ifs"
4358
      test -z "$ac_dir" && ac_dir=.
4359
      tmp_nm="$ac_dir/$lt_tmp_nm"
4360
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4361
        # Check to see if the nm accepts a BSD-compat flag.
4362
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4363
        #   nm: unknown option "B" ignored
4364
        # Tru64's nm complains that /dev/null is an invalid object file
4365
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4366
        */dev/null* | *'Invalid file or object type'*)
4367
          lt_cv_path_NM="$tmp_nm -B"
4368
          break
4369
          ;;
4370
        *)
4371
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4372
          */dev/null*)
4373
            lt_cv_path_NM="$tmp_nm -p"
4374
            break
4375
            ;;
4376
          *)
4377
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4378
            continue # so that we can try to find one that supports BSD flags
4379
            ;;
4380
          esac
4381
          ;;
4382
        esac
4383
      fi
4384
    done
4385
    IFS="$lt_save_ifs"
4386
  done
4387 82 jeremybenn
  : ${lt_cv_path_NM=no}
4388 19 jeremybenn
fi
4389
fi
4390 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4391 82 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
4392
if test "$lt_cv_path_NM" != "no"; then
4393
  NM="$lt_cv_path_NM"
4394
else
4395
  # Didn't find any BSD compatible name lister, look for dumpbin.
4396
  if test -n "$ac_tool_prefix"; then
4397
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4398
  do
4399
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4400
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4401 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4403 346 jeremybenn
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4404 82 jeremybenn
  $as_echo_n "(cached) " >&6
4405
else
4406
  if test -n "$DUMPBIN"; then
4407
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4408
else
4409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410
for as_dir in $PATH
4411
do
4412
  IFS=$as_save_IFS
4413
  test -z "$as_dir" && as_dir=.
4414 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4415 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4417 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 82 jeremybenn
    break 2
4419
  fi
4420
done
4421 346 jeremybenn
  done
4422 82 jeremybenn
IFS=$as_save_IFS
4423 19 jeremybenn
 
4424 82 jeremybenn
fi
4425
fi
4426
DUMPBIN=$ac_cv_prog_DUMPBIN
4427
if test -n "$DUMPBIN"; then
4428 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4429 82 jeremybenn
$as_echo "$DUMPBIN" >&6; }
4430
else
4431 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 82 jeremybenn
$as_echo "no" >&6; }
4433
fi
4434
 
4435
 
4436
    test -n "$DUMPBIN" && break
4437
  done
4438
fi
4439
if test -z "$DUMPBIN"; then
4440
  ac_ct_DUMPBIN=$DUMPBIN
4441
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4442
do
4443
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4444
set dummy $ac_prog; ac_word=$2
4445 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4447 346 jeremybenn
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4448 82 jeremybenn
  $as_echo_n "(cached) " >&6
4449
else
4450
  if test -n "$ac_ct_DUMPBIN"; then
4451
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4452
else
4453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454
for as_dir in $PATH
4455
do
4456
  IFS=$as_save_IFS
4457
  test -z "$as_dir" && as_dir=.
4458 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4459 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4461 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 82 jeremybenn
    break 2
4463
  fi
4464
done
4465 346 jeremybenn
  done
4466 82 jeremybenn
IFS=$as_save_IFS
4467
 
4468
fi
4469
fi
4470
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4471
if test -n "$ac_ct_DUMPBIN"; then
4472 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4473 82 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
4474
else
4475 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 82 jeremybenn
$as_echo "no" >&6; }
4477
fi
4478
 
4479
 
4480
  test -n "$ac_ct_DUMPBIN" && break
4481
done
4482
 
4483
  if test "x$ac_ct_DUMPBIN" = x; then
4484
    DUMPBIN=":"
4485
  else
4486
    case $cross_compiling:$ac_tool_warned in
4487
yes:)
4488 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4489 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4490
ac_tool_warned=yes ;;
4491
esac
4492
    DUMPBIN=$ac_ct_DUMPBIN
4493
  fi
4494
fi
4495
 
4496
 
4497
  if test "$DUMPBIN" != ":"; then
4498
    NM="$DUMPBIN"
4499
  fi
4500
fi
4501
test -z "$NM" && NM=nm
4502
 
4503
 
4504
 
4505
 
4506
 
4507
 
4508 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4509 82 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4510 346 jeremybenn
if test "${lt_cv_nm_interface+set}" = set; then :
4511 82 jeremybenn
  $as_echo_n "(cached) " >&6
4512
else
4513
  lt_cv_nm_interface="BSD nm"
4514
  echo "int some_variable = 0;" > conftest.$ac_ext
4515 538 julius
  (eval echo "\"\$as_me:4515: $ac_compile\"" >&5)
4516 82 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
4517
  cat conftest.err >&5
4518 538 julius
  (eval echo "\"\$as_me:4518: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4519 82 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4520
  cat conftest.err >&5
4521 538 julius
  (eval echo "\"\$as_me:4521: output\"" >&5)
4522 82 jeremybenn
  cat conftest.out >&5
4523
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4524
    lt_cv_nm_interface="MS dumpbin"
4525
  fi
4526
  rm -f conftest*
4527
fi
4528 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4529 82 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
4530
 
4531 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4532 82 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
4533 19 jeremybenn
LN_S=$as_ln_s
4534
if test "$LN_S" = "ln -s"; then
4535 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4536 82 jeremybenn
$as_echo "yes" >&6; }
4537 19 jeremybenn
else
4538 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4539 82 jeremybenn
$as_echo "no, using $LN_S" >&6; }
4540 19 jeremybenn
fi
4541
 
4542 82 jeremybenn
# find the maximum length of command line arguments
4543 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4544 82 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4545 346 jeremybenn
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4546 82 jeremybenn
  $as_echo_n "(cached) " >&6
4547
else
4548
    i=0
4549
  teststring="ABCD"
4550
 
4551
  case $build_os in
4552
  msdosdjgpp*)
4553
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4554
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4555
    # during glob expansion).  Even if it were fixed, the result of this
4556
    # check would be larger than it should be.
4557
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4558
    ;;
4559
 
4560
  gnu*)
4561
    # Under GNU Hurd, this test is not required because there is
4562
    # no limit to the length of command line arguments.
4563
    # Libtool will interpret -1 as no limit whatsoever
4564
    lt_cv_sys_max_cmd_len=-1;
4565
    ;;
4566
 
4567
  cygwin* | mingw* | cegcc*)
4568
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4569
    # about 5 minutes as the teststring grows exponentially.
4570
    # Worse, since 9x/ME are not pre-emptively multitasking,
4571
    # you end up with a "frozen" computer, even though with patience
4572
    # the test eventually succeeds (with a max line length of 256k).
4573
    # Instead, let's just punt: use the minimum linelength reported by
4574
    # all of the supported platforms: 8192 (on NT/2K/XP).
4575
    lt_cv_sys_max_cmd_len=8192;
4576
    ;;
4577
 
4578
  amigaos*)
4579
    # On AmigaOS with pdksh, this test takes hours, literally.
4580
    # So we just punt and use a minimum line length of 8192.
4581
    lt_cv_sys_max_cmd_len=8192;
4582
    ;;
4583
 
4584
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4585
    # This has been around since 386BSD, at least.  Likely further.
4586
    if test -x /sbin/sysctl; then
4587
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4588
    elif test -x /usr/sbin/sysctl; then
4589
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4590
    else
4591
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4592
    fi
4593
    # And add a safety zone
4594
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4595
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4596
    ;;
4597
 
4598
  interix*)
4599
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4600
    lt_cv_sys_max_cmd_len=196608
4601
    ;;
4602
 
4603
  osf*)
4604
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4605
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4606
    # nice to cause kernel panics so lets avoid the loop below.
4607
    # First set a reasonable default.
4608
    lt_cv_sys_max_cmd_len=16384
4609
    #
4610
    if test -x /sbin/sysconfig; then
4611
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4612
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4613
      esac
4614
    fi
4615
    ;;
4616
  sco3.2v5*)
4617
    lt_cv_sys_max_cmd_len=102400
4618
    ;;
4619
  sysv5* | sco5v6* | sysv4.2uw2*)
4620
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4621
    if test -n "$kargmax"; then
4622
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4623
    else
4624
      lt_cv_sys_max_cmd_len=32768
4625
    fi
4626
    ;;
4627
  *)
4628
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4629
    if test -n "$lt_cv_sys_max_cmd_len"; then
4630
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4631
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4632
    else
4633
      # Make teststring a little bigger before we do anything with it.
4634
      # a 1K string should be a reasonable start.
4635
      for i in 1 2 3 4 5 6 7 8 ; do
4636
        teststring=$teststring$teststring
4637
      done
4638
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4639
      # If test is not a shell built-in, we'll probably end up computing a
4640
      # maximum length that is only half of the actual maximum length, but
4641
      # we can't tell.
4642
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4643
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4644
              test $i != 17 # 1/2 MB should be enough
4645
      do
4646
        i=`expr $i + 1`
4647
        teststring=$teststring$teststring
4648
      done
4649
      # Only check the string length outside the loop.
4650
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4651
      teststring=
4652
      # Add a significant safety factor because C++ compilers can tack on
4653
      # massive amounts of additional arguments before passing them to the
4654
      # linker.  It appears as though 1/2 is a usable value.
4655
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4656
    fi
4657
    ;;
4658
  esac
4659
 
4660
fi
4661
 
4662
if test -n $lt_cv_sys_max_cmd_len ; then
4663 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4664 82 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4665
else
4666 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4667 82 jeremybenn
$as_echo "none" >&6; }
4668
fi
4669
max_cmd_len=$lt_cv_sys_max_cmd_len
4670
 
4671
 
4672
 
4673
 
4674
 
4675
 
4676
: ${CP="cp -f"}
4677
: ${MV="mv -f"}
4678
: ${RM="rm -f"}
4679
 
4680 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4681 82 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4682
# Try some XSI features
4683
xsi_shell=no
4684
( _lt_dummy="a/b/c"
4685
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4686
      = c,a/b,, \
4687
    && eval 'test $(( 1 + 1 )) -eq 2 \
4688
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4689
  && xsi_shell=yes
4690 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4691 82 jeremybenn
$as_echo "$xsi_shell" >&6; }
4692
 
4693
 
4694 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4695 82 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4696
lt_shell_append=no
4697
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4698
    >/dev/null 2>&1 \
4699
  && lt_shell_append=yes
4700 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4701 82 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4702
 
4703
 
4704
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4705
  lt_unset=unset
4706
else
4707
  lt_unset=false
4708
fi
4709
 
4710
 
4711
 
4712
 
4713
 
4714
# test EBCDIC or ASCII
4715
case `echo X|tr X '\101'` in
4716
 A) # ASCII based system
4717
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4718
  lt_SP2NL='tr \040 \012'
4719
  lt_NL2SP='tr \015\012 \040\040'
4720
  ;;
4721
 *) # EBCDIC based system
4722
  lt_SP2NL='tr \100 \n'
4723
  lt_NL2SP='tr \r\n \100\100'
4724
  ;;
4725
esac
4726
 
4727
 
4728
 
4729
 
4730
 
4731
 
4732
 
4733
 
4734
 
4735 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4736 82 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4737 346 jeremybenn
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4738 82 jeremybenn
  $as_echo_n "(cached) " >&6
4739
else
4740
  lt_cv_ld_reload_flag='-r'
4741
fi
4742 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4743 82 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4744
reload_flag=$lt_cv_ld_reload_flag
4745
case $reload_flag in
4746
"" | " "*) ;;
4747
*) reload_flag=" $reload_flag" ;;
4748
esac
4749
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4750
case $host_os in
4751
  darwin*)
4752
    if test "$GCC" = yes; then
4753
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4754
    else
4755
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4756
    fi
4757
    ;;
4758
esac
4759
 
4760
 
4761
 
4762
 
4763
 
4764
 
4765
 
4766
 
4767
 
4768
if test -n "$ac_tool_prefix"; then
4769
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4770
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4771 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4773 346 jeremybenn
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4774 82 jeremybenn
  $as_echo_n "(cached) " >&6
4775
else
4776
  if test -n "$OBJDUMP"; then
4777
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4778
else
4779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780
for as_dir in $PATH
4781
do
4782
  IFS=$as_save_IFS
4783
  test -z "$as_dir" && as_dir=.
4784 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4785 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4787 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 82 jeremybenn
    break 2
4789
  fi
4790
done
4791 346 jeremybenn
  done
4792 82 jeremybenn
IFS=$as_save_IFS
4793
 
4794
fi
4795
fi
4796
OBJDUMP=$ac_cv_prog_OBJDUMP
4797
if test -n "$OBJDUMP"; then
4798 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4799 82 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4800
else
4801 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 82 jeremybenn
$as_echo "no" >&6; }
4803
fi
4804
 
4805
 
4806
fi
4807
if test -z "$ac_cv_prog_OBJDUMP"; then
4808
  ac_ct_OBJDUMP=$OBJDUMP
4809
  # Extract the first word of "objdump", so it can be a program name with args.
4810
set dummy objdump; ac_word=$2
4811 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4813 346 jeremybenn
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4814 82 jeremybenn
  $as_echo_n "(cached) " >&6
4815
else
4816
  if test -n "$ac_ct_OBJDUMP"; then
4817
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4818
else
4819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820
for as_dir in $PATH
4821
do
4822
  IFS=$as_save_IFS
4823
  test -z "$as_dir" && as_dir=.
4824 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4825 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4827 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 82 jeremybenn
    break 2
4829
  fi
4830
done
4831 346 jeremybenn
  done
4832 82 jeremybenn
IFS=$as_save_IFS
4833
 
4834
fi
4835
fi
4836
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4837
if test -n "$ac_ct_OBJDUMP"; then
4838 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4839 82 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4840
else
4841 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 82 jeremybenn
$as_echo "no" >&6; }
4843
fi
4844
 
4845
  if test "x$ac_ct_OBJDUMP" = x; then
4846
    OBJDUMP="false"
4847
  else
4848
    case $cross_compiling:$ac_tool_warned in
4849
yes:)
4850 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4851 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4852
ac_tool_warned=yes ;;
4853
esac
4854
    OBJDUMP=$ac_ct_OBJDUMP
4855
  fi
4856
else
4857
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4858
fi
4859
 
4860
test -z "$OBJDUMP" && OBJDUMP=objdump
4861
 
4862
 
4863
 
4864
 
4865
 
4866
 
4867
 
4868
 
4869
 
4870 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4871 82 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4872 346 jeremybenn
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4873 82 jeremybenn
  $as_echo_n "(cached) " >&6
4874 19 jeremybenn
else
4875
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4876
lt_cv_file_magic_test_file=
4877
lt_cv_deplibs_check_method='unknown'
4878
# Need to set the preceding variable on all platforms that support
4879
# interlibrary dependencies.
4880
# 'none' -- dependencies not supported.
4881
# `unknown' -- same as none, but documents that we really don't know.
4882
# 'pass_all' -- all dependencies passed with no checks.
4883
# 'test_compile' -- check by making test program.
4884
# 'file_magic [[regex]]' -- check by looking for files in library path
4885
# which responds to the $file_magic_cmd with a given extended regex.
4886
# If you have `file' or equivalent on your system and you're not sure
4887
# whether `pass_all' will *always* work, you probably want this one.
4888
 
4889
case $host_os in
4890 82 jeremybenn
aix[4-9]*)
4891 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4892
  ;;
4893
 
4894
beos*)
4895
  lt_cv_deplibs_check_method=pass_all
4896
  ;;
4897
 
4898
bsdi[45]*)
4899
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4900
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4901
  lt_cv_file_magic_test_file=/shlib/libc.so
4902
  ;;
4903
 
4904
cygwin*)
4905
  # func_win32_libid is a shell function defined in ltmain.sh
4906
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4907
  lt_cv_file_magic_cmd='func_win32_libid'
4908
  ;;
4909
 
4910
mingw* | pw32*)
4911
  # Base MSYS/MinGW do not provide the 'file' command needed by
4912
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4913
  # unless we find 'file', for example because we are cross-compiling.
4914
  if ( file / ) >/dev/null 2>&1; then
4915
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4916
    lt_cv_file_magic_cmd='func_win32_libid'
4917
  else
4918
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4919
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4920
  fi
4921
  ;;
4922
 
4923 82 jeremybenn
cegcc)
4924
  # use the weaker test based on 'objdump'. See mingw*.
4925
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4926
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4927
  ;;
4928
 
4929 19 jeremybenn
darwin* | rhapsody*)
4930
  lt_cv_deplibs_check_method=pass_all
4931
  ;;
4932
 
4933
freebsd* | dragonfly*)
4934 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4935 19 jeremybenn
    case $host_cpu in
4936
    i*86 )
4937
      # Not sure whether the presence of OpenBSD here was a mistake.
4938
      # Let's accept both of them until this is cleared up.
4939
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4940
      lt_cv_file_magic_cmd=/usr/bin/file
4941
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4942
      ;;
4943
    esac
4944
  else
4945
    lt_cv_deplibs_check_method=pass_all
4946
  fi
4947
  ;;
4948
 
4949
gnu*)
4950
  lt_cv_deplibs_check_method=pass_all
4951
  ;;
4952
 
4953
hpux10.20* | hpux11*)
4954
  lt_cv_file_magic_cmd=/usr/bin/file
4955
  case $host_cpu in
4956
  ia64*)
4957
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4958
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4959
    ;;
4960
  hppa*64*)
4961
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4962
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4963
    ;;
4964
  *)
4965
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4966
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4967
    ;;
4968
  esac
4969
  ;;
4970
 
4971
interix[3-9]*)
4972
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4973
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4974
  ;;
4975
 
4976
irix5* | irix6* | nonstopux*)
4977
  case $LD in
4978
  *-32|*"-32 ") libmagic=32-bit;;
4979
  *-n32|*"-n32 ") libmagic=N32;;
4980
  *-64|*"-64 ") libmagic=64-bit;;
4981
  *) libmagic=never-match;;
4982
  esac
4983
  lt_cv_deplibs_check_method=pass_all
4984
  ;;
4985
 
4986
# This must be Linux ELF.
4987
linux* | k*bsd*-gnu)
4988
  lt_cv_deplibs_check_method=pass_all
4989
  ;;
4990
 
4991 93 jeremybenn
netbsd* | netbsdelf*-gnu)
4992 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4993 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4994
  else
4995
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4996
  fi
4997
  ;;
4998
 
4999
newos6*)
5000
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5001
  lt_cv_file_magic_cmd=/usr/bin/file
5002
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5003
  ;;
5004
 
5005 82 jeremybenn
*nto* | *qnx*)
5006
  lt_cv_deplibs_check_method=pass_all
5007 19 jeremybenn
  ;;
5008
 
5009
openbsd*)
5010 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5011 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5012
  else
5013
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5014
  fi
5015
  ;;
5016
 
5017
osf3* | osf4* | osf5*)
5018
  lt_cv_deplibs_check_method=pass_all
5019
  ;;
5020
 
5021
rdos*)
5022
  lt_cv_deplibs_check_method=pass_all
5023
  ;;
5024
 
5025
solaris*)
5026
  lt_cv_deplibs_check_method=pass_all
5027
  ;;
5028
 
5029 82 jeremybenn
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5030
  lt_cv_deplibs_check_method=pass_all
5031
  ;;
5032
 
5033 19 jeremybenn
sysv4 | sysv4.3*)
5034
  case $host_vendor in
5035
  motorola)
5036
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5037
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5038
    ;;
5039
  ncr)
5040
    lt_cv_deplibs_check_method=pass_all
5041
    ;;
5042
  sequent)
5043
    lt_cv_file_magic_cmd='/bin/file'
5044
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5045
    ;;
5046
  sni)
5047
    lt_cv_file_magic_cmd='/bin/file'
5048
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5049
    lt_cv_file_magic_test_file=/lib/libc.so
5050
    ;;
5051
  siemens)
5052
    lt_cv_deplibs_check_method=pass_all
5053
    ;;
5054
  pc)
5055
    lt_cv_deplibs_check_method=pass_all
5056
    ;;
5057
  esac
5058
  ;;
5059
 
5060 82 jeremybenn
tpf*)
5061 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
5062
  ;;
5063
esac
5064
 
5065
fi
5066 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5067 82 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5068 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
5069
deplibs_check_method=$lt_cv_deplibs_check_method
5070
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5071
 
5072
 
5073
 
5074
 
5075 82 jeremybenn
 
5076
 
5077
 
5078
 
5079
 
5080
 
5081
 
5082
 
5083
if test -n "$ac_tool_prefix"; then
5084
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5085
set dummy ${ac_tool_prefix}ar; ac_word=$2
5086 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5088 346 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then :
5089 82 jeremybenn
  $as_echo_n "(cached) " >&6
5090
else
5091
  if test -n "$AR"; then
5092
  ac_cv_prog_AR="$AR" # Let the user override the test.
5093
else
5094
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095
for as_dir in $PATH
5096
do
5097
  IFS=$as_save_IFS
5098
  test -z "$as_dir" && as_dir=.
5099 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5100 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5102 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 82 jeremybenn
    break 2
5104
  fi
5105
done
5106 346 jeremybenn
  done
5107 82 jeremybenn
IFS=$as_save_IFS
5108
 
5109
fi
5110
fi
5111
AR=$ac_cv_prog_AR
5112
if test -n "$AR"; then
5113 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5114 82 jeremybenn
$as_echo "$AR" >&6; }
5115
else
5116 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 82 jeremybenn
$as_echo "no" >&6; }
5118
fi
5119
 
5120
 
5121
fi
5122
if test -z "$ac_cv_prog_AR"; then
5123
  ac_ct_AR=$AR
5124
  # Extract the first word of "ar", so it can be a program name with args.
5125
set dummy ar; ac_word=$2
5126 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5128 346 jeremybenn
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5129 82 jeremybenn
  $as_echo_n "(cached) " >&6
5130
else
5131
  if test -n "$ac_ct_AR"; then
5132
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5133
else
5134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135
for as_dir in $PATH
5136
do
5137
  IFS=$as_save_IFS
5138
  test -z "$as_dir" && as_dir=.
5139 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5140 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141
    ac_cv_prog_ac_ct_AR="ar"
5142 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 82 jeremybenn
    break 2
5144
  fi
5145
done
5146 346 jeremybenn
  done
5147 82 jeremybenn
IFS=$as_save_IFS
5148
 
5149
fi
5150
fi
5151
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5152
if test -n "$ac_ct_AR"; then
5153 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5154 82 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
5155
else
5156 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 82 jeremybenn
$as_echo "no" >&6; }
5158
fi
5159
 
5160
  if test "x$ac_ct_AR" = x; then
5161
    AR="false"
5162
  else
5163
    case $cross_compiling:$ac_tool_warned in
5164
yes:)
5165 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5166 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167
ac_tool_warned=yes ;;
5168
esac
5169
    AR=$ac_ct_AR
5170
  fi
5171
else
5172
  AR="$ac_cv_prog_AR"
5173
fi
5174
 
5175
test -z "$AR" && AR=ar
5176
test -z "$AR_FLAGS" && AR_FLAGS=cru
5177
 
5178
 
5179
 
5180
 
5181
 
5182
 
5183
 
5184
 
5185
 
5186
 
5187
 
5188
if test -n "$ac_tool_prefix"; then
5189
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5190
set dummy ${ac_tool_prefix}strip; ac_word=$2
5191 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5193 346 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then :
5194 82 jeremybenn
  $as_echo_n "(cached) " >&6
5195
else
5196
  if test -n "$STRIP"; then
5197
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5198
else
5199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200
for as_dir in $PATH
5201
do
5202
  IFS=$as_save_IFS
5203
  test -z "$as_dir" && as_dir=.
5204 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5205 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5207 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 82 jeremybenn
    break 2
5209
  fi
5210
done
5211 346 jeremybenn
  done
5212 82 jeremybenn
IFS=$as_save_IFS
5213
 
5214
fi
5215
fi
5216
STRIP=$ac_cv_prog_STRIP
5217
if test -n "$STRIP"; then
5218 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5219 82 jeremybenn
$as_echo "$STRIP" >&6; }
5220
else
5221 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 82 jeremybenn
$as_echo "no" >&6; }
5223
fi
5224
 
5225
 
5226
fi
5227
if test -z "$ac_cv_prog_STRIP"; then
5228
  ac_ct_STRIP=$STRIP
5229
  # Extract the first word of "strip", so it can be a program name with args.
5230
set dummy strip; ac_word=$2
5231 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5233 346 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5234 82 jeremybenn
  $as_echo_n "(cached) " >&6
5235
else
5236
  if test -n "$ac_ct_STRIP"; then
5237
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5238
else
5239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240
for as_dir in $PATH
5241
do
5242
  IFS=$as_save_IFS
5243
  test -z "$as_dir" && as_dir=.
5244 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5245 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246
    ac_cv_prog_ac_ct_STRIP="strip"
5247 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 82 jeremybenn
    break 2
5249
  fi
5250
done
5251 346 jeremybenn
  done
5252 82 jeremybenn
IFS=$as_save_IFS
5253
 
5254
fi
5255
fi
5256
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5257
if test -n "$ac_ct_STRIP"; then
5258 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5259 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
5260
else
5261 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 82 jeremybenn
$as_echo "no" >&6; }
5263
fi
5264
 
5265
  if test "x$ac_ct_STRIP" = x; then
5266
    STRIP=":"
5267
  else
5268
    case $cross_compiling:$ac_tool_warned in
5269
yes:)
5270 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5271 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5272
ac_tool_warned=yes ;;
5273
esac
5274
    STRIP=$ac_ct_STRIP
5275
  fi
5276
else
5277
  STRIP="$ac_cv_prog_STRIP"
5278
fi
5279
 
5280
test -z "$STRIP" && STRIP=:
5281
 
5282
 
5283
 
5284
 
5285
 
5286
 
5287
if test -n "$ac_tool_prefix"; then
5288
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5289
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5290 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5292 346 jeremybenn
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5293 82 jeremybenn
  $as_echo_n "(cached) " >&6
5294
else
5295
  if test -n "$RANLIB"; then
5296
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5297
else
5298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299
for as_dir in $PATH
5300
do
5301
  IFS=$as_save_IFS
5302
  test -z "$as_dir" && as_dir=.
5303 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5304 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5306 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 82 jeremybenn
    break 2
5308
  fi
5309
done
5310 346 jeremybenn
  done
5311 82 jeremybenn
IFS=$as_save_IFS
5312
 
5313
fi
5314
fi
5315
RANLIB=$ac_cv_prog_RANLIB
5316
if test -n "$RANLIB"; then
5317 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5318 82 jeremybenn
$as_echo "$RANLIB" >&6; }
5319
else
5320 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 82 jeremybenn
$as_echo "no" >&6; }
5322
fi
5323
 
5324
 
5325
fi
5326
if test -z "$ac_cv_prog_RANLIB"; then
5327
  ac_ct_RANLIB=$RANLIB
5328
  # Extract the first word of "ranlib", so it can be a program name with args.
5329
set dummy ranlib; ac_word=$2
5330 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5332 346 jeremybenn
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5333 82 jeremybenn
  $as_echo_n "(cached) " >&6
5334
else
5335
  if test -n "$ac_ct_RANLIB"; then
5336
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5337
else
5338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339
for as_dir in $PATH
5340
do
5341
  IFS=$as_save_IFS
5342
  test -z "$as_dir" && as_dir=.
5343 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5344 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5345
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5346 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 82 jeremybenn
    break 2
5348
  fi
5349
done
5350 346 jeremybenn
  done
5351 82 jeremybenn
IFS=$as_save_IFS
5352
 
5353
fi
5354
fi
5355
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5356
if test -n "$ac_ct_RANLIB"; then
5357 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5358 82 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
5359
else
5360 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 82 jeremybenn
$as_echo "no" >&6; }
5362
fi
5363
 
5364
  if test "x$ac_ct_RANLIB" = x; then
5365
    RANLIB=":"
5366
  else
5367
    case $cross_compiling:$ac_tool_warned in
5368
yes:)
5369 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5370 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5371
ac_tool_warned=yes ;;
5372
esac
5373
    RANLIB=$ac_ct_RANLIB
5374
  fi
5375
else
5376
  RANLIB="$ac_cv_prog_RANLIB"
5377
fi
5378
 
5379
test -z "$RANLIB" && RANLIB=:
5380
 
5381
 
5382
 
5383
 
5384
 
5385
 
5386
# Determine commands to create old-style static archives.
5387
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5388
old_postinstall_cmds='chmod 644 $oldlib'
5389
old_postuninstall_cmds=
5390
 
5391
if test -n "$RANLIB"; then
5392
  case $host_os in
5393
  openbsd*)
5394
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5395
    ;;
5396
  *)
5397
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5398
    ;;
5399
  esac
5400
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5401
fi
5402
 
5403
 
5404
 
5405
 
5406
 
5407
 
5408
 
5409
 
5410
 
5411
 
5412
 
5413
 
5414
 
5415
 
5416
 
5417
 
5418
 
5419
 
5420
 
5421
 
5422
 
5423
 
5424
 
5425
 
5426
 
5427
 
5428
 
5429
 
5430
 
5431
 
5432
 
5433
 
5434
 
5435
 
5436 19 jeremybenn
# If no C compiler was specified, use CC.
5437
LTCC=${LTCC-"$CC"}
5438
 
5439
# If no C compiler flags were specified, use CFLAGS.
5440
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5441
 
5442
# Allow CC to be a program name with arguments.
5443
compiler=$CC
5444
 
5445
 
5446 82 jeremybenn
# Check for command to grab the raw symbol name followed by C symbol from nm.
5447 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5448 82 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5449 346 jeremybenn
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5450 82 jeremybenn
  $as_echo_n "(cached) " >&6
5451
else
5452
 
5453
# These are sane defaults that work on at least a few old systems.
5454
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5455
 
5456
# Character class describing NM global symbol codes.
5457
symcode='[BCDEGRST]'
5458
 
5459
# Regexp to match symbols that can be accessed directly from C.
5460
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5461
 
5462
# Define system-specific variables.
5463
case $host_os in
5464
aix*)
5465
  symcode='[BCDT]'
5466
  ;;
5467
cygwin* | mingw* | pw32* | cegcc*)
5468
  symcode='[ABCDGISTW]'
5469
  ;;
5470
hpux*)
5471
  if test "$host_cpu" = ia64; then
5472
    symcode='[ABCDEGRST]'
5473
  fi
5474
  ;;
5475
irix* | nonstopux*)
5476
  symcode='[BCDEGRST]'
5477
  ;;
5478
osf*)
5479
  symcode='[BCDEGQRST]'
5480
  ;;
5481
solaris*)
5482
  symcode='[BDRT]'
5483
  ;;
5484
sco3.2v5*)
5485
  symcode='[DT]'
5486
  ;;
5487
sysv4.2uw2*)
5488
  symcode='[DT]'
5489
  ;;
5490
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5491
  symcode='[ABDT]'
5492
  ;;
5493
sysv4)
5494
  symcode='[DFNSTU]'
5495
  ;;
5496
esac
5497
 
5498
# If we're using GNU nm, then use its standard symbol codes.
5499
case `$NM -V 2>&1` in
5500
*GNU* | *'with BFD'*)
5501
  symcode='[ABCDGIRSTW]' ;;
5502
esac
5503
 
5504
# Transform an extracted symbol line into a proper C declaration.
5505
# Some systems (esp. on ia64) link data and code symbols differently,
5506
# so use this general approach.
5507
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5508
 
5509
# Transform an extracted symbol line into symbol name and symbol address
5510
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5511
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5512
 
5513
# Handle CRLF in mingw tool chain
5514
opt_cr=
5515
case $build_os in
5516
mingw*)
5517
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5518
  ;;
5519
esac
5520
 
5521
# Try without a prefix underscore, then with it.
5522
for ac_symprfx in "" "_"; do
5523
 
5524
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5525
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5526
 
5527
  # Write the raw and C identifiers.
5528
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5529
    # Fake it for dumpbin and say T for any non-static function
5530
    # and D for any global variable.
5531
    # Also find C++ and __fastcall symbols from MSVC++,
5532
    # which start with @ or ?.
5533
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5534
"     {last_section=section; section=\$ 3};"\
5535
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5536
"     \$ 0!~/External *\|/{next};"\
5537
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5538
"     {if(hide[section]) next};"\
5539
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5540
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5541
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5542
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5543
"     ' prfx=^$ac_symprfx"
5544
  else
5545
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5546
  fi
5547
 
5548
  # Check to see that the pipe works correctly.
5549
  pipe_works=no
5550
 
5551
  rm -f conftest*
5552
  cat > conftest.$ac_ext <<_LT_EOF
5553
#ifdef __cplusplus
5554
extern "C" {
5555
#endif
5556
char nm_test_var;
5557
void nm_test_func(void);
5558
void nm_test_func(void){}
5559
#ifdef __cplusplus
5560
}
5561
#endif
5562
int main(){nm_test_var='a';nm_test_func();return(0);}
5563
_LT_EOF
5564
 
5565 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5566 82 jeremybenn
  (eval $ac_compile) 2>&5
5567
  ac_status=$?
5568 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5569
  test $ac_status = 0; }; then
5570 82 jeremybenn
    # Now try to grab the symbols.
5571
    nlist=conftest.nm
5572 346 jeremybenn
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5573 82 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5574
  ac_status=$?
5575 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576
  test $ac_status = 0; } && test -s "$nlist"; then
5577 82 jeremybenn
      # Try sorting and uniquifying the output.
5578
      if sort "$nlist" | uniq > "$nlist"T; then
5579
        mv -f "$nlist"T "$nlist"
5580
      else
5581
        rm -f "$nlist"T
5582
      fi
5583
 
5584
      # Make sure that we snagged all the symbols we need.
5585
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5586
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5587
          cat <<_LT_EOF > conftest.$ac_ext
5588
#ifdef __cplusplus
5589
extern "C" {
5590
#endif
5591
 
5592
_LT_EOF
5593
          # Now generate the symbol file.
5594
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5595
 
5596
          cat <<_LT_EOF >> conftest.$ac_ext
5597
 
5598
/* The mapping between symbol names and symbols.  */
5599
const struct {
5600
  const char *name;
5601
  void       *address;
5602
}
5603
lt__PROGRAM__LTX_preloaded_symbols[] =
5604
{
5605
  { "@PROGRAM@", (void *) 0 },
5606
_LT_EOF
5607
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5608
          cat <<\_LT_EOF >> conftest.$ac_ext
5609
  {0, (void *) 0}
5610
};
5611
 
5612
/* This works around a problem in FreeBSD linker */
5613
#ifdef FREEBSD_WORKAROUND
5614
static const void *lt_preloaded_setup() {
5615
  return lt__PROGRAM__LTX_preloaded_symbols;
5616
}
5617
#endif
5618
 
5619
#ifdef __cplusplus
5620
}
5621
#endif
5622
_LT_EOF
5623
          # Now try linking the two files.
5624
          mv conftest.$ac_objext conftstm.$ac_objext
5625
          lt_save_LIBS="$LIBS"
5626
          lt_save_CFLAGS="$CFLAGS"
5627
          LIBS="conftstm.$ac_objext"
5628
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5629 346 jeremybenn
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5630 82 jeremybenn
  (eval $ac_link) 2>&5
5631
  ac_status=$?
5632 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5633
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5634 82 jeremybenn
            pipe_works=yes
5635
          fi
5636
          LIBS="$lt_save_LIBS"
5637
          CFLAGS="$lt_save_CFLAGS"
5638
        else
5639
          echo "cannot find nm_test_func in $nlist" >&5
5640
        fi
5641
      else
5642
        echo "cannot find nm_test_var in $nlist" >&5
5643
      fi
5644
    else
5645
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5646
    fi
5647
  else
5648
    echo "$progname: failed program was:" >&5
5649
    cat conftest.$ac_ext >&5
5650
  fi
5651
  rm -rf conftest* conftst*
5652
 
5653
  # Do not use the global_symbol_pipe unless it works.
5654
  if test "$pipe_works" = yes; then
5655
    break
5656
  else
5657
    lt_cv_sys_global_symbol_pipe=
5658
  fi
5659
done
5660
 
5661
fi
5662
 
5663
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5664
  lt_cv_sys_global_symbol_to_cdecl=
5665
fi
5666
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5667 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5668 82 jeremybenn
$as_echo "failed" >&6; }
5669
else
5670 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5671 82 jeremybenn
$as_echo "ok" >&6; }
5672
fi
5673
 
5674
 
5675
 
5676
 
5677
 
5678
 
5679
 
5680
 
5681
 
5682
 
5683
 
5684
 
5685
 
5686
 
5687
 
5688
 
5689
 
5690
 
5691
 
5692
 
5693
 
5694
 
5695 19 jeremybenn
# Check whether --enable-libtool-lock was given.
5696 346 jeremybenn
if test "${enable_libtool_lock+set}" = set; then :
5697 19 jeremybenn
  enableval=$enable_libtool_lock;
5698
fi
5699
 
5700
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5701
 
5702
# Some flags need to be propagated to the compiler or linker for good
5703
# libtool support.
5704
case $host in
5705
ia64-*-hpux*)
5706
  # Find out which ABI we are using.
5707
  echo 'int i;' > conftest.$ac_ext
5708 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5709 19 jeremybenn
  (eval $ac_compile) 2>&5
5710
  ac_status=$?
5711 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712
  test $ac_status = 0; }; then
5713 19 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
5714 82 jeremybenn
      *ELF-32*)
5715
        HPUX_IA64_MODE="32"
5716
        ;;
5717
      *ELF-64*)
5718
        HPUX_IA64_MODE="64"
5719
        ;;
5720 19 jeremybenn
    esac
5721
  fi
5722
  rm -rf conftest*
5723
  ;;
5724
*-*-irix6*)
5725
  # Find out which ABI we are using.
5726 538 julius
  echo '#line 5726 "configure"' > conftest.$ac_ext
5727 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5728 19 jeremybenn
  (eval $ac_compile) 2>&5
5729
  ac_status=$?
5730 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731
  test $ac_status = 0; }; then
5732 82 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5733
      case `/usr/bin/file conftest.$ac_objext` in
5734
        *32-bit*)
5735
          LD="${LD-ld} -melf32bsmip"
5736
          ;;
5737
        *N32*)
5738
          LD="${LD-ld} -melf32bmipn32"
5739
          ;;
5740
        *64-bit*)
5741
          LD="${LD-ld} -melf64bmip"
5742
        ;;
5743
      esac
5744
    else
5745
      case `/usr/bin/file conftest.$ac_objext` in
5746
        *32-bit*)
5747
          LD="${LD-ld} -32"
5748
          ;;
5749
        *N32*)
5750
          LD="${LD-ld} -n32"
5751
          ;;
5752
        *64-bit*)
5753
          LD="${LD-ld} -64"
5754
          ;;
5755
      esac
5756
    fi
5757 19 jeremybenn
  fi
5758
  rm -rf conftest*
5759
  ;;
5760
 
5761
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5762 82 jeremybenn
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5763 19 jeremybenn
  # Find out which ABI we are using.
5764
  echo 'int i;' > conftest.$ac_ext
5765 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5766 19 jeremybenn
  (eval $ac_compile) 2>&5
5767
  ac_status=$?
5768 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5769
  test $ac_status = 0; }; then
5770 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5771 82 jeremybenn
      *32-bit*)
5772
        case $host in
5773
          x86_64-*kfreebsd*-gnu)
5774
            LD="${LD-ld} -m elf_i386_fbsd"
5775
            ;;
5776
          x86_64-*linux*)
5777
            LD="${LD-ld} -m elf_i386"
5778
            ;;
5779
          ppc64-*linux*|powerpc64-*linux*)
5780
            LD="${LD-ld} -m elf32ppclinux"
5781
            ;;
5782
          s390x-*linux*)
5783
            LD="${LD-ld} -m elf_s390"
5784
            ;;
5785
          sparc64-*linux*)
5786
            LD="${LD-ld} -m elf32_sparc"
5787
            ;;
5788
        esac
5789
        ;;
5790
      *64-bit*)
5791
        case $host in
5792
          x86_64-*kfreebsd*-gnu)
5793
            LD="${LD-ld} -m elf_x86_64_fbsd"
5794
            ;;
5795
          x86_64-*linux*)
5796
            LD="${LD-ld} -m elf_x86_64"
5797
            ;;
5798
          ppc*-*linux*|powerpc*-*linux*)
5799
            LD="${LD-ld} -m elf64ppc"
5800
            ;;
5801
          s390*-*linux*|s390*-*tpf*)
5802
            LD="${LD-ld} -m elf64_s390"
5803
            ;;
5804
          sparc*-*linux*)
5805
            LD="${LD-ld} -m elf64_sparc"
5806
            ;;
5807
        esac
5808
        ;;
5809 19 jeremybenn
    esac
5810
  fi
5811
  rm -rf conftest*
5812
  ;;
5813
 
5814
*-*-sco3.2v5*)
5815
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5816
  SAVE_CFLAGS="$CFLAGS"
5817
  CFLAGS="$CFLAGS -belf"
5818 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5819 82 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5820 346 jeremybenn
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5821 82 jeremybenn
  $as_echo_n "(cached) " >&6
5822 19 jeremybenn
else
5823
  ac_ext=c
5824
ac_cpp='$CPP $CPPFLAGS'
5825
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5828
 
5829 346 jeremybenn
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 19 jeremybenn
/* end confdefs.h.  */
5831
 
5832
int
5833
main ()
5834
{
5835
 
5836
  ;
5837
  return 0;
5838
}
5839
_ACEOF
5840 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
5841 19 jeremybenn
  lt_cv_cc_needs_belf=yes
5842
else
5843 346 jeremybenn
  lt_cv_cc_needs_belf=no
5844 19 jeremybenn
fi
5845 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
5846
    conftest$ac_exeext conftest.$ac_ext
5847 19 jeremybenn
     ac_ext=c
5848
ac_cpp='$CPP $CPPFLAGS'
5849
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5852
 
5853
fi
5854 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5855 82 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5856 19 jeremybenn
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5857
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5858
    CFLAGS="$SAVE_CFLAGS"
5859
  fi
5860
  ;;
5861
sparc*-*solaris*)
5862
  # Find out which ABI we are using.
5863
  echo 'int i;' > conftest.$ac_ext
5864 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5865 19 jeremybenn
  (eval $ac_compile) 2>&5
5866
  ac_status=$?
5867 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5868
  test $ac_status = 0; }; then
5869 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5870
    *64-bit*)
5871
      case $lt_cv_prog_gnu_ld in
5872
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5873 82 jeremybenn
      *)
5874
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5875
          LD="${LD-ld} -64"
5876
        fi
5877
        ;;
5878 19 jeremybenn
      esac
5879
      ;;
5880
    esac
5881
  fi
5882
  rm -rf conftest*
5883
  ;;
5884 82 jeremybenn
esac
5885 19 jeremybenn
 
5886 82 jeremybenn
need_locks="$enable_libtool_lock"
5887 19 jeremybenn
 
5888 82 jeremybenn
 
5889
  case $host_os in
5890
    rhapsody* | darwin*)
5891
    if test -n "$ac_tool_prefix"; then
5892
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5893
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5894 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5896 346 jeremybenn
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5897 82 jeremybenn
  $as_echo_n "(cached) " >&6
5898
else
5899
  if test -n "$DSYMUTIL"; then
5900
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5901
else
5902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903
for as_dir in $PATH
5904
do
5905
  IFS=$as_save_IFS
5906
  test -z "$as_dir" && as_dir=.
5907 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5908 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5910 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 82 jeremybenn
    break 2
5912
  fi
5913
done
5914 346 jeremybenn
  done
5915 82 jeremybenn
IFS=$as_save_IFS
5916
 
5917
fi
5918
fi
5919
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5920
if test -n "$DSYMUTIL"; then
5921 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5922 82 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5923
else
5924 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 82 jeremybenn
$as_echo "no" >&6; }
5926
fi
5927
 
5928
 
5929
fi
5930
if test -z "$ac_cv_prog_DSYMUTIL"; then
5931
  ac_ct_DSYMUTIL=$DSYMUTIL
5932
  # Extract the first word of "dsymutil", so it can be a program name with args.
5933
set dummy dsymutil; ac_word=$2
5934 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5936 346 jeremybenn
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5937 82 jeremybenn
  $as_echo_n "(cached) " >&6
5938
else
5939
  if test -n "$ac_ct_DSYMUTIL"; then
5940
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5941
else
5942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943
for as_dir in $PATH
5944
do
5945
  IFS=$as_save_IFS
5946
  test -z "$as_dir" && as_dir=.
5947 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5948 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5950 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 82 jeremybenn
    break 2
5952
  fi
5953
done
5954 346 jeremybenn
  done
5955 82 jeremybenn
IFS=$as_save_IFS
5956
 
5957
fi
5958
fi
5959
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5960
if test -n "$ac_ct_DSYMUTIL"; then
5961 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5962 82 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5963
else
5964 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 82 jeremybenn
$as_echo "no" >&6; }
5966
fi
5967
 
5968
  if test "x$ac_ct_DSYMUTIL" = x; then
5969
    DSYMUTIL=":"
5970
  else
5971
    case $cross_compiling:$ac_tool_warned in
5972
yes:)
5973 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975
ac_tool_warned=yes ;;
5976 19 jeremybenn
esac
5977 82 jeremybenn
    DSYMUTIL=$ac_ct_DSYMUTIL
5978
  fi
5979
else
5980
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5981
fi
5982 19 jeremybenn
 
5983 82 jeremybenn
    if test -n "$ac_tool_prefix"; then
5984
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5985
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5986 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5988 346 jeremybenn
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5989 82 jeremybenn
  $as_echo_n "(cached) " >&6
5990
else
5991
  if test -n "$NMEDIT"; then
5992
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5993
else
5994
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995
for as_dir in $PATH
5996
do
5997
  IFS=$as_save_IFS
5998
  test -z "$as_dir" && as_dir=.
5999 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6000 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6002 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 82 jeremybenn
    break 2
6004
  fi
6005
done
6006 346 jeremybenn
  done
6007 82 jeremybenn
IFS=$as_save_IFS
6008 19 jeremybenn
 
6009 82 jeremybenn
fi
6010
fi
6011
NMEDIT=$ac_cv_prog_NMEDIT
6012
if test -n "$NMEDIT"; then
6013 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6014 82 jeremybenn
$as_echo "$NMEDIT" >&6; }
6015
else
6016 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 82 jeremybenn
$as_echo "no" >&6; }
6018
fi
6019 19 jeremybenn
 
6020 82 jeremybenn
 
6021
fi
6022
if test -z "$ac_cv_prog_NMEDIT"; then
6023
  ac_ct_NMEDIT=$NMEDIT
6024
  # Extract the first word of "nmedit", so it can be a program name with args.
6025
set dummy nmedit; ac_word=$2
6026 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6028 346 jeremybenn
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6029 82 jeremybenn
  $as_echo_n "(cached) " >&6
6030
else
6031
  if test -n "$ac_ct_NMEDIT"; then
6032
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6033
else
6034
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035
for as_dir in $PATH
6036
do
6037
  IFS=$as_save_IFS
6038
  test -z "$as_dir" && as_dir=.
6039 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6040 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6042 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 82 jeremybenn
    break 2
6044
  fi
6045
done
6046 346 jeremybenn
  done
6047 82 jeremybenn
IFS=$as_save_IFS
6048
 
6049
fi
6050
fi
6051
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6052
if test -n "$ac_ct_NMEDIT"; then
6053 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6054 82 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
6055
else
6056 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 82 jeremybenn
$as_echo "no" >&6; }
6058
fi
6059
 
6060
  if test "x$ac_ct_NMEDIT" = x; then
6061
    NMEDIT=":"
6062
  else
6063
    case $cross_compiling:$ac_tool_warned in
6064
yes:)
6065 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6066 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6067
ac_tool_warned=yes ;;
6068
esac
6069
    NMEDIT=$ac_ct_NMEDIT
6070
  fi
6071
else
6072
  NMEDIT="$ac_cv_prog_NMEDIT"
6073
fi
6074
 
6075
    if test -n "$ac_tool_prefix"; then
6076
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6077
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6078 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6080 346 jeremybenn
if test "${ac_cv_prog_LIPO+set}" = set; then :
6081 82 jeremybenn
  $as_echo_n "(cached) " >&6
6082
else
6083
  if test -n "$LIPO"; then
6084
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6085
else
6086
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087
for as_dir in $PATH
6088
do
6089
  IFS=$as_save_IFS
6090
  test -z "$as_dir" && as_dir=.
6091 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6092 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6093
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6094 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 82 jeremybenn
    break 2
6096
  fi
6097
done
6098 346 jeremybenn
  done
6099 82 jeremybenn
IFS=$as_save_IFS
6100
 
6101
fi
6102
fi
6103
LIPO=$ac_cv_prog_LIPO
6104
if test -n "$LIPO"; then
6105 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6106 82 jeremybenn
$as_echo "$LIPO" >&6; }
6107
else
6108 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 82 jeremybenn
$as_echo "no" >&6; }
6110
fi
6111
 
6112
 
6113
fi
6114
if test -z "$ac_cv_prog_LIPO"; then
6115
  ac_ct_LIPO=$LIPO
6116
  # Extract the first word of "lipo", so it can be a program name with args.
6117
set dummy lipo; ac_word=$2
6118 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6120 346 jeremybenn
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6121 82 jeremybenn
  $as_echo_n "(cached) " >&6
6122
else
6123
  if test -n "$ac_ct_LIPO"; then
6124
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6125
else
6126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127
for as_dir in $PATH
6128
do
6129
  IFS=$as_save_IFS
6130
  test -z "$as_dir" && as_dir=.
6131 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6132 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133
    ac_cv_prog_ac_ct_LIPO="lipo"
6134 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 82 jeremybenn
    break 2
6136
  fi
6137
done
6138 346 jeremybenn
  done
6139 82 jeremybenn
IFS=$as_save_IFS
6140
 
6141
fi
6142
fi
6143
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6144
if test -n "$ac_ct_LIPO"; then
6145 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6146 82 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
6147
else
6148 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 82 jeremybenn
$as_echo "no" >&6; }
6150
fi
6151
 
6152
  if test "x$ac_ct_LIPO" = x; then
6153
    LIPO=":"
6154
  else
6155
    case $cross_compiling:$ac_tool_warned in
6156
yes:)
6157 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6158 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6159
ac_tool_warned=yes ;;
6160
esac
6161
    LIPO=$ac_ct_LIPO
6162
  fi
6163
else
6164
  LIPO="$ac_cv_prog_LIPO"
6165
fi
6166
 
6167
    if test -n "$ac_tool_prefix"; then
6168
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6169
set dummy ${ac_tool_prefix}otool; ac_word=$2
6170 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6172 346 jeremybenn
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6173 82 jeremybenn
  $as_echo_n "(cached) " >&6
6174
else
6175
  if test -n "$OTOOL"; then
6176
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6177
else
6178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179
for as_dir in $PATH
6180
do
6181
  IFS=$as_save_IFS
6182
  test -z "$as_dir" && as_dir=.
6183 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6184 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6186 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 82 jeremybenn
    break 2
6188
  fi
6189
done
6190 346 jeremybenn
  done
6191 82 jeremybenn
IFS=$as_save_IFS
6192
 
6193
fi
6194
fi
6195
OTOOL=$ac_cv_prog_OTOOL
6196
if test -n "$OTOOL"; then
6197 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6198 82 jeremybenn
$as_echo "$OTOOL" >&6; }
6199
else
6200 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 82 jeremybenn
$as_echo "no" >&6; }
6202
fi
6203
 
6204
 
6205
fi
6206
if test -z "$ac_cv_prog_OTOOL"; then
6207
  ac_ct_OTOOL=$OTOOL
6208
  # Extract the first word of "otool", so it can be a program name with args.
6209
set dummy otool; ac_word=$2
6210 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6212 346 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6213 82 jeremybenn
  $as_echo_n "(cached) " >&6
6214
else
6215
  if test -n "$ac_ct_OTOOL"; then
6216
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6217
else
6218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219
for as_dir in $PATH
6220
do
6221
  IFS=$as_save_IFS
6222
  test -z "$as_dir" && as_dir=.
6223 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6224 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225
    ac_cv_prog_ac_ct_OTOOL="otool"
6226 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 82 jeremybenn
    break 2
6228
  fi
6229
done
6230 346 jeremybenn
  done
6231 82 jeremybenn
IFS=$as_save_IFS
6232
 
6233
fi
6234
fi
6235
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6236
if test -n "$ac_ct_OTOOL"; then
6237 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6238 82 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
6239
else
6240 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 82 jeremybenn
$as_echo "no" >&6; }
6242
fi
6243
 
6244
  if test "x$ac_ct_OTOOL" = x; then
6245
    OTOOL=":"
6246
  else
6247
    case $cross_compiling:$ac_tool_warned in
6248
yes:)
6249 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251
ac_tool_warned=yes ;;
6252
esac
6253
    OTOOL=$ac_ct_OTOOL
6254
  fi
6255
else
6256
  OTOOL="$ac_cv_prog_OTOOL"
6257
fi
6258
 
6259
    if test -n "$ac_tool_prefix"; then
6260
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6261
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6262 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6264 346 jeremybenn
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6265 82 jeremybenn
  $as_echo_n "(cached) " >&6
6266
else
6267
  if test -n "$OTOOL64"; then
6268
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6269
else
6270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271
for as_dir in $PATH
6272
do
6273
  IFS=$as_save_IFS
6274
  test -z "$as_dir" && as_dir=.
6275 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6276 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6277
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6278 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 82 jeremybenn
    break 2
6280
  fi
6281
done
6282 346 jeremybenn
  done
6283 82 jeremybenn
IFS=$as_save_IFS
6284
 
6285
fi
6286
fi
6287
OTOOL64=$ac_cv_prog_OTOOL64
6288
if test -n "$OTOOL64"; then
6289 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6290 82 jeremybenn
$as_echo "$OTOOL64" >&6; }
6291
else
6292 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 82 jeremybenn
$as_echo "no" >&6; }
6294
fi
6295
 
6296
 
6297
fi
6298
if test -z "$ac_cv_prog_OTOOL64"; then
6299
  ac_ct_OTOOL64=$OTOOL64
6300
  # Extract the first word of "otool64", so it can be a program name with args.
6301
set dummy otool64; ac_word=$2
6302 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6304 346 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6305 82 jeremybenn
  $as_echo_n "(cached) " >&6
6306
else
6307
  if test -n "$ac_ct_OTOOL64"; then
6308
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6309
else
6310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311
for as_dir in $PATH
6312
do
6313
  IFS=$as_save_IFS
6314
  test -z "$as_dir" && as_dir=.
6315 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6316 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6318 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 82 jeremybenn
    break 2
6320
  fi
6321
done
6322 346 jeremybenn
  done
6323 82 jeremybenn
IFS=$as_save_IFS
6324
 
6325
fi
6326
fi
6327
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6328
if test -n "$ac_ct_OTOOL64"; then
6329 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6330 82 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
6331
else
6332 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 82 jeremybenn
$as_echo "no" >&6; }
6334
fi
6335
 
6336
  if test "x$ac_ct_OTOOL64" = x; then
6337
    OTOOL64=":"
6338
  else
6339
    case $cross_compiling:$ac_tool_warned in
6340
yes:)
6341 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343
ac_tool_warned=yes ;;
6344
esac
6345
    OTOOL64=$ac_ct_OTOOL64
6346
  fi
6347
else
6348
  OTOOL64="$ac_cv_prog_OTOOL64"
6349
fi
6350
 
6351
 
6352
 
6353
 
6354
 
6355
 
6356
 
6357
 
6358
 
6359
 
6360
 
6361
 
6362
 
6363
 
6364
 
6365
 
6366
 
6367
 
6368
 
6369
 
6370
 
6371
 
6372
 
6373
 
6374
 
6375
 
6376
 
6377 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6378 82 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
6379 346 jeremybenn
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6380 82 jeremybenn
  $as_echo_n "(cached) " >&6
6381
else
6382
  lt_cv_apple_cc_single_mod=no
6383
      if test -z "${LT_MULTI_MODULE}"; then
6384
        # By default we will add the -single_module flag. You can override
6385
        # by either setting the environment variable LT_MULTI_MODULE
6386
        # non-empty at configure time, or by adding -multi_module to the
6387
        # link flags.
6388
        rm -rf libconftest.dylib*
6389
        echo "int foo(void){return 1;}" > conftest.c
6390
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6391
-dynamiclib -Wl,-single_module conftest.c" >&5
6392
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6393
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6394
        _lt_result=$?
6395
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6396
          lt_cv_apple_cc_single_mod=yes
6397
        else
6398
          cat conftest.err >&5
6399
        fi
6400
        rm -rf libconftest.dylib*
6401
        rm -f conftest.*
6402
      fi
6403
fi
6404 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6405 82 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6406 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6407 82 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6408 346 jeremybenn
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6409 82 jeremybenn
  $as_echo_n "(cached) " >&6
6410
else
6411
  lt_cv_ld_exported_symbols_list=no
6412
      save_LDFLAGS=$LDFLAGS
6413
      echo "_main" > conftest.sym
6414
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6415 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 82 jeremybenn
/* end confdefs.h.  */
6417
 
6418
int
6419
main ()
6420
{
6421
 
6422
  ;
6423
  return 0;
6424
}
6425
_ACEOF
6426 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
6427 82 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
6428
else
6429 346 jeremybenn
  lt_cv_ld_exported_symbols_list=no
6430 82 jeremybenn
fi
6431 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
6432
    conftest$ac_exeext conftest.$ac_ext
6433 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
6434
 
6435
fi
6436 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6437 82 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6438
    case $host_os in
6439
    rhapsody* | darwin1.[012])
6440
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6441
    darwin1.*)
6442
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6443
    darwin*) # darwin 5.x on
6444
      # if running on 10.5 or later, the deployment target defaults
6445
      # to the OS version, if on x86, and 10.4, the deployment
6446
      # target defaults to 10.4. Don't you love it?
6447
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6448
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6449
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6450
        10.[012]*)
6451
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6452
        10.*)
6453
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6454
      esac
6455
    ;;
6456
  esac
6457
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6458
      _lt_dar_single_mod='$single_module'
6459
    fi
6460
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6461
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6462
    else
6463
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6464
    fi
6465
    if test "$DSYMUTIL" != ":"; then
6466
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6467
    else
6468
      _lt_dsymutil=
6469
    fi
6470
    ;;
6471
  esac
6472
 
6473 19 jeremybenn
for ac_header in dlfcn.h
6474 346 jeremybenn
do :
6475
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6476
"
6477
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6478 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
6479 346 jeremybenn
#define HAVE_DLFCN_H 1
6480 19 jeremybenn
_ACEOF
6481
 
6482
fi
6483
 
6484
done
6485
 
6486
 
6487
 
6488 82 jeremybenn
# Set options
6489 19 jeremybenn
 
6490
 
6491
 
6492 82 jeremybenn
        enable_dlopen=no
6493 19 jeremybenn
 
6494
 
6495 82 jeremybenn
  enable_win32_dll=no
6496 19 jeremybenn
 
6497
 
6498 82 jeremybenn
            # Check whether --enable-shared was given.
6499 346 jeremybenn
if test "${enable_shared+set}" = set; then :
6500 82 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
6501
    case $enableval in
6502
    yes) enable_shared=yes ;;
6503
    no) enable_shared=no ;;
6504
    *)
6505
      enable_shared=no
6506
      # Look at the argument we got.  We use all the common list separators.
6507
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6508
      for pkg in $enableval; do
6509
        IFS="$lt_save_ifs"
6510
        if test "X$pkg" = "X$p"; then
6511
          enable_shared=yes
6512
        fi
6513
      done
6514
      IFS="$lt_save_ifs"
6515
      ;;
6516
    esac
6517 19 jeremybenn
else
6518 82 jeremybenn
  enable_shared=yes
6519 19 jeremybenn
fi
6520
 
6521
 
6522
 
6523
 
6524
 
6525
 
6526
 
6527
 
6528
 
6529 82 jeremybenn
  # Check whether --enable-static was given.
6530 346 jeremybenn
if test "${enable_static+set}" = set; then :
6531 82 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
6532
    case $enableval in
6533
    yes) enable_static=yes ;;
6534
    no) enable_static=no ;;
6535
    *)
6536
     enable_static=no
6537
      # Look at the argument we got.  We use all the common list separators.
6538
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6539
      for pkg in $enableval; do
6540
        IFS="$lt_save_ifs"
6541
        if test "X$pkg" = "X$p"; then
6542
          enable_static=yes
6543
        fi
6544
      done
6545
      IFS="$lt_save_ifs"
6546
      ;;
6547
    esac
6548 19 jeremybenn
else
6549 82 jeremybenn
  enable_static=yes
6550 19 jeremybenn
fi
6551
 
6552
 
6553
 
6554
 
6555
 
6556
 
6557
 
6558
 
6559
 
6560
 
6561 82 jeremybenn
# Check whether --with-pic was given.
6562 346 jeremybenn
if test "${with_pic+set}" = set; then :
6563 82 jeremybenn
  withval=$with_pic; pic_mode="$withval"
6564 19 jeremybenn
else
6565 82 jeremybenn
  pic_mode=default
6566 19 jeremybenn
fi
6567
 
6568
 
6569 82 jeremybenn
test -z "$pic_mode" && pic_mode=default
6570 19 jeremybenn
 
6571
 
6572
 
6573
 
6574
 
6575
 
6576
 
6577 82 jeremybenn
  # Check whether --enable-fast-install was given.
6578 346 jeremybenn
if test "${enable_fast_install+set}" = set; then :
6579 82 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
6580
    case $enableval in
6581
    yes) enable_fast_install=yes ;;
6582
    no) enable_fast_install=no ;;
6583
    *)
6584
      enable_fast_install=no
6585
      # Look at the argument we got.  We use all the common list separators.
6586
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6587
      for pkg in $enableval; do
6588
        IFS="$lt_save_ifs"
6589
        if test "X$pkg" = "X$p"; then
6590
          enable_fast_install=yes
6591
        fi
6592
      done
6593
      IFS="$lt_save_ifs"
6594
      ;;
6595
    esac
6596 19 jeremybenn
else
6597 82 jeremybenn
  enable_fast_install=yes
6598 19 jeremybenn
fi
6599
 
6600
 
6601
 
6602
 
6603
 
6604
 
6605
 
6606
 
6607
 
6608
 
6609
 
6610 82 jeremybenn
# This can be used to rebuild libtool when needed
6611
LIBTOOL_DEPS="$ltmain"
6612 19 jeremybenn
 
6613 82 jeremybenn
# Always use our own libtool.
6614
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6615 19 jeremybenn
 
6616
 
6617
 
6618
 
6619
 
6620
 
6621
 
6622
 
6623
 
6624
 
6625
 
6626
 
6627
 
6628
 
6629
 
6630
 
6631
 
6632
 
6633
 
6634
 
6635
 
6636
 
6637
 
6638
 
6639
 
6640 82 jeremybenn
test -z "$LN_S" && LN_S="ln -s"
6641 19 jeremybenn
 
6642
 
6643
 
6644
 
6645
 
6646
 
6647
 
6648
 
6649
 
6650
 
6651
 
6652
 
6653
 
6654
 
6655 82 jeremybenn
if test -n "${ZSH_VERSION+set}" ; then
6656
   setopt NO_GLOB_SUBST
6657 19 jeremybenn
fi
6658
 
6659 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6660 82 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6661 346 jeremybenn
if test "${lt_cv_objdir+set}" = set; then :
6662 82 jeremybenn
  $as_echo_n "(cached) " >&6
6663 19 jeremybenn
else
6664
  rm -f .libs 2>/dev/null
6665
mkdir .libs 2>/dev/null
6666
if test -d .libs; then
6667
  lt_cv_objdir=.libs
6668
else
6669
  # MS-DOS does not allow filenames that begin with a dot.
6670
  lt_cv_objdir=_libs
6671
fi
6672
rmdir .libs 2>/dev/null
6673
fi
6674 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6675 82 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
6676 19 jeremybenn
objdir=$lt_cv_objdir
6677
 
6678
 
6679
 
6680
 
6681
 
6682 82 jeremybenn
cat >>confdefs.h <<_ACEOF
6683
#define LT_OBJDIR "$lt_cv_objdir/"
6684
_ACEOF
6685
 
6686
 
6687
 
6688
 
6689
 
6690
 
6691
 
6692
 
6693
 
6694
 
6695
 
6696
 
6697
 
6698
 
6699
 
6700
 
6701
 
6702 19 jeremybenn
case $host_os in
6703
aix3*)
6704
  # AIX sometimes has problems with the GCC collect2 program.  For some
6705
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6706
  # vanish in a puff of smoke.
6707
  if test "X${COLLECT_NAMES+set}" != Xset; then
6708
    COLLECT_NAMES=
6709
    export COLLECT_NAMES
6710
  fi
6711
  ;;
6712
esac
6713
 
6714
# Sed substitution that helps us do robust quoting.  It backslashifies
6715
# metacharacters that are still active within double-quoted strings.
6716 82 jeremybenn
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6717 19 jeremybenn
 
6718
# Same as above, but do not quote variable references.
6719 82 jeremybenn
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6720 19 jeremybenn
 
6721
# Sed substitution to delay expansion of an escaped shell variable in a
6722
# double_quote_subst'ed string.
6723
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6724
 
6725 82 jeremybenn
# Sed substitution to delay expansion of an escaped single quote.
6726
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6727
 
6728 19 jeremybenn
# Sed substitution to avoid accidental globbing in evaled expressions
6729
no_glob_subst='s/\*/\\\*/g'
6730
 
6731
# Global variables:
6732 82 jeremybenn
ofile=libtool
6733 19 jeremybenn
can_build_shared=yes
6734
 
6735
# All known linkers require a `.a' archive for static linking (except MSVC,
6736
# which needs '.lib').
6737
libext=a
6738 82 jeremybenn
 
6739 19 jeremybenn
with_gnu_ld="$lt_cv_prog_gnu_ld"
6740
 
6741
old_CC="$CC"
6742
old_CFLAGS="$CFLAGS"
6743
 
6744
# Set sane defaults for various variables
6745
test -z "$CC" && CC=cc
6746
test -z "$LTCC" && LTCC=$CC
6747
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6748
test -z "$LD" && LD=ld
6749
test -z "$ac_objext" && ac_objext=o
6750
 
6751
for cc_temp in $compiler""; do
6752
  case $cc_temp in
6753
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6754
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6755
    \-*) ;;
6756
    *) break;;
6757
  esac
6758
done
6759 82 jeremybenn
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6760 19 jeremybenn
 
6761
 
6762
# Only perform the check for file, if the check method requires it
6763 82 jeremybenn
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6764 19 jeremybenn
case $deplibs_check_method in
6765
file_magic*)
6766
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6767 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6768 82 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6769 346 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6770 82 jeremybenn
  $as_echo_n "(cached) " >&6
6771 19 jeremybenn
else
6772
  case $MAGIC_CMD in
6773
[\\/*] |  ?:[\\/]*)
6774
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6775
  ;;
6776
*)
6777
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6778
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6779
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6780
  for ac_dir in $ac_dummy; do
6781
    IFS="$lt_save_ifs"
6782
    test -z "$ac_dir" && ac_dir=.
6783
    if test -f $ac_dir/${ac_tool_prefix}file; then
6784
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6785
      if test -n "$file_magic_test_file"; then
6786
        case $deplibs_check_method in
6787
        "file_magic "*)
6788
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6789
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6790
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6791
            $EGREP "$file_magic_regex" > /dev/null; then
6792
            :
6793
          else
6794 82 jeremybenn
            cat <<_LT_EOF 1>&2
6795 19 jeremybenn
 
6796
*** Warning: the command libtool uses to detect shared libraries,
6797
*** $file_magic_cmd, produces output that libtool cannot recognize.
6798
*** The result is that libtool may fail to recognize shared libraries
6799
*** as such.  This will affect the creation of libtool libraries that
6800
*** depend on shared libraries, but programs linked with such libtool
6801
*** libraries will work regardless of this problem.  Nevertheless, you
6802
*** may want to report the problem to your system manager and/or to
6803
*** bug-libtool@gnu.org
6804
 
6805 82 jeremybenn
_LT_EOF
6806 19 jeremybenn
          fi ;;
6807
        esac
6808
      fi
6809
      break
6810
    fi
6811
  done
6812
  IFS="$lt_save_ifs"
6813
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6814
  ;;
6815
esac
6816
fi
6817
 
6818
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6819
if test -n "$MAGIC_CMD"; then
6820 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6821 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6822 19 jeremybenn
else
6823 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 82 jeremybenn
$as_echo "no" >&6; }
6825 19 jeremybenn
fi
6826
 
6827 82 jeremybenn
 
6828
 
6829
 
6830
 
6831 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
6832
  if test -n "$ac_tool_prefix"; then
6833 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6834 82 jeremybenn
$as_echo_n "checking for file... " >&6; }
6835 346 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6836 82 jeremybenn
  $as_echo_n "(cached) " >&6
6837 19 jeremybenn
else
6838
  case $MAGIC_CMD in
6839
[\\/*] |  ?:[\\/]*)
6840
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6841
  ;;
6842
*)
6843
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6844
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6845
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6846
  for ac_dir in $ac_dummy; do
6847
    IFS="$lt_save_ifs"
6848
    test -z "$ac_dir" && ac_dir=.
6849
    if test -f $ac_dir/file; then
6850
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6851
      if test -n "$file_magic_test_file"; then
6852
        case $deplibs_check_method in
6853
        "file_magic "*)
6854
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6855
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6856
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6857
            $EGREP "$file_magic_regex" > /dev/null; then
6858
            :
6859
          else
6860 82 jeremybenn
            cat <<_LT_EOF 1>&2
6861 19 jeremybenn
 
6862
*** Warning: the command libtool uses to detect shared libraries,
6863
*** $file_magic_cmd, produces output that libtool cannot recognize.
6864
*** The result is that libtool may fail to recognize shared libraries
6865
*** as such.  This will affect the creation of libtool libraries that
6866
*** depend on shared libraries, but programs linked with such libtool
6867
*** libraries will work regardless of this problem.  Nevertheless, you
6868
*** may want to report the problem to your system manager and/or to
6869
*** bug-libtool@gnu.org
6870
 
6871 82 jeremybenn
_LT_EOF
6872 19 jeremybenn
          fi ;;
6873
        esac
6874
      fi
6875
      break
6876
    fi
6877
  done
6878
  IFS="$lt_save_ifs"
6879
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6880
  ;;
6881
esac
6882
fi
6883
 
6884
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6885
if test -n "$MAGIC_CMD"; then
6886 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6887 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6888 19 jeremybenn
else
6889 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 82 jeremybenn
$as_echo "no" >&6; }
6891 19 jeremybenn
fi
6892
 
6893 82 jeremybenn
 
6894 19 jeremybenn
  else
6895
    MAGIC_CMD=:
6896
  fi
6897
fi
6898
 
6899
  fi
6900
  ;;
6901
esac
6902
 
6903 82 jeremybenn
# Use C for the default configuration in the libtool script
6904 19 jeremybenn
 
6905
lt_save_CC="$CC"
6906
ac_ext=c
6907
ac_cpp='$CPP $CPPFLAGS'
6908
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6911
 
6912
 
6913
# Source file extension for C test sources.
6914
ac_ext=c
6915
 
6916
# Object file extension for compiled C test sources.
6917
objext=o
6918
objext=$objext
6919
 
6920
# Code to be used in simple compile tests
6921
lt_simple_compile_test_code="int some_variable = 0;"
6922
 
6923
# Code to be used in simple link tests
6924
lt_simple_link_test_code='int main(){return(0);}'
6925
 
6926
 
6927 82 jeremybenn
 
6928
 
6929
 
6930
 
6931
 
6932 19 jeremybenn
# If no C compiler was specified, use CC.
6933
LTCC=${LTCC-"$CC"}
6934
 
6935
# If no C compiler flags were specified, use CFLAGS.
6936
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6937
 
6938
# Allow CC to be a program name with arguments.
6939
compiler=$CC
6940
 
6941 82 jeremybenn
# Save the default compiler, since it gets overwritten when the other
6942
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6943
compiler_DEFAULT=$CC
6944 19 jeremybenn
 
6945
# save warnings/boilerplate of simple test code
6946
ac_outfile=conftest.$ac_objext
6947
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6948
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6949
_lt_compiler_boilerplate=`cat conftest.err`
6950 82 jeremybenn
$RM conftest*
6951 19 jeremybenn
 
6952
ac_outfile=conftest.$ac_objext
6953
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6954
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6955
_lt_linker_boilerplate=`cat conftest.err`
6956 82 jeremybenn
$RM -r conftest*
6957 19 jeremybenn
 
6958
 
6959 82 jeremybenn
## CAVEAT EMPTOR:
6960
## There is no encapsulation within the following macros, do not change
6961
## the running order or otherwise move them around unless you know exactly
6962
## what you are doing...
6963
if test -n "$compiler"; then
6964 19 jeremybenn
 
6965
lt_prog_compiler_no_builtin_flag=
6966
 
6967
if test "$GCC" = yes; then
6968
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6969
 
6970 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6971 82 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6972 346 jeremybenn
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6973 82 jeremybenn
  $as_echo_n "(cached) " >&6
6974 19 jeremybenn
else
6975
  lt_cv_prog_compiler_rtti_exceptions=no
6976 82 jeremybenn
   ac_outfile=conftest.$ac_objext
6977 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6978
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6979
   # Insert the option either (1) after the last *FLAGS variable, or
6980
   # (2) before a word containing "conftest.", or (3) at the end.
6981
   # Note that $ac_compile itself does not contain backslashes and begins
6982
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6983
   # The option is referenced via a variable to avoid confusing sed.
6984
   lt_compile=`echo "$ac_compile" | $SED \
6985
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6986
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6987
   -e 's:$: $lt_compiler_flag:'`
6988 538 julius
   (eval echo "\"\$as_me:6988: $lt_compile\"" >&5)
6989 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
6990
   ac_status=$?
6991
   cat conftest.err >&5
6992 538 julius
   echo "$as_me:6992: \$? = $ac_status" >&5
6993 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
6994
     # The compiler can only warn and ignore the option if not recognized
6995
     # So say no if there are warnings other than the usual output.
6996 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6997 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6998
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6999
       lt_cv_prog_compiler_rtti_exceptions=yes
7000
     fi
7001
   fi
7002 82 jeremybenn
   $RM conftest*
7003 19 jeremybenn
 
7004
fi
7005 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7006 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7007 19 jeremybenn
 
7008
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7009
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7010
else
7011
    :
7012
fi
7013
 
7014
fi
7015
 
7016 82 jeremybenn
 
7017
 
7018
 
7019
 
7020
 
7021
  lt_prog_compiler_wl=
7022 19 jeremybenn
lt_prog_compiler_pic=
7023
lt_prog_compiler_static=
7024
 
7025 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7026 82 jeremybenn
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7027 19 jeremybenn
 
7028
  if test "$GCC" = yes; then
7029
    lt_prog_compiler_wl='-Wl,'
7030
    lt_prog_compiler_static='-static'
7031
 
7032
    case $host_os in
7033
      aix*)
7034
      # All AIX code is PIC.
7035
      if test "$host_cpu" = ia64; then
7036
        # AIX 5 now supports IA64 processor
7037
        lt_prog_compiler_static='-Bstatic'
7038
      fi
7039
      ;;
7040
 
7041
    amigaos*)
7042 82 jeremybenn
      case $host_cpu in
7043
      powerpc)
7044
            # see comment about AmigaOS4 .so support
7045
            lt_prog_compiler_pic='-fPIC'
7046
        ;;
7047
      m68k)
7048
            # FIXME: we need at least 68020 code to build shared libraries, but
7049
            # adding the `-m68020' flag to GCC prevents building anything better,
7050
            # like `-m68040'.
7051
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7052
        ;;
7053
      esac
7054 19 jeremybenn
      ;;
7055
 
7056
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7057
      # PIC is the default for these OSes.
7058
      ;;
7059
 
7060 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7061 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7062
      # built for inclusion in a dll (and should export symbols for example).
7063
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7064
      # (--disable-auto-import) libraries
7065
      lt_prog_compiler_pic='-DDLL_EXPORT'
7066
      ;;
7067
 
7068
    darwin* | rhapsody*)
7069
      # PIC is the default on this platform
7070
      # Common symbols not allowed in MH_DYLIB files
7071
      lt_prog_compiler_pic='-fno-common'
7072
      ;;
7073
 
7074 82 jeremybenn
    hpux*)
7075
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7076
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7077
      # sets the default TLS model and affects inlining.
7078
      case $host_cpu in
7079
      hppa*64*)
7080
        # +Z the default
7081
        ;;
7082
      *)
7083
        lt_prog_compiler_pic='-fPIC'
7084
        ;;
7085
      esac
7086
      ;;
7087
 
7088 19 jeremybenn
    interix[3-9]*)
7089
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7090
      # Instead, we relocate shared libraries at runtime.
7091
      ;;
7092
 
7093
    msdosdjgpp*)
7094
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7095
      # on systems that don't support them.
7096
      lt_prog_compiler_can_build_shared=no
7097
      enable_shared=no
7098
      ;;
7099
 
7100 82 jeremybenn
    *nto* | *qnx*)
7101
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7102
      # it will coredump.
7103
      lt_prog_compiler_pic='-fPIC -shared'
7104
      ;;
7105
 
7106 19 jeremybenn
    sysv4*MP*)
7107
      if test -d /usr/nec; then
7108
        lt_prog_compiler_pic=-Kconform_pic
7109
      fi
7110
      ;;
7111
 
7112
    *)
7113
      lt_prog_compiler_pic='-fPIC'
7114
      ;;
7115
    esac
7116
  else
7117
    # PORTME Check for flag to pass linker flags through the system compiler.
7118
    case $host_os in
7119
    aix*)
7120
      lt_prog_compiler_wl='-Wl,'
7121
      if test "$host_cpu" = ia64; then
7122
        # AIX 5 now supports IA64 processor
7123
        lt_prog_compiler_static='-Bstatic'
7124
      else
7125
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7126
      fi
7127
      ;;
7128
 
7129 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7130 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7131
      # built for inclusion in a dll (and should export symbols for example).
7132
      lt_prog_compiler_pic='-DDLL_EXPORT'
7133
      ;;
7134
 
7135
    hpux9* | hpux10* | hpux11*)
7136
      lt_prog_compiler_wl='-Wl,'
7137
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7138
      # not for PA HP-UX.
7139
      case $host_cpu in
7140
      hppa*64*|ia64*)
7141
        # +Z the default
7142
        ;;
7143
      *)
7144
        lt_prog_compiler_pic='+Z'
7145
        ;;
7146
      esac
7147
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7148
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7149
      ;;
7150
 
7151
    irix5* | irix6* | nonstopux*)
7152
      lt_prog_compiler_wl='-Wl,'
7153
      # PIC (with -KPIC) is the default.
7154
      lt_prog_compiler_static='-non_shared'
7155
      ;;
7156
 
7157
    linux* | k*bsd*-gnu)
7158
      case $cc_basename in
7159 82 jeremybenn
      # old Intel for x86_64 which still supported -KPIC.
7160
      ecc*)
7161 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7162
        lt_prog_compiler_pic='-KPIC'
7163
        lt_prog_compiler_static='-static'
7164
        ;;
7165 82 jeremybenn
      # icc used to be incompatible with GCC.
7166
      # ICC 10 doesn't accept -KPIC any more.
7167
      icc* | ifort*)
7168
        lt_prog_compiler_wl='-Wl,'
7169
        lt_prog_compiler_pic='-fPIC'
7170
        lt_prog_compiler_static='-static'
7171
        ;;
7172
      # Lahey Fortran 8.1.
7173
      lf95*)
7174
        lt_prog_compiler_wl='-Wl,'
7175
        lt_prog_compiler_pic='--shared'
7176
        lt_prog_compiler_static='--static'
7177
        ;;
7178 19 jeremybenn
      pgcc* | pgf77* | pgf90* | pgf95*)
7179
        # Portland Group compilers (*not* the Pentium gcc compiler,
7180
        # which looks to be a dead project)
7181
        lt_prog_compiler_wl='-Wl,'
7182
        lt_prog_compiler_pic='-fpic'
7183
        lt_prog_compiler_static='-Bstatic'
7184
        ;;
7185
      ccc*)
7186
        lt_prog_compiler_wl='-Wl,'
7187
        # All Alpha code is PIC.
7188
        lt_prog_compiler_static='-non_shared'
7189
        ;;
7190 82 jeremybenn
      xl*)
7191
        # IBM XL C 8.0/Fortran 10.1 on PPC
7192
        lt_prog_compiler_wl='-Wl,'
7193
        lt_prog_compiler_pic='-qpic'
7194
        lt_prog_compiler_static='-qstaticlink'
7195
        ;;
7196 19 jeremybenn
      *)
7197 82 jeremybenn
        case `$CC -V 2>&1 | sed 5q` in
7198 19 jeremybenn
        *Sun\ C*)
7199
          # Sun C 5.9
7200
          lt_prog_compiler_pic='-KPIC'
7201
          lt_prog_compiler_static='-Bstatic'
7202
          lt_prog_compiler_wl='-Wl,'
7203
          ;;
7204
        *Sun\ F*)
7205
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7206
          lt_prog_compiler_pic='-KPIC'
7207
          lt_prog_compiler_static='-Bstatic'
7208
          lt_prog_compiler_wl=''
7209
          ;;
7210
        esac
7211
        ;;
7212
      esac
7213
      ;;
7214
 
7215 82 jeremybenn
    newsos6)
7216
      lt_prog_compiler_pic='-KPIC'
7217
      lt_prog_compiler_static='-Bstatic'
7218
      ;;
7219
 
7220
    *nto* | *qnx*)
7221
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7222
      # it will coredump.
7223
      lt_prog_compiler_pic='-fPIC -shared'
7224
      ;;
7225
 
7226 19 jeremybenn
    osf3* | osf4* | osf5*)
7227
      lt_prog_compiler_wl='-Wl,'
7228
      # All OSF/1 code is PIC.
7229
      lt_prog_compiler_static='-non_shared'
7230
      ;;
7231
 
7232
    rdos*)
7233
      lt_prog_compiler_static='-non_shared'
7234
      ;;
7235
 
7236
    solaris*)
7237
      lt_prog_compiler_pic='-KPIC'
7238
      lt_prog_compiler_static='-Bstatic'
7239
      case $cc_basename in
7240
      f77* | f90* | f95*)
7241
        lt_prog_compiler_wl='-Qoption ld ';;
7242
      *)
7243
        lt_prog_compiler_wl='-Wl,';;
7244
      esac
7245
      ;;
7246
 
7247
    sunos4*)
7248
      lt_prog_compiler_wl='-Qoption ld '
7249
      lt_prog_compiler_pic='-PIC'
7250
      lt_prog_compiler_static='-Bstatic'
7251
      ;;
7252
 
7253
    sysv4 | sysv4.2uw2* | sysv4.3*)
7254
      lt_prog_compiler_wl='-Wl,'
7255
      lt_prog_compiler_pic='-KPIC'
7256
      lt_prog_compiler_static='-Bstatic'
7257
      ;;
7258
 
7259
    sysv4*MP*)
7260
      if test -d /usr/nec ;then
7261
        lt_prog_compiler_pic='-Kconform_pic'
7262
        lt_prog_compiler_static='-Bstatic'
7263
      fi
7264
      ;;
7265
 
7266
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7267
      lt_prog_compiler_wl='-Wl,'
7268
      lt_prog_compiler_pic='-KPIC'
7269
      lt_prog_compiler_static='-Bstatic'
7270
      ;;
7271
 
7272
    unicos*)
7273
      lt_prog_compiler_wl='-Wl,'
7274
      lt_prog_compiler_can_build_shared=no
7275
      ;;
7276
 
7277
    uts4*)
7278
      lt_prog_compiler_pic='-pic'
7279
      lt_prog_compiler_static='-Bstatic'
7280
      ;;
7281
 
7282
    *)
7283
      lt_prog_compiler_can_build_shared=no
7284
      ;;
7285
    esac
7286
  fi
7287
 
7288 82 jeremybenn
case $host_os in
7289
  # For platforms which do not support PIC, -DPIC is meaningless:
7290
  *djgpp*)
7291
    lt_prog_compiler_pic=
7292
    ;;
7293
  *)
7294
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7295
    ;;
7296
esac
7297 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7298 82 jeremybenn
$as_echo "$lt_prog_compiler_pic" >&6; }
7299 19 jeremybenn
 
7300 82 jeremybenn
 
7301
 
7302
 
7303
 
7304
 
7305 19 jeremybenn
#
7306
# Check to make sure the PIC flag actually works.
7307
#
7308
if test -n "$lt_prog_compiler_pic"; then
7309 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7310 82 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7311 346 jeremybenn
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7312 82 jeremybenn
  $as_echo_n "(cached) " >&6
7313 19 jeremybenn
else
7314 82 jeremybenn
  lt_cv_prog_compiler_pic_works=no
7315
   ac_outfile=conftest.$ac_objext
7316 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7317
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7318
   # Insert the option either (1) after the last *FLAGS variable, or
7319
   # (2) before a word containing "conftest.", or (3) at the end.
7320
   # Note that $ac_compile itself does not contain backslashes and begins
7321
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7322
   # The option is referenced via a variable to avoid confusing sed.
7323
   lt_compile=`echo "$ac_compile" | $SED \
7324
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7325
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7326
   -e 's:$: $lt_compiler_flag:'`
7327 538 julius
   (eval echo "\"\$as_me:7327: $lt_compile\"" >&5)
7328 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7329
   ac_status=$?
7330
   cat conftest.err >&5
7331 538 julius
   echo "$as_me:7331: \$? = $ac_status" >&5
7332 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7333
     # The compiler can only warn and ignore the option if not recognized
7334
     # So say no if there are warnings other than the usual output.
7335 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7336 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7337
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7338 82 jeremybenn
       lt_cv_prog_compiler_pic_works=yes
7339 19 jeremybenn
     fi
7340
   fi
7341 82 jeremybenn
   $RM conftest*
7342 19 jeremybenn
 
7343
fi
7344 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7345 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7346 19 jeremybenn
 
7347 82 jeremybenn
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7348 19 jeremybenn
    case $lt_prog_compiler_pic in
7349
     "" | " "*) ;;
7350
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7351
     esac
7352
else
7353
    lt_prog_compiler_pic=
7354
     lt_prog_compiler_can_build_shared=no
7355
fi
7356
 
7357
fi
7358
 
7359 82 jeremybenn
 
7360
 
7361
 
7362
 
7363
 
7364 19 jeremybenn
#
7365
# Check to make sure the static flag actually works.
7366
#
7367
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7368 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7369 82 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7370 346 jeremybenn
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7371 82 jeremybenn
  $as_echo_n "(cached) " >&6
7372 19 jeremybenn
else
7373 82 jeremybenn
  lt_cv_prog_compiler_static_works=no
7374 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7375
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7376
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7377
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7378
     # The linker can only warn and ignore the option if not recognized
7379
     # So say no if there are warnings
7380
     if test -s conftest.err; then
7381
       # Append any errors to the config.log.
7382
       cat conftest.err 1>&5
7383 82 jeremybenn
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7384 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7385
       if diff conftest.exp conftest.er2 >/dev/null; then
7386 82 jeremybenn
         lt_cv_prog_compiler_static_works=yes
7387 19 jeremybenn
       fi
7388
     else
7389 82 jeremybenn
       lt_cv_prog_compiler_static_works=yes
7390 19 jeremybenn
     fi
7391
   fi
7392 82 jeremybenn
   $RM -r conftest*
7393 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7394
 
7395
fi
7396 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7397 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7398 19 jeremybenn
 
7399 82 jeremybenn
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7400 19 jeremybenn
    :
7401
else
7402
    lt_prog_compiler_static=
7403
fi
7404
 
7405
 
7406 82 jeremybenn
 
7407
 
7408
 
7409
 
7410
 
7411 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7412 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7413 346 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7414 82 jeremybenn
  $as_echo_n "(cached) " >&6
7415 19 jeremybenn
else
7416
  lt_cv_prog_compiler_c_o=no
7417 82 jeremybenn
   $RM -r conftest 2>/dev/null
7418 19 jeremybenn
   mkdir conftest
7419
   cd conftest
7420
   mkdir out
7421
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7422
 
7423
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7424
   # Insert the option either (1) after the last *FLAGS variable, or
7425
   # (2) before a word containing "conftest.", or (3) at the end.
7426
   # Note that $ac_compile itself does not contain backslashes and begins
7427
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7428
   lt_compile=`echo "$ac_compile" | $SED \
7429
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7430
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7431
   -e 's:$: $lt_compiler_flag:'`
7432 538 julius
   (eval echo "\"\$as_me:7432: $lt_compile\"" >&5)
7433 19 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7434
   ac_status=$?
7435
   cat out/conftest.err >&5
7436 538 julius
   echo "$as_me:7436: \$? = $ac_status" >&5
7437 19 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7438
   then
7439
     # The compiler can only warn and ignore the option if not recognized
7440
     # So say no if there are warnings
7441 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7442 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7443
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7444
       lt_cv_prog_compiler_c_o=yes
7445
     fi
7446
   fi
7447
   chmod u+w . 2>&5
7448 82 jeremybenn
   $RM conftest*
7449 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
7450
   # template instantiation
7451 82 jeremybenn
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7452
   $RM out/* && rmdir out
7453 19 jeremybenn
   cd ..
7454 82 jeremybenn
   $RM -r conftest
7455
   $RM conftest*
7456 19 jeremybenn
 
7457
fi
7458 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7459 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7460 19 jeremybenn
 
7461
 
7462 82 jeremybenn
 
7463
 
7464
 
7465
 
7466 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7467 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7468 346 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7469 82 jeremybenn
  $as_echo_n "(cached) " >&6
7470
else
7471
  lt_cv_prog_compiler_c_o=no
7472
   $RM -r conftest 2>/dev/null
7473
   mkdir conftest
7474
   cd conftest
7475
   mkdir out
7476
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7477
 
7478
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7479
   # Insert the option either (1) after the last *FLAGS variable, or
7480
   # (2) before a word containing "conftest.", or (3) at the end.
7481
   # Note that $ac_compile itself does not contain backslashes and begins
7482
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7483
   lt_compile=`echo "$ac_compile" | $SED \
7484
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7485
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7486
   -e 's:$: $lt_compiler_flag:'`
7487 538 julius
   (eval echo "\"\$as_me:7487: $lt_compile\"" >&5)
7488 82 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7489
   ac_status=$?
7490
   cat out/conftest.err >&5
7491 538 julius
   echo "$as_me:7491: \$? = $ac_status" >&5
7492 82 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7493
   then
7494
     # The compiler can only warn and ignore the option if not recognized
7495
     # So say no if there are warnings
7496
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7497
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7498
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7499
       lt_cv_prog_compiler_c_o=yes
7500
     fi
7501
   fi
7502
   chmod u+w . 2>&5
7503
   $RM conftest*
7504
   # SGI C++ compiler will create directory out/ii_files/ for
7505
   # template instantiation
7506
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7507
   $RM out/* && rmdir out
7508
   cd ..
7509
   $RM -r conftest
7510
   $RM conftest*
7511
 
7512
fi
7513 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7514 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7515
 
7516
 
7517
 
7518
 
7519 19 jeremybenn
hard_links="nottested"
7520
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7521
  # do not overwrite the value of need_locks provided by the user
7522 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7523 82 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
7524 19 jeremybenn
  hard_links=yes
7525 82 jeremybenn
  $RM conftest*
7526 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7527
  touch conftest.a
7528
  ln conftest.a conftest.b 2>&5 || hard_links=no
7529
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7530 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7531 82 jeremybenn
$as_echo "$hard_links" >&6; }
7532 19 jeremybenn
  if test "$hard_links" = no; then
7533 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7534 82 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7535 19 jeremybenn
    need_locks=warn
7536
  fi
7537
else
7538
  need_locks=no
7539
fi
7540
 
7541
 
7542 82 jeremybenn
 
7543
 
7544
 
7545
 
7546 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7547 82 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7548
 
7549 19 jeremybenn
  runpath_var=
7550
  allow_undefined_flag=
7551 82 jeremybenn
  always_export_symbols=no
7552 19 jeremybenn
  archive_cmds=
7553
  archive_expsym_cmds=
7554 82 jeremybenn
  compiler_needs_object=no
7555
  enable_shared_with_static_runtimes=no
7556 19 jeremybenn
  export_dynamic_flag_spec=
7557 82 jeremybenn
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7558
  hardcode_automatic=no
7559
  hardcode_direct=no
7560
  hardcode_direct_absolute=no
7561 19 jeremybenn
  hardcode_libdir_flag_spec=
7562
  hardcode_libdir_flag_spec_ld=
7563
  hardcode_libdir_separator=
7564
  hardcode_minus_L=no
7565
  hardcode_shlibpath_var=unsupported
7566 82 jeremybenn
  inherit_rpath=no
7567 19 jeremybenn
  link_all_deplibs=unknown
7568
  module_cmds=
7569
  module_expsym_cmds=
7570 82 jeremybenn
  old_archive_from_new_cmds=
7571
  old_archive_from_expsyms_cmds=
7572
  thread_safe_flag_spec=
7573
  whole_archive_flag_spec=
7574 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
7575
  # included in the symbol list
7576
  include_expsyms=
7577
  # exclude_expsyms can be an extended regexp of symbols to exclude
7578
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7579
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7580
  # as well as any symbol that contains `d'.
7581 82 jeremybenn
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7582 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7583
  # platforms (ab)use it in PIC code, but their linkers get confused if
7584
  # the symbol is explicitly referenced.  Since portable code cannot
7585
  # rely on this symbol name, it's probably fine to never include it in
7586
  # preloaded symbol tables.
7587 82 jeremybenn
  # Exclude shared library initialization/finalization symbols.
7588 19 jeremybenn
  extract_expsyms_cmds=
7589
 
7590
  case $host_os in
7591 82 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
7592 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7593
    # When not using gcc, we currently assume that we are using
7594
    # Microsoft Visual C++.
7595
    if test "$GCC" != yes; then
7596
      with_gnu_ld=no
7597
    fi
7598
    ;;
7599
  interix*)
7600
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7601
    with_gnu_ld=yes
7602
    ;;
7603
  openbsd*)
7604
    with_gnu_ld=no
7605
    ;;
7606 93 jeremybenn
  linux* | k*bsd*-gnu)
7607
    link_all_deplibs=no
7608
    ;;
7609 19 jeremybenn
  esac
7610
 
7611
  ld_shlibs=yes
7612
  if test "$with_gnu_ld" = yes; then
7613
    # If archive_cmds runs LD, not CC, wlarc should be empty
7614
    wlarc='${wl}'
7615
 
7616
    # Set some defaults for GNU ld with shared library support. These
7617
    # are reset later if shared libraries are not supported. Putting them
7618
    # here allows them to be overridden if necessary.
7619
    runpath_var=LD_RUN_PATH
7620 82 jeremybenn
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7621 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
7622
    # ancient GNU ld didn't support --whole-archive et. al.
7623 82 jeremybenn
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7624
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7625
    else
7626
      whole_archive_flag_spec=
7627 19 jeremybenn
    fi
7628
    supports_anon_versioning=no
7629 82 jeremybenn
    case `$LD -v 2>&1` in
7630 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7631
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7632
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7633
      *\ 2.11.*) ;; # other 2.11 versions
7634
      *) supports_anon_versioning=yes ;;
7635
    esac
7636
 
7637
    # See if GNU ld supports shared libraries.
7638
    case $host_os in
7639 82 jeremybenn
    aix[3-9]*)
7640 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
7641
      if test "$host_cpu" != ia64; then
7642
        ld_shlibs=no
7643 82 jeremybenn
        cat <<_LT_EOF 1>&2
7644 19 jeremybenn
 
7645
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7646
*** to be unable to reliably create shared libraries on AIX.
7647
*** Therefore, libtool is disabling shared libraries support.  If you
7648
*** really care for shared libraries, you may want to modify your PATH
7649
*** so that a non-GNU linker is found, and then restart.
7650
 
7651 82 jeremybenn
_LT_EOF
7652 19 jeremybenn
      fi
7653
      ;;
7654
 
7655
    amigaos*)
7656 82 jeremybenn
      case $host_cpu in
7657
      powerpc)
7658
            # see comment about AmigaOS4 .so support
7659
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660
            archive_expsym_cmds=''
7661
        ;;
7662
      m68k)
7663
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7664
            hardcode_libdir_flag_spec='-L$libdir'
7665
            hardcode_minus_L=yes
7666
        ;;
7667
      esac
7668 19 jeremybenn
      ;;
7669
 
7670
    beos*)
7671 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7672 19 jeremybenn
        allow_undefined_flag=unsupported
7673
        # Joseph Beckenbach  says some releases of gcc
7674
        # support --undefined.  This deserves some investigation.  FIXME
7675
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7676
      else
7677
        ld_shlibs=no
7678
      fi
7679
      ;;
7680
 
7681 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
7682
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7683 19 jeremybenn
      # as there is no search path for DLLs.
7684
      hardcode_libdir_flag_spec='-L$libdir'
7685
      allow_undefined_flag=unsupported
7686
      always_export_symbols=no
7687
      enable_shared_with_static_runtimes=yes
7688 82 jeremybenn
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7689 19 jeremybenn
 
7690 82 jeremybenn
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7691 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7692
        # If the export-symbols file already is a .def file (1st line
7693
        # is EXPORTS), use it as is; otherwise, prepend...
7694
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7695
          cp $export_symbols $output_objdir/$soname.def;
7696
        else
7697
          echo EXPORTS > $output_objdir/$soname.def;
7698
          cat $export_symbols >> $output_objdir/$soname.def;
7699
        fi~
7700
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7701
      else
7702
        ld_shlibs=no
7703
      fi
7704
      ;;
7705
 
7706
    interix[3-9]*)
7707
      hardcode_direct=no
7708
      hardcode_shlibpath_var=no
7709
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7710
      export_dynamic_flag_spec='${wl}-E'
7711
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7712
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7713
      # default) and relocated if they conflict, which is a slow very memory
7714
      # consuming and fragmenting process.  To avoid this, we pick a random,
7715
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7716
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7717
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7718
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7719
      ;;
7720
 
7721 82 jeremybenn
    gnu* | linux* | tpf* | k*bsd*-gnu)
7722
      tmp_diet=no
7723
      if test "$host_os" = linux-dietlibc; then
7724
        case $cc_basename in
7725
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7726
        esac
7727
      fi
7728
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7729
         && test "$tmp_diet" = no
7730
      then
7731 19 jeremybenn
        tmp_addflag=
7732 82 jeremybenn
        tmp_sharedflag='-shared'
7733 19 jeremybenn
        case $cc_basename,$host_cpu in
7734 82 jeremybenn
        pgcc*)                          # Portland Group C compiler
7735
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7736 19 jeremybenn
          tmp_addflag=' $pic_flag'
7737
          ;;
7738
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7739 82 jeremybenn
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7740 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7741 82 jeremybenn
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7742 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
7743
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7744
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7745
        ifc* | ifort*)                  # Intel Fortran compiler
7746
          tmp_addflag=' -nofor_main' ;;
7747 82 jeremybenn
        lf95*)                          # Lahey Fortran 8.1
7748
          whole_archive_flag_spec=
7749
          tmp_sharedflag='--shared' ;;
7750
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7751
          tmp_sharedflag='-qmkshrobj'
7752
          tmp_addflag= ;;
7753 19 jeremybenn
        esac
7754
        case `$CC -V 2>&1 | sed 5q` in
7755
        *Sun\ C*)                       # Sun C 5.9
7756 82 jeremybenn
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7757
          compiler_needs_object=yes
7758 19 jeremybenn
          tmp_sharedflag='-G' ;;
7759
        *Sun\ F*)                       # Sun Fortran 8.3
7760
          tmp_sharedflag='-G' ;;
7761
        esac
7762
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7763
 
7764 82 jeremybenn
        if test "x$supports_anon_versioning" = xyes; then
7765
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7766
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7767
            echo "local: *; };" >> $output_objdir/$libname.ver~
7768
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7769
        fi
7770
 
7771
        case $cc_basename in
7772
        xlf*)
7773
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7774
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7775
          hardcode_libdir_flag_spec=
7776
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7777
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7778
          if test "x$supports_anon_versioning" = xyes; then
7779
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7780
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7781
              echo "local: *; };" >> $output_objdir/$libname.ver~
7782
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7783
          fi
7784
          ;;
7785
        esac
7786 19 jeremybenn
      else
7787 82 jeremybenn
        ld_shlibs=no
7788 19 jeremybenn
      fi
7789
      ;;
7790
 
7791 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7792 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7793 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7794
        wlarc=
7795
      else
7796
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7797
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7798
      fi
7799
      ;;
7800
 
7801
    solaris*)
7802 82 jeremybenn
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7803 19 jeremybenn
        ld_shlibs=no
7804 82 jeremybenn
        cat <<_LT_EOF 1>&2
7805 19 jeremybenn
 
7806
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7807
*** create shared libraries on Solaris systems.  Therefore, libtool
7808
*** is disabling shared libraries support.  We urge you to upgrade GNU
7809
*** binutils to release 2.9.1 or newer.  Another option is to modify
7810
*** your PATH or compiler configuration so that the native linker is
7811
*** used, and then restart.
7812
 
7813 82 jeremybenn
_LT_EOF
7814
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7815 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7816
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7817
      else
7818
        ld_shlibs=no
7819
      fi
7820
      ;;
7821
 
7822
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7823
      case `$LD -v 2>&1` in
7824
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7825
        ld_shlibs=no
7826
        cat <<_LT_EOF 1>&2
7827
 
7828
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7829
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7830
*** is disabling shared libraries support.  We urge you to upgrade GNU
7831
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7832
*** your PATH or compiler configuration so that the native linker is
7833
*** used, and then restart.
7834
 
7835
_LT_EOF
7836
        ;;
7837
        *)
7838 82 jeremybenn
          # For security reasons, it is highly recommended that you always
7839
          # use absolute paths for naming shared libraries, and exclude the
7840
          # DT_RUNPATH tag from executables and libraries.  But doing so
7841
          # requires that you compile everything twice, which is a pain.
7842
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7843
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7844
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7845
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7846 19 jeremybenn
          else
7847
            ld_shlibs=no
7848
          fi
7849
        ;;
7850
      esac
7851
      ;;
7852
 
7853
    sunos4*)
7854
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7855
      wlarc=
7856
      hardcode_direct=yes
7857
      hardcode_shlibpath_var=no
7858
      ;;
7859
 
7860
    *)
7861 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7862 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7863
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7864
      else
7865
        ld_shlibs=no
7866
      fi
7867
      ;;
7868
    esac
7869
 
7870
    if test "$ld_shlibs" = no; then
7871
      runpath_var=
7872
      hardcode_libdir_flag_spec=
7873
      export_dynamic_flag_spec=
7874
      whole_archive_flag_spec=
7875
    fi
7876
  else
7877
    # PORTME fill in a description of your system's linker (not GNU ld)
7878
    case $host_os in
7879
    aix3*)
7880
      allow_undefined_flag=unsupported
7881
      always_export_symbols=yes
7882
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7883
      # Note: this linker hardcodes the directories in LIBPATH if there
7884
      # are no directories specified by -L.
7885
      hardcode_minus_L=yes
7886
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7887
        # Neither direct hardcoding nor static linking is supported with a
7888
        # broken collect2.
7889
        hardcode_direct=unsupported
7890
      fi
7891
      ;;
7892
 
7893 82 jeremybenn
    aix[4-9]*)
7894 19 jeremybenn
      if test "$host_cpu" = ia64; then
7895
        # On IA64, the linker does run time linking by default, so we don't
7896
        # have to do anything special.
7897
        aix_use_runtimelinking=no
7898
        exp_sym_flag='-Bexport'
7899
        no_entry_flag=""
7900
      else
7901
        # If we're using GNU nm, then we don't want the "-C" option.
7902
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7903 82 jeremybenn
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7904
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7905 19 jeremybenn
        else
7906 82 jeremybenn
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7907 19 jeremybenn
        fi
7908
        aix_use_runtimelinking=no
7909
 
7910
        # Test if we are trying to use run time linking or normal
7911
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7912
        # need to do runtime linking.
7913 82 jeremybenn
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7914 19 jeremybenn
          for ld_flag in $LDFLAGS; do
7915 82 jeremybenn
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7916
            aix_use_runtimelinking=yes
7917
            break
7918
          fi
7919 19 jeremybenn
          done
7920
          ;;
7921
        esac
7922
 
7923
        exp_sym_flag='-bexport'
7924
        no_entry_flag='-bnoentry'
7925
      fi
7926
 
7927
      # When large executables or shared objects are built, AIX ld can
7928
      # have problems creating the table of contents.  If linking a library
7929
      # or program results in "error TOC overflow" add -mminimal-toc to
7930
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7931
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7932
 
7933
      archive_cmds=''
7934
      hardcode_direct=yes
7935 82 jeremybenn
      hardcode_direct_absolute=yes
7936 19 jeremybenn
      hardcode_libdir_separator=':'
7937
      link_all_deplibs=yes
7938 82 jeremybenn
      file_list_spec='${wl}-f,'
7939 19 jeremybenn
 
7940
      if test "$GCC" = yes; then
7941
        case $host_os in aix4.[012]|aix4.[012].*)
7942
        # We only want to do this on AIX 4.2 and lower, the check
7943
        # below for broken collect2 doesn't work under 4.3+
7944
          collect2name=`${CC} -print-prog-name=collect2`
7945 82 jeremybenn
          if test -f "$collect2name" &&
7946
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7947 19 jeremybenn
          then
7948 82 jeremybenn
          # We have reworked collect2
7949
          :
7950 19 jeremybenn
          else
7951 82 jeremybenn
          # We have old collect2
7952
          hardcode_direct=unsupported
7953
          # It fails to find uninstalled libraries when the uninstalled
7954
          # path is not listed in the libpath.  Setting hardcode_minus_L
7955
          # to unsupported forces relinking
7956
          hardcode_minus_L=yes
7957
          hardcode_libdir_flag_spec='-L$libdir'
7958
          hardcode_libdir_separator=
7959 19 jeremybenn
          fi
7960
          ;;
7961
        esac
7962
        shared_flag='-shared'
7963
        if test "$aix_use_runtimelinking" = yes; then
7964
          shared_flag="$shared_flag "'${wl}-G'
7965
        fi
7966 93 jeremybenn
        link_all_deplibs=no
7967 19 jeremybenn
      else
7968
        # not using gcc
7969
        if test "$host_cpu" = ia64; then
7970 82 jeremybenn
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7971
        # chokes on -Wl,-G. The following line is correct:
7972 19 jeremybenn
          shared_flag='-G'
7973
        else
7974
          if test "$aix_use_runtimelinking" = yes; then
7975
            shared_flag='${wl}-G'
7976
          else
7977
            shared_flag='${wl}-bM:SRE'
7978
          fi
7979
        fi
7980
      fi
7981
 
7982 82 jeremybenn
      export_dynamic_flag_spec='${wl}-bexpall'
7983 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
7984
      # underscore (_), so it is better to generate a list of symbols to export.
7985
      always_export_symbols=yes
7986
      if test "$aix_use_runtimelinking" = yes; then
7987
        # Warning - without using the other runtime loading flags (-brtl),
7988
        # -berok will link without error, but may produce a broken library.
7989
        allow_undefined_flag='-berok'
7990 82 jeremybenn
        # Determine the default libpath from the value encoded in an
7991
        # empty executable.
7992 346 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 19 jeremybenn
/* end confdefs.h.  */
7994
 
7995
int
7996
main ()
7997
{
7998
 
7999
  ;
8000
  return 0;
8001
}
8002
_ACEOF
8003 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8004 19 jeremybenn
 
8005
lt_aix_libpath_sed='
8006
    /Import File Strings/,/^$/ {
8007
        /^0/ {
8008
            s/^0  *\(.*\)$/\1/
8009
            p
8010
        }
8011
    }'
8012
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8013
# Check for a 64-bit object if we didn't find anything.
8014
if test -z "$aix_libpath"; then
8015
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8016
fi
8017
fi
8018 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8019
    conftest$ac_exeext conftest.$ac_ext
8020 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8021
 
8022 82 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8023
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8024
      else
8025 19 jeremybenn
        if test "$host_cpu" = ia64; then
8026
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8027
          allow_undefined_flag="-z nodefs"
8028
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8029
        else
8030 82 jeremybenn
         # Determine the default libpath from the value encoded in an
8031
         # empty executable.
8032 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 19 jeremybenn
/* end confdefs.h.  */
8034
 
8035
int
8036
main ()
8037
{
8038
 
8039
  ;
8040
  return 0;
8041
}
8042
_ACEOF
8043 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8044 19 jeremybenn
 
8045
lt_aix_libpath_sed='
8046
    /Import File Strings/,/^$/ {
8047
        /^0/ {
8048
            s/^0  *\(.*\)$/\1/
8049
            p
8050
        }
8051
    }'
8052
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8053
# Check for a 64-bit object if we didn't find anything.
8054
if test -z "$aix_libpath"; then
8055
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8056
fi
8057
fi
8058 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8059
    conftest$ac_exeext conftest.$ac_ext
8060 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8061
 
8062
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8063
          # Warning - without using the other run time loading flags,
8064
          # -berok will link without error, but may produce a broken library.
8065
          no_undefined_flag=' ${wl}-bernotok'
8066
          allow_undefined_flag=' ${wl}-berok'
8067
          # Exported symbols can be pulled into shared objects from archives
8068
          whole_archive_flag_spec='$convenience'
8069
          archive_cmds_need_lc=yes
8070
          # This is similar to how AIX traditionally builds its shared libraries.
8071
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8072
        fi
8073
      fi
8074
      ;;
8075
 
8076
    amigaos*)
8077 82 jeremybenn
      case $host_cpu in
8078
      powerpc)
8079
            # see comment about AmigaOS4 .so support
8080
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8081
            archive_expsym_cmds=''
8082
        ;;
8083
      m68k)
8084
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8085
            hardcode_libdir_flag_spec='-L$libdir'
8086
            hardcode_minus_L=yes
8087
        ;;
8088
      esac
8089 19 jeremybenn
      ;;
8090
 
8091
    bsdi[45]*)
8092
      export_dynamic_flag_spec=-rdynamic
8093
      ;;
8094
 
8095 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8096 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8097
      # Microsoft Visual C++.
8098
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8099
      # no search path for DLLs.
8100
      hardcode_libdir_flag_spec=' '
8101
      allow_undefined_flag=unsupported
8102
      # Tell ltmain to make .lib files, not .a files.
8103
      libext=lib
8104
      # Tell ltmain to make .dll files, not .so files.
8105
      shrext_cmds=".dll"
8106
      # FIXME: Setting linknames here is a bad hack.
8107 82 jeremybenn
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8108 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8109 82 jeremybenn
      old_archive_from_new_cmds='true'
8110 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8111
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8112
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8113
      enable_shared_with_static_runtimes=yes
8114
      ;;
8115
 
8116
    darwin* | rhapsody*)
8117 82 jeremybenn
 
8118
 
8119
  archive_cmds_need_lc=no
8120
  hardcode_direct=no
8121
  hardcode_automatic=yes
8122
  hardcode_shlibpath_var=unsupported
8123
  whole_archive_flag_spec=''
8124
  link_all_deplibs=yes
8125
  allow_undefined_flag="$_lt_dar_allow_undefined"
8126
  case $cc_basename in
8127
     ifort*) _lt_dar_can_shared=yes ;;
8128
     *) _lt_dar_can_shared=$GCC ;;
8129
  esac
8130
  if test "$_lt_dar_can_shared" = "yes"; then
8131
    output_verbose_link_cmd=echo
8132
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8133
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8134
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8135
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8136
 
8137
  else
8138
  ld_shlibs=no
8139
  fi
8140
 
8141 19 jeremybenn
      ;;
8142
 
8143
    dgux*)
8144
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8145
      hardcode_libdir_flag_spec='-L$libdir'
8146
      hardcode_shlibpath_var=no
8147
      ;;
8148
 
8149
    freebsd1*)
8150
      ld_shlibs=no
8151
      ;;
8152
 
8153
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8154
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8155
    # does not break anything, and helps significantly (at the cost of a little
8156
    # extra space).
8157
    freebsd2.2*)
8158
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8159
      hardcode_libdir_flag_spec='-R$libdir'
8160
      hardcode_direct=yes
8161
      hardcode_shlibpath_var=no
8162
      ;;
8163
 
8164
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8165
    freebsd2*)
8166
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8167
      hardcode_direct=yes
8168
      hardcode_minus_L=yes
8169
      hardcode_shlibpath_var=no
8170
      ;;
8171
 
8172
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8173
    freebsd* | dragonfly*)
8174
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8175
      hardcode_libdir_flag_spec='-R$libdir'
8176
      hardcode_direct=yes
8177
      hardcode_shlibpath_var=no
8178
      ;;
8179
 
8180
    hpux9*)
8181
      if test "$GCC" = yes; then
8182 82 jeremybenn
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8183 19 jeremybenn
      else
8184 82 jeremybenn
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8185 19 jeremybenn
      fi
8186
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8187
      hardcode_libdir_separator=:
8188
      hardcode_direct=yes
8189
 
8190
      # hardcode_minus_L: Not really in the search PATH,
8191
      # but as the default location of the library.
8192
      hardcode_minus_L=yes
8193
      export_dynamic_flag_spec='${wl}-E'
8194
      ;;
8195
 
8196
    hpux10*)
8197
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8198
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8199
      else
8200
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8201
      fi
8202
      if test "$with_gnu_ld" = no; then
8203
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8204 82 jeremybenn
        hardcode_libdir_flag_spec_ld='+b $libdir'
8205 19 jeremybenn
        hardcode_libdir_separator=:
8206
        hardcode_direct=yes
8207 82 jeremybenn
        hardcode_direct_absolute=yes
8208 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8209
        # hardcode_minus_L: Not really in the search PATH,
8210
        # but as the default location of the library.
8211
        hardcode_minus_L=yes
8212
      fi
8213
      ;;
8214
 
8215
    hpux11*)
8216
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8217
        case $host_cpu in
8218
        hppa*64*)
8219
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8220
          ;;
8221
        ia64*)
8222 82 jeremybenn
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8223 19 jeremybenn
          ;;
8224
        *)
8225
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8226
          ;;
8227
        esac
8228
      else
8229
        case $host_cpu in
8230
        hppa*64*)
8231
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8232
          ;;
8233
        ia64*)
8234
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8235
          ;;
8236
        *)
8237
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8238
          ;;
8239
        esac
8240
      fi
8241
      if test "$with_gnu_ld" = no; then
8242
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8243
        hardcode_libdir_separator=:
8244
 
8245
        case $host_cpu in
8246
        hppa*64*|ia64*)
8247
          hardcode_direct=no
8248
          hardcode_shlibpath_var=no
8249
          ;;
8250
        *)
8251
          hardcode_direct=yes
8252 82 jeremybenn
          hardcode_direct_absolute=yes
8253 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8254
 
8255
          # hardcode_minus_L: Not really in the search PATH,
8256
          # but as the default location of the library.
8257
          hardcode_minus_L=yes
8258
          ;;
8259
        esac
8260
      fi
8261
      ;;
8262
 
8263
    irix5* | irix6* | nonstopux*)
8264
      if test "$GCC" = yes; then
8265 82 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8266
        # Try to use the -exported_symbol ld option, if it does not
8267
        # work, assume that -exports_file does not work either and
8268
        # implicitly export all symbols.
8269
        save_LDFLAGS="$LDFLAGS"
8270
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8271 346 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272
/* end confdefs.h.  */
8273 82 jeremybenn
int foo(void) {}
8274
_ACEOF
8275 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8276 82 jeremybenn
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8277
 
8278
fi
8279 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8280
    conftest$ac_exeext conftest.$ac_ext
8281 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
8282 19 jeremybenn
      else
8283 82 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8284
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8285 19 jeremybenn
      fi
8286 82 jeremybenn
      archive_cmds_need_lc='no'
8287 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8288
      hardcode_libdir_separator=:
8289 82 jeremybenn
      inherit_rpath=yes
8290 19 jeremybenn
      link_all_deplibs=yes
8291
      ;;
8292
 
8293 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
8294 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8295 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8296
      else
8297
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8298
      fi
8299
      hardcode_libdir_flag_spec='-R$libdir'
8300
      hardcode_direct=yes
8301
      hardcode_shlibpath_var=no
8302
      ;;
8303
 
8304
    newsos6)
8305
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8306
      hardcode_direct=yes
8307
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8308
      hardcode_libdir_separator=:
8309
      hardcode_shlibpath_var=no
8310
      ;;
8311
 
8312 82 jeremybenn
    *nto* | *qnx*)
8313
      ;;
8314
 
8315 19 jeremybenn
    openbsd*)
8316
      if test -f /usr/libexec/ld.so; then
8317
        hardcode_direct=yes
8318
        hardcode_shlibpath_var=no
8319 82 jeremybenn
        hardcode_direct_absolute=yes
8320
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8321 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8322
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8323
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8324
          export_dynamic_flag_spec='${wl}-E'
8325
        else
8326
          case $host_os in
8327
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8328
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8329
             hardcode_libdir_flag_spec='-R$libdir'
8330
             ;;
8331
           *)
8332
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8333
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8334
             ;;
8335
          esac
8336 82 jeremybenn
        fi
8337 19 jeremybenn
      else
8338
        ld_shlibs=no
8339
      fi
8340
      ;;
8341
 
8342
    os2*)
8343
      hardcode_libdir_flag_spec='-L$libdir'
8344
      hardcode_minus_L=yes
8345
      allow_undefined_flag=unsupported
8346 82 jeremybenn
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8347
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8348 19 jeremybenn
      ;;
8349
 
8350
    osf3*)
8351
      if test "$GCC" = yes; then
8352
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8353 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8354 19 jeremybenn
      else
8355
        allow_undefined_flag=' -expect_unresolved \*'
8356 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8357 19 jeremybenn
      fi
8358 82 jeremybenn
      archive_cmds_need_lc='no'
8359 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8360
      hardcode_libdir_separator=:
8361
      ;;
8362
 
8363
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8364
      if test "$GCC" = yes; then
8365
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8366 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8367 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8368
      else
8369
        allow_undefined_flag=' -expect_unresolved \*'
8370 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8371
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8372
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8373 19 jeremybenn
 
8374
        # Both c and cxx compiler support -rpath directly
8375
        hardcode_libdir_flag_spec='-rpath $libdir'
8376
      fi
8377 82 jeremybenn
      archive_cmds_need_lc='no'
8378 19 jeremybenn
      hardcode_libdir_separator=:
8379
      ;;
8380
 
8381
    solaris*)
8382 82 jeremybenn
      no_undefined_flag=' -z defs'
8383 19 jeremybenn
      if test "$GCC" = yes; then
8384
        wlarc='${wl}'
8385 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8386
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8387
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8388 19 jeremybenn
      else
8389 82 jeremybenn
        case `$CC -V 2>&1` in
8390
        *"Compilers 5.0"*)
8391
          wlarc=''
8392
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8393
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8394
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8395
          ;;
8396
        *)
8397
          wlarc='${wl}'
8398
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8399
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8400
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8401
          ;;
8402
        esac
8403 19 jeremybenn
      fi
8404
      hardcode_libdir_flag_spec='-R$libdir'
8405
      hardcode_shlibpath_var=no
8406
      case $host_os in
8407
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8408
      *)
8409
        # The compiler driver will combine and reorder linker options,
8410
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8411
        # but is careful enough not to reorder.
8412 82 jeremybenn
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8413 19 jeremybenn
        if test "$GCC" = yes; then
8414
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8415
        else
8416
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8417
        fi
8418
        ;;
8419
      esac
8420
      link_all_deplibs=yes
8421
      ;;
8422
 
8423
    sunos4*)
8424
      if test "x$host_vendor" = xsequent; then
8425
        # Use $CC to link under sequent, because it throws in some extra .o
8426
        # files that make .init and .fini sections work.
8427
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8428
      else
8429
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8430
      fi
8431
      hardcode_libdir_flag_spec='-L$libdir'
8432
      hardcode_direct=yes
8433
      hardcode_minus_L=yes
8434
      hardcode_shlibpath_var=no
8435
      ;;
8436
 
8437
    sysv4)
8438
      case $host_vendor in
8439
        sni)
8440
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8441
          hardcode_direct=yes # is this really true???
8442
        ;;
8443
        siemens)
8444
          ## LD is ld it makes a PLAMLIB
8445
          ## CC just makes a GrossModule.
8446
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8447
          reload_cmds='$CC -r -o $output$reload_objs'
8448
          hardcode_direct=no
8449
        ;;
8450
        motorola)
8451
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8452
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8453
        ;;
8454
      esac
8455
      runpath_var='LD_RUN_PATH'
8456
      hardcode_shlibpath_var=no
8457
      ;;
8458
 
8459
    sysv4.3*)
8460
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8461
      hardcode_shlibpath_var=no
8462
      export_dynamic_flag_spec='-Bexport'
8463
      ;;
8464
 
8465
    sysv4*MP*)
8466
      if test -d /usr/nec; then
8467
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468
        hardcode_shlibpath_var=no
8469
        runpath_var=LD_RUN_PATH
8470
        hardcode_runpath_var=yes
8471
        ld_shlibs=yes
8472
      fi
8473
      ;;
8474
 
8475
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8476
      no_undefined_flag='${wl}-z,text'
8477
      archive_cmds_need_lc=no
8478
      hardcode_shlibpath_var=no
8479
      runpath_var='LD_RUN_PATH'
8480
 
8481
      if test "$GCC" = yes; then
8482
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8483
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8484
      else
8485
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8486
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8487
      fi
8488
      ;;
8489
 
8490
    sysv5* | sco3.2v5* | sco5v6*)
8491
      # Note: We can NOT use -z defs as we might desire, because we do not
8492
      # link with -lc, and that would cause any symbols used from libc to
8493
      # always be unresolved, which means just about no library would
8494
      # ever link correctly.  If we're not using GNU ld we use -z text
8495
      # though, which does catch some bad symbols but isn't as heavy-handed
8496
      # as -z defs.
8497
      no_undefined_flag='${wl}-z,text'
8498
      allow_undefined_flag='${wl}-z,nodefs'
8499
      archive_cmds_need_lc=no
8500
      hardcode_shlibpath_var=no
8501 82 jeremybenn
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8502 19 jeremybenn
      hardcode_libdir_separator=':'
8503
      link_all_deplibs=yes
8504
      export_dynamic_flag_spec='${wl}-Bexport'
8505
      runpath_var='LD_RUN_PATH'
8506
 
8507
      if test "$GCC" = yes; then
8508 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8509
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8510 19 jeremybenn
      else
8511 82 jeremybenn
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8512
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513 19 jeremybenn
      fi
8514
      ;;
8515
 
8516
    uts4*)
8517
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8518
      hardcode_libdir_flag_spec='-L$libdir'
8519
      hardcode_shlibpath_var=no
8520
      ;;
8521
 
8522
    *)
8523
      ld_shlibs=no
8524
      ;;
8525
    esac
8526 82 jeremybenn
 
8527
    if test x$host_vendor = xsni; then
8528
      case $host in
8529
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8530
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8531
        ;;
8532
      esac
8533
    fi
8534 19 jeremybenn
  fi
8535
 
8536 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8537 82 jeremybenn
$as_echo "$ld_shlibs" >&6; }
8538 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8539
 
8540 82 jeremybenn
with_gnu_ld=$with_gnu_ld
8541
 
8542
 
8543
 
8544
 
8545
 
8546
 
8547
 
8548
 
8549
 
8550
 
8551
 
8552
 
8553
 
8554
 
8555
 
8556 19 jeremybenn
#
8557
# Do we need to explicitly link libc?
8558
#
8559
case "x$archive_cmds_need_lc" in
8560
x|xyes)
8561
  # Assume -lc should be added
8562
  archive_cmds_need_lc=yes
8563
 
8564
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8565
    case $archive_cmds in
8566
    *'~'*)
8567
      # FIXME: we may have to deal with multi-command sequences.
8568
      ;;
8569
    '$CC '*)
8570
      # Test whether the compiler implicitly links with -lc since on some
8571
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8572
      # to ld, don't add -lc before -lgcc.
8573 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8574 82 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8575
      $RM conftest*
8576 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8577
 
8578 346 jeremybenn
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8579 19 jeremybenn
  (eval $ac_compile) 2>&5
8580
  ac_status=$?
8581 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8582
  test $ac_status = 0; } 2>conftest.err; then
8583 19 jeremybenn
        soname=conftest
8584
        lib=conftest
8585
        libobjs=conftest.$ac_objext
8586
        deplibs=
8587
        wl=$lt_prog_compiler_wl
8588
        pic_flag=$lt_prog_compiler_pic
8589
        compiler_flags=-v
8590
        linker_flags=-v
8591
        verstring=
8592
        output_objdir=.
8593
        libname=conftest
8594
        lt_save_allow_undefined_flag=$allow_undefined_flag
8595
        allow_undefined_flag=
8596 346 jeremybenn
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8597 82 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8598 19 jeremybenn
  ac_status=$?
8599 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8600
  test $ac_status = 0; }
8601 19 jeremybenn
        then
8602
          archive_cmds_need_lc=no
8603
        else
8604
          archive_cmds_need_lc=yes
8605
        fi
8606
        allow_undefined_flag=$lt_save_allow_undefined_flag
8607
      else
8608
        cat conftest.err 1>&5
8609
      fi
8610 82 jeremybenn
      $RM conftest*
8611 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8612 82 jeremybenn
$as_echo "$archive_cmds_need_lc" >&6; }
8613 19 jeremybenn
      ;;
8614
    esac
8615
  fi
8616
  ;;
8617
esac
8618
 
8619
 
8620 82 jeremybenn
 
8621
 
8622
 
8623
 
8624
 
8625
 
8626
 
8627
 
8628
 
8629
 
8630
 
8631
 
8632
 
8633
 
8634
 
8635
 
8636
 
8637
 
8638
 
8639
 
8640
 
8641
 
8642
 
8643
 
8644
 
8645
 
8646
 
8647
 
8648
 
8649
 
8650
 
8651
 
8652
 
8653
 
8654
 
8655
 
8656
 
8657
 
8658
 
8659
 
8660
 
8661
 
8662
 
8663
 
8664
 
8665
 
8666
 
8667
 
8668
 
8669
 
8670
 
8671
 
8672
 
8673
 
8674
 
8675
 
8676
 
8677
 
8678
 
8679
 
8680
 
8681
 
8682
 
8683
 
8684
 
8685
 
8686
 
8687
 
8688
 
8689
 
8690
 
8691
 
8692
 
8693
 
8694
 
8695
 
8696
 
8697
 
8698
 
8699
 
8700
 
8701
 
8702
 
8703
 
8704
 
8705
 
8706
 
8707
 
8708
 
8709
 
8710
 
8711
 
8712
 
8713
 
8714
 
8715
 
8716
 
8717
 
8718
 
8719
 
8720
 
8721
 
8722
 
8723
 
8724
 
8725
 
8726
 
8727
 
8728
 
8729
 
8730
 
8731
 
8732
 
8733
 
8734
 
8735
 
8736
 
8737
 
8738
 
8739
 
8740
 
8741
 
8742
 
8743
 
8744
 
8745
 
8746
 
8747
 
8748
 
8749
 
8750
 
8751
 
8752
 
8753
 
8754
 
8755
 
8756
 
8757
 
8758
 
8759
 
8760
 
8761
 
8762
 
8763
 
8764
 
8765
 
8766
 
8767
 
8768
 
8769
 
8770
 
8771
 
8772
 
8773
 
8774
 
8775 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8776 82 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8777
 
8778 19 jeremybenn
if test "$GCC" = yes; then
8779
  case $host_os in
8780
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8781
    *) lt_awk_arg="/^libraries:/" ;;
8782
  esac
8783
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8784 82 jeremybenn
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8785 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
8786
    # otherwise default to the standard path separator (i.e. ":") - it is
8787
    # assumed that no part of a normal pathname contains ";" but that should
8788
    # okay in the real world where ";" in dirpaths is itself problematic.
8789 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8790 19 jeremybenn
  else
8791 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8792 19 jeremybenn
  fi
8793
  # Ok, now we have the path, separated by spaces, we can step through it
8794
  # and add multilib dir if necessary.
8795
  lt_tmp_lt_search_path_spec=
8796
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8797
  for lt_sys_path in $lt_search_path_spec; do
8798
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8799
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8800
    else
8801
      test -d "$lt_sys_path" && \
8802
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8803
    fi
8804
  done
8805 82 jeremybenn
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8806 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
8807
  lt_foo="";
8808
  lt_count=0;
8809
  for (lt_i = NF; lt_i > 0; lt_i--) {
8810
    if ($lt_i != "" && $lt_i != ".") {
8811
      if ($lt_i == "..") {
8812
        lt_count++;
8813
      } else {
8814
        if (lt_count == 0) {
8815
          lt_foo="/" $lt_i lt_foo;
8816
        } else {
8817
          lt_count--;
8818
        }
8819
      }
8820
    }
8821
  }
8822
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8823
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8824
}'`
8825 82 jeremybenn
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8826 19 jeremybenn
else
8827
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8828
fi
8829 82 jeremybenn
library_names_spec=
8830
libname_spec='lib$name'
8831
soname_spec=
8832
shrext_cmds=".so"
8833
postinstall_cmds=
8834
postuninstall_cmds=
8835
finish_cmds=
8836
finish_eval=
8837
shlibpath_var=
8838
shlibpath_overrides_runpath=unknown
8839
version_type=none
8840
dynamic_linker="$host_os ld.so"
8841
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8842 19 jeremybenn
need_lib_prefix=unknown
8843
hardcode_into_libs=no
8844
 
8845
# when you set need_version to no, make sure it does not cause -set_version
8846
# flags to be left without arguments
8847
need_version=unknown
8848
 
8849
case $host_os in
8850
aix3*)
8851
  version_type=linux
8852
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8853
  shlibpath_var=LIBPATH
8854
 
8855
  # AIX 3 has no versioning support, so we append a major version to the name.
8856
  soname_spec='${libname}${release}${shared_ext}$major'
8857
  ;;
8858
 
8859 82 jeremybenn
aix[4-9]*)
8860 19 jeremybenn
  version_type=linux
8861
  need_lib_prefix=no
8862
  need_version=no
8863
  hardcode_into_libs=yes
8864
  if test "$host_cpu" = ia64; then
8865
    # AIX 5 supports IA64
8866
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8867
    shlibpath_var=LD_LIBRARY_PATH
8868
  else
8869
    # With GCC up to 2.95.x, collect2 would create an import file
8870
    # for dependence libraries.  The import file would start with
8871
    # the line `#! .'.  This would cause the generated library to
8872
    # depend on `.', always an invalid library.  This was fixed in
8873
    # development snapshots of GCC prior to 3.0.
8874
    case $host_os in
8875
      aix4 | aix4.[01] | aix4.[01].*)
8876
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8877
           echo ' yes '
8878 82 jeremybenn
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8879 19 jeremybenn
        :
8880
      else
8881
        can_build_shared=no
8882
      fi
8883
      ;;
8884
    esac
8885
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8886
    # soname into executable. Probably we can add versioning support to
8887
    # collect2, so additional links can be useful in future.
8888
    if test "$aix_use_runtimelinking" = yes; then
8889
      # If using run time linking (on AIX 4.2 or later) use lib.so
8890
      # instead of lib.a to let people know that these are not
8891
      # typical AIX shared libraries.
8892
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8893
    else
8894
      # We preserve .a as extension for shared libraries through AIX4.2
8895
      # and later when we are not doing run time linking.
8896
      library_names_spec='${libname}${release}.a $libname.a'
8897
      soname_spec='${libname}${release}${shared_ext}$major'
8898
    fi
8899
    shlibpath_var=LIBPATH
8900
  fi
8901
  ;;
8902
 
8903
amigaos*)
8904 82 jeremybenn
  case $host_cpu in
8905
  powerpc)
8906
    # Since July 2007 AmigaOS4 officially supports .so libraries.
8907
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8908
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909
    ;;
8910
  m68k)
8911
    library_names_spec='$libname.ixlibrary $libname.a'
8912
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8913
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8914
    ;;
8915
  esac
8916 19 jeremybenn
  ;;
8917
 
8918
beos*)
8919
  library_names_spec='${libname}${shared_ext}'
8920
  dynamic_linker="$host_os ld.so"
8921
  shlibpath_var=LIBRARY_PATH
8922
  ;;
8923
 
8924
bsdi[45]*)
8925
  version_type=linux
8926
  need_version=no
8927
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8928
  soname_spec='${libname}${release}${shared_ext}$major'
8929
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8930
  shlibpath_var=LD_LIBRARY_PATH
8931
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8932
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8933
  # the default ld.so.conf also contains /usr/contrib/lib and
8934
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8935
  # libtool to hard-code these into programs
8936
  ;;
8937
 
8938 82 jeremybenn
cygwin* | mingw* | pw32* | cegcc*)
8939 19 jeremybenn
  version_type=windows
8940
  shrext_cmds=".dll"
8941
  need_version=no
8942
  need_lib_prefix=no
8943
 
8944
  case $GCC,$host_os in
8945 82 jeremybenn
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8946 19 jeremybenn
    library_names_spec='$libname.dll.a'
8947
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8948
    postinstall_cmds='base_file=`basename \${file}`~
8949 82 jeremybenn
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8950 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
8951
      test -d \$dldir || mkdir -p \$dldir~
8952
      $install_prog $dir/$dlname \$dldir/$dlname~
8953 82 jeremybenn
      chmod a+x \$dldir/$dlname~
8954
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8955
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8956
      fi'
8957 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8958
      dlpath=$dir/\$dldll~
8959 82 jeremybenn
       $RM \$dlpath'
8960 19 jeremybenn
    shlibpath_overrides_runpath=yes
8961
 
8962
    case $host_os in
8963
    cygwin*)
8964
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8965
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8966
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8967
      ;;
8968 82 jeremybenn
    mingw* | cegcc*)
8969 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
8970
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8971 82 jeremybenn
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8972
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8973 19 jeremybenn
        # It is most probably a Windows format PATH printed by
8974
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8975
        # path with ; separators, and with drive letters. We can handle the
8976
        # drive letters (cygwin fileutils understands them), so leave them,
8977
        # especially as we might pass files found there to a mingw objdump,
8978
        # which wouldn't understand a cygwinified path. Ahh.
8979 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8980 19 jeremybenn
      else
8981 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8982 19 jeremybenn
      fi
8983
      ;;
8984
    pw32*)
8985
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8986
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8987
      ;;
8988
    esac
8989
    ;;
8990
 
8991
  *)
8992
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8993
    ;;
8994
  esac
8995
  dynamic_linker='Win32 ld.exe'
8996
  # FIXME: first we should search . and the directory the executable is in
8997
  shlibpath_var=PATH
8998
  ;;
8999
 
9000
darwin* | rhapsody*)
9001
  dynamic_linker="$host_os dyld"
9002
  version_type=darwin
9003
  need_lib_prefix=no
9004
  need_version=no
9005 82 jeremybenn
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9006 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9007
  shlibpath_overrides_runpath=yes
9008
  shlibpath_var=DYLD_LIBRARY_PATH
9009
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9010
 
9011
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9012
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9013
  ;;
9014
 
9015
dgux*)
9016
  version_type=linux
9017
  need_lib_prefix=no
9018
  need_version=no
9019
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9020
  soname_spec='${libname}${release}${shared_ext}$major'
9021
  shlibpath_var=LD_LIBRARY_PATH
9022
  ;;
9023
 
9024
freebsd1*)
9025
  dynamic_linker=no
9026
  ;;
9027
 
9028
freebsd* | dragonfly*)
9029
  # DragonFly does not have aout.  When/if they implement a new
9030
  # versioning mechanism, adjust this.
9031
  if test -x /usr/bin/objformat; then
9032
    objformat=`/usr/bin/objformat`
9033
  else
9034
    case $host_os in
9035
    freebsd[123]*) objformat=aout ;;
9036
    *) objformat=elf ;;
9037
    esac
9038
  fi
9039
  version_type=freebsd-$objformat
9040
  case $version_type in
9041
    freebsd-elf*)
9042
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9043
      need_version=no
9044
      need_lib_prefix=no
9045
      ;;
9046
    freebsd-*)
9047
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9048
      need_version=yes
9049
      ;;
9050
  esac
9051
  shlibpath_var=LD_LIBRARY_PATH
9052
  case $host_os in
9053
  freebsd2*)
9054
    shlibpath_overrides_runpath=yes
9055
    ;;
9056
  freebsd3.[01]* | freebsdelf3.[01]*)
9057
    shlibpath_overrides_runpath=yes
9058
    hardcode_into_libs=yes
9059
    ;;
9060
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9061
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9062
    shlibpath_overrides_runpath=no
9063
    hardcode_into_libs=yes
9064
    ;;
9065
  *) # from 4.6 on, and DragonFly
9066
    shlibpath_overrides_runpath=yes
9067
    hardcode_into_libs=yes
9068
    ;;
9069
  esac
9070
  ;;
9071
 
9072
gnu*)
9073
  version_type=linux
9074
  need_lib_prefix=no
9075
  need_version=no
9076
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9077
  soname_spec='${libname}${release}${shared_ext}$major'
9078
  shlibpath_var=LD_LIBRARY_PATH
9079
  hardcode_into_libs=yes
9080
  ;;
9081
 
9082
hpux9* | hpux10* | hpux11*)
9083
  # Give a soname corresponding to the major version so that dld.sl refuses to
9084
  # link against other versions.
9085
  version_type=sunos
9086
  need_lib_prefix=no
9087
  need_version=no
9088
  case $host_cpu in
9089
  ia64*)
9090
    shrext_cmds='.so'
9091
    hardcode_into_libs=yes
9092
    dynamic_linker="$host_os dld.so"
9093
    shlibpath_var=LD_LIBRARY_PATH
9094
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9095
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096
    soname_spec='${libname}${release}${shared_ext}$major'
9097
    if test "X$HPUX_IA64_MODE" = X32; then
9098
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9099
    else
9100
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9101
    fi
9102
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9103
    ;;
9104 82 jeremybenn
  hppa*64*)
9105 19 jeremybenn
    shrext_cmds='.sl'
9106 82 jeremybenn
    hardcode_into_libs=yes
9107 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9108 82 jeremybenn
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9109
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9110
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111
    soname_spec='${libname}${release}${shared_ext}$major'
9112
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9113
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9114
    ;;
9115
  *)
9116
    shrext_cmds='.sl'
9117
    dynamic_linker="$host_os dld.sl"
9118 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9119
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9120
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121
    soname_spec='${libname}${release}${shared_ext}$major'
9122
    ;;
9123
  esac
9124
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9125
  postinstall_cmds='chmod 555 $lib'
9126
  ;;
9127
 
9128
interix[3-9]*)
9129
  version_type=linux
9130
  need_lib_prefix=no
9131
  need_version=no
9132
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9133
  soname_spec='${libname}${release}${shared_ext}$major'
9134
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9135
  shlibpath_var=LD_LIBRARY_PATH
9136
  shlibpath_overrides_runpath=no
9137
  hardcode_into_libs=yes
9138
  ;;
9139
 
9140
irix5* | irix6* | nonstopux*)
9141
  case $host_os in
9142
    nonstopux*) version_type=nonstopux ;;
9143
    *)
9144
        if test "$lt_cv_prog_gnu_ld" = yes; then
9145
                version_type=linux
9146
        else
9147
                version_type=irix
9148
        fi ;;
9149
  esac
9150
  need_lib_prefix=no
9151
  need_version=no
9152
  soname_spec='${libname}${release}${shared_ext}$major'
9153
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9154
  case $host_os in
9155
  irix5* | nonstopux*)
9156
    libsuff= shlibsuff=
9157
    ;;
9158
  *)
9159
    case $LD in # libtool.m4 will add one of these switches to LD
9160
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9161
      libsuff= shlibsuff= libmagic=32-bit;;
9162
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9163
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9164
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9165
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9166
    *) libsuff= shlibsuff= libmagic=never-match;;
9167
    esac
9168
    ;;
9169
  esac
9170
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9171
  shlibpath_overrides_runpath=no
9172
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9173
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9174
  hardcode_into_libs=yes
9175
  ;;
9176
 
9177
# No shared lib support for Linux oldld, aout, or coff.
9178
linux*oldld* | linux*aout* | linux*coff*)
9179
  dynamic_linker=no
9180
  ;;
9181
 
9182
# This must be Linux ELF.
9183
linux* | k*bsd*-gnu)
9184
  version_type=linux
9185
  need_lib_prefix=no
9186
  need_version=no
9187
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188
  soname_spec='${libname}${release}${shared_ext}$major'
9189
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9190
  shlibpath_var=LD_LIBRARY_PATH
9191
  shlibpath_overrides_runpath=no
9192 82 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
9193
  save_LDFLAGS=$LDFLAGS
9194
  save_libdir=$libdir
9195
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9196
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9197 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198 82 jeremybenn
/* end confdefs.h.  */
9199
 
9200
int
9201
main ()
9202
{
9203
 
9204
  ;
9205
  return 0;
9206
}
9207
_ACEOF
9208 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9209
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9210 82 jeremybenn
  shlibpath_overrides_runpath=yes
9211
fi
9212
fi
9213 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9214
    conftest$ac_exeext conftest.$ac_ext
9215 82 jeremybenn
  LDFLAGS=$save_LDFLAGS
9216
  libdir=$save_libdir
9217
 
9218 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9219
  # Some rework will be needed to allow for fast_install
9220
  # before this can be enabled.
9221
  hardcode_into_libs=yes
9222
 
9223
  # Append ld.so.conf contents to the search path
9224
  if test -f /etc/ld.so.conf; then
9225 82 jeremybenn
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9226 93 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9227 19 jeremybenn
  fi
9228
 
9229
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9230
  # powerpc, because MkLinux only supported shared libraries with the
9231
  # GNU dynamic linker.  Since this was broken with cross compilers,
9232
  # most powerpc-linux boxes support dynamic linking these days and
9233
  # people can always --disable-shared, the test was removed, and we
9234
  # assume the GNU/Linux dynamic linker is in use.
9235
  dynamic_linker='GNU/Linux ld.so'
9236
  ;;
9237
 
9238 93 jeremybenn
netbsdelf*-gnu)
9239
  version_type=linux
9240
  need_lib_prefix=no
9241
  need_version=no
9242
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9243
  soname_spec='${libname}${release}${shared_ext}$major'
9244
  shlibpath_var=LD_LIBRARY_PATH
9245
  shlibpath_overrides_runpath=no
9246
  hardcode_into_libs=yes
9247
  dynamic_linker='NetBSD ld.elf_so'
9248
  ;;
9249
 
9250 19 jeremybenn
netbsd*)
9251
  version_type=sunos
9252
  need_lib_prefix=no
9253
  need_version=no
9254 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9255 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9256
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9257
    dynamic_linker='NetBSD (a.out) ld.so'
9258
  else
9259
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9260
    soname_spec='${libname}${release}${shared_ext}$major'
9261
    dynamic_linker='NetBSD ld.elf_so'
9262
  fi
9263
  shlibpath_var=LD_LIBRARY_PATH
9264
  shlibpath_overrides_runpath=yes
9265
  hardcode_into_libs=yes
9266
  ;;
9267
 
9268
newsos6)
9269
  version_type=linux
9270
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271
  shlibpath_var=LD_LIBRARY_PATH
9272
  shlibpath_overrides_runpath=yes
9273
  ;;
9274
 
9275 82 jeremybenn
*nto* | *qnx*)
9276
  version_type=qnx
9277 19 jeremybenn
  need_lib_prefix=no
9278
  need_version=no
9279
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280
  soname_spec='${libname}${release}${shared_ext}$major'
9281
  shlibpath_var=LD_LIBRARY_PATH
9282 82 jeremybenn
  shlibpath_overrides_runpath=no
9283
  hardcode_into_libs=yes
9284
  dynamic_linker='ldqnx.so'
9285 19 jeremybenn
  ;;
9286
 
9287
openbsd*)
9288
  version_type=sunos
9289
  sys_lib_dlsearch_path_spec="/usr/lib"
9290
  need_lib_prefix=no
9291
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9292
  case $host_os in
9293 82 jeremybenn
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9294
    *)                          need_version=no  ;;
9295 19 jeremybenn
  esac
9296
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9297
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9298
  shlibpath_var=LD_LIBRARY_PATH
9299 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9300 19 jeremybenn
    case $host_os in
9301
      openbsd2.[89] | openbsd2.[89].*)
9302
        shlibpath_overrides_runpath=no
9303
        ;;
9304
      *)
9305
        shlibpath_overrides_runpath=yes
9306
        ;;
9307
      esac
9308
  else
9309
    shlibpath_overrides_runpath=yes
9310
  fi
9311
  ;;
9312
 
9313
os2*)
9314
  libname_spec='$name'
9315
  shrext_cmds=".dll"
9316
  need_lib_prefix=no
9317
  library_names_spec='$libname${shared_ext} $libname.a'
9318
  dynamic_linker='OS/2 ld.exe'
9319
  shlibpath_var=LIBPATH
9320
  ;;
9321
 
9322
osf3* | osf4* | osf5*)
9323
  version_type=osf
9324
  need_lib_prefix=no
9325
  need_version=no
9326
  soname_spec='${libname}${release}${shared_ext}$major'
9327
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328
  shlibpath_var=LD_LIBRARY_PATH
9329
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9330
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9331
  ;;
9332
 
9333
rdos*)
9334
  dynamic_linker=no
9335
  ;;
9336
 
9337
solaris*)
9338
  version_type=linux
9339
  need_lib_prefix=no
9340
  need_version=no
9341
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9342
  soname_spec='${libname}${release}${shared_ext}$major'
9343
  shlibpath_var=LD_LIBRARY_PATH
9344
  shlibpath_overrides_runpath=yes
9345
  hardcode_into_libs=yes
9346
  # ldd complains unless libraries are executable
9347
  postinstall_cmds='chmod +x $lib'
9348
  ;;
9349
 
9350
sunos4*)
9351
  version_type=sunos
9352
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9353
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9354
  shlibpath_var=LD_LIBRARY_PATH
9355
  shlibpath_overrides_runpath=yes
9356
  if test "$with_gnu_ld" = yes; then
9357
    need_lib_prefix=no
9358
  fi
9359
  need_version=yes
9360
  ;;
9361
 
9362
sysv4 | sysv4.3*)
9363
  version_type=linux
9364
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365
  soname_spec='${libname}${release}${shared_ext}$major'
9366
  shlibpath_var=LD_LIBRARY_PATH
9367
  case $host_vendor in
9368
    sni)
9369
      shlibpath_overrides_runpath=no
9370
      need_lib_prefix=no
9371
      runpath_var=LD_RUN_PATH
9372
      ;;
9373
    siemens)
9374
      need_lib_prefix=no
9375
      ;;
9376
    motorola)
9377
      need_lib_prefix=no
9378
      need_version=no
9379
      shlibpath_overrides_runpath=no
9380
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9381
      ;;
9382
  esac
9383
  ;;
9384
 
9385
sysv4*MP*)
9386
  if test -d /usr/nec ;then
9387
    version_type=linux
9388
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9389
    soname_spec='$libname${shared_ext}.$major'
9390
    shlibpath_var=LD_LIBRARY_PATH
9391
  fi
9392
  ;;
9393
 
9394
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9395
  version_type=freebsd-elf
9396
  need_lib_prefix=no
9397
  need_version=no
9398
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9399
  soname_spec='${libname}${release}${shared_ext}$major'
9400
  shlibpath_var=LD_LIBRARY_PATH
9401 82 jeremybenn
  shlibpath_overrides_runpath=yes
9402 19 jeremybenn
  hardcode_into_libs=yes
9403
  if test "$with_gnu_ld" = yes; then
9404
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9405
  else
9406
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9407
    case $host_os in
9408
      sco3.2v5*)
9409
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9410
        ;;
9411
    esac
9412
  fi
9413
  sys_lib_dlsearch_path_spec='/usr/lib'
9414
  ;;
9415
 
9416 82 jeremybenn
tpf*)
9417
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9418
  version_type=linux
9419
  need_lib_prefix=no
9420
  need_version=no
9421
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9422
  shlibpath_var=LD_LIBRARY_PATH
9423
  shlibpath_overrides_runpath=no
9424
  hardcode_into_libs=yes
9425
  ;;
9426
 
9427 19 jeremybenn
uts4*)
9428
  version_type=linux
9429
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430
  soname_spec='${libname}${release}${shared_ext}$major'
9431
  shlibpath_var=LD_LIBRARY_PATH
9432
  ;;
9433
 
9434
*)
9435
  dynamic_linker=no
9436
  ;;
9437
esac
9438 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9439 82 jeremybenn
$as_echo "$dynamic_linker" >&6; }
9440 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9441
 
9442
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9443
if test "$GCC" = yes; then
9444
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9445
fi
9446
 
9447 82 jeremybenn
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9448
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9449
fi
9450
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9451
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9452
fi
9453
 
9454
 
9455
 
9456
 
9457
 
9458
 
9459
 
9460
 
9461
 
9462
 
9463
 
9464
 
9465
 
9466
 
9467
 
9468
 
9469
 
9470
 
9471
 
9472
 
9473
 
9474
 
9475
 
9476
 
9477
 
9478
 
9479
 
9480
 
9481
 
9482
 
9483
 
9484
 
9485
 
9486
 
9487
 
9488
 
9489
 
9490
 
9491
 
9492
 
9493
 
9494
 
9495
 
9496
 
9497
 
9498
 
9499
 
9500
 
9501
 
9502
 
9503
 
9504
 
9505
 
9506
 
9507
 
9508
 
9509
 
9510
 
9511
 
9512
 
9513
 
9514
 
9515
 
9516
 
9517
 
9518
 
9519
 
9520
 
9521
 
9522
 
9523
 
9524
 
9525
 
9526
 
9527
 
9528
 
9529
 
9530
 
9531
 
9532
 
9533
 
9534
 
9535
 
9536
 
9537
 
9538
 
9539
 
9540 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9541 82 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9542 19 jeremybenn
hardcode_action=
9543 82 jeremybenn
if test -n "$hardcode_libdir_flag_spec" ||
9544
   test -n "$runpath_var" ||
9545 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9546
 
9547 82 jeremybenn
  # We can hardcode non-existent directories.
9548 19 jeremybenn
  if test "$hardcode_direct" != no &&
9549
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9550
     # have to relink, otherwise we might link with an installed library
9551
     # when we should be linking with a yet-to-be-installed one
9552 82 jeremybenn
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9553 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9554
    # Linking always hardcodes the temporary library directory.
9555
    hardcode_action=relink
9556
  else
9557
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9558
    hardcode_action=immediate
9559
  fi
9560
else
9561
  # We cannot hardcode anything, or else we can only hardcode existing
9562
  # directories.
9563
  hardcode_action=unsupported
9564
fi
9565 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9566 82 jeremybenn
$as_echo "$hardcode_action" >&6; }
9567 19 jeremybenn
 
9568 82 jeremybenn
if test "$hardcode_action" = relink ||
9569
   test "$inherit_rpath" = yes; then
9570 19 jeremybenn
  # Fast installation is not supported
9571
  enable_fast_install=no
9572
elif test "$shlibpath_overrides_runpath" = yes ||
9573
     test "$enable_shared" = no; then
9574
  # Fast installation is not necessary
9575
  enable_fast_install=needless
9576
fi
9577
 
9578
 
9579 82 jeremybenn
 
9580
 
9581
 
9582
 
9583
  if test "x$enable_dlopen" != xyes; then
9584 19 jeremybenn
  enable_dlopen=unknown
9585
  enable_dlopen_self=unknown
9586
  enable_dlopen_self_static=unknown
9587
else
9588
  lt_cv_dlopen=no
9589
  lt_cv_dlopen_libs=
9590
 
9591
  case $host_os in
9592
  beos*)
9593
    lt_cv_dlopen="load_add_on"
9594
    lt_cv_dlopen_libs=
9595
    lt_cv_dlopen_self=yes
9596
    ;;
9597
 
9598 82 jeremybenn
  mingw* | pw32* | cegcc*)
9599 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9600
    lt_cv_dlopen_libs=
9601 82 jeremybenn
    ;;
9602 19 jeremybenn
 
9603
  cygwin*)
9604
    lt_cv_dlopen="dlopen"
9605
    lt_cv_dlopen_libs=
9606 82 jeremybenn
    ;;
9607 19 jeremybenn
 
9608
  darwin*)
9609
  # if libdl is installed we need to link against it
9610 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9611 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9612 346 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9613 82 jeremybenn
  $as_echo_n "(cached) " >&6
9614 19 jeremybenn
else
9615
  ac_check_lib_save_LIBS=$LIBS
9616
LIBS="-ldl  $LIBS"
9617 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 19 jeremybenn
/* end confdefs.h.  */
9619
 
9620
/* Override any GCC internal prototype to avoid an error.
9621
   Use char because int might match the return type of a GCC
9622
   builtin and then its argument prototype would still apply.  */
9623
#ifdef __cplusplus
9624
extern "C"
9625
#endif
9626
char dlopen ();
9627
int
9628
main ()
9629
{
9630
return dlopen ();
9631
  ;
9632
  return 0;
9633
}
9634
_ACEOF
9635 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9636 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9637
else
9638 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
9639 19 jeremybenn
fi
9640 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9641
    conftest$ac_exeext conftest.$ac_ext
9642 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9643
fi
9644 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9645 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9646 346 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9647 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9648
else
9649
 
9650
    lt_cv_dlopen="dyld"
9651
    lt_cv_dlopen_libs=
9652
    lt_cv_dlopen_self=yes
9653
 
9654
fi
9655
 
9656 82 jeremybenn
    ;;
9657 19 jeremybenn
 
9658
  *)
9659 346 jeremybenn
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9660
if test "x$ac_cv_func_shl_load" = x""yes; then :
9661 19 jeremybenn
  lt_cv_dlopen="shl_load"
9662
else
9663 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9664 82 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9665 346 jeremybenn
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9666 82 jeremybenn
  $as_echo_n "(cached) " >&6
9667 19 jeremybenn
else
9668
  ac_check_lib_save_LIBS=$LIBS
9669
LIBS="-ldld  $LIBS"
9670 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 19 jeremybenn
/* end confdefs.h.  */
9672
 
9673
/* Override any GCC internal prototype to avoid an error.
9674
   Use char because int might match the return type of a GCC
9675
   builtin and then its argument prototype would still apply.  */
9676
#ifdef __cplusplus
9677
extern "C"
9678
#endif
9679
char shl_load ();
9680
int
9681
main ()
9682
{
9683
return shl_load ();
9684
  ;
9685
  return 0;
9686
}
9687
_ACEOF
9688 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9689 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
9690
else
9691 346 jeremybenn
  ac_cv_lib_dld_shl_load=no
9692 19 jeremybenn
fi
9693 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9694
    conftest$ac_exeext conftest.$ac_ext
9695 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9696
fi
9697 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9698 82 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9699 346 jeremybenn
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9700 82 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9701 19 jeremybenn
else
9702 346 jeremybenn
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9703
if test "x$ac_cv_func_dlopen" = x""yes; then :
9704 19 jeremybenn
  lt_cv_dlopen="dlopen"
9705
else
9706 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9707 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9708 346 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9709 82 jeremybenn
  $as_echo_n "(cached) " >&6
9710 19 jeremybenn
else
9711
  ac_check_lib_save_LIBS=$LIBS
9712
LIBS="-ldl  $LIBS"
9713 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 19 jeremybenn
/* end confdefs.h.  */
9715
 
9716
/* Override any GCC internal prototype to avoid an error.
9717
   Use char because int might match the return type of a GCC
9718
   builtin and then its argument prototype would still apply.  */
9719
#ifdef __cplusplus
9720
extern "C"
9721
#endif
9722
char dlopen ();
9723
int
9724
main ()
9725
{
9726
return dlopen ();
9727
  ;
9728
  return 0;
9729
}
9730
_ACEOF
9731 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9732 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9733
else
9734 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
9735 19 jeremybenn
fi
9736 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9737
    conftest$ac_exeext conftest.$ac_ext
9738 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9739
fi
9740 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9741 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9742 346 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9743 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9744
else
9745 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9746 82 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9747 346 jeremybenn
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9748 82 jeremybenn
  $as_echo_n "(cached) " >&6
9749 19 jeremybenn
else
9750
  ac_check_lib_save_LIBS=$LIBS
9751
LIBS="-lsvld  $LIBS"
9752 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 19 jeremybenn
/* end confdefs.h.  */
9754
 
9755
/* Override any GCC internal prototype to avoid an error.
9756
   Use char because int might match the return type of a GCC
9757
   builtin and then its argument prototype would still apply.  */
9758
#ifdef __cplusplus
9759
extern "C"
9760
#endif
9761
char dlopen ();
9762
int
9763
main ()
9764
{
9765
return dlopen ();
9766
  ;
9767
  return 0;
9768
}
9769
_ACEOF
9770 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9771 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
9772
else
9773 346 jeremybenn
  ac_cv_lib_svld_dlopen=no
9774 19 jeremybenn
fi
9775 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9776
    conftest$ac_exeext conftest.$ac_ext
9777 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9778
fi
9779 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9780 82 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9781 346 jeremybenn
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9782 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9783
else
9784 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9785 82 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9786 346 jeremybenn
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9787 82 jeremybenn
  $as_echo_n "(cached) " >&6
9788 19 jeremybenn
else
9789
  ac_check_lib_save_LIBS=$LIBS
9790
LIBS="-ldld  $LIBS"
9791 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9792 19 jeremybenn
/* end confdefs.h.  */
9793
 
9794
/* Override any GCC internal prototype to avoid an error.
9795
   Use char because int might match the return type of a GCC
9796
   builtin and then its argument prototype would still apply.  */
9797
#ifdef __cplusplus
9798
extern "C"
9799
#endif
9800
char dld_link ();
9801
int
9802
main ()
9803
{
9804
return dld_link ();
9805
  ;
9806
  return 0;
9807
}
9808
_ACEOF
9809 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9810 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
9811
else
9812 346 jeremybenn
  ac_cv_lib_dld_dld_link=no
9813 19 jeremybenn
fi
9814 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9815
    conftest$ac_exeext conftest.$ac_ext
9816 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9817
fi
9818 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9819 82 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9820 346 jeremybenn
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9821 82 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9822 19 jeremybenn
fi
9823
 
9824
 
9825
fi
9826
 
9827
 
9828
fi
9829
 
9830
 
9831
fi
9832
 
9833
 
9834
fi
9835
 
9836
 
9837
fi
9838
 
9839
    ;;
9840
  esac
9841
 
9842
  if test "x$lt_cv_dlopen" != xno; then
9843
    enable_dlopen=yes
9844
  else
9845
    enable_dlopen=no
9846
  fi
9847
 
9848
  case $lt_cv_dlopen in
9849
  dlopen)
9850
    save_CPPFLAGS="$CPPFLAGS"
9851
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9852
 
9853
    save_LDFLAGS="$LDFLAGS"
9854
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9855
 
9856
    save_LIBS="$LIBS"
9857
    LIBS="$lt_cv_dlopen_libs $LIBS"
9858
 
9859 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9860 82 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9861 346 jeremybenn
if test "${lt_cv_dlopen_self+set}" = set; then :
9862 82 jeremybenn
  $as_echo_n "(cached) " >&6
9863 19 jeremybenn
else
9864
          if test "$cross_compiling" = yes; then :
9865
  lt_cv_dlopen_self=cross
9866
else
9867
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9868
  lt_status=$lt_dlunknown
9869 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
9870 538 julius
#line 9870 "configure"
9871 19 jeremybenn
#include "confdefs.h"
9872
 
9873
#if HAVE_DLFCN_H
9874
#include 
9875
#endif
9876
 
9877
#include 
9878
 
9879
#ifdef RTLD_GLOBAL
9880
#  define LT_DLGLOBAL           RTLD_GLOBAL
9881
#else
9882
#  ifdef DL_GLOBAL
9883
#    define LT_DLGLOBAL         DL_GLOBAL
9884
#  else
9885
#    define LT_DLGLOBAL         0
9886
#  endif
9887
#endif
9888
 
9889
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9890
   find out it does not work in some platform. */
9891
#ifndef LT_DLLAZY_OR_NOW
9892
#  ifdef RTLD_LAZY
9893
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9894
#  else
9895
#    ifdef DL_LAZY
9896
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9897
#    else
9898
#      ifdef RTLD_NOW
9899
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9900
#      else
9901
#        ifdef DL_NOW
9902
#          define LT_DLLAZY_OR_NOW      DL_NOW
9903
#        else
9904
#          define LT_DLLAZY_OR_NOW      0
9905
#        endif
9906
#      endif
9907
#    endif
9908
#  endif
9909
#endif
9910
 
9911
void fnord() { int i=42;}
9912
int main ()
9913
{
9914
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9915
  int status = $lt_dlunknown;
9916
 
9917
  if (self)
9918
    {
9919
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9920
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9921
      /* dlclose (self); */
9922
    }
9923
  else
9924
    puts (dlerror ());
9925
 
9926 82 jeremybenn
  return status;
9927 19 jeremybenn
}
9928 82 jeremybenn
_LT_EOF
9929 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9930 19 jeremybenn
  (eval $ac_link) 2>&5
9931
  ac_status=$?
9932 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9933
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9934 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9935
    lt_status=$?
9936
    case x$lt_status in
9937
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9938
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9939
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9940
    esac
9941
  else :
9942
    # compilation failed
9943
    lt_cv_dlopen_self=no
9944
  fi
9945
fi
9946
rm -fr conftest*
9947
 
9948
 
9949
fi
9950 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9951 82 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
9952 19 jeremybenn
 
9953
    if test "x$lt_cv_dlopen_self" = xyes; then
9954
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9955 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9956 82 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9957 346 jeremybenn
if test "${lt_cv_dlopen_self_static+set}" = set; then :
9958 82 jeremybenn
  $as_echo_n "(cached) " >&6
9959 19 jeremybenn
else
9960
          if test "$cross_compiling" = yes; then :
9961
  lt_cv_dlopen_self_static=cross
9962
else
9963
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9964
  lt_status=$lt_dlunknown
9965 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
9966 538 julius
#line 9966 "configure"
9967 19 jeremybenn
#include "confdefs.h"
9968
 
9969
#if HAVE_DLFCN_H
9970
#include 
9971
#endif
9972
 
9973
#include 
9974
 
9975
#ifdef RTLD_GLOBAL
9976
#  define LT_DLGLOBAL           RTLD_GLOBAL
9977
#else
9978
#  ifdef DL_GLOBAL
9979
#    define LT_DLGLOBAL         DL_GLOBAL
9980
#  else
9981
#    define LT_DLGLOBAL         0
9982
#  endif
9983
#endif
9984
 
9985
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9986
   find out it does not work in some platform. */
9987
#ifndef LT_DLLAZY_OR_NOW
9988
#  ifdef RTLD_LAZY
9989
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9990
#  else
9991
#    ifdef DL_LAZY
9992
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9993
#    else
9994
#      ifdef RTLD_NOW
9995
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9996
#      else
9997
#        ifdef DL_NOW
9998
#          define LT_DLLAZY_OR_NOW      DL_NOW
9999
#        else
10000
#          define LT_DLLAZY_OR_NOW      0
10001
#        endif
10002
#      endif
10003
#    endif
10004
#  endif
10005
#endif
10006
 
10007
void fnord() { int i=42;}
10008
int main ()
10009
{
10010
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10011
  int status = $lt_dlunknown;
10012
 
10013
  if (self)
10014
    {
10015
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10016
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10017
      /* dlclose (self); */
10018
    }
10019
  else
10020
    puts (dlerror ());
10021
 
10022 82 jeremybenn
  return status;
10023 19 jeremybenn
}
10024 82 jeremybenn
_LT_EOF
10025 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10026 19 jeremybenn
  (eval $ac_link) 2>&5
10027
  ac_status=$?
10028 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10029
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10030 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10031
    lt_status=$?
10032
    case x$lt_status in
10033
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10034
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10035
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10036
    esac
10037
  else :
10038
    # compilation failed
10039
    lt_cv_dlopen_self_static=no
10040
  fi
10041
fi
10042
rm -fr conftest*
10043
 
10044
 
10045
fi
10046 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10047 82 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10048 19 jeremybenn
    fi
10049
 
10050
    CPPFLAGS="$save_CPPFLAGS"
10051
    LDFLAGS="$save_LDFLAGS"
10052
    LIBS="$save_LIBS"
10053
    ;;
10054
  esac
10055
 
10056
  case $lt_cv_dlopen_self in
10057
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10058
  *) enable_dlopen_self=unknown ;;
10059
  esac
10060
 
10061
  case $lt_cv_dlopen_self_static in
10062
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10063
  *) enable_dlopen_self_static=unknown ;;
10064
  esac
10065
fi
10066
 
10067
 
10068
 
10069
 
10070
 
10071
 
10072
 
10073
 
10074
 
10075
 
10076
 
10077
 
10078
 
10079
 
10080
 
10081
 
10082
 
10083 82 jeremybenn
striplib=
10084
old_striplib=
10085 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10086 82 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10087
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10088
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10089
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10090 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10091 82 jeremybenn
$as_echo "yes" >&6; }
10092
else
10093
# FIXME - insert some real tests, host_os isn't really good enough
10094 19 jeremybenn
  case $host_os in
10095 82 jeremybenn
  darwin*)
10096
    if test -n "$STRIP" ; then
10097
      striplib="$STRIP -x"
10098
      old_striplib="$STRIP -S"
10099 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10100 82 jeremybenn
$as_echo "yes" >&6; }
10101 19 jeremybenn
    else
10102 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 82 jeremybenn
$as_echo "no" >&6; }
10104 19 jeremybenn
    fi
10105
    ;;
10106
  *)
10107 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 82 jeremybenn
$as_echo "no" >&6; }
10109 19 jeremybenn
    ;;
10110
  esac
10111
fi
10112
 
10113
 
10114
 
10115
 
10116
 
10117
 
10118
 
10119
 
10120
 
10121
 
10122
 
10123
 
10124 82 jeremybenn
  # Report which library types will actually be built
10125 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10126 82 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10127 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10128 82 jeremybenn
$as_echo "$can_build_shared" >&6; }
10129 19 jeremybenn
 
10130 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10131 82 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
10132
  test "$can_build_shared" = "no" && enable_shared=no
10133 19 jeremybenn
 
10134 82 jeremybenn
  # On AIX, shared libraries and static libraries use the same namespace, and
10135
  # are all built from PIC.
10136 19 jeremybenn
  case $host_os in
10137 82 jeremybenn
  aix3*)
10138 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10139 82 jeremybenn
    if test -n "$RANLIB"; then
10140
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10141
      postinstall_cmds='$RANLIB $lib'
10142 19 jeremybenn
    fi
10143
    ;;
10144
 
10145 82 jeremybenn
  aix[4-9]*)
10146
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10147
      test "$enable_shared" = yes && enable_static=no
10148 19 jeremybenn
    fi
10149
    ;;
10150
  esac
10151 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10152 82 jeremybenn
$as_echo "$enable_shared" >&6; }
10153 19 jeremybenn
 
10154 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10155 82 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
10156
  # Make sure either enable_shared or enable_static is yes.
10157
  test "$enable_shared" = yes || enable_static=yes
10158 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10159 82 jeremybenn
$as_echo "$enable_static" >&6; }
10160 19 jeremybenn
 
10161
 
10162
 
10163
 
10164
fi
10165
ac_ext=c
10166
ac_cpp='$CPP $CPPFLAGS'
10167
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10168
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10169
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10170
 
10171
CC="$lt_save_CC"
10172
 
10173
 
10174
 
10175
 
10176
 
10177
 
10178
 
10179
 
10180
 
10181
 
10182
 
10183
 
10184
 
10185 82 jeremybenn
        ac_config_commands="$ac_config_commands libtool"
10186 19 jeremybenn
 
10187
 
10188
 
10189
 
10190 82 jeremybenn
# Only expand once:
10191 19 jeremybenn
 
10192
 
10193 82 jeremybenn
am__api_version='1.11'
10194 19 jeremybenn
 
10195
# Find a good install program.  We prefer a C program (faster),
10196
# so one script is as good as another.  But avoid the broken or
10197
# incompatible versions:
10198
# SysV /etc/install, /usr/sbin/install
10199
# SunOS /usr/etc/install
10200
# IRIX /sbin/install
10201
# AIX /bin/install
10202
# AmigaOS /C/install, which installs bootblocks on floppy discs
10203
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10204
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10205
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10206
# OS/2's system install, which has a completely different semantic
10207
# ./install, which can be erroneously created by make from ./install.sh.
10208 82 jeremybenn
# Reject install programs that cannot install multiple files.
10209 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10210 82 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10211 19 jeremybenn
if test -z "$INSTALL"; then
10212 346 jeremybenn
if test "${ac_cv_path_install+set}" = set; then :
10213 82 jeremybenn
  $as_echo_n "(cached) " >&6
10214 19 jeremybenn
else
10215
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216
for as_dir in $PATH
10217
do
10218
  IFS=$as_save_IFS
10219
  test -z "$as_dir" && as_dir=.
10220 346 jeremybenn
    # Account for people who put trailing slashes in PATH elements.
10221
case $as_dir/ in #((
10222
  ./ | .// | /[cC]/* | \
10223 19 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10224 346 jeremybenn
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10225 19 jeremybenn
  /usr/ucb/* ) ;;
10226
  *)
10227
    # OSF1 and SCO ODT 3.0 have their own names for install.
10228
    # Don't use installbsd from OSF since it installs stuff as root
10229
    # by default.
10230
    for ac_prog in ginstall scoinst install; do
10231
      for ac_exec_ext in '' $ac_executable_extensions; do
10232
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10233
          if test $ac_prog = install &&
10234
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10235
            # AIX install.  It has an incompatible calling convention.
10236
            :
10237
          elif test $ac_prog = install &&
10238
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10239
            # program-specific install script used by HP pwplus--don't use.
10240
            :
10241
          else
10242 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
10243
            echo one > conftest.one
10244
            echo two > conftest.two
10245
            mkdir conftest.dir
10246
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10247
              test -s conftest.one && test -s conftest.two &&
10248
              test -s conftest.dir/conftest.one &&
10249
              test -s conftest.dir/conftest.two
10250
            then
10251
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10252
              break 3
10253
            fi
10254 19 jeremybenn
          fi
10255
        fi
10256
      done
10257
    done
10258
    ;;
10259
esac
10260 82 jeremybenn
 
10261 346 jeremybenn
  done
10262 19 jeremybenn
IFS=$as_save_IFS
10263
 
10264 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
10265 19 jeremybenn
 
10266
fi
10267
  if test "${ac_cv_path_install+set}" = set; then
10268
    INSTALL=$ac_cv_path_install
10269
  else
10270
    # As a last resort, use the slow shell script.  Don't cache a
10271
    # value for INSTALL within a source directory, because that will
10272
    # break other packages using the cache if that directory is
10273
    # removed, or if the value is a relative name.
10274
    INSTALL=$ac_install_sh
10275
  fi
10276
fi
10277 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10278 82 jeremybenn
$as_echo "$INSTALL" >&6; }
10279 19 jeremybenn
 
10280
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10281
# It thinks the first close brace ends the variable substitution.
10282
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10283
 
10284
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10285
 
10286
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10287
 
10288 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10289 82 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
10290 19 jeremybenn
# Just in case
10291
sleep 1
10292
echo timestamp > conftest.file
10293 82 jeremybenn
# Reject unsafe characters in $srcdir or the absolute working directory
10294
# name.  Accept space and tab only in the latter.
10295
am_lf='
10296
'
10297
case `pwd` in
10298
  *[\\\"\#\$\&\'\`$am_lf]*)
10299 346 jeremybenn
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
10300 82 jeremybenn
esac
10301
case $srcdir in
10302
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10303 346 jeremybenn
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
10304 82 jeremybenn
esac
10305
 
10306 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10307
# arguments.  Must try -L first in case configure is actually a
10308
# symlink; some systems play weird games with the mod time of symlinks
10309
# (eg FreeBSD returns the mod time of the symlink's containing
10310
# directory).
10311
if (
10312 82 jeremybenn
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10313 19 jeremybenn
   if test "$*" = "X"; then
10314
      # -L didn't work.
10315 82 jeremybenn
      set X `ls -t "$srcdir/configure" conftest.file`
10316 19 jeremybenn
   fi
10317
   rm -f conftest.file
10318
   if test "$*" != "X $srcdir/configure conftest.file" \
10319
      && test "$*" != "X conftest.file $srcdir/configure"; then
10320
 
10321
      # If neither matched, then we have a broken ls.  This can happen
10322
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10323
      # broken ls alias from the environment.  This has actually
10324
      # happened.  Such a system could not be considered "sane".
10325 346 jeremybenn
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
10326
alias in your environment" "$LINENO" 5
10327 19 jeremybenn
   fi
10328
 
10329
   test "$2" = conftest.file
10330
   )
10331
then
10332
   # Ok.
10333
   :
10334
else
10335 346 jeremybenn
   as_fn_error "newly created file is older than distributed files!
10336
Check your system clock" "$LINENO" 5
10337 19 jeremybenn
fi
10338 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10339 82 jeremybenn
$as_echo "yes" >&6; }
10340 19 jeremybenn
test "$program_prefix" != NONE &&
10341
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10342
# Use a double $ so make ignores it.
10343
test "$program_suffix" != NONE &&
10344
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10345 82 jeremybenn
# Double any \ or $.
10346 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10347 82 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10348
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10349 19 jeremybenn
 
10350
# expand $ac_aux_dir to an absolute path
10351
am_aux_dir=`cd $ac_aux_dir && pwd`
10352
 
10353 82 jeremybenn
if test x"${MISSING+set}" != xset; then
10354
  case $am_aux_dir in
10355
  *\ * | *\     *)
10356
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10357
  *)
10358
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10359
  esac
10360
fi
10361 19 jeremybenn
# Use eval to expand $SHELL
10362
if eval "$MISSING --run true"; then
10363
  am_missing_run="$MISSING --run "
10364
else
10365
  am_missing_run=
10366 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
10367 82 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10368 19 jeremybenn
fi
10369
 
10370 82 jeremybenn
if test x"${install_sh}" != xset; then
10371
  case $am_aux_dir in
10372
  *\ * | *\     *)
10373
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10374
  *)
10375
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10376
  esac
10377
fi
10378
 
10379
# Installed binaries are usually stripped using `strip' when the user
10380
# run `make install-strip'.  However `strip' might not be the right
10381
# tool to use in cross-compilation environments, therefore Automake
10382
# will honor the `STRIP' environment variable to overrule this program.
10383
if test "$cross_compiling" != no; then
10384
  if test -n "$ac_tool_prefix"; then
10385
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10386
set dummy ${ac_tool_prefix}strip; ac_word=$2
10387 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10388 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10389 346 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then :
10390 82 jeremybenn
  $as_echo_n "(cached) " >&6
10391
else
10392
  if test -n "$STRIP"; then
10393
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10394
else
10395
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396
for as_dir in $PATH
10397
do
10398
  IFS=$as_save_IFS
10399
  test -z "$as_dir" && as_dir=.
10400 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10401 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10402
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10403 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 82 jeremybenn
    break 2
10405
  fi
10406
done
10407 346 jeremybenn
  done
10408 82 jeremybenn
IFS=$as_save_IFS
10409
 
10410
fi
10411
fi
10412
STRIP=$ac_cv_prog_STRIP
10413
if test -n "$STRIP"; then
10414 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10415 82 jeremybenn
$as_echo "$STRIP" >&6; }
10416
else
10417 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418 82 jeremybenn
$as_echo "no" >&6; }
10419
fi
10420
 
10421
 
10422
fi
10423
if test -z "$ac_cv_prog_STRIP"; then
10424
  ac_ct_STRIP=$STRIP
10425
  # Extract the first word of "strip", so it can be a program name with args.
10426
set dummy strip; ac_word=$2
10427 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10429 346 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10430 82 jeremybenn
  $as_echo_n "(cached) " >&6
10431
else
10432
  if test -n "$ac_ct_STRIP"; then
10433
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10434
else
10435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436
for as_dir in $PATH
10437
do
10438
  IFS=$as_save_IFS
10439
  test -z "$as_dir" && as_dir=.
10440 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10441 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10442
    ac_cv_prog_ac_ct_STRIP="strip"
10443 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10444 82 jeremybenn
    break 2
10445
  fi
10446
done
10447 346 jeremybenn
  done
10448 82 jeremybenn
IFS=$as_save_IFS
10449
 
10450
fi
10451
fi
10452
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10453
if test -n "$ac_ct_STRIP"; then
10454 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10455 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
10456
else
10457 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 82 jeremybenn
$as_echo "no" >&6; }
10459
fi
10460
 
10461
  if test "x$ac_ct_STRIP" = x; then
10462
    STRIP=":"
10463
  else
10464
    case $cross_compiling:$ac_tool_warned in
10465
yes:)
10466 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10467 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10468
ac_tool_warned=yes ;;
10469
esac
10470
    STRIP=$ac_ct_STRIP
10471
  fi
10472
else
10473
  STRIP="$ac_cv_prog_STRIP"
10474
fi
10475
 
10476
fi
10477
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10478
 
10479 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10480 82 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10481 19 jeremybenn
if test -z "$MKDIR_P"; then
10482 346 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then :
10483 82 jeremybenn
  $as_echo_n "(cached) " >&6
10484 19 jeremybenn
else
10485
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10487
do
10488
  IFS=$as_save_IFS
10489
  test -z "$as_dir" && as_dir=.
10490 346 jeremybenn
    for ac_prog in mkdir gmkdir; do
10491 19 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
10492
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10493
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10494
             'mkdir (GNU coreutils) '* | \
10495
             'mkdir (coreutils) '* | \
10496
             'mkdir (fileutils) '4.1*)
10497
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10498
               break 3;;
10499
           esac
10500
         done
10501
       done
10502 346 jeremybenn
  done
10503 19 jeremybenn
IFS=$as_save_IFS
10504
 
10505
fi
10506
 
10507
  if test "${ac_cv_path_mkdir+set}" = set; then
10508
    MKDIR_P="$ac_cv_path_mkdir -p"
10509
  else
10510
    # As a last resort, use the slow shell script.  Don't cache a
10511
    # value for MKDIR_P within a source directory, because that will
10512
    # break other packages using the cache if that directory is
10513
    # removed, or if the value is a relative name.
10514 538 julius
    test -d ./--version && rmdir ./--version
10515 19 jeremybenn
    MKDIR_P="$ac_install_sh -d"
10516
  fi
10517
fi
10518 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10519 82 jeremybenn
$as_echo "$MKDIR_P" >&6; }
10520 19 jeremybenn
 
10521
mkdir_p="$MKDIR_P"
10522
case $mkdir_p in
10523
  [\\/$]* | ?:[\\/]*) ;;
10524
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10525
esac
10526
 
10527
for ac_prog in gawk mawk nawk awk
10528
do
10529
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10530
set dummy $ac_prog; ac_word=$2
10531 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10533 346 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then :
10534 82 jeremybenn
  $as_echo_n "(cached) " >&6
10535 19 jeremybenn
else
10536
  if test -n "$AWK"; then
10537
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10538
else
10539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540
for as_dir in $PATH
10541
do
10542
  IFS=$as_save_IFS
10543
  test -z "$as_dir" && as_dir=.
10544 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10545 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10546
    ac_cv_prog_AWK="$ac_prog"
10547 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 19 jeremybenn
    break 2
10549
  fi
10550
done
10551 346 jeremybenn
  done
10552 19 jeremybenn
IFS=$as_save_IFS
10553
 
10554
fi
10555
fi
10556
AWK=$ac_cv_prog_AWK
10557
if test -n "$AWK"; then
10558 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10559 82 jeremybenn
$as_echo "$AWK" >&6; }
10560 19 jeremybenn
else
10561 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 82 jeremybenn
$as_echo "no" >&6; }
10563 19 jeremybenn
fi
10564
 
10565
 
10566
  test -n "$AWK" && break
10567
done
10568
 
10569 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10570 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10571
set x ${MAKE-make}
10572
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10573 346 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
10574 82 jeremybenn
  $as_echo_n "(cached) " >&6
10575 19 jeremybenn
else
10576
  cat >conftest.make <<\_ACEOF
10577
SHELL = /bin/sh
10578
all:
10579
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10580
_ACEOF
10581
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10582
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10583
  *@@@%%%=?*=@@@%%%*)
10584
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10585
  *)
10586
    eval ac_cv_prog_make_${ac_make}_set=no;;
10587
esac
10588
rm -f conftest.make
10589
fi
10590
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10591 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10592 82 jeremybenn
$as_echo "yes" >&6; }
10593 19 jeremybenn
  SET_MAKE=
10594
else
10595 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 82 jeremybenn
$as_echo "no" >&6; }
10597 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
10598
fi
10599
 
10600
rm -rf .tst 2>/dev/null
10601
mkdir .tst 2>/dev/null
10602
if test -d .tst; then
10603
  am__leading_dot=.
10604
else
10605
  am__leading_dot=_
10606
fi
10607
rmdir .tst 2>/dev/null
10608
 
10609
DEPDIR="${am__leading_dot}deps"
10610
 
10611
ac_config_commands="$ac_config_commands depfiles"
10612
 
10613
 
10614
am_make=${MAKE-make}
10615
cat > confinc << 'END'
10616
am__doit:
10617 82 jeremybenn
        @echo this is the am__doit target
10618 19 jeremybenn
.PHONY: am__doit
10619
END
10620
# If we don't find an include directive, just comment out the code.
10621 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10622 82 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
10623 19 jeremybenn
am__include="#"
10624
am__quote=
10625
_am_result=none
10626
# First try GNU make style include.
10627
echo "include confinc" > confmf
10628 82 jeremybenn
# Ignore all kinds of additional output from `make'.
10629
case `$am_make -s -f confmf 2> /dev/null` in #(
10630
*the\ am__doit\ target*)
10631
  am__include=include
10632
  am__quote=
10633
  _am_result=GNU
10634
  ;;
10635
esac
10636 19 jeremybenn
# Now try BSD make style include.
10637
if test "$am__include" = "#"; then
10638
   echo '.include "confinc"' > confmf
10639 82 jeremybenn
   case `$am_make -s -f confmf 2> /dev/null` in #(
10640
   *the\ am__doit\ target*)
10641
     am__include=.include
10642
     am__quote="\""
10643
     _am_result=BSD
10644
     ;;
10645
   esac
10646 19 jeremybenn
fi
10647
 
10648
 
10649 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10650 82 jeremybenn
$as_echo "$_am_result" >&6; }
10651 19 jeremybenn
rm -f confinc confmf
10652
 
10653
# Check whether --enable-dependency-tracking was given.
10654 346 jeremybenn
if test "${enable_dependency_tracking+set}" = set; then :
10655 19 jeremybenn
  enableval=$enable_dependency_tracking;
10656
fi
10657
 
10658
if test "x$enable_dependency_tracking" != xno; then
10659
  am_depcomp="$ac_aux_dir/depcomp"
10660
  AMDEPBACKSLASH='\'
10661
fi
10662
 if test "x$enable_dependency_tracking" != xno; then
10663
  AMDEP_TRUE=
10664
  AMDEP_FALSE='#'
10665
else
10666
  AMDEP_TRUE='#'
10667
  AMDEP_FALSE=
10668
fi
10669
 
10670
 
10671
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10672
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10673
  # is not polluted with repeated "-I."
10674
  am__isrc=' -I$(srcdir)'
10675
  # test to see if srcdir already configured
10676
  if test -f $srcdir/config.status; then
10677 346 jeremybenn
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10678 19 jeremybenn
  fi
10679
fi
10680
 
10681
# test whether we have cygpath
10682
if test -z "$CYGPATH_W"; then
10683
  if (cygpath --version) >/dev/null 2>/dev/null; then
10684
    CYGPATH_W='cygpath -w'
10685
  else
10686
    CYGPATH_W=echo
10687
  fi
10688
fi
10689
 
10690
 
10691
# Define the identity of the package.
10692
 PACKAGE='or1ksim'
10693 532 jeremybenn
 VERSION='2011-04-28'
10694 19 jeremybenn
 
10695
 
10696
cat >>confdefs.h <<_ACEOF
10697
#define PACKAGE "$PACKAGE"
10698
_ACEOF
10699
 
10700
 
10701
cat >>confdefs.h <<_ACEOF
10702
#define VERSION "$VERSION"
10703
_ACEOF
10704
 
10705
# Some tools Automake needs.
10706
 
10707
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10708
 
10709
 
10710
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10711
 
10712
 
10713
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10714
 
10715
 
10716
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10717
 
10718
 
10719
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10720
 
10721
# We need awk for the "check" target.  The system "awk" is bad on
10722
# some platforms.
10723
# Always define AMTAR for backward compatibility.
10724
 
10725
AMTAR=${AMTAR-"${am_missing_run}tar"}
10726
 
10727
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
10728
 
10729
 
10730
 
10731
 
10732
depcc="$CC"   am_compiler_list=
10733
 
10734 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10735 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10736 346 jeremybenn
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10737 82 jeremybenn
  $as_echo_n "(cached) " >&6
10738 19 jeremybenn
else
10739
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10740
  # We make a subdir and do the tests there.  Otherwise we can end up
10741
  # making bogus files that we don't know about and never remove.  For
10742
  # instance it was reported that on HP-UX the gcc test will end up
10743
  # making a dummy file named `D' -- because `-MD' means `put the output
10744
  # in D'.
10745
  mkdir conftest.dir
10746
  # Copy depcomp to subdir because otherwise we won't find it if we're
10747
  # using a relative directory.
10748
  cp "$am_depcomp" conftest.dir
10749
  cd conftest.dir
10750
  # We will build objects and dependencies in a subdirectory because
10751
  # it helps to detect inapplicable dependency modes.  For instance
10752
  # both Tru64's cc and ICC support -MD to output dependencies as a
10753
  # side effect of compilation, but ICC will put the dependencies in
10754
  # the current directory while Tru64 will put them in the object
10755
  # directory.
10756
  mkdir sub
10757
 
10758
  am_cv_CC_dependencies_compiler_type=none
10759
  if test "$am_compiler_list" = ""; then
10760
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10761
  fi
10762 82 jeremybenn
  am__universal=false
10763
  case " $depcc " in #(
10764
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10765
     esac
10766
 
10767 19 jeremybenn
  for depmode in $am_compiler_list; do
10768
    # Setup a source with many dependencies, because some compilers
10769
    # like to wrap large dependency lists on column 80 (with \), and
10770
    # we should not choose a depcomp mode which is confused by this.
10771
    #
10772
    # We need to recreate these files for each test, as the compiler may
10773
    # overwrite some of them when testing with obscure command lines.
10774
    # This happens at least with the AIX C compiler.
10775
    : > sub/conftest.c
10776
    for i in 1 2 3 4 5 6; do
10777
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10778
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10779
      # Solaris 8's {/usr,}/bin/sh.
10780
      touch sub/conftst$i.h
10781
    done
10782
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10783
 
10784 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10785
    # mode.  It turns out that the SunPro C++ compiler does not properly
10786
    # handle `-M -o', and we need to detect this.  Also, some Intel
10787
    # versions had trouble with output in subdirs
10788
    am__obj=sub/conftest.${OBJEXT-o}
10789
    am__minus_obj="-o $am__obj"
10790 19 jeremybenn
    case $depmode in
10791 82 jeremybenn
    gcc)
10792
      # This depmode causes a compiler race in universal mode.
10793
      test "$am__universal" = false || continue
10794
      ;;
10795 19 jeremybenn
    nosideeffect)
10796
      # after this tag, mechanisms are not by side-effect, so they'll
10797
      # only be used when explicitly requested
10798
      if test "x$enable_dependency_tracking" = xyes; then
10799
        continue
10800
      else
10801
        break
10802
      fi
10803
      ;;
10804 82 jeremybenn
    msvisualcpp | msvcmsys)
10805
      # This compiler won't grok `-c -o', but also, the minuso test has
10806
      # not run yet.  These depmodes are late enough in the game, and
10807
      # so weak that their functioning should not be impacted.
10808
      am__obj=conftest.${OBJEXT-o}
10809
      am__minus_obj=
10810
      ;;
10811 19 jeremybenn
    none) break ;;
10812
    esac
10813
    if depmode=$depmode \
10814 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
10815 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10816 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10817 19 jeremybenn
         >/dev/null 2>conftest.err &&
10818
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10819
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10820 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10821 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10822
      # icc doesn't choke on unknown options, it will just issue warnings
10823
      # or remarks (even with -Werror).  So we grep stderr for any message
10824
      # that says an option was ignored or not supported.
10825
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10826
      #   icc: Command line warning: ignoring option '-M'; no argument required
10827
      # The diagnosis changed in icc 8.0:
10828
      #   icc: Command line remark: option '-MP' not supported
10829
      if (grep 'ignoring option' conftest.err ||
10830
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10831
        am_cv_CC_dependencies_compiler_type=$depmode
10832
        break
10833
      fi
10834
    fi
10835
  done
10836
 
10837
  cd ..
10838
  rm -rf conftest.dir
10839
else
10840
  am_cv_CC_dependencies_compiler_type=none
10841
fi
10842
 
10843
fi
10844 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10845 82 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10846 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10847
 
10848
 if
10849
  test "x$enable_dependency_tracking" != xno \
10850
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10851
  am__fastdepCC_TRUE=
10852
  am__fastdepCC_FALSE='#'
10853
else
10854
  am__fastdepCC_TRUE='#'
10855
  am__fastdepCC_FALSE=
10856
fi
10857
 
10858
 
10859
 
10860 91 jeremybenn
 
10861 82 jeremybenn
ac_config_headers="$ac_config_headers config.h"
10862
 
10863
 
10864
 
10865
 
10866
# make sure we are using a recent autoconf version
10867
 
10868
 
10869
# yuck.
10870
case "$target_cpu" in
10871
or32*)  CPU_ARCH=or32;
10872
        ARCH_ISA=OR32;
10873
 
10874 346 jeremybenn
$as_echo "#define OR32_TYPES 1" >>confdefs.h
10875 82 jeremybenn
;;
10876 385 jeremybenn
 
10877 82 jeremybenn
dlx*)   CPU_ARCH=dlx;
10878
        ARCH_ISA=DLX;;
10879 385 jeremybenn
 
10880
*)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown target architecture $target_cpu: OR32 ELF assumed" >&5
10881
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 ELF assumed" >&2;};
10882 82 jeremybenn
        CPU_ARCH=or32;
10883
        ARCH_ISA=OR32;
10884
 
10885 346 jeremybenn
$as_echo "#define OR32_TYPES 1" >>confdefs.h
10886 82 jeremybenn
;;
10887
esac
10888
 
10889
# determine endianism from target CPU name. If it has "little" in the name,
10890
# then its litte endian, otherwise its big endian (default for OR1K)
10891
case "$target_cpu" in
10892
*little*)
10893 346 jeremybenn
$as_echo "#define OR32_LITTLE_ENDIAN 1" >>confdefs.h
10894 82 jeremybenn
;;
10895
       *)
10896 346 jeremybenn
$as_echo "#define OR32_BIG_ENDIAN 1" >>confdefs.h
10897 82 jeremybenn
;;
10898
esac
10899
 
10900
 
10901
 
10902 236 jeremybenn
# Set the CFLAGS we want. We put the user flags last, so that if the user
10903
# changes the optimization level, that will take precedence.
10904
CFLAGS="-g -Wall -Werror -O2 -D$ARCH_ISA $CFLAGS"
10905 82 jeremybenn
 
10906
# By default we simply use the C compiler to build assembly code.
10907
 
10908
test "${CCAS+set}" = set || CCAS=$CC
10909
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10910
 
10911
 
10912
 
10913
depcc="$CCAS"   am_compiler_list=
10914
 
10915 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10916 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10917 346 jeremybenn
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
10918 82 jeremybenn
  $as_echo_n "(cached) " >&6
10919 19 jeremybenn
else
10920
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10921
  # We make a subdir and do the tests there.  Otherwise we can end up
10922
  # making bogus files that we don't know about and never remove.  For
10923
  # instance it was reported that on HP-UX the gcc test will end up
10924
  # making a dummy file named `D' -- because `-MD' means `put the output
10925
  # in D'.
10926
  mkdir conftest.dir
10927
  # Copy depcomp to subdir because otherwise we won't find it if we're
10928
  # using a relative directory.
10929
  cp "$am_depcomp" conftest.dir
10930
  cd conftest.dir
10931
  # We will build objects and dependencies in a subdirectory because
10932
  # it helps to detect inapplicable dependency modes.  For instance
10933
  # both Tru64's cc and ICC support -MD to output dependencies as a
10934
  # side effect of compilation, but ICC will put the dependencies in
10935
  # the current directory while Tru64 will put them in the object
10936
  # directory.
10937
  mkdir sub
10938
 
10939 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
10940 19 jeremybenn
  if test "$am_compiler_list" = ""; then
10941
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10942
  fi
10943 82 jeremybenn
  am__universal=false
10944
 
10945
 
10946 19 jeremybenn
  for depmode in $am_compiler_list; do
10947
    # Setup a source with many dependencies, because some compilers
10948
    # like to wrap large dependency lists on column 80 (with \), and
10949
    # we should not choose a depcomp mode which is confused by this.
10950
    #
10951
    # We need to recreate these files for each test, as the compiler may
10952
    # overwrite some of them when testing with obscure command lines.
10953
    # This happens at least with the AIX C compiler.
10954
    : > sub/conftest.c
10955
    for i in 1 2 3 4 5 6; do
10956
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10957
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10958
      # Solaris 8's {/usr,}/bin/sh.
10959
      touch sub/conftst$i.h
10960
    done
10961
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10962
 
10963 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10964
    # mode.  It turns out that the SunPro C++ compiler does not properly
10965
    # handle `-M -o', and we need to detect this.  Also, some Intel
10966
    # versions had trouble with output in subdirs
10967
    am__obj=sub/conftest.${OBJEXT-o}
10968
    am__minus_obj="-o $am__obj"
10969 19 jeremybenn
    case $depmode in
10970 82 jeremybenn
    gcc)
10971
      # This depmode causes a compiler race in universal mode.
10972
      test "$am__universal" = false || continue
10973
      ;;
10974 19 jeremybenn
    nosideeffect)
10975
      # after this tag, mechanisms are not by side-effect, so they'll
10976
      # only be used when explicitly requested
10977
      if test "x$enable_dependency_tracking" = xyes; then
10978
        continue
10979
      else
10980
        break
10981
      fi
10982
      ;;
10983 82 jeremybenn
    msvisualcpp | msvcmsys)
10984
      # This compiler won't grok `-c -o', but also, the minuso test has
10985
      # not run yet.  These depmodes are late enough in the game, and
10986
      # so weak that their functioning should not be impacted.
10987
      am__obj=conftest.${OBJEXT-o}
10988
      am__minus_obj=
10989
      ;;
10990 19 jeremybenn
    none) break ;;
10991
    esac
10992
    if depmode=$depmode \
10993 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
10994 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10995 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10996 19 jeremybenn
         >/dev/null 2>conftest.err &&
10997
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10998
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10999 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11000 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11001
      # icc doesn't choke on unknown options, it will just issue warnings
11002
      # or remarks (even with -Werror).  So we grep stderr for any message
11003
      # that says an option was ignored or not supported.
11004
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11005
      #   icc: Command line warning: ignoring option '-M'; no argument required
11006
      # The diagnosis changed in icc 8.0:
11007
      #   icc: Command line remark: option '-MP' not supported
11008
      if (grep 'ignoring option' conftest.err ||
11009
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11010 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11011 19 jeremybenn
        break
11012
      fi
11013
    fi
11014
  done
11015
 
11016
  cd ..
11017
  rm -rf conftest.dir
11018
else
11019 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11020 19 jeremybenn
fi
11021
 
11022
fi
11023 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11024 82 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11025
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11026 19 jeremybenn
 
11027
 if
11028
  test "x$enable_dependency_tracking" != xno \
11029 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11030
  am__fastdepCCAS_TRUE=
11031
  am__fastdepCCAS_FALSE='#'
11032 19 jeremybenn
else
11033 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11034
  am__fastdepCCAS_FALSE=
11035 19 jeremybenn
fi
11036
 
11037
 
11038
 
11039
ac_ext=c
11040
ac_cpp='$CPP $CPPFLAGS'
11041
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11042
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11043
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11044
if test -n "$ac_tool_prefix"; then
11045
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11046
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11047 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11048 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11049 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11050 82 jeremybenn
  $as_echo_n "(cached) " >&6
11051 19 jeremybenn
else
11052
  if test -n "$CC"; then
11053
  ac_cv_prog_CC="$CC" # Let the user override the test.
11054
else
11055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056
for as_dir in $PATH
11057
do
11058
  IFS=$as_save_IFS
11059
  test -z "$as_dir" && as_dir=.
11060 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11061 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11062
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11063 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11064 19 jeremybenn
    break 2
11065
  fi
11066
done
11067 346 jeremybenn
  done
11068 19 jeremybenn
IFS=$as_save_IFS
11069
 
11070
fi
11071
fi
11072
CC=$ac_cv_prog_CC
11073
if test -n "$CC"; then
11074 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11075 82 jeremybenn
$as_echo "$CC" >&6; }
11076 19 jeremybenn
else
11077 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11078 82 jeremybenn
$as_echo "no" >&6; }
11079 19 jeremybenn
fi
11080
 
11081
 
11082
fi
11083
if test -z "$ac_cv_prog_CC"; then
11084
  ac_ct_CC=$CC
11085
  # Extract the first word of "gcc", so it can be a program name with args.
11086
set dummy gcc; ac_word=$2
11087 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11089 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11090 82 jeremybenn
  $as_echo_n "(cached) " >&6
11091 19 jeremybenn
else
11092
  if test -n "$ac_ct_CC"; then
11093
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11094
else
11095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096
for as_dir in $PATH
11097
do
11098
  IFS=$as_save_IFS
11099
  test -z "$as_dir" && as_dir=.
11100 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11101 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11102
    ac_cv_prog_ac_ct_CC="gcc"
11103 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 19 jeremybenn
    break 2
11105
  fi
11106
done
11107 346 jeremybenn
  done
11108 19 jeremybenn
IFS=$as_save_IFS
11109
 
11110
fi
11111
fi
11112
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11113
if test -n "$ac_ct_CC"; then
11114 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11115 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11116 19 jeremybenn
else
11117 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 82 jeremybenn
$as_echo "no" >&6; }
11119 19 jeremybenn
fi
11120
 
11121
  if test "x$ac_ct_CC" = x; then
11122
    CC=""
11123
  else
11124
    case $cross_compiling:$ac_tool_warned in
11125
yes:)
11126 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11127 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11128 19 jeremybenn
ac_tool_warned=yes ;;
11129
esac
11130
    CC=$ac_ct_CC
11131
  fi
11132
else
11133
  CC="$ac_cv_prog_CC"
11134
fi
11135
 
11136
if test -z "$CC"; then
11137
          if test -n "$ac_tool_prefix"; then
11138
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11139
set dummy ${ac_tool_prefix}cc; ac_word=$2
11140 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11142 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11143 82 jeremybenn
  $as_echo_n "(cached) " >&6
11144 19 jeremybenn
else
11145
  if test -n "$CC"; then
11146
  ac_cv_prog_CC="$CC" # Let the user override the test.
11147
else
11148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149
for as_dir in $PATH
11150
do
11151
  IFS=$as_save_IFS
11152
  test -z "$as_dir" && as_dir=.
11153 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11154 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11155
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11156 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11157 19 jeremybenn
    break 2
11158
  fi
11159
done
11160 346 jeremybenn
  done
11161 19 jeremybenn
IFS=$as_save_IFS
11162
 
11163
fi
11164
fi
11165
CC=$ac_cv_prog_CC
11166
if test -n "$CC"; then
11167 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11168 82 jeremybenn
$as_echo "$CC" >&6; }
11169 19 jeremybenn
else
11170 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171 82 jeremybenn
$as_echo "no" >&6; }
11172 19 jeremybenn
fi
11173
 
11174
 
11175
  fi
11176
fi
11177
if test -z "$CC"; then
11178
  # Extract the first word of "cc", so it can be a program name with args.
11179
set dummy cc; ac_word=$2
11180 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11181 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11182 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11183 82 jeremybenn
  $as_echo_n "(cached) " >&6
11184 19 jeremybenn
else
11185
  if test -n "$CC"; then
11186
  ac_cv_prog_CC="$CC" # Let the user override the test.
11187
else
11188
  ac_prog_rejected=no
11189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190
for as_dir in $PATH
11191
do
11192
  IFS=$as_save_IFS
11193
  test -z "$as_dir" && as_dir=.
11194 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11195 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11196
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11197
       ac_prog_rejected=yes
11198
       continue
11199
     fi
11200
    ac_cv_prog_CC="cc"
11201 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11202 19 jeremybenn
    break 2
11203
  fi
11204
done
11205 346 jeremybenn
  done
11206 19 jeremybenn
IFS=$as_save_IFS
11207
 
11208
if test $ac_prog_rejected = yes; then
11209
  # We found a bogon in the path, so make sure we never use it.
11210
  set dummy $ac_cv_prog_CC
11211
  shift
11212
  if test $# != 0; then
11213
    # We chose a different compiler from the bogus one.
11214
    # However, it has the same basename, so the bogon will be chosen
11215
    # first if we set CC to just the basename; use the full file name.
11216
    shift
11217
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11218
  fi
11219
fi
11220
fi
11221
fi
11222
CC=$ac_cv_prog_CC
11223
if test -n "$CC"; then
11224 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11225 82 jeremybenn
$as_echo "$CC" >&6; }
11226 19 jeremybenn
else
11227 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 82 jeremybenn
$as_echo "no" >&6; }
11229 19 jeremybenn
fi
11230
 
11231
 
11232
fi
11233
if test -z "$CC"; then
11234
  if test -n "$ac_tool_prefix"; then
11235
  for ac_prog in cl.exe
11236
  do
11237
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11238
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11239 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11240 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11241 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11242 82 jeremybenn
  $as_echo_n "(cached) " >&6
11243 19 jeremybenn
else
11244
  if test -n "$CC"; then
11245
  ac_cv_prog_CC="$CC" # Let the user override the test.
11246
else
11247
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11248
for as_dir in $PATH
11249
do
11250
  IFS=$as_save_IFS
11251
  test -z "$as_dir" && as_dir=.
11252 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11253 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11254
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11255 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11256 19 jeremybenn
    break 2
11257
  fi
11258
done
11259 346 jeremybenn
  done
11260 19 jeremybenn
IFS=$as_save_IFS
11261
 
11262
fi
11263
fi
11264
CC=$ac_cv_prog_CC
11265
if test -n "$CC"; then
11266 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11267 82 jeremybenn
$as_echo "$CC" >&6; }
11268 19 jeremybenn
else
11269 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11270 82 jeremybenn
$as_echo "no" >&6; }
11271 19 jeremybenn
fi
11272
 
11273
 
11274
    test -n "$CC" && break
11275
  done
11276
fi
11277
if test -z "$CC"; then
11278
  ac_ct_CC=$CC
11279
  for ac_prog in cl.exe
11280
do
11281
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11282
set dummy $ac_prog; ac_word=$2
11283 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11285 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11286 82 jeremybenn
  $as_echo_n "(cached) " >&6
11287 19 jeremybenn
else
11288
  if test -n "$ac_ct_CC"; then
11289
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11290
else
11291
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292
for as_dir in $PATH
11293
do
11294
  IFS=$as_save_IFS
11295
  test -z "$as_dir" && as_dir=.
11296 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11297 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11298
    ac_cv_prog_ac_ct_CC="$ac_prog"
11299 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11300 19 jeremybenn
    break 2
11301
  fi
11302
done
11303 346 jeremybenn
  done
11304 19 jeremybenn
IFS=$as_save_IFS
11305
 
11306
fi
11307
fi
11308
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11309
if test -n "$ac_ct_CC"; then
11310 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11311 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11312 19 jeremybenn
else
11313 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 82 jeremybenn
$as_echo "no" >&6; }
11315 19 jeremybenn
fi
11316
 
11317
 
11318
  test -n "$ac_ct_CC" && break
11319
done
11320
 
11321
  if test "x$ac_ct_CC" = x; then
11322
    CC=""
11323
  else
11324
    case $cross_compiling:$ac_tool_warned in
11325
yes:)
11326 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11327 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11328 19 jeremybenn
ac_tool_warned=yes ;;
11329
esac
11330
    CC=$ac_ct_CC
11331
  fi
11332
fi
11333
 
11334
fi
11335
 
11336
 
11337 346 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11338 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11339 346 jeremybenn
as_fn_error "no acceptable C compiler found in \$PATH
11340
See \`config.log' for more details." "$LINENO" 5; }
11341 19 jeremybenn
 
11342
# Provide some information about the compiler.
11343 346 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11344 82 jeremybenn
set X $ac_compile
11345
ac_compiler=$2
11346 346 jeremybenn
for ac_option in --version -v -V -qversion; do
11347
  { { ac_try="$ac_compiler $ac_option >&5"
11348 19 jeremybenn
case "(($ac_try" in
11349
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350
  *) ac_try_echo=$ac_try;;
11351
esac
11352 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11353
$as_echo "$ac_try_echo"; } >&5
11354
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11355 19 jeremybenn
  ac_status=$?
11356 346 jeremybenn
  if test -s conftest.err; then
11357
    sed '10a\
11358
... rest of stderr output deleted ...
11359
         10q' conftest.err >conftest.er1
11360
    cat conftest.er1 >&5
11361 538 julius
    rm -f conftest.er1 conftest.err
11362 346 jeremybenn
  fi
11363
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11364
  test $ac_status = 0; }
11365
done
11366 19 jeremybenn
 
11367 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11368 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11369 346 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11370 82 jeremybenn
  $as_echo_n "(cached) " >&6
11371 19 jeremybenn
else
11372 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11373 19 jeremybenn
/* end confdefs.h.  */
11374
 
11375
int
11376
main ()
11377
{
11378
#ifndef __GNUC__
11379
       choke me
11380
#endif
11381
 
11382
  ;
11383
  return 0;
11384
}
11385
_ACEOF
11386 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11387 19 jeremybenn
  ac_compiler_gnu=yes
11388
else
11389 346 jeremybenn
  ac_compiler_gnu=no
11390 19 jeremybenn
fi
11391
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11392
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11393
 
11394
fi
11395 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11396 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11397
if test $ac_compiler_gnu = yes; then
11398
  GCC=yes
11399
else
11400
  GCC=
11401
fi
11402 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
11403
ac_save_CFLAGS=$CFLAGS
11404 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11405 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
11406 346 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then :
11407 82 jeremybenn
  $as_echo_n "(cached) " >&6
11408 19 jeremybenn
else
11409
  ac_save_c_werror_flag=$ac_c_werror_flag
11410
   ac_c_werror_flag=yes
11411
   ac_cv_prog_cc_g=no
11412
   CFLAGS="-g"
11413 346 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 19 jeremybenn
/* end confdefs.h.  */
11415
 
11416
int
11417
main ()
11418
{
11419
 
11420
  ;
11421
  return 0;
11422
}
11423
_ACEOF
11424 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11425 19 jeremybenn
  ac_cv_prog_cc_g=yes
11426
else
11427 346 jeremybenn
  CFLAGS=""
11428
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 19 jeremybenn
/* end confdefs.h.  */
11430
 
11431
int
11432
main ()
11433
{
11434
 
11435
  ;
11436
  return 0;
11437
}
11438
_ACEOF
11439 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11440
 
11441 236 jeremybenn
else
11442 346 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
11443 19 jeremybenn
         CFLAGS="-g"
11444 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445 19 jeremybenn
/* end confdefs.h.  */
11446
 
11447
int
11448
main ()
11449
{
11450
 
11451
  ;
11452
  return 0;
11453
}
11454
_ACEOF
11455 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11456 19 jeremybenn
  ac_cv_prog_cc_g=yes
11457
fi
11458
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459
fi
11460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461
fi
11462
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11463
   ac_c_werror_flag=$ac_save_c_werror_flag
11464
fi
11465 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11466 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
11467 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
11468
  CFLAGS=$ac_save_CFLAGS
11469
elif test $ac_cv_prog_cc_g = yes; then
11470
  if test "$GCC" = yes; then
11471
    CFLAGS="-g -O2"
11472
  else
11473
    CFLAGS="-g"
11474
  fi
11475
else
11476
  if test "$GCC" = yes; then
11477
    CFLAGS="-O2"
11478
  else
11479
    CFLAGS=
11480
  fi
11481
fi
11482 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11483 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11484 346 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then :
11485 82 jeremybenn
  $as_echo_n "(cached) " >&6
11486 19 jeremybenn
else
11487
  ac_cv_prog_cc_c89=no
11488
ac_save_CC=$CC
11489 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11490 19 jeremybenn
/* end confdefs.h.  */
11491
#include 
11492
#include 
11493
#include 
11494
#include 
11495
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11496
struct buf { int x; };
11497
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11498
static char *e (p, i)
11499
     char **p;
11500
     int i;
11501
{
11502
  return p[i];
11503
}
11504
static char *f (char * (*g) (char **, int), char **p, ...)
11505
{
11506
  char *s;
11507
  va_list v;
11508
  va_start (v,p);
11509
  s = g (p, va_arg (v,int));
11510
  va_end (v);
11511
  return s;
11512
}
11513
 
11514
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11515
   function prototypes and stuff, but not '\xHH' hex character constants.
11516
   These don't provoke an error unfortunately, instead are silently treated
11517
   as 'x'.  The following induces an error, until -std is added to get
11518
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11519
   array size at least.  It's necessary to write '\x00'==0 to get something
11520
   that's true only with -std.  */
11521
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11522
 
11523
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11524
   inside strings and character constants.  */
11525
#define FOO(x) 'x'
11526
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11527
 
11528
int test (int i, double x);
11529
struct s1 {int (*f) (int a);};
11530
struct s2 {int (*f) (double a);};
11531
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11532
int argc;
11533
char **argv;
11534
int
11535
main ()
11536
{
11537
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11538
  ;
11539
  return 0;
11540
}
11541
_ACEOF
11542
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11543
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11544
do
11545
  CC="$ac_save_CC $ac_arg"
11546 346 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
11547 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
11548
fi
11549
rm -f core conftest.err conftest.$ac_objext
11550
  test "x$ac_cv_prog_cc_c89" != "xno" && break
11551
done
11552
rm -f conftest.$ac_ext
11553
CC=$ac_save_CC
11554
 
11555
fi
11556
# AC_CACHE_VAL
11557
case "x$ac_cv_prog_cc_c89" in
11558
  x)
11559 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11560 82 jeremybenn
$as_echo "none needed" >&6; } ;;
11561 19 jeremybenn
  xno)
11562 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11563 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
11564 19 jeremybenn
  *)
11565
    CC="$CC $ac_cv_prog_cc_c89"
11566 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11567 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11568 19 jeremybenn
esac
11569 346 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
11570 19 jeremybenn
 
11571 346 jeremybenn
fi
11572 19 jeremybenn
 
11573
ac_ext=c
11574
ac_cpp='$CPP $CPPFLAGS'
11575
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11576
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11577
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11578
 
11579
if test "x$CC" != xcc; then
11580 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11581 82 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11582 19 jeremybenn
else
11583 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11584 82 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11585 19 jeremybenn
fi
11586 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
11587 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11588 346 jeremybenn
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11589 82 jeremybenn
  $as_echo_n "(cached) " >&6
11590 19 jeremybenn
else
11591 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 19 jeremybenn
/* end confdefs.h.  */
11593
 
11594
int
11595
main ()
11596
{
11597
 
11598
  ;
11599
  return 0;
11600
}
11601
_ACEOF
11602
# Make sure it works both with $CC and with simple cc.
11603
# We do the test twice because some compilers refuse to overwrite an
11604
# existing .o file with -o, though they will create one.
11605
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11606
rm -f conftest2.*
11607 346 jeremybenn
if { { case "(($ac_try" in
11608 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609
  *) ac_try_echo=$ac_try;;
11610
esac
11611 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11612
$as_echo "$ac_try_echo"; } >&5
11613 19 jeremybenn
  (eval "$ac_try") 2>&5
11614
  ac_status=$?
11615 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11616
  test $ac_status = 0; } &&
11617
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11618 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619
  *) ac_try_echo=$ac_try;;
11620
esac
11621 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11622
$as_echo "$ac_try_echo"; } >&5
11623 19 jeremybenn
  (eval "$ac_try") 2>&5
11624
  ac_status=$?
11625 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11626
  test $ac_status = 0; };
11627 19 jeremybenn
then
11628
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11629
  if test "x$CC" != xcc; then
11630
    # Test first that cc exists at all.
11631
    if { ac_try='cc -c conftest.$ac_ext >&5'
11632 346 jeremybenn
  { { case "(($ac_try" in
11633 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634
  *) ac_try_echo=$ac_try;;
11635
esac
11636 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11637
$as_echo "$ac_try_echo"; } >&5
11638 19 jeremybenn
  (eval "$ac_try") 2>&5
11639
  ac_status=$?
11640 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11641
  test $ac_status = 0; }; }; then
11642 19 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11643
      rm -f conftest2.*
11644 346 jeremybenn
      if { { case "(($ac_try" in
11645 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646
  *) ac_try_echo=$ac_try;;
11647
esac
11648 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11649
$as_echo "$ac_try_echo"; } >&5
11650 19 jeremybenn
  (eval "$ac_try") 2>&5
11651
  ac_status=$?
11652 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11653
  test $ac_status = 0; } &&
11654
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
11655 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656
  *) ac_try_echo=$ac_try;;
11657
esac
11658 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11659
$as_echo "$ac_try_echo"; } >&5
11660 19 jeremybenn
  (eval "$ac_try") 2>&5
11661
  ac_status=$?
11662 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11663
  test $ac_status = 0; };
11664 19 jeremybenn
      then
11665
        # cc works too.
11666
        :
11667
      else
11668
        # cc exists but doesn't like -o.
11669
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
11670
      fi
11671
    fi
11672
  fi
11673
else
11674
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11675
fi
11676
rm -f core conftest*
11677
 
11678
fi
11679
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11680 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11681 82 jeremybenn
$as_echo "yes" >&6; }
11682 19 jeremybenn
else
11683 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 82 jeremybenn
$as_echo "no" >&6; }
11685 19 jeremybenn
 
11686 346 jeremybenn
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11687 19 jeremybenn
 
11688
fi
11689
 
11690
# FIXME: we rely on the cache variable name because
11691
# there is no other way.
11692
set dummy $CC
11693 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11694
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11695
if test "$am_t" != yes; then
11696 19 jeremybenn
   # Losing compiler, so override with the script.
11697
   # FIXME: It is wrong to rewrite CC.
11698
   # But if we don't then we get into trouble of one sort or another.
11699
   # A longer-term fix would be to have automake use am__CC in this case,
11700
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11701
   CC="$am_aux_dir/compile $CC"
11702
fi
11703
 
11704
 
11705
 
11706 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11707 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11708
set x ${MAKE-make}
11709
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11710 346 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11711 82 jeremybenn
  $as_echo_n "(cached) " >&6
11712 19 jeremybenn
else
11713
  cat >conftest.make <<\_ACEOF
11714
SHELL = /bin/sh
11715
all:
11716
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11717
_ACEOF
11718
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11719
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11720
  *@@@%%%=?*=@@@%%%*)
11721
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11722
  *)
11723
    eval ac_cv_prog_make_${ac_make}_set=no;;
11724
esac
11725
rm -f conftest.make
11726
fi
11727
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11728 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11729 82 jeremybenn
$as_echo "yes" >&6; }
11730 19 jeremybenn
  SET_MAKE=
11731
else
11732 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733 82 jeremybenn
$as_echo "no" >&6; }
11734 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11735
fi
11736
 
11737
 
11738 82 jeremybenn
 
11739 19 jeremybenn
# Extract the first word of "ar", so it can be a program name with args.
11740
set dummy ar; ac_word=$2
11741 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11742 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11743 346 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then :
11744 82 jeremybenn
  $as_echo_n "(cached) " >&6
11745 19 jeremybenn
else
11746
  if test -n "$AR"; then
11747
  ac_cv_prog_AR="$AR" # Let the user override the test.
11748
else
11749
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750
for as_dir in $PATH
11751
do
11752
  IFS=$as_save_IFS
11753
  test -z "$as_dir" && as_dir=.
11754 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11755 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756
    ac_cv_prog_AR="ar"
11757 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 19 jeremybenn
    break 2
11759
  fi
11760
done
11761 346 jeremybenn
  done
11762 19 jeremybenn
IFS=$as_save_IFS
11763
 
11764
fi
11765
fi
11766
AR=$ac_cv_prog_AR
11767
if test -n "$AR"; then
11768 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11769 82 jeremybenn
$as_echo "$AR" >&6; }
11770 19 jeremybenn
else
11771 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11772 82 jeremybenn
$as_echo "no" >&6; }
11773 19 jeremybenn
fi
11774
 
11775
 
11776
 
11777
# Set default for ARFLAGS, since autoconf does not have a macro for it.
11778
# This allows people to set it when running configure or make
11779
test -n "$ARFLAGS" || ARFLAGS="cr"
11780
 
11781 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11782 82 jeremybenn
$as_echo_n "checking return type of signal handlers... " >&6; }
11783 346 jeremybenn
if test "${ac_cv_type_signal+set}" = set; then :
11784 82 jeremybenn
  $as_echo_n "(cached) " >&6
11785 19 jeremybenn
else
11786 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787 19 jeremybenn
/* end confdefs.h.  */
11788
#include 
11789
#include 
11790
 
11791
int
11792
main ()
11793
{
11794
return *(signal (0, 0)) (0) == 1;
11795
  ;
11796
  return 0;
11797
}
11798
_ACEOF
11799 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11800 19 jeremybenn
  ac_cv_type_signal=int
11801
else
11802 346 jeremybenn
  ac_cv_type_signal=void
11803 19 jeremybenn
fi
11804
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805
fi
11806 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11807 82 jeremybenn
$as_echo "$ac_cv_type_signal" >&6; }
11808 19 jeremybenn
 
11809
cat >>confdefs.h <<_ACEOF
11810
#define RETSIGTYPE $ac_cv_type_signal
11811
_ACEOF
11812
 
11813
 
11814 236 jeremybenn
for ac_header in unistd.h stdlib.h stdarg.h string.h strings.h      \
11815 82 jeremybenn
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
11816
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
11817 118 jeremybenn
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h  \
11818 538 julius
                 limits.h linux/if_tun.h
11819 346 jeremybenn
do :
11820
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11821
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11822
eval as_val=\$$as_ac_Header
11823
   if test "x$as_val" = x""yes; then :
11824 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
11825
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11826 19 jeremybenn
_ACEOF
11827
 
11828
fi
11829
 
11830
done
11831
 
11832
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
11833 346 jeremybenn
do :
11834
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11835
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11836
eval as_val=\$$as_ac_var
11837
   if test "x$as_val" = x""yes; then :
11838 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11839 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11840 19 jeremybenn
_ACEOF
11841
 
11842
fi
11843
done
11844
 
11845 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
11846 346 jeremybenn
do :
11847
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11848
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11849
eval as_val=\$$as_ac_var
11850
   if test "x$as_val" = x""yes; then :
11851 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11852 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11853 19 jeremybenn
_ACEOF
11854
 
11855
fi
11856
done
11857
 
11858
for ac_func in basename
11859 346 jeremybenn
do :
11860
  ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
11861
if test "x$ac_cv_func_basename" = x""yes; then :
11862 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11863 346 jeremybenn
#define HAVE_BASENAME 1
11864 19 jeremybenn
_ACEOF
11865
 
11866
fi
11867
done
11868
 
11869 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
11870 82 jeremybenn
$as_echo_n "checking for working strcoll... " >&6; }
11871 346 jeremybenn
if test "${ac_cv_func_strcoll_works+set}" = set; then :
11872 82 jeremybenn
  $as_echo_n "(cached) " >&6
11873 19 jeremybenn
else
11874 346 jeremybenn
  if test "$cross_compiling" = yes; then :
11875 19 jeremybenn
  ac_cv_func_strcoll_works=no
11876
else
11877 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878 19 jeremybenn
/* end confdefs.h.  */
11879
$ac_includes_default
11880
int
11881
main ()
11882
{
11883
return (strcoll ("abc", "def") >= 0 ||
11884
         strcoll ("ABC", "DEF") >= 0 ||
11885
         strcoll ("123", "456") >= 0)
11886
  ;
11887
  return 0;
11888
}
11889
_ACEOF
11890 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
11891 19 jeremybenn
  ac_cv_func_strcoll_works=yes
11892
else
11893 346 jeremybenn
  ac_cv_func_strcoll_works=no
11894 19 jeremybenn
fi
11895 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11896
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11897 19 jeremybenn
fi
11898
 
11899
fi
11900 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
11901 82 jeremybenn
$as_echo "$ac_cv_func_strcoll_works" >&6; }
11902 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
11903
 
11904 346 jeremybenn
$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
11905 19 jeremybenn
 
11906
fi
11907
 
11908 346 jeremybenn
ac_fn_c_check_decl "$LINENO" "I_PUSH" "ac_cv_have_decl_I_PUSH" "\
11909 82 jeremybenn
               #include 
11910 346 jeremybenn
"
11911
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then :
11912
  ac_have_decl=1
11913 19 jeremybenn
else
11914 346 jeremybenn
  ac_have_decl=0
11915 19 jeremybenn
fi
11916
 
11917 82 jeremybenn
cat >>confdefs.h <<_ACEOF
11918 346 jeremybenn
#define HAVE_DECL_I_PUSH $ac_have_decl
11919 19 jeremybenn
_ACEOF
11920 346 jeremybenn
ac_fn_c_check_decl "$LINENO" "rl_event_hook" "ac_cv_have_decl_rl_event_hook" "\
11921 82 jeremybenn
               #include 
11922 346 jeremybenn
"
11923
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then :
11924
  ac_have_decl=1
11925 19 jeremybenn
else
11926 346 jeremybenn
  ac_have_decl=0
11927 19 jeremybenn
fi
11928
 
11929 82 jeremybenn
cat >>confdefs.h <<_ACEOF
11930 346 jeremybenn
#define HAVE_DECL_RL_EVENT_HOOK $ac_have_decl
11931 19 jeremybenn
_ACEOF
11932
 
11933 346 jeremybenn
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11934 82 jeremybenn
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11935 346 jeremybenn
if test "${ac_cv_c_bigendian+set}" = set; then :
11936 82 jeremybenn
  $as_echo_n "(cached) " >&6
11937 19 jeremybenn
else
11938 82 jeremybenn
  ac_cv_c_bigendian=unknown
11939
    # See if we're dealing with a universal compiler.
11940 346 jeremybenn
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 19 jeremybenn
/* end confdefs.h.  */
11942 82 jeremybenn
#ifndef __APPLE_CC__
11943
               not a universal capable compiler
11944
             #endif
11945
             typedef int dummy;
11946
 
11947 19 jeremybenn
_ACEOF
11948 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11949 82 jeremybenn
 
11950
        # Check for potential -arch flags.  It is not universal unless
11951 346 jeremybenn
        # there are at least two -arch flags with different values.
11952
        ac_arch=
11953
        ac_prev=
11954
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11955
         if test -n "$ac_prev"; then
11956
           case $ac_word in
11957
             i?86 | x86_64 | ppc | ppc64)
11958
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11959
                 ac_arch=$ac_word
11960
               else
11961
                 ac_cv_c_bigendian=universal
11962
                 break
11963
               fi
11964
               ;;
11965
           esac
11966
           ac_prev=
11967
         elif test "x$ac_word" = "x-arch"; then
11968
           ac_prev=arch
11969
         fi
11970
       done
11971 19 jeremybenn
fi
11972
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
11974
      # See if sys/param.h defines the BYTE_ORDER macro.
11975 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11976 19 jeremybenn
/* end confdefs.h.  */
11977 82 jeremybenn
#include 
11978
             #include 
11979
 
11980
int
11981
main ()
11982
{
11983
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11984
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11985
                     && LITTLE_ENDIAN)
11986
              bogus endian macros
11987
             #endif
11988
 
11989
  ;
11990
  return 0;
11991
}
11992 19 jeremybenn
_ACEOF
11993 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11994 82 jeremybenn
  # It does; now see whether it defined to BIG_ENDIAN or not.
11995 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 19 jeremybenn
/* end confdefs.h.  */
11997 82 jeremybenn
#include 
11998
                #include 
11999
 
12000 19 jeremybenn
int
12001
main ()
12002
{
12003 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
12004
                 not big endian
12005
                #endif
12006 19 jeremybenn
 
12007
  ;
12008
  return 0;
12009
}
12010
_ACEOF
12011 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12012 82 jeremybenn
  ac_cv_c_bigendian=yes
12013 19 jeremybenn
else
12014 346 jeremybenn
  ac_cv_c_bigendian=no
12015 19 jeremybenn
fi
12016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12017
fi
12018 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019
    fi
12020
    if test $ac_cv_c_bigendian = unknown; then
12021
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12022 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 19 jeremybenn
/* end confdefs.h.  */
12024 82 jeremybenn
#include 
12025 19 jeremybenn
 
12026
int
12027
main ()
12028
{
12029 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12030
              bogus endian macros
12031
             #endif
12032 19 jeremybenn
 
12033
  ;
12034
  return 0;
12035
}
12036
_ACEOF
12037 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12038 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
12039 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040 19 jeremybenn
/* end confdefs.h.  */
12041 82 jeremybenn
#include 
12042 19 jeremybenn
 
12043
int
12044
main ()
12045
{
12046 82 jeremybenn
#ifndef _BIG_ENDIAN
12047
                 not big endian
12048
                #endif
12049 19 jeremybenn
 
12050
  ;
12051
  return 0;
12052
}
12053
_ACEOF
12054 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12055 19 jeremybenn
  ac_cv_c_bigendian=yes
12056
else
12057 346 jeremybenn
  ac_cv_c_bigendian=no
12058 19 jeremybenn
fi
12059
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12060 82 jeremybenn
fi
12061
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12062
    fi
12063
    if test $ac_cv_c_bigendian = unknown; then
12064
      # Compile a test program.
12065 346 jeremybenn
      if test "$cross_compiling" = yes; then :
12066 82 jeremybenn
  # Try to guess by grepping values from an object file.
12067 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 19 jeremybenn
/* end confdefs.h.  */
12069 82 jeremybenn
short int ascii_mm[] =
12070
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12071
                short int ascii_ii[] =
12072
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12073
                int use_ascii (int i) {
12074
                  return ascii_mm[i] + ascii_ii[i];
12075
                }
12076
                short int ebcdic_ii[] =
12077
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12078
                short int ebcdic_mm[] =
12079
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12080
                int use_ebcdic (int i) {
12081
                  return ebcdic_mm[i] + ebcdic_ii[i];
12082
                }
12083
                extern int foo;
12084
 
12085 19 jeremybenn
int
12086
main ()
12087
{
12088 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
12089 19 jeremybenn
  ;
12090
  return 0;
12091
}
12092
_ACEOF
12093 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12094 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12095
              ac_cv_c_bigendian=yes
12096
            fi
12097
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12098
              if test "$ac_cv_c_bigendian" = unknown; then
12099
                ac_cv_c_bigendian=no
12100
              else
12101
                # finding both strings is unlikely to happen, but who knows?
12102
                ac_cv_c_bigendian=unknown
12103
              fi
12104
            fi
12105 19 jeremybenn
fi
12106
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12107
else
12108 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 19 jeremybenn
/* end confdefs.h.  */
12110
$ac_includes_default
12111
int
12112
main ()
12113
{
12114
 
12115 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
12116
             union
12117
             {
12118
               long int l;
12119
               char c[sizeof (long int)];
12120
             } u;
12121
             u.l = 1;
12122
             return u.c[sizeof (long int) - 1] == 1;
12123 19 jeremybenn
 
12124
  ;
12125
  return 0;
12126
}
12127
_ACEOF
12128 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12129 19 jeremybenn
  ac_cv_c_bigendian=no
12130
else
12131 346 jeremybenn
  ac_cv_c_bigendian=yes
12132 19 jeremybenn
fi
12133 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12134
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12135 19 jeremybenn
fi
12136
 
12137 82 jeremybenn
    fi
12138 19 jeremybenn
fi
12139 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12140 82 jeremybenn
$as_echo "$ac_cv_c_bigendian" >&6; }
12141
 case $ac_cv_c_bigendian in #(
12142
   yes)
12143 346 jeremybenn
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12144 82 jeremybenn
;; #(
12145
   no)
12146
      ;; #(
12147
   universal)
12148 19 jeremybenn
 
12149 346 jeremybenn
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12150 82 jeremybenn
 
12151
     ;; #(
12152
   *)
12153 346 jeremybenn
     as_fn_error "unknown endianness
12154
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12155 82 jeremybenn
 esac
12156
 
12157
 
12158
# The test for strndup, strcasecmp and isblank fails on modern machines. I
12159
# think it's because GCC 4 does not like the way autoconf overrides the built
12160
# in type declaration. So we must check for them by steam.
12161 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strndup" >&5
12162 82 jeremybenn
$as_echo_n "checking for strndup... " >&6; }
12163 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 82 jeremybenn
/* end confdefs.h.  */
12165
#ifdef HAVE_STRING_H
12166
                                  #include 
12167
                                  #else
12168
                                  char *strndup (const char *s,
12169
                                                 size_t      n);
12170
                                  #endif
12171
int
12172
main ()
12173
{
12174
\
12175
                                const char *s = "test";
12176
                                  char       *t;
12177
                                  t = strndup (s, 3);
12178
  ;
12179
  return 0;
12180
}
12181
_ACEOF
12182 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12183 82 jeremybenn
  \
12184
 
12185 346 jeremybenn
$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
12186 82 jeremybenn
 \
12187 346 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12188 82 jeremybenn
$as_echo "yes" >&6; }
12189
else
12190 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 82 jeremybenn
$as_echo "no" >&6; }
12192 19 jeremybenn
fi
12193 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12194
    conftest$ac_exeext conftest.$ac_ext
12195 19 jeremybenn
 
12196 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp" >&5
12197 82 jeremybenn
$as_echo_n "checking for strcasecmp... " >&6; }
12198 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199 82 jeremybenn
/* end confdefs.h.  */
12200
#ifdef HAVE_STRINGS_H
12201
                                  #include 
12202
                                  #else
12203
                                  int strcasecmp (const char *s1,
12204
                                                  const char *s2);
12205
                                  #endif
12206
int
12207
main ()
12208
{
12209
\
12210
                                const char *s = "test";
12211
                                  const char *t = "TEST";
12212
                                  int         res;
12213
                                  res = strcasecmp (s, t);
12214
  ;
12215
  return 0;
12216
}
12217
_ACEOF
12218 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12219 82 jeremybenn
  \
12220
 
12221 346 jeremybenn
$as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
12222 82 jeremybenn
 \
12223 346 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12224 82 jeremybenn
$as_echo "yes" >&6; }
12225
else
12226 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 82 jeremybenn
$as_echo "no" >&6; }
12228
fi
12229 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12230
    conftest$ac_exeext conftest.$ac_ext
12231 82 jeremybenn
 
12232 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
12233 82 jeremybenn
$as_echo_n "checking for isblank... " >&6; }
12234 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 82 jeremybenn
/* end confdefs.h.  */
12236
#ifdef HAVE_CTYPE_H
12237
                                  #include 
12238
                                  #else
12239
                                  int isblank (int  c);
12240
                                  #endif
12241
int
12242
main ()
12243
{
12244
\
12245
                                return isblank ('x');
12246
  ;
12247
  return 0;
12248
}
12249
_ACEOF
12250 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12251 82 jeremybenn
  \
12252 19 jeremybenn
 
12253 346 jeremybenn
$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
12254 82 jeremybenn
 \
12255 346 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12256 82 jeremybenn
$as_echo "yes" >&6; }
12257
else
12258 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 82 jeremybenn
$as_echo "no" >&6; }
12260
fi
12261 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12262
    conftest$ac_exeext conftest.$ac_ext
12263 82 jeremybenn
 
12264 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
12265 346 jeremybenn
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12266
if test "x$ac_cv_type_size_t" = x""yes; then :
12267 19 jeremybenn
 
12268
else
12269
 
12270
cat >>confdefs.h <<_ACEOF
12271
#define size_t unsigned int
12272
_ACEOF
12273
 
12274
fi
12275
 
12276 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12277 82 jeremybenn
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12278 346 jeremybenn
if test "${ac_cv_struct_tm+set}" = set; then :
12279 82 jeremybenn
  $as_echo_n "(cached) " >&6
12280 19 jeremybenn
else
12281 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 19 jeremybenn
/* end confdefs.h.  */
12283
#include 
12284
#include 
12285
 
12286
int
12287
main ()
12288
{
12289
struct tm tm;
12290
                                     int *p = &tm.tm_sec;
12291 82 jeremybenn
                                     return !p;
12292 19 jeremybenn
  ;
12293
  return 0;
12294
}
12295
_ACEOF
12296 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12297 19 jeremybenn
  ac_cv_struct_tm=time.h
12298
else
12299 346 jeremybenn
  ac_cv_struct_tm=sys/time.h
12300 19 jeremybenn
fi
12301
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12302
fi
12303 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12304 82 jeremybenn
$as_echo "$ac_cv_struct_tm" >&6; }
12305 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
12306
 
12307 346 jeremybenn
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12308 19 jeremybenn
 
12309
fi
12310
 
12311
 
12312
# Checks for library functions (for argtable2).
12313
for ac_header in stdlib.h
12314 346 jeremybenn
do :
12315
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12316
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12317 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12318 346 jeremybenn
#define HAVE_STDLIB_H 1
12319 19 jeremybenn
_ACEOF
12320
 
12321
fi
12322
 
12323
done
12324
 
12325 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12326 82 jeremybenn
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12327 346 jeremybenn
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
12328 82 jeremybenn
  $as_echo_n "(cached) " >&6
12329 19 jeremybenn
else
12330 346 jeremybenn
  if test "$cross_compiling" = yes; then :
12331 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
12332
else
12333 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 19 jeremybenn
/* end confdefs.h.  */
12335
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
12336
# include 
12337
#else
12338
char *malloc ();
12339
#endif
12340
 
12341
int
12342
main ()
12343
{
12344
return ! malloc (0);
12345
  ;
12346
  return 0;
12347
}
12348
_ACEOF
12349 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12350 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=yes
12351
else
12352 346 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
12353 19 jeremybenn
fi
12354 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12355
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12356 19 jeremybenn
fi
12357
 
12358
fi
12359 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12360 82 jeremybenn
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12361 346 jeremybenn
if test $ac_cv_func_malloc_0_nonnull = yes; then :
12362 19 jeremybenn
 
12363 346 jeremybenn
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12364 19 jeremybenn
 
12365
else
12366 346 jeremybenn
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12367 19 jeremybenn
 
12368
   case " $LIBOBJS " in
12369
  *" malloc.$ac_objext "* ) ;;
12370
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12371
 ;;
12372
esac
12373
 
12374
 
12375 346 jeremybenn
$as_echo "#define malloc rpl_malloc" >>confdefs.h
12376 19 jeremybenn
 
12377
fi
12378
 
12379
 
12380
for ac_func in strftime
12381 346 jeremybenn
do :
12382
  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12383
if test "x$ac_cv_func_strftime" = x""yes; then :
12384 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12385 346 jeremybenn
#define HAVE_STRFTIME 1
12386 19 jeremybenn
_ACEOF
12387
 
12388
else
12389
  # strftime is in -lintl on SCO UNIX.
12390 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12391 82 jeremybenn
$as_echo_n "checking for strftime in -lintl... " >&6; }
12392 346 jeremybenn
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12393 82 jeremybenn
  $as_echo_n "(cached) " >&6
12394 19 jeremybenn
else
12395
  ac_check_lib_save_LIBS=$LIBS
12396
LIBS="-lintl  $LIBS"
12397 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 19 jeremybenn
/* end confdefs.h.  */
12399
 
12400
/* Override any GCC internal prototype to avoid an error.
12401
   Use char because int might match the return type of a GCC
12402
   builtin and then its argument prototype would still apply.  */
12403
#ifdef __cplusplus
12404
extern "C"
12405
#endif
12406
char strftime ();
12407
int
12408
main ()
12409
{
12410
return strftime ();
12411
  ;
12412
  return 0;
12413
}
12414
_ACEOF
12415 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12416 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
12417
else
12418 346 jeremybenn
  ac_cv_lib_intl_strftime=no
12419 19 jeremybenn
fi
12420 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12421
    conftest$ac_exeext conftest.$ac_ext
12422 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12423
fi
12424 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12425 82 jeremybenn
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12426 346 jeremybenn
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12427
  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12428 19 jeremybenn
 
12429
LIBS="-lintl $LIBS"
12430
fi
12431
 
12432
fi
12433
done
12434
 
12435 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12436 82 jeremybenn
$as_echo_n "checking for working strtod... " >&6; }
12437 346 jeremybenn
if test "${ac_cv_func_strtod+set}" = set; then :
12438 82 jeremybenn
  $as_echo_n "(cached) " >&6
12439 19 jeremybenn
else
12440 346 jeremybenn
  if test "$cross_compiling" = yes; then :
12441 19 jeremybenn
  ac_cv_func_strtod=no
12442
else
12443 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 19 jeremybenn
/* end confdefs.h.  */
12445
 
12446
$ac_includes_default
12447
#ifndef strtod
12448
double strtod ();
12449
#endif
12450
int
12451
main()
12452
{
12453
  {
12454
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
12455
    char *string = " +69";
12456
    char *term;
12457
    double value;
12458
    value = strtod (string, &term);
12459
    if (value != 69 || term != (string + 4))
12460
      return 1;
12461
  }
12462
 
12463
  {
12464
    /* Under Solaris 2.4, strtod returns the wrong value for the
12465
       terminating character under some conditions.  */
12466
    char *string = "NaN";
12467
    char *term;
12468
    strtod (string, &term);
12469
    if (term != string && *(term - 1) == 0)
12470
      return 1;
12471
  }
12472
  return 0;
12473
}
12474
 
12475
_ACEOF
12476 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12477 19 jeremybenn
  ac_cv_func_strtod=yes
12478
else
12479 346 jeremybenn
  ac_cv_func_strtod=no
12480 19 jeremybenn
fi
12481 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12482
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12483 19 jeremybenn
fi
12484
 
12485
fi
12486 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12487 82 jeremybenn
$as_echo "$ac_cv_func_strtod" >&6; }
12488 19 jeremybenn
if test $ac_cv_func_strtod = no; then
12489
  case " $LIBOBJS " in
12490
  *" strtod.$ac_objext "* ) ;;
12491
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12492
 ;;
12493
esac
12494
 
12495 346 jeremybenn
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12496
if test "x$ac_cv_func_pow" = x""yes; then :
12497 19 jeremybenn
 
12498
fi
12499
 
12500
if test $ac_cv_func_pow = no; then
12501 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12502 82 jeremybenn
$as_echo_n "checking for pow in -lm... " >&6; }
12503 346 jeremybenn
if test "${ac_cv_lib_m_pow+set}" = set; then :
12504 82 jeremybenn
  $as_echo_n "(cached) " >&6
12505 19 jeremybenn
else
12506
  ac_check_lib_save_LIBS=$LIBS
12507
LIBS="-lm  $LIBS"
12508 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 19 jeremybenn
/* end confdefs.h.  */
12510
 
12511
/* Override any GCC internal prototype to avoid an error.
12512
   Use char because int might match the return type of a GCC
12513
   builtin and then its argument prototype would still apply.  */
12514
#ifdef __cplusplus
12515
extern "C"
12516
#endif
12517
char pow ();
12518
int
12519
main ()
12520
{
12521
return pow ();
12522
  ;
12523
  return 0;
12524
}
12525
_ACEOF
12526 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12527 19 jeremybenn
  ac_cv_lib_m_pow=yes
12528
else
12529 346 jeremybenn
  ac_cv_lib_m_pow=no
12530 19 jeremybenn
fi
12531 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12532
    conftest$ac_exeext conftest.$ac_ext
12533 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12534
fi
12535 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12536 82 jeremybenn
$as_echo "$ac_cv_lib_m_pow" >&6; }
12537 346 jeremybenn
if test "x$ac_cv_lib_m_pow" = x""yes; then :
12538 19 jeremybenn
  POW_LIB=-lm
12539
else
12540 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12541 82 jeremybenn
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12542 19 jeremybenn
fi
12543
 
12544
fi
12545
 
12546
fi
12547
 
12548
for ac_func in bzero strchr strcspn strrchr strtol
12549 346 jeremybenn
do :
12550
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12551
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12552
eval as_val=\$$as_ac_var
12553
   if test "x$as_val" = x""yes; then :
12554 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12555 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12556 19 jeremybenn
_ACEOF
12557
 
12558
fi
12559
done
12560
 
12561 346 jeremybenn
ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12562
if test "x$ac_cv_func_getopt_long" = x""yes; then :
12563 19 jeremybenn
  SYS_GETOPTLONG=1
12564
else
12565
  SYS_GETOPTLONG=0
12566
fi
12567
 
12568 346 jeremybenn
ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
12569
if test "x$ac_cv_func_regcomp" = x""yes; then :
12570 19 jeremybenn
  SYS_REGEX=1
12571
else
12572
  SYS_REGEX=0
12573
fi
12574
 
12575 346 jeremybenn
ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
12576
if test "x$ac_cv_func_strptime" = x""yes; then :
12577 19 jeremybenn
  SYS_STRPTIME=1
12578
else
12579
  SYS_STRPTIME=0
12580
fi
12581
 
12582
 
12583
# Define automake conditionals (for argtable2)
12584
 if test "$SYS_GETOPTLONG" = "1"; then
12585
  USE_SYS_GETOPTLONG_TRUE=
12586
  USE_SYS_GETOPTLONG_FALSE='#'
12587
else
12588
  USE_SYS_GETOPTLONG_TRUE='#'
12589
  USE_SYS_GETOPTLONG_FALSE=
12590
fi
12591
 
12592
 if test "$SYS_REGEX" = "1"; then
12593
  USE_ARGREX_TRUE=
12594
  USE_ARGREX_FALSE='#'
12595
else
12596
  USE_ARGREX_TRUE='#'
12597
  USE_ARGREX_FALSE=
12598
fi
12599
 
12600
 if test "$SYS_STRPTIME" = "1"; then
12601
  USE_ARGDATE_TRUE=
12602
  USE_ARGDATE_FALSE='#'
12603
else
12604
  USE_ARGDATE_TRUE='#'
12605
  USE_ARGDATE_FALSE=
12606
fi
12607
 
12608
 
12609
# check for "long long" (added by Erez)
12610 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 19 jeremybenn
/* end confdefs.h.  */
12612
 
12613
int
12614
main ()
12615
{
12616
long long ll; unsigned long long ull;
12617
  ;
12618
  return 0;
12619
}
12620
_ACEOF
12621 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12622 19 jeremybenn
 
12623 346 jeremybenn
$as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
12624 19 jeremybenn
 
12625
fi
12626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12627
 
12628
# check for {u,}int{8,16,32}_t in inttypes.h.
12629 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include 
12630
"
12631
if test "x$ac_cv_type_uint8_t" = x""yes; then :
12632 82 jeremybenn
 
12633 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12634
#define HAVE_UINT8_T 1
12635
_ACEOF
12636
 
12637
 
12638
fi
12639 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include 
12640
"
12641
if test "x$ac_cv_type_uint16_t" = x""yes; then :
12642 82 jeremybenn
 
12643 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12644
#define HAVE_UINT16_T 1
12645
_ACEOF
12646
 
12647
 
12648
fi
12649 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
12650
"
12651
if test "x$ac_cv_type_uint32_t" = x""yes; then :
12652 82 jeremybenn
 
12653 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12654
#define HAVE_UINT32_T 1
12655
_ACEOF
12656
 
12657
 
12658
fi
12659
 
12660 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include 
12661
"
12662
if test "x$ac_cv_type_int8_t" = x""yes; then :
12663 82 jeremybenn
 
12664 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12665
#define HAVE_INT8_T 1
12666
_ACEOF
12667
 
12668
 
12669
fi
12670 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include 
12671
"
12672
if test "x$ac_cv_type_int16_t" = x""yes; then :
12673 82 jeremybenn
 
12674 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12675
#define HAVE_INT16_T 1
12676
_ACEOF
12677
 
12678
 
12679
fi
12680 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include 
12681
"
12682
if test "x$ac_cv_type_int32_t" = x""yes; then :
12683 19 jeremybenn
 
12684 82 jeremybenn
cat >>confdefs.h <<_ACEOF
12685
#define HAVE_INT32_T 1
12686
_ACEOF
12687
 
12688
 
12689
fi
12690
 
12691
 
12692 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
12693
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12694
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12695
# This bug is HP SR number 8606223364.
12696 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12697 82 jeremybenn
$as_echo_n "checking size of char... " >&6; }
12698 346 jeremybenn
if test "${ac_cv_sizeof_char+set}" = set; then :
12699 82 jeremybenn
  $as_echo_n "(cached) " >&6
12700 19 jeremybenn
else
12701 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
12702 19 jeremybenn
 
12703
else
12704 346 jeremybenn
  if test "$ac_cv_type_char" = yes; then
12705
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12706 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12707 346 jeremybenn
{ as_fn_set_status 77
12708
as_fn_error "cannot compute sizeof (char)
12709
See \`config.log' for more details." "$LINENO" 5; }; }
12710 19 jeremybenn
   else
12711
     ac_cv_sizeof_char=0
12712
   fi
12713
fi
12714 346 jeremybenn
 
12715 19 jeremybenn
fi
12716 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12717 82 jeremybenn
$as_echo "$ac_cv_sizeof_char" >&6; }
12718 19 jeremybenn
 
12719
 
12720
 
12721
cat >>confdefs.h <<_ACEOF
12722
#define SIZEOF_CHAR $ac_cv_sizeof_char
12723
_ACEOF
12724
 
12725
 
12726
# The cast to long int works around a bug in the HP C Compiler
12727
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12728
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12729
# This bug is HP SR number 8606223364.
12730 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12731 82 jeremybenn
$as_echo_n "checking size of short... " >&6; }
12732 346 jeremybenn
if test "${ac_cv_sizeof_short+set}" = set; then :
12733 82 jeremybenn
  $as_echo_n "(cached) " >&6
12734 19 jeremybenn
else
12735 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12736 19 jeremybenn
 
12737
else
12738 346 jeremybenn
  if test "$ac_cv_type_short" = yes; then
12739
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12740 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12741 346 jeremybenn
{ as_fn_set_status 77
12742
as_fn_error "cannot compute sizeof (short)
12743
See \`config.log' for more details." "$LINENO" 5; }; }
12744 19 jeremybenn
   else
12745
     ac_cv_sizeof_short=0
12746
   fi
12747
fi
12748 346 jeremybenn
 
12749 19 jeremybenn
fi
12750 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12751 82 jeremybenn
$as_echo "$ac_cv_sizeof_short" >&6; }
12752 19 jeremybenn
 
12753
 
12754
 
12755
cat >>confdefs.h <<_ACEOF
12756
#define SIZEOF_SHORT $ac_cv_sizeof_short
12757
_ACEOF
12758
 
12759
 
12760
# The cast to long int works around a bug in the HP C Compiler
12761
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12762
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12763
# This bug is HP SR number 8606223364.
12764 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12765 82 jeremybenn
$as_echo_n "checking size of int... " >&6; }
12766 346 jeremybenn
if test "${ac_cv_sizeof_int+set}" = set; then :
12767 82 jeremybenn
  $as_echo_n "(cached) " >&6
12768 19 jeremybenn
else
12769 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12770 19 jeremybenn
 
12771
else
12772 346 jeremybenn
  if test "$ac_cv_type_int" = yes; then
12773
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12774 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12775 346 jeremybenn
{ as_fn_set_status 77
12776
as_fn_error "cannot compute sizeof (int)
12777
See \`config.log' for more details." "$LINENO" 5; }; }
12778 19 jeremybenn
   else
12779
     ac_cv_sizeof_int=0
12780
   fi
12781
fi
12782 346 jeremybenn
 
12783 19 jeremybenn
fi
12784 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12785 82 jeremybenn
$as_echo "$ac_cv_sizeof_int" >&6; }
12786 19 jeremybenn
 
12787
 
12788
 
12789
cat >>confdefs.h <<_ACEOF
12790
#define SIZEOF_INT $ac_cv_sizeof_int
12791
_ACEOF
12792
 
12793
 
12794
# The cast to long int works around a bug in the HP C Compiler
12795
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12796
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12797
# This bug is HP SR number 8606223364.
12798 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12799 82 jeremybenn
$as_echo_n "checking size of long... " >&6; }
12800 346 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then :
12801 82 jeremybenn
  $as_echo_n "(cached) " >&6
12802 19 jeremybenn
else
12803 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12804 19 jeremybenn
 
12805
else
12806 346 jeremybenn
  if test "$ac_cv_type_long" = yes; then
12807
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12808 233 julius
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12809 346 jeremybenn
{ as_fn_set_status 77
12810
as_fn_error "cannot compute sizeof (long)
12811
See \`config.log' for more details." "$LINENO" 5; }; }
12812 233 julius
   else
12813
     ac_cv_sizeof_long=0
12814
   fi
12815 230 jeremybenn
fi
12816 346 jeremybenn
 
12817 230 jeremybenn
fi
12818 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12819 233 julius
$as_echo "$ac_cv_sizeof_long" >&6; }
12820 230 jeremybenn
 
12821
 
12822
 
12823 233 julius
cat >>confdefs.h <<_ACEOF
12824
#define SIZEOF_LONG $ac_cv_sizeof_long
12825 230 jeremybenn
_ACEOF
12826
 
12827
 
12828 233 julius
# The cast to long int works around a bug in the HP C Compiler
12829
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12830
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12831
# This bug is HP SR number 8606223364.
12832 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12833 233 julius
$as_echo_n "checking size of long long... " >&6; }
12834 346 jeremybenn
if test "${ac_cv_sizeof_long_long+set}" = set; then :
12835 233 julius
  $as_echo_n "(cached) " >&6
12836 230 jeremybenn
else
12837 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12838 230 jeremybenn
 
12839
else
12840 346 jeremybenn
  if test "$ac_cv_type_long_long" = yes; then
12841
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12842 230 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12843 346 jeremybenn
{ as_fn_set_status 77
12844
as_fn_error "cannot compute sizeof (long long)
12845
See \`config.log' for more details." "$LINENO" 5; }; }
12846 230 jeremybenn
   else
12847 233 julius
     ac_cv_sizeof_long_long=0
12848 19 jeremybenn
   fi
12849
fi
12850 346 jeremybenn
 
12851 19 jeremybenn
fi
12852 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12853 233 julius
$as_echo "$ac_cv_sizeof_long_long" >&6; }
12854 19 jeremybenn
 
12855
 
12856
 
12857
cat >>confdefs.h <<_ACEOF
12858 233 julius
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12859 19 jeremybenn
_ACEOF
12860
 
12861
 
12862
 
12863
#Check for compare function type for qsort (needed by some Linuxes)
12864 346 jeremybenn
ac_fn_c_check_type "$LINENO" "__compar_fn_t" "ac_cv_type___compar_fn_t" "$ac_includes_default"
12865
if test "x$ac_cv_type___compar_fn_t" = x""yes; then :
12866 19 jeremybenn
 
12867
cat >>confdefs.h <<_ACEOF
12868
#define HAVE___COMPAR_FN_T 1
12869
_ACEOF
12870
 
12871
 
12872
fi
12873
 
12874
 
12875
# check for GNU readline
12876 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
12877 82 jeremybenn
$as_echo_n "checking for add_history in -lreadline... " >&6; }
12878 346 jeremybenn
if test "${ac_cv_lib_readline_add_history+set}" = set; then :
12879 82 jeremybenn
  $as_echo_n "(cached) " >&6
12880 19 jeremybenn
else
12881
  ac_check_lib_save_LIBS=$LIBS
12882
LIBS="-lreadline  $LIBS"
12883 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884 19 jeremybenn
/* end confdefs.h.  */
12885
 
12886
/* Override any GCC internal prototype to avoid an error.
12887
   Use char because int might match the return type of a GCC
12888
   builtin and then its argument prototype would still apply.  */
12889
#ifdef __cplusplus
12890
extern "C"
12891
#endif
12892
char add_history ();
12893
int
12894
main ()
12895
{
12896
return add_history ();
12897
  ;
12898
  return 0;
12899
}
12900
_ACEOF
12901 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12902 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
12903
else
12904 346 jeremybenn
  ac_cv_lib_readline_add_history=no
12905 19 jeremybenn
fi
12906 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12907
    conftest$ac_exeext conftest.$ac_ext
12908 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12909
fi
12910 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
12911 82 jeremybenn
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
12912 346 jeremybenn
if test "x$ac_cv_lib_readline_add_history" = x""yes; then :
12913 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12914
#define HAVE_LIBREADLINE 1
12915
_ACEOF
12916
 
12917
  LIBS="-lreadline $LIBS"
12918
 
12919
fi
12920
 
12921
 
12922
# yuck
12923
case "$host_os" in
12924
aix*)   prefer_curses=yes ;;
12925
esac
12926
 
12927
case "$host_cpu" in
12928
*cray*) LOCAL_CFLAGS=-DCRAY ;;
12929
esac
12930
 
12931
case "$host_os" in
12932
isc*)   LOCAL_CFLAGS=-Disc386 ;;
12933
esac
12934
 
12935
case "$host_os" in
12936
solaris*) LIBS="-lsocket -lnsl" ;;
12937
esac
12938
 
12939
# define options
12940 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5
12941 82 jeremybenn
$as_echo_n "checking whether to enable profiling... " >&6; }
12942 19 jeremybenn
# Check whether --enable-profiling was given.
12943 346 jeremybenn
if test "${enable_profiling+set}" = set; then :
12944 19 jeremybenn
  enableval=$enable_profiling;
12945
    case "$enableval" in
12946
        yes) profile="-pg" ;;
12947
    esac
12948
 
12949
fi
12950
 
12951 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_profiling-no}" >&5
12952 82 jeremybenn
$as_echo "${enable_profiling-no}" >&6; }
12953 19 jeremybenn
 
12954
execution="1"
12955
 
12956
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12957 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which execution style to use" >&5
12958 82 jeremybenn
$as_echo_n "checking which execution style to use... " >&6; }
12959 19 jeremybenn
# Check whether --enable-execution was given.
12960 346 jeremybenn
if test "${enable_execution+set}" = set; then :
12961 19 jeremybenn
  enableval=$enable_execution;
12962
    case "$enableval" in
12963
    simple)
12964
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
12965
      execution="0"
12966 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple" >&5
12967 82 jeremybenn
$as_echo "simple" >&6; }
12968 19 jeremybenn
      ;;
12969
    complex)
12970
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12971
      execution="1"
12972 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
12973 82 jeremybenn
$as_echo "complex" >&6; }
12974 19 jeremybenn
      ;;
12975
    dynamic)
12976
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
12977
      execution="2"
12978 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
12979 82 jeremybenn
$as_echo "dynamic" >&6; }
12980 19 jeremybenn
      ;;
12981
    *)
12982 346 jeremybenn
      as_fn_error "\"execution must one of simple/complex/dynamic\"" "$LINENO" 5
12983 19 jeremybenn
      ;;
12984
    esac
12985
 
12986
else
12987
 
12988 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
12989 82 jeremybenn
$as_echo "complex" >&6; }
12990 19 jeremybenn
 
12991
fi
12992
 
12993
 
12994
eth_phy="0"
12995 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ethernet phy emulation" >&5
12996 82 jeremybenn
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
12997 19 jeremybenn
# Check whether --enable-ethphy was given.
12998 346 jeremybenn
if test "${enable_ethphy+set}" = set; then :
12999 19 jeremybenn
  enableval=$enable_ethphy;
13000
    case "$enableval" in
13001
  no)  eth_phy="0" ;;
13002
        yes) eth_phy="1" ;;
13003
    esac
13004
 
13005
fi
13006
 
13007 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_eth_phy-no}" >&5
13008 82 jeremybenn
$as_echo "${enable_eth_phy-no}" >&6; }
13009 19 jeremybenn
 
13010 127 jeremybenn
unsigned_xori="0"
13011 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether l.xori takes an unsigned immediate operand" >&5
13012 127 jeremybenn
$as_echo_n "checking whether l.xori takes an unsigned immediate operand... " >&6; }
13013
# Check whether --enable-unsigned-xori was given.
13014 346 jeremybenn
if test "${enable_unsigned_xori+set}" = set; then :
13015 127 jeremybenn
  enableval=$enable_unsigned_xori;
13016
    case "$enableval" in
13017
  no)  unsigned_xori="0" ;;
13018
        yes) unsigned_xori="1" ;;
13019
    esac
13020 19 jeremybenn
 
13021 127 jeremybenn
fi
13022
 
13023 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_unsigned_xori-no}" >&5
13024 127 jeremybenn
$as_echo "${enable_unsigned_xori-no}" >&6; }
13025
 
13026 19 jeremybenn
raw_range_stats="0"
13027 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use raw range stats" >&5
13028 82 jeremybenn
$as_echo_n "checking whether to use raw range stats... " >&6; }
13029 19 jeremybenn
# Check whether --enable-range_stats was given.
13030 346 jeremybenn
if test "${enable_range_stats+set}" = set; then :
13031 19 jeremybenn
  enableval=$enable_range_stats;
13032
    case "$enableval" in
13033
  no)  raw_range_stats="0" ;;
13034
        yes) raw_range_stats="1" simple_execution="1" ;;
13035
    esac
13036
 
13037
fi
13038
 
13039 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_range_stats-no}" >&5
13040 82 jeremybenn
$as_echo "${enable_range_stats-no}" >&6; }
13041 19 jeremybenn
 
13042
# check for --enable-debug argument (for argtable2)
13043
# Check whether --enable-debug was given.
13044 346 jeremybenn
if test "${enable_debug+set}" = set; then :
13045 19 jeremybenn
  enableval=$enable_debug;
13046
       case $enableval in
13047
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
13048
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
13049
          *)   echo "illegal argument to --enable-debug" & exit 1;;
13050
       esac
13051
 
13052
else
13053
  DEBUGFLAGS="-DNDEBUG"
13054
 
13055
fi
13056
 
13057
 
13058
 
13059
 
13060
cat >>confdefs.h <<_ACEOF
13061
#define RAW_RANGE_STATS $raw_range_stats
13062
_ACEOF
13063
 
13064
 
13065
cat >>confdefs.h <<_ACEOF
13066
#define HAVE_ETH_PHY $eth_phy
13067
_ACEOF
13068
 
13069
 
13070
cat >>confdefs.h <<_ACEOF
13071 127 jeremybenn
#define HAVE_UNSIGNED_XORI $unsigned_xori
13072
_ACEOF
13073
 
13074
 
13075
cat >>confdefs.h <<_ACEOF
13076 19 jeremybenn
#define SIMPLE_EXECUTION $execution == 0
13077
_ACEOF
13078
 
13079
 
13080
cat >>confdefs.h <<_ACEOF
13081
#define COMPLEX_EXECUTION $execution == 1
13082
_ACEOF
13083
 
13084
 
13085
cat >>confdefs.h <<_ACEOF
13086
#define DYNAMIC_EXECUTION $execution == 2
13087
_ACEOF
13088
 
13089
 if test x$execution = x1; then
13090
  GENERATE_NEEDED_TRUE=
13091
  GENERATE_NEEDED_FALSE='#'
13092
else
13093
  GENERATE_NEEDED_TRUE='#'
13094
  GENERATE_NEEDED_FALSE=
13095
fi
13096
 
13097
 if test x$execution = x2; then
13098
  DYNAMIC_EXECUTION_TRUE=
13099
  DYNAMIC_EXECUTION_FALSE='#'
13100
else
13101
  DYNAMIC_EXECUTION_TRUE='#'
13102
  DYNAMIC_EXECUTION_FALSE=
13103
fi
13104
 
13105
 
13106
 
13107
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
13108
 
13109 90 jeremybenn
# Check for a DejaGNU global config file. If not set, then set it
13110
# ourselves. This stops runtest complaining
13111 387 jeremybenn
DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
13112 90 jeremybenn
 
13113 96 jeremybenn
 
13114
 
13115
# The following line will override the default definition of the srcdir, and
13116
# ensure that short names are used for the test names.
13117
RUNTESTDEFAULTFLAGS="--tool \$\$tool"
13118
 
13119
 
13120 19 jeremybenn
BUILD_DIR=`pwd`
13121
 
13122
 
13123
 
13124
 
13125
 
13126
 
13127
 
13128
 
13129
 
13130
 
13131
 
13132
 
13133
 
13134
 
13135
 
13136
 
13137
 
13138
 
13139 346 jeremybenn
$as_echo "#define HAVE_EXECUTION 1" >>confdefs.h
13140 19 jeremybenn
 
13141
 
13142
# yuck
13143
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
13144
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
13145
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
13146
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
13147
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
13148 233 julius
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2 \
13149
-I\${top_srcdir}/softfloat"
13150 19 jeremybenn
 
13151
 
13152 233 julius
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile softfloat/Makefile debug/Makefile doc/Makefile mmu/Makefile peripheral/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile port/Makefile support/Makefile testsuite/Makefile testsuite/config/Makefile testsuite/lib/Makefile testsuite/libsim.tests/Makefile testsuite/or1ksim.tests/Makefile testsuite/test-code/Makefile testsuite/test-code/lib-iftest/Makefile testsuite/test-code/lib-inttest/Makefile testsuite/test-code/lib-jtag/Makefile testsuite/test-code/lib-upcalls/Makefile tick/Makefile vapi/Makefile"
13153 19 jeremybenn
 
13154
 
13155
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
13156
case "$CPU_ARCH" in
13157
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
13158
;;
13159
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
13160
;;
13161
esac
13162
 
13163 82 jeremybenn
# Generate the output
13164
 
13165
 
13166 19 jeremybenn
cat >confcache <<\_ACEOF
13167
# This file is a shell script that caches the results of configure
13168
# tests run on this system so they can be shared between configure
13169
# scripts and configure runs, see configure's option --config-cache.
13170
# It is not useful on other systems.  If it contains results you don't
13171
# want to keep, you may remove or edit it.
13172
#
13173
# config.status only pays attention to the cache file if you give it
13174
# the --recheck option to rerun configure.
13175
#
13176
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13177
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13178
# following values.
13179
 
13180
_ACEOF
13181
 
13182
# The following way of writing the cache mishandles newlines in values,
13183
# but we know of no workaround that is simple, portable, and efficient.
13184
# So, we kill variables containing newlines.
13185
# Ultrix sh set writes to stderr and can't be redirected directly,
13186
# and sets the high bit in the cache file unless we assign to the vars.
13187
(
13188
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13189
    eval ac_val=\$$ac_var
13190
    case $ac_val in #(
13191
    *${as_nl}*)
13192
      case $ac_var in #(
13193 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13194 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13195 19 jeremybenn
      esac
13196
      case $ac_var in #(
13197
      _ | IFS | as_nl) ;; #(
13198 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13199 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
13200 19 jeremybenn
      esac ;;
13201
    esac
13202
  done
13203
 
13204
  (set) 2>&1 |
13205
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13206
    *${as_nl}ac_space=\ *)
13207 346 jeremybenn
      # `set' does not quote correctly, so add quotes: double-quote
13208
      # substitution turns \\\\ into \\, and sed turns \\ into \.
13209 19 jeremybenn
      sed -n \
13210
        "s/'/'\\\\''/g;
13211
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13212
      ;; #(
13213
    *)
13214
      # `set' quotes correctly as required by POSIX, so do not add quotes.
13215
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13216
      ;;
13217
    esac |
13218
    sort
13219
) |
13220
  sed '
13221
     /^ac_cv_env_/b end
13222
     t clear
13223
     :clear
13224
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13225
     t end
13226
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13227
     :end' >>confcache
13228
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13229
  if test -w "$cache_file"; then
13230
    test "x$cache_file" != "x/dev/null" &&
13231 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13232 82 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
13233 19 jeremybenn
    cat confcache >$cache_file
13234
  else
13235 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13236 82 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13237 19 jeremybenn
  fi
13238
fi
13239
rm -f confcache
13240
 
13241
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13242
# Let make expand exec_prefix.
13243
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13244
 
13245
DEFS=-DHAVE_CONFIG_H
13246
 
13247
ac_libobjs=
13248
ac_ltlibobjs=
13249
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13250
  # 1. Remove the extension, and $U if already installed.
13251
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13252 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13253 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13254
  #    will be set to the directory where LIBOBJS objects are built.
13255 346 jeremybenn
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13256
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13257 19 jeremybenn
done
13258
LIBOBJS=$ac_libobjs
13259
 
13260
LTLIBOBJS=$ac_ltlibobjs
13261
 
13262
 
13263
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13264 346 jeremybenn
  as_fn_error "conditional \"AMDEP\" was never defined.
13265
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13266 19 jeremybenn
fi
13267
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13268 346 jeremybenn
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
13269
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13270 19 jeremybenn
fi
13271 82 jeremybenn
 if test -n "$EXEEXT"; then
13272
  am__EXEEXT_TRUE=
13273
  am__EXEEXT_FALSE='#'
13274
else
13275
  am__EXEEXT_TRUE='#'
13276
  am__EXEEXT_FALSE=
13277
fi
13278
 
13279
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13280 346 jeremybenn
  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
13281
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13282 19 jeremybenn
fi
13283 82 jeremybenn
 
13284 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
13285 346 jeremybenn
  as_fn_error "conditional \"USE_SYS_GETOPTLONG\" was never defined.
13286
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13287 19 jeremybenn
fi
13288
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
13289 346 jeremybenn
  as_fn_error "conditional \"USE_ARGREX\" was never defined.
13290
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13291 19 jeremybenn
fi
13292
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
13293 346 jeremybenn
  as_fn_error "conditional \"USE_ARGDATE\" was never defined.
13294
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13295 19 jeremybenn
fi
13296
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
13297 346 jeremybenn
  as_fn_error "conditional \"GENERATE_NEEDED\" was never defined.
13298
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13299 19 jeremybenn
fi
13300
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
13301 346 jeremybenn
  as_fn_error "conditional \"DYNAMIC_EXECUTION\" was never defined.
13302
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13303 19 jeremybenn
fi
13304
 
13305
: ${CONFIG_STATUS=./config.status}
13306 82 jeremybenn
ac_write_fail=0
13307 19 jeremybenn
ac_clean_files_save=$ac_clean_files
13308
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13309 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13310 82 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13311 346 jeremybenn
as_write_fail=0
13312
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13313 19 jeremybenn
#! $SHELL
13314
# Generated by $as_me.
13315
# Run this file to recreate the current configuration.
13316
# Compiler output produced by configure, useful for debugging
13317
# configure, is in config.log if it exists.
13318
 
13319
debug=false
13320
ac_cs_recheck=false
13321
ac_cs_silent=false
13322 346 jeremybenn
 
13323 19 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
13324 346 jeremybenn
export SHELL
13325
_ASEOF
13326
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13327
## -------------------- ##
13328
## M4sh Initialization. ##
13329
## -------------------- ##
13330 19 jeremybenn
 
13331
# Be more Bourne compatible
13332
DUALCASE=1; export DUALCASE # for MKS sh
13333 346 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13334 19 jeremybenn
  emulate sh
13335
  NULLCMD=:
13336 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13337 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
13338
  alias -g '${1+"$@"}'='"$@"'
13339
  setopt NO_GLOB_SUBST
13340
else
13341 346 jeremybenn
  case `(set -o) 2>/dev/null` in #(
13342
  *posix*) :
13343
    set -o posix ;; #(
13344
  *) :
13345
     ;;
13346 19 jeremybenn
esac
13347
fi
13348
 
13349
 
13350 82 jeremybenn
as_nl='
13351
'
13352
export as_nl
13353
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13354
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13355
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13356
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13357 346 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
13358
# but without wasting forks for bash or zsh.
13359
if test -z "$BASH_VERSION$ZSH_VERSION" \
13360
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13361
  as_echo='print -r --'
13362
  as_echo_n='print -rn --'
13363
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13364 82 jeremybenn
  as_echo='printf %s\n'
13365
  as_echo_n='printf %s'
13366
else
13367
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13368
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13369
    as_echo_n='/usr/ucb/echo -n'
13370 19 jeremybenn
  else
13371 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13372
    as_echo_n_body='eval
13373
      arg=$1;
13374 346 jeremybenn
      case $arg in #(
13375 82 jeremybenn
      *"$as_nl"*)
13376
        expr "X$arg" : "X\\(.*\\)$as_nl";
13377
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13378
      esac;
13379
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13380
    '
13381
    export as_echo_n_body
13382
    as_echo_n='sh -c $as_echo_n_body as_echo'
13383 19 jeremybenn
  fi
13384 82 jeremybenn
  export as_echo_body
13385
  as_echo='sh -c $as_echo_body as_echo'
13386 19 jeremybenn
fi
13387
 
13388 82 jeremybenn
# The user is always right.
13389
if test "${PATH_SEPARATOR+set}" != set; then
13390
  PATH_SEPARATOR=:
13391
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13392
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13393
      PATH_SEPARATOR=';'
13394
  }
13395
fi
13396
 
13397 19 jeremybenn
 
13398
# IFS
13399
# We need space, tab and new line, in precisely that order.  Quoting is
13400
# there to prevent editors from complaining about space-tab.
13401
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13402
# splitting by setting IFS to empty value.)
13403
IFS=" ""        $as_nl"
13404
 
13405
# Find who we are.  Look in the path if we contain no directory separator.
13406 346 jeremybenn
case $0 in #((
13407 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
13408
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409
for as_dir in $PATH
13410
do
13411
  IFS=$as_save_IFS
13412
  test -z "$as_dir" && as_dir=.
13413 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13414
  done
13415 19 jeremybenn
IFS=$as_save_IFS
13416
 
13417
     ;;
13418
esac
13419
# We did not find ourselves, most probably we were run as `sh COMMAND'
13420
# in which case we are not to be found in the path.
13421
if test "x$as_myself" = x; then
13422
  as_myself=$0
13423
fi
13424
if test ! -f "$as_myself"; then
13425 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13426 346 jeremybenn
  exit 1
13427 19 jeremybenn
fi
13428
 
13429 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
13430
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13431
# suppresses any "Segmentation fault" message there.  '((' could
13432
# trigger a bug in pdksh 5.2.14.
13433
for as_var in BASH_ENV ENV MAIL MAILPATH
13434
do eval test x\${$as_var+set} = xset \
13435
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13436 19 jeremybenn
done
13437
PS1='$ '
13438
PS2='> '
13439
PS4='+ '
13440
 
13441
# NLS nuisances.
13442 82 jeremybenn
LC_ALL=C
13443
export LC_ALL
13444
LANGUAGE=C
13445
export LANGUAGE
13446 19 jeremybenn
 
13447 346 jeremybenn
# CDPATH.
13448
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13449
 
13450
 
13451
# as_fn_error ERROR [LINENO LOG_FD]
13452
# ---------------------------------
13453
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13454
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13455
# script with status $?, using 1 if that was 0.
13456
as_fn_error ()
13457
{
13458
  as_status=$?; test $as_status -eq 0 && as_status=1
13459
  if test "$3"; then
13460
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13461
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13462
  fi
13463
  $as_echo "$as_me: error: $1" >&2
13464
  as_fn_exit $as_status
13465
} # as_fn_error
13466
 
13467
 
13468
# as_fn_set_status STATUS
13469
# -----------------------
13470
# Set $? to STATUS, without forking.
13471
as_fn_set_status ()
13472
{
13473
  return $1
13474
} # as_fn_set_status
13475
 
13476
# as_fn_exit STATUS
13477
# -----------------
13478
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13479
as_fn_exit ()
13480
{
13481
  set +e
13482
  as_fn_set_status $1
13483
  exit $1
13484
} # as_fn_exit
13485
 
13486
# as_fn_unset VAR
13487
# ---------------
13488
# Portably unset VAR.
13489
as_fn_unset ()
13490
{
13491
  { eval $1=; unset $1;}
13492
}
13493
as_unset=as_fn_unset
13494
# as_fn_append VAR VALUE
13495
# ----------------------
13496
# Append the text in VALUE to the end of the definition contained in VAR. Take
13497
# advantage of any shell optimizations that allow amortized linear growth over
13498
# repeated appends, instead of the typical quadratic growth present in naive
13499
# implementations.
13500
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13501
  eval 'as_fn_append ()
13502
  {
13503
    eval $1+=\$2
13504
  }'
13505
else
13506
  as_fn_append ()
13507
  {
13508
    eval $1=\$$1\$2
13509
  }
13510
fi # as_fn_append
13511
 
13512
# as_fn_arith ARG...
13513
# ------------------
13514
# Perform arithmetic evaluation on the ARGs, and store the result in the
13515
# global $as_val. Take advantage of shells that can avoid forks. The arguments
13516
# must be portable across $(()) and expr.
13517
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13518
  eval 'as_fn_arith ()
13519
  {
13520
    as_val=$(( $* ))
13521
  }'
13522
else
13523
  as_fn_arith ()
13524
  {
13525
    as_val=`expr "$@" || test $? -eq 1`
13526
  }
13527
fi # as_fn_arith
13528
 
13529
 
13530 19 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
13531
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13532
  as_expr=expr
13533
else
13534
  as_expr=false
13535
fi
13536
 
13537
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13538
  as_basename=basename
13539
else
13540
  as_basename=false
13541
fi
13542
 
13543 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13544
  as_dirname=dirname
13545
else
13546
  as_dirname=false
13547
fi
13548 19 jeremybenn
 
13549
as_me=`$as_basename -- "$0" ||
13550
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13551
         X"$0" : 'X\(//\)$' \| \
13552
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13553 82 jeremybenn
$as_echo X/"$0" |
13554 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13555
            s//\1/
13556
            q
13557
          }
13558
          /^X\/\(\/\/\)$/{
13559
            s//\1/
13560
            q
13561
          }
13562
          /^X\/\(\/\).*/{
13563
            s//\1/
13564
            q
13565
          }
13566
          s/.*/./; q'`
13567
 
13568 346 jeremybenn
# Avoid depending upon Character Ranges.
13569
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13570
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13571
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13572
as_cr_digits='0123456789'
13573
as_cr_alnum=$as_cr_Letters$as_cr_digits
13574 19 jeremybenn
 
13575
ECHO_C= ECHO_N= ECHO_T=
13576 346 jeremybenn
case `echo -n x` in #(((((
13577 19 jeremybenn
-n*)
13578 346 jeremybenn
  case `echo 'xy\c'` in
13579 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13580 346 jeremybenn
  xy)  ECHO_C='\c';;
13581
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13582
       ECHO_T=' ';;
13583 19 jeremybenn
  esac;;
13584
*)
13585
  ECHO_N='-n';;
13586
esac
13587
 
13588
rm -f conf$$ conf$$.exe conf$$.file
13589
if test -d conf$$.dir; then
13590
  rm -f conf$$.dir/conf$$.file
13591
else
13592
  rm -f conf$$.dir
13593 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
13594 19 jeremybenn
fi
13595 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
13596
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13597
    as_ln_s='ln -s'
13598
    # ... but there are two gotchas:
13599
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13600
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13601
    # In both cases, we have to default to `cp -p'.
13602
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13603
      as_ln_s='cp -p'
13604
  elif ln conf$$.file conf$$ 2>/dev/null; then
13605
    as_ln_s=ln
13606
  else
13607 19 jeremybenn
    as_ln_s='cp -p'
13608 82 jeremybenn
  fi
13609 19 jeremybenn
else
13610
  as_ln_s='cp -p'
13611
fi
13612
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13613
rmdir conf$$.dir 2>/dev/null
13614
 
13615 346 jeremybenn
 
13616
# as_fn_mkdir_p
13617
# -------------
13618
# Create "$as_dir" as a directory, including parents if necessary.
13619
as_fn_mkdir_p ()
13620
{
13621
 
13622
  case $as_dir in #(
13623
  -*) as_dir=./$as_dir;;
13624
  esac
13625
  test -d "$as_dir" || eval $as_mkdir_p || {
13626
    as_dirs=
13627
    while :; do
13628
      case $as_dir in #(
13629
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13630
      *) as_qdir=$as_dir;;
13631
      esac
13632
      as_dirs="'$as_qdir' $as_dirs"
13633
      as_dir=`$as_dirname -- "$as_dir" ||
13634
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13635
         X"$as_dir" : 'X\(//\)[^/]' \| \
13636
         X"$as_dir" : 'X\(//\)$' \| \
13637
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13638
$as_echo X"$as_dir" |
13639
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13640
            s//\1/
13641
            q
13642
          }
13643
          /^X\(\/\/\)[^/].*/{
13644
            s//\1/
13645
            q
13646
          }
13647
          /^X\(\/\/\)$/{
13648
            s//\1/
13649
            q
13650
          }
13651
          /^X\(\/\).*/{
13652
            s//\1/
13653
            q
13654
          }
13655
          s/.*/./; q'`
13656
      test -d "$as_dir" && break
13657
    done
13658
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13659
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13660
 
13661
 
13662
} # as_fn_mkdir_p
13663 19 jeremybenn
if mkdir -p . 2>/dev/null; then
13664 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
13665 19 jeremybenn
else
13666
  test -d ./-p && rmdir ./-p
13667
  as_mkdir_p=false
13668
fi
13669
 
13670
if test -x / >/dev/null 2>&1; then
13671
  as_test_x='test -x'
13672
else
13673
  if ls -dL / >/dev/null 2>&1; then
13674
    as_ls_L_option=L
13675
  else
13676
    as_ls_L_option=
13677
  fi
13678
  as_test_x='
13679
    eval sh -c '\''
13680
      if test -d "$1"; then
13681 82 jeremybenn
        test -d "$1/.";
13682 19 jeremybenn
      else
13683 346 jeremybenn
        case $1 in #(
13684 82 jeremybenn
        -*)set "./$1";;
13685 19 jeremybenn
        esac;
13686 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13687 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
13688
    '\'' sh
13689
  '
13690
fi
13691
as_executable_p=$as_test_x
13692
 
13693
# Sed expression to map a string onto a valid CPP name.
13694
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13695
 
13696
# Sed expression to map a string onto a valid variable name.
13697
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13698
 
13699
 
13700
exec 6>&1
13701 346 jeremybenn
## ----------------------------------- ##
13702
## Main body of $CONFIG_STATUS script. ##
13703
## ----------------------------------- ##
13704
_ASEOF
13705
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13706 19 jeremybenn
 
13707 346 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13708
# Save the log message, to keep $0 and so on meaningful, and to
13709 19 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
13710
# values after options handling.
13711
ac_log="
13712 532 jeremybenn
This file was extended by or1ksim $as_me 2011-04-28, which was
13713 538 julius
generated by GNU Autoconf 2.64.  Invocation command line was
13714 19 jeremybenn
 
13715
  CONFIG_FILES    = $CONFIG_FILES
13716
  CONFIG_HEADERS  = $CONFIG_HEADERS
13717
  CONFIG_LINKS    = $CONFIG_LINKS
13718
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13719
  $ $0 $@
13720
 
13721
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13722
"
13723
 
13724
_ACEOF
13725
 
13726 82 jeremybenn
case $ac_config_files in *"
13727
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13728
esac
13729
 
13730
case $ac_config_headers in *"
13731
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13732
esac
13733
 
13734
 
13735
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13736 19 jeremybenn
# Files that config.status was made for.
13737
config_files="$ac_config_files"
13738
config_headers="$ac_config_headers"
13739
config_commands="$ac_config_commands"
13740
 
13741
_ACEOF
13742
 
13743 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13744 19 jeremybenn
ac_cs_usage="\
13745 346 jeremybenn
\`$as_me' instantiates files and other configuration actions
13746
from templates according to the current configuration.  Unless the files
13747
and actions are specified as TAGs, all are instantiated by default.
13748 19 jeremybenn
 
13749 346 jeremybenn
Usage: $0 [OPTION]... [TAG]...
13750 19 jeremybenn
 
13751
  -h, --help       print this help, then exit
13752
  -V, --version    print version number and configuration settings, then exit
13753 82 jeremybenn
  -q, --quiet, --silent
13754
                   do not print progress messages
13755 19 jeremybenn
  -d, --debug      don't remove temporary files
13756
      --recheck    update $as_me by reconfiguring in the same conditions
13757 82 jeremybenn
      --file=FILE[:TEMPLATE]
13758
                   instantiate the configuration file FILE
13759
      --header=FILE[:TEMPLATE]
13760
                   instantiate the configuration header FILE
13761 19 jeremybenn
 
13762
Configuration files:
13763
$config_files
13764
 
13765
Configuration headers:
13766
$config_headers
13767
 
13768
Configuration commands:
13769
$config_commands
13770
 
13771 346 jeremybenn
Report bugs to ."
13772 19 jeremybenn
 
13773
_ACEOF
13774 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13775 19 jeremybenn
ac_cs_version="\\
13776 532 jeremybenn
or1ksim config.status 2011-04-28
13777 538 julius
configured by $0, generated by GNU Autoconf 2.64,
13778
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13779 19 jeremybenn
 
13780 346 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
13781 19 jeremybenn
This config.status script is free software; the Free Software Foundation
13782
gives unlimited permission to copy, distribute and modify it."
13783
 
13784
ac_pwd='$ac_pwd'
13785
srcdir='$srcdir'
13786
INSTALL='$INSTALL'
13787
MKDIR_P='$MKDIR_P'
13788 82 jeremybenn
AWK='$AWK'
13789
test -n "\$AWK" || AWK=awk
13790 19 jeremybenn
_ACEOF
13791
 
13792 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13793
# The default lists apply if the user does not specify any file.
13794 19 jeremybenn
ac_need_defaults=:
13795
while test $# != 0
13796
do
13797
  case $1 in
13798
  --*=*)
13799
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13800
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13801
    ac_shift=:
13802
    ;;
13803
  *)
13804
    ac_option=$1
13805
    ac_optarg=$2
13806
    ac_shift=shift
13807
    ;;
13808
  esac
13809
 
13810
  case $ac_option in
13811
  # Handling of the options.
13812
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13813
    ac_cs_recheck=: ;;
13814
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13815 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
13816 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
13817
    debug=: ;;
13818
  --file | --fil | --fi | --f )
13819
    $ac_shift
13820 82 jeremybenn
    case $ac_optarg in
13821
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13822
    esac
13823 346 jeremybenn
    as_fn_append CONFIG_FILES " '$ac_optarg'"
13824 19 jeremybenn
    ac_need_defaults=false;;
13825
  --header | --heade | --head | --hea )
13826
    $ac_shift
13827 82 jeremybenn
    case $ac_optarg in
13828
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13829
    esac
13830 346 jeremybenn
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13831 19 jeremybenn
    ac_need_defaults=false;;
13832
  --he | --h)
13833
    # Conflict between --help and --header
13834 346 jeremybenn
    as_fn_error "ambiguous option: \`$1'
13835
Try \`$0 --help' for more information.";;
13836 19 jeremybenn
  --help | --hel | -h )
13837 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
13838 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13839
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13840
    ac_cs_silent=: ;;
13841
 
13842
  # This is an error.
13843 346 jeremybenn
  -*) as_fn_error "unrecognized option: \`$1'
13844
Try \`$0 --help' for more information." ;;
13845 19 jeremybenn
 
13846 346 jeremybenn
  *) as_fn_append ac_config_targets " $1"
13847 19 jeremybenn
     ac_need_defaults=false ;;
13848
 
13849
  esac
13850
  shift
13851
done
13852
 
13853
ac_configure_extra_args=
13854
 
13855
if $ac_cs_silent; then
13856
  exec 6>/dev/null
13857
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13858
fi
13859
 
13860
_ACEOF
13861 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13862 19 jeremybenn
if \$ac_cs_recheck; then
13863 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13864
  shift
13865
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13866
  CONFIG_SHELL='$SHELL'
13867 19 jeremybenn
  export CONFIG_SHELL
13868 82 jeremybenn
  exec "\$@"
13869 19 jeremybenn
fi
13870
 
13871
_ACEOF
13872 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13873 19 jeremybenn
exec 5>>config.log
13874
{
13875
  echo
13876
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13877
## Running $as_me. ##
13878
_ASBOX
13879 82 jeremybenn
  $as_echo "$ac_log"
13880 19 jeremybenn
} >&5
13881
 
13882
_ACEOF
13883 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13884 19 jeremybenn
#
13885
# INIT-COMMANDS
13886
#
13887 82 jeremybenn
 
13888
 
13889
# The HP-UX ksh and POSIX shell print the target directory to stdout
13890
# if CDPATH is set.
13891
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13892
 
13893
sed_quote_subst='$sed_quote_subst'
13894
double_quote_subst='$double_quote_subst'
13895
delay_variable_subst='$delay_variable_subst'
13896
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13897
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13898
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13899
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13900
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13901
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13902
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13903
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13904
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13905
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13906
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13907
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13908
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13909
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13910
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13911
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13912
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13913
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13914
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13915
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13916
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13917
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13918
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13919
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13920
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13921
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13922
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13923
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13924
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13925
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13926
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13927
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13928
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13929
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13930
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13931
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13932
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13933
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13934
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13935
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13936
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13937
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13938
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13939
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13940
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"`'
13941
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"`'
13942
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13943
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13944
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13945
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13946
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13947
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13948
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13949
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13950
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13951
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13952
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13953
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13954
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13955
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13956
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13957
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13958
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13959
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13960
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13961
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13962
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13963
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13964
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13965
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13966
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13967
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13968
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13969
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13970
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13971
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13972
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13973
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13974
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13975
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13976
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13977
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13978
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13979
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13980
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13981
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13982
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13983
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13984
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13985
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13986
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13987
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13988
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13989
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13990
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13991
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13992
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13993
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13994
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13995
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13996
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13997
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13998
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13999
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14000
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14001
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14002
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14003
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14004
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14005
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14006
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14007
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14008
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14009
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14010
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14011
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14012
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14013
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14014
 
14015
LTCC='$LTCC'
14016
LTCFLAGS='$LTCFLAGS'
14017
compiler='$compiler_DEFAULT'
14018
 
14019
# Quote evaled strings.
14020
for var in SED \
14021
GREP \
14022
EGREP \
14023
FGREP \
14024
LD \
14025
NM \
14026
LN_S \
14027
lt_SP2NL \
14028
lt_NL2SP \
14029
reload_flag \
14030
OBJDUMP \
14031
deplibs_check_method \
14032
file_magic_cmd \
14033
AR \
14034
AR_FLAGS \
14035
STRIP \
14036
RANLIB \
14037
CC \
14038
CFLAGS \
14039
compiler \
14040
lt_cv_sys_global_symbol_pipe \
14041
lt_cv_sys_global_symbol_to_cdecl \
14042
lt_cv_sys_global_symbol_to_c_name_address \
14043
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14044
SHELL \
14045
ECHO \
14046
lt_prog_compiler_no_builtin_flag \
14047
lt_prog_compiler_wl \
14048
lt_prog_compiler_pic \
14049
lt_prog_compiler_static \
14050
lt_cv_prog_compiler_c_o \
14051
need_locks \
14052
DSYMUTIL \
14053
NMEDIT \
14054
LIPO \
14055
OTOOL \
14056
OTOOL64 \
14057
shrext_cmds \
14058
export_dynamic_flag_spec \
14059
whole_archive_flag_spec \
14060
compiler_needs_object \
14061
with_gnu_ld \
14062
allow_undefined_flag \
14063
no_undefined_flag \
14064
hardcode_libdir_flag_spec \
14065
hardcode_libdir_flag_spec_ld \
14066
hardcode_libdir_separator \
14067
fix_srcfile_path \
14068
exclude_expsyms \
14069
include_expsyms \
14070
file_list_spec \
14071
variables_saved_for_relink \
14072
libname_spec \
14073
library_names_spec \
14074
soname_spec \
14075
finish_eval \
14076
old_striplib \
14077
striplib; do
14078
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14079
    *[\\\\\\\`\\"\\\$]*)
14080
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14081
      ;;
14082
    *)
14083
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14084
      ;;
14085
    esac
14086
done
14087
 
14088
# Double-quote double-evaled strings.
14089
for var in reload_cmds \
14090
old_postinstall_cmds \
14091
old_postuninstall_cmds \
14092
old_archive_cmds \
14093
extract_expsyms_cmds \
14094
old_archive_from_new_cmds \
14095
old_archive_from_expsyms_cmds \
14096
archive_cmds \
14097
archive_expsym_cmds \
14098
module_cmds \
14099
module_expsym_cmds \
14100
export_symbols_cmds \
14101
prelink_cmds \
14102
postinstall_cmds \
14103
postuninstall_cmds \
14104
finish_cmds \
14105
sys_lib_search_path_spec \
14106
sys_lib_dlsearch_path_spec; do
14107
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14108
    *[\\\\\\\`\\"\\\$]*)
14109
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14110
      ;;
14111
    *)
14112
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14113
      ;;
14114
    esac
14115
done
14116
 
14117
# Fix-up fallback echo if it was mangled by the above quoting rules.
14118
case \$lt_ECHO in
14119
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14120
  ;;
14121
esac
14122
 
14123
ac_aux_dir='$ac_aux_dir'
14124
xsi_shell='$xsi_shell'
14125
lt_shell_append='$lt_shell_append'
14126
 
14127
# See if we are running on zsh, and set the options which allow our
14128
# commands through without removal of \ escapes INIT.
14129
if test -n "\${ZSH_VERSION+set}" ; then
14130
   setopt NO_GLOB_SUBST
14131
fi
14132
 
14133
 
14134
    PACKAGE='$PACKAGE'
14135
    VERSION='$VERSION'
14136
    TIMESTAMP='$TIMESTAMP'
14137
    RM='$RM'
14138
    ofile='$ofile'
14139
 
14140
 
14141
 
14142 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14143
 
14144
_ACEOF
14145
 
14146 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14147 19 jeremybenn
 
14148
# Handling of arguments.
14149
for ac_config_target in $ac_config_targets
14150
do
14151
  case $ac_config_target in
14152 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14153 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14154
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14155
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14156
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
14157
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
14158
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
14159
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
14160
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
14161
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
14162
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
14163 233 julius
    "softfloat/Makefile") CONFIG_FILES="$CONFIG_FILES softfloat/Makefile" ;;
14164 19 jeremybenn
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
14165
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14166
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
14167
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
14168
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
14169
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
14170
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
14171 90 jeremybenn
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
14172
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
14173
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14174
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
14175
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
14176
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
14177
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
14178
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
14179
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
14180 93 jeremybenn
    "testsuite/test-code/lib-inttest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-inttest/Makefile" ;;
14181 97 jeremybenn
    "testsuite/test-code/lib-jtag/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-jtag/Makefile" ;;
14182 93 jeremybenn
    "testsuite/test-code/lib-upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-upcalls/Makefile" ;;
14183 90 jeremybenn
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
14184 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
14185
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
14186
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
14187
 
14188 346 jeremybenn
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14189 19 jeremybenn
  esac
14190
done
14191
 
14192
 
14193
# If the user did not use the arguments to specify the items to instantiate,
14194
# then the envvar interface is used.  Set only those that are not.
14195
# We use the long form for the default assignment because of an extremely
14196
# bizarre bug on SunOS 4.1.3.
14197
if $ac_need_defaults; then
14198
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14199
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14200
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14201
fi
14202
 
14203
# Have a temporary directory for convenience.  Make it in the build tree
14204
# simply because there is no reason against having it here, and in addition,
14205
# creating and moving files from /tmp can sometimes cause problems.
14206
# Hook for its removal unless debugging.
14207
# Note that there is a small window in which the directory will not be cleaned:
14208
# after its creation but before its name has been assigned to `$tmp'.
14209
$debug ||
14210
{
14211
  tmp=
14212
  trap 'exit_status=$?
14213
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14214
' 0
14215 346 jeremybenn
  trap 'as_fn_exit 1' 1 2 13 15
14216 19 jeremybenn
}
14217
# Create a (secure) tmp directory for tmp files.
14218
 
14219
{
14220
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14221
  test -n "$tmp" && test -d "$tmp"
14222
}  ||
14223
{
14224
  tmp=./conf$$-$RANDOM
14225
  (umask 077 && mkdir "$tmp")
14226 346 jeremybenn
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14227 19 jeremybenn
 
14228 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
14229
# No need to generate them if there are no CONFIG_FILES.
14230
# This happens for instance with `./config.status config.h'.
14231 19 jeremybenn
if test -n "$CONFIG_FILES"; then
14232
 
14233 82 jeremybenn
 
14234 346 jeremybenn
ac_cr=`echo X | tr X '\015'`
14235
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14236
# But we know of no other shell where ac_cr would be empty at this
14237
# point, so we can use a bashism as a fallback.
14238
if test "x$ac_cr" = x; then
14239
  eval ac_cr=\$\'\\r\'
14240
fi
14241 82 jeremybenn
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
14242
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14243 346 jeremybenn
  ac_cs_awk_cr='\r'
14244 82 jeremybenn
else
14245
  ac_cs_awk_cr=$ac_cr
14246
fi
14247
 
14248
echo 'BEGIN {' >"$tmp/subs1.awk" &&
14249 19 jeremybenn
_ACEOF
14250
 
14251
 
14252 82 jeremybenn
{
14253
  echo "cat >conf$$subs.awk <<_ACEOF" &&
14254
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14255
  echo "_ACEOF"
14256
} >conf$$subs.sh ||
14257 346 jeremybenn
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14258 82 jeremybenn
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14259 19 jeremybenn
ac_delim='%!_!# '
14260
for ac_last_try in false false false false false :; do
14261 82 jeremybenn
  . ./conf$$subs.sh ||
14262 346 jeremybenn
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14263 19 jeremybenn
 
14264 82 jeremybenn
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14265
  if test $ac_delim_n = $ac_delim_num; then
14266 19 jeremybenn
    break
14267
  elif $ac_last_try; then
14268 346 jeremybenn
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14269 19 jeremybenn
  else
14270
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14271
  fi
14272
done
14273 82 jeremybenn
rm -f conf$$subs.sh
14274 19 jeremybenn
 
14275 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14276
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14277 19 jeremybenn
_ACEOF
14278 82 jeremybenn
sed -n '
14279
h
14280
s/^/S["/; s/!.*/"]=/
14281
p
14282
g
14283
s/^[^!]*!//
14284
:repl
14285
t repl
14286
s/'"$ac_delim"'$//
14287
t delim
14288
:nl
14289
h
14290 538 julius
s/\(.\{148\}\).*/\1/
14291 82 jeremybenn
t more1
14292
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14293
p
14294
n
14295
b repl
14296
:more1
14297
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14298
p
14299
g
14300
s/.\{148\}//
14301
t nl
14302
:delim
14303
h
14304 538 julius
s/\(.\{148\}\).*/\1/
14305 82 jeremybenn
t more2
14306
s/["\\]/\\&/g; s/^/"/; s/$/"/
14307
p
14308
b
14309
:more2
14310
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14311
p
14312
g
14313
s/.\{148\}//
14314
t delim
14315
' 
14316
/^[^""]/{
14317
  N
14318
  s/\n//
14319
}
14320
' >>$CONFIG_STATUS || ac_write_fail=1
14321
rm -f conf$$subs.awk
14322
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14323
_ACAWK
14324
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14325
  for (key in S) S_is_set[key] = 1
14326
  FS = ""
14327 19 jeremybenn
 
14328 82 jeremybenn
}
14329
{
14330
  line = $ 0
14331
  nfields = split(line, field, "@")
14332
  substed = 0
14333
  len = length(field[1])
14334
  for (i = 2; i < nfields; i++) {
14335
    key = field[i]
14336
    keylen = length(key)
14337
    if (S_is_set[key]) {
14338
      value = S[key]
14339
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14340
      len += length(value) + length(field[++i])
14341
      substed = 1
14342
    } else
14343
      len += 1 + keylen
14344
  }
14345 19 jeremybenn
 
14346 82 jeremybenn
  print line
14347
}
14348
 
14349
_ACAWK
14350 19 jeremybenn
_ACEOF
14351 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14352
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14353
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14354
else
14355
  cat
14356
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14357 346 jeremybenn
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14358 19 jeremybenn
_ACEOF
14359
 
14360
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14361
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14362
# trailing colons and then remove the whole line if VPATH becomes empty
14363
# (actually we leave an empty line to preserve line numbers).
14364
if test "x$srcdir" = x.; then
14365
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14366
s/:*\$(srcdir):*/:/
14367
s/:*\${srcdir}:*/:/
14368
s/:*@srcdir@:*/:/
14369
s/^\([^=]*=[     ]*\):*/\1/
14370
s/:*$//
14371
s/^[^=]*=[       ]*$//
14372
}'
14373
fi
14374
 
14375 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14376 19 jeremybenn
fi # test -n "$CONFIG_FILES"
14377
 
14378 82 jeremybenn
# Set up the scripts for CONFIG_HEADERS section.
14379
# No need to generate them if there are no CONFIG_HEADERS.
14380
# This happens for instance with `./config.status Makefile'.
14381
if test -n "$CONFIG_HEADERS"; then
14382
cat >"$tmp/defines.awk" <<\_ACAWK ||
14383
BEGIN {
14384
_ACEOF
14385 19 jeremybenn
 
14386 82 jeremybenn
# Transform confdefs.h into an awk script `defines.awk', embedded as
14387
# here-document in config.status, that substitutes the proper values into
14388
# config.h.in to produce config.h.
14389
 
14390
# Create a delimiter string that does not exist in confdefs.h, to ease
14391
# handling of long lines.
14392
ac_delim='%!_!# '
14393
for ac_last_try in false false :; do
14394
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14395
  if test -z "$ac_t"; then
14396
    break
14397
  elif $ac_last_try; then
14398 346 jeremybenn
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14399 82 jeremybenn
  else
14400
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14401
  fi
14402
done
14403
 
14404
# For the awk script, D is an array of macro values keyed by name,
14405
# likewise P contains macro parameters if any.  Preserve backslash
14406
# newline sequences.
14407
 
14408
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14409
sed -n '
14410
s/.\{148\}/&'"$ac_delim"'/g
14411
t rset
14412
:rset
14413
s/^[     ]*#[    ]*define[       ][      ]*/ /
14414
t def
14415
d
14416
:def
14417
s/\\$//
14418
t bsnl
14419
s/["\\]/\\&/g
14420
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14421
D["\1"]=" \3"/p
14422
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14423
d
14424
:bsnl
14425
s/["\\]/\\&/g
14426
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14427
D["\1"]=" \3\\\\\\n"\\/p
14428
t cont
14429
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14430
t cont
14431
d
14432
:cont
14433
n
14434
s/.\{148\}/&'"$ac_delim"'/g
14435
t clear
14436
:clear
14437
s/\\$//
14438
t bsnlc
14439
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14440
d
14441
:bsnlc
14442
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14443
b cont
14444
' 
14445
s/'"$ac_delim"'/"\\\
14446
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14447
 
14448
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14449
  for (key in D) D_is_set[key] = 1
14450
  FS = ""
14451
}
14452
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14453
  line = \$ 0
14454
  split(line, arg, " ")
14455
  if (arg[1] == "#") {
14456
    defundef = arg[2]
14457
    mac1 = arg[3]
14458
  } else {
14459
    defundef = substr(arg[1], 2)
14460
    mac1 = arg[2]
14461
  }
14462
  split(mac1, mac2, "(") #)
14463
  macro = mac2[1]
14464
  prefix = substr(line, 1, index(line, defundef) - 1)
14465
  if (D_is_set[macro]) {
14466
    # Preserve the white space surrounding the "#".
14467
    print prefix "define", macro P[macro] D[macro]
14468
    next
14469
  } else {
14470
    # Replace #undef with comments.  This is necessary, for example,
14471
    # in the case of _POSIX_SOURCE, which is predefined and required
14472
    # on some systems where configure will not decide to define it.
14473
    if (defundef == "undef") {
14474
      print "/*", prefix defundef, macro, "*/"
14475
      next
14476
    }
14477
  }
14478
}
14479
{ print }
14480
_ACAWK
14481
_ACEOF
14482
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14483 346 jeremybenn
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14484 82 jeremybenn
fi # test -n "$CONFIG_HEADERS"
14485
 
14486
 
14487
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14488
shift
14489
for ac_tag
14490 19 jeremybenn
do
14491
  case $ac_tag in
14492
  :[FHLC]) ac_mode=$ac_tag; continue;;
14493
  esac
14494
  case $ac_mode$ac_tag in
14495
  :[FHL]*:*);;
14496 346 jeremybenn
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14497 19 jeremybenn
  :[FH]-) ac_tag=-:-;;
14498
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14499
  esac
14500
  ac_save_IFS=$IFS
14501
  IFS=:
14502
  set x $ac_tag
14503
  IFS=$ac_save_IFS
14504
  shift
14505
  ac_file=$1
14506
  shift
14507
 
14508
  case $ac_mode in
14509
  :L) ac_source=$1;;
14510
  :[FH])
14511
    ac_file_inputs=
14512
    for ac_f
14513
    do
14514
      case $ac_f in
14515
      -) ac_f="$tmp/stdin";;
14516
      *) # Look for the file first in the build tree, then in the source tree
14517
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
14518
         # because $ac_f cannot contain `:'.
14519
         test -f "$ac_f" ||
14520
           case $ac_f in
14521
           [\\/$]*) false;;
14522
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14523
           esac ||
14524 346 jeremybenn
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14525 19 jeremybenn
      esac
14526 82 jeremybenn
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14527 346 jeremybenn
      as_fn_append ac_file_inputs " '$ac_f'"
14528 19 jeremybenn
    done
14529
 
14530
    # Let's still pretend it is `configure' which instantiates (i.e., don't
14531
    # use $as_me), people would be surprised to read:
14532
    #    /* config.h.  Generated by config.status.  */
14533 82 jeremybenn
    configure_input='Generated from '`
14534
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14535
        `' by configure.'
14536 19 jeremybenn
    if test x"$ac_file" != x-; then
14537
      configure_input="$ac_file.  $configure_input"
14538 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14539 82 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
14540 19 jeremybenn
    fi
14541 82 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
14542
    case $configure_input in #(
14543
    *\&* | *\|* | *\\* )
14544
       ac_sed_conf_input=`$as_echo "$configure_input" |
14545
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14546
    *) ac_sed_conf_input=$configure_input;;
14547
    esac
14548 19 jeremybenn
 
14549
    case $ac_tag in
14550 82 jeremybenn
    *:-:* | *:-) cat >"$tmp/stdin" \
14551 346 jeremybenn
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14552 19 jeremybenn
    esac
14553
    ;;
14554
  esac
14555
 
14556
  ac_dir=`$as_dirname -- "$ac_file" ||
14557
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14558
         X"$ac_file" : 'X\(//\)[^/]' \| \
14559
         X"$ac_file" : 'X\(//\)$' \| \
14560
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14561 82 jeremybenn
$as_echo X"$ac_file" |
14562 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14563
            s//\1/
14564
            q
14565
          }
14566
          /^X\(\/\/\)[^/].*/{
14567
            s//\1/
14568
            q
14569
          }
14570
          /^X\(\/\/\)$/{
14571
            s//\1/
14572
            q
14573
          }
14574
          /^X\(\/\).*/{
14575
            s//\1/
14576
            q
14577
          }
14578
          s/.*/./; q'`
14579 346 jeremybenn
  as_dir="$ac_dir"; as_fn_mkdir_p
14580 19 jeremybenn
  ac_builddir=.
14581
 
14582
case "$ac_dir" in
14583
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14584
*)
14585 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14586 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
14587 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14588 19 jeremybenn
  case $ac_top_builddir_sub in
14589
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14590
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14591
  esac ;;
14592
esac
14593
ac_abs_top_builddir=$ac_pwd
14594
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14595
# for backward compatibility:
14596
ac_top_builddir=$ac_top_build_prefix
14597
 
14598
case $srcdir in
14599
  .)  # We are building in place.
14600
    ac_srcdir=.
14601
    ac_top_srcdir=$ac_top_builddir_sub
14602
    ac_abs_top_srcdir=$ac_pwd ;;
14603
  [\\/]* | ?:[\\/]* )  # Absolute name.
14604
    ac_srcdir=$srcdir$ac_dir_suffix;
14605
    ac_top_srcdir=$srcdir
14606
    ac_abs_top_srcdir=$srcdir ;;
14607
  *) # Relative name.
14608
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14609
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14610
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14611
esac
14612
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14613
 
14614
 
14615
  case $ac_mode in
14616
  :F)
14617
  #
14618
  # CONFIG_FILE
14619
  #
14620
 
14621
  case $INSTALL in
14622
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14623
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14624
  esac
14625
  ac_MKDIR_P=$MKDIR_P
14626
  case $MKDIR_P in
14627
  [\\/$]* | ?:[\\/]* ) ;;
14628
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14629
  esac
14630
_ACEOF
14631
 
14632 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14633 19 jeremybenn
# If the template does not know about datarootdir, expand it.
14634
# FIXME: This hack should be removed a few years after 2.60.
14635
ac_datarootdir_hack=; ac_datarootdir_seen=
14636 82 jeremybenn
ac_sed_dataroot='
14637
/datarootdir/ {
14638 19 jeremybenn
  p
14639
  q
14640
}
14641
/@datadir@/p
14642
/@docdir@/p
14643
/@infodir@/p
14644
/@localedir@/p
14645 346 jeremybenn
/@mandir@/p'
14646 82 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14647 19 jeremybenn
*datarootdir*) ac_datarootdir_seen=yes;;
14648
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14649 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14650 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14651 19 jeremybenn
_ACEOF
14652 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14653 19 jeremybenn
  ac_datarootdir_hack='
14654
  s&@datadir@&$datadir&g
14655
  s&@docdir@&$docdir&g
14656
  s&@infodir@&$infodir&g
14657
  s&@localedir@&$localedir&g
14658
  s&@mandir@&$mandir&g
14659 346 jeremybenn
  s&\\\${datarootdir}&$datarootdir&g' ;;
14660 19 jeremybenn
esac
14661
_ACEOF
14662
 
14663
# Neutralize VPATH when `$srcdir' = `.'.
14664
# Shell code in configure.ac might set extrasub.
14665
# FIXME: do we really want to maintain this feature?
14666 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14667
ac_sed_extra="$ac_vpsub
14668 19 jeremybenn
$extrasub
14669
_ACEOF
14670 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14671 19 jeremybenn
:t
14672
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14673 82 jeremybenn
s|@configure_input@|$ac_sed_conf_input|;t t
14674 19 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
14675 82 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14676 19 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
14677
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14678
s&@top_srcdir@&$ac_top_srcdir&;t t
14679
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14680
s&@builddir@&$ac_builddir&;t t
14681
s&@abs_builddir@&$ac_abs_builddir&;t t
14682
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14683
s&@INSTALL@&$ac_INSTALL&;t t
14684
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14685
$ac_datarootdir_hack
14686 82 jeremybenn
"
14687
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14688 346 jeremybenn
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14689 19 jeremybenn
 
14690
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14691
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14692
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14693 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14694 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
14695 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14696 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
14697
 
14698
  rm -f "$tmp/stdin"
14699
  case $ac_file in
14700 82 jeremybenn
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14701
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14702
  esac \
14703 346 jeremybenn
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14704 19 jeremybenn
 ;;
14705
  :H)
14706
  #
14707
  # CONFIG_HEADER
14708
  #
14709
  if test x"$ac_file" != x-; then
14710 82 jeremybenn
    {
14711
      $as_echo "/* $configure_input  */" \
14712
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14713
    } >"$tmp/config.h" \
14714 346 jeremybenn
      || as_fn_error "could not create $ac_file" "$LINENO" 5
14715 82 jeremybenn
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14716 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14717 82 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14718 19 jeremybenn
    else
14719 82 jeremybenn
      rm -f "$ac_file"
14720
      mv "$tmp/config.h" "$ac_file" \
14721 346 jeremybenn
        || as_fn_error "could not create $ac_file" "$LINENO" 5
14722 19 jeremybenn
    fi
14723
  else
14724 82 jeremybenn
    $as_echo "/* $configure_input  */" \
14725
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14726 346 jeremybenn
      || as_fn_error "could not create -" "$LINENO" 5
14727 19 jeremybenn
  fi
14728 82 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
14729
_am_arg="$ac_file"
14730 19 jeremybenn
_am_stamp_count=1
14731
for _am_header in $config_headers :; do
14732
  case $_am_header in
14733
    $_am_arg | $_am_arg:* )
14734
      break ;;
14735
    * )
14736
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14737
  esac
14738
done
14739
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14740
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14741
         X"$_am_arg" : 'X\(//\)[^/]' \| \
14742
         X"$_am_arg" : 'X\(//\)$' \| \
14743
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14744 82 jeremybenn
$as_echo X"$_am_arg" |
14745 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14746
            s//\1/
14747
            q
14748
          }
14749
          /^X\(\/\/\)[^/].*/{
14750
            s//\1/
14751
            q
14752
          }
14753
          /^X\(\/\/\)$/{
14754
            s//\1/
14755
            q
14756
          }
14757
          /^X\(\/\).*/{
14758
            s//\1/
14759
            q
14760
          }
14761
          s/.*/./; q'`/stamp-h$_am_stamp_count
14762
 ;;
14763
 
14764 346 jeremybenn
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14765 82 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
14766 19 jeremybenn
 ;;
14767
  esac
14768
 
14769
 
14770
  case $ac_file$ac_mode in
14771 82 jeremybenn
    "libtool":C)
14772
 
14773
    # See if we are running on zsh, and set the options which allow our
14774
    # commands through without removal of \ escapes.
14775
    if test -n "${ZSH_VERSION+set}" ; then
14776
      setopt NO_GLOB_SUBST
14777
    fi
14778
 
14779
    cfgfile="${ofile}T"
14780
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14781
    $RM "$cfgfile"
14782
 
14783
    cat <<_LT_EOF >> "$cfgfile"
14784
#! $SHELL
14785
 
14786
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14787
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14788
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14789
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14790
#
14791
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14792
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14793
#   Written by Gordon Matzigkeit, 1996
14794
#
14795
#   This file is part of GNU Libtool.
14796
#
14797
# GNU Libtool is free software; you can redistribute it and/or
14798
# modify it under the terms of the GNU General Public License as
14799
# published by the Free Software Foundation; either version 2 of
14800
# the License, or (at your option) any later version.
14801
#
14802
# As a special exception to the GNU General Public License,
14803
# if you distribute this file as part of a program or library that
14804
# is built using GNU Libtool, you may include this file under the
14805
# same distribution terms that you use for the rest of that program.
14806
#
14807
# GNU Libtool is distributed in the hope that it will be useful,
14808
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14809
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14810
# GNU General Public License for more details.
14811
#
14812
# You should have received a copy of the GNU General Public License
14813
# along with GNU Libtool; see the file COPYING.  If not, a copy
14814
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14815
# obtained by writing to the Free Software Foundation, Inc.,
14816
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14817
 
14818
 
14819
# The names of the tagged configurations supported by this script.
14820
available_tags=""
14821
 
14822
# ### BEGIN LIBTOOL CONFIG
14823
 
14824
# Which release of libtool.m4 was used?
14825
macro_version=$macro_version
14826
macro_revision=$macro_revision
14827
 
14828
# Whether or not to build shared libraries.
14829
build_libtool_libs=$enable_shared
14830
 
14831
# Whether or not to build static libraries.
14832
build_old_libs=$enable_static
14833
 
14834
# What type of objects to build.
14835
pic_mode=$pic_mode
14836
 
14837
# Whether or not to optimize for fast installation.
14838
fast_install=$enable_fast_install
14839
 
14840
# The host system.
14841
host_alias=$host_alias
14842
host=$host
14843
host_os=$host_os
14844
 
14845
# The build system.
14846
build_alias=$build_alias
14847
build=$build
14848
build_os=$build_os
14849
 
14850
# A sed program that does not truncate output.
14851
SED=$lt_SED
14852
 
14853
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14854
Xsed="\$SED -e 1s/^X//"
14855
 
14856
# A grep program that handles long lines.
14857
GREP=$lt_GREP
14858
 
14859
# An ERE matcher.
14860
EGREP=$lt_EGREP
14861
 
14862
# A literal string matcher.
14863
FGREP=$lt_FGREP
14864
 
14865
# A BSD- or MS-compatible name lister.
14866
NM=$lt_NM
14867
 
14868
# Whether we need soft or hard links.
14869
LN_S=$lt_LN_S
14870
 
14871
# What is the maximum length of a command?
14872
max_cmd_len=$max_cmd_len
14873
 
14874
# Object file suffix (normally "o").
14875
objext=$ac_objext
14876
 
14877
# Executable file suffix (normally "").
14878
exeext=$exeext
14879
 
14880
# whether the shell understands "unset".
14881
lt_unset=$lt_unset
14882
 
14883
# turn spaces into newlines.
14884
SP2NL=$lt_lt_SP2NL
14885
 
14886
# turn newlines into spaces.
14887
NL2SP=$lt_lt_NL2SP
14888
 
14889
# How to create reloadable object files.
14890
reload_flag=$lt_reload_flag
14891
reload_cmds=$lt_reload_cmds
14892
 
14893
# An object symbol dumper.
14894
OBJDUMP=$lt_OBJDUMP
14895
 
14896
# Method to check whether dependent libraries are shared objects.
14897
deplibs_check_method=$lt_deplibs_check_method
14898
 
14899
# Command to use when deplibs_check_method == "file_magic".
14900
file_magic_cmd=$lt_file_magic_cmd
14901
 
14902
# The archiver.
14903
AR=$lt_AR
14904
AR_FLAGS=$lt_AR_FLAGS
14905
 
14906
# A symbol stripping program.
14907
STRIP=$lt_STRIP
14908
 
14909
# Commands used to install an old-style archive.
14910
RANLIB=$lt_RANLIB
14911
old_postinstall_cmds=$lt_old_postinstall_cmds
14912
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14913
 
14914
# A C compiler.
14915
LTCC=$lt_CC
14916
 
14917
# LTCC compiler flags.
14918
LTCFLAGS=$lt_CFLAGS
14919
 
14920
# Take the output of nm and produce a listing of raw symbols and C names.
14921
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14922
 
14923
# Transform the output of nm in a proper C declaration.
14924
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14925
 
14926
# Transform the output of nm in a C name address pair.
14927
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14928
 
14929
# Transform the output of nm in a C name address pair when lib prefix is needed.
14930
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14931
 
14932
# The name of the directory that contains temporary libtool files.
14933
objdir=$objdir
14934
 
14935
# Shell to use when invoking shell scripts.
14936
SHELL=$lt_SHELL
14937
 
14938
# An echo program that does not interpret backslashes.
14939
ECHO=$lt_ECHO
14940
 
14941
# Used to examine libraries when file_magic_cmd begins with "file".
14942
MAGIC_CMD=$MAGIC_CMD
14943
 
14944
# Must we lock files when doing compilation?
14945
need_locks=$lt_need_locks
14946
 
14947
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14948
DSYMUTIL=$lt_DSYMUTIL
14949
 
14950
# Tool to change global to local symbols on Mac OS X.
14951
NMEDIT=$lt_NMEDIT
14952
 
14953
# Tool to manipulate fat objects and archives on Mac OS X.
14954
LIPO=$lt_LIPO
14955
 
14956
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14957
OTOOL=$lt_OTOOL
14958
 
14959
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14960
OTOOL64=$lt_OTOOL64
14961
 
14962
# Old archive suffix (normally "a").
14963
libext=$libext
14964
 
14965
# Shared library suffix (normally ".so").
14966
shrext_cmds=$lt_shrext_cmds
14967
 
14968
# The commands to extract the exported symbol list from a shared archive.
14969
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14970
 
14971
# Variables whose values should be saved in libtool wrapper scripts and
14972
# restored at link time.
14973
variables_saved_for_relink=$lt_variables_saved_for_relink
14974
 
14975
# Do we need the "lib" prefix for modules?
14976
need_lib_prefix=$need_lib_prefix
14977
 
14978
# Do we need a version for libraries?
14979
need_version=$need_version
14980
 
14981
# Library versioning type.
14982
version_type=$version_type
14983
 
14984
# Shared library runtime path variable.
14985
runpath_var=$runpath_var
14986
 
14987
# Shared library path variable.
14988
shlibpath_var=$shlibpath_var
14989
 
14990
# Is shlibpath searched before the hard-coded library search path?
14991
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14992
 
14993
# Format of library name prefix.
14994
libname_spec=$lt_libname_spec
14995
 
14996
# List of archive names.  First name is the real one, the rest are links.
14997
# The last name is the one that the linker finds with -lNAME
14998
library_names_spec=$lt_library_names_spec
14999
 
15000
# The coded name of the library, if different from the real name.
15001
soname_spec=$lt_soname_spec
15002
 
15003
# Command to use after installation of a shared archive.
15004
postinstall_cmds=$lt_postinstall_cmds
15005
 
15006
# Command to use after uninstallation of a shared archive.
15007
postuninstall_cmds=$lt_postuninstall_cmds
15008
 
15009
# Commands used to finish a libtool library installation in a directory.
15010
finish_cmds=$lt_finish_cmds
15011
 
15012
# As "finish_cmds", except a single script fragment to be evaled but
15013
# not shown.
15014
finish_eval=$lt_finish_eval
15015
 
15016
# Whether we should hardcode library paths into libraries.
15017
hardcode_into_libs=$hardcode_into_libs
15018
 
15019
# Compile-time system search path for libraries.
15020
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15021
 
15022
# Run-time system search path for libraries.
15023
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15024
 
15025
# Whether dlopen is supported.
15026
dlopen_support=$enable_dlopen
15027
 
15028
# Whether dlopen of programs is supported.
15029
dlopen_self=$enable_dlopen_self
15030
 
15031
# Whether dlopen of statically linked programs is supported.
15032
dlopen_self_static=$enable_dlopen_self_static
15033
 
15034
# Commands to strip libraries.
15035
old_striplib=$lt_old_striplib
15036
striplib=$lt_striplib
15037
 
15038
 
15039
# The linker used to build libraries.
15040
LD=$lt_LD
15041
 
15042
# Commands used to build an old-style archive.
15043
old_archive_cmds=$lt_old_archive_cmds
15044
 
15045
# A language specific compiler.
15046
CC=$lt_compiler
15047
 
15048
# Is the compiler the GNU compiler?
15049
with_gcc=$GCC
15050
 
15051
# Compiler flag to turn off builtin functions.
15052
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15053
 
15054
# How to pass a linker flag through the compiler.
15055
wl=$lt_lt_prog_compiler_wl
15056
 
15057
# Additional compiler flags for building library objects.
15058
pic_flag=$lt_lt_prog_compiler_pic
15059
 
15060
# Compiler flag to prevent dynamic linking.
15061
link_static_flag=$lt_lt_prog_compiler_static
15062
 
15063
# Does compiler simultaneously support -c and -o options?
15064
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15065
 
15066
# Whether or not to add -lc for building shared libraries.
15067
build_libtool_need_lc=$archive_cmds_need_lc
15068
 
15069
# Whether or not to disallow shared libs when runtime libs are static.
15070
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15071
 
15072
# Compiler flag to allow reflexive dlopens.
15073
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15074
 
15075
# Compiler flag to generate shared objects directly from archives.
15076
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15077
 
15078
# Whether the compiler copes with passing no objects directly.
15079
compiler_needs_object=$lt_compiler_needs_object
15080
 
15081
# Create an old-style archive from a shared archive.
15082
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15083
 
15084
# Create a temporary old-style archive to link instead of a shared archive.
15085
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15086
 
15087
# Commands used to build a shared archive.
15088
archive_cmds=$lt_archive_cmds
15089
archive_expsym_cmds=$lt_archive_expsym_cmds
15090
 
15091
# Commands used to build a loadable module if different from building
15092
# a shared archive.
15093
module_cmds=$lt_module_cmds
15094
module_expsym_cmds=$lt_module_expsym_cmds
15095
 
15096
# Whether we are building with GNU ld or not.
15097
with_gnu_ld=$lt_with_gnu_ld
15098
 
15099
# Flag that allows shared libraries with undefined symbols to be built.
15100
allow_undefined_flag=$lt_allow_undefined_flag
15101
 
15102
# Flag that enforces no undefined symbols.
15103
no_undefined_flag=$lt_no_undefined_flag
15104
 
15105
# Flag to hardcode \$libdir into a binary during linking.
15106
# This must work even if \$libdir does not exist
15107
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15108
 
15109
# If ld is used when linking, flag to hardcode \$libdir into a binary
15110
# during linking.  This must work even if \$libdir does not exist.
15111
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15112
 
15113
# Whether we need a single "-rpath" flag with a separated argument.
15114
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15115
 
15116
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15117
# DIR into the resulting binary.
15118
hardcode_direct=$hardcode_direct
15119
 
15120
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15121
# DIR into the resulting binary and the resulting library dependency is
15122
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15123
# library is relocated.
15124
hardcode_direct_absolute=$hardcode_direct_absolute
15125
 
15126
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15127
# into the resulting binary.
15128
hardcode_minus_L=$hardcode_minus_L
15129
 
15130
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15131
# into the resulting binary.
15132
hardcode_shlibpath_var=$hardcode_shlibpath_var
15133
 
15134
# Set to "yes" if building a shared library automatically hardcodes DIR
15135
# into the library and all subsequent libraries and executables linked
15136
# against it.
15137
hardcode_automatic=$hardcode_automatic
15138
 
15139
# Set to yes if linker adds runtime paths of dependent libraries
15140
# to runtime path list.
15141
inherit_rpath=$inherit_rpath
15142
 
15143
# Whether libtool must link a program against all its dependency libraries.
15144
link_all_deplibs=$link_all_deplibs
15145
 
15146
# Fix the shell variable \$srcfile for the compiler.
15147
fix_srcfile_path=$lt_fix_srcfile_path
15148
 
15149
# Set to "yes" if exported symbols are required.
15150
always_export_symbols=$always_export_symbols
15151
 
15152
# The commands to list exported symbols.
15153
export_symbols_cmds=$lt_export_symbols_cmds
15154
 
15155
# Symbols that should not be listed in the preloaded symbols.
15156
exclude_expsyms=$lt_exclude_expsyms
15157
 
15158
# Symbols that must always be exported.
15159
include_expsyms=$lt_include_expsyms
15160
 
15161
# Commands necessary for linking programs (against libraries) with templates.
15162
prelink_cmds=$lt_prelink_cmds
15163
 
15164
# Specify filename containing input files.
15165
file_list_spec=$lt_file_list_spec
15166
 
15167
# How to hardcode a shared library path into an executable.
15168
hardcode_action=$hardcode_action
15169
 
15170
# ### END LIBTOOL CONFIG
15171
 
15172
_LT_EOF
15173
 
15174
  case $host_os in
15175
  aix3*)
15176
    cat <<\_LT_EOF >> "$cfgfile"
15177
# AIX sometimes has problems with the GCC collect2 program.  For some
15178
# reason, if we set the COLLECT_NAMES environment variable, the problems
15179
# vanish in a puff of smoke.
15180
if test "X${COLLECT_NAMES+set}" != Xset; then
15181
  COLLECT_NAMES=
15182
  export COLLECT_NAMES
15183
fi
15184
_LT_EOF
15185
    ;;
15186
  esac
15187
 
15188
 
15189
ltmain="$ac_aux_dir/ltmain.sh"
15190
 
15191
 
15192
  # We use sed instead of cat because bash on DJGPP gets confused if
15193
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15194
  # text mode, it properly converts lines to CR/LF.  This bash problem
15195
  # is reportedly fixed, but why not run on old versions too?
15196
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15197
    || (rm -f "$cfgfile"; exit 1)
15198
 
15199
  case $xsi_shell in
15200
  yes)
15201
    cat << \_LT_EOF >> "$cfgfile"
15202
 
15203
# func_dirname file append nondir_replacement
15204
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15205
# otherwise set result to NONDIR_REPLACEMENT.
15206
func_dirname ()
15207
{
15208
  case ${1} in
15209
    */*) func_dirname_result="${1%/*}${2}" ;;
15210
    *  ) func_dirname_result="${3}" ;;
15211
  esac
15212
}
15213
 
15214
# func_basename file
15215
func_basename ()
15216
{
15217
  func_basename_result="${1##*/}"
15218
}
15219
 
15220
# func_dirname_and_basename file append nondir_replacement
15221
# perform func_basename and func_dirname in a single function
15222
# call:
15223
#   dirname:  Compute the dirname of FILE.  If nonempty,
15224
#             add APPEND to the result, otherwise set result
15225
#             to NONDIR_REPLACEMENT.
15226
#             value returned in "$func_dirname_result"
15227
#   basename: Compute filename of FILE.
15228
#             value retuned in "$func_basename_result"
15229
# Implementation must be kept synchronized with func_dirname
15230
# and func_basename. For efficiency, we do not delegate to
15231
# those functions but instead duplicate the functionality here.
15232
func_dirname_and_basename ()
15233
{
15234
  case ${1} in
15235
    */*) func_dirname_result="${1%/*}${2}" ;;
15236
    *  ) func_dirname_result="${3}" ;;
15237
  esac
15238
  func_basename_result="${1##*/}"
15239
}
15240
 
15241
# func_stripname prefix suffix name
15242
# strip PREFIX and SUFFIX off of NAME.
15243
# PREFIX and SUFFIX must not contain globbing or regex special
15244
# characters, hashes, percent signs, but SUFFIX may contain a leading
15245
# dot (in which case that matches only a dot).
15246
func_stripname ()
15247
{
15248
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15249
  # positional parameters, so assign one to ordinary parameter first.
15250
  func_stripname_result=${3}
15251
  func_stripname_result=${func_stripname_result#"${1}"}
15252
  func_stripname_result=${func_stripname_result%"${2}"}
15253
}
15254
 
15255
# func_opt_split
15256
func_opt_split ()
15257
{
15258
  func_opt_split_opt=${1%%=*}
15259
  func_opt_split_arg=${1#*=}
15260
}
15261
 
15262
# func_lo2o object
15263
func_lo2o ()
15264
{
15265
  case ${1} in
15266
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15267
    *)    func_lo2o_result=${1} ;;
15268
  esac
15269
}
15270
 
15271
# func_xform libobj-or-source
15272
func_xform ()
15273
{
15274
  func_xform_result=${1%.*}.lo
15275
}
15276
 
15277
# func_arith arithmetic-term...
15278
func_arith ()
15279
{
15280
  func_arith_result=$(( $* ))
15281
}
15282
 
15283
# func_len string
15284
# STRING may not start with a hyphen.
15285
func_len ()
15286
{
15287
  func_len_result=${#1}
15288
}
15289
 
15290
_LT_EOF
15291
    ;;
15292
  *) # Bourne compatible functions.
15293
    cat << \_LT_EOF >> "$cfgfile"
15294
 
15295
# func_dirname file append nondir_replacement
15296
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15297
# otherwise set result to NONDIR_REPLACEMENT.
15298
func_dirname ()
15299
{
15300
  # Extract subdirectory from the argument.
15301
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15302
  if test "X$func_dirname_result" = "X${1}"; then
15303
    func_dirname_result="${3}"
15304
  else
15305
    func_dirname_result="$func_dirname_result${2}"
15306
  fi
15307
}
15308
 
15309
# func_basename file
15310
func_basename ()
15311
{
15312
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15313
}
15314
 
15315
 
15316
# func_stripname prefix suffix name
15317
# strip PREFIX and SUFFIX off of NAME.
15318
# PREFIX and SUFFIX must not contain globbing or regex special
15319
# characters, hashes, percent signs, but SUFFIX may contain a leading
15320
# dot (in which case that matches only a dot).
15321
# func_strip_suffix prefix name
15322
func_stripname ()
15323
{
15324
  case ${2} in
15325
    .*) func_stripname_result=`$ECHO "X${3}" \
15326
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15327
    *)  func_stripname_result=`$ECHO "X${3}" \
15328
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15329
  esac
15330
}
15331
 
15332
# sed scripts:
15333
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15334
my_sed_long_arg='1s/^-[^=]*=//'
15335
 
15336
# func_opt_split
15337
func_opt_split ()
15338
{
15339
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15340
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15341
}
15342
 
15343
# func_lo2o object
15344
func_lo2o ()
15345
{
15346
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15347
}
15348
 
15349
# func_xform libobj-or-source
15350
func_xform ()
15351
{
15352
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15353
}
15354
 
15355
# func_arith arithmetic-term...
15356
func_arith ()
15357
{
15358
  func_arith_result=`expr "$@"`
15359
}
15360
 
15361
# func_len string
15362
# STRING may not start with a hyphen.
15363
func_len ()
15364
{
15365
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15366
}
15367
 
15368
_LT_EOF
15369
esac
15370
 
15371
case $lt_shell_append in
15372
  yes)
15373
    cat << \_LT_EOF >> "$cfgfile"
15374
 
15375
# func_append var value
15376
# Append VALUE to the end of shell variable VAR.
15377
func_append ()
15378
{
15379
  eval "$1+=\$2"
15380
}
15381
_LT_EOF
15382
    ;;
15383
  *)
15384
    cat << \_LT_EOF >> "$cfgfile"
15385
 
15386
# func_append var value
15387
# Append VALUE to the end of shell variable VAR.
15388
func_append ()
15389
{
15390
  eval "$1=\$$1\$2"
15391
}
15392
 
15393
_LT_EOF
15394
    ;;
15395
  esac
15396
 
15397
 
15398
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15399
    || (rm -f "$cfgfile"; exit 1)
15400
 
15401
  mv -f "$cfgfile" "$ofile" ||
15402
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15403
  chmod +x "$ofile"
15404
 
15405
 ;;
15406
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15407
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15408
  # are listed without --file.  Let's play safe and only enable the eval
15409
  # if we detect the quoting.
15410
  case $CONFIG_FILES in
15411
  *\'*) eval set x "$CONFIG_FILES" ;;
15412
  *)   set x $CONFIG_FILES ;;
15413
  esac
15414
  shift
15415
  for mf
15416
  do
15417
    # Strip MF so we end up with the name of the file.
15418
    mf=`echo "$mf" | sed -e 's/:.*$//'`
15419
    # Check whether this is an Automake generated Makefile or not.
15420
    # We used to match only the files named `Makefile.in', but
15421
    # some people rename them; so instead we look at the file content.
15422
    # Grep'ing the first line is not enough: some people post-process
15423
    # each Makefile.in and add a new line on top of each file to say so.
15424
    # Grep'ing the whole file is not good either: AIX grep has a line
15425
    # limit of 2048, but all sed's we know have understand at least 4000.
15426
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15427
      dirpart=`$as_dirname -- "$mf" ||
15428 19 jeremybenn
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15429
         X"$mf" : 'X\(//\)[^/]' \| \
15430
         X"$mf" : 'X\(//\)$' \| \
15431
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15432 82 jeremybenn
$as_echo X"$mf" |
15433 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15434
            s//\1/
15435
            q
15436
          }
15437
          /^X\(\/\/\)[^/].*/{
15438
            s//\1/
15439
            q
15440
          }
15441
          /^X\(\/\/\)$/{
15442
            s//\1/
15443
            q
15444
          }
15445
          /^X\(\/\).*/{
15446
            s//\1/
15447
            q
15448
          }
15449
          s/.*/./; q'`
15450 82 jeremybenn
    else
15451
      continue
15452
    fi
15453
    # Extract the definition of DEPDIR, am__include, and am__quote
15454
    # from the Makefile without running `make'.
15455
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15456
    test -z "$DEPDIR" && continue
15457
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15458
    test -z "am__include" && continue
15459
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15460
    # When using ansi2knr, U may be empty or an underscore; expand it
15461
    U=`sed -n 's/^U = //p' < "$mf"`
15462
    # Find all dependency output files, they are included files with
15463
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15464
    # simplest approach to changing $(DEPDIR) to its actual value in the
15465
    # expansion.
15466
    for file in `sed -n "
15467
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15468
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15469
      # Make sure the directory exists.
15470
      test -f "$dirpart/$file" && continue
15471
      fdir=`$as_dirname -- "$file" ||
15472 19 jeremybenn
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15473
         X"$file" : 'X\(//\)[^/]' \| \
15474
         X"$file" : 'X\(//\)$' \| \
15475
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15476 82 jeremybenn
$as_echo X"$file" |
15477 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15478
            s//\1/
15479
            q
15480
          }
15481
          /^X\(\/\/\)[^/].*/{
15482
            s//\1/
15483
            q
15484
          }
15485
          /^X\(\/\/\)$/{
15486
            s//\1/
15487
            q
15488
          }
15489
          /^X\(\/\).*/{
15490
            s//\1/
15491
            q
15492
          }
15493
          s/.*/./; q'`
15494 346 jeremybenn
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15495 82 jeremybenn
      # echo "creating $dirpart/$file"
15496
      echo '# dummy' > "$dirpart/$file"
15497
    done
15498 19 jeremybenn
  done
15499 82 jeremybenn
}
15500 19 jeremybenn
 ;;
15501
 
15502
  esac
15503
done # for ac_tag
15504
 
15505
 
15506 346 jeremybenn
as_fn_exit 0
15507 19 jeremybenn
_ACEOF
15508
ac_clean_files=$ac_clean_files_save
15509
 
15510 82 jeremybenn
test $ac_write_fail = 0 ||
15511 346 jeremybenn
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15512 19 jeremybenn
 
15513 82 jeremybenn
 
15514 19 jeremybenn
# configure is writing to config.log, and then calls config.status.
15515
# config.status does its own redirection, appending to config.log.
15516
# Unfortunately, on DOS this fails, as config.log is still kept open
15517
# by configure, so config.status won't be able to write to it; its
15518
# output is simply discarded.  So we exec the FD to /dev/null,
15519
# effectively closing config.log, so it can be properly (re)opened and
15520
# appended to by config.status.  When coming back to configure, we
15521
# need to make the FD available again.
15522
if test "$no_create" != yes; then
15523
  ac_cs_success=:
15524
  ac_config_status_args=
15525
  test "$silent" = yes &&
15526
    ac_config_status_args="$ac_config_status_args --quiet"
15527
  exec 5>/dev/null
15528
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15529
  exec 5>>config.log
15530
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15531
  # would make configure fail if this is the last instruction.
15532 346 jeremybenn
  $ac_cs_success || as_fn_exit $?
15533 19 jeremybenn
fi
15534
 
15535 82 jeremybenn
#
15536
# CONFIG_SUBDIRS section.
15537
#
15538
if test "$no_recursion" != yes; then
15539
 
15540
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15541
  # so they do not pile up.
15542
  ac_sub_configure_args=
15543
  ac_prev=
15544
  eval "set x $ac_configure_args"
15545
  shift
15546
  for ac_arg
15547
  do
15548
    if test -n "$ac_prev"; then
15549
      ac_prev=
15550
      continue
15551
    fi
15552
    case $ac_arg in
15553
    -cache-file | --cache-file | --cache-fil | --cache-fi \
15554
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15555
      ac_prev=cache_file ;;
15556
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15557
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15558
    | --c=*)
15559
      ;;
15560
    --config-cache | -C)
15561
      ;;
15562
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15563
      ac_prev=srcdir ;;
15564
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15565
      ;;
15566
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15567
      ac_prev=prefix ;;
15568
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15569
      ;;
15570
    --disable-option-checking)
15571
      ;;
15572
    *)
15573
      case $ac_arg in
15574
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15575
      esac
15576 346 jeremybenn
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15577 82 jeremybenn
    esac
15578
  done
15579
 
15580
  # Always prepend --prefix to ensure using the same prefix
15581
  # in subdir configurations.
15582
  ac_arg="--prefix=$prefix"
15583
  case $ac_arg in
15584
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15585
  esac
15586
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15587
 
15588
  # Pass --silent
15589
  if test "$silent" = yes; then
15590
    ac_sub_configure_args="--silent $ac_sub_configure_args"
15591
  fi
15592
 
15593
  # Always prepend --disable-option-checking to silence warnings, since
15594
  # different subdirs can have different --enable and --with options.
15595
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15596
 
15597
  ac_popdir=`pwd`
15598
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15599
 
15600
    # Do not complain, so a configure script can configure whichever
15601
    # parts of a large source tree are present.
15602
    test -d "$srcdir/$ac_dir" || continue
15603
 
15604
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15605 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15606 82 jeremybenn
    $as_echo "$ac_msg" >&6
15607 346 jeremybenn
    as_dir="$ac_dir"; as_fn_mkdir_p
15608 82 jeremybenn
    ac_builddir=.
15609
 
15610
case "$ac_dir" in
15611
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15612
*)
15613
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15614
  # A ".." for each directory in $ac_dir_suffix.
15615
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15616
  case $ac_top_builddir_sub in
15617
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15618
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15619
  esac ;;
15620
esac
15621
ac_abs_top_builddir=$ac_pwd
15622
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15623
# for backward compatibility:
15624
ac_top_builddir=$ac_top_build_prefix
15625
 
15626
case $srcdir in
15627
  .)  # We are building in place.
15628
    ac_srcdir=.
15629
    ac_top_srcdir=$ac_top_builddir_sub
15630
    ac_abs_top_srcdir=$ac_pwd ;;
15631
  [\\/]* | ?:[\\/]* )  # Absolute name.
15632
    ac_srcdir=$srcdir$ac_dir_suffix;
15633
    ac_top_srcdir=$srcdir
15634
    ac_abs_top_srcdir=$srcdir ;;
15635
  *) # Relative name.
15636
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15637
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15638
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15639
esac
15640
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15641
 
15642
 
15643
    cd "$ac_dir"
15644
 
15645
    # Check for guested configure; otherwise get Cygnus style configure.
15646
    if test -f "$ac_srcdir/configure.gnu"; then
15647
      ac_sub_configure=$ac_srcdir/configure.gnu
15648
    elif test -f "$ac_srcdir/configure"; then
15649
      ac_sub_configure=$ac_srcdir/configure
15650
    elif test -f "$ac_srcdir/configure.in"; then
15651
      # This should be Cygnus configure.
15652
      ac_sub_configure=$ac_aux_dir/configure
15653
    else
15654 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15655 82 jeremybenn
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15656
      ac_sub_configure=
15657
    fi
15658
 
15659
    # The recursion is here.
15660
    if test -n "$ac_sub_configure"; then
15661
      # Make the cache file name correct relative to the subdirectory.
15662
      case $cache_file in
15663
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15664
      *) # Relative name.
15665
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15666
      esac
15667
 
15668 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15669 82 jeremybenn
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15670
      # The eval makes quoting arguments work.
15671
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15672
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15673 346 jeremybenn
        as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15674 82 jeremybenn
    fi
15675
 
15676
    cd "$ac_popdir"
15677
  done
15678
fi
15679
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15680 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15681 82 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15682
fi
15683
 

powered by: WebSVN 2.1.0

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