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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 226 julius
# From configure.ac Id: configure.ac 224 2010-07-30 10:44:22Z jeremybennett  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 226 julius
# Generated by GNU Autoconf 2.64 for or1ksim 2010-07-30.
5 19 jeremybenn
#
6
# Report bugs to .
7
#
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 226 julius
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
10
# Foundation, Inc.
11
#
12 19 jeremybenn
# This configure script is free software; the Free Software Foundation
13
# gives unlimited permission to copy, distribute and modify it.
14 82 jeremybenn
#
15
# Copyright (C) 1999-2008 OpenCores
16
# Copyright (C) 2008, 2010 Embecosm Limited
17
#
18
# Contributor Jeremy Bennett 
19
#
20
# This file is part of OpenRISC 1000 Architectural Simulator.
21
#
22
# This program is free software; you can redistribute it and/or modify it
23
# under the terms of the GNU General Public License as published by the Free
24
# Software Foundation; either version 3 of the License, or (at your option)
25
# any later version.
26
#
27
# This program is distributed in the hope that it will be useful, but WITHOUT
28
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
29
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
30
# more details.
31
#
32
# You should have received a copy of the GNU General Public License along
33
# with this program.  If not, see .
34 226 julius
## -------------------- ##
35
## M4sh Initialization. ##
36
## -------------------- ##
37 19 jeremybenn
 
38
# Be more Bourne compatible
39
DUALCASE=1; export DUALCASE # for MKS sh
40 226 julius
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 226 julius
  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 226 julius
# 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 226 julius
      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 226 julius
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 226 julius
    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 226 julius
  exit 1
134 19 jeremybenn
fi
135
 
136 226 julius
# 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 226 julius
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
156 19 jeremybenn
 
157
if test "x$CONFIG_SHELL" = x; then
158 226 julius
  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 226 julius
  case \`(set -o) 2>/dev/null\` in #(
167
  *posix*) :
168
    set -o posix ;; #(
169
  *) :
170
     ;;
171
esac
172 19 jeremybenn
fi
173 226 julius
"
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 226 julius
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 226 julius
  exitcode=1; echo positional parameters were not saved.
189 19 jeremybenn
fi
190 226 julius
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 226 julius
  as_have_required=no
200 19 jeremybenn
fi
201 226 julius
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
202 19 jeremybenn
 
203
else
204 226 julius
  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 226 julius
  as_found=:
211
  case $as_dir in #(
212 19 jeremybenn
         /*)
213
           for as_base in sh bash ksh sh5; do
214 226 julius
             # 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 226 julius
  as_found=false
226 19 jeremybenn
done
227 226 julius
$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 226 julius
      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 226 julius
    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 226 julius
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 226 julius
## --------------------- ##
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 226 julius
# 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 226 julius
# 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 226 julius
# 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 226 julius
  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 226 julius
} # 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 226 julius
# 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 226 julius
# 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 226 julius
if expr a : '\(a\)' >/dev/null 2>&1 &&
398
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
399
  as_expr=expr
400 19 jeremybenn
else
401 226 julius
  as_expr=false
402 19 jeremybenn
fi
403
 
404 226 julius
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
405
  as_basename=basename
406 19 jeremybenn
else
407 226 julius
  as_basename=false
408 19 jeremybenn
fi
409
 
410 226 julius
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
411
  as_dirname=dirname
412 19 jeremybenn
else
413 226 julius
  as_dirname=false
414 19 jeremybenn
fi
415
 
416 226 julius
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 226 julius
# 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 226 julius
  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 226 julius
    { $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 226 julius
case `echo -n x` in #(((((
476 19 jeremybenn
-n*)
477 226 julius
  case `echo 'xy\c'` in
478 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479 226 julius
  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 226 julius
  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 226 julius
        case $1 in #(
535 82 jeremybenn
        -*)set "./$1";;
536 19 jeremybenn
        esac;
537 226 julius
        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 121 jeremybenn
exec 7<&0 &1
701 19 jeremybenn
 
702
# Name of the host.
703
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
704
# so uname gets run too.
705
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
706
 
707
#
708
# Initializations.
709
#
710
ac_default_prefix=/usr/local
711
ac_clean_files=
712
ac_config_libobj_dir=.
713
LIBOBJS=
714
cross_compiling=no
715
subdirs=
716
MFLAGS=
717
MAKEFLAGS=
718
 
719
# Identity of this package.
720
PACKAGE_NAME='or1ksim'
721
PACKAGE_TARNAME='or1ksim'
722 224 jeremybenn
PACKAGE_VERSION='2010-07-30'
723
PACKAGE_STRING='or1ksim 2010-07-30'
724 19 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
725 226 julius
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 226 julius
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 226 julius
      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 226 julius
      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 226 julius
      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 226 julius
      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 226 julius
  -*) 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 226 julius
    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 226 julius
  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 226 julius
    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 226 julius
  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 226 julius
  as_fn_error "working directory cannot be determined"
1406 19 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 226 julius
  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 226 julius
  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 226 julius
        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 224 jeremybenn
\`configure' configures or1ksim 2010-07-30 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 224 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 2010-07-30:";;
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 121 jeremybenn
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1583 19 jeremybenn
              you have headers in a nonstandard directory 
1584
  CPP         C preprocessor
1585 82 jeremybenn
  CCAS        assembler compiler command (defaults to CC)
1586
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1587 19 jeremybenn
 
1588
Use these variables to override the choices made by `configure' or to help
1589
it to find libraries and programs with nonstandard names/locations.
1590
 
1591
Report bugs to .
1592
_ACEOF
1593
ac_status=$?
1594
fi
1595
 
1596
if test "$ac_init_help" = "recursive"; then
1597
  # If there are subdirs, report their specific --help.
1598
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599 82 jeremybenn
    test -d "$ac_dir" ||
1600
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601
      continue
1602 19 jeremybenn
    ac_builddir=.
1603
 
1604
case "$ac_dir" in
1605
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606
*)
1607 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1609 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 19 jeremybenn
  case $ac_top_builddir_sub in
1611
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613
  esac ;;
1614
esac
1615
ac_abs_top_builddir=$ac_pwd
1616
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617
# for backward compatibility:
1618
ac_top_builddir=$ac_top_build_prefix
1619
 
1620
case $srcdir in
1621
  .)  # We are building in place.
1622
    ac_srcdir=.
1623
    ac_top_srcdir=$ac_top_builddir_sub
1624
    ac_abs_top_srcdir=$ac_pwd ;;
1625
  [\\/]* | ?:[\\/]* )  # Absolute name.
1626
    ac_srcdir=$srcdir$ac_dir_suffix;
1627
    ac_top_srcdir=$srcdir
1628
    ac_abs_top_srcdir=$srcdir ;;
1629
  *) # Relative name.
1630
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1632
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633
esac
1634
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635
 
1636
    cd "$ac_dir" || { ac_status=$?; continue; }
1637
    # Check for guested configure.
1638
    if test -f "$ac_srcdir/configure.gnu"; then
1639
      echo &&
1640
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641
    elif test -f "$ac_srcdir/configure"; then
1642
      echo &&
1643
      $SHELL "$ac_srcdir/configure" --help=recursive
1644
    else
1645 82 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 19 jeremybenn
    fi || ac_status=$?
1647
    cd "$ac_pwd" || { ac_status=$?; break; }
1648
  done
1649
fi
1650
 
1651
test -n "$ac_init_help" && exit $ac_status
1652
if $ac_init_version; then
1653
  cat <<\_ACEOF
1654 224 jeremybenn
or1ksim configure 2010-07-30
1655 226 julius
generated by GNU Autoconf 2.64
1656 19 jeremybenn
 
1657 226 julius
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 226 julius
 
1684
## ------------------------ ##
1685
## Autoconf initialization. ##
1686
## ------------------------ ##
1687
 
1688
# ac_fn_c_try_compile LINENO
1689
# --------------------------
1690
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1691
ac_fn_c_try_compile ()
1692
{
1693
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694
  rm -f conftest.$ac_objext
1695
  if { { ac_try="$ac_compile"
1696
case "(($ac_try" in
1697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698
  *) ac_try_echo=$ac_try;;
1699
esac
1700
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701
$as_echo "$ac_try_echo"; } >&5
1702
  (eval "$ac_compile") 2>conftest.err
1703
  ac_status=$?
1704
  if test -s conftest.err; then
1705
    grep -v '^ *+' conftest.err >conftest.er1
1706
    cat conftest.er1 >&5
1707
    mv -f conftest.er1 conftest.err
1708
  fi
1709
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710
  test $ac_status = 0; } && {
1711
         test -z "$ac_c_werror_flag" ||
1712
         test ! -s conftest.err
1713
       } && test -s conftest.$ac_objext; then :
1714
  ac_retval=0
1715
else
1716
  $as_echo "$as_me: failed program was:" >&5
1717
sed 's/^/| /' conftest.$ac_ext >&5
1718
 
1719
        ac_retval=1
1720
fi
1721
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722
  return $ac_retval
1723
 
1724
} # ac_fn_c_try_compile
1725
 
1726
# ac_fn_c_try_cpp LINENO
1727
# ----------------------
1728
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729
ac_fn_c_try_cpp ()
1730
{
1731
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1733
case "(($ac_try" in
1734
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735
  *) ac_try_echo=$ac_try;;
1736
esac
1737
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738
$as_echo "$ac_try_echo"; } >&5
1739
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740
  ac_status=$?
1741
  if test -s conftest.err; then
1742
    grep -v '^ *+' conftest.err >conftest.er1
1743
    cat conftest.er1 >&5
1744
    mv -f conftest.er1 conftest.err
1745
  fi
1746
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747
  test $ac_status = 0; } >/dev/null && {
1748
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749
         test ! -s conftest.err
1750
       }; then :
1751
  ac_retval=0
1752
else
1753
  $as_echo "$as_me: failed program was:" >&5
1754
sed 's/^/| /' conftest.$ac_ext >&5
1755
 
1756
    ac_retval=1
1757
fi
1758
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759
  return $ac_retval
1760
 
1761
} # ac_fn_c_try_cpp
1762
 
1763
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1764
# -------------------------------------------------------
1765
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1766
# the include files in INCLUDES and setting the cache variable VAR
1767
# accordingly.
1768
ac_fn_c_check_header_mongrel ()
1769
{
1770
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773
$as_echo_n "checking for $2... " >&6; }
1774
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1775
  $as_echo_n "(cached) " >&6
1776
fi
1777
eval ac_res=\$$3
1778
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779
$as_echo "$ac_res" >&6; }
1780
else
1781
  # Is the header compilable?
1782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1783
$as_echo_n "checking $2 usability... " >&6; }
1784
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785
/* end confdefs.h.  */
1786
$4
1787
#include <$2>
1788
_ACEOF
1789
if ac_fn_c_try_compile "$LINENO"; then :
1790
  ac_header_compiler=yes
1791
else
1792
  ac_header_compiler=no
1793
fi
1794
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1796
$as_echo "$ac_header_compiler" >&6; }
1797
 
1798
# Is the header present?
1799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1800
$as_echo_n "checking $2 presence... " >&6; }
1801
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802
/* end confdefs.h.  */
1803
#include <$2>
1804
_ACEOF
1805
if ac_fn_c_try_cpp "$LINENO"; then :
1806
  ac_header_preproc=yes
1807
else
1808
  ac_header_preproc=no
1809
fi
1810
rm -f conftest.err conftest.$ac_ext
1811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1812
$as_echo "$ac_header_preproc" >&6; }
1813
 
1814
# So?  What about this header?
1815
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816
  yes:no: )
1817
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1818
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1819
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821
    ;;
1822
  no:yes:* )
1823
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1824
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1825
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1826
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1827
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1828
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1829
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1830
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1831
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833
( cat <<\_ASBOX
1834
## ------------------------------------- ##
1835
## Report this to openrisc@opencores.org ##
1836
## ------------------------------------- ##
1837
_ASBOX
1838
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1839
    ;;
1840
esac
1841
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842
$as_echo_n "checking for $2... " >&6; }
1843
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1844
  $as_echo_n "(cached) " >&6
1845
else
1846
  eval "$3=\$ac_header_compiler"
1847
fi
1848
eval ac_res=\$$3
1849
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850
$as_echo "$ac_res" >&6; }
1851
fi
1852
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853
 
1854
} # ac_fn_c_check_header_mongrel
1855
 
1856
# ac_fn_c_try_run LINENO
1857
# ----------------------
1858
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859
# that executables *can* be run.
1860
ac_fn_c_try_run ()
1861
{
1862
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863
  if { { ac_try="$ac_link"
1864
case "(($ac_try" in
1865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866
  *) ac_try_echo=$ac_try;;
1867
esac
1868
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869
$as_echo "$ac_try_echo"; } >&5
1870
  (eval "$ac_link") 2>&5
1871
  ac_status=$?
1872
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874
  { { case "(($ac_try" in
1875
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876
  *) ac_try_echo=$ac_try;;
1877
esac
1878
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879
$as_echo "$ac_try_echo"; } >&5
1880
  (eval "$ac_try") 2>&5
1881
  ac_status=$?
1882
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883
  test $ac_status = 0; }; }; then :
1884
  ac_retval=0
1885
else
1886
  $as_echo "$as_me: program exited with status $ac_status" >&5
1887
       $as_echo "$as_me: failed program was:" >&5
1888
sed 's/^/| /' conftest.$ac_ext >&5
1889
 
1890
       ac_retval=$ac_status
1891
fi
1892
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894
  return $ac_retval
1895
 
1896
} # ac_fn_c_try_run
1897
 
1898
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899
# -------------------------------------------------------
1900
# Tests whether HEADER exists and can be compiled using the include files in
1901
# INCLUDES, setting the cache variable VAR accordingly.
1902
ac_fn_c_check_header_compile ()
1903
{
1904
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906
$as_echo_n "checking for $2... " >&6; }
1907
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908
  $as_echo_n "(cached) " >&6
1909
else
1910
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911
/* end confdefs.h.  */
1912
$4
1913
#include <$2>
1914
_ACEOF
1915
if ac_fn_c_try_compile "$LINENO"; then :
1916
  eval "$3=yes"
1917
else
1918
  eval "$3=no"
1919
fi
1920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921
fi
1922
eval ac_res=\$$3
1923
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924
$as_echo "$ac_res" >&6; }
1925
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926
 
1927
} # ac_fn_c_check_header_compile
1928
 
1929
# ac_fn_c_try_link LINENO
1930
# -----------------------
1931
# Try to link conftest.$ac_ext, and return whether this succeeded.
1932
ac_fn_c_try_link ()
1933
{
1934
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935
  rm -f conftest.$ac_objext conftest$ac_exeext
1936
  if { { ac_try="$ac_link"
1937
case "(($ac_try" in
1938
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939
  *) ac_try_echo=$ac_try;;
1940
esac
1941
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942
$as_echo "$ac_try_echo"; } >&5
1943
  (eval "$ac_link") 2>conftest.err
1944
  ac_status=$?
1945
  if test -s conftest.err; then
1946
    grep -v '^ *+' conftest.err >conftest.er1
1947
    cat conftest.er1 >&5
1948
    mv -f conftest.er1 conftest.err
1949
  fi
1950
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951
  test $ac_status = 0; } && {
1952
         test -z "$ac_c_werror_flag" ||
1953
         test ! -s conftest.err
1954
       } && test -s conftest$ac_exeext && {
1955
         test "$cross_compiling" = yes ||
1956
         $as_test_x conftest$ac_exeext
1957
       }; then :
1958
  ac_retval=0
1959
else
1960
  $as_echo "$as_me: failed program was:" >&5
1961
sed 's/^/| /' conftest.$ac_ext >&5
1962
 
1963
        ac_retval=1
1964
fi
1965
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1966
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1967
  # interfere with the next link command; also delete a directory that is
1968
  # left behind by Apple's compiler.  We do this before executing the actions.
1969
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971
  return $ac_retval
1972
 
1973
} # ac_fn_c_try_link
1974
 
1975
# ac_fn_c_check_func LINENO FUNC VAR
1976
# ----------------------------------
1977
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1978
ac_fn_c_check_func ()
1979
{
1980
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982
$as_echo_n "checking for $2... " >&6; }
1983
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1984
  $as_echo_n "(cached) " >&6
1985
else
1986
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987
/* end confdefs.h.  */
1988
/* Define $2 to an innocuous variant, in case  declares $2.
1989
   For example, HP-UX 11i  declares gettimeofday.  */
1990
#define $2 innocuous_$2
1991
 
1992
/* System header to define __stub macros and hopefully few prototypes,
1993
    which can conflict with char $2 (); below.
1994
    Prefer  to  if __STDC__ is defined, since
1995
     exists even on freestanding compilers.  */
1996
 
1997
#ifdef __STDC__
1998
# include 
1999
#else
2000
# include 
2001
#endif
2002
 
2003
#undef $2
2004
 
2005
/* Override any GCC internal prototype to avoid an error.
2006
   Use char because int might match the return type of a GCC
2007
   builtin and then its argument prototype would still apply.  */
2008
#ifdef __cplusplus
2009
extern "C"
2010
#endif
2011
char $2 ();
2012
/* The GNU C library defines this for functions which it implements
2013
    to always fail with ENOSYS.  Some functions are actually named
2014
    something starting with __ and the normal name is an alias.  */
2015
#if defined __stub_$2 || defined __stub___$2
2016
choke me
2017
#endif
2018
 
2019
int
2020
main ()
2021
{
2022
return $2 ();
2023
  ;
2024
  return 0;
2025
}
2026
_ACEOF
2027
if ac_fn_c_try_link "$LINENO"; then :
2028
  eval "$3=yes"
2029
else
2030
  eval "$3=no"
2031
fi
2032
rm -f core conftest.err conftest.$ac_objext \
2033
    conftest$ac_exeext conftest.$ac_ext
2034
fi
2035
eval ac_res=\$$3
2036
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037
$as_echo "$ac_res" >&6; }
2038
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039
 
2040
} # ac_fn_c_check_func
2041
 
2042
# ac_fn_c_check_decl LINENO SYMBOL VAR
2043
# ------------------------------------
2044
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2045
ac_fn_c_check_decl ()
2046
{
2047
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2049
$as_echo_n "checking whether $2 is declared... " >&6; }
2050
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2051
  $as_echo_n "(cached) " >&6
2052
else
2053
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054
/* end confdefs.h.  */
2055
$4
2056
int
2057
main ()
2058
{
2059
#ifndef $2
2060
  (void) $2;
2061
#endif
2062
 
2063
  ;
2064
  return 0;
2065
}
2066
_ACEOF
2067
if ac_fn_c_try_compile "$LINENO"; then :
2068
  eval "$3=yes"
2069
else
2070
  eval "$3=no"
2071
fi
2072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073
fi
2074
eval ac_res=\$$3
2075
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076
$as_echo "$ac_res" >&6; }
2077
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078
 
2079
} # ac_fn_c_check_decl
2080
 
2081
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2082
# -------------------------------------------
2083
# Tests whether TYPE exists after having included INCLUDES, setting cache
2084
# variable VAR accordingly.
2085
ac_fn_c_check_type ()
2086
{
2087
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089
$as_echo_n "checking for $2... " >&6; }
2090
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2091
  $as_echo_n "(cached) " >&6
2092
else
2093
  eval "$3=no"
2094
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095
/* end confdefs.h.  */
2096
$4
2097
int
2098
main ()
2099
{
2100
if (sizeof ($2))
2101
         return 0;
2102
  ;
2103
  return 0;
2104
}
2105
_ACEOF
2106
if ac_fn_c_try_compile "$LINENO"; then :
2107
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108
/* end confdefs.h.  */
2109
$4
2110
int
2111
main ()
2112
{
2113
if (sizeof (($2)))
2114
            return 0;
2115
  ;
2116
  return 0;
2117
}
2118
_ACEOF
2119
if ac_fn_c_try_compile "$LINENO"; then :
2120
 
2121
else
2122
  eval "$3=yes"
2123
fi
2124
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125
fi
2126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127
fi
2128
eval ac_res=\$$3
2129
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130
$as_echo "$ac_res" >&6; }
2131
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132
 
2133
} # ac_fn_c_check_type
2134
 
2135
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2136
# --------------------------------------------
2137
# Tries to find the compile-time value of EXPR in a program that includes
2138
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2139
# computed
2140
ac_fn_c_compute_int ()
2141
{
2142
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143
  if test "$cross_compiling" = yes; then
2144
    # Depending upon the size, compute the lo and hi bounds.
2145
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146
/* end confdefs.h.  */
2147
$4
2148
int
2149
main ()
2150
{
2151
static int test_array [1 - 2 * !(($2) >= 0)];
2152
test_array [0] = 0
2153
 
2154
  ;
2155
  return 0;
2156
}
2157
_ACEOF
2158
if ac_fn_c_try_compile "$LINENO"; then :
2159
  ac_lo=0 ac_mid=0
2160
  while :; do
2161
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162
/* end confdefs.h.  */
2163
$4
2164
int
2165
main ()
2166
{
2167
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2168
test_array [0] = 0
2169
 
2170
  ;
2171
  return 0;
2172
}
2173
_ACEOF
2174
if ac_fn_c_try_compile "$LINENO"; then :
2175
  ac_hi=$ac_mid; break
2176
else
2177
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2178
                        if test $ac_lo -le $ac_mid; then
2179
                          ac_lo= ac_hi=
2180
                          break
2181
                        fi
2182
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2183
fi
2184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185
  done
2186
else
2187
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188
/* end confdefs.h.  */
2189
$4
2190
int
2191
main ()
2192
{
2193
static int test_array [1 - 2 * !(($2) < 0)];
2194
test_array [0] = 0
2195
 
2196
  ;
2197
  return 0;
2198
}
2199
_ACEOF
2200
if ac_fn_c_try_compile "$LINENO"; then :
2201
  ac_hi=-1 ac_mid=-1
2202
  while :; do
2203
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204
/* end confdefs.h.  */
2205
$4
2206
int
2207
main ()
2208
{
2209
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2210
test_array [0] = 0
2211
 
2212
  ;
2213
  return 0;
2214
}
2215
_ACEOF
2216
if ac_fn_c_try_compile "$LINENO"; then :
2217
  ac_lo=$ac_mid; break
2218
else
2219
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2220
                        if test $ac_mid -le $ac_hi; then
2221
                          ac_lo= ac_hi=
2222
                          break
2223
                        fi
2224
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2225
fi
2226
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227
  done
2228
else
2229
  ac_lo= ac_hi=
2230
fi
2231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232
fi
2233
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234
# Binary search between lo and hi bounds.
2235
while test "x$ac_lo" != "x$ac_hi"; do
2236
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2237
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238
/* end confdefs.h.  */
2239
$4
2240
int
2241
main ()
2242
{
2243
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2244
test_array [0] = 0
2245
 
2246
  ;
2247
  return 0;
2248
}
2249
_ACEOF
2250
if ac_fn_c_try_compile "$LINENO"; then :
2251
  ac_hi=$ac_mid
2252
else
2253
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2254
fi
2255
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256
done
2257
case $ac_lo in #((
2258
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2259
'') ac_retval=1 ;;
2260
esac
2261
  else
2262
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263
/* end confdefs.h.  */
2264
$4
2265
static long int longval () { return $2; }
2266
static unsigned long int ulongval () { return $2; }
2267
#include 
2268
#include 
2269
int
2270
main ()
2271
{
2272
 
2273
  FILE *f = fopen ("conftest.val", "w");
2274
  if (! f)
2275
    return 1;
2276
  if (($2) < 0)
2277
    {
2278
      long int i = longval ();
2279
      if (i != ($2))
2280
        return 1;
2281
      fprintf (f, "%ld", i);
2282
    }
2283
  else
2284
    {
2285
      unsigned long int i = ulongval ();
2286
      if (i != ($2))
2287
        return 1;
2288
      fprintf (f, "%lu", i);
2289
    }
2290
  /* Do not output a trailing newline, as this causes \r\n confusion
2291
     on some platforms.  */
2292
  return ferror (f) || fclose (f) != 0;
2293
 
2294
  ;
2295
  return 0;
2296
}
2297
_ACEOF
2298
if ac_fn_c_try_run "$LINENO"; then :
2299
  echo >>conftest.val; read $3 
2300
else
2301
  ac_retval=1
2302
fi
2303
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2304
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2305
rm -f conftest.val
2306
 
2307
  fi
2308
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2309
  return $ac_retval
2310
 
