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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [autom4te.cache/] [output.0] - Blame information for rev 841

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

Line No. Rev Author Line
1 19 jeremybenn
@%:@! /bin/sh
2 561 julius
@%:@ From configure.ac Id: configure.ac 556 2011-06-06 19:17:37Z julius  using automake version AC_ACVERSION.
3 19 jeremybenn
@%:@ Guess values for system-dependent variables and create Makefiles.
4 538 julius
@%:@ Generated by GNU Autoconf 2.64 for or1ksim 2011-04-28.
5 19 jeremybenn
@%:@
6
@%:@ Report bugs to .
7
@%:@
8
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 202 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 202 julius
@%:@
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
## -------------------- ##
35
## M4sh Initialization. ##
36
## -------------------- ##
37 19 jeremybenn
 
38
# Be more Bourne compatible
39
DUALCASE=1; export DUALCASE # for MKS sh
40 202 julius
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41 19 jeremybenn
  emulate sh
42
  NULLCMD=:
43 202 julius
  # 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 202 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 202 julius
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
# 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
  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 202 julius
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
79
    as_echo_n_body='eval
80
      arg=$1;
81
      case $arg in @%:@(
82
      *"$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 202 julius
  export as_echo_body
92
  as_echo='sh -c $as_echo_body as_echo'
93 19 jeremybenn
fi
94
 
95 202 julius
# 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 19 jeremybenn
fi
103
 
104
 
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 202 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 202 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 202 julius
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
133
  exit 1
134 19 jeremybenn
fi
135
 
136 202 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 202 julius
LC_ALL=C
150
export LC_ALL
151
LANGUAGE=C
152
export LANGUAGE
153 19 jeremybenn
 
154
# CDPATH.
155 202 julius
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
156 19 jeremybenn
 
157
if test "x$CONFIG_SHELL" = x; then
158 202 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 202 julius
  case \`(set -o) 2>/dev/null\` in @%:@(
167
  *posix*) :
168
    set -o posix ;; @%:@(
169
  *) :
170
     ;;
171
esac
172 19 jeremybenn
fi
173 202 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 202 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
 
187 19 jeremybenn
else
188 202 julius
  exitcode=1; echo positional parameters were not saved.
189 19 jeremybenn
fi
190 202 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 202 julius
  as_have_required=no
200 19 jeremybenn
fi
201 202 julius
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
202
 
203 19 jeremybenn
else
204 202 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 202 julius
  as_found=:
211
  case $as_dir in @%:@(
212 19 jeremybenn
         /*)
213
           for as_base in sh bash ksh sh5; do
214 202 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 202 julius
  as_found=false
226 19 jeremybenn
done
227 202 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 202 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 202 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 202 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 202 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 202 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 202 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 202 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 202 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 202 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 202 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 202 julius
@%:@ as_fn_error ERROR [LINENO LOG_FD]
382
@%:@ ---------------------------------
383
@%:@ Output "`basename @S|@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 202 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 202 julius
  as_expr=false
402 19 jeremybenn
fi
403
 
404 202 julius
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
405
  as_basename=basename
406 19 jeremybenn
else
407 202 julius
  as_basename=false
408 19 jeremybenn
fi
409
 
410 202 julius
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
411
  as_dirname=dirname
412 19 jeremybenn
else
413 202 julius
  as_dirname=false
414 19 jeremybenn
fi
415
 
416 202 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 202 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 202 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 202 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 202 julius
case `echo -n x` in @%:@(((((
476 19 jeremybenn
-n*)
477 202 julius
  case `echo 'xy\c'` in
478 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479 202 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 202 julius
  mkdir conf$$.dir 2>/dev/null
493 19 jeremybenn
fi
494 202 julius
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 202 julius
  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 202 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 202 julius
        test -d "$1/.";
533 19 jeremybenn
      else
534 202 julius
        case $1 in @%:@(
535
        -*)set "./$1";;
536 19 jeremybenn
        esac;
537 202 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 202 julius
case X$lt_ECHO in
556 19 jeremybenn
X*--fallback-echo)
557
  # Remove one level of quotation (which was required for Make).
558 202 julius
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
559 19 jeremybenn
  ;;
560
esac
561
 
562 202 julius
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 202 julius
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 202 julius
  cat <<_LT_EOF
581 19 jeremybenn
$*
582 202 julius
_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 202 julius
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 202 julius
  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 202 julius
    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 202 julius
    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 202 julius
          # 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 202 julius
          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 202 julius
        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 202 julius
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
exec 7<&0 &1
701
 
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
LIB@&t@OBJS=
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 538 julius
PACKAGE_VERSION='2011-04-28'
723
PACKAGE_STRING='or1ksim 2011-04-28'
724 19 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
725 202 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 202 julius
ac_unique_file="cpu/or32/execute.c"
764
enable_option_checking=no
765
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
RUNTESTDEFAULTFLAGS
777
DEJAGNU
778
GENERATE_NEEDED_FALSE
779
GENERATE_NEEDED_TRUE
780
DEBUGFLAGS
781
USE_ARGDATE_FALSE
782
USE_ARGDATE_TRUE
783
USE_ARGREX_FALSE
784
USE_ARGREX_TRUE
785
USE_SYS_GETOPTLONG_FALSE
786
USE_SYS_GETOPTLONG_TRUE
787
POW_LIB
788
LIB@&t@OBJS
789
am__fastdepCCAS_FALSE
790
am__fastdepCCAS_TRUE
791
CCASDEPMODE
792
CCASFLAGS
793
CCAS
794
CPU_ARCH
795
am__fastdepCC_FALSE
796
am__fastdepCC_TRUE
797
CCDEPMODE
798
AMDEPBACKSLASH
799
AMDEP_FALSE
800
AMDEP_TRUE
801
am__quote
802
am__include
803
DEPDIR
804
am__untar
805
am__tar
806
AMTAR
807
am__leading_dot
808
SET_MAKE
809
AWK
810
mkdir_p
811
MKDIR_P
812
INSTALL_STRIP_PROGRAM
813
install_sh
814
MAKEINFO
815
AUTOHEADER
816
AUTOMAKE
817
AUTOCONF
818
ACLOCAL
819
VERSION
820
PACKAGE
821
CYGPATH_W
822
am__isrc
823
INSTALL_DATA
824
INSTALL_SCRIPT
825
INSTALL_PROGRAM
826
OTOOL64
827
OTOOL
828
LIPO
829
NMEDIT
830
DSYMUTIL
831
lt_ECHO
832
RANLIB
833
STRIP
834
AR
835
OBJDUMP
836
LN_S
837
NM
838
ac_ct_DUMPBIN
839
DUMPBIN
840
LD
841
FGREP
842
SED
843
LIBTOOL
844
target_os
845
target_vendor
846
target_cpu
847
target
848
host_os
849
host_vendor
850
host_cpu
851
host
852
build_os
853
build_vendor
854
build_cpu
855 19 jeremybenn
build
856 202 julius
subdirs
857
EGREP
858 19 jeremybenn
GREP
859
CPP
860 202 julius
OBJEXT
861
EXEEXT
862
ac_ct_CC
863
CPPFLAGS
864
LDFLAGS
865
CFLAGS
866
CC
867
target_alias
868
host_alias
869
build_alias
870
LIBS
871
ECHO_T
872
ECHO_N
873
ECHO_C
874
DEFS
875
mandir
876
localedir
877
libdir
878
psdir
879
pdfdir
880
dvidir
881
htmldir
882
infodir
883
docdir
884
oldincludedir
885
includedir
886
localstatedir
887
sharedstatedir
888
sysconfdir
889
datadir
890
datarootdir
891
libexecdir
892
sbindir
893
bindir
894
program_transform_name
895
prefix
896
exec_prefix
897
PACKAGE_URL
898
PACKAGE_BUGREPORT
899
PACKAGE_STRING
900
PACKAGE_VERSION
901
PACKAGE_TARNAME
902
PACKAGE_NAME
903
PATH_SEPARATOR
904
SHELL'
905 19 jeremybenn
ac_subst_files=''
906 202 julius
ac_user_opts='
907
enable_option_checking
908
enable_shared
909
enable_static
910
with_pic
911
enable_fast_install
912
with_gnu_ld
913
enable_libtool_lock
914
enable_dependency_tracking
915
enable_profiling
916
enable_execution
917
enable_ethphy
918
enable_unsigned_xori
919
enable_range_stats
920
enable_debug
921
'
922 19 jeremybenn
      ac_precious_vars='build_alias
923
host_alias
924
target_alias
925
CC
926
CFLAGS
927
LDFLAGS
928
LIBS
929
CPPFLAGS
930
CPP
931 202 julius
CCAS
932
CCASFLAGS'
933
ac_subdirs_all='testsuite/test-code-or1k'
934 19 jeremybenn
 
935
# Initialize some variables set by options.
936
ac_init_help=
937
ac_init_version=false
938 202 julius
ac_unrecognized_opts=
939
ac_unrecognized_sep=
940 19 jeremybenn
# The variables have the same names as the options, with
941
# dashes changed to underlines.
942
cache_file=/dev/null
943
exec_prefix=NONE
944
no_create=
945
no_recursion=
946
prefix=NONE
947
program_prefix=NONE
948
program_suffix=NONE
949
program_transform_name=s,x,x,
950
silent=
951
site=
952
srcdir=
953
verbose=
954
x_includes=NONE
955
x_libraries=NONE
956
 
957
# Installation directory options.
958
# These are left unexpanded so users can "make install exec_prefix=/foo"
959
# and all the variables that are supposed to be based on exec_prefix
960
# by default will actually change.
961
# Use braces instead of parens because sh, perl, etc. also accept them.
962
# (The list follows the same order as the GNU Coding Standards.)
963
bindir='${exec_prefix}/bin'
964
sbindir='${exec_prefix}/sbin'
965
libexecdir='${exec_prefix}/libexec'
966
datarootdir='${prefix}/share'
967
datadir='${datarootdir}'
968
sysconfdir='${prefix}/etc'
969
sharedstatedir='${prefix}/com'
970
localstatedir='${prefix}/var'
971
includedir='${prefix}/include'
972
oldincludedir='/usr/include'
973
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
974
infodir='${datarootdir}/info'
975
htmldir='${docdir}'
976
dvidir='${docdir}'
977
pdfdir='${docdir}'
978
psdir='${docdir}'
979
libdir='${exec_prefix}/lib'
980
localedir='${datarootdir}/locale'
981
mandir='${datarootdir}/man'
982
 
983
ac_prev=
984
ac_dashdash=
985
for ac_option
986
do
987
  # If the previous option needs an argument, assign it.
988
  if test -n "$ac_prev"; then
989
    eval $ac_prev=\$ac_option
990
    ac_prev=
991
    continue
992
  fi
993
 
994
  case $ac_option in
995
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
996
  *)    ac_optarg=yes ;;
997
  esac
998
 
999
  # Accept the important Cygnus configure options, so we can diagnose typos.
1000
 
1001
  case $ac_dashdash$ac_option in
1002
  --)
1003
    ac_dashdash=yes ;;
1004
 
1005
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006
    ac_prev=bindir ;;
1007
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1008
    bindir=$ac_optarg ;;
1009
 
1010
  -build | --build | --buil | --bui | --bu)
1011
    ac_prev=build_alias ;;
1012
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1013
    build_alias=$ac_optarg ;;
1014
 
1015
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1016
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1017
    ac_prev=cache_file ;;
1018
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1019
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1020
    cache_file=$ac_optarg ;;
1021
 
1022
  --config-cache | -C)
1023
    cache_file=config.cache ;;
1024
 
1025
  -datadir | --datadir | --datadi | --datad)
1026
    ac_prev=datadir ;;
1027
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1028
    datadir=$ac_optarg ;;
1029
 
1030
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1031
  | --dataroo | --dataro | --datar)
1032
    ac_prev=datarootdir ;;
1033
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1034
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1035
    datarootdir=$ac_optarg ;;
1036
 
1037
  -disable-* | --disable-*)
1038 202 julius
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1039 19 jeremybenn
    # Reject names that are not valid shell variable names.
1040 202 julius
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041
      as_fn_error "invalid feature name: $ac_useropt"
1042
    ac_useropt_orig=$ac_useropt
1043
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044
    case $ac_user_opts in
1045
      *"
1046
"enable_$ac_useropt"
1047
"*) ;;
1048
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1049
         ac_unrecognized_sep=', ';;
1050
    esac
1051
    eval enable_$ac_useropt=no ;;
1052 19 jeremybenn
 
1053
  -docdir | --docdir | --docdi | --doc | --do)
1054
    ac_prev=docdir ;;
1055
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1056
    docdir=$ac_optarg ;;
1057
 
1058
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059
    ac_prev=dvidir ;;
1060
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1061
    dvidir=$ac_optarg ;;
1062
 
1063
  -enable-* | --enable-*)
1064 202 julius
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1065 19 jeremybenn
    # Reject names that are not valid shell variable names.
1066 202 julius
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067
      as_fn_error "invalid feature name: $ac_useropt"
1068
    ac_useropt_orig=$ac_useropt
1069
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070
    case $ac_user_opts in
1071
      *"
1072
"enable_$ac_useropt"
1073
"*) ;;
1074
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1075
         ac_unrecognized_sep=', ';;
1076
    esac
1077
    eval enable_$ac_useropt=\$ac_optarg ;;
1078 19 jeremybenn
 
1079
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081
  | --exec | --exe | --ex)
1082
    ac_prev=exec_prefix ;;
1083
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085
  | --exec=* | --exe=* | --ex=*)
1086
    exec_prefix=$ac_optarg ;;
1087
 
1088
  -gas | --gas | --ga | --g)
1089
    # Obsolete; use --with-gas.
1090
    with_gas=yes ;;
1091
 
1092
  -help | --help | --hel | --he | -h)
1093
    ac_init_help=long ;;
1094
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095
    ac_init_help=recursive ;;
1096
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097
    ac_init_help=short ;;
1098
 
1099
  -host | --host | --hos | --ho)
1100
    ac_prev=host_alias ;;
1101
  -host=* | --host=* | --hos=* | --ho=*)
1102
    host_alias=$ac_optarg ;;
1103
 
1104
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105
    ac_prev=htmldir ;;
1106
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107
  | --ht=*)
1108
    htmldir=$ac_optarg ;;
1109
 
1110
  -includedir | --includedir | --includedi | --included | --include \
1111
  | --includ | --inclu | --incl | --inc)
1112
    ac_prev=includedir ;;
1113
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1115
    includedir=$ac_optarg ;;
1116
 
1117
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1118
    ac_prev=infodir ;;
1119
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120
    infodir=$ac_optarg ;;
1121
 
1122
  -libdir | --libdir | --libdi | --libd)
1123
    ac_prev=libdir ;;
1124
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125
    libdir=$ac_optarg ;;
1126
 
1127
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128
  | --libexe | --libex | --libe)
1129
    ac_prev=libexecdir ;;
1130
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131
  | --libexe=* | --libex=* | --libe=*)
1132
    libexecdir=$ac_optarg ;;
1133
 
1134
  -localedir | --localedir | --localedi | --localed | --locale)
1135
    ac_prev=localedir ;;
1136
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137
    localedir=$ac_optarg ;;
1138
 
1139
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1140
  | --localstate | --localstat | --localsta | --localst | --locals)
1141
    ac_prev=localstatedir ;;
1142
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144
    localstatedir=$ac_optarg ;;
1145
 
1146
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147
    ac_prev=mandir ;;
1148
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149
    mandir=$ac_optarg ;;
1150
 
1151
  -nfp | --nfp | --nf)
1152
    # Obsolete; use --without-fp.
1153
    with_fp=no ;;
1154
 
1155
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156
  | --no-cr | --no-c | -n)
1157
    no_create=yes ;;
1158
 
1159
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161
    no_recursion=yes ;;
1162
 
1163
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165
  | --oldin | --oldi | --old | --ol | --o)
1166
    ac_prev=oldincludedir ;;
1167
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170
    oldincludedir=$ac_optarg ;;
1171
 
1172
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173
    ac_prev=prefix ;;
1174
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175
    prefix=$ac_optarg ;;
1176
 
1177
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178
  | --program-pre | --program-pr | --program-p)
1179
    ac_prev=program_prefix ;;
1180
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182
    program_prefix=$ac_optarg ;;
1183
 
1184
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185
  | --program-suf | --program-su | --program-s)
1186
    ac_prev=program_suffix ;;
1187
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189
    program_suffix=$ac_optarg ;;
1190
 
1191
  -program-transform-name | --program-transform-name \
1192
  | --program-transform-nam | --program-transform-na \
1193
  | --program-transform-n | --program-transform- \
1194
  | --program-transform | --program-transfor \
1195
  | --program-transfo | --program-transf \
1196
  | --program-trans | --program-tran \
1197
  | --progr-tra | --program-tr | --program-t)
1198
    ac_prev=program_transform_name ;;
1199
  -program-transform-name=* | --program-transform-name=* \
1200
  | --program-transform-nam=* | --program-transform-na=* \
1201
  | --program-transform-n=* | --program-transform-=* \
1202
  | --program-transform=* | --program-transfor=* \
1203
  | --program-transfo=* | --program-transf=* \
1204
  | --program-trans=* | --program-tran=* \
1205
  | --progr-tra=* | --program-tr=* | --program-t=*)
1206
    program_transform_name=$ac_optarg ;;
1207
 
1208
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209
    ac_prev=pdfdir ;;
1210
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211
    pdfdir=$ac_optarg ;;
1212
 
1213
  -psdir | --psdir | --psdi | --psd | --ps)
1214
    ac_prev=psdir ;;
1215
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216
    psdir=$ac_optarg ;;
1217
 
1218
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219
  | -silent | --silent | --silen | --sile | --sil)
1220
    silent=yes ;;
1221
 
1222
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223
    ac_prev=sbindir ;;
1224
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225
  | --sbi=* | --sb=*)
1226
    sbindir=$ac_optarg ;;
1227
 
1228
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230
  | --sharedst | --shareds | --shared | --share | --shar \
1231
  | --sha | --sh)
1232
    ac_prev=sharedstatedir ;;
1233
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236
  | --sha=* | --sh=*)
1237
    sharedstatedir=$ac_optarg ;;
1238
 
1239
  -site | --site | --sit)
1240
    ac_prev=site ;;
1241
  -site=* | --site=* | --sit=*)
1242
    site=$ac_optarg ;;
1243
 
1244
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245
    ac_prev=srcdir ;;
1246
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247
    srcdir=$ac_optarg ;;
1248
 
1249
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250
  | --syscon | --sysco | --sysc | --sys | --sy)
1251
    ac_prev=sysconfdir ;;
1252
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254
    sysconfdir=$ac_optarg ;;
1255
 
1256
  -target | --target | --targe | --targ | --tar | --ta | --t)
1257
    ac_prev=target_alias ;;
1258
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259
    target_alias=$ac_optarg ;;
1260
 
1261
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262
    verbose=yes ;;
1263
 
1264
  -version | --version | --versio | --versi | --vers | -V)
1265
    ac_init_version=: ;;
1266
 
1267
  -with-* | --with-*)
1268 202 julius
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269 19 jeremybenn
    # Reject names that are not valid shell variable names.
1270 202 julius
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271
      as_fn_error "invalid package name: $ac_useropt"
1272
    ac_useropt_orig=$ac_useropt
1273
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274
    case $ac_user_opts in
1275
      *"
1276
"with_$ac_useropt"
1277
"*) ;;
1278
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1279
         ac_unrecognized_sep=', ';;
1280
    esac
1281
    eval with_$ac_useropt=\$ac_optarg ;;
1282 19 jeremybenn
 
1283
  -without-* | --without-*)
1284 202 julius
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1285 19 jeremybenn
    # Reject names that are not valid shell variable names.
1286 202 julius
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287
      as_fn_error "invalid package name: $ac_useropt"
1288
    ac_useropt_orig=$ac_useropt
1289
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290
    case $ac_user_opts in
1291
      *"
1292
"with_$ac_useropt"
1293
"*) ;;
1294
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1295
         ac_unrecognized_sep=', ';;
1296
    esac
1297
    eval with_$ac_useropt=no ;;
1298 19 jeremybenn
 
1299
  --x)
1300
    # Obsolete; use --with-x.
1301
    with_x=yes ;;
1302
 
1303
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304
  | --x-incl | --x-inc | --x-in | --x-i)
1305
    ac_prev=x_includes ;;
1306
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308
    x_includes=$ac_optarg ;;
1309
 
1310
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312
    ac_prev=x_libraries ;;
1313
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315
    x_libraries=$ac_optarg ;;
1316
 
1317 202 julius
  -*) as_fn_error "unrecognized option: \`$ac_option'
1318
Try \`$0 --help' for more information."
1319 19 jeremybenn
    ;;
1320
 
1321
  *=*)
1322
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1323
    # Reject names that are not valid shell variable names.
1324 202 julius
    case $ac_envvar in #(
1325
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1326
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1327
    esac
1328 19 jeremybenn
    eval $ac_envvar=\$ac_optarg
1329
    export $ac_envvar ;;
1330
 
1331
  *)
1332
    # FIXME: should be removed in autoconf 3.0.
1333 202 julius
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335 202 julius
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336 19 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337
    ;;
1338
 
1339
  esac
1340
done
1341
 
1342
if test -n "$ac_prev"; then
1343
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344 202 julius
  as_fn_error "missing argument to $ac_option"
1345 19 jeremybenn
fi
1346
 
1347 202 julius
if test -n "$ac_unrecognized_opts"; then
1348
  case $enable_option_checking in
1349
    no) ;;
1350
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1351
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1352
  esac
1353
fi
1354
 
1355
# Check all directory arguments for consistency.
1356 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357
                datadir sysconfdir sharedstatedir localstatedir includedir \
1358
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359
                libdir localedir mandir
1360
do
1361
  eval ac_val=\$$ac_var
1362 202 julius
  # Remove trailing slashes.
1363 19 jeremybenn
  case $ac_val in
1364 202 julius
    */ )
1365
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1366
      eval $ac_var=\$ac_val;;
1367
  esac
1368
  # Be sure to have absolute directory names.
1369
  case $ac_val in
1370 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1371
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1372
  esac
1373 202 julius
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1374 19 jeremybenn
done
1375
 
1376
# There might be people who depend on the old broken behavior: `$host'
1377
# used to hold the argument of --host etc.
1378
# FIXME: To remove some day.
1379
build=$build_alias
1380
host=$host_alias
1381
target=$target_alias
1382
 
1383
# FIXME: To remove some day.
1384
if test "x$host_alias" != x; then
1385
  if test "x$build_alias" = x; then
1386
    cross_compiling=maybe
1387 202 julius
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1388 19 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1389
  elif test "x$build_alias" != "x$host_alias"; then
1390
    cross_compiling=yes
1391
  fi
1392
fi
1393
 
1394
ac_tool_prefix=
1395
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396
 
1397
test "$silent" = yes && exec 6>/dev/null
1398
 
1399
 
1400
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1401
ac_ls_di=`ls -di .` &&
1402
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1403 202 julius
  as_fn_error "working directory cannot be determined"
1404 19 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405 202 julius
  as_fn_error "pwd does not report name of working directory"
1406 19 jeremybenn
 
1407
 
1408
# Find the source files, if location was not specified.
1409
if test -z "$srcdir"; then
1410
  ac_srcdir_defaulted=yes
1411
  # Try the directory containing this script, then the parent directory.
1412 202 julius
  ac_confdir=`$as_dirname -- "$as_myself" ||
1413
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414
         X"$as_myself" : 'X\(//\)[^/]' \| \
1415
         X"$as_myself" : 'X\(//\)$' \| \
1416
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1417
$as_echo X"$as_myself" |
1418 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419
            s//\1/
1420
            q
1421
          }
1422
          /^X\(\/\/\)[^/].*/{
1423
            s//\1/
1424
            q
1425
          }
1426
          /^X\(\/\/\)$/{
1427
            s//\1/
1428
            q
1429
          }
1430
          /^X\(\/\).*/{
1431
            s//\1/
1432
            q
1433
          }
1434
          s/.*/./; q'`
1435
  srcdir=$ac_confdir
1436
  if test ! -r "$srcdir/$ac_unique_file"; then
1437
    srcdir=..
1438
  fi
1439
else
1440
  ac_srcdir_defaulted=no
1441
fi
1442
if test ! -r "$srcdir/$ac_unique_file"; then
1443
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444 202 julius
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1445 19 jeremybenn
fi
1446
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447
ac_abs_confdir=`(
1448 202 julius
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1449 19 jeremybenn
        pwd)`
1450
# When building in place, set srcdir=.
1451
if test "$ac_abs_confdir" = "$ac_pwd"; then
1452
  srcdir=.
1453
fi
1454
# Remove unnecessary trailing slashes from srcdir.
1455
# Double slashes in file names in object file debugging info
1456
# mess up M-x gdb in Emacs.
1457
case $srcdir in
1458
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459
esac
1460
for ac_var in $ac_precious_vars; do
1461
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1462
  eval ac_env_${ac_var}_value=\$${ac_var}
1463
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1464
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1465
done
1466
 
1467
#
1468
# Report the --help message.
1469
#
1470
if test "$ac_init_help" = "long"; then
1471
  # Omit some internal or obsolete options to make the list less imposing.
1472
  # This message is too long to be a string in the A/UX 3.1 sh.
1473
  cat <<_ACEOF
1474 538 julius
\`configure' configures or1ksim 2011-04-28 to adapt to many kinds of systems.
1475 19 jeremybenn
 
1476
Usage: $0 [OPTION]... [VAR=VALUE]...
1477
 
1478
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479
VAR=VALUE.  See below for descriptions of some of the useful variables.
1480
 
1481
Defaults for the options are specified in brackets.
1482
 
1483
Configuration:
1484
  -h, --help              display this help and exit
1485
      --help=short        display options specific to this package
1486
      --help=recursive    display the short help of all the included packages
1487
  -V, --version           display version information and exit
1488
  -q, --quiet, --silent   do not print \`checking...' messages
1489
      --cache-file=FILE   cache test results in FILE [disabled]
1490
  -C, --config-cache      alias for \`--cache-file=config.cache'
1491
  -n, --no-create         do not create output files
1492
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1493
 
1494
Installation directories:
1495
  --prefix=PREFIX         install architecture-independent files in PREFIX
1496 202 julius
                          [$ac_default_prefix]
1497 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1498 202 julius
                          [PREFIX]
1499 19 jeremybenn
 
1500
By default, \`make install' will install all the files in
1501
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1502
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503
for instance \`--prefix=\$HOME'.
1504
 
1505
For better control, use the options below.
1506
 
1507
Fine tuning of the installation directories:
1508 202 julius
  --bindir=DIR            user executables [EPREFIX/bin]
1509
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1510
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1511
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1512
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1513
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1514
  --libdir=DIR            object code libraries [EPREFIX/lib]
1515
  --includedir=DIR        C header files [PREFIX/include]
1516
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1517
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1518
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1519
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1520
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1521
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1522
  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/or1ksim@:>@
1523
  --htmldir=DIR           html documentation [DOCDIR]
1524
  --dvidir=DIR            dvi documentation [DOCDIR]
1525
  --pdfdir=DIR            pdf documentation [DOCDIR]
1526
  --psdir=DIR             ps documentation [DOCDIR]
1527 19 jeremybenn
_ACEOF
1528
 
1529
  cat <<\_ACEOF
1530
 
1531
Program names:
1532
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1533
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1534
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1535
 
1536
System types:
1537
  --build=BUILD     configure for building on BUILD [guessed]
1538
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1539
  --target=TARGET   configure for building compilers for TARGET [HOST]
1540
_ACEOF
1541
fi
1542
 
1543
if test -n "$ac_init_help"; then
1544
  case $ac_init_help in
1545 538 julius
     short | recursive ) echo "Configuration of or1ksim 2011-04-28:";;
1546 19 jeremybenn
   esac
1547
  cat <<\_ACEOF
1548
 
1549
Optional Features:
1550 202 julius
  --disable-option-checking  ignore unrecognized --enable/--with options
1551 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1552
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1553
  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1554
  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1555
  --enable-fast-install@<:@=PKGS@:>@
1556
                          optimize for fast installation @<:@default=yes@:>@
1557
  --disable-libtool-lock  avoid locking (might break parallel builds)
1558
  --disable-dependency-tracking  speeds up one-time build
1559
  --enable-dependency-tracking   do not reject slow dependency extractors
1560
  --enable-profiling      generate profiling code
1561 552 julius
  --enable-execution Execution style to use (simple/complex)
1562 19 jeremybenn
  --enable-ethphy    compiles sim with ethernet phy support
1563 202 julius
  --enable-unsigned-xori    l.xori immediate operand treated as unsigned
1564 19 jeremybenn
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1565 60 jeremybenn
  --enable-debug          enable library debugging symbols
1566 19 jeremybenn
 
1567
Optional Packages:
1568
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1569
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1570
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1571
                          both@:>@
1572 202 julius
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1573 19 jeremybenn
 
1574
Some influential environment variables:
1575
  CC          C compiler command
1576
  CFLAGS      C compiler flags
1577
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1578
              nonstandard directory 
1579
  LIBS        libraries to pass to the linker, e.g. -l
1580
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1581
              you have headers in a nonstandard directory 
1582
  CPP         C preprocessor
1583 202 julius
  CCAS        assembler compiler command (defaults to CC)
1584
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1585 19 jeremybenn
 
1586
Use these variables to override the choices made by `configure' or to help
1587
it to find libraries and programs with nonstandard names/locations.
1588
 
1589
Report bugs to .
1590
_ACEOF
1591
ac_status=$?
1592
fi
1593
 
1594
if test "$ac_init_help" = "recursive"; then
1595
  # If there are subdirs, report their specific --help.
1596
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1597 202 julius
    test -d "$ac_dir" ||
1598
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1599
      continue
1600 19 jeremybenn
    ac_builddir=.
1601
 
1602
case "$ac_dir" in
1603
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604
*)
1605 202 julius
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1606 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1607 202 julius
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1608 19 jeremybenn
  case $ac_top_builddir_sub in
1609
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1611
  esac ;;
1612
esac
1613
ac_abs_top_builddir=$ac_pwd
1614
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1615
# for backward compatibility:
1616
ac_top_builddir=$ac_top_build_prefix
1617
 
1618
case $srcdir in
1619
  .)  # We are building in place.
1620
    ac_srcdir=.
1621
    ac_top_srcdir=$ac_top_builddir_sub
1622
    ac_abs_top_srcdir=$ac_pwd ;;
1623
  [\\/]* | ?:[\\/]* )  # Absolute name.
1624
    ac_srcdir=$srcdir$ac_dir_suffix;
1625
    ac_top_srcdir=$srcdir
1626
    ac_abs_top_srcdir=$srcdir ;;
1627
  *) # Relative name.
1628
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1629
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1630
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1631
esac
1632
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1633
 
1634
    cd "$ac_dir" || { ac_status=$?; continue; }
1635
    # Check for guested configure.
1636
    if test -f "$ac_srcdir/configure.gnu"; then
1637
      echo &&
1638
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1639
    elif test -f "$ac_srcdir/configure"; then
1640
      echo &&
1641
      $SHELL "$ac_srcdir/configure" --help=recursive
1642
    else
1643 202 julius
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1644 19 jeremybenn
    fi || ac_status=$?
1645
    cd "$ac_pwd" || { ac_status=$?; break; }
1646
  done
1647
fi
1648
 
1649
test -n "$ac_init_help" && exit $ac_status
1650
if $ac_init_version; then
1651
  cat <<\_ACEOF
1652 538 julius
or1ksim configure 2011-04-28
1653 202 julius
generated by GNU Autoconf 2.64
1654 19 jeremybenn
 
1655 202 julius
Copyright (C) 2009 Free Software Foundation, Inc.
1656 19 jeremybenn
This configure script is free software; the Free Software Foundation
1657
gives unlimited permission to copy, distribute and modify it.
1658 202 julius
 
1659
Copyright (C) 1999-2008 OpenCores
1660
Copyright (C) 2008, 2010 Embecosm Limited
1661
 
1662
Contributor Jeremy Bennett 
1663
 
1664
This file is part of OpenRISC 1000 Architectural Simulator.
1665
 
1666
This program is free software; you can redistribute it and/or modify it
1667
under the terms of the GNU General Public License as published by the Free
1668
Software Foundation; either version 3 of the License, or (at your option)
1669
any later version.
1670
 
1671
This program is distributed in the hope that it will be useful, but WITHOUT
1672
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1673
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1674
more details.
1675
 
1676
You should have received a copy of the GNU General Public License along
1677
with this program.  If not, see .
1678 19 jeremybenn
_ACEOF
1679
  exit
1680
fi
1681 202 julius
 
1682
## ------------------------ ##
1683
## Autoconf initialization. ##
1684
## ------------------------ ##
1685
 
1686
@%:@ ac_fn_c_try_compile LINENO
1687
@%:@ --------------------------
1688
@%:@ Try to compile conftest.$ac_ext, and return whether this succeeded.
1689
ac_fn_c_try_compile ()
1690
{
1691
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692
  rm -f conftest.$ac_objext
1693
  if { { ac_try="$ac_compile"
1694
case "(($ac_try" in
1695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696
  *) ac_try_echo=$ac_try;;
1697
esac
1698
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699
$as_echo "$ac_try_echo"; } >&5
1700
  (eval "$ac_compile") 2>conftest.err
1701
  ac_status=$?
1702
  if test -s conftest.err; then
1703
    grep -v '^ *+' conftest.err >conftest.er1
1704
    cat conftest.er1 >&5
1705
    mv -f conftest.er1 conftest.err
1706
  fi
1707
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708
  test $ac_status = 0; } && {
1709
         test -z "$ac_c_werror_flag" ||
1710
         test ! -s conftest.err
1711
       } && test -s conftest.$ac_objext; then :
1712
  ac_retval=0
1713
else
1714
  $as_echo "$as_me: failed program was:" >&5
1715
sed 's/^/| /' conftest.$ac_ext >&5
1716
 
1717
        ac_retval=1
1718
fi
1719
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720
  return $ac_retval
1721
 
1722
} @%:@ ac_fn_c_try_compile
1723
 
1724
@%:@ ac_fn_c_try_cpp LINENO
1725
@%:@ ----------------------
1726
@%:@ Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1727
ac_fn_c_try_cpp ()
1728
{
1729
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1731
case "(($ac_try" in
1732
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733
  *) ac_try_echo=$ac_try;;
1734
esac
1735
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736
$as_echo "$ac_try_echo"; } >&5
1737
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1738
  ac_status=$?
1739
  if test -s conftest.err; then
1740
    grep -v '^ *+' conftest.err >conftest.er1
1741
    cat conftest.er1 >&5
1742
    mv -f conftest.er1 conftest.err
1743
  fi
1744
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745
  test $ac_status = 0; } >/dev/null && {
1746
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1747
         test ! -s conftest.err
1748
       }; then :
1749
  ac_retval=0
1750
else
1751
  $as_echo "$as_me: failed program was:" >&5
1752
sed 's/^/| /' conftest.$ac_ext >&5
1753
 
1754
    ac_retval=1
1755
fi
1756
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757
  return $ac_retval
1758
 
1759
} @%:@ ac_fn_c_try_cpp
1760
 
1761
@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1762
@%:@ -------------------------------------------------------
1763
@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1764
@%:@ the include files in INCLUDES and setting the cache variable VAR
1765
@%:@ accordingly.
1766
ac_fn_c_check_header_mongrel ()
1767
{
1768
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771
$as_echo_n "checking for $2... " >&6; }
1772
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1773
  $as_echo_n "(cached) " >&6
1774
fi
1775
eval ac_res=\$$3
1776
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777
$as_echo "$ac_res" >&6; }
1778
else
1779
  # Is the header compilable?
1780
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1781
$as_echo_n "checking $2 usability... " >&6; }
1782
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783
/* end confdefs.h.  */
1784
$4
1785
@%:@include <$2>
1786
_ACEOF
1787
if ac_fn_c_try_compile "$LINENO"; then :
1788
  ac_header_compiler=yes
1789
else
1790
  ac_header_compiler=no
1791
fi
1792
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1794
$as_echo "$ac_header_compiler" >&6; }
1795
 
1796
# Is the header present?
1797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1798
$as_echo_n "checking $2 presence... " >&6; }
1799
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800
/* end confdefs.h.  */
1801
@%:@include <$2>
1802
_ACEOF
1803
if ac_fn_c_try_cpp "$LINENO"; then :
1804
  ac_header_preproc=yes
1805
else
1806
  ac_header_preproc=no
1807
fi
1808
rm -f conftest.err conftest.$ac_ext
1809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1810
$as_echo "$ac_header_preproc" >&6; }
1811
 
1812
# So?  What about this header?
1813
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1814
  yes:no: )
1815
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1816
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1817
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1818
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1819
    ;;
1820
  no:yes:* )
1821
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1822
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1823
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1824
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1825
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1826
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1827
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1828
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1829
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831
( cat <<\_ASBOX
1832
## ------------------------------------- ##
1833
## Report this to openrisc@opencores.org ##
1834
## ------------------------------------- ##
1835
_ASBOX
1836
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1837
    ;;
1838
esac
1839
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840
$as_echo_n "checking for $2... " >&6; }
1841
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1842
  $as_echo_n "(cached) " >&6
1843
else
1844
  eval "$3=\$ac_header_compiler"
1845
fi
1846
eval ac_res=\$$3
1847
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848
$as_echo "$ac_res" >&6; }
1849
fi
1850
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851
 
1852
} @%:@ ac_fn_c_check_header_mongrel
1853
 
1854
@%:@ ac_fn_c_try_run LINENO
1855
@%:@ ----------------------
1856
@%:@ Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857
@%:@ that executables *can* be run.
1858
ac_fn_c_try_run ()
1859
{
1860
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861
  if { { ac_try="$ac_link"
1862
case "(($ac_try" in
1863
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864
  *) ac_try_echo=$ac_try;;
1865
esac
1866
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867
$as_echo "$ac_try_echo"; } >&5
1868
  (eval "$ac_link") 2>&5
1869
  ac_status=$?
1870
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872
  { { case "(($ac_try" in
1873
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874
  *) ac_try_echo=$ac_try;;
1875
esac
1876
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877
$as_echo "$ac_try_echo"; } >&5
1878
  (eval "$ac_try") 2>&5
1879
  ac_status=$?
1880
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881
  test $ac_status = 0; }; }; then :
1882
  ac_retval=0
1883
else
1884
  $as_echo "$as_me: program exited with status $ac_status" >&5
1885
       $as_echo "$as_me: failed program was:" >&5
1886
sed 's/^/| /' conftest.$ac_ext >&5
1887
 
1888
       ac_retval=$ac_status
1889
fi
1890
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892
  return $ac_retval
1893
 
1894
} @%:@ ac_fn_c_try_run
1895
 
1896
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1897
@%:@ -------------------------------------------------------
1898
@%:@ Tests whether HEADER exists and can be compiled using the include files in
1899
@%:@ INCLUDES, setting the cache variable VAR accordingly.
1900
ac_fn_c_check_header_compile ()
1901
{
1902
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904
$as_echo_n "checking for $2... " >&6; }
1905
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1906
  $as_echo_n "(cached) " >&6
1907
else
1908
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909
/* end confdefs.h.  */
1910
$4
1911
@%:@include <$2>
1912
_ACEOF
1913
if ac_fn_c_try_compile "$LINENO"; then :
1914
  eval "$3=yes"
1915
else
1916
  eval "$3=no"
1917
fi
1918
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919
fi
1920
eval ac_res=\$$3
1921
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922
$as_echo "$ac_res" >&6; }
1923
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924
 
1925
} @%:@ ac_fn_c_check_header_compile
1926
 
1927
@%:@ ac_fn_c_try_link LINENO
1928
@%:@ -----------------------
1929
@%:@ Try to link conftest.$ac_ext, and return whether this succeeded.
1930
ac_fn_c_try_link ()
1931
{
1932
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933
  rm -f conftest.$ac_objext conftest$ac_exeext
1934
  if { { ac_try="$ac_link"
1935
case "(($ac_try" in
1936
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937
  *) ac_try_echo=$ac_try;;
1938
esac
1939
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940
$as_echo "$ac_try_echo"; } >&5
1941
  (eval "$ac_link") 2>conftest.err
1942
  ac_status=$?
1943
  if test -s conftest.err; then
1944
    grep -v '^ *+' conftest.err >conftest.er1
1945
    cat conftest.er1 >&5
1946
    mv -f conftest.er1 conftest.err
1947
  fi
1948
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949
  test $ac_status = 0; } && {
1950
         test -z "$ac_c_werror_flag" ||
1951
         test ! -s conftest.err
1952
       } && test -s conftest$ac_exeext && {
1953
         test "$cross_compiling" = yes ||
1954
         $as_test_x conftest$ac_exeext
1955
       }; then :
1956
  ac_retval=0
1957
else
1958
  $as_echo "$as_me: failed program was:" >&5
1959
sed 's/^/| /' conftest.$ac_ext >&5
1960
 
1961
        ac_retval=1
1962
fi
1963
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1964
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1965
  # interfere with the next link command; also delete a directory that is
1966
  # left behind by Apple's compiler.  We do this before executing the actions.
1967
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1968
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1969
  return $ac_retval
1970
 
1971
} @%:@ ac_fn_c_try_link
1972
 
1973
@%:@ ac_fn_c_check_func LINENO FUNC VAR
1974
@%:@ ----------------------------------
1975
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1976
ac_fn_c_check_func ()
1977
{
1978
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980
$as_echo_n "checking for $2... " >&6; }
1981
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1982
  $as_echo_n "(cached) " >&6
1983
else
1984
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985
/* end confdefs.h.  */
1986
/* Define $2 to an innocuous variant, in case  declares $2.
1987
   For example, HP-UX 11i  declares gettimeofday.  */
1988
#define $2 innocuous_$2
1989
 
1990
/* System header to define __stub macros and hopefully few prototypes,
1991
    which can conflict with char $2 (); below.
1992
    Prefer  to  if __STDC__ is defined, since
1993
     exists even on freestanding compilers.  */
1994
 
1995
#ifdef __STDC__
1996
# include 
1997
#else
1998
# include 
1999
#endif
2000
 
2001
#undef $2
2002
 
2003
/* Override any GCC internal prototype to avoid an error.
2004
   Use char because int might match the return type of a GCC
2005
   builtin and then its argument prototype would still apply.  */
2006
#ifdef __cplusplus
2007
extern "C"
2008
#endif
2009
char $2 ();
2010
/* The GNU C library defines this for functions which it implements
2011
    to always fail with ENOSYS.  Some functions are actually named
2012
    something starting with __ and the normal name is an alias.  */
2013
#if defined __stub_$2 || defined __stub___$2
2014
choke me
2015
#endif
2016
 
2017
int
2018
main ()
2019
{
2020
return $2 ();
2021
  ;
2022
  return 0;
2023
}
2024
_ACEOF
2025
if ac_fn_c_try_link "$LINENO"; then :
2026
  eval "$3=yes"
2027
else
2028
  eval "$3=no"
2029
fi
2030
rm -f core conftest.err conftest.$ac_objext \
2031
    conftest$ac_exeext conftest.$ac_ext
2032
fi
2033
eval ac_res=\$$3
2034
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035
$as_echo "$ac_res" >&6; }
2036
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037
 
2038
} @%:@ ac_fn_c_check_func
2039
 
2040
@%:@ ac_fn_c_check_decl LINENO SYMBOL VAR
2041
@%:@ ------------------------------------
2042
@%:@ Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2043
ac_fn_c_check_decl ()
2044
{
2045
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2047
$as_echo_n "checking whether $2 is declared... " >&6; }
2048
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2049
  $as_echo_n "(cached) " >&6
2050
else
2051
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052
/* end confdefs.h.  */
2053
$4
2054
int
2055
main ()
2056
{
2057
@%:@ifndef $2
2058
  (void) $2;
2059
@%:@endif
2060
 
2061
  ;
2062
  return 0;
2063
}
2064
_ACEOF
2065
if ac_fn_c_try_compile "$LINENO"; then :
2066
  eval "$3=yes"
2067
else
2068
  eval "$3=no"
2069
fi
2070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071
fi
2072
eval ac_res=\$$3
2073
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074
$as_echo "$ac_res" >&6; }
2075
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076
 
2077
} @%:@ ac_fn_c_check_decl
2078
 
2079
@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2080
@%:@ -------------------------------------------
2081
@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2082
@%:@ variable VAR accordingly.
2083
ac_fn_c_check_type ()
2084
{
2085
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087
$as_echo_n "checking for $2... " >&6; }
2088
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2089
  $as_echo_n "(cached) " >&6
2090
else
2091
  eval "$3=no"
2092
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093
/* end confdefs.h.  */
2094
$4
2095
int
2096
main ()
2097
{
2098
if (sizeof ($2))
2099
         return 0;
2100
  ;
2101
  return 0;
2102
}
2103
_ACEOF
2104
if ac_fn_c_try_compile "$LINENO"; then :
2105
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106
/* end confdefs.h.  */
2107
$4
2108
int
2109
main ()
2110
{
2111
if (sizeof (($2)))
2112
            return 0;
2113
  ;
2114
  return 0;
2115
}
2116
_ACEOF
2117
if ac_fn_c_try_compile "$LINENO"; then :
2118
 
2119
else
2120
  eval "$3=yes"
2121
fi
2122
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123
fi
2124
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125
fi
2126
eval ac_res=\$$3
2127
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128
$as_echo "$ac_res" >&6; }
2129
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130
 
2131
} @%:@ ac_fn_c_check_type
2132
 
2133
@%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2134
@%:@ --------------------------------------------
2135
@%:@ Tries to find the compile-time value of EXPR in a program that includes
2136
@%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
2137
@%:@ computed
2138
ac_fn_c_compute_int ()
2139
{
2140
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141
  if test "$cross_compiling" = yes; then
2142
    # Depending upon the size, compute the lo and hi bounds.
2143
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144
/* end confdefs.h.  */
2145
$4
2146
int
2147
main ()
2148
{
2149
static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
2150
test_array @<:@0@:>@ = 0
2151
 
2152
  ;
2153
  return 0;
2154
}
2155
_ACEOF
2156
if ac_fn_c_try_compile "$LINENO"; then :
2157
  ac_lo=0 ac_mid=0
2158
  while :; do
2159
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160
/* end confdefs.h.  */
2161
$4
2162
int
2163
main ()
2164
{
2165
static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2166
test_array @<:@0@:>@ = 0
2167
 
2168
  ;
2169
  return 0;
2170
}
2171
_ACEOF
2172
if ac_fn_c_try_compile "$LINENO"; then :
2173
  ac_hi=$ac_mid; break
2174
else
2175
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2176
                        if test $ac_lo -le $ac_mid; then
2177
                          ac_lo= ac_hi=
2178
                          break
2179
                        fi
2180
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2181
fi
2182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183
  done
2184
else
2185
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186
/* end confdefs.h.  */
2187
$4
2188
int
2189
main ()
2190
{
2191
static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2192
test_array @<:@0@:>@ = 0
2193
 
2194
  ;
2195
  return 0;
2196
}
2197
_ACEOF
2198
if ac_fn_c_try_compile "$LINENO"; then :
2199
  ac_hi=-1 ac_mid=-1
2200
  while :; do
2201
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202
/* end confdefs.h.  */
2203
$4
2204
int
2205
main ()
2206
{
2207
static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2208
test_array @<:@0@:>@ = 0
2209
 
2210
  ;
2211
  return 0;
2212
}
2213
_ACEOF
2214
if ac_fn_c_try_compile "$LINENO"; then :
2215
  ac_lo=$ac_mid; break
2216
else
2217
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2218
                        if test $ac_mid -le $ac_hi; then
2219
                          ac_lo= ac_hi=
2220
                          break
2221
                        fi
2222
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2223
fi
2224
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225
  done
2226
else
2227
  ac_lo= ac_hi=
2228
fi
2229
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230
fi
2231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232
# Binary search between lo and hi bounds.
2233
while test "x$ac_lo" != "x$ac_hi"; do
2234
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2235
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236
/* end confdefs.h.  */
2237
$4
2238
int
2239
main ()
2240
{
2241
static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2242
test_array @<:@0@:>@ = 0
2243
 
2244
  ;
2245
  return 0;
2246
}
2247
_ACEOF
2248
if ac_fn_c_try_compile "$LINENO"; then :
2249
  ac_hi=$ac_mid
2250
else
2251
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2252
fi
2253
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254
done
2255
case $ac_lo in @%:@((
2256
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2257
'') ac_retval=1 ;;
2258
esac
2259
  else
2260
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261
/* end confdefs.h.  */
2262
$4
2263
static long int longval () { return $2; }
2264
static unsigned long int ulongval () { return $2; }
2265
@%:@include 
2266
@%:@include 
2267
int
2268
main ()
2269
{
2270
 
2271
  FILE *f = fopen ("conftest.val", "w");
2272
  if (! f)
2273
    return 1;
2274
  if (($2) < 0)
2275
    {
2276
      long int i = longval ();
2277
      if (i != ($2))
2278
        return 1;
2279
      fprintf (f, "%ld", i);
2280
    }
2281
  else
2282
    {
2283
      unsigned long int i = ulongval ();
2284
      if (i != ($2))
2285
        return 1;
2286
      fprintf (f, "%lu", i);
2287
    }
2288
  /* Do not output a trailing newline, as this causes \r\n confusion
2289
     on some platforms.  */
2290
  return ferror (f) || fclose (f) != 0;
2291
 
2292
  ;
2293
  return 0;
2294
}
2295
_ACEOF
2296
if ac_fn_c_try_run "$LINENO"; then :
2297
  echo >>conftest.val; read $3 
2298
else
2299
  ac_retval=1
2300
fi
2301
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2302
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2303
rm -f conftest.val
2304
 
2305
  fi
2306
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2307
  return $ac_retval
2308
 
2309
} @%:@ ac_fn_c_compute_int
2310 19 jeremybenn
cat >config.log <<_ACEOF
2311
This file contains any messages produced by compilers while
2312
running configure, to aid debugging if configure makes a mistake.
2313
 
2314 538 julius
It was created by or1ksim $as_me 2011-04-28, which was
2315 202 julius
generated by GNU Autoconf 2.64.  Invocation command line was
2316 19 jeremybenn
 
2317
  $ $0 $@
2318
 
2319
_ACEOF
2320
exec 5>>config.log
2321
{
2322
cat <<_ASUNAME
2323 202 julius
## --------- ##
2324
## Platform. ##
2325
## --------- ##
2326 19 jeremybenn
 
2327
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2328
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2329
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2330
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2331
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2332
 
2333
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2334
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2335
 
2336
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2337
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2338
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2339
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2340
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2341
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2342
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2343
 
2344
_ASUNAME
2345
 
2346
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347
for as_dir in $PATH
2348
do
2349
  IFS=$as_save_IFS
2350
  test -z "$as_dir" && as_dir=.
2351 202 julius
    $as_echo "PATH: $as_dir"
2352
  done
2353 19 jeremybenn
IFS=$as_save_IFS
2354
 
2355
} >&5
2356
 
2357
cat >&5 <<_ACEOF
2358
 
2359
 
2360 202 julius
## ----------- ##
2361
## Core tests. ##
2362
## ----------- ##
2363 19 jeremybenn
 
2364
_ACEOF
2365
 
2366
 
2367
# Keep a trace of the command line.
2368
# Strip out --no-create and --no-recursion so they do not pile up.
2369
# Strip out --silent because we don't want to record it for future runs.
2370
# Also quote any args containing shell meta-characters.
2371
# Make two passes to allow for proper duplicate-argument suppression.
2372
ac_configure_args=
2373
ac_configure_args0=
2374
ac_configure_args1=
2375
ac_must_keep_next=false
2376
for ac_pass in 1 2
2377
do
2378
  for ac_arg
2379
  do
2380
    case $ac_arg in
2381
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2382
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2383
    | -silent | --silent | --silen | --sile | --sil)
2384
      continue ;;
2385
    *\'*)
2386 202 julius
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2387 19 jeremybenn
    esac
2388
    case $ac_pass in
2389 202 julius
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2390 19 jeremybenn
    2)
2391 202 julius
      as_fn_append ac_configure_args1 " '$ac_arg'"
2392 19 jeremybenn
      if test $ac_must_keep_next = true; then
2393
        ac_must_keep_next=false # Got value, back to normal.
2394
      else
2395
        case $ac_arg in
2396
          *=* | --config-cache | -C | -disable-* | --disable-* \
2397
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2398
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2399
          | -with-* | --with-* | -without-* | --without-* | --x)
2400
            case "$ac_configure_args0 " in
2401
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2402
            esac
2403
            ;;
2404
          -* ) ac_must_keep_next=true ;;
2405
        esac
2406
      fi
2407 202 julius
      as_fn_append ac_configure_args " '$ac_arg'"
2408 19 jeremybenn
      ;;
2409
    esac
2410
  done
2411
done
2412 202 julius
{ ac_configure_args0=; unset ac_configure_args0;}
2413
{ ac_configure_args1=; unset ac_configure_args1;}
2414 19 jeremybenn
 
2415
# When interrupted or exit'd, cleanup temporary files, and complete
2416
# config.log.  We remove comments because anyway the quotes in there
2417
# would cause problems or look ugly.
2418
# WARNING: Use '\'' to represent an apostrophe within the trap.
2419
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2420
trap 'exit_status=$?
2421
  # Save into config.log some information that might help in debugging.
2422
  {
2423
    echo
2424
 
2425
    cat <<\_ASBOX
2426 202 julius
## ---------------- ##
2427
## Cache variables. ##
2428
## ---------------- ##
2429 19 jeremybenn
_ASBOX
2430
    echo
2431
    # The following way of writing the cache mishandles newlines in values,
2432
(
2433
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2434
    eval ac_val=\$$ac_var
2435
    case $ac_val in #(
2436
    *${as_nl}*)
2437
      case $ac_var in #(
2438 202 julius
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2439
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2440 19 jeremybenn
      esac
2441
      case $ac_var in #(
2442
      _ | IFS | as_nl) ;; #(
2443 202 julius
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2444
      *) { eval $ac_var=; unset $ac_var;} ;;
2445 19 jeremybenn
      esac ;;
2446
    esac
2447
  done
2448
  (set) 2>&1 |
2449
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2450
    *${as_nl}ac_space=\ *)
2451
      sed -n \
2452
        "s/'\''/'\''\\\\'\'''\''/g;
2453
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2454
      ;; #(
2455
    *)
2456
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2457
      ;;
2458
    esac |
2459
    sort
2460
)
2461
    echo
2462
 
2463
    cat <<\_ASBOX
2464 202 julius
## ----------------- ##
2465
## Output variables. ##
2466
## ----------------- ##
2467 19 jeremybenn
_ASBOX
2468
    echo
2469
    for ac_var in $ac_subst_vars
2470
    do
2471
      eval ac_val=\$$ac_var
2472
      case $ac_val in
2473 202 julius
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2474 19 jeremybenn
      esac
2475 202 julius
      $as_echo "$ac_var='\''$ac_val'\''"
2476 19 jeremybenn
    done | sort
2477
    echo
2478
 
2479
    if test -n "$ac_subst_files"; then
2480
      cat <<\_ASBOX
2481 202 julius
## ------------------- ##
2482
## File substitutions. ##
2483
## ------------------- ##
2484 19 jeremybenn
_ASBOX
2485
      echo
2486
      for ac_var in $ac_subst_files
2487
      do
2488
        eval ac_val=\$$ac_var
2489
        case $ac_val in
2490 202 julius
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2491 19 jeremybenn
        esac
2492 202 julius
        $as_echo "$ac_var='\''$ac_val'\''"
2493 19 jeremybenn
      done | sort
2494
      echo
2495
    fi
2496
 
2497
    if test -s confdefs.h; then
2498
      cat <<\_ASBOX
2499 202 julius
## ----------- ##
2500
## confdefs.h. ##
2501
## ----------- ##
2502 19 jeremybenn
_ASBOX
2503
      echo
2504
      cat confdefs.h
2505
      echo
2506
    fi
2507
    test "$ac_signal" != 0 &&
2508 202 julius
      $as_echo "$as_me: caught signal $ac_signal"
2509
    $as_echo "$as_me: exit $exit_status"
2510 19 jeremybenn
  } >&5
2511
  rm -f core *.core core.conftest.* &&
2512
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2513
    exit $exit_status
2514
' 0
2515
for ac_signal in 1 2 13 15; do
2516 202 julius
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2517 19 jeremybenn
done
2518
ac_signal=0
2519
 
2520
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2521
rm -f -r conftest* confdefs.h
2522
 
2523 202 julius
$as_echo "/* confdefs.h */" > confdefs.h
2524
 
2525 19 jeremybenn
# Predefined preprocessor variables.
2526
 
2527
cat >>confdefs.h <<_ACEOF
2528
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2529
_ACEOF
2530
 
2531
cat >>confdefs.h <<_ACEOF
2532
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2533
_ACEOF
2534
 
2535
cat >>confdefs.h <<_ACEOF
2536
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2537
_ACEOF
2538
 
2539
cat >>confdefs.h <<_ACEOF
2540
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2541
_ACEOF
2542
 
2543
cat >>confdefs.h <<_ACEOF
2544
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2545
_ACEOF
2546
 
2547 202 julius
cat >>confdefs.h <<_ACEOF
2548
@%:@define PACKAGE_URL "$PACKAGE_URL"
2549
_ACEOF
2550 19 jeremybenn
 
2551 202 julius
 
2552 19 jeremybenn
# Let the site file select an alternate cache file if it wants to.
2553 202 julius
# Prefer an explicitly selected file to automatically selected ones.
2554
ac_site_file1=NONE
2555
ac_site_file2=NONE
2556 19 jeremybenn
if test -n "$CONFIG_SITE"; then
2557 202 julius
  ac_site_file1=$CONFIG_SITE
2558 19 jeremybenn
elif test "x$prefix" != xNONE; then
2559 202 julius
  ac_site_file1=$prefix/share/config.site
2560
  ac_site_file2=$prefix/etc/config.site
2561 19 jeremybenn
else
2562 202 julius
  ac_site_file1=$ac_default_prefix/share/config.site
2563
  ac_site_file2=$ac_default_prefix/etc/config.site
2564 19 jeremybenn
fi
2565 202 julius
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2566 19 jeremybenn
do
2567 202 julius
  test "x$ac_site_file" = xNONE && continue
2568 19 jeremybenn
  if test -r "$ac_site_file"; then
2569 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2570
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2571 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2572
    . "$ac_site_file"
2573
  fi
2574
done
2575
 
2576
if test -r "$cache_file"; then
2577
  # Some versions of bash will fail to source /dev/null (special
2578
  # files actually), so we avoid doing that.
2579
  if test -f "$cache_file"; then
2580 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2581
$as_echo "$as_me: loading cache $cache_file" >&6;}
2582 19 jeremybenn
    case $cache_file in
2583
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2584
      *)                      . "./$cache_file";;
2585
    esac
2586
  fi
2587
else
2588 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2589
$as_echo "$as_me: creating cache $cache_file" >&6;}
2590 19 jeremybenn
  >$cache_file
2591
fi
2592
 
2593
# Check that the precious variables saved in the cache have kept the same
2594
# value.
2595
ac_cache_corrupted=false
2596
for ac_var in $ac_precious_vars; do
2597
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2598
  eval ac_new_set=\$ac_env_${ac_var}_set
2599
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2600
  eval ac_new_val=\$ac_env_${ac_var}_value
2601
  case $ac_old_set,$ac_new_set in
2602
    set,)
2603 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2604
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2605 19 jeremybenn
      ac_cache_corrupted=: ;;
2606
    ,set)
2607 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2608
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2609 19 jeremybenn
      ac_cache_corrupted=: ;;
2610
    ,);;
2611
    *)
2612
      if test "x$ac_old_val" != "x$ac_new_val"; then
2613 202 julius
        # differences in whitespace do not lead to failure.
2614
        ac_old_val_w=`echo x $ac_old_val`
2615
        ac_new_val_w=`echo x $ac_new_val`
2616
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2617
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2618
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2619
          ac_cache_corrupted=:
2620
        else
2621
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2622
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2623
          eval $ac_var=\$ac_old_val
2624
        fi
2625
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2626
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2627
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2628
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2629 19 jeremybenn
      fi;;
2630
  esac
2631
  # Pass precious variables to config.status.
2632
  if test "$ac_new_set" = set; then
2633
    case $ac_new_val in
2634 202 julius
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2635 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2636
    esac
2637
    case " $ac_configure_args " in
2638
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2639 202 julius
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2640 19 jeremybenn
    esac
2641
  fi
2642
done
2643
if $ac_cache_corrupted; then
2644 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2645
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2646
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2647
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2648
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2649 19 jeremybenn
fi
2650 202 julius
## -------------------- ##
2651
## Main body of script. ##
2652
## -------------------- ##
2653 19 jeremybenn
 
2654
ac_ext=c
2655
ac_cpp='$CPP $CPPFLAGS'
2656
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
 
2660
 
2661
 
2662
 
2663 202 julius
# Generically use extensions such as _GNU_SOURCE if available.
2664 19 jeremybenn
ac_ext=c
2665
ac_cpp='$CPP $CPPFLAGS'
2666
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669
if test -n "$ac_tool_prefix"; then
2670
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2671
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2672 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673
$as_echo_n "checking for $ac_word... " >&6; }
2674
if test "${ac_cv_prog_CC+set}" = set; then :
2675
  $as_echo_n "(cached) " >&6
2676 19 jeremybenn
else
2677
  if test -n "$CC"; then
2678
  ac_cv_prog_CC="$CC" # Let the user override the test.
2679
else
2680
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681
for as_dir in $PATH
2682
do
2683
  IFS=$as_save_IFS
2684
  test -z "$as_dir" && as_dir=.
2685 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2686 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2688 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 19 jeremybenn
    break 2
2690
  fi
2691
done
2692 202 julius
  done
2693 19 jeremybenn
IFS=$as_save_IFS
2694
 
2695
fi
2696
fi
2697
CC=$ac_cv_prog_CC
2698
if test -n "$CC"; then
2699 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2700
$as_echo "$CC" >&6; }
2701 19 jeremybenn
else
2702 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703
$as_echo "no" >&6; }
2704 19 jeremybenn
fi
2705
 
2706
 
2707
fi
2708
if test -z "$ac_cv_prog_CC"; then
2709
  ac_ct_CC=$CC
2710
  # Extract the first word of "gcc", so it can be a program name with args.
2711
set dummy gcc; ac_word=$2
2712 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713
$as_echo_n "checking for $ac_word... " >&6; }
2714
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2715
  $as_echo_n "(cached) " >&6
2716 19 jeremybenn
else
2717
  if test -n "$ac_ct_CC"; then
2718
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2719
else
2720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721
for as_dir in $PATH
2722
do
2723
  IFS=$as_save_IFS
2724
  test -z "$as_dir" && as_dir=.
2725 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2726 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2727
    ac_cv_prog_ac_ct_CC="gcc"
2728 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 19 jeremybenn
    break 2
2730
  fi
2731
done
2732 202 julius
  done
2733 19 jeremybenn
IFS=$as_save_IFS
2734
 
2735
fi
2736
fi
2737
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2738
if test -n "$ac_ct_CC"; then
2739 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2740
$as_echo "$ac_ct_CC" >&6; }
2741 19 jeremybenn
else
2742 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743
$as_echo "no" >&6; }
2744 19 jeremybenn
fi
2745
 
2746
  if test "x$ac_ct_CC" = x; then
2747
    CC=""
2748
  else
2749
    case $cross_compiling:$ac_tool_warned in
2750
yes:)
2751 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2752
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2753 19 jeremybenn
ac_tool_warned=yes ;;
2754
esac
2755
    CC=$ac_ct_CC
2756
  fi
2757
else
2758
  CC="$ac_cv_prog_CC"
2759
fi
2760
 
2761
if test -z "$CC"; then
2762
          if test -n "$ac_tool_prefix"; then
2763
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2764
set dummy ${ac_tool_prefix}cc; ac_word=$2
2765 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766
$as_echo_n "checking for $ac_word... " >&6; }
2767
if test "${ac_cv_prog_CC+set}" = set; then :
2768
  $as_echo_n "(cached) " >&6
2769 19 jeremybenn
else
2770
  if test -n "$CC"; then
2771
  ac_cv_prog_CC="$CC" # Let the user override the test.
2772
else
2773
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774
for as_dir in $PATH
2775
do
2776
  IFS=$as_save_IFS
2777
  test -z "$as_dir" && as_dir=.
2778 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2779 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2781 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 19 jeremybenn
    break 2
2783
  fi
2784
done
2785 202 julius
  done
2786 19 jeremybenn
IFS=$as_save_IFS
2787
 
2788
fi
2789
fi
2790
CC=$ac_cv_prog_CC
2791
if test -n "$CC"; then
2792 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2793
$as_echo "$CC" >&6; }
2794 19 jeremybenn
else
2795 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796
$as_echo "no" >&6; }
2797 19 jeremybenn
fi
2798
 
2799
 
2800
  fi
2801
fi
2802
if test -z "$CC"; then
2803
  # Extract the first word of "cc", so it can be a program name with args.
2804
set dummy cc; ac_word=$2
2805 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806
$as_echo_n "checking for $ac_word... " >&6; }
2807
if test "${ac_cv_prog_CC+set}" = set; then :
2808
  $as_echo_n "(cached) " >&6
2809 19 jeremybenn
else
2810
  if test -n "$CC"; then
2811
  ac_cv_prog_CC="$CC" # Let the user override the test.
2812
else
2813
  ac_prog_rejected=no
2814
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815
for as_dir in $PATH
2816
do
2817
  IFS=$as_save_IFS
2818
  test -z "$as_dir" && as_dir=.
2819 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2820 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2822
       ac_prog_rejected=yes
2823
       continue
2824
     fi
2825
    ac_cv_prog_CC="cc"
2826 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 19 jeremybenn
    break 2
2828
  fi
2829
done
2830 202 julius
  done
2831 19 jeremybenn
IFS=$as_save_IFS
2832
 
2833
if test $ac_prog_rejected = yes; then
2834
  # We found a bogon in the path, so make sure we never use it.
2835
  set dummy $ac_cv_prog_CC
2836
  shift
2837
  if test $@%:@ != 0; then
2838
    # We chose a different compiler from the bogus one.
2839
    # However, it has the same basename, so the bogon will be chosen
2840
    # first if we set CC to just the basename; use the full file name.
2841
    shift
2842
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2843
  fi
2844
fi
2845
fi
2846
fi
2847
CC=$ac_cv_prog_CC
2848
if test -n "$CC"; then
2849 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2850
$as_echo "$CC" >&6; }
2851 19 jeremybenn
else
2852 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853
$as_echo "no" >&6; }
2854 19 jeremybenn
fi
2855
 
2856
 
2857
fi
2858
if test -z "$CC"; then
2859
  if test -n "$ac_tool_prefix"; then
2860
  for ac_prog in cl.exe
2861
  do
2862
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2863
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2864 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865
$as_echo_n "checking for $ac_word... " >&6; }
2866
if test "${ac_cv_prog_CC+set}" = set; then :
2867
  $as_echo_n "(cached) " >&6
2868 19 jeremybenn
else
2869
  if test -n "$CC"; then
2870
  ac_cv_prog_CC="$CC" # Let the user override the test.
2871
else
2872
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873
for as_dir in $PATH
2874
do
2875
  IFS=$as_save_IFS
2876
  test -z "$as_dir" && as_dir=.
2877 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2878 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2880 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 19 jeremybenn
    break 2
2882
  fi
2883
done
2884 202 julius
  done
2885 19 jeremybenn
IFS=$as_save_IFS
2886
 
2887
fi
2888
fi
2889
CC=$ac_cv_prog_CC
2890
if test -n "$CC"; then
2891 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2892
$as_echo "$CC" >&6; }
2893 19 jeremybenn
else
2894 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895
$as_echo "no" >&6; }
2896 19 jeremybenn
fi
2897
 
2898
 
2899
    test -n "$CC" && break
2900
  done
2901
fi
2902
if test -z "$CC"; then
2903
  ac_ct_CC=$CC
2904
  for ac_prog in cl.exe
2905
do
2906
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2907
set dummy $ac_prog; ac_word=$2
2908 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909
$as_echo_n "checking for $ac_word... " >&6; }
2910
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2911
  $as_echo_n "(cached) " >&6
2912 19 jeremybenn
else
2913
  if test -n "$ac_ct_CC"; then
2914
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2915
else
2916
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917
for as_dir in $PATH
2918
do
2919
  IFS=$as_save_IFS
2920
  test -z "$as_dir" && as_dir=.
2921 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2922 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923
    ac_cv_prog_ac_ct_CC="$ac_prog"
2924 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 19 jeremybenn
    break 2
2926
  fi
2927
done
2928 202 julius
  done
2929 19 jeremybenn
IFS=$as_save_IFS
2930
 
2931
fi
2932
fi
2933
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2934
if test -n "$ac_ct_CC"; then
2935 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2936
$as_echo "$ac_ct_CC" >&6; }
2937 19 jeremybenn
else
2938 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939
$as_echo "no" >&6; }
2940 19 jeremybenn
fi
2941
 
2942
 
2943
  test -n "$ac_ct_CC" && break
2944
done
2945
 
2946
  if test "x$ac_ct_CC" = x; then
2947
    CC=""
2948
  else
2949
    case $cross_compiling:$ac_tool_warned in
2950
yes:)
2951 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2952
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2953 19 jeremybenn
ac_tool_warned=yes ;;
2954
esac
2955
    CC=$ac_ct_CC
2956
  fi
2957
fi
2958
 
2959
fi
2960
 
2961
 
2962 202 julius
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2963
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2964
as_fn_error "no acceptable C compiler found in \$PATH
2965
See \`config.log' for more details." "$LINENO" 5; }
2966 19 jeremybenn
 
2967
# Provide some information about the compiler.
2968 202 julius
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2969
set X $ac_compile
2970
ac_compiler=$2
2971
for ac_option in --version -v -V -qversion; do
2972
  { { ac_try="$ac_compiler $ac_option >&5"
2973 19 jeremybenn
case "(($ac_try" in
2974
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975
  *) ac_try_echo=$ac_try;;
2976
esac
2977 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978
$as_echo "$ac_try_echo"; } >&5
2979
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2980 19 jeremybenn
  ac_status=$?
2981 202 julius
  if test -s conftest.err; then
2982
    sed '10a\
2983
... rest of stderr output deleted ...
2984
         10q' conftest.err >conftest.er1
2985
    cat conftest.er1 >&5
2986
    rm -f conftest.er1 conftest.err
2987
  fi
2988
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989
  test $ac_status = 0; }
2990
done
2991 19 jeremybenn
 
2992 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993 19 jeremybenn
/* end confdefs.h.  */
2994 202 julius
@%:@include 
2995 19 jeremybenn
int
2996
main ()
2997
{
2998 202 julius
FILE *f = fopen ("conftest.out", "w");
2999
 return ferror (f) || fclose (f) != 0;
3000 19 jeremybenn
 
3001
  ;
3002
  return 0;
3003
}
3004
_ACEOF
3005
ac_clean_files_save=$ac_clean_files
3006 202 julius
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3007 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
3008
# It will help us diagnose broken compilers, and finding out an intuition
3009
# of exeext.
3010 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3011
$as_echo_n "checking for C compiler default output file name... " >&6; }
3012
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3013
 
3014
# The possible output files:
3015
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3016
 
3017 19 jeremybenn
ac_rmfiles=
3018
for ac_file in $ac_files
3019
do
3020
  case $ac_file in
3021 202 julius
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3022 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3023
  esac
3024
done
3025
rm -f $ac_rmfiles
3026
 
3027 202 julius
if { { ac_try="$ac_link_default"
3028 19 jeremybenn
case "(($ac_try" in
3029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030
  *) ac_try_echo=$ac_try;;
3031
esac
3032 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033
$as_echo "$ac_try_echo"; } >&5
3034 19 jeremybenn
  (eval "$ac_link_default") 2>&5
3035
  ac_status=$?
3036 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037
  test $ac_status = 0; }; then :
3038 19 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3039
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3040
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3041
# so that the user can short-circuit this test for compilers unknown to
3042
# Autoconf.
3043
for ac_file in $ac_files ''
3044
do
3045
  test -f "$ac_file" || continue
3046
  case $ac_file in
3047 202 julius
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3048 19 jeremybenn
        ;;
3049
    [ab].out )
3050
        # We found the default executable, but exeext='' is most
3051
        # certainly right.
3052
        break;;
3053
    *.* )
3054 202 julius
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3055 19 jeremybenn
        then :; else
3056
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3057
        fi
3058
        # We set ac_cv_exeext here because the later test for it is not
3059
        # safe: cross compilers may not add the suffix if given an `-o'
3060
        # argument, so we may need to know it at that point already.
3061
        # Even if this section looks crufty: it has the advantage of
3062
        # actually working.
3063
        break;;
3064
    * )
3065
        break;;
3066
  esac
3067
done
3068
test "$ac_cv_exeext" = no && ac_cv_exeext=
3069
 
3070
else
3071
  ac_file=''
3072
fi
3073 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3074
$as_echo "$ac_file" >&6; }
3075
if test -z "$ac_file"; then :
3076
  $as_echo "$as_me: failed program was:" >&5
3077 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3078
 
3079 202 julius
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081
{ as_fn_set_status 77
3082
as_fn_error "C compiler cannot create executables
3083
See \`config.log' for more details." "$LINENO" 5; }; }
3084 19 jeremybenn
fi
3085
ac_exeext=$ac_cv_exeext
3086
 
3087
# Check that the compiler produces executables we can run.  If not, either
3088
# the compiler is broken, or we cross compile.
3089 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3090
$as_echo_n "checking whether the C compiler works... " >&6; }
3091 19 jeremybenn
# If not cross compiling, check that we can run a simple program.
3092
if test "$cross_compiling" != yes; then
3093
  if { ac_try='./$ac_file'
3094 202 julius
  { { case "(($ac_try" in
3095 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096
  *) ac_try_echo=$ac_try;;
3097
esac
3098 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099
$as_echo "$ac_try_echo"; } >&5
3100 19 jeremybenn
  (eval "$ac_try") 2>&5
3101
  ac_status=$?
3102 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103
  test $ac_status = 0; }; }; then
3104 19 jeremybenn
    cross_compiling=no
3105
  else
3106
    if test "$cross_compiling" = maybe; then
3107
        cross_compiling=yes
3108
    else
3109 202 julius
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3110
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3111
as_fn_error "cannot run C compiled programs.
3112 19 jeremybenn
If you meant to cross compile, use \`--host'.
3113 202 julius
See \`config.log' for more details." "$LINENO" 5; }
3114 19 jeremybenn
    fi
3115
  fi
3116
fi
3117 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3118
$as_echo "yes" >&6; }
3119 19 jeremybenn
 
3120 202 julius
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3121 19 jeremybenn
ac_clean_files=$ac_clean_files_save
3122
# Check that the compiler produces executables we can run.  If not, either
3123
# the compiler is broken, or we cross compile.
3124 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3125
$as_echo_n "checking whether we are cross compiling... " >&6; }
3126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3127
$as_echo "$cross_compiling" >&6; }
3128 19 jeremybenn
 
3129 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3130
$as_echo_n "checking for suffix of executables... " >&6; }
3131
if { { ac_try="$ac_link"
3132 19 jeremybenn
case "(($ac_try" in
3133
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134
  *) ac_try_echo=$ac_try;;
3135
esac
3136 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137
$as_echo "$ac_try_echo"; } >&5
3138 19 jeremybenn
  (eval "$ac_link") 2>&5
3139
  ac_status=$?
3140 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141
  test $ac_status = 0; }; then :
3142 19 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3144
# work properly (i.e., refer to `conftest.exe'), while it won't with
3145
# `rm'.
3146
for ac_file in conftest.exe conftest conftest.*; do
3147
  test -f "$ac_file" || continue
3148
  case $ac_file in
3149 202 julius
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3150 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151
          break;;
3152
    * ) break;;
3153
  esac
3154
done
3155
else
3156 202 julius
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158
as_fn_error "cannot compute suffix of executables: cannot compile and link
3159
See \`config.log' for more details." "$LINENO" 5; }
3160 19 jeremybenn
fi
3161
rm -f conftest$ac_cv_exeext
3162 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3163
$as_echo "$ac_cv_exeext" >&6; }
3164 19 jeremybenn
 
3165
rm -f conftest.$ac_ext
3166
EXEEXT=$ac_cv_exeext
3167
ac_exeext=$EXEEXT
3168 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3169
$as_echo_n "checking for suffix of object files... " >&6; }
3170
if test "${ac_cv_objext+set}" = set; then :
3171
  $as_echo_n "(cached) " >&6
3172 19 jeremybenn
else
3173 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 19 jeremybenn
/* end confdefs.h.  */
3175
 
3176
int
3177
main ()
3178
{
3179
 
3180
  ;
3181
  return 0;
3182
}
3183
_ACEOF
3184
rm -f conftest.o conftest.obj
3185 202 julius
if { { ac_try="$ac_compile"
3186 19 jeremybenn
case "(($ac_try" in
3187
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188
  *) ac_try_echo=$ac_try;;
3189
esac
3190 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191
$as_echo "$ac_try_echo"; } >&5
3192 19 jeremybenn
  (eval "$ac_compile") 2>&5
3193
  ac_status=$?
3194 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195
  test $ac_status = 0; }; then :
3196 19 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
3197
  test -f "$ac_file" || continue;
3198
  case $ac_file in
3199 202 julius
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3200 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3201
       break;;
3202
  esac
3203
done
3204
else
3205 202 julius
  $as_echo "$as_me: failed program was:" >&5
3206 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3207
 
3208 202 julius
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210
as_fn_error "cannot compute suffix of object files: cannot compile
3211
See \`config.log' for more details." "$LINENO" 5; }
3212 19 jeremybenn
fi
3213
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3214
fi
3215 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3216
$as_echo "$ac_cv_objext" >&6; }
3217 19 jeremybenn
OBJEXT=$ac_cv_objext
3218
ac_objext=$OBJEXT
3219 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3220
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3221
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3222
  $as_echo_n "(cached) " >&6
3223 19 jeremybenn
else
3224 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 19 jeremybenn
/* end confdefs.h.  */
3226
 
3227
int
3228
main ()
3229
{
3230
#ifndef __GNUC__
3231
       choke me
3232
#endif
3233
 
3234
  ;
3235
  return 0;
3236
}
3237
_ACEOF
3238 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
3239 19 jeremybenn
  ac_compiler_gnu=yes
3240
else
3241 202 julius
  ac_compiler_gnu=no
3242 19 jeremybenn
fi
3243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3245
 
3246
fi
3247 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3248
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3249
if test $ac_compiler_gnu = yes; then
3250
  GCC=yes
3251
else
3252
  GCC=
3253
fi
3254 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
3255
ac_save_CFLAGS=$CFLAGS
3256 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3257
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3258
if test "${ac_cv_prog_cc_g+set}" = set; then :
3259
  $as_echo_n "(cached) " >&6
3260 19 jeremybenn
else
3261
  ac_save_c_werror_flag=$ac_c_werror_flag
3262
   ac_c_werror_flag=yes
3263
   ac_cv_prog_cc_g=no
3264
   CFLAGS="-g"
3265 202 julius
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 19 jeremybenn
/* end confdefs.h.  */
3267
 
3268
int
3269
main ()
3270
{
3271
 
3272
  ;
3273
  return 0;
3274
}
3275
_ACEOF
3276 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
3277 19 jeremybenn
  ac_cv_prog_cc_g=yes
3278
else
3279 202 julius
  CFLAGS=""
3280
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 19 jeremybenn
/* end confdefs.h.  */
3282
 
3283
int
3284
main ()
3285
{
3286
 
3287
  ;
3288
  return 0;
3289
}
3290
_ACEOF
3291 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
3292
 
3293 19 jeremybenn
else
3294 202 julius
  ac_c_werror_flag=$ac_save_c_werror_flag
3295 19 jeremybenn
         CFLAGS="-g"
3296 202 julius
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 19 jeremybenn
/* end confdefs.h.  */
3298
 
3299
int
3300
main ()
3301
{
3302
 
3303
  ;
3304
  return 0;
3305
}
3306
_ACEOF
3307 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
3308 19 jeremybenn
  ac_cv_prog_cc_g=yes
3309
fi
3310
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
   ac_c_werror_flag=$ac_save_c_werror_flag
3316
fi
3317 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3318
$as_echo "$ac_cv_prog_cc_g" >&6; }
3319 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
3320
  CFLAGS=$ac_save_CFLAGS
3321
elif test $ac_cv_prog_cc_g = yes; then
3322
  if test "$GCC" = yes; then
3323
    CFLAGS="-g -O2"
3324
  else
3325
    CFLAGS="-g"
3326
  fi
3327
else
3328
  if test "$GCC" = yes; then
3329
    CFLAGS="-O2"
3330
  else
3331
    CFLAGS=
3332
  fi
3333
fi
3334 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3335
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3336
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3337
  $as_echo_n "(cached) " >&6
3338 19 jeremybenn
else
3339
  ac_cv_prog_cc_c89=no
3340
ac_save_CC=$CC
3341 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 19 jeremybenn
/* end confdefs.h.  */
3343
#include 
3344
#include 
3345
#include 
3346
#include 
3347
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3348
struct buf { int x; };
3349
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3350
static char *e (p, i)
3351
     char **p;
3352
     int i;
3353
{
3354
  return p[i];
3355
}
3356
static char *f (char * (*g) (char **, int), char **p, ...)
3357
{
3358
  char *s;
3359
  va_list v;
3360
  va_start (v,p);
3361
  s = g (p, va_arg (v,int));
3362
  va_end (v);
3363
  return s;
3364
}
3365
 
3366
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3367
   function prototypes and stuff, but not '\xHH' hex character constants.
3368
   These don't provoke an error unfortunately, instead are silently treated
3369
   as 'x'.  The following induces an error, until -std is added to get
3370
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3371
   array size at least.  It's necessary to write '\x00'==0 to get something
3372
   that's true only with -std.  */
3373
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3374
 
3375
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3376
   inside strings and character constants.  */
3377
#define FOO(x) 'x'
3378
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3379
 
3380
int test (int i, double x);
3381
struct s1 {int (*f) (int a);};
3382
struct s2 {int (*f) (double a);};
3383
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3384
int argc;
3385
char **argv;
3386
int
3387
main ()
3388
{
3389
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3390
  ;
3391
  return 0;
3392
}
3393
_ACEOF
3394
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3395
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3396
do
3397
  CC="$ac_save_CC $ac_arg"
3398 202 julius
  if ac_fn_c_try_compile "$LINENO"; then :
3399 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3400
fi
3401 202 julius
rm -f core conftest.err conftest.$ac_objext
3402 19 jeremybenn
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3403
done
3404
rm -f conftest.$ac_ext
3405
CC=$ac_save_CC
3406
 
3407
fi
3408
# AC_CACHE_VAL
3409
case "x$ac_cv_prog_cc_c89" in
3410
  x)
3411 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3412
$as_echo "none needed" >&6; } ;;
3413 19 jeremybenn
  xno)
3414 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3415
$as_echo "unsupported" >&6; } ;;
3416 19 jeremybenn
  *)
3417
    CC="$CC $ac_cv_prog_cc_c89"
3418 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3419
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3420 19 jeremybenn
esac
3421 202 julius
if test "x$ac_cv_prog_cc_c89" != xno; then :
3422
 
3423
fi
3424 19 jeremybenn
 
3425 202 julius
ac_ext=c
3426
ac_cpp='$CPP $CPPFLAGS'
3427
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430 19 jeremybenn
 
3431 202 julius
 
3432 19 jeremybenn
ac_ext=c
3433
ac_cpp='$CPP $CPPFLAGS'
3434
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3438
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3439
# On Suns, sometimes $CPP names a directory.
3440
if test -n "$CPP" && test -d "$CPP"; then
3441
  CPP=
3442
fi
3443
if test -z "$CPP"; then
3444
  if test "${ac_cv_prog_CPP+set}" = set; then :
3445
  $as_echo_n "(cached) " >&6
3446
else
3447
      # Double quotes because CPP needs to be expanded
3448
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3449
    do
3450
      ac_preproc_ok=false
3451
for ac_c_preproc_warn_flag in '' yes
3452
do
3453
  # Use a header file that comes with gcc, so configuring glibc
3454
  # with a fresh cross-compiler works.
3455
  # Prefer  to  if __STDC__ is defined, since
3456
  #  exists even on freestanding compilers.
3457
  # On the NeXT, cc -E runs the code through the compiler's parser,
3458
  # not just through cpp. "Syntax error" is here to catch this case.
3459
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460
/* end confdefs.h.  */
3461
@%:@ifdef __STDC__
3462
@%:@ include 
3463
@%:@else
3464
@%:@ include 
3465
@%:@endif
3466
                     Syntax error
3467
_ACEOF
3468
if ac_fn_c_try_cpp "$LINENO"; then :
3469
 
3470
else
3471
  # Broken: fails on valid input.
3472
continue
3473
fi
3474
rm -f conftest.err conftest.$ac_ext
3475 19 jeremybenn
 
3476 202 julius
  # OK, works on sane cases.  Now check whether nonexistent headers
3477
  # can be detected and how.
3478
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479
/* end confdefs.h.  */
3480
@%:@include 
3481
_ACEOF
3482
if ac_fn_c_try_cpp "$LINENO"; then :
3483
  # Broken: success on invalid input.
3484
continue
3485 19 jeremybenn
else
3486 202 julius
  # Passes both tests.
3487
ac_preproc_ok=:
3488
break
3489
fi
3490
rm -f conftest.err conftest.$ac_ext
3491
 
3492 19 jeremybenn
done
3493 202 julius
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3494
rm -f conftest.err conftest.$ac_ext
3495
if $ac_preproc_ok; then :
3496
  break
3497
fi
3498 19 jeremybenn
 
3499 202 julius
    done
3500
    ac_cv_prog_CPP=$CPP
3501
 
3502 19 jeremybenn
fi
3503 202 julius
  CPP=$ac_cv_prog_CPP
3504
else
3505
  ac_cv_prog_CPP=$CPP
3506
fi
3507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3508
$as_echo "$CPP" >&6; }
3509
ac_preproc_ok=false
3510
for ac_c_preproc_warn_flag in '' yes
3511
do
3512
  # Use a header file that comes with gcc, so configuring glibc
3513
  # with a fresh cross-compiler works.
3514
  # Prefer  to  if __STDC__ is defined, since
3515
  #  exists even on freestanding compilers.
3516
  # On the NeXT, cc -E runs the code through the compiler's parser,
3517
  # not just through cpp. "Syntax error" is here to catch this case.
3518
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519
/* end confdefs.h.  */
3520
@%:@ifdef __STDC__
3521
@%:@ include 
3522
@%:@else
3523
@%:@ include 
3524
@%:@endif
3525
                     Syntax error
3526
_ACEOF
3527
if ac_fn_c_try_cpp "$LINENO"; then :
3528
 
3529
else
3530
  # Broken: fails on valid input.
3531
continue
3532
fi
3533
rm -f conftest.err conftest.$ac_ext
3534 19 jeremybenn
 
3535 202 julius
  # OK, works on sane cases.  Now check whether nonexistent headers
3536
  # can be detected and how.
3537
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538
/* end confdefs.h.  */
3539
@%:@include 
3540
_ACEOF
3541
if ac_fn_c_try_cpp "$LINENO"; then :
3542
  # Broken: success on invalid input.
3543
continue
3544
else
3545
  # Passes both tests.
3546
ac_preproc_ok=:
3547
break
3548
fi
3549
rm -f conftest.err conftest.$ac_ext
3550 19 jeremybenn
 
3551 202 julius
done
3552
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553
rm -f conftest.err conftest.$ac_ext
3554
if $ac_preproc_ok; then :
3555
 
3556
else
3557
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3560
See \`config.log' for more details." "$LINENO" 5; }
3561
fi
3562 19 jeremybenn
 
3563 202 julius
ac_ext=c
3564
ac_cpp='$CPP $CPPFLAGS'
3565
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568
 
3569
 
3570
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3571
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3572
if test "${ac_cv_path_GREP+set}" = set; then :
3573
  $as_echo_n "(cached) " >&6
3574 19 jeremybenn
else
3575 202 julius
  if test -z "$GREP"; then
3576 19 jeremybenn
  ac_path_GREP_found=false
3577 202 julius
  # Loop through the user's path and test for each of PROGNAME-LIST
3578
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3580
do
3581
  IFS=$as_save_IFS
3582
  test -z "$as_dir" && as_dir=.
3583 202 julius
    for ac_prog in grep ggrep; do
3584
    for ac_exec_ext in '' $ac_executable_extensions; do
3585
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3586
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3587
# Check for GNU ac_path_GREP and select it if it is found.
3588 19 jeremybenn
  # Check for GNU $ac_path_GREP
3589
case `"$ac_path_GREP" --version 2>&1` in
3590
*GNU*)
3591
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3592
*)
3593
  ac_count=0
3594 202 julius
  $as_echo_n 0123456789 >"conftest.in"
3595 19 jeremybenn
  while :
3596
  do
3597
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3598
    mv "conftest.tmp" "conftest.in"
3599
    cp "conftest.in" "conftest.nl"
3600 202 julius
    $as_echo 'GREP' >> "conftest.nl"
3601 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3602
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3603 202 julius
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3604 19 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3605
      # Best one so far, save it but keep looking for a better one
3606
      ac_cv_path_GREP="$ac_path_GREP"
3607
      ac_path_GREP_max=$ac_count
3608
    fi
3609
    # 10*(2^10) chars as input seems more than enough
3610
    test $ac_count -gt 10 && break
3611
  done
3612
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3613
esac
3614
 
3615 202 julius
      $ac_path_GREP_found && break 3
3616
    done
3617 19 jeremybenn
  done
3618 202 julius
  done
3619 19 jeremybenn
IFS=$as_save_IFS
3620 202 julius
  if test -z "$ac_cv_path_GREP"; then
3621
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3622
  fi
3623 19 jeremybenn
else
3624
  ac_cv_path_GREP=$GREP
3625
fi
3626
 
3627
fi
3628 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3629
$as_echo "$ac_cv_path_GREP" >&6; }
3630 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3631
 
3632
 
3633 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3634
$as_echo_n "checking for egrep... " >&6; }
3635
if test "${ac_cv_path_EGREP+set}" = set; then :
3636
  $as_echo_n "(cached) " >&6
3637 19 jeremybenn
else
3638
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3639
   then ac_cv_path_EGREP="$GREP -E"
3640
   else
3641 202 julius
     if test -z "$EGREP"; then
3642 19 jeremybenn
  ac_path_EGREP_found=false
3643 202 julius
  # Loop through the user's path and test for each of PROGNAME-LIST
3644
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3646
do
3647
  IFS=$as_save_IFS
3648
  test -z "$as_dir" && as_dir=.
3649 202 julius
    for ac_prog in egrep; do
3650
    for ac_exec_ext in '' $ac_executable_extensions; do
3651
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3652
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3653
# Check for GNU ac_path_EGREP and select it if it is found.
3654 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3655
case `"$ac_path_EGREP" --version 2>&1` in
3656
*GNU*)
3657
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3658
*)
3659
  ac_count=0
3660 202 julius
  $as_echo_n 0123456789 >"conftest.in"
3661 19 jeremybenn
  while :
3662
  do
3663
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3664
    mv "conftest.tmp" "conftest.in"
3665
    cp "conftest.in" "conftest.nl"
3666 202 julius
    $as_echo 'EGREP' >> "conftest.nl"
3667 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3668
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3669 202 julius
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3670 19 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3671
      # Best one so far, save it but keep looking for a better one
3672
      ac_cv_path_EGREP="$ac_path_EGREP"
3673
      ac_path_EGREP_max=$ac_count
3674
    fi
3675
    # 10*(2^10) chars as input seems more than enough
3676
    test $ac_count -gt 10 && break
3677
  done
3678
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3679
esac
3680
 
3681 202 julius
      $ac_path_EGREP_found && break 3
3682
    done
3683
  done
3684
  done
3685
IFS=$as_save_IFS
3686
  if test -z "$ac_cv_path_EGREP"; then
3687
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3688
  fi
3689
else
3690
  ac_cv_path_EGREP=$EGREP
3691
fi
3692 19 jeremybenn
 
3693 202 julius
   fi
3694
fi
3695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3696
$as_echo "$ac_cv_path_EGREP" >&6; }
3697
 EGREP="$ac_cv_path_EGREP"
3698
 
3699
 
3700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3701
$as_echo_n "checking for ANSI C header files... " >&6; }
3702
if test "${ac_cv_header_stdc+set}" = set; then :
3703
  $as_echo_n "(cached) " >&6
3704
else
3705
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706
/* end confdefs.h.  */
3707
#include 
3708
#include 
3709
#include 
3710
#include 
3711
 
3712
int
3713
main ()
3714
{
3715
 
3716
  ;
3717
  return 0;
3718
}
3719
_ACEOF
3720
if ac_fn_c_try_compile "$LINENO"; then :
3721
  ac_cv_header_stdc=yes
3722
else
3723
  ac_cv_header_stdc=no
3724
fi
3725
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726
 
3727
if test $ac_cv_header_stdc = yes; then
3728
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3729
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730
/* end confdefs.h.  */
3731
#include 
3732
 
3733
_ACEOF
3734
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3735
  $EGREP "memchr" >/dev/null 2>&1; then :
3736
 
3737
else
3738
  ac_cv_header_stdc=no
3739
fi
3740
rm -f conftest*
3741
 
3742
fi
3743
 
3744
if test $ac_cv_header_stdc = yes; then
3745
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3746
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747
/* end confdefs.h.  */
3748
#include 
3749
 
3750
_ACEOF
3751
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3752
  $EGREP "free" >/dev/null 2>&1; then :
3753
 
3754
else
3755
  ac_cv_header_stdc=no
3756
fi
3757
rm -f conftest*
3758
 
3759
fi
3760
 
3761
if test $ac_cv_header_stdc = yes; then
3762
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3763
  if test "$cross_compiling" = yes; then :
3764
  :
3765
else
3766
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767
/* end confdefs.h.  */
3768
#include 
3769
#include 
3770
#if ((' ' & 0x0FF) == 0x020)
3771
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3772
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3773
#else
3774
# define ISLOWER(c) \
3775
                   (('a' <= (c) && (c) <= 'i') \
3776
                     || ('j' <= (c) && (c) <= 'r') \
3777
                     || ('s' <= (c) && (c) <= 'z'))
3778
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3779
#endif
3780
 
3781
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3782
int
3783
main ()
3784
{
3785
  int i;
3786
  for (i = 0; i < 256; i++)
3787
    if (XOR (islower (i), ISLOWER (i))
3788
        || toupper (i) != TOUPPER (i))
3789
      return 2;
3790
  return 0;
3791
}
3792
_ACEOF
3793
if ac_fn_c_try_run "$LINENO"; then :
3794
 
3795
else
3796
  ac_cv_header_stdc=no
3797
fi
3798
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3799
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3800
fi
3801
 
3802
fi
3803
fi
3804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3805
$as_echo "$ac_cv_header_stdc" >&6; }
3806
if test $ac_cv_header_stdc = yes; then
3807
 
3808
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
3809
 
3810
fi
3811
 
3812
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3813
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3814
                  inttypes.h stdint.h unistd.h
3815
do :
3816
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3817
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3818
"
3819
eval as_val=\$$as_ac_Header
3820
   if test "x$as_val" = x""yes; then :
3821
  cat >>confdefs.h <<_ACEOF
3822
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3823
_ACEOF
3824
 
3825
fi
3826
 
3827 19 jeremybenn
done
3828
 
3829 202 julius
 
3830
 
3831
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3832
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3833
  MINIX=yes
3834
else
3835
  MINIX=
3836
fi
3837
 
3838
 
3839
  if test "$MINIX" = yes; then
3840
 
3841
$as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
3842
 
3843
 
3844
$as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
3845
 
3846
 
3847
$as_echo "@%:@define _MINIX 1" >>confdefs.h
3848
 
3849
  fi
3850
 
3851
 
3852
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3853
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3854
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3855
  $as_echo_n "(cached) " >&6
3856
else
3857
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858
/* end confdefs.h.  */
3859
 
3860
#         define __EXTENSIONS__ 1
3861
          $ac_includes_default
3862
int
3863
main ()
3864
{
3865
 
3866
  ;
3867
  return 0;
3868
}
3869
_ACEOF
3870
if ac_fn_c_try_compile "$LINENO"; then :
3871
  ac_cv_safe_to_define___extensions__=yes
3872
else
3873
  ac_cv_safe_to_define___extensions__=no
3874
fi
3875
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876
fi
3877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3878
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3879
  test $ac_cv_safe_to_define___extensions__ = yes &&
3880
    $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
3881
 
3882
  $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
3883
 
3884
  $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
3885
 
3886
  $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3887
 
3888
  $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
3889
 
3890
 
3891
 
3892
# Check we have the execute source file present for sanity. Specify a separate
3893
# config for the testsuite OR1K specific programs, since we'll need different
3894
# tool chain there (the OpenRISC one, rather than the native one).
3895
 
3896
ac_aux_dir=
3897
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3898
  for ac_t in install-sh install.sh shtool; do
3899
    if test -f "$ac_dir/$ac_t"; then
3900
      ac_aux_dir=$ac_dir
3901
      ac_install_sh="$ac_aux_dir/$ac_t -c"
3902
      break 2
3903
    fi
3904
  done
3905 19 jeremybenn
done
3906 202 julius
if test -z "$ac_aux_dir"; then
3907
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3908
fi
3909 19 jeremybenn
 
3910 202 julius
# These three variables are undocumented and unsupported,
3911
# and are intended to be withdrawn in a future Autoconf release.
3912
# They can cause serious problems if a builder's source tree is in a directory
3913
# whose full name contains unusual characters.
3914
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3915
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3916
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3917 19 jeremybenn
 
3918 202 julius
 
3919
 
3920
 
3921
subdirs="$subdirs testsuite/test-code-or1k"
3922
 
3923
 
3924
# Make sure we can run config.sub.
3925
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3926
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3927
 
3928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3929
$as_echo_n "checking build system type... " >&6; }
3930
if test "${ac_cv_build+set}" = set; then :
3931
  $as_echo_n "(cached) " >&6
3932
else
3933
  ac_build_alias=$build_alias
3934
test "x$ac_build_alias" = x &&
3935
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3936
test "x$ac_build_alias" = x &&
3937
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3938
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3939
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3940
 
3941 19 jeremybenn
fi
3942 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3943
$as_echo "$ac_cv_build" >&6; }
3944
case $ac_cv_build in
3945
*-*-*) ;;
3946
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3947
esac
3948
build=$ac_cv_build
3949
ac_save_IFS=$IFS; IFS='-'
3950
set x $ac_cv_build
3951
shift
3952
build_cpu=$1
3953
build_vendor=$2
3954
shift; shift
3955
# Remember, the first character of IFS is used to create $*,
3956
# except with old shells:
3957
build_os=$*
3958
IFS=$ac_save_IFS
3959
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3960 19 jeremybenn
 
3961 202 julius
 
3962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3963
$as_echo_n "checking host system type... " >&6; }
3964
if test "${ac_cv_host+set}" = set; then :
3965
  $as_echo_n "(cached) " >&6
3966
else
3967
  if test "x$host_alias" = x; then
3968
  ac_cv_host=$ac_cv_build
3969
else
3970
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3971
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3972 19 jeremybenn
fi
3973
 
3974 202 julius
fi
3975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3976
$as_echo "$ac_cv_host" >&6; }
3977
case $ac_cv_host in
3978
*-*-*) ;;
3979
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3980
esac
3981
host=$ac_cv_host
3982
ac_save_IFS=$IFS; IFS='-'
3983
set x $ac_cv_host
3984
shift
3985
host_cpu=$1
3986
host_vendor=$2
3987
shift; shift
3988
# Remember, the first character of IFS is used to create $*,
3989
# except with old shells:
3990
host_os=$*
3991
IFS=$ac_save_IFS
3992
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3993
 
3994
 
3995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3996
$as_echo_n "checking target system type... " >&6; }
3997
if test "${ac_cv_target+set}" = set; then :
3998
  $as_echo_n "(cached) " >&6
3999 19 jeremybenn
else
4000 202 julius
  if test "x$target_alias" = x; then
4001
  ac_cv_target=$ac_cv_host
4002
else
4003
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4004
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4005 19 jeremybenn
fi
4006
 
4007 202 julius
fi
4008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4009
$as_echo "$ac_cv_target" >&6; }
4010
case $ac_cv_target in
4011
*-*-*) ;;
4012
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4013
esac
4014
target=$ac_cv_target
4015
ac_save_IFS=$IFS; IFS='-'
4016
set x $ac_cv_target
4017
shift
4018
target_cpu=$1
4019
target_vendor=$2
4020
shift; shift
4021
# Remember, the first character of IFS is used to create $*,
4022
# except with old shells:
4023
target_os=$*
4024
IFS=$ac_save_IFS
4025
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4026 19 jeremybenn
 
4027 202 julius
 
4028
# The aliases save the names the user supplied, while $host etc.
4029
# will get canonicalized.
4030
test -n "$target_alias" &&
4031
  test "$program_prefix$program_suffix$program_transform_name" = \
4032
    NONENONEs,x,x, &&
4033
  program_prefix=${target_alias}-
4034
case `pwd` in
4035
  *\ * | *\     *)
4036
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4037
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4038
esac
4039
 
4040
 
4041
 
4042
macro_version='2.2.6b'
4043
macro_revision='1.3017'
4044
 
4045
 
4046
 
4047
 
4048
 
4049
 
4050
 
4051
 
4052
 
4053
 
4054
 
4055
 
4056
 
4057
ltmain="$ac_aux_dir/ltmain.sh"
4058
 
4059
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4060
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4061
if test "${ac_cv_path_SED+set}" = set; then :
4062
  $as_echo_n "(cached) " >&6
4063
else
4064
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4065
     for ac_i in 1 2 3 4 5 6 7; do
4066
       ac_script="$ac_script$as_nl$ac_script"
4067
     done
4068
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4069
     { ac_script=; unset ac_script;}
4070
     if test -z "$SED"; then
4071
  ac_path_SED_found=false
4072
  # Loop through the user's path and test for each of PROGNAME-LIST
4073
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074
for as_dir in $PATH
4075
do
4076
  IFS=$as_save_IFS
4077
  test -z "$as_dir" && as_dir=.
4078
    for ac_prog in sed gsed; do
4079
    for ac_exec_ext in '' $ac_executable_extensions; do
4080
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4081
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4082
# Check for GNU ac_path_SED and select it if it is found.
4083
  # Check for GNU $ac_path_SED
4084
case `"$ac_path_SED" --version 2>&1` in
4085
*GNU*)
4086
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4087
*)
4088
  ac_count=0
4089
  $as_echo_n 0123456789 >"conftest.in"
4090
  while :
4091
  do
4092
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4093
    mv "conftest.tmp" "conftest.in"
4094
    cp "conftest.in" "conftest.nl"
4095
    $as_echo '' >> "conftest.nl"
4096
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4097
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4098
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4099
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4100
      # Best one so far, save it but keep looking for a better one
4101
      ac_cv_path_SED="$ac_path_SED"
4102
      ac_path_SED_max=$ac_count
4103
    fi
4104
    # 10*(2^10) chars as input seems more than enough
4105
    test $ac_count -gt 10 && break
4106
  done
4107
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4108
esac
4109
 
4110
      $ac_path_SED_found && break 3
4111
    done
4112
  done
4113
  done
4114
IFS=$as_save_IFS
4115
  if test -z "$ac_cv_path_SED"; then
4116
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4117
  fi
4118
else
4119
  ac_cv_path_SED=$SED
4120
fi
4121
 
4122
fi
4123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4124
$as_echo "$ac_cv_path_SED" >&6; }
4125
 SED="$ac_cv_path_SED"
4126
  rm -f conftest.sed
4127
 
4128
test -z "$SED" && SED=sed
4129
Xsed="$SED -e 1s/^X//"
4130
 
4131
 
4132
 
4133
 
4134
 
4135
 
4136
 
4137
 
4138
 
4139
 
4140
 
4141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4142
$as_echo_n "checking for fgrep... " >&6; }
4143
if test "${ac_cv_path_FGREP+set}" = set; then :
4144
  $as_echo_n "(cached) " >&6
4145
else
4146
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4147
   then ac_cv_path_FGREP="$GREP -F"
4148
   else
4149
     if test -z "$FGREP"; then
4150
  ac_path_FGREP_found=false
4151
  # Loop through the user's path and test for each of PROGNAME-LIST
4152
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4154
do
4155
  IFS=$as_save_IFS
4156
  test -z "$as_dir" && as_dir=.
4157
    for ac_prog in fgrep; do
4158
    for ac_exec_ext in '' $ac_executable_extensions; do
4159
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4160
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4161
# Check for GNU ac_path_FGREP and select it if it is found.
4162
  # Check for GNU $ac_path_FGREP
4163
case `"$ac_path_FGREP" --version 2>&1` in
4164
*GNU*)
4165
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4166
*)
4167
  ac_count=0
4168
  $as_echo_n 0123456789 >"conftest.in"
4169
  while :
4170
  do
4171
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4172
    mv "conftest.tmp" "conftest.in"
4173
    cp "conftest.in" "conftest.nl"
4174
    $as_echo 'FGREP' >> "conftest.nl"
4175
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4176
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4177
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4178
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4179
      # Best one so far, save it but keep looking for a better one
4180
      ac_cv_path_FGREP="$ac_path_FGREP"
4181
      ac_path_FGREP_max=$ac_count
4182
    fi
4183
    # 10*(2^10) chars as input seems more than enough
4184
    test $ac_count -gt 10 && break
4185
  done
4186
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4187
esac
4188
 
4189
      $ac_path_FGREP_found && break 3
4190
    done
4191
  done
4192
  done
4193
IFS=$as_save_IFS
4194
  if test -z "$ac_cv_path_FGREP"; then
4195
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4196
  fi
4197
else
4198
  ac_cv_path_FGREP=$FGREP
4199
fi
4200
 
4201 19 jeremybenn
   fi
4202
fi
4203 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4204
$as_echo "$ac_cv_path_FGREP" >&6; }
4205
 FGREP="$ac_cv_path_FGREP"
4206 19 jeremybenn
 
4207
 
4208 202 julius
test -z "$GREP" && GREP=grep
4209 19 jeremybenn
 
4210 202 julius
 
4211
 
4212
 
4213
 
4214
 
4215
 
4216
 
4217
 
4218
 
4219
 
4220
 
4221
 
4222
 
4223
 
4224
 
4225
 
4226
 
4227
 
4228
@%:@ Check whether --with-gnu-ld was given.
4229
if test "${with_gnu_ld+set}" = set; then :
4230 19 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4231
else
4232
  with_gnu_ld=no
4233
fi
4234
 
4235
ac_prog=ld
4236
if test "$GCC" = yes; then
4237
  # Check if gcc -print-prog-name=ld gives a path.
4238 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4239
$as_echo_n "checking for ld used by $CC... " >&6; }
4240 19 jeremybenn
  case $host in
4241
  *-*-mingw*)
4242
    # gcc leaves a trailing carriage return which upsets mingw
4243
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4244
  *)
4245
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4246
  esac
4247
  case $ac_prog in
4248
    # Accept absolute paths.
4249
    [\\/]* | ?:[\\/]*)
4250
      re_direlt='/[^/][^/]*/\.\./'
4251
      # Canonicalize the pathname of ld
4252 202 julius
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4253
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4254
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4255 19 jeremybenn
      done
4256
      test -z "$LD" && LD="$ac_prog"
4257
      ;;
4258
  "")
4259
    # If it fails, then pretend we aren't using GCC.
4260
    ac_prog=ld
4261
    ;;
4262
  *)
4263
    # If it is relative, then search for the first ld in PATH.
4264
    with_gnu_ld=unknown
4265
    ;;
4266
  esac
4267
elif test "$with_gnu_ld" = yes; then
4268 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4269
$as_echo_n "checking for GNU ld... " >&6; }
4270 19 jeremybenn
else
4271 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4272
$as_echo_n "checking for non-GNU ld... " >&6; }
4273 19 jeremybenn
fi
4274 202 julius
if test "${lt_cv_path_LD+set}" = set; then :
4275
  $as_echo_n "(cached) " >&6
4276 19 jeremybenn
else
4277
  if test -z "$LD"; then
4278
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4279
  for ac_dir in $PATH; do
4280
    IFS="$lt_save_ifs"
4281
    test -z "$ac_dir" && ac_dir=.
4282
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4283
      lt_cv_path_LD="$ac_dir/$ac_prog"
4284
      # Check to see if the program is GNU ld.  I'd rather use --version,
4285
      # but apparently some variants of GNU ld only accept -v.
4286
      # Break only if it was the GNU/non-GNU ld that we prefer.
4287
      case `"$lt_cv_path_LD" -v 2>&1 
4288
      *GNU* | *'with BFD'*)
4289
        test "$with_gnu_ld" != no && break
4290
        ;;
4291
      *)
4292
        test "$with_gnu_ld" != yes && break
4293
        ;;
4294
      esac
4295
    fi
4296
  done
4297
  IFS="$lt_save_ifs"
4298
else
4299
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4300
fi
4301
fi
4302
 
4303
LD="$lt_cv_path_LD"
4304
if test -n "$LD"; then
4305 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4306
$as_echo "$LD" >&6; }
4307 19 jeremybenn
else
4308 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309
$as_echo "no" >&6; }
4310 19 jeremybenn
fi
4311 202 julius
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4312
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4313
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4314
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4315
  $as_echo_n "(cached) " >&6
4316 19 jeremybenn
else
4317
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4318
case `$LD -v 2>&1 
4319
*GNU* | *'with BFD'*)
4320
  lt_cv_prog_gnu_ld=yes
4321
  ;;
4322
*)
4323
  lt_cv_prog_gnu_ld=no
4324
  ;;
4325
esac
4326
fi
4327 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4328
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4329 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
4330
 
4331
 
4332
 
4333 202 julius
 
4334
 
4335
 
4336
 
4337
 
4338
 
4339
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4340
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4341
if test "${lt_cv_path_NM+set}" = set; then :
4342
  $as_echo_n "(cached) " >&6
4343 19 jeremybenn
else
4344
  if test -n "$NM"; then
4345
  # Let the user override the test.
4346
  lt_cv_path_NM="$NM"
4347
else
4348
  lt_nm_to_check="${ac_tool_prefix}nm"
4349
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4350
    lt_nm_to_check="$lt_nm_to_check nm"
4351
  fi
4352
  for lt_tmp_nm in $lt_nm_to_check; do
4353
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4354
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4355
      IFS="$lt_save_ifs"
4356
      test -z "$ac_dir" && ac_dir=.
4357
      tmp_nm="$ac_dir/$lt_tmp_nm"
4358
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4359
        # Check to see if the nm accepts a BSD-compat flag.
4360
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4361
        #   nm: unknown option "B" ignored
4362
        # Tru64's nm complains that /dev/null is an invalid object file
4363
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4364
        */dev/null* | *'Invalid file or object type'*)
4365
          lt_cv_path_NM="$tmp_nm -B"
4366
          break
4367
          ;;
4368
        *)
4369
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4370
          */dev/null*)
4371
            lt_cv_path_NM="$tmp_nm -p"
4372
            break
4373
            ;;
4374
          *)
4375
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4376
            continue # so that we can try to find one that supports BSD flags
4377
            ;;
4378
          esac
4379
          ;;
4380
        esac
4381
      fi
4382
    done
4383
    IFS="$lt_save_ifs"
4384
  done
4385 202 julius
  : ${lt_cv_path_NM=no}
4386 19 jeremybenn
fi
4387
fi
4388 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4389
$as_echo "$lt_cv_path_NM" >&6; }
4390
if test "$lt_cv_path_NM" != "no"; then
4391
  NM="$lt_cv_path_NM"
4392
else
4393
  # Didn't find any BSD compatible name lister, look for dumpbin.
4394
  if test -n "$ac_tool_prefix"; then
4395
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4396
  do
4397
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4398
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400
$as_echo_n "checking for $ac_word... " >&6; }
4401
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4402
  $as_echo_n "(cached) " >&6
4403
else
4404
  if test -n "$DUMPBIN"; then
4405
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4406
else
4407
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408
for as_dir in $PATH
4409
do
4410
  IFS=$as_save_IFS
4411
  test -z "$as_dir" && as_dir=.
4412
    for ac_exec_ext in '' $ac_executable_extensions; do
4413
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4415
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416
    break 2
4417
  fi
4418
done
4419
  done
4420
IFS=$as_save_IFS
4421 19 jeremybenn
 
4422 202 julius
fi
4423
fi
4424
DUMPBIN=$ac_cv_prog_DUMPBIN
4425
if test -n "$DUMPBIN"; then
4426
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4427
$as_echo "$DUMPBIN" >&6; }
4428
else
4429
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430
$as_echo "no" >&6; }
4431
fi
4432
 
4433
 
4434
    test -n "$DUMPBIN" && break
4435
  done
4436
fi
4437
if test -z "$DUMPBIN"; then
4438
  ac_ct_DUMPBIN=$DUMPBIN
4439
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4440
do
4441
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4442
set dummy $ac_prog; ac_word=$2
4443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444
$as_echo_n "checking for $ac_word... " >&6; }
4445
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4446
  $as_echo_n "(cached) " >&6
4447
else
4448
  if test -n "$ac_ct_DUMPBIN"; then
4449
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4450
else
4451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452
for as_dir in $PATH
4453
do
4454
  IFS=$as_save_IFS
4455
  test -z "$as_dir" && as_dir=.
4456
    for ac_exec_ext in '' $ac_executable_extensions; do
4457
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4459
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460
    break 2
4461
  fi
4462
done
4463
  done
4464
IFS=$as_save_IFS
4465
 
4466
fi
4467
fi
4468
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4469
if test -n "$ac_ct_DUMPBIN"; then
4470
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4471
$as_echo "$ac_ct_DUMPBIN" >&6; }
4472
else
4473
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474
$as_echo "no" >&6; }
4475
fi
4476
 
4477
 
4478
  test -n "$ac_ct_DUMPBIN" && break
4479
done
4480
 
4481
  if test "x$ac_ct_DUMPBIN" = x; then
4482
    DUMPBIN=":"
4483
  else
4484
    case $cross_compiling:$ac_tool_warned in
4485
yes:)
4486
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4487
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4488
ac_tool_warned=yes ;;
4489
esac
4490
    DUMPBIN=$ac_ct_DUMPBIN
4491
  fi
4492
fi
4493
 
4494
 
4495
  if test "$DUMPBIN" != ":"; then
4496
    NM="$DUMPBIN"
4497
  fi
4498
fi
4499
test -z "$NM" && NM=nm
4500
 
4501
 
4502
 
4503
 
4504
 
4505
 
4506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4507
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4508
if test "${lt_cv_nm_interface+set}" = set; then :
4509
  $as_echo_n "(cached) " >&6
4510
else
4511
  lt_cv_nm_interface="BSD nm"
4512
  echo "int some_variable = 0;" > conftest.$ac_ext
4513
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5)
4514
  (eval "$ac_compile" 2>conftest.err)
4515
  cat conftest.err >&5
4516
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4517
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4518
  cat conftest.err >&5
4519
  (eval echo "\"\$as_me:__oline__: output\"" >&5)
4520
  cat conftest.out >&5
4521
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4522
    lt_cv_nm_interface="MS dumpbin"
4523
  fi
4524
  rm -f conftest*
4525
fi
4526
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4527
$as_echo "$lt_cv_nm_interface" >&6; }
4528
 
4529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4530
$as_echo_n "checking whether ln -s works... " >&6; }
4531 19 jeremybenn
LN_S=$as_ln_s
4532
if test "$LN_S" = "ln -s"; then
4533 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4534
$as_echo "yes" >&6; }
4535 19 jeremybenn
else
4536 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4537
$as_echo "no, using $LN_S" >&6; }
4538 19 jeremybenn
fi
4539
 
4540 202 julius
# find the maximum length of command line arguments
4541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4542
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4543
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4544
  $as_echo_n "(cached) " >&6
4545 19 jeremybenn
else
4546 202 julius
    i=0
4547
  teststring="ABCD"
4548
 
4549
  case $build_os in
4550
  msdosdjgpp*)
4551
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4552
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4553
    # during glob expansion).  Even if it were fixed, the result of this
4554
    # check would be larger than it should be.
4555
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4556
    ;;
4557
 
4558
  gnu*)
4559
    # Under GNU Hurd, this test is not required because there is
4560
    # no limit to the length of command line arguments.
4561
    # Libtool will interpret -1 as no limit whatsoever
4562
    lt_cv_sys_max_cmd_len=-1;
4563
    ;;
4564
 
4565
  cygwin* | mingw* | cegcc*)
4566
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4567
    # about 5 minutes as the teststring grows exponentially.
4568
    # Worse, since 9x/ME are not pre-emptively multitasking,
4569
    # you end up with a "frozen" computer, even though with patience
4570
    # the test eventually succeeds (with a max line length of 256k).
4571
    # Instead, let's just punt: use the minimum linelength reported by
4572
    # all of the supported platforms: 8192 (on NT/2K/XP).
4573
    lt_cv_sys_max_cmd_len=8192;
4574
    ;;
4575
 
4576
  amigaos*)
4577
    # On AmigaOS with pdksh, this test takes hours, literally.
4578
    # So we just punt and use a minimum line length of 8192.
4579
    lt_cv_sys_max_cmd_len=8192;
4580
    ;;
4581
 
4582
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4583
    # This has been around since 386BSD, at least.  Likely further.
4584
    if test -x /sbin/sysctl; then
4585
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4586
    elif test -x /usr/sbin/sysctl; then
4587
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4588
    else
4589
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4590
    fi
4591
    # And add a safety zone
4592
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4593
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4594
    ;;
4595
 
4596
  interix*)
4597
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4598
    lt_cv_sys_max_cmd_len=196608
4599
    ;;
4600
 
4601
  osf*)
4602
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4603
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4604
    # nice to cause kernel panics so lets avoid the loop below.
4605
    # First set a reasonable default.
4606
    lt_cv_sys_max_cmd_len=16384
4607
    #
4608
    if test -x /sbin/sysconfig; then
4609
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4610
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4611
      esac
4612
    fi
4613
    ;;
4614
  sco3.2v5*)
4615
    lt_cv_sys_max_cmd_len=102400
4616
    ;;
4617
  sysv5* | sco5v6* | sysv4.2uw2*)
4618
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4619
    if test -n "$kargmax"; then
4620
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4621
    else
4622
      lt_cv_sys_max_cmd_len=32768
4623
    fi
4624
    ;;
4625
  *)
4626
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4627
    if test -n "$lt_cv_sys_max_cmd_len"; then
4628
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4629
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4630
    else
4631
      # Make teststring a little bigger before we do anything with it.
4632
      # a 1K string should be a reasonable start.
4633
      for i in 1 2 3 4 5 6 7 8 ; do
4634
        teststring=$teststring$teststring
4635
      done
4636
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4637
      # If test is not a shell built-in, we'll probably end up computing a
4638
      # maximum length that is only half of the actual maximum length, but
4639
      # we can't tell.
4640
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4641
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4642
              test $i != 17 # 1/2 MB should be enough
4643
      do
4644
        i=`expr $i + 1`
4645
        teststring=$teststring$teststring
4646
      done
4647
      # Only check the string length outside the loop.
4648
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4649
      teststring=
4650
      # Add a significant safety factor because C++ compilers can tack on
4651
      # massive amounts of additional arguments before passing them to the
4652
      # linker.  It appears as though 1/2 is a usable value.
4653
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4654
    fi
4655
    ;;
4656
  esac
4657
 
4658
fi
4659
 
4660
if test -n $lt_cv_sys_max_cmd_len ; then
4661
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4662
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4663
else
4664
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4665
$as_echo "none" >&6; }
4666
fi
4667
max_cmd_len=$lt_cv_sys_max_cmd_len
4668
 
4669
 
4670
 
4671
 
4672
 
4673
 
4674
: ${CP="cp -f"}
4675
: ${MV="mv -f"}
4676
: ${RM="rm -f"}
4677
 
4678
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4679
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4680
# Try some XSI features
4681
xsi_shell=no
4682
( _lt_dummy="a/b/c"
4683
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4684
      = c,a/b,, \
4685
    && eval 'test $(( 1 + 1 )) -eq 2 \
4686
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4687
  && xsi_shell=yes
4688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4689
$as_echo "$xsi_shell" >&6; }
4690
 
4691
 
4692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4693
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4694
lt_shell_append=no
4695
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4696
    >/dev/null 2>&1 \
4697
  && lt_shell_append=yes
4698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4699
$as_echo "$lt_shell_append" >&6; }
4700
 
4701
 
4702
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4703
  lt_unset=unset
4704
else
4705
  lt_unset=false
4706
fi
4707
 
4708
 
4709
 
4710
 
4711
 
4712
# test EBCDIC or ASCII
4713
case `echo X|tr X '\101'` in
4714
 A) # ASCII based system
4715
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4716
  lt_SP2NL='tr \040 \012'
4717
  lt_NL2SP='tr \015\012 \040\040'
4718
  ;;
4719
 *) # EBCDIC based system
4720
  lt_SP2NL='tr \100 \n'
4721
  lt_NL2SP='tr \r\n \100\100'
4722
  ;;
4723
esac
4724
 
4725
 
4726
 
4727
 
4728
 
4729
 
4730
 
4731
 
4732
 
4733
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4734
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4735
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4736
  $as_echo_n "(cached) " >&6
4737
else
4738
  lt_cv_ld_reload_flag='-r'
4739
fi
4740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4741
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4742
reload_flag=$lt_cv_ld_reload_flag
4743
case $reload_flag in
4744
"" | " "*) ;;
4745
*) reload_flag=" $reload_flag" ;;
4746
esac
4747
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4748
case $host_os in
4749
  darwin*)
4750
    if test "$GCC" = yes; then
4751
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4752
    else
4753
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4754
    fi
4755
    ;;
4756
esac
4757
 
4758
 
4759
 
4760
 
4761
 
4762
 
4763
 
4764
 
4765
 
4766
if test -n "$ac_tool_prefix"; then
4767
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4768
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770
$as_echo_n "checking for $ac_word... " >&6; }
4771
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4772
  $as_echo_n "(cached) " >&6
4773
else
4774
  if test -n "$OBJDUMP"; then
4775
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4776
else
4777
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778
for as_dir in $PATH
4779
do
4780
  IFS=$as_save_IFS
4781
  test -z "$as_dir" && as_dir=.
4782
    for ac_exec_ext in '' $ac_executable_extensions; do
4783
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4785
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786
    break 2
4787
  fi
4788
done
4789
  done
4790
IFS=$as_save_IFS
4791
 
4792
fi
4793
fi
4794
OBJDUMP=$ac_cv_prog_OBJDUMP
4795
if test -n "$OBJDUMP"; then
4796
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4797
$as_echo "$OBJDUMP" >&6; }
4798
else
4799
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800
$as_echo "no" >&6; }
4801
fi
4802
 
4803
 
4804
fi
4805
if test -z "$ac_cv_prog_OBJDUMP"; then
4806
  ac_ct_OBJDUMP=$OBJDUMP
4807
  # Extract the first word of "objdump", so it can be a program name with args.
4808
set dummy objdump; ac_word=$2
4809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810
$as_echo_n "checking for $ac_word... " >&6; }
4811
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4812
  $as_echo_n "(cached) " >&6
4813
else
4814
  if test -n "$ac_ct_OBJDUMP"; then
4815
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4816
else
4817
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818
for as_dir in $PATH
4819
do
4820
  IFS=$as_save_IFS
4821
  test -z "$as_dir" && as_dir=.
4822
    for ac_exec_ext in '' $ac_executable_extensions; do
4823
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4825
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826
    break 2
4827
  fi
4828
done
4829
  done
4830
IFS=$as_save_IFS
4831
 
4832
fi
4833
fi
4834
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4835
if test -n "$ac_ct_OBJDUMP"; then
4836
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4837
$as_echo "$ac_ct_OBJDUMP" >&6; }
4838
else
4839
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840
$as_echo "no" >&6; }
4841
fi
4842
 
4843
  if test "x$ac_ct_OBJDUMP" = x; then
4844
    OBJDUMP="false"
4845
  else
4846
    case $cross_compiling:$ac_tool_warned in
4847
yes:)
4848
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4849
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4850
ac_tool_warned=yes ;;
4851
esac
4852
    OBJDUMP=$ac_ct_OBJDUMP
4853
  fi
4854
else
4855
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4856
fi
4857
 
4858
test -z "$OBJDUMP" && OBJDUMP=objdump
4859
 
4860
 
4861
 
4862
 
4863
 
4864
 
4865
 
4866
 
4867
 
4868
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4869
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4870
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4871
  $as_echo_n "(cached) " >&6
4872
else
4873 19 jeremybenn
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4874
lt_cv_file_magic_test_file=
4875
lt_cv_deplibs_check_method='unknown'
4876
# Need to set the preceding variable on all platforms that support
4877
# interlibrary dependencies.
4878
# 'none' -- dependencies not supported.
4879
# `unknown' -- same as none, but documents that we really don't know.
4880
# 'pass_all' -- all dependencies passed with no checks.
4881
# 'test_compile' -- check by making test program.
4882
# 'file_magic [[regex]]' -- check by looking for files in library path
4883
# which responds to the $file_magic_cmd with a given extended regex.
4884
# If you have `file' or equivalent on your system and you're not sure
4885
# whether `pass_all' will *always* work, you probably want this one.
4886
 
4887
case $host_os in
4888 202 julius
aix[4-9]*)
4889 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4890
  ;;
4891
 
4892
beos*)
4893
  lt_cv_deplibs_check_method=pass_all
4894
  ;;
4895
 
4896
bsdi[45]*)
4897
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4898
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4899
  lt_cv_file_magic_test_file=/shlib/libc.so
4900
  ;;
4901
 
4902
cygwin*)
4903
  # func_win32_libid is a shell function defined in ltmain.sh
4904
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4905
  lt_cv_file_magic_cmd='func_win32_libid'
4906
  ;;
4907
 
4908
mingw* | pw32*)
4909
  # Base MSYS/MinGW do not provide the 'file' command needed by
4910
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4911
  # unless we find 'file', for example because we are cross-compiling.
4912
  if ( file / ) >/dev/null 2>&1; then
4913
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4914
    lt_cv_file_magic_cmd='func_win32_libid'
4915
  else
4916
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4917
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4918
  fi
4919
  ;;
4920
 
4921 202 julius
cegcc)
4922
  # use the weaker test based on 'objdump'. See mingw*.
4923
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4924
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4925
  ;;
4926
 
4927 19 jeremybenn
darwin* | rhapsody*)
4928
  lt_cv_deplibs_check_method=pass_all
4929
  ;;
4930
 
4931
freebsd* | dragonfly*)
4932 202 julius
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4933 19 jeremybenn
    case $host_cpu in
4934
    i*86 )
4935
      # Not sure whether the presence of OpenBSD here was a mistake.
4936
      # Let's accept both of them until this is cleared up.
4937
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4938
      lt_cv_file_magic_cmd=/usr/bin/file
4939
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4940
      ;;
4941
    esac
4942
  else
4943
    lt_cv_deplibs_check_method=pass_all
4944
  fi
4945
  ;;
4946
 
4947
gnu*)
4948
  lt_cv_deplibs_check_method=pass_all
4949
  ;;
4950
 
4951
hpux10.20* | hpux11*)
4952
  lt_cv_file_magic_cmd=/usr/bin/file
4953
  case $host_cpu in
4954
  ia64*)
4955
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4956
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4957
    ;;
4958
  hppa*64*)
4959
    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]'
4960
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4961
    ;;
4962
  *)
4963
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4964
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4965
    ;;
4966
  esac
4967
  ;;
4968
 
4969
interix[3-9]*)
4970
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4971
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4972
  ;;
4973
 
4974
irix5* | irix6* | nonstopux*)
4975
  case $LD in
4976
  *-32|*"-32 ") libmagic=32-bit;;
4977
  *-n32|*"-n32 ") libmagic=N32;;
4978
  *-64|*"-64 ") libmagic=64-bit;;
4979
  *) libmagic=never-match;;
4980
  esac
4981
  lt_cv_deplibs_check_method=pass_all
4982
  ;;
4983
 
4984
# This must be Linux ELF.
4985
linux* | k*bsd*-gnu)
4986
  lt_cv_deplibs_check_method=pass_all
4987
  ;;
4988
 
4989 202 julius
netbsd* | netbsdelf*-gnu)
4990
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4991 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4992
  else
4993
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4994
  fi
4995
  ;;
4996
 
4997
newos6*)
4998
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4999
  lt_cv_file_magic_cmd=/usr/bin/file
5000
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5001
  ;;
5002
 
5003 202 julius
*nto* | *qnx*)
5004
  lt_cv_deplibs_check_method=pass_all
5005 19 jeremybenn
  ;;
5006
 
5007
openbsd*)
5008 202 julius
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5009 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5010
  else
5011
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5012
  fi
5013
  ;;
5014
 
5015
osf3* | osf4* | osf5*)
5016
  lt_cv_deplibs_check_method=pass_all
5017
  ;;
5018
 
5019
rdos*)
5020
  lt_cv_deplibs_check_method=pass_all
5021
  ;;
5022
 
5023
solaris*)
5024
  lt_cv_deplibs_check_method=pass_all
5025
  ;;
5026
 
5027 202 julius
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5028
  lt_cv_deplibs_check_method=pass_all
5029
  ;;
5030
 
5031 19 jeremybenn
sysv4 | sysv4.3*)
5032
  case $host_vendor in
5033
  motorola)
5034
    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]'
5035
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5036
    ;;
5037
  ncr)
5038
    lt_cv_deplibs_check_method=pass_all
5039
    ;;
5040
  sequent)
5041
    lt_cv_file_magic_cmd='/bin/file'
5042
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5043
    ;;
5044
  sni)
5045
    lt_cv_file_magic_cmd='/bin/file'
5046
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5047
    lt_cv_file_magic_test_file=/lib/libc.so
5048
    ;;
5049
  siemens)
5050
    lt_cv_deplibs_check_method=pass_all
5051
    ;;
5052
  pc)
5053
    lt_cv_deplibs_check_method=pass_all
5054
    ;;
5055
  esac
5056
  ;;
5057
 
5058 202 julius
tpf*)
5059 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
5060
  ;;
5061
esac
5062
 
5063
fi
5064 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5065
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5066 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
5067
deplibs_check_method=$lt_cv_deplibs_check_method
5068
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5069
 
5070
 
5071 202 julius
 
5072
 
5073
 
5074 19 jeremybenn
 
5075
 
5076 202 julius
 
5077
 
5078
 
5079 19 jeremybenn
 
5080
 
5081 202 julius
if test -n "$ac_tool_prefix"; then
5082
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5083
set dummy ${ac_tool_prefix}ar; ac_word=$2
5084
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085
$as_echo_n "checking for $ac_word... " >&6; }
5086
if test "${ac_cv_prog_AR+set}" = set; then :
5087
  $as_echo_n "(cached) " >&6
5088 19 jeremybenn
else
5089 202 julius
  if test -n "$AR"; then
5090
  ac_cv_prog_AR="$AR" # Let the user override the test.
5091 19 jeremybenn
else
5092 202 julius
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093
for as_dir in $PATH
5094
do
5095
  IFS=$as_save_IFS
5096
  test -z "$as_dir" && as_dir=.
5097
    for ac_exec_ext in '' $ac_executable_extensions; do
5098
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5100
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101
    break 2
5102 19 jeremybenn
  fi
5103 202 julius
done
5104
  done
5105
IFS=$as_save_IFS
5106 19 jeremybenn
 
5107
fi
5108
fi
5109 202 julius
AR=$ac_cv_prog_AR
5110
if test -n "$AR"; then
5111
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5112
$as_echo "$AR" >&6; }
5113 19 jeremybenn
else
5114 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115
$as_echo "no" >&6; }
5116 19 jeremybenn
fi
5117
 
5118
 
5119
fi
5120 202 julius
if test -z "$ac_cv_prog_AR"; then
5121
  ac_ct_AR=$AR
5122
  # Extract the first word of "ar", so it can be a program name with args.
5123
set dummy ar; ac_word=$2
5124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125
$as_echo_n "checking for $ac_word... " >&6; }
5126
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5127
  $as_echo_n "(cached) " >&6
5128 19 jeremybenn
else
5129 202 julius
  if test -n "$ac_ct_AR"; then
5130
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5131
else
5132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133
for as_dir in $PATH
5134 19 jeremybenn
do
5135 202 julius
  IFS=$as_save_IFS
5136
  test -z "$as_dir" && as_dir=.
5137
    for ac_exec_ext in '' $ac_executable_extensions; do
5138
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139
    ac_cv_prog_ac_ct_AR="ar"
5140
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141
    break 2
5142
  fi
5143 19 jeremybenn
done
5144 202 julius
  done
5145
IFS=$as_save_IFS
5146 19 jeremybenn
 
5147
fi
5148
fi
5149 202 julius
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5150
if test -n "$ac_ct_AR"; then
5151
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5152
$as_echo "$ac_ct_AR" >&6; }
5153 19 jeremybenn
else
5154 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155
$as_echo "no" >&6; }
5156 19 jeremybenn
fi
5157
 
5158 202 julius
  if test "x$ac_ct_AR" = x; then
5159
    AR="false"
5160
  else
5161
    case $cross_compiling:$ac_tool_warned in
5162
yes:)
5163
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5164
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5165
ac_tool_warned=yes ;;
5166 19 jeremybenn
esac
5167 202 julius
    AR=$ac_ct_AR
5168
  fi
5169 19 jeremybenn
else
5170 202 julius
  AR="$ac_cv_prog_AR"
5171 19 jeremybenn
fi
5172
 
5173 202 julius
test -z "$AR" && AR=ar
5174
test -z "$AR_FLAGS" && AR_FLAGS=cru
5175 19 jeremybenn
 
5176 202 julius
 
5177
 
5178
 
5179 19 jeremybenn
 
5180
 
5181 202 julius
 
5182
 
5183
 
5184 19 jeremybenn
 
5185
 
5186 202 julius
if test -n "$ac_tool_prefix"; then
5187
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5188
set dummy ${ac_tool_prefix}strip; ac_word=$2
5189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190
$as_echo_n "checking for $ac_word... " >&6; }
5191
if test "${ac_cv_prog_STRIP+set}" = set; then :
5192
  $as_echo_n "(cached) " >&6
5193 19 jeremybenn
else
5194 202 julius
  if test -n "$STRIP"; then
5195
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5196 19 jeremybenn
else
5197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198
for as_dir in $PATH
5199
do
5200
  IFS=$as_save_IFS
5201
  test -z "$as_dir" && as_dir=.
5202 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5203 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 202 julius
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5205
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 19 jeremybenn
    break 2
5207
  fi
5208
done
5209 202 julius
  done
5210 19 jeremybenn
IFS=$as_save_IFS
5211
 
5212
fi
5213
fi
5214 202 julius
STRIP=$ac_cv_prog_STRIP
5215
if test -n "$STRIP"; then
5216
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5217
$as_echo "$STRIP" >&6; }
5218 19 jeremybenn
else
5219 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220
$as_echo "no" >&6; }
5221 19 jeremybenn
fi
5222
 
5223
 
5224
fi
5225 202 julius
if test -z "$ac_cv_prog_STRIP"; then
5226
  ac_ct_STRIP=$STRIP
5227
  # Extract the first word of "strip", so it can be a program name with args.
5228
set dummy strip; ac_word=$2
5229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230
$as_echo_n "checking for $ac_word... " >&6; }
5231
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5232
  $as_echo_n "(cached) " >&6
5233 19 jeremybenn
else
5234 202 julius
  if test -n "$ac_ct_STRIP"; then
5235
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5236 19 jeremybenn
else
5237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238
for as_dir in $PATH
5239
do
5240
  IFS=$as_save_IFS
5241
  test -z "$as_dir" && as_dir=.
5242 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5243 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244 202 julius
    ac_cv_prog_ac_ct_STRIP="strip"
5245
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 19 jeremybenn
    break 2
5247
  fi
5248
done
5249 202 julius
  done
5250 19 jeremybenn
IFS=$as_save_IFS
5251
 
5252
fi
5253
fi
5254 202 julius
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5255
if test -n "$ac_ct_STRIP"; then
5256
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5257
$as_echo "$ac_ct_STRIP" >&6; }
5258 19 jeremybenn
else
5259 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260
$as_echo "no" >&6; }
5261 19 jeremybenn
fi
5262
 
5263 202 julius
  if test "x$ac_ct_STRIP" = x; then
5264
    STRIP=":"
5265 19 jeremybenn
  else
5266
    case $cross_compiling:$ac_tool_warned in
5267
yes:)
5268 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5269
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5270 19 jeremybenn
ac_tool_warned=yes ;;
5271
esac
5272 202 julius
    STRIP=$ac_ct_STRIP
5273 19 jeremybenn
  fi
5274
else
5275 202 julius
  STRIP="$ac_cv_prog_STRIP"
5276 19 jeremybenn
fi
5277
 
5278 202 julius
test -z "$STRIP" && STRIP=:
5279 19 jeremybenn
 
5280 202 julius
 
5281
 
5282
 
5283 19 jeremybenn
 
5284
 
5285
if test -n "$ac_tool_prefix"; then
5286 202 julius
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5287
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289
$as_echo_n "checking for $ac_word... " >&6; }
5290
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5291
  $as_echo_n "(cached) " >&6
5292 19 jeremybenn
else
5293 202 julius
  if test -n "$RANLIB"; then
5294
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5295 19 jeremybenn
else
5296
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297
for as_dir in $PATH
5298
do
5299
  IFS=$as_save_IFS
5300
  test -z "$as_dir" && as_dir=.
5301 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5302 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 202 julius
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5304
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 19 jeremybenn
    break 2
5306
  fi
5307
done
5308 202 julius
  done
5309 19 jeremybenn
IFS=$as_save_IFS
5310
 
5311
fi
5312
fi
5313 202 julius
RANLIB=$ac_cv_prog_RANLIB
5314
if test -n "$RANLIB"; then
5315
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5316
$as_echo "$RANLIB" >&6; }
5317 19 jeremybenn
else
5318 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319
$as_echo "no" >&6; }
5320 19 jeremybenn
fi
5321
 
5322
 
5323
fi
5324 202 julius
if test -z "$ac_cv_prog_RANLIB"; then
5325
  ac_ct_RANLIB=$RANLIB
5326
  # Extract the first word of "ranlib", so it can be a program name with args.
5327
set dummy ranlib; ac_word=$2
5328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329
$as_echo_n "checking for $ac_word... " >&6; }
5330
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5331
  $as_echo_n "(cached) " >&6
5332 19 jeremybenn
else
5333 202 julius
  if test -n "$ac_ct_RANLIB"; then
5334
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5335 19 jeremybenn
else
5336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337
for as_dir in $PATH
5338
do
5339
  IFS=$as_save_IFS
5340
  test -z "$as_dir" && as_dir=.
5341 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5342 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343 202 julius
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5344
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 19 jeremybenn
    break 2
5346
  fi
5347
done
5348 202 julius
  done
5349 19 jeremybenn
IFS=$as_save_IFS
5350
 
5351
fi
5352
fi
5353 202 julius
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5354
if test -n "$ac_ct_RANLIB"; then
5355
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5356
$as_echo "$ac_ct_RANLIB" >&6; }
5357 19 jeremybenn
else
5358 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359
$as_echo "no" >&6; }
5360 19 jeremybenn
fi
5361
 
5362 202 julius
  if test "x$ac_ct_RANLIB" = x; then
5363
    RANLIB=":"
5364 19 jeremybenn
  else
5365
    case $cross_compiling:$ac_tool_warned in
5366
yes:)
5367 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5368
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5369 19 jeremybenn
ac_tool_warned=yes ;;
5370
esac
5371 202 julius
    RANLIB=$ac_ct_RANLIB
5372 19 jeremybenn
  fi
5373
else
5374 202 julius
  RANLIB="$ac_cv_prog_RANLIB"
5375 19 jeremybenn
fi
5376
 
5377 202 julius
test -z "$RANLIB" && RANLIB=:
5378 19 jeremybenn
 
5379 202 julius
 
5380
 
5381
 
5382 19 jeremybenn
 
5383
 
5384 202 julius
# Determine commands to create old-style static archives.
5385
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5386
old_postinstall_cmds='chmod 644 $oldlib'
5387
old_postuninstall_cmds=
5388 19 jeremybenn
 
5389 202 julius
if test -n "$RANLIB"; then
5390
  case $host_os in
5391
  openbsd*)
5392
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5393
    ;;
5394
  *)
5395
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5396
    ;;
5397
  esac
5398
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5399 19 jeremybenn
fi
5400
 
5401 202 julius
 
5402
 
5403
 
5404 19 jeremybenn
 
5405
 
5406 202 julius
 
5407
 
5408
 
5409 19 jeremybenn
 
5410
 
5411 202 julius
 
5412
 
5413
 
5414 19 jeremybenn
 
5415
 
5416
 
5417
 
5418 202 julius
 
5419
 
5420
 
5421 19 jeremybenn
 
5422 202 julius
 
5423
 
5424
 
5425 19 jeremybenn
 
5426 202 julius
 
5427
 
5428
 
5429 19 jeremybenn
 
5430 202 julius
 
5431
 
5432
 
5433 19 jeremybenn
 
5434 202 julius
# If no C compiler was specified, use CC.
5435
LTCC=${LTCC-"$CC"}
5436 19 jeremybenn
 
5437 202 julius
# If no C compiler flags were specified, use CFLAGS.
5438
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5439 19 jeremybenn
 
5440 202 julius
# Allow CC to be a program name with arguments.
5441
compiler=$CC
5442 19 jeremybenn
 
5443
 
5444
# Check for command to grab the raw symbol name followed by C symbol from nm.
5445 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5446
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5447
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5448
  $as_echo_n "(cached) " >&6
5449 19 jeremybenn
else
5450
 
5451
# These are sane defaults that work on at least a few old systems.
5452
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5453
 
5454
# Character class describing NM global symbol codes.
5455
symcode='[BCDEGRST]'
5456
 
5457
# Regexp to match symbols that can be accessed directly from C.
5458
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5459
 
5460
# Define system-specific variables.
5461
case $host_os in
5462
aix*)
5463
  symcode='[BCDT]'
5464
  ;;
5465 202 julius
cygwin* | mingw* | pw32* | cegcc*)
5466 19 jeremybenn
  symcode='[ABCDGISTW]'
5467
  ;;
5468 202 julius
hpux*)
5469 19 jeremybenn
  if test "$host_cpu" = ia64; then
5470
    symcode='[ABCDEGRST]'
5471
  fi
5472
  ;;
5473
irix* | nonstopux*)
5474
  symcode='[BCDEGRST]'
5475
  ;;
5476
osf*)
5477
  symcode='[BCDEGQRST]'
5478
  ;;
5479
solaris*)
5480
  symcode='[BDRT]'
5481
  ;;
5482
sco3.2v5*)
5483
  symcode='[DT]'
5484
  ;;
5485
sysv4.2uw2*)
5486
  symcode='[DT]'
5487
  ;;
5488
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5489
  symcode='[ABDT]'
5490
  ;;
5491
sysv4)
5492
  symcode='[DFNSTU]'
5493
  ;;
5494
esac
5495
 
5496 202 julius
# If we're using GNU nm, then use its standard symbol codes.
5497
case `$NM -V 2>&1` in
5498
*GNU* | *'with BFD'*)
5499
  symcode='[ABCDGIRSTW]' ;;
5500
esac
5501
 
5502
# Transform an extracted symbol line into a proper C declaration.
5503
# Some systems (esp. on ia64) link data and code symbols differently,
5504
# so use this general approach.
5505
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5506
 
5507
# Transform an extracted symbol line into symbol name and symbol address
5508
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5509
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'"
5510
 
5511 19 jeremybenn
# Handle CRLF in mingw tool chain
5512
opt_cr=
5513
case $build_os in
5514
mingw*)
5515 202 julius
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5516 19 jeremybenn
  ;;
5517
esac
5518
 
5519 202 julius
# Try without a prefix underscore, then with it.
5520 19 jeremybenn
for ac_symprfx in "" "_"; do
5521
 
5522
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5523
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5524
 
5525
  # Write the raw and C identifiers.
5526 202 julius
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5527
    # Fake it for dumpbin and say T for any non-static function
5528
    # and D for any global variable.
5529
    # Also find C++ and __fastcall symbols from MSVC++,
5530
    # which start with @ or ?.
5531
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5532
"     {last_section=section; section=\$ 3};"\
5533
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5534
"     \$ 0!~/External *\|/{next};"\
5535
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5536
"     {if(hide[section]) next};"\
5537
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5538
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5539
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5540
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5541
"     ' prfx=^$ac_symprfx"
5542
  else
5543
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5544
  fi
5545 19 jeremybenn
 
5546
  # Check to see that the pipe works correctly.
5547
  pipe_works=no
5548
 
5549
  rm -f conftest*
5550 202 julius
  cat > conftest.$ac_ext <<_LT_EOF
5551 19 jeremybenn
#ifdef __cplusplus
5552
extern "C" {
5553
#endif
5554
char nm_test_var;
5555 202 julius
void nm_test_func(void);
5556
void nm_test_func(void){}
5557 19 jeremybenn
#ifdef __cplusplus
5558
}
5559
#endif
5560
int main(){nm_test_var='a';nm_test_func();return(0);}
5561 202 julius
_LT_EOF
5562 19 jeremybenn
 
5563 202 julius
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5564 19 jeremybenn
  (eval $ac_compile) 2>&5
5565
  ac_status=$?
5566 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5567
  test $ac_status = 0; }; then
5568 19 jeremybenn
    # Now try to grab the symbols.
5569
    nlist=conftest.nm
5570 202 julius
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5571 19 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5572
  ac_status=$?
5573 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5574
  test $ac_status = 0; } && test -s "$nlist"; then
5575 19 jeremybenn
      # Try sorting and uniquifying the output.
5576
      if sort "$nlist" | uniq > "$nlist"T; then
5577
        mv -f "$nlist"T "$nlist"
5578
      else
5579
        rm -f "$nlist"T
5580
      fi
5581
 
5582
      # Make sure that we snagged all the symbols we need.
5583 202 julius
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5584
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5585
          cat <<_LT_EOF > conftest.$ac_ext
5586 19 jeremybenn
#ifdef __cplusplus
5587
extern "C" {
5588
#endif
5589
 
5590 202 julius
_LT_EOF
5591 19 jeremybenn
          # Now generate the symbol file.
5592 202 julius
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5593 19 jeremybenn
 
5594 202 julius
          cat <<_LT_EOF >> conftest.$ac_ext
5595 19 jeremybenn
 
5596 202 julius
/* The mapping between symbol names and symbols.  */
5597 19 jeremybenn
const struct {
5598
  const char *name;
5599 202 julius
  void       *address;
5600 19 jeremybenn
}
5601 202 julius
lt__PROGRAM__LTX_preloaded_symbols[] =
5602 19 jeremybenn
{
5603 202 julius
  { "@PROGRAM@", (void *) 0 },
5604
_LT_EOF
5605
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5606
          cat <<\_LT_EOF >> conftest.$ac_ext
5607
  {0, (void *) 0}
5608 19 jeremybenn
};
5609
 
5610 202 julius
/* This works around a problem in FreeBSD linker */
5611
#ifdef FREEBSD_WORKAROUND
5612
static const void *lt_preloaded_setup() {
5613
  return lt__PROGRAM__LTX_preloaded_symbols;
5614
}
5615
#endif
5616
 
5617 19 jeremybenn
#ifdef __cplusplus
5618
}
5619
#endif
5620 202 julius
_LT_EOF
5621 19 jeremybenn
          # Now try linking the two files.
5622
          mv conftest.$ac_objext conftstm.$ac_objext
5623
          lt_save_LIBS="$LIBS"
5624
          lt_save_CFLAGS="$CFLAGS"
5625
          LIBS="conftstm.$ac_objext"
5626
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5627 202 julius
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5628 19 jeremybenn
  (eval $ac_link) 2>&5
5629
  ac_status=$?
5630 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5632 19 jeremybenn
            pipe_works=yes
5633
          fi
5634
          LIBS="$lt_save_LIBS"
5635
          CFLAGS="$lt_save_CFLAGS"
5636
        else
5637
          echo "cannot find nm_test_func in $nlist" >&5
5638
        fi
5639
      else
5640
        echo "cannot find nm_test_var in $nlist" >&5
5641
      fi
5642
    else
5643
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5644
    fi
5645
  else
5646
    echo "$progname: failed program was:" >&5
5647
    cat conftest.$ac_ext >&5
5648
  fi
5649 202 julius
  rm -rf conftest* conftst*
5650 19 jeremybenn
 
5651
  # Do not use the global_symbol_pipe unless it works.
5652
  if test "$pipe_works" = yes; then
5653
    break
5654
  else
5655
    lt_cv_sys_global_symbol_pipe=
5656
  fi
5657
done
5658
 
5659
fi
5660
 
5661
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5662
  lt_cv_sys_global_symbol_to_cdecl=
5663
fi
5664
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5665 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5666
$as_echo "failed" >&6; }
5667 19 jeremybenn
else
5668 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5669
$as_echo "ok" >&6; }
5670 19 jeremybenn
fi
5671
 
5672 202 julius
 
5673
 
5674
 
5675
 
5676
 
5677
 
5678
 
5679
 
5680
 
5681
 
5682
 
5683
 
5684
 
5685
 
5686
 
5687
 
5688
 
5689
 
5690
 
5691
 
5692
 
5693
@%:@ Check whether --enable-libtool-lock was given.
5694
if test "${enable_libtool_lock+set}" = set; then :
5695
  enableval=$enable_libtool_lock;
5696 19 jeremybenn
fi
5697
 
5698 202 julius
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5699 19 jeremybenn
 
5700 202 julius
# Some flags need to be propagated to the compiler or linker for good
5701
# libtool support.
5702
case $host in
5703
ia64-*-hpux*)
5704
  # Find out which ABI we are using.
5705
  echo 'int i;' > conftest.$ac_ext
5706
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5707
  (eval $ac_compile) 2>&5
5708
  ac_status=$?
5709
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710
  test $ac_status = 0; }; then
5711
    case `/usr/bin/file conftest.$ac_objext` in
5712
      *ELF-32*)
5713
        HPUX_IA64_MODE="32"
5714
        ;;
5715
      *ELF-64*)
5716
        HPUX_IA64_MODE="64"
5717
        ;;
5718
    esac
5719
  fi
5720
  rm -rf conftest*
5721
  ;;
5722
*-*-irix6*)
5723
  # Find out which ABI we are using.
5724
  echo '#line __oline__ "configure"' > conftest.$ac_ext
5725
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5726
  (eval $ac_compile) 2>&5
5727
  ac_status=$?
5728
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5729
  test $ac_status = 0; }; then
5730
    if test "$lt_cv_prog_gnu_ld" = yes; then
5731
      case `/usr/bin/file conftest.$ac_objext` in
5732
        *32-bit*)
5733
          LD="${LD-ld} -melf32bsmip"
5734
          ;;
5735
        *N32*)
5736
          LD="${LD-ld} -melf32bmipn32"
5737
          ;;
5738
        *64-bit*)
5739
          LD="${LD-ld} -melf64bmip"
5740
        ;;
5741
      esac
5742
    else
5743
      case `/usr/bin/file conftest.$ac_objext` in
5744
        *32-bit*)
5745
          LD="${LD-ld} -32"
5746
          ;;
5747
        *N32*)
5748
          LD="${LD-ld} -n32"
5749
          ;;
5750
        *64-bit*)
5751
          LD="${LD-ld} -64"
5752
          ;;
5753
      esac
5754
    fi
5755
  fi
5756
  rm -rf conftest*
5757
  ;;
5758 19 jeremybenn
 
5759 202 julius
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5760
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5761
  # Find out which ABI we are using.
5762
  echo 'int i;' > conftest.$ac_ext
5763
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5764
  (eval $ac_compile) 2>&5
5765
  ac_status=$?
5766
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5767
  test $ac_status = 0; }; then
5768
    case `/usr/bin/file conftest.o` in
5769
      *32-bit*)
5770
        case $host in
5771
          x86_64-*kfreebsd*-gnu)
5772
            LD="${LD-ld} -m elf_i386_fbsd"
5773
            ;;
5774
          x86_64-*linux*)
5775
            LD="${LD-ld} -m elf_i386"
5776
            ;;
5777
          ppc64-*linux*|powerpc64-*linux*)
5778
            LD="${LD-ld} -m elf32ppclinux"
5779
            ;;
5780
          s390x-*linux*)
5781
            LD="${LD-ld} -m elf_s390"
5782
            ;;
5783
          sparc64-*linux*)
5784
            LD="${LD-ld} -m elf32_sparc"
5785
            ;;
5786
        esac
5787
        ;;
5788
      *64-bit*)
5789
        case $host in
5790
          x86_64-*kfreebsd*-gnu)
5791
            LD="${LD-ld} -m elf_x86_64_fbsd"
5792
            ;;
5793
          x86_64-*linux*)
5794
            LD="${LD-ld} -m elf_x86_64"
5795
            ;;
5796
          ppc*-*linux*|powerpc*-*linux*)
5797
            LD="${LD-ld} -m elf64ppc"
5798
            ;;
5799
          s390*-*linux*|s390*-*tpf*)
5800
            LD="${LD-ld} -m elf64_s390"
5801
            ;;
5802
          sparc*-*linux*)
5803
            LD="${LD-ld} -m elf64_sparc"
5804
            ;;
5805
        esac
5806
        ;;
5807
    esac
5808
  fi
5809
  rm -rf conftest*
5810
  ;;
5811 19 jeremybenn
 
5812 202 julius
*-*-sco3.2v5*)
5813
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5814
  SAVE_CFLAGS="$CFLAGS"
5815
  CFLAGS="$CFLAGS -belf"
5816
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5817
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5818
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5819
  $as_echo_n "(cached) " >&6
5820
else
5821
  ac_ext=c
5822
ac_cpp='$CPP $CPPFLAGS'
5823
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5826 19 jeremybenn
 
5827 202 julius
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828
/* end confdefs.h.  */
5829
 
5830
int
5831
main ()
5832
{
5833
 
5834
  ;
5835
  return 0;
5836
}
5837
_ACEOF
5838
if ac_fn_c_try_link "$LINENO"; then :
5839
  lt_cv_cc_needs_belf=yes
5840
else
5841
  lt_cv_cc_needs_belf=no
5842
fi
5843
rm -f core conftest.err conftest.$ac_objext \
5844
    conftest$ac_exeext conftest.$ac_ext
5845
     ac_ext=c
5846
ac_cpp='$CPP $CPPFLAGS'
5847
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5850
 
5851
fi
5852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5853
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5854
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5855
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5856
    CFLAGS="$SAVE_CFLAGS"
5857 19 jeremybenn
  fi
5858
  ;;
5859 202 julius
sparc*-*solaris*)
5860
  # Find out which ABI we are using.
5861
  echo 'int i;' > conftest.$ac_ext
5862
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5863
  (eval $ac_compile) 2>&5
5864
  ac_status=$?
5865
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5866
  test $ac_status = 0; }; then
5867
    case `/usr/bin/file conftest.o` in
5868
    *64-bit*)
5869
      case $lt_cv_prog_gnu_ld in
5870
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5871
      *)
5872
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5873
          LD="${LD-ld} -64"
5874
        fi
5875
        ;;
5876
      esac
5877
      ;;
5878
    esac
5879
  fi
5880
  rm -rf conftest*
5881
  ;;
5882 19 jeremybenn
esac
5883
 
5884 202 julius
need_locks="$enable_libtool_lock"
5885 19 jeremybenn
 
5886
 
5887 202 julius
  case $host_os in
5888
    rhapsody* | darwin*)
5889
    if test -n "$ac_tool_prefix"; then
5890
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5891
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5892
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893
$as_echo_n "checking for $ac_word... " >&6; }
5894
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5895
  $as_echo_n "(cached) " >&6
5896
else
5897
  if test -n "$DSYMUTIL"; then
5898
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5899
else
5900
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901
for as_dir in $PATH
5902
do
5903
  IFS=$as_save_IFS
5904
  test -z "$as_dir" && as_dir=.
5905
    for ac_exec_ext in '' $ac_executable_extensions; do
5906
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5907
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5908
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909
    break 2
5910
  fi
5911
done
5912
  done
5913
IFS=$as_save_IFS
5914 19 jeremybenn
 
5915 202 julius
fi
5916
fi
5917
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5918
if test -n "$DSYMUTIL"; then
5919
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5920
$as_echo "$DSYMUTIL" >&6; }
5921
else
5922
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923
$as_echo "no" >&6; }
5924
fi
5925 19 jeremybenn
 
5926
 
5927 202 julius
fi
5928
if test -z "$ac_cv_prog_DSYMUTIL"; then
5929
  ac_ct_DSYMUTIL=$DSYMUTIL
5930
  # Extract the first word of "dsymutil", so it can be a program name with args.
5931
set dummy dsymutil; ac_word=$2
5932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933
$as_echo_n "checking for $ac_word... " >&6; }
5934
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5935
  $as_echo_n "(cached) " >&6
5936
else
5937
  if test -n "$ac_ct_DSYMUTIL"; then
5938
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5939
else
5940
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941
for as_dir in $PATH
5942
do
5943
  IFS=$as_save_IFS
5944
  test -z "$as_dir" && as_dir=.
5945
    for ac_exec_ext in '' $ac_executable_extensions; do
5946
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5948
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949
    break 2
5950
  fi
5951
done
5952
  done
5953
IFS=$as_save_IFS
5954 19 jeremybenn
 
5955 202 julius
fi
5956
fi
5957
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5958
if test -n "$ac_ct_DSYMUTIL"; then
5959
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5960
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5961
else
5962
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963
$as_echo "no" >&6; }
5964
fi
5965 19 jeremybenn
 
5966 202 julius
  if test "x$ac_ct_DSYMUTIL" = x; then
5967
    DSYMUTIL=":"
5968
  else
5969
    case $cross_compiling:$ac_tool_warned in
5970
yes:)
5971
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5972
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5973
ac_tool_warned=yes ;;
5974
esac
5975
    DSYMUTIL=$ac_ct_DSYMUTIL
5976
  fi
5977 19 jeremybenn
else
5978 202 julius
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5979
fi
5980
 
5981
    if test -n "$ac_tool_prefix"; then
5982
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5983
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985
$as_echo_n "checking for $ac_word... " >&6; }
5986
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5987
  $as_echo_n "(cached) " >&6
5988 19 jeremybenn
else
5989 202 julius
  if test -n "$NMEDIT"; then
5990
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5991
else
5992 19 jeremybenn
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993
for as_dir in $PATH
5994
do
5995
  IFS=$as_save_IFS
5996
  test -z "$as_dir" && as_dir=.
5997 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5998 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5999 202 julius
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6000
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 19 jeremybenn
    break 2
6002
  fi
6003
done
6004 202 julius
  done
6005 19 jeremybenn
IFS=$as_save_IFS
6006
 
6007
fi
6008
fi
6009 202 julius
NMEDIT=$ac_cv_prog_NMEDIT
6010
if test -n "$NMEDIT"; then
6011
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6012
$as_echo "$NMEDIT" >&6; }
6013 19 jeremybenn
else
6014 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015
$as_echo "no" >&6; }
6016 19 jeremybenn
fi
6017
 
6018
 
6019
fi
6020 202 julius
if test -z "$ac_cv_prog_NMEDIT"; then
6021
  ac_ct_NMEDIT=$NMEDIT
6022
  # Extract the first word of "nmedit", so it can be a program name with args.
6023
set dummy nmedit; ac_word=$2
6024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025
$as_echo_n "checking for $ac_word... " >&6; }
6026
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6027
  $as_echo_n "(cached) " >&6
6028 19 jeremybenn
else
6029 202 julius
  if test -n "$ac_ct_NMEDIT"; then
6030
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6031 19 jeremybenn
else
6032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033
for as_dir in $PATH
6034
do
6035
  IFS=$as_save_IFS
6036
  test -z "$as_dir" && as_dir=.
6037 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
6038 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039 202 julius
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6040
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 19 jeremybenn
    break 2
6042
  fi
6043
done
6044 202 julius
  done
6045 19 jeremybenn
IFS=$as_save_IFS
6046
 
6047
fi
6048
fi
6049 202 julius
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6050
if test -n "$ac_ct_NMEDIT"; then
6051
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6052
$as_echo "$ac_ct_NMEDIT" >&6; }
6053 19 jeremybenn
else
6054 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055
$as_echo "no" >&6; }
6056 19 jeremybenn
fi
6057
 
6058 202 julius
  if test "x$ac_ct_NMEDIT" = x; then
6059
    NMEDIT=":"
6060 19 jeremybenn
  else
6061
    case $cross_compiling:$ac_tool_warned in
6062
yes:)
6063 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6064
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6065 19 jeremybenn
ac_tool_warned=yes ;;
6066
esac
6067 202 julius
    NMEDIT=$ac_ct_NMEDIT
6068 19 jeremybenn
  fi
6069
else
6070 202 julius
  NMEDIT="$ac_cv_prog_NMEDIT"
6071 19 jeremybenn
fi
6072
 
6073 202 julius
    if test -n "$ac_tool_prefix"; then
6074
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6075
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077
$as_echo_n "checking for $ac_word... " >&6; }
6078
if test "${ac_cv_prog_LIPO+set}" = set; then :
6079
  $as_echo_n "(cached) " >&6
6080 19 jeremybenn
else
6081 202 julius
  if test -n "$LIPO"; then
6082
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6083 19 jeremybenn
else
6084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085
for as_dir in $PATH
6086
do
6087
  IFS=$as_save_IFS
6088
  test -z "$as_dir" && as_dir=.
6089 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
6090 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6091 202 julius
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6092
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 19 jeremybenn
    break 2
6094
  fi
6095
done
6096 202 julius
  done
6097 19 jeremybenn
IFS=$as_save_IFS
6098
 
6099
fi
6100
fi
6101 202 julius
LIPO=$ac_cv_prog_LIPO
6102
if test -n "$LIPO"; then
6103
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6104
$as_echo "$LIPO" >&6; }
6105 19 jeremybenn
else
6106 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107
$as_echo "no" >&6; }
6108 19 jeremybenn
fi
6109
 
6110
 
6111
fi
6112 202 julius
if test -z "$ac_cv_prog_LIPO"; then
6113
  ac_ct_LIPO=$LIPO
6114
  # Extract the first word of "lipo", so it can be a program name with args.
6115
set dummy lipo; ac_word=$2
6116
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117
$as_echo_n "checking for $ac_word... " >&6; }
6118
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6119
  $as_echo_n "(cached) " >&6
6120 19 jeremybenn
else
6121 202 julius
  if test -n "$ac_ct_LIPO"; then
6122
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6123 19 jeremybenn
else
6124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125
for as_dir in $PATH
6126
do
6127
  IFS=$as_save_IFS
6128
  test -z "$as_dir" && as_dir=.
6129 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
6130 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 202 julius
    ac_cv_prog_ac_ct_LIPO="lipo"
6132
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 19 jeremybenn
    break 2
6134
  fi
6135
done
6136 202 julius
  done
6137 19 jeremybenn
IFS=$as_save_IFS
6138
 
6139
fi
6140
fi
6141 202 julius
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6142
if test -n "$ac_ct_LIPO"; then
6143
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6144
$as_echo "$ac_ct_LIPO" >&6; }
6145 19 jeremybenn
else
6146 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147
$as_echo "no" >&6; }
6148 19 jeremybenn
fi
6149
 
6150 202 julius
  if test "x$ac_ct_LIPO" = x; then
6151
    LIPO=":"
6152 19 jeremybenn
  else
6153
    case $cross_compiling:$ac_tool_warned in
6154
yes:)
6155 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6156
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6157 19 jeremybenn
ac_tool_warned=yes ;;
6158
esac
6159 202 julius
    LIPO=$ac_ct_LIPO
6160 19 jeremybenn
  fi
6161
else
6162 202 julius
  LIPO="$ac_cv_prog_LIPO"
6163 19 jeremybenn
fi
6164
 
6165 202 julius
    if test -n "$ac_tool_prefix"; then
6166
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6167
set dummy ${ac_tool_prefix}otool; ac_word=$2
6168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169
$as_echo_n "checking for $ac_word... " >&6; }
6170
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6171
  $as_echo_n "(cached) " >&6
6172 19 jeremybenn
else
6173 202 julius
  if test -n "$OTOOL"; then
6174
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6175 19 jeremybenn
else
6176
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177
for as_dir in $PATH
6178
do
6179
  IFS=$as_save_IFS
6180
  test -z "$as_dir" && as_dir=.
6181 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
6182 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183 202 julius
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6184
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 19 jeremybenn
    break 2
6186
  fi
6187
done
6188 202 julius
  done
6189 19 jeremybenn
IFS=$as_save_IFS
6190
 
6191
fi
6192
fi
6193 202 julius
OTOOL=$ac_cv_prog_OTOOL
6194
if test -n "$OTOOL"; then
6195
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6196
$as_echo "$OTOOL" >&6; }
6197 19 jeremybenn
else
6198 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199
$as_echo "no" >&6; }
6200 19 jeremybenn
fi
6201
 
6202
 
6203
fi
6204 202 julius
if test -z "$ac_cv_prog_OTOOL"; then
6205
  ac_ct_OTOOL=$OTOOL
6206
  # Extract the first word of "otool", so it can be a program name with args.
6207
set dummy otool; ac_word=$2
6208
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209
$as_echo_n "checking for $ac_word... " >&6; }
6210
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6211
  $as_echo_n "(cached) " >&6
6212 19 jeremybenn
else
6213 202 julius
  if test -n "$ac_ct_OTOOL"; then
6214
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6215 19 jeremybenn
else
6216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217
for as_dir in $PATH
6218
do
6219
  IFS=$as_save_IFS
6220
  test -z "$as_dir" && as_dir=.
6221 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
6222 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 202 julius
    ac_cv_prog_ac_ct_OTOOL="otool"
6224
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 19 jeremybenn
    break 2
6226
  fi
6227
done
6228 202 julius
  done
6229
IFS=$as_save_IFS
6230
 
6231
fi
6232
fi
6233
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6234
if test -n "$ac_ct_OTOOL"; then
6235
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6236
$as_echo "$ac_ct_OTOOL" >&6; }
6237
else
6238
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239
$as_echo "no" >&6; }
6240
fi
6241
 
6242
  if test "x$ac_ct_OTOOL" = x; then
6243
    OTOOL=":"
6244
  else
6245
    case $cross_compiling:$ac_tool_warned in
6246
yes:)
6247
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249
ac_tool_warned=yes ;;
6250
esac
6251
    OTOOL=$ac_ct_OTOOL
6252
  fi
6253
else
6254
  OTOOL="$ac_cv_prog_OTOOL"
6255
fi
6256
 
6257
    if test -n "$ac_tool_prefix"; then
6258
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6259
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6260
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261
$as_echo_n "checking for $ac_word... " >&6; }
6262
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6263
  $as_echo_n "(cached) " >&6
6264
else
6265
  if test -n "$OTOOL64"; then
6266
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6267
else
6268
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269
for as_dir in $PATH
6270
do
6271
  IFS=$as_save_IFS
6272
  test -z "$as_dir" && as_dir=.
6273
    for ac_exec_ext in '' $ac_executable_extensions; do
6274
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6275
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6276
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277
    break 2
6278
  fi
6279 19 jeremybenn
done
6280 202 julius
  done
6281 19 jeremybenn
IFS=$as_save_IFS
6282
 
6283
fi
6284
fi
6285 202 julius
OTOOL64=$ac_cv_prog_OTOOL64
6286
if test -n "$OTOOL64"; then
6287
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6288
$as_echo "$OTOOL64" >&6; }
6289 19 jeremybenn
else
6290 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291
$as_echo "no" >&6; }
6292 19 jeremybenn
fi
6293
 
6294 202 julius
 
6295
fi
6296
if test -z "$ac_cv_prog_OTOOL64"; then
6297
  ac_ct_OTOOL64=$OTOOL64
6298
  # Extract the first word of "otool64", so it can be a program name with args.
6299
set dummy otool64; ac_word=$2
6300
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301
$as_echo_n "checking for $ac_word... " >&6; }
6302
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6303
  $as_echo_n "(cached) " >&6
6304
else
6305
  if test -n "$ac_ct_OTOOL64"; then
6306
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6307
else
6308
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309
for as_dir in $PATH
6310
do
6311
  IFS=$as_save_IFS
6312
  test -z "$as_dir" && as_dir=.
6313
    for ac_exec_ext in '' $ac_executable_extensions; do
6314
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6316
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317
    break 2
6318
  fi
6319
done
6320
  done
6321
IFS=$as_save_IFS
6322
 
6323
fi
6324
fi
6325
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6326
if test -n "$ac_ct_OTOOL64"; then
6327
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6328
$as_echo "$ac_ct_OTOOL64" >&6; }
6329
else
6330
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331
$as_echo "no" >&6; }
6332
fi
6333
 
6334
  if test "x$ac_ct_OTOOL64" = x; then
6335
    OTOOL64=":"
6336 19 jeremybenn
  else
6337
    case $cross_compiling:$ac_tool_warned in
6338
yes:)
6339 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6340
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6341 19 jeremybenn
ac_tool_warned=yes ;;
6342
esac
6343 202 julius
    OTOOL64=$ac_ct_OTOOL64
6344 19 jeremybenn
  fi
6345
else
6346 202 julius
  OTOOL64="$ac_cv_prog_OTOOL64"
6347 19 jeremybenn
fi
6348
 
6349 202 julius
 
6350
 
6351
 
6352
 
6353 19 jeremybenn
 
6354 202 julius
 
6355
 
6356
 
6357
 
6358
 
6359
 
6360
 
6361
 
6362
 
6363
 
6364
 
6365
 
6366
 
6367
 
6368
 
6369
 
6370
 
6371
 
6372
 
6373
 
6374
 
6375
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6376
$as_echo_n "checking for -single_module linker flag... " >&6; }
6377
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6378
  $as_echo_n "(cached) " >&6
6379
else
6380
  lt_cv_apple_cc_single_mod=no
6381
      if test -z "${LT_MULTI_MODULE}"; then
6382
        # By default we will add the -single_module flag. You can override
6383
        # by either setting the environment variable LT_MULTI_MODULE
6384
        # non-empty at configure time, or by adding -multi_module to the
6385
        # link flags.
6386
        rm -rf libconftest.dylib*
6387
        echo "int foo(void){return 1;}" > conftest.c
6388
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6389
-dynamiclib -Wl,-single_module conftest.c" >&5
6390
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6391
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6392
        _lt_result=$?
6393
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6394
          lt_cv_apple_cc_single_mod=yes
6395
        else
6396
          cat conftest.err >&5
6397
        fi
6398
        rm -rf libconftest.dylib*
6399
        rm -f conftest.*
6400
      fi
6401
fi
6402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6403
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6404
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6405
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6406
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6407
  $as_echo_n "(cached) " >&6
6408
else
6409
  lt_cv_ld_exported_symbols_list=no
6410
      save_LDFLAGS=$LDFLAGS
6411
      echo "_main" > conftest.sym
6412
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6413
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414
/* end confdefs.h.  */
6415
 
6416
int
6417
main ()
6418
{
6419
 
6420
  ;
6421
  return 0;
6422
}
6423
_ACEOF
6424
if ac_fn_c_try_link "$LINENO"; then :
6425
  lt_cv_ld_exported_symbols_list=yes
6426
else
6427
  lt_cv_ld_exported_symbols_list=no
6428
fi
6429
rm -f core conftest.err conftest.$ac_objext \
6430
    conftest$ac_exeext conftest.$ac_ext
6431
        LDFLAGS="$save_LDFLAGS"
6432
 
6433
fi
6434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6435
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6436
    case $host_os in
6437
    rhapsody* | darwin1.[012])
6438
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6439
    darwin1.*)
6440
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6441
    darwin*) # darwin 5.x on
6442
      # if running on 10.5 or later, the deployment target defaults
6443
      # to the OS version, if on x86, and 10.4, the deployment
6444
      # target defaults to 10.4. Don't you love it?
6445
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6446
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6447
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6448
        10.[012]*)
6449
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6450
        10.*)
6451
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6452
      esac
6453
    ;;
6454
  esac
6455
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6456
      _lt_dar_single_mod='$single_module'
6457
    fi
6458
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6459
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6460
    else
6461
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6462
    fi
6463
    if test "$DSYMUTIL" != ":"; then
6464
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6465
    else
6466
      _lt_dsymutil=
6467
    fi
6468
    ;;
6469
  esac
6470
 
6471
for ac_header in dlfcn.h
6472
do :
6473
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6474
"
6475
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6476
  cat >>confdefs.h <<_ACEOF
6477
@%:@define HAVE_DLFCN_H 1
6478
_ACEOF
6479
 
6480
fi
6481
 
6482
done
6483
 
6484
 
6485
 
6486
# Set options
6487
 
6488
 
6489
 
6490
        enable_dlopen=no
6491
 
6492
 
6493
  enable_win32_dll=no
6494
 
6495
 
6496
            @%:@ Check whether --enable-shared was given.
6497
if test "${enable_shared+set}" = set; then :
6498
  enableval=$enable_shared; p=${PACKAGE-default}
6499
    case $enableval in
6500
    yes) enable_shared=yes ;;
6501
    no) enable_shared=no ;;
6502
    *)
6503
      enable_shared=no
6504
      # Look at the argument we got.  We use all the common list separators.
6505
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6506
      for pkg in $enableval; do
6507
        IFS="$lt_save_ifs"
6508
        if test "X$pkg" = "X$p"; then
6509
          enable_shared=yes
6510
        fi
6511
      done
6512
      IFS="$lt_save_ifs"
6513
      ;;
6514
    esac
6515
else
6516
  enable_shared=yes
6517
fi
6518
 
6519
 
6520
 
6521
 
6522
 
6523
 
6524
 
6525
 
6526
 
6527
  @%:@ Check whether --enable-static was given.
6528
if test "${enable_static+set}" = set; then :
6529
  enableval=$enable_static; p=${PACKAGE-default}
6530
    case $enableval in
6531
    yes) enable_static=yes ;;
6532
    no) enable_static=no ;;
6533
    *)
6534
     enable_static=no
6535
      # Look at the argument we got.  We use all the common list separators.
6536
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6537
      for pkg in $enableval; do
6538
        IFS="$lt_save_ifs"
6539
        if test "X$pkg" = "X$p"; then
6540
          enable_static=yes
6541
        fi
6542
      done
6543
      IFS="$lt_save_ifs"
6544
      ;;
6545
    esac
6546
else
6547
  enable_static=yes
6548
fi
6549
 
6550
 
6551
 
6552
 
6553
 
6554
 
6555
 
6556
 
6557
 
6558
 
6559
@%:@ Check whether --with-pic was given.
6560
if test "${with_pic+set}" = set; then :
6561
  withval=$with_pic; pic_mode="$withval"
6562
else
6563
  pic_mode=default
6564
fi
6565
 
6566
 
6567
test -z "$pic_mode" && pic_mode=default
6568
 
6569
 
6570
 
6571
 
6572
 
6573
 
6574
 
6575
  @%:@ Check whether --enable-fast-install was given.
6576
if test "${enable_fast_install+set}" = set; then :
6577
  enableval=$enable_fast_install; p=${PACKAGE-default}
6578
    case $enableval in
6579
    yes) enable_fast_install=yes ;;
6580
    no) enable_fast_install=no ;;
6581
    *)
6582
      enable_fast_install=no
6583
      # Look at the argument we got.  We use all the common list separators.
6584
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6585
      for pkg in $enableval; do
6586
        IFS="$lt_save_ifs"
6587
        if test "X$pkg" = "X$p"; then
6588
          enable_fast_install=yes
6589
        fi
6590
      done
6591
      IFS="$lt_save_ifs"
6592
      ;;
6593
    esac
6594
else
6595
  enable_fast_install=yes
6596
fi
6597
 
6598
 
6599
 
6600
 
6601
 
6602
 
6603
 
6604
 
6605
 
6606
 
6607
 
6608
# This can be used to rebuild libtool when needed
6609
LIBTOOL_DEPS="$ltmain"
6610
 
6611
# Always use our own libtool.
6612
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6613
 
6614
 
6615
 
6616
 
6617
 
6618
 
6619
 
6620
 
6621
 
6622
 
6623
 
6624
 
6625
 
6626
 
6627
 
6628
 
6629
 
6630
 
6631
 
6632
 
6633
 
6634
 
6635
 
6636
 
6637
 
6638
test -z "$LN_S" && LN_S="ln -s"
6639
 
6640
 
6641
 
6642
 
6643
 
6644
 
6645
 
6646
 
6647
 
6648
 
6649
 
6650
 
6651
 
6652
 
6653
if test -n "${ZSH_VERSION+set}" ; then
6654
   setopt NO_GLOB_SUBST
6655
fi
6656
 
6657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6658
$as_echo_n "checking for objdir... " >&6; }
6659
if test "${lt_cv_objdir+set}" = set; then :
6660
  $as_echo_n "(cached) " >&6
6661
else
6662
  rm -f .libs 2>/dev/null
6663
mkdir .libs 2>/dev/null
6664
if test -d .libs; then
6665
  lt_cv_objdir=.libs
6666
else
6667
  # MS-DOS does not allow filenames that begin with a dot.
6668
  lt_cv_objdir=_libs
6669
fi
6670
rmdir .libs 2>/dev/null
6671
fi
6672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6673
$as_echo "$lt_cv_objdir" >&6; }
6674
objdir=$lt_cv_objdir
6675
 
6676
 
6677
 
6678
 
6679
 
6680
cat >>confdefs.h <<_ACEOF
6681
@%:@define LT_OBJDIR "$lt_cv_objdir/"
6682
_ACEOF
6683
 
6684
 
6685
 
6686
 
6687
 
6688
 
6689
 
6690
 
6691
 
6692
 
6693
 
6694
 
6695
 
6696
 
6697
 
6698
 
6699
 
6700
case $host_os in
6701
aix3*)
6702
  # AIX sometimes has problems with the GCC collect2 program.  For some
6703
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6704
  # vanish in a puff of smoke.
6705
  if test "X${COLLECT_NAMES+set}" != Xset; then
6706
    COLLECT_NAMES=
6707
    export COLLECT_NAMES
6708
  fi
6709
  ;;
6710
esac
6711
 
6712
# Sed substitution that helps us do robust quoting.  It backslashifies
6713
# metacharacters that are still active within double-quoted strings.
6714
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6715
 
6716
# Same as above, but do not quote variable references.
6717
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6718
 
6719
# Sed substitution to delay expansion of an escaped shell variable in a
6720
# double_quote_subst'ed string.
6721
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6722
 
6723
# Sed substitution to delay expansion of an escaped single quote.
6724
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6725
 
6726
# Sed substitution to avoid accidental globbing in evaled expressions
6727
no_glob_subst='s/\*/\\\*/g'
6728
 
6729
# Global variables:
6730
ofile=libtool
6731
can_build_shared=yes
6732
 
6733
# All known linkers require a `.a' archive for static linking (except MSVC,
6734
# which needs '.lib').
6735
libext=a
6736
 
6737
with_gnu_ld="$lt_cv_prog_gnu_ld"
6738
 
6739 19 jeremybenn
old_CC="$CC"
6740
old_CFLAGS="$CFLAGS"
6741
 
6742
# Set sane defaults for various variables
6743
test -z "$CC" && CC=cc
6744
test -z "$LTCC" && LTCC=$CC
6745
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6746
test -z "$LD" && LD=ld
6747
test -z "$ac_objext" && ac_objext=o
6748
 
6749
for cc_temp in $compiler""; do
6750
  case $cc_temp in
6751
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6752
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6753
    \-*) ;;
6754
    *) break;;
6755
  esac
6756
done
6757 202 julius
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6758 19 jeremybenn
 
6759
 
6760
# Only perform the check for file, if the check method requires it
6761 202 julius
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6762 19 jeremybenn
case $deplibs_check_method in
6763
file_magic*)
6764
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6765 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6766
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6767
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6768
  $as_echo_n "(cached) " >&6
6769 19 jeremybenn
else
6770
  case $MAGIC_CMD in
6771
[\\/*] |  ?:[\\/]*)
6772
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6773
  ;;
6774
*)
6775
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6776
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6777
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6778
  for ac_dir in $ac_dummy; do
6779
    IFS="$lt_save_ifs"
6780
    test -z "$ac_dir" && ac_dir=.
6781
    if test -f $ac_dir/${ac_tool_prefix}file; then
6782
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6783
      if test -n "$file_magic_test_file"; then
6784
        case $deplibs_check_method in
6785
        "file_magic "*)
6786
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6787
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6788
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6789
            $EGREP "$file_magic_regex" > /dev/null; then
6790
            :
6791
          else
6792 202 julius
            cat <<_LT_EOF 1>&2
6793 19 jeremybenn
 
6794
*** Warning: the command libtool uses to detect shared libraries,
6795
*** $file_magic_cmd, produces output that libtool cannot recognize.
6796
*** The result is that libtool may fail to recognize shared libraries
6797
*** as such.  This will affect the creation of libtool libraries that
6798
*** depend on shared libraries, but programs linked with such libtool
6799
*** libraries will work regardless of this problem.  Nevertheless, you
6800
*** may want to report the problem to your system manager and/or to
6801
*** bug-libtool@gnu.org
6802
 
6803 202 julius
_LT_EOF
6804 19 jeremybenn
          fi ;;
6805
        esac
6806
      fi
6807
      break
6808
    fi
6809
  done
6810
  IFS="$lt_save_ifs"
6811
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6812
  ;;
6813
esac
6814
fi
6815
 
6816
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6817
if test -n "$MAGIC_CMD"; then
6818 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6819
$as_echo "$MAGIC_CMD" >&6; }
6820 19 jeremybenn
else
6821 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822
$as_echo "no" >&6; }
6823 19 jeremybenn
fi
6824
 
6825 202 julius
 
6826
 
6827
 
6828
 
6829 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
6830
  if test -n "$ac_tool_prefix"; then
6831 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6832
$as_echo_n "checking for file... " >&6; }
6833
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6834
  $as_echo_n "(cached) " >&6
6835 19 jeremybenn
else
6836
  case $MAGIC_CMD in
6837
[\\/*] |  ?:[\\/]*)
6838
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6839
  ;;
6840
*)
6841
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6842
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6843
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6844
  for ac_dir in $ac_dummy; do
6845
    IFS="$lt_save_ifs"
6846
    test -z "$ac_dir" && ac_dir=.
6847
    if test -f $ac_dir/file; then
6848
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6849
      if test -n "$file_magic_test_file"; then
6850
        case $deplibs_check_method in
6851
        "file_magic "*)
6852
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6853
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6854
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6855
            $EGREP "$file_magic_regex" > /dev/null; then
6856
            :
6857
          else
6858 202 julius
            cat <<_LT_EOF 1>&2
6859 19 jeremybenn
 
6860
*** Warning: the command libtool uses to detect shared libraries,
6861
*** $file_magic_cmd, produces output that libtool cannot recognize.
6862
*** The result is that libtool may fail to recognize shared libraries
6863
*** as such.  This will affect the creation of libtool libraries that
6864
*** depend on shared libraries, but programs linked with such libtool
6865
*** libraries will work regardless of this problem.  Nevertheless, you
6866
*** may want to report the problem to your system manager and/or to
6867
*** bug-libtool@gnu.org
6868
 
6869 202 julius
_LT_EOF
6870 19 jeremybenn
          fi ;;
6871
        esac
6872
      fi
6873
      break
6874
    fi
6875
  done
6876
  IFS="$lt_save_ifs"
6877
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6878
  ;;
6879
esac
6880
fi
6881
 
6882
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6883
if test -n "$MAGIC_CMD"; then
6884 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6885
$as_echo "$MAGIC_CMD" >&6; }
6886 19 jeremybenn
else
6887 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888
$as_echo "no" >&6; }
6889 19 jeremybenn
fi
6890
 
6891 202 julius
 
6892 19 jeremybenn
  else
6893
    MAGIC_CMD=:
6894
  fi
6895
fi
6896
 
6897
  fi
6898
  ;;
6899
esac
6900
 
6901 202 julius
# Use C for the default configuration in the libtool script
6902 19 jeremybenn
 
6903
lt_save_CC="$CC"
6904
ac_ext=c
6905
ac_cpp='$CPP $CPPFLAGS'
6906
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6907
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6908
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6909
 
6910
 
6911
# Source file extension for C test sources.
6912
ac_ext=c
6913
 
6914
# Object file extension for compiled C test sources.
6915
objext=o
6916
objext=$objext
6917
 
6918
# Code to be used in simple compile tests
6919
lt_simple_compile_test_code="int some_variable = 0;"
6920
 
6921
# Code to be used in simple link tests
6922
lt_simple_link_test_code='int main(){return(0);}'
6923
 
6924
 
6925 202 julius
 
6926
 
6927
 
6928
 
6929
 
6930 19 jeremybenn
# If no C compiler was specified, use CC.
6931
LTCC=${LTCC-"$CC"}
6932
 
6933
# If no C compiler flags were specified, use CFLAGS.
6934
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6935
 
6936
# Allow CC to be a program name with arguments.
6937
compiler=$CC
6938
 
6939 202 julius
# Save the default compiler, since it gets overwritten when the other
6940
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6941
compiler_DEFAULT=$CC
6942 19 jeremybenn
 
6943
# save warnings/boilerplate of simple test code
6944
ac_outfile=conftest.$ac_objext
6945
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6946
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6947
_lt_compiler_boilerplate=`cat conftest.err`
6948 202 julius
$RM conftest*
6949 19 jeremybenn
 
6950
ac_outfile=conftest.$ac_objext
6951
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6952
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6953
_lt_linker_boilerplate=`cat conftest.err`
6954 202 julius
$RM -r conftest*
6955 19 jeremybenn
 
6956
 
6957
## CAVEAT EMPTOR:
6958
## There is no encapsulation within the following macros, do not change
6959
## the running order or otherwise move them around unless you know exactly
6960
## what you are doing...
6961 202 julius
if test -n "$compiler"; then
6962
 
6963 19 jeremybenn
lt_prog_compiler_no_builtin_flag=
6964
 
6965
if test "$GCC" = yes; then
6966
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6967
 
6968 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6969
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6970
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6971
  $as_echo_n "(cached) " >&6
6972 19 jeremybenn
else
6973
  lt_cv_prog_compiler_rtti_exceptions=no
6974 202 julius
   ac_outfile=conftest.$ac_objext
6975 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6976
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6977
   # Insert the option either (1) after the last *FLAGS variable, or
6978
   # (2) before a word containing "conftest.", or (3) at the end.
6979
   # Note that $ac_compile itself does not contain backslashes and begins
6980
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6981
   # The option is referenced via a variable to avoid confusing sed.
6982
   lt_compile=`echo "$ac_compile" | $SED \
6983
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6984
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6985
   -e 's:$: $lt_compiler_flag:'`
6986
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6987
   (eval "$lt_compile" 2>conftest.err)
6988
   ac_status=$?
6989
   cat conftest.err >&5
6990
   echo "$as_me:__oline__: \$? = $ac_status" >&5
6991
   if (exit $ac_status) && test -s "$ac_outfile"; then
6992
     # The compiler can only warn and ignore the option if not recognized
6993
     # So say no if there are warnings other than the usual output.
6994 202 julius
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6995 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6996
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6997
       lt_cv_prog_compiler_rtti_exceptions=yes
6998
     fi
6999
   fi
7000 202 julius
   $RM conftest*
7001 19 jeremybenn
 
7002
fi
7003 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7004
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7005 19 jeremybenn
 
7006
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7007
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7008
else
7009
    :
7010
fi
7011
 
7012
fi
7013
 
7014 202 julius
 
7015
 
7016
 
7017
 
7018
 
7019
  lt_prog_compiler_wl=
7020 19 jeremybenn
lt_prog_compiler_pic=
7021
lt_prog_compiler_static=
7022
 
7023 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7024
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7025
 
7026 19 jeremybenn
  if test "$GCC" = yes; then
7027
    lt_prog_compiler_wl='-Wl,'
7028
    lt_prog_compiler_static='-static'
7029
 
7030
    case $host_os in
7031
      aix*)
7032
      # All AIX code is PIC.
7033
      if test "$host_cpu" = ia64; then
7034
        # AIX 5 now supports IA64 processor
7035
        lt_prog_compiler_static='-Bstatic'
7036
      fi
7037
      ;;
7038
 
7039
    amigaos*)
7040 202 julius
      case $host_cpu in
7041
      powerpc)
7042
            # see comment about AmigaOS4 .so support
7043
            lt_prog_compiler_pic='-fPIC'
7044
        ;;
7045
      m68k)
7046
            # FIXME: we need at least 68020 code to build shared libraries, but
7047
            # adding the `-m68020' flag to GCC prevents building anything better,
7048
            # like `-m68040'.
7049
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7050
        ;;
7051
      esac
7052 19 jeremybenn
      ;;
7053
 
7054
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7055
      # PIC is the default for these OSes.
7056
      ;;
7057
 
7058 202 julius
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7059 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7060
      # built for inclusion in a dll (and should export symbols for example).
7061
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7062
      # (--disable-auto-import) libraries
7063
      lt_prog_compiler_pic='-DDLL_EXPORT'
7064
      ;;
7065
 
7066
    darwin* | rhapsody*)
7067
      # PIC is the default on this platform
7068
      # Common symbols not allowed in MH_DYLIB files
7069
      lt_prog_compiler_pic='-fno-common'
7070
      ;;
7071
 
7072 202 julius
    hpux*)
7073
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7074
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7075
      # sets the default TLS model and affects inlining.
7076
      case $host_cpu in
7077
      hppa*64*)
7078
        # +Z the default
7079
        ;;
7080
      *)
7081
        lt_prog_compiler_pic='-fPIC'
7082
        ;;
7083
      esac
7084
      ;;
7085
 
7086 19 jeremybenn
    interix[3-9]*)
7087
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7088
      # Instead, we relocate shared libraries at runtime.
7089
      ;;
7090
 
7091
    msdosdjgpp*)
7092
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7093
      # on systems that don't support them.
7094
      lt_prog_compiler_can_build_shared=no
7095
      enable_shared=no
7096
      ;;
7097
 
7098 202 julius
    *nto* | *qnx*)
7099
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7100
      # it will coredump.
7101
      lt_prog_compiler_pic='-fPIC -shared'
7102
      ;;
7103
 
7104 19 jeremybenn
    sysv4*MP*)
7105
      if test -d /usr/nec; then
7106
        lt_prog_compiler_pic=-Kconform_pic
7107
      fi
7108
      ;;
7109
 
7110
    *)
7111
      lt_prog_compiler_pic='-fPIC'
7112
      ;;
7113
    esac
7114
  else
7115
    # PORTME Check for flag to pass linker flags through the system compiler.
7116
    case $host_os in
7117
    aix*)
7118
      lt_prog_compiler_wl='-Wl,'
7119
      if test "$host_cpu" = ia64; then
7120
        # AIX 5 now supports IA64 processor
7121
        lt_prog_compiler_static='-Bstatic'
7122
      else
7123
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7124
      fi
7125
      ;;
7126
 
7127 202 julius
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7128 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7129
      # built for inclusion in a dll (and should export symbols for example).
7130
      lt_prog_compiler_pic='-DDLL_EXPORT'
7131
      ;;
7132
 
7133
    hpux9* | hpux10* | hpux11*)
7134
      lt_prog_compiler_wl='-Wl,'
7135
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7136
      # not for PA HP-UX.
7137
      case $host_cpu in
7138
      hppa*64*|ia64*)
7139
        # +Z the default
7140
        ;;
7141
      *)
7142
        lt_prog_compiler_pic='+Z'
7143
        ;;
7144
      esac
7145
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7146
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7147
      ;;
7148
 
7149
    irix5* | irix6* | nonstopux*)
7150
      lt_prog_compiler_wl='-Wl,'
7151
      # PIC (with -KPIC) is the default.
7152
      lt_prog_compiler_static='-non_shared'
7153
      ;;
7154
 
7155
    linux* | k*bsd*-gnu)
7156
      case $cc_basename in
7157 202 julius
      # old Intel for x86_64 which still supported -KPIC.
7158
      ecc*)
7159 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7160
        lt_prog_compiler_pic='-KPIC'
7161
        lt_prog_compiler_static='-static'
7162
        ;;
7163 202 julius
      # icc used to be incompatible with GCC.
7164
      # ICC 10 doesn't accept -KPIC any more.
7165
      icc* | ifort*)
7166
        lt_prog_compiler_wl='-Wl,'
7167
        lt_prog_compiler_pic='-fPIC'
7168
        lt_prog_compiler_static='-static'
7169
        ;;
7170
      # Lahey Fortran 8.1.
7171
      lf95*)
7172
        lt_prog_compiler_wl='-Wl,'
7173
        lt_prog_compiler_pic='--shared'
7174
        lt_prog_compiler_static='--static'
7175
        ;;
7176 19 jeremybenn
      pgcc* | pgf77* | pgf90* | pgf95*)
7177
        # Portland Group compilers (*not* the Pentium gcc compiler,
7178
        # which looks to be a dead project)
7179
        lt_prog_compiler_wl='-Wl,'
7180
        lt_prog_compiler_pic='-fpic'
7181
        lt_prog_compiler_static='-Bstatic'
7182
        ;;
7183
      ccc*)
7184
        lt_prog_compiler_wl='-Wl,'
7185
        # All Alpha code is PIC.
7186
        lt_prog_compiler_static='-non_shared'
7187
        ;;
7188 202 julius
      xl*)
7189
        # IBM XL C 8.0/Fortran 10.1 on PPC
7190
        lt_prog_compiler_wl='-Wl,'
7191
        lt_prog_compiler_pic='-qpic'
7192
        lt_prog_compiler_static='-qstaticlink'
7193
        ;;
7194 19 jeremybenn
      *)
7195 202 julius
        case `$CC -V 2>&1 | sed 5q` in
7196 19 jeremybenn
        *Sun\ C*)
7197
          # Sun C 5.9
7198
          lt_prog_compiler_pic='-KPIC'
7199
          lt_prog_compiler_static='-Bstatic'
7200
          lt_prog_compiler_wl='-Wl,'
7201
          ;;
7202
        *Sun\ F*)
7203
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7204
          lt_prog_compiler_pic='-KPIC'
7205
          lt_prog_compiler_static='-Bstatic'
7206
          lt_prog_compiler_wl=''
7207
          ;;
7208
        esac
7209
        ;;
7210
      esac
7211
      ;;
7212
 
7213 202 julius
    newsos6)
7214
      lt_prog_compiler_pic='-KPIC'
7215
      lt_prog_compiler_static='-Bstatic'
7216
      ;;
7217
 
7218
    *nto* | *qnx*)
7219
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7220
      # it will coredump.
7221
      lt_prog_compiler_pic='-fPIC -shared'
7222
      ;;
7223
 
7224 19 jeremybenn
    osf3* | osf4* | osf5*)
7225
      lt_prog_compiler_wl='-Wl,'
7226
      # All OSF/1 code is PIC.
7227
      lt_prog_compiler_static='-non_shared'
7228
      ;;
7229
 
7230
    rdos*)
7231
      lt_prog_compiler_static='-non_shared'
7232
      ;;
7233
 
7234
    solaris*)
7235
      lt_prog_compiler_pic='-KPIC'
7236
      lt_prog_compiler_static='-Bstatic'
7237
      case $cc_basename in
7238
      f77* | f90* | f95*)
7239
        lt_prog_compiler_wl='-Qoption ld ';;
7240
      *)
7241
        lt_prog_compiler_wl='-Wl,';;
7242
      esac
7243
      ;;
7244
 
7245
    sunos4*)
7246
      lt_prog_compiler_wl='-Qoption ld '
7247
      lt_prog_compiler_pic='-PIC'
7248
      lt_prog_compiler_static='-Bstatic'
7249
      ;;
7250
 
7251
    sysv4 | sysv4.2uw2* | sysv4.3*)
7252
      lt_prog_compiler_wl='-Wl,'
7253
      lt_prog_compiler_pic='-KPIC'
7254
      lt_prog_compiler_static='-Bstatic'
7255
      ;;
7256
 
7257
    sysv4*MP*)
7258
      if test -d /usr/nec ;then
7259
        lt_prog_compiler_pic='-Kconform_pic'
7260
        lt_prog_compiler_static='-Bstatic'
7261
      fi
7262
      ;;
7263
 
7264
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7265
      lt_prog_compiler_wl='-Wl,'
7266
      lt_prog_compiler_pic='-KPIC'
7267
      lt_prog_compiler_static='-Bstatic'
7268
      ;;
7269
 
7270
    unicos*)
7271
      lt_prog_compiler_wl='-Wl,'
7272
      lt_prog_compiler_can_build_shared=no
7273
      ;;
7274
 
7275
    uts4*)
7276
      lt_prog_compiler_pic='-pic'
7277
      lt_prog_compiler_static='-Bstatic'
7278
      ;;
7279
 
7280
    *)
7281
      lt_prog_compiler_can_build_shared=no
7282
      ;;
7283
    esac
7284
  fi
7285
 
7286 202 julius
case $host_os in
7287
  # For platforms which do not support PIC, -DPIC is meaningless:
7288
  *djgpp*)
7289
    lt_prog_compiler_pic=
7290
    ;;
7291
  *)
7292
    lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
7293
    ;;
7294
esac
7295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7296
$as_echo "$lt_prog_compiler_pic" >&6; }
7297 19 jeremybenn
 
7298 202 julius
 
7299
 
7300
 
7301
 
7302
 
7303 19 jeremybenn
#
7304
# Check to make sure the PIC flag actually works.
7305
#
7306
if test -n "$lt_prog_compiler_pic"; then
7307 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7308
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7309
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7310
  $as_echo_n "(cached) " >&6
7311 19 jeremybenn
else
7312 202 julius
  lt_cv_prog_compiler_pic_works=no
7313
   ac_outfile=conftest.$ac_objext
7314 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7315 202 julius
   lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
7316 19 jeremybenn
   # Insert the option either (1) after the last *FLAGS variable, or
7317
   # (2) before a word containing "conftest.", or (3) at the end.
7318
   # Note that $ac_compile itself does not contain backslashes and begins
7319
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7320
   # The option is referenced via a variable to avoid confusing sed.
7321
   lt_compile=`echo "$ac_compile" | $SED \
7322
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7323
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7324
   -e 's:$: $lt_compiler_flag:'`
7325
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7326
   (eval "$lt_compile" 2>conftest.err)
7327
   ac_status=$?
7328
   cat conftest.err >&5
7329
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7330
   if (exit $ac_status) && test -s "$ac_outfile"; then
7331
     # The compiler can only warn and ignore the option if not recognized
7332
     # So say no if there are warnings other than the usual output.
7333 202 julius
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7334 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7335
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7336 202 julius
       lt_cv_prog_compiler_pic_works=yes
7337 19 jeremybenn
     fi
7338
   fi
7339 202 julius
   $RM conftest*
7340 19 jeremybenn
 
7341
fi
7342 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7343
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7344 19 jeremybenn
 
7345 202 julius
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7346 19 jeremybenn
    case $lt_prog_compiler_pic in
7347
     "" | " "*) ;;
7348
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7349
     esac
7350
else
7351
    lt_prog_compiler_pic=
7352
     lt_prog_compiler_can_build_shared=no
7353
fi
7354
 
7355
fi
7356
 
7357 202 julius
 
7358
 
7359
 
7360
 
7361
 
7362 19 jeremybenn
#
7363
# Check to make sure the static flag actually works.
7364
#
7365
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7366 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7367
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7368
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7369
  $as_echo_n "(cached) " >&6
7370 19 jeremybenn
else
7371 202 julius
  lt_cv_prog_compiler_static_works=no
7372 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7373
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7374
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7375
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7376
     # The linker can only warn and ignore the option if not recognized
7377
     # So say no if there are warnings
7378
     if test -s conftest.err; then
7379
       # Append any errors to the config.log.
7380
       cat conftest.err 1>&5
7381 202 julius
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7382 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7383
       if diff conftest.exp conftest.er2 >/dev/null; then
7384 202 julius
         lt_cv_prog_compiler_static_works=yes
7385 19 jeremybenn
       fi
7386
     else
7387 202 julius
       lt_cv_prog_compiler_static_works=yes
7388 19 jeremybenn
     fi
7389
   fi
7390 202 julius
   $RM -r conftest*
7391 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7392
 
7393
fi
7394 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7395
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7396 19 jeremybenn
 
7397 202 julius
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7398 19 jeremybenn
    :
7399
else
7400
    lt_prog_compiler_static=
7401
fi
7402
 
7403
 
7404 202 julius
 
7405
 
7406
 
7407
 
7408
 
7409
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7410
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7411
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7412
  $as_echo_n "(cached) " >&6
7413 19 jeremybenn
else
7414
  lt_cv_prog_compiler_c_o=no
7415 202 julius
   $RM -r conftest 2>/dev/null
7416 19 jeremybenn
   mkdir conftest
7417
   cd conftest
7418
   mkdir out
7419
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7420
 
7421
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7422
   # Insert the option either (1) after the last *FLAGS variable, or
7423
   # (2) before a word containing "conftest.", or (3) at the end.
7424
   # Note that $ac_compile itself does not contain backslashes and begins
7425
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7426
   lt_compile=`echo "$ac_compile" | $SED \
7427
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7428
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7429
   -e 's:$: $lt_compiler_flag:'`
7430
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7431
   (eval "$lt_compile" 2>out/conftest.err)
7432
   ac_status=$?
7433
   cat out/conftest.err >&5
7434
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7435
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7436
   then
7437
     # The compiler can only warn and ignore the option if not recognized
7438
     # So say no if there are warnings
7439 202 julius
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7440 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7441
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7442
       lt_cv_prog_compiler_c_o=yes
7443
     fi
7444
   fi
7445
   chmod u+w . 2>&5
7446 202 julius
   $RM conftest*
7447 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
7448
   # template instantiation
7449 202 julius
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7450
   $RM out/* && rmdir out
7451 19 jeremybenn
   cd ..
7452 202 julius
   $RM -r conftest
7453
   $RM conftest*
7454 19 jeremybenn
 
7455
fi
7456 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7457
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7458 19 jeremybenn
 
7459 202 julius
 
7460
 
7461
 
7462 19 jeremybenn
 
7463 202 julius
 
7464
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7465
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7466
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7467
  $as_echo_n "(cached) " >&6
7468
else
7469
  lt_cv_prog_compiler_c_o=no
7470
   $RM -r conftest 2>/dev/null
7471
   mkdir conftest
7472
   cd conftest
7473
   mkdir out
7474
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7475
 
7476
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7477
   # Insert the option either (1) after the last *FLAGS variable, or
7478
   # (2) before a word containing "conftest.", or (3) at the end.
7479
   # Note that $ac_compile itself does not contain backslashes and begins
7480
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7481
   lt_compile=`echo "$ac_compile" | $SED \
7482
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7483
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7484
   -e 's:$: $lt_compiler_flag:'`
7485
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7486
   (eval "$lt_compile" 2>out/conftest.err)
7487
   ac_status=$?
7488
   cat out/conftest.err >&5
7489
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7490
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7491
   then
7492
     # The compiler can only warn and ignore the option if not recognized
7493
     # So say no if there are warnings
7494
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7495
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7496
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7497
       lt_cv_prog_compiler_c_o=yes
7498
     fi
7499
   fi
7500
   chmod u+w . 2>&5
7501
   $RM conftest*
7502
   # SGI C++ compiler will create directory out/ii_files/ for
7503
   # template instantiation
7504
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7505
   $RM out/* && rmdir out
7506
   cd ..
7507
   $RM -r conftest
7508
   $RM conftest*
7509
 
7510
fi
7511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7512
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7513
 
7514
 
7515
 
7516
 
7517 19 jeremybenn
hard_links="nottested"
7518
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7519
  # do not overwrite the value of need_locks provided by the user
7520 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7521
$as_echo_n "checking if we can lock with hard links... " >&6; }
7522 19 jeremybenn
  hard_links=yes
7523 202 julius
  $RM conftest*
7524 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7525
  touch conftest.a
7526
  ln conftest.a conftest.b 2>&5 || hard_links=no
7527
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7528 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7529
$as_echo "$hard_links" >&6; }
7530 19 jeremybenn
  if test "$hard_links" = no; then
7531 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7532
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7533 19 jeremybenn
    need_locks=warn
7534
  fi
7535
else
7536
  need_locks=no
7537
fi
7538
 
7539 202 julius
 
7540
 
7541
 
7542 19 jeremybenn
 
7543 202 julius
 
7544
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7545
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7546
 
7547 19 jeremybenn
  runpath_var=
7548
  allow_undefined_flag=
7549 202 julius
  always_export_symbols=no
7550 19 jeremybenn
  archive_cmds=
7551
  archive_expsym_cmds=
7552 202 julius
  compiler_needs_object=no
7553
  enable_shared_with_static_runtimes=no
7554 19 jeremybenn
  export_dynamic_flag_spec=
7555 202 julius
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7556
  hardcode_automatic=no
7557
  hardcode_direct=no
7558
  hardcode_direct_absolute=no
7559 19 jeremybenn
  hardcode_libdir_flag_spec=
7560
  hardcode_libdir_flag_spec_ld=
7561
  hardcode_libdir_separator=
7562
  hardcode_minus_L=no
7563
  hardcode_shlibpath_var=unsupported
7564 202 julius
  inherit_rpath=no
7565 19 jeremybenn
  link_all_deplibs=unknown
7566
  module_cmds=
7567
  module_expsym_cmds=
7568 202 julius
  old_archive_from_new_cmds=
7569
  old_archive_from_expsyms_cmds=
7570
  thread_safe_flag_spec=
7571
  whole_archive_flag_spec=
7572 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
7573
  # included in the symbol list
7574
  include_expsyms=
7575
  # exclude_expsyms can be an extended regexp of symbols to exclude
7576
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7577
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7578
  # as well as any symbol that contains `d'.
7579 202 julius
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7580 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7581
  # platforms (ab)use it in PIC code, but their linkers get confused if
7582
  # the symbol is explicitly referenced.  Since portable code cannot
7583
  # rely on this symbol name, it's probably fine to never include it in
7584
  # preloaded symbol tables.
7585 202 julius
  # Exclude shared library initialization/finalization symbols.
7586 19 jeremybenn
  extract_expsyms_cmds=
7587
 
7588
  case $host_os in
7589 202 julius
  cygwin* | mingw* | pw32* | cegcc*)
7590 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7591
    # When not using gcc, we currently assume that we are using
7592
    # Microsoft Visual C++.
7593
    if test "$GCC" != yes; then
7594
      with_gnu_ld=no
7595
    fi
7596
    ;;
7597
  interix*)
7598
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7599
    with_gnu_ld=yes
7600
    ;;
7601
  openbsd*)
7602
    with_gnu_ld=no
7603
    ;;
7604 202 julius
  linux* | k*bsd*-gnu)
7605
    link_all_deplibs=no
7606
    ;;
7607 19 jeremybenn
  esac
7608
 
7609
  ld_shlibs=yes
7610
  if test "$with_gnu_ld" = yes; then
7611
    # If archive_cmds runs LD, not CC, wlarc should be empty
7612
    wlarc='${wl}'
7613
 
7614
    # Set some defaults for GNU ld with shared library support. These
7615
    # are reset later if shared libraries are not supported. Putting them
7616
    # here allows them to be overridden if necessary.
7617
    runpath_var=LD_RUN_PATH
7618 202 julius
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7619 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
7620
    # ancient GNU ld didn't support --whole-archive et. al.
7621 202 julius
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7622
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7623
    else
7624
      whole_archive_flag_spec=
7625 19 jeremybenn
    fi
7626
    supports_anon_versioning=no
7627 202 julius
    case `$LD -v 2>&1` in
7628 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7629
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7630
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7631
      *\ 2.11.*) ;; # other 2.11 versions
7632
      *) supports_anon_versioning=yes ;;
7633
    esac
7634
 
7635
    # See if GNU ld supports shared libraries.
7636
    case $host_os in
7637 202 julius
    aix[3-9]*)
7638 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
7639
      if test "$host_cpu" != ia64; then
7640
        ld_shlibs=no
7641 202 julius
        cat <<_LT_EOF 1>&2
7642 19 jeremybenn
 
7643
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7644
*** to be unable to reliably create shared libraries on AIX.
7645
*** Therefore, libtool is disabling shared libraries support.  If you
7646
*** really care for shared libraries, you may want to modify your PATH
7647
*** so that a non-GNU linker is found, and then restart.
7648
 
7649 202 julius
_LT_EOF
7650 19 jeremybenn
      fi
7651
      ;;
7652
 
7653
    amigaos*)
7654 202 julius
      case $host_cpu in
7655
      powerpc)
7656
            # see comment about AmigaOS4 .so support
7657
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7658
            archive_expsym_cmds=''
7659
        ;;
7660
      m68k)
7661
            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)'
7662
            hardcode_libdir_flag_spec='-L$libdir'
7663
            hardcode_minus_L=yes
7664
        ;;
7665
      esac
7666 19 jeremybenn
      ;;
7667
 
7668
    beos*)
7669 202 julius
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7670 19 jeremybenn
        allow_undefined_flag=unsupported
7671
        # Joseph Beckenbach  says some releases of gcc
7672
        # support --undefined.  This deserves some investigation.  FIXME
7673
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7674
      else
7675
        ld_shlibs=no
7676
      fi
7677
      ;;
7678
 
7679 202 julius
    cygwin* | mingw* | pw32* | cegcc*)
7680
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7681 19 jeremybenn
      # as there is no search path for DLLs.
7682
      hardcode_libdir_flag_spec='-L$libdir'
7683
      allow_undefined_flag=unsupported
7684
      always_export_symbols=no
7685
      enable_shared_with_static_runtimes=yes
7686 202 julius
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7687 19 jeremybenn
 
7688 202 julius
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7689 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7690
        # If the export-symbols file already is a .def file (1st line
7691
        # is EXPORTS), use it as is; otherwise, prepend...
7692
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7693
          cp $export_symbols $output_objdir/$soname.def;
7694
        else
7695
          echo EXPORTS > $output_objdir/$soname.def;
7696
          cat $export_symbols >> $output_objdir/$soname.def;
7697
        fi~
7698
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7699
      else
7700
        ld_shlibs=no
7701
      fi
7702
      ;;
7703
 
7704
    interix[3-9]*)
7705
      hardcode_direct=no
7706
      hardcode_shlibpath_var=no
7707
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7708
      export_dynamic_flag_spec='${wl}-E'
7709
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7710
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7711
      # default) and relocated if they conflict, which is a slow very memory
7712
      # consuming and fragmenting process.  To avoid this, we pick a random,
7713
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7714
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7715
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7716
      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'
7717
      ;;
7718
 
7719 202 julius
    gnu* | linux* | tpf* | k*bsd*-gnu)
7720
      tmp_diet=no
7721
      if test "$host_os" = linux-dietlibc; then
7722
        case $cc_basename in
7723
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7724
        esac
7725
      fi
7726
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7727
         && test "$tmp_diet" = no
7728
      then
7729 19 jeremybenn
        tmp_addflag=
7730 202 julius
        tmp_sharedflag='-shared'
7731 19 jeremybenn
        case $cc_basename,$host_cpu in
7732 202 julius
        pgcc*)                          # Portland Group C compiler
7733
          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'
7734 19 jeremybenn
          tmp_addflag=' $pic_flag'
7735
          ;;
7736
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7737 202 julius
          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'
7738 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7739 202 julius
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7740 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
7741
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7742
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7743
        ifc* | ifort*)                  # Intel Fortran compiler
7744
          tmp_addflag=' -nofor_main' ;;
7745 202 julius
        lf95*)                          # Lahey Fortran 8.1
7746
          whole_archive_flag_spec=
7747
          tmp_sharedflag='--shared' ;;
7748
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7749
          tmp_sharedflag='-qmkshrobj'
7750
          tmp_addflag= ;;
7751 19 jeremybenn
        esac
7752
        case `$CC -V 2>&1 | sed 5q` in
7753
        *Sun\ C*)                       # Sun C 5.9
7754 202 julius
          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'
7755
          compiler_needs_object=yes
7756 19 jeremybenn
          tmp_sharedflag='-G' ;;
7757
        *Sun\ F*)                       # Sun Fortran 8.3
7758
          tmp_sharedflag='-G' ;;
7759
        esac
7760
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7761
 
7762 202 julius
        if test "x$supports_anon_versioning" = xyes; then
7763
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7764
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7765
            echo "local: *; };" >> $output_objdir/$libname.ver~
7766
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7767
        fi
7768
 
7769
        case $cc_basename in
7770
        xlf*)
7771
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7772
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7773
          hardcode_libdir_flag_spec=
7774
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7775
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7776
          if test "x$supports_anon_versioning" = xyes; then
7777
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7778
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7779
              echo "local: *; };" >> $output_objdir/$libname.ver~
7780
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7781
          fi
7782
          ;;
7783
        esac
7784 19 jeremybenn
      else
7785 202 julius
        ld_shlibs=no
7786 19 jeremybenn
      fi
7787
      ;;
7788
 
7789 202 julius
    netbsd* | netbsdelf*-gnu)
7790
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7791 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7792
        wlarc=
7793
      else
7794
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7795
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7796
      fi
7797
      ;;
7798
 
7799
    solaris*)
7800 202 julius
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7801 19 jeremybenn
        ld_shlibs=no
7802 202 julius
        cat <<_LT_EOF 1>&2
7803 19 jeremybenn
 
7804
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7805
*** create shared libraries on Solaris systems.  Therefore, libtool
7806
*** is disabling shared libraries support.  We urge you to upgrade GNU
7807
*** binutils to release 2.9.1 or newer.  Another option is to modify
7808
*** your PATH or compiler configuration so that the native linker is
7809
*** used, and then restart.
7810
 
7811 202 julius
_LT_EOF
7812
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7813 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7814
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7815
      else
7816
        ld_shlibs=no
7817
      fi
7818
      ;;
7819
 
7820
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7821
      case `$LD -v 2>&1` in
7822
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7823
        ld_shlibs=no
7824
        cat <<_LT_EOF 1>&2
7825
 
7826
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7827
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7828
*** is disabling shared libraries support.  We urge you to upgrade GNU
7829
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7830
*** your PATH or compiler configuration so that the native linker is
7831
*** used, and then restart.
7832
 
7833
_LT_EOF
7834
        ;;
7835
        *)
7836 202 julius
          # For security reasons, it is highly recommended that you always
7837
          # use absolute paths for naming shared libraries, and exclude the
7838
          # DT_RUNPATH tag from executables and libraries.  But doing so
7839
          # requires that you compile everything twice, which is a pain.
7840
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7841
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7842
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7843
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7844 19 jeremybenn
          else
7845
            ld_shlibs=no
7846
          fi
7847
        ;;
7848
      esac
7849
      ;;
7850
 
7851
    sunos4*)
7852
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7853
      wlarc=
7854
      hardcode_direct=yes
7855
      hardcode_shlibpath_var=no
7856
      ;;
7857
 
7858
    *)
7859 202 julius
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7860 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7861
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7862
      else
7863
        ld_shlibs=no
7864
      fi
7865
      ;;
7866
    esac
7867
 
7868
    if test "$ld_shlibs" = no; then
7869
      runpath_var=
7870
      hardcode_libdir_flag_spec=
7871
      export_dynamic_flag_spec=
7872
      whole_archive_flag_spec=
7873
    fi
7874
  else
7875
    # PORTME fill in a description of your system's linker (not GNU ld)
7876
    case $host_os in
7877
    aix3*)
7878
      allow_undefined_flag=unsupported
7879
      always_export_symbols=yes
7880
      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'
7881
      # Note: this linker hardcodes the directories in LIBPATH if there
7882
      # are no directories specified by -L.
7883
      hardcode_minus_L=yes
7884
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7885
        # Neither direct hardcoding nor static linking is supported with a
7886
        # broken collect2.
7887
        hardcode_direct=unsupported
7888
      fi
7889
      ;;
7890
 
7891 202 julius
    aix[4-9]*)
7892 19 jeremybenn
      if test "$host_cpu" = ia64; then
7893
        # On IA64, the linker does run time linking by default, so we don't
7894
        # have to do anything special.
7895
        aix_use_runtimelinking=no
7896
        exp_sym_flag='-Bexport'
7897
        no_entry_flag=""
7898
      else
7899
        # If we're using GNU nm, then we don't want the "-C" option.
7900
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7901 202 julius
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7902
          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'
7903 19 jeremybenn
        else
7904 202 julius
          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'
7905 19 jeremybenn
        fi
7906
        aix_use_runtimelinking=no
7907
 
7908
        # Test if we are trying to use run time linking or normal
7909
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7910
        # need to do runtime linking.
7911 202 julius
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7912 19 jeremybenn
          for ld_flag in $LDFLAGS; do
7913 202 julius
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7914
            aix_use_runtimelinking=yes
7915
            break
7916
          fi
7917 19 jeremybenn
          done
7918
          ;;
7919
        esac
7920
 
7921
        exp_sym_flag='-bexport'
7922
        no_entry_flag='-bnoentry'
7923
      fi
7924
 
7925
      # When large executables or shared objects are built, AIX ld can
7926
      # have problems creating the table of contents.  If linking a library
7927
      # or program results in "error TOC overflow" add -mminimal-toc to
7928
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7929
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7930
 
7931
      archive_cmds=''
7932
      hardcode_direct=yes
7933 202 julius
      hardcode_direct_absolute=yes
7934 19 jeremybenn
      hardcode_libdir_separator=':'
7935
      link_all_deplibs=yes
7936 202 julius
      file_list_spec='${wl}-f,'
7937 19 jeremybenn
 
7938
      if test "$GCC" = yes; then
7939
        case $host_os in aix4.[012]|aix4.[012].*)
7940
        # We only want to do this on AIX 4.2 and lower, the check
7941
        # below for broken collect2 doesn't work under 4.3+
7942
          collect2name=`${CC} -print-prog-name=collect2`
7943 202 julius
          if test -f "$collect2name" &&
7944
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7945 19 jeremybenn
          then
7946 202 julius
          # We have reworked collect2
7947
          :
7948 19 jeremybenn
          else
7949 202 julius
          # We have old collect2
7950
          hardcode_direct=unsupported
7951
          # It fails to find uninstalled libraries when the uninstalled
7952
          # path is not listed in the libpath.  Setting hardcode_minus_L
7953
          # to unsupported forces relinking
7954
          hardcode_minus_L=yes
7955
          hardcode_libdir_flag_spec='-L$libdir'
7956
          hardcode_libdir_separator=
7957 19 jeremybenn
          fi
7958
          ;;
7959
        esac
7960
        shared_flag='-shared'
7961
        if test "$aix_use_runtimelinking" = yes; then
7962
          shared_flag="$shared_flag "'${wl}-G'
7963
        fi
7964 202 julius
        link_all_deplibs=no
7965 19 jeremybenn
      else
7966
        # not using gcc
7967
        if test "$host_cpu" = ia64; then
7968 202 julius
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7969
        # chokes on -Wl,-G. The following line is correct:
7970 19 jeremybenn
          shared_flag='-G'
7971
        else
7972
          if test "$aix_use_runtimelinking" = yes; then
7973
            shared_flag='${wl}-G'
7974
          else
7975
            shared_flag='${wl}-bM:SRE'
7976
          fi
7977
        fi
7978
      fi
7979
 
7980 202 julius
      export_dynamic_flag_spec='${wl}-bexpall'
7981 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
7982
      # underscore (_), so it is better to generate a list of symbols to export.
7983
      always_export_symbols=yes
7984
      if test "$aix_use_runtimelinking" = yes; then
7985
        # Warning - without using the other runtime loading flags (-brtl),
7986
        # -berok will link without error, but may produce a broken library.
7987
        allow_undefined_flag='-berok'
7988 202 julius
        # Determine the default libpath from the value encoded in an
7989
        # empty executable.
7990
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 19 jeremybenn
/* end confdefs.h.  */
7992
 
7993
int
7994
main ()
7995
{
7996
 
7997
  ;
7998
  return 0;
7999
}
8000
_ACEOF
8001 202 julius
if ac_fn_c_try_link "$LINENO"; then :
8002 19 jeremybenn
 
8003
lt_aix_libpath_sed='
8004
    /Import File Strings/,/^$/ {
8005
        /^0/ {
8006
            s/^0  *\(.*\)$/\1/
8007
            p
8008
        }
8009
    }'
8010
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8011
# Check for a 64-bit object if we didn't find anything.
8012
if test -z "$aix_libpath"; then
8013
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8014
fi
8015
fi
8016 202 julius
rm -f core conftest.err conftest.$ac_objext \
8017
    conftest$ac_exeext conftest.$ac_ext
8018 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8019
 
8020 202 julius
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8021
        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"
8022
      else
8023 19 jeremybenn
        if test "$host_cpu" = ia64; then
8024
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8025
          allow_undefined_flag="-z nodefs"
8026
          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"
8027
        else
8028 202 julius
         # Determine the default libpath from the value encoded in an
8029
         # empty executable.
8030
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 19 jeremybenn
/* end confdefs.h.  */
8032
 
8033
int
8034
main ()
8035
{
8036
 
8037
  ;
8038
  return 0;
8039
}
8040
_ACEOF
8041 202 julius
if ac_fn_c_try_link "$LINENO"; then :
8042 19 jeremybenn
 
8043
lt_aix_libpath_sed='
8044
    /Import File Strings/,/^$/ {
8045
        /^0/ {
8046
            s/^0  *\(.*\)$/\1/
8047
            p
8048
        }
8049
    }'
8050
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8051
# Check for a 64-bit object if we didn't find anything.
8052
if test -z "$aix_libpath"; then
8053
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8054
fi
8055
fi
8056 202 julius
rm -f core conftest.err conftest.$ac_objext \
8057
    conftest$ac_exeext conftest.$ac_ext
8058 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8059
 
8060
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8061
          # Warning - without using the other run time loading flags,
8062
          # -berok will link without error, but may produce a broken library.
8063
          no_undefined_flag=' ${wl}-bernotok'
8064
          allow_undefined_flag=' ${wl}-berok'
8065
          # Exported symbols can be pulled into shared objects from archives
8066
          whole_archive_flag_spec='$convenience'
8067
          archive_cmds_need_lc=yes
8068
          # This is similar to how AIX traditionally builds its shared libraries.
8069
          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'
8070
        fi
8071
      fi
8072
      ;;
8073
 
8074
    amigaos*)
8075 202 julius
      case $host_cpu in
8076
      powerpc)
8077
            # see comment about AmigaOS4 .so support
8078
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8079
            archive_expsym_cmds=''
8080
        ;;
8081
      m68k)
8082
            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)'
8083
            hardcode_libdir_flag_spec='-L$libdir'
8084
            hardcode_minus_L=yes
8085
        ;;
8086
      esac
8087 19 jeremybenn
      ;;
8088
 
8089
    bsdi[45]*)
8090
      export_dynamic_flag_spec=-rdynamic
8091
      ;;
8092
 
8093 202 julius
    cygwin* | mingw* | pw32* | cegcc*)
8094 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8095
      # Microsoft Visual C++.
8096
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8097
      # no search path for DLLs.
8098
      hardcode_libdir_flag_spec=' '
8099
      allow_undefined_flag=unsupported
8100
      # Tell ltmain to make .lib files, not .a files.
8101
      libext=lib
8102
      # Tell ltmain to make .dll files, not .so files.
8103
      shrext_cmds=".dll"
8104
      # FIXME: Setting linknames here is a bad hack.
8105 202 julius
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8106 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8107 202 julius
      old_archive_from_new_cmds='true'
8108 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8109
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8110
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8111
      enable_shared_with_static_runtimes=yes
8112
      ;;
8113
 
8114
    darwin* | rhapsody*)
8115 202 julius
 
8116
 
8117
  archive_cmds_need_lc=no
8118
  hardcode_direct=no
8119
  hardcode_automatic=yes
8120
  hardcode_shlibpath_var=unsupported
8121
  whole_archive_flag_spec=''
8122
  link_all_deplibs=yes
8123
  allow_undefined_flag="$_lt_dar_allow_undefined"
8124
  case $cc_basename in
8125
     ifort*) _lt_dar_can_shared=yes ;;
8126
     *) _lt_dar_can_shared=$GCC ;;
8127
  esac
8128
  if test "$_lt_dar_can_shared" = "yes"; then
8129
    output_verbose_link_cmd=echo
8130
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8131
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8132
    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}"
8133
    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}"
8134
 
8135
  else
8136
  ld_shlibs=no
8137
  fi
8138
 
8139 19 jeremybenn
      ;;
8140
 
8141
    dgux*)
8142
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8143
      hardcode_libdir_flag_spec='-L$libdir'
8144
      hardcode_shlibpath_var=no
8145
      ;;
8146
 
8147
    freebsd1*)
8148
      ld_shlibs=no
8149
      ;;
8150
 
8151
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8152
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8153
    # does not break anything, and helps significantly (at the cost of a little
8154
    # extra space).
8155
    freebsd2.2*)
8156
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8157
      hardcode_libdir_flag_spec='-R$libdir'
8158
      hardcode_direct=yes
8159
      hardcode_shlibpath_var=no
8160
      ;;
8161
 
8162
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8163
    freebsd2*)
8164
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8165
      hardcode_direct=yes
8166
      hardcode_minus_L=yes
8167
      hardcode_shlibpath_var=no
8168
      ;;
8169
 
8170
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8171
    freebsd* | dragonfly*)
8172
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8173
      hardcode_libdir_flag_spec='-R$libdir'
8174
      hardcode_direct=yes
8175
      hardcode_shlibpath_var=no
8176
      ;;
8177
 
8178
    hpux9*)
8179
      if test "$GCC" = yes; then
8180 202 julius
        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'
8181 19 jeremybenn
      else
8182 202 julius
        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'
8183 19 jeremybenn
      fi
8184
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8185
      hardcode_libdir_separator=:
8186
      hardcode_direct=yes
8187
 
8188
      # hardcode_minus_L: Not really in the search PATH,
8189
      # but as the default location of the library.
8190
      hardcode_minus_L=yes
8191
      export_dynamic_flag_spec='${wl}-E'
8192
      ;;
8193
 
8194
    hpux10*)
8195
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8196
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8197
      else
8198
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8199
      fi
8200
      if test "$with_gnu_ld" = no; then
8201
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8202 202 julius
        hardcode_libdir_flag_spec_ld='+b $libdir'
8203 19 jeremybenn
        hardcode_libdir_separator=:
8204
        hardcode_direct=yes
8205 202 julius
        hardcode_direct_absolute=yes
8206 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8207
        # hardcode_minus_L: Not really in the search PATH,
8208
        # but as the default location of the library.
8209
        hardcode_minus_L=yes
8210
      fi
8211
      ;;
8212
 
8213
    hpux11*)
8214
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8215
        case $host_cpu in
8216
        hppa*64*)
8217
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8218
          ;;
8219
        ia64*)
8220 202 julius
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8221 19 jeremybenn
          ;;
8222
        *)
8223
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8224
          ;;
8225
        esac
8226
      else
8227
        case $host_cpu in
8228
        hppa*64*)
8229
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8230
          ;;
8231
        ia64*)
8232
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8233
          ;;
8234
        *)
8235
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8236
          ;;
8237
        esac
8238
      fi
8239
      if test "$with_gnu_ld" = no; then
8240
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8241
        hardcode_libdir_separator=:
8242
 
8243
        case $host_cpu in
8244
        hppa*64*|ia64*)
8245
          hardcode_direct=no
8246
          hardcode_shlibpath_var=no
8247
          ;;
8248
        *)
8249
          hardcode_direct=yes
8250 202 julius
          hardcode_direct_absolute=yes
8251 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8252
 
8253
          # hardcode_minus_L: Not really in the search PATH,
8254
          # but as the default location of the library.
8255
          hardcode_minus_L=yes
8256
          ;;
8257
        esac
8258
      fi
8259
      ;;
8260
 
8261
    irix5* | irix6* | nonstopux*)
8262
      if test "$GCC" = yes; then
8263 202 julius
        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'
8264
        # Try to use the -exported_symbol ld option, if it does not
8265
        # work, assume that -exports_file does not work either and
8266
        # implicitly export all symbols.
8267
        save_LDFLAGS="$LDFLAGS"
8268
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8269
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270
/* end confdefs.h.  */
8271
int foo(void) {}
8272
_ACEOF
8273
if ac_fn_c_try_link "$LINENO"; then :
8274
  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'
8275
 
8276
fi
8277
rm -f core conftest.err conftest.$ac_objext \
8278
    conftest$ac_exeext conftest.$ac_ext
8279
        LDFLAGS="$save_LDFLAGS"
8280 19 jeremybenn
      else
8281 202 julius
        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'
8282
        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'
8283 19 jeremybenn
      fi
8284 202 julius
      archive_cmds_need_lc='no'
8285 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8286
      hardcode_libdir_separator=:
8287 202 julius
      inherit_rpath=yes
8288 19 jeremybenn
      link_all_deplibs=yes
8289
      ;;
8290
 
8291 202 julius
    netbsd* | netbsdelf*-gnu)
8292
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8293 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8294
      else
8295
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8296
      fi
8297
      hardcode_libdir_flag_spec='-R$libdir'
8298
      hardcode_direct=yes
8299
      hardcode_shlibpath_var=no
8300
      ;;
8301
 
8302
    newsos6)
8303
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8304
      hardcode_direct=yes
8305
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8306
      hardcode_libdir_separator=:
8307
      hardcode_shlibpath_var=no
8308
      ;;
8309
 
8310 202 julius
    *nto* | *qnx*)
8311
      ;;
8312
 
8313 19 jeremybenn
    openbsd*)
8314
      if test -f /usr/libexec/ld.so; then
8315
        hardcode_direct=yes
8316
        hardcode_shlibpath_var=no
8317 202 julius
        hardcode_direct_absolute=yes
8318
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8319 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8320
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8321
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8322
          export_dynamic_flag_spec='${wl}-E'
8323
        else
8324
          case $host_os in
8325
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8326
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8327
             hardcode_libdir_flag_spec='-R$libdir'
8328
             ;;
8329
           *)
8330
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8331
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8332
             ;;
8333
          esac
8334 202 julius
        fi
8335 19 jeremybenn
      else
8336
        ld_shlibs=no
8337
      fi
8338
      ;;
8339
 
8340
    os2*)
8341
      hardcode_libdir_flag_spec='-L$libdir'
8342
      hardcode_minus_L=yes
8343
      allow_undefined_flag=unsupported
8344 202 julius
      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'
8345
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8346 19 jeremybenn
      ;;
8347
 
8348
    osf3*)
8349
      if test "$GCC" = yes; then
8350
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8351 202 julius
        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'
8352 19 jeremybenn
      else
8353
        allow_undefined_flag=' -expect_unresolved \*'
8354 202 julius
        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'
8355 19 jeremybenn
      fi
8356 202 julius
      archive_cmds_need_lc='no'
8357 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8358
      hardcode_libdir_separator=:
8359
      ;;
8360
 
8361
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8362
      if test "$GCC" = yes; then
8363
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8364 202 julius
        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'
8365 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8366
      else
8367
        allow_undefined_flag=' -expect_unresolved \*'
8368 202 julius
        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'
8369
        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~
8370
        $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'
8371 19 jeremybenn
 
8372
        # Both c and cxx compiler support -rpath directly
8373
        hardcode_libdir_flag_spec='-rpath $libdir'
8374
      fi
8375 202 julius
      archive_cmds_need_lc='no'
8376 19 jeremybenn
      hardcode_libdir_separator=:
8377
      ;;
8378
 
8379
    solaris*)
8380 202 julius
      no_undefined_flag=' -z defs'
8381 19 jeremybenn
      if test "$GCC" = yes; then
8382
        wlarc='${wl}'
8383 202 julius
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8384
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8385
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8386 19 jeremybenn
      else
8387 202 julius
        case `$CC -V 2>&1` in
8388
        *"Compilers 5.0"*)
8389
          wlarc=''
8390
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8392
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8393
          ;;
8394
        *)
8395
          wlarc='${wl}'
8396
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8397
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8398
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8399
          ;;
8400
        esac
8401 19 jeremybenn
      fi
8402
      hardcode_libdir_flag_spec='-R$libdir'
8403
      hardcode_shlibpath_var=no
8404
      case $host_os in
8405
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8406
      *)
8407
        # The compiler driver will combine and reorder linker options,
8408
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8409
        # but is careful enough not to reorder.
8410 202 julius
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8411 19 jeremybenn
        if test "$GCC" = yes; then
8412
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8413
        else
8414
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8415
        fi
8416
        ;;
8417
      esac
8418
      link_all_deplibs=yes
8419
      ;;
8420
 
8421
    sunos4*)
8422
      if test "x$host_vendor" = xsequent; then
8423
        # Use $CC to link under sequent, because it throws in some extra .o
8424
        # files that make .init and .fini sections work.
8425
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8426
      else
8427
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8428
      fi
8429
      hardcode_libdir_flag_spec='-L$libdir'
8430
      hardcode_direct=yes
8431
      hardcode_minus_L=yes
8432
      hardcode_shlibpath_var=no
8433
      ;;
8434
 
8435
    sysv4)
8436
      case $host_vendor in
8437
        sni)
8438
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8439
          hardcode_direct=yes # is this really true???
8440
        ;;
8441
        siemens)
8442
          ## LD is ld it makes a PLAMLIB
8443
          ## CC just makes a GrossModule.
8444
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8445
          reload_cmds='$CC -r -o $output$reload_objs'
8446
          hardcode_direct=no
8447
        ;;
8448
        motorola)
8449
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8450
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8451
        ;;
8452
      esac
8453
      runpath_var='LD_RUN_PATH'
8454
      hardcode_shlibpath_var=no
8455
      ;;
8456
 
8457
    sysv4.3*)
8458
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8459
      hardcode_shlibpath_var=no
8460
      export_dynamic_flag_spec='-Bexport'
8461
      ;;
8462
 
8463
    sysv4*MP*)
8464
      if test -d /usr/nec; then
8465
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8466
        hardcode_shlibpath_var=no
8467
        runpath_var=LD_RUN_PATH
8468
        hardcode_runpath_var=yes
8469
        ld_shlibs=yes
8470
      fi
8471
      ;;
8472
 
8473
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8474
      no_undefined_flag='${wl}-z,text'
8475
      archive_cmds_need_lc=no
8476
      hardcode_shlibpath_var=no
8477
      runpath_var='LD_RUN_PATH'
8478
 
8479
      if test "$GCC" = yes; then
8480
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8481
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8482
      else
8483
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8484
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8485
      fi
8486
      ;;
8487
 
8488
    sysv5* | sco3.2v5* | sco5v6*)
8489
      # Note: We can NOT use -z defs as we might desire, because we do not
8490
      # link with -lc, and that would cause any symbols used from libc to
8491
      # always be unresolved, which means just about no library would
8492
      # ever link correctly.  If we're not using GNU ld we use -z text
8493
      # though, which does catch some bad symbols but isn't as heavy-handed
8494
      # as -z defs.
8495
      no_undefined_flag='${wl}-z,text'
8496
      allow_undefined_flag='${wl}-z,nodefs'
8497
      archive_cmds_need_lc=no
8498
      hardcode_shlibpath_var=no
8499 202 julius
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8500 19 jeremybenn
      hardcode_libdir_separator=':'
8501
      link_all_deplibs=yes
8502
      export_dynamic_flag_spec='${wl}-Bexport'
8503
      runpath_var='LD_RUN_PATH'
8504
 
8505
      if test "$GCC" = yes; then
8506 202 julius
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8507
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8508 19 jeremybenn
      else
8509 202 julius
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8510
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8511 19 jeremybenn
      fi
8512
      ;;
8513
 
8514
    uts4*)
8515
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8516
      hardcode_libdir_flag_spec='-L$libdir'
8517
      hardcode_shlibpath_var=no
8518
      ;;
8519
 
8520
    *)
8521
      ld_shlibs=no
8522
      ;;
8523
    esac
8524 202 julius
 
8525
    if test x$host_vendor = xsni; then
8526
      case $host in
8527
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8528
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8529
        ;;
8530
      esac
8531
    fi
8532 19 jeremybenn
  fi
8533
 
8534 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8535
$as_echo "$ld_shlibs" >&6; }
8536 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8537
 
8538 202 julius
with_gnu_ld=$with_gnu_ld
8539
 
8540
 
8541
 
8542
 
8543
 
8544
 
8545
 
8546
 
8547
 
8548
 
8549
 
8550
 
8551
 
8552
 
8553
 
8554 19 jeremybenn
#
8555
# Do we need to explicitly link libc?
8556
#
8557
case "x$archive_cmds_need_lc" in
8558
x|xyes)
8559
  # Assume -lc should be added
8560
  archive_cmds_need_lc=yes
8561
 
8562
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8563
    case $archive_cmds in
8564
    *'~'*)
8565
      # FIXME: we may have to deal with multi-command sequences.
8566
      ;;
8567
    '$CC '*)
8568
      # Test whether the compiler implicitly links with -lc since on some
8569
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8570
      # to ld, don't add -lc before -lgcc.
8571 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8572
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8573
      $RM conftest*
8574 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8575
 
8576 202 julius
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8577 19 jeremybenn
  (eval $ac_compile) 2>&5
8578
  ac_status=$?
8579 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8580
  test $ac_status = 0; } 2>conftest.err; then
8581 19 jeremybenn
        soname=conftest
8582
        lib=conftest
8583
        libobjs=conftest.$ac_objext
8584
        deplibs=
8585
        wl=$lt_prog_compiler_wl
8586
        pic_flag=$lt_prog_compiler_pic
8587
        compiler_flags=-v
8588
        linker_flags=-v
8589
        verstring=
8590
        output_objdir=.
8591
        libname=conftest
8592
        lt_save_allow_undefined_flag=$allow_undefined_flag
8593
        allow_undefined_flag=
8594 202 julius
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8595
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8596 19 jeremybenn
  ac_status=$?
8597 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8598
  test $ac_status = 0; }
8599 19 jeremybenn
        then
8600
          archive_cmds_need_lc=no
8601
        else
8602
          archive_cmds_need_lc=yes
8603
        fi
8604
        allow_undefined_flag=$lt_save_allow_undefined_flag
8605
      else
8606
        cat conftest.err 1>&5
8607
      fi
8608 202 julius
      $RM conftest*
8609
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8610
$as_echo "$archive_cmds_need_lc" >&6; }
8611 19 jeremybenn
      ;;
8612
    esac
8613
  fi
8614
  ;;
8615
esac
8616
 
8617
 
8618 202 julius
 
8619
 
8620
 
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
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8774
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8775
 
8776 19 jeremybenn
if test "$GCC" = yes; then
8777
  case $host_os in
8778
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8779
    *) lt_awk_arg="/^libraries:/" ;;
8780
  esac
8781
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8782 202 julius
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8783 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
8784
    # otherwise default to the standard path separator (i.e. ":") - it is
8785
    # assumed that no part of a normal pathname contains ";" but that should
8786
    # okay in the real world where ";" in dirpaths is itself problematic.
8787 202 julius
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8788 19 jeremybenn
  else
8789 202 julius
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8790 19 jeremybenn
  fi
8791
  # Ok, now we have the path, separated by spaces, we can step through it
8792
  # and add multilib dir if necessary.
8793
  lt_tmp_lt_search_path_spec=
8794
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8795
  for lt_sys_path in $lt_search_path_spec; do
8796
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8797
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8798
    else
8799
      test -d "$lt_sys_path" && \
8800
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8801
    fi
8802
  done
8803 202 julius
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8804 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
8805
  lt_foo="";
8806
  lt_count=0;
8807
  for (lt_i = NF; lt_i > 0; lt_i--) {
8808
    if ($lt_i != "" && $lt_i != ".") {
8809
      if ($lt_i == "..") {
8810
        lt_count++;
8811
      } else {
8812
        if (lt_count == 0) {
8813
          lt_foo="/" $lt_i lt_foo;
8814
        } else {
8815
          lt_count--;
8816
        }
8817
      }
8818
    }
8819
  }
8820
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8821
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8822
}'`
8823 202 julius
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8824 19 jeremybenn
else
8825
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8826
fi
8827 202 julius
library_names_spec=
8828
libname_spec='lib$name'
8829
soname_spec=
8830
shrext_cmds=".so"
8831
postinstall_cmds=
8832
postuninstall_cmds=
8833
finish_cmds=
8834
finish_eval=
8835
shlibpath_var=
8836
shlibpath_overrides_runpath=unknown
8837
version_type=none
8838
dynamic_linker="$host_os ld.so"
8839
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8840 19 jeremybenn
need_lib_prefix=unknown
8841
hardcode_into_libs=no
8842
 
8843
# when you set need_version to no, make sure it does not cause -set_version
8844
# flags to be left without arguments
8845
need_version=unknown
8846
 
8847
case $host_os in
8848
aix3*)
8849
  version_type=linux
8850
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8851
  shlibpath_var=LIBPATH
8852
 
8853
  # AIX 3 has no versioning support, so we append a major version to the name.
8854
  soname_spec='${libname}${release}${shared_ext}$major'
8855
  ;;
8856
 
8857 202 julius
aix[4-9]*)
8858 19 jeremybenn
  version_type=linux
8859
  need_lib_prefix=no
8860
  need_version=no
8861
  hardcode_into_libs=yes
8862
  if test "$host_cpu" = ia64; then
8863
    # AIX 5 supports IA64
8864
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8865
    shlibpath_var=LD_LIBRARY_PATH
8866
  else
8867
    # With GCC up to 2.95.x, collect2 would create an import file
8868
    # for dependence libraries.  The import file would start with
8869
    # the line `#! .'.  This would cause the generated library to
8870
    # depend on `.', always an invalid library.  This was fixed in
8871
    # development snapshots of GCC prior to 3.0.
8872
    case $host_os in
8873
      aix4 | aix4.[01] | aix4.[01].*)
8874
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8875
           echo ' yes '
8876 202 julius
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8877 19 jeremybenn
        :
8878
      else
8879
        can_build_shared=no
8880
      fi
8881
      ;;
8882
    esac
8883
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8884
    # soname into executable. Probably we can add versioning support to
8885
    # collect2, so additional links can be useful in future.
8886
    if test "$aix_use_runtimelinking" = yes; then
8887
      # If using run time linking (on AIX 4.2 or later) use lib.so
8888
      # instead of lib.a to let people know that these are not
8889
      # typical AIX shared libraries.
8890
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891
    else
8892
      # We preserve .a as extension for shared libraries through AIX4.2
8893
      # and later when we are not doing run time linking.
8894
      library_names_spec='${libname}${release}.a $libname.a'
8895
      soname_spec='${libname}${release}${shared_ext}$major'
8896
    fi
8897
    shlibpath_var=LIBPATH
8898
  fi
8899
  ;;
8900
 
8901
amigaos*)
8902 202 julius
  case $host_cpu in
8903
  powerpc)
8904
    # Since July 2007 AmigaOS4 officially supports .so libraries.
8905
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8906
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8907
    ;;
8908
  m68k)
8909
    library_names_spec='$libname.ixlibrary $libname.a'
8910
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8911
    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'
8912
    ;;
8913
  esac
8914 19 jeremybenn
  ;;
8915
 
8916
beos*)
8917
  library_names_spec='${libname}${shared_ext}'
8918
  dynamic_linker="$host_os ld.so"
8919
  shlibpath_var=LIBRARY_PATH
8920
  ;;
8921
 
8922
bsdi[45]*)
8923
  version_type=linux
8924
  need_version=no
8925
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8926
  soname_spec='${libname}${release}${shared_ext}$major'
8927
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8928
  shlibpath_var=LD_LIBRARY_PATH
8929
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8930
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8931
  # the default ld.so.conf also contains /usr/contrib/lib and
8932
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8933
  # libtool to hard-code these into programs
8934
  ;;
8935
 
8936 202 julius
cygwin* | mingw* | pw32* | cegcc*)
8937 19 jeremybenn
  version_type=windows
8938
  shrext_cmds=".dll"
8939
  need_version=no
8940
  need_lib_prefix=no
8941
 
8942
  case $GCC,$host_os in
8943 202 julius
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8944 19 jeremybenn
    library_names_spec='$libname.dll.a'
8945
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8946
    postinstall_cmds='base_file=`basename \${file}`~
8947 202 julius
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8948 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
8949
      test -d \$dldir || mkdir -p \$dldir~
8950
      $install_prog $dir/$dlname \$dldir/$dlname~
8951 202 julius
      chmod a+x \$dldir/$dlname~
8952
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8953
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8954
      fi'
8955 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8956
      dlpath=$dir/\$dldll~
8957 202 julius
       $RM \$dlpath'
8958 19 jeremybenn
    shlibpath_overrides_runpath=yes
8959
 
8960
    case $host_os in
8961
    cygwin*)
8962
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8963
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8964
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8965
      ;;
8966 202 julius
    mingw* | cegcc*)
8967 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
8968
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8969 202 julius
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8970
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8971 19 jeremybenn
        # It is most probably a Windows format PATH printed by
8972
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8973
        # path with ; separators, and with drive letters. We can handle the
8974
        # drive letters (cygwin fileutils understands them), so leave them,
8975
        # especially as we might pass files found there to a mingw objdump,
8976
        # which wouldn't understand a cygwinified path. Ahh.
8977 202 julius
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8978 19 jeremybenn
      else
8979 202 julius
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8980 19 jeremybenn
      fi
8981
      ;;
8982
    pw32*)
8983
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8984
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8985
      ;;
8986
    esac
8987
    ;;
8988
 
8989
  *)
8990
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8991
    ;;
8992
  esac
8993
  dynamic_linker='Win32 ld.exe'
8994
  # FIXME: first we should search . and the directory the executable is in
8995
  shlibpath_var=PATH
8996
  ;;
8997
 
8998
darwin* | rhapsody*)
8999
  dynamic_linker="$host_os dyld"
9000
  version_type=darwin
9001
  need_lib_prefix=no
9002
  need_version=no
9003 202 julius
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9004 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9005
  shlibpath_overrides_runpath=yes
9006
  shlibpath_var=DYLD_LIBRARY_PATH
9007
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9008 202 julius
 
9009
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9010 19 jeremybenn
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9011
  ;;
9012
 
9013
dgux*)
9014
  version_type=linux
9015
  need_lib_prefix=no
9016
  need_version=no
9017
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9018
  soname_spec='${libname}${release}${shared_ext}$major'
9019
  shlibpath_var=LD_LIBRARY_PATH
9020
  ;;
9021
 
9022
freebsd1*)
9023
  dynamic_linker=no
9024
  ;;
9025
 
9026
freebsd* | dragonfly*)
9027
  # DragonFly does not have aout.  When/if they implement a new
9028
  # versioning mechanism, adjust this.
9029
  if test -x /usr/bin/objformat; then
9030
    objformat=`/usr/bin/objformat`
9031
  else
9032
    case $host_os in
9033
    freebsd[123]*) objformat=aout ;;
9034
    *) objformat=elf ;;
9035
    esac
9036
  fi
9037
  version_type=freebsd-$objformat
9038
  case $version_type in
9039
    freebsd-elf*)
9040
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9041
      need_version=no
9042
      need_lib_prefix=no
9043
      ;;
9044
    freebsd-*)
9045
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9046
      need_version=yes
9047
      ;;
9048
  esac
9049
  shlibpath_var=LD_LIBRARY_PATH
9050
  case $host_os in
9051
  freebsd2*)
9052
    shlibpath_overrides_runpath=yes
9053
    ;;
9054
  freebsd3.[01]* | freebsdelf3.[01]*)
9055
    shlibpath_overrides_runpath=yes
9056
    hardcode_into_libs=yes
9057
    ;;
9058
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9059
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9060
    shlibpath_overrides_runpath=no
9061
    hardcode_into_libs=yes
9062
    ;;
9063
  *) # from 4.6 on, and DragonFly
9064
    shlibpath_overrides_runpath=yes
9065
    hardcode_into_libs=yes
9066
    ;;
9067
  esac
9068
  ;;
9069
 
9070
gnu*)
9071
  version_type=linux
9072
  need_lib_prefix=no
9073
  need_version=no
9074
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9075
  soname_spec='${libname}${release}${shared_ext}$major'
9076
  shlibpath_var=LD_LIBRARY_PATH
9077
  hardcode_into_libs=yes
9078
  ;;
9079
 
9080
hpux9* | hpux10* | hpux11*)
9081
  # Give a soname corresponding to the major version so that dld.sl refuses to
9082
  # link against other versions.
9083
  version_type=sunos
9084
  need_lib_prefix=no
9085
  need_version=no
9086
  case $host_cpu in
9087
  ia64*)
9088
    shrext_cmds='.so'
9089
    hardcode_into_libs=yes
9090
    dynamic_linker="$host_os dld.so"
9091
    shlibpath_var=LD_LIBRARY_PATH
9092
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9093
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094
    soname_spec='${libname}${release}${shared_ext}$major'
9095
    if test "X$HPUX_IA64_MODE" = X32; then
9096
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9097
    else
9098
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9099
    fi
9100
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9101
    ;;
9102 202 julius
  hppa*64*)
9103 19 jeremybenn
    shrext_cmds='.sl'
9104 202 julius
    hardcode_into_libs=yes
9105 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9106 202 julius
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9107
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9108
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109
    soname_spec='${libname}${release}${shared_ext}$major'
9110
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9111
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9112
    ;;
9113
  *)
9114
    shrext_cmds='.sl'
9115
    dynamic_linker="$host_os dld.sl"
9116 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9117
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9118
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119
    soname_spec='${libname}${release}${shared_ext}$major'
9120
    ;;
9121
  esac
9122
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9123
  postinstall_cmds='chmod 555 $lib'
9124
  ;;
9125
 
9126
interix[3-9]*)
9127
  version_type=linux
9128
  need_lib_prefix=no
9129
  need_version=no
9130
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9131
  soname_spec='${libname}${release}${shared_ext}$major'
9132
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9133
  shlibpath_var=LD_LIBRARY_PATH
9134
  shlibpath_overrides_runpath=no
9135
  hardcode_into_libs=yes
9136
  ;;
9137
 
9138
irix5* | irix6* | nonstopux*)
9139
  case $host_os in
9140
    nonstopux*) version_type=nonstopux ;;
9141
    *)
9142
        if test "$lt_cv_prog_gnu_ld" = yes; then
9143
                version_type=linux
9144
        else
9145
                version_type=irix
9146
        fi ;;
9147
  esac
9148
  need_lib_prefix=no
9149
  need_version=no
9150
  soname_spec='${libname}${release}${shared_ext}$major'
9151
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9152
  case $host_os in
9153
  irix5* | nonstopux*)
9154
    libsuff= shlibsuff=
9155
    ;;
9156
  *)
9157
    case $LD in # libtool.m4 will add one of these switches to LD
9158
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9159
      libsuff= shlibsuff= libmagic=32-bit;;
9160
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9161
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9162
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9163
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9164
    *) libsuff= shlibsuff= libmagic=never-match;;
9165
    esac
9166
    ;;
9167
  esac
9168
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9169
  shlibpath_overrides_runpath=no
9170
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9171
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9172
  hardcode_into_libs=yes
9173
  ;;
9174
 
9175
# No shared lib support for Linux oldld, aout, or coff.
9176
linux*oldld* | linux*aout* | linux*coff*)
9177
  dynamic_linker=no
9178
  ;;
9179
 
9180
# This must be Linux ELF.
9181
linux* | k*bsd*-gnu)
9182
  version_type=linux
9183
  need_lib_prefix=no
9184
  need_version=no
9185
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186
  soname_spec='${libname}${release}${shared_ext}$major'
9187
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9188
  shlibpath_var=LD_LIBRARY_PATH
9189
  shlibpath_overrides_runpath=no
9190 202 julius
  # Some binutils ld are patched to set DT_RUNPATH
9191
  save_LDFLAGS=$LDFLAGS
9192
  save_libdir=$libdir
9193
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9194
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9195
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196
/* end confdefs.h.  */
9197
 
9198
int
9199
main ()
9200
{
9201
 
9202
  ;
9203
  return 0;
9204
}
9205
_ACEOF
9206
if ac_fn_c_try_link "$LINENO"; then :
9207
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9208
  shlibpath_overrides_runpath=yes
9209
fi
9210
fi
9211
rm -f core conftest.err conftest.$ac_objext \
9212
    conftest$ac_exeext conftest.$ac_ext
9213
  LDFLAGS=$save_LDFLAGS
9214
  libdir=$save_libdir
9215
 
9216 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9217
  # Some rework will be needed to allow for fast_install
9218
  # before this can be enabled.
9219
  hardcode_into_libs=yes
9220
 
9221
  # Append ld.so.conf contents to the search path
9222
  if test -f /etc/ld.so.conf; then
9223 202 julius
    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' ' '`
9224 60 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9225 19 jeremybenn
  fi
9226
 
9227
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9228
  # powerpc, because MkLinux only supported shared libraries with the
9229
  # GNU dynamic linker.  Since this was broken with cross compilers,
9230
  # most powerpc-linux boxes support dynamic linking these days and
9231
  # people can always --disable-shared, the test was removed, and we
9232
  # assume the GNU/Linux dynamic linker is in use.
9233
  dynamic_linker='GNU/Linux ld.so'
9234
  ;;
9235
 
9236 202 julius
netbsdelf*-gnu)
9237
  version_type=linux
9238
  need_lib_prefix=no
9239
  need_version=no
9240
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9241
  soname_spec='${libname}${release}${shared_ext}$major'
9242
  shlibpath_var=LD_LIBRARY_PATH
9243
  shlibpath_overrides_runpath=no
9244
  hardcode_into_libs=yes
9245
  dynamic_linker='NetBSD ld.elf_so'
9246
  ;;
9247
 
9248 19 jeremybenn
netbsd*)
9249
  version_type=sunos
9250
  need_lib_prefix=no
9251
  need_version=no
9252 202 julius
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9253 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9254
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9255
    dynamic_linker='NetBSD (a.out) ld.so'
9256
  else
9257
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9258
    soname_spec='${libname}${release}${shared_ext}$major'
9259
    dynamic_linker='NetBSD ld.elf_so'
9260
  fi
9261
  shlibpath_var=LD_LIBRARY_PATH
9262
  shlibpath_overrides_runpath=yes
9263
  hardcode_into_libs=yes
9264
  ;;
9265
 
9266
newsos6)
9267
  version_type=linux
9268
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269
  shlibpath_var=LD_LIBRARY_PATH
9270
  shlibpath_overrides_runpath=yes
9271
  ;;
9272
 
9273 202 julius
*nto* | *qnx*)
9274
  version_type=qnx
9275 19 jeremybenn
  need_lib_prefix=no
9276
  need_version=no
9277
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9278
  soname_spec='${libname}${release}${shared_ext}$major'
9279
  shlibpath_var=LD_LIBRARY_PATH
9280 202 julius
  shlibpath_overrides_runpath=no
9281
  hardcode_into_libs=yes
9282
  dynamic_linker='ldqnx.so'
9283 19 jeremybenn
  ;;
9284
 
9285
openbsd*)
9286
  version_type=sunos
9287
  sys_lib_dlsearch_path_spec="/usr/lib"
9288
  need_lib_prefix=no
9289
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9290
  case $host_os in
9291 202 julius
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9292
    *)                          need_version=no  ;;
9293 19 jeremybenn
  esac
9294
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9295
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9296
  shlibpath_var=LD_LIBRARY_PATH
9297 202 julius
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9298 19 jeremybenn
    case $host_os in
9299
      openbsd2.[89] | openbsd2.[89].*)
9300
        shlibpath_overrides_runpath=no
9301
        ;;
9302
      *)
9303
        shlibpath_overrides_runpath=yes
9304
        ;;
9305
      esac
9306
  else
9307
    shlibpath_overrides_runpath=yes
9308
  fi
9309
  ;;
9310
 
9311
os2*)
9312
  libname_spec='$name'
9313
  shrext_cmds=".dll"
9314
  need_lib_prefix=no
9315
  library_names_spec='$libname${shared_ext} $libname.a'
9316
  dynamic_linker='OS/2 ld.exe'
9317
  shlibpath_var=LIBPATH
9318
  ;;
9319
 
9320
osf3* | osf4* | osf5*)
9321
  version_type=osf
9322
  need_lib_prefix=no
9323
  need_version=no
9324
  soname_spec='${libname}${release}${shared_ext}$major'
9325
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326
  shlibpath_var=LD_LIBRARY_PATH
9327
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9328
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9329
  ;;
9330
 
9331
rdos*)
9332
  dynamic_linker=no
9333
  ;;
9334
 
9335
solaris*)
9336
  version_type=linux
9337
  need_lib_prefix=no
9338
  need_version=no
9339
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340
  soname_spec='${libname}${release}${shared_ext}$major'
9341
  shlibpath_var=LD_LIBRARY_PATH
9342
  shlibpath_overrides_runpath=yes
9343
  hardcode_into_libs=yes
9344
  # ldd complains unless libraries are executable
9345
  postinstall_cmds='chmod +x $lib'
9346
  ;;
9347
 
9348
sunos4*)
9349
  version_type=sunos
9350
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9351
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9352
  shlibpath_var=LD_LIBRARY_PATH
9353
  shlibpath_overrides_runpath=yes
9354
  if test "$with_gnu_ld" = yes; then
9355
    need_lib_prefix=no
9356
  fi
9357
  need_version=yes
9358
  ;;
9359
 
9360
sysv4 | sysv4.3*)
9361
  version_type=linux
9362
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363
  soname_spec='${libname}${release}${shared_ext}$major'
9364
  shlibpath_var=LD_LIBRARY_PATH
9365
  case $host_vendor in
9366
    sni)
9367
      shlibpath_overrides_runpath=no
9368
      need_lib_prefix=no
9369
      runpath_var=LD_RUN_PATH
9370
      ;;
9371
    siemens)
9372
      need_lib_prefix=no
9373
      ;;
9374
    motorola)
9375
      need_lib_prefix=no
9376
      need_version=no
9377
      shlibpath_overrides_runpath=no
9378
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9379
      ;;
9380
  esac
9381
  ;;
9382
 
9383
sysv4*MP*)
9384
  if test -d /usr/nec ;then
9385
    version_type=linux
9386
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9387
    soname_spec='$libname${shared_ext}.$major'
9388
    shlibpath_var=LD_LIBRARY_PATH
9389
  fi
9390
  ;;
9391
 
9392
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9393
  version_type=freebsd-elf
9394
  need_lib_prefix=no
9395
  need_version=no
9396
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9397
  soname_spec='${libname}${release}${shared_ext}$major'
9398
  shlibpath_var=LD_LIBRARY_PATH
9399 202 julius
  shlibpath_overrides_runpath=yes
9400 19 jeremybenn
  hardcode_into_libs=yes
9401
  if test "$with_gnu_ld" = yes; then
9402
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9403
  else
9404
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9405
    case $host_os in
9406
      sco3.2v5*)
9407
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9408
        ;;
9409
    esac
9410
  fi
9411
  sys_lib_dlsearch_path_spec='/usr/lib'
9412
  ;;
9413
 
9414 202 julius
tpf*)
9415
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9416
  version_type=linux
9417
  need_lib_prefix=no
9418
  need_version=no
9419
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9420
  shlibpath_var=LD_LIBRARY_PATH
9421
  shlibpath_overrides_runpath=no
9422
  hardcode_into_libs=yes
9423
  ;;
9424
 
9425 19 jeremybenn
uts4*)
9426
  version_type=linux
9427
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428
  soname_spec='${libname}${release}${shared_ext}$major'
9429
  shlibpath_var=LD_LIBRARY_PATH
9430
  ;;
9431
 
9432
*)
9433
  dynamic_linker=no
9434
  ;;
9435
esac
9436 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9437
$as_echo "$dynamic_linker" >&6; }
9438 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9439
 
9440
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9441
if test "$GCC" = yes; then
9442
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9443
fi
9444
 
9445 202 julius
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9446
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9447
fi
9448
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9449
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9450
fi
9451
 
9452
 
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
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9539
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9540 19 jeremybenn
hardcode_action=
9541 202 julius
if test -n "$hardcode_libdir_flag_spec" ||
9542
   test -n "$runpath_var" ||
9543 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9544
 
9545 202 julius
  # We can hardcode non-existent directories.
9546 19 jeremybenn
  if test "$hardcode_direct" != no &&
9547
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9548
     # have to relink, otherwise we might link with an installed library
9549
     # when we should be linking with a yet-to-be-installed one
9550 202 julius
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9551 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9552
    # Linking always hardcodes the temporary library directory.
9553
    hardcode_action=relink
9554
  else
9555
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9556
    hardcode_action=immediate
9557
  fi
9558
else
9559
  # We cannot hardcode anything, or else we can only hardcode existing
9560
  # directories.
9561
  hardcode_action=unsupported
9562
fi
9563 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9564
$as_echo "$hardcode_action" >&6; }
9565 19 jeremybenn
 
9566 202 julius
if test "$hardcode_action" = relink ||
9567
   test "$inherit_rpath" = yes; then
9568 19 jeremybenn
  # Fast installation is not supported
9569
  enable_fast_install=no
9570
elif test "$shlibpath_overrides_runpath" = yes ||
9571
     test "$enable_shared" = no; then
9572
  # Fast installation is not necessary
9573
  enable_fast_install=needless
9574
fi
9575
 
9576 202 julius
 
9577
 
9578
 
9579 19 jeremybenn
 
9580 202 julius
 
9581
  if test "x$enable_dlopen" != xyes; then
9582 19 jeremybenn
  enable_dlopen=unknown
9583
  enable_dlopen_self=unknown
9584
  enable_dlopen_self_static=unknown
9585
else
9586
  lt_cv_dlopen=no
9587
  lt_cv_dlopen_libs=
9588
 
9589
  case $host_os in
9590
  beos*)
9591
    lt_cv_dlopen="load_add_on"
9592
    lt_cv_dlopen_libs=
9593
    lt_cv_dlopen_self=yes
9594
    ;;
9595
 
9596 202 julius
  mingw* | pw32* | cegcc*)
9597 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9598
    lt_cv_dlopen_libs=
9599 202 julius
    ;;
9600 19 jeremybenn
 
9601
  cygwin*)
9602
    lt_cv_dlopen="dlopen"
9603
    lt_cv_dlopen_libs=
9604 202 julius
    ;;
9605 19 jeremybenn
 
9606
  darwin*)
9607
  # if libdl is installed we need to link against it
9608 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9609
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9610
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9611
  $as_echo_n "(cached) " >&6
9612 19 jeremybenn
else
9613
  ac_check_lib_save_LIBS=$LIBS
9614
LIBS="-ldl  $LIBS"
9615 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 19 jeremybenn
/* end confdefs.h.  */
9617
 
9618
/* Override any GCC internal prototype to avoid an error.
9619
   Use char because int might match the return type of a GCC
9620
   builtin and then its argument prototype would still apply.  */
9621
#ifdef __cplusplus
9622
extern "C"
9623
#endif
9624
char dlopen ();
9625
int
9626
main ()
9627
{
9628
return dlopen ();
9629
  ;
9630
  return 0;
9631
}
9632
_ACEOF
9633 202 julius
if ac_fn_c_try_link "$LINENO"; then :
9634 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9635
else
9636 202 julius
  ac_cv_lib_dl_dlopen=no
9637 19 jeremybenn
fi
9638 202 julius
rm -f core conftest.err conftest.$ac_objext \
9639
    conftest$ac_exeext conftest.$ac_ext
9640 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9641
fi
9642 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9643
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9644
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9645 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9646
else
9647
 
9648
    lt_cv_dlopen="dyld"
9649
    lt_cv_dlopen_libs=
9650
    lt_cv_dlopen_self=yes
9651
 
9652
fi
9653
 
9654 202 julius
    ;;
9655 19 jeremybenn
 
9656
  *)
9657 202 julius
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9658
if test "x$ac_cv_func_shl_load" = x""yes; then :
9659 19 jeremybenn
  lt_cv_dlopen="shl_load"
9660
else
9661 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9662
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9663
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9664
  $as_echo_n "(cached) " >&6
9665 19 jeremybenn
else
9666
  ac_check_lib_save_LIBS=$LIBS
9667
LIBS="-ldld  $LIBS"
9668 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669 19 jeremybenn
/* end confdefs.h.  */
9670
 
9671
/* Override any GCC internal prototype to avoid an error.
9672
   Use char because int might match the return type of a GCC
9673
   builtin and then its argument prototype would still apply.  */
9674
#ifdef __cplusplus
9675
extern "C"
9676
#endif
9677
char shl_load ();
9678
int
9679
main ()
9680
{
9681
return shl_load ();
9682
  ;
9683
  return 0;
9684
}
9685
_ACEOF
9686 202 julius
if ac_fn_c_try_link "$LINENO"; then :
9687 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
9688
else
9689 202 julius
  ac_cv_lib_dld_shl_load=no
9690 19 jeremybenn
fi
9691 202 julius
rm -f core conftest.err conftest.$ac_objext \
9692
    conftest$ac_exeext conftest.$ac_ext
9693 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9694
fi
9695 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9696
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9697
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9698
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9699 19 jeremybenn
else
9700 202 julius
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9701
if test "x$ac_cv_func_dlopen" = x""yes; then :
9702 19 jeremybenn
  lt_cv_dlopen="dlopen"
9703
else
9704 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9705
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9706
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9707
  $as_echo_n "(cached) " >&6
9708 19 jeremybenn
else
9709
  ac_check_lib_save_LIBS=$LIBS
9710
LIBS="-ldl  $LIBS"
9711 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 19 jeremybenn
/* end confdefs.h.  */
9713
 
9714
/* Override any GCC internal prototype to avoid an error.
9715
   Use char because int might match the return type of a GCC
9716
   builtin and then its argument prototype would still apply.  */
9717
#ifdef __cplusplus
9718
extern "C"
9719
#endif
9720
char dlopen ();
9721
int
9722
main ()
9723
{
9724
return dlopen ();
9725
  ;
9726
  return 0;
9727
}
9728
_ACEOF
9729 202 julius
if ac_fn_c_try_link "$LINENO"; then :
9730 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9731
else
9732 202 julius
  ac_cv_lib_dl_dlopen=no
9733 19 jeremybenn
fi
9734 202 julius
rm -f core conftest.err conftest.$ac_objext \
9735
    conftest$ac_exeext conftest.$ac_ext
9736 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9737
fi
9738 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9739
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9740
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9741 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9742
else
9743 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9744
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9745
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9746
  $as_echo_n "(cached) " >&6
9747 19 jeremybenn
else
9748
  ac_check_lib_save_LIBS=$LIBS
9749
LIBS="-lsvld  $LIBS"
9750 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 19 jeremybenn
/* end confdefs.h.  */
9752
 
9753
/* Override any GCC internal prototype to avoid an error.
9754
   Use char because int might match the return type of a GCC
9755
   builtin and then its argument prototype would still apply.  */
9756
#ifdef __cplusplus
9757
extern "C"
9758
#endif
9759
char dlopen ();
9760
int
9761
main ()
9762
{
9763
return dlopen ();
9764
  ;
9765
  return 0;
9766
}
9767
_ACEOF
9768 202 julius
if ac_fn_c_try_link "$LINENO"; then :
9769 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
9770
else
9771 202 julius
  ac_cv_lib_svld_dlopen=no
9772 19 jeremybenn
fi
9773 202 julius
rm -f core conftest.err conftest.$ac_objext \
9774
    conftest$ac_exeext conftest.$ac_ext
9775 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9776
fi
9777 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9778
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9779
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9780 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9781
else
9782 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9783
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9784
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9785
  $as_echo_n "(cached) " >&6
9786 19 jeremybenn
else
9787
  ac_check_lib_save_LIBS=$LIBS
9788
LIBS="-ldld  $LIBS"
9789 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 19 jeremybenn
/* end confdefs.h.  */
9791
 
9792
/* Override any GCC internal prototype to avoid an error.
9793
   Use char because int might match the return type of a GCC
9794
   builtin and then its argument prototype would still apply.  */
9795
#ifdef __cplusplus
9796
extern "C"
9797
#endif
9798
char dld_link ();
9799
int
9800
main ()
9801
{
9802
return dld_link ();
9803
  ;
9804
  return 0;
9805
}
9806
_ACEOF
9807 202 julius
if ac_fn_c_try_link "$LINENO"; then :
9808 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
9809
else
9810 202 julius
  ac_cv_lib_dld_dld_link=no
9811 19 jeremybenn
fi
9812 202 julius
rm -f core conftest.err conftest.$ac_objext \
9813
    conftest$ac_exeext conftest.$ac_ext
9814 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9815
fi
9816 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9817
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9818
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9819
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9820 19 jeremybenn
fi
9821
 
9822
 
9823
fi
9824
 
9825
 
9826
fi
9827
 
9828
 
9829
fi
9830
 
9831
 
9832
fi
9833
 
9834
 
9835
fi
9836
 
9837
    ;;
9838
  esac
9839
 
9840
  if test "x$lt_cv_dlopen" != xno; then
9841
    enable_dlopen=yes
9842
  else
9843
    enable_dlopen=no
9844
  fi
9845
 
9846
  case $lt_cv_dlopen in
9847
  dlopen)
9848
    save_CPPFLAGS="$CPPFLAGS"
9849
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9850
 
9851
    save_LDFLAGS="$LDFLAGS"
9852
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9853
 
9854
    save_LIBS="$LIBS"
9855
    LIBS="$lt_cv_dlopen_libs $LIBS"
9856
 
9857 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9858
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9859
if test "${lt_cv_dlopen_self+set}" = set; then :
9860
  $as_echo_n "(cached) " >&6
9861 19 jeremybenn
else
9862
          if test "$cross_compiling" = yes; then :
9863
  lt_cv_dlopen_self=cross
9864
else
9865
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9866
  lt_status=$lt_dlunknown
9867 202 julius
  cat > conftest.$ac_ext <<_LT_EOF
9868 19 jeremybenn
#line __oline__ "configure"
9869
#include "confdefs.h"
9870
 
9871
#if HAVE_DLFCN_H
9872
#include 
9873
#endif
9874
 
9875
#include 
9876
 
9877
#ifdef RTLD_GLOBAL
9878
#  define LT_DLGLOBAL           RTLD_GLOBAL
9879
#else
9880
#  ifdef DL_GLOBAL
9881
#    define LT_DLGLOBAL         DL_GLOBAL
9882
#  else
9883
#    define LT_DLGLOBAL         0
9884
#  endif
9885
#endif
9886
 
9887
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9888
   find out it does not work in some platform. */
9889
#ifndef LT_DLLAZY_OR_NOW
9890
#  ifdef RTLD_LAZY
9891
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9892
#  else
9893
#    ifdef DL_LAZY
9894
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9895
#    else
9896
#      ifdef RTLD_NOW
9897
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9898
#      else
9899
#        ifdef DL_NOW
9900
#          define LT_DLLAZY_OR_NOW      DL_NOW
9901
#        else
9902
#          define LT_DLLAZY_OR_NOW      0
9903
#        endif
9904
#      endif
9905
#    endif
9906
#  endif
9907
#endif
9908
 
9909
void fnord() { int i=42;}
9910
int main ()
9911
{
9912
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9913
  int status = $lt_dlunknown;
9914
 
9915
  if (self)
9916
    {
9917
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9918
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9919
      /* dlclose (self); */
9920
    }
9921
  else
9922
    puts (dlerror ());
9923
 
9924 202 julius
  return status;
9925 19 jeremybenn
}
9926 202 julius
_LT_EOF
9927
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9928 19 jeremybenn
  (eval $ac_link) 2>&5
9929
  ac_status=$?
9930 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9931
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9932 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9933
    lt_status=$?
9934
    case x$lt_status in
9935
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9936
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9937
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9938
    esac
9939
  else :
9940
    # compilation failed
9941
    lt_cv_dlopen_self=no
9942
  fi
9943
fi
9944
rm -fr conftest*
9945
 
9946
 
9947
fi
9948 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9949
$as_echo "$lt_cv_dlopen_self" >&6; }
9950 19 jeremybenn
 
9951
    if test "x$lt_cv_dlopen_self" = xyes; then
9952
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9953 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9954
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9955
if test "${lt_cv_dlopen_self_static+set}" = set; then :
9956
  $as_echo_n "(cached) " >&6
9957 19 jeremybenn
else
9958
          if test "$cross_compiling" = yes; then :
9959
  lt_cv_dlopen_self_static=cross
9960
else
9961
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9962
  lt_status=$lt_dlunknown
9963 202 julius
  cat > conftest.$ac_ext <<_LT_EOF
9964 19 jeremybenn
#line __oline__ "configure"
9965
#include "confdefs.h"
9966
 
9967
#if HAVE_DLFCN_H
9968
#include 
9969
#endif
9970
 
9971
#include 
9972
 
9973
#ifdef RTLD_GLOBAL
9974
#  define LT_DLGLOBAL           RTLD_GLOBAL
9975
#else
9976
#  ifdef DL_GLOBAL
9977
#    define LT_DLGLOBAL         DL_GLOBAL
9978
#  else
9979
#    define LT_DLGLOBAL         0
9980
#  endif
9981
#endif
9982
 
9983
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9984
   find out it does not work in some platform. */
9985
#ifndef LT_DLLAZY_OR_NOW
9986
#  ifdef RTLD_LAZY
9987
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9988
#  else
9989
#    ifdef DL_LAZY
9990
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9991
#    else
9992
#      ifdef RTLD_NOW
9993
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9994
#      else
9995
#        ifdef DL_NOW
9996
#          define LT_DLLAZY_OR_NOW      DL_NOW
9997
#        else
9998
#          define LT_DLLAZY_OR_NOW      0
9999
#        endif
10000
#      endif
10001
#    endif
10002
#  endif
10003
#endif
10004
 
10005
void fnord() { int i=42;}
10006
int main ()
10007
{
10008
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10009
  int status = $lt_dlunknown;
10010
 
10011
  if (self)
10012
    {
10013
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10014
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10015
      /* dlclose (self); */
10016
    }
10017
  else
10018
    puts (dlerror ());
10019
 
10020 202 julius
  return status;
10021 19 jeremybenn
}
10022 202 julius
_LT_EOF
10023
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10024 19 jeremybenn
  (eval $ac_link) 2>&5
10025
  ac_status=$?
10026 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10027
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10028 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10029
    lt_status=$?
10030
    case x$lt_status in
10031
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10032
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10033
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10034
    esac
10035
  else :
10036
    # compilation failed
10037
    lt_cv_dlopen_self_static=no
10038
  fi
10039
fi
10040
rm -fr conftest*
10041
 
10042
 
10043
fi
10044 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10045
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10046 19 jeremybenn
    fi
10047
 
10048
    CPPFLAGS="$save_CPPFLAGS"
10049
    LDFLAGS="$save_LDFLAGS"
10050
    LIBS="$save_LIBS"
10051
    ;;
10052
  esac
10053
 
10054
  case $lt_cv_dlopen_self in
10055
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10056
  *) enable_dlopen_self=unknown ;;
10057
  esac
10058
 
10059
  case $lt_cv_dlopen_self_static in
10060
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10061
  *) enable_dlopen_self_static=unknown ;;
10062
  esac
10063
fi
10064
 
10065 202 julius
 
10066
 
10067
 
10068 19 jeremybenn
 
10069
 
10070 202 julius
 
10071
 
10072
 
10073 19 jeremybenn
 
10074
 
10075 202 julius
 
10076
 
10077
 
10078 19 jeremybenn
 
10079
 
10080
 
10081 202 julius
striplib=
10082
old_striplib=
10083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10084
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10085
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10086
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10087
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10088
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10089
$as_echo "yes" >&6; }
10090 19 jeremybenn
else
10091 202 julius
# FIXME - insert some real tests, host_os isn't really good enough
10092
  case $host_os in
10093
  darwin*)
10094
    if test -n "$STRIP" ; then
10095
      striplib="$STRIP -x"
10096
      old_striplib="$STRIP -S"
10097
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10098
$as_echo "yes" >&6; }
10099 19 jeremybenn
    else
10100 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10101
$as_echo "no" >&6; }
10102 19 jeremybenn
    fi
10103
    ;;
10104
  *)
10105 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106
$as_echo "no" >&6; }
10107 19 jeremybenn
    ;;
10108
  esac
10109
fi
10110
 
10111 202 julius
 
10112
 
10113
 
10114 19 jeremybenn
 
10115
 
10116 202 julius
 
10117
 
10118
 
10119 19 jeremybenn
 
10120
 
10121
 
10122 202 julius
  # Report which library types will actually be built
10123
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10124
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10125
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10126
$as_echo "$can_build_shared" >&6; }
10127 19 jeremybenn
 
10128 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10129
$as_echo_n "checking whether to build shared libraries... " >&6; }
10130
  test "$can_build_shared" = "no" && enable_shared=no
10131 19 jeremybenn
 
10132 202 julius
  # On AIX, shared libraries and static libraries use the same namespace, and
10133
  # are all built from PIC.
10134 19 jeremybenn
  case $host_os in
10135 202 julius
  aix3*)
10136 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10137 202 julius
    if test -n "$RANLIB"; then
10138
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10139
      postinstall_cmds='$RANLIB $lib'
10140 19 jeremybenn
    fi
10141
    ;;
10142
 
10143 202 julius
  aix[4-9]*)
10144
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10145
      test "$enable_shared" = yes && enable_static=no
10146 19 jeremybenn
    fi
10147
    ;;
10148
  esac
10149 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10150
$as_echo "$enable_shared" >&6; }
10151 19 jeremybenn
 
10152 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10153
$as_echo_n "checking whether to build static libraries... " >&6; }
10154
  # Make sure either enable_shared or enable_static is yes.
10155
  test "$enable_shared" = yes || enable_static=yes
10156
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10157
$as_echo "$enable_static" >&6; }
10158 19 jeremybenn
 
10159
 
10160
 
10161
 
10162
fi
10163
ac_ext=c
10164
ac_cpp='$CPP $CPPFLAGS'
10165
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10166
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10167
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10168
 
10169
CC="$lt_save_CC"
10170
 
10171
 
10172
 
10173
 
10174
 
10175
 
10176
 
10177
 
10178 202 julius
 
10179
 
10180 19 jeremybenn
 
10181
 
10182
 
10183 202 julius
        ac_config_commands="$ac_config_commands libtool"
10184 19 jeremybenn
 
10185
 
10186
 
10187
 
10188 202 julius
# Only expand once:
10189 19 jeremybenn
 
10190
 
10191 202 julius
am__api_version='1.11'
10192 19 jeremybenn
 
10193
# Find a good install program.  We prefer a C program (faster),
10194
# so one script is as good as another.  But avoid the broken or
10195
# incompatible versions:
10196
# SysV /etc/install, /usr/sbin/install
10197
# SunOS /usr/etc/install
10198
# IRIX /sbin/install
10199
# AIX /bin/install
10200
# AmigaOS /C/install, which installs bootblocks on floppy discs
10201
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10202
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10203
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10204
# OS/2's system install, which has a completely different semantic
10205
# ./install, which can be erroneously created by make from ./install.sh.
10206 202 julius
# Reject install programs that cannot install multiple files.
10207
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10208
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10209 19 jeremybenn
if test -z "$INSTALL"; then
10210 202 julius
if test "${ac_cv_path_install+set}" = set; then :
10211
  $as_echo_n "(cached) " >&6
10212 19 jeremybenn
else
10213
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10214
for as_dir in $PATH
10215
do
10216
  IFS=$as_save_IFS
10217
  test -z "$as_dir" && as_dir=.
10218 202 julius
    # Account for people who put trailing slashes in PATH elements.
10219
case $as_dir/ in @%:@((
10220
  ./ | .// | /[cC]/* | \
10221 19 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10222 202 julius
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10223 19 jeremybenn
  /usr/ucb/* ) ;;
10224
  *)
10225
    # OSF1 and SCO ODT 3.0 have their own names for install.
10226
    # Don't use installbsd from OSF since it installs stuff as root
10227
    # by default.
10228
    for ac_prog in ginstall scoinst install; do
10229
      for ac_exec_ext in '' $ac_executable_extensions; do
10230
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10231
          if test $ac_prog = install &&
10232
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10233
            # AIX install.  It has an incompatible calling convention.
10234
            :
10235
          elif test $ac_prog = install &&
10236
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10237
            # program-specific install script used by HP pwplus--don't use.
10238
            :
10239
          else
10240 202 julius
            rm -rf conftest.one conftest.two conftest.dir
10241
            echo one > conftest.one
10242
            echo two > conftest.two
10243
            mkdir conftest.dir
10244
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10245
              test -s conftest.one && test -s conftest.two &&
10246
              test -s conftest.dir/conftest.one &&
10247
              test -s conftest.dir/conftest.two
10248
            then
10249
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10250
              break 3
10251
            fi
10252 19 jeremybenn
          fi
10253
        fi
10254
      done
10255
    done
10256
    ;;
10257
esac
10258 202 julius
 
10259
  done
10260 19 jeremybenn
IFS=$as_save_IFS
10261
 
10262 202 julius
rm -rf conftest.one conftest.two conftest.dir
10263 19 jeremybenn
 
10264
fi
10265
  if test "${ac_cv_path_install+set}" = set; then
10266
    INSTALL=$ac_cv_path_install
10267
  else
10268
    # As a last resort, use the slow shell script.  Don't cache a
10269
    # value for INSTALL within a source directory, because that will
10270
    # break other packages using the cache if that directory is
10271
    # removed, or if the value is a relative name.
10272
    INSTALL=$ac_install_sh
10273
  fi
10274
fi
10275 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10276
$as_echo "$INSTALL" >&6; }
10277 19 jeremybenn
 
10278
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10279
# It thinks the first close brace ends the variable substitution.
10280
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10281
 
10282
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10283
 
10284
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10285
 
10286 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10287
$as_echo_n "checking whether build environment is sane... " >&6; }
10288 19 jeremybenn
# Just in case
10289
sleep 1
10290
echo timestamp > conftest.file
10291 202 julius
# Reject unsafe characters in $srcdir or the absolute working directory
10292
# name.  Accept space and tab only in the latter.
10293
am_lf='
10294
'
10295
case `pwd` in
10296
  *[\\\"\#\$\&\'\`$am_lf]*)
10297
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
10298
esac
10299
case $srcdir in
10300
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10301
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
10302
esac
10303
 
10304 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10305
# arguments.  Must try -L first in case configure is actually a
10306
# symlink; some systems play weird games with the mod time of symlinks
10307
# (eg FreeBSD returns the mod time of the symlink's containing
10308
# directory).
10309
if (
10310 202 julius
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10311 19 jeremybenn
   if test "$*" = "X"; then
10312
      # -L didn't work.
10313 202 julius
      set X `ls -t "$srcdir/configure" conftest.file`
10314 19 jeremybenn
   fi
10315
   rm -f conftest.file
10316
   if test "$*" != "X $srcdir/configure conftest.file" \
10317
      && test "$*" != "X conftest.file $srcdir/configure"; then
10318
 
10319
      # If neither matched, then we have a broken ls.  This can happen
10320
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10321
      # broken ls alias from the environment.  This has actually
10322
      # happened.  Such a system could not be considered "sane".
10323 202 julius
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
10324
alias in your environment" "$LINENO" 5
10325 19 jeremybenn
   fi
10326
 
10327
   test "$2" = conftest.file
10328
   )
10329
then
10330
   # Ok.
10331
   :
10332
else
10333 202 julius
   as_fn_error "newly created file is older than distributed files!
10334
Check your system clock" "$LINENO" 5
10335 19 jeremybenn
fi
10336 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10337
$as_echo "yes" >&6; }
10338 19 jeremybenn
test "$program_prefix" != NONE &&
10339
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10340
# Use a double $ so make ignores it.
10341
test "$program_suffix" != NONE &&
10342
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10343 202 julius
# Double any \ or $.
10344 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10345 202 julius
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10346
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10347 19 jeremybenn
 
10348
# expand $ac_aux_dir to an absolute path
10349
am_aux_dir=`cd $ac_aux_dir && pwd`
10350
 
10351 202 julius
if test x"${MISSING+set}" != xset; then
10352
  case $am_aux_dir in
10353
  *\ * | *\     *)
10354
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10355
  *)
10356
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10357
  esac
10358
fi
10359 19 jeremybenn
# Use eval to expand $SHELL
10360
if eval "$MISSING --run true"; then
10361
  am_missing_run="$MISSING --run "
10362
else
10363
  am_missing_run=
10364 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
10365
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10366 19 jeremybenn
fi
10367
 
10368 202 julius
if test x"${install_sh}" != xset; then
10369
  case $am_aux_dir in
10370
  *\ * | *\     *)
10371
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10372
  *)
10373
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10374
  esac
10375
fi
10376
 
10377
# Installed binaries are usually stripped using `strip' when the user
10378
# run `make install-strip'.  However `strip' might not be the right
10379
# tool to use in cross-compilation environments, therefore Automake
10380
# will honor the `STRIP' environment variable to overrule this program.
10381
if test "$cross_compiling" != no; then
10382
  if test -n "$ac_tool_prefix"; then
10383
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10384
set dummy ${ac_tool_prefix}strip; ac_word=$2
10385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10386
$as_echo_n "checking for $ac_word... " >&6; }
10387
if test "${ac_cv_prog_STRIP+set}" = set; then :
10388
  $as_echo_n "(cached) " >&6
10389
else
10390
  if test -n "$STRIP"; then
10391
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10392
else
10393
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10394
for as_dir in $PATH
10395
do
10396
  IFS=$as_save_IFS
10397
  test -z "$as_dir" && as_dir=.
10398
    for ac_exec_ext in '' $ac_executable_extensions; do
10399
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10400
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10401
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10402
    break 2
10403
  fi
10404
done
10405
  done
10406
IFS=$as_save_IFS
10407
 
10408
fi
10409
fi
10410
STRIP=$ac_cv_prog_STRIP
10411
if test -n "$STRIP"; then
10412
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10413
$as_echo "$STRIP" >&6; }
10414
else
10415
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10416
$as_echo "no" >&6; }
10417
fi
10418
 
10419
 
10420
fi
10421
if test -z "$ac_cv_prog_STRIP"; then
10422
  ac_ct_STRIP=$STRIP
10423
  # Extract the first word of "strip", so it can be a program name with args.
10424
set dummy strip; ac_word=$2
10425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10426
$as_echo_n "checking for $ac_word... " >&6; }
10427
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10428
  $as_echo_n "(cached) " >&6
10429
else
10430
  if test -n "$ac_ct_STRIP"; then
10431
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10432
else
10433
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10434
for as_dir in $PATH
10435
do
10436
  IFS=$as_save_IFS
10437
  test -z "$as_dir" && as_dir=.
10438
    for ac_exec_ext in '' $ac_executable_extensions; do
10439
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10440
    ac_cv_prog_ac_ct_STRIP="strip"
10441
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10442
    break 2
10443
  fi
10444
done
10445
  done
10446
IFS=$as_save_IFS
10447
 
10448
fi
10449
fi
10450
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10451
if test -n "$ac_ct_STRIP"; then
10452
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10453
$as_echo "$ac_ct_STRIP" >&6; }
10454
else
10455
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456
$as_echo "no" >&6; }
10457
fi
10458
 
10459
  if test "x$ac_ct_STRIP" = x; then
10460
    STRIP=":"
10461
  else
10462
    case $cross_compiling:$ac_tool_warned in
10463
yes:)
10464
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10465
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10466
ac_tool_warned=yes ;;
10467
esac
10468
    STRIP=$ac_ct_STRIP
10469
  fi
10470
else
10471
  STRIP="$ac_cv_prog_STRIP"
10472
fi
10473
 
10474
fi
10475
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10476
 
10477
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10478
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10479 19 jeremybenn
if test -z "$MKDIR_P"; then
10480 202 julius
  if test "${ac_cv_path_mkdir+set}" = set; then :
10481
  $as_echo_n "(cached) " >&6
10482 19 jeremybenn
else
10483
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10485
do
10486
  IFS=$as_save_IFS
10487
  test -z "$as_dir" && as_dir=.
10488 202 julius
    for ac_prog in mkdir gmkdir; do
10489 19 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
10490
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10491
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10492
             'mkdir (GNU coreutils) '* | \
10493
             'mkdir (coreutils) '* | \
10494
             'mkdir (fileutils) '4.1*)
10495
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10496
               break 3;;
10497
           esac
10498
         done
10499
       done
10500 202 julius
  done
10501 19 jeremybenn
IFS=$as_save_IFS
10502
 
10503
fi
10504
 
10505
  if test "${ac_cv_path_mkdir+set}" = set; then
10506
    MKDIR_P="$ac_cv_path_mkdir -p"
10507
  else
10508
    # As a last resort, use the slow shell script.  Don't cache a
10509
    # value for MKDIR_P within a source directory, because that will
10510
    # break other packages using the cache if that directory is
10511
    # removed, or if the value is a relative name.
10512
    test -d ./--version && rmdir ./--version
10513
    MKDIR_P="$ac_install_sh -d"
10514
  fi
10515
fi
10516 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10517
$as_echo "$MKDIR_P" >&6; }
10518 19 jeremybenn
 
10519
mkdir_p="$MKDIR_P"
10520
case $mkdir_p in
10521
  [\\/$]* | ?:[\\/]*) ;;
10522
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10523
esac
10524
 
10525
for ac_prog in gawk mawk nawk awk
10526
do
10527
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10528
set dummy $ac_prog; ac_word=$2
10529 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10530
$as_echo_n "checking for $ac_word... " >&6; }
10531
if test "${ac_cv_prog_AWK+set}" = set; then :
10532
  $as_echo_n "(cached) " >&6
10533 19 jeremybenn
else
10534
  if test -n "$AWK"; then
10535
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10536
else
10537
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538
for as_dir in $PATH
10539
do
10540
  IFS=$as_save_IFS
10541
  test -z "$as_dir" && as_dir=.
10542 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
10543 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10544
    ac_cv_prog_AWK="$ac_prog"
10545 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10546 19 jeremybenn
    break 2
10547
  fi
10548
done
10549 202 julius
  done
10550 19 jeremybenn
IFS=$as_save_IFS
10551
 
10552
fi
10553
fi
10554
AWK=$ac_cv_prog_AWK
10555
if test -n "$AWK"; then
10556 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10557
$as_echo "$AWK" >&6; }
10558 19 jeremybenn
else
10559 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10560
$as_echo "no" >&6; }
10561 19 jeremybenn
fi
10562
 
10563
 
10564
  test -n "$AWK" && break
10565
done
10566
 
10567 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10568
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10569
set x ${MAKE-make}
10570
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10571
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
10572
  $as_echo_n "(cached) " >&6
10573 19 jeremybenn
else
10574
  cat >conftest.make <<\_ACEOF
10575
SHELL = /bin/sh
10576
all:
10577
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10578
_ACEOF
10579
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10580
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10581
  *@@@%%%=?*=@@@%%%*)
10582
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10583
  *)
10584
    eval ac_cv_prog_make_${ac_make}_set=no;;
10585
esac
10586
rm -f conftest.make
10587
fi
10588
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10589 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10590
$as_echo "yes" >&6; }
10591 19 jeremybenn
  SET_MAKE=
10592
else
10593 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594
$as_echo "no" >&6; }
10595 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
10596
fi
10597
 
10598
rm -rf .tst 2>/dev/null
10599
mkdir .tst 2>/dev/null
10600
if test -d .tst; then
10601
  am__leading_dot=.
10602
else
10603
  am__leading_dot=_
10604
fi
10605
rmdir .tst 2>/dev/null
10606
 
10607
DEPDIR="${am__leading_dot}deps"
10608
 
10609
ac_config_commands="$ac_config_commands depfiles"
10610
 
10611
 
10612
am_make=${MAKE-make}
10613
cat > confinc << 'END'
10614
am__doit:
10615 202 julius
        @echo this is the am__doit target
10616 19 jeremybenn
.PHONY: am__doit
10617
END
10618
# If we don't find an include directive, just comment out the code.
10619 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10620
$as_echo_n "checking for style of include used by $am_make... " >&6; }
10621 19 jeremybenn
am__include="#"
10622
am__quote=
10623
_am_result=none
10624
# First try GNU make style include.
10625
echo "include confinc" > confmf
10626 202 julius
# Ignore all kinds of additional output from `make'.
10627
case `$am_make -s -f confmf 2> /dev/null` in #(
10628
*the\ am__doit\ target*)
10629
  am__include=include
10630
  am__quote=
10631
  _am_result=GNU
10632
  ;;
10633
esac
10634 19 jeremybenn
# Now try BSD make style include.
10635
if test "$am__include" = "#"; then
10636
   echo '.include "confinc"' > confmf
10637 202 julius
   case `$am_make -s -f confmf 2> /dev/null` in #(
10638
   *the\ am__doit\ target*)
10639
     am__include=.include
10640
     am__quote="\""
10641
     _am_result=BSD
10642
     ;;
10643
   esac
10644 19 jeremybenn
fi
10645
 
10646
 
10647 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10648
$as_echo "$_am_result" >&6; }
10649 19 jeremybenn
rm -f confinc confmf
10650
 
10651 202 julius
@%:@ Check whether --enable-dependency-tracking was given.
10652
if test "${enable_dependency_tracking+set}" = set; then :
10653 19 jeremybenn
  enableval=$enable_dependency_tracking;
10654
fi
10655
 
10656
if test "x$enable_dependency_tracking" != xno; then
10657
  am_depcomp="$ac_aux_dir/depcomp"
10658
  AMDEPBACKSLASH='\'
10659
fi
10660
 if test "x$enable_dependency_tracking" != xno; then
10661
  AMDEP_TRUE=
10662
  AMDEP_FALSE='#'
10663
else
10664
  AMDEP_TRUE='#'
10665
  AMDEP_FALSE=
10666
fi
10667
 
10668
 
10669
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10670
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10671
  # is not polluted with repeated "-I."
10672
  am__isrc=' -I$(srcdir)'
10673
  # test to see if srcdir already configured
10674
  if test -f $srcdir/config.status; then
10675 202 julius
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10676 19 jeremybenn
  fi
10677
fi
10678
 
10679
# test whether we have cygpath
10680
if test -z "$CYGPATH_W"; then
10681
  if (cygpath --version) >/dev/null 2>/dev/null; then
10682
    CYGPATH_W='cygpath -w'
10683
  else
10684
    CYGPATH_W=echo
10685
  fi
10686
fi
10687
 
10688
 
10689
# Define the identity of the package.
10690
 PACKAGE='or1ksim'
10691 538 julius
 VERSION='2011-04-28'
10692 19 jeremybenn
 
10693
 
10694
cat >>confdefs.h <<_ACEOF
10695
@%:@define PACKAGE "$PACKAGE"
10696
_ACEOF
10697
 
10698
 
10699
cat >>confdefs.h <<_ACEOF
10700
@%:@define VERSION "$VERSION"
10701
_ACEOF
10702
 
10703
# Some tools Automake needs.
10704
 
10705
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10706
 
10707
 
10708
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10709
 
10710
 
10711
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10712
 
10713
 
10714
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10715
 
10716
 
10717
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10718
 
10719
# We need awk for the "check" target.  The system "awk" is bad on
10720
# some platforms.
10721
# Always define AMTAR for backward compatibility.
10722
 
10723
AMTAR=${AMTAR-"${am_missing_run}tar"}
10724
 
10725
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
10726
 
10727
 
10728
 
10729
 
10730
depcc="$CC"   am_compiler_list=
10731
 
10732 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10733
$as_echo_n "checking dependency style of $depcc... " >&6; }
10734
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10735
  $as_echo_n "(cached) " >&6
10736 19 jeremybenn
else
10737
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10738
  # We make a subdir and do the tests there.  Otherwise we can end up
10739
  # making bogus files that we don't know about and never remove.  For
10740
  # instance it was reported that on HP-UX the gcc test will end up
10741
  # making a dummy file named `D' -- because `-MD' means `put the output
10742
  # in D'.
10743
  mkdir conftest.dir
10744
  # Copy depcomp to subdir because otherwise we won't find it if we're
10745
  # using a relative directory.
10746
  cp "$am_depcomp" conftest.dir
10747
  cd conftest.dir
10748
  # We will build objects and dependencies in a subdirectory because
10749
  # it helps to detect inapplicable dependency modes.  For instance
10750
  # both Tru64's cc and ICC support -MD to output dependencies as a
10751
  # side effect of compilation, but ICC will put the dependencies in
10752
  # the current directory while Tru64 will put them in the object
10753
  # directory.
10754
  mkdir sub
10755
 
10756
  am_cv_CC_dependencies_compiler_type=none
10757
  if test "$am_compiler_list" = ""; then
10758
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10759
  fi
10760 202 julius
  am__universal=false
10761
  case " $depcc " in #(
10762
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10763
     esac
10764
 
10765 19 jeremybenn
  for depmode in $am_compiler_list; do
10766
    # Setup a source with many dependencies, because some compilers
10767
    # like to wrap large dependency lists on column 80 (with \), and
10768
    # we should not choose a depcomp mode which is confused by this.
10769
    #
10770
    # We need to recreate these files for each test, as the compiler may
10771
    # overwrite some of them when testing with obscure command lines.
10772
    # This happens at least with the AIX C compiler.
10773
    : > sub/conftest.c
10774
    for i in 1 2 3 4 5 6; do
10775
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10776
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10777
      # Solaris 8's {/usr,}/bin/sh.
10778
      touch sub/conftst$i.h
10779
    done
10780
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10781
 
10782 202 julius
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10783
    # mode.  It turns out that the SunPro C++ compiler does not properly
10784
    # handle `-M -o', and we need to detect this.  Also, some Intel
10785
    # versions had trouble with output in subdirs
10786
    am__obj=sub/conftest.${OBJEXT-o}
10787
    am__minus_obj="-o $am__obj"
10788 19 jeremybenn
    case $depmode in
10789 202 julius
    gcc)
10790
      # This depmode causes a compiler race in universal mode.
10791
      test "$am__universal" = false || continue
10792
      ;;
10793 19 jeremybenn
    nosideeffect)
10794
      # after this tag, mechanisms are not by side-effect, so they'll
10795
      # only be used when explicitly requested
10796
      if test "x$enable_dependency_tracking" = xyes; then
10797
        continue
10798
      else
10799
        break
10800
      fi
10801
      ;;
10802 202 julius
    msvisualcpp | msvcmsys)
10803
      # This compiler won't grok `-c -o', but also, the minuso test has
10804
      # not run yet.  These depmodes are late enough in the game, and
10805
      # so weak that their functioning should not be impacted.
10806
      am__obj=conftest.${OBJEXT-o}
10807
      am__minus_obj=
10808
      ;;
10809 19 jeremybenn
    none) break ;;
10810
    esac
10811
    if depmode=$depmode \
10812 202 julius
       source=sub/conftest.c object=$am__obj \
10813 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10814 202 julius
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10815 19 jeremybenn
         >/dev/null 2>conftest.err &&
10816
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10817
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10818 202 julius
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10819 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10820
      # icc doesn't choke on unknown options, it will just issue warnings
10821
      # or remarks (even with -Werror).  So we grep stderr for any message
10822
      # that says an option was ignored or not supported.
10823
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10824
      #   icc: Command line warning: ignoring option '-M'; no argument required
10825
      # The diagnosis changed in icc 8.0:
10826
      #   icc: Command line remark: option '-MP' not supported
10827
      if (grep 'ignoring option' conftest.err ||
10828
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10829
        am_cv_CC_dependencies_compiler_type=$depmode
10830
        break
10831
      fi
10832
    fi
10833
  done
10834
 
10835
  cd ..
10836
  rm -rf conftest.dir
10837
else
10838
  am_cv_CC_dependencies_compiler_type=none
10839
fi
10840
 
10841
fi
10842 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10843
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10844 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10845
 
10846
 if
10847
  test "x$enable_dependency_tracking" != xno \
10848
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10849
  am__fastdepCC_TRUE=
10850
  am__fastdepCC_FALSE='#'
10851
else
10852
  am__fastdepCC_TRUE='#'
10853
  am__fastdepCC_FALSE=
10854
fi
10855
 
10856
 
10857
 
10858 202 julius
 
10859
ac_config_headers="$ac_config_headers config.h"
10860
 
10861
 
10862
 
10863
 
10864
# make sure we are using a recent autoconf version
10865
 
10866
 
10867
# yuck.
10868
case "$target_cpu" in
10869
or32*)  CPU_ARCH=or32;
10870
        ARCH_ISA=OR32;
10871
 
10872
$as_echo "@%:@define OR32_TYPES 1" >>confdefs.h
10873
;;
10874 418 julius
 
10875
*)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown target architecture $target_cpu: OR32 ELF assumed" >&5
10876
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 ELF assumed" >&2;};
10877 202 julius
        CPU_ARCH=or32;
10878
        ARCH_ISA=OR32;
10879
 
10880
$as_echo "@%:@define OR32_TYPES 1" >>confdefs.h
10881
;;
10882
esac
10883
 
10884
# determine endianism from target CPU name. If it has "little" in the name,
10885
# then its litte endian, otherwise its big endian (default for OR1K)
10886
case "$target_cpu" in
10887
*little*)
10888
$as_echo "@%:@define OR32_LITTLE_ENDIAN 1" >>confdefs.h
10889
;;
10890
       *)
10891
$as_echo "@%:@define OR32_BIG_ENDIAN 1" >>confdefs.h
10892
;;
10893
esac
10894
 
10895
 
10896
 
10897 418 julius
# Set the CFLAGS we want. We put the user flags last, so that if the user
10898
# changes the optimization level, that will take precedence.
10899
CFLAGS="-g -Wall -Werror -O2 -D$ARCH_ISA $CFLAGS"
10900 202 julius
 
10901
# By default we simply use the C compiler to build assembly code.
10902
 
10903
test "${CCAS+set}" = set || CCAS=$CC
10904
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10905
 
10906
 
10907
 
10908
depcc="$CCAS"   am_compiler_list=
10909
 
10910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10911
$as_echo_n "checking dependency style of $depcc... " >&6; }
10912
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
10913
  $as_echo_n "(cached) " >&6
10914 19 jeremybenn
else
10915
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10916
  # We make a subdir and do the tests there.  Otherwise we can end up
10917
  # making bogus files that we don't know about and never remove.  For
10918
  # instance it was reported that on HP-UX the gcc test will end up
10919
  # making a dummy file named `D' -- because `-MD' means `put the output
10920
  # in D'.
10921
  mkdir conftest.dir
10922
  # Copy depcomp to subdir because otherwise we won't find it if we're
10923
  # using a relative directory.
10924
  cp "$am_depcomp" conftest.dir
10925
  cd conftest.dir
10926
  # We will build objects and dependencies in a subdirectory because
10927
  # it helps to detect inapplicable dependency modes.  For instance
10928
  # both Tru64's cc and ICC support -MD to output dependencies as a
10929
  # side effect of compilation, but ICC will put the dependencies in
10930
  # the current directory while Tru64 will put them in the object
10931
  # directory.
10932
  mkdir sub
10933
 
10934 202 julius
  am_cv_CCAS_dependencies_compiler_type=none
10935 19 jeremybenn
  if test "$am_compiler_list" = ""; then
10936
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10937
  fi
10938 202 julius
  am__universal=false
10939
 
10940
 
10941 19 jeremybenn
  for depmode in $am_compiler_list; do
10942
    # Setup a source with many dependencies, because some compilers
10943
    # like to wrap large dependency lists on column 80 (with \), and
10944
    # we should not choose a depcomp mode which is confused by this.
10945
    #
10946
    # We need to recreate these files for each test, as the compiler may
10947
    # overwrite some of them when testing with obscure command lines.
10948
    # This happens at least with the AIX C compiler.
10949
    : > sub/conftest.c
10950
    for i in 1 2 3 4 5 6; do
10951
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10952
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10953
      # Solaris 8's {/usr,}/bin/sh.
10954
      touch sub/conftst$i.h
10955
    done
10956
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10957
 
10958 202 julius
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10959
    # mode.  It turns out that the SunPro C++ compiler does not properly
10960
    # handle `-M -o', and we need to detect this.  Also, some Intel
10961
    # versions had trouble with output in subdirs
10962
    am__obj=sub/conftest.${OBJEXT-o}
10963
    am__minus_obj="-o $am__obj"
10964 19 jeremybenn
    case $depmode in
10965 202 julius
    gcc)
10966
      # This depmode causes a compiler race in universal mode.
10967
      test "$am__universal" = false || continue
10968
      ;;
10969 19 jeremybenn
    nosideeffect)
10970
      # after this tag, mechanisms are not by side-effect, so they'll
10971
      # only be used when explicitly requested
10972
      if test "x$enable_dependency_tracking" = xyes; then
10973
        continue
10974
      else
10975
        break
10976
      fi
10977
      ;;
10978 202 julius
    msvisualcpp | msvcmsys)
10979
      # This compiler won't grok `-c -o', but also, the minuso test has
10980
      # not run yet.  These depmodes are late enough in the game, and
10981
      # so weak that their functioning should not be impacted.
10982
      am__obj=conftest.${OBJEXT-o}
10983
      am__minus_obj=
10984
      ;;
10985 19 jeremybenn
    none) break ;;
10986
    esac
10987
    if depmode=$depmode \
10988 202 julius
       source=sub/conftest.c object=$am__obj \
10989 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10990 202 julius
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10991 19 jeremybenn
         >/dev/null 2>conftest.err &&
10992
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10993
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10994 202 julius
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10995 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10996
      # icc doesn't choke on unknown options, it will just issue warnings
10997
      # or remarks (even with -Werror).  So we grep stderr for any message
10998
      # that says an option was ignored or not supported.
10999
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11000
      #   icc: Command line warning: ignoring option '-M'; no argument required
11001
      # The diagnosis changed in icc 8.0:
11002
      #   icc: Command line remark: option '-MP' not supported
11003
      if (grep 'ignoring option' conftest.err ||
11004
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11005 202 julius
        am_cv_CCAS_dependencies_compiler_type=$depmode
11006 19 jeremybenn
        break
11007
      fi
11008
    fi
11009
  done
11010
 
11011
  cd ..
11012
  rm -rf conftest.dir
11013
else
11014 202 julius
  am_cv_CCAS_dependencies_compiler_type=none
11015 19 jeremybenn
fi
11016
 
11017
fi
11018 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11019
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11020
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11021 19 jeremybenn
 
11022
 if
11023
  test "x$enable_dependency_tracking" != xno \
11024 202 julius
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11025
  am__fastdepCCAS_TRUE=
11026
  am__fastdepCCAS_FALSE='#'
11027 19 jeremybenn
else
11028 202 julius
  am__fastdepCCAS_TRUE='#'
11029
  am__fastdepCCAS_FALSE=
11030 19 jeremybenn
fi
11031
 
11032
 
11033
 
11034
ac_ext=c
11035
ac_cpp='$CPP $CPPFLAGS'
11036
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11037
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11038
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11039
if test -n "$ac_tool_prefix"; then
11040
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11041
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11042 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11043
$as_echo_n "checking for $ac_word... " >&6; }
11044
if test "${ac_cv_prog_CC+set}" = set; then :
11045
  $as_echo_n "(cached) " >&6
11046 19 jeremybenn
else
11047
  if test -n "$CC"; then
11048
  ac_cv_prog_CC="$CC" # Let the user override the test.
11049
else
11050
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11051
for as_dir in $PATH
11052
do
11053
  IFS=$as_save_IFS
11054
  test -z "$as_dir" && as_dir=.
11055 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11056 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11057
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11058 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11059 19 jeremybenn
    break 2
11060
  fi
11061
done
11062 202 julius
  done
11063 19 jeremybenn
IFS=$as_save_IFS
11064
 
11065
fi
11066
fi
11067
CC=$ac_cv_prog_CC
11068
if test -n "$CC"; then
11069 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11070
$as_echo "$CC" >&6; }
11071 19 jeremybenn
else
11072 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11073
$as_echo "no" >&6; }
11074 19 jeremybenn
fi
11075
 
11076
 
11077
fi
11078
if test -z "$ac_cv_prog_CC"; then
11079
  ac_ct_CC=$CC
11080
  # Extract the first word of "gcc", so it can be a program name with args.
11081
set dummy gcc; ac_word=$2
11082 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11083
$as_echo_n "checking for $ac_word... " >&6; }
11084
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11085
  $as_echo_n "(cached) " >&6
11086 19 jeremybenn
else
11087
  if test -n "$ac_ct_CC"; then
11088
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11089
else
11090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11091
for as_dir in $PATH
11092
do
11093
  IFS=$as_save_IFS
11094
  test -z "$as_dir" && as_dir=.
11095 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11096 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11097
    ac_cv_prog_ac_ct_CC="gcc"
11098 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11099 19 jeremybenn
    break 2
11100
  fi
11101
done
11102 202 julius
  done
11103 19 jeremybenn
IFS=$as_save_IFS
11104
 
11105
fi
11106
fi
11107
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11108
if test -n "$ac_ct_CC"; then
11109 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11110
$as_echo "$ac_ct_CC" >&6; }
11111 19 jeremybenn
else
11112 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113
$as_echo "no" >&6; }
11114 19 jeremybenn
fi
11115
 
11116
  if test "x$ac_ct_CC" = x; then
11117
    CC=""
11118
  else
11119
    case $cross_compiling:$ac_tool_warned in
11120
yes:)
11121 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11122
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11123 19 jeremybenn
ac_tool_warned=yes ;;
11124
esac
11125
    CC=$ac_ct_CC
11126
  fi
11127
else
11128
  CC="$ac_cv_prog_CC"
11129
fi
11130
 
11131
if test -z "$CC"; then
11132
          if test -n "$ac_tool_prefix"; then
11133
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11134
set dummy ${ac_tool_prefix}cc; ac_word=$2
11135 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11136
$as_echo_n "checking for $ac_word... " >&6; }
11137
if test "${ac_cv_prog_CC+set}" = set; then :
11138
  $as_echo_n "(cached) " >&6
11139 19 jeremybenn
else
11140
  if test -n "$CC"; then
11141
  ac_cv_prog_CC="$CC" # Let the user override the test.
11142
else
11143
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144
for as_dir in $PATH
11145
do
11146
  IFS=$as_save_IFS
11147
  test -z "$as_dir" && as_dir=.
11148 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11149 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11150
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11151 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11152 19 jeremybenn
    break 2
11153
  fi
11154
done
11155 202 julius
  done
11156 19 jeremybenn
IFS=$as_save_IFS
11157
 
11158
fi
11159
fi
11160
CC=$ac_cv_prog_CC
11161
if test -n "$CC"; then
11162 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11163
$as_echo "$CC" >&6; }
11164 19 jeremybenn
else
11165 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11166
$as_echo "no" >&6; }
11167 19 jeremybenn
fi
11168
 
11169
 
11170
  fi
11171
fi
11172
if test -z "$CC"; then
11173
  # Extract the first word of "cc", so it can be a program name with args.
11174
set dummy cc; ac_word=$2
11175 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11176
$as_echo_n "checking for $ac_word... " >&6; }
11177
if test "${ac_cv_prog_CC+set}" = set; then :
11178
  $as_echo_n "(cached) " >&6
11179 19 jeremybenn
else
11180
  if test -n "$CC"; then
11181
  ac_cv_prog_CC="$CC" # Let the user override the test.
11182
else
11183
  ac_prog_rejected=no
11184
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185
for as_dir in $PATH
11186
do
11187
  IFS=$as_save_IFS
11188
  test -z "$as_dir" && as_dir=.
11189 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11190 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11191
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11192
       ac_prog_rejected=yes
11193
       continue
11194
     fi
11195
    ac_cv_prog_CC="cc"
11196 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11197 19 jeremybenn
    break 2
11198
  fi
11199
done
11200 202 julius
  done
11201 19 jeremybenn
IFS=$as_save_IFS
11202
 
11203
if test $ac_prog_rejected = yes; then
11204
  # We found a bogon in the path, so make sure we never use it.
11205
  set dummy $ac_cv_prog_CC
11206
  shift
11207
  if test $@%:@ != 0; then
11208
    # We chose a different compiler from the bogus one.
11209
    # However, it has the same basename, so the bogon will be chosen
11210
    # first if we set CC to just the basename; use the full file name.
11211
    shift
11212
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11213
  fi
11214
fi
11215
fi
11216
fi
11217
CC=$ac_cv_prog_CC
11218
if test -n "$CC"; then
11219 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11220
$as_echo "$CC" >&6; }
11221 19 jeremybenn
else
11222 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223
$as_echo "no" >&6; }
11224 19 jeremybenn
fi
11225
 
11226
 
11227
fi
11228
if test -z "$CC"; then
11229
  if test -n "$ac_tool_prefix"; then
11230
  for ac_prog in cl.exe
11231
  do
11232
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11233
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11234 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11235
$as_echo_n "checking for $ac_word... " >&6; }
11236
if test "${ac_cv_prog_CC+set}" = set; then :
11237
  $as_echo_n "(cached) " >&6
11238 19 jeremybenn
else
11239
  if test -n "$CC"; then
11240
  ac_cv_prog_CC="$CC" # Let the user override the test.
11241
else
11242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243
for as_dir in $PATH
11244
do
11245
  IFS=$as_save_IFS
11246
  test -z "$as_dir" && as_dir=.
11247 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11248 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11249
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11250 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11251 19 jeremybenn
    break 2
11252
  fi
11253
done
11254 202 julius
  done
11255 19 jeremybenn
IFS=$as_save_IFS
11256
 
11257
fi
11258
fi
11259
CC=$ac_cv_prog_CC
11260
if test -n "$CC"; then
11261 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11262
$as_echo "$CC" >&6; }
11263 19 jeremybenn
else
11264 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265
$as_echo "no" >&6; }
11266 19 jeremybenn
fi
11267
 
11268
 
11269
    test -n "$CC" && break
11270
  done
11271
fi
11272
if test -z "$CC"; then
11273
  ac_ct_CC=$CC
11274
  for ac_prog in cl.exe
11275
do
11276
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11277
set dummy $ac_prog; ac_word=$2
11278 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279
$as_echo_n "checking for $ac_word... " >&6; }
11280
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11281
  $as_echo_n "(cached) " >&6
11282 19 jeremybenn
else
11283
  if test -n "$ac_ct_CC"; then
11284
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11285
else
11286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287
for as_dir in $PATH
11288
do
11289
  IFS=$as_save_IFS
11290
  test -z "$as_dir" && as_dir=.
11291 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11292 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11293
    ac_cv_prog_ac_ct_CC="$ac_prog"
11294 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11295 19 jeremybenn
    break 2
11296
  fi
11297
done
11298 202 julius
  done
11299 19 jeremybenn
IFS=$as_save_IFS
11300
 
11301
fi
11302
fi
11303
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11304
if test -n "$ac_ct_CC"; then
11305 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11306
$as_echo "$ac_ct_CC" >&6; }
11307 19 jeremybenn
else
11308 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309
$as_echo "no" >&6; }
11310 19 jeremybenn
fi
11311
 
11312
 
11313
  test -n "$ac_ct_CC" && break
11314
done
11315
 
11316
  if test "x$ac_ct_CC" = x; then
11317
    CC=""
11318
  else
11319
    case $cross_compiling:$ac_tool_warned in
11320
yes:)
11321 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11322
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11323 19 jeremybenn
ac_tool_warned=yes ;;
11324
esac
11325
    CC=$ac_ct_CC
11326
  fi
11327
fi
11328
 
11329
fi
11330
 
11331
 
11332 202 julius
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11333
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11334
as_fn_error "no acceptable C compiler found in \$PATH
11335
See \`config.log' for more details." "$LINENO" 5; }
11336 19 jeremybenn
 
11337
# Provide some information about the compiler.
11338 202 julius
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11339
set X $ac_compile
11340
ac_compiler=$2
11341
for ac_option in --version -v -V -qversion; do
11342
  { { ac_try="$ac_compiler $ac_option >&5"
11343 19 jeremybenn
case "(($ac_try" in
11344
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345
  *) ac_try_echo=$ac_try;;
11346
esac
11347 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11348
$as_echo "$ac_try_echo"; } >&5
11349
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11350 19 jeremybenn
  ac_status=$?
11351 202 julius
  if test -s conftest.err; then
11352
    sed '10a\
11353
... rest of stderr output deleted ...
11354
         10q' conftest.err >conftest.er1
11355
    cat conftest.er1 >&5
11356
    rm -f conftest.er1 conftest.err
11357
  fi
11358
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11359
  test $ac_status = 0; }
11360
done
11361 19 jeremybenn
 
11362 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11363
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11364
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11365
  $as_echo_n "(cached) " >&6
11366 19 jeremybenn
else
11367 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368 19 jeremybenn
/* end confdefs.h.  */
11369
 
11370
int
11371
main ()
11372
{
11373
#ifndef __GNUC__
11374
       choke me
11375
#endif
11376
 
11377
  ;
11378
  return 0;
11379
}
11380
_ACEOF
11381 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
11382 19 jeremybenn
  ac_compiler_gnu=yes
11383
else
11384 202 julius
  ac_compiler_gnu=no
11385 19 jeremybenn
fi
11386
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11387
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11388
 
11389
fi
11390 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11391
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11392
if test $ac_compiler_gnu = yes; then
11393
  GCC=yes
11394
else
11395
  GCC=
11396
fi
11397 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
11398
ac_save_CFLAGS=$CFLAGS
11399 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11400
$as_echo_n "checking whether $CC accepts -g... " >&6; }
11401
if test "${ac_cv_prog_cc_g+set}" = set; then :
11402
  $as_echo_n "(cached) " >&6
11403 19 jeremybenn
else
11404
  ac_save_c_werror_flag=$ac_c_werror_flag
11405
   ac_c_werror_flag=yes
11406
   ac_cv_prog_cc_g=no
11407
   CFLAGS="-g"
11408 202 julius
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 19 jeremybenn
/* end confdefs.h.  */
11410
 
11411
int
11412
main ()
11413
{
11414
 
11415
  ;
11416
  return 0;
11417
}
11418
_ACEOF
11419 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
11420 19 jeremybenn
  ac_cv_prog_cc_g=yes
11421
else
11422 202 julius
  CFLAGS=""
11423
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424 19 jeremybenn
/* end confdefs.h.  */
11425
 
11426
int
11427
main ()
11428
{
11429
 
11430
  ;
11431
  return 0;
11432
}
11433
_ACEOF
11434 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
11435
 
11436 19 jeremybenn
else
11437 202 julius
  ac_c_werror_flag=$ac_save_c_werror_flag
11438 19 jeremybenn
         CFLAGS="-g"
11439 202 julius
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 19 jeremybenn
/* end confdefs.h.  */
11441
 
11442
int
11443
main ()
11444
{
11445
 
11446
  ;
11447
  return 0;
11448
}
11449
_ACEOF
11450 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
11451 19 jeremybenn
  ac_cv_prog_cc_g=yes
11452
fi
11453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
   ac_c_werror_flag=$ac_save_c_werror_flag
11459
fi
11460 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11461
$as_echo "$ac_cv_prog_cc_g" >&6; }
11462 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
11463
  CFLAGS=$ac_save_CFLAGS
11464
elif test $ac_cv_prog_cc_g = yes; then
11465
  if test "$GCC" = yes; then
11466
    CFLAGS="-g -O2"
11467
  else
11468
    CFLAGS="-g"
11469
  fi
11470
else
11471
  if test "$GCC" = yes; then
11472
    CFLAGS="-O2"
11473
  else
11474
    CFLAGS=
11475
  fi
11476
fi
11477 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11478
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11479
if test "${ac_cv_prog_cc_c89+set}" = set; then :
11480
  $as_echo_n "(cached) " >&6
11481 19 jeremybenn
else
11482
  ac_cv_prog_cc_c89=no
11483
ac_save_CC=$CC
11484 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 19 jeremybenn
/* end confdefs.h.  */
11486
#include 
11487
#include 
11488
#include 
11489
#include 
11490
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11491
struct buf { int x; };
11492
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11493
static char *e (p, i)
11494
     char **p;
11495
     int i;
11496
{
11497
  return p[i];
11498
}
11499
static char *f (char * (*g) (char **, int), char **p, ...)
11500
{
11501
  char *s;
11502
  va_list v;
11503
  va_start (v,p);
11504
  s = g (p, va_arg (v,int));
11505
  va_end (v);
11506
  return s;
11507
}
11508
 
11509
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11510
   function prototypes and stuff, but not '\xHH' hex character constants.
11511
   These don't provoke an error unfortunately, instead are silently treated
11512
   as 'x'.  The following induces an error, until -std is added to get
11513
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11514
   array size at least.  It's necessary to write '\x00'==0 to get something
11515
   that's true only with -std.  */
11516
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11517
 
11518
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11519
   inside strings and character constants.  */
11520
#define FOO(x) 'x'
11521
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11522
 
11523
int test (int i, double x);
11524
struct s1 {int (*f) (int a);};
11525
struct s2 {int (*f) (double a);};
11526
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11527
int argc;
11528
char **argv;
11529
int
11530
main ()
11531
{
11532
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11533
  ;
11534
  return 0;
11535
}
11536
_ACEOF
11537
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11538
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11539
do
11540
  CC="$ac_save_CC $ac_arg"
11541 202 julius
  if ac_fn_c_try_compile "$LINENO"; then :
11542 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
11543
fi
11544 202 julius
rm -f core conftest.err conftest.$ac_objext
11545 19 jeremybenn
  test "x$ac_cv_prog_cc_c89" != "xno" && break
11546
done
11547
rm -f conftest.$ac_ext
11548
CC=$ac_save_CC
11549
 
11550
fi
11551
# AC_CACHE_VAL
11552
case "x$ac_cv_prog_cc_c89" in
11553
  x)
11554 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11555
$as_echo "none needed" >&6; } ;;
11556 19 jeremybenn
  xno)
11557 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11558
$as_echo "unsupported" >&6; } ;;
11559 19 jeremybenn
  *)
11560
    CC="$CC $ac_cv_prog_cc_c89"
11561 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11562
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11563 19 jeremybenn
esac
11564 202 julius
if test "x$ac_cv_prog_cc_c89" != xno; then :
11565
 
11566
fi
11567 19 jeremybenn
 
11568
ac_ext=c
11569
ac_cpp='$CPP $CPPFLAGS'
11570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11573
 
11574
if test "x$CC" != xcc; then
11575 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11576
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11577 19 jeremybenn
else
11578 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11579
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11580 19 jeremybenn
fi
11581 202 julius
set dummy $CC; ac_cc=`$as_echo "$2" |
11582 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11583 202 julius
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11584
  $as_echo_n "(cached) " >&6
11585 19 jeremybenn
else
11586 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 19 jeremybenn
/* end confdefs.h.  */
11588
 
11589
int
11590
main ()
11591
{
11592
 
11593
  ;
11594
  return 0;
11595
}
11596
_ACEOF
11597
# Make sure it works both with $CC and with simple cc.
11598
# We do the test twice because some compilers refuse to overwrite an
11599
# existing .o file with -o, though they will create one.
11600
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11601
rm -f conftest2.*
11602 202 julius
if { { case "(($ac_try" in
11603 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604
  *) ac_try_echo=$ac_try;;
11605
esac
11606 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11607
$as_echo "$ac_try_echo"; } >&5
11608 19 jeremybenn
  (eval "$ac_try") 2>&5
11609
  ac_status=$?
11610 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11611
  test $ac_status = 0; } &&
11612
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11613 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614
  *) ac_try_echo=$ac_try;;
11615
esac
11616 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11617
$as_echo "$ac_try_echo"; } >&5
11618 19 jeremybenn
  (eval "$ac_try") 2>&5
11619
  ac_status=$?
11620 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11621
  test $ac_status = 0; };
11622 19 jeremybenn
then
11623
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11624
  if test "x$CC" != xcc; then
11625
    # Test first that cc exists at all.
11626
    if { ac_try='cc -c conftest.$ac_ext >&5'
11627 202 julius
  { { case "(($ac_try" in
11628 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629
  *) ac_try_echo=$ac_try;;
11630
esac
11631 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11632
$as_echo "$ac_try_echo"; } >&5
11633 19 jeremybenn
  (eval "$ac_try") 2>&5
11634
  ac_status=$?
11635 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11636
  test $ac_status = 0; }; }; then
11637 19 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11638
      rm -f conftest2.*
11639 202 julius
      if { { case "(($ac_try" in
11640 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641
  *) ac_try_echo=$ac_try;;
11642
esac
11643 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11644
$as_echo "$ac_try_echo"; } >&5
11645 19 jeremybenn
  (eval "$ac_try") 2>&5
11646
  ac_status=$?
11647 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11648
  test $ac_status = 0; } &&
11649
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
11650 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651
  *) ac_try_echo=$ac_try;;
11652
esac
11653 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11654
$as_echo "$ac_try_echo"; } >&5
11655 19 jeremybenn
  (eval "$ac_try") 2>&5
11656
  ac_status=$?
11657 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11658
  test $ac_status = 0; };
11659 19 jeremybenn
      then
11660
        # cc works too.
11661
        :
11662
      else
11663
        # cc exists but doesn't like -o.
11664
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
11665
      fi
11666
    fi
11667
  fi
11668
else
11669
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11670
fi
11671
rm -f core conftest*
11672
 
11673
fi
11674
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11675 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11676
$as_echo "yes" >&6; }
11677 19 jeremybenn
else
11678 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679
$as_echo "no" >&6; }
11680 19 jeremybenn
 
11681 202 julius
$as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11682 19 jeremybenn
 
11683
fi
11684
 
11685
# FIXME: we rely on the cache variable name because
11686
# there is no other way.
11687
set dummy $CC
11688 202 julius
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11689
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11690
if test "$am_t" != yes; then
11691 19 jeremybenn
   # Losing compiler, so override with the script.
11692
   # FIXME: It is wrong to rewrite CC.
11693
   # But if we don't then we get into trouble of one sort or another.
11694
   # A longer-term fix would be to have automake use am__CC in this case,
11695
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11696
   CC="$am_aux_dir/compile $CC"
11697
fi
11698
 
11699
 
11700
 
11701 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11702
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11703
set x ${MAKE-make}
11704
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11705
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11706
  $as_echo_n "(cached) " >&6
11707 19 jeremybenn
else
11708
  cat >conftest.make <<\_ACEOF
11709
SHELL = /bin/sh
11710
all:
11711
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11712
_ACEOF
11713
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11714
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11715
  *@@@%%%=?*=@@@%%%*)
11716
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11717
  *)
11718
    eval ac_cv_prog_make_${ac_make}_set=no;;
11719
esac
11720
rm -f conftest.make
11721
fi
11722
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11723 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724
$as_echo "yes" >&6; }
11725 19 jeremybenn
  SET_MAKE=
11726
else
11727 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728
$as_echo "no" >&6; }
11729 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11730
fi
11731
 
11732
 
11733
 
11734
# Extract the first word of "ar", so it can be a program name with args.
11735
set dummy ar; ac_word=$2
11736 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737
$as_echo_n "checking for $ac_word... " >&6; }
11738
if test "${ac_cv_prog_AR+set}" = set; then :
11739
  $as_echo_n "(cached) " >&6
11740 19 jeremybenn
else
11741
  if test -n "$AR"; then
11742
  ac_cv_prog_AR="$AR" # Let the user override the test.
11743
else
11744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745
for as_dir in $PATH
11746
do
11747
  IFS=$as_save_IFS
11748
  test -z "$as_dir" && as_dir=.
11749 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11750 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11751
    ac_cv_prog_AR="ar"
11752 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 19 jeremybenn
    break 2
11754
  fi
11755
done
11756 202 julius
  done
11757 19 jeremybenn
IFS=$as_save_IFS
11758
 
11759
fi
11760
fi
11761
AR=$ac_cv_prog_AR
11762
if test -n "$AR"; then
11763 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11764
$as_echo "$AR" >&6; }
11765 19 jeremybenn
else
11766 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767
$as_echo "no" >&6; }
11768 19 jeremybenn
fi
11769
 
11770
 
11771 60 jeremybenn
 
11772 19 jeremybenn
# Set default for ARFLAGS, since autoconf does not have a macro for it.
11773
# This allows people to set it when running configure or make
11774
test -n "$ARFLAGS" || ARFLAGS="cr"
11775
 
11776 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11777
$as_echo_n "checking return type of signal handlers... " >&6; }
11778
if test "${ac_cv_type_signal+set}" = set; then :
11779
  $as_echo_n "(cached) " >&6
11780 19 jeremybenn
else
11781 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782 19 jeremybenn
/* end confdefs.h.  */
11783
#include 
11784
#include 
11785
 
11786
int
11787
main ()
11788
{
11789
return *(signal (0, 0)) (0) == 1;
11790
  ;
11791
  return 0;
11792
}
11793
_ACEOF
11794 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
11795 19 jeremybenn
  ac_cv_type_signal=int
11796
else
11797 202 julius
  ac_cv_type_signal=void
11798 19 jeremybenn
fi
11799
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11800
fi
11801 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11802
$as_echo "$ac_cv_type_signal" >&6; }
11803 19 jeremybenn
 
11804
cat >>confdefs.h <<_ACEOF
11805
@%:@define RETSIGTYPE $ac_cv_type_signal
11806
_ACEOF
11807
 
11808
 
11809 418 julius
for ac_header in unistd.h stdlib.h stdarg.h string.h strings.h      \
11810 202 julius
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
11811
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
11812
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h  \
11813 538 julius
                 limits.h linux/if_tun.h
11814 202 julius
do :
11815
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11816
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11817
eval as_val=\$$as_ac_Header
11818
   if test "x$as_val" = x""yes; then :
11819 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11820 202 julius
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11821 19 jeremybenn
_ACEOF
11822 202 julius
 
11823 19 jeremybenn
fi
11824
 
11825
done
11826
 
11827
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
11828 202 julius
do :
11829
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11830
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11831
eval as_val=\$$as_ac_var
11832
   if test "x$as_val" = x""yes; then :
11833 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11834 202 julius
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11835 19 jeremybenn
_ACEOF
11836
 
11837
fi
11838
done
11839
 
11840 202 julius
for ac_func in grantpt unlockpt ptsname on_exit
11841
do :
11842
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11843
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11844
eval as_val=\$$as_ac_var
11845
   if test "x$as_val" = x""yes; then :
11846 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11847 202 julius
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11848 19 jeremybenn
_ACEOF
11849
 
11850
fi
11851
done
11852
 
11853 60 jeremybenn
for ac_func in basename
11854 202 julius
do :
11855
  ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
11856
if test "x$ac_cv_func_basename" = x""yes; then :
11857 60 jeremybenn
  cat >>confdefs.h <<_ACEOF
11858 202 julius
@%:@define HAVE_BASENAME 1
11859 60 jeremybenn
_ACEOF
11860
 
11861
fi
11862
done
11863
 
11864 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
11865
$as_echo_n "checking for working strcoll... " >&6; }
11866
if test "${ac_cv_func_strcoll_works+set}" = set; then :
11867
  $as_echo_n "(cached) " >&6
11868 19 jeremybenn
else
11869 202 julius
  if test "$cross_compiling" = yes; then :
11870 19 jeremybenn
  ac_cv_func_strcoll_works=no
11871
else
11872 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 19 jeremybenn
/* end confdefs.h.  */
11874
$ac_includes_default
11875
int
11876
main ()
11877
{
11878
return (strcoll ("abc", "def") >= 0 ||
11879
         strcoll ("ABC", "DEF") >= 0 ||
11880
         strcoll ("123", "456") >= 0)
11881
  ;
11882
  return 0;
11883
}
11884
_ACEOF
11885 202 julius
if ac_fn_c_try_run "$LINENO"; then :
11886 19 jeremybenn
  ac_cv_func_strcoll_works=yes
11887
else
11888 202 julius
  ac_cv_func_strcoll_works=no
11889 19 jeremybenn
fi
11890 202 julius
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11891
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11892 19 jeremybenn
fi
11893
 
11894
fi
11895 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
11896
$as_echo "$ac_cv_func_strcoll_works" >&6; }
11897 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
11898
 
11899 202 julius
$as_echo "@%:@define HAVE_STRCOLL 1" >>confdefs.h
11900 19 jeremybenn
 
11901
fi
11902
 
11903 202 julius
ac_fn_c_check_decl "$LINENO" "I_PUSH" "ac_cv_have_decl_I_PUSH" "\
11904
               #include 
11905
"
11906
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then :
11907
  ac_have_decl=1
11908 60 jeremybenn
else
11909 202 julius
  ac_have_decl=0
11910
fi
11911 19 jeremybenn
 
11912 202 julius
cat >>confdefs.h <<_ACEOF
11913
@%:@define HAVE_DECL_I_PUSH $ac_have_decl
11914 60 jeremybenn
_ACEOF
11915 202 julius
ac_fn_c_check_decl "$LINENO" "rl_event_hook" "ac_cv_have_decl_rl_event_hook" "\
11916
               #include 
11917
"
11918
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then :
11919
  ac_have_decl=1
11920 60 jeremybenn
else
11921 202 julius
  ac_have_decl=0
11922 60 jeremybenn
fi
11923 19 jeremybenn
 
11924 202 julius
cat >>confdefs.h <<_ACEOF
11925
@%:@define HAVE_DECL_RL_EVENT_HOOK $ac_have_decl
11926 60 jeremybenn
_ACEOF
11927 19 jeremybenn
 
11928 202 julius
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11929
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11930
if test "${ac_cv_c_bigendian+set}" = set; then :
11931
  $as_echo_n "(cached) " >&6
11932 60 jeremybenn
else
11933 202 julius
  ac_cv_c_bigendian=unknown
11934
    # See if we're dealing with a universal compiler.
11935
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936 60 jeremybenn
/* end confdefs.h.  */
11937 202 julius
#ifndef __APPLE_CC__
11938
               not a universal capable compiler
11939
             #endif
11940
             typedef int dummy;
11941
 
11942 60 jeremybenn
_ACEOF
11943 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
11944
 
11945
        # Check for potential -arch flags.  It is not universal unless
11946
        # there are at least two -arch flags with different values.
11947
        ac_arch=
11948
        ac_prev=
11949
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11950
         if test -n "$ac_prev"; then
11951
           case $ac_word in
11952
             i?86 | x86_64 | ppc | ppc64)
11953
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11954
                 ac_arch=$ac_word
11955
               else
11956
                 ac_cv_c_bigendian=universal
11957
                 break
11958
               fi
11959
               ;;
11960
           esac
11961
           ac_prev=
11962
         elif test "x$ac_word" = "x-arch"; then
11963
           ac_prev=arch
11964
         fi
11965
       done
11966 60 jeremybenn
fi
11967 202 julius
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11968
    if test $ac_cv_c_bigendian = unknown; then
11969
      # See if sys/param.h defines the BYTE_ORDER macro.
11970
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 60 jeremybenn
/* end confdefs.h.  */
11972 202 julius
#include 
11973
             #include 
11974
 
11975 60 jeremybenn
int
11976
main ()
11977
{
11978 202 julius
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11979
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11980
                     && LITTLE_ENDIAN)
11981
              bogus endian macros
11982
             #endif
11983
 
11984
  ;
11985 60 jeremybenn
  return 0;
11986
}
11987
_ACEOF
11988 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
11989
  # It does; now see whether it defined to BIG_ENDIAN or not.
11990
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 19 jeremybenn
/* end confdefs.h.  */
11992 202 julius
#include 
11993
                #include 
11994
 
11995 60 jeremybenn
int
11996
main ()
11997
{
11998 202 julius
#if BYTE_ORDER != BIG_ENDIAN
11999
                 not big endian
12000
                #endif
12001
 
12002 60 jeremybenn
  ;
12003
  return 0;
12004
}
12005
_ACEOF
12006 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
12007
  ac_cv_c_bigendian=yes
12008 60 jeremybenn
else
12009 202 julius
  ac_cv_c_bigendian=no
12010 60 jeremybenn
fi
12011
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012
fi
12013 202 julius
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014
    fi
12015
    if test $ac_cv_c_bigendian = unknown; then
12016
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12017
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018 19 jeremybenn
/* end confdefs.h.  */
12019 202 julius
#include 
12020
 
12021 19 jeremybenn
int
12022
main ()
12023
{
12024 202 julius
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12025
              bogus endian macros
12026
             #endif
12027
 
12028 19 jeremybenn
  ;
12029
  return 0;
12030
}
12031
_ACEOF
12032 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
12033
  # It does; now see whether it defined to _BIG_ENDIAN or not.
12034
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 19 jeremybenn
/* end confdefs.h.  */
12036 202 julius
#include 
12037
 
12038 19 jeremybenn
int
12039
main ()
12040
{
12041 202 julius
#ifndef _BIG_ENDIAN
12042
                 not big endian
12043
                #endif
12044
 
12045 19 jeremybenn
  ;
12046
  return 0;
12047
}
12048
_ACEOF
12049 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
12050 19 jeremybenn
  ac_cv_c_bigendian=yes
12051
else
12052 202 julius
  ac_cv_c_bigendian=no
12053 19 jeremybenn
fi
12054
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055 202 julius
fi
12056
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057
    fi
12058
    if test $ac_cv_c_bigendian = unknown; then
12059
      # Compile a test program.
12060
      if test "$cross_compiling" = yes; then :
12061
  # Try to guess by grepping values from an object file.
12062
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 19 jeremybenn
/* end confdefs.h.  */
12064 202 julius
short int ascii_mm[] =
12065
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12066
                short int ascii_ii[] =
12067
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12068
                int use_ascii (int i) {
12069
                  return ascii_mm[i] + ascii_ii[i];
12070
                }
12071
                short int ebcdic_ii[] =
12072
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12073
                short int ebcdic_mm[] =
12074
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12075
                int use_ebcdic (int i) {
12076
                  return ebcdic_mm[i] + ebcdic_ii[i];
12077
                }
12078
                extern int foo;
12079
 
12080 19 jeremybenn
int
12081
main ()
12082
{
12083 202 julius
return use_ascii (foo) == use_ebcdic (foo);
12084 19 jeremybenn
  ;
12085
  return 0;
12086
}
12087
_ACEOF
12088 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
12089
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12090
              ac_cv_c_bigendian=yes
12091
            fi
12092
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12093
              if test "$ac_cv_c_bigendian" = unknown; then
12094
                ac_cv_c_bigendian=no
12095
              else
12096
                # finding both strings is unlikely to happen, but who knows?
12097
                ac_cv_c_bigendian=unknown
12098
              fi
12099
            fi
12100 19 jeremybenn
fi
12101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102
else
12103 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 19 jeremybenn
/* end confdefs.h.  */
12105
$ac_includes_default
12106
int
12107
main ()
12108
{
12109
 
12110 202 julius
             /* Are we little or big endian?  From Harbison&Steele.  */
12111
             union
12112
             {
12113
               long int l;
12114
               char c[sizeof (long int)];
12115
             } u;
12116
             u.l = 1;
12117
             return u.c[sizeof (long int) - 1] == 1;
12118
 
12119 19 jeremybenn
  ;
12120
  return 0;
12121
}
12122
_ACEOF
12123 202 julius
if ac_fn_c_try_run "$LINENO"; then :
12124 19 jeremybenn
  ac_cv_c_bigendian=no
12125
else
12126 202 julius
  ac_cv_c_bigendian=yes
12127 19 jeremybenn
fi
12128 202 julius
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12129
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12130 19 jeremybenn
fi
12131
 
12132 202 julius
    fi
12133 19 jeremybenn
fi
12134 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12135
$as_echo "$ac_cv_c_bigendian" >&6; }
12136
 case $ac_cv_c_bigendian in #(
12137
   yes)
12138
     $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
12139
;; #(
12140
   no)
12141
      ;; #(
12142
   universal)
12143
 
12144
$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12145 19 jeremybenn
 
12146 202 julius
     ;; #(
12147
   *)
12148
     as_fn_error "unknown endianness
12149
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12150
 esac
12151 19 jeremybenn
 
12152
 
12153 202 julius
# The test for strndup, strcasecmp and isblank fails on modern machines. I
12154
# think it's because GCC 4 does not like the way autoconf overrides the built
12155
# in type declaration. So we must check for them by steam.
12156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strndup" >&5
12157
$as_echo_n "checking for strndup... " >&6; }
12158
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 60 jeremybenn
/* end confdefs.h.  */
12160 202 julius
#ifdef HAVE_STRING_H
12161
                                  #include 
12162
                                  #else
12163
                                  char *strndup (const char *s,
12164
                                                 size_t      n);
12165
                                  #endif
12166 60 jeremybenn
int
12167
main ()
12168
{
12169 202 julius
\
12170
                                const char *s = "test";
12171
                                  char       *t;
12172
                                  t = strndup (s, 3);
12173 60 jeremybenn
  ;
12174
  return 0;
12175
}
12176
_ACEOF
12177 202 julius
if ac_fn_c_try_link "$LINENO"; then :
12178
  \
12179
 
12180
$as_echo "@%:@define HAVE_STRNDUP 1" >>confdefs.h
12181
 \
12182
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12183
$as_echo "yes" >&6; }
12184 60 jeremybenn
else
12185 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186
$as_echo "no" >&6; }
12187 60 jeremybenn
fi
12188 202 julius
rm -f core conftest.err conftest.$ac_objext \
12189
    conftest$ac_exeext conftest.$ac_ext
12190 60 jeremybenn
 
12191 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp" >&5
12192
$as_echo_n "checking for strcasecmp... " >&6; }
12193
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194
/* end confdefs.h.  */
12195
#ifdef HAVE_STRINGS_H
12196
                                  #include 
12197
                                  #else
12198
                                  int strcasecmp (const char *s1,
12199
                                                  const char *s2);
12200
                                  #endif
12201
int
12202
main ()
12203
{
12204
\
12205
                                const char *s = "test";
12206
                                  const char *t = "TEST";
12207
                                  int         res;
12208
                                  res = strcasecmp (s, t);
12209
  ;
12210
  return 0;
12211
}
12212 60 jeremybenn
_ACEOF
12213 202 julius
if ac_fn_c_try_link "$LINENO"; then :
12214
  \
12215
 
12216
$as_echo "@%:@define HAVE_STRCASECMP 1" >>confdefs.h
12217
 \
12218
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12219
$as_echo "yes" >&6; }
12220
else
12221
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222
$as_echo "no" >&6; }
12223 60 jeremybenn
fi
12224 202 julius
rm -f core conftest.err conftest.$ac_objext \
12225
    conftest$ac_exeext conftest.$ac_ext
12226 60 jeremybenn
 
12227 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
12228
$as_echo_n "checking for isblank... " >&6; }
12229
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230 60 jeremybenn
/* end confdefs.h.  */
12231 202 julius
#ifdef HAVE_CTYPE_H
12232
                                  #include 
12233
                                  #else
12234
                                  int isblank (int  c);
12235
                                  #endif
12236 60 jeremybenn
int
12237
main ()
12238
{
12239 202 julius
\
12240
                                return isblank ('x');
12241 60 jeremybenn
  ;
12242
  return 0;
12243
}
12244
_ACEOF
12245 202 julius
if ac_fn_c_try_link "$LINENO"; then :
12246
  \
12247
 
12248
$as_echo "@%:@define HAVE_ISBLANK 1" >>confdefs.h
12249
 \
12250
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12251
$as_echo "yes" >&6; }
12252 60 jeremybenn
else
12253 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254
$as_echo "no" >&6; }
12255 60 jeremybenn
fi
12256 202 julius
rm -f core conftest.err conftest.$ac_objext \
12257
    conftest$ac_exeext conftest.$ac_ext
12258 60 jeremybenn
 
12259 202 julius
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
12260
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12261
if test "x$ac_cv_type_size_t" = x""yes; then :
12262
 
12263 60 jeremybenn
else
12264
 
12265
cat >>confdefs.h <<_ACEOF
12266
@%:@define size_t unsigned int
12267
_ACEOF
12268
 
12269
fi
12270
 
12271 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12272
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12273
if test "${ac_cv_struct_tm+set}" = set; then :
12274
  $as_echo_n "(cached) " >&6
12275 60 jeremybenn
else
12276 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 60 jeremybenn
/* end confdefs.h.  */
12278
#include 
12279
#include 
12280
 
12281
int
12282
main ()
12283
{
12284
struct tm tm;
12285
                                     int *p = &tm.tm_sec;
12286 202 julius
                                     return !p;
12287 60 jeremybenn
  ;
12288
  return 0;
12289
}
12290
_ACEOF
12291 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
12292 60 jeremybenn
  ac_cv_struct_tm=time.h
12293
else
12294 202 julius
  ac_cv_struct_tm=sys/time.h
12295 60 jeremybenn
fi
12296
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12297
fi
12298 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12299
$as_echo "$ac_cv_struct_tm" >&6; }
12300 60 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
12301
 
12302 202 julius
$as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h
12303 60 jeremybenn
 
12304
fi
12305
 
12306
 
12307
# Checks for library functions (for argtable2).
12308
for ac_header in stdlib.h
12309 202 julius
do :
12310
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12311
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12312 60 jeremybenn
  cat >>confdefs.h <<_ACEOF
12313 202 julius
@%:@define HAVE_STDLIB_H 1
12314 60 jeremybenn
_ACEOF
12315
 
12316
fi
12317
 
12318
done
12319
 
12320 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12321
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12322
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
12323
  $as_echo_n "(cached) " >&6
12324 60 jeremybenn
else
12325 202 julius
  if test "$cross_compiling" = yes; then :
12326 60 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
12327
else
12328 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329 60 jeremybenn
/* end confdefs.h.  */
12330
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
12331
# include 
12332
#else
12333
char *malloc ();
12334
#endif
12335
 
12336
int
12337
main ()
12338
{
12339
return ! malloc (0);
12340
  ;
12341
  return 0;
12342
}
12343
_ACEOF
12344 202 julius
if ac_fn_c_try_run "$LINENO"; then :
12345 60 jeremybenn
  ac_cv_func_malloc_0_nonnull=yes
12346
else
12347 202 julius
  ac_cv_func_malloc_0_nonnull=no
12348 60 jeremybenn
fi
12349 202 julius
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12350
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12351 60 jeremybenn
fi
12352
 
12353
fi
12354 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12355
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12356
if test $ac_cv_func_malloc_0_nonnull = yes; then :
12357 60 jeremybenn
 
12358 202 julius
$as_echo "@%:@define HAVE_MALLOC 1" >>confdefs.h
12359 60 jeremybenn
 
12360
else
12361 202 julius
  $as_echo "@%:@define HAVE_MALLOC 0" >>confdefs.h
12362 60 jeremybenn
 
12363
   case " $LIB@&t@OBJS " in
12364
  *" malloc.$ac_objext "* ) ;;
12365
  *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
12366
 ;;
12367
esac
12368
 
12369
 
12370 202 julius
$as_echo "@%:@define malloc rpl_malloc" >>confdefs.h
12371 60 jeremybenn
 
12372
fi
12373
 
12374
 
12375
for ac_func in strftime
12376 202 julius
do :
12377
  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12378
if test "x$ac_cv_func_strftime" = x""yes; then :
12379 60 jeremybenn
  cat >>confdefs.h <<_ACEOF
12380 202 julius
@%:@define HAVE_STRFTIME 1
12381 60 jeremybenn
_ACEOF
12382
 
12383
else
12384
  # strftime is in -lintl on SCO UNIX.
12385 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12386
$as_echo_n "checking for strftime in -lintl... " >&6; }
12387
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12388
  $as_echo_n "(cached) " >&6
12389 60 jeremybenn
else
12390
  ac_check_lib_save_LIBS=$LIBS
12391
LIBS="-lintl  $LIBS"
12392 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393 60 jeremybenn
/* end confdefs.h.  */
12394
 
12395
/* Override any GCC internal prototype to avoid an error.
12396
   Use char because int might match the return type of a GCC
12397
   builtin and then its argument prototype would still apply.  */
12398
#ifdef __cplusplus
12399
extern "C"
12400
#endif
12401
char strftime ();
12402
int
12403
main ()
12404
{
12405
return strftime ();
12406
  ;
12407
  return 0;
12408
}
12409
_ACEOF
12410 202 julius
if ac_fn_c_try_link "$LINENO"; then :
12411 60 jeremybenn
  ac_cv_lib_intl_strftime=yes
12412
else
12413 202 julius
  ac_cv_lib_intl_strftime=no
12414 60 jeremybenn
fi
12415 202 julius
rm -f core conftest.err conftest.$ac_objext \
12416
    conftest$ac_exeext conftest.$ac_ext
12417 60 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12418
fi
12419 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12420
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12421
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12422
  $as_echo "@%:@define HAVE_STRFTIME 1" >>confdefs.h
12423 60 jeremybenn
 
12424
LIBS="-lintl $LIBS"
12425
fi
12426
 
12427
fi
12428
done
12429
 
12430 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12431
$as_echo_n "checking for working strtod... " >&6; }
12432
if test "${ac_cv_func_strtod+set}" = set; then :
12433
  $as_echo_n "(cached) " >&6
12434 60 jeremybenn
else
12435 202 julius
  if test "$cross_compiling" = yes; then :
12436 60 jeremybenn
  ac_cv_func_strtod=no
12437
else
12438 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 60 jeremybenn
/* end confdefs.h.  */
12440
 
12441
$ac_includes_default
12442
#ifndef strtod
12443
double strtod ();
12444
#endif
12445
int
12446
main()
12447
{
12448
  {
12449
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
12450
    char *string = " +69";
12451
    char *term;
12452
    double value;
12453
    value = strtod (string, &term);
12454
    if (value != 69 || term != (string + 4))
12455
      return 1;
12456
  }
12457
 
12458
  {
12459
    /* Under Solaris 2.4, strtod returns the wrong value for the
12460
       terminating character under some conditions.  */
12461
    char *string = "NaN";
12462
    char *term;
12463
    strtod (string, &term);
12464
    if (term != string && *(term - 1) == 0)
12465
      return 1;
12466
  }
12467
  return 0;
12468
}
12469
 
12470
_ACEOF
12471 202 julius
if ac_fn_c_try_run "$LINENO"; then :
12472 60 jeremybenn
  ac_cv_func_strtod=yes
12473
else
12474 202 julius
  ac_cv_func_strtod=no
12475 60 jeremybenn
fi
12476 202 julius
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12477
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12478 60 jeremybenn
fi
12479
 
12480
fi
12481 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12482
$as_echo "$ac_cv_func_strtod" >&6; }
12483 60 jeremybenn
if test $ac_cv_func_strtod = no; then
12484
  case " $LIB@&t@OBJS " in
12485
  *" strtod.$ac_objext "* ) ;;
12486
  *) LIB@&t@OBJS="$LIB@&t@OBJS strtod.$ac_objext"
12487
 ;;
12488
esac
12489
 
12490 202 julius
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12491
if test "x$ac_cv_func_pow" = x""yes; then :
12492
 
12493 60 jeremybenn
fi
12494
 
12495
if test $ac_cv_func_pow = no; then
12496 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12497
$as_echo_n "checking for pow in -lm... " >&6; }
12498
if test "${ac_cv_lib_m_pow+set}" = set; then :
12499
  $as_echo_n "(cached) " >&6
12500 60 jeremybenn
else
12501
  ac_check_lib_save_LIBS=$LIBS
12502
LIBS="-lm  $LIBS"
12503 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504 60 jeremybenn
/* end confdefs.h.  */
12505
 
12506
/* Override any GCC internal prototype to avoid an error.
12507
   Use char because int might match the return type of a GCC
12508
   builtin and then its argument prototype would still apply.  */
12509
#ifdef __cplusplus
12510
extern "C"
12511
#endif
12512
char pow ();
12513
int
12514
main ()
12515
{
12516
return pow ();
12517
  ;
12518
  return 0;
12519
}
12520
_ACEOF
12521 202 julius
if ac_fn_c_try_link "$LINENO"; then :
12522 60 jeremybenn
  ac_cv_lib_m_pow=yes
12523
else
12524 202 julius
  ac_cv_lib_m_pow=no
12525 60 jeremybenn
fi
12526 202 julius
rm -f core conftest.err conftest.$ac_objext \
12527
    conftest$ac_exeext conftest.$ac_ext
12528 60 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12529
fi
12530 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12531
$as_echo "$ac_cv_lib_m_pow" >&6; }
12532
if test "x$ac_cv_lib_m_pow" = x""yes; then :
12533 60 jeremybenn
  POW_LIB=-lm
12534
else
12535 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12536
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12537 60 jeremybenn
fi
12538
 
12539
fi
12540
 
12541
fi
12542
 
12543
for ac_func in bzero strchr strcspn strrchr strtol
12544 202 julius
do :
12545
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12546
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12547
eval as_val=\$$as_ac_var
12548
   if test "x$as_val" = x""yes; then :
12549 60 jeremybenn
  cat >>confdefs.h <<_ACEOF
12550 202 julius
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12551 60 jeremybenn
_ACEOF
12552
 
12553
fi
12554
done
12555
 
12556 202 julius
ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12557
if test "x$ac_cv_func_getopt_long" = x""yes; then :
12558 60 jeremybenn
  SYS_GETOPTLONG=1
12559
else
12560
  SYS_GETOPTLONG=0
12561
fi
12562
 
12563 202 julius
ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
12564
if test "x$ac_cv_func_regcomp" = x""yes; then :
12565 60 jeremybenn
  SYS_REGEX=1
12566
else
12567
  SYS_REGEX=0
12568
fi
12569
 
12570 202 julius
ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
12571
if test "x$ac_cv_func_strptime" = x""yes; then :
12572 60 jeremybenn
  SYS_STRPTIME=1
12573
else
12574
  SYS_STRPTIME=0
12575
fi
12576
 
12577
 
12578
# Define automake conditionals (for argtable2)
12579
 if test "$SYS_GETOPTLONG" = "1"; then
12580
  USE_SYS_GETOPTLONG_TRUE=
12581
  USE_SYS_GETOPTLONG_FALSE='#'
12582
else
12583
  USE_SYS_GETOPTLONG_TRUE='#'
12584
  USE_SYS_GETOPTLONG_FALSE=
12585
fi
12586
 
12587
 if test "$SYS_REGEX" = "1"; then
12588
  USE_ARGREX_TRUE=
12589
  USE_ARGREX_FALSE='#'
12590
else
12591
  USE_ARGREX_TRUE='#'
12592
  USE_ARGREX_FALSE=
12593
fi
12594
 
12595
 if test "$SYS_STRPTIME" = "1"; then
12596
  USE_ARGDATE_TRUE=
12597
  USE_ARGDATE_FALSE='#'
12598
else
12599
  USE_ARGDATE_TRUE='#'
12600
  USE_ARGDATE_FALSE=
12601
fi
12602
 
12603
 
12604 19 jeremybenn
# check for "long long" (added by Erez)
12605 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606 19 jeremybenn
/* end confdefs.h.  */
12607
 
12608
int
12609
main ()
12610
{
12611
long long ll; unsigned long long ull;
12612
  ;
12613
  return 0;
12614
}
12615
_ACEOF
12616 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
12617 19 jeremybenn
 
12618 202 julius
$as_echo "@%:@define CC_HAS_LONG_LONG 1" >>confdefs.h
12619 19 jeremybenn
 
12620
fi
12621
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12622
 
12623 60 jeremybenn
# check for {u,}int{8,16,32}_t in inttypes.h.
12624 202 julius
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include 
12625
"
12626
if test "x$ac_cv_type_uint8_t" = x""yes; then :
12627 19 jeremybenn
 
12628
cat >>confdefs.h <<_ACEOF
12629
@%:@define HAVE_UINT8_T 1
12630
_ACEOF
12631
 
12632
 
12633
fi
12634 202 julius
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include 
12635
"
12636
if test "x$ac_cv_type_uint16_t" = x""yes; then :
12637 19 jeremybenn
 
12638
cat >>confdefs.h <<_ACEOF
12639
@%:@define HAVE_UINT16_T 1
12640
_ACEOF
12641
 
12642
 
12643
fi
12644 202 julius
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
12645
"
12646
if test "x$ac_cv_type_uint32_t" = x""yes; then :
12647 19 jeremybenn
 
12648
cat >>confdefs.h <<_ACEOF
12649
@%:@define HAVE_UINT32_T 1
12650
_ACEOF
12651
 
12652
 
12653
fi
12654
 
12655 202 julius
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include 
12656
"
12657
if test "x$ac_cv_type_int8_t" = x""yes; then :
12658 19 jeremybenn
 
12659
cat >>confdefs.h <<_ACEOF
12660
@%:@define HAVE_INT8_T 1
12661
_ACEOF
12662
 
12663
 
12664
fi
12665 202 julius
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include 
12666
"
12667
if test "x$ac_cv_type_int16_t" = x""yes; then :
12668 19 jeremybenn
 
12669
cat >>confdefs.h <<_ACEOF
12670
@%:@define HAVE_INT16_T 1
12671
_ACEOF
12672
 
12673
 
12674
fi
12675 202 julius
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include 
12676
"
12677
if test "x$ac_cv_type_int32_t" = x""yes; then :
12678 19 jeremybenn
 
12679
cat >>confdefs.h <<_ACEOF
12680
@%:@define HAVE_INT32_T 1
12681
_ACEOF
12682
 
12683
 
12684
fi
12685
 
12686
 
12687
# The cast to long int works around a bug in the HP C Compiler
12688
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12689
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12690
# This bug is HP SR number 8606223364.
12691 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12692
$as_echo_n "checking size of char... " >&6; }
12693
if test "${ac_cv_sizeof_char+set}" = set; then :
12694
  $as_echo_n "(cached) " >&6
12695 19 jeremybenn
else
12696 202 julius
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
12697
 
12698 19 jeremybenn
else
12699 202 julius
  if test "$ac_cv_type_char" = yes; then
12700
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12701
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12702
{ as_fn_set_status 77
12703
as_fn_error "cannot compute sizeof (char)
12704
See \`config.log' for more details." "$LINENO" 5; }; }
12705 19 jeremybenn
   else
12706
     ac_cv_sizeof_char=0
12707
   fi
12708
fi
12709 202 julius
 
12710 19 jeremybenn
fi
12711 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12712
$as_echo "$ac_cv_sizeof_char" >&6; }
12713 19 jeremybenn
 
12714
 
12715
 
12716
cat >>confdefs.h <<_ACEOF
12717
@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
12718
_ACEOF
12719
 
12720
 
12721
# The cast to long int works around a bug in the HP C Compiler
12722
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12723
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12724
# This bug is HP SR number 8606223364.
12725 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12726
$as_echo_n "checking size of short... " >&6; }
12727
if test "${ac_cv_sizeof_short+set}" = set; then :
12728
  $as_echo_n "(cached) " >&6
12729 19 jeremybenn
else
12730 202 julius
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12731
 
12732 19 jeremybenn
else
12733 202 julius
  if test "$ac_cv_type_short" = yes; then
12734
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12735
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12736
{ as_fn_set_status 77
12737
as_fn_error "cannot compute sizeof (short)
12738
See \`config.log' for more details." "$LINENO" 5; }; }
12739 19 jeremybenn
   else
12740
     ac_cv_sizeof_short=0
12741
   fi
12742
fi
12743 202 julius
 
12744 19 jeremybenn
fi
12745 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12746
$as_echo "$ac_cv_sizeof_short" >&6; }
12747 19 jeremybenn
 
12748
 
12749
 
12750
cat >>confdefs.h <<_ACEOF
12751
@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
12752
_ACEOF
12753
 
12754
 
12755
# The cast to long int works around a bug in the HP C Compiler
12756
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12757
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12758
# This bug is HP SR number 8606223364.
12759 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12760
$as_echo_n "checking size of int... " >&6; }
12761
if test "${ac_cv_sizeof_int+set}" = set; then :
12762
  $as_echo_n "(cached) " >&6
12763 19 jeremybenn
else
12764 202 julius
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12765
 
12766 19 jeremybenn
else
12767 202 julius
  if test "$ac_cv_type_int" = yes; then
12768
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12769
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12770
{ as_fn_set_status 77
12771
as_fn_error "cannot compute sizeof (int)
12772
See \`config.log' for more details." "$LINENO" 5; }; }
12773 19 jeremybenn
   else
12774
     ac_cv_sizeof_int=0
12775
   fi
12776
fi
12777 202 julius
 
12778 19 jeremybenn
fi
12779 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12780
$as_echo "$ac_cv_sizeof_int" >&6; }
12781 19 jeremybenn
 
12782
 
12783
 
12784
cat >>confdefs.h <<_ACEOF
12785
@%:@define SIZEOF_INT $ac_cv_sizeof_int
12786
_ACEOF
12787
 
12788
 
12789
# The cast to long int works around a bug in the HP C Compiler
12790
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12791
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12792
# This bug is HP SR number 8606223364.
12793 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12794
$as_echo_n "checking size of long... " >&6; }
12795
if test "${ac_cv_sizeof_long+set}" = set; then :
12796
  $as_echo_n "(cached) " >&6
12797 19 jeremybenn
else
12798 202 julius
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12799
 
12800 19 jeremybenn
else
12801 202 julius
  if test "$ac_cv_type_long" = yes; then
12802
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12803
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12804
{ as_fn_set_status 77
12805
as_fn_error "cannot compute sizeof (long)
12806
See \`config.log' for more details." "$LINENO" 5; }; }
12807 19 jeremybenn
   else
12808
     ac_cv_sizeof_long=0
12809
   fi
12810
fi
12811 202 julius
 
12812 19 jeremybenn
fi
12813 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12814
$as_echo "$ac_cv_sizeof_long" >&6; }
12815 19 jeremybenn
 
12816
 
12817
 
12818
cat >>confdefs.h <<_ACEOF
12819
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
12820
_ACEOF
12821
 
12822
 
12823 233 julius
# The cast to long int works around a bug in the HP C Compiler
12824
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12825
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12826
# This bug is HP SR number 8606223364.
12827
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12828
$as_echo_n "checking size of long long... " >&6; }
12829
if test "${ac_cv_sizeof_long_long+set}" = set; then :
12830
  $as_echo_n "(cached) " >&6
12831
else
12832
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12833
 
12834
else
12835
  if test "$ac_cv_type_long_long" = yes; then
12836
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12837
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12838
{ as_fn_set_status 77
12839
as_fn_error "cannot compute sizeof (long long)
12840
See \`config.log' for more details." "$LINENO" 5; }; }
12841
   else
12842
     ac_cv_sizeof_long_long=0
12843
   fi
12844
fi
12845 19 jeremybenn
 
12846 233 julius
fi
12847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12848
$as_echo "$ac_cv_sizeof_long_long" >&6; }
12849
 
12850
 
12851
 
12852
cat >>confdefs.h <<_ACEOF
12853
@%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12854
_ACEOF
12855
 
12856
 
12857
 
12858 60 jeremybenn
#Check for compare function type for qsort (needed by some Linuxes)
12859 202 julius
ac_fn_c_check_type "$LINENO" "__compar_fn_t" "ac_cv_type___compar_fn_t" "$ac_includes_default"
12860
if test "x$ac_cv_type___compar_fn_t" = x""yes; then :
12861 60 jeremybenn
 
12862
cat >>confdefs.h <<_ACEOF
12863
@%:@define HAVE___COMPAR_FN_T 1
12864
_ACEOF
12865
 
12866
 
12867
fi
12868
 
12869
 
12870 19 jeremybenn
# check for GNU readline
12871 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
12872
$as_echo_n "checking for add_history in -lreadline... " >&6; }
12873
if test "${ac_cv_lib_readline_add_history+set}" = set; then :
12874
  $as_echo_n "(cached) " >&6
12875 19 jeremybenn
else
12876
  ac_check_lib_save_LIBS=$LIBS
12877
LIBS="-lreadline  $LIBS"
12878 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 19 jeremybenn
/* end confdefs.h.  */
12880
 
12881
/* Override any GCC internal prototype to avoid an error.
12882
   Use char because int might match the return type of a GCC
12883
   builtin and then its argument prototype would still apply.  */
12884
#ifdef __cplusplus
12885
extern "C"
12886
#endif
12887
char add_history ();
12888
int
12889
main ()
12890
{
12891
return add_history ();
12892
  ;
12893
  return 0;
12894
}
12895
_ACEOF
12896 202 julius
if ac_fn_c_try_link "$LINENO"; then :
12897 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
12898
else
12899 202 julius
  ac_cv_lib_readline_add_history=no
12900 19 jeremybenn
fi
12901 202 julius
rm -f core conftest.err conftest.$ac_objext \
12902
    conftest$ac_exeext conftest.$ac_ext
12903 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12904
fi
12905 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
12906
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
12907
if test "x$ac_cv_lib_readline_add_history" = x""yes; then :
12908 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12909
@%:@define HAVE_LIBREADLINE 1
12910
_ACEOF
12911
 
12912
  LIBS="-lreadline $LIBS"
12913
 
12914
fi
12915
 
12916
 
12917
# yuck
12918
case "$host_os" in
12919
aix*)   prefer_curses=yes ;;
12920
esac
12921
 
12922
case "$host_cpu" in
12923
*cray*) LOCAL_CFLAGS=-DCRAY ;;
12924
esac
12925
 
12926
case "$host_os" in
12927
isc*)   LOCAL_CFLAGS=-Disc386 ;;
12928
esac
12929
 
12930
case "$host_os" in
12931
solaris*) LIBS="-lsocket -lnsl" ;;
12932
esac
12933
 
12934
# define options
12935 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5
12936
$as_echo_n "checking whether to enable profiling... " >&6; }
12937
@%:@ Check whether --enable-profiling was given.
12938
if test "${enable_profiling+set}" = set; then :
12939 19 jeremybenn
  enableval=$enable_profiling;
12940
    case "$enableval" in
12941 60 jeremybenn
        yes) profile="-pg" ;;
12942 19 jeremybenn
    esac
12943
 
12944
fi
12945
 
12946 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_profiling-no}" >&5
12947
$as_echo "${enable_profiling-no}" >&6; }
12948 19 jeremybenn
 
12949
execution="1"
12950
 
12951
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12952 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which execution style to use" >&5
12953
$as_echo_n "checking which execution style to use... " >&6; }
12954
@%:@ Check whether --enable-execution was given.
12955
if test "${enable_execution+set}" = set; then :
12956 19 jeremybenn
  enableval=$enable_execution;
12957
    case "$enableval" in
12958
    simple)
12959
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
12960
      execution="0"
12961 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple" >&5
12962
$as_echo "simple" >&6; }
12963 19 jeremybenn
      ;;
12964
    complex)
12965
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12966
      execution="1"
12967 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
12968
$as_echo "complex" >&6; }
12969 19 jeremybenn
      ;;
12970
    *)
12971 552 julius
      as_fn_error "\"execution must one of simple/complex\"" "$LINENO" 5
12972 19 jeremybenn
      ;;
12973
    esac
12974
 
12975
else
12976
 
12977 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
12978
$as_echo "complex" >&6; }
12979 19 jeremybenn
 
12980
fi
12981
 
12982
 
12983
eth_phy="0"
12984 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ethernet phy emulation" >&5
12985
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
12986
@%:@ Check whether --enable-ethphy was given.
12987
if test "${enable_ethphy+set}" = set; then :
12988 19 jeremybenn
  enableval=$enable_ethphy;
12989
    case "$enableval" in
12990
  no)  eth_phy="0" ;;
12991
        yes) eth_phy="1" ;;
12992
    esac
12993
 
12994
fi
12995
 
12996 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_eth_phy-no}" >&5
12997
$as_echo "${enable_eth_phy-no}" >&6; }
12998 19 jeremybenn
 
12999 202 julius
unsigned_xori="0"
13000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether l.xori takes an unsigned immediate operand" >&5
13001
$as_echo_n "checking whether l.xori takes an unsigned immediate operand... " >&6; }
13002
@%:@ Check whether --enable-unsigned-xori was given.
13003
if test "${enable_unsigned_xori+set}" = set; then :
13004
  enableval=$enable_unsigned_xori;
13005 19 jeremybenn
    case "$enableval" in
13006 202 julius
  no)  unsigned_xori="0" ;;
13007
        yes) unsigned_xori="1" ;;
13008 19 jeremybenn
    esac
13009
 
13010
fi
13011
 
13012 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_unsigned_xori-no}" >&5
13013
$as_echo "${enable_unsigned_xori-no}" >&6; }
13014 19 jeremybenn
 
13015 202 julius
raw_range_stats="0"
13016
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use raw range stats" >&5
13017
$as_echo_n "checking whether to use raw range stats... " >&6; }
13018
@%:@ Check whether --enable-range_stats was given.
13019
if test "${enable_range_stats+set}" = set; then :
13020
  enableval=$enable_range_stats;
13021 19 jeremybenn
    case "$enableval" in
13022 202 julius
  no)  raw_range_stats="0" ;;
13023
        yes) raw_range_stats="1" simple_execution="1" ;;
13024 19 jeremybenn
    esac
13025
 
13026
fi
13027
 
13028 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_range_stats-no}" >&5
13029
$as_echo "${enable_range_stats-no}" >&6; }
13030 19 jeremybenn
 
13031 60 jeremybenn
# check for --enable-debug argument (for argtable2)
13032 202 julius
@%:@ Check whether --enable-debug was given.
13033
if test "${enable_debug+set}" = set; then :
13034 60 jeremybenn
  enableval=$enable_debug;
13035
       case $enableval in
13036
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
13037
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
13038
          *)   echo "illegal argument to --enable-debug" & exit 1;;
13039
       esac
13040
 
13041
else
13042
  DEBUGFLAGS="-DNDEBUG"
13043
 
13044
fi
13045 19 jeremybenn
 
13046 60 jeremybenn
 
13047
 
13048
 
13049 19 jeremybenn
cat >>confdefs.h <<_ACEOF
13050
@%:@define RAW_RANGE_STATS $raw_range_stats
13051
_ACEOF
13052
 
13053
 
13054
cat >>confdefs.h <<_ACEOF
13055 202 julius
@%:@define HAVE_ETH_PHY $eth_phy
13056 19 jeremybenn
_ACEOF
13057
 
13058
 
13059
cat >>confdefs.h <<_ACEOF
13060 202 julius
@%:@define HAVE_UNSIGNED_XORI $unsigned_xori
13061 19 jeremybenn
_ACEOF
13062
 
13063
 
13064
cat >>confdefs.h <<_ACEOF
13065
@%:@define SIMPLE_EXECUTION $execution == 0
13066
_ACEOF
13067
 
13068
 
13069
cat >>confdefs.h <<_ACEOF
13070
@%:@define COMPLEX_EXECUTION $execution == 1
13071
_ACEOF
13072
 
13073
 if test x$execution = x1; then
13074
  GENERATE_NEEDED_TRUE=
13075
  GENERATE_NEEDED_FALSE='#'
13076
else
13077
  GENERATE_NEEDED_TRUE='#'
13078
  GENERATE_NEEDED_FALSE=
13079
fi
13080
 
13081
 
13082
 
13083
 
13084
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
13085
 
13086 202 julius
# Check for a DejaGNU global config file. If not set, then set it
13087
# ourselves. This stops runtest complaining
13088 418 julius
DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
13089 202 julius
 
13090
 
13091
 
13092
# The following line will override the default definition of the srcdir, and
13093
# ensure that short names are used for the test names.
13094
RUNTESTDEFAULTFLAGS="--tool \$\$tool"
13095
 
13096
 
13097 19 jeremybenn
BUILD_DIR=`pwd`
13098
 
13099
 
13100
 
13101
 
13102
 
13103
 
13104
 
13105
 
13106
 
13107
 
13108
 
13109
 
13110
 
13111
 
13112
 
13113
 
13114
 
13115
 
13116 202 julius
$as_echo "@%:@define HAVE_EXECUTION 1" >>confdefs.h
13117 19 jeremybenn
 
13118
 
13119
# yuck
13120
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
13121
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
13122
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
13123
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
13124
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
13125 233 julius
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2 \
13126 556 julius
-I\${top_srcdir}/softfloat -I\${top_srcdir}/pcu"
13127 19 jeremybenn
 
13128
 
13129 556 julius
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile softfloat/Makefile debug/Makefile doc/Makefile mmu/Makefile peripheral/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile pcu/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"
13130 19 jeremybenn
 
13131
 
13132 60 jeremybenn
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
13133
case "$CPU_ARCH" in
13134
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
13135
;;
13136
esac
13137
 
13138 202 julius
# Generate the output
13139
 
13140
 
13141 19 jeremybenn
cat >confcache <<\_ACEOF
13142
# This file is a shell script that caches the results of configure
13143
# tests run on this system so they can be shared between configure
13144
# scripts and configure runs, see configure's option --config-cache.
13145
# It is not useful on other systems.  If it contains results you don't
13146
# want to keep, you may remove or edit it.
13147
#
13148
# config.status only pays attention to the cache file if you give it
13149
# the --recheck option to rerun configure.
13150
#
13151
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13152
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13153
# following values.
13154
 
13155
_ACEOF
13156
 
13157
# The following way of writing the cache mishandles newlines in values,
13158
# but we know of no workaround that is simple, portable, and efficient.
13159
# So, we kill variables containing newlines.
13160
# Ultrix sh set writes to stderr and can't be redirected directly,
13161
# and sets the high bit in the cache file unless we assign to the vars.
13162
(
13163
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13164
    eval ac_val=\$$ac_var
13165
    case $ac_val in #(
13166
    *${as_nl}*)
13167
      case $ac_var in #(
13168 202 julius
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13169
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13170 19 jeremybenn
      esac
13171
      case $ac_var in #(
13172
      _ | IFS | as_nl) ;; #(
13173 202 julius
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13174
      *) { eval $ac_var=; unset $ac_var;} ;;
13175 19 jeremybenn
      esac ;;
13176
    esac
13177
  done
13178
 
13179
  (set) 2>&1 |
13180
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13181
    *${as_nl}ac_space=\ *)
13182 202 julius
      # `set' does not quote correctly, so add quotes: double-quote
13183
      # substitution turns \\\\ into \\, and sed turns \\ into \.
13184 19 jeremybenn
      sed -n \
13185
        "s/'/'\\\\''/g;
13186
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13187
      ;; #(
13188
    *)
13189
      # `set' quotes correctly as required by POSIX, so do not add quotes.
13190
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13191
      ;;
13192
    esac |
13193
    sort
13194
) |
13195
  sed '
13196
     /^ac_cv_env_/b end
13197
     t clear
13198
     :clear
13199
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13200
     t end
13201
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13202
     :end' >>confcache
13203
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13204
  if test -w "$cache_file"; then
13205
    test "x$cache_file" != "x/dev/null" &&
13206 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13207
$as_echo "$as_me: updating cache $cache_file" >&6;}
13208 19 jeremybenn
    cat confcache >$cache_file
13209
  else
13210 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13211
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13212 19 jeremybenn
  fi
13213
fi
13214
rm -f confcache
13215
 
13216
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13217
# Let make expand exec_prefix.
13218
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13219
 
13220
DEFS=-DHAVE_CONFIG_H
13221
 
13222
ac_libobjs=
13223
ac_ltlibobjs=
13224
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
13225
  # 1. Remove the extension, and $U if already installed.
13226
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13227 202 julius
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13228 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13229
  #    will be set to the directory where LIBOBJS objects are built.
13230 202 julius
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13231
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13232 19 jeremybenn
done
13233
LIB@&t@OBJS=$ac_libobjs
13234
 
13235
LTLIBOBJS=$ac_ltlibobjs
13236
 
13237
 
13238
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13239 202 julius
  as_fn_error "conditional \"AMDEP\" was never defined.
13240
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13241 19 jeremybenn
fi
13242
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13243 202 julius
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
13244
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13245 19 jeremybenn
fi
13246 202 julius
 if test -n "$EXEEXT"; then
13247
  am__EXEEXT_TRUE=
13248
  am__EXEEXT_FALSE='#'
13249
else
13250
  am__EXEEXT_TRUE='#'
13251
  am__EXEEXT_FALSE=
13252 19 jeremybenn
fi
13253 202 julius
 
13254
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13255
  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
13256
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13257
fi
13258
 
13259 60 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
13260 202 julius
  as_fn_error "conditional \"USE_SYS_GETOPTLONG\" was never defined.
13261
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13262 60 jeremybenn
fi
13263
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
13264 202 julius
  as_fn_error "conditional \"USE_ARGREX\" was never defined.
13265
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13266 60 jeremybenn
fi
13267
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
13268 202 julius
  as_fn_error "conditional \"USE_ARGDATE\" was never defined.
13269
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13270 60 jeremybenn
fi
13271 19 jeremybenn
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
13272 202 julius
  as_fn_error "conditional \"GENERATE_NEEDED\" was never defined.
13273
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13274 19 jeremybenn
fi
13275
 
13276
: ${CONFIG_STATUS=./config.status}
13277 202 julius
ac_write_fail=0
13278 19 jeremybenn
ac_clean_files_save=$ac_clean_files
13279
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13280 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13281
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13282
as_write_fail=0
13283
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13284 19 jeremybenn
#! $SHELL
13285
# Generated by $as_me.
13286
# Run this file to recreate the current configuration.
13287
# Compiler output produced by configure, useful for debugging
13288
# configure, is in config.log if it exists.
13289
 
13290
debug=false
13291
ac_cs_recheck=false
13292
ac_cs_silent=false
13293 202 julius
 
13294 19 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
13295 202 julius
export SHELL
13296
_ASEOF
13297
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13298
## -------------------- ##
13299
## M4sh Initialization. ##
13300
## -------------------- ##
13301 19 jeremybenn
 
13302
# Be more Bourne compatible
13303
DUALCASE=1; export DUALCASE # for MKS sh
13304 202 julius
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13305 19 jeremybenn
  emulate sh
13306
  NULLCMD=:
13307 202 julius
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13308 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
13309
  alias -g '${1+"$@"}'='"$@"'
13310
  setopt NO_GLOB_SUBST
13311
else
13312 202 julius
  case `(set -o) 2>/dev/null` in @%:@(
13313
  *posix*) :
13314
    set -o posix ;; @%:@(
13315
  *) :
13316
     ;;
13317 19 jeremybenn
esac
13318
fi
13319
 
13320
 
13321 202 julius
as_nl='
13322
'
13323
export as_nl
13324
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13325
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13326
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13327
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13328
# Prefer a ksh shell builtin over an external printf program on Solaris,
13329
# but without wasting forks for bash or zsh.
13330
if test -z "$BASH_VERSION$ZSH_VERSION" \
13331
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13332
  as_echo='print -r --'
13333
  as_echo_n='print -rn --'
13334
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13335
  as_echo='printf %s\n'
13336
  as_echo_n='printf %s'
13337
else
13338
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13339
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13340
    as_echo_n='/usr/ucb/echo -n'
13341 19 jeremybenn
  else
13342 202 julius
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13343
    as_echo_n_body='eval
13344
      arg=$1;
13345
      case $arg in @%:@(
13346
      *"$as_nl"*)
13347
        expr "X$arg" : "X\\(.*\\)$as_nl";
13348
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13349
      esac;
13350
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13351
    '
13352
    export as_echo_n_body
13353
    as_echo_n='sh -c $as_echo_n_body as_echo'
13354 19 jeremybenn
  fi
13355 202 julius
  export as_echo_body
13356
  as_echo='sh -c $as_echo_body as_echo'
13357 19 jeremybenn
fi
13358
 
13359 202 julius
# The user is always right.
13360
if test "${PATH_SEPARATOR+set}" != set; then
13361
  PATH_SEPARATOR=:
13362
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13363
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13364
      PATH_SEPARATOR=';'
13365
  }
13366 19 jeremybenn
fi
13367
 
13368
 
13369
# IFS
13370
# We need space, tab and new line, in precisely that order.  Quoting is
13371
# there to prevent editors from complaining about space-tab.
13372
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13373
# splitting by setting IFS to empty value.)
13374
IFS=" ""        $as_nl"
13375
 
13376
# Find who we are.  Look in the path if we contain no directory separator.
13377 202 julius
case $0 in @%:@((
13378 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
13379
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13380
for as_dir in $PATH
13381
do
13382
  IFS=$as_save_IFS
13383
  test -z "$as_dir" && as_dir=.
13384 202 julius
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13385
  done
13386 19 jeremybenn
IFS=$as_save_IFS
13387
 
13388
     ;;
13389
esac
13390
# We did not find ourselves, most probably we were run as `sh COMMAND'
13391
# in which case we are not to be found in the path.
13392
if test "x$as_myself" = x; then
13393
  as_myself=$0
13394
fi
13395
if test ! -f "$as_myself"; then
13396 202 julius
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13397
  exit 1
13398 19 jeremybenn
fi
13399
 
13400 202 julius
# Unset variables that we do not need and which cause bugs (e.g. in
13401
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13402
# suppresses any "Segmentation fault" message there.  '((' could
13403
# trigger a bug in pdksh 5.2.14.
13404
for as_var in BASH_ENV ENV MAIL MAILPATH
13405
do eval test x\${$as_var+set} = xset \
13406
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13407 19 jeremybenn
done
13408
PS1='$ '
13409
PS2='> '
13410
PS4='+ '
13411
 
13412
# NLS nuisances.
13413 202 julius
LC_ALL=C
13414
export LC_ALL
13415
LANGUAGE=C
13416
export LANGUAGE
13417
 
13418
# CDPATH.
13419
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13420
 
13421
 
13422
@%:@ as_fn_error ERROR [LINENO LOG_FD]
13423
@%:@ ---------------------------------
13424
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13425
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13426
@%:@ script with status $?, using 1 if that was 0.
13427
as_fn_error ()
13428
{
13429
  as_status=$?; test $as_status -eq 0 && as_status=1
13430
  if test "$3"; then
13431
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13432
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13433 19 jeremybenn
  fi
13434 202 julius
  $as_echo "$as_me: error: $1" >&2
13435
  as_fn_exit $as_status
13436
} @%:@ as_fn_error
13437 19 jeremybenn
 
13438 202 julius
 
13439
@%:@ as_fn_set_status STATUS
13440
@%:@ -----------------------
13441
@%:@ Set $? to STATUS, without forking.
13442
as_fn_set_status ()
13443
{
13444
  return $1
13445
} @%:@ as_fn_set_status
13446
 
13447
@%:@ as_fn_exit STATUS
13448
@%:@ -----------------
13449
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13450
as_fn_exit ()
13451
{
13452
  set +e
13453
  as_fn_set_status $1
13454
  exit $1
13455
} @%:@ as_fn_exit
13456
 
13457
@%:@ as_fn_unset VAR
13458
@%:@ ---------------
13459
@%:@ Portably unset VAR.
13460
as_fn_unset ()
13461
{
13462
  { eval $1=; unset $1;}
13463
}
13464
as_unset=as_fn_unset
13465
@%:@ as_fn_append VAR VALUE
13466
@%:@ ----------------------
13467
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
13468
@%:@ advantage of any shell optimizations that allow amortized linear growth over
13469
@%:@ repeated appends, instead of the typical quadratic growth present in naive
13470
@%:@ implementations.
13471
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13472
  eval 'as_fn_append ()
13473
  {
13474
    eval $1+=\$2
13475
  }'
13476
else
13477
  as_fn_append ()
13478
  {
13479
    eval $1=\$$1\$2
13480
  }
13481
fi # as_fn_append
13482
 
13483
@%:@ as_fn_arith ARG...
13484
@%:@ ------------------
13485
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
13486
@%:@ global $as_val. Take advantage of shells that can avoid forks. The arguments
13487
@%:@ must be portable across $(()) and expr.
13488
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13489
  eval 'as_fn_arith ()
13490
  {
13491
    as_val=$(( $* ))
13492
  }'
13493
else
13494
  as_fn_arith ()
13495
  {
13496
    as_val=`expr "$@" || test $? -eq 1`
13497
  }
13498
fi # as_fn_arith
13499
 
13500
 
13501 19 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
13502
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13503
  as_expr=expr
13504
else
13505
  as_expr=false
13506
fi
13507
 
13508
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13509
  as_basename=basename
13510
else
13511
  as_basename=false
13512
fi
13513
 
13514 202 julius
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13515
  as_dirname=dirname
13516
else
13517
  as_dirname=false
13518
fi
13519 19 jeremybenn
 
13520
as_me=`$as_basename -- "$0" ||
13521
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13522
         X"$0" : 'X\(//\)$' \| \
13523
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13524 202 julius
$as_echo X/"$0" |
13525 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13526
            s//\1/
13527
            q
13528
          }
13529
          /^X\/\(\/\/\)$/{
13530
            s//\1/
13531
            q
13532
          }
13533
          /^X\/\(\/\).*/{
13534
            s//\1/
13535
            q
13536
          }
13537
          s/.*/./; q'`
13538
 
13539 202 julius
# Avoid depending upon Character Ranges.
13540
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13541
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13542
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13543
as_cr_digits='0123456789'
13544
as_cr_alnum=$as_cr_Letters$as_cr_digits
13545 19 jeremybenn
 
13546
ECHO_C= ECHO_N= ECHO_T=
13547 202 julius
case `echo -n x` in @%:@(((((
13548 19 jeremybenn
-n*)
13549 202 julius
  case `echo 'xy\c'` in
13550 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13551 202 julius
  xy)  ECHO_C='\c';;
13552
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13553
       ECHO_T=' ';;
13554 19 jeremybenn
  esac;;
13555
*)
13556
  ECHO_N='-n';;
13557
esac
13558
 
13559
rm -f conf$$ conf$$.exe conf$$.file
13560
if test -d conf$$.dir; then
13561
  rm -f conf$$.dir/conf$$.file
13562
else
13563
  rm -f conf$$.dir
13564 202 julius
  mkdir conf$$.dir 2>/dev/null
13565 19 jeremybenn
fi
13566 202 julius
if (echo >conf$$.file) 2>/dev/null; then
13567
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13568
    as_ln_s='ln -s'
13569
    # ... but there are two gotchas:
13570
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13571
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13572
    # In both cases, we have to default to `cp -p'.
13573
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13574
      as_ln_s='cp -p'
13575
  elif ln conf$$.file conf$$ 2>/dev/null; then
13576
    as_ln_s=ln
13577
  else
13578 19 jeremybenn
    as_ln_s='cp -p'
13579 202 julius
  fi
13580 19 jeremybenn
else
13581
  as_ln_s='cp -p'
13582
fi
13583
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13584
rmdir conf$$.dir 2>/dev/null
13585
 
13586 202 julius
 
13587
@%:@ as_fn_mkdir_p
13588
@%:@ -------------
13589
@%:@ Create "$as_dir" as a directory, including parents if necessary.
13590
as_fn_mkdir_p ()
13591
{
13592
 
13593
  case $as_dir in #(
13594
  -*) as_dir=./$as_dir;;
13595
  esac
13596
  test -d "$as_dir" || eval $as_mkdir_p || {
13597
    as_dirs=
13598
    while :; do
13599
      case $as_dir in #(
13600
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13601
      *) as_qdir=$as_dir;;
13602
      esac
13603
      as_dirs="'$as_qdir' $as_dirs"
13604
      as_dir=`$as_dirname -- "$as_dir" ||
13605
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13606
         X"$as_dir" : 'X\(//\)[^/]' \| \
13607
         X"$as_dir" : 'X\(//\)$' \| \
13608
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13609
$as_echo X"$as_dir" |
13610
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13611
            s//\1/
13612
            q
13613
          }
13614
          /^X\(\/\/\)[^/].*/{
13615
            s//\1/
13616
            q
13617
          }
13618
          /^X\(\/\/\)$/{
13619
            s//\1/
13620
            q
13621
          }
13622
          /^X\(\/\).*/{
13623
            s//\1/
13624
            q
13625
          }
13626
          s/.*/./; q'`
13627
      test -d "$as_dir" && break
13628
    done
13629
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13630
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13631
 
13632
 
13633
} @%:@ as_fn_mkdir_p
13634 19 jeremybenn
if mkdir -p . 2>/dev/null; then
13635 202 julius
  as_mkdir_p='mkdir -p "$as_dir"'
13636 19 jeremybenn
else
13637
  test -d ./-p && rmdir ./-p
13638
  as_mkdir_p=false
13639
fi
13640
 
13641
if test -x / >/dev/null 2>&1; then
13642
  as_test_x='test -x'
13643
else
13644
  if ls -dL / >/dev/null 2>&1; then
13645
    as_ls_L_option=L
13646
  else
13647
    as_ls_L_option=
13648
  fi
13649
  as_test_x='
13650
    eval sh -c '\''
13651
      if test -d "$1"; then
13652 202 julius
        test -d "$1/.";
13653 19 jeremybenn
      else
13654 202 julius
        case $1 in @%:@(
13655
        -*)set "./$1";;
13656 19 jeremybenn
        esac;
13657 202 julius
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
13658 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
13659
    '\'' sh
13660
  '
13661
fi
13662
as_executable_p=$as_test_x
13663
 
13664
# Sed expression to map a string onto a valid CPP name.
13665
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13666
 
13667
# Sed expression to map a string onto a valid variable name.
13668
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13669
 
13670
 
13671
exec 6>&1
13672 202 julius
## ----------------------------------- ##
13673
## Main body of $CONFIG_STATUS script. ##
13674
## ----------------------------------- ##
13675
_ASEOF
13676
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13677 19 jeremybenn
 
13678 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13679
# Save the log message, to keep $0 and so on meaningful, and to
13680 19 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
13681
# values after options handling.
13682
ac_log="
13683 538 julius
This file was extended by or1ksim $as_me 2011-04-28, which was
13684 202 julius
generated by GNU Autoconf 2.64.  Invocation command line was
13685 19 jeremybenn
 
13686
  CONFIG_FILES    = $CONFIG_FILES
13687
  CONFIG_HEADERS  = $CONFIG_HEADERS
13688
  CONFIG_LINKS    = $CONFIG_LINKS
13689
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13690
  $ $0 $@
13691
 
13692
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13693
"
13694
 
13695
_ACEOF
13696
 
13697 202 julius
case $ac_config_files in *"
13698
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13699
esac
13700
 
13701
case $ac_config_headers in *"
13702
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13703
esac
13704
 
13705
 
13706
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13707 19 jeremybenn
# Files that config.status was made for.
13708
config_files="$ac_config_files"
13709
config_headers="$ac_config_headers"
13710
config_commands="$ac_config_commands"
13711
 
13712
_ACEOF
13713
 
13714 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13715 19 jeremybenn
ac_cs_usage="\
13716 202 julius
\`$as_me' instantiates files and other configuration actions
13717
from templates according to the current configuration.  Unless the files
13718
and actions are specified as TAGs, all are instantiated by default.
13719 19 jeremybenn
 
13720 202 julius
Usage: $0 [OPTION]... [TAG]...
13721 19 jeremybenn
 
13722
  -h, --help       print this help, then exit
13723
  -V, --version    print version number and configuration settings, then exit
13724 202 julius
  -q, --quiet, --silent
13725
                   do not print progress messages
13726 19 jeremybenn
  -d, --debug      don't remove temporary files
13727
      --recheck    update $as_me by reconfiguring in the same conditions
13728 202 julius
      --file=FILE[:TEMPLATE]
13729
                   instantiate the configuration file FILE
13730
      --header=FILE[:TEMPLATE]
13731
                   instantiate the configuration header FILE
13732 19 jeremybenn
 
13733
Configuration files:
13734
$config_files
13735
 
13736
Configuration headers:
13737
$config_headers
13738
 
13739
Configuration commands:
13740
$config_commands
13741
 
13742 202 julius
Report bugs to ."
13743 19 jeremybenn
 
13744
_ACEOF
13745 202 julius
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13746 19 jeremybenn
ac_cs_version="\\
13747 538 julius
or1ksim config.status 2011-04-28
13748 202 julius
configured by $0, generated by GNU Autoconf 2.64,
13749
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13750 19 jeremybenn
 
13751 202 julius
Copyright (C) 2009 Free Software Foundation, Inc.
13752 19 jeremybenn
This config.status script is free software; the Free Software Foundation
13753
gives unlimited permission to copy, distribute and modify it."
13754
 
13755
ac_pwd='$ac_pwd'
13756
srcdir='$srcdir'
13757
INSTALL='$INSTALL'
13758
MKDIR_P='$MKDIR_P'
13759 202 julius
AWK='$AWK'
13760
test -n "\$AWK" || AWK=awk
13761 19 jeremybenn
_ACEOF
13762
 
13763 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13764
# The default lists apply if the user does not specify any file.
13765 19 jeremybenn
ac_need_defaults=:
13766
while test $# != 0
13767
do
13768
  case $1 in
13769
  --*=*)
13770
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13771
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13772
    ac_shift=:
13773
    ;;
13774
  *)
13775
    ac_option=$1
13776
    ac_optarg=$2
13777
    ac_shift=shift
13778
    ;;
13779
  esac
13780
 
13781
  case $ac_option in
13782
  # Handling of the options.
13783
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13784
    ac_cs_recheck=: ;;
13785
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13786 202 julius
    $as_echo "$ac_cs_version"; exit ;;
13787 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
13788
    debug=: ;;
13789
  --file | --fil | --fi | --f )
13790
    $ac_shift
13791 202 julius
    case $ac_optarg in
13792
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13793
    esac
13794
    as_fn_append CONFIG_FILES " '$ac_optarg'"
13795 19 jeremybenn
    ac_need_defaults=false;;
13796
  --header | --heade | --head | --hea )
13797
    $ac_shift
13798 202 julius
    case $ac_optarg in
13799
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13800
    esac
13801
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13802 19 jeremybenn
    ac_need_defaults=false;;
13803
  --he | --h)
13804
    # Conflict between --help and --header
13805 202 julius
    as_fn_error "ambiguous option: \`$1'
13806
Try \`$0 --help' for more information.";;
13807 19 jeremybenn
  --help | --hel | -h )
13808 202 julius
    $as_echo "$ac_cs_usage"; exit ;;
13809 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13810
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13811
    ac_cs_silent=: ;;
13812
 
13813
  # This is an error.
13814 202 julius
  -*) as_fn_error "unrecognized option: \`$1'
13815
Try \`$0 --help' for more information." ;;
13816 19 jeremybenn
 
13817 202 julius
  *) as_fn_append ac_config_targets " $1"
13818 19 jeremybenn
     ac_need_defaults=false ;;
13819
 
13820
  esac
13821
  shift
13822
done
13823
 
13824
ac_configure_extra_args=
13825
 
13826
if $ac_cs_silent; then
13827
  exec 6>/dev/null
13828
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13829
fi
13830
 
13831
_ACEOF
13832 202 julius
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13833 19 jeremybenn
if \$ac_cs_recheck; then
13834 202 julius
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13835
  shift
13836
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13837
  CONFIG_SHELL='$SHELL'
13838 19 jeremybenn
  export CONFIG_SHELL
13839 202 julius
  exec "\$@"
13840 19 jeremybenn
fi
13841
 
13842
_ACEOF
13843 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13844 19 jeremybenn
exec 5>>config.log
13845
{
13846
  echo
13847
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
13848
@%:@@%:@ Running $as_me. @%:@@%:@
13849
_ASBOX
13850 202 julius
  $as_echo "$ac_log"
13851 19 jeremybenn
} >&5
13852
 
13853
_ACEOF
13854 202 julius
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13855 19 jeremybenn
#
13856
# INIT-COMMANDS
13857
#
13858 202 julius
 
13859
 
13860
# The HP-UX ksh and POSIX shell print the target directory to stdout
13861
# if CDPATH is set.
13862
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13863
 
13864
sed_quote_subst='$sed_quote_subst'
13865
double_quote_subst='$double_quote_subst'
13866
delay_variable_subst='$delay_variable_subst'
13867
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13868
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13869
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13870
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13871
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13872
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13873
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13874
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13875
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13876
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13877
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13878
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13879
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13880
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13881
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13882
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13883
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13884
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13885
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13886
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13887
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13888
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13889
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13890
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13891
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13892
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13893
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13894
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13895
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13896
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13897
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13898
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13899
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13900
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13901
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13902
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13903
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13904
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13905
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13906
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13907
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13908
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13909
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13910
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13911
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"`'
13912
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"`'
13913
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13914
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13915
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13916
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13917
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13918
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13919
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13920
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13921
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13922
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13923
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13924
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13925
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13926
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13927
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13928
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13929
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13930
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13931
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13932
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13933
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13934
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13935
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13936
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13937
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13938
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13939
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13940
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13941
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13942
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13943
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13944
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13945
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13946
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13947
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13948
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13949
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13950
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13951
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13952
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13953
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13954
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13955
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13956
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13957
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13958
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13959
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13960
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13961
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13962
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13963
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13964
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13965
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13966
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13967
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13968
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13969
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13970
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13971
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13972
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13973
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13974
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13975
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13976
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13977
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13978
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13979
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13980
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13981
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13982
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13983
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13984
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13985
 
13986
LTCC='$LTCC'
13987
LTCFLAGS='$LTCFLAGS'
13988
compiler='$compiler_DEFAULT'
13989
 
13990
# Quote evaled strings.
13991
for var in SED \
13992
GREP \
13993
EGREP \
13994
FGREP \
13995
LD \
13996
NM \
13997
LN_S \
13998
lt_SP2NL \
13999
lt_NL2SP \
14000
reload_flag \
14001
OBJDUMP \
14002
deplibs_check_method \
14003
file_magic_cmd \
14004
AR \
14005
AR_FLAGS \
14006
STRIP \
14007
RANLIB \
14008
CC \
14009
CFLAGS \
14010
compiler \
14011
lt_cv_sys_global_symbol_pipe \
14012
lt_cv_sys_global_symbol_to_cdecl \
14013
lt_cv_sys_global_symbol_to_c_name_address \
14014
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14015
SHELL \
14016
ECHO \
14017
lt_prog_compiler_no_builtin_flag \
14018
lt_prog_compiler_wl \
14019
lt_prog_compiler_pic \
14020
lt_prog_compiler_static \
14021
lt_cv_prog_compiler_c_o \
14022
need_locks \
14023
DSYMUTIL \
14024
NMEDIT \
14025
LIPO \
14026
OTOOL \
14027
OTOOL64 \
14028
shrext_cmds \
14029
export_dynamic_flag_spec \
14030
whole_archive_flag_spec \
14031
compiler_needs_object \
14032
with_gnu_ld \
14033
allow_undefined_flag \
14034
no_undefined_flag \
14035
hardcode_libdir_flag_spec \
14036
hardcode_libdir_flag_spec_ld \
14037
hardcode_libdir_separator \
14038
fix_srcfile_path \
14039
exclude_expsyms \
14040
include_expsyms \
14041
file_list_spec \
14042
variables_saved_for_relink \
14043
libname_spec \
14044
library_names_spec \
14045
soname_spec \
14046
finish_eval \
14047
old_striplib \
14048
striplib; do
14049
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14050
    *[\\\\\\\`\\"\\\$]*)
14051
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14052
      ;;
14053
    *)
14054
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14055
      ;;
14056
    esac
14057
done
14058
 
14059
# Double-quote double-evaled strings.
14060
for var in reload_cmds \
14061
old_postinstall_cmds \
14062
old_postuninstall_cmds \
14063
old_archive_cmds \
14064
extract_expsyms_cmds \
14065
old_archive_from_new_cmds \
14066
old_archive_from_expsyms_cmds \
14067
archive_cmds \
14068
archive_expsym_cmds \
14069
module_cmds \
14070
module_expsym_cmds \
14071
export_symbols_cmds \
14072
prelink_cmds \
14073
postinstall_cmds \
14074
postuninstall_cmds \
14075
finish_cmds \
14076
sys_lib_search_path_spec \
14077
sys_lib_dlsearch_path_spec; do
14078
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14079
    *[\\\\\\\`\\"\\\$]*)
14080
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14081
      ;;
14082
    *)
14083
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14084
      ;;
14085
    esac
14086
done
14087
 
14088
# Fix-up fallback echo if it was mangled by the above quoting rules.
14089
case \$lt_ECHO in
14090
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14091
  ;;
14092
esac
14093
 
14094
ac_aux_dir='$ac_aux_dir'
14095
xsi_shell='$xsi_shell'
14096
lt_shell_append='$lt_shell_append'
14097
 
14098
# See if we are running on zsh, and set the options which allow our
14099
# commands through without removal of \ escapes INIT.
14100
if test -n "\${ZSH_VERSION+set}" ; then
14101
   setopt NO_GLOB_SUBST
14102
fi
14103
 
14104
 
14105
    PACKAGE='$PACKAGE'
14106
    VERSION='$VERSION'
14107
    TIMESTAMP='$TIMESTAMP'
14108
    RM='$RM'
14109
    ofile='$ofile'
14110
 
14111
 
14112
 
14113 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14114
 
14115
_ACEOF
14116
 
14117 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14118 19 jeremybenn
 
14119
# Handling of arguments.
14120
for ac_config_target in $ac_config_targets
14121
do
14122
  case $ac_config_target in
14123 202 julius
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14124 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14125
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14126
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14127 60 jeremybenn
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
14128 19 jeremybenn
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
14129
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
14130
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
14131
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
14132 60 jeremybenn
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
14133 19 jeremybenn
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
14134 233 julius
    "softfloat/Makefile") CONFIG_FILES="$CONFIG_FILES softfloat/Makefile" ;;
14135 19 jeremybenn
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
14136 60 jeremybenn
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14137 19 jeremybenn
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
14138
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
14139
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
14140
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
14141
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
14142 556 julius
    "pcu/Makefile") CONFIG_FILES="$CONFIG_FILES pcu/Makefile" ;;
14143 202 julius
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
14144
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
14145
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14146
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
14147
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
14148
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
14149
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
14150
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
14151
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
14152
    "testsuite/test-code/lib-inttest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-inttest/Makefile" ;;
14153
    "testsuite/test-code/lib-jtag/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-jtag/Makefile" ;;
14154
    "testsuite/test-code/lib-upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-upcalls/Makefile" ;;
14155
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
14156 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
14157 60 jeremybenn
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
14158 19 jeremybenn
 
14159 202 julius
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14160 19 jeremybenn
  esac
14161
done
14162
 
14163
 
14164
# If the user did not use the arguments to specify the items to instantiate,
14165
# then the envvar interface is used.  Set only those that are not.
14166
# We use the long form for the default assignment because of an extremely
14167
# bizarre bug on SunOS 4.1.3.
14168
if $ac_need_defaults; then
14169
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14170
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14171
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14172
fi
14173
 
14174
# Have a temporary directory for convenience.  Make it in the build tree
14175
# simply because there is no reason against having it here, and in addition,
14176
# creating and moving files from /tmp can sometimes cause problems.
14177
# Hook for its removal unless debugging.
14178
# Note that there is a small window in which the directory will not be cleaned:
14179
# after its creation but before its name has been assigned to `$tmp'.
14180
$debug ||
14181
{
14182
  tmp=
14183
  trap 'exit_status=$?
14184
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14185
' 0
14186 202 julius
  trap 'as_fn_exit 1' 1 2 13 15
14187 19 jeremybenn
}
14188
# Create a (secure) tmp directory for tmp files.
14189
 
14190
{
14191
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14192
  test -n "$tmp" && test -d "$tmp"
14193
}  ||
14194
{
14195
  tmp=./conf$$-$RANDOM
14196
  (umask 077 && mkdir "$tmp")
14197 202 julius
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14198 19 jeremybenn
 
14199 202 julius
# Set up the scripts for CONFIG_FILES section.
14200
# No need to generate them if there are no CONFIG_FILES.
14201
# This happens for instance with `./config.status config.h'.
14202 19 jeremybenn
if test -n "$CONFIG_FILES"; then
14203
 
14204 202 julius
 
14205
ac_cr=`echo X | tr X '\015'`
14206
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14207
# But we know of no other shell where ac_cr would be empty at this
14208
# point, so we can use a bashism as a fallback.
14209
if test "x$ac_cr" = x; then
14210
  eval ac_cr=\$\'\\r\'
14211
fi
14212
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
14213
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14214
  ac_cs_awk_cr='\r'
14215
else
14216
  ac_cs_awk_cr=$ac_cr
14217
fi
14218
 
14219
echo 'BEGIN {' >"$tmp/subs1.awk" &&
14220 19 jeremybenn
_ACEOF
14221
 
14222
 
14223 202 julius
{
14224
  echo "cat >conf$$subs.awk <<_ACEOF" &&
14225
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14226
  echo "_ACEOF"
14227
} >conf$$subs.sh ||
14228
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14229
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14230 19 jeremybenn
ac_delim='%!_!# '
14231
for ac_last_try in false false false false false :; do
14232 202 julius
  . ./conf$$subs.sh ||
14233
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14234 19 jeremybenn
 
14235 202 julius
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14236
  if test $ac_delim_n = $ac_delim_num; then
14237 19 jeremybenn
    break
14238
  elif $ac_last_try; then
14239 202 julius
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14240 19 jeremybenn
  else
14241
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14242
  fi
14243
done
14244 202 julius
rm -f conf$$subs.sh
14245 19 jeremybenn
 
14246 202 julius
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14247
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14248 19 jeremybenn
_ACEOF
14249 202 julius
sed -n '
14250
h
14251
s/^/S["/; s/!.*/"]=/
14252
p
14253
g
14254
s/^[^!]*!//
14255
:repl
14256
t repl
14257
s/'"$ac_delim"'$//
14258
t delim
14259
:nl
14260
h
14261
s/\(.\{148\}\).*/\1/
14262
t more1
14263
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14264
p
14265
n
14266
b repl
14267
:more1
14268
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14269
p
14270
g
14271
s/.\{148\}//
14272
t nl
14273
:delim
14274
h
14275
s/\(.\{148\}\).*/\1/
14276
t more2
14277
s/["\\]/\\&/g; s/^/"/; s/$/"/
14278
p
14279
b
14280
:more2
14281
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14282
p
14283
g
14284
s/.\{148\}//
14285
t delim
14286
' 
14287
/^[^""]/{
14288
  N
14289
  s/\n//
14290
}
14291
' >>$CONFIG_STATUS || ac_write_fail=1
14292
rm -f conf$$subs.awk
14293
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14294
_ACAWK
14295
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14296
  for (key in S) S_is_set[key] = 1
14297
  FS = ""
14298 19 jeremybenn
 
14299 202 julius
}
14300
{
14301
  line = $ 0
14302
  nfields = split(line, field, "@")
14303
  substed = 0
14304
  len = length(field[1])
14305
  for (i = 2; i < nfields; i++) {
14306
    key = field[i]
14307
    keylen = length(key)
14308
    if (S_is_set[key]) {
14309
      value = S[key]
14310
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14311
      len += length(value) + length(field[++i])
14312
      substed = 1
14313
    } else
14314
      len += 1 + keylen
14315
  }
14316 19 jeremybenn
 
14317 202 julius
  print line
14318
}
14319 19 jeremybenn
 
14320 202 julius
_ACAWK
14321 19 jeremybenn
_ACEOF
14322 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14323
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14324
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14325
else
14326
  cat
14327
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14328
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14329 19 jeremybenn
_ACEOF
14330
 
14331
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14332
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14333
# trailing colons and then remove the whole line if VPATH becomes empty
14334
# (actually we leave an empty line to preserve line numbers).
14335
if test "x$srcdir" = x.; then
14336
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14337
s/:*\$(srcdir):*/:/
14338
s/:*\${srcdir}:*/:/
14339
s/:*@srcdir@:*/:/
14340
s/^\([^=]*=[     ]*\):*/\1/
14341
s/:*$//
14342
s/^[^=]*=[       ]*$//
14343
}'
14344
fi
14345
 
14346 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14347 19 jeremybenn
fi # test -n "$CONFIG_FILES"
14348
 
14349 202 julius
# Set up the scripts for CONFIG_HEADERS section.
14350
# No need to generate them if there are no CONFIG_HEADERS.
14351
# This happens for instance with `./config.status Makefile'.
14352
if test -n "$CONFIG_HEADERS"; then
14353
cat >"$tmp/defines.awk" <<\_ACAWK ||
14354
BEGIN {
14355
_ACEOF
14356 19 jeremybenn
 
14357 202 julius
# Transform confdefs.h into an awk script `defines.awk', embedded as
14358
# here-document in config.status, that substitutes the proper values into
14359
# config.h.in to produce config.h.
14360
 
14361
# Create a delimiter string that does not exist in confdefs.h, to ease
14362
# handling of long lines.
14363
ac_delim='%!_!# '
14364
for ac_last_try in false false :; do
14365
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14366
  if test -z "$ac_t"; then
14367
    break
14368
  elif $ac_last_try; then
14369
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14370
  else
14371
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14372
  fi
14373
done
14374
 
14375
# For the awk script, D is an array of macro values keyed by name,
14376
# likewise P contains macro parameters if any.  Preserve backslash
14377
# newline sequences.
14378
 
14379
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14380
sed -n '
14381
s/.\{148\}/&'"$ac_delim"'/g
14382
t rset
14383
:rset
14384
s/^[     ]*#[    ]*define[       ][      ]*/ /
14385
t def
14386
d
14387
:def
14388
s/\\$//
14389
t bsnl
14390
s/["\\]/\\&/g
14391
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14392
D["\1"]=" \3"/p
14393
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14394
d
14395
:bsnl
14396
s/["\\]/\\&/g
14397
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14398
D["\1"]=" \3\\\\\\n"\\/p
14399
t cont
14400
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14401
t cont
14402
d
14403
:cont
14404
n
14405
s/.\{148\}/&'"$ac_delim"'/g
14406
t clear
14407
:clear
14408
s/\\$//
14409
t bsnlc
14410
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14411
d
14412
:bsnlc
14413
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14414
b cont
14415
' 
14416
s/'"$ac_delim"'/"\\\
14417
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14418
 
14419
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14420
  for (key in D) D_is_set[key] = 1
14421
  FS = ""
14422
}
14423
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14424
  line = \$ 0
14425
  split(line, arg, " ")
14426
  if (arg[1] == "#") {
14427
    defundef = arg[2]
14428
    mac1 = arg[3]
14429
  } else {
14430
    defundef = substr(arg[1], 2)
14431
    mac1 = arg[2]
14432
  }
14433
  split(mac1, mac2, "(") #)
14434
  macro = mac2[1]
14435
  prefix = substr(line, 1, index(line, defundef) - 1)
14436
  if (D_is_set[macro]) {
14437
    # Preserve the white space surrounding the "#".
14438
    print prefix "define", macro P[macro] D[macro]
14439
    next
14440
  } else {
14441
    # Replace #undef with comments.  This is necessary, for example,
14442
    # in the case of _POSIX_SOURCE, which is predefined and required
14443
    # on some systems where configure will not decide to define it.
14444
    if (defundef == "undef") {
14445
      print "/*", prefix defundef, macro, "*/"
14446
      next
14447
    }
14448
  }
14449
}
14450
{ print }
14451
_ACAWK
14452
_ACEOF
14453
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14454
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14455
fi # test -n "$CONFIG_HEADERS"
14456
 
14457
 
14458
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14459
shift
14460
for ac_tag
14461 19 jeremybenn
do
14462
  case $ac_tag in
14463
  :[FHLC]) ac_mode=$ac_tag; continue;;
14464
  esac
14465
  case $ac_mode$ac_tag in
14466
  :[FHL]*:*);;
14467 202 julius
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14468 19 jeremybenn
  :[FH]-) ac_tag=-:-;;
14469
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14470
  esac
14471
  ac_save_IFS=$IFS
14472
  IFS=:
14473
  set x $ac_tag
14474
  IFS=$ac_save_IFS
14475
  shift
14476
  ac_file=$1
14477
  shift
14478
 
14479
  case $ac_mode in
14480
  :L) ac_source=$1;;
14481
  :[FH])
14482
    ac_file_inputs=
14483
    for ac_f
14484
    do
14485
      case $ac_f in
14486
      -) ac_f="$tmp/stdin";;
14487
      *) # Look for the file first in the build tree, then in the source tree
14488
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
14489
         # because $ac_f cannot contain `:'.
14490
         test -f "$ac_f" ||
14491
           case $ac_f in
14492
           [\\/$]*) false;;
14493
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14494
           esac ||
14495 202 julius
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14496 19 jeremybenn
      esac
14497 202 julius
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14498
      as_fn_append ac_file_inputs " '$ac_f'"
14499 19 jeremybenn
    done
14500
 
14501
    # Let's still pretend it is `configure' which instantiates (i.e., don't
14502
    # use $as_me), people would be surprised to read:
14503
    #    /* config.h.  Generated by config.status.  */
14504 202 julius
    configure_input='Generated from '`
14505
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14506
        `' by configure.'
14507 19 jeremybenn
    if test x"$ac_file" != x-; then
14508
      configure_input="$ac_file.  $configure_input"
14509 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14510
$as_echo "$as_me: creating $ac_file" >&6;}
14511 19 jeremybenn
    fi
14512 202 julius
    # Neutralize special characters interpreted by sed in replacement strings.
14513
    case $configure_input in #(
14514
    *\&* | *\|* | *\\* )
14515
       ac_sed_conf_input=`$as_echo "$configure_input" |
14516
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14517
    *) ac_sed_conf_input=$configure_input;;
14518
    esac
14519 19 jeremybenn
 
14520
    case $ac_tag in
14521 202 julius
    *:-:* | *:-) cat >"$tmp/stdin" \
14522
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14523 19 jeremybenn
    esac
14524
    ;;
14525
  esac
14526
 
14527
  ac_dir=`$as_dirname -- "$ac_file" ||
14528
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14529
         X"$ac_file" : 'X\(//\)[^/]' \| \
14530
         X"$ac_file" : 'X\(//\)$' \| \
14531
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14532 202 julius
$as_echo X"$ac_file" |
14533 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14534
            s//\1/
14535
            q
14536
          }
14537
          /^X\(\/\/\)[^/].*/{
14538
            s//\1/
14539
            q
14540
          }
14541
          /^X\(\/\/\)$/{
14542
            s//\1/
14543
            q
14544
          }
14545
          /^X\(\/\).*/{
14546
            s//\1/
14547
            q
14548
          }
14549
          s/.*/./; q'`
14550 202 julius
  as_dir="$ac_dir"; as_fn_mkdir_p
14551 19 jeremybenn
  ac_builddir=.
14552
 
14553
case "$ac_dir" in
14554
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14555
*)
14556 202 julius
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14557 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
14558 202 julius
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14559 19 jeremybenn
  case $ac_top_builddir_sub in
14560
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14561
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14562
  esac ;;
14563
esac
14564
ac_abs_top_builddir=$ac_pwd
14565
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14566
# for backward compatibility:
14567
ac_top_builddir=$ac_top_build_prefix
14568
 
14569
case $srcdir in
14570
  .)  # We are building in place.
14571
    ac_srcdir=.
14572
    ac_top_srcdir=$ac_top_builddir_sub
14573
    ac_abs_top_srcdir=$ac_pwd ;;
14574
  [\\/]* | ?:[\\/]* )  # Absolute name.
14575
    ac_srcdir=$srcdir$ac_dir_suffix;
14576
    ac_top_srcdir=$srcdir
14577
    ac_abs_top_srcdir=$srcdir ;;
14578
  *) # Relative name.
14579
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14580
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14581
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14582
esac
14583
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14584
 
14585
 
14586
  case $ac_mode in
14587
  :F)
14588
  #
14589
  # CONFIG_FILE
14590
  #
14591
 
14592
  case $INSTALL in
14593
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14594
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14595
  esac
14596
  ac_MKDIR_P=$MKDIR_P
14597
  case $MKDIR_P in
14598
  [\\/$]* | ?:[\\/]* ) ;;
14599
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14600
  esac
14601
_ACEOF
14602
 
14603 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14604 19 jeremybenn
# If the template does not know about datarootdir, expand it.
14605
# FIXME: This hack should be removed a few years after 2.60.
14606
ac_datarootdir_hack=; ac_datarootdir_seen=
14607 202 julius
ac_sed_dataroot='
14608
/datarootdir/ {
14609 19 jeremybenn
  p
14610
  q
14611
}
14612
/@datadir@/p
14613
/@docdir@/p
14614
/@infodir@/p
14615
/@localedir@/p
14616 202 julius
/@mandir@/p'
14617
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14618 19 jeremybenn
*datarootdir*) ac_datarootdir_seen=yes;;
14619
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14620 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14621
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14622 19 jeremybenn
_ACEOF
14623 202 julius
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14624 19 jeremybenn
  ac_datarootdir_hack='
14625
  s&@datadir@&$datadir&g
14626
  s&@docdir@&$docdir&g
14627
  s&@infodir@&$infodir&g
14628
  s&@localedir@&$localedir&g
14629
  s&@mandir@&$mandir&g
14630 202 julius
  s&\\\${datarootdir}&$datarootdir&g' ;;
14631 19 jeremybenn
esac
14632
_ACEOF
14633
 
14634
# Neutralize VPATH when `$srcdir' = `.'.
14635
# Shell code in configure.ac might set extrasub.
14636
# FIXME: do we really want to maintain this feature?
14637 202 julius
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14638
ac_sed_extra="$ac_vpsub
14639 19 jeremybenn
$extrasub
14640
_ACEOF
14641 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14642 19 jeremybenn
:t
14643
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14644 202 julius
s|@configure_input@|$ac_sed_conf_input|;t t
14645 19 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
14646 202 julius
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14647 19 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
14648
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14649
s&@top_srcdir@&$ac_top_srcdir&;t t
14650
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14651
s&@builddir@&$ac_builddir&;t t
14652
s&@abs_builddir@&$ac_abs_builddir&;t t
14653
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14654
s&@INSTALL@&$ac_INSTALL&;t t
14655
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14656
$ac_datarootdir_hack
14657 202 julius
"
14658
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14659
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14660 19 jeremybenn
 
14661
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14662
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14663
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14664 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14665 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
14666 202 julius
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14667 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
14668
 
14669
  rm -f "$tmp/stdin"
14670
  case $ac_file in
14671 202 julius
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14672
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14673
  esac \
14674
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14675 19 jeremybenn
 ;;
14676
  :H)
14677
  #
14678
  # CONFIG_HEADER
14679
  #
14680
  if test x"$ac_file" != x-; then
14681 202 julius
    {
14682
      $as_echo "/* $configure_input  */" \
14683
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14684
    } >"$tmp/config.h" \
14685
      || as_fn_error "could not create $ac_file" "$LINENO" 5
14686
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14687
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14688
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14689 19 jeremybenn
    else
14690 202 julius
      rm -f "$ac_file"
14691
      mv "$tmp/config.h" "$ac_file" \
14692
        || as_fn_error "could not create $ac_file" "$LINENO" 5
14693 19 jeremybenn
    fi
14694
  else
14695 202 julius
    $as_echo "/* $configure_input  */" \
14696
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14697
      || as_fn_error "could not create -" "$LINENO" 5
14698 19 jeremybenn
  fi
14699 202 julius
# Compute "$ac_file"'s index in $config_headers.
14700
_am_arg="$ac_file"
14701 19 jeremybenn
_am_stamp_count=1
14702
for _am_header in $config_headers :; do
14703
  case $_am_header in
14704
    $_am_arg | $_am_arg:* )
14705
      break ;;
14706
    * )
14707
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14708
  esac
14709
done
14710
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14711
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14712
         X"$_am_arg" : 'X\(//\)[^/]' \| \
14713
         X"$_am_arg" : 'X\(//\)$' \| \
14714
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14715 202 julius
$as_echo X"$_am_arg" |
14716 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14717
            s//\1/
14718
            q
14719
          }
14720
          /^X\(\/\/\)[^/].*/{
14721
            s//\1/
14722
            q
14723
          }
14724
          /^X\(\/\/\)$/{
14725
            s//\1/
14726
            q
14727
          }
14728
          /^X\(\/\).*/{
14729
            s//\1/
14730
            q
14731
          }
14732
          s/.*/./; q'`/stamp-h$_am_stamp_count
14733
 ;;
14734
 
14735 202 julius
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14736
$as_echo "$as_me: executing $ac_file commands" >&6;}
14737 19 jeremybenn
 ;;
14738
  esac
14739
 
14740
 
14741
  case $ac_file$ac_mode in
14742 202 julius
    "libtool":C)
14743
 
14744
    # See if we are running on zsh, and set the options which allow our
14745
    # commands through without removal of \ escapes.
14746
    if test -n "${ZSH_VERSION+set}" ; then
14747
      setopt NO_GLOB_SUBST
14748
    fi
14749
 
14750
    cfgfile="${ofile}T"
14751
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14752
    $RM "$cfgfile"
14753
 
14754
    cat <<_LT_EOF >> "$cfgfile"
14755
#! $SHELL
14756
 
14757
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14758
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14759
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14760
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14761
#
14762
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14763
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14764
#   Written by Gordon Matzigkeit, 1996
14765
#
14766
#   This file is part of GNU Libtool.
14767
#
14768
# GNU Libtool is free software; you can redistribute it and/or
14769
# modify it under the terms of the GNU General Public License as
14770
# published by the Free Software Foundation; either version 2 of
14771
# the License, or (at your option) any later version.
14772
#
14773
# As a special exception to the GNU General Public License,
14774
# if you distribute this file as part of a program or library that
14775
# is built using GNU Libtool, you may include this file under the
14776
# same distribution terms that you use for the rest of that program.
14777
#
14778
# GNU Libtool is distributed in the hope that it will be useful,
14779
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14780
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14781
# GNU General Public License for more details.
14782
#
14783
# You should have received a copy of the GNU General Public License
14784
# along with GNU Libtool; see the file COPYING.  If not, a copy
14785
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14786
# obtained by writing to the Free Software Foundation, Inc.,
14787
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14788
 
14789
 
14790
# The names of the tagged configurations supported by this script.
14791
available_tags=""
14792
 
14793
# ### BEGIN LIBTOOL CONFIG
14794
 
14795
# Which release of libtool.m4 was used?
14796
macro_version=$macro_version
14797
macro_revision=$macro_revision
14798
 
14799
# Whether or not to build shared libraries.
14800
build_libtool_libs=$enable_shared
14801
 
14802
# Whether or not to build static libraries.
14803
build_old_libs=$enable_static
14804
 
14805
# What type of objects to build.
14806
pic_mode=$pic_mode
14807
 
14808
# Whether or not to optimize for fast installation.
14809
fast_install=$enable_fast_install
14810
 
14811
# The host system.
14812
host_alias=$host_alias
14813
host=$host
14814
host_os=$host_os
14815
 
14816
# The build system.
14817
build_alias=$build_alias
14818
build=$build
14819
build_os=$build_os
14820
 
14821
# A sed program that does not truncate output.
14822
SED=$lt_SED
14823
 
14824
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14825
Xsed="\$SED -e 1s/^X//"
14826
 
14827
# A grep program that handles long lines.
14828
GREP=$lt_GREP
14829
 
14830
# An ERE matcher.
14831
EGREP=$lt_EGREP
14832
 
14833
# A literal string matcher.
14834
FGREP=$lt_FGREP
14835
 
14836
# A BSD- or MS-compatible name lister.
14837
NM=$lt_NM
14838
 
14839
# Whether we need soft or hard links.
14840
LN_S=$lt_LN_S
14841
 
14842
# What is the maximum length of a command?
14843
max_cmd_len=$max_cmd_len
14844
 
14845
# Object file suffix (normally "o").
14846
objext=$ac_objext
14847
 
14848
# Executable file suffix (normally "").
14849
exeext=$exeext
14850
 
14851
# whether the shell understands "unset".
14852
lt_unset=$lt_unset
14853
 
14854
# turn spaces into newlines.
14855
SP2NL=$lt_lt_SP2NL
14856
 
14857
# turn newlines into spaces.
14858
NL2SP=$lt_lt_NL2SP
14859
 
14860
# How to create reloadable object files.
14861
reload_flag=$lt_reload_flag
14862
reload_cmds=$lt_reload_cmds
14863
 
14864
# An object symbol dumper.
14865
OBJDUMP=$lt_OBJDUMP
14866
 
14867
# Method to check whether dependent libraries are shared objects.
14868
deplibs_check_method=$lt_deplibs_check_method
14869
 
14870
# Command to use when deplibs_check_method == "file_magic".
14871
file_magic_cmd=$lt_file_magic_cmd
14872
 
14873
# The archiver.
14874
AR=$lt_AR
14875
AR_FLAGS=$lt_AR_FLAGS
14876
 
14877
# A symbol stripping program.
14878
STRIP=$lt_STRIP
14879
 
14880
# Commands used to install an old-style archive.
14881
RANLIB=$lt_RANLIB
14882
old_postinstall_cmds=$lt_old_postinstall_cmds
14883
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14884
 
14885
# A C compiler.
14886
LTCC=$lt_CC
14887
 
14888
# LTCC compiler flags.
14889
LTCFLAGS=$lt_CFLAGS
14890
 
14891
# Take the output of nm and produce a listing of raw symbols and C names.
14892
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14893
 
14894
# Transform the output of nm in a proper C declaration.
14895
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14896
 
14897
# Transform the output of nm in a C name address pair.
14898
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14899
 
14900
# Transform the output of nm in a C name address pair when lib prefix is needed.
14901
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14902
 
14903
# The name of the directory that contains temporary libtool files.
14904
objdir=$objdir
14905
 
14906
# Shell to use when invoking shell scripts.
14907
SHELL=$lt_SHELL
14908
 
14909
# An echo program that does not interpret backslashes.
14910
ECHO=$lt_ECHO
14911
 
14912
# Used to examine libraries when file_magic_cmd begins with "file".
14913
MAGIC_CMD=$MAGIC_CMD
14914
 
14915
# Must we lock files when doing compilation?
14916
need_locks=$lt_need_locks
14917
 
14918
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14919
DSYMUTIL=$lt_DSYMUTIL
14920
 
14921
# Tool to change global to local symbols on Mac OS X.
14922
NMEDIT=$lt_NMEDIT
14923
 
14924
# Tool to manipulate fat objects and archives on Mac OS X.
14925
LIPO=$lt_LIPO
14926
 
14927
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14928
OTOOL=$lt_OTOOL
14929
 
14930
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14931
OTOOL64=$lt_OTOOL64
14932
 
14933
# Old archive suffix (normally "a").
14934
libext=$libext
14935
 
14936
# Shared library suffix (normally ".so").
14937
shrext_cmds=$lt_shrext_cmds
14938
 
14939
# The commands to extract the exported symbol list from a shared archive.
14940
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14941
 
14942
# Variables whose values should be saved in libtool wrapper scripts and
14943
# restored at link time.
14944
variables_saved_for_relink=$lt_variables_saved_for_relink
14945
 
14946
# Do we need the "lib" prefix for modules?
14947
need_lib_prefix=$need_lib_prefix
14948
 
14949
# Do we need a version for libraries?
14950
need_version=$need_version
14951
 
14952
# Library versioning type.
14953
version_type=$version_type
14954
 
14955
# Shared library runtime path variable.
14956
runpath_var=$runpath_var
14957
 
14958
# Shared library path variable.
14959
shlibpath_var=$shlibpath_var
14960
 
14961
# Is shlibpath searched before the hard-coded library search path?
14962
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14963
 
14964
# Format of library name prefix.
14965
libname_spec=$lt_libname_spec
14966
 
14967
# List of archive names.  First name is the real one, the rest are links.
14968
# The last name is the one that the linker finds with -lNAME
14969
library_names_spec=$lt_library_names_spec
14970
 
14971
# The coded name of the library, if different from the real name.
14972
soname_spec=$lt_soname_spec
14973
 
14974
# Command to use after installation of a shared archive.
14975
postinstall_cmds=$lt_postinstall_cmds
14976
 
14977
# Command to use after uninstallation of a shared archive.
14978
postuninstall_cmds=$lt_postuninstall_cmds
14979
 
14980
# Commands used to finish a libtool library installation in a directory.
14981
finish_cmds=$lt_finish_cmds
14982
 
14983
# As "finish_cmds", except a single script fragment to be evaled but
14984
# not shown.
14985
finish_eval=$lt_finish_eval
14986
 
14987
# Whether we should hardcode library paths into libraries.
14988
hardcode_into_libs=$hardcode_into_libs
14989
 
14990
# Compile-time system search path for libraries.
14991
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14992
 
14993
# Run-time system search path for libraries.
14994
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14995
 
14996
# Whether dlopen is supported.
14997
dlopen_support=$enable_dlopen
14998
 
14999
# Whether dlopen of programs is supported.
15000
dlopen_self=$enable_dlopen_self
15001
 
15002
# Whether dlopen of statically linked programs is supported.
15003
dlopen_self_static=$enable_dlopen_self_static
15004
 
15005
# Commands to strip libraries.
15006
old_striplib=$lt_old_striplib
15007
striplib=$lt_striplib
15008
 
15009
 
15010
# The linker used to build libraries.
15011
LD=$lt_LD
15012
 
15013
# Commands used to build an old-style archive.
15014
old_archive_cmds=$lt_old_archive_cmds
15015
 
15016
# A language specific compiler.
15017
CC=$lt_compiler
15018
 
15019
# Is the compiler the GNU compiler?
15020
with_gcc=$GCC
15021
 
15022
# Compiler flag to turn off builtin functions.
15023
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15024
 
15025
# How to pass a linker flag through the compiler.
15026
wl=$lt_lt_prog_compiler_wl
15027
 
15028
# Additional compiler flags for building library objects.
15029
pic_flag=$lt_lt_prog_compiler_pic
15030
 
15031
# Compiler flag to prevent dynamic linking.
15032
link_static_flag=$lt_lt_prog_compiler_static
15033
 
15034
# Does compiler simultaneously support -c and -o options?
15035
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15036
 
15037
# Whether or not to add -lc for building shared libraries.
15038
build_libtool_need_lc=$archive_cmds_need_lc
15039
 
15040
# Whether or not to disallow shared libs when runtime libs are static.
15041
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15042
 
15043
# Compiler flag to allow reflexive dlopens.
15044
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15045
 
15046
# Compiler flag to generate shared objects directly from archives.
15047
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15048
 
15049
# Whether the compiler copes with passing no objects directly.
15050
compiler_needs_object=$lt_compiler_needs_object
15051
 
15052
# Create an old-style archive from a shared archive.
15053
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15054
 
15055
# Create a temporary old-style archive to link instead of a shared archive.
15056
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15057
 
15058
# Commands used to build a shared archive.
15059
archive_cmds=$lt_archive_cmds
15060
archive_expsym_cmds=$lt_archive_expsym_cmds
15061
 
15062
# Commands used to build a loadable module if different from building
15063
# a shared archive.
15064
module_cmds=$lt_module_cmds
15065
module_expsym_cmds=$lt_module_expsym_cmds
15066
 
15067
# Whether we are building with GNU ld or not.
15068
with_gnu_ld=$lt_with_gnu_ld
15069
 
15070
# Flag that allows shared libraries with undefined symbols to be built.
15071
allow_undefined_flag=$lt_allow_undefined_flag
15072
 
15073
# Flag that enforces no undefined symbols.
15074
no_undefined_flag=$lt_no_undefined_flag
15075
 
15076
# Flag to hardcode \$libdir into a binary during linking.
15077
# This must work even if \$libdir does not exist
15078
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15079
 
15080
# If ld is used when linking, flag to hardcode \$libdir into a binary
15081
# during linking.  This must work even if \$libdir does not exist.
15082
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15083
 
15084
# Whether we need a single "-rpath" flag with a separated argument.
15085
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15086
 
15087
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15088
# DIR into the resulting binary.
15089
hardcode_direct=$hardcode_direct
15090
 
15091
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15092
# DIR into the resulting binary and the resulting library dependency is
15093
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15094
# library is relocated.
15095
hardcode_direct_absolute=$hardcode_direct_absolute
15096
 
15097
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15098
# into the resulting binary.
15099
hardcode_minus_L=$hardcode_minus_L
15100
 
15101
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15102
# into the resulting binary.
15103
hardcode_shlibpath_var=$hardcode_shlibpath_var
15104
 
15105
# Set to "yes" if building a shared library automatically hardcodes DIR
15106
# into the library and all subsequent libraries and executables linked
15107
# against it.
15108
hardcode_automatic=$hardcode_automatic
15109
 
15110
# Set to yes if linker adds runtime paths of dependent libraries
15111
# to runtime path list.
15112
inherit_rpath=$inherit_rpath
15113
 
15114
# Whether libtool must link a program against all its dependency libraries.
15115
link_all_deplibs=$link_all_deplibs
15116
 
15117
# Fix the shell variable \$srcfile for the compiler.
15118
fix_srcfile_path=$lt_fix_srcfile_path
15119
 
15120
# Set to "yes" if exported symbols are required.
15121
always_export_symbols=$always_export_symbols
15122
 
15123
# The commands to list exported symbols.
15124
export_symbols_cmds=$lt_export_symbols_cmds
15125
 
15126
# Symbols that should not be listed in the preloaded symbols.
15127
exclude_expsyms=$lt_exclude_expsyms
15128
 
15129
# Symbols that must always be exported.
15130
include_expsyms=$lt_include_expsyms
15131
 
15132
# Commands necessary for linking programs (against libraries) with templates.
15133
prelink_cmds=$lt_prelink_cmds
15134
 
15135
# Specify filename containing input files.
15136
file_list_spec=$lt_file_list_spec
15137
 
15138
# How to hardcode a shared library path into an executable.
15139
hardcode_action=$hardcode_action
15140
 
15141
# ### END LIBTOOL CONFIG
15142
 
15143
_LT_EOF
15144
 
15145
  case $host_os in
15146
  aix3*)
15147
    cat <<\_LT_EOF >> "$cfgfile"
15148
# AIX sometimes has problems with the GCC collect2 program.  For some
15149
# reason, if we set the COLLECT_NAMES environment variable, the problems
15150
# vanish in a puff of smoke.
15151
if test "X${COLLECT_NAMES+set}" != Xset; then
15152
  COLLECT_NAMES=
15153
  export COLLECT_NAMES
15154
fi
15155
_LT_EOF
15156
    ;;
15157
  esac
15158
 
15159
 
15160
ltmain="$ac_aux_dir/ltmain.sh"
15161
 
15162
 
15163
  # We use sed instead of cat because bash on DJGPP gets confused if
15164
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15165
  # text mode, it properly converts lines to CR/LF.  This bash problem
15166
  # is reportedly fixed, but why not run on old versions too?
15167
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15168
    || (rm -f "$cfgfile"; exit 1)
15169
 
15170
  case $xsi_shell in
15171
  yes)
15172
    cat << \_LT_EOF >> "$cfgfile"
15173
 
15174
# func_dirname file append nondir_replacement
15175
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15176
# otherwise set result to NONDIR_REPLACEMENT.
15177
func_dirname ()
15178
{
15179
  case ${1} in
15180
    */*) func_dirname_result="${1%/*}${2}" ;;
15181
    *  ) func_dirname_result="${3}" ;;
15182
  esac
15183
}
15184
 
15185
# func_basename file
15186
func_basename ()
15187
{
15188
  func_basename_result="${1##*/}"
15189
}
15190
 
15191
# func_dirname_and_basename file append nondir_replacement
15192
# perform func_basename and func_dirname in a single function
15193
# call:
15194
#   dirname:  Compute the dirname of FILE.  If nonempty,
15195
#             add APPEND to the result, otherwise set result
15196
#             to NONDIR_REPLACEMENT.
15197
#             value returned in "$func_dirname_result"
15198
#   basename: Compute filename of FILE.
15199
#             value retuned in "$func_basename_result"
15200
# Implementation must be kept synchronized with func_dirname
15201
# and func_basename. For efficiency, we do not delegate to
15202
# those functions but instead duplicate the functionality here.
15203
func_dirname_and_basename ()
15204
{
15205
  case ${1} in
15206
    */*) func_dirname_result="${1%/*}${2}" ;;
15207
    *  ) func_dirname_result="${3}" ;;
15208
  esac
15209
  func_basename_result="${1##*/}"
15210
}
15211
 
15212
# func_stripname prefix suffix name
15213
# strip PREFIX and SUFFIX off of NAME.
15214
# PREFIX and SUFFIX must not contain globbing or regex special
15215
# characters, hashes, percent signs, but SUFFIX may contain a leading
15216
# dot (in which case that matches only a dot).
15217
func_stripname ()
15218
{
15219
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15220
  # positional parameters, so assign one to ordinary parameter first.
15221
  func_stripname_result=${3}
15222
  func_stripname_result=${func_stripname_result#"${1}"}
15223
  func_stripname_result=${func_stripname_result%"${2}"}
15224
}
15225
 
15226
# func_opt_split
15227
func_opt_split ()
15228
{
15229
  func_opt_split_opt=${1%%=*}
15230
  func_opt_split_arg=${1#*=}
15231
}
15232
 
15233
# func_lo2o object
15234
func_lo2o ()
15235
{
15236
  case ${1} in
15237
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15238
    *)    func_lo2o_result=${1} ;;
15239
  esac
15240
}
15241
 
15242
# func_xform libobj-or-source
15243
func_xform ()
15244
{
15245
  func_xform_result=${1%.*}.lo
15246
}
15247
 
15248
# func_arith arithmetic-term...
15249
func_arith ()
15250
{
15251
  func_arith_result=$(( $* ))
15252
}
15253
 
15254
# func_len string
15255
# STRING may not start with a hyphen.
15256
func_len ()
15257
{
15258
  func_len_result=${#1}
15259
}
15260
 
15261
_LT_EOF
15262
    ;;
15263
  *) # Bourne compatible functions.
15264
    cat << \_LT_EOF >> "$cfgfile"
15265
 
15266
# func_dirname file append nondir_replacement
15267
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15268
# otherwise set result to NONDIR_REPLACEMENT.
15269
func_dirname ()
15270
{
15271
  # Extract subdirectory from the argument.
15272
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15273
  if test "X$func_dirname_result" = "X${1}"; then
15274
    func_dirname_result="${3}"
15275
  else
15276
    func_dirname_result="$func_dirname_result${2}"
15277
  fi
15278
}
15279
 
15280
# func_basename file
15281
func_basename ()
15282
{
15283
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15284
}
15285
 
15286
 
15287
# func_stripname prefix suffix name
15288
# strip PREFIX and SUFFIX off of NAME.
15289
# PREFIX and SUFFIX must not contain globbing or regex special
15290
# characters, hashes, percent signs, but SUFFIX may contain a leading
15291
# dot (in which case that matches only a dot).
15292
# func_strip_suffix prefix name
15293
func_stripname ()
15294
{
15295
  case ${2} in
15296
    .*) func_stripname_result=`$ECHO "X${3}" \
15297
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15298
    *)  func_stripname_result=`$ECHO "X${3}" \
15299
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15300
  esac
15301
}
15302
 
15303
# sed scripts:
15304
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15305
my_sed_long_arg='1s/^-[^=]*=//'
15306
 
15307
# func_opt_split
15308
func_opt_split ()
15309
{
15310
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15311
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15312
}
15313
 
15314
# func_lo2o object
15315
func_lo2o ()
15316
{
15317
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15318
}
15319
 
15320
# func_xform libobj-or-source
15321
func_xform ()
15322
{
15323
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15324
}
15325
 
15326
# func_arith arithmetic-term...
15327
func_arith ()
15328
{
15329
  func_arith_result=`expr "$@"`
15330
}
15331
 
15332
# func_len string
15333
# STRING may not start with a hyphen.
15334
func_len ()
15335
{
15336
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15337
}
15338
 
15339
_LT_EOF
15340
esac
15341
 
15342
case $lt_shell_append in
15343
  yes)
15344
    cat << \_LT_EOF >> "$cfgfile"
15345
 
15346
# func_append var value
15347
# Append VALUE to the end of shell variable VAR.
15348
func_append ()
15349
{
15350
  eval "$1+=\$2"
15351
}
15352
_LT_EOF
15353
    ;;
15354
  *)
15355
    cat << \_LT_EOF >> "$cfgfile"
15356
 
15357
# func_append var value
15358
# Append VALUE to the end of shell variable VAR.
15359
func_append ()
15360
{
15361
  eval "$1=\$$1\$2"
15362
}
15363
 
15364
_LT_EOF
15365
    ;;
15366
  esac
15367
 
15368
 
15369
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15370
    || (rm -f "$cfgfile"; exit 1)
15371
 
15372
  mv -f "$cfgfile" "$ofile" ||
15373
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15374
  chmod +x "$ofile"
15375
 
15376
 ;;
15377
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15378
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15379
  # are listed without --file.  Let's play safe and only enable the eval
15380
  # if we detect the quoting.
15381
  case $CONFIG_FILES in
15382
  *\'*) eval set x "$CONFIG_FILES" ;;
15383
  *)   set x $CONFIG_FILES ;;
15384
  esac
15385
  shift
15386
  for mf
15387
  do
15388
    # Strip MF so we end up with the name of the file.
15389
    mf=`echo "$mf" | sed -e 's/:.*$//'`
15390
    # Check whether this is an Automake generated Makefile or not.
15391
    # We used to match only the files named `Makefile.in', but
15392
    # some people rename them; so instead we look at the file content.
15393
    # Grep'ing the first line is not enough: some people post-process
15394
    # each Makefile.in and add a new line on top of each file to say so.
15395
    # Grep'ing the whole file is not good either: AIX grep has a line
15396
    # limit of 2048, but all sed's we know have understand at least 4000.
15397
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15398
      dirpart=`$as_dirname -- "$mf" ||
15399 19 jeremybenn
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15400
         X"$mf" : 'X\(//\)[^/]' \| \
15401
         X"$mf" : 'X\(//\)$' \| \
15402
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15403 202 julius
$as_echo X"$mf" |
15404 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15405
            s//\1/
15406
            q
15407
          }
15408
          /^X\(\/\/\)[^/].*/{
15409
            s//\1/
15410
            q
15411
          }
15412
          /^X\(\/\/\)$/{
15413
            s//\1/
15414
            q
15415
          }
15416
          /^X\(\/\).*/{
15417
            s//\1/
15418
            q
15419
          }
15420
          s/.*/./; q'`
15421 202 julius
    else
15422
      continue
15423
    fi
15424
    # Extract the definition of DEPDIR, am__include, and am__quote
15425
    # from the Makefile without running `make'.
15426
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15427
    test -z "$DEPDIR" && continue
15428
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15429
    test -z "am__include" && continue
15430
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15431
    # When using ansi2knr, U may be empty or an underscore; expand it
15432
    U=`sed -n 's/^U = //p' < "$mf"`
15433
    # Find all dependency output files, they are included files with
15434
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15435
    # simplest approach to changing $(DEPDIR) to its actual value in the
15436
    # expansion.
15437
    for file in `sed -n "
15438
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15439
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15440
      # Make sure the directory exists.
15441
      test -f "$dirpart/$file" && continue
15442
      fdir=`$as_dirname -- "$file" ||
15443 19 jeremybenn
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15444
         X"$file" : 'X\(//\)[^/]' \| \
15445
         X"$file" : 'X\(//\)$' \| \
15446
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15447 202 julius
$as_echo X"$file" |
15448 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15449
            s//\1/
15450
            q
15451
          }
15452
          /^X\(\/\/\)[^/].*/{
15453
            s//\1/
15454
            q
15455
          }
15456
          /^X\(\/\/\)$/{
15457
            s//\1/
15458
            q
15459
          }
15460
          /^X\(\/\).*/{
15461
            s//\1/
15462
            q
15463
          }
15464
          s/.*/./; q'`
15465 202 julius
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15466
      # echo "creating $dirpart/$file"
15467
      echo '# dummy' > "$dirpart/$file"
15468 19 jeremybenn
    done
15469
  done
15470 202 julius
}
15471 19 jeremybenn
 ;;
15472
 
15473
  esac
15474
done # for ac_tag
15475
 
15476
 
15477 202 julius
as_fn_exit 0
15478 19 jeremybenn
_ACEOF
15479
ac_clean_files=$ac_clean_files_save
15480
 
15481 202 julius
test $ac_write_fail = 0 ||
15482
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15483 19 jeremybenn
 
15484 202 julius
 
15485 19 jeremybenn
# configure is writing to config.log, and then calls config.status.
15486
# config.status does its own redirection, appending to config.log.
15487
# Unfortunately, on DOS this fails, as config.log is still kept open
15488
# by configure, so config.status won't be able to write to it; its
15489
# output is simply discarded.  So we exec the FD to /dev/null,
15490
# effectively closing config.log, so it can be properly (re)opened and
15491
# appended to by config.status.  When coming back to configure, we
15492
# need to make the FD available again.
15493
if test "$no_create" != yes; then
15494
  ac_cs_success=:
15495
  ac_config_status_args=
15496
  test "$silent" = yes &&
15497
    ac_config_status_args="$ac_config_status_args --quiet"
15498
  exec 5>/dev/null
15499
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15500
  exec 5>>config.log
15501
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15502
  # would make configure fail if this is the last instruction.
15503 202 julius
  $ac_cs_success || as_fn_exit $?
15504 19 jeremybenn
fi
15505
 
15506 202 julius
#
15507
# CONFIG_SUBDIRS section.
15508
#
15509
if test "$no_recursion" != yes; then
15510
 
15511
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15512
  # so they do not pile up.
15513
  ac_sub_configure_args=
15514
  ac_prev=
15515
  eval "set x $ac_configure_args"
15516
  shift
15517
  for ac_arg
15518
  do
15519
    if test -n "$ac_prev"; then
15520
      ac_prev=
15521
      continue
15522
    fi
15523
    case $ac_arg in
15524
    -cache-file | --cache-file | --cache-fil | --cache-fi \
15525
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15526
      ac_prev=cache_file ;;
15527
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15528
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15529
    | --c=*)
15530
      ;;
15531
    --config-cache | -C)
15532
      ;;
15533
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15534
      ac_prev=srcdir ;;
15535
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15536
      ;;
15537
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15538
      ac_prev=prefix ;;
15539
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15540
      ;;
15541
    --disable-option-checking)
15542
      ;;
15543
    *)
15544
      case $ac_arg in
15545
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15546
      esac
15547
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15548
    esac
15549
  done
15550
 
15551
  # Always prepend --prefix to ensure using the same prefix
15552
  # in subdir configurations.
15553
  ac_arg="--prefix=$prefix"
15554
  case $ac_arg in
15555
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15556
  esac
15557
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15558
 
15559
  # Pass --silent
15560
  if test "$silent" = yes; then
15561
    ac_sub_configure_args="--silent $ac_sub_configure_args"
15562
  fi
15563
 
15564
  # Always prepend --disable-option-checking to silence warnings, since
15565
  # different subdirs can have different --enable and --with options.
15566
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15567
 
15568
  ac_popdir=`pwd`
15569
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15570
 
15571
    # Do not complain, so a configure script can configure whichever
15572
    # parts of a large source tree are present.
15573
    test -d "$srcdir/$ac_dir" || continue
15574
 
15575
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15576
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15577
    $as_echo "$ac_msg" >&6
15578
    as_dir="$ac_dir"; as_fn_mkdir_p
15579
    ac_builddir=.
15580
 
15581
case "$ac_dir" in
15582
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15583
*)
15584
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15585
  # A ".." for each directory in $ac_dir_suffix.
15586
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15587
  case $ac_top_builddir_sub in
15588
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15589
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15590
  esac ;;
15591
esac
15592
ac_abs_top_builddir=$ac_pwd
15593
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15594
# for backward compatibility:
15595
ac_top_builddir=$ac_top_build_prefix
15596
 
15597
case $srcdir in
15598
  .)  # We are building in place.
15599
    ac_srcdir=.
15600
    ac_top_srcdir=$ac_top_builddir_sub
15601
    ac_abs_top_srcdir=$ac_pwd ;;
15602
  [\\/]* | ?:[\\/]* )  # Absolute name.
15603
    ac_srcdir=$srcdir$ac_dir_suffix;
15604
    ac_top_srcdir=$srcdir
15605
    ac_abs_top_srcdir=$srcdir ;;
15606
  *) # Relative name.
15607
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15608
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15609
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15610
esac
15611
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15612
 
15613
 
15614
    cd "$ac_dir"
15615
 
15616
    # Check for guested configure; otherwise get Cygnus style configure.
15617
    if test -f "$ac_srcdir/configure.gnu"; then
15618
      ac_sub_configure=$ac_srcdir/configure.gnu
15619
    elif test -f "$ac_srcdir/configure"; then
15620
      ac_sub_configure=$ac_srcdir/configure
15621
    elif test -f "$ac_srcdir/configure.in"; then
15622
      # This should be Cygnus configure.
15623
      ac_sub_configure=$ac_aux_dir/configure
15624
    else
15625
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15626
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15627
      ac_sub_configure=
15628
    fi
15629
 
15630
    # The recursion is here.
15631
    if test -n "$ac_sub_configure"; then
15632
      # Make the cache file name correct relative to the subdirectory.
15633
      case $cache_file in
15634
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15635
      *) # Relative name.
15636
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15637
      esac
15638
 
15639
      { $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
15640
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15641
      # The eval makes quoting arguments work.
15642
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15643
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15644
        as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15645
    fi
15646
 
15647
    cd "$ac_popdir"
15648
  done
15649
fi
15650
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15651
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15652
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15653
fi
15654
 

powered by: WebSVN 2.1.0

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