2311
} # ac_fn_c_compute_int
2312 19 jeremybenn
cat >config.log <<_ACEOF
2313
This file contains any messages produced by compilers while
2314
running configure, to aid debugging if configure makes a mistake.
2315
 
2316 224 jeremybenn
It was created by or1ksim $as_me 2010-07-30, which was
2317 226 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 226 julius
    $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 226 julius
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2392 19 jeremybenn
    2)
2393 226 julius
      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 226 julius
      as_fn_append ac_configure_args " '$ac_arg'"
2410 19 jeremybenn
      ;;
2411
    esac
2412
  done
2413
done
2414 226 julius
{ 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 226 julius
      *_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 226 julius
      *) { 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 226 julius
  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 226 julius
$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 226 julius
cat >>confdefs.h <<_ACEOF
2550
#define PACKAGE_URL "$PACKAGE_URL"
2551
_ACEOF
2552 19 jeremybenn
 
2553 226 julius
 
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 121 jeremybenn
  if test -r "$ac_site_file"; then
2571 226 julius
    { $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 121 jeremybenn
  # Some versions of bash will fail to source /dev/null (special
2580
  # files actually), so we avoid doing that.
2581
  if test -f "$cache_file"; then
2582 226 julius
    { $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 226 julius
  { $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 226 julius
      { $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 226 julius
      { $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 226 julius
          { $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 226 julius
          { $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 226 julius
        { $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 226 julius
        { $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 226 julius
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2642 19 jeremybenn
    esac
2643
  fi
2644
done
2645
if $ac_cache_corrupted; then
2646 226 julius
  { $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 226 julius
  { $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 226 julius
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2651 19 jeremybenn
fi
2652 226 julius
## -------------------- ##
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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2676 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702 82 jeremybenn
$as_echo "$CC" >&6; }
2703 19 jeremybenn
else
2704 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2716 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $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 226 julius
  { $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 226 julius
{ $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2769 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 82 jeremybenn
$as_echo "$CC" >&6; }
2796 19 jeremybenn
else
2797 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2809 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 82 jeremybenn
$as_echo "$CC" >&6; }
2853 19 jeremybenn
else
2854 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2868 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2894 82 jeremybenn
$as_echo "$CC" >&6; }
2895 19 jeremybenn
else
2896 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2912 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $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 226 julius
  { $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 226 julius
{ $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 226 julius
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 226 julius
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 226 julius
$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 226 julius
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 226 julius
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 226 julius
  if test -s conftest.err; then
2984
    sed '10a\
2985
... rest of stderr output deleted ...
2986
         10q' conftest.err >conftest.er1
2987
    cat conftest.er1 >&5
2988
    rm -f conftest.er1 conftest.err
2989
  fi
2990
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991
  test $ac_status = 0; }
2992
done
2993 19 jeremybenn
 
2994 226 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 19 jeremybenn
/* end confdefs.h.  */
2996 226 julius
#include 
2997 19 jeremybenn
int
2998
main ()
2999
{
3000 226 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 226 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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3013 121 jeremybenn
$as_echo_n "checking for C compiler default output file name... " >&6; }
3014 82 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3015
 
3016
# The possible output files:
3017
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3018
 
3019 19 jeremybenn
ac_rmfiles=
3020
for ac_file in $ac_files
3021
do
3022
  case $ac_file in
3023 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3024 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3025
  esac
3026
done
3027
rm -f $ac_rmfiles
3028
 
3029 226 julius
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 226 julius
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 226 julius
  $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 226 julius
        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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3076 121 jeremybenn
$as_echo "$ac_file" >&6; }
3077 226 julius
if test -z "$ac_file"; then :
3078 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3079 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3080
 
3081 226 julius
{ { $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 226 julius
{ 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 121 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
3090
# the compiler is broken, or we cross compile.
3091 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3092 121 jeremybenn
$as_echo_n "checking whether the C compiler works... " >&6; }
3093
# If not cross compiling, check that we can run a simple program.
3094
if test "$cross_compiling" != yes; then
3095
  if { ac_try='./$ac_file'
3096 226 julius
  { { case "(($ac_try" in
3097 121 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098
  *) ac_try_echo=$ac_try;;
3099
esac
3100 226 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101
$as_echo "$ac_try_echo"; } >&5
3102 121 jeremybenn
  (eval "$ac_try") 2>&5
3103
  ac_status=$?
3104 226 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105
  test $ac_status = 0; }; }; then
3106 121 jeremybenn
    cross_compiling=no
3107
  else
3108
    if test "$cross_compiling" = maybe; then
3109
        cross_compiling=yes
3110
    else
3111 226 julius
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3112 121 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3113 226 julius
as_fn_error "cannot run C compiled programs.
3114 121 jeremybenn
If you meant to cross compile, use \`--host'.
3115 226 julius
See \`config.log' for more details." "$LINENO" 5; }
3116 121 jeremybenn
    fi
3117
  fi
3118
fi
3119 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3120 121 jeremybenn
$as_echo "yes" >&6; }
3121
 
3122 226 julius
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 121 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
3125
# the compiler is broken, or we cross compile.
3126 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3127 121 jeremybenn
$as_echo_n "checking whether we are cross compiling... " >&6; }
3128 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3129 121 jeremybenn
$as_echo "$cross_compiling" >&6; }
3130
 
3131 226 julius
{ $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 226 julius
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 226 julius
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 226 julius
  $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 226 julius
  { { $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 226 julius
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 121 jeremybenn
rm -f conftest$ac_cv_exeext
3164 226 julius
{ $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 226 julius
{ $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 226 julius
if test "${ac_cv_objext+set}" = set; then :
3173 82 jeremybenn
  $as_echo_n "(cached) " >&6
3174 19 jeremybenn
else
3175 226 julius
  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 226 julius
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 226 julius
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 226 julius
  $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 226 julius
{ { $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 226 julius
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 226 julius
{ $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 226 julius
{ $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 226 julius
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3224 82 jeremybenn
  $as_echo_n "(cached) " >&6
3225 19 jeremybenn
else
3226 226 julius
  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 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
3241 19 jeremybenn
  ac_compiler_gnu=yes
3242
else
3243 226 julius
  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 226 julius
{ $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 226 julius
{ $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 226 julius
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 226 julius
   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 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
3279 19 jeremybenn
  ac_cv_prog_cc_g=yes
3280
else
3281 226 julius
  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 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
3294
 
3295 121 jeremybenn
else
3296 226 julius
  ac_c_werror_flag=$ac_save_c_werror_flag
3297 19 jeremybenn
         CFLAGS="-g"
3298 226 julius
         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 226 julius
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 226 julius
{ $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 226 julius
{ $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 226 julius
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 226 julius
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 226 julius
  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 226 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3414 82 jeremybenn
$as_echo "none needed" >&6; } ;;
3415 19 jeremybenn
  xno)
3416 226 julius
    { $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 226 julius
    { $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 226 julius
if test "x$ac_cv_prog_cc_c89" != xno; then :
3424 19 jeremybenn
 
3425 226 julius
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 226 julius
{ $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 226 julius
  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 226 julius
  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 226 julius
if ac_fn_c_try_cpp "$LINENO"; then :
3471
 
3472 121 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 226 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 91 jeremybenn
/* end confdefs.h.  */
3482
#include 
3483
_ACEOF
3484 226 julius
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 226 julius
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 226 julius
{ $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 226 julius
  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 226 julius
if ac_fn_c_try_cpp "$LINENO"; then :
3530
 
3531 121 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 226 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 91 jeremybenn
/* end confdefs.h.  */
3541
#include 
3542
_ACEOF
3543 226 julius
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 226 julius
if $ac_preproc_ok; then :
3557
 
3558 91 jeremybenn
else
3559 226 julius
  { { $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 226 julius
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 226 julius
{ $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 226 julius
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 226 julius
    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 226 julius
    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 226 julius
  done
3621 19 jeremybenn
IFS=$as_save_IFS
3622 82 jeremybenn
  if test -z "$ac_cv_path_GREP"; then
3623 226 julius
    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 226 julius
{ $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3636 82 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3637 226 julius
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 226 julius
    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 226 julius
    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 226 julius
  done
3687 19 jeremybenn
IFS=$as_save_IFS
3688 82 jeremybenn
  if test -z "$ac_cv_path_EGREP"; then
3689 226 julius
    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 226 julius
{ $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 226 julius
{ $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 226 julius
if test "${ac_cv_header_stdc+set}" = set; then :
3705 91 jeremybenn
  $as_echo_n "(cached) " >&6
3706
else
3707 226 julius
  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 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
3723 91 jeremybenn
  ac_cv_header_stdc=yes
3724
else
3725 226 julius
  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 226 julius
  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 226 julius
  $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 226 julius
  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 226 julius
  $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 226 julius
  if test "$cross_compiling" = yes; then :
3766 91 jeremybenn
  :
3767
else
3768 226 julius
  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 226 julius
if ac_fn_c_try_run "$LINENO"; then :
3796
 
3797 121 jeremybenn
else
3798 226 julius
  ac_cv_header_stdc=no
3799 91 jeremybenn
fi
3800 226 julius
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 226 julius
{ $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 226 julius
$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 226 julius
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 226 julius
  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 226 julius
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3844 91 jeremybenn
 
3845
 
3846 226 julius
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3847 91 jeremybenn
 
3848
 
3849 226 julius
$as_echo "#define _MINIX 1" >>confdefs.h
3850 91 jeremybenn
 
3851
  fi
3852
 
3853
 
3854 226 julius
  { $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 226 julius
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3857 91 jeremybenn
  $as_echo_n "(cached) " >&6
3858
else
3859 226 julius
  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 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
3873 91 jeremybenn
  ac_cv_safe_to_define___extensions__=yes
3874
else
3875 226 julius
  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 226 julius
{ $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 226 julius
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3883 91 jeremybenn
 
3884 226 julius
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3885 91 jeremybenn
 
3886 226 julius
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3887 91 jeremybenn
 
3888 226 julius
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3889 91 jeremybenn
 
3890 226 julius
  $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 226 julius
  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 226 julius
  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 226 julius
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3929 91 jeremybenn
 
3930 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3931 91 jeremybenn
$as_echo_n "checking build system type... " >&6; }
3932 226 julius
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 226 julius
  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 226 julius
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3942 91 jeremybenn
 
3943
fi
3944 226 julius
{ $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 226 julius
*) 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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3965 91 jeremybenn
$as_echo_n "checking host system type... " >&6; }
3966 226 julius
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 226 julius
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3974 91 jeremybenn
fi
3975
 
3976
fi
3977 226 julius
{ $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 226 julius
*) 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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3998 91 jeremybenn
$as_echo_n "checking target system type... " >&6; }
3999 226 julius
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 226 julius
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4007 91 jeremybenn
fi
4008
 
4009
fi
4010 226 julius
{ $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 226 julius
*) 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 226 julius
    { $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 226 julius
{ $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 226 julius
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 226 julius
     { 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 226 julius
    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 226 julius
    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 226 julius
  done
4116 91 jeremybenn
IFS=$as_save_IFS
4117
  if test -z "$ac_cv_path_SED"; then
4118 226 julius
    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 226 julius
{ $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4144 82 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
4145 226 julius
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 226 julius
    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 226 julius
    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 226 julius
  done
4195 82 jeremybenn
IFS=$as_save_IFS
4196
  if test -z "$ac_cv_path_FGREP"; then
4197 226 julius
    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 226 julius
{ $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 226 julius
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 226 julius
  { $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 226 julius
  { $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 226 julius
  { $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 226 julius
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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4308 82 jeremybenn
$as_echo "$LD" >&6; }
4309 19 jeremybenn
else
4310 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 82 jeremybenn
$as_echo "no" >&6; }
4312 19 jeremybenn
fi
4313 226 julius
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 226 julius
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 226 julius
{ $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 226 julius
{ $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 226 julius
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 226 julius
{ $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4403 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4429 82 jeremybenn
$as_echo "$DUMPBIN" >&6; }
4430
else
4431 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4447 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4473 82 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
4474
else
4475 226 julius
  { $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 226 julius
{ $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 226 julius
{ $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 226 julius
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 226 julius
  (eval echo "\"\$as_me:4515: $ac_compile\"" >&5)
4516 82 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
4517
  cat conftest.err >&5
4518 226 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 226 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 226 julius
{ $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 226 julius
{ $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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4536 82 jeremybenn
$as_echo "yes" >&6; }
4537 19 jeremybenn
else
4538 226 julius
  { $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 226 julius
{ $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 226 julius
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 226 julius
  { $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 226 julius
  { $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 226 julius
{ $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4691 82 jeremybenn
$as_echo "$xsi_shell" >&6; }
4692
 
4693
 
4694 226 julius
{ $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 226 julius
{ $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 226 julius
{ $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 226 julius
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 226 julius
{ $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4773 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4799 82 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4800
else
4801 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4813 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4839 82 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4840
else
4841 226 julius
  { $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 226 julius
{ $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 226 julius
{ $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 226 julius
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 226 julius
{ $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5088 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5114 82 jeremybenn
$as_echo "$AR" >&6; }
5115
else
5116 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5128 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5154 82 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
5155
else
5156 226 julius
  { $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 226 julius
{ $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5193 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5219 82 jeremybenn
$as_echo "$STRIP" >&6; }
5220
else
5221 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5233 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5259 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
5260
else
5261 226 julius
  { $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 226 julius
{ $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5292 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5318 82 jeremybenn
$as_echo "$RANLIB" >&6; }
5319
else
5320 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5332 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5358 82 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
5359
else
5360 226 julius
  { $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 226 julius
{ $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 226 julius
{ $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 226 julius
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 226 julius
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5566 82 jeremybenn
  (eval $ac_compile) 2>&5
5567
  ac_status=$?
5568 226 julius
  $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 226 julius
    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 226 julius
  $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 226 julius
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5630 82 jeremybenn
  (eval $ac_link) 2>&5
5631
  ac_status=$?
5632 226 julius
  $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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5668 82 jeremybenn
$as_echo "failed" >&6; }
5669
else
5670 226 julius
  { $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 226 julius
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 226 julius
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5709 19 jeremybenn
  (eval $ac_compile) 2>&5
5710
  ac_status=$?
5711 226 julius
  $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 226 julius
  echo '#line 5726 "configure"' > conftest.$ac_ext
5727
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5728 19 jeremybenn
  (eval $ac_compile) 2>&5
5729
  ac_status=$?
5730 226 julius
  $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 226 julius
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5766 19 jeremybenn
  (eval $ac_compile) 2>&5
5767
  ac_status=$?
5768 226 julius
  $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 226 julius
  { $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 226 julius
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 226 julius
     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 226 julius
if ac_fn_c_try_link "$LINENO"; then :
5841 19 jeremybenn
  lt_cv_cc_needs_belf=yes
5842
else
5843 226 julius
  lt_cv_cc_needs_belf=no
5844 19 jeremybenn
fi
5845 226 julius
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 226 julius
{ $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 226 julius
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5865 19 jeremybenn
  (eval $ac_compile) 2>&5
5866
  ac_status=$?
5867 226 julius
  $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5896 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5922 82 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5923
else
5924 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5936 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5962 82 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5963
else
5964 226 julius
  { $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 226 julius
{ $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5988 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6014 82 jeremybenn
$as_echo "$NMEDIT" >&6; }
6015
else
6016 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6028 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6054 82 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
6055
else
6056 226 julius
  { $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 226 julius
{ $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6080 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6106 82 jeremybenn
$as_echo "$LIPO" >&6; }
6107
else
6108 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6120 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6146 82 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
6147
else
6148 226 julius
  { $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 226 julius
{ $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6172 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6198 82 jeremybenn
$as_echo "$OTOOL" >&6; }
6199
else
6200 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6212 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6238 82 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
6239
else
6240 226 julius
  { $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 226 julius
{ $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6264 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6290 82 jeremybenn
$as_echo "$OTOOL64" >&6; }
6291
else
6292 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6304 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6330 82 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
6331
else
6332 226 julius
  { $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 226 julius
{ $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 226 julius
    { $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 226 julius
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 226 julius
{ $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 226 julius
    { $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 226 julius
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 226 julius
      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 226 julius
if ac_fn_c_try_link "$LINENO"; then :
6427 82 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
6428
else
6429 226 julius
  lt_cv_ld_exported_symbols_list=no
6430 82 jeremybenn
fi
6431 226 julius
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 226 julius
{ $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 226 julius
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 226 julius
#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 226 julius
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 226 julius
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 226 julius
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 226 julius
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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6660 82 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6661 226 julius
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 226 julius
{ $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 226 julius
    { $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 226 julius
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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6821 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6822 19 jeremybenn
else
6823 226 julius
  { $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 226 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6834 82 jeremybenn
$as_echo_n "checking for file... " >&6; }
6835 226 julius
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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6887 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6888 19 jeremybenn
else
6889 226 julius
  { $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 226 julius
  { $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 226 julius
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 226 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 226 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 226 julius
{ $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 226 julius
{ $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 226 julius
{ $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 226 julius
  { $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 226 julius
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 226 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 226 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 226 julius
{ $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 226 julius
{ $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 226 julius
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 226 julius
{ $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 226 julius
  { $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 226 julius
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 226 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 226 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 226 julius
{ $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 226 julius
  { $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 226 julius
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 226 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 226 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 226 julius
{ $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 226 julius
  { $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 226 julius
  { $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 226 julius
    { $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 226 julius
  { $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 226 julius
        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 226 julius
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 226 julius
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 226 julius
         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 226 julius
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 226 julius
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 226 julius
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272
/* end confdefs.h.  */
8273 82 jeremybenn
int foo(void) {}
8274
_ACEOF
8275 226 julius
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 226 julius
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 226 julius
{ $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 226 julius
      { $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 226 julius
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8579 19 jeremybenn
  (eval $ac_compile) 2>&5
8580
  ac_status=$?
8581 226 julius
  $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 226 julius
        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 226 julius
  $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 226 julius
      { $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 226 julius
  { $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 226 julius
  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 226 julius
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 226 julius
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 226 julius
{ $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 226 julius
  { $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 226 julius
{ $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 226 julius
    { $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 226 julius
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 226 julius
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 226 julius
if ac_fn_c_try_link "$LINENO"; then :
9636 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9637
else
9638 226 julius
  ac_cv_lib_dl_dlopen=no
9639 19 jeremybenn
fi
9640 226 julius
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 226 julius
{ $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 226 julius
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 226 julius
    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 226 julius
  { $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 226 julius
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 226 julius
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 226 julius
if ac_fn_c_try_link "$LINENO"; then :
9689 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
9690
else
9691 226 julius
  ac_cv_lib_dld_shl_load=no
9692 19 jeremybenn
fi
9693 226 julius
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 226 julius
{ $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 226 julius
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 226 julius
  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 226 julius
  { $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 226 julius
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 226 julius
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 226 julius
if ac_fn_c_try_link "$LINENO"; then :
9732 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9733
else
9734 226 julius
  ac_cv_lib_dl_dlopen=no
9735 19 jeremybenn
fi
9736 226 julius
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 226 julius
{ $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 226 julius
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 226 julius
  { $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 226 julius
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 226 julius
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 226 julius
if ac_fn_c_try_link "$LINENO"; then :
9771 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
9772
else
9773 226 julius
  ac_cv_lib_svld_dlopen=no
9774 19 jeremybenn
fi
9775 226 julius
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 226 julius
{ $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 226 julius
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 226 julius
  { $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 226 julius
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 226 julius
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 226 julius
if ac_fn_c_try_link "$LINENO"; then :
9810 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
9811
else
9812 226 julius
  ac_cv_lib_dld_dld_link=no
9813 19 jeremybenn
fi
9814 226 julius
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 226 julius
{ $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 226 julius
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 226 julius
    { $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 226 julius
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 226 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 226 julius
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9930 19 jeremybenn
  (eval $ac_link) 2>&5
9931
  ac_status=$?
9932 226 julius
  $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 226 julius
{ $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 226 julius
      { $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 226 julius
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 226 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 226 julius
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10026 19 jeremybenn
  (eval $ac_link) 2>&5
10027
  ac_status=$?
10028 226 julius
  $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 226 julius
{ $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 226 julius
{ $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 226 julius
  { $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 226 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10100 82 jeremybenn
$as_echo "yes" >&6; }
10101 19 jeremybenn
    else
10102 226 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 82 jeremybenn
$as_echo "no" >&6; }
10104 19 jeremybenn
    fi
10105
    ;;
10106
  *)
10107 226 julius
    { $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 226 julius
  { $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 226 julius
  { $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 226 julius
  { $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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10152 82 jeremybenn
$as_echo "$enable_shared" >&6; }
10153 19 jeremybenn
 
10154 226 julius
  { $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 226 julius
  { $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 226 julius
{ $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 226 julius
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 226 julius
    # 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 226 julius
  ?:[\\/]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 226 julius
  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 226 julius
{ $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 226 julius
{ $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 226 julius
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
10300 82 jeremybenn
esac
10301
case $srcdir in
10302
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10303 226 julius
    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 226 julius
      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 226 julius
   as_fn_error "newly created file is older than distributed files!
10336
Check your system clock" "$LINENO" 5
10337 19 jeremybenn
fi
10338 226 julius
{ $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 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10388 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10389 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10415 82 jeremybenn
$as_echo "$STRIP" >&6; }
10416
else
10417 226 julius
  { $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10429 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10455 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
10456
else
10457 226 julius
  { $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 226 julius
{ $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 226 julius
{ $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 226 julius
  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 226 julius
    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 226 julius
  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 121 jeremybenn
    test -d ./--version && rmdir ./--version
10515 19 jeremybenn
    MKDIR_P="$ac_install_sh -d"
10516
  fi
10517
fi
10518 226 julius
{ $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 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10533 226 julius
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 226 julius
    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 226 julius
    $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 226 julius
  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 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10559 82 jeremybenn
$as_echo "$AWK" >&6; }
10560 19 jeremybenn
else
10561 226 julius
  { $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 226 julius
{ $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 226 julius
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 226 julius
  { $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 226 julius
  { $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 226 julius
{ $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 226 julius
{ $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 226 julius
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 226 julius
    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 224 jeremybenn
 VERSION='2010-07-30'
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 226 julius
{ $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 226 julius
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 226 julius
{ $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 226 julius
$as_echo "#define OR32_TYPES 1" >>confdefs.h
10875 82 jeremybenn
;;
10876
dlx*)   CPU_ARCH=dlx;
10877
        ARCH_ISA=DLX;;
10878 226 julius
*)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
10879 82 jeremybenn
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
10880
        CPU_ARCH=or32;
10881
        ARCH_ISA=OR32;
10882
 
10883 226 julius
$as_echo "#define OR32_TYPES 1" >>confdefs.h
10884 82 jeremybenn
;;
10885
esac
10886
 
10887
# determine endianism from target CPU name. If it has "little" in the name,
10888
# then its litte endian, otherwise its big endian (default for OR1K)
10889
case "$target_cpu" in
10890
*little*)
10891 226 julius
$as_echo "#define OR32_LITTLE_ENDIAN 1" >>confdefs.h
10892 82 jeremybenn
;;
10893
       *)
10894 226 julius
$as_echo "#define OR32_BIG_ENDIAN 1" >>confdefs.h
10895 82 jeremybenn
;;
10896
esac
10897
 
10898
 
10899
 
10900
# Set the CFLAGS we want
10901
CFLAGS="$CFLAGS -g -Wall -Werror -O2 -D$ARCH_ISA"
10902
 
10903
# By default we simply use the C compiler to build assembly code.
10904
 
10905
test "${CCAS+set}" = set || CCAS=$CC
10906
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10907
 
10908
 
10909
 
10910
depcc="$CCAS"   am_compiler_list=
10911
 
10912 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10913 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10914 226 julius
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
10915 82 jeremybenn
  $as_echo_n "(cached) " >&6
10916 19 jeremybenn
else
10917
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10918
  # We make a subdir and do the tests there.  Otherwise we can end up
10919
  # making bogus files that we don't know about and never remove.  For
10920
  # instance it was reported that on HP-UX the gcc test will end up
10921
  # making a dummy file named `D' -- because `-MD' means `put the output
10922
  # in D'.
10923
  mkdir conftest.dir
10924
  # Copy depcomp to subdir because otherwise we won't find it if we're
10925
  # using a relative directory.
10926
  cp "$am_depcomp" conftest.dir
10927
  cd conftest.dir
10928
  # We will build objects and dependencies in a subdirectory because
10929
  # it helps to detect inapplicable dependency modes.  For instance
10930
  # both Tru64's cc and ICC support -MD to output dependencies as a
10931
  # side effect of compilation, but ICC will put the dependencies in
10932
  # the current directory while Tru64 will put them in the object
10933
  # directory.
10934
  mkdir sub
10935
 
10936 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
10937 19 jeremybenn
  if test "$am_compiler_list" = ""; then
10938
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10939
  fi
10940 82 jeremybenn
  am__universal=false
10941
 
10942
 
10943 19 jeremybenn
  for depmode in $am_compiler_list; do
10944
    # Setup a source with many dependencies, because some compilers
10945
    # like to wrap large dependency lists on column 80 (with \), and
10946
    # we should not choose a depcomp mode which is confused by this.
10947
    #
10948
    # We need to recreate these files for each test, as the compiler may
10949
    # overwrite some of them when testing with obscure command lines.
10950
    # This happens at least with the AIX C compiler.
10951
    : > sub/conftest.c
10952
    for i in 1 2 3 4 5 6; do
10953
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10954
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10955
      # Solaris 8's {/usr,}/bin/sh.
10956
      touch sub/conftst$i.h
10957
    done
10958
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10959
 
10960 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10961
    # mode.  It turns out that the SunPro C++ compiler does not properly
10962
    # handle `-M -o', and we need to detect this.  Also, some Intel
10963
    # versions had trouble with output in subdirs
10964
    am__obj=sub/conftest.${OBJEXT-o}
10965
    am__minus_obj="-o $am__obj"
10966 19 jeremybenn
    case $depmode in
10967 82 jeremybenn
    gcc)
10968
      # This depmode causes a compiler race in universal mode.
10969
      test "$am__universal" = false || continue
10970
      ;;
10971 19 jeremybenn
    nosideeffect)
10972
      # after this tag, mechanisms are not by side-effect, so they'll
10973
      # only be used when explicitly requested
10974
      if test "x$enable_dependency_tracking" = xyes; then
10975
        continue
10976
      else
10977
        break
10978
      fi
10979
      ;;
10980 82 jeremybenn
    msvisualcpp | msvcmsys)
10981
      # This compiler won't grok `-c -o', but also, the minuso test has
10982
      # not run yet.  These depmodes are late enough in the game, and
10983
      # so weak that their functioning should not be impacted.
10984
      am__obj=conftest.${OBJEXT-o}
10985
      am__minus_obj=
10986
      ;;
10987 19 jeremybenn
    none) break ;;
10988
    esac
10989
    if depmode=$depmode \
10990 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
10991 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10992 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10993 19 jeremybenn
         >/dev/null 2>conftest.err &&
10994
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10995
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10996 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10997 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10998
      # icc doesn't choke on unknown options, it will just issue warnings
10999
      # or remarks (even with -Werror).  So we grep stderr for any message
11000
      # that says an option was ignored or not supported.
11001
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11002
      #   icc: Command line warning: ignoring option '-M'; no argument required
11003
      # The diagnosis changed in icc 8.0:
11004
      #   icc: Command line remark: option '-MP' not supported
11005
      if (grep 'ignoring option' conftest.err ||
11006
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11007 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11008 19 jeremybenn
        break
11009
      fi
11010
    fi
11011
  done
11012
 
11013
  cd ..
11014
  rm -rf conftest.dir
11015
else
11016 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11017 19 jeremybenn
fi
11018
 
11019
fi
11020 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11021 82 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11022
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11023 19 jeremybenn
 
11024
 if
11025
  test "x$enable_dependency_tracking" != xno \
11026 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11027
  am__fastdepCCAS_TRUE=
11028
  am__fastdepCCAS_FALSE='#'
11029 19 jeremybenn
else
11030 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11031
  am__fastdepCCAS_FALSE=
11032 19 jeremybenn
fi
11033
 
11034
 
11035
 
11036
ac_ext=c
11037
ac_cpp='$CPP $CPPFLAGS'
11038
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11039
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11040
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11041
if test -n "$ac_tool_prefix"; then
11042
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11043
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11044 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11046 226 julius
if test "${ac_cv_prog_CC+set}" = set; then :
11047 82 jeremybenn
  $as_echo_n "(cached) " >&6
11048 19 jeremybenn
else
11049
  if test -n "$CC"; then
11050
  ac_cv_prog_CC="$CC" # Let the user override the test.
11051
else
11052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053
for as_dir in $PATH
11054
do
11055
  IFS=$as_save_IFS
11056
  test -z "$as_dir" && as_dir=.
11057 226 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11058 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11059
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11060 226 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11061 19 jeremybenn
    break 2
11062
  fi
11063
done
11064 226 julius
  done
11065 19 jeremybenn
IFS=$as_save_IFS
11066
 
11067
fi
11068
fi
11069
CC=$ac_cv_prog_CC
11070
if test -n "$CC"; then
11071 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11072 82 jeremybenn
$as_echo "$CC" >&6; }
11073 19 jeremybenn
else
11074 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075 82 jeremybenn
$as_echo "no" >&6; }
11076 19 jeremybenn
fi
11077
 
11078
 
11079
fi
11080
if test -z "$ac_cv_prog_CC"; then
11081
  ac_ct_CC=$CC
11082
  # Extract the first word of "gcc", so it can be a program name with args.
11083
set dummy gcc; ac_word=$2
11084 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11085 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11086 226 julius
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11087 82 jeremybenn
  $as_echo_n "(cached) " >&6
11088 19 jeremybenn
else
11089
  if test -n "$ac_ct_CC"; then
11090
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11091
else
11092
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093
for as_dir in $PATH
11094
do
11095
  IFS=$as_save_IFS
11096
  test -z "$as_dir" && as_dir=.
11097 226 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11098 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11099
    ac_cv_prog_ac_ct_CC="gcc"
11100 226 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11101 19 jeremybenn
    break 2
11102
  fi
11103
done
11104 226 julius
  done
11105 19 jeremybenn
IFS=$as_save_IFS
11106
 
11107
fi
11108
fi
11109
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11110
if test -n "$ac_ct_CC"; then
11111 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11112 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11113 19 jeremybenn
else
11114 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115 82 jeremybenn
$as_echo "no" >&6; }
11116 19 jeremybenn
fi
11117
 
11118
  if test "x$ac_ct_CC" = x; then
11119
    CC=""
11120
  else
11121
    case $cross_compiling:$ac_tool_warned in
11122
yes:)
11123 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11124 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11125 19 jeremybenn
ac_tool_warned=yes ;;
11126
esac
11127
    CC=$ac_ct_CC
11128
  fi
11129
else
11130
  CC="$ac_cv_prog_CC"
11131
fi
11132
 
11133
if test -z "$CC"; then
11134
          if test -n "$ac_tool_prefix"; then
11135
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11136
set dummy ${ac_tool_prefix}cc; ac_word=$2
11137 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11139 226 julius
if test "${ac_cv_prog_CC+set}" = set; then :
11140 82 jeremybenn
  $as_echo_n "(cached) " >&6
11141 19 jeremybenn
else
11142
  if test -n "$CC"; then
11143
  ac_cv_prog_CC="$CC" # Let the user override the test.
11144
else
11145
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146
for as_dir in $PATH
11147
do
11148
  IFS=$as_save_IFS
11149
  test -z "$as_dir" && as_dir=.
11150 226 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11151 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11152
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11153 226 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154 19 jeremybenn
    break 2
11155
  fi
11156
done
11157 226 julius
  done
11158 19 jeremybenn
IFS=$as_save_IFS
11159
 
11160
fi
11161
fi
11162
CC=$ac_cv_prog_CC
11163
if test -n "$CC"; then
11164 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11165 82 jeremybenn
$as_echo "$CC" >&6; }
11166 19 jeremybenn
else
11167 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 82 jeremybenn
$as_echo "no" >&6; }
11169 19 jeremybenn
fi
11170
 
11171
 
11172
  fi
11173
fi
11174
if test -z "$CC"; then
11175
  # Extract the first word of "cc", so it can be a program name with args.
11176
set dummy cc; ac_word=$2
11177 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11179 226 julius
if test "${ac_cv_prog_CC+set}" = set; then :
11180 82 jeremybenn
  $as_echo_n "(cached) " >&6
11181 19 jeremybenn
else
11182
  if test -n "$CC"; then
11183
  ac_cv_prog_CC="$CC" # Let the user override the test.
11184
else
11185
  ac_prog_rejected=no
11186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187
for as_dir in $PATH
11188
do
11189
  IFS=$as_save_IFS
11190
  test -z "$as_dir" && as_dir=.
11191 226 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11192 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11193
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11194
       ac_prog_rejected=yes
11195
       continue
11196
     fi
11197
    ac_cv_prog_CC="cc"
11198 226 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11199 19 jeremybenn
    break 2
11200
  fi
11201
done
11202 226 julius
  done
11203 19 jeremybenn
IFS=$as_save_IFS
11204
 
11205
if test $ac_prog_rejected = yes; then
11206
  # We found a bogon in the path, so make sure we never use it.
11207
  set dummy $ac_cv_prog_CC
11208
  shift
11209
  if test $# != 0; then
11210
    # We chose a different compiler from the bogus one.
11211
    # However, it has the same basename, so the bogon will be chosen
11212
    # first if we set CC to just the basename; use the full file name.
11213
    shift
11214
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11215
  fi
11216
fi
11217
fi
11218
fi
11219
CC=$ac_cv_prog_CC
11220
if test -n "$CC"; then
11221 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11222 82 jeremybenn
$as_echo "$CC" >&6; }
11223 19 jeremybenn
else
11224 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 82 jeremybenn
$as_echo "no" >&6; }
11226 19 jeremybenn
fi
11227
 
11228
 
11229
fi
11230
if test -z "$CC"; then
11231
  if test -n "$ac_tool_prefix"; then
11232
  for ac_prog in cl.exe
11233
  do
11234
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11235
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11236 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11237 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11238 226 julius
if test "${ac_cv_prog_CC+set}" = set; then :
11239 82 jeremybenn
  $as_echo_n "(cached) " >&6
11240 19 jeremybenn
else
11241
  if test -n "$CC"; then
11242
  ac_cv_prog_CC="$CC" # Let the user override the test.
11243
else
11244
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245
for as_dir in $PATH
11246
do
11247
  IFS=$as_save_IFS
11248
  test -z "$as_dir" && as_dir=.
11249 226 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11250 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11251
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11252 226 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11253 19 jeremybenn
    break 2
11254
  fi
11255
done
11256 226 julius
  done
11257 19 jeremybenn
IFS=$as_save_IFS
11258
 
11259
fi
11260
fi
11261
CC=$ac_cv_prog_CC
11262
if test -n "$CC"; then
11263 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11264 82 jeremybenn
$as_echo "$CC" >&6; }
11265 19 jeremybenn
else
11266 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267 82 jeremybenn
$as_echo "no" >&6; }
11268 19 jeremybenn
fi
11269
 
11270
 
11271
    test -n "$CC" && break
11272
  done
11273
fi
11274
if test -z "$CC"; then
11275
  ac_ct_CC=$CC
11276
  for ac_prog in cl.exe
11277
do
11278
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11279
set dummy $ac_prog; ac_word=$2
11280 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11282 226 julius
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11283 82 jeremybenn
  $as_echo_n "(cached) " >&6
11284 19 jeremybenn
else
11285
  if test -n "$ac_ct_CC"; then
11286
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11287
else
11288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289
for as_dir in $PATH
11290
do
11291
  IFS=$as_save_IFS
11292
  test -z "$as_dir" && as_dir=.
11293 226 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11294 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11295
    ac_cv_prog_ac_ct_CC="$ac_prog"
11296 226 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11297 19 jeremybenn
    break 2
11298
  fi
11299
done
11300 226 julius
  done
11301 19 jeremybenn
IFS=$as_save_IFS
11302
 
11303
fi
11304
fi
11305
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11306
if test -n "$ac_ct_CC"; then
11307 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11308 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11309 19 jeremybenn
else
11310 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 82 jeremybenn
$as_echo "no" >&6; }
11312 19 jeremybenn
fi
11313
 
11314
 
11315
  test -n "$ac_ct_CC" && break
11316
done
11317
 
11318
  if test "x$ac_ct_CC" = x; then
11319
    CC=""
11320
  else
11321
    case $cross_compiling:$ac_tool_warned in
11322
yes:)
11323 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11324 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11325 19 jeremybenn
ac_tool_warned=yes ;;
11326
esac
11327
    CC=$ac_ct_CC
11328
  fi
11329
fi
11330
 
11331
fi
11332
 
11333
 
11334 226 julius
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11335 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11336 226 julius
as_fn_error "no acceptable C compiler found in \$PATH
11337
See \`config.log' for more details." "$LINENO" 5; }
11338 19 jeremybenn
 
11339
# Provide some information about the compiler.
11340 226 julius
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11341 82 jeremybenn
set X $ac_compile
11342
ac_compiler=$2
11343 226 julius
for ac_option in --version -v -V -qversion; do
11344
  { { ac_try="$ac_compiler $ac_option >&5"
11345 19 jeremybenn
case "(($ac_try" in
11346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347
  *) ac_try_echo=$ac_try;;
11348
esac
11349 226 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11350
$as_echo "$ac_try_echo"; } >&5
11351
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11352 19 jeremybenn
  ac_status=$?
11353 226 julius
  if test -s conftest.err; then
11354
    sed '10a\
11355
... rest of stderr output deleted ...
11356
         10q' conftest.err >conftest.er1
11357
    cat conftest.er1 >&5
11358
    rm -f conftest.er1 conftest.err
11359
  fi
11360
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11361
  test $ac_status = 0; }
11362
done
11363 19 jeremybenn
 
11364 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11365 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11366 226 julius
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11367 82 jeremybenn
  $as_echo_n "(cached) " >&6
11368 19 jeremybenn
else
11369 226 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 19 jeremybenn
/* end confdefs.h.  */
11371
 
11372
int
11373
main ()
11374
{
11375
#ifndef __GNUC__
11376
       choke me
11377
#endif
11378
 
11379
  ;
11380
  return 0;
11381
}
11382
_ACEOF
11383 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
11384 19 jeremybenn
  ac_compiler_gnu=yes
11385
else
11386 226 julius
  ac_compiler_gnu=no
11387 19 jeremybenn
fi
11388
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11389
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11390
 
11391
fi
11392 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11393 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11394
if test $ac_compiler_gnu = yes; then
11395
  GCC=yes
11396
else
11397
  GCC=
11398
fi
11399 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
11400
ac_save_CFLAGS=$CFLAGS
11401 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11402 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
11403 226 julius
if test "${ac_cv_prog_cc_g+set}" = set; then :
11404 82 jeremybenn
  $as_echo_n "(cached) " >&6
11405 19 jeremybenn
else
11406
  ac_save_c_werror_flag=$ac_c_werror_flag
11407
   ac_c_werror_flag=yes
11408
   ac_cv_prog_cc_g=no
11409
   CFLAGS="-g"
11410 226 julius
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 19 jeremybenn
/* end confdefs.h.  */
11412
 
11413
int
11414
main ()
11415
{
11416
 
11417
  ;
11418
  return 0;
11419
}
11420
_ACEOF
11421 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
11422 19 jeremybenn
  ac_cv_prog_cc_g=yes
11423
else
11424 226 julius
  CFLAGS=""
11425
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 19 jeremybenn
/* end confdefs.h.  */
11427
 
11428
int
11429
main ()
11430
{
11431
 
11432
  ;
11433
  return 0;
11434
}
11435
_ACEOF
11436 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
11437
 
11438 121 jeremybenn
else
11439 226 julius
  ac_c_werror_flag=$ac_save_c_werror_flag
11440 19 jeremybenn
         CFLAGS="-g"
11441 226 julius
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442 19 jeremybenn
/* end confdefs.h.  */
11443
 
11444
int
11445
main ()
11446
{
11447
 
11448
  ;
11449
  return 0;
11450
}
11451
_ACEOF
11452 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
11453 19 jeremybenn
  ac_cv_prog_cc_g=yes
11454
fi
11455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11456
fi
11457
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11458
fi
11459
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11460
   ac_c_werror_flag=$ac_save_c_werror_flag
11461
fi
11462 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11463 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
11464 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
11465
  CFLAGS=$ac_save_CFLAGS
11466
elif test $ac_cv_prog_cc_g = yes; then
11467
  if test "$GCC" = yes; then
11468
    CFLAGS="-g -O2"
11469
  else
11470
    CFLAGS="-g"
11471
  fi
11472
else
11473
  if test "$GCC" = yes; then
11474
    CFLAGS="-O2"
11475
  else
11476
    CFLAGS=
11477
  fi
11478
fi
11479 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11480 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11481 226 julius
if test "${ac_cv_prog_cc_c89+set}" = set; then :
11482 82 jeremybenn
  $as_echo_n "(cached) " >&6
11483 19 jeremybenn
else
11484
  ac_cv_prog_cc_c89=no
11485
ac_save_CC=$CC
11486 226 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487 19 jeremybenn
/* end confdefs.h.  */
11488
#include 
11489
#include 
11490
#include 
11491
#include 
11492
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11493
struct buf { int x; };
11494
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11495
static char *e (p, i)
11496
     char **p;
11497
     int i;
11498
{
11499
  return p[i];
11500
}
11501
static char *f (char * (*g) (char **, int), char **p, ...)
11502
{
11503
  char *s;
11504
  va_list v;
11505
  va_start (v,p);
11506
  s = g (p, va_arg (v,int));
11507
  va_end (v);
11508
  return s;
11509
}
11510
 
11511
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11512
   function prototypes and stuff, but not '\xHH' hex character constants.
11513
   These don't provoke an error unfortunately, instead are silently treated
11514
   as 'x'.  The following induces an error, until -std is added to get
11515
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11516
   array size at least.  It's necessary to write '\x00'==0 to get something
11517
   that's true only with -std.  */
11518
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11519
 
11520
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11521
   inside strings and character constants.  */
11522
#define FOO(x) 'x'
11523
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11524
 
11525
int test (int i, double x);
11526
struct s1 {int (*f) (int a);};
11527
struct s2 {int (*f) (double a);};
11528
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11529
int argc;
11530
char **argv;
11531
int
11532
main ()
11533
{
11534
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11535
  ;
11536
  return 0;
11537
}
11538
_ACEOF
11539
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11540
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11541
do
11542
  CC="$ac_save_CC $ac_arg"
11543 226 julius
  if ac_fn_c_try_compile "$LINENO"; then :
11544 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
11545
fi
11546
rm -f core conftest.err conftest.$ac_objext
11547
  test "x$ac_cv_prog_cc_c89" != "xno" && break
11548
done
11549
rm -f conftest.$ac_ext
11550
CC=$ac_save_CC
11551
 
11552
fi
11553
# AC_CACHE_VAL
11554
case "x$ac_cv_prog_cc_c89" in
11555
  x)
11556 226 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11557 82 jeremybenn
$as_echo "none needed" >&6; } ;;
11558 19 jeremybenn
  xno)
11559 226 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11560 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
11561 19 jeremybenn
  *)
11562
    CC="$CC $ac_cv_prog_cc_c89"
11563 226 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11564 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11565 19 jeremybenn
esac
11566 226 julius
if test "x$ac_cv_prog_cc_c89" != xno; then :
11567 19 jeremybenn
 
11568 226 julius
fi
11569 19 jeremybenn
 
11570
ac_ext=c
11571
ac_cpp='$CPP $CPPFLAGS'
11572
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11573
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11574
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11575
 
11576
if test "x$CC" != xcc; then
11577 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11578 82 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11579 19 jeremybenn
else
11580 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11581 82 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11582 19 jeremybenn
fi
11583 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
11584 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11585 226 julius
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11586 82 jeremybenn
  $as_echo_n "(cached) " >&6
11587 19 jeremybenn
else
11588 226 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 19 jeremybenn
/* end confdefs.h.  */
11590
 
11591
int
11592
main ()
11593
{
11594
 
11595
  ;
11596
  return 0;
11597
}
11598
_ACEOF
11599
# Make sure it works both with $CC and with simple cc.
11600
# We do the test twice because some compilers refuse to overwrite an
11601
# existing .o file with -o, though they will create one.
11602
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11603
rm -f conftest2.*
11604 226 julius
if { { case "(($ac_try" in
11605 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606
  *) ac_try_echo=$ac_try;;
11607
esac
11608 226 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11609
$as_echo "$ac_try_echo"; } >&5
11610 19 jeremybenn
  (eval "$ac_try") 2>&5
11611
  ac_status=$?
11612 226 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11613
  test $ac_status = 0; } &&
11614
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11615 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616
  *) ac_try_echo=$ac_try;;
11617
esac
11618 226 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11619
$as_echo "$ac_try_echo"; } >&5
11620 19 jeremybenn
  (eval "$ac_try") 2>&5
11621
  ac_status=$?
11622 226 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11623
  test $ac_status = 0; };
11624 19 jeremybenn
then
11625
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11626
  if test "x$CC" != xcc; then
11627
    # Test first that cc exists at all.
11628
    if { ac_try='cc -c conftest.$ac_ext >&5'
11629 226 julius
  { { case "(($ac_try" in
11630 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631
  *) ac_try_echo=$ac_try;;
11632
esac
11633 226 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11634
$as_echo "$ac_try_echo"; } >&5
11635 19 jeremybenn
  (eval "$ac_try") 2>&5
11636
  ac_status=$?
11637 226 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11638
  test $ac_status = 0; }; }; then
11639 19 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11640
      rm -f conftest2.*
11641 226 julius
      if { { case "(($ac_try" in
11642 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643
  *) ac_try_echo=$ac_try;;
11644
esac
11645 226 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11646
$as_echo "$ac_try_echo"; } >&5
11647 19 jeremybenn
  (eval "$ac_try") 2>&5
11648
  ac_status=$?
11649 226 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11650
  test $ac_status = 0; } &&
11651
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
11652 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653
  *) ac_try_echo=$ac_try;;
11654
esac
11655 226 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11656
$as_echo "$ac_try_echo"; } >&5
11657 19 jeremybenn
  (eval "$ac_try") 2>&5
11658
  ac_status=$?
11659 226 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11660
  test $ac_status = 0; };
11661 19 jeremybenn
      then
11662
        # cc works too.
11663
        :
11664
      else
11665
        # cc exists but doesn't like -o.
11666
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
11667
      fi
11668
    fi
11669
  fi
11670
else
11671
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11672
fi
11673
rm -f core conftest*
11674
 
11675
fi
11676
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11677 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11678 82 jeremybenn
$as_echo "yes" >&6; }
11679 19 jeremybenn
else
11680 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681 82 jeremybenn
$as_echo "no" >&6; }
11682 19 jeremybenn
 
11683 226 julius
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11684 19 jeremybenn
 
11685
fi
11686
 
11687
# FIXME: we rely on the cache variable name because
11688
# there is no other way.
11689
set dummy $CC
11690 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11691
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11692
if test "$am_t" != yes; then
11693 19 jeremybenn
   # Losing compiler, so override with the script.
11694
   # FIXME: It is wrong to rewrite CC.
11695
   # But if we don't then we get into trouble of one sort or another.
11696
   # A longer-term fix would be to have automake use am__CC in this case,
11697
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11698
   CC="$am_aux_dir/compile $CC"
11699
fi
11700
 
11701
 
11702
 
11703 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11704 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11705
set x ${MAKE-make}
11706
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11707 226 julius
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11708 82 jeremybenn
  $as_echo_n "(cached) " >&6
11709 19 jeremybenn
else
11710
  cat >conftest.make <<\_ACEOF
11711
SHELL = /bin/sh
11712
all:
11713
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11714
_ACEOF
11715
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11716
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11717
  *@@@%%%=?*=@@@%%%*)
11718
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11719
  *)
11720
    eval ac_cv_prog_make_${ac_make}_set=no;;
11721
esac
11722
rm -f conftest.make
11723
fi
11724
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11725 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11726 82 jeremybenn
$as_echo "yes" >&6; }
11727 19 jeremybenn
  SET_MAKE=
11728
else
11729 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730 82 jeremybenn
$as_echo "no" >&6; }
11731 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11732
fi
11733
 
11734
 
11735 82 jeremybenn
 
11736 19 jeremybenn
# Extract the first word of "ar", so it can be a program name with args.
11737
set dummy ar; ac_word=$2
11738 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11740 226 julius
if test "${ac_cv_prog_AR+set}" = set; then :
11741 82 jeremybenn
  $as_echo_n "(cached) " >&6
11742 19 jeremybenn
else
11743
  if test -n "$AR"; then
11744
  ac_cv_prog_AR="$AR" # Let the user override the test.
11745
else
11746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747
for as_dir in $PATH
11748
do
11749
  IFS=$as_save_IFS
11750
  test -z "$as_dir" && as_dir=.
11751 226 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11752 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11753
    ac_cv_prog_AR="ar"
11754 226 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 19 jeremybenn
    break 2
11756
  fi
11757
done
11758 226 julius
  done
11759 19 jeremybenn
IFS=$as_save_IFS
11760
 
11761
fi
11762
fi
11763
AR=$ac_cv_prog_AR
11764
if test -n "$AR"; then
11765 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11766 82 jeremybenn
$as_echo "$AR" >&6; }
11767 19 jeremybenn
else
11768 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 82 jeremybenn
$as_echo "no" >&6; }
11770 19 jeremybenn
fi
11771
 
11772
 
11773
 
11774
# Set default for ARFLAGS, since autoconf does not have a macro for it.
11775
# This allows people to set it when running configure or make
11776
test -n "$ARFLAGS" || ARFLAGS="cr"
11777
 
11778 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11779 82 jeremybenn
$as_echo_n "checking return type of signal handlers... " >&6; }
11780 226 julius
if test "${ac_cv_type_signal+set}" = set; then :
11781 82 jeremybenn
  $as_echo_n "(cached) " >&6
11782 19 jeremybenn
else
11783 226 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 19 jeremybenn
/* end confdefs.h.  */
11785
#include 
11786
#include 
11787
 
11788
int
11789
main ()
11790
{
11791
return *(signal (0, 0)) (0) == 1;
11792
  ;
11793
  return 0;
11794
}
11795
_ACEOF
11796 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
11797 19 jeremybenn
  ac_cv_type_signal=int
11798
else
11799 226 julius
  ac_cv_type_signal=void
11800 19 jeremybenn
fi
11801
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11802
fi
11803 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11804 82 jeremybenn
$as_echo "$ac_cv_type_signal" >&6; }
11805 19 jeremybenn
 
11806
cat >>confdefs.h <<_ACEOF
11807
#define RETSIGTYPE $ac_cv_type_signal
11808
_ACEOF
11809
 
11810
 
11811 82 jeremybenn
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h      \
11812
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
11813
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
11814 118 jeremybenn
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h  \
11815
                 limits.h
11816 226 julius
do :
11817
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11818
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11819
eval as_val=\$$as_ac_Header
11820
   if test "x$as_val" = x""yes; then :
11821 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
11822
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11823 19 jeremybenn
_ACEOF
11824
 
11825
fi
11826
 
11827
done
11828
 
11829
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
11830 226 julius
do :
11831
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11832
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11833
eval as_val=\$$as_ac_var
11834
   if test "x$as_val" = x""yes; then :
11835 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11836 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11837 19 jeremybenn
_ACEOF
11838
 
11839
fi
11840
done
11841
 
11842 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
11843 226 julius
do :
11844
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11845
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11846
eval as_val=\$$as_ac_var
11847
   if test "x$as_val" = x""yes; then :
11848 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11849 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11850 19 jeremybenn
_ACEOF
11851
 
11852
fi
11853
done
11854
 
11855
for ac_func in basename
11856 226 julius
do :
11857
  ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
11858
if test "x$ac_cv_func_basename" = x""yes; then :
11859 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11860 226 julius
#define HAVE_BASENAME 1
11861 19 jeremybenn
_ACEOF
11862
 
11863
fi
11864
done
11865
 
11866 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
11867 82 jeremybenn
$as_echo_n "checking for working strcoll... " >&6; }
11868 226 julius
if test "${ac_cv_func_strcoll_works+set}" = set; then :
11869 82 jeremybenn
  $as_echo_n "(cached) " >&6
11870 19 jeremybenn
else
11871 226 julius
  if test "$cross_compiling" = yes; then :
11872 19 jeremybenn
  ac_cv_func_strcoll_works=no
11873
else
11874 226 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 19 jeremybenn
/* end confdefs.h.  */
11876
$ac_includes_default
11877
int
11878
main ()
11879
{
11880
return (strcoll ("abc", "def") >= 0 ||
11881
         strcoll ("ABC", "DEF") >= 0 ||
11882
         strcoll ("123", "456") >= 0)
11883
  ;
11884
  return 0;
11885
}
11886
_ACEOF
11887 226 julius
if ac_fn_c_try_run "$LINENO"; then :
11888 19 jeremybenn
  ac_cv_func_strcoll_works=yes
11889
else
11890 226 julius
  ac_cv_func_strcoll_works=no
11891 19 jeremybenn
fi
11892 226 julius
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11893
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11894 19 jeremybenn
fi
11895
 
11896
fi
11897 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
11898 82 jeremybenn
$as_echo "$ac_cv_func_strcoll_works" >&6; }
11899 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
11900
 
11901 226 julius
$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
11902 19 jeremybenn
 
11903
fi
11904
 
11905 226 julius
ac_fn_c_check_decl "$LINENO" "I_PUSH" "ac_cv_have_decl_I_PUSH" "\
11906 82 jeremybenn
               #include 
11907 226 julius
"
11908
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then :
11909
  ac_have_decl=1
11910 19 jeremybenn
else
11911 226 julius
  ac_have_decl=0
11912 19 jeremybenn
fi
11913
 
11914 82 jeremybenn
cat >>confdefs.h <<_ACEOF
11915 226 julius
#define HAVE_DECL_I_PUSH $ac_have_decl
11916 19 jeremybenn
_ACEOF
11917 226 julius
ac_fn_c_check_decl "$LINENO" "rl_event_hook" "ac_cv_have_decl_rl_event_hook" "\
11918 82 jeremybenn
               #include 
11919 226 julius
"
11920
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then :
11921
  ac_have_decl=1
11922 19 jeremybenn
else
11923 226 julius
  ac_have_decl=0
11924 19 jeremybenn
fi
11925
 
11926 82 jeremybenn
cat >>confdefs.h <<_ACEOF
11927 226 julius
#define HAVE_DECL_RL_EVENT_HOOK $ac_have_decl
11928 19 jeremybenn
_ACEOF
11929
 
11930 226 julius
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11931 82 jeremybenn
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11932 226 julius
if test "${ac_cv_c_bigendian+set}" = set; then :
11933 82 jeremybenn
  $as_echo_n "(cached) " >&6
11934 19 jeremybenn
else
11935 82 jeremybenn
  ac_cv_c_bigendian=unknown
11936
    # See if we're dealing with a universal compiler.
11937 226 julius
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 19 jeremybenn
/* end confdefs.h.  */
11939 82 jeremybenn
#ifndef __APPLE_CC__
11940
               not a universal capable compiler
11941
             #endif
11942
             typedef int dummy;
11943
 
11944 19 jeremybenn
_ACEOF
11945 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
11946 82 jeremybenn
 
11947
        # Check for potential -arch flags.  It is not universal unless
11948 226 julius
        # there are at least two -arch flags with different values.
11949
        ac_arch=
11950
        ac_prev=
11951
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11952
         if test -n "$ac_prev"; then
11953
           case $ac_word in
11954
             i?86 | x86_64 | ppc | ppc64)
11955
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11956
                 ac_arch=$ac_word
11957
               else
11958
                 ac_cv_c_bigendian=universal
11959
                 break
11960
               fi
11961
               ;;
11962
           esac
11963
           ac_prev=
11964
         elif test "x$ac_word" = "x-arch"; then
11965
           ac_prev=arch
11966
         fi
11967
       done
11968 19 jeremybenn
fi
11969
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11970 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
11971
      # See if sys/param.h defines the BYTE_ORDER macro.
11972 226 julius
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 19 jeremybenn
/* end confdefs.h.  */
11974 82 jeremybenn
#include 
11975
             #include 
11976
 
11977
int
11978
main ()
11979
{
11980
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11981
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11982
                     && LITTLE_ENDIAN)
11983
              bogus endian macros
11984
             #endif
11985
 
11986
  ;
11987
  return 0;
11988
}
11989 19 jeremybenn
_ACEOF
11990 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
11991 82 jeremybenn
  # It does; now see whether it defined to BIG_ENDIAN or not.
11992 226 julius
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 19 jeremybenn
/* end confdefs.h.  */
11994 82 jeremybenn
#include 
11995
                #include 
11996
 
11997 19 jeremybenn
int
11998
main ()
11999
{
12000 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
12001
                 not big endian
12002
                #endif
12003 19 jeremybenn
 
12004
  ;
12005
  return 0;
12006
}
12007
_ACEOF
12008 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
12009 82 jeremybenn
  ac_cv_c_bigendian=yes
12010 19 jeremybenn
else
12011 226 julius
  ac_cv_c_bigendian=no
12012 19 jeremybenn
fi
12013
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014
fi
12015 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12016
    fi
12017
    if test $ac_cv_c_bigendian = unknown; then
12018
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12019 226 julius
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 19 jeremybenn
/* end confdefs.h.  */
12021 82 jeremybenn
#include 
12022 19 jeremybenn
 
12023
int
12024
main ()
12025
{
12026 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12027
              bogus endian macros
12028
             #endif
12029 19 jeremybenn
 
12030
  ;
12031
  return 0;
12032
}
12033
_ACEOF
12034 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
12035 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
12036 226 julius
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 19 jeremybenn
/* end confdefs.h.  */
12038 82 jeremybenn
#include 
12039 19 jeremybenn
 
12040
int
12041
main ()
12042
{
12043 82 jeremybenn
#ifndef _BIG_ENDIAN
12044
                 not big endian
12045
                #endif
12046 19 jeremybenn
 
12047
  ;
12048
  return 0;
12049
}
12050
_ACEOF
12051 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
12052 19 jeremybenn
  ac_cv_c_bigendian=yes
12053
else
12054 226 julius
  ac_cv_c_bigendian=no
12055 19 jeremybenn
fi
12056
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 82 jeremybenn
fi
12058
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12059
    fi
12060
    if test $ac_cv_c_bigendian = unknown; then
12061
      # Compile a test program.
12062 226 julius
      if test "$cross_compiling" = yes; then :
12063 82 jeremybenn
  # Try to guess by grepping values from an object file.
12064 226 julius
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 19 jeremybenn
/* end confdefs.h.  */
12066 82 jeremybenn
short int ascii_mm[] =
12067
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12068
                short int ascii_ii[] =
12069
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12070
                int use_ascii (int i) {
12071
                  return ascii_mm[i] + ascii_ii[i];
12072
                }
12073
                short int ebcdic_ii[] =
12074
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12075
                short int ebcdic_mm[] =
12076
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12077
                int use_ebcdic (int i) {
12078
                  return ebcdic_mm[i] + ebcdic_ii[i];
12079
                }
12080
                extern int foo;
12081
 
12082 19 jeremybenn
int
12083
main ()
12084
{
12085 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
12086 19 jeremybenn
  ;
12087
  return 0;
12088
}
12089
_ACEOF
12090 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
12091 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12092
              ac_cv_c_bigendian=yes
12093
            fi
12094
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12095
              if test "$ac_cv_c_bigendian" = unknown; then
12096
                ac_cv_c_bigendian=no
12097
              else
12098
                # finding both strings is unlikely to happen, but who knows?
12099
                ac_cv_c_bigendian=unknown
12100
              fi
12101
            fi
12102 19 jeremybenn
fi
12103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104
else
12105 226 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 19 jeremybenn
/* end confdefs.h.  */
12107
$ac_includes_default
12108
int
12109
main ()
12110
{
12111
 
12112 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
12113
             union
12114
             {
12115
               long int l;
12116
               char c[sizeof (long int)];
12117
             } u;
12118
             u.l = 1;
12119
             return u.c[sizeof (long int) - 1] == 1;
12120 19 jeremybenn
 
12121
  ;
12122
  return 0;
12123
}
12124
_ACEOF
12125 226 julius
if ac_fn_c_try_run "$LINENO"; then :
12126 19 jeremybenn
  ac_cv_c_bigendian=no
12127
else
12128 226 julius
  ac_cv_c_bigendian=yes
12129 19 jeremybenn
fi
12130 226 julius
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12131
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12132 19 jeremybenn
fi
12133
 
12134 82 jeremybenn
    fi
12135 19 jeremybenn
fi
12136 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12137 82 jeremybenn
$as_echo "$ac_cv_c_bigendian" >&6; }
12138
 case $ac_cv_c_bigendian in #(
12139
   yes)
12140 226 julius
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12141 82 jeremybenn
;; #(
12142
   no)
12143
      ;; #(
12144
   universal)
12145 19 jeremybenn
 
12146 226 julius
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12147 82 jeremybenn
 
12148
     ;; #(
12149
   *)
12150 226 julius
     as_fn_error "unknown endianness
12151
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12152 82 jeremybenn
 esac
12153
 
12154
 
12155
# The test for strndup, strcasecmp and isblank fails on modern machines. I
12156
# think it's because GCC 4 does not like the way autoconf overrides the built
12157
# in type declaration. So we must check for them by steam.
12158 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strndup" >&5
12159 82 jeremybenn
$as_echo_n "checking for strndup... " >&6; }
12160 226 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 82 jeremybenn
/* end confdefs.h.  */
12162
#ifdef HAVE_STRING_H
12163
                                  #include 
12164
                                  #else
12165
                                  char *strndup (const char *s,
12166
                                                 size_t      n);
12167
                                  #endif
12168
int
12169
main ()
12170
{
12171
\
12172
                                const char *s = "test";
12173
                                  char       *t;
12174
                                  t = strndup (s, 3);
12175
  ;
12176
  return 0;
12177
}
12178
_ACEOF
12179 226 julius
if ac_fn_c_try_link "$LINENO"; then :
12180 82 jeremybenn
  \
12181
 
12182 226 julius
$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
12183 82 jeremybenn
 \
12184 226 julius
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12185 82 jeremybenn
$as_echo "yes" >&6; }
12186
else
12187 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 82 jeremybenn
$as_echo "no" >&6; }
12189 19 jeremybenn
fi
12190 226 julius
rm -f core conftest.err conftest.$ac_objext \
12191
    conftest$ac_exeext conftest.$ac_ext
12192 19 jeremybenn
 
12193 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp" >&5
12194 82 jeremybenn
$as_echo_n "checking for strcasecmp... " >&6; }
12195 226 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 82 jeremybenn
/* end confdefs.h.  */
12197
#ifdef HAVE_STRINGS_H
12198
                                  #include 
12199
                                  #else
12200
                                  int strcasecmp (const char *s1,
12201
                                                  const char *s2);
12202
                                  #endif
12203
int
12204
main ()
12205
{
12206
\
12207
                                const char *s = "test";
12208
                                  const char *t = "TEST";
12209
                                  int         res;
12210
                                  res = strcasecmp (s, t);
12211
  ;
12212
  return 0;
12213
}
12214
_ACEOF
12215 226 julius
if ac_fn_c_try_link "$LINENO"; then :
12216 82 jeremybenn
  \
12217
 
12218 226 julius
$as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
12219 82 jeremybenn
 \
12220 226 julius
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12221 82 jeremybenn
$as_echo "yes" >&6; }
12222
else
12223 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 82 jeremybenn
$as_echo "no" >&6; }
12225
fi
12226 226 julius
rm -f core conftest.err conftest.$ac_objext \
12227
    conftest$ac_exeext conftest.$ac_ext
12228 82 jeremybenn
 
12229 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
12230 82 jeremybenn
$as_echo_n "checking for isblank... " >&6; }
12231 226 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232 82 jeremybenn
/* end confdefs.h.  */
12233
#ifdef HAVE_CTYPE_H
12234
                                  #include 
12235
                                  #else
12236
                                  int isblank (int  c);
12237
                                  #endif
12238
int
12239
main ()
12240
{
12241
\
12242
                                return isblank ('x');
12243
  ;
12244
  return 0;
12245
}
12246
_ACEOF
12247 226 julius
if ac_fn_c_try_link "$LINENO"; then :
12248 82 jeremybenn
  \
12249 19 jeremybenn
 
12250 226 julius
$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
12251 82 jeremybenn
 \
12252 226 julius
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12253 82 jeremybenn
$as_echo "yes" >&6; }
12254
else
12255 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 82 jeremybenn
$as_echo "no" >&6; }
12257
fi
12258 226 julius
rm -f core conftest.err conftest.$ac_objext \
12259
    conftest$ac_exeext conftest.$ac_ext
12260 82 jeremybenn
 
12261 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
12262 226 julius
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12263
if test "x$ac_cv_type_size_t" = x""yes; then :
12264 19 jeremybenn
 
12265
else
12266
 
12267
cat >>confdefs.h <<_ACEOF
12268
#define size_t unsigned int
12269
_ACEOF
12270
 
12271
fi
12272
 
12273 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12274 82 jeremybenn
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12275 226 julius
if test "${ac_cv_struct_tm+set}" = set; then :
12276 82 jeremybenn
  $as_echo_n "(cached) " >&6
12277 19 jeremybenn
else
12278 226 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 19 jeremybenn
/* end confdefs.h.  */
12280
#include 
12281
#include 
12282
 
12283
int
12284
main ()
12285
{
12286
struct tm tm;
12287
                                     int *p = &tm.tm_sec;
12288 82 jeremybenn
                                     return !p;
12289 19 jeremybenn
  ;
12290
  return 0;
12291
}
12292
_ACEOF
12293 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
12294 19 jeremybenn
  ac_cv_struct_tm=time.h
12295
else
12296 226 julius
  ac_cv_struct_tm=sys/time.h
12297 19 jeremybenn
fi
12298
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12299
fi
12300 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12301 82 jeremybenn
$as_echo "$ac_cv_struct_tm" >&6; }
12302 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
12303
 
12304 226 julius
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12305 19 jeremybenn
 
12306
fi
12307
 
12308
 
12309
# Checks for library functions (for argtable2).
12310
for ac_header in stdlib.h
12311 226 julius
do :
12312
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12313
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12314 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12315 226 julius
#define HAVE_STDLIB_H 1
12316 19 jeremybenn
_ACEOF
12317
 
12318
fi
12319
 
12320
done
12321
 
12322 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12323 82 jeremybenn
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12324 226 julius
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
12325 82 jeremybenn
  $as_echo_n "(cached) " >&6
12326 19 jeremybenn
else
12327 226 julius
  if test "$cross_compiling" = yes; then :
12328 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
12329
else
12330 226 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 19 jeremybenn
/* end confdefs.h.  */
12332
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
12333
# include 
12334
#else
12335
char *malloc ();
12336
#endif
12337
 
12338
int
12339
main ()
12340
{
12341
return ! malloc (0);
12342
  ;
12343
  return 0;
12344
}
12345
_ACEOF
12346 226 julius
if ac_fn_c_try_run "$LINENO"; then :
12347 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=yes
12348
else
12349 226 julius
  ac_cv_func_malloc_0_nonnull=no
12350 19 jeremybenn
fi
12351 226 julius
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12352
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12353 19 jeremybenn
fi
12354
 
12355
fi
12356 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12357 82 jeremybenn
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12358 226 julius
if test $ac_cv_func_malloc_0_nonnull = yes; then :
12359 19 jeremybenn
 
12360 226 julius
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12361 19 jeremybenn
 
12362
else
12363 226 julius
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12364 19 jeremybenn
 
12365
   case " $LIBOBJS " in
12366
  *" malloc.$ac_objext "* ) ;;
12367
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12368
 ;;
12369
esac
12370
 
12371
 
12372 226 julius
$as_echo "#define malloc rpl_malloc" >>confdefs.h
12373 19 jeremybenn
 
12374
fi
12375
 
12376
 
12377
for ac_func in strftime
12378 226 julius
do :
12379
  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12380
if test "x$ac_cv_func_strftime" = x""yes; then :
12381 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12382 226 julius
#define HAVE_STRFTIME 1
12383 19 jeremybenn
_ACEOF
12384
 
12385
else
12386
  # strftime is in -lintl on SCO UNIX.
12387 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12388 82 jeremybenn
$as_echo_n "checking for strftime in -lintl... " >&6; }
12389 226 julius
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12390 82 jeremybenn
  $as_echo_n "(cached) " >&6
12391 19 jeremybenn
else
12392
  ac_check_lib_save_LIBS=$LIBS
12393
LIBS="-lintl  $LIBS"
12394 226 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 19 jeremybenn
/* end confdefs.h.  */
12396
 
12397
/* Override any GCC internal prototype to avoid an error.
12398
   Use char because int might match the return type of a GCC
12399
   builtin and then its argument prototype would still apply.  */
12400
#ifdef __cplusplus
12401
extern "C"
12402
#endif
12403
char strftime ();
12404
int
12405
main ()
12406
{
12407
return strftime ();
12408
  ;
12409
  return 0;
12410
}
12411
_ACEOF
12412 226 julius
if ac_fn_c_try_link "$LINENO"; then :
12413 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
12414
else
12415 226 julius
  ac_cv_lib_intl_strftime=no
12416 19 jeremybenn
fi
12417 226 julius
rm -f core conftest.err conftest.$ac_objext \
12418
    conftest$ac_exeext conftest.$ac_ext
12419 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12420
fi
12421 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12422 82 jeremybenn
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12423 226 julius
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12424
  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12425 19 jeremybenn
 
12426
LIBS="-lintl $LIBS"
12427
fi
12428
 
12429
fi
12430
done
12431
 
12432 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12433 82 jeremybenn
$as_echo_n "checking for working strtod... " >&6; }
12434 226 julius
if test "${ac_cv_func_strtod+set}" = set; then :
12435 82 jeremybenn
  $as_echo_n "(cached) " >&6
12436 19 jeremybenn
else
12437 226 julius
  if test "$cross_compiling" = yes; then :
12438 19 jeremybenn
  ac_cv_func_strtod=no
12439
else
12440 226 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 19 jeremybenn
/* end confdefs.h.  */
12442
 
12443
$ac_includes_default
12444
#ifndef strtod
12445
double strtod ();
12446
#endif
12447
int
12448
main()
12449
{
12450
  {
12451
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
12452
    char *string = " +69";
12453
    char *term;
12454
    double value;
12455
    value = strtod (string, &term);
12456
    if (value != 69 || term != (string + 4))
12457
      return 1;
12458
  }
12459
 
12460
  {
12461
    /* Under Solaris 2.4, strtod returns the wrong value for the
12462
       terminating character under some conditions.  */
12463
    char *string = "NaN";
12464
    char *term;
12465
    strtod (string, &term);
12466
    if (term != string && *(term - 1) == 0)
12467
      return 1;
12468
  }
12469
  return 0;
12470
}
12471
 
12472
_ACEOF
12473 226 julius
if ac_fn_c_try_run "$LINENO"; then :
12474 19 jeremybenn
  ac_cv_func_strtod=yes
12475
else
12476 226 julius
  ac_cv_func_strtod=no
12477 19 jeremybenn
fi
12478 226 julius
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12479
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12480 19 jeremybenn
fi
12481
 
12482
fi
12483 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12484 82 jeremybenn
$as_echo "$ac_cv_func_strtod" >&6; }
12485 19 jeremybenn
if test $ac_cv_func_strtod = no; then
12486
  case " $LIBOBJS " in
12487
  *" strtod.$ac_objext "* ) ;;
12488
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12489
 ;;
12490
esac
12491
 
12492 226 julius
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12493
if test "x$ac_cv_func_pow" = x""yes; then :
12494 19 jeremybenn
 
12495
fi
12496
 
12497
if test $ac_cv_func_pow = no; then
12498 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12499 82 jeremybenn
$as_echo_n "checking for pow in -lm... " >&6; }
12500 226 julius
if test "${ac_cv_lib_m_pow+set}" = set; then :
12501 82 jeremybenn
  $as_echo_n "(cached) " >&6
12502 19 jeremybenn
else
12503
  ac_check_lib_save_LIBS=$LIBS
12504
LIBS="-lm  $LIBS"
12505 226 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 19 jeremybenn
/* end confdefs.h.  */
12507
 
12508
/* Override any GCC internal prototype to avoid an error.
12509
   Use char because int might match the return type of a GCC
12510
   builtin and then its argument prototype would still apply.  */
12511
#ifdef __cplusplus
12512
extern "C"
12513
#endif
12514
char pow ();
12515
int
12516
main ()
12517
{
12518
return pow ();
12519
  ;
12520
  return 0;
12521
}
12522
_ACEOF
12523 226 julius
if ac_fn_c_try_link "$LINENO"; then :
12524 19 jeremybenn
  ac_cv_lib_m_pow=yes
12525
else
12526 226 julius
  ac_cv_lib_m_pow=no
12527 19 jeremybenn
fi
12528 226 julius
rm -f core conftest.err conftest.$ac_objext \
12529
    conftest$ac_exeext conftest.$ac_ext
12530 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12531
fi
12532 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12533 82 jeremybenn
$as_echo "$ac_cv_lib_m_pow" >&6; }
12534 226 julius
if test "x$ac_cv_lib_m_pow" = x""yes; then :
12535 19 jeremybenn
  POW_LIB=-lm
12536
else
12537 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12538 82 jeremybenn
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12539 19 jeremybenn
fi
12540
 
12541
fi
12542
 
12543
fi
12544
 
12545
for ac_func in bzero strchr strcspn strrchr strtol
12546 226 julius
do :
12547
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12548
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12549
eval as_val=\$$as_ac_var
12550
   if test "x$as_val" = x""yes; then :
12551 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12552 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12553 19 jeremybenn
_ACEOF
12554
 
12555
fi
12556
done
12557
 
12558 226 julius
ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12559
if test "x$ac_cv_func_getopt_long" = x""yes; then :
12560 19 jeremybenn
  SYS_GETOPTLONG=1
12561
else
12562
  SYS_GETOPTLONG=0
12563
fi
12564
 
12565 226 julius
ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
12566
if test "x$ac_cv_func_regcomp" = x""yes; then :
12567 19 jeremybenn
  SYS_REGEX=1
12568
else
12569
  SYS_REGEX=0
12570
fi
12571
 
12572 226 julius
ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
12573
if test "x$ac_cv_func_strptime" = x""yes; then :
12574 19 jeremybenn
  SYS_STRPTIME=1
12575
else
12576
  SYS_STRPTIME=0
12577
fi
12578
 
12579
 
12580
# Define automake conditionals (for argtable2)
12581
 if test "$SYS_GETOPTLONG" = "1"; then
12582
  USE_SYS_GETOPTLONG_TRUE=
12583
  USE_SYS_GETOPTLONG_FALSE='#'
12584
else
12585
  USE_SYS_GETOPTLONG_TRUE='#'
12586
  USE_SYS_GETOPTLONG_FALSE=
12587
fi
12588
 
12589
 if test "$SYS_REGEX" = "1"; then
12590
  USE_ARGREX_TRUE=
12591
  USE_ARGREX_FALSE='#'
12592
else
12593
  USE_ARGREX_TRUE='#'
12594
  USE_ARGREX_FALSE=
12595
fi
12596
 
12597
 if test "$SYS_STRPTIME" = "1"; then
12598
  USE_ARGDATE_TRUE=
12599
  USE_ARGDATE_FALSE='#'
12600
else
12601
  USE_ARGDATE_TRUE='#'
12602
  USE_ARGDATE_FALSE=
12603
fi
12604
 
12605
 
12606
# check for "long long" (added by Erez)
12607 226 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 19 jeremybenn
/* end confdefs.h.  */
12609
 
12610
int
12611
main ()
12612
{
12613
long long ll; unsigned long long ull;
12614
  ;
12615
  return 0;
12616
}
12617
_ACEOF
12618 226 julius
if ac_fn_c_try_compile "$LINENO"; then :
12619 19 jeremybenn
 
12620 226 julius
$as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
12621 19 jeremybenn
 
12622
fi
12623
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12624
 
12625
# check for {u,}int{8,16,32}_t in inttypes.h.
12626 226 julius
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include 
12627
"
12628
if test "x$ac_cv_type_uint8_t" = x""yes; then :
12629 82 jeremybenn
 
12630 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12631
#define HAVE_UINT8_T 1
12632
_ACEOF
12633
 
12634
 
12635
fi
12636 226 julius
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include 
12637
"
12638
if test "x$ac_cv_type_uint16_t" = x""yes; then :
12639 82 jeremybenn
 
12640 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12641
#define HAVE_UINT16_T 1
12642
_ACEOF
12643
 
12644
 
12645
fi
12646 226 julius
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
12647
"
12648
if test "x$ac_cv_type_uint32_t" = x""yes; then :
12649 82 jeremybenn
 
12650 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12651
#define HAVE_UINT32_T 1
12652
_ACEOF
12653
 
12654
 
12655
fi
12656
 
12657 226 julius
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include 
12658
"
12659
if test "x$ac_cv_type_int8_t" = x""yes; then :
12660 82 jeremybenn
 
12661 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12662
#define HAVE_INT8_T 1
12663
_ACEOF
12664
 
12665
 
12666
fi
12667 226 julius
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include 
12668
"
12669
if test "x$ac_cv_type_int16_t" = x""yes; then :
12670 82 jeremybenn
 
12671 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12672
#define HAVE_INT16_T 1
12673
_ACEOF
12674
 
12675
 
12676
fi
12677 226 julius
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include 
12678
"
12679
if test "x$ac_cv_type_int32_t" = x""yes; then :
12680 19 jeremybenn
 
12681 82 jeremybenn
cat >>confdefs.h <<_ACEOF
12682
#define HAVE_INT32_T 1
12683
_ACEOF
12684
 
12685
 
12686
fi
12687
 
12688
 
12689 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
12690
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12691
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12692
# This bug is HP SR number 8606223364.
12693 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12694 82 jeremybenn
$as_echo_n "checking size of char... " >&6; }
12695 226 julius
if test "${ac_cv_sizeof_char+set}" = set; then :
12696 82 jeremybenn
  $as_echo_n "(cached) " >&6
12697 19 jeremybenn
else
12698 226 julius
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
12699 19 jeremybenn
 
12700
else
12701 226 julius
  if test "$ac_cv_type_char" = yes; then
12702
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12703 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12704 226 julius
{ as_fn_set_status 77
12705
as_fn_error "cannot compute sizeof (char)
12706
See \`config.log' for more details." "$LINENO" 5; }; }
12707 19 jeremybenn
   else
12708
     ac_cv_sizeof_char=0
12709
   fi
12710
fi
12711 226 julius
 
12712 19 jeremybenn
fi
12713 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12714 82 jeremybenn
$as_echo "$ac_cv_sizeof_char" >&6; }
12715 19 jeremybenn
 
12716
 
12717
 
12718
cat >>confdefs.h <<_ACEOF
12719
#define SIZEOF_CHAR $ac_cv_sizeof_char
12720
_ACEOF
12721
 
12722
 
12723
# The cast to long int works around a bug in the HP C Compiler
12724
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12725
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12726
# This bug is HP SR number 8606223364.
12727 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12728 82 jeremybenn
$as_echo_n "checking size of short... " >&6; }
12729 226 julius
if test "${ac_cv_sizeof_short+set}" = set; then :
12730 82 jeremybenn
  $as_echo_n "(cached) " >&6
12731 19 jeremybenn
else
12732 226 julius
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12733 19 jeremybenn
 
12734
else
12735 226 julius
  if test "$ac_cv_type_short" = yes; then
12736
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12737 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12738 226 julius
{ as_fn_set_status 77
12739
as_fn_error "cannot compute sizeof (short)
12740
See \`config.log' for more details." "$LINENO" 5; }; }
12741 19 jeremybenn
   else
12742
     ac_cv_sizeof_short=0
12743
   fi
12744
fi
12745 226 julius
 
12746 19 jeremybenn
fi
12747 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12748 82 jeremybenn
$as_echo "$ac_cv_sizeof_short" >&6; }
12749 19 jeremybenn
 
12750
 
12751
 
12752
cat >>confdefs.h <<_ACEOF
12753
#define SIZEOF_SHORT $ac_cv_sizeof_short
12754
_ACEOF
12755
 
12756
 
12757
# The cast to long int works around a bug in the HP C Compiler
12758
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12759
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12760
# This bug is HP SR number 8606223364.
12761 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12762 82 jeremybenn
$as_echo_n "checking size of int... " >&6; }
12763 226 julius
if test "${ac_cv_sizeof_int+set}" = set; then :
12764 82 jeremybenn
  $as_echo_n "(cached) " >&6
12765 19 jeremybenn
else
12766 226 julius
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12767 19 jeremybenn
 
12768
else
12769 226 julius
  if test "$ac_cv_type_int" = yes; then
12770
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12771 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12772 226 julius
{ as_fn_set_status 77
12773
as_fn_error "cannot compute sizeof (int)
12774
See \`config.log' for more details." "$LINENO" 5; }; }
12775 19 jeremybenn
   else
12776
     ac_cv_sizeof_int=0
12777
   fi
12778
fi
12779 226 julius
 
12780 19 jeremybenn
fi
12781 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12782 82 jeremybenn
$as_echo "$ac_cv_sizeof_int" >&6; }
12783 19 jeremybenn
 
12784
 
12785
 
12786
cat >>confdefs.h <<_ACEOF
12787
#define SIZEOF_INT $ac_cv_sizeof_int
12788
_ACEOF
12789
 
12790
 
12791
# The cast to long int works around a bug in the HP C Compiler
12792
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12793
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12794
# This bug is HP SR number 8606223364.
12795 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12796 82 jeremybenn
$as_echo_n "checking size of long... " >&6; }
12797 226 julius
if test "${ac_cv_sizeof_long+set}" = set; then :
12798 82 jeremybenn
  $as_echo_n "(cached) " >&6
12799 19 jeremybenn
else
12800 226 julius
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12801 19 jeremybenn
 
12802
else
12803 226 julius
  if test "$ac_cv_type_long" = yes; then
12804
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12805 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12806 226 julius
{ as_fn_set_status 77
12807
as_fn_error "cannot compute sizeof (long)
12808
See \`config.log' for more details." "$LINENO" 5; }; }
12809 19 jeremybenn
   else
12810
     ac_cv_sizeof_long=0
12811
   fi
12812
fi
12813 226 julius
 
12814 19 jeremybenn
fi
12815 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12816 82 jeremybenn
$as_echo "$ac_cv_sizeof_long" >&6; }
12817 19 jeremybenn
 
12818
 
12819
 
12820
cat >>confdefs.h <<_ACEOF
12821
#define SIZEOF_LONG $ac_cv_sizeof_long
12822
_ACEOF
12823
 
12824
 
12825
 
12826
#Check for compare function type for qsort (needed by some Linuxes)
12827 226 julius
ac_fn_c_check_type "$LINENO" "__compar_fn_t" "ac_cv_type___compar_fn_t" "$ac_includes_default"
12828
if test "x$ac_cv_type___compar_fn_t" = x""yes; then :
12829 19 jeremybenn
 
12830
cat >>confdefs.h <<_ACEOF
12831
#define HAVE___COMPAR_FN_T 1
12832
_ACEOF
12833
 
12834
 
12835
fi
12836
 
12837
 
12838
# check for GNU readline
12839 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
12840 82 jeremybenn
$as_echo_n "checking for add_history in -lreadline... " >&6; }
12841 226 julius
if test "${ac_cv_lib_readline_add_history+set}" = set; then :
12842 82 jeremybenn
  $as_echo_n "(cached) " >&6
12843 19 jeremybenn
else
12844
  ac_check_lib_save_LIBS=$LIBS
12845
LIBS="-lreadline  $LIBS"
12846 226 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 19 jeremybenn
/* end confdefs.h.  */
12848
 
12849
/* Override any GCC internal prototype to avoid an error.
12850
   Use char because int might match the return type of a GCC
12851
   builtin and then its argument prototype would still apply.  */
12852
#ifdef __cplusplus
12853
extern "C"
12854
#endif
12855
char add_history ();
12856
int
12857
main ()
12858
{
12859
return add_history ();
12860
  ;
12861
  return 0;
12862
}
12863
_ACEOF
12864 226 julius
if ac_fn_c_try_link "$LINENO"; then :
12865 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
12866
else
12867 226 julius
  ac_cv_lib_readline_add_history=no
12868 19 jeremybenn
fi
12869 226 julius
rm -f core conftest.err conftest.$ac_objext \
12870
    conftest$ac_exeext conftest.$ac_ext
12871 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12872
fi
12873 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
12874 82 jeremybenn
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
12875 226 julius
if test "x$ac_cv_lib_readline_add_history" = x""yes; then :
12876 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12877
#define HAVE_LIBREADLINE 1
12878
_ACEOF
12879
 
12880
  LIBS="-lreadline $LIBS"
12881
 
12882
fi
12883
 
12884
 
12885
# yuck
12886
case "$host_os" in
12887
aix*)   prefer_curses=yes ;;
12888
esac
12889
 
12890
case "$host_cpu" in
12891
*cray*) LOCAL_CFLAGS=-DCRAY ;;
12892
esac
12893
 
12894
case "$host_os" in
12895
isc*)   LOCAL_CFLAGS=-Disc386 ;;
12896
esac
12897
 
12898
case "$host_os" in
12899
solaris*) LIBS="-lsocket -lnsl" ;;
12900
esac
12901
 
12902
# define options
12903 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5
12904 82 jeremybenn
$as_echo_n "checking whether to enable profiling... " >&6; }
12905 19 jeremybenn
# Check whether --enable-profiling was given.
12906 226 julius
if test "${enable_profiling+set}" = set; then :
12907 19 jeremybenn
  enableval=$enable_profiling;
12908
    case "$enableval" in
12909
        yes) profile="-pg" ;;
12910
    esac
12911
 
12912
fi
12913
 
12914 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_profiling-no}" >&5
12915 82 jeremybenn
$as_echo "${enable_profiling-no}" >&6; }
12916 19 jeremybenn
 
12917
execution="1"
12918
 
12919
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12920 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which execution style to use" >&5
12921 82 jeremybenn
$as_echo_n "checking which execution style to use... " >&6; }
12922 19 jeremybenn
# Check whether --enable-execution was given.
12923 226 julius
if test "${enable_execution+set}" = set; then :
12924 19 jeremybenn
  enableval=$enable_execution;
12925
    case "$enableval" in
12926
    simple)
12927
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
12928
      execution="0"
12929 226 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple" >&5
12930 82 jeremybenn
$as_echo "simple" >&6; }
12931 19 jeremybenn
      ;;
12932
    complex)
12933
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12934
      execution="1"
12935 226 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
12936 82 jeremybenn
$as_echo "complex" >&6; }
12937 19 jeremybenn
      ;;
12938
    dynamic)
12939
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
12940
      execution="2"
12941 226 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
12942 82 jeremybenn
$as_echo "dynamic" >&6; }
12943 19 jeremybenn
      ;;
12944
    *)
12945 226 julius
      as_fn_error "\"execution must one of simple/complex/dynamic\"" "$LINENO" 5
12946 19 jeremybenn
      ;;
12947
    esac
12948
 
12949
else
12950
 
12951 226 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
12952 82 jeremybenn
$as_echo "complex" >&6; }
12953 19 jeremybenn
 
12954
fi
12955
 
12956
 
12957
eth_phy="0"
12958 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ethernet phy emulation" >&5
12959 82 jeremybenn
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
12960 19 jeremybenn
# Check whether --enable-ethphy was given.
12961 226 julius
if test "${enable_ethphy+set}" = set; then :
12962 19 jeremybenn
  enableval=$enable_ethphy;
12963
    case "$enableval" in
12964
  no)  eth_phy="0" ;;
12965
        yes) eth_phy="1" ;;
12966
    esac
12967
 
12968
fi
12969
 
12970 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_eth_phy-no}" >&5
12971 82 jeremybenn
$as_echo "${enable_eth_phy-no}" >&6; }
12972 19 jeremybenn
 
12973 127 jeremybenn
unsigned_xori="0"
12974 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether l.xori takes an unsigned immediate operand" >&5
12975 127 jeremybenn
$as_echo_n "checking whether l.xori takes an unsigned immediate operand... " >&6; }
12976
# Check whether --enable-unsigned-xori was given.
12977 226 julius
if test "${enable_unsigned_xori+set}" = set; then :
12978 127 jeremybenn
  enableval=$enable_unsigned_xori;
12979
    case "$enableval" in
12980
  no)  unsigned_xori="0" ;;
12981
        yes) unsigned_xori="1" ;;
12982
    esac
12983 19 jeremybenn
 
12984 127 jeremybenn
fi
12985
 
12986 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_unsigned_xori-no}" >&5
12987 127 jeremybenn
$as_echo "${enable_unsigned_xori-no}" >&6; }
12988
 
12989 19 jeremybenn
raw_range_stats="0"
12990 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use raw range stats" >&5
12991 82 jeremybenn
$as_echo_n "checking whether to use raw range stats... " >&6; }
12992 19 jeremybenn
# Check whether --enable-range_stats was given.
12993 226 julius
if test "${enable_range_stats+set}" = set; then :
12994 19 jeremybenn
  enableval=$enable_range_stats;
12995
    case "$enableval" in
12996
  no)  raw_range_stats="0" ;;
12997
        yes) raw_range_stats="1" simple_execution="1" ;;
12998
    esac
12999
 
13000
fi
13001
 
13002 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_range_stats-no}" >&5
13003 82 jeremybenn
$as_echo "${enable_range_stats-no}" >&6; }
13004 19 jeremybenn
 
13005
# check for --enable-debug argument (for argtable2)
13006
# Check whether --enable-debug was given.
13007 226 julius
if test "${enable_debug+set}" = set; then :
13008 19 jeremybenn
  enableval=$enable_debug;
13009
       case $enableval in
13010
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
13011
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
13012
          *)   echo "illegal argument to --enable-debug" & exit 1;;
13013
       esac
13014
 
13015
else
13016
  DEBUGFLAGS="-DNDEBUG"
13017
 
13018
fi
13019
 
13020
 
13021
 
13022
 
13023
cat >>confdefs.h <<_ACEOF
13024
#define RAW_RANGE_STATS $raw_range_stats
13025
_ACEOF
13026
 
13027
 
13028
cat >>confdefs.h <<_ACEOF
13029
#define HAVE_ETH_PHY $eth_phy
13030
_ACEOF
13031
 
13032
 
13033
cat >>confdefs.h <<_ACEOF
13034 127 jeremybenn
#define HAVE_UNSIGNED_XORI $unsigned_xori
13035
_ACEOF
13036
 
13037
 
13038
cat >>confdefs.h <<_ACEOF
13039 19 jeremybenn
#define SIMPLE_EXECUTION $execution == 0
13040
_ACEOF
13041
 
13042
 
13043
cat >>confdefs.h <<_ACEOF
13044
#define COMPLEX_EXECUTION $execution == 1
13045
_ACEOF
13046
 
13047
 
13048
cat >>confdefs.h <<_ACEOF
13049
#define DYNAMIC_EXECUTION $execution == 2
13050
_ACEOF
13051
 
13052
 if test x$execution = x1; then
13053
  GENERATE_NEEDED_TRUE=
13054
  GENERATE_NEEDED_FALSE='#'
13055
else
13056
  GENERATE_NEEDED_TRUE='#'
13057
  GENERATE_NEEDED_FALSE=
13058
fi
13059
 
13060
 if test x$execution = x2; then
13061
  DYNAMIC_EXECUTION_TRUE=
13062
  DYNAMIC_EXECUTION_FALSE='#'
13063
else
13064
  DYNAMIC_EXECUTION_TRUE='#'
13065
  DYNAMIC_EXECUTION_FALSE=
13066
fi
13067
 
13068
 
13069
 
13070
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
13071
 
13072 90 jeremybenn
# Check for a DejaGNU global config file. If not set, then set it
13073
# ourselves. This stops runtest complaining
13074
if test x"$DEJAGNU" = x
13075
then
13076 96 jeremybenn
  DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
13077 90 jeremybenn
fi
13078
 
13079 96 jeremybenn
 
13080
 
13081
# The following line will override the default definition of the srcdir, and
13082
# ensure that short names are used for the test names.
13083
RUNTESTDEFAULTFLAGS="--tool \$\$tool"
13084
 
13085
 
13086 19 jeremybenn
BUILD_DIR=`pwd`
13087
 
13088
 
13089
 
13090
 
13091
 
13092
 
13093
 
13094
 
13095
 
13096
 
13097
 
13098
 
13099
 
13100
 
13101
 
13102
 
13103
 
13104
 
13105 226 julius
$as_echo "#define HAVE_EXECUTION 1" >>confdefs.h
13106 19 jeremybenn
 
13107
 
13108
# yuck
13109
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
13110
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
13111
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
13112
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
13113
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
13114
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
13115
 
13116
 
13117 97 jeremybenn
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/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"
13118 19 jeremybenn
 
13119
 
13120
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
13121
case "$CPU_ARCH" in
13122
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
13123
;;
13124
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
13125
;;
13126
esac
13127
 
13128 82 jeremybenn
# Generate the output
13129
 
13130
 
13131 19 jeremybenn
cat >confcache <<\_ACEOF
13132
# This file is a shell script that caches the results of configure
13133
# tests run on this system so they can be shared between configure
13134
# scripts and configure runs, see configure's option --config-cache.
13135
# It is not useful on other systems.  If it contains results you don't
13136
# want to keep, you may remove or edit it.
13137
#
13138
# config.status only pays attention to the cache file if you give it
13139
# the --recheck option to rerun configure.
13140
#
13141
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13142
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13143
# following values.
13144
 
13145
_ACEOF
13146
 
13147
# The following way of writing the cache mishandles newlines in values,
13148
# but we know of no workaround that is simple, portable, and efficient.
13149
# So, we kill variables containing newlines.
13150
# Ultrix sh set writes to stderr and can't be redirected directly,
13151
# and sets the high bit in the cache file unless we assign to the vars.
13152
(
13153
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13154
    eval ac_val=\$$ac_var
13155
    case $ac_val in #(
13156
    *${as_nl}*)
13157
      case $ac_var in #(
13158 226 julius
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13159 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13160 19 jeremybenn
      esac
13161
      case $ac_var in #(
13162
      _ | IFS | as_nl) ;; #(
13163 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13164 226 julius
      *) { eval $ac_var=; unset $ac_var;} ;;
13165 19 jeremybenn
      esac ;;
13166
    esac
13167
  done
13168
 
13169
  (set) 2>&1 |
13170
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13171
    *${as_nl}ac_space=\ *)
13172 226 julius
      # `set' does not quote correctly, so add quotes: double-quote
13173
      # substitution turns \\\\ into \\, and sed turns \\ into \.
13174 19 jeremybenn
      sed -n \
13175
        "s/'/'\\\\''/g;
13176
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13177
      ;; #(
13178
    *)
13179
      # `set' quotes correctly as required by POSIX, so do not add quotes.
13180
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13181
      ;;
13182
    esac |
13183
    sort
13184
) |
13185
  sed '
13186
     /^ac_cv_env_/b end
13187
     t clear
13188
     :clear
13189
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13190
     t end
13191
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13192
     :end' >>confcache
13193
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13194
  if test -w "$cache_file"; then
13195
    test "x$cache_file" != "x/dev/null" &&
13196 226 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13197 82 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
13198 19 jeremybenn
    cat confcache >$cache_file
13199
  else
13200 226 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13201 82 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13202 19 jeremybenn
  fi
13203
fi
13204
rm -f confcache
13205
 
13206
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13207
# Let make expand exec_prefix.
13208
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13209
 
13210
DEFS=-DHAVE_CONFIG_H
13211
 
13212
ac_libobjs=
13213
ac_ltlibobjs=
13214
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13215
  # 1. Remove the extension, and $U if already installed.
13216
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13217 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13218 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13219
  #    will be set to the directory where LIBOBJS objects are built.
13220 226 julius
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13221
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13222 19 jeremybenn
done
13223
LIBOBJS=$ac_libobjs
13224
 
13225
LTLIBOBJS=$ac_ltlibobjs
13226
 
13227
 
13228
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13229 226 julius
  as_fn_error "conditional \"AMDEP\" was never defined.
13230
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13231 19 jeremybenn
fi
13232
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13233 226 julius
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
13234
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13235 19 jeremybenn
fi
13236 82 jeremybenn
 if test -n "$EXEEXT"; then
13237
  am__EXEEXT_TRUE=
13238
  am__EXEEXT_FALSE='#'
13239
else
13240
  am__EXEEXT_TRUE='#'
13241
  am__EXEEXT_FALSE=
13242
fi
13243
 
13244
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13245 226 julius
  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
13246
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13247 19 jeremybenn
fi
13248 82 jeremybenn
 
13249 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
13250 226 julius
  as_fn_error "conditional \"USE_SYS_GETOPTLONG\" was never defined.
13251
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13252 19 jeremybenn
fi
13253
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
13254 226 julius
  as_fn_error "conditional \"USE_ARGREX\" was never defined.
13255
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13256 19 jeremybenn
fi
13257
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
13258 226 julius
  as_fn_error "conditional \"USE_ARGDATE\" was never defined.
13259
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13260 19 jeremybenn
fi
13261
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
13262 226 julius
  as_fn_error "conditional \"GENERATE_NEEDED\" was never defined.
13263
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13264 19 jeremybenn
fi
13265
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
13266 226 julius
  as_fn_error "conditional \"DYNAMIC_EXECUTION\" was never defined.
13267
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13268 19 jeremybenn
fi
13269
 
13270
: ${CONFIG_STATUS=./config.status}
13271 82 jeremybenn
ac_write_fail=0
13272 19 jeremybenn
ac_clean_files_save=$ac_clean_files
13273
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13274 226 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13275 82 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13276 226 julius
as_write_fail=0
13277
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13278 19 jeremybenn
#! $SHELL
13279
# Generated by $as_me.
13280
# Run this file to recreate the current configuration.
13281
# Compiler output produced by configure, useful for debugging
13282
# configure, is in config.log if it exists.
13283
 
13284
debug=false
13285
ac_cs_recheck=false
13286
ac_cs_silent=false
13287 226 julius
 
13288 19 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
13289 226 julius
export SHELL
13290
_ASEOF
13291
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13292
## -------------------- ##
13293
## M4sh Initialization. ##
13294
## -------------------- ##
13295 19 jeremybenn
 
13296
# Be more Bourne compatible
13297
DUALCASE=1; export DUALCASE # for MKS sh
13298 226 julius
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13299 19 jeremybenn
  emulate sh
13300
  NULLCMD=:
13301 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13302 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
13303
  alias -g '${1+"$@"}'='"$@"'
13304
  setopt NO_GLOB_SUBST
13305
else
13306 226 julius
  case `(set -o) 2>/dev/null` in #(
13307
  *posix*) :
13308
    set -o posix ;; #(
13309
  *) :
13310
     ;;
13311 19 jeremybenn
esac
13312
fi
13313
 
13314
 
13315 82 jeremybenn
as_nl='
13316
'
13317
export as_nl
13318
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13319
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13320
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13321
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13322 226 julius
# Prefer a ksh shell builtin over an external printf program on Solaris,
13323
# but without wasting forks for bash or zsh.
13324
if test -z "$BASH_VERSION$ZSH_VERSION" \
13325
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13326
  as_echo='print -r --'
13327
  as_echo_n='print -rn --'
13328
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13329 82 jeremybenn
  as_echo='printf %s\n'
13330
  as_echo_n='printf %s'
13331
else
13332
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13333
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13334
    as_echo_n='/usr/ucb/echo -n'
13335 19 jeremybenn
  else
13336 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13337
    as_echo_n_body='eval
13338
      arg=$1;
13339 226 julius
      case $arg in #(
13340 82 jeremybenn
      *"$as_nl"*)
13341
        expr "X$arg" : "X\\(.*\\)$as_nl";
13342
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13343
      esac;
13344
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13345
    '
13346
    export as_echo_n_body
13347
    as_echo_n='sh -c $as_echo_n_body as_echo'
13348 19 jeremybenn
  fi
13349 82 jeremybenn
  export as_echo_body
13350
  as_echo='sh -c $as_echo_body as_echo'
13351 19 jeremybenn
fi
13352
 
13353 82 jeremybenn
# The user is always right.
13354
if test "${PATH_SEPARATOR+set}" != set; then
13355
  PATH_SEPARATOR=:
13356
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13357
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13358
      PATH_SEPARATOR=';'
13359
  }
13360
fi
13361
 
13362 19 jeremybenn
 
13363
# IFS
13364
# We need space, tab and new line, in precisely that order.  Quoting is
13365
# there to prevent editors from complaining about space-tab.
13366
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13367
# splitting by setting IFS to empty value.)
13368
IFS=" ""        $as_nl"
13369
 
13370
# Find who we are.  Look in the path if we contain no directory separator.
13371 226 julius
case $0 in #((
13372 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
13373
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374
for as_dir in $PATH
13375
do
13376
  IFS=$as_save_IFS
13377
  test -z "$as_dir" && as_dir=.
13378 226 julius
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13379
  done
13380 19 jeremybenn
IFS=$as_save_IFS
13381
 
13382
     ;;
13383
esac
13384
# We did not find ourselves, most probably we were run as `sh COMMAND'
13385
# in which case we are not to be found in the path.
13386
if test "x$as_myself" = x; then
13387
  as_myself=$0
13388
fi
13389
if test ! -f "$as_myself"; then
13390 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13391 226 julius
  exit 1
13392 19 jeremybenn
fi
13393
 
13394 226 julius
# Unset variables that we do not need and which cause bugs (e.g. in
13395
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13396
# suppresses any "Segmentation fault" message there.  '((' could
13397
# trigger a bug in pdksh 5.2.14.
13398
for as_var in BASH_ENV ENV MAIL MAILPATH
13399
do eval test x\${$as_var+set} = xset \
13400
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13401 19 jeremybenn
done
13402
PS1='$ '
13403
PS2='> '
13404
PS4='+ '
13405
 
13406
# NLS nuisances.
13407 82 jeremybenn
LC_ALL=C
13408
export LC_ALL
13409
LANGUAGE=C
13410
export LANGUAGE
13411 19 jeremybenn
 
13412 226 julius
# CDPATH.
13413
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13414
 
13415
 
13416
# as_fn_error ERROR [LINENO LOG_FD]
13417
# ---------------------------------
13418
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13419
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13420
# script with status $?, using 1 if that was 0.
13421
as_fn_error ()
13422
{
13423
  as_status=$?; test $as_status -eq 0 && as_status=1
13424
  if test "$3"; then
13425
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13426
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13427
  fi
13428
  $as_echo "$as_me: error: $1" >&2
13429
  as_fn_exit $as_status
13430
} # as_fn_error
13431
 
13432
 
13433
# as_fn_set_status STATUS
13434
# -----------------------
13435
# Set $? to STATUS, without forking.
13436
as_fn_set_status ()
13437
{
13438
  return $1
13439
} # as_fn_set_status
13440
 
13441
# as_fn_exit STATUS
13442
# -----------------
13443
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13444
as_fn_exit ()
13445
{
13446
  set +e
13447
  as_fn_set_status $1
13448
  exit $1
13449
} # as_fn_exit
13450
 
13451
# as_fn_unset VAR
13452
# ---------------
13453
# Portably unset VAR.
13454
as_fn_unset ()
13455
{
13456
  { eval $1=; unset $1;}
13457
}
13458
as_unset=as_fn_unset
13459
# as_fn_append VAR VALUE
13460
# ----------------------
13461
# Append the text in VALUE to the end of the definition contained in VAR. Take
13462
# advantage of any shell optimizations that allow amortized linear growth over
13463
# repeated appends, instead of the typical quadratic growth present in naive
13464
# implementations.
13465
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13466
  eval 'as_fn_append ()
13467
  {
13468
    eval $1+=\$2
13469
  }'
13470
else
13471
  as_fn_append ()
13472
  {
13473
    eval $1=\$$1\$2
13474
  }
13475
fi # as_fn_append
13476
 
13477
# as_fn_arith ARG...
13478
# ------------------
13479
# Perform arithmetic evaluation on the ARGs, and store the result in the
13480
# global $as_val. Take advantage of shells that can avoid forks. The arguments
13481
# must be portable across $(()) and expr.
13482
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13483
  eval 'as_fn_arith ()
13484
  {
13485
    as_val=$(( $* ))
13486
  }'
13487
else
13488
  as_fn_arith ()
13489
  {
13490
    as_val=`expr "$@" || test $? -eq 1`
13491
  }
13492
fi # as_fn_arith
13493
 
13494
 
13495 19 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
13496
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13497
  as_expr=expr
13498
else
13499
  as_expr=false
13500
fi
13501
 
13502
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13503
  as_basename=basename
13504
else
13505
  as_basename=false
13506
fi
13507
 
13508 226 julius
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13509
  as_dirname=dirname
13510
else
13511
  as_dirname=false
13512
fi
13513 19 jeremybenn
 
13514
as_me=`$as_basename -- "$0" ||
13515
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13516
         X"$0" : 'X\(//\)$' \| \
13517
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13518 82 jeremybenn
$as_echo X/"$0" |
13519 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13520
            s//\1/
13521
            q
13522
          }
13523
          /^X\/\(\/\/\)$/{
13524
            s//\1/
13525
            q
13526
          }
13527
          /^X\/\(\/\).*/{
13528
            s//\1/
13529
            q
13530
          }
13531
          s/.*/./; q'`
13532
 
13533 226 julius
# Avoid depending upon Character Ranges.
13534
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13535
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13536
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13537
as_cr_digits='0123456789'
13538
as_cr_alnum=$as_cr_Letters$as_cr_digits
13539 19 jeremybenn
 
13540
ECHO_C= ECHO_N= ECHO_T=
13541 226 julius
case `echo -n x` in #(((((
13542 19 jeremybenn
-n*)
13543 226 julius
  case `echo 'xy\c'` in
13544 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13545 226 julius
  xy)  ECHO_C='\c';;
13546
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13547
       ECHO_T=' ';;
13548 19 jeremybenn
  esac;;
13549
*)
13550
  ECHO_N='-n';;
13551
esac
13552
 
13553
rm -f conf$$ conf$$.exe conf$$.file
13554
if test -d conf$$.dir; then
13555
  rm -f conf$$.dir/conf$$.file
13556
else
13557
  rm -f conf$$.dir
13558 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
13559 19 jeremybenn
fi
13560 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
13561
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13562
    as_ln_s='ln -s'
13563
    # ... but there are two gotchas:
13564
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13565
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13566
    # In both cases, we have to default to `cp -p'.
13567
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13568
      as_ln_s='cp -p'
13569
  elif ln conf$$.file conf$$ 2>/dev/null; then
13570
    as_ln_s=ln
13571
  else
13572 19 jeremybenn
    as_ln_s='cp -p'
13573 82 jeremybenn
  fi
13574 19 jeremybenn
else
13575
  as_ln_s='cp -p'
13576
fi
13577
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13578
rmdir conf$$.dir 2>/dev/null
13579
 
13580 226 julius
 
13581
# as_fn_mkdir_p
13582
# -------------
13583
# Create "$as_dir" as a directory, including parents if necessary.
13584
as_fn_mkdir_p ()
13585
{
13586
 
13587
  case $as_dir in #(
13588
  -*) as_dir=./$as_dir;;
13589
  esac
13590
  test -d "$as_dir" || eval $as_mkdir_p || {
13591
    as_dirs=
13592
    while :; do
13593
      case $as_dir in #(
13594
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13595
      *) as_qdir=$as_dir;;
13596
      esac
13597
      as_dirs="'$as_qdir' $as_dirs"
13598
      as_dir=`$as_dirname -- "$as_dir" ||
13599
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13600
         X"$as_dir" : 'X\(//\)[^/]' \| \
13601
         X"$as_dir" : 'X\(//\)$' \| \
13602
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13603
$as_echo X"$as_dir" |
13604
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13605
            s//\1/
13606
            q
13607
          }
13608
          /^X\(\/\/\)[^/].*/{
13609
            s//\1/
13610
            q
13611
          }
13612
          /^X\(\/\/\)$/{
13613
            s//\1/
13614
            q
13615
          }
13616
          /^X\(\/\).*/{
13617
            s//\1/
13618
            q
13619
          }
13620
          s/.*/./; q'`
13621
      test -d "$as_dir" && break
13622
    done
13623
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13624
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13625
 
13626
 
13627
} # as_fn_mkdir_p
13628 19 jeremybenn
if mkdir -p . 2>/dev/null; then
13629 226 julius
  as_mkdir_p='mkdir -p "$as_dir"'
13630 19 jeremybenn
else
13631
  test -d ./-p && rmdir ./-p
13632
  as_mkdir_p=false
13633
fi
13634
 
13635
if test -x / >/dev/null 2>&1; then
13636
  as_test_x='test -x'
13637
else
13638
  if ls -dL / >/dev/null 2>&1; then
13639
    as_ls_L_option=L
13640
  else
13641
    as_ls_L_option=
13642
  fi
13643
  as_test_x='
13644
    eval sh -c '\''
13645
      if test -d "$1"; then
13646 82 jeremybenn
        test -d "$1/.";
13647 19 jeremybenn
      else
13648 226 julius
        case $1 in #(
13649 82 jeremybenn
        -*)set "./$1";;
13650 19 jeremybenn
        esac;
13651 226 julius
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13652 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
13653
    '\'' sh
13654
  '
13655
fi
13656
as_executable_p=$as_test_x
13657
 
13658
# Sed expression to map a string onto a valid CPP name.
13659
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13660
 
13661
# Sed expression to map a string onto a valid variable name.
13662
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13663
 
13664
 
13665
exec 6>&1
13666 226 julius
## ----------------------------------- ##
13667
## Main body of $CONFIG_STATUS script. ##
13668
## ----------------------------------- ##
13669
_ASEOF
13670
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13671 19 jeremybenn
 
13672 226 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13673
# Save the log message, to keep $0 and so on meaningful, and to
13674 19 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
13675
# values after options handling.
13676
ac_log="
13677 224 jeremybenn
This file was extended by or1ksim $as_me 2010-07-30, which was
13678 226 julius
generated by GNU Autoconf 2.64.  Invocation command line was
13679 19 jeremybenn
 
13680
  CONFIG_FILES    = $CONFIG_FILES
13681
  CONFIG_HEADERS  = $CONFIG_HEADERS
13682
  CONFIG_LINKS    = $CONFIG_LINKS
13683
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13684
  $ $0 $@
13685
 
13686
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13687
"
13688
 
13689
_ACEOF
13690
 
13691 82 jeremybenn
case $ac_config_files in *"
13692
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13693
esac
13694
 
13695
case $ac_config_headers in *"
13696
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13697
esac
13698
 
13699
 
13700
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13701 19 jeremybenn
# Files that config.status was made for.
13702
config_files="$ac_config_files"
13703
config_headers="$ac_config_headers"
13704
config_commands="$ac_config_commands"
13705
 
13706
_ACEOF
13707
 
13708 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13709 19 jeremybenn
ac_cs_usage="\
13710 226 julius
\`$as_me' instantiates files and other configuration actions
13711
from templates according to the current configuration.  Unless the files
13712
and actions are specified as TAGs, all are instantiated by default.
13713 19 jeremybenn
 
13714 226 julius
Usage: $0 [OPTION]... [TAG]...
13715 19 jeremybenn
 
13716
  -h, --help       print this help, then exit
13717
  -V, --version    print version number and configuration settings, then exit
13718 82 jeremybenn
  -q, --quiet, --silent
13719
                   do not print progress messages
13720 19 jeremybenn
  -d, --debug      don't remove temporary files
13721
      --recheck    update $as_me by reconfiguring in the same conditions
13722 82 jeremybenn
      --file=FILE[:TEMPLATE]
13723
                   instantiate the configuration file FILE
13724
      --header=FILE[:TEMPLATE]
13725
                   instantiate the configuration header FILE
13726 19 jeremybenn
 
13727
Configuration files:
13728
$config_files
13729
 
13730
Configuration headers:
13731
$config_headers
13732
 
13733
Configuration commands:
13734
$config_commands
13735
 
13736 226 julius
Report bugs to ."
13737 19 jeremybenn
 
13738
_ACEOF
13739 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13740 19 jeremybenn
ac_cs_version="\\
13741 224 jeremybenn
or1ksim config.status 2010-07-30
13742 226 julius
configured by $0, generated by GNU Autoconf 2.64,
13743 121 jeremybenn
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13744 19 jeremybenn
 
13745 226 julius
Copyright (C) 2009 Free Software Foundation, Inc.
13746 19 jeremybenn
This config.status script is free software; the Free Software Foundation
13747
gives unlimited permission to copy, distribute and modify it."
13748
 
13749
ac_pwd='$ac_pwd'
13750
srcdir='$srcdir'
13751
INSTALL='$INSTALL'
13752
MKDIR_P='$MKDIR_P'
13753 82 jeremybenn
AWK='$AWK'
13754
test -n "\$AWK" || AWK=awk
13755 19 jeremybenn
_ACEOF
13756
 
13757 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13758
# The default lists apply if the user does not specify any file.
13759 19 jeremybenn
ac_need_defaults=:
13760
while test $# != 0
13761
do
13762
  case $1 in
13763
  --*=*)
13764
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13765
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13766
    ac_shift=:
13767
    ;;
13768
  *)
13769
    ac_option=$1
13770
    ac_optarg=$2
13771
    ac_shift=shift
13772
    ;;
13773
  esac
13774
 
13775
  case $ac_option in
13776
  # Handling of the options.
13777
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13778
    ac_cs_recheck=: ;;
13779
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13780 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
13781 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
13782
    debug=: ;;
13783
  --file | --fil | --fi | --f )
13784
    $ac_shift
13785 82 jeremybenn
    case $ac_optarg in
13786
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13787
    esac
13788 226 julius
    as_fn_append CONFIG_FILES " '$ac_optarg'"
13789 19 jeremybenn
    ac_need_defaults=false;;
13790
  --header | --heade | --head | --hea )
13791
    $ac_shift
13792 82 jeremybenn
    case $ac_optarg in
13793
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13794
    esac
13795 226 julius
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13796 19 jeremybenn
    ac_need_defaults=false;;
13797
  --he | --h)
13798
    # Conflict between --help and --header
13799 226 julius
    as_fn_error "ambiguous option: \`$1'
13800
Try \`$0 --help' for more information.";;
13801 19 jeremybenn
  --help | --hel | -h )
13802 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
13803 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13804
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13805
    ac_cs_silent=: ;;
13806
 
13807
  # This is an error.
13808 226 julius
  -*) as_fn_error "unrecognized option: \`$1'
13809
Try \`$0 --help' for more information." ;;
13810 19 jeremybenn
 
13811 226 julius
  *) as_fn_append ac_config_targets " $1"
13812 19 jeremybenn
     ac_need_defaults=false ;;
13813
 
13814
  esac
13815
  shift
13816
done
13817
 
13818
ac_configure_extra_args=
13819
 
13820
if $ac_cs_silent; then
13821
  exec 6>/dev/null
13822
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13823
fi
13824
 
13825
_ACEOF
13826 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13827 19 jeremybenn
if \$ac_cs_recheck; then
13828 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13829
  shift
13830
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13831
  CONFIG_SHELL='$SHELL'
13832 19 jeremybenn
  export CONFIG_SHELL
13833 82 jeremybenn
  exec "\$@"
13834 19 jeremybenn
fi
13835
 
13836
_ACEOF
13837 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13838 19 jeremybenn
exec 5>>config.log
13839
{
13840
  echo
13841
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13842
## Running $as_me. ##
13843
_ASBOX
13844 82 jeremybenn
  $as_echo "$ac_log"
13845 19 jeremybenn
} >&5
13846
 
13847
_ACEOF
13848 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13849 19 jeremybenn
#
13850
# INIT-COMMANDS
13851
#
13852 82 jeremybenn
 
13853
 
13854
# The HP-UX ksh and POSIX shell print the target directory to stdout
13855
# if CDPATH is set.
13856
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13857
 
13858
sed_quote_subst='$sed_quote_subst'
13859
double_quote_subst='$double_quote_subst'
13860
delay_variable_subst='$delay_variable_subst'
13861
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13862
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13863
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13864
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13865
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13866
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13867
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13868
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13869
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13870
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13871
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13872
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13873
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13874
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13875
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13876
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13877
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13878
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13879
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13880
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13881
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13882
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13883
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13884
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13885
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13886
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13887
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13888
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13889
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13890
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13891
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13892
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13893
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13894
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13895
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13896
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13897
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13898
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13899
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13900
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13901
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13902
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13903
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13904
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13905
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"`'
13906
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"`'
13907
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13908
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13909
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13910
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13911
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13912
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13913
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13914
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13915
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13916
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13917
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13918
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13919
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13920
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13921
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13922
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13923
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13924
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13925
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13926
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13927
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13928
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13929
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13930
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13931
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13932
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13933
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13934
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13935
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13936
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13937
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13938
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13939
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13940
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13941
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13942
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13943
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13944
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13945
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13946
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13947
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13948
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13949
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13950
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13951
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13952
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13953
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13954
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13955
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13956
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13957
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13958
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13959
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13960
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13961
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13962
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13963
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13964
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13965
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13966
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13967
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13968
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13969
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13970
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13971
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13972
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13973
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13974
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13975
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13976
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13977
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13978
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13979
 
13980
LTCC='$LTCC'
13981
LTCFLAGS='$LTCFLAGS'
13982
compiler='$compiler_DEFAULT'
13983
 
13984
# Quote evaled strings.
13985
for var in SED \
13986
GREP \
13987
EGREP \
13988
FGREP \
13989
LD \
13990
NM \
13991
LN_S \
13992
lt_SP2NL \
13993
lt_NL2SP \
13994
reload_flag \
13995
OBJDUMP \
13996
deplibs_check_method \
13997
file_magic_cmd \
13998
AR \
13999
AR_FLAGS \
14000
STRIP \
14001
RANLIB \
14002
CC \
14003
CFLAGS \
14004
compiler \
14005
lt_cv_sys_global_symbol_pipe \
14006
lt_cv_sys_global_symbol_to_cdecl \
14007
lt_cv_sys_global_symbol_to_c_name_address \
14008
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14009
SHELL \
14010
ECHO \
14011
lt_prog_compiler_no_builtin_flag \
14012
lt_prog_compiler_wl \
14013
lt_prog_compiler_pic \
14014
lt_prog_compiler_static \
14015
lt_cv_prog_compiler_c_o \
14016
need_locks \
14017
DSYMUTIL \
14018
NMEDIT \
14019
LIPO \
14020
OTOOL \
14021
OTOOL64 \
14022
shrext_cmds \
14023
export_dynamic_flag_spec \
14024
whole_archive_flag_spec \
14025
compiler_needs_object \
14026
with_gnu_ld \
14027
allow_undefined_flag \
14028
no_undefined_flag \
14029
hardcode_libdir_flag_spec \
14030
hardcode_libdir_flag_spec_ld \
14031
hardcode_libdir_separator \
14032
fix_srcfile_path \
14033
exclude_expsyms \
14034
include_expsyms \
14035
file_list_spec \
14036
variables_saved_for_relink \
14037
libname_spec \
14038
library_names_spec \
14039
soname_spec \
14040
finish_eval \
14041
old_striplib \
14042
striplib; do
14043
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14044
    *[\\\\\\\`\\"\\\$]*)
14045
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14046
      ;;
14047
    *)
14048
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14049
      ;;
14050
    esac
14051
done
14052
 
14053
# Double-quote double-evaled strings.
14054
for var in reload_cmds \
14055
old_postinstall_cmds \
14056
old_postuninstall_cmds \
14057
old_archive_cmds \
14058
extract_expsyms_cmds \
14059
old_archive_from_new_cmds \
14060
old_archive_from_expsyms_cmds \
14061
archive_cmds \
14062
archive_expsym_cmds \
14063
module_cmds \
14064
module_expsym_cmds \
14065
export_symbols_cmds \
14066
prelink_cmds \
14067
postinstall_cmds \
14068
postuninstall_cmds \
14069
finish_cmds \
14070
sys_lib_search_path_spec \
14071
sys_lib_dlsearch_path_spec; do
14072
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14073
    *[\\\\\\\`\\"\\\$]*)
14074
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14075
      ;;
14076
    *)
14077
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14078
      ;;
14079
    esac
14080
done
14081
 
14082
# Fix-up fallback echo if it was mangled by the above quoting rules.
14083
case \$lt_ECHO in
14084
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14085
  ;;
14086
esac
14087
 
14088
ac_aux_dir='$ac_aux_dir'
14089
xsi_shell='$xsi_shell'
14090
lt_shell_append='$lt_shell_append'
14091
 
14092
# See if we are running on zsh, and set the options which allow our
14093
# commands through without removal of \ escapes INIT.
14094
if test -n "\${ZSH_VERSION+set}" ; then
14095
   setopt NO_GLOB_SUBST
14096
fi
14097
 
14098
 
14099
    PACKAGE='$PACKAGE'
14100
    VERSION='$VERSION'
14101
    TIMESTAMP='$TIMESTAMP'
14102
    RM='$RM'
14103
    ofile='$ofile'
14104
 
14105
 
14106
 
14107 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14108
 
14109
_ACEOF
14110
 
14111 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14112 19 jeremybenn
 
14113
# Handling of arguments.
14114
for ac_config_target in $ac_config_targets
14115
do
14116
  case $ac_config_target in
14117 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14118 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14119
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14120
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14121
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
14122
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
14123
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
14124
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
14125
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
14126
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
14127
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
14128
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
14129
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14130
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
14131
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
14132
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
14133
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
14134
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
14135 90 jeremybenn
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
14136
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
14137
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14138
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
14139
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
14140
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
14141
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
14142
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
14143
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
14144 93 jeremybenn
    "testsuite/test-code/lib-inttest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-inttest/Makefile" ;;
14145 97 jeremybenn
    "testsuite/test-code/lib-jtag/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-jtag/Makefile" ;;
14146 93 jeremybenn
    "testsuite/test-code/lib-upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-upcalls/Makefile" ;;
14147 90 jeremybenn
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
14148 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
14149
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
14150
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
14151
 
14152 226 julius
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14153 19 jeremybenn
  esac
14154
done
14155
 
14156
 
14157
# If the user did not use the arguments to specify the items to instantiate,
14158
# then the envvar interface is used.  Set only those that are not.
14159
# We use the long form for the default assignment because of an extremely
14160
# bizarre bug on SunOS 4.1.3.
14161
if $ac_need_defaults; then
14162
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14163
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14164
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14165
fi
14166
 
14167
# Have a temporary directory for convenience.  Make it in the build tree
14168
# simply because there is no reason against having it here, and in addition,
14169
# creating and moving files from /tmp can sometimes cause problems.
14170
# Hook for its removal unless debugging.
14171
# Note that there is a small window in which the directory will not be cleaned:
14172
# after its creation but before its name has been assigned to `$tmp'.
14173
$debug ||
14174
{
14175
  tmp=
14176
  trap 'exit_status=$?
14177
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14178
' 0
14179 226 julius
  trap 'as_fn_exit 1' 1 2 13 15
14180 19 jeremybenn
}
14181
# Create a (secure) tmp directory for tmp files.
14182
 
14183
{
14184
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14185
  test -n "$tmp" && test -d "$tmp"
14186
}  ||
14187
{
14188
  tmp=./conf$$-$RANDOM
14189
  (umask 077 && mkdir "$tmp")
14190 226 julius
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14191 19 jeremybenn
 
14192 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
14193
# No need to generate them if there are no CONFIG_FILES.
14194
# This happens for instance with `./config.status config.h'.
14195 19 jeremybenn
if test -n "$CONFIG_FILES"; then
14196
 
14197 82 jeremybenn
 
14198 226 julius
ac_cr=`echo X | tr X '\015'`
14199
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14200
# But we know of no other shell where ac_cr would be empty at this
14201
# point, so we can use a bashism as a fallback.
14202
if test "x$ac_cr" = x; then
14203
  eval ac_cr=\$\'\\r\'
14204
fi
14205 82 jeremybenn
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
14206
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14207 226 julius
  ac_cs_awk_cr='\r'
14208 82 jeremybenn
else
14209
  ac_cs_awk_cr=$ac_cr
14210
fi
14211
 
14212
echo 'BEGIN {' >"$tmp/subs1.awk" &&
14213 19 jeremybenn
_ACEOF
14214
 
14215
 
14216 82 jeremybenn
{
14217
  echo "cat >conf$$subs.awk <<_ACEOF" &&
14218
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14219
  echo "_ACEOF"
14220
} >conf$$subs.sh ||
14221 226 julius
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14222 82 jeremybenn
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14223 19 jeremybenn
ac_delim='%!_!# '
14224
for ac_last_try in false false false false false :; do
14225 82 jeremybenn
  . ./conf$$subs.sh ||
14226 226 julius
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14227 19 jeremybenn
 
14228 82 jeremybenn
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14229
  if test $ac_delim_n = $ac_delim_num; then
14230 19 jeremybenn
    break
14231
  elif $ac_last_try; then
14232 226 julius
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14233 19 jeremybenn
  else
14234
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14235
  fi
14236
done
14237 82 jeremybenn
rm -f conf$$subs.sh
14238 19 jeremybenn
 
14239 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14240
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14241 19 jeremybenn
_ACEOF
14242 82 jeremybenn
sed -n '
14243
h
14244
s/^/S["/; s/!.*/"]=/
14245
p
14246
g
14247
s/^[^!]*!//
14248
:repl
14249
t repl
14250
s/'"$ac_delim"'$//
14251
t delim
14252
:nl
14253
h
14254 121 jeremybenn
s/\(.\{148\}\).*/\1/
14255 82 jeremybenn
t more1
14256
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14257
p
14258
n
14259
b repl
14260
:more1
14261
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14262
p
14263
g
14264
s/.\{148\}//
14265
t nl
14266
:delim
14267
h
14268 121 jeremybenn
s/\(.\{148\}\).*/\1/
14269 82 jeremybenn
t more2
14270
s/["\\]/\\&/g; s/^/"/; s/$/"/
14271
p
14272
b
14273
:more2
14274
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14275
p
14276
g
14277
s/.\{148\}//
14278
t delim
14279
' 
14280
/^[^""]/{
14281
  N
14282
  s/\n//
14283
}
14284
' >>$CONFIG_STATUS || ac_write_fail=1
14285
rm -f conf$$subs.awk
14286
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14287
_ACAWK
14288
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14289
  for (key in S) S_is_set[key] = 1
14290
  FS = ""
14291 19 jeremybenn
 
14292 82 jeremybenn
}
14293
{
14294
  line = $ 0
14295
  nfields = split(line, field, "@")
14296
  substed = 0
14297
  len = length(field[1])
14298
  for (i = 2; i < nfields; i++) {
14299
    key = field[i]
14300
    keylen = length(key)
14301
    if (S_is_set[key]) {
14302
      value = S[key]
14303
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14304
      len += length(value) + length(field[++i])
14305
      substed = 1
14306
    } else
14307
      len += 1 + keylen
14308
  }
14309 19 jeremybenn
 
14310 82 jeremybenn
  print line
14311
}
14312
 
14313
_ACAWK
14314 19 jeremybenn
_ACEOF
14315 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14316
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14317
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14318
else
14319
  cat
14320
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14321 226 julius
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14322 19 jeremybenn
_ACEOF
14323
 
14324
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14325
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14326
# trailing colons and then remove the whole line if VPATH becomes empty
14327
# (actually we leave an empty line to preserve line numbers).
14328
if test "x$srcdir" = x.; then
14329
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14330
s/:*\$(srcdir):*/:/
14331
s/:*\${srcdir}:*/:/
14332
s/:*@srcdir@:*/:/
14333
s/^\([^=]*=[     ]*\):*/\1/
14334
s/:*$//
14335
s/^[^=]*=[       ]*$//
14336
}'
14337
fi
14338
 
14339 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14340 19 jeremybenn
fi # test -n "$CONFIG_FILES"
14341
 
14342 82 jeremybenn
# Set up the scripts for CONFIG_HEADERS section.
14343
# No need to generate them if there are no CONFIG_HEADERS.
14344
# This happens for instance with `./config.status Makefile'.
14345
if test -n "$CONFIG_HEADERS"; then
14346
cat >"$tmp/defines.awk" <<\_ACAWK ||
14347
BEGIN {
14348
_ACEOF
14349 19 jeremybenn
 
14350 82 jeremybenn
# Transform confdefs.h into an awk script `defines.awk', embedded as
14351
# here-document in config.status, that substitutes the proper values into
14352
# config.h.in to produce config.h.
14353
 
14354
# Create a delimiter string that does not exist in confdefs.h, to ease
14355
# handling of long lines.
14356
ac_delim='%!_!# '
14357
for ac_last_try in false false :; do
14358
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14359
  if test -z "$ac_t"; then
14360
    break
14361
  elif $ac_last_try; then
14362 226 julius
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14363 82 jeremybenn
  else
14364
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14365
  fi
14366
done
14367
 
14368
# For the awk script, D is an array of macro values keyed by name,
14369
# likewise P contains macro parameters if any.  Preserve backslash
14370
# newline sequences.
14371
 
14372
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14373
sed -n '
14374
s/.\{148\}/&'"$ac_delim"'/g
14375
t rset
14376
:rset
14377
s/^[     ]*#[    ]*define[       ][      ]*/ /
14378
t def
14379
d
14380
:def
14381
s/\\$//
14382
t bsnl
14383
s/["\\]/\\&/g
14384
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14385
D["\1"]=" \3"/p
14386
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14387
d
14388
:bsnl
14389
s/["\\]/\\&/g
14390
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14391
D["\1"]=" \3\\\\\\n"\\/p
14392
t cont
14393
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14394
t cont
14395
d
14396
:cont
14397
n
14398
s/.\{148\}/&'"$ac_delim"'/g
14399
t clear
14400
:clear
14401
s/\\$//
14402
t bsnlc
14403
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14404
d
14405
:bsnlc
14406
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14407
b cont
14408
' 
14409
s/'"$ac_delim"'/"\\\
14410
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14411
 
14412
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14413
  for (key in D) D_is_set[key] = 1
14414
  FS = ""
14415
}
14416
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14417
  line = \$ 0
14418
  split(line, arg, " ")
14419
  if (arg[1] == "#") {
14420
    defundef = arg[2]
14421
    mac1 = arg[3]
14422
  } else {
14423
    defundef = substr(arg[1], 2)
14424
    mac1 = arg[2]
14425
  }
14426
  split(mac1, mac2, "(") #)
14427
  macro = mac2[1]
14428
  prefix = substr(line, 1, index(line, defundef) - 1)
14429
  if (D_is_set[macro]) {
14430
    # Preserve the white space surrounding the "#".
14431
    print prefix "define", macro P[macro] D[macro]
14432
    next
14433
  } else {
14434
    # Replace #undef with comments.  This is necessary, for example,
14435
    # in the case of _POSIX_SOURCE, which is predefined and required
14436
    # on some systems where configure will not decide to define it.
14437
    if (defundef == "undef") {
14438
      print "/*", prefix defundef, macro, "*/"
14439
      next
14440
    }
14441
  }
14442
}
14443
{ print }
14444
_ACAWK
14445
_ACEOF
14446
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14447 226 julius
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14448 82 jeremybenn
fi # test -n "$CONFIG_HEADERS"
14449
 
14450
 
14451
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14452
shift
14453
for ac_tag
14454 19 jeremybenn
do
14455
  case $ac_tag in
14456
  :[FHLC]) ac_mode=$ac_tag; continue;;
14457
  esac
14458
  case $ac_mode$ac_tag in
14459
  :[FHL]*:*);;
14460 226 julius
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14461 19 jeremybenn
  :[FH]-) ac_tag=-:-;;
14462
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14463
  esac
14464
  ac_save_IFS=$IFS
14465
  IFS=:
14466
  set x $ac_tag
14467
  IFS=$ac_save_IFS
14468
  shift
14469
  ac_file=$1
14470
  shift
14471
 
14472
  case $ac_mode in
14473
  :L) ac_source=$1;;
14474
  :[FH])
14475
    ac_file_inputs=
14476
    for ac_f
14477
    do
14478
      case $ac_f in
14479
      -) ac_f="$tmp/stdin";;
14480
      *) # Look for the file first in the build tree, then in the source tree
14481
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
14482
         # because $ac_f cannot contain `:'.
14483
         test -f "$ac_f" ||
14484
           case $ac_f in
14485
           [\\/$]*) false;;
14486
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14487
           esac ||
14488 226 julius
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14489 19 jeremybenn
      esac
14490 82 jeremybenn
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14491 226 julius
      as_fn_append ac_file_inputs " '$ac_f'"
14492 19 jeremybenn
    done
14493
 
14494
    # Let's still pretend it is `configure' which instantiates (i.e., don't
14495
    # use $as_me), people would be surprised to read:
14496
    #    /* config.h.  Generated by config.status.  */
14497 82 jeremybenn
    configure_input='Generated from '`
14498
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14499
        `' by configure.'
14500 19 jeremybenn
    if test x"$ac_file" != x-; then
14501
      configure_input="$ac_file.  $configure_input"
14502 226 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14503 82 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
14504 19 jeremybenn
    fi
14505 82 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
14506
    case $configure_input in #(
14507
    *\&* | *\|* | *\\* )
14508
       ac_sed_conf_input=`$as_echo "$configure_input" |
14509
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14510
    *) ac_sed_conf_input=$configure_input;;
14511
    esac
14512 19 jeremybenn
 
14513
    case $ac_tag in
14514 82 jeremybenn
    *:-:* | *:-) cat >"$tmp/stdin" \
14515 226 julius
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14516 19 jeremybenn
    esac
14517
    ;;
14518
  esac
14519
 
14520
  ac_dir=`$as_dirname -- "$ac_file" ||
14521
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14522
         X"$ac_file" : 'X\(//\)[^/]' \| \
14523
         X"$ac_file" : 'X\(//\)$' \| \
14524
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14525 82 jeremybenn
$as_echo X"$ac_file" |
14526 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14527
            s//\1/
14528
            q
14529
          }
14530
          /^X\(\/\/\)[^/].*/{
14531
            s//\1/
14532
            q
14533
          }
14534
          /^X\(\/\/\)$/{
14535
            s//\1/
14536
            q
14537
          }
14538
          /^X\(\/\).*/{
14539
            s//\1/
14540
            q
14541
          }
14542
          s/.*/./; q'`
14543 226 julius
  as_dir="$ac_dir"; as_fn_mkdir_p
14544 19 jeremybenn
  ac_builddir=.
14545
 
14546
case "$ac_dir" in
14547
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14548
*)
14549 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14550 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
14551 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14552 19 jeremybenn
  case $ac_top_builddir_sub in
14553
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14554
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14555
  esac ;;
14556
esac
14557
ac_abs_top_builddir=$ac_pwd
14558
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14559
# for backward compatibility:
14560
ac_top_builddir=$ac_top_build_prefix
14561
 
14562
case $srcdir in
14563
  .)  # We are building in place.
14564
    ac_srcdir=.
14565
    ac_top_srcdir=$ac_top_builddir_sub
14566
    ac_abs_top_srcdir=$ac_pwd ;;
14567
  [\\/]* | ?:[\\/]* )  # Absolute name.
14568
    ac_srcdir=$srcdir$ac_dir_suffix;
14569
    ac_top_srcdir=$srcdir
14570
    ac_abs_top_srcdir=$srcdir ;;
14571
  *) # Relative name.
14572
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14573
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14574
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14575
esac
14576
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14577
 
14578
 
14579
  case $ac_mode in
14580
  :F)
14581
  #
14582
  # CONFIG_FILE
14583
  #
14584
 
14585
  case $INSTALL in
14586
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14587
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14588
  esac
14589
  ac_MKDIR_P=$MKDIR_P
14590
  case $MKDIR_P in
14591
  [\\/$]* | ?:[\\/]* ) ;;
14592
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14593
  esac
14594
_ACEOF
14595
 
14596 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14597 19 jeremybenn
# If the template does not know about datarootdir, expand it.
14598
# FIXME: This hack should be removed a few years after 2.60.
14599
ac_datarootdir_hack=; ac_datarootdir_seen=
14600 82 jeremybenn
ac_sed_dataroot='
14601
/datarootdir/ {
14602 19 jeremybenn
  p
14603
  q
14604
}
14605
/@datadir@/p
14606
/@docdir@/p
14607
/@infodir@/p
14608
/@localedir@/p
14609 226 julius
/@mandir@/p'
14610 82 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14611 19 jeremybenn
*datarootdir*) ac_datarootdir_seen=yes;;
14612
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14613 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14614 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14615 19 jeremybenn
_ACEOF
14616 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14617 19 jeremybenn
  ac_datarootdir_hack='
14618
  s&@datadir@&$datadir&g
14619
  s&@docdir@&$docdir&g
14620
  s&@infodir@&$infodir&g
14621
  s&@localedir@&$localedir&g
14622
  s&@mandir@&$mandir&g
14623 226 julius
  s&\\\${datarootdir}&$datarootdir&g' ;;
14624 19 jeremybenn
esac
14625
_ACEOF
14626
 
14627
# Neutralize VPATH when `$srcdir' = `.'.
14628
# Shell code in configure.ac might set extrasub.
14629
# FIXME: do we really want to maintain this feature?
14630 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14631
ac_sed_extra="$ac_vpsub
14632 19 jeremybenn
$extrasub
14633
_ACEOF
14634 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14635 19 jeremybenn
:t
14636
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14637 82 jeremybenn
s|@configure_input@|$ac_sed_conf_input|;t t
14638 19 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
14639 82 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14640 19 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
14641
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14642
s&@top_srcdir@&$ac_top_srcdir&;t t
14643
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14644
s&@builddir@&$ac_builddir&;t t
14645
s&@abs_builddir@&$ac_abs_builddir&;t t
14646
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14647
s&@INSTALL@&$ac_INSTALL&;t t
14648
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14649
$ac_datarootdir_hack
14650 82 jeremybenn
"
14651
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14652 226 julius
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14653 19 jeremybenn
 
14654
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14655
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14656
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14657 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14658 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
14659 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14660 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
14661
 
14662
  rm -f "$tmp/stdin"
14663
  case $ac_file in
14664 82 jeremybenn
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14665
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14666
  esac \
14667 226 julius
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14668 19 jeremybenn
 ;;
14669
  :H)
14670
  #
14671
  # CONFIG_HEADER
14672
  #
14673
  if test x"$ac_file" != x-; then
14674 82 jeremybenn
    {
14675
      $as_echo "/* $configure_input  */" \
14676
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14677
    } >"$tmp/config.h" \
14678 226 julius
      || as_fn_error "could not create $ac_file" "$LINENO" 5
14679 82 jeremybenn
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14680 226 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14681 82 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14682 19 jeremybenn
    else
14683 82 jeremybenn
      rm -f "$ac_file"
14684
      mv "$tmp/config.h" "$ac_file" \
14685 226 julius
        || as_fn_error "could not create $ac_file" "$LINENO" 5
14686 19 jeremybenn
    fi
14687
  else
14688 82 jeremybenn
    $as_echo "/* $configure_input  */" \
14689
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14690 226 julius
      || as_fn_error "could not create -" "$LINENO" 5
14691 19 jeremybenn
  fi
14692 82 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
14693
_am_arg="$ac_file"
14694 19 jeremybenn
_am_stamp_count=1
14695
for _am_header in $config_headers :; do
14696
  case $_am_header in
14697
    $_am_arg | $_am_arg:* )
14698
      break ;;
14699
    * )
14700
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14701
  esac
14702
done
14703
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14704
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14705
         X"$_am_arg" : 'X\(//\)[^/]' \| \
14706
         X"$_am_arg" : 'X\(//\)$' \| \
14707
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14708 82 jeremybenn
$as_echo X"$_am_arg" |
14709 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14710
            s//\1/
14711
            q
14712
          }
14713
          /^X\(\/\/\)[^/].*/{
14714
            s//\1/
14715
            q
14716
          }
14717
          /^X\(\/\/\)$/{
14718
            s//\1/
14719
            q
14720
          }
14721
          /^X\(\/\).*/{
14722
            s//\1/
14723
            q
14724
          }
14725
          s/.*/./; q'`/stamp-h$_am_stamp_count
14726
 ;;
14727
 
14728 226 julius
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14729 82 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
14730 19 jeremybenn
 ;;
14731
  esac
14732
 
14733
 
14734
  case $ac_file$ac_mode in
14735 82 jeremybenn
    "libtool":C)
14736
 
14737
    # See if we are running on zsh, and set the options which allow our
14738
    # commands through without removal of \ escapes.
14739
    if test -n "${ZSH_VERSION+set}" ; then
14740
      setopt NO_GLOB_SUBST
14741
    fi
14742
 
14743
    cfgfile="${ofile}T"
14744
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14745
    $RM "$cfgfile"
14746
 
14747
    cat <<_LT_EOF >> "$cfgfile"
14748
#! $SHELL
14749
 
14750
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14751
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14752
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14753
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14754
#
14755
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14756
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14757
#   Written by Gordon Matzigkeit, 1996
14758
#
14759
#   This file is part of GNU Libtool.
14760
#
14761
# GNU Libtool is free software; you can redistribute it and/or
14762
# modify it under the terms of the GNU General Public License as
14763
# published by the Free Software Foundation; either version 2 of
14764
# the License, or (at your option) any later version.
14765
#
14766
# As a special exception to the GNU General Public License,
14767
# if you distribute this file as part of a program or library that
14768
# is built using GNU Libtool, you may include this file under the
14769
# same distribution terms that you use for the rest of that program.
14770
#
14771
# GNU Libtool is distributed in the hope that it will be useful,
14772
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14773
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14774
# GNU General Public License for more details.
14775
#
14776
# You should have received a copy of the GNU General Public License
14777
# along with GNU Libtool; see the file COPYING.  If not, a copy
14778
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14779
# obtained by writing to the Free Software Foundation, Inc.,
14780
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14781
 
14782
 
14783
# The names of the tagged configurations supported by this script.
14784
available_tags=""
14785
 
14786
# ### BEGIN LIBTOOL CONFIG
14787
 
14788
# Which release of libtool.m4 was used?
14789
macro_version=$macro_version
14790
macro_revision=$macro_revision
14791
 
14792
# Whether or not to build shared libraries.
14793
build_libtool_libs=$enable_shared
14794
 
14795
# Whether or not to build static libraries.
14796
build_old_libs=$enable_static
14797
 
14798
# What type of objects to build.
14799
pic_mode=$pic_mode
14800
 
14801
# Whether or not to optimize for fast installation.
14802
fast_install=$enable_fast_install
14803
 
14804
# The host system.
14805
host_alias=$host_alias
14806
host=$host
14807
host_os=$host_os
14808
 
14809
# The build system.
14810
build_alias=$build_alias
14811
build=$build
14812
build_os=$build_os
14813
 
14814
# A sed program that does not truncate output.
14815
SED=$lt_SED
14816
 
14817
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14818
Xsed="\$SED -e 1s/^X//"
14819
 
14820
# A grep program that handles long lines.
14821
GREP=$lt_GREP
14822
 
14823
# An ERE matcher.
14824
EGREP=$lt_EGREP
14825
 
14826
# A literal string matcher.
14827
FGREP=$lt_FGREP
14828
 
14829
# A BSD- or MS-compatible name lister.
14830
NM=$lt_NM
14831
 
14832
# Whether we need soft or hard links.
14833
LN_S=$lt_LN_S
14834
 
14835
# What is the maximum length of a command?
14836
max_cmd_len=$max_cmd_len
14837
 
14838
# Object file suffix (normally "o").
14839
objext=$ac_objext
14840
 
14841
# Executable file suffix (normally "").
14842
exeext=$exeext
14843
 
14844
# whether the shell understands "unset".
14845
lt_unset=$lt_unset
14846
 
14847
# turn spaces into newlines.
14848
SP2NL=$lt_lt_SP2NL
14849
 
14850
# turn newlines into spaces.
14851
NL2SP=$lt_lt_NL2SP
14852
 
14853
# How to create reloadable object files.
14854
reload_flag=$lt_reload_flag
14855
reload_cmds=$lt_reload_cmds
14856
 
14857
# An object symbol dumper.
14858
OBJDUMP=$lt_OBJDUMP
14859
 
14860
# Method to check whether dependent libraries are shared objects.
14861
deplibs_check_method=$lt_deplibs_check_method
14862
 
14863
# Command to use when deplibs_check_method == "file_magic".
14864
file_magic_cmd=$lt_file_magic_cmd
14865
 
14866
# The archiver.
14867
AR=$lt_AR
14868
AR_FLAGS=$lt_AR_FLAGS
14869
 
14870
# A symbol stripping program.
14871
STRIP=$lt_STRIP
14872
 
14873
# Commands used to install an old-style archive.
14874
RANLIB=$lt_RANLIB
14875
old_postinstall_cmds=$lt_old_postinstall_cmds
14876
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14877
 
14878
# A C compiler.
14879
LTCC=$lt_CC
14880
 
14881
# LTCC compiler flags.
14882
LTCFLAGS=$lt_CFLAGS
14883
 
14884
# Take the output of nm and produce a listing of raw symbols and C names.
14885
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14886
 
14887
# Transform the output of nm in a proper C declaration.
14888
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14889
 
14890
# Transform the output of nm in a C name address pair.
14891
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14892
 
14893
# Transform the output of nm in a C name address pair when lib prefix is needed.
14894
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14895
 
14896
# The name of the directory that contains temporary libtool files.
14897
objdir=$objdir
14898
 
14899
# Shell to use when invoking shell scripts.
14900
SHELL=$lt_SHELL
14901
 
14902
# An echo program that does not interpret backslashes.
14903
ECHO=$lt_ECHO
14904
 
14905
# Used to examine libraries when file_magic_cmd begins with "file".
14906
MAGIC_CMD=$MAGIC_CMD
14907
 
14908
# Must we lock files when doing compilation?
14909
need_locks=$lt_need_locks
14910
 
14911
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14912
DSYMUTIL=$lt_DSYMUTIL
14913
 
14914
# Tool to change global to local symbols on Mac OS X.
14915
NMEDIT=$lt_NMEDIT
14916
 
14917
# Tool to manipulate fat objects and archives on Mac OS X.
14918
LIPO=$lt_LIPO
14919
 
14920
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14921
OTOOL=$lt_OTOOL
14922
 
14923
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14924
OTOOL64=$lt_OTOOL64
14925
 
14926
# Old archive suffix (normally "a").
14927
libext=$libext
14928
 
14929
# Shared library suffix (normally ".so").
14930
shrext_cmds=$lt_shrext_cmds
14931
 
14932
# The commands to extract the exported symbol list from a shared archive.
14933
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14934
 
14935
# Variables whose values should be saved in libtool wrapper scripts and
14936
# restored at link time.
14937
variables_saved_for_relink=$lt_variables_saved_for_relink
14938
 
14939
# Do we need the "lib" prefix for modules?
14940
need_lib_prefix=$need_lib_prefix
14941
 
14942
# Do we need a version for libraries?
14943
need_version=$need_version
14944
 
14945
# Library versioning type.
14946
version_type=$version_type
14947
 
14948
# Shared library runtime path variable.
14949
runpath_var=$runpath_var
14950
 
14951
# Shared library path variable.
14952
shlibpath_var=$shlibpath_var
14953
 
14954
# Is shlibpath searched before the hard-coded library search path?
14955
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14956
 
14957
# Format of library name prefix.
14958
libname_spec=$lt_libname_spec
14959
 
14960
# List of archive names.  First name is the real one, the rest are links.
14961
# The last name is the one that the linker finds with -lNAME
14962
library_names_spec=$lt_library_names_spec
14963
 
14964
# The coded name of the library, if different from the real name.
14965
soname_spec=$lt_soname_spec
14966
 
14967
# Command to use after installation of a shared archive.
14968
postinstall_cmds=$lt_postinstall_cmds
14969
 
14970
# Command to use after uninstallation of a shared archive.
14971
postuninstall_cmds=$lt_postuninstall_cmds
14972
 
14973
# Commands used to finish a libtool library installation in a directory.
14974
finish_cmds=$lt_finish_cmds
14975
 
14976
# As "finish_cmds", except a single script fragment to be evaled but
14977
# not shown.
14978
finish_eval=$lt_finish_eval
14979
 
14980
# Whether we should hardcode library paths into libraries.
14981
hardcode_into_libs=$hardcode_into_libs
14982
 
14983
# Compile-time system search path for libraries.
14984
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14985
 
14986
# Run-time system search path for libraries.
14987
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14988
 
14989
# Whether dlopen is supported.
14990
dlopen_support=$enable_dlopen
14991
 
14992
# Whether dlopen of programs is supported.
14993
dlopen_self=$enable_dlopen_self
14994
 
14995
# Whether dlopen of statically linked programs is supported.
14996
dlopen_self_static=$enable_dlopen_self_static
14997
 
14998
# Commands to strip libraries.
14999
old_striplib=$lt_old_striplib
15000
striplib=$lt_striplib
15001
 
15002
 
15003
# The linker used to build libraries.
15004
LD=$lt_LD
15005
 
15006
# Commands used to build an old-style archive.
15007
old_archive_cmds=$lt_old_archive_cmds
15008
 
15009
# A language specific compiler.
15010
CC=$lt_compiler
15011
 
15012
# Is the compiler the GNU compiler?
15013
with_gcc=$GCC
15014
 
15015
# Compiler flag to turn off builtin functions.
15016
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15017
 
15018
# How to pass a linker flag through the compiler.
15019
wl=$lt_lt_prog_compiler_wl
15020
 
15021
# Additional compiler flags for building library objects.
15022
pic_flag=$lt_lt_prog_compiler_pic
15023
 
15024
# Compiler flag to prevent dynamic linking.
15025
link_static_flag=$lt_lt_prog_compiler_static
15026
 
15027
# Does compiler simultaneously support -c and -o options?
15028
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15029
 
15030
# Whether or not to add -lc for building shared libraries.
15031
build_libtool_need_lc=$archive_cmds_need_lc
15032
 
15033
# Whether or not to disallow shared libs when runtime libs are static.
15034
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15035
 
15036
# Compiler flag to allow reflexive dlopens.
15037
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15038
 
15039
# Compiler flag to generate shared objects directly from archives.
15040
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15041
 
15042
# Whether the compiler copes with passing no objects directly.
15043
compiler_needs_object=$lt_compiler_needs_object
15044
 
15045
# Create an old-style archive from a shared archive.
15046
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15047
 
15048
# Create a temporary old-style archive to link instead of a shared archive.
15049
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15050
 
15051
# Commands used to build a shared archive.
15052
archive_cmds=$lt_archive_cmds
15053
archive_expsym_cmds=$lt_archive_expsym_cmds
15054
 
15055
# Commands used to build a loadable module if different from building
15056
# a shared archive.
15057
module_cmds=$lt_module_cmds
15058
module_expsym_cmds=$lt_module_expsym_cmds
15059
 
15060
# Whether we are building with GNU ld or not.
15061
with_gnu_ld=$lt_with_gnu_ld
15062
 
15063
# Flag that allows shared libraries with undefined symbols to be built.
15064
allow_undefined_flag=$lt_allow_undefined_flag
15065
 
15066
# Flag that enforces no undefined symbols.
15067
no_undefined_flag=$lt_no_undefined_flag
15068
 
15069
# Flag to hardcode \$libdir into a binary during linking.
15070
# This must work even if \$libdir does not exist
15071
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15072
 
15073
# If ld is used when linking, flag to hardcode \$libdir into a binary
15074
# during linking.  This must work even if \$libdir does not exist.
15075
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15076
 
15077
# Whether we need a single "-rpath" flag with a separated argument.
15078
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15079
 
15080
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15081
# DIR into the resulting binary.
15082
hardcode_direct=$hardcode_direct
15083
 
15084
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15085
# DIR into the resulting binary and the resulting library dependency is
15086
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15087
# library is relocated.
15088
hardcode_direct_absolute=$hardcode_direct_absolute
15089
 
15090
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15091
# into the resulting binary.
15092
hardcode_minus_L=$hardcode_minus_L
15093
 
15094
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15095
# into the resulting binary.
15096
hardcode_shlibpath_var=$hardcode_shlibpath_var
15097
 
15098
# Set to "yes" if building a shared library automatically hardcodes DIR
15099
# into the library and all subsequent libraries and executables linked
15100
# against it.
15101
hardcode_automatic=$hardcode_automatic
15102
 
15103
# Set to yes if linker adds runtime paths of dependent libraries
15104
# to runtime path list.
15105
inherit_rpath=$inherit_rpath
15106
 
15107
# Whether libtool must link a program against all its dependency libraries.
15108
link_all_deplibs=$link_all_deplibs
15109
 
15110
# Fix the shell variable \$srcfile for the compiler.
15111
fix_srcfile_path=$lt_fix_srcfile_path
15112
 
15113
# Set to "yes" if exported symbols are required.
15114
always_export_symbols=$always_export_symbols
15115
 
15116
# The commands to list exported symbols.
15117
export_symbols_cmds=$lt_export_symbols_cmds
15118
 
15119
# Symbols that should not be listed in the preloaded symbols.
15120
exclude_expsyms=$lt_exclude_expsyms
15121
 
15122
# Symbols that must always be exported.
15123
include_expsyms=$lt_include_expsyms
15124
 
15125
# Commands necessary for linking programs (against libraries) with templates.
15126
prelink_cmds=$lt_prelink_cmds
15127
 
15128
# Specify filename containing input files.
15129
file_list_spec=$lt_file_list_spec
15130
 
15131
# How to hardcode a shared library path into an executable.
15132
hardcode_action=$hardcode_action
15133
 
15134
# ### END LIBTOOL CONFIG
15135
 
15136
_LT_EOF
15137
 
15138
  case $host_os in
15139
  aix3*)
15140
    cat <<\_LT_EOF >> "$cfgfile"
15141
# AIX sometimes has problems with the GCC collect2 program.  For some
15142
# reason, if we set the COLLECT_NAMES environment variable, the problems
15143
# vanish in a puff of smoke.
15144
if test "X${COLLECT_NAMES+set}" != Xset; then
15145
  COLLECT_NAMES=
15146
  export COLLECT_NAMES
15147
fi
15148
_LT_EOF
15149
    ;;
15150
  esac
15151
 
15152
 
15153
ltmain="$ac_aux_dir/ltmain.sh"
15154
 
15155
 
15156
  # We use sed instead of cat because bash on DJGPP gets confused if
15157
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15158
  # text mode, it properly converts lines to CR/LF.  This bash problem
15159
  # is reportedly fixed, but why not run on old versions too?
15160
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15161
    || (rm -f "$cfgfile"; exit 1)
15162
 
15163
  case $xsi_shell in
15164
  yes)
15165
    cat << \_LT_EOF >> "$cfgfile"
15166
 
15167
# func_dirname file append nondir_replacement
15168
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15169
# otherwise set result to NONDIR_REPLACEMENT.
15170
func_dirname ()
15171
{
15172
  case ${1} in
15173
    */*) func_dirname_result="${1%/*}${2}" ;;
15174
    *  ) func_dirname_result="${3}" ;;
15175
  esac
15176
}
15177
 
15178
# func_basename file
15179
func_basename ()
15180
{
15181
  func_basename_result="${1##*/}"
15182
}
15183
 
15184
# func_dirname_and_basename file append nondir_replacement
15185
# perform func_basename and func_dirname in a single function
15186
# call:
15187
#   dirname:  Compute the dirname of FILE.  If nonempty,
15188
#             add APPEND to the result, otherwise set result
15189
#             to NONDIR_REPLACEMENT.
15190
#             value returned in "$func_dirname_result"
15191
#   basename: Compute filename of FILE.
15192
#             value retuned in "$func_basename_result"
15193
# Implementation must be kept synchronized with func_dirname
15194
# and func_basename. For efficiency, we do not delegate to
15195
# those functions but instead duplicate the functionality here.
15196
func_dirname_and_basename ()
15197
{
15198
  case ${1} in
15199
    */*) func_dirname_result="${1%/*}${2}" ;;
15200
    *  ) func_dirname_result="${3}" ;;
15201
  esac
15202
  func_basename_result="${1##*/}"
15203
}
15204
 
15205
# func_stripname prefix suffix name
15206
# strip PREFIX and SUFFIX off of NAME.
15207
# PREFIX and SUFFIX must not contain globbing or regex special
15208
# characters, hashes, percent signs, but SUFFIX may contain a leading
15209
# dot (in which case that matches only a dot).
15210
func_stripname ()
15211
{
15212
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15213
  # positional parameters, so assign one to ordinary parameter first.
15214
  func_stripname_result=${3}
15215
  func_stripname_result=${func_stripname_result#"${1}"}
15216
  func_stripname_result=${func_stripname_result%"${2}"}
15217
}
15218
 
15219
# func_opt_split
15220
func_opt_split ()
15221
{
15222
  func_opt_split_opt=${1%%=*}
15223
  func_opt_split_arg=${1#*=}
15224
}
15225
 
15226
# func_lo2o object
15227
func_lo2o ()
15228
{
15229
  case ${1} in
15230
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15231
    *)    func_lo2o_result=${1} ;;
15232
  esac
15233
}
15234
 
15235
# func_xform libobj-or-source
15236
func_xform ()
15237
{
15238
  func_xform_result=${1%.*}.lo
15239
}
15240
 
15241
# func_arith arithmetic-term...
15242
func_arith ()
15243
{
15244
  func_arith_result=$(( $* ))
15245
}
15246
 
15247
# func_len string
15248
# STRING may not start with a hyphen.
15249
func_len ()
15250
{
15251
  func_len_result=${#1}
15252
}
15253
 
15254
_LT_EOF
15255
    ;;
15256
  *) # Bourne compatible functions.
15257
    cat << \_LT_EOF >> "$cfgfile"
15258
 
15259
# func_dirname file append nondir_replacement
15260
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15261
# otherwise set result to NONDIR_REPLACEMENT.
15262
func_dirname ()
15263
{
15264
  # Extract subdirectory from the argument.
15265
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15266
  if test "X$func_dirname_result" = "X${1}"; then
15267
    func_dirname_result="${3}"
15268
  else
15269
    func_dirname_result="$func_dirname_result${2}"
15270
  fi
15271
}
15272
 
15273
# func_basename file
15274
func_basename ()
15275
{
15276
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15277
}
15278
 
15279
 
15280
# func_stripname prefix suffix name
15281
# strip PREFIX and SUFFIX off of NAME.
15282
# PREFIX and SUFFIX must not contain globbing or regex special
15283
# characters, hashes, percent signs, but SUFFIX may contain a leading
15284
# dot (in which case that matches only a dot).
15285
# func_strip_suffix prefix name
15286
func_stripname ()
15287
{
15288
  case ${2} in
15289
    .*) func_stripname_result=`$ECHO "X${3}" \
15290
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15291
    *)  func_stripname_result=`$ECHO "X${3}" \
15292
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15293
  esac
15294
}
15295
 
15296
# sed scripts:
15297
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15298
my_sed_long_arg='1s/^-[^=]*=//'
15299
 
15300
# func_opt_split
15301
func_opt_split ()
15302
{
15303
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15304
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15305
}
15306
 
15307
# func_lo2o object
15308
func_lo2o ()
15309
{
15310
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15311
}
15312
 
15313
# func_xform libobj-or-source
15314
func_xform ()
15315
{
15316
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15317
}
15318
 
15319
# func_arith arithmetic-term...
15320
func_arith ()
15321
{
15322
  func_arith_result=`expr "$@"`
15323
}
15324
 
15325
# func_len string
15326
# STRING may not start with a hyphen.
15327
func_len ()
15328
{
15329
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15330
}
15331
 
15332
_LT_EOF
15333
esac
15334
 
15335
case $lt_shell_append in
15336
  yes)
15337
    cat << \_LT_EOF >> "$cfgfile"
15338
 
15339
# func_append var value
15340
# Append VALUE to the end of shell variable VAR.
15341
func_append ()
15342
{
15343
  eval "$1+=\$2"
15344
}
15345
_LT_EOF
15346
    ;;
15347
  *)
15348
    cat << \_LT_EOF >> "$cfgfile"
15349
 
15350
# func_append var value
15351
# Append VALUE to the end of shell variable VAR.
15352
func_append ()
15353
{
15354
  eval "$1=\$$1\$2"
15355
}
15356
 
15357
_LT_EOF
15358
    ;;
15359
  esac
15360
 
15361
 
15362
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15363
    || (rm -f "$cfgfile"; exit 1)
15364
 
15365
  mv -f "$cfgfile" "$ofile" ||
15366
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15367
  chmod +x "$ofile"
15368
 
15369
 ;;
15370
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15371
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15372
  # are listed without --file.  Let's play safe and only enable the eval
15373
  # if we detect the quoting.
15374
  case $CONFIG_FILES in
15375
  *\'*) eval set x "$CONFIG_FILES" ;;
15376
  *)   set x $CONFIG_FILES ;;
15377
  esac
15378
  shift
15379
  for mf
15380
  do
15381
    # Strip MF so we end up with the name of the file.
15382
    mf=`echo "$mf" | sed -e 's/:.*$//'`
15383
    # Check whether this is an Automake generated Makefile or not.
15384
    # We used to match only the files named `Makefile.in', but
15385
    # some people rename them; so instead we look at the file content.
15386
    # Grep'ing the first line is not enough: some people post-process
15387
    # each Makefile.in and add a new line on top of each file to say so.
15388
    # Grep'ing the whole file is not good either: AIX grep has a line
15389
    # limit of 2048, but all sed's we know have understand at least 4000.
15390
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15391
      dirpart=`$as_dirname -- "$mf" ||
15392 19 jeremybenn
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15393
         X"$mf" : 'X\(//\)[^/]' \| \
15394
         X"$mf" : 'X\(//\)$' \| \
15395
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15396 82 jeremybenn
$as_echo X"$mf" |
15397 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15398
            s//\1/
15399
            q
15400
          }
15401
          /^X\(\/\/\)[^/].*/{
15402
            s//\1/
15403
            q
15404
          }
15405
          /^X\(\/\/\)$/{
15406
            s//\1/
15407
            q
15408
          }
15409
          /^X\(\/\).*/{
15410
            s//\1/
15411
            q
15412
          }
15413
          s/.*/./; q'`
15414 82 jeremybenn
    else
15415
      continue
15416
    fi
15417
    # Extract the definition of DEPDIR, am__include, and am__quote
15418
    # from the Makefile without running `make'.
15419
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15420
    test -z "$DEPDIR" && continue
15421
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15422
    test -z "am__include" && continue
15423
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15424
    # When using ansi2knr, U may be empty or an underscore; expand it
15425
    U=`sed -n 's/^U = //p' < "$mf"`
15426
    # Find all dependency output files, they are included files with
15427
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15428
    # simplest approach to changing $(DEPDIR) to its actual value in the
15429
    # expansion.
15430
    for file in `sed -n "
15431
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15432
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15433
      # Make sure the directory exists.
15434
      test -f "$dirpart/$file" && continue
15435
      fdir=`$as_dirname -- "$file" ||
15436 19 jeremybenn
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15437
         X"$file" : 'X\(//\)[^/]' \| \
15438
         X"$file" : 'X\(//\)$' \| \
15439
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15440 82 jeremybenn
$as_echo X"$file" |
15441 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15442
            s//\1/
15443
            q
15444
          }
15445
          /^X\(\/\/\)[^/].*/{
15446
            s//\1/
15447
            q
15448
          }
15449
          /^X\(\/\/\)$/{
15450
            s//\1/
15451
            q
15452
          }
15453
          /^X\(\/\).*/{
15454
            s//\1/
15455
            q
15456
          }
15457
          s/.*/./; q'`
15458 226 julius
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15459 82 jeremybenn
      # echo "creating $dirpart/$file"
15460
      echo '# dummy' > "$dirpart/$file"
15461
    done
15462 19 jeremybenn
  done
15463 82 jeremybenn
}
15464 19 jeremybenn
 ;;
15465
 
15466
  esac
15467
done # for ac_tag
15468
 
15469
 
15470 226 julius
as_fn_exit 0
15471 19 jeremybenn
_ACEOF
15472
ac_clean_files=$ac_clean_files_save
15473
 
15474 82 jeremybenn
test $ac_write_fail = 0 ||
15475 226 julius
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15476 19 jeremybenn
 
15477 82 jeremybenn
 
15478 19 jeremybenn
# configure is writing to config.log, and then calls config.status.
15479
# config.status does its own redirection, appending to config.log.
15480
# Unfortunately, on DOS this fails, as config.log is still kept open
15481
# by configure, so config.status won't be able to write to it; its
15482
# output is simply discarded.  So we exec the FD to /dev/null,
15483
# effectively closing config.log, so it can be properly (re)opened and
15484
# appended to by config.status.  When coming back to configure, we
15485
# need to make the FD available again.
15486
if test "$no_create" != yes; then
15487
  ac_cs_success=:
15488
  ac_config_status_args=
15489
  test "$silent" = yes &&
15490
    ac_config_status_args="$ac_config_status_args --quiet"
15491
  exec 5>/dev/null
15492
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15493
  exec 5>>config.log
15494
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15495
  # would make configure fail if this is the last instruction.
15496 226 julius
  $ac_cs_success || as_fn_exit $?
15497 19 jeremybenn
fi
15498
 
15499 82 jeremybenn
#
15500
# CONFIG_SUBDIRS section.
15501
#
15502
if test "$no_recursion" != yes; then
15503
 
15504
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15505
  # so they do not pile up.
15506
  ac_sub_configure_args=
15507
  ac_prev=
15508
  eval "set x $ac_configure_args"
15509
  shift
15510
  for ac_arg
15511
  do
15512
    if test -n "$ac_prev"; then
15513
      ac_prev=
15514
      continue
15515
    fi
15516
    case $ac_arg in
15517
    -cache-file | --cache-file | --cache-fil | --cache-fi \
15518
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15519
      ac_prev=cache_file ;;
15520
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15521
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15522
    | --c=*)
15523
      ;;
15524
    --config-cache | -C)
15525
      ;;
15526
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15527
      ac_prev=srcdir ;;
15528
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15529
      ;;
15530
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15531
      ac_prev=prefix ;;
15532
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15533
      ;;
15534
    --disable-option-checking)
15535
      ;;
15536
    *)
15537
      case $ac_arg in
15538
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15539
      esac
15540 226 julius
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15541 82 jeremybenn
    esac
15542
  done
15543
 
15544
  # Always prepend --prefix to ensure using the same prefix
15545
  # in subdir configurations.
15546
  ac_arg="--prefix=$prefix"
15547
  case $ac_arg in
15548
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15549
  esac
15550
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15551
 
15552
  # Pass --silent
15553
  if test "$silent" = yes; then
15554
    ac_sub_configure_args="--silent $ac_sub_configure_args"
15555
  fi
15556
 
15557
  # Always prepend --disable-option-checking to silence warnings, since
15558
  # different subdirs can have different --enable and --with options.
15559
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15560
 
15561
  ac_popdir=`pwd`
15562
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15563
 
15564
    # Do not complain, so a configure script can configure whichever
15565
    # parts of a large source tree are present.
15566
    test -d "$srcdir/$ac_dir" || continue
15567
 
15568
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15569 226 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15570 82 jeremybenn
    $as_echo "$ac_msg" >&6
15571 226 julius
    as_dir="$ac_dir"; as_fn_mkdir_p
15572 82 jeremybenn
    ac_builddir=.
15573
 
15574
case "$ac_dir" in
15575
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15576
*)
15577
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15578
  # A ".." for each directory in $ac_dir_suffix.
15579
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15580
  case $ac_top_builddir_sub in
15581
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15582
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15583
  esac ;;
15584
esac
15585
ac_abs_top_builddir=$ac_pwd
15586
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15587
# for backward compatibility:
15588
ac_top_builddir=$ac_top_build_prefix
15589
 
15590
case $srcdir in
15591
  .)  # We are building in place.
15592
    ac_srcdir=.
15593
    ac_top_srcdir=$ac_top_builddir_sub
15594
    ac_abs_top_srcdir=$ac_pwd ;;
15595
  [\\/]* | ?:[\\/]* )  # Absolute name.
15596
    ac_srcdir=$srcdir$ac_dir_suffix;
15597
    ac_top_srcdir=$srcdir
15598
    ac_abs_top_srcdir=$srcdir ;;
15599
  *) # Relative name.
15600
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15601
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15602
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15603
esac
15604
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15605
 
15606
 
15607
    cd "$ac_dir"
15608
 
15609
    # Check for guested configure; otherwise get Cygnus style configure.
15610
    if test -f "$ac_srcdir/configure.gnu"; then
15611
      ac_sub_configure=$ac_srcdir/configure.gnu
15612
    elif test -f "$ac_srcdir/configure"; then
15613
      ac_sub_configure=$ac_srcdir/configure
15614
    elif test -f "$ac_srcdir/configure.in"; then
15615
      # This should be Cygnus configure.
15616
      ac_sub_configure=$ac_aux_dir/configure
15617
    else
15618 226 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15619 82 jeremybenn
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15620
      ac_sub_configure=
15621
    fi
15622
 
15623
    # The recursion is here.
15624
    if test -n "$ac_sub_configure"; then
15625
      # Make the cache file name correct relative to the subdirectory.
15626
      case $cache_file in
15627
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15628
      *) # Relative name.
15629
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15630
      esac
15631
 
15632 226 julius
      { $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
15633 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;}
15634
      # The eval makes quoting arguments work.
15635
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15636
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15637 226 julius
        as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15638 82 jeremybenn
    fi
15639
 
15640
    cd "$ac_popdir"
15641
  done
15642
fi
15643
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15644 226 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15645 82 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15646
fi
15647
 

powered by: WebSVN 2.1.0

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