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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 101 jeremybenn
# From configure.ac Id: configure.ac 99 2010-05-20 16:22:07Z jeremybennett  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 101 jeremybenn
# Generated by GNU Autoconf 2.63 for or1ksim 2010-05-25.
5 19 jeremybenn
#
6
# Report bugs to .
7
#
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 101 jeremybenn
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10 19 jeremybenn
# This configure script is free software; the Free Software Foundation
11
# gives unlimited permission to copy, distribute and modify it.
12 82 jeremybenn
#
13
# Copyright (C) 1999-2008 OpenCores
14
# Copyright (C) 2008, 2010 Embecosm Limited
15
#
16
# Contributor Jeremy Bennett 
17
#
18
# This file is part of OpenRISC 1000 Architectural Simulator.
19
#
20
# This program is free software; you can redistribute it and/or modify it
21
# under the terms of the GNU General Public License as published by the Free
22
# Software Foundation; either version 3 of the License, or (at your option)
23
# any later version.
24
#
25
# This program is distributed in the hope that it will be useful, but WITHOUT
26
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
27
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
28
# more details.
29
#
30
# You should have received a copy of the GNU General Public License along
31
# with this program.  If not, see .
32 101 jeremybenn
## --------------------- ##
33
## M4sh Initialization.  ##
34
## --------------------- ##
35 19 jeremybenn
 
36
# Be more Bourne compatible
37
DUALCASE=1; export DUALCASE # for MKS sh
38 101 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39 19 jeremybenn
  emulate sh
40
  NULLCMD=:
41 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
43
  alias -g '${1+"$@"}'='"$@"'
44
  setopt NO_GLOB_SUBST
45
else
46 101 jeremybenn
  case `(set -o) 2>/dev/null` in
47
  *posix*) set -o posix ;;
48 19 jeremybenn
esac
49 101 jeremybenn
 
50 19 jeremybenn
fi
51
 
52
 
53 101 jeremybenn
 
54
 
55
# PATH needs CR
56
# Avoid depending upon Character Ranges.
57
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
58
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
59
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
60
as_cr_digits='0123456789'
61
as_cr_alnum=$as_cr_Letters$as_cr_digits
62
 
63 82 jeremybenn
as_nl='
64
'
65
export as_nl
66
# Printing a long string crashes Solaris 7 /usr/bin/printf.
67
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
68
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
69
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
70 101 jeremybenn
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
71 82 jeremybenn
  as_echo='printf %s\n'
72
  as_echo_n='printf %s'
73
else
74
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
75
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
76
    as_echo_n='/usr/ucb/echo -n'
77 19 jeremybenn
  else
78 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
79
    as_echo_n_body='eval
80
      arg=$1;
81 101 jeremybenn
      case $arg in
82 82 jeremybenn
      *"$as_nl"*)
83
        expr "X$arg" : "X\\(.*\\)$as_nl";
84
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
85
      esac;
86
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
87
    '
88
    export as_echo_n_body
89
    as_echo_n='sh -c $as_echo_n_body as_echo'
90 19 jeremybenn
  fi
91 82 jeremybenn
  export as_echo_body
92
  as_echo='sh -c $as_echo_body as_echo'
93 19 jeremybenn
fi
94
 
95 82 jeremybenn
# The user is always right.
96
if test "${PATH_SEPARATOR+set}" != set; then
97
  PATH_SEPARATOR=:
98
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
99
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
100
      PATH_SEPARATOR=';'
101
  }
102
fi
103
 
104 101 jeremybenn
# Support unset when possible.
105
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
106
  as_unset=unset
107
else
108
  as_unset=false
109
fi
110 19 jeremybenn
 
111 101 jeremybenn
 
112 19 jeremybenn
# IFS
113
# We need space, tab and new line, in precisely that order.  Quoting is
114
# there to prevent editors from complaining about space-tab.
115
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
116
# splitting by setting IFS to empty value.)
117
IFS=" ""        $as_nl"
118
 
119
# Find who we are.  Look in the path if we contain no directory separator.
120 101 jeremybenn
case $0 in
121 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
122
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
123
for as_dir in $PATH
124
do
125
  IFS=$as_save_IFS
126
  test -z "$as_dir" && as_dir=.
127 101 jeremybenn
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
128
done
129 19 jeremybenn
IFS=$as_save_IFS
130
 
131
     ;;
132
esac
133
# We did not find ourselves, most probably we were run as `sh COMMAND'
134
# in which case we are not to be found in the path.
135
if test "x$as_myself" = x; then
136
  as_myself=$0
137
fi
138
if test ! -f "$as_myself"; then
139 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
140 101 jeremybenn
  { (exit 1); exit 1; }
141 19 jeremybenn
fi
142
 
143 101 jeremybenn
# Work around bugs in pre-3.0 UWIN ksh.
144
for as_var in ENV MAIL MAILPATH
145
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
146 19 jeremybenn
done
147
PS1='$ '
148
PS2='> '
149
PS4='+ '
150
 
151
# NLS nuisances.
152 82 jeremybenn
LC_ALL=C
153
export LC_ALL
154
LANGUAGE=C
155
export LANGUAGE
156 19 jeremybenn
 
157 101 jeremybenn
# Required to use basename.
158
if expr a : '\(a\)' >/dev/null 2>&1 &&
159
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
160
  as_expr=expr
161
else
162
  as_expr=false
163
fi
164
 
165
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
166
  as_basename=basename
167
else
168
  as_basename=false
169
fi
170
 
171
 
172
# Name of the executable.
173
as_me=`$as_basename -- "$0" ||
174
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
175
         X"$0" : 'X\(//\)$' \| \
176
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
177
$as_echo X/"$0" |
178
    sed '/^.*\/\([^/][^/]*\)\/*$/{
179
            s//\1/
180
            q
181
          }
182
          /^X\/\(\/\/\)$/{
183
            s//\1/
184
            q
185
          }
186
          /^X\/\(\/\).*/{
187
            s//\1/
188
            q
189
          }
190
          s/.*/./; q'`
191
 
192 19 jeremybenn
# CDPATH.
193 101 jeremybenn
$as_unset CDPATH
194 19 jeremybenn
 
195 101 jeremybenn
 
196 19 jeremybenn
if test "x$CONFIG_SHELL" = x; then
197 101 jeremybenn
  if (eval ":") 2>/dev/null; then
198
  as_have_required=yes
199 19 jeremybenn
else
200 101 jeremybenn
  as_have_required=no
201 19 jeremybenn
fi
202
 
203 101 jeremybenn
  if test $as_have_required = yes &&     (eval ":
204
(as_func_return () {
205
  (exit \$1)
206
}
207
as_func_success () {
208
  as_func_return 0
209
}
210
as_func_failure () {
211
  as_func_return 1
212
}
213
as_func_ret_success () {
214
  return 0
215
}
216
as_func_ret_failure () {
217
  return 1
218
}
219
 
220 19 jeremybenn
exitcode=0
221 101 jeremybenn
if as_func_success; then
222
  :
223
else
224
  exitcode=1
225
  echo as_func_success failed.
226
fi
227 19 jeremybenn
 
228 101 jeremybenn
if as_func_failure; then
229
  exitcode=1
230
  echo as_func_failure succeeded.
231
fi
232
 
233
if as_func_ret_success; then
234
  :
235 19 jeremybenn
else
236 101 jeremybenn
  exitcode=1
237
  echo as_func_ret_success failed.
238 19 jeremybenn
fi
239 101 jeremybenn
 
240
if as_func_ret_failure; then
241
  exitcode=1
242
  echo as_func_ret_failure succeeded.
243
fi
244
 
245
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
246
  :
247 19 jeremybenn
else
248 101 jeremybenn
  exitcode=1
249
  echo positional parameters were not saved.
250 19 jeremybenn
fi
251
 
252 101 jeremybenn
test \$exitcode = 0) || { (exit 1); exit 1; }
253
 
254
(
255
  as_lineno_1=\$LINENO
256
  as_lineno_2=\$LINENO
257
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
258
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
259
") 2> /dev/null; then
260
  :
261 19 jeremybenn
else
262 101 jeremybenn
  as_candidate_shells=
263
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
264 19 jeremybenn
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
265
do
266
  IFS=$as_save_IFS
267
  test -z "$as_dir" && as_dir=.
268 101 jeremybenn
  case $as_dir in
269 19 jeremybenn
         /*)
270
           for as_base in sh bash ksh sh5; do
271 101 jeremybenn
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
272 19 jeremybenn
           done;;
273
       esac
274
done
275
IFS=$as_save_IFS
276
 
277
 
278 101 jeremybenn
      for as_shell in $as_candidate_shells $SHELL; do
279
         # Try only shells that exist, to save several forks.
280
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
281
                { ("$as_shell") 2> /dev/null <<\_ASEOF
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
  emulate sh
284
  NULLCMD=:
285
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286
  # is contrary to our usage.  Disable this feature.
287
  alias -g '${1+"$@"}'='"$@"'
288
  setopt NO_GLOB_SUBST
289
else
290
  case `(set -o) 2>/dev/null` in
291
  *posix*) set -o posix ;;
292
esac
293
 
294 19 jeremybenn
fi
295
 
296 101 jeremybenn
 
297
:
298
_ASEOF
299
}; then
300
  CONFIG_SHELL=$as_shell
301
               as_have_required=yes
302
               if { "$as_shell" 2> /dev/null <<\_ASEOF
303
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
304
  emulate sh
305
  NULLCMD=:
306
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
307
  # is contrary to our usage.  Disable this feature.
308
  alias -g '${1+"$@"}'='"$@"'
309
  setopt NO_GLOB_SUBST
310
else
311
  case `(set -o) 2>/dev/null` in
312
  *posix*) set -o posix ;;
313
esac
314
 
315 19 jeremybenn
fi
316 101 jeremybenn
 
317
 
318
:
319
(as_func_return () {
320
  (exit $1)
321
}
322
as_func_success () {
323
  as_func_return 0
324
}
325
as_func_failure () {
326
  as_func_return 1
327
}
328
as_func_ret_success () {
329
  return 0
330
}
331
as_func_ret_failure () {
332
  return 1
333
}
334
 
335
exitcode=0
336
if as_func_success; then
337
  :
338
else
339
  exitcode=1
340
  echo as_func_success failed.
341 19 jeremybenn
fi
342 101 jeremybenn
 
343
if as_func_failure; then
344
  exitcode=1
345
  echo as_func_failure succeeded.
346 19 jeremybenn
fi
347
 
348 101 jeremybenn
if as_func_ret_success; then
349
  :
350
else
351
  exitcode=1
352
  echo as_func_ret_success failed.
353
fi
354 19 jeremybenn
 
355 101 jeremybenn
if as_func_ret_failure; then
356
  exitcode=1
357
  echo as_func_ret_failure succeeded.
358
fi
359 19 jeremybenn
 
360 101 jeremybenn
if ( set x; as_func_ret_success y && test x = "$1" ); then
361
  :
362
else
363
  exitcode=1
364
  echo positional parameters were not saved.
365
fi
366 19 jeremybenn
 
367 101 jeremybenn
test $exitcode = 0) || { (exit 1); exit 1; }
368 19 jeremybenn
 
369 101 jeremybenn
(
370
  as_lineno_1=$LINENO
371
  as_lineno_2=$LINENO
372
  test "x$as_lineno_1" != "x$as_lineno_2" &&
373
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
374 19 jeremybenn
 
375 101 jeremybenn
_ASEOF
376
}; then
377
  break
378
fi
379 19 jeremybenn
 
380 101 jeremybenn
fi
381 19 jeremybenn
 
382 101 jeremybenn
      done
383 19 jeremybenn
 
384 101 jeremybenn
      if test "x$CONFIG_SHELL" != x; then
385
  for as_var in BASH_ENV ENV
386
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
387
        done
388
        export CONFIG_SHELL
389
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
390
fi
391 19 jeremybenn
 
392
 
393 101 jeremybenn
    if test $as_have_required = no; then
394
  echo This script requires a shell more modern than all the
395
      echo shells that I found on your system.  Please install a
396
      echo modern shell, or manually run the script under such a
397
      echo shell if you do have one.
398
      { (exit 1); exit 1; }
399
fi
400
 
401
 
402
fi
403
 
404
fi
405
 
406
 
407
 
408
(eval "as_func_return () {
409
  (exit \$1)
410
}
411
as_func_success () {
412
  as_func_return 0
413
}
414
as_func_failure () {
415
  as_func_return 1
416
}
417
as_func_ret_success () {
418
  return 0
419
}
420
as_func_ret_failure () {
421
  return 1
422
}
423
 
424
exitcode=0
425
if as_func_success; then
426
  :
427 19 jeremybenn
else
428 101 jeremybenn
  exitcode=1
429
  echo as_func_success failed.
430 19 jeremybenn
fi
431
 
432 101 jeremybenn
if as_func_failure; then
433
  exitcode=1
434
  echo as_func_failure succeeded.
435
fi
436
 
437
if as_func_ret_success; then
438
  :
439 19 jeremybenn
else
440 101 jeremybenn
  exitcode=1
441
  echo as_func_ret_success failed.
442 19 jeremybenn
fi
443
 
444 101 jeremybenn
if as_func_ret_failure; then
445
  exitcode=1
446
  echo as_func_ret_failure succeeded.
447
fi
448
 
449
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
450
  :
451 19 jeremybenn
else
452 101 jeremybenn
  exitcode=1
453
  echo positional parameters were not saved.
454 19 jeremybenn
fi
455
 
456 101 jeremybenn
test \$exitcode = 0") || {
457
  echo No shell found that supports shell functions.
458
  echo Please tell bug-autoconf@gnu.org about your system,
459
  echo including any error possibly output before this message.
460
  echo This can help us improve future autoconf versions.
461
  echo Configuration will now proceed without shell functions.
462
}
463 19 jeremybenn
 
464
 
465
 
466 101 jeremybenn
  as_lineno_1=$LINENO
467
  as_lineno_2=$LINENO
468
  test "x$as_lineno_1" != "x$as_lineno_2" &&
469
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
470
 
471
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
472
  # uniformly replaced by the line number.  The first 'sed' inserts a
473
  # line-number line after each line using $LINENO; the second 'sed'
474
  # does the real work.  The second script uses 'N' to pair each
475
  # line-number line with the line containing $LINENO, and appends
476
  # trailing '-' during substitution so that $LINENO is not a special
477
  # case at line end.
478
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
479
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
480
  # E. McMahon (1931-1989) for sed's syntax.  :-)
481 19 jeremybenn
  sed -n '
482
    p
483
    /[$]LINENO/=
484
  ' <$as_myself |
485
    sed '
486
      s/[$]LINENO.*/&-/
487
      t lineno
488
      b
489
      :lineno
490
      N
491
      :loop
492
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493
      t loop
494
      s/-\n.*//
495
    ' >$as_me.lineno &&
496
  chmod +x "$as_me.lineno" ||
497 101 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
498
   { (exit 1); exit 1; }; }
499 19 jeremybenn
 
500
  # Don't try to exec as it changes $[0], causing all sort of problems
501
  # (the dirname of $[0] is not the place where we might find the
502
  # original and so on.  Autoconf is especially sensitive to this).
503
  . "./$as_me.lineno"
504
  # Exit status is that of the last command.
505
  exit
506
}
507
 
508 101 jeremybenn
 
509
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
510
  as_dirname=dirname
511
else
512
  as_dirname=false
513
fi
514
 
515 19 jeremybenn
ECHO_C= ECHO_N= ECHO_T=
516 101 jeremybenn
case `echo -n x` in
517 19 jeremybenn
-n*)
518 101 jeremybenn
  case `echo 'x\c'` in
519 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
520 101 jeremybenn
  *)   ECHO_C='\c';;
521 19 jeremybenn
  esac;;
522
*)
523
  ECHO_N='-n';;
524
esac
525 101 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
526
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
527
  as_expr=expr
528
else
529
  as_expr=false
530
fi
531 19 jeremybenn
 
532
rm -f conf$$ conf$$.exe conf$$.file
533
if test -d conf$$.dir; then
534
  rm -f conf$$.dir/conf$$.file
535
else
536
  rm -f conf$$.dir
537 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
538 19 jeremybenn
fi
539 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
540
  if ln -s conf$$.file conf$$ 2>/dev/null; then
541
    as_ln_s='ln -s'
542
    # ... but there are two gotchas:
543
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
544
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
545
    # In both cases, we have to default to `cp -p'.
546
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
547
      as_ln_s='cp -p'
548
  elif ln conf$$.file conf$$ 2>/dev/null; then
549
    as_ln_s=ln
550
  else
551 19 jeremybenn
    as_ln_s='cp -p'
552 82 jeremybenn
  fi
553 19 jeremybenn
else
554
  as_ln_s='cp -p'
555
fi
556
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
557
rmdir conf$$.dir 2>/dev/null
558
 
559
if mkdir -p . 2>/dev/null; then
560 101 jeremybenn
  as_mkdir_p=:
561 19 jeremybenn
else
562
  test -d ./-p && rmdir ./-p
563
  as_mkdir_p=false
564
fi
565
 
566
if test -x / >/dev/null 2>&1; then
567
  as_test_x='test -x'
568
else
569
  if ls -dL / >/dev/null 2>&1; then
570
    as_ls_L_option=L
571
  else
572
    as_ls_L_option=
573
  fi
574
  as_test_x='
575
    eval sh -c '\''
576
      if test -d "$1"; then
577 82 jeremybenn
        test -d "$1/.";
578 19 jeremybenn
      else
579 101 jeremybenn
        case $1 in
580 82 jeremybenn
        -*)set "./$1";;
581 19 jeremybenn
        esac;
582 101 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
583 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
584
    '\'' sh
585
  '
586
fi
587
as_executable_p=$as_test_x
588
 
589
# Sed expression to map a string onto a valid CPP name.
590
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
 
592
# Sed expression to map a string onto a valid variable name.
593
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
 
595
 
596
 
597 101 jeremybenn
 
598 19 jeremybenn
# Check that we are running under the correct shell.
599
SHELL=${CONFIG_SHELL-/bin/sh}
600
 
601 82 jeremybenn
case X$lt_ECHO in
602 19 jeremybenn
X*--fallback-echo)
603
  # Remove one level of quotation (which was required for Make).
604 82 jeremybenn
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
605 19 jeremybenn
  ;;
606
esac
607
 
608 82 jeremybenn
ECHO=${lt_ECHO-echo}
609 19 jeremybenn
if test "X$1" = X--no-reexec; then
610
  # Discard the --no-reexec flag, and continue.
611
  shift
612
elif test "X$1" = X--fallback-echo; then
613
  # Avoid inline document here, it may be left over
614
  :
615 82 jeremybenn
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
616
  # Yippee, $ECHO works!
617 19 jeremybenn
  :
618
else
619
  # Restart under the correct shell.
620
  exec $SHELL "$0" --no-reexec ${1+"$@"}
621
fi
622
 
623
if test "X$1" = X--fallback-echo; then
624
  # used as fallback echo
625
  shift
626 82 jeremybenn
  cat <<_LT_EOF
627 19 jeremybenn
$*
628 82 jeremybenn
_LT_EOF
629 19 jeremybenn
  exit 0
630
fi
631
 
632
# The HP-UX ksh and POSIX shell print the target directory to stdout
633
# if CDPATH is set.
634
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
635
 
636 82 jeremybenn
if test -z "$lt_ECHO"; then
637
  if test "X${echo_test_string+set}" != Xset; then
638
    # find a string as large as possible, as long as the shell can cope with it
639
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
640
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
641
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
642
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
643
      then
644
        break
645
      fi
646
    done
647
  fi
648 19 jeremybenn
 
649 82 jeremybenn
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
650
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
651
     test "X$echo_testing_string" = "X$echo_test_string"; then
652
    :
653
  else
654
    # The Solaris, AIX, and Digital Unix default echo programs unquote
655
    # backslashes.  This makes it impossible to quote backslashes using
656
    #   echo "$something" | sed 's/\\/\\\\/g'
657
    #
658
    # So, first we look for a working echo in the user's PATH.
659 19 jeremybenn
 
660 82 jeremybenn
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
661
    for dir in $PATH /usr/ucb; do
662
      IFS="$lt_save_ifs"
663
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
664
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
665
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
666
         test "X$echo_testing_string" = "X$echo_test_string"; then
667
        ECHO="$dir/echo"
668
        break
669
      fi
670
    done
671 19 jeremybenn
    IFS="$lt_save_ifs"
672
 
673 82 jeremybenn
    if test "X$ECHO" = Xecho; then
674
      # We didn't find a better echo, so look for alternatives.
675
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
676
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
677
         test "X$echo_testing_string" = "X$echo_test_string"; then
678
        # This shell has a builtin print -r that does the trick.
679
        ECHO='print -r'
680
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
681
           test "X$CONFIG_SHELL" != X/bin/ksh; then
682
        # If we have ksh, try running configure again with it.
683
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
684
        export ORIGINAL_CONFIG_SHELL
685
        CONFIG_SHELL=/bin/ksh
686
        export CONFIG_SHELL
687
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
688
      else
689
        # Try using printf.
690
        ECHO='printf %s\n'
691
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
692
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
693 19 jeremybenn
           test "X$echo_testing_string" = "X$echo_test_string"; then
694 82 jeremybenn
          # Cool, printf works
695
          :
696
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
697
             test "X$echo_testing_string" = 'X\t' &&
698
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
699
             test "X$echo_testing_string" = "X$echo_test_string"; then
700
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
701
          export CONFIG_SHELL
702
          SHELL="$CONFIG_SHELL"
703
          export SHELL
704
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
705
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
706
             test "X$echo_testing_string" = 'X\t' &&
707
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
708
             test "X$echo_testing_string" = "X$echo_test_string"; then
709
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
710
        else
711
          # maybe with a smaller string...
712
          prev=:
713 19 jeremybenn
 
714 82 jeremybenn
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
715
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
716
            then
717
              break
718
            fi
719
            prev="$cmd"
720
          done
721
 
722
          if test "$prev" != 'sed 50q "$0"'; then
723
            echo_test_string=`eval $prev`
724
            export echo_test_string
725
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
726
          else
727
            # Oops.  We lost completely, so just stick with echo.
728
            ECHO=echo
729 19 jeremybenn
          fi
730 82 jeremybenn
        fi
731 19 jeremybenn
      fi
732
    fi
733
  fi
734
fi
735
 
736
# Copy echo and quote the copy suitably for passing to libtool from
737
# the Makefile, instead of quoting the original, which is used later.
738 82 jeremybenn
lt_ECHO=$ECHO
739
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
740
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
741 19 jeremybenn
fi
742
 
743
 
744
 
745
 
746 101 jeremybenn
exec 7<&0 &1
747 19 jeremybenn
 
748
# Name of the host.
749
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
750
# so uname gets run too.
751
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
752
 
753
#
754
# Initializations.
755
#
756
ac_default_prefix=/usr/local
757
ac_clean_files=
758
ac_config_libobj_dir=.
759
LIBOBJS=
760
cross_compiling=no
761
subdirs=
762
MFLAGS=
763
MAKEFLAGS=
764 101 jeremybenn
SHELL=${CONFIG_SHELL-/bin/sh}
765 19 jeremybenn
 
766
# Identity of this package.
767
PACKAGE_NAME='or1ksim'
768
PACKAGE_TARNAME='or1ksim'
769 101 jeremybenn
PACKAGE_VERSION='2010-05-25'
770
PACKAGE_STRING='or1ksim 2010-05-25'
771 19 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
772
 
773
# Factoring default headers for most tests.
774
ac_includes_default="\
775
#include 
776
#ifdef HAVE_SYS_TYPES_H
777
# include 
778
#endif
779
#ifdef HAVE_SYS_STAT_H
780
# include 
781
#endif
782
#ifdef STDC_HEADERS
783
# include 
784
# include 
785
#else
786
# ifdef HAVE_STDLIB_H
787
#  include 
788
# endif
789
#endif
790
#ifdef HAVE_STRING_H
791
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
792
#  include 
793
# endif
794
# include 
795
#endif
796
#ifdef HAVE_STRINGS_H
797
# include 
798
#endif
799
#ifdef HAVE_INTTYPES_H
800
# include 
801
#endif
802
#ifdef HAVE_STDINT_H
803
# include 
804
#endif
805
#ifdef HAVE_UNISTD_H
806
# include 
807
#endif"
808
 
809 91 jeremybenn
ac_unique_file="cpu/or32/execute.c"
810
enable_option_checking=no
811 82 jeremybenn
ac_subst_vars='am__EXEEXT_FALSE
812
am__EXEEXT_TRUE
813
LTLIBOBJS
814
INCLUDES
815
TERMCAP_LIB
816
SUMVERSION
817
ARFLAGS
818
LOCAL_DEFS
819
LOCAL_LDFLAGS
820
LOCAL_CFLAGS
821
BUILD_DIR
822 96 jeremybenn
RUNTESTDEFAULTFLAGS
823 90 jeremybenn
DEJAGNU
824 82 jeremybenn
DYNAMIC_EXECUTION_FALSE
825
DYNAMIC_EXECUTION_TRUE
826
GENERATE_NEEDED_FALSE
827
GENERATE_NEEDED_TRUE
828
DEBUGFLAGS
829
USE_ARGDATE_FALSE
830
USE_ARGDATE_TRUE
831
USE_ARGREX_FALSE
832
USE_ARGREX_TRUE
833
USE_SYS_GETOPTLONG_FALSE
834
USE_SYS_GETOPTLONG_TRUE
835
POW_LIB
836
LIBOBJS
837
am__fastdepCCAS_FALSE
838
am__fastdepCCAS_TRUE
839
CCASDEPMODE
840
CCASFLAGS
841
CCAS
842
CPU_ARCH
843
am__fastdepCC_FALSE
844
am__fastdepCC_TRUE
845
CCDEPMODE
846
AMDEPBACKSLASH
847
AMDEP_FALSE
848
AMDEP_TRUE
849
am__quote
850
am__include
851
DEPDIR
852
am__untar
853
am__tar
854
AMTAR
855
am__leading_dot
856
SET_MAKE
857
AWK
858
mkdir_p
859
MKDIR_P
860
INSTALL_STRIP_PROGRAM
861
install_sh
862
MAKEINFO
863
AUTOHEADER
864
AUTOMAKE
865
AUTOCONF
866
ACLOCAL
867
VERSION
868
PACKAGE
869
CYGPATH_W
870
am__isrc
871
INSTALL_DATA
872
INSTALL_SCRIPT
873
INSTALL_PROGRAM
874
OTOOL64
875
OTOOL
876
LIPO
877
NMEDIT
878
DSYMUTIL
879
lt_ECHO
880 19 jeremybenn
RANLIB
881
STRIP
882 82 jeremybenn
AR
883
OBJDUMP
884
LN_S
885
NM
886
ac_ct_DUMPBIN
887
DUMPBIN
888
LD
889
FGREP
890
SED
891 19 jeremybenn
LIBTOOL
892 82 jeremybenn
target_os
893
target_vendor
894
target_cpu
895
target
896
host_os
897
host_vendor
898
host_cpu
899
host
900
build_os
901
build_vendor
902
build_cpu
903
build
904
subdirs
905 91 jeremybenn
EGREP
906
GREP
907
CPP
908
OBJEXT
909
EXEEXT
910
ac_ct_CC
911
CPPFLAGS
912
LDFLAGS
913
CFLAGS
914
CC
915 82 jeremybenn
target_alias
916
host_alias
917
build_alias
918
LIBS
919
ECHO_T
920
ECHO_N
921
ECHO_C
922
DEFS
923
mandir
924
localedir
925
libdir
926
psdir
927
pdfdir
928
dvidir
929
htmldir
930
infodir
931
docdir
932
oldincludedir
933
includedir
934
localstatedir
935
sharedstatedir
936
sysconfdir
937
datadir
938
datarootdir
939
libexecdir
940
sbindir
941
bindir
942
program_transform_name
943
prefix
944
exec_prefix
945
PACKAGE_BUGREPORT
946
PACKAGE_STRING
947
PACKAGE_VERSION
948
PACKAGE_TARNAME
949
PACKAGE_NAME
950
PATH_SEPARATOR
951
SHELL'
952 19 jeremybenn
ac_subst_files=''
953 82 jeremybenn
ac_user_opts='
954
enable_option_checking
955
enable_shared
956
enable_static
957
with_pic
958
enable_fast_install
959
with_gnu_ld
960
enable_libtool_lock
961
enable_dependency_tracking
962
enable_profiling
963
enable_execution
964
enable_ethphy
965
enable_range_stats
966
enable_ov_flag
967
enable_arith_flag
968
enable_debug
969
'
970 19 jeremybenn
      ac_precious_vars='build_alias
971
host_alias
972
target_alias
973
CC
974
CFLAGS
975
LDFLAGS
976
LIBS
977
CPPFLAGS
978
CPP
979 82 jeremybenn
CCAS
980
CCASFLAGS'
981 90 jeremybenn
ac_subdirs_all='testsuite/test-code-or1k'
982 19 jeremybenn
 
983
# Initialize some variables set by options.
984
ac_init_help=
985
ac_init_version=false
986 82 jeremybenn
ac_unrecognized_opts=
987
ac_unrecognized_sep=
988 19 jeremybenn
# The variables have the same names as the options, with
989
# dashes changed to underlines.
990
cache_file=/dev/null
991
exec_prefix=NONE
992
no_create=
993
no_recursion=
994
prefix=NONE
995
program_prefix=NONE
996
program_suffix=NONE
997
program_transform_name=s,x,x,
998
silent=
999
site=
1000
srcdir=
1001
verbose=
1002
x_includes=NONE
1003
x_libraries=NONE
1004
 
1005
# Installation directory options.
1006
# These are left unexpanded so users can "make install exec_prefix=/foo"
1007
# and all the variables that are supposed to be based on exec_prefix
1008
# by default will actually change.
1009
# Use braces instead of parens because sh, perl, etc. also accept them.
1010
# (The list follows the same order as the GNU Coding Standards.)
1011
bindir='${exec_prefix}/bin'
1012
sbindir='${exec_prefix}/sbin'
1013
libexecdir='${exec_prefix}/libexec'
1014
datarootdir='${prefix}/share'
1015
datadir='${datarootdir}'
1016
sysconfdir='${prefix}/etc'
1017
sharedstatedir='${prefix}/com'
1018
localstatedir='${prefix}/var'
1019
includedir='${prefix}/include'
1020
oldincludedir='/usr/include'
1021
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1022
infodir='${datarootdir}/info'
1023
htmldir='${docdir}'
1024
dvidir='${docdir}'
1025
pdfdir='${docdir}'
1026
psdir='${docdir}'
1027
libdir='${exec_prefix}/lib'
1028
localedir='${datarootdir}/locale'
1029
mandir='${datarootdir}/man'
1030
 
1031
ac_prev=
1032
ac_dashdash=
1033
for ac_option
1034
do
1035
  # If the previous option needs an argument, assign it.
1036
  if test -n "$ac_prev"; then
1037
    eval $ac_prev=\$ac_option
1038
    ac_prev=
1039
    continue
1040
  fi
1041
 
1042
  case $ac_option in
1043
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1044
  *)    ac_optarg=yes ;;
1045
  esac
1046
 
1047
  # Accept the important Cygnus configure options, so we can diagnose typos.
1048
 
1049
  case $ac_dashdash$ac_option in
1050
  --)
1051
    ac_dashdash=yes ;;
1052
 
1053
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1054
    ac_prev=bindir ;;
1055
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1056
    bindir=$ac_optarg ;;
1057
 
1058
  -build | --build | --buil | --bui | --bu)
1059
    ac_prev=build_alias ;;
1060
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1061
    build_alias=$ac_optarg ;;
1062
 
1063
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1064
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1065
    ac_prev=cache_file ;;
1066
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1067
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1068
    cache_file=$ac_optarg ;;
1069
 
1070
  --config-cache | -C)
1071
    cache_file=config.cache ;;
1072
 
1073
  -datadir | --datadir | --datadi | --datad)
1074
    ac_prev=datadir ;;
1075
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1076
    datadir=$ac_optarg ;;
1077
 
1078
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1079
  | --dataroo | --dataro | --datar)
1080
    ac_prev=datarootdir ;;
1081
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1082
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1083
    datarootdir=$ac_optarg ;;
1084
 
1085
  -disable-* | --disable-*)
1086 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1087 19 jeremybenn
    # Reject names that are not valid shell variable names.
1088 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 101 jeremybenn
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1090
   { (exit 1); exit 1; }; }
1091 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1092
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093
    case $ac_user_opts in
1094
      *"
1095
"enable_$ac_useropt"
1096
"*) ;;
1097
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1098
         ac_unrecognized_sep=', ';;
1099
    esac
1100
    eval enable_$ac_useropt=no ;;
1101 19 jeremybenn
 
1102
  -docdir | --docdir | --docdi | --doc | --do)
1103
    ac_prev=docdir ;;
1104
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1105
    docdir=$ac_optarg ;;
1106
 
1107
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1108
    ac_prev=dvidir ;;
1109
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1110
    dvidir=$ac_optarg ;;
1111
 
1112
  -enable-* | --enable-*)
1113 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1114 19 jeremybenn
    # Reject names that are not valid shell variable names.
1115 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 101 jeremybenn
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1117
   { (exit 1); exit 1; }; }
1118 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1119
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120
    case $ac_user_opts in
1121
      *"
1122
"enable_$ac_useropt"
1123
"*) ;;
1124
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1125
         ac_unrecognized_sep=', ';;
1126
    esac
1127
    eval enable_$ac_useropt=\$ac_optarg ;;
1128 19 jeremybenn
 
1129
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1130
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1131
  | --exec | --exe | --ex)
1132
    ac_prev=exec_prefix ;;
1133
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1134
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1135
  | --exec=* | --exe=* | --ex=*)
1136
    exec_prefix=$ac_optarg ;;
1137
 
1138
  -gas | --gas | --ga | --g)
1139
    # Obsolete; use --with-gas.
1140
    with_gas=yes ;;
1141
 
1142
  -help | --help | --hel | --he | -h)
1143
    ac_init_help=long ;;
1144
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1145
    ac_init_help=recursive ;;
1146
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1147
    ac_init_help=short ;;
1148
 
1149
  -host | --host | --hos | --ho)
1150
    ac_prev=host_alias ;;
1151
  -host=* | --host=* | --hos=* | --ho=*)
1152
    host_alias=$ac_optarg ;;
1153
 
1154
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1155
    ac_prev=htmldir ;;
1156
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1157
  | --ht=*)
1158
    htmldir=$ac_optarg ;;
1159
 
1160
  -includedir | --includedir | --includedi | --included | --include \
1161
  | --includ | --inclu | --incl | --inc)
1162
    ac_prev=includedir ;;
1163
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1164
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1165
    includedir=$ac_optarg ;;
1166
 
1167
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1168
    ac_prev=infodir ;;
1169
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1170
    infodir=$ac_optarg ;;
1171
 
1172
  -libdir | --libdir | --libdi | --libd)
1173
    ac_prev=libdir ;;
1174
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1175
    libdir=$ac_optarg ;;
1176
 
1177
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1178
  | --libexe | --libex | --libe)
1179
    ac_prev=libexecdir ;;
1180
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1181
  | --libexe=* | --libex=* | --libe=*)
1182
    libexecdir=$ac_optarg ;;
1183
 
1184
  -localedir | --localedir | --localedi | --localed | --locale)
1185
    ac_prev=localedir ;;
1186
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1187
    localedir=$ac_optarg ;;
1188
 
1189
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1190
  | --localstate | --localstat | --localsta | --localst | --locals)
1191
    ac_prev=localstatedir ;;
1192
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1193
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1194
    localstatedir=$ac_optarg ;;
1195
 
1196
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1197
    ac_prev=mandir ;;
1198
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1199
    mandir=$ac_optarg ;;
1200
 
1201
  -nfp | --nfp | --nf)
1202
    # Obsolete; use --without-fp.
1203
    with_fp=no ;;
1204
 
1205
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1206
  | --no-cr | --no-c | -n)
1207
    no_create=yes ;;
1208
 
1209
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1210
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1211
    no_recursion=yes ;;
1212
 
1213
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1214
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1215
  | --oldin | --oldi | --old | --ol | --o)
1216
    ac_prev=oldincludedir ;;
1217
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1218
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1219
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1220
    oldincludedir=$ac_optarg ;;
1221
 
1222
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1223
    ac_prev=prefix ;;
1224
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1225
    prefix=$ac_optarg ;;
1226
 
1227
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1228
  | --program-pre | --program-pr | --program-p)
1229
    ac_prev=program_prefix ;;
1230
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1231
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1232
    program_prefix=$ac_optarg ;;
1233
 
1234
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1235
  | --program-suf | --program-su | --program-s)
1236
    ac_prev=program_suffix ;;
1237
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1238
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1239
    program_suffix=$ac_optarg ;;
1240
 
1241
  -program-transform-name | --program-transform-name \
1242
  | --program-transform-nam | --program-transform-na \
1243
  | --program-transform-n | --program-transform- \
1244
  | --program-transform | --program-transfor \
1245
  | --program-transfo | --program-transf \
1246
  | --program-trans | --program-tran \
1247
  | --progr-tra | --program-tr | --program-t)
1248
    ac_prev=program_transform_name ;;
1249
  -program-transform-name=* | --program-transform-name=* \
1250
  | --program-transform-nam=* | --program-transform-na=* \
1251
  | --program-transform-n=* | --program-transform-=* \
1252
  | --program-transform=* | --program-transfor=* \
1253
  | --program-transfo=* | --program-transf=* \
1254
  | --program-trans=* | --program-tran=* \
1255
  | --progr-tra=* | --program-tr=* | --program-t=*)
1256
    program_transform_name=$ac_optarg ;;
1257
 
1258
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1259
    ac_prev=pdfdir ;;
1260
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1261
    pdfdir=$ac_optarg ;;
1262
 
1263
  -psdir | --psdir | --psdi | --psd | --ps)
1264
    ac_prev=psdir ;;
1265
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1266
    psdir=$ac_optarg ;;
1267
 
1268
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269
  | -silent | --silent | --silen | --sile | --sil)
1270
    silent=yes ;;
1271
 
1272
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1273
    ac_prev=sbindir ;;
1274
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1275
  | --sbi=* | --sb=*)
1276
    sbindir=$ac_optarg ;;
1277
 
1278
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1279
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1280
  | --sharedst | --shareds | --shared | --share | --shar \
1281
  | --sha | --sh)
1282
    ac_prev=sharedstatedir ;;
1283
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1284
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1285
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1286
  | --sha=* | --sh=*)
1287
    sharedstatedir=$ac_optarg ;;
1288
 
1289
  -site | --site | --sit)
1290
    ac_prev=site ;;
1291
  -site=* | --site=* | --sit=*)
1292
    site=$ac_optarg ;;
1293
 
1294
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1295
    ac_prev=srcdir ;;
1296
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1297
    srcdir=$ac_optarg ;;
1298
 
1299
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1300
  | --syscon | --sysco | --sysc | --sys | --sy)
1301
    ac_prev=sysconfdir ;;
1302
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1303
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1304
    sysconfdir=$ac_optarg ;;
1305
 
1306
  -target | --target | --targe | --targ | --tar | --ta | --t)
1307
    ac_prev=target_alias ;;
1308
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1309
    target_alias=$ac_optarg ;;
1310
 
1311
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1312
    verbose=yes ;;
1313
 
1314
  -version | --version | --versio | --versi | --vers | -V)
1315
    ac_init_version=: ;;
1316
 
1317
  -with-* | --with-*)
1318 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1319 19 jeremybenn
    # Reject names that are not valid shell variable names.
1320 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321 101 jeremybenn
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1322
   { (exit 1); exit 1; }; }
1323 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1324
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325
    case $ac_user_opts in
1326
      *"
1327
"with_$ac_useropt"
1328
"*) ;;
1329
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1330
         ac_unrecognized_sep=', ';;
1331
    esac
1332
    eval with_$ac_useropt=\$ac_optarg ;;
1333 19 jeremybenn
 
1334
  -without-* | --without-*)
1335 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1336 19 jeremybenn
    # Reject names that are not valid shell variable names.
1337 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338 101 jeremybenn
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1339
   { (exit 1); exit 1; }; }
1340 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1341
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342
    case $ac_user_opts in
1343
      *"
1344
"with_$ac_useropt"
1345
"*) ;;
1346
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1347
         ac_unrecognized_sep=', ';;
1348
    esac
1349
    eval with_$ac_useropt=no ;;
1350 19 jeremybenn
 
1351
  --x)
1352
    # Obsolete; use --with-x.
1353
    with_x=yes ;;
1354
 
1355
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1356
  | --x-incl | --x-inc | --x-in | --x-i)
1357
    ac_prev=x_includes ;;
1358
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1359
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1360
    x_includes=$ac_optarg ;;
1361
 
1362
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1363
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1364
    ac_prev=x_libraries ;;
1365
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1366
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1367
    x_libraries=$ac_optarg ;;
1368
 
1369 101 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1370
Try \`$0 --help' for more information." >&2
1371
   { (exit 1); exit 1; }; }
1372 19 jeremybenn
    ;;
1373
 
1374
  *=*)
1375
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1376
    # Reject names that are not valid shell variable names.
1377 101 jeremybenn
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1378
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1379
   { (exit 1); exit 1; }; }
1380 19 jeremybenn
    eval $ac_envvar=\$ac_optarg
1381
    export $ac_envvar ;;
1382
 
1383
  *)
1384
    # FIXME: should be removed in autoconf 3.0.
1385 82 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1386 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387 82 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1388 19 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1389
    ;;
1390
 
1391
  esac
1392
done
1393
 
1394
if test -n "$ac_prev"; then
1395
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1396 101 jeremybenn
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1397
   { (exit 1); exit 1; }; }
1398 19 jeremybenn
fi
1399
 
1400 82 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1401
  case $enable_option_checking in
1402
    no) ;;
1403 101 jeremybenn
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1404
   { (exit 1); exit 1; }; } ;;
1405 82 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1406
  esac
1407
fi
1408
 
1409
# Check all directory arguments for consistency.
1410 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1411
                datadir sysconfdir sharedstatedir localstatedir includedir \
1412
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1413
                libdir localedir mandir
1414
do
1415
  eval ac_val=\$$ac_var
1416 82 jeremybenn
  # Remove trailing slashes.
1417 19 jeremybenn
  case $ac_val in
1418 82 jeremybenn
    */ )
1419
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1420
      eval $ac_var=\$ac_val;;
1421
  esac
1422
  # Be sure to have absolute directory names.
1423
  case $ac_val in
1424 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1425
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1426
  esac
1427 101 jeremybenn
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1428
   { (exit 1); exit 1; }; }
1429 19 jeremybenn
done
1430
 
1431
# There might be people who depend on the old broken behavior: `$host'
1432
# used to hold the argument of --host etc.
1433
# FIXME: To remove some day.
1434
build=$build_alias
1435
host=$host_alias
1436
target=$target_alias
1437
 
1438
# FIXME: To remove some day.
1439
if test "x$host_alias" != x; then
1440
  if test "x$build_alias" = x; then
1441
    cross_compiling=maybe
1442 82 jeremybenn
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1443 19 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1444
  elif test "x$build_alias" != "x$host_alias"; then
1445
    cross_compiling=yes
1446
  fi
1447
fi
1448
 
1449
ac_tool_prefix=
1450
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1451
 
1452
test "$silent" = yes && exec 6>/dev/null
1453
 
1454
 
1455
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1456
ac_ls_di=`ls -di .` &&
1457
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1458 101 jeremybenn
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1459
   { (exit 1); exit 1; }; }
1460 19 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1461 101 jeremybenn
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1462
   { (exit 1); exit 1; }; }
1463 19 jeremybenn
 
1464
 
1465
# Find the source files, if location was not specified.
1466
if test -z "$srcdir"; then
1467
  ac_srcdir_defaulted=yes
1468
  # Try the directory containing this script, then the parent directory.
1469 82 jeremybenn
  ac_confdir=`$as_dirname -- "$as_myself" ||
1470
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1471
         X"$as_myself" : 'X\(//\)[^/]' \| \
1472
         X"$as_myself" : 'X\(//\)$' \| \
1473
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1474
$as_echo X"$as_myself" |
1475 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1476
            s//\1/
1477
            q
1478
          }
1479
          /^X\(\/\/\)[^/].*/{
1480
            s//\1/
1481
            q
1482
          }
1483
          /^X\(\/\/\)$/{
1484
            s//\1/
1485
            q
1486
          }
1487
          /^X\(\/\).*/{
1488
            s//\1/
1489
            q
1490
          }
1491
          s/.*/./; q'`
1492
  srcdir=$ac_confdir
1493
  if test ! -r "$srcdir/$ac_unique_file"; then
1494
    srcdir=..
1495
  fi
1496
else
1497
  ac_srcdir_defaulted=no
1498
fi
1499
if test ! -r "$srcdir/$ac_unique_file"; then
1500
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1501 101 jeremybenn
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1502
   { (exit 1); exit 1; }; }
1503 19 jeremybenn
fi
1504
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1505
ac_abs_confdir=`(
1506 101 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1507
   { (exit 1); exit 1; }; }
1508 19 jeremybenn
        pwd)`
1509
# When building in place, set srcdir=.
1510
if test "$ac_abs_confdir" = "$ac_pwd"; then
1511
  srcdir=.
1512
fi
1513
# Remove unnecessary trailing slashes from srcdir.
1514
# Double slashes in file names in object file debugging info
1515
# mess up M-x gdb in Emacs.
1516
case $srcdir in
1517
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1518
esac
1519
for ac_var in $ac_precious_vars; do
1520
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1521
  eval ac_env_${ac_var}_value=\$${ac_var}
1522
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1523
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1524
done
1525
 
1526
#
1527
# Report the --help message.
1528
#
1529
if test "$ac_init_help" = "long"; then
1530
  # Omit some internal or obsolete options to make the list less imposing.
1531
  # This message is too long to be a string in the A/UX 3.1 sh.
1532
  cat <<_ACEOF
1533 101 jeremybenn
\`configure' configures or1ksim 2010-05-25 to adapt to many kinds of systems.
1534 19 jeremybenn
 
1535
Usage: $0 [OPTION]... [VAR=VALUE]...
1536
 
1537
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1538
VAR=VALUE.  See below for descriptions of some of the useful variables.
1539
 
1540
Defaults for the options are specified in brackets.
1541
 
1542
Configuration:
1543
  -h, --help              display this help and exit
1544
      --help=short        display options specific to this package
1545
      --help=recursive    display the short help of all the included packages
1546
  -V, --version           display version information and exit
1547
  -q, --quiet, --silent   do not print \`checking...' messages
1548
      --cache-file=FILE   cache test results in FILE [disabled]
1549
  -C, --config-cache      alias for \`--cache-file=config.cache'
1550
  -n, --no-create         do not create output files
1551
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1552
 
1553
Installation directories:
1554
  --prefix=PREFIX         install architecture-independent files in PREFIX
1555 82 jeremybenn
                          [$ac_default_prefix]
1556 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1557 82 jeremybenn
                          [PREFIX]
1558 19 jeremybenn
 
1559
By default, \`make install' will install all the files in
1560
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1561
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1562
for instance \`--prefix=\$HOME'.
1563
 
1564
For better control, use the options below.
1565
 
1566
Fine tuning of the installation directories:
1567 82 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1568
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1569
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1570
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1571
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1572
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1573
  --libdir=DIR            object code libraries [EPREFIX/lib]
1574
  --includedir=DIR        C header files [PREFIX/include]
1575
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1576
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1577
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1578
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1579
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1580
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1581
  --docdir=DIR            documentation root [DATAROOTDIR/doc/or1ksim]
1582
  --htmldir=DIR           html documentation [DOCDIR]
1583
  --dvidir=DIR            dvi documentation [DOCDIR]
1584
  --pdfdir=DIR            pdf documentation [DOCDIR]
1585
  --psdir=DIR             ps documentation [DOCDIR]
1586 19 jeremybenn
_ACEOF
1587
 
1588
  cat <<\_ACEOF
1589
 
1590
Program names:
1591
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1592
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1593
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1594
 
1595
System types:
1596
  --build=BUILD     configure for building on BUILD [guessed]
1597
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1598
  --target=TARGET   configure for building compilers for TARGET [HOST]
1599
_ACEOF
1600
fi
1601
 
1602
if test -n "$ac_init_help"; then
1603
  case $ac_init_help in
1604 101 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 2010-05-25:";;
1605 19 jeremybenn
   esac
1606
  cat <<\_ACEOF
1607
 
1608
Optional Features:
1609 82 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1610 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1611
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1612
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1613
  --enable-static[=PKGS]  build static libraries [default=yes]
1614
  --enable-fast-install[=PKGS]
1615
                          optimize for fast installation [default=yes]
1616
  --disable-libtool-lock  avoid locking (might break parallel builds)
1617
  --disable-dependency-tracking  speeds up one-time build
1618
  --enable-dependency-tracking   do not reject slow dependency extractors
1619
  --enable-profiling      generate profiling code
1620
  --enable-execution Execution style to use (simple/complex/dynamic)
1621
  --enable-ethphy    compiles sim with ethernet phy support
1622
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1623
  --enable-ov-flag      Whether instructions set overflow flag.
1624
  --enable-arith-flag      Whether arithmethic instructions setflag.
1625
  --enable-debug          enable library debugging symbols
1626
 
1627
Optional Packages:
1628
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1629
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1630
  --with-pic              try to use only PIC/non-PIC objects [default=use
1631
                          both]
1632 82 jeremybenn
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1633 19 jeremybenn
 
1634
Some influential environment variables:
1635
  CC          C compiler command
1636
  CFLAGS      C compiler flags
1637
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1638
              nonstandard directory 
1639
  LIBS        libraries to pass to the linker, e.g. -l
1640 101 jeremybenn
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1641 19 jeremybenn
              you have headers in a nonstandard directory 
1642
  CPP         C preprocessor
1643 82 jeremybenn
  CCAS        assembler compiler command (defaults to CC)
1644
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1645 19 jeremybenn
 
1646
Use these variables to override the choices made by `configure' or to help
1647
it to find libraries and programs with nonstandard names/locations.
1648
 
1649
Report bugs to .
1650
_ACEOF
1651
ac_status=$?
1652
fi
1653
 
1654
if test "$ac_init_help" = "recursive"; then
1655
  # If there are subdirs, report their specific --help.
1656
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657 82 jeremybenn
    test -d "$ac_dir" ||
1658
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1659
      continue
1660 19 jeremybenn
    ac_builddir=.
1661
 
1662
case "$ac_dir" in
1663
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664
*)
1665 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1666 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1667 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1668 19 jeremybenn
  case $ac_top_builddir_sub in
1669
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1671
  esac ;;
1672
esac
1673
ac_abs_top_builddir=$ac_pwd
1674
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1675
# for backward compatibility:
1676
ac_top_builddir=$ac_top_build_prefix
1677
 
1678
case $srcdir in
1679
  .)  # We are building in place.
1680
    ac_srcdir=.
1681
    ac_top_srcdir=$ac_top_builddir_sub
1682
    ac_abs_top_srcdir=$ac_pwd ;;
1683
  [\\/]* | ?:[\\/]* )  # Absolute name.
1684
    ac_srcdir=$srcdir$ac_dir_suffix;
1685
    ac_top_srcdir=$srcdir
1686
    ac_abs_top_srcdir=$srcdir ;;
1687
  *) # Relative name.
1688
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1689
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1690
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691
esac
1692
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1693
 
1694
    cd "$ac_dir" || { ac_status=$?; continue; }
1695
    # Check for guested configure.
1696
    if test -f "$ac_srcdir/configure.gnu"; then
1697
      echo &&
1698
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1699
    elif test -f "$ac_srcdir/configure"; then
1700
      echo &&
1701
      $SHELL "$ac_srcdir/configure" --help=recursive
1702
    else
1703 82 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704 19 jeremybenn
    fi || ac_status=$?
1705
    cd "$ac_pwd" || { ac_status=$?; break; }
1706
  done
1707
fi
1708
 
1709
test -n "$ac_init_help" && exit $ac_status
1710
if $ac_init_version; then
1711
  cat <<\_ACEOF
1712 101 jeremybenn
or1ksim configure 2010-05-25
1713
generated by GNU Autoconf 2.63
1714 19 jeremybenn
 
1715 101 jeremybenn
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1716
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1717 19 jeremybenn
This configure script is free software; the Free Software Foundation
1718
gives unlimited permission to copy, distribute and modify it.
1719 82 jeremybenn
 
1720
Copyright (C) 1999-2008 OpenCores
1721
Copyright (C) 2008, 2010 Embecosm Limited
1722
 
1723
Contributor Jeremy Bennett 
1724
 
1725
This file is part of OpenRISC 1000 Architectural Simulator.
1726
 
1727
This program is free software; you can redistribute it and/or modify it
1728
under the terms of the GNU General Public License as published by the Free
1729
Software Foundation; either version 3 of the License, or (at your option)
1730
any later version.
1731
 
1732
This program is distributed in the hope that it will be useful, but WITHOUT
1733
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1734
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1735
more details.
1736
 
1737
You should have received a copy of the GNU General Public License along
1738
with this program.  If not, see .
1739 19 jeremybenn
_ACEOF
1740
  exit
1741
fi
1742
cat >config.log <<_ACEOF
1743
This file contains any messages produced by compilers while
1744
running configure, to aid debugging if configure makes a mistake.
1745
 
1746 101 jeremybenn
It was created by or1ksim $as_me 2010-05-25, which was
1747
generated by GNU Autoconf 2.63.  Invocation command line was
1748 19 jeremybenn
 
1749
  $ $0 $@
1750
 
1751
_ACEOF
1752
exec 5>>config.log
1753
{
1754
cat <<_ASUNAME
1755
## --------- ##
1756
## Platform. ##
1757
## --------- ##
1758
 
1759
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1760
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1761
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1762
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1763
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1764
 
1765
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1766
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1767
 
1768
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1769
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1770
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1771
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1772
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1773
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1774
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1775
 
1776
_ASUNAME
1777
 
1778
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779
for as_dir in $PATH
1780
do
1781
  IFS=$as_save_IFS
1782
  test -z "$as_dir" && as_dir=.
1783 101 jeremybenn
  $as_echo "PATH: $as_dir"
1784
done
1785 19 jeremybenn
IFS=$as_save_IFS
1786
 
1787
} >&5
1788
 
1789
cat >&5 <<_ACEOF
1790
 
1791
 
1792
## ----------- ##
1793
## Core tests. ##
1794
## ----------- ##
1795
 
1796
_ACEOF
1797
 
1798
 
1799
# Keep a trace of the command line.
1800
# Strip out --no-create and --no-recursion so they do not pile up.
1801
# Strip out --silent because we don't want to record it for future runs.
1802
# Also quote any args containing shell meta-characters.
1803
# Make two passes to allow for proper duplicate-argument suppression.
1804
ac_configure_args=
1805
ac_configure_args0=
1806
ac_configure_args1=
1807
ac_must_keep_next=false
1808
for ac_pass in 1 2
1809
do
1810
  for ac_arg
1811
  do
1812
    case $ac_arg in
1813
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1814
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1815
    | -silent | --silent | --silen | --sile | --sil)
1816
      continue ;;
1817
    *\'*)
1818 82 jeremybenn
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1819 19 jeremybenn
    esac
1820
    case $ac_pass in
1821 101 jeremybenn
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1822 19 jeremybenn
    2)
1823 101 jeremybenn
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1824 19 jeremybenn
      if test $ac_must_keep_next = true; then
1825
        ac_must_keep_next=false # Got value, back to normal.
1826
      else
1827
        case $ac_arg in
1828
          *=* | --config-cache | -C | -disable-* | --disable-* \
1829
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1830
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1831
          | -with-* | --with-* | -without-* | --without-* | --x)
1832
            case "$ac_configure_args0 " in
1833
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1834
            esac
1835
            ;;
1836
          -* ) ac_must_keep_next=true ;;
1837
        esac
1838
      fi
1839 101 jeremybenn
      ac_configure_args="$ac_configure_args '$ac_arg'"
1840 19 jeremybenn
      ;;
1841
    esac
1842
  done
1843
done
1844 101 jeremybenn
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1845
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1846 19 jeremybenn
 
1847
# When interrupted or exit'd, cleanup temporary files, and complete
1848
# config.log.  We remove comments because anyway the quotes in there
1849
# would cause problems or look ugly.
1850
# WARNING: Use '\'' to represent an apostrophe within the trap.
1851
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1852
trap 'exit_status=$?
1853
  # Save into config.log some information that might help in debugging.
1854
  {
1855
    echo
1856
 
1857
    cat <<\_ASBOX
1858
## ---------------- ##
1859
## Cache variables. ##
1860
## ---------------- ##
1861
_ASBOX
1862
    echo
1863
    # The following way of writing the cache mishandles newlines in values,
1864
(
1865
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1866
    eval ac_val=\$$ac_var
1867
    case $ac_val in #(
1868
    *${as_nl}*)
1869
      case $ac_var in #(
1870 101 jeremybenn
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1871 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1872 19 jeremybenn
      esac
1873
      case $ac_var in #(
1874
      _ | IFS | as_nl) ;; #(
1875 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1876 101 jeremybenn
      *) $as_unset $ac_var ;;
1877 19 jeremybenn
      esac ;;
1878
    esac
1879
  done
1880
  (set) 2>&1 |
1881
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1882
    *${as_nl}ac_space=\ *)
1883
      sed -n \
1884
        "s/'\''/'\''\\\\'\'''\''/g;
1885
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1886
      ;; #(
1887
    *)
1888
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1889
      ;;
1890
    esac |
1891
    sort
1892
)
1893
    echo
1894
 
1895
    cat <<\_ASBOX
1896
## ----------------- ##
1897
## Output variables. ##
1898
## ----------------- ##
1899
_ASBOX
1900
    echo
1901
    for ac_var in $ac_subst_vars
1902
    do
1903
      eval ac_val=\$$ac_var
1904
      case $ac_val in
1905 82 jeremybenn
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906 19 jeremybenn
      esac
1907 82 jeremybenn
      $as_echo "$ac_var='\''$ac_val'\''"
1908 19 jeremybenn
    done | sort
1909
    echo
1910
 
1911
    if test -n "$ac_subst_files"; then
1912
      cat <<\_ASBOX
1913
## ------------------- ##
1914
## File substitutions. ##
1915
## ------------------- ##
1916
_ASBOX
1917
      echo
1918
      for ac_var in $ac_subst_files
1919
      do
1920
        eval ac_val=\$$ac_var
1921
        case $ac_val in
1922 82 jeremybenn
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923 19 jeremybenn
        esac
1924 82 jeremybenn
        $as_echo "$ac_var='\''$ac_val'\''"
1925 19 jeremybenn
      done | sort
1926
      echo
1927
    fi
1928
 
1929
    if test -s confdefs.h; then
1930
      cat <<\_ASBOX
1931
## ----------- ##
1932
## confdefs.h. ##
1933
## ----------- ##
1934
_ASBOX
1935
      echo
1936
      cat confdefs.h
1937
      echo
1938
    fi
1939
    test "$ac_signal" != 0 &&
1940 82 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
1941
    $as_echo "$as_me: exit $exit_status"
1942 19 jeremybenn
  } >&5
1943
  rm -f core *.core core.conftest.* &&
1944
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1945
    exit $exit_status
1946
' 0
1947
for ac_signal in 1 2 13 15; do
1948 101 jeremybenn
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1949 19 jeremybenn
done
1950
ac_signal=0
1951
 
1952
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1953
rm -f -r conftest* confdefs.h
1954
 
1955
# Predefined preprocessor variables.
1956
 
1957
cat >>confdefs.h <<_ACEOF
1958
#define PACKAGE_NAME "$PACKAGE_NAME"
1959
_ACEOF
1960
 
1961 101 jeremybenn
 
1962 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1963
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1964
_ACEOF
1965
 
1966 101 jeremybenn
 
1967 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1968
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1969
_ACEOF
1970
 
1971 101 jeremybenn
 
1972 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1973
#define PACKAGE_STRING "$PACKAGE_STRING"
1974
_ACEOF
1975
 
1976 101 jeremybenn
 
1977 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1978
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1979
_ACEOF
1980
 
1981
 
1982
# Let the site file select an alternate cache file if it wants to.
1983 82 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
1984
ac_site_file1=NONE
1985
ac_site_file2=NONE
1986 19 jeremybenn
if test -n "$CONFIG_SITE"; then
1987 82 jeremybenn
  ac_site_file1=$CONFIG_SITE
1988 19 jeremybenn
elif test "x$prefix" != xNONE; then
1989 82 jeremybenn
  ac_site_file1=$prefix/share/config.site
1990
  ac_site_file2=$prefix/etc/config.site
1991 19 jeremybenn
else
1992 82 jeremybenn
  ac_site_file1=$ac_default_prefix/share/config.site
1993
  ac_site_file2=$ac_default_prefix/etc/config.site
1994 19 jeremybenn
fi
1995 82 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1996 19 jeremybenn
do
1997 82 jeremybenn
  test "x$ac_site_file" = xNONE && continue
1998 101 jeremybenn
  if test -r "$ac_site_file"; then
1999
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2000 82 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2001 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2002
    . "$ac_site_file"
2003
  fi
2004
done
2005
 
2006
if test -r "$cache_file"; then
2007 101 jeremybenn
  # Some versions of bash will fail to source /dev/null (special
2008
  # files actually), so we avoid doing that.
2009
  if test -f "$cache_file"; then
2010
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2011 82 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2012 19 jeremybenn
    case $cache_file in
2013
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2014
      *)                      . "./$cache_file";;
2015
    esac
2016
  fi
2017
else
2018 101 jeremybenn
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2019 82 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2020 19 jeremybenn
  >$cache_file
2021
fi
2022
 
2023
# Check that the precious variables saved in the cache have kept the same
2024
# value.
2025
ac_cache_corrupted=false
2026
for ac_var in $ac_precious_vars; do
2027
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2028
  eval ac_new_set=\$ac_env_${ac_var}_set
2029
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2030
  eval ac_new_val=\$ac_env_${ac_var}_value
2031
  case $ac_old_set,$ac_new_set in
2032
    set,)
2033 101 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2034 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2035 19 jeremybenn
      ac_cache_corrupted=: ;;
2036
    ,set)
2037 101 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2038 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2039 19 jeremybenn
      ac_cache_corrupted=: ;;
2040
    ,);;
2041
    *)
2042
      if test "x$ac_old_val" != "x$ac_new_val"; then
2043 82 jeremybenn
        # differences in whitespace do not lead to failure.
2044
        ac_old_val_w=`echo x $ac_old_val`
2045
        ac_new_val_w=`echo x $ac_new_val`
2046
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2047 101 jeremybenn
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2048 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2049
          ac_cache_corrupted=:
2050
        else
2051 101 jeremybenn
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2052 82 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2053
          eval $ac_var=\$ac_old_val
2054
        fi
2055 101 jeremybenn
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2056 82 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2057 101 jeremybenn
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2058 82 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2059 19 jeremybenn
      fi;;
2060
  esac
2061
  # Pass precious variables to config.status.
2062
  if test "$ac_new_set" = set; then
2063
    case $ac_new_val in
2064 82 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2065 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2066
    esac
2067
    case " $ac_configure_args " in
2068
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2069 101 jeremybenn
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2070 19 jeremybenn
    esac
2071
  fi
2072
done
2073
if $ac_cache_corrupted; then
2074 101 jeremybenn
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2075 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2076 101 jeremybenn
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2077 82 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2078 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2079
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2080
   { (exit 1); exit 1; }; }
2081 19 jeremybenn
fi
2082
 
2083 101 jeremybenn
 
2084
 
2085
 
2086
 
2087
 
2088
 
2089
 
2090
 
2091
 
2092
 
2093
 
2094
 
2095
 
2096
 
2097
 
2098
 
2099
 
2100
 
2101
 
2102
 
2103
 
2104
 
2105
 
2106
 
2107 19 jeremybenn
ac_ext=c
2108
ac_cpp='$CPP $CPPFLAGS'
2109
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2110
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2111
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2112
 
2113
 
2114
 
2115 82 jeremybenn
 
2116 91 jeremybenn
# Generically use extensions such as _GNU_SOURCE if available.
2117 19 jeremybenn
ac_ext=c
2118
ac_cpp='$CPP $CPPFLAGS'
2119
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2120
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2121
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2122
if test -n "$ac_tool_prefix"; then
2123
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2124
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2125 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2127 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2128 82 jeremybenn
  $as_echo_n "(cached) " >&6
2129 19 jeremybenn
else
2130
  if test -n "$CC"; then
2131
  ac_cv_prog_CC="$CC" # Let the user override the test.
2132
else
2133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134
for as_dir in $PATH
2135
do
2136
  IFS=$as_save_IFS
2137
  test -z "$as_dir" && as_dir=.
2138 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2139 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2140
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2141 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 19 jeremybenn
    break 2
2143
  fi
2144
done
2145 101 jeremybenn
done
2146 19 jeremybenn
IFS=$as_save_IFS
2147
 
2148
fi
2149
fi
2150
CC=$ac_cv_prog_CC
2151
if test -n "$CC"; then
2152 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2153 82 jeremybenn
$as_echo "$CC" >&6; }
2154 19 jeremybenn
else
2155 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2156 82 jeremybenn
$as_echo "no" >&6; }
2157 19 jeremybenn
fi
2158
 
2159
 
2160
fi
2161
if test -z "$ac_cv_prog_CC"; then
2162
  ac_ct_CC=$CC
2163
  # Extract the first word of "gcc", so it can be a program name with args.
2164
set dummy gcc; ac_word=$2
2165 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2166 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2167 101 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2168 82 jeremybenn
  $as_echo_n "(cached) " >&6
2169 19 jeremybenn
else
2170
  if test -n "$ac_ct_CC"; then
2171
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2172
else
2173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174
for as_dir in $PATH
2175
do
2176
  IFS=$as_save_IFS
2177
  test -z "$as_dir" && as_dir=.
2178 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2179 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2180
    ac_cv_prog_ac_ct_CC="gcc"
2181 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 19 jeremybenn
    break 2
2183
  fi
2184
done
2185 101 jeremybenn
done
2186 19 jeremybenn
IFS=$as_save_IFS
2187
 
2188
fi
2189
fi
2190
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2191
if test -n "$ac_ct_CC"; then
2192 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2193 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2194 19 jeremybenn
else
2195 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2196 82 jeremybenn
$as_echo "no" >&6; }
2197 19 jeremybenn
fi
2198
 
2199
  if test "x$ac_ct_CC" = x; then
2200
    CC=""
2201
  else
2202
    case $cross_compiling:$ac_tool_warned in
2203
yes:)
2204 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2205 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2206 19 jeremybenn
ac_tool_warned=yes ;;
2207
esac
2208
    CC=$ac_ct_CC
2209
  fi
2210
else
2211
  CC="$ac_cv_prog_CC"
2212
fi
2213
 
2214
if test -z "$CC"; then
2215
          if test -n "$ac_tool_prefix"; then
2216
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2217
set dummy ${ac_tool_prefix}cc; ac_word=$2
2218 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2220 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2221 82 jeremybenn
  $as_echo_n "(cached) " >&6
2222 19 jeremybenn
else
2223
  if test -n "$CC"; then
2224
  ac_cv_prog_CC="$CC" # Let the user override the test.
2225
else
2226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227
for as_dir in $PATH
2228
do
2229
  IFS=$as_save_IFS
2230
  test -z "$as_dir" && as_dir=.
2231 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2232 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2234 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 19 jeremybenn
    break 2
2236
  fi
2237
done
2238 101 jeremybenn
done
2239 19 jeremybenn
IFS=$as_save_IFS
2240
 
2241
fi
2242
fi
2243
CC=$ac_cv_prog_CC
2244
if test -n "$CC"; then
2245 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2246 82 jeremybenn
$as_echo "$CC" >&6; }
2247 19 jeremybenn
else
2248 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2249 82 jeremybenn
$as_echo "no" >&6; }
2250 19 jeremybenn
fi
2251
 
2252
 
2253
  fi
2254
fi
2255
if test -z "$CC"; then
2256
  # Extract the first word of "cc", so it can be a program name with args.
2257
set dummy cc; ac_word=$2
2258 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2259 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2260 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2261 82 jeremybenn
  $as_echo_n "(cached) " >&6
2262 19 jeremybenn
else
2263
  if test -n "$CC"; then
2264
  ac_cv_prog_CC="$CC" # Let the user override the test.
2265
else
2266
  ac_prog_rejected=no
2267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268
for as_dir in $PATH
2269
do
2270
  IFS=$as_save_IFS
2271
  test -z "$as_dir" && as_dir=.
2272 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2273 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2274
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2275
       ac_prog_rejected=yes
2276
       continue
2277
     fi
2278
    ac_cv_prog_CC="cc"
2279 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 19 jeremybenn
    break 2
2281
  fi
2282
done
2283 101 jeremybenn
done
2284 19 jeremybenn
IFS=$as_save_IFS
2285
 
2286
if test $ac_prog_rejected = yes; then
2287
  # We found a bogon in the path, so make sure we never use it.
2288
  set dummy $ac_cv_prog_CC
2289
  shift
2290
  if test $# != 0; then
2291
    # We chose a different compiler from the bogus one.
2292
    # However, it has the same basename, so the bogon will be chosen
2293
    # first if we set CC to just the basename; use the full file name.
2294
    shift
2295
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2296
  fi
2297
fi
2298
fi
2299
fi
2300
CC=$ac_cv_prog_CC
2301
if test -n "$CC"; then
2302 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2303 82 jeremybenn
$as_echo "$CC" >&6; }
2304 19 jeremybenn
else
2305 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2306 82 jeremybenn
$as_echo "no" >&6; }
2307 19 jeremybenn
fi
2308
 
2309
 
2310
fi
2311
if test -z "$CC"; then
2312
  if test -n "$ac_tool_prefix"; then
2313
  for ac_prog in cl.exe
2314
  do
2315
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2316
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2317 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2319 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2320 82 jeremybenn
  $as_echo_n "(cached) " >&6
2321 19 jeremybenn
else
2322
  if test -n "$CC"; then
2323
  ac_cv_prog_CC="$CC" # Let the user override the test.
2324
else
2325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326
for as_dir in $PATH
2327
do
2328
  IFS=$as_save_IFS
2329
  test -z "$as_dir" && as_dir=.
2330 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2331 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2333 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 19 jeremybenn
    break 2
2335
  fi
2336
done
2337 101 jeremybenn
done
2338 19 jeremybenn
IFS=$as_save_IFS
2339
 
2340
fi
2341
fi
2342
CC=$ac_cv_prog_CC
2343
if test -n "$CC"; then
2344 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2345 82 jeremybenn
$as_echo "$CC" >&6; }
2346 19 jeremybenn
else
2347 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2348 82 jeremybenn
$as_echo "no" >&6; }
2349 19 jeremybenn
fi
2350
 
2351
 
2352
    test -n "$CC" && break
2353
  done
2354
fi
2355
if test -z "$CC"; then
2356
  ac_ct_CC=$CC
2357
  for ac_prog in cl.exe
2358
do
2359
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2360
set dummy $ac_prog; ac_word=$2
2361 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2363 101 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2364 82 jeremybenn
  $as_echo_n "(cached) " >&6
2365 19 jeremybenn
else
2366
  if test -n "$ac_ct_CC"; then
2367
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2368
else
2369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370
for as_dir in $PATH
2371
do
2372
  IFS=$as_save_IFS
2373
  test -z "$as_dir" && as_dir=.
2374 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2375 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376
    ac_cv_prog_ac_ct_CC="$ac_prog"
2377 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 19 jeremybenn
    break 2
2379
  fi
2380
done
2381 101 jeremybenn
done
2382 19 jeremybenn
IFS=$as_save_IFS
2383
 
2384
fi
2385
fi
2386
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2387
if test -n "$ac_ct_CC"; then
2388 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2389 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2390 19 jeremybenn
else
2391 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2392 82 jeremybenn
$as_echo "no" >&6; }
2393 19 jeremybenn
fi
2394
 
2395
 
2396
  test -n "$ac_ct_CC" && break
2397
done
2398
 
2399
  if test "x$ac_ct_CC" = x; then
2400
    CC=""
2401
  else
2402
    case $cross_compiling:$ac_tool_warned in
2403
yes:)
2404 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2405 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2406 19 jeremybenn
ac_tool_warned=yes ;;
2407
esac
2408
    CC=$ac_ct_CC
2409
  fi
2410
fi
2411
 
2412
fi
2413
 
2414
 
2415 101 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2416 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2417 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2418
See \`config.log' for more details." >&5
2419
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2420
See \`config.log' for more details." >&2;}
2421
   { (exit 1); exit 1; }; }; }
2422 19 jeremybenn
 
2423
# Provide some information about the compiler.
2424 101 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2425 82 jeremybenn
set X $ac_compile
2426
ac_compiler=$2
2427 101 jeremybenn
{ (ac_try="$ac_compiler --version >&5"
2428 19 jeremybenn
case "(($ac_try" in
2429
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430
  *) ac_try_echo=$ac_try;;
2431
esac
2432 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2433
$as_echo "$ac_try_echo") >&5
2434
  (eval "$ac_compiler --version >&5") 2>&5
2435 19 jeremybenn
  ac_status=$?
2436 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437
  (exit $ac_status); }
2438
{ (ac_try="$ac_compiler -v >&5"
2439
case "(($ac_try" in
2440
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441
  *) ac_try_echo=$ac_try;;
2442
esac
2443
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2444
$as_echo "$ac_try_echo") >&5
2445
  (eval "$ac_compiler -v >&5") 2>&5
2446
  ac_status=$?
2447
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448
  (exit $ac_status); }
2449
{ (ac_try="$ac_compiler -V >&5"
2450
case "(($ac_try" in
2451
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452
  *) ac_try_echo=$ac_try;;
2453
esac
2454
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2455
$as_echo "$ac_try_echo") >&5
2456
  (eval "$ac_compiler -V >&5") 2>&5
2457
  ac_status=$?
2458
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459
  (exit $ac_status); }
2460 19 jeremybenn
 
2461 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
2462
/* confdefs.h.  */
2463
_ACEOF
2464
cat confdefs.h >>conftest.$ac_ext
2465
cat >>conftest.$ac_ext <<_ACEOF
2466 19 jeremybenn
/* end confdefs.h.  */
2467
 
2468
int
2469
main ()
2470
{
2471
 
2472
  ;
2473
  return 0;
2474
}
2475
_ACEOF
2476
ac_clean_files_save=$ac_clean_files
2477 82 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2478 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
2479
# It will help us diagnose broken compilers, and finding out an intuition
2480
# of exeext.
2481 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2482
$as_echo_n "checking for C compiler default output file name... " >&6; }
2483 82 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2484
 
2485
# The possible output files:
2486
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2487
 
2488 19 jeremybenn
ac_rmfiles=
2489
for ac_file in $ac_files
2490
do
2491
  case $ac_file in
2492 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2493 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2494
  esac
2495
done
2496
rm -f $ac_rmfiles
2497
 
2498 101 jeremybenn
if { (ac_try="$ac_link_default"
2499 19 jeremybenn
case "(($ac_try" in
2500
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501
  *) ac_try_echo=$ac_try;;
2502
esac
2503 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2504
$as_echo "$ac_try_echo") >&5
2505 19 jeremybenn
  (eval "$ac_link_default") 2>&5
2506
  ac_status=$?
2507 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508
  (exit $ac_status); }; then
2509 19 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2510
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2511
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2512
# so that the user can short-circuit this test for compilers unknown to
2513
# Autoconf.
2514
for ac_file in $ac_files ''
2515
do
2516
  test -f "$ac_file" || continue
2517
  case $ac_file in
2518 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2519 19 jeremybenn
        ;;
2520
    [ab].out )
2521
        # We found the default executable, but exeext='' is most
2522
        # certainly right.
2523
        break;;
2524
    *.* )
2525 101 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2526 19 jeremybenn
        then :; else
2527
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2528
        fi
2529
        # We set ac_cv_exeext here because the later test for it is not
2530
        # safe: cross compilers may not add the suffix if given an `-o'
2531
        # argument, so we may need to know it at that point already.
2532
        # Even if this section looks crufty: it has the advantage of
2533
        # actually working.
2534
        break;;
2535
    * )
2536
        break;;
2537
  esac
2538
done
2539
test "$ac_cv_exeext" = no && ac_cv_exeext=
2540
 
2541
else
2542
  ac_file=''
2543
fi
2544 101 jeremybenn
 
2545
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2546
$as_echo "$ac_file" >&6; }
2547
if test -z "$ac_file"; then
2548
  $as_echo "$as_me: failed program was:" >&5
2549 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2550
 
2551 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2552 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2554
See \`config.log' for more details." >&5
2555
$as_echo "$as_me: error: C compiler cannot create executables
2556
See \`config.log' for more details." >&2;}
2557
   { (exit 77); exit 77; }; }; }
2558 19 jeremybenn
fi
2559 101 jeremybenn
 
2560 19 jeremybenn
ac_exeext=$ac_cv_exeext
2561
 
2562 101 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
2563
# the compiler is broken, or we cross compile.
2564
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2565
$as_echo_n "checking whether the C compiler works... " >&6; }
2566
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2567
# If not cross compiling, check that we can run a simple program.
2568
if test "$cross_compiling" != yes; then
2569
  if { ac_try='./$ac_file'
2570
  { (case "(($ac_try" in
2571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572
  *) ac_try_echo=$ac_try;;
2573
esac
2574
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2575
$as_echo "$ac_try_echo") >&5
2576
  (eval "$ac_try") 2>&5
2577
  ac_status=$?
2578
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579
  (exit $ac_status); }; }; then
2580
    cross_compiling=no
2581
  else
2582
    if test "$cross_compiling" = maybe; then
2583
        cross_compiling=yes
2584
    else
2585
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2586
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2587
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2588
If you meant to cross compile, use \`--host'.
2589
See \`config.log' for more details." >&5
2590
$as_echo "$as_me: error: cannot run C compiled programs.
2591
If you meant to cross compile, use \`--host'.
2592
See \`config.log' for more details." >&2;}
2593
   { (exit 1); exit 1; }; }; }
2594
    fi
2595
  fi
2596
fi
2597
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2598
$as_echo "yes" >&6; }
2599
 
2600 82 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2601 19 jeremybenn
ac_clean_files=$ac_clean_files_save
2602 101 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
2603
# the compiler is broken, or we cross compile.
2604
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2605
$as_echo_n "checking whether we are cross compiling... " >&6; }
2606
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2607
$as_echo "$cross_compiling" >&6; }
2608
 
2609
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2610 82 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
2611 101 jeremybenn
if { (ac_try="$ac_link"
2612 19 jeremybenn
case "(($ac_try" in
2613
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614
  *) ac_try_echo=$ac_try;;
2615
esac
2616 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2617
$as_echo "$ac_try_echo") >&5
2618 19 jeremybenn
  (eval "$ac_link") 2>&5
2619
  ac_status=$?
2620 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621
  (exit $ac_status); }; then
2622 19 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2623
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2624
# work properly (i.e., refer to `conftest.exe'), while it won't with
2625
# `rm'.
2626
for ac_file in conftest.exe conftest conftest.*; do
2627
  test -f "$ac_file" || continue
2628
  case $ac_file in
2629 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2630 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2631
          break;;
2632
    * ) break;;
2633
  esac
2634
done
2635
else
2636 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2637 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2638 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2639
See \`config.log' for more details." >&5
2640
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2641
See \`config.log' for more details." >&2;}
2642
   { (exit 1); exit 1; }; }; }
2643 19 jeremybenn
fi
2644 101 jeremybenn
 
2645
rm -f conftest$ac_cv_exeext
2646
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2647 82 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
2648 19 jeremybenn
 
2649
rm -f conftest.$ac_ext
2650
EXEEXT=$ac_cv_exeext
2651
ac_exeext=$EXEEXT
2652 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2653 82 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
2654 101 jeremybenn
if test "${ac_cv_objext+set}" = set; then
2655 82 jeremybenn
  $as_echo_n "(cached) " >&6
2656 19 jeremybenn
else
2657 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
2658
/* confdefs.h.  */
2659
_ACEOF
2660
cat confdefs.h >>conftest.$ac_ext
2661
cat >>conftest.$ac_ext <<_ACEOF
2662 19 jeremybenn
/* end confdefs.h.  */
2663
 
2664
int
2665
main ()
2666
{
2667
 
2668
  ;
2669
  return 0;
2670
}
2671
_ACEOF
2672
rm -f conftest.o conftest.obj
2673 101 jeremybenn
if { (ac_try="$ac_compile"
2674 19 jeremybenn
case "(($ac_try" in
2675
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676
  *) ac_try_echo=$ac_try;;
2677
esac
2678 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2679
$as_echo "$ac_try_echo") >&5
2680 19 jeremybenn
  (eval "$ac_compile") 2>&5
2681
  ac_status=$?
2682 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683
  (exit $ac_status); }; then
2684 19 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
2685
  test -f "$ac_file" || continue;
2686
  case $ac_file in
2687 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2688 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2689
       break;;
2690
  esac
2691
done
2692
else
2693 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2694 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2695
 
2696 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2697 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2698 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2699
See \`config.log' for more details." >&5
2700
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2701
See \`config.log' for more details." >&2;}
2702
   { (exit 1); exit 1; }; }; }
2703 19 jeremybenn
fi
2704 101 jeremybenn
 
2705 19 jeremybenn
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2706
fi
2707 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2708 82 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
2709 19 jeremybenn
OBJEXT=$ac_cv_objext
2710
ac_objext=$OBJEXT
2711 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2712 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2713 101 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2714 82 jeremybenn
  $as_echo_n "(cached) " >&6
2715 19 jeremybenn
else
2716 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
2717
/* confdefs.h.  */
2718
_ACEOF
2719
cat confdefs.h >>conftest.$ac_ext
2720
cat >>conftest.$ac_ext <<_ACEOF
2721 19 jeremybenn
/* end confdefs.h.  */
2722
 
2723
int
2724
main ()
2725
{
2726
#ifndef __GNUC__
2727
       choke me
2728
#endif
2729
 
2730
  ;
2731
  return 0;
2732
}
2733
_ACEOF
2734 101 jeremybenn
rm -f conftest.$ac_objext
2735
if { (ac_try="$ac_compile"
2736
case "(($ac_try" in
2737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738
  *) ac_try_echo=$ac_try;;
2739
esac
2740
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2741
$as_echo "$ac_try_echo") >&5
2742
  (eval "$ac_compile") 2>conftest.er1
2743
  ac_status=$?
2744
  grep -v '^ *+' conftest.er1 >conftest.err
2745
  rm -f conftest.er1
2746
  cat conftest.err >&5
2747
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748
  (exit $ac_status); } && {
2749
         test -z "$ac_c_werror_flag" ||
2750
         test ! -s conftest.err
2751
       } && test -s conftest.$ac_objext; then
2752 19 jeremybenn
  ac_compiler_gnu=yes
2753
else
2754 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2755
sed 's/^/| /' conftest.$ac_ext >&5
2756
 
2757
        ac_compiler_gnu=no
2758 19 jeremybenn
fi
2759 101 jeremybenn
 
2760 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2761
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2762
 
2763
fi
2764 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2765 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2766
if test $ac_compiler_gnu = yes; then
2767
  GCC=yes
2768
else
2769
  GCC=
2770
fi
2771 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
2772
ac_save_CFLAGS=$CFLAGS
2773 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2774 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2775 101 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
2776 82 jeremybenn
  $as_echo_n "(cached) " >&6
2777 19 jeremybenn
else
2778
  ac_save_c_werror_flag=$ac_c_werror_flag
2779
   ac_c_werror_flag=yes
2780
   ac_cv_prog_cc_g=no
2781
   CFLAGS="-g"
2782 101 jeremybenn
   cat >conftest.$ac_ext <<_ACEOF
2783
/* confdefs.h.  */
2784
_ACEOF
2785
cat confdefs.h >>conftest.$ac_ext
2786
cat >>conftest.$ac_ext <<_ACEOF
2787 19 jeremybenn
/* end confdefs.h.  */
2788
 
2789
int
2790
main ()
2791
{
2792
 
2793
  ;
2794
  return 0;
2795
}
2796
_ACEOF
2797 101 jeremybenn
rm -f conftest.$ac_objext
2798
if { (ac_try="$ac_compile"
2799
case "(($ac_try" in
2800
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801
  *) ac_try_echo=$ac_try;;
2802
esac
2803
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2804
$as_echo "$ac_try_echo") >&5
2805
  (eval "$ac_compile") 2>conftest.er1
2806
  ac_status=$?
2807
  grep -v '^ *+' conftest.er1 >conftest.err
2808
  rm -f conftest.er1
2809
  cat conftest.err >&5
2810
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811
  (exit $ac_status); } && {
2812
         test -z "$ac_c_werror_flag" ||
2813
         test ! -s conftest.err
2814
       } && test -s conftest.$ac_objext; then
2815 19 jeremybenn
  ac_cv_prog_cc_g=yes
2816
else
2817 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2818
sed 's/^/| /' conftest.$ac_ext >&5
2819
 
2820
        CFLAGS=""
2821
      cat >conftest.$ac_ext <<_ACEOF
2822
/* confdefs.h.  */
2823
_ACEOF
2824
cat confdefs.h >>conftest.$ac_ext
2825
cat >>conftest.$ac_ext <<_ACEOF
2826 19 jeremybenn
/* end confdefs.h.  */
2827
 
2828
int
2829
main ()
2830
{
2831
 
2832
  ;
2833
  return 0;
2834
}
2835
_ACEOF
2836 101 jeremybenn
rm -f conftest.$ac_objext
2837
if { (ac_try="$ac_compile"
2838
case "(($ac_try" in
2839
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840
  *) ac_try_echo=$ac_try;;
2841
esac
2842
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2843
$as_echo "$ac_try_echo") >&5
2844
  (eval "$ac_compile") 2>conftest.er1
2845
  ac_status=$?
2846
  grep -v '^ *+' conftest.er1 >conftest.err
2847
  rm -f conftest.er1
2848
  cat conftest.err >&5
2849
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850
  (exit $ac_status); } && {
2851
         test -z "$ac_c_werror_flag" ||
2852
         test ! -s conftest.err
2853
       } && test -s conftest.$ac_objext; then
2854
  :
2855
else
2856
  $as_echo "$as_me: failed program was:" >&5
2857
sed 's/^/| /' conftest.$ac_ext >&5
2858 98 jeremybenn
 
2859 101 jeremybenn
        ac_c_werror_flag=$ac_save_c_werror_flag
2860 19 jeremybenn
         CFLAGS="-g"
2861 101 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
2862
/* confdefs.h.  */
2863
_ACEOF
2864
cat confdefs.h >>conftest.$ac_ext
2865
cat >>conftest.$ac_ext <<_ACEOF
2866 19 jeremybenn
/* end confdefs.h.  */
2867
 
2868
int
2869
main ()
2870
{
2871
 
2872
  ;
2873
  return 0;
2874
}
2875
_ACEOF
2876 101 jeremybenn
rm -f conftest.$ac_objext
2877
if { (ac_try="$ac_compile"
2878
case "(($ac_try" in
2879
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880
  *) ac_try_echo=$ac_try;;
2881
esac
2882
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2883
$as_echo "$ac_try_echo") >&5
2884
  (eval "$ac_compile") 2>conftest.er1
2885
  ac_status=$?
2886
  grep -v '^ *+' conftest.er1 >conftest.err
2887
  rm -f conftest.er1
2888
  cat conftest.err >&5
2889
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890
  (exit $ac_status); } && {
2891
         test -z "$ac_c_werror_flag" ||
2892
         test ! -s conftest.err
2893
       } && test -s conftest.$ac_objext; then
2894 19 jeremybenn
  ac_cv_prog_cc_g=yes
2895 101 jeremybenn
else
2896
  $as_echo "$as_me: failed program was:" >&5
2897
sed 's/^/| /' conftest.$ac_ext >&5
2898
 
2899
 
2900 19 jeremybenn
fi
2901 101 jeremybenn
 
2902 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903
fi
2904 101 jeremybenn
 
2905 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906
fi
2907 101 jeremybenn
 
2908 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909
   ac_c_werror_flag=$ac_save_c_werror_flag
2910
fi
2911 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2912 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
2913 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
2914
  CFLAGS=$ac_save_CFLAGS
2915
elif test $ac_cv_prog_cc_g = yes; then
2916
  if test "$GCC" = yes; then
2917
    CFLAGS="-g -O2"
2918
  else
2919
    CFLAGS="-g"
2920
  fi
2921
else
2922
  if test "$GCC" = yes; then
2923
    CFLAGS="-O2"
2924
  else
2925
    CFLAGS=
2926
  fi
2927
fi
2928 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2929 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2930 101 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then
2931 82 jeremybenn
  $as_echo_n "(cached) " >&6
2932 19 jeremybenn
else
2933
  ac_cv_prog_cc_c89=no
2934
ac_save_CC=$CC
2935 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
2936
/* confdefs.h.  */
2937
_ACEOF
2938
cat confdefs.h >>conftest.$ac_ext
2939
cat >>conftest.$ac_ext <<_ACEOF
2940 19 jeremybenn
/* end confdefs.h.  */
2941
#include 
2942
#include 
2943
#include 
2944
#include 
2945
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2946
struct buf { int x; };
2947
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2948
static char *e (p, i)
2949
     char **p;
2950
     int i;
2951
{
2952
  return p[i];
2953
}
2954
static char *f (char * (*g) (char **, int), char **p, ...)
2955
{
2956
  char *s;
2957
  va_list v;
2958
  va_start (v,p);
2959
  s = g (p, va_arg (v,int));
2960
  va_end (v);
2961
  return s;
2962
}
2963
 
2964
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2965
   function prototypes and stuff, but not '\xHH' hex character constants.
2966
   These don't provoke an error unfortunately, instead are silently treated
2967
   as 'x'.  The following induces an error, until -std is added to get
2968
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2969
   array size at least.  It's necessary to write '\x00'==0 to get something
2970
   that's true only with -std.  */
2971
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2972
 
2973
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2974
   inside strings and character constants.  */
2975
#define FOO(x) 'x'
2976
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2977
 
2978
int test (int i, double x);
2979
struct s1 {int (*f) (int a);};
2980
struct s2 {int (*f) (double a);};
2981
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2982
int argc;
2983
char **argv;
2984
int
2985
main ()
2986
{
2987
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2988
  ;
2989
  return 0;
2990
}
2991
_ACEOF
2992
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2993
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2994
do
2995
  CC="$ac_save_CC $ac_arg"
2996 101 jeremybenn
  rm -f conftest.$ac_objext
2997
if { (ac_try="$ac_compile"
2998
case "(($ac_try" in
2999
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000
  *) ac_try_echo=$ac_try;;
3001
esac
3002
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3003
$as_echo "$ac_try_echo") >&5
3004
  (eval "$ac_compile") 2>conftest.er1
3005
  ac_status=$?
3006
  grep -v '^ *+' conftest.er1 >conftest.err
3007
  rm -f conftest.er1
3008
  cat conftest.err >&5
3009
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010
  (exit $ac_status); } && {
3011
         test -z "$ac_c_werror_flag" ||
3012
         test ! -s conftest.err
3013
       } && test -s conftest.$ac_objext; then
3014 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3015 101 jeremybenn
else
3016
  $as_echo "$as_me: failed program was:" >&5
3017
sed 's/^/| /' conftest.$ac_ext >&5
3018
 
3019
 
3020 19 jeremybenn
fi
3021 101 jeremybenn
 
3022 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext
3023
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3024
done
3025
rm -f conftest.$ac_ext
3026
CC=$ac_save_CC
3027
 
3028
fi
3029
# AC_CACHE_VAL
3030
case "x$ac_cv_prog_cc_c89" in
3031
  x)
3032 101 jeremybenn
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3033 82 jeremybenn
$as_echo "none needed" >&6; } ;;
3034 19 jeremybenn
  xno)
3035 101 jeremybenn
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3036 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
3037 19 jeremybenn
  *)
3038
    CC="$CC $ac_cv_prog_cc_c89"
3039 101 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3040 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3041 19 jeremybenn
esac
3042
 
3043
 
3044
ac_ext=c
3045
ac_cpp='$CPP $CPPFLAGS'
3046
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3047
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3048
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049
 
3050 91 jeremybenn
 
3051
ac_ext=c
3052
ac_cpp='$CPP $CPPFLAGS'
3053
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3057 91 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3058
# On Suns, sometimes $CPP names a directory.
3059
if test -n "$CPP" && test -d "$CPP"; then
3060
  CPP=
3061
fi
3062
if test -z "$CPP"; then
3063 101 jeremybenn
  if test "${ac_cv_prog_CPP+set}" = set; then
3064 82 jeremybenn
  $as_echo_n "(cached) " >&6
3065 19 jeremybenn
else
3066 91 jeremybenn
      # Double quotes because CPP needs to be expanded
3067
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3068
    do
3069
      ac_preproc_ok=false
3070
for ac_c_preproc_warn_flag in '' yes
3071 19 jeremybenn
do
3072 91 jeremybenn
  # Use a header file that comes with gcc, so configuring glibc
3073
  # with a fresh cross-compiler works.
3074
  # Prefer  to  if __STDC__ is defined, since
3075
  #  exists even on freestanding compilers.
3076
  # On the NeXT, cc -E runs the code through the compiler's parser,
3077
  # not just through cpp. "Syntax error" is here to catch this case.
3078 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3079
/* confdefs.h.  */
3080
_ACEOF
3081
cat confdefs.h >>conftest.$ac_ext
3082
cat >>conftest.$ac_ext <<_ACEOF
3083 91 jeremybenn
/* end confdefs.h.  */
3084
#ifdef __STDC__
3085
# include 
3086
#else
3087
# include 
3088
#endif
3089
                     Syntax error
3090
_ACEOF
3091 101 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3092
case "(($ac_try" in
3093
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094
  *) ac_try_echo=$ac_try;;
3095
esac
3096
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3097
$as_echo "$ac_try_echo") >&5
3098
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3099
  ac_status=$?
3100
  grep -v '^ *+' conftest.er1 >conftest.err
3101
  rm -f conftest.er1
3102
  cat conftest.err >&5
3103
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104
  (exit $ac_status); } >/dev/null && {
3105
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3106
         test ! -s conftest.err
3107
       }; then
3108
  :
3109
else
3110
  $as_echo "$as_me: failed program was:" >&5
3111
sed 's/^/| /' conftest.$ac_ext >&5
3112 98 jeremybenn
 
3113 91 jeremybenn
  # Broken: fails on valid input.
3114
continue
3115
fi
3116 101 jeremybenn
 
3117 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3118
 
3119
  # OK, works on sane cases.  Now check whether nonexistent headers
3120
  # can be detected and how.
3121 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3122
/* confdefs.h.  */
3123
_ACEOF
3124
cat confdefs.h >>conftest.$ac_ext
3125
cat >>conftest.$ac_ext <<_ACEOF
3126 91 jeremybenn
/* end confdefs.h.  */
3127
#include 
3128
_ACEOF
3129 101 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3130
case "(($ac_try" in
3131
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132
  *) ac_try_echo=$ac_try;;
3133
esac
3134
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3135
$as_echo "$ac_try_echo") >&5
3136
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3137
  ac_status=$?
3138
  grep -v '^ *+' conftest.er1 >conftest.err
3139
  rm -f conftest.er1
3140
  cat conftest.err >&5
3141
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142
  (exit $ac_status); } >/dev/null && {
3143
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3144
         test ! -s conftest.err
3145
       }; then
3146 91 jeremybenn
  # Broken: success on invalid input.
3147
continue
3148 82 jeremybenn
else
3149 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3150
sed 's/^/| /' conftest.$ac_ext >&5
3151
 
3152 91 jeremybenn
  # Passes both tests.
3153
ac_preproc_ok=:
3154
break
3155 82 jeremybenn
fi
3156 101 jeremybenn
 
3157 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3158
 
3159
done
3160
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3161
rm -f conftest.err conftest.$ac_ext
3162 101 jeremybenn
if $ac_preproc_ok; then
3163 91 jeremybenn
  break
3164 19 jeremybenn
fi
3165
 
3166 91 jeremybenn
    done
3167
    ac_cv_prog_CPP=$CPP
3168 19 jeremybenn
 
3169 91 jeremybenn
fi
3170
  CPP=$ac_cv_prog_CPP
3171
else
3172
  ac_cv_prog_CPP=$CPP
3173
fi
3174 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3175 91 jeremybenn
$as_echo "$CPP" >&6; }
3176
ac_preproc_ok=false
3177
for ac_c_preproc_warn_flag in '' yes
3178
do
3179
  # Use a header file that comes with gcc, so configuring glibc
3180
  # with a fresh cross-compiler works.
3181
  # Prefer  to  if __STDC__ is defined, since
3182
  #  exists even on freestanding compilers.
3183
  # On the NeXT, cc -E runs the code through the compiler's parser,
3184
  # not just through cpp. "Syntax error" is here to catch this case.
3185 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3186
/* confdefs.h.  */
3187
_ACEOF
3188
cat confdefs.h >>conftest.$ac_ext
3189
cat >>conftest.$ac_ext <<_ACEOF
3190 91 jeremybenn
/* end confdefs.h.  */
3191
#ifdef __STDC__
3192
# include 
3193
#else
3194
# include 
3195
#endif
3196
                     Syntax error
3197
_ACEOF
3198 101 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3199
case "(($ac_try" in
3200
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201
  *) ac_try_echo=$ac_try;;
3202
esac
3203
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3204
$as_echo "$ac_try_echo") >&5
3205
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3206
  ac_status=$?
3207
  grep -v '^ *+' conftest.er1 >conftest.err
3208
  rm -f conftest.er1
3209
  cat conftest.err >&5
3210
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211
  (exit $ac_status); } >/dev/null && {
3212
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3213
         test ! -s conftest.err
3214
       }; then
3215
  :
3216
else
3217
  $as_echo "$as_me: failed program was:" >&5
3218
sed 's/^/| /' conftest.$ac_ext >&5
3219 98 jeremybenn
 
3220 91 jeremybenn
  # Broken: fails on valid input.
3221
continue
3222
fi
3223 101 jeremybenn
 
3224 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3225 82 jeremybenn
 
3226 91 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
3227
  # can be detected and how.
3228 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3229
/* confdefs.h.  */
3230
_ACEOF
3231
cat confdefs.h >>conftest.$ac_ext
3232
cat >>conftest.$ac_ext <<_ACEOF
3233 91 jeremybenn
/* end confdefs.h.  */
3234
#include 
3235
_ACEOF
3236 101 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3237
case "(($ac_try" in
3238
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239
  *) ac_try_echo=$ac_try;;
3240
esac
3241
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3242
$as_echo "$ac_try_echo") >&5
3243
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3244
  ac_status=$?
3245
  grep -v '^ *+' conftest.er1 >conftest.err
3246
  rm -f conftest.er1
3247
  cat conftest.err >&5
3248
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249
  (exit $ac_status); } >/dev/null && {
3250
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3251
         test ! -s conftest.err
3252
       }; then
3253 91 jeremybenn
  # Broken: success on invalid input.
3254
continue
3255
else
3256 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3257
sed 's/^/| /' conftest.$ac_ext >&5
3258
 
3259 91 jeremybenn
  # Passes both tests.
3260
ac_preproc_ok=:
3261
break
3262
fi
3263 101 jeremybenn
 
3264 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3265 82 jeremybenn
 
3266 91 jeremybenn
done
3267
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3268
rm -f conftest.err conftest.$ac_ext
3269 101 jeremybenn
if $ac_preproc_ok; then
3270
  :
3271 91 jeremybenn
else
3272 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3273 91 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3275
See \`config.log' for more details." >&5
3276
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3277
See \`config.log' for more details." >&2;}
3278
   { (exit 1); exit 1; }; }; }
3279 91 jeremybenn
fi
3280 82 jeremybenn
 
3281 91 jeremybenn
ac_ext=c
3282
ac_cpp='$CPP $CPPFLAGS'
3283
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 82 jeremybenn
 
3287
 
3288 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3289 82 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3290 101 jeremybenn
if test "${ac_cv_path_GREP+set}" = set; then
3291 82 jeremybenn
  $as_echo_n "(cached) " >&6
3292 19 jeremybenn
else
3293 82 jeremybenn
  if test -z "$GREP"; then
3294 19 jeremybenn
  ac_path_GREP_found=false
3295 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3296
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3298
do
3299
  IFS=$as_save_IFS
3300
  test -z "$as_dir" && as_dir=.
3301 101 jeremybenn
  for ac_prog in grep ggrep; do
3302 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3303
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3304
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3305
# Check for GNU ac_path_GREP and select it if it is found.
3306 19 jeremybenn
  # Check for GNU $ac_path_GREP
3307
case `"$ac_path_GREP" --version 2>&1` in
3308
*GNU*)
3309
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3310
*)
3311
  ac_count=0
3312 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3313 19 jeremybenn
  while :
3314
  do
3315
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3316
    mv "conftest.tmp" "conftest.in"
3317
    cp "conftest.in" "conftest.nl"
3318 82 jeremybenn
    $as_echo 'GREP' >> "conftest.nl"
3319 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3320
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3321 101 jeremybenn
    ac_count=`expr $ac_count + 1`
3322 19 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3323
      # Best one so far, save it but keep looking for a better one
3324
      ac_cv_path_GREP="$ac_path_GREP"
3325
      ac_path_GREP_max=$ac_count
3326
    fi
3327
    # 10*(2^10) chars as input seems more than enough
3328
    test $ac_count -gt 10 && break
3329
  done
3330
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3331
esac
3332
 
3333 82 jeremybenn
      $ac_path_GREP_found && break 3
3334
    done
3335 19 jeremybenn
  done
3336 101 jeremybenn
done
3337 19 jeremybenn
IFS=$as_save_IFS
3338 82 jeremybenn
  if test -z "$ac_cv_path_GREP"; then
3339 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3340
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3341
   { (exit 1); exit 1; }; }
3342 82 jeremybenn
  fi
3343 19 jeremybenn
else
3344
  ac_cv_path_GREP=$GREP
3345
fi
3346
 
3347
fi
3348 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3349 82 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3350 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3351
 
3352
 
3353 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3354 82 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3355 101 jeremybenn
if test "${ac_cv_path_EGREP+set}" = set; then
3356 82 jeremybenn
  $as_echo_n "(cached) " >&6
3357 19 jeremybenn
else
3358
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3359
   then ac_cv_path_EGREP="$GREP -E"
3360
   else
3361 82 jeremybenn
     if test -z "$EGREP"; then
3362 19 jeremybenn
  ac_path_EGREP_found=false
3363 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3364
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3366
do
3367
  IFS=$as_save_IFS
3368
  test -z "$as_dir" && as_dir=.
3369 101 jeremybenn
  for ac_prog in egrep; do
3370 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3371
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3372
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3373
# Check for GNU ac_path_EGREP and select it if it is found.
3374 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3375
case `"$ac_path_EGREP" --version 2>&1` in
3376
*GNU*)
3377
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3378
*)
3379
  ac_count=0
3380 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3381 19 jeremybenn
  while :
3382
  do
3383
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3384
    mv "conftest.tmp" "conftest.in"
3385
    cp "conftest.in" "conftest.nl"
3386 82 jeremybenn
    $as_echo 'EGREP' >> "conftest.nl"
3387 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3388
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3389 101 jeremybenn
    ac_count=`expr $ac_count + 1`
3390 19 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3391
      # Best one so far, save it but keep looking for a better one
3392
      ac_cv_path_EGREP="$ac_path_EGREP"
3393
      ac_path_EGREP_max=$ac_count
3394
    fi
3395
    # 10*(2^10) chars as input seems more than enough
3396
    test $ac_count -gt 10 && break
3397
  done
3398
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3399
esac
3400
 
3401 82 jeremybenn
      $ac_path_EGREP_found && break 3
3402
    done
3403 19 jeremybenn
  done
3404 101 jeremybenn
done
3405 19 jeremybenn
IFS=$as_save_IFS
3406 82 jeremybenn
  if test -z "$ac_cv_path_EGREP"; then
3407 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3408
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3409
   { (exit 1); exit 1; }; }
3410 82 jeremybenn
  fi
3411
else
3412
  ac_cv_path_EGREP=$EGREP
3413 19 jeremybenn
fi
3414
 
3415 82 jeremybenn
   fi
3416 19 jeremybenn
fi
3417 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3418 82 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3419
 EGREP="$ac_cv_path_EGREP"
3420 19 jeremybenn
 
3421 82 jeremybenn
 
3422 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3423 91 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
3424 101 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then
3425 91 jeremybenn
  $as_echo_n "(cached) " >&6
3426
else
3427 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3428
/* confdefs.h.  */
3429
_ACEOF
3430
cat confdefs.h >>conftest.$ac_ext
3431
cat >>conftest.$ac_ext <<_ACEOF
3432 91 jeremybenn
/* end confdefs.h.  */
3433
#include 
3434
#include 
3435
#include 
3436
#include 
3437
 
3438
int
3439
main ()
3440
{
3441
 
3442
  ;
3443
  return 0;
3444
}
3445
_ACEOF
3446 101 jeremybenn
rm -f conftest.$ac_objext
3447
if { (ac_try="$ac_compile"
3448
case "(($ac_try" in
3449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450
  *) ac_try_echo=$ac_try;;
3451
esac
3452
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3453
$as_echo "$ac_try_echo") >&5
3454
  (eval "$ac_compile") 2>conftest.er1
3455
  ac_status=$?
3456
  grep -v '^ *+' conftest.er1 >conftest.err
3457
  rm -f conftest.er1
3458
  cat conftest.err >&5
3459
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460
  (exit $ac_status); } && {
3461
         test -z "$ac_c_werror_flag" ||
3462
         test ! -s conftest.err
3463
       } && test -s conftest.$ac_objext; then
3464 91 jeremybenn
  ac_cv_header_stdc=yes
3465
else
3466 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3467
sed 's/^/| /' conftest.$ac_ext >&5
3468
 
3469
        ac_cv_header_stdc=no
3470 91 jeremybenn
fi
3471 101 jeremybenn
 
3472 91 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473
 
3474
if test $ac_cv_header_stdc = yes; then
3475
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3476 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3477
/* confdefs.h.  */
3478
_ACEOF
3479
cat confdefs.h >>conftest.$ac_ext
3480
cat >>conftest.$ac_ext <<_ACEOF
3481 91 jeremybenn
/* end confdefs.h.  */
3482
#include 
3483
 
3484
_ACEOF
3485
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3486 101 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then
3487
  :
3488 91 jeremybenn
else
3489
  ac_cv_header_stdc=no
3490
fi
3491
rm -f conftest*
3492
 
3493
fi
3494
 
3495
if test $ac_cv_header_stdc = yes; then
3496
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3497 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3498
/* confdefs.h.  */
3499
_ACEOF
3500
cat confdefs.h >>conftest.$ac_ext
3501
cat >>conftest.$ac_ext <<_ACEOF
3502 91 jeremybenn
/* end confdefs.h.  */
3503
#include 
3504
 
3505
_ACEOF
3506
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3507 101 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then
3508
  :
3509 91 jeremybenn
else
3510
  ac_cv_header_stdc=no
3511
fi
3512
rm -f conftest*
3513
 
3514
fi
3515
 
3516
if test $ac_cv_header_stdc = yes; then
3517
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3518 101 jeremybenn
  if test "$cross_compiling" = yes; then
3519 91 jeremybenn
  :
3520
else
3521 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3522
/* confdefs.h.  */
3523
_ACEOF
3524
cat confdefs.h >>conftest.$ac_ext
3525
cat >>conftest.$ac_ext <<_ACEOF
3526 91 jeremybenn
/* end confdefs.h.  */
3527
#include 
3528
#include 
3529
#if ((' ' & 0x0FF) == 0x020)
3530
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3531
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3532
#else
3533
# define ISLOWER(c) \
3534
                   (('a' <= (c) && (c) <= 'i') \
3535
                     || ('j' <= (c) && (c) <= 'r') \
3536
                     || ('s' <= (c) && (c) <= 'z'))
3537
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3538
#endif
3539
 
3540
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3541
int
3542
main ()
3543
{
3544
  int i;
3545
  for (i = 0; i < 256; i++)
3546
    if (XOR (islower (i), ISLOWER (i))
3547
        || toupper (i) != TOUPPER (i))
3548
      return 2;
3549
  return 0;
3550
}
3551
_ACEOF
3552 101 jeremybenn
rm -f conftest$ac_exeext
3553
if { (ac_try="$ac_link"
3554
case "(($ac_try" in
3555
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556
  *) ac_try_echo=$ac_try;;
3557
esac
3558
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3559
$as_echo "$ac_try_echo") >&5
3560
  (eval "$ac_link") 2>&5
3561
  ac_status=$?
3562
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3564
  { (case "(($ac_try" in
3565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566
  *) ac_try_echo=$ac_try;;
3567
esac
3568
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3569
$as_echo "$ac_try_echo") >&5
3570
  (eval "$ac_try") 2>&5
3571
  ac_status=$?
3572
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573
  (exit $ac_status); }; }; then
3574
  :
3575
else
3576
  $as_echo "$as_me: program exited with status $ac_status" >&5
3577
$as_echo "$as_me: failed program was:" >&5
3578
sed 's/^/| /' conftest.$ac_ext >&5
3579 98 jeremybenn
 
3580 101 jeremybenn
( exit $ac_status )
3581
ac_cv_header_stdc=no
3582 91 jeremybenn
fi
3583 101 jeremybenn
rm -rf conftest.dSYM
3584
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3585 91 jeremybenn
fi
3586
 
3587 101 jeremybenn
 
3588 91 jeremybenn
fi
3589
fi
3590 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3591 91 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
3592
if test $ac_cv_header_stdc = yes; then
3593
 
3594 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
3595
#define STDC_HEADERS 1
3596
_ACEOF
3597 91 jeremybenn
 
3598
fi
3599
 
3600
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3601 101 jeremybenn
 
3602
 
3603
 
3604
 
3605
 
3606
 
3607
 
3608
 
3609
 
3610 91 jeremybenn
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3611
                  inttypes.h stdint.h unistd.h
3612 101 jeremybenn
do
3613
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3614
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3615
$as_echo_n "checking for $ac_header... " >&6; }
3616
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3617
  $as_echo_n "(cached) " >&6
3618
else
3619
  cat >conftest.$ac_ext <<_ACEOF
3620
/* confdefs.h.  */
3621
_ACEOF
3622
cat confdefs.h >>conftest.$ac_ext
3623
cat >>conftest.$ac_ext <<_ACEOF
3624
/* end confdefs.h.  */
3625
$ac_includes_default
3626
 
3627
#include <$ac_header>
3628
_ACEOF
3629
rm -f conftest.$ac_objext
3630
if { (ac_try="$ac_compile"
3631
case "(($ac_try" in
3632
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633
  *) ac_try_echo=$ac_try;;
3634
esac
3635
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3636
$as_echo "$ac_try_echo") >&5
3637
  (eval "$ac_compile") 2>conftest.er1
3638
  ac_status=$?
3639
  grep -v '^ *+' conftest.er1 >conftest.err
3640
  rm -f conftest.er1
3641
  cat conftest.err >&5
3642
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643
  (exit $ac_status); } && {
3644
         test -z "$ac_c_werror_flag" ||
3645
         test ! -s conftest.err
3646
       } && test -s conftest.$ac_objext; then
3647
  eval "$as_ac_Header=yes"
3648
else
3649
  $as_echo "$as_me: failed program was:" >&5
3650
sed 's/^/| /' conftest.$ac_ext >&5
3651
 
3652
        eval "$as_ac_Header=no"
3653
fi
3654
 
3655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656
fi
3657
ac_res=`eval 'as_val=${'$as_ac_Header'}
3658
                 $as_echo "$as_val"'`
3659
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3660
$as_echo "$ac_res" >&6; }
3661
as_val=`eval 'as_val=${'$as_ac_Header'}
3662
                 $as_echo "$as_val"'`
3663
   if test "x$as_val" = x""yes; then
3664 91 jeremybenn
  cat >>confdefs.h <<_ACEOF
3665
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3666
_ACEOF
3667
 
3668
fi
3669
 
3670
done
3671
 
3672
 
3673
 
3674 101 jeremybenn
  if test "${ac_cv_header_minix_config_h+set}" = set; then
3675
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3676
$as_echo_n "checking for minix/config.h... " >&6; }
3677
if test "${ac_cv_header_minix_config_h+set}" = set; then
3678
  $as_echo_n "(cached) " >&6
3679
fi
3680
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3681
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3682
else
3683
  # Is the header compilable?
3684
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3685
$as_echo_n "checking minix/config.h usability... " >&6; }
3686
cat >conftest.$ac_ext <<_ACEOF
3687
/* confdefs.h.  */
3688
_ACEOF
3689
cat confdefs.h >>conftest.$ac_ext
3690
cat >>conftest.$ac_ext <<_ACEOF
3691
/* end confdefs.h.  */
3692
$ac_includes_default
3693
#include 
3694
_ACEOF
3695
rm -f conftest.$ac_objext
3696
if { (ac_try="$ac_compile"
3697
case "(($ac_try" in
3698
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699
  *) ac_try_echo=$ac_try;;
3700
esac
3701
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3702
$as_echo "$ac_try_echo") >&5
3703
  (eval "$ac_compile") 2>conftest.er1
3704
  ac_status=$?
3705
  grep -v '^ *+' conftest.er1 >conftest.err
3706
  rm -f conftest.er1
3707
  cat conftest.err >&5
3708
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709
  (exit $ac_status); } && {
3710
         test -z "$ac_c_werror_flag" ||
3711
         test ! -s conftest.err
3712
       } && test -s conftest.$ac_objext; then
3713
  ac_header_compiler=yes
3714
else
3715
  $as_echo "$as_me: failed program was:" >&5
3716
sed 's/^/| /' conftest.$ac_ext >&5
3717
 
3718
        ac_header_compiler=no
3719
fi
3720
 
3721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3723
$as_echo "$ac_header_compiler" >&6; }
3724
 
3725
# Is the header present?
3726
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3727
$as_echo_n "checking minix/config.h presence... " >&6; }
3728
cat >conftest.$ac_ext <<_ACEOF
3729
/* confdefs.h.  */
3730
_ACEOF
3731
cat confdefs.h >>conftest.$ac_ext
3732
cat >>conftest.$ac_ext <<_ACEOF
3733
/* end confdefs.h.  */
3734
#include 
3735
_ACEOF
3736
if { (ac_try="$ac_cpp conftest.$ac_ext"
3737
case "(($ac_try" in
3738
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739
  *) ac_try_echo=$ac_try;;
3740
esac
3741
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3742
$as_echo "$ac_try_echo") >&5
3743
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3744
  ac_status=$?
3745
  grep -v '^ *+' conftest.er1 >conftest.err
3746
  rm -f conftest.er1
3747
  cat conftest.err >&5
3748
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749
  (exit $ac_status); } >/dev/null && {
3750
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3751
         test ! -s conftest.err
3752
       }; then
3753
  ac_header_preproc=yes
3754
else
3755
  $as_echo "$as_me: failed program was:" >&5
3756
sed 's/^/| /' conftest.$ac_ext >&5
3757
 
3758
  ac_header_preproc=no
3759
fi
3760
 
3761
rm -f conftest.err conftest.$ac_ext
3762
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3763
$as_echo "$ac_header_preproc" >&6; }
3764
 
3765
# So?  What about this header?
3766
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3767
  yes:no: )
3768
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3769
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3770
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3771
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3772
    ac_header_preproc=yes
3773
    ;;
3774
  no:yes:* )
3775
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3776
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3777
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3778
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3779
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3780
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3781
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3782
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3783
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3784
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3785
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3786
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3787
    ( cat <<\_ASBOX
3788
## ------------------------------------- ##
3789
## Report this to openrisc@opencores.org ##
3790
## ------------------------------------- ##
3791
_ASBOX
3792
     ) | sed "s/^/$as_me: WARNING:     /" >&2
3793
    ;;
3794
esac
3795
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3796
$as_echo_n "checking for minix/config.h... " >&6; }
3797
if test "${ac_cv_header_minix_config_h+set}" = set; then
3798
  $as_echo_n "(cached) " >&6
3799
else
3800
  ac_cv_header_minix_config_h=$ac_header_preproc
3801
fi
3802
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3803
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3804
 
3805
fi
3806
if test "x$ac_cv_header_minix_config_h" = x""yes; then
3807 91 jeremybenn
  MINIX=yes
3808
else
3809
  MINIX=
3810
fi
3811
 
3812
 
3813
  if test "$MINIX" = yes; then
3814
 
3815 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
3816
#define _POSIX_SOURCE 1
3817
_ACEOF
3818 91 jeremybenn
 
3819
 
3820 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
3821
#define _POSIX_1_SOURCE 2
3822
_ACEOF
3823 91 jeremybenn
 
3824
 
3825 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
3826
#define _MINIX 1
3827
_ACEOF
3828 91 jeremybenn
 
3829
  fi
3830
 
3831
 
3832 101 jeremybenn
 
3833
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3834 91 jeremybenn
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3835 101 jeremybenn
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3836 91 jeremybenn
  $as_echo_n "(cached) " >&6
3837
else
3838 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3839
/* confdefs.h.  */
3840
_ACEOF
3841
cat confdefs.h >>conftest.$ac_ext
3842
cat >>conftest.$ac_ext <<_ACEOF
3843 91 jeremybenn
/* end confdefs.h.  */
3844
 
3845
#         define __EXTENSIONS__ 1
3846
          $ac_includes_default
3847
int
3848
main ()
3849
{
3850
 
3851
  ;
3852
  return 0;
3853
}
3854
_ACEOF
3855 101 jeremybenn
rm -f conftest.$ac_objext
3856
if { (ac_try="$ac_compile"
3857
case "(($ac_try" in
3858
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859
  *) ac_try_echo=$ac_try;;
3860
esac
3861
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3862
$as_echo "$ac_try_echo") >&5
3863
  (eval "$ac_compile") 2>conftest.er1
3864
  ac_status=$?
3865
  grep -v '^ *+' conftest.er1 >conftest.err
3866
  rm -f conftest.er1
3867
  cat conftest.err >&5
3868
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869
  (exit $ac_status); } && {
3870
         test -z "$ac_c_werror_flag" ||
3871
         test ! -s conftest.err
3872
       } && test -s conftest.$ac_objext; then
3873 91 jeremybenn
  ac_cv_safe_to_define___extensions__=yes
3874
else
3875 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3876
sed 's/^/| /' conftest.$ac_ext >&5
3877
 
3878
        ac_cv_safe_to_define___extensions__=no
3879 91 jeremybenn
fi
3880 101 jeremybenn
 
3881 91 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882
fi
3883 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3884 91 jeremybenn
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3885
  test $ac_cv_safe_to_define___extensions__ = yes &&
3886 101 jeremybenn
    cat >>confdefs.h <<\_ACEOF
3887
#define __EXTENSIONS__ 1
3888
_ACEOF
3889 91 jeremybenn
 
3890 101 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3891
#define _ALL_SOURCE 1
3892
_ACEOF
3893 91 jeremybenn
 
3894 101 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3895
#define _GNU_SOURCE 1
3896
_ACEOF
3897 91 jeremybenn
 
3898 101 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3899
#define _POSIX_PTHREAD_SEMANTICS 1
3900
_ACEOF
3901 91 jeremybenn
 
3902 101 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3903
#define _TANDEM_SOURCE 1
3904
_ACEOF
3905 91 jeremybenn
 
3906
 
3907
 
3908
# Check we have the execute source file present for sanity. Specify a separate
3909
# config for the testsuite OR1K specific programs, since we'll need different
3910
# tool chain there (the OpenRISC one, rather than the native one).
3911
 
3912
ac_aux_dir=
3913
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3914 101 jeremybenn
  if test -f "$ac_dir/install-sh"; then
3915
    ac_aux_dir=$ac_dir
3916
    ac_install_sh="$ac_aux_dir/install-sh -c"
3917
    break
3918
  elif test -f "$ac_dir/install.sh"; then
3919
    ac_aux_dir=$ac_dir
3920
    ac_install_sh="$ac_aux_dir/install.sh -c"
3921
    break
3922
  elif test -f "$ac_dir/shtool"; then
3923
    ac_aux_dir=$ac_dir
3924
    ac_install_sh="$ac_aux_dir/shtool install -c"
3925
    break
3926
  fi
3927 91 jeremybenn
done
3928
if test -z "$ac_aux_dir"; then
3929 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3930
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3931
   { (exit 1); exit 1; }; }
3932 91 jeremybenn
fi
3933
 
3934
# These three variables are undocumented and unsupported,
3935
# and are intended to be withdrawn in a future Autoconf release.
3936
# They can cause serious problems if a builder's source tree is in a directory
3937
# whose full name contains unusual characters.
3938
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3939
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3940
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3941
 
3942
 
3943
 
3944
 
3945
subdirs="$subdirs testsuite/test-code-or1k"
3946
 
3947
 
3948
# Make sure we can run config.sub.
3949
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3950 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3951
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3952
   { (exit 1); exit 1; }; }
3953 91 jeremybenn
 
3954 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3955 91 jeremybenn
$as_echo_n "checking build system type... " >&6; }
3956 101 jeremybenn
if test "${ac_cv_build+set}" = set; then
3957 91 jeremybenn
  $as_echo_n "(cached) " >&6
3958
else
3959
  ac_build_alias=$build_alias
3960
test "x$ac_build_alias" = x &&
3961
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3962
test "x$ac_build_alias" = x &&
3963 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3964
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3965
   { (exit 1); exit 1; }; }
3966 91 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3967 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3968
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3969
   { (exit 1); exit 1; }; }
3970 91 jeremybenn
 
3971
fi
3972 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3973 91 jeremybenn
$as_echo "$ac_cv_build" >&6; }
3974
case $ac_cv_build in
3975
*-*-*) ;;
3976 101 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3977
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3978
   { (exit 1); exit 1; }; };;
3979 91 jeremybenn
esac
3980
build=$ac_cv_build
3981
ac_save_IFS=$IFS; IFS='-'
3982
set x $ac_cv_build
3983
shift
3984
build_cpu=$1
3985
build_vendor=$2
3986
shift; shift
3987
# Remember, the first character of IFS is used to create $*,
3988
# except with old shells:
3989
build_os=$*
3990
IFS=$ac_save_IFS
3991
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3992
 
3993
 
3994 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3995 91 jeremybenn
$as_echo_n "checking host system type... " >&6; }
3996 101 jeremybenn
if test "${ac_cv_host+set}" = set; then
3997 91 jeremybenn
  $as_echo_n "(cached) " >&6
3998
else
3999
  if test "x$host_alias" = x; then
4000
  ac_cv_host=$ac_cv_build
4001
else
4002
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4003 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4004
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4005
   { (exit 1); exit 1; }; }
4006 91 jeremybenn
fi
4007
 
4008
fi
4009 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4010 91 jeremybenn
$as_echo "$ac_cv_host" >&6; }
4011
case $ac_cv_host in
4012
*-*-*) ;;
4013 101 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4014
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4015
   { (exit 1); exit 1; }; };;
4016 91 jeremybenn
esac
4017
host=$ac_cv_host
4018
ac_save_IFS=$IFS; IFS='-'
4019
set x $ac_cv_host
4020
shift
4021
host_cpu=$1
4022
host_vendor=$2
4023
shift; shift
4024
# Remember, the first character of IFS is used to create $*,
4025
# except with old shells:
4026
host_os=$*
4027
IFS=$ac_save_IFS
4028
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4029
 
4030
 
4031 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
4032 91 jeremybenn
$as_echo_n "checking target system type... " >&6; }
4033 101 jeremybenn
if test "${ac_cv_target+set}" = set; then
4034 91 jeremybenn
  $as_echo_n "(cached) " >&6
4035
else
4036
  if test "x$target_alias" = x; then
4037
  ac_cv_target=$ac_cv_host
4038
else
4039
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4040 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4041
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4042
   { (exit 1); exit 1; }; }
4043 91 jeremybenn
fi
4044
 
4045
fi
4046 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4047 91 jeremybenn
$as_echo "$ac_cv_target" >&6; }
4048
case $ac_cv_target in
4049
*-*-*) ;;
4050 101 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4051
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
4052
   { (exit 1); exit 1; }; };;
4053 91 jeremybenn
esac
4054
target=$ac_cv_target
4055
ac_save_IFS=$IFS; IFS='-'
4056
set x $ac_cv_target
4057
shift
4058
target_cpu=$1
4059
target_vendor=$2
4060
shift; shift
4061
# Remember, the first character of IFS is used to create $*,
4062
# except with old shells:
4063
target_os=$*
4064
IFS=$ac_save_IFS
4065
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4066
 
4067
 
4068
# The aliases save the names the user supplied, while $host etc.
4069
# will get canonicalized.
4070
test -n "$target_alias" &&
4071
  test "$program_prefix$program_suffix$program_transform_name" = \
4072
    NONENONEs,x,x, &&
4073
  program_prefix=${target_alias}-
4074
case `pwd` in
4075
  *\ * | *\     *)
4076 101 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4077 91 jeremybenn
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4078
esac
4079
 
4080
 
4081
 
4082 96 jeremybenn
macro_version='2.2.6b'
4083
macro_revision='1.3017'
4084 91 jeremybenn
 
4085
 
4086
 
4087
 
4088
 
4089
 
4090
 
4091
 
4092
 
4093
 
4094
 
4095
 
4096
 
4097
ltmain="$ac_aux_dir/ltmain.sh"
4098
 
4099 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4100 91 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4101 101 jeremybenn
if test "${ac_cv_path_SED+set}" = set; then
4102 91 jeremybenn
  $as_echo_n "(cached) " >&6
4103
else
4104
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4105
     for ac_i in 1 2 3 4 5 6 7; do
4106
       ac_script="$ac_script$as_nl$ac_script"
4107
     done
4108
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4109 101 jeremybenn
     $as_unset ac_script || ac_script=
4110 91 jeremybenn
     if test -z "$SED"; then
4111
  ac_path_SED_found=false
4112
  # Loop through the user's path and test for each of PROGNAME-LIST
4113
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114
for as_dir in $PATH
4115
do
4116
  IFS=$as_save_IFS
4117
  test -z "$as_dir" && as_dir=.
4118 101 jeremybenn
  for ac_prog in sed gsed; do
4119 91 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4120
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4121
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4122
# Check for GNU ac_path_SED and select it if it is found.
4123
  # Check for GNU $ac_path_SED
4124
case `"$ac_path_SED" --version 2>&1` in
4125
*GNU*)
4126
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4127
*)
4128
  ac_count=0
4129
  $as_echo_n 0123456789 >"conftest.in"
4130
  while :
4131
  do
4132
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4133
    mv "conftest.tmp" "conftest.in"
4134
    cp "conftest.in" "conftest.nl"
4135
    $as_echo '' >> "conftest.nl"
4136
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4137
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4138 101 jeremybenn
    ac_count=`expr $ac_count + 1`
4139 91 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4140
      # Best one so far, save it but keep looking for a better one
4141
      ac_cv_path_SED="$ac_path_SED"
4142
      ac_path_SED_max=$ac_count
4143
    fi
4144
    # 10*(2^10) chars as input seems more than enough
4145
    test $ac_count -gt 10 && break
4146
  done
4147
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4148
esac
4149
 
4150
      $ac_path_SED_found && break 3
4151
    done
4152
  done
4153 101 jeremybenn
done
4154 91 jeremybenn
IFS=$as_save_IFS
4155
  if test -z "$ac_cv_path_SED"; then
4156 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4157
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4158
   { (exit 1); exit 1; }; }
4159 91 jeremybenn
  fi
4160
else
4161
  ac_cv_path_SED=$SED
4162
fi
4163
 
4164
fi
4165 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4166 91 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
4167
 SED="$ac_cv_path_SED"
4168
  rm -f conftest.sed
4169
 
4170
test -z "$SED" && SED=sed
4171
Xsed="$SED -e 1s/^X//"
4172
 
4173
 
4174
 
4175
 
4176
 
4177
 
4178
 
4179
 
4180
 
4181
 
4182
 
4183 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4184 82 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
4185 101 jeremybenn
if test "${ac_cv_path_FGREP+set}" = set; then
4186 82 jeremybenn
  $as_echo_n "(cached) " >&6
4187 19 jeremybenn
else
4188 82 jeremybenn
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4189
   then ac_cv_path_FGREP="$GREP -F"
4190
   else
4191
     if test -z "$FGREP"; then
4192
  ac_path_FGREP_found=false
4193
  # Loop through the user's path and test for each of PROGNAME-LIST
4194
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4196
do
4197
  IFS=$as_save_IFS
4198
  test -z "$as_dir" && as_dir=.
4199 101 jeremybenn
  for ac_prog in fgrep; do
4200 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4201
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4202
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4203
# Check for GNU ac_path_FGREP and select it if it is found.
4204
  # Check for GNU $ac_path_FGREP
4205
case `"$ac_path_FGREP" --version 2>&1` in
4206
*GNU*)
4207
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4208
*)
4209
  ac_count=0
4210
  $as_echo_n 0123456789 >"conftest.in"
4211
  while :
4212
  do
4213
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4214
    mv "conftest.tmp" "conftest.in"
4215
    cp "conftest.in" "conftest.nl"
4216
    $as_echo 'FGREP' >> "conftest.nl"
4217
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4218
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4219 101 jeremybenn
    ac_count=`expr $ac_count + 1`
4220 82 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4221
      # Best one so far, save it but keep looking for a better one
4222
      ac_cv_path_FGREP="$ac_path_FGREP"
4223
      ac_path_FGREP_max=$ac_count
4224
    fi
4225
    # 10*(2^10) chars as input seems more than enough
4226
    test $ac_count -gt 10 && break
4227
  done
4228
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4229
esac
4230
 
4231
      $ac_path_FGREP_found && break 3
4232
    done
4233
  done
4234 101 jeremybenn
done
4235 82 jeremybenn
IFS=$as_save_IFS
4236
  if test -z "$ac_cv_path_FGREP"; then
4237 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4238
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4239
   { (exit 1); exit 1; }; }
4240 82 jeremybenn
  fi
4241
else
4242
  ac_cv_path_FGREP=$FGREP
4243 19 jeremybenn
fi
4244
 
4245
   fi
4246
fi
4247 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4248 82 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
4249
 FGREP="$ac_cv_path_FGREP"
4250 19 jeremybenn
 
4251
 
4252 82 jeremybenn
test -z "$GREP" && GREP=grep
4253 19 jeremybenn
 
4254 82 jeremybenn
 
4255
 
4256
 
4257
 
4258
 
4259
 
4260
 
4261
 
4262
 
4263
 
4264
 
4265
 
4266
 
4267
 
4268
 
4269
 
4270
 
4271
 
4272 19 jeremybenn
# Check whether --with-gnu-ld was given.
4273 101 jeremybenn
if test "${with_gnu_ld+set}" = set; then
4274 19 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4275
else
4276
  with_gnu_ld=no
4277
fi
4278
 
4279
ac_prog=ld
4280
if test "$GCC" = yes; then
4281
  # Check if gcc -print-prog-name=ld gives a path.
4282 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4283 82 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
4284 19 jeremybenn
  case $host in
4285
  *-*-mingw*)
4286
    # gcc leaves a trailing carriage return which upsets mingw
4287
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4288
  *)
4289
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4290
  esac
4291
  case $ac_prog in
4292
    # Accept absolute paths.
4293
    [\\/]* | ?:[\\/]*)
4294
      re_direlt='/[^/][^/]*/\.\./'
4295
      # Canonicalize the pathname of ld
4296 82 jeremybenn
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4297
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4298
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4299 19 jeremybenn
      done
4300
      test -z "$LD" && LD="$ac_prog"
4301
      ;;
4302
  "")
4303
    # If it fails, then pretend we aren't using GCC.
4304
    ac_prog=ld
4305
    ;;
4306
  *)
4307
    # If it is relative, then search for the first ld in PATH.
4308
    with_gnu_ld=unknown
4309
    ;;
4310
  esac
4311
elif test "$with_gnu_ld" = yes; then
4312 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4313 82 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
4314 19 jeremybenn
else
4315 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4316 82 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
4317 19 jeremybenn
fi
4318 101 jeremybenn
if test "${lt_cv_path_LD+set}" = set; then
4319 82 jeremybenn
  $as_echo_n "(cached) " >&6
4320 19 jeremybenn
else
4321
  if test -z "$LD"; then
4322
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4323
  for ac_dir in $PATH; do
4324
    IFS="$lt_save_ifs"
4325
    test -z "$ac_dir" && ac_dir=.
4326
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4327
      lt_cv_path_LD="$ac_dir/$ac_prog"
4328
      # Check to see if the program is GNU ld.  I'd rather use --version,
4329
      # but apparently some variants of GNU ld only accept -v.
4330
      # Break only if it was the GNU/non-GNU ld that we prefer.
4331
      case `"$lt_cv_path_LD" -v 2>&1 
4332
      *GNU* | *'with BFD'*)
4333
        test "$with_gnu_ld" != no && break
4334
        ;;
4335
      *)
4336
        test "$with_gnu_ld" != yes && break
4337
        ;;
4338
      esac
4339
    fi
4340
  done
4341
  IFS="$lt_save_ifs"
4342
else
4343
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4344
fi
4345
fi
4346
 
4347
LD="$lt_cv_path_LD"
4348
if test -n "$LD"; then
4349 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4350 82 jeremybenn
$as_echo "$LD" >&6; }
4351 19 jeremybenn
else
4352 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4353 82 jeremybenn
$as_echo "no" >&6; }
4354 19 jeremybenn
fi
4355 101 jeremybenn
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4356
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4357
   { (exit 1); exit 1; }; }
4358
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4359 82 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4360 101 jeremybenn
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4361 82 jeremybenn
  $as_echo_n "(cached) " >&6
4362 19 jeremybenn
else
4363
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4364
case `$LD -v 2>&1 
4365
*GNU* | *'with BFD'*)
4366
  lt_cv_prog_gnu_ld=yes
4367
  ;;
4368
*)
4369
  lt_cv_prog_gnu_ld=no
4370
  ;;
4371
esac
4372
fi
4373 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4374 82 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4375 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
4376
 
4377
 
4378
 
4379 82 jeremybenn
 
4380
 
4381
 
4382
 
4383
 
4384
 
4385 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4386 82 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4387 101 jeremybenn
if test "${lt_cv_path_NM+set}" = set; then
4388 82 jeremybenn
  $as_echo_n "(cached) " >&6
4389 19 jeremybenn
else
4390
  if test -n "$NM"; then
4391
  # Let the user override the test.
4392
  lt_cv_path_NM="$NM"
4393
else
4394
  lt_nm_to_check="${ac_tool_prefix}nm"
4395
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4396
    lt_nm_to_check="$lt_nm_to_check nm"
4397
  fi
4398
  for lt_tmp_nm in $lt_nm_to_check; do
4399
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4400
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4401
      IFS="$lt_save_ifs"
4402
      test -z "$ac_dir" && ac_dir=.
4403
      tmp_nm="$ac_dir/$lt_tmp_nm"
4404
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4405
        # Check to see if the nm accepts a BSD-compat flag.
4406
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4407
        #   nm: unknown option "B" ignored
4408
        # Tru64's nm complains that /dev/null is an invalid object file
4409
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4410
        */dev/null* | *'Invalid file or object type'*)
4411
          lt_cv_path_NM="$tmp_nm -B"
4412
          break
4413
          ;;
4414
        *)
4415
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4416
          */dev/null*)
4417
            lt_cv_path_NM="$tmp_nm -p"
4418
            break
4419
            ;;
4420
          *)
4421
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4422
            continue # so that we can try to find one that supports BSD flags
4423
            ;;
4424
          esac
4425
          ;;
4426
        esac
4427
      fi
4428
    done
4429
    IFS="$lt_save_ifs"
4430
  done
4431 82 jeremybenn
  : ${lt_cv_path_NM=no}
4432 19 jeremybenn
fi
4433
fi
4434 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4435 82 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
4436
if test "$lt_cv_path_NM" != "no"; then
4437
  NM="$lt_cv_path_NM"
4438
else
4439
  # Didn't find any BSD compatible name lister, look for dumpbin.
4440
  if test -n "$ac_tool_prefix"; then
4441
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4442
  do
4443
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4444
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4445 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4447 101 jeremybenn
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4448 82 jeremybenn
  $as_echo_n "(cached) " >&6
4449
else
4450
  if test -n "$DUMPBIN"; then
4451
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4452
else
4453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454
for as_dir in $PATH
4455
do
4456
  IFS=$as_save_IFS
4457
  test -z "$as_dir" && as_dir=.
4458 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4459 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4461 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 82 jeremybenn
    break 2
4463
  fi
4464
done
4465 101 jeremybenn
done
4466 82 jeremybenn
IFS=$as_save_IFS
4467 19 jeremybenn
 
4468 82 jeremybenn
fi
4469
fi
4470
DUMPBIN=$ac_cv_prog_DUMPBIN
4471
if test -n "$DUMPBIN"; then
4472 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4473 82 jeremybenn
$as_echo "$DUMPBIN" >&6; }
4474
else
4475 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4476 82 jeremybenn
$as_echo "no" >&6; }
4477
fi
4478
 
4479
 
4480
    test -n "$DUMPBIN" && break
4481
  done
4482
fi
4483
if test -z "$DUMPBIN"; then
4484
  ac_ct_DUMPBIN=$DUMPBIN
4485
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4486
do
4487
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4488
set dummy $ac_prog; ac_word=$2
4489 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4490 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4491 101 jeremybenn
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4492 82 jeremybenn
  $as_echo_n "(cached) " >&6
4493
else
4494
  if test -n "$ac_ct_DUMPBIN"; then
4495
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4496
else
4497
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498
for as_dir in $PATH
4499
do
4500
  IFS=$as_save_IFS
4501
  test -z "$as_dir" && as_dir=.
4502 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4503 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4504
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4505 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 82 jeremybenn
    break 2
4507
  fi
4508
done
4509 101 jeremybenn
done
4510 82 jeremybenn
IFS=$as_save_IFS
4511
 
4512
fi
4513
fi
4514
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4515
if test -n "$ac_ct_DUMPBIN"; then
4516 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4517 82 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
4518
else
4519 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4520 82 jeremybenn
$as_echo "no" >&6; }
4521
fi
4522
 
4523
 
4524
  test -n "$ac_ct_DUMPBIN" && break
4525
done
4526
 
4527
  if test "x$ac_ct_DUMPBIN" = x; then
4528
    DUMPBIN=":"
4529
  else
4530
    case $cross_compiling:$ac_tool_warned in
4531
yes:)
4532 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4533 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4534
ac_tool_warned=yes ;;
4535
esac
4536
    DUMPBIN=$ac_ct_DUMPBIN
4537
  fi
4538
fi
4539
 
4540
 
4541
  if test "$DUMPBIN" != ":"; then
4542
    NM="$DUMPBIN"
4543
  fi
4544
fi
4545
test -z "$NM" && NM=nm
4546
 
4547
 
4548
 
4549
 
4550
 
4551
 
4552 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4553 82 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4554 101 jeremybenn
if test "${lt_cv_nm_interface+set}" = set; then
4555 82 jeremybenn
  $as_echo_n "(cached) " >&6
4556
else
4557
  lt_cv_nm_interface="BSD nm"
4558
  echo "int some_variable = 0;" > conftest.$ac_ext
4559 101 jeremybenn
  (eval echo "\"\$as_me:4559: $ac_compile\"" >&5)
4560 82 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
4561
  cat conftest.err >&5
4562 101 jeremybenn
  (eval echo "\"\$as_me:4562: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4563 82 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4564
  cat conftest.err >&5
4565 101 jeremybenn
  (eval echo "\"\$as_me:4565: output\"" >&5)
4566 82 jeremybenn
  cat conftest.out >&5
4567
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4568
    lt_cv_nm_interface="MS dumpbin"
4569
  fi
4570
  rm -f conftest*
4571
fi
4572 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4573 82 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
4574
 
4575 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4576 82 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
4577 19 jeremybenn
LN_S=$as_ln_s
4578
if test "$LN_S" = "ln -s"; then
4579 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
4580 82 jeremybenn
$as_echo "yes" >&6; }
4581 19 jeremybenn
else
4582 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4583 82 jeremybenn
$as_echo "no, using $LN_S" >&6; }
4584 19 jeremybenn
fi
4585
 
4586 82 jeremybenn
# find the maximum length of command line arguments
4587 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4588 82 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4589 101 jeremybenn
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4590 82 jeremybenn
  $as_echo_n "(cached) " >&6
4591
else
4592
    i=0
4593
  teststring="ABCD"
4594
 
4595
  case $build_os in
4596
  msdosdjgpp*)
4597
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4598
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4599
    # during glob expansion).  Even if it were fixed, the result of this
4600
    # check would be larger than it should be.
4601
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4602
    ;;
4603
 
4604
  gnu*)
4605
    # Under GNU Hurd, this test is not required because there is
4606
    # no limit to the length of command line arguments.
4607
    # Libtool will interpret -1 as no limit whatsoever
4608
    lt_cv_sys_max_cmd_len=-1;
4609
    ;;
4610
 
4611
  cygwin* | mingw* | cegcc*)
4612
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4613
    # about 5 minutes as the teststring grows exponentially.
4614
    # Worse, since 9x/ME are not pre-emptively multitasking,
4615
    # you end up with a "frozen" computer, even though with patience
4616
    # the test eventually succeeds (with a max line length of 256k).
4617
    # Instead, let's just punt: use the minimum linelength reported by
4618
    # all of the supported platforms: 8192 (on NT/2K/XP).
4619
    lt_cv_sys_max_cmd_len=8192;
4620
    ;;
4621
 
4622
  amigaos*)
4623
    # On AmigaOS with pdksh, this test takes hours, literally.
4624
    # So we just punt and use a minimum line length of 8192.
4625
    lt_cv_sys_max_cmd_len=8192;
4626
    ;;
4627
 
4628
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4629
    # This has been around since 386BSD, at least.  Likely further.
4630
    if test -x /sbin/sysctl; then
4631
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4632
    elif test -x /usr/sbin/sysctl; then
4633
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4634
    else
4635
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4636
    fi
4637
    # And add a safety zone
4638
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4639
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4640
    ;;
4641
 
4642
  interix*)
4643
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4644
    lt_cv_sys_max_cmd_len=196608
4645
    ;;
4646
 
4647
  osf*)
4648
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4649
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4650
    # nice to cause kernel panics so lets avoid the loop below.
4651
    # First set a reasonable default.
4652
    lt_cv_sys_max_cmd_len=16384
4653
    #
4654
    if test -x /sbin/sysconfig; then
4655
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4656
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4657
      esac
4658
    fi
4659
    ;;
4660
  sco3.2v5*)
4661
    lt_cv_sys_max_cmd_len=102400
4662
    ;;
4663
  sysv5* | sco5v6* | sysv4.2uw2*)
4664
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4665
    if test -n "$kargmax"; then
4666
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4667
    else
4668
      lt_cv_sys_max_cmd_len=32768
4669
    fi
4670
    ;;
4671
  *)
4672
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4673
    if test -n "$lt_cv_sys_max_cmd_len"; then
4674
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4675
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4676
    else
4677
      # Make teststring a little bigger before we do anything with it.
4678
      # a 1K string should be a reasonable start.
4679
      for i in 1 2 3 4 5 6 7 8 ; do
4680
        teststring=$teststring$teststring
4681
      done
4682
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4683
      # If test is not a shell built-in, we'll probably end up computing a
4684
      # maximum length that is only half of the actual maximum length, but
4685
      # we can't tell.
4686
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4687
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4688
              test $i != 17 # 1/2 MB should be enough
4689
      do
4690
        i=`expr $i + 1`
4691
        teststring=$teststring$teststring
4692
      done
4693
      # Only check the string length outside the loop.
4694
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4695
      teststring=
4696
      # Add a significant safety factor because C++ compilers can tack on
4697
      # massive amounts of additional arguments before passing them to the
4698
      # linker.  It appears as though 1/2 is a usable value.
4699
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4700
    fi
4701
    ;;
4702
  esac
4703
 
4704
fi
4705
 
4706
if test -n $lt_cv_sys_max_cmd_len ; then
4707 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4708 82 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4709
else
4710 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: none" >&5
4711 82 jeremybenn
$as_echo "none" >&6; }
4712
fi
4713
max_cmd_len=$lt_cv_sys_max_cmd_len
4714
 
4715
 
4716
 
4717
 
4718
 
4719
 
4720
: ${CP="cp -f"}
4721
: ${MV="mv -f"}
4722
: ${RM="rm -f"}
4723
 
4724 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4725 82 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4726
# Try some XSI features
4727
xsi_shell=no
4728
( _lt_dummy="a/b/c"
4729
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4730
      = c,a/b,, \
4731
    && eval 'test $(( 1 + 1 )) -eq 2 \
4732
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4733
  && xsi_shell=yes
4734 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4735 82 jeremybenn
$as_echo "$xsi_shell" >&6; }
4736
 
4737
 
4738 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4739 82 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4740
lt_shell_append=no
4741
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4742
    >/dev/null 2>&1 \
4743
  && lt_shell_append=yes
4744 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4745 82 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4746
 
4747
 
4748
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4749
  lt_unset=unset
4750
else
4751
  lt_unset=false
4752
fi
4753
 
4754
 
4755
 
4756
 
4757
 
4758
# test EBCDIC or ASCII
4759
case `echo X|tr X '\101'` in
4760
 A) # ASCII based system
4761
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4762
  lt_SP2NL='tr \040 \012'
4763
  lt_NL2SP='tr \015\012 \040\040'
4764
  ;;
4765
 *) # EBCDIC based system
4766
  lt_SP2NL='tr \100 \n'
4767
  lt_NL2SP='tr \r\n \100\100'
4768
  ;;
4769
esac
4770
 
4771
 
4772
 
4773
 
4774
 
4775
 
4776
 
4777
 
4778
 
4779 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4780 82 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4781 101 jeremybenn
if test "${lt_cv_ld_reload_flag+set}" = set; then
4782 82 jeremybenn
  $as_echo_n "(cached) " >&6
4783
else
4784
  lt_cv_ld_reload_flag='-r'
4785
fi
4786 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4787 82 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4788
reload_flag=$lt_cv_ld_reload_flag
4789
case $reload_flag in
4790
"" | " "*) ;;
4791
*) reload_flag=" $reload_flag" ;;
4792
esac
4793
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4794
case $host_os in
4795
  darwin*)
4796
    if test "$GCC" = yes; then
4797
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4798
    else
4799
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4800
    fi
4801
    ;;
4802
esac
4803
 
4804
 
4805
 
4806
 
4807
 
4808
 
4809
 
4810
 
4811
 
4812
if test -n "$ac_tool_prefix"; then
4813
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4814
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4815 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4817 101 jeremybenn
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4818 82 jeremybenn
  $as_echo_n "(cached) " >&6
4819
else
4820
  if test -n "$OBJDUMP"; then
4821
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4822
else
4823
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824
for as_dir in $PATH
4825
do
4826
  IFS=$as_save_IFS
4827
  test -z "$as_dir" && as_dir=.
4828 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4829 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4831 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 82 jeremybenn
    break 2
4833
  fi
4834
done
4835 101 jeremybenn
done
4836 82 jeremybenn
IFS=$as_save_IFS
4837
 
4838
fi
4839
fi
4840
OBJDUMP=$ac_cv_prog_OBJDUMP
4841
if test -n "$OBJDUMP"; then
4842 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4843 82 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4844
else
4845 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4846 82 jeremybenn
$as_echo "no" >&6; }
4847
fi
4848
 
4849
 
4850
fi
4851
if test -z "$ac_cv_prog_OBJDUMP"; then
4852
  ac_ct_OBJDUMP=$OBJDUMP
4853
  # Extract the first word of "objdump", so it can be a program name with args.
4854
set dummy objdump; ac_word=$2
4855 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4857 101 jeremybenn
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4858 82 jeremybenn
  $as_echo_n "(cached) " >&6
4859
else
4860
  if test -n "$ac_ct_OBJDUMP"; then
4861
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4862
else
4863
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864
for as_dir in $PATH
4865
do
4866
  IFS=$as_save_IFS
4867
  test -z "$as_dir" && as_dir=.
4868 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4869 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4871 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 82 jeremybenn
    break 2
4873
  fi
4874
done
4875 101 jeremybenn
done
4876 82 jeremybenn
IFS=$as_save_IFS
4877
 
4878
fi
4879
fi
4880
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4881
if test -n "$ac_ct_OBJDUMP"; then
4882 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4883 82 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4884
else
4885 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4886 82 jeremybenn
$as_echo "no" >&6; }
4887
fi
4888
 
4889
  if test "x$ac_ct_OBJDUMP" = x; then
4890
    OBJDUMP="false"
4891
  else
4892
    case $cross_compiling:$ac_tool_warned in
4893
yes:)
4894 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4895 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896
ac_tool_warned=yes ;;
4897
esac
4898
    OBJDUMP=$ac_ct_OBJDUMP
4899
  fi
4900
else
4901
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4902
fi
4903
 
4904
test -z "$OBJDUMP" && OBJDUMP=objdump
4905
 
4906
 
4907
 
4908
 
4909
 
4910
 
4911
 
4912
 
4913
 
4914 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4915 82 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4916 101 jeremybenn
if test "${lt_cv_deplibs_check_method+set}" = set; then
4917 82 jeremybenn
  $as_echo_n "(cached) " >&6
4918 19 jeremybenn
else
4919
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4920
lt_cv_file_magic_test_file=
4921
lt_cv_deplibs_check_method='unknown'
4922
# Need to set the preceding variable on all platforms that support
4923
# interlibrary dependencies.
4924
# 'none' -- dependencies not supported.
4925
# `unknown' -- same as none, but documents that we really don't know.
4926
# 'pass_all' -- all dependencies passed with no checks.
4927
# 'test_compile' -- check by making test program.
4928
# 'file_magic [[regex]]' -- check by looking for files in library path
4929
# which responds to the $file_magic_cmd with a given extended regex.
4930
# If you have `file' or equivalent on your system and you're not sure
4931
# whether `pass_all' will *always* work, you probably want this one.
4932
 
4933
case $host_os in
4934 82 jeremybenn
aix[4-9]*)
4935 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4936
  ;;
4937
 
4938
beos*)
4939
  lt_cv_deplibs_check_method=pass_all
4940
  ;;
4941
 
4942
bsdi[45]*)
4943
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4944
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4945
  lt_cv_file_magic_test_file=/shlib/libc.so
4946
  ;;
4947
 
4948
cygwin*)
4949
  # func_win32_libid is a shell function defined in ltmain.sh
4950
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4951
  lt_cv_file_magic_cmd='func_win32_libid'
4952
  ;;
4953
 
4954
mingw* | pw32*)
4955
  # Base MSYS/MinGW do not provide the 'file' command needed by
4956
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4957
  # unless we find 'file', for example because we are cross-compiling.
4958
  if ( file / ) >/dev/null 2>&1; then
4959
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4960
    lt_cv_file_magic_cmd='func_win32_libid'
4961
  else
4962
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4963
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4964
  fi
4965
  ;;
4966
 
4967 82 jeremybenn
cegcc)
4968
  # use the weaker test based on 'objdump'. See mingw*.
4969
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4970
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4971
  ;;
4972
 
4973 19 jeremybenn
darwin* | rhapsody*)
4974
  lt_cv_deplibs_check_method=pass_all
4975
  ;;
4976
 
4977
freebsd* | dragonfly*)
4978 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4979 19 jeremybenn
    case $host_cpu in
4980
    i*86 )
4981
      # Not sure whether the presence of OpenBSD here was a mistake.
4982
      # Let's accept both of them until this is cleared up.
4983
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4984
      lt_cv_file_magic_cmd=/usr/bin/file
4985
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4986
      ;;
4987
    esac
4988
  else
4989
    lt_cv_deplibs_check_method=pass_all
4990
  fi
4991
  ;;
4992
 
4993
gnu*)
4994
  lt_cv_deplibs_check_method=pass_all
4995
  ;;
4996
 
4997
hpux10.20* | hpux11*)
4998
  lt_cv_file_magic_cmd=/usr/bin/file
4999
  case $host_cpu in
5000
  ia64*)
5001
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5002
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5003
    ;;
5004
  hppa*64*)
5005
    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]'
5006
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5007
    ;;
5008
  *)
5009
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5010
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5011
    ;;
5012
  esac
5013
  ;;
5014
 
5015
interix[3-9]*)
5016
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5017
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5018
  ;;
5019
 
5020
irix5* | irix6* | nonstopux*)
5021
  case $LD in
5022
  *-32|*"-32 ") libmagic=32-bit;;
5023
  *-n32|*"-n32 ") libmagic=N32;;
5024
  *-64|*"-64 ") libmagic=64-bit;;
5025
  *) libmagic=never-match;;
5026
  esac
5027
  lt_cv_deplibs_check_method=pass_all
5028
  ;;
5029
 
5030
# This must be Linux ELF.
5031
linux* | k*bsd*-gnu)
5032
  lt_cv_deplibs_check_method=pass_all
5033
  ;;
5034
 
5035 93 jeremybenn
netbsd* | netbsdelf*-gnu)
5036 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5037 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5038
  else
5039
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5040
  fi
5041
  ;;
5042
 
5043
newos6*)
5044
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5045
  lt_cv_file_magic_cmd=/usr/bin/file
5046
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5047
  ;;
5048
 
5049 82 jeremybenn
*nto* | *qnx*)
5050
  lt_cv_deplibs_check_method=pass_all
5051 19 jeremybenn
  ;;
5052
 
5053
openbsd*)
5054 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5055 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5056
  else
5057
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5058
  fi
5059
  ;;
5060
 
5061
osf3* | osf4* | osf5*)
5062
  lt_cv_deplibs_check_method=pass_all
5063
  ;;
5064
 
5065
rdos*)
5066
  lt_cv_deplibs_check_method=pass_all
5067
  ;;
5068
 
5069
solaris*)
5070
  lt_cv_deplibs_check_method=pass_all
5071
  ;;
5072
 
5073 82 jeremybenn
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5074
  lt_cv_deplibs_check_method=pass_all
5075
  ;;
5076
 
5077 19 jeremybenn
sysv4 | sysv4.3*)
5078
  case $host_vendor in
5079
  motorola)
5080
    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]'
5081
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5082
    ;;
5083
  ncr)
5084
    lt_cv_deplibs_check_method=pass_all
5085
    ;;
5086
  sequent)
5087
    lt_cv_file_magic_cmd='/bin/file'
5088
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5089
    ;;
5090
  sni)
5091
    lt_cv_file_magic_cmd='/bin/file'
5092
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5093
    lt_cv_file_magic_test_file=/lib/libc.so
5094
    ;;
5095
  siemens)
5096
    lt_cv_deplibs_check_method=pass_all
5097
    ;;
5098
  pc)
5099
    lt_cv_deplibs_check_method=pass_all
5100
    ;;
5101
  esac
5102
  ;;
5103
 
5104 82 jeremybenn
tpf*)
5105 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
5106
  ;;
5107
esac
5108
 
5109
fi
5110 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5111 82 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5112 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
5113
deplibs_check_method=$lt_cv_deplibs_check_method
5114
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5115
 
5116
 
5117
 
5118
 
5119 82 jeremybenn
 
5120
 
5121
 
5122
 
5123
 
5124
 
5125
 
5126
 
5127
if test -n "$ac_tool_prefix"; then
5128
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5129
set dummy ${ac_tool_prefix}ar; ac_word=$2
5130 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5131 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5132 101 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then
5133 82 jeremybenn
  $as_echo_n "(cached) " >&6
5134
else
5135
  if test -n "$AR"; then
5136
  ac_cv_prog_AR="$AR" # Let the user override the test.
5137
else
5138
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139
for as_dir in $PATH
5140
do
5141
  IFS=$as_save_IFS
5142
  test -z "$as_dir" && as_dir=.
5143 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5144 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5145
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5146 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 82 jeremybenn
    break 2
5148
  fi
5149
done
5150 101 jeremybenn
done
5151 82 jeremybenn
IFS=$as_save_IFS
5152
 
5153
fi
5154
fi
5155
AR=$ac_cv_prog_AR
5156
if test -n "$AR"; then
5157 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5158 82 jeremybenn
$as_echo "$AR" >&6; }
5159
else
5160 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5161 82 jeremybenn
$as_echo "no" >&6; }
5162
fi
5163
 
5164
 
5165
fi
5166
if test -z "$ac_cv_prog_AR"; then
5167
  ac_ct_AR=$AR
5168
  # Extract the first word of "ar", so it can be a program name with args.
5169
set dummy ar; ac_word=$2
5170 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5172 101 jeremybenn
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5173 82 jeremybenn
  $as_echo_n "(cached) " >&6
5174
else
5175
  if test -n "$ac_ct_AR"; then
5176
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5177
else
5178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179
for as_dir in $PATH
5180
do
5181
  IFS=$as_save_IFS
5182
  test -z "$as_dir" && as_dir=.
5183 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5184 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185
    ac_cv_prog_ac_ct_AR="ar"
5186 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 82 jeremybenn
    break 2
5188
  fi
5189
done
5190 101 jeremybenn
done
5191 82 jeremybenn
IFS=$as_save_IFS
5192
 
5193
fi
5194
fi
5195
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5196
if test -n "$ac_ct_AR"; then
5197 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5198 82 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
5199
else
5200 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5201 82 jeremybenn
$as_echo "no" >&6; }
5202
fi
5203
 
5204
  if test "x$ac_ct_AR" = x; then
5205
    AR="false"
5206
  else
5207
    case $cross_compiling:$ac_tool_warned in
5208
yes:)
5209 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5210 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5211
ac_tool_warned=yes ;;
5212
esac
5213
    AR=$ac_ct_AR
5214
  fi
5215
else
5216
  AR="$ac_cv_prog_AR"
5217
fi
5218
 
5219
test -z "$AR" && AR=ar
5220
test -z "$AR_FLAGS" && AR_FLAGS=cru
5221
 
5222
 
5223
 
5224
 
5225
 
5226
 
5227
 
5228
 
5229
 
5230
 
5231
 
5232
if test -n "$ac_tool_prefix"; then
5233
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5234
set dummy ${ac_tool_prefix}strip; ac_word=$2
5235 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5236 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5237 101 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then
5238 82 jeremybenn
  $as_echo_n "(cached) " >&6
5239
else
5240
  if test -n "$STRIP"; then
5241
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5242
else
5243
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244
for as_dir in $PATH
5245
do
5246
  IFS=$as_save_IFS
5247
  test -z "$as_dir" && as_dir=.
5248 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5249 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5251 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 82 jeremybenn
    break 2
5253
  fi
5254
done
5255 101 jeremybenn
done
5256 82 jeremybenn
IFS=$as_save_IFS
5257
 
5258
fi
5259
fi
5260
STRIP=$ac_cv_prog_STRIP
5261
if test -n "$STRIP"; then
5262 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5263 82 jeremybenn
$as_echo "$STRIP" >&6; }
5264
else
5265 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5266 82 jeremybenn
$as_echo "no" >&6; }
5267
fi
5268
 
5269
 
5270
fi
5271
if test -z "$ac_cv_prog_STRIP"; then
5272
  ac_ct_STRIP=$STRIP
5273
  # Extract the first word of "strip", so it can be a program name with args.
5274
set dummy strip; ac_word=$2
5275 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5276 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5277 101 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5278 82 jeremybenn
  $as_echo_n "(cached) " >&6
5279
else
5280
  if test -n "$ac_ct_STRIP"; then
5281
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5282
else
5283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284
for as_dir in $PATH
5285
do
5286
  IFS=$as_save_IFS
5287
  test -z "$as_dir" && as_dir=.
5288 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5289 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290
    ac_cv_prog_ac_ct_STRIP="strip"
5291 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 82 jeremybenn
    break 2
5293
  fi
5294
done
5295 101 jeremybenn
done
5296 82 jeremybenn
IFS=$as_save_IFS
5297
 
5298
fi
5299
fi
5300
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5301
if test -n "$ac_ct_STRIP"; then
5302 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5303 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
5304
else
5305 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5306 82 jeremybenn
$as_echo "no" >&6; }
5307
fi
5308
 
5309
  if test "x$ac_ct_STRIP" = x; then
5310
    STRIP=":"
5311
  else
5312
    case $cross_compiling:$ac_tool_warned in
5313
yes:)
5314 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5315 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5316
ac_tool_warned=yes ;;
5317
esac
5318
    STRIP=$ac_ct_STRIP
5319
  fi
5320
else
5321
  STRIP="$ac_cv_prog_STRIP"
5322
fi
5323
 
5324
test -z "$STRIP" && STRIP=:
5325
 
5326
 
5327
 
5328
 
5329
 
5330
 
5331
if test -n "$ac_tool_prefix"; then
5332
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5333
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5334 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5335 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5336 101 jeremybenn
if test "${ac_cv_prog_RANLIB+set}" = set; then
5337 82 jeremybenn
  $as_echo_n "(cached) " >&6
5338
else
5339
  if test -n "$RANLIB"; then
5340
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5341
else
5342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343
for as_dir in $PATH
5344
do
5345
  IFS=$as_save_IFS
5346
  test -z "$as_dir" && as_dir=.
5347 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5348 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5350 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 82 jeremybenn
    break 2
5352
  fi
5353
done
5354 101 jeremybenn
done
5355 82 jeremybenn
IFS=$as_save_IFS
5356
 
5357
fi
5358
fi
5359
RANLIB=$ac_cv_prog_RANLIB
5360
if test -n "$RANLIB"; then
5361 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5362 82 jeremybenn
$as_echo "$RANLIB" >&6; }
5363
else
5364 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5365 82 jeremybenn
$as_echo "no" >&6; }
5366
fi
5367
 
5368
 
5369
fi
5370
if test -z "$ac_cv_prog_RANLIB"; then
5371
  ac_ct_RANLIB=$RANLIB
5372
  # Extract the first word of "ranlib", so it can be a program name with args.
5373
set dummy ranlib; ac_word=$2
5374 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5375 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5376 101 jeremybenn
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5377 82 jeremybenn
  $as_echo_n "(cached) " >&6
5378
else
5379
  if test -n "$ac_ct_RANLIB"; then
5380
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5381
else
5382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383
for as_dir in $PATH
5384
do
5385
  IFS=$as_save_IFS
5386
  test -z "$as_dir" && as_dir=.
5387 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5388 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5389
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5390 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 82 jeremybenn
    break 2
5392
  fi
5393
done
5394 101 jeremybenn
done
5395 82 jeremybenn
IFS=$as_save_IFS
5396
 
5397
fi
5398
fi
5399
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5400
if test -n "$ac_ct_RANLIB"; then
5401 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5402 82 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
5403
else
5404 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5405 82 jeremybenn
$as_echo "no" >&6; }
5406
fi
5407
 
5408
  if test "x$ac_ct_RANLIB" = x; then
5409
    RANLIB=":"
5410
  else
5411
    case $cross_compiling:$ac_tool_warned in
5412
yes:)
5413 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5414 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415
ac_tool_warned=yes ;;
5416
esac
5417
    RANLIB=$ac_ct_RANLIB
5418
  fi
5419
else
5420
  RANLIB="$ac_cv_prog_RANLIB"
5421
fi
5422
 
5423
test -z "$RANLIB" && RANLIB=:
5424
 
5425
 
5426
 
5427
 
5428
 
5429
 
5430
# Determine commands to create old-style static archives.
5431
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5432
old_postinstall_cmds='chmod 644 $oldlib'
5433
old_postuninstall_cmds=
5434
 
5435
if test -n "$RANLIB"; then
5436
  case $host_os in
5437
  openbsd*)
5438
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5439
    ;;
5440
  *)
5441
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5442
    ;;
5443
  esac
5444
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5445
fi
5446
 
5447
 
5448
 
5449
 
5450
 
5451
 
5452
 
5453
 
5454
 
5455
 
5456
 
5457
 
5458
 
5459
 
5460
 
5461
 
5462
 
5463
 
5464
 
5465
 
5466
 
5467
 
5468
 
5469
 
5470
 
5471
 
5472
 
5473
 
5474
 
5475
 
5476
 
5477
 
5478
 
5479
 
5480 19 jeremybenn
# If no C compiler was specified, use CC.
5481
LTCC=${LTCC-"$CC"}
5482
 
5483
# If no C compiler flags were specified, use CFLAGS.
5484
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5485
 
5486
# Allow CC to be a program name with arguments.
5487
compiler=$CC
5488
 
5489
 
5490 82 jeremybenn
# Check for command to grab the raw symbol name followed by C symbol from nm.
5491 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5492 82 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5493 101 jeremybenn
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5494 82 jeremybenn
  $as_echo_n "(cached) " >&6
5495
else
5496
 
5497
# These are sane defaults that work on at least a few old systems.
5498
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5499
 
5500
# Character class describing NM global symbol codes.
5501
symcode='[BCDEGRST]'
5502
 
5503
# Regexp to match symbols that can be accessed directly from C.
5504
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5505
 
5506
# Define system-specific variables.
5507
case $host_os in
5508
aix*)
5509
  symcode='[BCDT]'
5510
  ;;
5511
cygwin* | mingw* | pw32* | cegcc*)
5512
  symcode='[ABCDGISTW]'
5513
  ;;
5514
hpux*)
5515
  if test "$host_cpu" = ia64; then
5516
    symcode='[ABCDEGRST]'
5517
  fi
5518
  ;;
5519
irix* | nonstopux*)
5520
  symcode='[BCDEGRST]'
5521
  ;;
5522
osf*)
5523
  symcode='[BCDEGQRST]'
5524
  ;;
5525
solaris*)
5526
  symcode='[BDRT]'
5527
  ;;
5528
sco3.2v5*)
5529
  symcode='[DT]'
5530
  ;;
5531
sysv4.2uw2*)
5532
  symcode='[DT]'
5533
  ;;
5534
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5535
  symcode='[ABDT]'
5536
  ;;
5537
sysv4)
5538
  symcode='[DFNSTU]'
5539
  ;;
5540
esac
5541
 
5542
# If we're using GNU nm, then use its standard symbol codes.
5543
case `$NM -V 2>&1` in
5544
*GNU* | *'with BFD'*)
5545
  symcode='[ABCDGIRSTW]' ;;
5546
esac
5547
 
5548
# Transform an extracted symbol line into a proper C declaration.
5549
# Some systems (esp. on ia64) link data and code symbols differently,
5550
# so use this general approach.
5551
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5552
 
5553
# Transform an extracted symbol line into symbol name and symbol address
5554
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5555
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'"
5556
 
5557
# Handle CRLF in mingw tool chain
5558
opt_cr=
5559
case $build_os in
5560
mingw*)
5561
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5562
  ;;
5563
esac
5564
 
5565
# Try without a prefix underscore, then with it.
5566
for ac_symprfx in "" "_"; do
5567
 
5568
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5569
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5570
 
5571
  # Write the raw and C identifiers.
5572
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5573
    # Fake it for dumpbin and say T for any non-static function
5574
    # and D for any global variable.
5575
    # Also find C++ and __fastcall symbols from MSVC++,
5576
    # which start with @ or ?.
5577
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5578
"     {last_section=section; section=\$ 3};"\
5579
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5580
"     \$ 0!~/External *\|/{next};"\
5581
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5582
"     {if(hide[section]) next};"\
5583
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5584
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5585
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5586
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5587
"     ' prfx=^$ac_symprfx"
5588
  else
5589
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5590
  fi
5591
 
5592
  # Check to see that the pipe works correctly.
5593
  pipe_works=no
5594
 
5595
  rm -f conftest*
5596
  cat > conftest.$ac_ext <<_LT_EOF
5597
#ifdef __cplusplus
5598
extern "C" {
5599
#endif
5600
char nm_test_var;
5601
void nm_test_func(void);
5602
void nm_test_func(void){}
5603
#ifdef __cplusplus
5604
}
5605
#endif
5606
int main(){nm_test_var='a';nm_test_func();return(0);}
5607
_LT_EOF
5608
 
5609 101 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610 82 jeremybenn
  (eval $ac_compile) 2>&5
5611
  ac_status=$?
5612 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613
  (exit $ac_status); }; then
5614 82 jeremybenn
    # Now try to grab the symbols.
5615
    nlist=conftest.nm
5616 101 jeremybenn
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5617 82 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5618
  ac_status=$?
5619 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620
  (exit $ac_status); } && test -s "$nlist"; then
5621 82 jeremybenn
      # Try sorting and uniquifying the output.
5622
      if sort "$nlist" | uniq > "$nlist"T; then
5623
        mv -f "$nlist"T "$nlist"
5624
      else
5625
        rm -f "$nlist"T
5626
      fi
5627
 
5628
      # Make sure that we snagged all the symbols we need.
5629
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5630
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5631
          cat <<_LT_EOF > conftest.$ac_ext
5632
#ifdef __cplusplus
5633
extern "C" {
5634
#endif
5635
 
5636
_LT_EOF
5637
          # Now generate the symbol file.
5638
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5639
 
5640
          cat <<_LT_EOF >> conftest.$ac_ext
5641
 
5642
/* The mapping between symbol names and symbols.  */
5643
const struct {
5644
  const char *name;
5645
  void       *address;
5646
}
5647
lt__PROGRAM__LTX_preloaded_symbols[] =
5648
{
5649
  { "@PROGRAM@", (void *) 0 },
5650
_LT_EOF
5651
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5652
          cat <<\_LT_EOF >> conftest.$ac_ext
5653
  {0, (void *) 0}
5654
};
5655
 
5656
/* This works around a problem in FreeBSD linker */
5657
#ifdef FREEBSD_WORKAROUND
5658
static const void *lt_preloaded_setup() {
5659
  return lt__PROGRAM__LTX_preloaded_symbols;
5660
}
5661
#endif
5662
 
5663
#ifdef __cplusplus
5664
}
5665
#endif
5666
_LT_EOF
5667
          # Now try linking the two files.
5668
          mv conftest.$ac_objext conftstm.$ac_objext
5669
          lt_save_LIBS="$LIBS"
5670
          lt_save_CFLAGS="$CFLAGS"
5671
          LIBS="conftstm.$ac_objext"
5672
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5673 101 jeremybenn
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5674 82 jeremybenn
  (eval $ac_link) 2>&5
5675
  ac_status=$?
5676 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5678 82 jeremybenn
            pipe_works=yes
5679
          fi
5680
          LIBS="$lt_save_LIBS"
5681
          CFLAGS="$lt_save_CFLAGS"
5682
        else
5683
          echo "cannot find nm_test_func in $nlist" >&5
5684
        fi
5685
      else
5686
        echo "cannot find nm_test_var in $nlist" >&5
5687
      fi
5688
    else
5689
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5690
    fi
5691
  else
5692
    echo "$progname: failed program was:" >&5
5693
    cat conftest.$ac_ext >&5
5694
  fi
5695
  rm -rf conftest* conftst*
5696
 
5697
  # Do not use the global_symbol_pipe unless it works.
5698
  if test "$pipe_works" = yes; then
5699
    break
5700
  else
5701
    lt_cv_sys_global_symbol_pipe=
5702
  fi
5703
done
5704
 
5705
fi
5706
 
5707
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5708
  lt_cv_sys_global_symbol_to_cdecl=
5709
fi
5710
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5711 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: failed" >&5
5712 82 jeremybenn
$as_echo "failed" >&6; }
5713
else
5714 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: ok" >&5
5715 82 jeremybenn
$as_echo "ok" >&6; }
5716
fi
5717
 
5718
 
5719
 
5720
 
5721
 
5722
 
5723
 
5724
 
5725
 
5726
 
5727
 
5728
 
5729
 
5730
 
5731
 
5732
 
5733
 
5734
 
5735
 
5736
 
5737
 
5738
 
5739 19 jeremybenn
# Check whether --enable-libtool-lock was given.
5740 101 jeremybenn
if test "${enable_libtool_lock+set}" = set; then
5741 19 jeremybenn
  enableval=$enable_libtool_lock;
5742
fi
5743
 
5744
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5745
 
5746
# Some flags need to be propagated to the compiler or linker for good
5747
# libtool support.
5748
case $host in
5749
ia64-*-hpux*)
5750
  # Find out which ABI we are using.
5751
  echo 'int i;' > conftest.$ac_ext
5752 101 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 19 jeremybenn
  (eval $ac_compile) 2>&5
5754
  ac_status=$?
5755 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756
  (exit $ac_status); }; then
5757 19 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
5758 82 jeremybenn
      *ELF-32*)
5759
        HPUX_IA64_MODE="32"
5760
        ;;
5761
      *ELF-64*)
5762
        HPUX_IA64_MODE="64"
5763
        ;;
5764 19 jeremybenn
    esac
5765
  fi
5766
  rm -rf conftest*
5767
  ;;
5768
*-*-irix6*)
5769
  # Find out which ABI we are using.
5770 101 jeremybenn
  echo '#line 5770 "configure"' > conftest.$ac_ext
5771
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772 19 jeremybenn
  (eval $ac_compile) 2>&5
5773
  ac_status=$?
5774 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775
  (exit $ac_status); }; then
5776 82 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5777
      case `/usr/bin/file conftest.$ac_objext` in
5778
        *32-bit*)
5779
          LD="${LD-ld} -melf32bsmip"
5780
          ;;
5781
        *N32*)
5782
          LD="${LD-ld} -melf32bmipn32"
5783
          ;;
5784
        *64-bit*)
5785
          LD="${LD-ld} -melf64bmip"
5786
        ;;
5787
      esac
5788
    else
5789
      case `/usr/bin/file conftest.$ac_objext` in
5790
        *32-bit*)
5791
          LD="${LD-ld} -32"
5792
          ;;
5793
        *N32*)
5794
          LD="${LD-ld} -n32"
5795
          ;;
5796
        *64-bit*)
5797
          LD="${LD-ld} -64"
5798
          ;;
5799
      esac
5800
    fi
5801 19 jeremybenn
  fi
5802
  rm -rf conftest*
5803
  ;;
5804
 
5805
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5806 82 jeremybenn
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5807 19 jeremybenn
  # Find out which ABI we are using.
5808
  echo 'int i;' > conftest.$ac_ext
5809 101 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 19 jeremybenn
  (eval $ac_compile) 2>&5
5811
  ac_status=$?
5812 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813
  (exit $ac_status); }; then
5814 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5815 82 jeremybenn
      *32-bit*)
5816
        case $host in
5817
          x86_64-*kfreebsd*-gnu)
5818
            LD="${LD-ld} -m elf_i386_fbsd"
5819
            ;;
5820
          x86_64-*linux*)
5821
            LD="${LD-ld} -m elf_i386"
5822
            ;;
5823
          ppc64-*linux*|powerpc64-*linux*)
5824
            LD="${LD-ld} -m elf32ppclinux"
5825
            ;;
5826
          s390x-*linux*)
5827
            LD="${LD-ld} -m elf_s390"
5828
            ;;
5829
          sparc64-*linux*)
5830
            LD="${LD-ld} -m elf32_sparc"
5831
            ;;
5832
        esac
5833
        ;;
5834
      *64-bit*)
5835
        case $host in
5836
          x86_64-*kfreebsd*-gnu)
5837
            LD="${LD-ld} -m elf_x86_64_fbsd"
5838
            ;;
5839
          x86_64-*linux*)
5840
            LD="${LD-ld} -m elf_x86_64"
5841
            ;;
5842
          ppc*-*linux*|powerpc*-*linux*)
5843
            LD="${LD-ld} -m elf64ppc"
5844
            ;;
5845
          s390*-*linux*|s390*-*tpf*)
5846
            LD="${LD-ld} -m elf64_s390"
5847
            ;;
5848
          sparc*-*linux*)
5849
            LD="${LD-ld} -m elf64_sparc"
5850
            ;;
5851
        esac
5852
        ;;
5853 19 jeremybenn
    esac
5854
  fi
5855
  rm -rf conftest*
5856
  ;;
5857
 
5858
*-*-sco3.2v5*)
5859
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5860
  SAVE_CFLAGS="$CFLAGS"
5861
  CFLAGS="$CFLAGS -belf"
5862 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5863 82 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5864 101 jeremybenn
if test "${lt_cv_cc_needs_belf+set}" = set; then
5865 82 jeremybenn
  $as_echo_n "(cached) " >&6
5866 19 jeremybenn
else
5867
  ac_ext=c
5868
ac_cpp='$CPP $CPPFLAGS'
5869
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5870
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5871
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5872
 
5873 101 jeremybenn
     cat >conftest.$ac_ext <<_ACEOF
5874
/* confdefs.h.  */
5875
_ACEOF
5876
cat confdefs.h >>conftest.$ac_ext
5877
cat >>conftest.$ac_ext <<_ACEOF
5878 19 jeremybenn
/* end confdefs.h.  */
5879
 
5880
int
5881
main ()
5882
{
5883
 
5884
  ;
5885
  return 0;
5886
}
5887
_ACEOF
5888 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
5889
if { (ac_try="$ac_link"
5890
case "(($ac_try" in
5891
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892
  *) ac_try_echo=$ac_try;;
5893
esac
5894
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5895
$as_echo "$ac_try_echo") >&5
5896
  (eval "$ac_link") 2>conftest.er1
5897
  ac_status=$?
5898
  grep -v '^ *+' conftest.er1 >conftest.err
5899
  rm -f conftest.er1
5900
  cat conftest.err >&5
5901
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902
  (exit $ac_status); } && {
5903
         test -z "$ac_c_werror_flag" ||
5904
         test ! -s conftest.err
5905
       } && test -s conftest$ac_exeext && {
5906
         test "$cross_compiling" = yes ||
5907
         $as_test_x conftest$ac_exeext
5908
       }; then
5909 19 jeremybenn
  lt_cv_cc_needs_belf=yes
5910
else
5911 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5912
sed 's/^/| /' conftest.$ac_ext >&5
5913
 
5914
        lt_cv_cc_needs_belf=no
5915 19 jeremybenn
fi
5916 101 jeremybenn
 
5917
rm -rf conftest.dSYM
5918
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5919
      conftest$ac_exeext conftest.$ac_ext
5920 19 jeremybenn
     ac_ext=c
5921
ac_cpp='$CPP $CPPFLAGS'
5922
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5923
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5924
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5925
 
5926
fi
5927 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5928 82 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5929 19 jeremybenn
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5930
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5931
    CFLAGS="$SAVE_CFLAGS"
5932
  fi
5933
  ;;
5934
sparc*-*solaris*)
5935
  # Find out which ABI we are using.
5936
  echo 'int i;' > conftest.$ac_ext
5937 101 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 19 jeremybenn
  (eval $ac_compile) 2>&5
5939
  ac_status=$?
5940 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941
  (exit $ac_status); }; then
5942 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5943
    *64-bit*)
5944
      case $lt_cv_prog_gnu_ld in
5945
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5946 82 jeremybenn
      *)
5947
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5948
          LD="${LD-ld} -64"
5949
        fi
5950
        ;;
5951 19 jeremybenn
      esac
5952
      ;;
5953
    esac
5954
  fi
5955
  rm -rf conftest*
5956
  ;;
5957 82 jeremybenn
esac
5958 19 jeremybenn
 
5959 82 jeremybenn
need_locks="$enable_libtool_lock"
5960 19 jeremybenn
 
5961 82 jeremybenn
 
5962
  case $host_os in
5963
    rhapsody* | darwin*)
5964
    if test -n "$ac_tool_prefix"; then
5965
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5966
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5967 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5969 101 jeremybenn
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5970 82 jeremybenn
  $as_echo_n "(cached) " >&6
5971
else
5972
  if test -n "$DSYMUTIL"; then
5973
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5974
else
5975
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976
for as_dir in $PATH
5977
do
5978
  IFS=$as_save_IFS
5979
  test -z "$as_dir" && as_dir=.
5980 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5981 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5982
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5983 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 82 jeremybenn
    break 2
5985
  fi
5986
done
5987 101 jeremybenn
done
5988 82 jeremybenn
IFS=$as_save_IFS
5989
 
5990
fi
5991
fi
5992
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5993
if test -n "$DSYMUTIL"; then
5994 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5995 82 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5996
else
5997 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5998 82 jeremybenn
$as_echo "no" >&6; }
5999
fi
6000
 
6001
 
6002
fi
6003
if test -z "$ac_cv_prog_DSYMUTIL"; then
6004
  ac_ct_DSYMUTIL=$DSYMUTIL
6005
  # Extract the first word of "dsymutil", so it can be a program name with args.
6006
set dummy dsymutil; ac_word=$2
6007 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6008 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6009 101 jeremybenn
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6010 82 jeremybenn
  $as_echo_n "(cached) " >&6
6011
else
6012
  if test -n "$ac_ct_DSYMUTIL"; then
6013
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6014
else
6015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016
for as_dir in $PATH
6017
do
6018
  IFS=$as_save_IFS
6019
  test -z "$as_dir" && as_dir=.
6020 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6021 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6022
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6023 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 82 jeremybenn
    break 2
6025
  fi
6026
done
6027 101 jeremybenn
done
6028 82 jeremybenn
IFS=$as_save_IFS
6029
 
6030
fi
6031
fi
6032
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6033
if test -n "$ac_ct_DSYMUTIL"; then
6034 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6035 82 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6036
else
6037 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6038 82 jeremybenn
$as_echo "no" >&6; }
6039
fi
6040
 
6041
  if test "x$ac_ct_DSYMUTIL" = x; then
6042
    DSYMUTIL=":"
6043
  else
6044
    case $cross_compiling:$ac_tool_warned in
6045
yes:)
6046 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6047 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6048
ac_tool_warned=yes ;;
6049 19 jeremybenn
esac
6050 82 jeremybenn
    DSYMUTIL=$ac_ct_DSYMUTIL
6051
  fi
6052
else
6053
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6054
fi
6055 19 jeremybenn
 
6056 82 jeremybenn
    if test -n "$ac_tool_prefix"; then
6057
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6058
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6059 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6060 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6061 101 jeremybenn
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6062 82 jeremybenn
  $as_echo_n "(cached) " >&6
6063
else
6064
  if test -n "$NMEDIT"; then
6065
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6066
else
6067
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068
for as_dir in $PATH
6069
do
6070
  IFS=$as_save_IFS
6071
  test -z "$as_dir" && as_dir=.
6072 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6073 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6074
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6075 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 82 jeremybenn
    break 2
6077
  fi
6078
done
6079 101 jeremybenn
done
6080 82 jeremybenn
IFS=$as_save_IFS
6081 19 jeremybenn
 
6082 82 jeremybenn
fi
6083
fi
6084
NMEDIT=$ac_cv_prog_NMEDIT
6085
if test -n "$NMEDIT"; then
6086 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6087 82 jeremybenn
$as_echo "$NMEDIT" >&6; }
6088
else
6089 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6090 82 jeremybenn
$as_echo "no" >&6; }
6091
fi
6092 19 jeremybenn
 
6093 82 jeremybenn
 
6094
fi
6095
if test -z "$ac_cv_prog_NMEDIT"; then
6096
  ac_ct_NMEDIT=$NMEDIT
6097
  # Extract the first word of "nmedit", so it can be a program name with args.
6098
set dummy nmedit; ac_word=$2
6099 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6100 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6101 101 jeremybenn
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6102 82 jeremybenn
  $as_echo_n "(cached) " >&6
6103
else
6104
  if test -n "$ac_ct_NMEDIT"; then
6105
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6106
else
6107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108
for as_dir in $PATH
6109
do
6110
  IFS=$as_save_IFS
6111
  test -z "$as_dir" && as_dir=.
6112 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6113 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6115 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 82 jeremybenn
    break 2
6117
  fi
6118
done
6119 101 jeremybenn
done
6120 82 jeremybenn
IFS=$as_save_IFS
6121
 
6122
fi
6123
fi
6124
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6125
if test -n "$ac_ct_NMEDIT"; then
6126 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6127 82 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
6128
else
6129 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6130 82 jeremybenn
$as_echo "no" >&6; }
6131
fi
6132
 
6133
  if test "x$ac_ct_NMEDIT" = x; then
6134
    NMEDIT=":"
6135
  else
6136
    case $cross_compiling:$ac_tool_warned in
6137
yes:)
6138 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6139 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6140
ac_tool_warned=yes ;;
6141
esac
6142
    NMEDIT=$ac_ct_NMEDIT
6143
  fi
6144
else
6145
  NMEDIT="$ac_cv_prog_NMEDIT"
6146
fi
6147
 
6148
    if test -n "$ac_tool_prefix"; then
6149
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6150
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6151 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6153 101 jeremybenn
if test "${ac_cv_prog_LIPO+set}" = set; then
6154 82 jeremybenn
  $as_echo_n "(cached) " >&6
6155
else
6156
  if test -n "$LIPO"; then
6157
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6158
else
6159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160
for as_dir in $PATH
6161
do
6162
  IFS=$as_save_IFS
6163
  test -z "$as_dir" && as_dir=.
6164 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6165 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6167 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 82 jeremybenn
    break 2
6169
  fi
6170
done
6171 101 jeremybenn
done
6172 82 jeremybenn
IFS=$as_save_IFS
6173
 
6174
fi
6175
fi
6176
LIPO=$ac_cv_prog_LIPO
6177
if test -n "$LIPO"; then
6178 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6179 82 jeremybenn
$as_echo "$LIPO" >&6; }
6180
else
6181 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6182 82 jeremybenn
$as_echo "no" >&6; }
6183
fi
6184
 
6185
 
6186
fi
6187
if test -z "$ac_cv_prog_LIPO"; then
6188
  ac_ct_LIPO=$LIPO
6189
  # Extract the first word of "lipo", so it can be a program name with args.
6190
set dummy lipo; ac_word=$2
6191 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6193 101 jeremybenn
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6194 82 jeremybenn
  $as_echo_n "(cached) " >&6
6195
else
6196
  if test -n "$ac_ct_LIPO"; then
6197
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6198
else
6199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200
for as_dir in $PATH
6201
do
6202
  IFS=$as_save_IFS
6203
  test -z "$as_dir" && as_dir=.
6204 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6205 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6206
    ac_cv_prog_ac_ct_LIPO="lipo"
6207 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 82 jeremybenn
    break 2
6209
  fi
6210
done
6211 101 jeremybenn
done
6212 82 jeremybenn
IFS=$as_save_IFS
6213
 
6214
fi
6215
fi
6216
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6217
if test -n "$ac_ct_LIPO"; then
6218 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6219 82 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
6220
else
6221 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6222 82 jeremybenn
$as_echo "no" >&6; }
6223
fi
6224
 
6225
  if test "x$ac_ct_LIPO" = x; then
6226
    LIPO=":"
6227
  else
6228
    case $cross_compiling:$ac_tool_warned in
6229
yes:)
6230 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6231 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6232
ac_tool_warned=yes ;;
6233
esac
6234
    LIPO=$ac_ct_LIPO
6235
  fi
6236
else
6237
  LIPO="$ac_cv_prog_LIPO"
6238
fi
6239
 
6240
    if test -n "$ac_tool_prefix"; then
6241
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6242
set dummy ${ac_tool_prefix}otool; ac_word=$2
6243 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6244 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6245 101 jeremybenn
if test "${ac_cv_prog_OTOOL+set}" = set; then
6246 82 jeremybenn
  $as_echo_n "(cached) " >&6
6247
else
6248
  if test -n "$OTOOL"; then
6249
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6250
else
6251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252
for as_dir in $PATH
6253
do
6254
  IFS=$as_save_IFS
6255
  test -z "$as_dir" && as_dir=.
6256 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6257 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6259 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 82 jeremybenn
    break 2
6261
  fi
6262
done
6263 101 jeremybenn
done
6264 82 jeremybenn
IFS=$as_save_IFS
6265
 
6266
fi
6267
fi
6268
OTOOL=$ac_cv_prog_OTOOL
6269
if test -n "$OTOOL"; then
6270 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6271 82 jeremybenn
$as_echo "$OTOOL" >&6; }
6272
else
6273 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6274 82 jeremybenn
$as_echo "no" >&6; }
6275
fi
6276
 
6277
 
6278
fi
6279
if test -z "$ac_cv_prog_OTOOL"; then
6280
  ac_ct_OTOOL=$OTOOL
6281
  # Extract the first word of "otool", so it can be a program name with args.
6282
set dummy otool; ac_word=$2
6283 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6284 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6285 101 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6286 82 jeremybenn
  $as_echo_n "(cached) " >&6
6287
else
6288
  if test -n "$ac_ct_OTOOL"; then
6289
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6290
else
6291
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292
for as_dir in $PATH
6293
do
6294
  IFS=$as_save_IFS
6295
  test -z "$as_dir" && as_dir=.
6296 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6297 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6298
    ac_cv_prog_ac_ct_OTOOL="otool"
6299 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 82 jeremybenn
    break 2
6301
  fi
6302
done
6303 101 jeremybenn
done
6304 82 jeremybenn
IFS=$as_save_IFS
6305
 
6306
fi
6307
fi
6308
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6309
if test -n "$ac_ct_OTOOL"; then
6310 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6311 82 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
6312
else
6313 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6314 82 jeremybenn
$as_echo "no" >&6; }
6315
fi
6316
 
6317
  if test "x$ac_ct_OTOOL" = x; then
6318
    OTOOL=":"
6319
  else
6320
    case $cross_compiling:$ac_tool_warned in
6321
yes:)
6322 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6323 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6324
ac_tool_warned=yes ;;
6325
esac
6326
    OTOOL=$ac_ct_OTOOL
6327
  fi
6328
else
6329
  OTOOL="$ac_cv_prog_OTOOL"
6330
fi
6331
 
6332
    if test -n "$ac_tool_prefix"; then
6333
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6334
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6335 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6336 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6337 101 jeremybenn
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6338 82 jeremybenn
  $as_echo_n "(cached) " >&6
6339
else
6340
  if test -n "$OTOOL64"; then
6341
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6342
else
6343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344
for as_dir in $PATH
6345
do
6346
  IFS=$as_save_IFS
6347
  test -z "$as_dir" && as_dir=.
6348 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6349 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6351 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 82 jeremybenn
    break 2
6353
  fi
6354
done
6355 101 jeremybenn
done
6356 82 jeremybenn
IFS=$as_save_IFS
6357
 
6358
fi
6359
fi
6360
OTOOL64=$ac_cv_prog_OTOOL64
6361
if test -n "$OTOOL64"; then
6362 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6363 82 jeremybenn
$as_echo "$OTOOL64" >&6; }
6364
else
6365 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6366 82 jeremybenn
$as_echo "no" >&6; }
6367
fi
6368
 
6369
 
6370
fi
6371
if test -z "$ac_cv_prog_OTOOL64"; then
6372
  ac_ct_OTOOL64=$OTOOL64
6373
  # Extract the first word of "otool64", so it can be a program name with args.
6374
set dummy otool64; ac_word=$2
6375 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6376 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6377 101 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6378 82 jeremybenn
  $as_echo_n "(cached) " >&6
6379
else
6380
  if test -n "$ac_ct_OTOOL64"; then
6381
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6382
else
6383
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384
for as_dir in $PATH
6385
do
6386
  IFS=$as_save_IFS
6387
  test -z "$as_dir" && as_dir=.
6388 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6389 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6391 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 82 jeremybenn
    break 2
6393
  fi
6394
done
6395 101 jeremybenn
done
6396 82 jeremybenn
IFS=$as_save_IFS
6397
 
6398
fi
6399
fi
6400
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6401
if test -n "$ac_ct_OTOOL64"; then
6402 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6403 82 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
6404
else
6405 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6406 82 jeremybenn
$as_echo "no" >&6; }
6407
fi
6408
 
6409
  if test "x$ac_ct_OTOOL64" = x; then
6410
    OTOOL64=":"
6411
  else
6412
    case $cross_compiling:$ac_tool_warned in
6413
yes:)
6414 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6415 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6416
ac_tool_warned=yes ;;
6417
esac
6418
    OTOOL64=$ac_ct_OTOOL64
6419
  fi
6420
else
6421
  OTOOL64="$ac_cv_prog_OTOOL64"
6422
fi
6423
 
6424
 
6425
 
6426
 
6427
 
6428
 
6429
 
6430
 
6431
 
6432
 
6433
 
6434
 
6435
 
6436
 
6437
 
6438
 
6439
 
6440
 
6441
 
6442
 
6443
 
6444
 
6445
 
6446
 
6447
 
6448
 
6449
 
6450 101 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6451 82 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
6452 101 jeremybenn
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6453 82 jeremybenn
  $as_echo_n "(cached) " >&6
6454
else
6455
  lt_cv_apple_cc_single_mod=no
6456
      if test -z "${LT_MULTI_MODULE}"; then
6457
        # By default we will add the -single_module flag. You can override
6458
        # by either setting the environment variable LT_MULTI_MODULE
6459
        # non-empty at configure time, or by adding -multi_module to the
6460
        # link flags.
6461
        rm -rf libconftest.dylib*
6462
        echo "int foo(void){return 1;}" > conftest.c
6463
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6464
-dynamiclib -Wl,-single_module conftest.c" >&5
6465
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6466
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6467
        _lt_result=$?
6468
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6469
          lt_cv_apple_cc_single_mod=yes
6470
        else
6471
          cat conftest.err >&5
6472
        fi
6473
        rm -rf libconftest.dylib*
6474
        rm -f conftest.*
6475
      fi
6476
fi
6477 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6478 82 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6479 101 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6480 82 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6481 101 jeremybenn
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6482 82 jeremybenn
  $as_echo_n "(cached) " >&6
6483
else
6484
  lt_cv_ld_exported_symbols_list=no
6485
      save_LDFLAGS=$LDFLAGS
6486
      echo "_main" > conftest.sym
6487
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6488 101 jeremybenn
      cat >conftest.$ac_ext <<_ACEOF
6489
/* confdefs.h.  */
6490
_ACEOF
6491
cat confdefs.h >>conftest.$ac_ext
6492
cat >>conftest.$ac_ext <<_ACEOF
6493 82 jeremybenn
/* end confdefs.h.  */
6494
 
6495
int
6496
main ()
6497
{
6498
 
6499
  ;
6500
  return 0;
6501
}
6502
_ACEOF
6503 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
6504
if { (ac_try="$ac_link"
6505
case "(($ac_try" in
6506
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6507
  *) ac_try_echo=$ac_try;;
6508
esac
6509
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6510
$as_echo "$ac_try_echo") >&5
6511
  (eval "$ac_link") 2>conftest.er1
6512
  ac_status=$?
6513
  grep -v '^ *+' conftest.er1 >conftest.err
6514
  rm -f conftest.er1
6515
  cat conftest.err >&5
6516
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517
  (exit $ac_status); } && {
6518
         test -z "$ac_c_werror_flag" ||
6519
         test ! -s conftest.err
6520
       } && test -s conftest$ac_exeext && {
6521
         test "$cross_compiling" = yes ||
6522
         $as_test_x conftest$ac_exeext
6523
       }; then
6524 82 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
6525
else
6526 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6527
sed 's/^/| /' conftest.$ac_ext >&5
6528
 
6529
        lt_cv_ld_exported_symbols_list=no
6530 82 jeremybenn
fi
6531 101 jeremybenn
 
6532
rm -rf conftest.dSYM
6533
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6534
      conftest$ac_exeext conftest.$ac_ext
6535 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
6536
 
6537
fi
6538 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6539 82 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6540
    case $host_os in
6541
    rhapsody* | darwin1.[012])
6542
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6543
    darwin1.*)
6544
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6545
    darwin*) # darwin 5.x on
6546
      # if running on 10.5 or later, the deployment target defaults
6547
      # to the OS version, if on x86, and 10.4, the deployment
6548
      # target defaults to 10.4. Don't you love it?
6549
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6550
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6551
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6552
        10.[012]*)
6553
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6554
        10.*)
6555
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6556
      esac
6557
    ;;
6558
  esac
6559
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6560
      _lt_dar_single_mod='$single_module'
6561
    fi
6562
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6563
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6564
    else
6565
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6566
    fi
6567
    if test "$DSYMUTIL" != ":"; then
6568
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6569
    else
6570
      _lt_dsymutil=
6571
    fi
6572
    ;;
6573
  esac
6574
 
6575 101 jeremybenn
 
6576 19 jeremybenn
for ac_header in dlfcn.h
6577 101 jeremybenn
do
6578
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6579
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6580
$as_echo_n "checking for $ac_header... " >&6; }
6581
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6582
  $as_echo_n "(cached) " >&6
6583
else
6584
  cat >conftest.$ac_ext <<_ACEOF
6585
/* confdefs.h.  */
6586
_ACEOF
6587
cat confdefs.h >>conftest.$ac_ext
6588
cat >>conftest.$ac_ext <<_ACEOF
6589
/* end confdefs.h.  */
6590
$ac_includes_default
6591
 
6592
#include <$ac_header>
6593
_ACEOF
6594
rm -f conftest.$ac_objext
6595
if { (ac_try="$ac_compile"
6596
case "(($ac_try" in
6597
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598
  *) ac_try_echo=$ac_try;;
6599
esac
6600
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6601
$as_echo "$ac_try_echo") >&5
6602
  (eval "$ac_compile") 2>conftest.er1
6603
  ac_status=$?
6604
  grep -v '^ *+' conftest.er1 >conftest.err
6605
  rm -f conftest.er1
6606
  cat conftest.err >&5
6607
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608
  (exit $ac_status); } && {
6609
         test -z "$ac_c_werror_flag" ||
6610
         test ! -s conftest.err
6611
       } && test -s conftest.$ac_objext; then
6612
  eval "$as_ac_Header=yes"
6613
else
6614
  $as_echo "$as_me: failed program was:" >&5
6615
sed 's/^/| /' conftest.$ac_ext >&5
6616
 
6617
        eval "$as_ac_Header=no"
6618
fi
6619
 
6620
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6621
fi
6622
ac_res=`eval 'as_val=${'$as_ac_Header'}
6623
                 $as_echo "$as_val"'`
6624
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6625
$as_echo "$ac_res" >&6; }
6626
as_val=`eval 'as_val=${'$as_ac_Header'}
6627
                 $as_echo "$as_val"'`
6628
   if test "x$as_val" = x""yes; then
6629 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
6630 101 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6631 19 jeremybenn
_ACEOF
6632
 
6633
fi
6634
 
6635
done
6636
 
6637
 
6638
 
6639 82 jeremybenn
# Set options
6640 19 jeremybenn
 
6641
 
6642
 
6643 82 jeremybenn
        enable_dlopen=no
6644 19 jeremybenn
 
6645
 
6646 82 jeremybenn
  enable_win32_dll=no
6647 19 jeremybenn
 
6648
 
6649 82 jeremybenn
            # Check whether --enable-shared was given.
6650 101 jeremybenn
if test "${enable_shared+set}" = set; then
6651 82 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
6652
    case $enableval in
6653
    yes) enable_shared=yes ;;
6654
    no) enable_shared=no ;;
6655
    *)
6656
      enable_shared=no
6657
      # Look at the argument we got.  We use all the common list separators.
6658
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6659
      for pkg in $enableval; do
6660
        IFS="$lt_save_ifs"
6661
        if test "X$pkg" = "X$p"; then
6662
          enable_shared=yes
6663
        fi
6664
      done
6665
      IFS="$lt_save_ifs"
6666
      ;;
6667
    esac
6668 19 jeremybenn
else
6669 82 jeremybenn
  enable_shared=yes
6670 19 jeremybenn
fi
6671
 
6672
 
6673
 
6674
 
6675
 
6676
 
6677
 
6678
 
6679
 
6680 82 jeremybenn
  # Check whether --enable-static was given.
6681 101 jeremybenn
if test "${enable_static+set}" = set; then
6682 82 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
6683
    case $enableval in
6684
    yes) enable_static=yes ;;
6685
    no) enable_static=no ;;
6686
    *)
6687
     enable_static=no
6688
      # Look at the argument we got.  We use all the common list separators.
6689
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6690
      for pkg in $enableval; do
6691
        IFS="$lt_save_ifs"
6692
        if test "X$pkg" = "X$p"; then
6693
          enable_static=yes
6694
        fi
6695
      done
6696
      IFS="$lt_save_ifs"
6697
      ;;
6698
    esac
6699 19 jeremybenn
else
6700 82 jeremybenn
  enable_static=yes
6701 19 jeremybenn
fi
6702
 
6703
 
6704
 
6705
 
6706
 
6707
 
6708
 
6709
 
6710
 
6711
 
6712 82 jeremybenn
# Check whether --with-pic was given.
6713 101 jeremybenn
if test "${with_pic+set}" = set; then
6714 82 jeremybenn
  withval=$with_pic; pic_mode="$withval"
6715 19 jeremybenn
else
6716 82 jeremybenn
  pic_mode=default
6717 19 jeremybenn
fi
6718
 
6719
 
6720 82 jeremybenn
test -z "$pic_mode" && pic_mode=default
6721 19 jeremybenn
 
6722
 
6723
 
6724
 
6725
 
6726
 
6727
 
6728 82 jeremybenn
  # Check whether --enable-fast-install was given.
6729 101 jeremybenn
if test "${enable_fast_install+set}" = set; then
6730 82 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
6731
    case $enableval in
6732
    yes) enable_fast_install=yes ;;
6733
    no) enable_fast_install=no ;;
6734
    *)
6735
      enable_fast_install=no
6736
      # Look at the argument we got.  We use all the common list separators.
6737
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6738
      for pkg in $enableval; do
6739
        IFS="$lt_save_ifs"
6740
        if test "X$pkg" = "X$p"; then
6741
          enable_fast_install=yes
6742
        fi
6743
      done
6744
      IFS="$lt_save_ifs"
6745
      ;;
6746
    esac
6747 19 jeremybenn
else
6748 82 jeremybenn
  enable_fast_install=yes
6749 19 jeremybenn
fi
6750
 
6751
 
6752
 
6753
 
6754
 
6755
 
6756
 
6757
 
6758
 
6759
 
6760
 
6761 82 jeremybenn
# This can be used to rebuild libtool when needed
6762
LIBTOOL_DEPS="$ltmain"
6763 19 jeremybenn
 
6764 82 jeremybenn
# Always use our own libtool.
6765
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6766 19 jeremybenn
 
6767
 
6768
 
6769
 
6770
 
6771
 
6772
 
6773
 
6774
 
6775
 
6776
 
6777
 
6778
 
6779
 
6780
 
6781
 
6782
 
6783
 
6784
 
6785
 
6786
 
6787
 
6788
 
6789
 
6790
 
6791 82 jeremybenn
test -z "$LN_S" && LN_S="ln -s"
6792 19 jeremybenn
 
6793
 
6794
 
6795
 
6796
 
6797
 
6798
 
6799
 
6800
 
6801
 
6802
 
6803
 
6804
 
6805
 
6806 82 jeremybenn
if test -n "${ZSH_VERSION+set}" ; then
6807
   setopt NO_GLOB_SUBST
6808 19 jeremybenn
fi
6809
 
6810 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6811 82 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6812 101 jeremybenn
if test "${lt_cv_objdir+set}" = set; then
6813 82 jeremybenn
  $as_echo_n "(cached) " >&6
6814 19 jeremybenn
else
6815
  rm -f .libs 2>/dev/null
6816
mkdir .libs 2>/dev/null
6817
if test -d .libs; then
6818
  lt_cv_objdir=.libs
6819
else
6820
  # MS-DOS does not allow filenames that begin with a dot.
6821
  lt_cv_objdir=_libs
6822
fi
6823
rmdir .libs 2>/dev/null
6824
fi
6825 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6826 82 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
6827 19 jeremybenn
objdir=$lt_cv_objdir
6828
 
6829
 
6830
 
6831
 
6832
 
6833 82 jeremybenn
cat >>confdefs.h <<_ACEOF
6834
#define LT_OBJDIR "$lt_cv_objdir/"
6835
_ACEOF
6836
 
6837
 
6838
 
6839
 
6840
 
6841
 
6842
 
6843
 
6844
 
6845
 
6846
 
6847
 
6848
 
6849
 
6850
 
6851
 
6852
 
6853 19 jeremybenn
case $host_os in
6854
aix3*)
6855
  # AIX sometimes has problems with the GCC collect2 program.  For some
6856
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6857
  # vanish in a puff of smoke.
6858
  if test "X${COLLECT_NAMES+set}" != Xset; then
6859
    COLLECT_NAMES=
6860
    export COLLECT_NAMES
6861
  fi
6862
  ;;
6863
esac
6864
 
6865
# Sed substitution that helps us do robust quoting.  It backslashifies
6866
# metacharacters that are still active within double-quoted strings.
6867 82 jeremybenn
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6868 19 jeremybenn
 
6869
# Same as above, but do not quote variable references.
6870 82 jeremybenn
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6871 19 jeremybenn
 
6872
# Sed substitution to delay expansion of an escaped shell variable in a
6873
# double_quote_subst'ed string.
6874
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6875
 
6876 82 jeremybenn
# Sed substitution to delay expansion of an escaped single quote.
6877
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6878
 
6879 19 jeremybenn
# Sed substitution to avoid accidental globbing in evaled expressions
6880
no_glob_subst='s/\*/\\\*/g'
6881
 
6882
# Global variables:
6883 82 jeremybenn
ofile=libtool
6884 19 jeremybenn
can_build_shared=yes
6885
 
6886
# All known linkers require a `.a' archive for static linking (except MSVC,
6887
# which needs '.lib').
6888
libext=a
6889 82 jeremybenn
 
6890 19 jeremybenn
with_gnu_ld="$lt_cv_prog_gnu_ld"
6891
 
6892
old_CC="$CC"
6893
old_CFLAGS="$CFLAGS"
6894
 
6895
# Set sane defaults for various variables
6896
test -z "$CC" && CC=cc
6897
test -z "$LTCC" && LTCC=$CC
6898
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6899
test -z "$LD" && LD=ld
6900
test -z "$ac_objext" && ac_objext=o
6901
 
6902
for cc_temp in $compiler""; do
6903
  case $cc_temp in
6904
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6905
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6906
    \-*) ;;
6907
    *) break;;
6908
  esac
6909
done
6910 82 jeremybenn
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6911 19 jeremybenn
 
6912
 
6913
# Only perform the check for file, if the check method requires it
6914 82 jeremybenn
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6915 19 jeremybenn
case $deplibs_check_method in
6916
file_magic*)
6917
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6918 101 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6919 82 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6920 101 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6921 82 jeremybenn
  $as_echo_n "(cached) " >&6
6922 19 jeremybenn
else
6923
  case $MAGIC_CMD in
6924
[\\/*] |  ?:[\\/]*)
6925
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6926
  ;;
6927
*)
6928
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6929
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6930
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6931
  for ac_dir in $ac_dummy; do
6932
    IFS="$lt_save_ifs"
6933
    test -z "$ac_dir" && ac_dir=.
6934
    if test -f $ac_dir/${ac_tool_prefix}file; then
6935
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6936
      if test -n "$file_magic_test_file"; then
6937
        case $deplibs_check_method in
6938
        "file_magic "*)
6939
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6940
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6941
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6942
            $EGREP "$file_magic_regex" > /dev/null; then
6943
            :
6944
          else
6945 82 jeremybenn
            cat <<_LT_EOF 1>&2
6946 19 jeremybenn
 
6947
*** Warning: the command libtool uses to detect shared libraries,
6948
*** $file_magic_cmd, produces output that libtool cannot recognize.
6949
*** The result is that libtool may fail to recognize shared libraries
6950
*** as such.  This will affect the creation of libtool libraries that
6951
*** depend on shared libraries, but programs linked with such libtool
6952
*** libraries will work regardless of this problem.  Nevertheless, you
6953
*** may want to report the problem to your system manager and/or to
6954
*** bug-libtool@gnu.org
6955
 
6956 82 jeremybenn
_LT_EOF
6957 19 jeremybenn
          fi ;;
6958
        esac
6959
      fi
6960
      break
6961
    fi
6962
  done
6963
  IFS="$lt_save_ifs"
6964
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6965
  ;;
6966
esac
6967
fi
6968
 
6969
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6970
if test -n "$MAGIC_CMD"; then
6971 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6972 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6973 19 jeremybenn
else
6974 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6975 82 jeremybenn
$as_echo "no" >&6; }
6976 19 jeremybenn
fi
6977
 
6978 82 jeremybenn
 
6979
 
6980
 
6981
 
6982 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
6983
  if test -n "$ac_tool_prefix"; then
6984 101 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for file" >&5
6985 82 jeremybenn
$as_echo_n "checking for file... " >&6; }
6986 101 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6987 82 jeremybenn
  $as_echo_n "(cached) " >&6
6988 19 jeremybenn
else
6989
  case $MAGIC_CMD in
6990
[\\/*] |  ?:[\\/]*)
6991
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6992
  ;;
6993
*)
6994
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6995
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6996
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6997
  for ac_dir in $ac_dummy; do
6998
    IFS="$lt_save_ifs"
6999
    test -z "$ac_dir" && ac_dir=.
7000
    if test -f $ac_dir/file; then
7001
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7002
      if test -n "$file_magic_test_file"; then
7003
        case $deplibs_check_method in
7004
        "file_magic "*)
7005
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7006
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7007
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7008
            $EGREP "$file_magic_regex" > /dev/null; then
7009
            :
7010
          else
7011 82 jeremybenn
            cat <<_LT_EOF 1>&2
7012 19 jeremybenn
 
7013
*** Warning: the command libtool uses to detect shared libraries,
7014
*** $file_magic_cmd, produces output that libtool cannot recognize.
7015
*** The result is that libtool may fail to recognize shared libraries
7016
*** as such.  This will affect the creation of libtool libraries that
7017
*** depend on shared libraries, but programs linked with such libtool
7018
*** libraries will work regardless of this problem.  Nevertheless, you
7019
*** may want to report the problem to your system manager and/or to
7020
*** bug-libtool@gnu.org
7021
 
7022 82 jeremybenn
_LT_EOF
7023 19 jeremybenn
          fi ;;
7024
        esac
7025
      fi
7026
      break
7027
    fi
7028
  done
7029
  IFS="$lt_save_ifs"
7030
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7031
  ;;
7032
esac
7033
fi
7034
 
7035
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7036
if test -n "$MAGIC_CMD"; then
7037 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7038 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
7039 19 jeremybenn
else
7040 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
7041 82 jeremybenn
$as_echo "no" >&6; }
7042 19 jeremybenn
fi
7043
 
7044 82 jeremybenn
 
7045 19 jeremybenn
  else
7046
    MAGIC_CMD=:
7047
  fi
7048
fi
7049
 
7050
  fi
7051
  ;;
7052
esac
7053
 
7054 82 jeremybenn
# Use C for the default configuration in the libtool script
7055 19 jeremybenn
 
7056
lt_save_CC="$CC"
7057
ac_ext=c
7058
ac_cpp='$CPP $CPPFLAGS'
7059
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7062
 
7063
 
7064
# Source file extension for C test sources.
7065
ac_ext=c
7066
 
7067
# Object file extension for compiled C test sources.
7068
objext=o
7069
objext=$objext
7070
 
7071
# Code to be used in simple compile tests
7072
lt_simple_compile_test_code="int some_variable = 0;"
7073
 
7074
# Code to be used in simple link tests
7075
lt_simple_link_test_code='int main(){return(0);}'
7076
 
7077
 
7078 82 jeremybenn
 
7079
 
7080
 
7081
 
7082
 
7083 19 jeremybenn
# If no C compiler was specified, use CC.
7084
LTCC=${LTCC-"$CC"}
7085
 
7086
# If no C compiler flags were specified, use CFLAGS.
7087
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7088
 
7089
# Allow CC to be a program name with arguments.
7090
compiler=$CC
7091
 
7092 82 jeremybenn
# Save the default compiler, since it gets overwritten when the other
7093
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7094
compiler_DEFAULT=$CC
7095 19 jeremybenn
 
7096
# save warnings/boilerplate of simple test code
7097
ac_outfile=conftest.$ac_objext
7098
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7099
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7100
_lt_compiler_boilerplate=`cat conftest.err`
7101 82 jeremybenn
$RM conftest*
7102 19 jeremybenn
 
7103
ac_outfile=conftest.$ac_objext
7104
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7105
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7106
_lt_linker_boilerplate=`cat conftest.err`
7107 82 jeremybenn
$RM -r conftest*
7108 19 jeremybenn
 
7109
 
7110 82 jeremybenn
## CAVEAT EMPTOR:
7111
## There is no encapsulation within the following macros, do not change
7112
## the running order or otherwise move them around unless you know exactly
7113
## what you are doing...
7114
if test -n "$compiler"; then
7115 19 jeremybenn
 
7116
lt_prog_compiler_no_builtin_flag=
7117
 
7118
if test "$GCC" = yes; then
7119
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7120
 
7121 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7122 82 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7123 101 jeremybenn
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7124 82 jeremybenn
  $as_echo_n "(cached) " >&6
7125 19 jeremybenn
else
7126
  lt_cv_prog_compiler_rtti_exceptions=no
7127 82 jeremybenn
   ac_outfile=conftest.$ac_objext
7128 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7129
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7130
   # Insert the option either (1) after the last *FLAGS variable, or
7131
   # (2) before a word containing "conftest.", or (3) at the end.
7132
   # Note that $ac_compile itself does not contain backslashes and begins
7133
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7134
   # The option is referenced via a variable to avoid confusing sed.
7135
   lt_compile=`echo "$ac_compile" | $SED \
7136
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7137
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7138
   -e 's:$: $lt_compiler_flag:'`
7139 101 jeremybenn
   (eval echo "\"\$as_me:7139: $lt_compile\"" >&5)
7140 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7141
   ac_status=$?
7142
   cat conftest.err >&5
7143 101 jeremybenn
   echo "$as_me:7143: \$? = $ac_status" >&5
7144 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7145
     # The compiler can only warn and ignore the option if not recognized
7146
     # So say no if there are warnings other than the usual output.
7147 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7148 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7149
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7150
       lt_cv_prog_compiler_rtti_exceptions=yes
7151
     fi
7152
   fi
7153 82 jeremybenn
   $RM conftest*
7154 19 jeremybenn
 
7155
fi
7156 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7157 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7158 19 jeremybenn
 
7159
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7160
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7161
else
7162
    :
7163
fi
7164
 
7165
fi
7166
 
7167 82 jeremybenn
 
7168
 
7169
 
7170
 
7171
 
7172
  lt_prog_compiler_wl=
7173 19 jeremybenn
lt_prog_compiler_pic=
7174
lt_prog_compiler_static=
7175
 
7176 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7177 82 jeremybenn
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7178 19 jeremybenn
 
7179
  if test "$GCC" = yes; then
7180
    lt_prog_compiler_wl='-Wl,'
7181
    lt_prog_compiler_static='-static'
7182
 
7183
    case $host_os in
7184
      aix*)
7185
      # All AIX code is PIC.
7186
      if test "$host_cpu" = ia64; then
7187
        # AIX 5 now supports IA64 processor
7188
        lt_prog_compiler_static='-Bstatic'
7189
      fi
7190
      ;;
7191
 
7192
    amigaos*)
7193 82 jeremybenn
      case $host_cpu in
7194
      powerpc)
7195
            # see comment about AmigaOS4 .so support
7196
            lt_prog_compiler_pic='-fPIC'
7197
        ;;
7198
      m68k)
7199
            # FIXME: we need at least 68020 code to build shared libraries, but
7200
            # adding the `-m68020' flag to GCC prevents building anything better,
7201
            # like `-m68040'.
7202
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7203
        ;;
7204
      esac
7205 19 jeremybenn
      ;;
7206
 
7207
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7208
      # PIC is the default for these OSes.
7209
      ;;
7210
 
7211 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7212 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7213
      # built for inclusion in a dll (and should export symbols for example).
7214
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7215
      # (--disable-auto-import) libraries
7216
      lt_prog_compiler_pic='-DDLL_EXPORT'
7217
      ;;
7218
 
7219
    darwin* | rhapsody*)
7220
      # PIC is the default on this platform
7221
      # Common symbols not allowed in MH_DYLIB files
7222
      lt_prog_compiler_pic='-fno-common'
7223
      ;;
7224
 
7225 82 jeremybenn
    hpux*)
7226
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7227
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7228
      # sets the default TLS model and affects inlining.
7229
      case $host_cpu in
7230
      hppa*64*)
7231
        # +Z the default
7232
        ;;
7233
      *)
7234
        lt_prog_compiler_pic='-fPIC'
7235
        ;;
7236
      esac
7237
      ;;
7238
 
7239 19 jeremybenn
    interix[3-9]*)
7240
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7241
      # Instead, we relocate shared libraries at runtime.
7242
      ;;
7243
 
7244
    msdosdjgpp*)
7245
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7246
      # on systems that don't support them.
7247
      lt_prog_compiler_can_build_shared=no
7248
      enable_shared=no
7249
      ;;
7250
 
7251 82 jeremybenn
    *nto* | *qnx*)
7252
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7253
      # it will coredump.
7254
      lt_prog_compiler_pic='-fPIC -shared'
7255
      ;;
7256
 
7257 19 jeremybenn
    sysv4*MP*)
7258
      if test -d /usr/nec; then
7259
        lt_prog_compiler_pic=-Kconform_pic
7260
      fi
7261
      ;;
7262
 
7263
    *)
7264
      lt_prog_compiler_pic='-fPIC'
7265
      ;;
7266
    esac
7267
  else
7268
    # PORTME Check for flag to pass linker flags through the system compiler.
7269
    case $host_os in
7270
    aix*)
7271
      lt_prog_compiler_wl='-Wl,'
7272
      if test "$host_cpu" = ia64; then
7273
        # AIX 5 now supports IA64 processor
7274
        lt_prog_compiler_static='-Bstatic'
7275
      else
7276
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7277
      fi
7278
      ;;
7279
 
7280 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7281 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7282
      # built for inclusion in a dll (and should export symbols for example).
7283
      lt_prog_compiler_pic='-DDLL_EXPORT'
7284
      ;;
7285
 
7286
    hpux9* | hpux10* | hpux11*)
7287
      lt_prog_compiler_wl='-Wl,'
7288
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7289
      # not for PA HP-UX.
7290
      case $host_cpu in
7291
      hppa*64*|ia64*)
7292
        # +Z the default
7293
        ;;
7294
      *)
7295
        lt_prog_compiler_pic='+Z'
7296
        ;;
7297
      esac
7298
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7299
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7300
      ;;
7301
 
7302
    irix5* | irix6* | nonstopux*)
7303
      lt_prog_compiler_wl='-Wl,'
7304
      # PIC (with -KPIC) is the default.
7305
      lt_prog_compiler_static='-non_shared'
7306
      ;;
7307
 
7308
    linux* | k*bsd*-gnu)
7309
      case $cc_basename in
7310 82 jeremybenn
      # old Intel for x86_64 which still supported -KPIC.
7311
      ecc*)
7312 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7313
        lt_prog_compiler_pic='-KPIC'
7314
        lt_prog_compiler_static='-static'
7315
        ;;
7316 82 jeremybenn
      # icc used to be incompatible with GCC.
7317
      # ICC 10 doesn't accept -KPIC any more.
7318
      icc* | ifort*)
7319
        lt_prog_compiler_wl='-Wl,'
7320
        lt_prog_compiler_pic='-fPIC'
7321
        lt_prog_compiler_static='-static'
7322
        ;;
7323
      # Lahey Fortran 8.1.
7324
      lf95*)
7325
        lt_prog_compiler_wl='-Wl,'
7326
        lt_prog_compiler_pic='--shared'
7327
        lt_prog_compiler_static='--static'
7328
        ;;
7329 19 jeremybenn
      pgcc* | pgf77* | pgf90* | pgf95*)
7330
        # Portland Group compilers (*not* the Pentium gcc compiler,
7331
        # which looks to be a dead project)
7332
        lt_prog_compiler_wl='-Wl,'
7333
        lt_prog_compiler_pic='-fpic'
7334
        lt_prog_compiler_static='-Bstatic'
7335
        ;;
7336
      ccc*)
7337
        lt_prog_compiler_wl='-Wl,'
7338
        # All Alpha code is PIC.
7339
        lt_prog_compiler_static='-non_shared'
7340
        ;;
7341 82 jeremybenn
      xl*)
7342
        # IBM XL C 8.0/Fortran 10.1 on PPC
7343
        lt_prog_compiler_wl='-Wl,'
7344
        lt_prog_compiler_pic='-qpic'
7345
        lt_prog_compiler_static='-qstaticlink'
7346
        ;;
7347 19 jeremybenn
      *)
7348 82 jeremybenn
        case `$CC -V 2>&1 | sed 5q` in
7349 19 jeremybenn
        *Sun\ C*)
7350
          # Sun C 5.9
7351
          lt_prog_compiler_pic='-KPIC'
7352
          lt_prog_compiler_static='-Bstatic'
7353
          lt_prog_compiler_wl='-Wl,'
7354
          ;;
7355
        *Sun\ F*)
7356
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7357
          lt_prog_compiler_pic='-KPIC'
7358
          lt_prog_compiler_static='-Bstatic'
7359
          lt_prog_compiler_wl=''
7360
          ;;
7361
        esac
7362
        ;;
7363
      esac
7364
      ;;
7365
 
7366 82 jeremybenn
    newsos6)
7367
      lt_prog_compiler_pic='-KPIC'
7368
      lt_prog_compiler_static='-Bstatic'
7369
      ;;
7370
 
7371
    *nto* | *qnx*)
7372
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7373
      # it will coredump.
7374
      lt_prog_compiler_pic='-fPIC -shared'
7375
      ;;
7376
 
7377 19 jeremybenn
    osf3* | osf4* | osf5*)
7378
      lt_prog_compiler_wl='-Wl,'
7379
      # All OSF/1 code is PIC.
7380
      lt_prog_compiler_static='-non_shared'
7381
      ;;
7382
 
7383
    rdos*)
7384
      lt_prog_compiler_static='-non_shared'
7385
      ;;
7386
 
7387
    solaris*)
7388
      lt_prog_compiler_pic='-KPIC'
7389
      lt_prog_compiler_static='-Bstatic'
7390
      case $cc_basename in
7391
      f77* | f90* | f95*)
7392
        lt_prog_compiler_wl='-Qoption ld ';;
7393
      *)
7394
        lt_prog_compiler_wl='-Wl,';;
7395
      esac
7396
      ;;
7397
 
7398
    sunos4*)
7399
      lt_prog_compiler_wl='-Qoption ld '
7400
      lt_prog_compiler_pic='-PIC'
7401
      lt_prog_compiler_static='-Bstatic'
7402
      ;;
7403
 
7404
    sysv4 | sysv4.2uw2* | sysv4.3*)
7405
      lt_prog_compiler_wl='-Wl,'
7406
      lt_prog_compiler_pic='-KPIC'
7407
      lt_prog_compiler_static='-Bstatic'
7408
      ;;
7409
 
7410
    sysv4*MP*)
7411
      if test -d /usr/nec ;then
7412
        lt_prog_compiler_pic='-Kconform_pic'
7413
        lt_prog_compiler_static='-Bstatic'
7414
      fi
7415
      ;;
7416
 
7417
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7418
      lt_prog_compiler_wl='-Wl,'
7419
      lt_prog_compiler_pic='-KPIC'
7420
      lt_prog_compiler_static='-Bstatic'
7421
      ;;
7422
 
7423
    unicos*)
7424
      lt_prog_compiler_wl='-Wl,'
7425
      lt_prog_compiler_can_build_shared=no
7426
      ;;
7427
 
7428
    uts4*)
7429
      lt_prog_compiler_pic='-pic'
7430
      lt_prog_compiler_static='-Bstatic'
7431
      ;;
7432
 
7433
    *)
7434
      lt_prog_compiler_can_build_shared=no
7435
      ;;
7436
    esac
7437
  fi
7438
 
7439 82 jeremybenn
case $host_os in
7440
  # For platforms which do not support PIC, -DPIC is meaningless:
7441
  *djgpp*)
7442
    lt_prog_compiler_pic=
7443
    ;;
7444
  *)
7445
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7446
    ;;
7447
esac
7448 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7449 82 jeremybenn
$as_echo "$lt_prog_compiler_pic" >&6; }
7450 19 jeremybenn
 
7451 82 jeremybenn
 
7452
 
7453
 
7454
 
7455
 
7456 19 jeremybenn
#
7457
# Check to make sure the PIC flag actually works.
7458
#
7459
if test -n "$lt_prog_compiler_pic"; then
7460 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7461 82 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7462 101 jeremybenn
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7463 82 jeremybenn
  $as_echo_n "(cached) " >&6
7464 19 jeremybenn
else
7465 82 jeremybenn
  lt_cv_prog_compiler_pic_works=no
7466
   ac_outfile=conftest.$ac_objext
7467 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7468
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7469
   # Insert the option either (1) after the last *FLAGS variable, or
7470
   # (2) before a word containing "conftest.", or (3) at the end.
7471
   # Note that $ac_compile itself does not contain backslashes and begins
7472
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7473
   # The option is referenced via a variable to avoid confusing sed.
7474
   lt_compile=`echo "$ac_compile" | $SED \
7475
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7476
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7477
   -e 's:$: $lt_compiler_flag:'`
7478 101 jeremybenn
   (eval echo "\"\$as_me:7478: $lt_compile\"" >&5)
7479 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7480
   ac_status=$?
7481
   cat conftest.err >&5
7482 101 jeremybenn
   echo "$as_me:7482: \$? = $ac_status" >&5
7483 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7484
     # The compiler can only warn and ignore the option if not recognized
7485
     # So say no if there are warnings other than the usual output.
7486 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7487 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7488
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7489 82 jeremybenn
       lt_cv_prog_compiler_pic_works=yes
7490 19 jeremybenn
     fi
7491
   fi
7492 82 jeremybenn
   $RM conftest*
7493 19 jeremybenn
 
7494
fi
7495 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7496 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7497 19 jeremybenn
 
7498 82 jeremybenn
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7499 19 jeremybenn
    case $lt_prog_compiler_pic in
7500
     "" | " "*) ;;
7501
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7502
     esac
7503
else
7504
    lt_prog_compiler_pic=
7505
     lt_prog_compiler_can_build_shared=no
7506
fi
7507
 
7508
fi
7509
 
7510 82 jeremybenn
 
7511
 
7512
 
7513
 
7514
 
7515 19 jeremybenn
#
7516
# Check to make sure the static flag actually works.
7517
#
7518
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7519 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7520 82 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7521 101 jeremybenn
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7522 82 jeremybenn
  $as_echo_n "(cached) " >&6
7523 19 jeremybenn
else
7524 82 jeremybenn
  lt_cv_prog_compiler_static_works=no
7525 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7526
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7527
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7528
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7529
     # The linker can only warn and ignore the option if not recognized
7530
     # So say no if there are warnings
7531
     if test -s conftest.err; then
7532
       # Append any errors to the config.log.
7533
       cat conftest.err 1>&5
7534 82 jeremybenn
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7535 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7536
       if diff conftest.exp conftest.er2 >/dev/null; then
7537 82 jeremybenn
         lt_cv_prog_compiler_static_works=yes
7538 19 jeremybenn
       fi
7539
     else
7540 82 jeremybenn
       lt_cv_prog_compiler_static_works=yes
7541 19 jeremybenn
     fi
7542
   fi
7543 82 jeremybenn
   $RM -r conftest*
7544 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7545
 
7546
fi
7547 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7548 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7549 19 jeremybenn
 
7550 82 jeremybenn
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7551 19 jeremybenn
    :
7552
else
7553
    lt_prog_compiler_static=
7554
fi
7555
 
7556
 
7557 82 jeremybenn
 
7558
 
7559
 
7560
 
7561
 
7562 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7563 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7564 101 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7565 82 jeremybenn
  $as_echo_n "(cached) " >&6
7566 19 jeremybenn
else
7567
  lt_cv_prog_compiler_c_o=no
7568 82 jeremybenn
   $RM -r conftest 2>/dev/null
7569 19 jeremybenn
   mkdir conftest
7570
   cd conftest
7571
   mkdir out
7572
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7573
 
7574
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7575
   # Insert the option either (1) after the last *FLAGS variable, or
7576
   # (2) before a word containing "conftest.", or (3) at the end.
7577
   # Note that $ac_compile itself does not contain backslashes and begins
7578
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7579
   lt_compile=`echo "$ac_compile" | $SED \
7580
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7581
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7582
   -e 's:$: $lt_compiler_flag:'`
7583 101 jeremybenn
   (eval echo "\"\$as_me:7583: $lt_compile\"" >&5)
7584 19 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7585
   ac_status=$?
7586
   cat out/conftest.err >&5
7587 101 jeremybenn
   echo "$as_me:7587: \$? = $ac_status" >&5
7588 19 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7589
   then
7590
     # The compiler can only warn and ignore the option if not recognized
7591
     # So say no if there are warnings
7592 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7593 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7594
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7595
       lt_cv_prog_compiler_c_o=yes
7596
     fi
7597
   fi
7598
   chmod u+w . 2>&5
7599 82 jeremybenn
   $RM conftest*
7600 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
7601
   # template instantiation
7602 82 jeremybenn
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7603
   $RM out/* && rmdir out
7604 19 jeremybenn
   cd ..
7605 82 jeremybenn
   $RM -r conftest
7606
   $RM conftest*
7607 19 jeremybenn
 
7608
fi
7609 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7610 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7611 19 jeremybenn
 
7612
 
7613 82 jeremybenn
 
7614
 
7615
 
7616
 
7617 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7618 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7619 101 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7620 82 jeremybenn
  $as_echo_n "(cached) " >&6
7621
else
7622
  lt_cv_prog_compiler_c_o=no
7623
   $RM -r conftest 2>/dev/null
7624
   mkdir conftest
7625
   cd conftest
7626
   mkdir out
7627
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7628
 
7629
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7630
   # Insert the option either (1) after the last *FLAGS variable, or
7631
   # (2) before a word containing "conftest.", or (3) at the end.
7632
   # Note that $ac_compile itself does not contain backslashes and begins
7633
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7634
   lt_compile=`echo "$ac_compile" | $SED \
7635
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7636
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7637
   -e 's:$: $lt_compiler_flag:'`
7638 101 jeremybenn
   (eval echo "\"\$as_me:7638: $lt_compile\"" >&5)
7639 82 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7640
   ac_status=$?
7641
   cat out/conftest.err >&5
7642 101 jeremybenn
   echo "$as_me:7642: \$? = $ac_status" >&5
7643 82 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7644
   then
7645
     # The compiler can only warn and ignore the option if not recognized
7646
     # So say no if there are warnings
7647
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7648
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7649
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7650
       lt_cv_prog_compiler_c_o=yes
7651
     fi
7652
   fi
7653
   chmod u+w . 2>&5
7654
   $RM conftest*
7655
   # SGI C++ compiler will create directory out/ii_files/ for
7656
   # template instantiation
7657
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7658
   $RM out/* && rmdir out
7659
   cd ..
7660
   $RM -r conftest
7661
   $RM conftest*
7662
 
7663
fi
7664 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7665 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7666
 
7667
 
7668
 
7669
 
7670 19 jeremybenn
hard_links="nottested"
7671
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7672
  # do not overwrite the value of need_locks provided by the user
7673 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7674 82 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
7675 19 jeremybenn
  hard_links=yes
7676 82 jeremybenn
  $RM conftest*
7677 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7678
  touch conftest.a
7679
  ln conftest.a conftest.b 2>&5 || hard_links=no
7680
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7681 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7682 82 jeremybenn
$as_echo "$hard_links" >&6; }
7683 19 jeremybenn
  if test "$hard_links" = no; then
7684 101 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7685 82 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7686 19 jeremybenn
    need_locks=warn
7687
  fi
7688
else
7689
  need_locks=no
7690
fi
7691
 
7692
 
7693 82 jeremybenn
 
7694
 
7695
 
7696
 
7697 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7698 82 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7699
 
7700 19 jeremybenn
  runpath_var=
7701
  allow_undefined_flag=
7702 82 jeremybenn
  always_export_symbols=no
7703 19 jeremybenn
  archive_cmds=
7704
  archive_expsym_cmds=
7705 82 jeremybenn
  compiler_needs_object=no
7706
  enable_shared_with_static_runtimes=no
7707 19 jeremybenn
  export_dynamic_flag_spec=
7708 82 jeremybenn
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7709
  hardcode_automatic=no
7710
  hardcode_direct=no
7711
  hardcode_direct_absolute=no
7712 19 jeremybenn
  hardcode_libdir_flag_spec=
7713
  hardcode_libdir_flag_spec_ld=
7714
  hardcode_libdir_separator=
7715
  hardcode_minus_L=no
7716
  hardcode_shlibpath_var=unsupported
7717 82 jeremybenn
  inherit_rpath=no
7718 19 jeremybenn
  link_all_deplibs=unknown
7719
  module_cmds=
7720
  module_expsym_cmds=
7721 82 jeremybenn
  old_archive_from_new_cmds=
7722
  old_archive_from_expsyms_cmds=
7723
  thread_safe_flag_spec=
7724
  whole_archive_flag_spec=
7725 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
7726
  # included in the symbol list
7727
  include_expsyms=
7728
  # exclude_expsyms can be an extended regexp of symbols to exclude
7729
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7730
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7731
  # as well as any symbol that contains `d'.
7732 82 jeremybenn
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7733 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7734
  # platforms (ab)use it in PIC code, but their linkers get confused if
7735
  # the symbol is explicitly referenced.  Since portable code cannot
7736
  # rely on this symbol name, it's probably fine to never include it in
7737
  # preloaded symbol tables.
7738 82 jeremybenn
  # Exclude shared library initialization/finalization symbols.
7739 19 jeremybenn
  extract_expsyms_cmds=
7740
 
7741
  case $host_os in
7742 82 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
7743 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7744
    # When not using gcc, we currently assume that we are using
7745
    # Microsoft Visual C++.
7746
    if test "$GCC" != yes; then
7747
      with_gnu_ld=no
7748
    fi
7749
    ;;
7750
  interix*)
7751
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7752
    with_gnu_ld=yes
7753
    ;;
7754
  openbsd*)
7755
    with_gnu_ld=no
7756
    ;;
7757 93 jeremybenn
  linux* | k*bsd*-gnu)
7758
    link_all_deplibs=no
7759
    ;;
7760 19 jeremybenn
  esac
7761
 
7762
  ld_shlibs=yes
7763
  if test "$with_gnu_ld" = yes; then
7764
    # If archive_cmds runs LD, not CC, wlarc should be empty
7765
    wlarc='${wl}'
7766
 
7767
    # Set some defaults for GNU ld with shared library support. These
7768
    # are reset later if shared libraries are not supported. Putting them
7769
    # here allows them to be overridden if necessary.
7770
    runpath_var=LD_RUN_PATH
7771 82 jeremybenn
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7772 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
7773
    # ancient GNU ld didn't support --whole-archive et. al.
7774 82 jeremybenn
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7775
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7776
    else
7777
      whole_archive_flag_spec=
7778 19 jeremybenn
    fi
7779
    supports_anon_versioning=no
7780 82 jeremybenn
    case `$LD -v 2>&1` in
7781 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7782
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7783
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7784
      *\ 2.11.*) ;; # other 2.11 versions
7785
      *) supports_anon_versioning=yes ;;
7786
    esac
7787
 
7788
    # See if GNU ld supports shared libraries.
7789
    case $host_os in
7790 82 jeremybenn
    aix[3-9]*)
7791 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
7792
      if test "$host_cpu" != ia64; then
7793
        ld_shlibs=no
7794 82 jeremybenn
        cat <<_LT_EOF 1>&2
7795 19 jeremybenn
 
7796
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7797
*** to be unable to reliably create shared libraries on AIX.
7798
*** Therefore, libtool is disabling shared libraries support.  If you
7799
*** really care for shared libraries, you may want to modify your PATH
7800
*** so that a non-GNU linker is found, and then restart.
7801
 
7802 82 jeremybenn
_LT_EOF
7803 19 jeremybenn
      fi
7804
      ;;
7805
 
7806
    amigaos*)
7807 82 jeremybenn
      case $host_cpu in
7808
      powerpc)
7809
            # see comment about AmigaOS4 .so support
7810
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7811
            archive_expsym_cmds=''
7812
        ;;
7813
      m68k)
7814
            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)'
7815
            hardcode_libdir_flag_spec='-L$libdir'
7816
            hardcode_minus_L=yes
7817
        ;;
7818
      esac
7819 19 jeremybenn
      ;;
7820
 
7821
    beos*)
7822 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7823 19 jeremybenn
        allow_undefined_flag=unsupported
7824
        # Joseph Beckenbach  says some releases of gcc
7825
        # support --undefined.  This deserves some investigation.  FIXME
7826
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7827
      else
7828
        ld_shlibs=no
7829
      fi
7830
      ;;
7831
 
7832 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
7833
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7834 19 jeremybenn
      # as there is no search path for DLLs.
7835
      hardcode_libdir_flag_spec='-L$libdir'
7836
      allow_undefined_flag=unsupported
7837
      always_export_symbols=no
7838
      enable_shared_with_static_runtimes=yes
7839 82 jeremybenn
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7840 19 jeremybenn
 
7841 82 jeremybenn
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7842 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7843
        # If the export-symbols file already is a .def file (1st line
7844
        # is EXPORTS), use it as is; otherwise, prepend...
7845
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7846
          cp $export_symbols $output_objdir/$soname.def;
7847
        else
7848
          echo EXPORTS > $output_objdir/$soname.def;
7849
          cat $export_symbols >> $output_objdir/$soname.def;
7850
        fi~
7851
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7852
      else
7853
        ld_shlibs=no
7854
      fi
7855
      ;;
7856
 
7857
    interix[3-9]*)
7858
      hardcode_direct=no
7859
      hardcode_shlibpath_var=no
7860
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7861
      export_dynamic_flag_spec='${wl}-E'
7862
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7863
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7864
      # default) and relocated if they conflict, which is a slow very memory
7865
      # consuming and fragmenting process.  To avoid this, we pick a random,
7866
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7867
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7868
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7869
      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'
7870
      ;;
7871
 
7872 82 jeremybenn
    gnu* | linux* | tpf* | k*bsd*-gnu)
7873
      tmp_diet=no
7874
      if test "$host_os" = linux-dietlibc; then
7875
        case $cc_basename in
7876
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7877
        esac
7878
      fi
7879
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7880
         && test "$tmp_diet" = no
7881
      then
7882 19 jeremybenn
        tmp_addflag=
7883 82 jeremybenn
        tmp_sharedflag='-shared'
7884 19 jeremybenn
        case $cc_basename,$host_cpu in
7885 82 jeremybenn
        pgcc*)                          # Portland Group C compiler
7886
          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'
7887 19 jeremybenn
          tmp_addflag=' $pic_flag'
7888
          ;;
7889
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7890 82 jeremybenn
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7891 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7892 82 jeremybenn
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7893 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
7894
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7895
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7896
        ifc* | ifort*)                  # Intel Fortran compiler
7897
          tmp_addflag=' -nofor_main' ;;
7898 82 jeremybenn
        lf95*)                          # Lahey Fortran 8.1
7899
          whole_archive_flag_spec=
7900
          tmp_sharedflag='--shared' ;;
7901
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7902
          tmp_sharedflag='-qmkshrobj'
7903
          tmp_addflag= ;;
7904 19 jeremybenn
        esac
7905
        case `$CC -V 2>&1 | sed 5q` in
7906
        *Sun\ C*)                       # Sun C 5.9
7907 82 jeremybenn
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7908
          compiler_needs_object=yes
7909 19 jeremybenn
          tmp_sharedflag='-G' ;;
7910
        *Sun\ F*)                       # Sun Fortran 8.3
7911
          tmp_sharedflag='-G' ;;
7912
        esac
7913
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7914
 
7915 82 jeremybenn
        if test "x$supports_anon_versioning" = xyes; then
7916
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7917
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7918
            echo "local: *; };" >> $output_objdir/$libname.ver~
7919
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7920
        fi
7921
 
7922
        case $cc_basename in
7923
        xlf*)
7924
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7925
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7926
          hardcode_libdir_flag_spec=
7927
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7928
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7929
          if test "x$supports_anon_versioning" = xyes; then
7930
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7931
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7932
              echo "local: *; };" >> $output_objdir/$libname.ver~
7933
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7934
          fi
7935
          ;;
7936
        esac
7937 19 jeremybenn
      else
7938 82 jeremybenn
        ld_shlibs=no
7939 19 jeremybenn
      fi
7940
      ;;
7941
 
7942 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7943 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7944 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7945
        wlarc=
7946
      else
7947
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7948
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7949
      fi
7950
      ;;
7951
 
7952
    solaris*)
7953 82 jeremybenn
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7954 19 jeremybenn
        ld_shlibs=no
7955 82 jeremybenn
        cat <<_LT_EOF 1>&2
7956 19 jeremybenn
 
7957
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7958
*** create shared libraries on Solaris systems.  Therefore, libtool
7959
*** is disabling shared libraries support.  We urge you to upgrade GNU
7960
*** binutils to release 2.9.1 or newer.  Another option is to modify
7961
*** your PATH or compiler configuration so that the native linker is
7962
*** used, and then restart.
7963
 
7964 82 jeremybenn
_LT_EOF
7965
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7966 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7967
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7968
      else
7969
        ld_shlibs=no
7970
      fi
7971
      ;;
7972
 
7973
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7974
      case `$LD -v 2>&1` in
7975
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7976
        ld_shlibs=no
7977
        cat <<_LT_EOF 1>&2
7978
 
7979
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7980
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7981
*** is disabling shared libraries support.  We urge you to upgrade GNU
7982
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7983
*** your PATH or compiler configuration so that the native linker is
7984
*** used, and then restart.
7985
 
7986
_LT_EOF
7987
        ;;
7988
        *)
7989 82 jeremybenn
          # For security reasons, it is highly recommended that you always
7990
          # use absolute paths for naming shared libraries, and exclude the
7991
          # DT_RUNPATH tag from executables and libraries.  But doing so
7992
          # requires that you compile everything twice, which is a pain.
7993
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7994
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7995
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7996
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7997 19 jeremybenn
          else
7998
            ld_shlibs=no
7999
          fi
8000
        ;;
8001
      esac
8002
      ;;
8003
 
8004
    sunos4*)
8005
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8006
      wlarc=
8007
      hardcode_direct=yes
8008
      hardcode_shlibpath_var=no
8009
      ;;
8010
 
8011
    *)
8012 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8013 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8014
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8015
      else
8016
        ld_shlibs=no
8017
      fi
8018
      ;;
8019
    esac
8020
 
8021
    if test "$ld_shlibs" = no; then
8022
      runpath_var=
8023
      hardcode_libdir_flag_spec=
8024
      export_dynamic_flag_spec=
8025
      whole_archive_flag_spec=
8026
    fi
8027
  else
8028
    # PORTME fill in a description of your system's linker (not GNU ld)
8029
    case $host_os in
8030
    aix3*)
8031
      allow_undefined_flag=unsupported
8032
      always_export_symbols=yes
8033
      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'
8034
      # Note: this linker hardcodes the directories in LIBPATH if there
8035
      # are no directories specified by -L.
8036
      hardcode_minus_L=yes
8037
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8038
        # Neither direct hardcoding nor static linking is supported with a
8039
        # broken collect2.
8040
        hardcode_direct=unsupported
8041
      fi
8042
      ;;
8043
 
8044 82 jeremybenn
    aix[4-9]*)
8045 19 jeremybenn
      if test "$host_cpu" = ia64; then
8046
        # On IA64, the linker does run time linking by default, so we don't
8047
        # have to do anything special.
8048
        aix_use_runtimelinking=no
8049
        exp_sym_flag='-Bexport'
8050
        no_entry_flag=""
8051
      else
8052
        # If we're using GNU nm, then we don't want the "-C" option.
8053
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8054 82 jeremybenn
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8055
          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'
8056 19 jeremybenn
        else
8057 82 jeremybenn
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8058 19 jeremybenn
        fi
8059
        aix_use_runtimelinking=no
8060
 
8061
        # Test if we are trying to use run time linking or normal
8062
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8063
        # need to do runtime linking.
8064 82 jeremybenn
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8065 19 jeremybenn
          for ld_flag in $LDFLAGS; do
8066 82 jeremybenn
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8067
            aix_use_runtimelinking=yes
8068
            break
8069
          fi
8070 19 jeremybenn
          done
8071
          ;;
8072
        esac
8073
 
8074
        exp_sym_flag='-bexport'
8075
        no_entry_flag='-bnoentry'
8076
      fi
8077
 
8078
      # When large executables or shared objects are built, AIX ld can
8079
      # have problems creating the table of contents.  If linking a library
8080
      # or program results in "error TOC overflow" add -mminimal-toc to
8081
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8082
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8083
 
8084
      archive_cmds=''
8085
      hardcode_direct=yes
8086 82 jeremybenn
      hardcode_direct_absolute=yes
8087 19 jeremybenn
      hardcode_libdir_separator=':'
8088
      link_all_deplibs=yes
8089 82 jeremybenn
      file_list_spec='${wl}-f,'
8090 19 jeremybenn
 
8091
      if test "$GCC" = yes; then
8092
        case $host_os in aix4.[012]|aix4.[012].*)
8093
        # We only want to do this on AIX 4.2 and lower, the check
8094
        # below for broken collect2 doesn't work under 4.3+
8095
          collect2name=`${CC} -print-prog-name=collect2`
8096 82 jeremybenn
          if test -f "$collect2name" &&
8097
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8098 19 jeremybenn
          then
8099 82 jeremybenn
          # We have reworked collect2
8100
          :
8101 19 jeremybenn
          else
8102 82 jeremybenn
          # We have old collect2
8103
          hardcode_direct=unsupported
8104
          # It fails to find uninstalled libraries when the uninstalled
8105
          # path is not listed in the libpath.  Setting hardcode_minus_L
8106
          # to unsupported forces relinking
8107
          hardcode_minus_L=yes
8108
          hardcode_libdir_flag_spec='-L$libdir'
8109
          hardcode_libdir_separator=
8110 19 jeremybenn
          fi
8111
          ;;
8112
        esac
8113
        shared_flag='-shared'
8114
        if test "$aix_use_runtimelinking" = yes; then
8115
          shared_flag="$shared_flag "'${wl}-G'
8116
        fi
8117 93 jeremybenn
        link_all_deplibs=no
8118 19 jeremybenn
      else
8119
        # not using gcc
8120
        if test "$host_cpu" = ia64; then
8121 82 jeremybenn
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8122
        # chokes on -Wl,-G. The following line is correct:
8123 19 jeremybenn
          shared_flag='-G'
8124
        else
8125
          if test "$aix_use_runtimelinking" = yes; then
8126
            shared_flag='${wl}-G'
8127
          else
8128
            shared_flag='${wl}-bM:SRE'
8129
          fi
8130
        fi
8131
      fi
8132
 
8133 82 jeremybenn
      export_dynamic_flag_spec='${wl}-bexpall'
8134 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
8135
      # underscore (_), so it is better to generate a list of symbols to export.
8136
      always_export_symbols=yes
8137
      if test "$aix_use_runtimelinking" = yes; then
8138
        # Warning - without using the other runtime loading flags (-brtl),
8139
        # -berok will link without error, but may produce a broken library.
8140
        allow_undefined_flag='-berok'
8141 82 jeremybenn
        # Determine the default libpath from the value encoded in an
8142
        # empty executable.
8143 101 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
8144
/* confdefs.h.  */
8145
_ACEOF
8146
cat confdefs.h >>conftest.$ac_ext
8147
cat >>conftest.$ac_ext <<_ACEOF
8148 19 jeremybenn
/* end confdefs.h.  */
8149
 
8150
int
8151
main ()
8152
{
8153
 
8154
  ;
8155
  return 0;
8156
}
8157
_ACEOF
8158 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
8159
if { (ac_try="$ac_link"
8160
case "(($ac_try" in
8161
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162
  *) ac_try_echo=$ac_try;;
8163
esac
8164
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8165
$as_echo "$ac_try_echo") >&5
8166
  (eval "$ac_link") 2>conftest.er1
8167
  ac_status=$?
8168
  grep -v '^ *+' conftest.er1 >conftest.err
8169
  rm -f conftest.er1
8170
  cat conftest.err >&5
8171
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172
  (exit $ac_status); } && {
8173
         test -z "$ac_c_werror_flag" ||
8174
         test ! -s conftest.err
8175
       } && test -s conftest$ac_exeext && {
8176
         test "$cross_compiling" = yes ||
8177
         $as_test_x conftest$ac_exeext
8178
       }; then
8179 19 jeremybenn
 
8180
lt_aix_libpath_sed='
8181
    /Import File Strings/,/^$/ {
8182
        /^0/ {
8183
            s/^0  *\(.*\)$/\1/
8184
            p
8185
        }
8186
    }'
8187
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8188
# Check for a 64-bit object if we didn't find anything.
8189
if test -z "$aix_libpath"; then
8190
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8191
fi
8192 101 jeremybenn
else
8193
  $as_echo "$as_me: failed program was:" >&5
8194
sed 's/^/| /' conftest.$ac_ext >&5
8195
 
8196
 
8197 19 jeremybenn
fi
8198 101 jeremybenn
 
8199
rm -rf conftest.dSYM
8200
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8201
      conftest$ac_exeext conftest.$ac_ext
8202 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8203
 
8204 82 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8205
        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"
8206
      else
8207 19 jeremybenn
        if test "$host_cpu" = ia64; then
8208
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8209
          allow_undefined_flag="-z nodefs"
8210
          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"
8211
        else
8212 82 jeremybenn
         # Determine the default libpath from the value encoded in an
8213
         # empty executable.
8214 101 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
8215
/* confdefs.h.  */
8216
_ACEOF
8217
cat confdefs.h >>conftest.$ac_ext
8218
cat >>conftest.$ac_ext <<_ACEOF
8219 19 jeremybenn
/* end confdefs.h.  */
8220
 
8221
int
8222
main ()
8223
{
8224
 
8225
  ;
8226
  return 0;
8227
}
8228
_ACEOF
8229 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
8230
if { (ac_try="$ac_link"
8231
case "(($ac_try" in
8232
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233
  *) ac_try_echo=$ac_try;;
8234
esac
8235
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8236
$as_echo "$ac_try_echo") >&5
8237
  (eval "$ac_link") 2>conftest.er1
8238
  ac_status=$?
8239
  grep -v '^ *+' conftest.er1 >conftest.err
8240
  rm -f conftest.er1
8241
  cat conftest.err >&5
8242
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243
  (exit $ac_status); } && {
8244
         test -z "$ac_c_werror_flag" ||
8245
         test ! -s conftest.err
8246
       } && test -s conftest$ac_exeext && {
8247
         test "$cross_compiling" = yes ||
8248
         $as_test_x conftest$ac_exeext
8249
       }; then
8250 19 jeremybenn
 
8251
lt_aix_libpath_sed='
8252
    /Import File Strings/,/^$/ {
8253
        /^0/ {
8254
            s/^0  *\(.*\)$/\1/
8255
            p
8256
        }
8257
    }'
8258
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8259
# Check for a 64-bit object if we didn't find anything.
8260
if test -z "$aix_libpath"; then
8261
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8262
fi
8263 101 jeremybenn
else
8264
  $as_echo "$as_me: failed program was:" >&5
8265
sed 's/^/| /' conftest.$ac_ext >&5
8266
 
8267
 
8268 19 jeremybenn
fi
8269 101 jeremybenn
 
8270
rm -rf conftest.dSYM
8271
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8272
      conftest$ac_exeext conftest.$ac_ext
8273 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8274
 
8275
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8276
          # Warning - without using the other run time loading flags,
8277
          # -berok will link without error, but may produce a broken library.
8278
          no_undefined_flag=' ${wl}-bernotok'
8279
          allow_undefined_flag=' ${wl}-berok'
8280
          # Exported symbols can be pulled into shared objects from archives
8281
          whole_archive_flag_spec='$convenience'
8282
          archive_cmds_need_lc=yes
8283
          # This is similar to how AIX traditionally builds its shared libraries.
8284
          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'
8285
        fi
8286
      fi
8287
      ;;
8288
 
8289
    amigaos*)
8290 82 jeremybenn
      case $host_cpu in
8291
      powerpc)
8292
            # see comment about AmigaOS4 .so support
8293
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8294
            archive_expsym_cmds=''
8295
        ;;
8296
      m68k)
8297
            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)'
8298
            hardcode_libdir_flag_spec='-L$libdir'
8299
            hardcode_minus_L=yes
8300
        ;;
8301
      esac
8302 19 jeremybenn
      ;;
8303
 
8304
    bsdi[45]*)
8305
      export_dynamic_flag_spec=-rdynamic
8306
      ;;
8307
 
8308 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8309 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8310
      # Microsoft Visual C++.
8311
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8312
      # no search path for DLLs.
8313
      hardcode_libdir_flag_spec=' '
8314
      allow_undefined_flag=unsupported
8315
      # Tell ltmain to make .lib files, not .a files.
8316
      libext=lib
8317
      # Tell ltmain to make .dll files, not .so files.
8318
      shrext_cmds=".dll"
8319
      # FIXME: Setting linknames here is a bad hack.
8320 82 jeremybenn
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8321 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8322 82 jeremybenn
      old_archive_from_new_cmds='true'
8323 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8324
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8325
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8326
      enable_shared_with_static_runtimes=yes
8327
      ;;
8328
 
8329
    darwin* | rhapsody*)
8330 82 jeremybenn
 
8331
 
8332
  archive_cmds_need_lc=no
8333
  hardcode_direct=no
8334
  hardcode_automatic=yes
8335
  hardcode_shlibpath_var=unsupported
8336
  whole_archive_flag_spec=''
8337
  link_all_deplibs=yes
8338
  allow_undefined_flag="$_lt_dar_allow_undefined"
8339
  case $cc_basename in
8340
     ifort*) _lt_dar_can_shared=yes ;;
8341
     *) _lt_dar_can_shared=$GCC ;;
8342
  esac
8343
  if test "$_lt_dar_can_shared" = "yes"; then
8344
    output_verbose_link_cmd=echo
8345
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8346
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8347
    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}"
8348
    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}"
8349
 
8350
  else
8351
  ld_shlibs=no
8352
  fi
8353
 
8354 19 jeremybenn
      ;;
8355
 
8356
    dgux*)
8357
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8358
      hardcode_libdir_flag_spec='-L$libdir'
8359
      hardcode_shlibpath_var=no
8360
      ;;
8361
 
8362
    freebsd1*)
8363
      ld_shlibs=no
8364
      ;;
8365
 
8366
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8367
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8368
    # does not break anything, and helps significantly (at the cost of a little
8369
    # extra space).
8370
    freebsd2.2*)
8371
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8372
      hardcode_libdir_flag_spec='-R$libdir'
8373
      hardcode_direct=yes
8374
      hardcode_shlibpath_var=no
8375
      ;;
8376
 
8377
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8378
    freebsd2*)
8379
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8380
      hardcode_direct=yes
8381
      hardcode_minus_L=yes
8382
      hardcode_shlibpath_var=no
8383
      ;;
8384
 
8385
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8386
    freebsd* | dragonfly*)
8387
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8388
      hardcode_libdir_flag_spec='-R$libdir'
8389
      hardcode_direct=yes
8390
      hardcode_shlibpath_var=no
8391
      ;;
8392
 
8393
    hpux9*)
8394
      if test "$GCC" = yes; then
8395 82 jeremybenn
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8396 19 jeremybenn
      else
8397 82 jeremybenn
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8398 19 jeremybenn
      fi
8399
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8400
      hardcode_libdir_separator=:
8401
      hardcode_direct=yes
8402
 
8403
      # hardcode_minus_L: Not really in the search PATH,
8404
      # but as the default location of the library.
8405
      hardcode_minus_L=yes
8406
      export_dynamic_flag_spec='${wl}-E'
8407
      ;;
8408
 
8409
    hpux10*)
8410
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8411
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8412
      else
8413
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8414
      fi
8415
      if test "$with_gnu_ld" = no; then
8416
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8417 82 jeremybenn
        hardcode_libdir_flag_spec_ld='+b $libdir'
8418 19 jeremybenn
        hardcode_libdir_separator=:
8419
        hardcode_direct=yes
8420 82 jeremybenn
        hardcode_direct_absolute=yes
8421 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8422
        # hardcode_minus_L: Not really in the search PATH,
8423
        # but as the default location of the library.
8424
        hardcode_minus_L=yes
8425
      fi
8426
      ;;
8427
 
8428
    hpux11*)
8429
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8430
        case $host_cpu in
8431
        hppa*64*)
8432
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8433
          ;;
8434
        ia64*)
8435 82 jeremybenn
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8436 19 jeremybenn
          ;;
8437
        *)
8438
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8439
          ;;
8440
        esac
8441
      else
8442
        case $host_cpu in
8443
        hppa*64*)
8444
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8445
          ;;
8446
        ia64*)
8447
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8448
          ;;
8449
        *)
8450
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8451
          ;;
8452
        esac
8453
      fi
8454
      if test "$with_gnu_ld" = no; then
8455
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8456
        hardcode_libdir_separator=:
8457
 
8458
        case $host_cpu in
8459
        hppa*64*|ia64*)
8460
          hardcode_direct=no
8461
          hardcode_shlibpath_var=no
8462
          ;;
8463
        *)
8464
          hardcode_direct=yes
8465 82 jeremybenn
          hardcode_direct_absolute=yes
8466 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8467
 
8468
          # hardcode_minus_L: Not really in the search PATH,
8469
          # but as the default location of the library.
8470
          hardcode_minus_L=yes
8471
          ;;
8472
        esac
8473
      fi
8474
      ;;
8475
 
8476
    irix5* | irix6* | nonstopux*)
8477
      if test "$GCC" = yes; then
8478 82 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8479
        # Try to use the -exported_symbol ld option, if it does not
8480
        # work, assume that -exports_file does not work either and
8481
        # implicitly export all symbols.
8482
        save_LDFLAGS="$LDFLAGS"
8483
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8484 101 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
8485 82 jeremybenn
int foo(void) {}
8486
_ACEOF
8487 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
8488
if { (ac_try="$ac_link"
8489
case "(($ac_try" in
8490
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491
  *) ac_try_echo=$ac_try;;
8492
esac
8493
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8494
$as_echo "$ac_try_echo") >&5
8495
  (eval "$ac_link") 2>conftest.er1
8496
  ac_status=$?
8497
  grep -v '^ *+' conftest.er1 >conftest.err
8498
  rm -f conftest.er1
8499
  cat conftest.err >&5
8500
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501
  (exit $ac_status); } && {
8502
         test -z "$ac_c_werror_flag" ||
8503
         test ! -s conftest.err
8504
       } && test -s conftest$ac_exeext && {
8505
         test "$cross_compiling" = yes ||
8506
         $as_test_x conftest$ac_exeext
8507
       }; then
8508 82 jeremybenn
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8509
 
8510 101 jeremybenn
else
8511
  $as_echo "$as_me: failed program was:" >&5
8512
sed 's/^/| /' conftest.$ac_ext >&5
8513
 
8514
 
8515 82 jeremybenn
fi
8516 101 jeremybenn
 
8517
rm -rf conftest.dSYM
8518
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8519
      conftest$ac_exeext conftest.$ac_ext
8520 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
8521 19 jeremybenn
      else
8522 82 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8523
        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'
8524 19 jeremybenn
      fi
8525 82 jeremybenn
      archive_cmds_need_lc='no'
8526 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8527
      hardcode_libdir_separator=:
8528 82 jeremybenn
      inherit_rpath=yes
8529 19 jeremybenn
      link_all_deplibs=yes
8530
      ;;
8531
 
8532 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
8533 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8534 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8535
      else
8536
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8537
      fi
8538
      hardcode_libdir_flag_spec='-R$libdir'
8539
      hardcode_direct=yes
8540
      hardcode_shlibpath_var=no
8541
      ;;
8542
 
8543
    newsos6)
8544
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8545
      hardcode_direct=yes
8546
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8547
      hardcode_libdir_separator=:
8548
      hardcode_shlibpath_var=no
8549
      ;;
8550
 
8551 82 jeremybenn
    *nto* | *qnx*)
8552
      ;;
8553
 
8554 19 jeremybenn
    openbsd*)
8555
      if test -f /usr/libexec/ld.so; then
8556
        hardcode_direct=yes
8557
        hardcode_shlibpath_var=no
8558 82 jeremybenn
        hardcode_direct_absolute=yes
8559
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8560 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8561
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8562
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8563
          export_dynamic_flag_spec='${wl}-E'
8564
        else
8565
          case $host_os in
8566
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8567
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8568
             hardcode_libdir_flag_spec='-R$libdir'
8569
             ;;
8570
           *)
8571
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8572
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8573
             ;;
8574
          esac
8575 82 jeremybenn
        fi
8576 19 jeremybenn
      else
8577
        ld_shlibs=no
8578
      fi
8579
      ;;
8580
 
8581
    os2*)
8582
      hardcode_libdir_flag_spec='-L$libdir'
8583
      hardcode_minus_L=yes
8584
      allow_undefined_flag=unsupported
8585 82 jeremybenn
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8586
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8587 19 jeremybenn
      ;;
8588
 
8589
    osf3*)
8590
      if test "$GCC" = yes; then
8591
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8592 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8593 19 jeremybenn
      else
8594
        allow_undefined_flag=' -expect_unresolved \*'
8595 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8596 19 jeremybenn
      fi
8597 82 jeremybenn
      archive_cmds_need_lc='no'
8598 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8599
      hardcode_libdir_separator=:
8600
      ;;
8601
 
8602
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8603
      if test "$GCC" = yes; then
8604
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8605 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8606 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8607
      else
8608
        allow_undefined_flag=' -expect_unresolved \*'
8609 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8610
        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~
8611
        $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'
8612 19 jeremybenn
 
8613
        # Both c and cxx compiler support -rpath directly
8614
        hardcode_libdir_flag_spec='-rpath $libdir'
8615
      fi
8616 82 jeremybenn
      archive_cmds_need_lc='no'
8617 19 jeremybenn
      hardcode_libdir_separator=:
8618
      ;;
8619
 
8620
    solaris*)
8621 82 jeremybenn
      no_undefined_flag=' -z defs'
8622 19 jeremybenn
      if test "$GCC" = yes; then
8623
        wlarc='${wl}'
8624 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8625
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8626
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8627 19 jeremybenn
      else
8628 82 jeremybenn
        case `$CC -V 2>&1` in
8629
        *"Compilers 5.0"*)
8630
          wlarc=''
8631
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8632
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8633
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8634
          ;;
8635
        *)
8636
          wlarc='${wl}'
8637
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8638
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8639
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8640
          ;;
8641
        esac
8642 19 jeremybenn
      fi
8643
      hardcode_libdir_flag_spec='-R$libdir'
8644
      hardcode_shlibpath_var=no
8645
      case $host_os in
8646
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8647
      *)
8648
        # The compiler driver will combine and reorder linker options,
8649
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8650
        # but is careful enough not to reorder.
8651 82 jeremybenn
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8652 19 jeremybenn
        if test "$GCC" = yes; then
8653
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8654
        else
8655
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8656
        fi
8657
        ;;
8658
      esac
8659
      link_all_deplibs=yes
8660
      ;;
8661
 
8662
    sunos4*)
8663
      if test "x$host_vendor" = xsequent; then
8664
        # Use $CC to link under sequent, because it throws in some extra .o
8665
        # files that make .init and .fini sections work.
8666
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8667
      else
8668
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8669
      fi
8670
      hardcode_libdir_flag_spec='-L$libdir'
8671
      hardcode_direct=yes
8672
      hardcode_minus_L=yes
8673
      hardcode_shlibpath_var=no
8674
      ;;
8675
 
8676
    sysv4)
8677
      case $host_vendor in
8678
        sni)
8679
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8680
          hardcode_direct=yes # is this really true???
8681
        ;;
8682
        siemens)
8683
          ## LD is ld it makes a PLAMLIB
8684
          ## CC just makes a GrossModule.
8685
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8686
          reload_cmds='$CC -r -o $output$reload_objs'
8687
          hardcode_direct=no
8688
        ;;
8689
        motorola)
8690
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8691
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8692
        ;;
8693
      esac
8694
      runpath_var='LD_RUN_PATH'
8695
      hardcode_shlibpath_var=no
8696
      ;;
8697
 
8698
    sysv4.3*)
8699
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8700
      hardcode_shlibpath_var=no
8701
      export_dynamic_flag_spec='-Bexport'
8702
      ;;
8703
 
8704
    sysv4*MP*)
8705
      if test -d /usr/nec; then
8706
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8707
        hardcode_shlibpath_var=no
8708
        runpath_var=LD_RUN_PATH
8709
        hardcode_runpath_var=yes
8710
        ld_shlibs=yes
8711
      fi
8712
      ;;
8713
 
8714
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8715
      no_undefined_flag='${wl}-z,text'
8716
      archive_cmds_need_lc=no
8717
      hardcode_shlibpath_var=no
8718
      runpath_var='LD_RUN_PATH'
8719
 
8720
      if test "$GCC" = yes; then
8721
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8722
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8723
      else
8724
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8725
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8726
      fi
8727
      ;;
8728
 
8729
    sysv5* | sco3.2v5* | sco5v6*)
8730
      # Note: We can NOT use -z defs as we might desire, because we do not
8731
      # link with -lc, and that would cause any symbols used from libc to
8732
      # always be unresolved, which means just about no library would
8733
      # ever link correctly.  If we're not using GNU ld we use -z text
8734
      # though, which does catch some bad symbols but isn't as heavy-handed
8735
      # as -z defs.
8736
      no_undefined_flag='${wl}-z,text'
8737
      allow_undefined_flag='${wl}-z,nodefs'
8738
      archive_cmds_need_lc=no
8739
      hardcode_shlibpath_var=no
8740 82 jeremybenn
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8741 19 jeremybenn
      hardcode_libdir_separator=':'
8742
      link_all_deplibs=yes
8743
      export_dynamic_flag_spec='${wl}-Bexport'
8744
      runpath_var='LD_RUN_PATH'
8745
 
8746
      if test "$GCC" = yes; then
8747 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8748
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8749 19 jeremybenn
      else
8750 82 jeremybenn
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8751
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8752 19 jeremybenn
      fi
8753
      ;;
8754
 
8755
    uts4*)
8756
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8757
      hardcode_libdir_flag_spec='-L$libdir'
8758
      hardcode_shlibpath_var=no
8759
      ;;
8760
 
8761
    *)
8762
      ld_shlibs=no
8763
      ;;
8764
    esac
8765 82 jeremybenn
 
8766
    if test x$host_vendor = xsni; then
8767
      case $host in
8768
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8769
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8770
        ;;
8771
      esac
8772
    fi
8773 19 jeremybenn
  fi
8774
 
8775 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8776 82 jeremybenn
$as_echo "$ld_shlibs" >&6; }
8777 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8778
 
8779 82 jeremybenn
with_gnu_ld=$with_gnu_ld
8780
 
8781
 
8782
 
8783
 
8784
 
8785
 
8786
 
8787
 
8788
 
8789
 
8790
 
8791
 
8792
 
8793
 
8794
 
8795 19 jeremybenn
#
8796
# Do we need to explicitly link libc?
8797
#
8798
case "x$archive_cmds_need_lc" in
8799
x|xyes)
8800
  # Assume -lc should be added
8801
  archive_cmds_need_lc=yes
8802
 
8803
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8804
    case $archive_cmds in
8805
    *'~'*)
8806
      # FIXME: we may have to deal with multi-command sequences.
8807
      ;;
8808
    '$CC '*)
8809
      # Test whether the compiler implicitly links with -lc since on some
8810
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8811
      # to ld, don't add -lc before -lgcc.
8812 101 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8813 82 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8814
      $RM conftest*
8815 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8816
 
8817 101 jeremybenn
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8818 19 jeremybenn
  (eval $ac_compile) 2>&5
8819
  ac_status=$?
8820 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821
  (exit $ac_status); } 2>conftest.err; then
8822 19 jeremybenn
        soname=conftest
8823
        lib=conftest
8824
        libobjs=conftest.$ac_objext
8825
        deplibs=
8826
        wl=$lt_prog_compiler_wl
8827
        pic_flag=$lt_prog_compiler_pic
8828
        compiler_flags=-v
8829
        linker_flags=-v
8830
        verstring=
8831
        output_objdir=.
8832
        libname=conftest
8833
        lt_save_allow_undefined_flag=$allow_undefined_flag
8834
        allow_undefined_flag=
8835 101 jeremybenn
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8836 82 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8837 19 jeremybenn
  ac_status=$?
8838 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839
  (exit $ac_status); }
8840 19 jeremybenn
        then
8841
          archive_cmds_need_lc=no
8842
        else
8843
          archive_cmds_need_lc=yes
8844
        fi
8845
        allow_undefined_flag=$lt_save_allow_undefined_flag
8846
      else
8847
        cat conftest.err 1>&5
8848
      fi
8849 82 jeremybenn
      $RM conftest*
8850 101 jeremybenn
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8851 82 jeremybenn
$as_echo "$archive_cmds_need_lc" >&6; }
8852 19 jeremybenn
      ;;
8853
    esac
8854
  fi
8855
  ;;
8856
esac
8857
 
8858
 
8859 82 jeremybenn
 
8860
 
8861
 
8862
 
8863
 
8864
 
8865
 
8866
 
8867
 
8868
 
8869
 
8870
 
8871
 
8872
 
8873
 
8874
 
8875
 
8876
 
8877
 
8878
 
8879
 
8880
 
8881
 
8882
 
8883
 
8884
 
8885
 
8886
 
8887
 
8888
 
8889
 
8890
 
8891
 
8892
 
8893
 
8894
 
8895
 
8896
 
8897
 
8898
 
8899
 
8900
 
8901
 
8902
 
8903
 
8904
 
8905
 
8906
 
8907
 
8908
 
8909
 
8910
 
8911
 
8912
 
8913
 
8914
 
8915
 
8916
 
8917
 
8918
 
8919
 
8920
 
8921
 
8922
 
8923
 
8924
 
8925
 
8926
 
8927
 
8928
 
8929
 
8930
 
8931
 
8932
 
8933
 
8934
 
8935
 
8936
 
8937
 
8938
 
8939
 
8940
 
8941
 
8942
 
8943
 
8944
 
8945
 
8946
 
8947
 
8948
 
8949
 
8950
 
8951
 
8952
 
8953
 
8954
 
8955
 
8956
 
8957
 
8958
 
8959
 
8960
 
8961
 
8962
 
8963
 
8964
 
8965
 
8966
 
8967
 
8968
 
8969
 
8970
 
8971
 
8972
 
8973
 
8974
 
8975
 
8976
 
8977
 
8978
 
8979
 
8980
 
8981
 
8982
 
8983
 
8984
 
8985
 
8986
 
8987
 
8988
 
8989
 
8990
 
8991
 
8992
 
8993
 
8994
 
8995
 
8996
 
8997
 
8998
 
8999
 
9000
 
9001
 
9002
 
9003
 
9004
 
9005
 
9006
 
9007
 
9008
 
9009
 
9010
 
9011
 
9012
 
9013
 
9014 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9015 82 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9016
 
9017 19 jeremybenn
if test "$GCC" = yes; then
9018
  case $host_os in
9019
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9020
    *) lt_awk_arg="/^libraries:/" ;;
9021
  esac
9022
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9023 82 jeremybenn
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9024 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
9025
    # otherwise default to the standard path separator (i.e. ":") - it is
9026
    # assumed that no part of a normal pathname contains ";" but that should
9027
    # okay in the real world where ";" in dirpaths is itself problematic.
9028 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9029 19 jeremybenn
  else
9030 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9031 19 jeremybenn
  fi
9032
  # Ok, now we have the path, separated by spaces, we can step through it
9033
  # and add multilib dir if necessary.
9034
  lt_tmp_lt_search_path_spec=
9035
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9036
  for lt_sys_path in $lt_search_path_spec; do
9037
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9038
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9039
    else
9040
      test -d "$lt_sys_path" && \
9041
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9042
    fi
9043
  done
9044 82 jeremybenn
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9045 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
9046
  lt_foo="";
9047
  lt_count=0;
9048
  for (lt_i = NF; lt_i > 0; lt_i--) {
9049
    if ($lt_i != "" && $lt_i != ".") {
9050
      if ($lt_i == "..") {
9051
        lt_count++;
9052
      } else {
9053
        if (lt_count == 0) {
9054
          lt_foo="/" $lt_i lt_foo;
9055
        } else {
9056
          lt_count--;
9057
        }
9058
      }
9059
    }
9060
  }
9061
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9062
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9063
}'`
9064 82 jeremybenn
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9065 19 jeremybenn
else
9066
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9067
fi
9068 82 jeremybenn
library_names_spec=
9069
libname_spec='lib$name'
9070
soname_spec=
9071
shrext_cmds=".so"
9072
postinstall_cmds=
9073
postuninstall_cmds=
9074
finish_cmds=
9075
finish_eval=
9076
shlibpath_var=
9077
shlibpath_overrides_runpath=unknown
9078
version_type=none
9079
dynamic_linker="$host_os ld.so"
9080
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9081 19 jeremybenn
need_lib_prefix=unknown
9082
hardcode_into_libs=no
9083
 
9084
# when you set need_version to no, make sure it does not cause -set_version
9085
# flags to be left without arguments
9086
need_version=unknown
9087
 
9088
case $host_os in
9089
aix3*)
9090
  version_type=linux
9091
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9092
  shlibpath_var=LIBPATH
9093
 
9094
  # AIX 3 has no versioning support, so we append a major version to the name.
9095
  soname_spec='${libname}${release}${shared_ext}$major'
9096
  ;;
9097
 
9098 82 jeremybenn
aix[4-9]*)
9099 19 jeremybenn
  version_type=linux
9100
  need_lib_prefix=no
9101
  need_version=no
9102
  hardcode_into_libs=yes
9103
  if test "$host_cpu" = ia64; then
9104
    # AIX 5 supports IA64
9105
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9106
    shlibpath_var=LD_LIBRARY_PATH
9107
  else
9108
    # With GCC up to 2.95.x, collect2 would create an import file
9109
    # for dependence libraries.  The import file would start with
9110
    # the line `#! .'.  This would cause the generated library to
9111
    # depend on `.', always an invalid library.  This was fixed in
9112
    # development snapshots of GCC prior to 3.0.
9113
    case $host_os in
9114
      aix4 | aix4.[01] | aix4.[01].*)
9115
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9116
           echo ' yes '
9117 82 jeremybenn
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9118 19 jeremybenn
        :
9119
      else
9120
        can_build_shared=no
9121
      fi
9122
      ;;
9123
    esac
9124
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9125
    # soname into executable. Probably we can add versioning support to
9126
    # collect2, so additional links can be useful in future.
9127
    if test "$aix_use_runtimelinking" = yes; then
9128
      # If using run time linking (on AIX 4.2 or later) use lib.so
9129
      # instead of lib.a to let people know that these are not
9130
      # typical AIX shared libraries.
9131
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132
    else
9133
      # We preserve .a as extension for shared libraries through AIX4.2
9134
      # and later when we are not doing run time linking.
9135
      library_names_spec='${libname}${release}.a $libname.a'
9136
      soname_spec='${libname}${release}${shared_ext}$major'
9137
    fi
9138
    shlibpath_var=LIBPATH
9139
  fi
9140
  ;;
9141
 
9142
amigaos*)
9143 82 jeremybenn
  case $host_cpu in
9144
  powerpc)
9145
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9146
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9147
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148
    ;;
9149
  m68k)
9150
    library_names_spec='$libname.ixlibrary $libname.a'
9151
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9152
    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'
9153
    ;;
9154
  esac
9155 19 jeremybenn
  ;;
9156
 
9157
beos*)
9158
  library_names_spec='${libname}${shared_ext}'
9159
  dynamic_linker="$host_os ld.so"
9160
  shlibpath_var=LIBRARY_PATH
9161
  ;;
9162
 
9163
bsdi[45]*)
9164
  version_type=linux
9165
  need_version=no
9166
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9167
  soname_spec='${libname}${release}${shared_ext}$major'
9168
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9169
  shlibpath_var=LD_LIBRARY_PATH
9170
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9171
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9172
  # the default ld.so.conf also contains /usr/contrib/lib and
9173
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9174
  # libtool to hard-code these into programs
9175
  ;;
9176
 
9177 82 jeremybenn
cygwin* | mingw* | pw32* | cegcc*)
9178 19 jeremybenn
  version_type=windows
9179
  shrext_cmds=".dll"
9180
  need_version=no
9181
  need_lib_prefix=no
9182
 
9183
  case $GCC,$host_os in
9184 82 jeremybenn
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9185 19 jeremybenn
    library_names_spec='$libname.dll.a'
9186
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9187
    postinstall_cmds='base_file=`basename \${file}`~
9188 82 jeremybenn
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9189 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
9190
      test -d \$dldir || mkdir -p \$dldir~
9191
      $install_prog $dir/$dlname \$dldir/$dlname~
9192 82 jeremybenn
      chmod a+x \$dldir/$dlname~
9193
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9194
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9195
      fi'
9196 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9197
      dlpath=$dir/\$dldll~
9198 82 jeremybenn
       $RM \$dlpath'
9199 19 jeremybenn
    shlibpath_overrides_runpath=yes
9200
 
9201
    case $host_os in
9202
    cygwin*)
9203
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9204
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9205
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9206
      ;;
9207 82 jeremybenn
    mingw* | cegcc*)
9208 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
9209
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9210 82 jeremybenn
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9211
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9212 19 jeremybenn
        # It is most probably a Windows format PATH printed by
9213
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9214
        # path with ; separators, and with drive letters. We can handle the
9215
        # drive letters (cygwin fileutils understands them), so leave them,
9216
        # especially as we might pass files found there to a mingw objdump,
9217
        # which wouldn't understand a cygwinified path. Ahh.
9218 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9219 19 jeremybenn
      else
9220 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9221 19 jeremybenn
      fi
9222
      ;;
9223
    pw32*)
9224
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9225
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9226
      ;;
9227
    esac
9228
    ;;
9229
 
9230
  *)
9231
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9232
    ;;
9233
  esac
9234
  dynamic_linker='Win32 ld.exe'
9235
  # FIXME: first we should search . and the directory the executable is in
9236
  shlibpath_var=PATH
9237
  ;;
9238
 
9239
darwin* | rhapsody*)
9240
  dynamic_linker="$host_os dyld"
9241
  version_type=darwin
9242
  need_lib_prefix=no
9243
  need_version=no
9244 82 jeremybenn
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9245 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9246
  shlibpath_overrides_runpath=yes
9247
  shlibpath_var=DYLD_LIBRARY_PATH
9248
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9249
 
9250
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9251
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9252
  ;;
9253
 
9254
dgux*)
9255
  version_type=linux
9256
  need_lib_prefix=no
9257
  need_version=no
9258
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9259
  soname_spec='${libname}${release}${shared_ext}$major'
9260
  shlibpath_var=LD_LIBRARY_PATH
9261
  ;;
9262
 
9263
freebsd1*)
9264
  dynamic_linker=no
9265
  ;;
9266
 
9267
freebsd* | dragonfly*)
9268
  # DragonFly does not have aout.  When/if they implement a new
9269
  # versioning mechanism, adjust this.
9270
  if test -x /usr/bin/objformat; then
9271
    objformat=`/usr/bin/objformat`
9272
  else
9273
    case $host_os in
9274
    freebsd[123]*) objformat=aout ;;
9275
    *) objformat=elf ;;
9276
    esac
9277
  fi
9278
  version_type=freebsd-$objformat
9279
  case $version_type in
9280
    freebsd-elf*)
9281
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9282
      need_version=no
9283
      need_lib_prefix=no
9284
      ;;
9285
    freebsd-*)
9286
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9287
      need_version=yes
9288
      ;;
9289
  esac
9290
  shlibpath_var=LD_LIBRARY_PATH
9291
  case $host_os in
9292
  freebsd2*)
9293
    shlibpath_overrides_runpath=yes
9294
    ;;
9295
  freebsd3.[01]* | freebsdelf3.[01]*)
9296
    shlibpath_overrides_runpath=yes
9297
    hardcode_into_libs=yes
9298
    ;;
9299
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9300
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9301
    shlibpath_overrides_runpath=no
9302
    hardcode_into_libs=yes
9303
    ;;
9304
  *) # from 4.6 on, and DragonFly
9305
    shlibpath_overrides_runpath=yes
9306
    hardcode_into_libs=yes
9307
    ;;
9308
  esac
9309
  ;;
9310
 
9311
gnu*)
9312
  version_type=linux
9313
  need_lib_prefix=no
9314
  need_version=no
9315
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9316
  soname_spec='${libname}${release}${shared_ext}$major'
9317
  shlibpath_var=LD_LIBRARY_PATH
9318
  hardcode_into_libs=yes
9319
  ;;
9320
 
9321
hpux9* | hpux10* | hpux11*)
9322
  # Give a soname corresponding to the major version so that dld.sl refuses to
9323
  # link against other versions.
9324
  version_type=sunos
9325
  need_lib_prefix=no
9326
  need_version=no
9327
  case $host_cpu in
9328
  ia64*)
9329
    shrext_cmds='.so'
9330
    hardcode_into_libs=yes
9331
    dynamic_linker="$host_os dld.so"
9332
    shlibpath_var=LD_LIBRARY_PATH
9333
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9334
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9335
    soname_spec='${libname}${release}${shared_ext}$major'
9336
    if test "X$HPUX_IA64_MODE" = X32; then
9337
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9338
    else
9339
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9340
    fi
9341
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9342
    ;;
9343 82 jeremybenn
  hppa*64*)
9344 19 jeremybenn
    shrext_cmds='.sl'
9345 82 jeremybenn
    hardcode_into_libs=yes
9346 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9347 82 jeremybenn
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9348
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9349
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350
    soname_spec='${libname}${release}${shared_ext}$major'
9351
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9352
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9353
    ;;
9354
  *)
9355
    shrext_cmds='.sl'
9356
    dynamic_linker="$host_os dld.sl"
9357 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9358
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9359
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360
    soname_spec='${libname}${release}${shared_ext}$major'
9361
    ;;
9362
  esac
9363
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9364
  postinstall_cmds='chmod 555 $lib'
9365
  ;;
9366
 
9367
interix[3-9]*)
9368
  version_type=linux
9369
  need_lib_prefix=no
9370
  need_version=no
9371
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9372
  soname_spec='${libname}${release}${shared_ext}$major'
9373
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9374
  shlibpath_var=LD_LIBRARY_PATH
9375
  shlibpath_overrides_runpath=no
9376
  hardcode_into_libs=yes
9377
  ;;
9378
 
9379
irix5* | irix6* | nonstopux*)
9380
  case $host_os in
9381
    nonstopux*) version_type=nonstopux ;;
9382
    *)
9383
        if test "$lt_cv_prog_gnu_ld" = yes; then
9384
                version_type=linux
9385
        else
9386
                version_type=irix
9387
        fi ;;
9388
  esac
9389
  need_lib_prefix=no
9390
  need_version=no
9391
  soname_spec='${libname}${release}${shared_ext}$major'
9392
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9393
  case $host_os in
9394
  irix5* | nonstopux*)
9395
    libsuff= shlibsuff=
9396
    ;;
9397
  *)
9398
    case $LD in # libtool.m4 will add one of these switches to LD
9399
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9400
      libsuff= shlibsuff= libmagic=32-bit;;
9401
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9402
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9403
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9404
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9405
    *) libsuff= shlibsuff= libmagic=never-match;;
9406
    esac
9407
    ;;
9408
  esac
9409
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9410
  shlibpath_overrides_runpath=no
9411
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9412
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9413
  hardcode_into_libs=yes
9414
  ;;
9415
 
9416
# No shared lib support for Linux oldld, aout, or coff.
9417
linux*oldld* | linux*aout* | linux*coff*)
9418
  dynamic_linker=no
9419
  ;;
9420
 
9421
# This must be Linux ELF.
9422
linux* | k*bsd*-gnu)
9423
  version_type=linux
9424
  need_lib_prefix=no
9425
  need_version=no
9426
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427
  soname_spec='${libname}${release}${shared_ext}$major'
9428
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9429
  shlibpath_var=LD_LIBRARY_PATH
9430
  shlibpath_overrides_runpath=no
9431 82 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
9432
  save_LDFLAGS=$LDFLAGS
9433
  save_libdir=$libdir
9434
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9435
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9436 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
9437
/* confdefs.h.  */
9438
_ACEOF
9439
cat confdefs.h >>conftest.$ac_ext
9440
cat >>conftest.$ac_ext <<_ACEOF
9441 82 jeremybenn
/* end confdefs.h.  */
9442
 
9443
int
9444
main ()
9445
{
9446
 
9447
  ;
9448
  return 0;
9449
}
9450
_ACEOF
9451 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
9452
if { (ac_try="$ac_link"
9453
case "(($ac_try" in
9454
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9455
  *) ac_try_echo=$ac_try;;
9456
esac
9457
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9458
$as_echo "$ac_try_echo") >&5
9459
  (eval "$ac_link") 2>conftest.er1
9460
  ac_status=$?
9461
  grep -v '^ *+' conftest.er1 >conftest.err
9462
  rm -f conftest.er1
9463
  cat conftest.err >&5
9464
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465
  (exit $ac_status); } && {
9466
         test -z "$ac_c_werror_flag" ||
9467
         test ! -s conftest.err
9468
       } && test -s conftest$ac_exeext && {
9469
         test "$cross_compiling" = yes ||
9470
         $as_test_x conftest$ac_exeext
9471
       }; then
9472
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9473 82 jeremybenn
  shlibpath_overrides_runpath=yes
9474
fi
9475 101 jeremybenn
 
9476
else
9477
  $as_echo "$as_me: failed program was:" >&5
9478
sed 's/^/| /' conftest.$ac_ext >&5
9479
 
9480
 
9481 82 jeremybenn
fi
9482 101 jeremybenn
 
9483
rm -rf conftest.dSYM
9484
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9485
      conftest$ac_exeext conftest.$ac_ext
9486 82 jeremybenn
  LDFLAGS=$save_LDFLAGS
9487
  libdir=$save_libdir
9488
 
9489 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9490
  # Some rework will be needed to allow for fast_install
9491
  # before this can be enabled.
9492
  hardcode_into_libs=yes
9493
 
9494
  # Append ld.so.conf contents to the search path
9495
  if test -f /etc/ld.so.conf; then
9496 82 jeremybenn
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9497 93 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9498 19 jeremybenn
  fi
9499
 
9500
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9501
  # powerpc, because MkLinux only supported shared libraries with the
9502
  # GNU dynamic linker.  Since this was broken with cross compilers,
9503
  # most powerpc-linux boxes support dynamic linking these days and
9504
  # people can always --disable-shared, the test was removed, and we
9505
  # assume the GNU/Linux dynamic linker is in use.
9506
  dynamic_linker='GNU/Linux ld.so'
9507
  ;;
9508
 
9509 93 jeremybenn
netbsdelf*-gnu)
9510
  version_type=linux
9511
  need_lib_prefix=no
9512
  need_version=no
9513
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9514
  soname_spec='${libname}${release}${shared_ext}$major'
9515
  shlibpath_var=LD_LIBRARY_PATH
9516
  shlibpath_overrides_runpath=no
9517
  hardcode_into_libs=yes
9518
  dynamic_linker='NetBSD ld.elf_so'
9519
  ;;
9520
 
9521 19 jeremybenn
netbsd*)
9522
  version_type=sunos
9523
  need_lib_prefix=no
9524
  need_version=no
9525 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9526 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9527
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9528
    dynamic_linker='NetBSD (a.out) ld.so'
9529
  else
9530
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9531
    soname_spec='${libname}${release}${shared_ext}$major'
9532
    dynamic_linker='NetBSD ld.elf_so'
9533
  fi
9534
  shlibpath_var=LD_LIBRARY_PATH
9535
  shlibpath_overrides_runpath=yes
9536
  hardcode_into_libs=yes
9537
  ;;
9538
 
9539
newsos6)
9540
  version_type=linux
9541
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542
  shlibpath_var=LD_LIBRARY_PATH
9543
  shlibpath_overrides_runpath=yes
9544
  ;;
9545
 
9546 82 jeremybenn
*nto* | *qnx*)
9547
  version_type=qnx
9548 19 jeremybenn
  need_lib_prefix=no
9549
  need_version=no
9550
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551
  soname_spec='${libname}${release}${shared_ext}$major'
9552
  shlibpath_var=LD_LIBRARY_PATH
9553 82 jeremybenn
  shlibpath_overrides_runpath=no
9554
  hardcode_into_libs=yes
9555
  dynamic_linker='ldqnx.so'
9556 19 jeremybenn
  ;;
9557
 
9558
openbsd*)
9559
  version_type=sunos
9560
  sys_lib_dlsearch_path_spec="/usr/lib"
9561
  need_lib_prefix=no
9562
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9563
  case $host_os in
9564 82 jeremybenn
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9565
    *)                          need_version=no  ;;
9566 19 jeremybenn
  esac
9567
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9568
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9569
  shlibpath_var=LD_LIBRARY_PATH
9570 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9571 19 jeremybenn
    case $host_os in
9572
      openbsd2.[89] | openbsd2.[89].*)
9573
        shlibpath_overrides_runpath=no
9574
        ;;
9575
      *)
9576
        shlibpath_overrides_runpath=yes
9577
        ;;
9578
      esac
9579
  else
9580
    shlibpath_overrides_runpath=yes
9581
  fi
9582
  ;;
9583
 
9584
os2*)
9585
  libname_spec='$name'
9586
  shrext_cmds=".dll"
9587
  need_lib_prefix=no
9588
  library_names_spec='$libname${shared_ext} $libname.a'
9589
  dynamic_linker='OS/2 ld.exe'
9590
  shlibpath_var=LIBPATH
9591
  ;;
9592
 
9593
osf3* | osf4* | osf5*)
9594
  version_type=osf
9595
  need_lib_prefix=no
9596
  need_version=no
9597
  soname_spec='${libname}${release}${shared_ext}$major'
9598
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599
  shlibpath_var=LD_LIBRARY_PATH
9600
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9601
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9602
  ;;
9603
 
9604
rdos*)
9605
  dynamic_linker=no
9606
  ;;
9607
 
9608
solaris*)
9609
  version_type=linux
9610
  need_lib_prefix=no
9611
  need_version=no
9612
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613
  soname_spec='${libname}${release}${shared_ext}$major'
9614
  shlibpath_var=LD_LIBRARY_PATH
9615
  shlibpath_overrides_runpath=yes
9616
  hardcode_into_libs=yes
9617
  # ldd complains unless libraries are executable
9618
  postinstall_cmds='chmod +x $lib'
9619
  ;;
9620
 
9621
sunos4*)
9622
  version_type=sunos
9623
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9624
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9625
  shlibpath_var=LD_LIBRARY_PATH
9626
  shlibpath_overrides_runpath=yes
9627
  if test "$with_gnu_ld" = yes; then
9628
    need_lib_prefix=no
9629
  fi
9630
  need_version=yes
9631
  ;;
9632
 
9633
sysv4 | sysv4.3*)
9634
  version_type=linux
9635
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9636
  soname_spec='${libname}${release}${shared_ext}$major'
9637
  shlibpath_var=LD_LIBRARY_PATH
9638
  case $host_vendor in
9639
    sni)
9640
      shlibpath_overrides_runpath=no
9641
      need_lib_prefix=no
9642
      runpath_var=LD_RUN_PATH
9643
      ;;
9644
    siemens)
9645
      need_lib_prefix=no
9646
      ;;
9647
    motorola)
9648
      need_lib_prefix=no
9649
      need_version=no
9650
      shlibpath_overrides_runpath=no
9651
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9652
      ;;
9653
  esac
9654
  ;;
9655
 
9656
sysv4*MP*)
9657
  if test -d /usr/nec ;then
9658
    version_type=linux
9659
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9660
    soname_spec='$libname${shared_ext}.$major'
9661
    shlibpath_var=LD_LIBRARY_PATH
9662
  fi
9663
  ;;
9664
 
9665
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9666
  version_type=freebsd-elf
9667
  need_lib_prefix=no
9668
  need_version=no
9669
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9670
  soname_spec='${libname}${release}${shared_ext}$major'
9671
  shlibpath_var=LD_LIBRARY_PATH
9672 82 jeremybenn
  shlibpath_overrides_runpath=yes
9673 19 jeremybenn
  hardcode_into_libs=yes
9674
  if test "$with_gnu_ld" = yes; then
9675
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9676
  else
9677
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9678
    case $host_os in
9679
      sco3.2v5*)
9680
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9681
        ;;
9682
    esac
9683
  fi
9684
  sys_lib_dlsearch_path_spec='/usr/lib'
9685
  ;;
9686
 
9687 82 jeremybenn
tpf*)
9688
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9689
  version_type=linux
9690
  need_lib_prefix=no
9691
  need_version=no
9692
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9693
  shlibpath_var=LD_LIBRARY_PATH
9694
  shlibpath_overrides_runpath=no
9695
  hardcode_into_libs=yes
9696
  ;;
9697
 
9698 19 jeremybenn
uts4*)
9699
  version_type=linux
9700
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9701
  soname_spec='${libname}${release}${shared_ext}$major'
9702
  shlibpath_var=LD_LIBRARY_PATH
9703
  ;;
9704
 
9705
*)
9706
  dynamic_linker=no
9707
  ;;
9708
esac
9709 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9710 82 jeremybenn
$as_echo "$dynamic_linker" >&6; }
9711 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9712
 
9713
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9714
if test "$GCC" = yes; then
9715
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9716
fi
9717
 
9718 82 jeremybenn
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9719
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9720
fi
9721
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9722
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9723
fi
9724
 
9725
 
9726
 
9727
 
9728
 
9729
 
9730
 
9731
 
9732
 
9733
 
9734
 
9735
 
9736
 
9737
 
9738
 
9739
 
9740
 
9741
 
9742
 
9743
 
9744
 
9745
 
9746
 
9747
 
9748
 
9749
 
9750
 
9751
 
9752
 
9753
 
9754
 
9755
 
9756
 
9757
 
9758
 
9759
 
9760
 
9761
 
9762
 
9763
 
9764
 
9765
 
9766
 
9767
 
9768
 
9769
 
9770
 
9771
 
9772
 
9773
 
9774
 
9775
 
9776
 
9777
 
9778
 
9779
 
9780
 
9781
 
9782
 
9783
 
9784
 
9785
 
9786
 
9787
 
9788
 
9789
 
9790
 
9791
 
9792
 
9793
 
9794
 
9795
 
9796
 
9797
 
9798
 
9799
 
9800
 
9801
 
9802
 
9803
 
9804
 
9805
 
9806
 
9807
 
9808
 
9809
 
9810
 
9811 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9812 82 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9813 19 jeremybenn
hardcode_action=
9814 82 jeremybenn
if test -n "$hardcode_libdir_flag_spec" ||
9815
   test -n "$runpath_var" ||
9816 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9817
 
9818 82 jeremybenn
  # We can hardcode non-existent directories.
9819 19 jeremybenn
  if test "$hardcode_direct" != no &&
9820
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9821
     # have to relink, otherwise we might link with an installed library
9822
     # when we should be linking with a yet-to-be-installed one
9823 82 jeremybenn
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9824 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9825
    # Linking always hardcodes the temporary library directory.
9826
    hardcode_action=relink
9827
  else
9828
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9829
    hardcode_action=immediate
9830
  fi
9831
else
9832
  # We cannot hardcode anything, or else we can only hardcode existing
9833
  # directories.
9834
  hardcode_action=unsupported
9835
fi
9836 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9837 82 jeremybenn
$as_echo "$hardcode_action" >&6; }
9838 19 jeremybenn
 
9839 82 jeremybenn
if test "$hardcode_action" = relink ||
9840
   test "$inherit_rpath" = yes; then
9841 19 jeremybenn
  # Fast installation is not supported
9842
  enable_fast_install=no
9843
elif test "$shlibpath_overrides_runpath" = yes ||
9844
     test "$enable_shared" = no; then
9845
  # Fast installation is not necessary
9846
  enable_fast_install=needless
9847
fi
9848
 
9849
 
9850 82 jeremybenn
 
9851
 
9852
 
9853
 
9854
  if test "x$enable_dlopen" != xyes; then
9855 19 jeremybenn
  enable_dlopen=unknown
9856
  enable_dlopen_self=unknown
9857
  enable_dlopen_self_static=unknown
9858
else
9859
  lt_cv_dlopen=no
9860
  lt_cv_dlopen_libs=
9861
 
9862
  case $host_os in
9863
  beos*)
9864
    lt_cv_dlopen="load_add_on"
9865
    lt_cv_dlopen_libs=
9866
    lt_cv_dlopen_self=yes
9867
    ;;
9868
 
9869 82 jeremybenn
  mingw* | pw32* | cegcc*)
9870 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9871
    lt_cv_dlopen_libs=
9872 82 jeremybenn
    ;;
9873 19 jeremybenn
 
9874
  cygwin*)
9875
    lt_cv_dlopen="dlopen"
9876
    lt_cv_dlopen_libs=
9877 82 jeremybenn
    ;;
9878 19 jeremybenn
 
9879
  darwin*)
9880
  # if libdl is installed we need to link against it
9881 101 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9882 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9883 101 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9884 82 jeremybenn
  $as_echo_n "(cached) " >&6
9885 19 jeremybenn
else
9886
  ac_check_lib_save_LIBS=$LIBS
9887
LIBS="-ldl  $LIBS"
9888 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9889
/* confdefs.h.  */
9890
_ACEOF
9891
cat confdefs.h >>conftest.$ac_ext
9892
cat >>conftest.$ac_ext <<_ACEOF
9893 19 jeremybenn
/* end confdefs.h.  */
9894
 
9895
/* Override any GCC internal prototype to avoid an error.
9896
   Use char because int might match the return type of a GCC
9897
   builtin and then its argument prototype would still apply.  */
9898
#ifdef __cplusplus
9899
extern "C"
9900
#endif
9901
char dlopen ();
9902
int
9903
main ()
9904
{
9905
return dlopen ();
9906
  ;
9907
  return 0;
9908
}
9909
_ACEOF
9910 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
9911
if { (ac_try="$ac_link"
9912
case "(($ac_try" in
9913
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914
  *) ac_try_echo=$ac_try;;
9915
esac
9916
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9917
$as_echo "$ac_try_echo") >&5
9918
  (eval "$ac_link") 2>conftest.er1
9919
  ac_status=$?
9920
  grep -v '^ *+' conftest.er1 >conftest.err
9921
  rm -f conftest.er1
9922
  cat conftest.err >&5
9923
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924
  (exit $ac_status); } && {
9925
         test -z "$ac_c_werror_flag" ||
9926
         test ! -s conftest.err
9927
       } && test -s conftest$ac_exeext && {
9928
         test "$cross_compiling" = yes ||
9929
         $as_test_x conftest$ac_exeext
9930
       }; then
9931 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9932
else
9933 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9934
sed 's/^/| /' conftest.$ac_ext >&5
9935
 
9936
        ac_cv_lib_dl_dlopen=no
9937 19 jeremybenn
fi
9938 101 jeremybenn
 
9939
rm -rf conftest.dSYM
9940
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9941
      conftest$ac_exeext conftest.$ac_ext
9942 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9943
fi
9944 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9945 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9946 101 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9947 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9948
else
9949
 
9950
    lt_cv_dlopen="dyld"
9951
    lt_cv_dlopen_libs=
9952
    lt_cv_dlopen_self=yes
9953
 
9954
fi
9955
 
9956 82 jeremybenn
    ;;
9957 19 jeremybenn
 
9958
  *)
9959 101 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9960
$as_echo_n "checking for shl_load... " >&6; }
9961
if test "${ac_cv_func_shl_load+set}" = set; then
9962
  $as_echo_n "(cached) " >&6
9963
else
9964
  cat >conftest.$ac_ext <<_ACEOF
9965
/* confdefs.h.  */
9966
_ACEOF
9967
cat confdefs.h >>conftest.$ac_ext
9968
cat >>conftest.$ac_ext <<_ACEOF
9969
/* end confdefs.h.  */
9970
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9971
   For example, HP-UX 11i  declares gettimeofday.  */
9972
#define shl_load innocuous_shl_load
9973
 
9974
/* System header to define __stub macros and hopefully few prototypes,
9975
    which can conflict with char shl_load (); below.
9976
    Prefer  to  if __STDC__ is defined, since
9977
     exists even on freestanding compilers.  */
9978
 
9979
#ifdef __STDC__
9980
# include 
9981
#else
9982
# include 
9983
#endif
9984
 
9985
#undef shl_load
9986
 
9987
/* Override any GCC internal prototype to avoid an error.
9988
   Use char because int might match the return type of a GCC
9989
   builtin and then its argument prototype would still apply.  */
9990
#ifdef __cplusplus
9991
extern "C"
9992
#endif
9993
char shl_load ();
9994
/* The GNU C library defines this for functions which it implements
9995
    to always fail with ENOSYS.  Some functions are actually named
9996
    something starting with __ and the normal name is an alias.  */
9997
#if defined __stub_shl_load || defined __stub___shl_load
9998
choke me
9999
#endif
10000
 
10001
int
10002
main ()
10003
{
10004
return shl_load ();
10005
  ;
10006
  return 0;
10007
}
10008
_ACEOF
10009
rm -f conftest.$ac_objext conftest$ac_exeext
10010
if { (ac_try="$ac_link"
10011
case "(($ac_try" in
10012
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013
  *) ac_try_echo=$ac_try;;
10014
esac
10015
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10016
$as_echo "$ac_try_echo") >&5
10017
  (eval "$ac_link") 2>conftest.er1
10018
  ac_status=$?
10019
  grep -v '^ *+' conftest.er1 >conftest.err
10020
  rm -f conftest.er1
10021
  cat conftest.err >&5
10022
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023
  (exit $ac_status); } && {
10024
         test -z "$ac_c_werror_flag" ||
10025
         test ! -s conftest.err
10026
       } && test -s conftest$ac_exeext && {
10027
         test "$cross_compiling" = yes ||
10028
         $as_test_x conftest$ac_exeext
10029
       }; then
10030
  ac_cv_func_shl_load=yes
10031
else
10032
  $as_echo "$as_me: failed program was:" >&5
10033
sed 's/^/| /' conftest.$ac_ext >&5
10034
 
10035
        ac_cv_func_shl_load=no
10036
fi
10037
 
10038
rm -rf conftest.dSYM
10039
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10040
      conftest$ac_exeext conftest.$ac_ext
10041
fi
10042
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10043
$as_echo "$ac_cv_func_shl_load" >&6; }
10044
if test "x$ac_cv_func_shl_load" = x""yes; then
10045 19 jeremybenn
  lt_cv_dlopen="shl_load"
10046
else
10047 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10048 82 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10049 101 jeremybenn
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10050 82 jeremybenn
  $as_echo_n "(cached) " >&6
10051 19 jeremybenn
else
10052
  ac_check_lib_save_LIBS=$LIBS
10053
LIBS="-ldld  $LIBS"
10054 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10055
/* confdefs.h.  */
10056
_ACEOF
10057
cat confdefs.h >>conftest.$ac_ext
10058
cat >>conftest.$ac_ext <<_ACEOF
10059 19 jeremybenn
/* end confdefs.h.  */
10060
 
10061
/* Override any GCC internal prototype to avoid an error.
10062
   Use char because int might match the return type of a GCC
10063
   builtin and then its argument prototype would still apply.  */
10064
#ifdef __cplusplus
10065
extern "C"
10066
#endif
10067
char shl_load ();
10068
int
10069
main ()
10070
{
10071
return shl_load ();
10072
  ;
10073
  return 0;
10074
}
10075
_ACEOF
10076 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10077
if { (ac_try="$ac_link"
10078
case "(($ac_try" in
10079
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080
  *) ac_try_echo=$ac_try;;
10081
esac
10082
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10083
$as_echo "$ac_try_echo") >&5
10084
  (eval "$ac_link") 2>conftest.er1
10085
  ac_status=$?
10086
  grep -v '^ *+' conftest.er1 >conftest.err
10087
  rm -f conftest.er1
10088
  cat conftest.err >&5
10089
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090
  (exit $ac_status); } && {
10091
         test -z "$ac_c_werror_flag" ||
10092
         test ! -s conftest.err
10093
       } && test -s conftest$ac_exeext && {
10094
         test "$cross_compiling" = yes ||
10095
         $as_test_x conftest$ac_exeext
10096
       }; then
10097 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
10098
else
10099 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10100
sed 's/^/| /' conftest.$ac_ext >&5
10101
 
10102
        ac_cv_lib_dld_shl_load=no
10103 19 jeremybenn
fi
10104 101 jeremybenn
 
10105
rm -rf conftest.dSYM
10106
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10107
      conftest$ac_exeext conftest.$ac_ext
10108 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10109
fi
10110 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10111 82 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10112 101 jeremybenn
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10113 82 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10114 19 jeremybenn
else
10115 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10116
$as_echo_n "checking for dlopen... " >&6; }
10117
if test "${ac_cv_func_dlopen+set}" = set; then
10118
  $as_echo_n "(cached) " >&6
10119
else
10120
  cat >conftest.$ac_ext <<_ACEOF
10121
/* confdefs.h.  */
10122
_ACEOF
10123
cat confdefs.h >>conftest.$ac_ext
10124
cat >>conftest.$ac_ext <<_ACEOF
10125
/* end confdefs.h.  */
10126
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10127
   For example, HP-UX 11i  declares gettimeofday.  */
10128
#define dlopen innocuous_dlopen
10129
 
10130
/* System header to define __stub macros and hopefully few prototypes,
10131
    which can conflict with char dlopen (); below.
10132
    Prefer  to  if __STDC__ is defined, since
10133
     exists even on freestanding compilers.  */
10134
 
10135
#ifdef __STDC__
10136
# include 
10137
#else
10138
# include 
10139
#endif
10140
 
10141
#undef dlopen
10142
 
10143
/* Override any GCC internal prototype to avoid an error.
10144
   Use char because int might match the return type of a GCC
10145
   builtin and then its argument prototype would still apply.  */
10146
#ifdef __cplusplus
10147
extern "C"
10148
#endif
10149
char dlopen ();
10150
/* The GNU C library defines this for functions which it implements
10151
    to always fail with ENOSYS.  Some functions are actually named
10152
    something starting with __ and the normal name is an alias.  */
10153
#if defined __stub_dlopen || defined __stub___dlopen
10154
choke me
10155
#endif
10156
 
10157
int
10158
main ()
10159
{
10160
return dlopen ();
10161
  ;
10162
  return 0;
10163
}
10164
_ACEOF
10165
rm -f conftest.$ac_objext conftest$ac_exeext
10166
if { (ac_try="$ac_link"
10167
case "(($ac_try" in
10168
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169
  *) ac_try_echo=$ac_try;;
10170
esac
10171
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10172
$as_echo "$ac_try_echo") >&5
10173
  (eval "$ac_link") 2>conftest.er1
10174
  ac_status=$?
10175
  grep -v '^ *+' conftest.er1 >conftest.err
10176
  rm -f conftest.er1
10177
  cat conftest.err >&5
10178
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179
  (exit $ac_status); } && {
10180
         test -z "$ac_c_werror_flag" ||
10181
         test ! -s conftest.err
10182
       } && test -s conftest$ac_exeext && {
10183
         test "$cross_compiling" = yes ||
10184
         $as_test_x conftest$ac_exeext
10185
       }; then
10186
  ac_cv_func_dlopen=yes
10187
else
10188
  $as_echo "$as_me: failed program was:" >&5
10189
sed 's/^/| /' conftest.$ac_ext >&5
10190
 
10191
        ac_cv_func_dlopen=no
10192
fi
10193
 
10194
rm -rf conftest.dSYM
10195
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10196
      conftest$ac_exeext conftest.$ac_ext
10197
fi
10198
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10199
$as_echo "$ac_cv_func_dlopen" >&6; }
10200
if test "x$ac_cv_func_dlopen" = x""yes; then
10201 19 jeremybenn
  lt_cv_dlopen="dlopen"
10202
else
10203 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10204 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10205 101 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10206 82 jeremybenn
  $as_echo_n "(cached) " >&6
10207 19 jeremybenn
else
10208
  ac_check_lib_save_LIBS=$LIBS
10209
LIBS="-ldl  $LIBS"
10210 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10211
/* confdefs.h.  */
10212
_ACEOF
10213
cat confdefs.h >>conftest.$ac_ext
10214
cat >>conftest.$ac_ext <<_ACEOF
10215 19 jeremybenn
/* end confdefs.h.  */
10216
 
10217
/* Override any GCC internal prototype to avoid an error.
10218
   Use char because int might match the return type of a GCC
10219
   builtin and then its argument prototype would still apply.  */
10220
#ifdef __cplusplus
10221
extern "C"
10222
#endif
10223
char dlopen ();
10224
int
10225
main ()
10226
{
10227
return dlopen ();
10228
  ;
10229
  return 0;
10230
}
10231
_ACEOF
10232 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10233
if { (ac_try="$ac_link"
10234
case "(($ac_try" in
10235
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236
  *) ac_try_echo=$ac_try;;
10237
esac
10238
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10239
$as_echo "$ac_try_echo") >&5
10240
  (eval "$ac_link") 2>conftest.er1
10241
  ac_status=$?
10242
  grep -v '^ *+' conftest.er1 >conftest.err
10243
  rm -f conftest.er1
10244
  cat conftest.err >&5
10245
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246
  (exit $ac_status); } && {
10247
         test -z "$ac_c_werror_flag" ||
10248
         test ! -s conftest.err
10249
       } && test -s conftest$ac_exeext && {
10250
         test "$cross_compiling" = yes ||
10251
         $as_test_x conftest$ac_exeext
10252
       }; then
10253 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
10254
else
10255 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10256
sed 's/^/| /' conftest.$ac_ext >&5
10257
 
10258
        ac_cv_lib_dl_dlopen=no
10259 19 jeremybenn
fi
10260 101 jeremybenn
 
10261
rm -rf conftest.dSYM
10262
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10263
      conftest$ac_exeext conftest.$ac_ext
10264 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10265
fi
10266 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10267 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10268 101 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10269 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10270
else
10271 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10272 82 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10273 101 jeremybenn
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10274 82 jeremybenn
  $as_echo_n "(cached) " >&6
10275 19 jeremybenn
else
10276
  ac_check_lib_save_LIBS=$LIBS
10277
LIBS="-lsvld  $LIBS"
10278 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10279
/* confdefs.h.  */
10280
_ACEOF
10281
cat confdefs.h >>conftest.$ac_ext
10282
cat >>conftest.$ac_ext <<_ACEOF
10283 19 jeremybenn
/* end confdefs.h.  */
10284
 
10285
/* Override any GCC internal prototype to avoid an error.
10286
   Use char because int might match the return type of a GCC
10287
   builtin and then its argument prototype would still apply.  */
10288
#ifdef __cplusplus
10289
extern "C"
10290
#endif
10291
char dlopen ();
10292
int
10293
main ()
10294
{
10295
return dlopen ();
10296
  ;
10297
  return 0;
10298
}
10299
_ACEOF
10300 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10301
if { (ac_try="$ac_link"
10302
case "(($ac_try" in
10303
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304
  *) ac_try_echo=$ac_try;;
10305
esac
10306
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10307
$as_echo "$ac_try_echo") >&5
10308
  (eval "$ac_link") 2>conftest.er1
10309
  ac_status=$?
10310
  grep -v '^ *+' conftest.er1 >conftest.err
10311
  rm -f conftest.er1
10312
  cat conftest.err >&5
10313
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314
  (exit $ac_status); } && {
10315
         test -z "$ac_c_werror_flag" ||
10316
         test ! -s conftest.err
10317
       } && test -s conftest$ac_exeext && {
10318
         test "$cross_compiling" = yes ||
10319
         $as_test_x conftest$ac_exeext
10320
       }; then
10321 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
10322
else
10323 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10324
sed 's/^/| /' conftest.$ac_ext >&5
10325
 
10326
        ac_cv_lib_svld_dlopen=no
10327 19 jeremybenn
fi
10328 101 jeremybenn
 
10329
rm -rf conftest.dSYM
10330
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10331
      conftest$ac_exeext conftest.$ac_ext
10332 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10333
fi
10334 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10335 82 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10336 101 jeremybenn
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10337 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10338
else
10339 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10340 82 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10341 101 jeremybenn
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10342 82 jeremybenn
  $as_echo_n "(cached) " >&6
10343 19 jeremybenn
else
10344
  ac_check_lib_save_LIBS=$LIBS
10345
LIBS="-ldld  $LIBS"
10346 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10347
/* confdefs.h.  */
10348
_ACEOF
10349
cat confdefs.h >>conftest.$ac_ext
10350
cat >>conftest.$ac_ext <<_ACEOF
10351 19 jeremybenn
/* end confdefs.h.  */
10352
 
10353
/* Override any GCC internal prototype to avoid an error.
10354
   Use char because int might match the return type of a GCC
10355
   builtin and then its argument prototype would still apply.  */
10356
#ifdef __cplusplus
10357
extern "C"
10358
#endif
10359
char dld_link ();
10360
int
10361
main ()
10362
{
10363
return dld_link ();
10364
  ;
10365
  return 0;
10366
}
10367
_ACEOF
10368 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10369
if { (ac_try="$ac_link"
10370
case "(($ac_try" in
10371
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372
  *) ac_try_echo=$ac_try;;
10373
esac
10374
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10375
$as_echo "$ac_try_echo") >&5
10376
  (eval "$ac_link") 2>conftest.er1
10377
  ac_status=$?
10378
  grep -v '^ *+' conftest.er1 >conftest.err
10379
  rm -f conftest.er1
10380
  cat conftest.err >&5
10381
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382
  (exit $ac_status); } && {
10383
         test -z "$ac_c_werror_flag" ||
10384
         test ! -s conftest.err
10385
       } && test -s conftest$ac_exeext && {
10386
         test "$cross_compiling" = yes ||
10387
         $as_test_x conftest$ac_exeext
10388
       }; then
10389 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
10390
else
10391 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10392
sed 's/^/| /' conftest.$ac_ext >&5
10393
 
10394
        ac_cv_lib_dld_dld_link=no
10395 19 jeremybenn
fi
10396 101 jeremybenn
 
10397
rm -rf conftest.dSYM
10398
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10399
      conftest$ac_exeext conftest.$ac_ext
10400 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10401
fi
10402 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10403 82 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10404 101 jeremybenn
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10405 82 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10406 19 jeremybenn
fi
10407
 
10408
 
10409
fi
10410
 
10411
 
10412
fi
10413
 
10414
 
10415
fi
10416
 
10417
 
10418
fi
10419
 
10420
 
10421
fi
10422
 
10423
    ;;
10424
  esac
10425
 
10426
  if test "x$lt_cv_dlopen" != xno; then
10427
    enable_dlopen=yes
10428
  else
10429
    enable_dlopen=no
10430
  fi
10431
 
10432
  case $lt_cv_dlopen in
10433
  dlopen)
10434
    save_CPPFLAGS="$CPPFLAGS"
10435
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10436
 
10437
    save_LDFLAGS="$LDFLAGS"
10438
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10439
 
10440
    save_LIBS="$LIBS"
10441
    LIBS="$lt_cv_dlopen_libs $LIBS"
10442
 
10443 101 jeremybenn
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10444 82 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10445 101 jeremybenn
if test "${lt_cv_dlopen_self+set}" = set; then
10446 82 jeremybenn
  $as_echo_n "(cached) " >&6
10447 19 jeremybenn
else
10448
          if test "$cross_compiling" = yes; then :
10449
  lt_cv_dlopen_self=cross
10450
else
10451
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10452
  lt_status=$lt_dlunknown
10453 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10454 101 jeremybenn
#line 10454 "configure"
10455 19 jeremybenn
#include "confdefs.h"
10456
 
10457
#if HAVE_DLFCN_H
10458
#include 
10459
#endif
10460
 
10461
#include 
10462
 
10463
#ifdef RTLD_GLOBAL
10464
#  define LT_DLGLOBAL           RTLD_GLOBAL
10465
#else
10466
#  ifdef DL_GLOBAL
10467
#    define LT_DLGLOBAL         DL_GLOBAL
10468
#  else
10469
#    define LT_DLGLOBAL         0
10470
#  endif
10471
#endif
10472
 
10473
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10474
   find out it does not work in some platform. */
10475
#ifndef LT_DLLAZY_OR_NOW
10476
#  ifdef RTLD_LAZY
10477
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10478
#  else
10479
#    ifdef DL_LAZY
10480
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10481
#    else
10482
#      ifdef RTLD_NOW
10483
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10484
#      else
10485
#        ifdef DL_NOW
10486
#          define LT_DLLAZY_OR_NOW      DL_NOW
10487
#        else
10488
#          define LT_DLLAZY_OR_NOW      0
10489
#        endif
10490
#      endif
10491
#    endif
10492
#  endif
10493
#endif
10494
 
10495
void fnord() { int i=42;}
10496
int main ()
10497
{
10498
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10499
  int status = $lt_dlunknown;
10500
 
10501
  if (self)
10502
    {
10503
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10504
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10505
      /* dlclose (self); */
10506
    }
10507
  else
10508
    puts (dlerror ());
10509
 
10510 82 jeremybenn
  return status;
10511 19 jeremybenn
}
10512 82 jeremybenn
_LT_EOF
10513 101 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10514 19 jeremybenn
  (eval $ac_link) 2>&5
10515
  ac_status=$?
10516 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10518 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10519
    lt_status=$?
10520
    case x$lt_status in
10521
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10522
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10523
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10524
    esac
10525
  else :
10526
    # compilation failed
10527
    lt_cv_dlopen_self=no
10528
  fi
10529
fi
10530
rm -fr conftest*
10531
 
10532
 
10533
fi
10534 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10535 82 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
10536 19 jeremybenn
 
10537
    if test "x$lt_cv_dlopen_self" = xyes; then
10538
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10539 101 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10540 82 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10541 101 jeremybenn
if test "${lt_cv_dlopen_self_static+set}" = set; then
10542 82 jeremybenn
  $as_echo_n "(cached) " >&6
10543 19 jeremybenn
else
10544
          if test "$cross_compiling" = yes; then :
10545
  lt_cv_dlopen_self_static=cross
10546
else
10547
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10548
  lt_status=$lt_dlunknown
10549 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10550 101 jeremybenn
#line 10550 "configure"
10551 19 jeremybenn
#include "confdefs.h"
10552
 
10553
#if HAVE_DLFCN_H
10554
#include 
10555
#endif
10556
 
10557
#include 
10558
 
10559
#ifdef RTLD_GLOBAL
10560
#  define LT_DLGLOBAL           RTLD_GLOBAL
10561
#else
10562
#  ifdef DL_GLOBAL
10563
#    define LT_DLGLOBAL         DL_GLOBAL
10564
#  else
10565
#    define LT_DLGLOBAL         0
10566
#  endif
10567
#endif
10568
 
10569
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10570
   find out it does not work in some platform. */
10571
#ifndef LT_DLLAZY_OR_NOW
10572
#  ifdef RTLD_LAZY
10573
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10574
#  else
10575
#    ifdef DL_LAZY
10576
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10577
#    else
10578
#      ifdef RTLD_NOW
10579
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10580
#      else
10581
#        ifdef DL_NOW
10582
#          define LT_DLLAZY_OR_NOW      DL_NOW
10583
#        else
10584
#          define LT_DLLAZY_OR_NOW      0
10585
#        endif
10586
#      endif
10587
#    endif
10588
#  endif
10589
#endif
10590
 
10591
void fnord() { int i=42;}
10592
int main ()
10593
{
10594
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10595
  int status = $lt_dlunknown;
10596
 
10597
  if (self)
10598
    {
10599
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10600
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10601
      /* dlclose (self); */
10602
    }
10603
  else
10604
    puts (dlerror ());
10605
 
10606 82 jeremybenn
  return status;
10607 19 jeremybenn
}
10608 82 jeremybenn
_LT_EOF
10609 101 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610 19 jeremybenn
  (eval $ac_link) 2>&5
10611
  ac_status=$?
10612 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10614 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10615
    lt_status=$?
10616
    case x$lt_status in
10617
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10618
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10619
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10620
    esac
10621
  else :
10622
    # compilation failed
10623
    lt_cv_dlopen_self_static=no
10624
  fi
10625
fi
10626
rm -fr conftest*
10627
 
10628
 
10629
fi
10630 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10631 82 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10632 19 jeremybenn
    fi
10633
 
10634
    CPPFLAGS="$save_CPPFLAGS"
10635
    LDFLAGS="$save_LDFLAGS"
10636
    LIBS="$save_LIBS"
10637
    ;;
10638
  esac
10639
 
10640
  case $lt_cv_dlopen_self in
10641
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10642
  *) enable_dlopen_self=unknown ;;
10643
  esac
10644
 
10645
  case $lt_cv_dlopen_self_static in
10646
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10647
  *) enable_dlopen_self_static=unknown ;;
10648
  esac
10649
fi
10650
 
10651
 
10652
 
10653
 
10654
 
10655
 
10656
 
10657
 
10658
 
10659
 
10660
 
10661
 
10662
 
10663
 
10664
 
10665
 
10666
 
10667 82 jeremybenn
striplib=
10668
old_striplib=
10669 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10670 82 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10671
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10672
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10673
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10674 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10675 82 jeremybenn
$as_echo "yes" >&6; }
10676
else
10677
# FIXME - insert some real tests, host_os isn't really good enough
10678 19 jeremybenn
  case $host_os in
10679 82 jeremybenn
  darwin*)
10680
    if test -n "$STRIP" ; then
10681
      striplib="$STRIP -x"
10682
      old_striplib="$STRIP -S"
10683 101 jeremybenn
      { $as_echo "$as_me:$LINENO: result: yes" >&5
10684 82 jeremybenn
$as_echo "yes" >&6; }
10685 19 jeremybenn
    else
10686 101 jeremybenn
      { $as_echo "$as_me:$LINENO: result: no" >&5
10687 82 jeremybenn
$as_echo "no" >&6; }
10688 19 jeremybenn
    fi
10689
    ;;
10690
  *)
10691 101 jeremybenn
    { $as_echo "$as_me:$LINENO: result: no" >&5
10692 82 jeremybenn
$as_echo "no" >&6; }
10693 19 jeremybenn
    ;;
10694
  esac
10695
fi
10696
 
10697
 
10698
 
10699
 
10700
 
10701
 
10702
 
10703
 
10704
 
10705
 
10706
 
10707
 
10708 82 jeremybenn
  # Report which library types will actually be built
10709 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10710 82 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10711 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10712 82 jeremybenn
$as_echo "$can_build_shared" >&6; }
10713 19 jeremybenn
 
10714 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10715 82 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
10716
  test "$can_build_shared" = "no" && enable_shared=no
10717 19 jeremybenn
 
10718 82 jeremybenn
  # On AIX, shared libraries and static libraries use the same namespace, and
10719
  # are all built from PIC.
10720 19 jeremybenn
  case $host_os in
10721 82 jeremybenn
  aix3*)
10722 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10723 82 jeremybenn
    if test -n "$RANLIB"; then
10724
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10725
      postinstall_cmds='$RANLIB $lib'
10726 19 jeremybenn
    fi
10727
    ;;
10728
 
10729 82 jeremybenn
  aix[4-9]*)
10730
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10731
      test "$enable_shared" = yes && enable_static=no
10732 19 jeremybenn
    fi
10733
    ;;
10734
  esac
10735 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10736 82 jeremybenn
$as_echo "$enable_shared" >&6; }
10737 19 jeremybenn
 
10738 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10739 82 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
10740
  # Make sure either enable_shared or enable_static is yes.
10741
  test "$enable_shared" = yes || enable_static=yes
10742 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10743 82 jeremybenn
$as_echo "$enable_static" >&6; }
10744 19 jeremybenn
 
10745
 
10746
 
10747
 
10748
fi
10749
ac_ext=c
10750
ac_cpp='$CPP $CPPFLAGS'
10751
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10752
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10753
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10754
 
10755
CC="$lt_save_CC"
10756
 
10757
 
10758
 
10759
 
10760
 
10761
 
10762
 
10763
 
10764
 
10765
 
10766
 
10767
 
10768
 
10769 82 jeremybenn
        ac_config_commands="$ac_config_commands libtool"
10770 19 jeremybenn
 
10771
 
10772
 
10773
 
10774 82 jeremybenn
# Only expand once:
10775 19 jeremybenn
 
10776
 
10777 82 jeremybenn
am__api_version='1.11'
10778 19 jeremybenn
 
10779
# Find a good install program.  We prefer a C program (faster),
10780
# so one script is as good as another.  But avoid the broken or
10781
# incompatible versions:
10782
# SysV /etc/install, /usr/sbin/install
10783
# SunOS /usr/etc/install
10784
# IRIX /sbin/install
10785
# AIX /bin/install
10786
# AmigaOS /C/install, which installs bootblocks on floppy discs
10787
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10788
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10789
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10790
# OS/2's system install, which has a completely different semantic
10791
# ./install, which can be erroneously created by make from ./install.sh.
10792 82 jeremybenn
# Reject install programs that cannot install multiple files.
10793 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10794 82 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10795 19 jeremybenn
if test -z "$INSTALL"; then
10796 101 jeremybenn
if test "${ac_cv_path_install+set}" = set; then
10797 82 jeremybenn
  $as_echo_n "(cached) " >&6
10798 19 jeremybenn
else
10799
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800
for as_dir in $PATH
10801
do
10802
  IFS=$as_save_IFS
10803
  test -z "$as_dir" && as_dir=.
10804 101 jeremybenn
  # Account for people who put trailing slashes in PATH elements.
10805
case $as_dir/ in
10806
  ./ | .// | /cC/* | \
10807 19 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10808 101 jeremybenn
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10809 19 jeremybenn
  /usr/ucb/* ) ;;
10810
  *)
10811
    # OSF1 and SCO ODT 3.0 have their own names for install.
10812
    # Don't use installbsd from OSF since it installs stuff as root
10813
    # by default.
10814
    for ac_prog in ginstall scoinst install; do
10815
      for ac_exec_ext in '' $ac_executable_extensions; do
10816
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10817
          if test $ac_prog = install &&
10818
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10819
            # AIX install.  It has an incompatible calling convention.
10820
            :
10821
          elif test $ac_prog = install &&
10822
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10823
            # program-specific install script used by HP pwplus--don't use.
10824
            :
10825
          else
10826 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
10827
            echo one > conftest.one
10828
            echo two > conftest.two
10829
            mkdir conftest.dir
10830
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10831
              test -s conftest.one && test -s conftest.two &&
10832
              test -s conftest.dir/conftest.one &&
10833
              test -s conftest.dir/conftest.two
10834
            then
10835
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10836
              break 3
10837
            fi
10838 19 jeremybenn
          fi
10839
        fi
10840
      done
10841
    done
10842
    ;;
10843
esac
10844 82 jeremybenn
 
10845 101 jeremybenn
done
10846 19 jeremybenn
IFS=$as_save_IFS
10847
 
10848 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
10849 19 jeremybenn
 
10850
fi
10851
  if test "${ac_cv_path_install+set}" = set; then
10852
    INSTALL=$ac_cv_path_install
10853
  else
10854
    # As a last resort, use the slow shell script.  Don't cache a
10855
    # value for INSTALL within a source directory, because that will
10856
    # break other packages using the cache if that directory is
10857
    # removed, or if the value is a relative name.
10858
    INSTALL=$ac_install_sh
10859
  fi
10860
fi
10861 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10862 82 jeremybenn
$as_echo "$INSTALL" >&6; }
10863 19 jeremybenn
 
10864
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10865
# It thinks the first close brace ends the variable substitution.
10866
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10867
 
10868
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10869
 
10870
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10871
 
10872 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10873 82 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
10874 19 jeremybenn
# Just in case
10875
sleep 1
10876
echo timestamp > conftest.file
10877 82 jeremybenn
# Reject unsafe characters in $srcdir or the absolute working directory
10878
# name.  Accept space and tab only in the latter.
10879
am_lf='
10880
'
10881
case `pwd` in
10882
  *[\\\"\#\$\&\'\`$am_lf]*)
10883 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
10884
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
10885
   { (exit 1); exit 1; }; };;
10886 82 jeremybenn
esac
10887
case $srcdir in
10888
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10889 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
10890
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
10891
   { (exit 1); exit 1; }; };;
10892 82 jeremybenn
esac
10893
 
10894 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10895
# arguments.  Must try -L first in case configure is actually a
10896
# symlink; some systems play weird games with the mod time of symlinks
10897
# (eg FreeBSD returns the mod time of the symlink's containing
10898
# directory).
10899
if (
10900 82 jeremybenn
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10901 19 jeremybenn
   if test "$*" = "X"; then
10902
      # -L didn't work.
10903 82 jeremybenn
      set X `ls -t "$srcdir/configure" conftest.file`
10904 19 jeremybenn
   fi
10905
   rm -f conftest.file
10906
   if test "$*" != "X $srcdir/configure conftest.file" \
10907
      && test "$*" != "X conftest.file $srcdir/configure"; then
10908
 
10909
      # If neither matched, then we have a broken ls.  This can happen
10910
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10911
      # broken ls alias from the environment.  This has actually
10912
      # happened.  Such a system could not be considered "sane".
10913 101 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
10914
alias in your environment" >&5
10915
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
10916
alias in your environment" >&2;}
10917
   { (exit 1); exit 1; }; }
10918 19 jeremybenn
   fi
10919
 
10920
   test "$2" = conftest.file
10921
   )
10922
then
10923
   # Ok.
10924
   :
10925
else
10926 101 jeremybenn
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10927
Check your system clock" >&5
10928
$as_echo "$as_me: error: newly created file is older than distributed files!
10929
Check your system clock" >&2;}
10930
   { (exit 1); exit 1; }; }
10931 19 jeremybenn
fi
10932 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: yes" >&5
10933 82 jeremybenn
$as_echo "yes" >&6; }
10934 19 jeremybenn
test "$program_prefix" != NONE &&
10935
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10936
# Use a double $ so make ignores it.
10937
test "$program_suffix" != NONE &&
10938
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10939 82 jeremybenn
# Double any \ or $.
10940 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10941 82 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10942
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10943 19 jeremybenn
 
10944
# expand $ac_aux_dir to an absolute path
10945
am_aux_dir=`cd $ac_aux_dir && pwd`
10946
 
10947 82 jeremybenn
if test x"${MISSING+set}" != xset; then
10948
  case $am_aux_dir in
10949
  *\ * | *\     *)
10950
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10951
  *)
10952
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10953
  esac
10954
fi
10955 19 jeremybenn
# Use eval to expand $SHELL
10956
if eval "$MISSING --run true"; then
10957
  am_missing_run="$MISSING --run "
10958
else
10959
  am_missing_run=
10960 101 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10961 82 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10962 19 jeremybenn
fi
10963
 
10964 82 jeremybenn
if test x"${install_sh}" != xset; then
10965
  case $am_aux_dir in
10966
  *\ * | *\     *)
10967
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10968
  *)
10969
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10970
  esac
10971
fi
10972
 
10973
# Installed binaries are usually stripped using `strip' when the user
10974
# run `make install-strip'.  However `strip' might not be the right
10975
# tool to use in cross-compilation environments, therefore Automake
10976
# will honor the `STRIP' environment variable to overrule this program.
10977
if test "$cross_compiling" != no; then
10978
  if test -n "$ac_tool_prefix"; then
10979
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10980
set dummy ${ac_tool_prefix}strip; ac_word=$2
10981 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10982 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10983 101 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then
10984 82 jeremybenn
  $as_echo_n "(cached) " >&6
10985
else
10986
  if test -n "$STRIP"; then
10987
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10988
else
10989
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990
for as_dir in $PATH
10991
do
10992
  IFS=$as_save_IFS
10993
  test -z "$as_dir" && as_dir=.
10994 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
10995 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10996
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10997 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10998 82 jeremybenn
    break 2
10999
  fi
11000
done
11001 101 jeremybenn
done
11002 82 jeremybenn
IFS=$as_save_IFS
11003
 
11004
fi
11005
fi
11006
STRIP=$ac_cv_prog_STRIP
11007
if test -n "$STRIP"; then
11008 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
11009 82 jeremybenn
$as_echo "$STRIP" >&6; }
11010
else
11011 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11012 82 jeremybenn
$as_echo "no" >&6; }
11013
fi
11014
 
11015
 
11016
fi
11017
if test -z "$ac_cv_prog_STRIP"; then
11018
  ac_ct_STRIP=$STRIP
11019
  # Extract the first word of "strip", so it can be a program name with args.
11020
set dummy strip; ac_word=$2
11021 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11022 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11023 101 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11024 82 jeremybenn
  $as_echo_n "(cached) " >&6
11025
else
11026
  if test -n "$ac_ct_STRIP"; then
11027
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11028
else
11029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030
for as_dir in $PATH
11031
do
11032
  IFS=$as_save_IFS
11033
  test -z "$as_dir" && as_dir=.
11034 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11035 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11036
    ac_cv_prog_ac_ct_STRIP="strip"
11037 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11038 82 jeremybenn
    break 2
11039
  fi
11040
done
11041 101 jeremybenn
done
11042 82 jeremybenn
IFS=$as_save_IFS
11043
 
11044
fi
11045
fi
11046
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11047
if test -n "$ac_ct_STRIP"; then
11048 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11049 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
11050
else
11051 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11052 82 jeremybenn
$as_echo "no" >&6; }
11053
fi
11054
 
11055
  if test "x$ac_ct_STRIP" = x; then
11056
    STRIP=":"
11057
  else
11058
    case $cross_compiling:$ac_tool_warned in
11059
yes:)
11060 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11061 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11062
ac_tool_warned=yes ;;
11063
esac
11064
    STRIP=$ac_ct_STRIP
11065
  fi
11066
else
11067
  STRIP="$ac_cv_prog_STRIP"
11068
fi
11069
 
11070
fi
11071
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11072
 
11073 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
11074 82 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11075 19 jeremybenn
if test -z "$MKDIR_P"; then
11076 101 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then
11077 82 jeremybenn
  $as_echo_n "(cached) " >&6
11078 19 jeremybenn
else
11079
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11081
do
11082
  IFS=$as_save_IFS
11083
  test -z "$as_dir" && as_dir=.
11084 101 jeremybenn
  for ac_prog in mkdir gmkdir; do
11085 19 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
11086
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11087
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11088
             'mkdir (GNU coreutils) '* | \
11089
             'mkdir (coreutils) '* | \
11090
             'mkdir (fileutils) '4.1*)
11091
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11092
               break 3;;
11093
           esac
11094
         done
11095
       done
11096 101 jeremybenn
done
11097 19 jeremybenn
IFS=$as_save_IFS
11098
 
11099
fi
11100
 
11101
  if test "${ac_cv_path_mkdir+set}" = set; then
11102
    MKDIR_P="$ac_cv_path_mkdir -p"
11103
  else
11104
    # As a last resort, use the slow shell script.  Don't cache a
11105
    # value for MKDIR_P within a source directory, because that will
11106
    # break other packages using the cache if that directory is
11107
    # removed, or if the value is a relative name.
11108 101 jeremybenn
    test -d ./--version && rmdir ./--version
11109 19 jeremybenn
    MKDIR_P="$ac_install_sh -d"
11110
  fi
11111
fi
11112 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
11113 82 jeremybenn
$as_echo "$MKDIR_P" >&6; }
11114 19 jeremybenn
 
11115
mkdir_p="$MKDIR_P"
11116
case $mkdir_p in
11117
  [\\/$]* | ?:[\\/]*) ;;
11118
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11119
esac
11120
 
11121
for ac_prog in gawk mawk nawk awk
11122
do
11123
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11124
set dummy $ac_prog; ac_word=$2
11125 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11126 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11127 101 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then
11128 82 jeremybenn
  $as_echo_n "(cached) " >&6
11129 19 jeremybenn
else
11130
  if test -n "$AWK"; then
11131
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
11132
else
11133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134
for as_dir in $PATH
11135
do
11136
  IFS=$as_save_IFS
11137
  test -z "$as_dir" && as_dir=.
11138 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11139 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11140
    ac_cv_prog_AWK="$ac_prog"
11141 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11142 19 jeremybenn
    break 2
11143
  fi
11144
done
11145 101 jeremybenn
done
11146 19 jeremybenn
IFS=$as_save_IFS
11147
 
11148
fi
11149
fi
11150
AWK=$ac_cv_prog_AWK
11151
if test -n "$AWK"; then
11152 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11153 82 jeremybenn
$as_echo "$AWK" >&6; }
11154 19 jeremybenn
else
11155 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11156 82 jeremybenn
$as_echo "no" >&6; }
11157 19 jeremybenn
fi
11158
 
11159
 
11160
  test -n "$AWK" && break
11161
done
11162
 
11163 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11164 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11165
set x ${MAKE-make}
11166
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11167 101 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11168 82 jeremybenn
  $as_echo_n "(cached) " >&6
11169 19 jeremybenn
else
11170
  cat >conftest.make <<\_ACEOF
11171
SHELL = /bin/sh
11172
all:
11173
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11174
_ACEOF
11175
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11176
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11177
  *@@@%%%=?*=@@@%%%*)
11178
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11179
  *)
11180
    eval ac_cv_prog_make_${ac_make}_set=no;;
11181
esac
11182
rm -f conftest.make
11183
fi
11184
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11185 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
11186 82 jeremybenn
$as_echo "yes" >&6; }
11187 19 jeremybenn
  SET_MAKE=
11188
else
11189 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11190 82 jeremybenn
$as_echo "no" >&6; }
11191 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11192
fi
11193
 
11194
rm -rf .tst 2>/dev/null
11195
mkdir .tst 2>/dev/null
11196
if test -d .tst; then
11197
  am__leading_dot=.
11198
else
11199
  am__leading_dot=_
11200
fi
11201
rmdir .tst 2>/dev/null
11202
 
11203
DEPDIR="${am__leading_dot}deps"
11204
 
11205
ac_config_commands="$ac_config_commands depfiles"
11206
 
11207
 
11208
am_make=${MAKE-make}
11209
cat > confinc << 'END'
11210
am__doit:
11211 82 jeremybenn
        @echo this is the am__doit target
11212 19 jeremybenn
.PHONY: am__doit
11213
END
11214
# If we don't find an include directive, just comment out the code.
11215 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
11216 82 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
11217 19 jeremybenn
am__include="#"
11218
am__quote=
11219
_am_result=none
11220
# First try GNU make style include.
11221
echo "include confinc" > confmf
11222 82 jeremybenn
# Ignore all kinds of additional output from `make'.
11223
case `$am_make -s -f confmf 2> /dev/null` in #(
11224
*the\ am__doit\ target*)
11225
  am__include=include
11226
  am__quote=
11227
  _am_result=GNU
11228
  ;;
11229
esac
11230 19 jeremybenn
# Now try BSD make style include.
11231
if test "$am__include" = "#"; then
11232
   echo '.include "confinc"' > confmf
11233 82 jeremybenn
   case `$am_make -s -f confmf 2> /dev/null` in #(
11234
   *the\ am__doit\ target*)
11235
     am__include=.include
11236
     am__quote="\""
11237
     _am_result=BSD
11238
     ;;
11239
   esac
11240 19 jeremybenn
fi
11241
 
11242
 
11243 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
11244 82 jeremybenn
$as_echo "$_am_result" >&6; }
11245 19 jeremybenn
rm -f confinc confmf
11246
 
11247
# Check whether --enable-dependency-tracking was given.
11248 101 jeremybenn
if test "${enable_dependency_tracking+set}" = set; then
11249 19 jeremybenn
  enableval=$enable_dependency_tracking;
11250
fi
11251
 
11252
if test "x$enable_dependency_tracking" != xno; then
11253
  am_depcomp="$ac_aux_dir/depcomp"
11254
  AMDEPBACKSLASH='\'
11255
fi
11256
 if test "x$enable_dependency_tracking" != xno; then
11257
  AMDEP_TRUE=
11258
  AMDEP_FALSE='#'
11259
else
11260
  AMDEP_TRUE='#'
11261
  AMDEP_FALSE=
11262
fi
11263
 
11264
 
11265
if test "`cd $srcdir && pwd`" != "`pwd`"; then
11266
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11267
  # is not polluted with repeated "-I."
11268
  am__isrc=' -I$(srcdir)'
11269
  # test to see if srcdir already configured
11270
  if test -f $srcdir/config.status; then
11271 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11272
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11273
   { (exit 1); exit 1; }; }
11274 19 jeremybenn
  fi
11275
fi
11276
 
11277
# test whether we have cygpath
11278
if test -z "$CYGPATH_W"; then
11279
  if (cygpath --version) >/dev/null 2>/dev/null; then
11280
    CYGPATH_W='cygpath -w'
11281
  else
11282
    CYGPATH_W=echo
11283
  fi
11284
fi
11285
 
11286
 
11287
# Define the identity of the package.
11288
 PACKAGE='or1ksim'
11289 101 jeremybenn
 VERSION='2010-05-25'
11290 19 jeremybenn
 
11291
 
11292
cat >>confdefs.h <<_ACEOF
11293
#define PACKAGE "$PACKAGE"
11294
_ACEOF
11295
 
11296
 
11297
cat >>confdefs.h <<_ACEOF
11298
#define VERSION "$VERSION"
11299
_ACEOF
11300
 
11301
# Some tools Automake needs.
11302
 
11303
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11304
 
11305
 
11306
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11307
 
11308
 
11309
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11310
 
11311
 
11312
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11313
 
11314
 
11315
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11316
 
11317
# We need awk for the "check" target.  The system "awk" is bad on
11318
# some platforms.
11319
# Always define AMTAR for backward compatibility.
11320
 
11321
AMTAR=${AMTAR-"${am_missing_run}tar"}
11322
 
11323
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11324
 
11325
 
11326
 
11327
 
11328
depcc="$CC"   am_compiler_list=
11329
 
11330 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11331 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
11332 101 jeremybenn
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11333 82 jeremybenn
  $as_echo_n "(cached) " >&6
11334 19 jeremybenn
else
11335
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11336
  # We make a subdir and do the tests there.  Otherwise we can end up
11337
  # making bogus files that we don't know about and never remove.  For
11338
  # instance it was reported that on HP-UX the gcc test will end up
11339
  # making a dummy file named `D' -- because `-MD' means `put the output
11340
  # in D'.
11341
  mkdir conftest.dir
11342
  # Copy depcomp to subdir because otherwise we won't find it if we're
11343
  # using a relative directory.
11344
  cp "$am_depcomp" conftest.dir
11345
  cd conftest.dir
11346
  # We will build objects and dependencies in a subdirectory because
11347
  # it helps to detect inapplicable dependency modes.  For instance
11348
  # both Tru64's cc and ICC support -MD to output dependencies as a
11349
  # side effect of compilation, but ICC will put the dependencies in
11350
  # the current directory while Tru64 will put them in the object
11351
  # directory.
11352
  mkdir sub
11353
 
11354
  am_cv_CC_dependencies_compiler_type=none
11355
  if test "$am_compiler_list" = ""; then
11356
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11357
  fi
11358 82 jeremybenn
  am__universal=false
11359
  case " $depcc " in #(
11360
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11361
     esac
11362
 
11363 19 jeremybenn
  for depmode in $am_compiler_list; do
11364
    # Setup a source with many dependencies, because some compilers
11365
    # like to wrap large dependency lists on column 80 (with \), and
11366
    # we should not choose a depcomp mode which is confused by this.
11367
    #
11368
    # We need to recreate these files for each test, as the compiler may
11369
    # overwrite some of them when testing with obscure command lines.
11370
    # This happens at least with the AIX C compiler.
11371
    : > sub/conftest.c
11372
    for i in 1 2 3 4 5 6; do
11373
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11374
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11375
      # Solaris 8's {/usr,}/bin/sh.
11376
      touch sub/conftst$i.h
11377
    done
11378
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11379
 
11380 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11381
    # mode.  It turns out that the SunPro C++ compiler does not properly
11382
    # handle `-M -o', and we need to detect this.  Also, some Intel
11383
    # versions had trouble with output in subdirs
11384
    am__obj=sub/conftest.${OBJEXT-o}
11385
    am__minus_obj="-o $am__obj"
11386 19 jeremybenn
    case $depmode in
11387 82 jeremybenn
    gcc)
11388
      # This depmode causes a compiler race in universal mode.
11389
      test "$am__universal" = false || continue
11390
      ;;
11391 19 jeremybenn
    nosideeffect)
11392
      # after this tag, mechanisms are not by side-effect, so they'll
11393
      # only be used when explicitly requested
11394
      if test "x$enable_dependency_tracking" = xyes; then
11395
        continue
11396
      else
11397
        break
11398
      fi
11399
      ;;
11400 82 jeremybenn
    msvisualcpp | msvcmsys)
11401
      # This compiler won't grok `-c -o', but also, the minuso test has
11402
      # not run yet.  These depmodes are late enough in the game, and
11403
      # so weak that their functioning should not be impacted.
11404
      am__obj=conftest.${OBJEXT-o}
11405
      am__minus_obj=
11406
      ;;
11407 19 jeremybenn
    none) break ;;
11408
    esac
11409
    if depmode=$depmode \
11410 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11411 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11412 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11413 19 jeremybenn
         >/dev/null 2>conftest.err &&
11414
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11415
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11416 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11417 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11418
      # icc doesn't choke on unknown options, it will just issue warnings
11419
      # or remarks (even with -Werror).  So we grep stderr for any message
11420
      # that says an option was ignored or not supported.
11421
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11422
      #   icc: Command line warning: ignoring option '-M'; no argument required
11423
      # The diagnosis changed in icc 8.0:
11424
      #   icc: Command line remark: option '-MP' not supported
11425
      if (grep 'ignoring option' conftest.err ||
11426
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11427
        am_cv_CC_dependencies_compiler_type=$depmode
11428
        break
11429
      fi
11430
    fi
11431
  done
11432
 
11433
  cd ..
11434
  rm -rf conftest.dir
11435
else
11436
  am_cv_CC_dependencies_compiler_type=none
11437
fi
11438
 
11439
fi
11440 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11441 82 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11442 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11443
 
11444
 if
11445
  test "x$enable_dependency_tracking" != xno \
11446
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11447
  am__fastdepCC_TRUE=
11448
  am__fastdepCC_FALSE='#'
11449
else
11450
  am__fastdepCC_TRUE='#'
11451
  am__fastdepCC_FALSE=
11452
fi
11453
 
11454
 
11455
 
11456 91 jeremybenn
 
11457 82 jeremybenn
ac_config_headers="$ac_config_headers config.h"
11458
 
11459
 
11460
 
11461
 
11462
# make sure we are using a recent autoconf version
11463
 
11464
 
11465
# yuck.
11466
case "$target_cpu" in
11467
or32*)  CPU_ARCH=or32;
11468
        ARCH_ISA=OR32;
11469
 
11470 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
11471
#define OR32_TYPES 1
11472
_ACEOF
11473 82 jeremybenn
;;
11474
dlx*)   CPU_ARCH=dlx;
11475
        ARCH_ISA=DLX;;
11476 101 jeremybenn
*)      { $as_echo "$as_me:$LINENO: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
11477 82 jeremybenn
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
11478
        CPU_ARCH=or32;
11479
        ARCH_ISA=OR32;
11480
 
11481 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
11482
#define OR32_TYPES 1
11483
_ACEOF
11484 82 jeremybenn
;;
11485
esac
11486
 
11487
# determine endianism from target CPU name. If it has "little" in the name,
11488
# then its litte endian, otherwise its big endian (default for OR1K)
11489
case "$target_cpu" in
11490
*little*)
11491 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
11492
#define OR32_LITTLE_ENDIAN 1
11493
_ACEOF
11494 82 jeremybenn
;;
11495
       *)
11496 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
11497
#define OR32_BIG_ENDIAN 1
11498
_ACEOF
11499 82 jeremybenn
;;
11500
esac
11501
 
11502
 
11503
 
11504
# Set the CFLAGS we want
11505
CFLAGS="$CFLAGS -g -Wall -Werror -O2 -D$ARCH_ISA"
11506
 
11507
# By default we simply use the C compiler to build assembly code.
11508
 
11509
test "${CCAS+set}" = set || CCAS=$CC
11510
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11511
 
11512
 
11513
 
11514
depcc="$CCAS"   am_compiler_list=
11515
 
11516 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11517 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
11518 101 jeremybenn
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11519 82 jeremybenn
  $as_echo_n "(cached) " >&6
11520 19 jeremybenn
else
11521
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11522
  # We make a subdir and do the tests there.  Otherwise we can end up
11523
  # making bogus files that we don't know about and never remove.  For
11524
  # instance it was reported that on HP-UX the gcc test will end up
11525
  # making a dummy file named `D' -- because `-MD' means `put the output
11526
  # in D'.
11527
  mkdir conftest.dir
11528
  # Copy depcomp to subdir because otherwise we won't find it if we're
11529
  # using a relative directory.
11530
  cp "$am_depcomp" conftest.dir
11531
  cd conftest.dir
11532
  # We will build objects and dependencies in a subdirectory because
11533
  # it helps to detect inapplicable dependency modes.  For instance
11534
  # both Tru64's cc and ICC support -MD to output dependencies as a
11535
  # side effect of compilation, but ICC will put the dependencies in
11536
  # the current directory while Tru64 will put them in the object
11537
  # directory.
11538
  mkdir sub
11539
 
11540 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11541 19 jeremybenn
  if test "$am_compiler_list" = ""; then
11542
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11543
  fi
11544 82 jeremybenn
  am__universal=false
11545
 
11546
 
11547 19 jeremybenn
  for depmode in $am_compiler_list; do
11548
    # Setup a source with many dependencies, because some compilers
11549
    # like to wrap large dependency lists on column 80 (with \), and
11550
    # we should not choose a depcomp mode which is confused by this.
11551
    #
11552
    # We need to recreate these files for each test, as the compiler may
11553
    # overwrite some of them when testing with obscure command lines.
11554
    # This happens at least with the AIX C compiler.
11555
    : > sub/conftest.c
11556
    for i in 1 2 3 4 5 6; do
11557
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11558
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11559
      # Solaris 8's {/usr,}/bin/sh.
11560
      touch sub/conftst$i.h
11561
    done
11562
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11563
 
11564 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11565
    # mode.  It turns out that the SunPro C++ compiler does not properly
11566
    # handle `-M -o', and we need to detect this.  Also, some Intel
11567
    # versions had trouble with output in subdirs
11568
    am__obj=sub/conftest.${OBJEXT-o}
11569
    am__minus_obj="-o $am__obj"
11570 19 jeremybenn
    case $depmode in
11571 82 jeremybenn
    gcc)
11572
      # This depmode causes a compiler race in universal mode.
11573
      test "$am__universal" = false || continue
11574
      ;;
11575 19 jeremybenn
    nosideeffect)
11576
      # after this tag, mechanisms are not by side-effect, so they'll
11577
      # only be used when explicitly requested
11578
      if test "x$enable_dependency_tracking" = xyes; then
11579
        continue
11580
      else
11581
        break
11582
      fi
11583
      ;;
11584 82 jeremybenn
    msvisualcpp | msvcmsys)
11585
      # This compiler won't grok `-c -o', but also, the minuso test has
11586
      # not run yet.  These depmodes are late enough in the game, and
11587
      # so weak that their functioning should not be impacted.
11588
      am__obj=conftest.${OBJEXT-o}
11589
      am__minus_obj=
11590
      ;;
11591 19 jeremybenn
    none) break ;;
11592
    esac
11593
    if depmode=$depmode \
11594 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11595 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11596 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11597 19 jeremybenn
         >/dev/null 2>conftest.err &&
11598
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11599
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11600 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11601 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11602
      # icc doesn't choke on unknown options, it will just issue warnings
11603
      # or remarks (even with -Werror).  So we grep stderr for any message
11604
      # that says an option was ignored or not supported.
11605
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11606
      #   icc: Command line warning: ignoring option '-M'; no argument required
11607
      # The diagnosis changed in icc 8.0:
11608
      #   icc: Command line remark: option '-MP' not supported
11609
      if (grep 'ignoring option' conftest.err ||
11610
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11611 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11612 19 jeremybenn
        break
11613
      fi
11614
    fi
11615
  done
11616
 
11617
  cd ..
11618
  rm -rf conftest.dir
11619
else
11620 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11621 19 jeremybenn
fi
11622
 
11623
fi
11624 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11625 82 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11626
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11627 19 jeremybenn
 
11628
 if
11629
  test "x$enable_dependency_tracking" != xno \
11630 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11631
  am__fastdepCCAS_TRUE=
11632
  am__fastdepCCAS_FALSE='#'
11633 19 jeremybenn
else
11634 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11635
  am__fastdepCCAS_FALSE=
11636 19 jeremybenn
fi
11637
 
11638
 
11639
 
11640
ac_ext=c
11641
ac_cpp='$CPP $CPPFLAGS'
11642
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11643
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11644
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11645
if test -n "$ac_tool_prefix"; then
11646
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11647
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11648 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11649 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11650 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11651 82 jeremybenn
  $as_echo_n "(cached) " >&6
11652 19 jeremybenn
else
11653
  if test -n "$CC"; then
11654
  ac_cv_prog_CC="$CC" # Let the user override the test.
11655
else
11656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657
for as_dir in $PATH
11658
do
11659
  IFS=$as_save_IFS
11660
  test -z "$as_dir" && as_dir=.
11661 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11662 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11663
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11664 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 19 jeremybenn
    break 2
11666
  fi
11667
done
11668 101 jeremybenn
done
11669 19 jeremybenn
IFS=$as_save_IFS
11670
 
11671
fi
11672
fi
11673
CC=$ac_cv_prog_CC
11674
if test -n "$CC"; then
11675 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11676 82 jeremybenn
$as_echo "$CC" >&6; }
11677 19 jeremybenn
else
11678 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11679 82 jeremybenn
$as_echo "no" >&6; }
11680 19 jeremybenn
fi
11681
 
11682
 
11683
fi
11684
if test -z "$ac_cv_prog_CC"; then
11685
  ac_ct_CC=$CC
11686
  # Extract the first word of "gcc", so it can be a program name with args.
11687
set dummy gcc; ac_word=$2
11688 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11689 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11690 101 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11691 82 jeremybenn
  $as_echo_n "(cached) " >&6
11692 19 jeremybenn
else
11693
  if test -n "$ac_ct_CC"; then
11694
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11695
else
11696
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697
for as_dir in $PATH
11698
do
11699
  IFS=$as_save_IFS
11700
  test -z "$as_dir" && as_dir=.
11701 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11702 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11703
    ac_cv_prog_ac_ct_CC="gcc"
11704 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11705 19 jeremybenn
    break 2
11706
  fi
11707
done
11708 101 jeremybenn
done
11709 19 jeremybenn
IFS=$as_save_IFS
11710
 
11711
fi
11712
fi
11713
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11714
if test -n "$ac_ct_CC"; then
11715 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11716 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11717 19 jeremybenn
else
11718 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11719 82 jeremybenn
$as_echo "no" >&6; }
11720 19 jeremybenn
fi
11721
 
11722
  if test "x$ac_ct_CC" = x; then
11723
    CC=""
11724
  else
11725
    case $cross_compiling:$ac_tool_warned in
11726
yes:)
11727 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11728 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11729 19 jeremybenn
ac_tool_warned=yes ;;
11730
esac
11731
    CC=$ac_ct_CC
11732
  fi
11733
else
11734
  CC="$ac_cv_prog_CC"
11735
fi
11736
 
11737
if test -z "$CC"; then
11738
          if test -n "$ac_tool_prefix"; then
11739
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11740
set dummy ${ac_tool_prefix}cc; ac_word=$2
11741 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11742 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11743 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11744 82 jeremybenn
  $as_echo_n "(cached) " >&6
11745 19 jeremybenn
else
11746
  if test -n "$CC"; then
11747
  ac_cv_prog_CC="$CC" # Let the user override the test.
11748
else
11749
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750
for as_dir in $PATH
11751
do
11752
  IFS=$as_save_IFS
11753
  test -z "$as_dir" && as_dir=.
11754 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11755 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11757 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 19 jeremybenn
    break 2
11759
  fi
11760
done
11761 101 jeremybenn
done
11762 19 jeremybenn
IFS=$as_save_IFS
11763
 
11764
fi
11765
fi
11766
CC=$ac_cv_prog_CC
11767
if test -n "$CC"; then
11768 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11769 82 jeremybenn
$as_echo "$CC" >&6; }
11770 19 jeremybenn
else
11771 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11772 82 jeremybenn
$as_echo "no" >&6; }
11773 19 jeremybenn
fi
11774
 
11775
 
11776
  fi
11777
fi
11778
if test -z "$CC"; then
11779
  # Extract the first word of "cc", so it can be a program name with args.
11780
set dummy cc; ac_word=$2
11781 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11782 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11783 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11784 82 jeremybenn
  $as_echo_n "(cached) " >&6
11785 19 jeremybenn
else
11786
  if test -n "$CC"; then
11787
  ac_cv_prog_CC="$CC" # Let the user override the test.
11788
else
11789
  ac_prog_rejected=no
11790
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791
for as_dir in $PATH
11792
do
11793
  IFS=$as_save_IFS
11794
  test -z "$as_dir" && as_dir=.
11795 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11796 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11797
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11798
       ac_prog_rejected=yes
11799
       continue
11800
     fi
11801
    ac_cv_prog_CC="cc"
11802 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 19 jeremybenn
    break 2
11804
  fi
11805
done
11806 101 jeremybenn
done
11807 19 jeremybenn
IFS=$as_save_IFS
11808
 
11809
if test $ac_prog_rejected = yes; then
11810
  # We found a bogon in the path, so make sure we never use it.
11811
  set dummy $ac_cv_prog_CC
11812
  shift
11813
  if test $# != 0; then
11814
    # We chose a different compiler from the bogus one.
11815
    # However, it has the same basename, so the bogon will be chosen
11816
    # first if we set CC to just the basename; use the full file name.
11817
    shift
11818
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11819
  fi
11820
fi
11821
fi
11822
fi
11823
CC=$ac_cv_prog_CC
11824
if test -n "$CC"; then
11825 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11826 82 jeremybenn
$as_echo "$CC" >&6; }
11827 19 jeremybenn
else
11828 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11829 82 jeremybenn
$as_echo "no" >&6; }
11830 19 jeremybenn
fi
11831
 
11832
 
11833
fi
11834
if test -z "$CC"; then
11835
  if test -n "$ac_tool_prefix"; then
11836
  for ac_prog in cl.exe
11837
  do
11838
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11839
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11840 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11841 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11842 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11843 82 jeremybenn
  $as_echo_n "(cached) " >&6
11844 19 jeremybenn
else
11845
  if test -n "$CC"; then
11846
  ac_cv_prog_CC="$CC" # Let the user override the test.
11847
else
11848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11849
for as_dir in $PATH
11850
do
11851
  IFS=$as_save_IFS
11852
  test -z "$as_dir" && as_dir=.
11853 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11854 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11855
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11856 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11857 19 jeremybenn
    break 2
11858
  fi
11859
done
11860 101 jeremybenn
done
11861 19 jeremybenn
IFS=$as_save_IFS
11862
 
11863
fi
11864
fi
11865
CC=$ac_cv_prog_CC
11866
if test -n "$CC"; then
11867 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11868 82 jeremybenn
$as_echo "$CC" >&6; }
11869 19 jeremybenn
else
11870 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11871 82 jeremybenn
$as_echo "no" >&6; }
11872 19 jeremybenn
fi
11873
 
11874
 
11875
    test -n "$CC" && break
11876
  done
11877
fi
11878
if test -z "$CC"; then
11879
  ac_ct_CC=$CC
11880
  for ac_prog in cl.exe
11881
do
11882
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11883
set dummy $ac_prog; ac_word=$2
11884 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11885 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11886 101 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11887 82 jeremybenn
  $as_echo_n "(cached) " >&6
11888 19 jeremybenn
else
11889
  if test -n "$ac_ct_CC"; then
11890
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11891
else
11892
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893
for as_dir in $PATH
11894
do
11895
  IFS=$as_save_IFS
11896
  test -z "$as_dir" && as_dir=.
11897 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11898 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11899
    ac_cv_prog_ac_ct_CC="$ac_prog"
11900 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11901 19 jeremybenn
    break 2
11902
  fi
11903
done
11904 101 jeremybenn
done
11905 19 jeremybenn
IFS=$as_save_IFS
11906
 
11907
fi
11908
fi
11909
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11910
if test -n "$ac_ct_CC"; then
11911 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11912 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11913 19 jeremybenn
else
11914 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11915 82 jeremybenn
$as_echo "no" >&6; }
11916 19 jeremybenn
fi
11917
 
11918
 
11919
  test -n "$ac_ct_CC" && break
11920
done
11921
 
11922
  if test "x$ac_ct_CC" = x; then
11923
    CC=""
11924
  else
11925
    case $cross_compiling:$ac_tool_warned in
11926
yes:)
11927 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11928 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11929 19 jeremybenn
ac_tool_warned=yes ;;
11930
esac
11931
    CC=$ac_ct_CC
11932
  fi
11933
fi
11934
 
11935
fi
11936
 
11937
 
11938 101 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11939 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11940 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11941
See \`config.log' for more details." >&5
11942
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11943
See \`config.log' for more details." >&2;}
11944
   { (exit 1); exit 1; }; }; }
11945 19 jeremybenn
 
11946
# Provide some information about the compiler.
11947 101 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11948 82 jeremybenn
set X $ac_compile
11949
ac_compiler=$2
11950 101 jeremybenn
{ (ac_try="$ac_compiler --version >&5"
11951 19 jeremybenn
case "(($ac_try" in
11952
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953
  *) ac_try_echo=$ac_try;;
11954
esac
11955 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11956
$as_echo "$ac_try_echo") >&5
11957
  (eval "$ac_compiler --version >&5") 2>&5
11958 19 jeremybenn
  ac_status=$?
11959 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960
  (exit $ac_status); }
11961
{ (ac_try="$ac_compiler -v >&5"
11962
case "(($ac_try" in
11963
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964
  *) ac_try_echo=$ac_try;;
11965
esac
11966
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11967
$as_echo "$ac_try_echo") >&5
11968
  (eval "$ac_compiler -v >&5") 2>&5
11969
  ac_status=$?
11970
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971
  (exit $ac_status); }
11972
{ (ac_try="$ac_compiler -V >&5"
11973
case "(($ac_try" in
11974
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975
  *) ac_try_echo=$ac_try;;
11976
esac
11977
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11978
$as_echo "$ac_try_echo") >&5
11979
  (eval "$ac_compiler -V >&5") 2>&5
11980
  ac_status=$?
11981
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982
  (exit $ac_status); }
11983 19 jeremybenn
 
11984 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11985 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11986 101 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
11987 82 jeremybenn
  $as_echo_n "(cached) " >&6
11988 19 jeremybenn
else
11989 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
11990
/* confdefs.h.  */
11991
_ACEOF
11992
cat confdefs.h >>conftest.$ac_ext
11993
cat >>conftest.$ac_ext <<_ACEOF
11994 19 jeremybenn
/* end confdefs.h.  */
11995
 
11996
int
11997
main ()
11998
{
11999
#ifndef __GNUC__
12000
       choke me
12001
#endif
12002
 
12003
  ;
12004
  return 0;
12005
}
12006
_ACEOF
12007 101 jeremybenn
rm -f conftest.$ac_objext
12008
if { (ac_try="$ac_compile"
12009
case "(($ac_try" in
12010
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011
  *) ac_try_echo=$ac_try;;
12012
esac
12013
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12014
$as_echo "$ac_try_echo") >&5
12015
  (eval "$ac_compile") 2>conftest.er1
12016
  ac_status=$?
12017
  grep -v '^ *+' conftest.er1 >conftest.err
12018
  rm -f conftest.er1
12019
  cat conftest.err >&5
12020
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021
  (exit $ac_status); } && {
12022
         test -z "$ac_c_werror_flag" ||
12023
         test ! -s conftest.err
12024
       } && test -s conftest.$ac_objext; then
12025 19 jeremybenn
  ac_compiler_gnu=yes
12026
else
12027 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12028
sed 's/^/| /' conftest.$ac_ext >&5
12029
 
12030
        ac_compiler_gnu=no
12031 19 jeremybenn
fi
12032 101 jeremybenn
 
12033 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034
ac_cv_c_compiler_gnu=$ac_compiler_gnu
12035
 
12036
fi
12037 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12038 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12039
if test $ac_compiler_gnu = yes; then
12040
  GCC=yes
12041
else
12042
  GCC=
12043
fi
12044 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
12045
ac_save_CFLAGS=$CFLAGS
12046 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12047 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
12048 101 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
12049 82 jeremybenn
  $as_echo_n "(cached) " >&6
12050 19 jeremybenn
else
12051
  ac_save_c_werror_flag=$ac_c_werror_flag
12052
   ac_c_werror_flag=yes
12053
   ac_cv_prog_cc_g=no
12054
   CFLAGS="-g"
12055 101 jeremybenn
   cat >conftest.$ac_ext <<_ACEOF
12056
/* confdefs.h.  */
12057
_ACEOF
12058
cat confdefs.h >>conftest.$ac_ext
12059
cat >>conftest.$ac_ext <<_ACEOF
12060 19 jeremybenn
/* end confdefs.h.  */
12061
 
12062
int
12063
main ()
12064
{
12065
 
12066
  ;
12067
  return 0;
12068
}
12069
_ACEOF
12070 101 jeremybenn
rm -f conftest.$ac_objext
12071
if { (ac_try="$ac_compile"
12072
case "(($ac_try" in
12073
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074
  *) ac_try_echo=$ac_try;;
12075
esac
12076
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12077
$as_echo "$ac_try_echo") >&5
12078
  (eval "$ac_compile") 2>conftest.er1
12079
  ac_status=$?
12080
  grep -v '^ *+' conftest.er1 >conftest.err
12081
  rm -f conftest.er1
12082
  cat conftest.err >&5
12083
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084
  (exit $ac_status); } && {
12085
         test -z "$ac_c_werror_flag" ||
12086
         test ! -s conftest.err
12087
       } && test -s conftest.$ac_objext; then
12088 19 jeremybenn
  ac_cv_prog_cc_g=yes
12089
else
12090 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12091
sed 's/^/| /' conftest.$ac_ext >&5
12092
 
12093
        CFLAGS=""
12094
      cat >conftest.$ac_ext <<_ACEOF
12095
/* confdefs.h.  */
12096
_ACEOF
12097
cat confdefs.h >>conftest.$ac_ext
12098
cat >>conftest.$ac_ext <<_ACEOF
12099 19 jeremybenn
/* end confdefs.h.  */
12100
 
12101
int
12102
main ()
12103
{
12104
 
12105
  ;
12106
  return 0;
12107
}
12108
_ACEOF
12109 101 jeremybenn
rm -f conftest.$ac_objext
12110
if { (ac_try="$ac_compile"
12111
case "(($ac_try" in
12112
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113
  *) ac_try_echo=$ac_try;;
12114
esac
12115
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12116
$as_echo "$ac_try_echo") >&5
12117
  (eval "$ac_compile") 2>conftest.er1
12118
  ac_status=$?
12119
  grep -v '^ *+' conftest.er1 >conftest.err
12120
  rm -f conftest.er1
12121
  cat conftest.err >&5
12122
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123
  (exit $ac_status); } && {
12124
         test -z "$ac_c_werror_flag" ||
12125
         test ! -s conftest.err
12126
       } && test -s conftest.$ac_objext; then
12127
  :
12128
else
12129
  $as_echo "$as_me: failed program was:" >&5
12130
sed 's/^/| /' conftest.$ac_ext >&5
12131 98 jeremybenn
 
12132 101 jeremybenn
        ac_c_werror_flag=$ac_save_c_werror_flag
12133 19 jeremybenn
         CFLAGS="-g"
12134 101 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
12135
/* confdefs.h.  */
12136
_ACEOF
12137
cat confdefs.h >>conftest.$ac_ext
12138
cat >>conftest.$ac_ext <<_ACEOF
12139 19 jeremybenn
/* end confdefs.h.  */
12140
 
12141
int
12142
main ()
12143
{
12144
 
12145
  ;
12146
  return 0;
12147
}
12148
_ACEOF
12149 101 jeremybenn
rm -f conftest.$ac_objext
12150
if { (ac_try="$ac_compile"
12151
case "(($ac_try" in
12152
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153
  *) ac_try_echo=$ac_try;;
12154
esac
12155
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12156
$as_echo "$ac_try_echo") >&5
12157
  (eval "$ac_compile") 2>conftest.er1
12158
  ac_status=$?
12159
  grep -v '^ *+' conftest.er1 >conftest.err
12160
  rm -f conftest.er1
12161
  cat conftest.err >&5
12162
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163
  (exit $ac_status); } && {
12164
         test -z "$ac_c_werror_flag" ||
12165
         test ! -s conftest.err
12166
       } && test -s conftest.$ac_objext; then
12167 19 jeremybenn
  ac_cv_prog_cc_g=yes
12168 101 jeremybenn
else
12169
  $as_echo "$as_me: failed program was:" >&5
12170
sed 's/^/| /' conftest.$ac_ext >&5
12171
 
12172
 
12173 19 jeremybenn
fi
12174 101 jeremybenn
 
12175 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12176
fi
12177 101 jeremybenn
 
12178 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12179
fi
12180 101 jeremybenn
 
12181 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12182
   ac_c_werror_flag=$ac_save_c_werror_flag
12183
fi
12184 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12185 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
12186 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
12187
  CFLAGS=$ac_save_CFLAGS
12188
elif test $ac_cv_prog_cc_g = yes; then
12189
  if test "$GCC" = yes; then
12190
    CFLAGS="-g -O2"
12191
  else
12192
    CFLAGS="-g"
12193
  fi
12194
else
12195
  if test "$GCC" = yes; then
12196
    CFLAGS="-O2"
12197
  else
12198
    CFLAGS=
12199
  fi
12200
fi
12201 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12202 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12203 101 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then
12204 82 jeremybenn
  $as_echo_n "(cached) " >&6
12205 19 jeremybenn
else
12206
  ac_cv_prog_cc_c89=no
12207
ac_save_CC=$CC
12208 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12209
/* confdefs.h.  */
12210
_ACEOF
12211
cat confdefs.h >>conftest.$ac_ext
12212
cat >>conftest.$ac_ext <<_ACEOF
12213 19 jeremybenn
/* end confdefs.h.  */
12214
#include 
12215
#include 
12216
#include 
12217
#include 
12218
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12219
struct buf { int x; };
12220
FILE * (*rcsopen) (struct buf *, struct stat *, int);
12221
static char *e (p, i)
12222
     char **p;
12223
     int i;
12224
{
12225
  return p[i];
12226
}
12227
static char *f (char * (*g) (char **, int), char **p, ...)
12228
{
12229
  char *s;
12230
  va_list v;
12231
  va_start (v,p);
12232
  s = g (p, va_arg (v,int));
12233
  va_end (v);
12234
  return s;
12235
}
12236
 
12237
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12238
   function prototypes and stuff, but not '\xHH' hex character constants.
12239
   These don't provoke an error unfortunately, instead are silently treated
12240
   as 'x'.  The following induces an error, until -std is added to get
12241
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12242
   array size at least.  It's necessary to write '\x00'==0 to get something
12243
   that's true only with -std.  */
12244
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12245
 
12246
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12247
   inside strings and character constants.  */
12248
#define FOO(x) 'x'
12249
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12250
 
12251
int test (int i, double x);
12252
struct s1 {int (*f) (int a);};
12253
struct s2 {int (*f) (double a);};
12254
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12255
int argc;
12256
char **argv;
12257
int
12258
main ()
12259
{
12260
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12261
  ;
12262
  return 0;
12263
}
12264
_ACEOF
12265
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12266
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12267
do
12268
  CC="$ac_save_CC $ac_arg"
12269 101 jeremybenn
  rm -f conftest.$ac_objext
12270
if { (ac_try="$ac_compile"
12271
case "(($ac_try" in
12272
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273
  *) ac_try_echo=$ac_try;;
12274
esac
12275
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12276
$as_echo "$ac_try_echo") >&5
12277
  (eval "$ac_compile") 2>conftest.er1
12278
  ac_status=$?
12279
  grep -v '^ *+' conftest.er1 >conftest.err
12280
  rm -f conftest.er1
12281
  cat conftest.err >&5
12282
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283
  (exit $ac_status); } && {
12284
         test -z "$ac_c_werror_flag" ||
12285
         test ! -s conftest.err
12286
       } && test -s conftest.$ac_objext; then
12287 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
12288 101 jeremybenn
else
12289
  $as_echo "$as_me: failed program was:" >&5
12290
sed 's/^/| /' conftest.$ac_ext >&5
12291
 
12292
 
12293 19 jeremybenn
fi
12294 101 jeremybenn
 
12295 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext
12296
  test "x$ac_cv_prog_cc_c89" != "xno" && break
12297
done
12298
rm -f conftest.$ac_ext
12299
CC=$ac_save_CC
12300
 
12301
fi
12302
# AC_CACHE_VAL
12303
case "x$ac_cv_prog_cc_c89" in
12304
  x)
12305 101 jeremybenn
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
12306 82 jeremybenn
$as_echo "none needed" >&6; } ;;
12307 19 jeremybenn
  xno)
12308 101 jeremybenn
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12309 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
12310 19 jeremybenn
  *)
12311
    CC="$CC $ac_cv_prog_cc_c89"
12312 101 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12313 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12314 19 jeremybenn
esac
12315
 
12316
 
12317
ac_ext=c
12318
ac_cpp='$CPP $CPPFLAGS'
12319
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12320
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12321
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12322
 
12323
if test "x$CC" != xcc; then
12324 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
12325 82 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12326 19 jeremybenn
else
12327 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
12328 82 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12329 19 jeremybenn
fi
12330 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
12331 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12332 101 jeremybenn
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
12333 82 jeremybenn
  $as_echo_n "(cached) " >&6
12334 19 jeremybenn
else
12335 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
12336
/* confdefs.h.  */
12337
_ACEOF
12338
cat confdefs.h >>conftest.$ac_ext
12339
cat >>conftest.$ac_ext <<_ACEOF
12340 19 jeremybenn
/* end confdefs.h.  */
12341
 
12342
int
12343
main ()
12344
{
12345
 
12346
  ;
12347
  return 0;
12348
}
12349
_ACEOF
12350
# Make sure it works both with $CC and with simple cc.
12351
# We do the test twice because some compilers refuse to overwrite an
12352
# existing .o file with -o, though they will create one.
12353
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12354
rm -f conftest2.*
12355 101 jeremybenn
if { (case "(($ac_try" in
12356 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357
  *) ac_try_echo=$ac_try;;
12358
esac
12359 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12360
$as_echo "$ac_try_echo") >&5
12361 19 jeremybenn
  (eval "$ac_try") 2>&5
12362
  ac_status=$?
12363 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364
  (exit $ac_status); } &&
12365
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
12366 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367
  *) ac_try_echo=$ac_try;;
12368
esac
12369 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12370
$as_echo "$ac_try_echo") >&5
12371 19 jeremybenn
  (eval "$ac_try") 2>&5
12372
  ac_status=$?
12373 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374
  (exit $ac_status); };
12375 19 jeremybenn
then
12376
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12377
  if test "x$CC" != xcc; then
12378
    # Test first that cc exists at all.
12379
    if { ac_try='cc -c conftest.$ac_ext >&5'
12380 101 jeremybenn
  { (case "(($ac_try" in
12381 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382
  *) ac_try_echo=$ac_try;;
12383
esac
12384 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12385
$as_echo "$ac_try_echo") >&5
12386 19 jeremybenn
  (eval "$ac_try") 2>&5
12387
  ac_status=$?
12388 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389
  (exit $ac_status); }; }; then
12390 19 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12391
      rm -f conftest2.*
12392 101 jeremybenn
      if { (case "(($ac_try" in
12393 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394
  *) ac_try_echo=$ac_try;;
12395
esac
12396 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12397
$as_echo "$ac_try_echo") >&5
12398 19 jeremybenn
  (eval "$ac_try") 2>&5
12399
  ac_status=$?
12400 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401
  (exit $ac_status); } &&
12402
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
12403 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404
  *) ac_try_echo=$ac_try;;
12405
esac
12406 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12407
$as_echo "$ac_try_echo") >&5
12408 19 jeremybenn
  (eval "$ac_try") 2>&5
12409
  ac_status=$?
12410 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411
  (exit $ac_status); };
12412 19 jeremybenn
      then
12413
        # cc works too.
12414
        :
12415
      else
12416
        # cc exists but doesn't like -o.
12417
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
12418
      fi
12419
    fi
12420
  fi
12421
else
12422
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12423
fi
12424
rm -f core conftest*
12425
 
12426
fi
12427
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12428 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12429 82 jeremybenn
$as_echo "yes" >&6; }
12430 19 jeremybenn
else
12431 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12432 82 jeremybenn
$as_echo "no" >&6; }
12433 19 jeremybenn
 
12434 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
12435
#define NO_MINUS_C_MINUS_O 1
12436
_ACEOF
12437 19 jeremybenn
 
12438
fi
12439
 
12440
# FIXME: we rely on the cache variable name because
12441
# there is no other way.
12442
set dummy $CC
12443 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12444
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12445
if test "$am_t" != yes; then
12446 19 jeremybenn
   # Losing compiler, so override with the script.
12447
   # FIXME: It is wrong to rewrite CC.
12448
   # But if we don't then we get into trouble of one sort or another.
12449
   # A longer-term fix would be to have automake use am__CC in this case,
12450
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12451
   CC="$am_aux_dir/compile $CC"
12452
fi
12453
 
12454
 
12455
 
12456 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12457 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12458
set x ${MAKE-make}
12459
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12460 101 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
12461 82 jeremybenn
  $as_echo_n "(cached) " >&6
12462 19 jeremybenn
else
12463
  cat >conftest.make <<\_ACEOF
12464
SHELL = /bin/sh
12465
all:
12466
        @echo '@@@%%%=$(MAKE)=@@@%%%'
12467
_ACEOF
12468
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12469
case `${MAKE-make} -f conftest.make 2>/dev/null` in
12470
  *@@@%%%=?*=@@@%%%*)
12471
    eval ac_cv_prog_make_${ac_make}_set=yes;;
12472
  *)
12473
    eval ac_cv_prog_make_${ac_make}_set=no;;
12474
esac
12475
rm -f conftest.make
12476
fi
12477
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12478 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12479 82 jeremybenn
$as_echo "yes" >&6; }
12480 19 jeremybenn
  SET_MAKE=
12481
else
12482 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12483 82 jeremybenn
$as_echo "no" >&6; }
12484 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
12485
fi
12486
 
12487
 
12488 101 jeremybenn
# Find a good install program.  We prefer a C program (faster),
12489
# so one script is as good as another.  But avoid the broken or
12490
# incompatible versions:
12491
# SysV /etc/install, /usr/sbin/install
12492
# SunOS /usr/etc/install
12493
# IRIX /sbin/install
12494
# AIX /bin/install
12495
# AmigaOS /C/install, which installs bootblocks on floppy discs
12496
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12497
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12498
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12499
# OS/2's system install, which has a completely different semantic
12500
# ./install, which can be erroneously created by make from ./install.sh.
12501
# Reject install programs that cannot install multiple files.
12502
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12503
$as_echo_n "checking for a BSD-compatible install... " >&6; }
12504
if test -z "$INSTALL"; then
12505
if test "${ac_cv_path_install+set}" = set; then
12506
  $as_echo_n "(cached) " >&6
12507
else
12508
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509
for as_dir in $PATH
12510
do
12511
  IFS=$as_save_IFS
12512
  test -z "$as_dir" && as_dir=.
12513
  # Account for people who put trailing slashes in PATH elements.
12514
case $as_dir/ in
12515
  ./ | .// | /cC/* | \
12516
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12517
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12518
  /usr/ucb/* ) ;;
12519
  *)
12520
    # OSF1 and SCO ODT 3.0 have their own names for install.
12521
    # Don't use installbsd from OSF since it installs stuff as root
12522
    # by default.
12523
    for ac_prog in ginstall scoinst install; do
12524
      for ac_exec_ext in '' $ac_executable_extensions; do
12525
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12526
          if test $ac_prog = install &&
12527
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12528
            # AIX install.  It has an incompatible calling convention.
12529
            :
12530
          elif test $ac_prog = install &&
12531
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12532
            # program-specific install script used by HP pwplus--don't use.
12533
            :
12534
          else
12535
            rm -rf conftest.one conftest.two conftest.dir
12536
            echo one > conftest.one
12537
            echo two > conftest.two
12538
            mkdir conftest.dir
12539
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12540
              test -s conftest.one && test -s conftest.two &&
12541
              test -s conftest.dir/conftest.one &&
12542
              test -s conftest.dir/conftest.two
12543
            then
12544
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12545
              break 3
12546
            fi
12547
          fi
12548
        fi
12549
      done
12550
    done
12551
    ;;
12552
esac
12553 82 jeremybenn
 
12554 101 jeremybenn
done
12555
IFS=$as_save_IFS
12556
 
12557
rm -rf conftest.one conftest.two conftest.dir
12558
 
12559
fi
12560
  if test "${ac_cv_path_install+set}" = set; then
12561
    INSTALL=$ac_cv_path_install
12562
  else
12563
    # As a last resort, use the slow shell script.  Don't cache a
12564
    # value for INSTALL within a source directory, because that will
12565
    # break other packages using the cache if that directory is
12566
    # removed, or if the value is a relative name.
12567
    INSTALL=$ac_install_sh
12568
  fi
12569
fi
12570
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12571
$as_echo "$INSTALL" >&6; }
12572
 
12573
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12574
# It thinks the first close brace ends the variable substitution.
12575
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12576
 
12577
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12578
 
12579
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12580
 
12581 19 jeremybenn
# Extract the first word of "ar", so it can be a program name with args.
12582
set dummy ar; ac_word=$2
12583 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12584 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
12585 101 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then
12586 82 jeremybenn
  $as_echo_n "(cached) " >&6
12587 19 jeremybenn
else
12588
  if test -n "$AR"; then
12589
  ac_cv_prog_AR="$AR" # Let the user override the test.
12590
else
12591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592
for as_dir in $PATH
12593
do
12594
  IFS=$as_save_IFS
12595
  test -z "$as_dir" && as_dir=.
12596 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
12597 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12598
    ac_cv_prog_AR="ar"
12599 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12600 19 jeremybenn
    break 2
12601
  fi
12602
done
12603 101 jeremybenn
done
12604 19 jeremybenn
IFS=$as_save_IFS
12605
 
12606
fi
12607
fi
12608
AR=$ac_cv_prog_AR
12609
if test -n "$AR"; then
12610 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
12611 82 jeremybenn
$as_echo "$AR" >&6; }
12612 19 jeremybenn
else
12613 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12614 82 jeremybenn
$as_echo "no" >&6; }
12615 19 jeremybenn
fi
12616
 
12617
 
12618
 
12619
# Set default for ARFLAGS, since autoconf does not have a macro for it.
12620
# This allows people to set it when running configure or make
12621
test -n "$ARFLAGS" || ARFLAGS="cr"
12622
 
12623 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12624 82 jeremybenn
$as_echo_n "checking return type of signal handlers... " >&6; }
12625 101 jeremybenn
if test "${ac_cv_type_signal+set}" = set; then
12626 82 jeremybenn
  $as_echo_n "(cached) " >&6
12627 19 jeremybenn
else
12628 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
12629
/* confdefs.h.  */
12630
_ACEOF
12631
cat confdefs.h >>conftest.$ac_ext
12632
cat >>conftest.$ac_ext <<_ACEOF
12633 19 jeremybenn
/* end confdefs.h.  */
12634
#include 
12635
#include 
12636
 
12637
int
12638
main ()
12639
{
12640
return *(signal (0, 0)) (0) == 1;
12641
  ;
12642
  return 0;
12643
}
12644
_ACEOF
12645 101 jeremybenn
rm -f conftest.$ac_objext
12646
if { (ac_try="$ac_compile"
12647
case "(($ac_try" in
12648
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649
  *) ac_try_echo=$ac_try;;
12650
esac
12651
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12652
$as_echo "$ac_try_echo") >&5
12653
  (eval "$ac_compile") 2>conftest.er1
12654
  ac_status=$?
12655
  grep -v '^ *+' conftest.er1 >conftest.err
12656
  rm -f conftest.er1
12657
  cat conftest.err >&5
12658
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659
  (exit $ac_status); } && {
12660
         test -z "$ac_c_werror_flag" ||
12661
         test ! -s conftest.err
12662
       } && test -s conftest.$ac_objext; then
12663 19 jeremybenn
  ac_cv_type_signal=int
12664
else
12665 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12666
sed 's/^/| /' conftest.$ac_ext >&5
12667
 
12668
        ac_cv_type_signal=void
12669 19 jeremybenn
fi
12670 101 jeremybenn
 
12671 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672
fi
12673 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12674 82 jeremybenn
$as_echo "$ac_cv_type_signal" >&6; }
12675 19 jeremybenn
 
12676
cat >>confdefs.h <<_ACEOF
12677
#define RETSIGTYPE $ac_cv_type_signal
12678
_ACEOF
12679
 
12680
 
12681 101 jeremybenn
 
12682
 
12683
 
12684
 
12685
 
12686
 
12687
 
12688
 
12689
 
12690
 
12691
 
12692
 
12693
 
12694
 
12695
 
12696
 
12697
 
12698
 
12699
 
12700
 
12701
 
12702
 
12703 82 jeremybenn
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h      \
12704
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
12705
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
12706
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h
12707 101 jeremybenn
do
12708
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12709
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12710
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12711
$as_echo_n "checking for $ac_header... " >&6; }
12712
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12713
  $as_echo_n "(cached) " >&6
12714
fi
12715
ac_res=`eval 'as_val=${'$as_ac_Header'}
12716
                 $as_echo "$as_val"'`
12717
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12718
$as_echo "$ac_res" >&6; }
12719
else
12720
  # Is the header compilable?
12721
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12722
$as_echo_n "checking $ac_header usability... " >&6; }
12723
cat >conftest.$ac_ext <<_ACEOF
12724
/* confdefs.h.  */
12725
_ACEOF
12726
cat confdefs.h >>conftest.$ac_ext
12727
cat >>conftest.$ac_ext <<_ACEOF
12728
/* end confdefs.h.  */
12729
$ac_includes_default
12730
#include <$ac_header>
12731
_ACEOF
12732
rm -f conftest.$ac_objext
12733
if { (ac_try="$ac_compile"
12734
case "(($ac_try" in
12735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736
  *) ac_try_echo=$ac_try;;
12737
esac
12738
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12739
$as_echo "$ac_try_echo") >&5
12740
  (eval "$ac_compile") 2>conftest.er1
12741
  ac_status=$?
12742
  grep -v '^ *+' conftest.er1 >conftest.err
12743
  rm -f conftest.er1
12744
  cat conftest.err >&5
12745
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746
  (exit $ac_status); } && {
12747
         test -z "$ac_c_werror_flag" ||
12748
         test ! -s conftest.err
12749
       } && test -s conftest.$ac_objext; then
12750
  ac_header_compiler=yes
12751
else
12752
  $as_echo "$as_me: failed program was:" >&5
12753
sed 's/^/| /' conftest.$ac_ext >&5
12754
 
12755
        ac_header_compiler=no
12756
fi
12757
 
12758
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12759
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12760
$as_echo "$ac_header_compiler" >&6; }
12761
 
12762
# Is the header present?
12763
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12764
$as_echo_n "checking $ac_header presence... " >&6; }
12765
cat >conftest.$ac_ext <<_ACEOF
12766
/* confdefs.h.  */
12767
_ACEOF
12768
cat confdefs.h >>conftest.$ac_ext
12769
cat >>conftest.$ac_ext <<_ACEOF
12770
/* end confdefs.h.  */
12771
#include <$ac_header>
12772
_ACEOF
12773
if { (ac_try="$ac_cpp conftest.$ac_ext"
12774
case "(($ac_try" in
12775
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776
  *) ac_try_echo=$ac_try;;
12777
esac
12778
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12779
$as_echo "$ac_try_echo") >&5
12780
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12781
  ac_status=$?
12782
  grep -v '^ *+' conftest.er1 >conftest.err
12783
  rm -f conftest.er1
12784
  cat conftest.err >&5
12785
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786
  (exit $ac_status); } >/dev/null && {
12787
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12788
         test ! -s conftest.err
12789
       }; then
12790
  ac_header_preproc=yes
12791
else
12792
  $as_echo "$as_me: failed program was:" >&5
12793
sed 's/^/| /' conftest.$ac_ext >&5
12794
 
12795
  ac_header_preproc=no
12796
fi
12797
 
12798
rm -f conftest.err conftest.$ac_ext
12799
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12800
$as_echo "$ac_header_preproc" >&6; }
12801
 
12802
# So?  What about this header?
12803
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12804
  yes:no: )
12805
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12806
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12807
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12808
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12809
    ac_header_preproc=yes
12810
    ;;
12811
  no:yes:* )
12812
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12813
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12814
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12815
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12816
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12817
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12818
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12819
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12820
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12821
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12822
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12823
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12824
    ( cat <<\_ASBOX
12825
## ------------------------------------- ##
12826
## Report this to openrisc@opencores.org ##
12827
## ------------------------------------- ##
12828
_ASBOX
12829
     ) | sed "s/^/$as_me: WARNING:     /" >&2
12830
    ;;
12831
esac
12832
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12833
$as_echo_n "checking for $ac_header... " >&6; }
12834
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12835
  $as_echo_n "(cached) " >&6
12836
else
12837
  eval "$as_ac_Header=\$ac_header_preproc"
12838
fi
12839
ac_res=`eval 'as_val=${'$as_ac_Header'}
12840
                 $as_echo "$as_val"'`
12841
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12842
$as_echo "$ac_res" >&6; }
12843
 
12844
fi
12845
as_val=`eval 'as_val=${'$as_ac_Header'}
12846
                 $as_echo "$as_val"'`
12847
   if test "x$as_val" = x""yes; then
12848 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
12849
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12850 19 jeremybenn
_ACEOF
12851
 
12852
fi
12853
 
12854
done
12855
 
12856 101 jeremybenn
 
12857
 
12858
 
12859
 
12860
 
12861
 
12862
 
12863 19 jeremybenn
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
12864 101 jeremybenn
do
12865
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12866
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12867
$as_echo_n "checking for $ac_func... " >&6; }
12868
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12869
  $as_echo_n "(cached) " >&6
12870
else
12871
  cat >conftest.$ac_ext <<_ACEOF
12872
/* confdefs.h.  */
12873
_ACEOF
12874
cat confdefs.h >>conftest.$ac_ext
12875
cat >>conftest.$ac_ext <<_ACEOF
12876
/* end confdefs.h.  */
12877
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12878
   For example, HP-UX 11i  declares gettimeofday.  */
12879
#define $ac_func innocuous_$ac_func
12880
 
12881
/* System header to define __stub macros and hopefully few prototypes,
12882
    which can conflict with char $ac_func (); below.
12883
    Prefer  to  if __STDC__ is defined, since
12884
     exists even on freestanding compilers.  */
12885
 
12886
#ifdef __STDC__
12887
# include 
12888
#else
12889
# include 
12890
#endif
12891
 
12892
#undef $ac_func
12893
 
12894
/* Override any GCC internal prototype to avoid an error.
12895
   Use char because int might match the return type of a GCC
12896
   builtin and then its argument prototype would still apply.  */
12897
#ifdef __cplusplus
12898
extern "C"
12899
#endif
12900
char $ac_func ();
12901
/* The GNU C library defines this for functions which it implements
12902
    to always fail with ENOSYS.  Some functions are actually named
12903
    something starting with __ and the normal name is an alias.  */
12904
#if defined __stub_$ac_func || defined __stub___$ac_func
12905
choke me
12906
#endif
12907
 
12908
int
12909
main ()
12910
{
12911
return $ac_func ();
12912
  ;
12913
  return 0;
12914
}
12915
_ACEOF
12916
rm -f conftest.$ac_objext conftest$ac_exeext
12917
if { (ac_try="$ac_link"
12918
case "(($ac_try" in
12919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920
  *) ac_try_echo=$ac_try;;
12921
esac
12922
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12923
$as_echo "$ac_try_echo") >&5
12924
  (eval "$ac_link") 2>conftest.er1
12925
  ac_status=$?
12926
  grep -v '^ *+' conftest.er1 >conftest.err
12927
  rm -f conftest.er1
12928
  cat conftest.err >&5
12929
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930
  (exit $ac_status); } && {
12931
         test -z "$ac_c_werror_flag" ||
12932
         test ! -s conftest.err
12933
       } && test -s conftest$ac_exeext && {
12934
         test "$cross_compiling" = yes ||
12935
         $as_test_x conftest$ac_exeext
12936
       }; then
12937
  eval "$as_ac_var=yes"
12938
else
12939
  $as_echo "$as_me: failed program was:" >&5
12940
sed 's/^/| /' conftest.$ac_ext >&5
12941
 
12942
        eval "$as_ac_var=no"
12943
fi
12944
 
12945
rm -rf conftest.dSYM
12946
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12947
      conftest$ac_exeext conftest.$ac_ext
12948
fi
12949
ac_res=`eval 'as_val=${'$as_ac_var'}
12950
                 $as_echo "$as_val"'`
12951
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12952
$as_echo "$ac_res" >&6; }
12953
as_val=`eval 'as_val=${'$as_ac_var'}
12954
                 $as_echo "$as_val"'`
12955
   if test "x$as_val" = x""yes; then
12956 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12957 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12958 19 jeremybenn
_ACEOF
12959
 
12960
fi
12961
done
12962
 
12963 101 jeremybenn
 
12964
 
12965
 
12966
 
12967 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
12968 101 jeremybenn
do
12969
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12970
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12971
$as_echo_n "checking for $ac_func... " >&6; }
12972
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12973
  $as_echo_n "(cached) " >&6
12974
else
12975
  cat >conftest.$ac_ext <<_ACEOF
12976
/* confdefs.h.  */
12977
_ACEOF
12978
cat confdefs.h >>conftest.$ac_ext
12979
cat >>conftest.$ac_ext <<_ACEOF
12980
/* end confdefs.h.  */
12981
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12982
   For example, HP-UX 11i  declares gettimeofday.  */
12983
#define $ac_func innocuous_$ac_func
12984
 
12985
/* System header to define __stub macros and hopefully few prototypes,
12986
    which can conflict with char $ac_func (); below.
12987
    Prefer  to  if __STDC__ is defined, since
12988
     exists even on freestanding compilers.  */
12989
 
12990
#ifdef __STDC__
12991
# include 
12992
#else
12993
# include 
12994
#endif
12995
 
12996
#undef $ac_func
12997
 
12998
/* Override any GCC internal prototype to avoid an error.
12999
   Use char because int might match the return type of a GCC
13000
   builtin and then its argument prototype would still apply.  */
13001
#ifdef __cplusplus
13002
extern "C"
13003
#endif
13004
char $ac_func ();
13005
/* The GNU C library defines this for functions which it implements
13006
    to always fail with ENOSYS.  Some functions are actually named
13007
    something starting with __ and the normal name is an alias.  */
13008
#if defined __stub_$ac_func || defined __stub___$ac_func
13009
choke me
13010
#endif
13011
 
13012
int
13013
main ()
13014
{
13015
return $ac_func ();
13016
  ;
13017
  return 0;
13018
}
13019
_ACEOF
13020
rm -f conftest.$ac_objext conftest$ac_exeext
13021
if { (ac_try="$ac_link"
13022
case "(($ac_try" in
13023
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024
  *) ac_try_echo=$ac_try;;
13025
esac
13026
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13027
$as_echo "$ac_try_echo") >&5
13028
  (eval "$ac_link") 2>conftest.er1
13029
  ac_status=$?
13030
  grep -v '^ *+' conftest.er1 >conftest.err
13031
  rm -f conftest.er1
13032
  cat conftest.err >&5
13033
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034
  (exit $ac_status); } && {
13035
         test -z "$ac_c_werror_flag" ||
13036
         test ! -s conftest.err
13037
       } && test -s conftest$ac_exeext && {
13038
         test "$cross_compiling" = yes ||
13039
         $as_test_x conftest$ac_exeext
13040
       }; then
13041
  eval "$as_ac_var=yes"
13042
else
13043
  $as_echo "$as_me: failed program was:" >&5
13044
sed 's/^/| /' conftest.$ac_ext >&5
13045
 
13046
        eval "$as_ac_var=no"
13047
fi
13048
 
13049
rm -rf conftest.dSYM
13050
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13051
      conftest$ac_exeext conftest.$ac_ext
13052
fi
13053
ac_res=`eval 'as_val=${'$as_ac_var'}
13054
                 $as_echo "$as_val"'`
13055
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13056
$as_echo "$ac_res" >&6; }
13057
as_val=`eval 'as_val=${'$as_ac_var'}
13058
                 $as_echo "$as_val"'`
13059
   if test "x$as_val" = x""yes; then
13060 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13061 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13062 19 jeremybenn
_ACEOF
13063
 
13064
fi
13065
done
13066
 
13067 101 jeremybenn
 
13068 19 jeremybenn
for ac_func in basename
13069 101 jeremybenn
do
13070
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13071
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13072
$as_echo_n "checking for $ac_func... " >&6; }
13073
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13074
  $as_echo_n "(cached) " >&6
13075
else
13076
  cat >conftest.$ac_ext <<_ACEOF
13077
/* confdefs.h.  */
13078
_ACEOF
13079
cat confdefs.h >>conftest.$ac_ext
13080
cat >>conftest.$ac_ext <<_ACEOF
13081
/* end confdefs.h.  */
13082
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
13083
   For example, HP-UX 11i  declares gettimeofday.  */
13084
#define $ac_func innocuous_$ac_func
13085
 
13086
/* System header to define __stub macros and hopefully few prototypes,
13087
    which can conflict with char $ac_func (); below.
13088
    Prefer  to  if __STDC__ is defined, since
13089
     exists even on freestanding compilers.  */
13090
 
13091
#ifdef __STDC__
13092
# include 
13093
#else
13094
# include 
13095
#endif
13096
 
13097
#undef $ac_func
13098
 
13099
/* Override any GCC internal prototype to avoid an error.
13100
   Use char because int might match the return type of a GCC
13101
   builtin and then its argument prototype would still apply.  */
13102
#ifdef __cplusplus
13103
extern "C"
13104
#endif
13105
char $ac_func ();
13106
/* The GNU C library defines this for functions which it implements
13107
    to always fail with ENOSYS.  Some functions are actually named
13108
    something starting with __ and the normal name is an alias.  */
13109
#if defined __stub_$ac_func || defined __stub___$ac_func
13110
choke me
13111
#endif
13112
 
13113
int
13114
main ()
13115
{
13116
return $ac_func ();
13117
  ;
13118
  return 0;
13119
}
13120
_ACEOF
13121
rm -f conftest.$ac_objext conftest$ac_exeext
13122
if { (ac_try="$ac_link"
13123
case "(($ac_try" in
13124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125
  *) ac_try_echo=$ac_try;;
13126
esac
13127
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13128
$as_echo "$ac_try_echo") >&5
13129
  (eval "$ac_link") 2>conftest.er1
13130
  ac_status=$?
13131
  grep -v '^ *+' conftest.er1 >conftest.err
13132
  rm -f conftest.er1
13133
  cat conftest.err >&5
13134
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135
  (exit $ac_status); } && {
13136
         test -z "$ac_c_werror_flag" ||
13137
         test ! -s conftest.err
13138
       } && test -s conftest$ac_exeext && {
13139
         test "$cross_compiling" = yes ||
13140
         $as_test_x conftest$ac_exeext
13141
       }; then
13142
  eval "$as_ac_var=yes"
13143
else
13144
  $as_echo "$as_me: failed program was:" >&5
13145
sed 's/^/| /' conftest.$ac_ext >&5
13146
 
13147
        eval "$as_ac_var=no"
13148
fi
13149
 
13150
rm -rf conftest.dSYM
13151
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13152
      conftest$ac_exeext conftest.$ac_ext
13153
fi
13154
ac_res=`eval 'as_val=${'$as_ac_var'}
13155
                 $as_echo "$as_val"'`
13156
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13157
$as_echo "$ac_res" >&6; }
13158
as_val=`eval 'as_val=${'$as_ac_var'}
13159
                 $as_echo "$as_val"'`
13160
   if test "x$as_val" = x""yes; then
13161 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13162 101 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13163 19 jeremybenn
_ACEOF
13164
 
13165
fi
13166
done
13167
 
13168 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
13169 82 jeremybenn
$as_echo_n "checking for working strcoll... " >&6; }
13170 101 jeremybenn
if test "${ac_cv_func_strcoll_works+set}" = set; then
13171 82 jeremybenn
  $as_echo_n "(cached) " >&6
13172 19 jeremybenn
else
13173 101 jeremybenn
  if test "$cross_compiling" = yes; then
13174 19 jeremybenn
  ac_cv_func_strcoll_works=no
13175
else
13176 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
13177
/* confdefs.h.  */
13178
_ACEOF
13179
cat confdefs.h >>conftest.$ac_ext
13180
cat >>conftest.$ac_ext <<_ACEOF
13181 19 jeremybenn
/* end confdefs.h.  */
13182
$ac_includes_default
13183
int
13184
main ()
13185
{
13186
return (strcoll ("abc", "def") >= 0 ||
13187
         strcoll ("ABC", "DEF") >= 0 ||
13188
         strcoll ("123", "456") >= 0)
13189
  ;
13190
  return 0;
13191
}
13192
_ACEOF
13193 101 jeremybenn
rm -f conftest$ac_exeext
13194
if { (ac_try="$ac_link"
13195
case "(($ac_try" in
13196
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197
  *) ac_try_echo=$ac_try;;
13198
esac
13199
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13200
$as_echo "$ac_try_echo") >&5
13201
  (eval "$ac_link") 2>&5
13202
  ac_status=$?
13203
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13205
  { (case "(($ac_try" in
13206
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207
  *) ac_try_echo=$ac_try;;
13208
esac
13209
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13210
$as_echo "$ac_try_echo") >&5
13211
  (eval "$ac_try") 2>&5
13212
  ac_status=$?
13213
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214
  (exit $ac_status); }; }; then
13215 19 jeremybenn
  ac_cv_func_strcoll_works=yes
13216
else
13217 101 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
13218
$as_echo "$as_me: failed program was:" >&5
13219
sed 's/^/| /' conftest.$ac_ext >&5
13220
 
13221
( exit $ac_status )
13222
ac_cv_func_strcoll_works=no
13223 19 jeremybenn
fi
13224 101 jeremybenn
rm -rf conftest.dSYM
13225
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13226 19 jeremybenn
fi
13227
 
13228 101 jeremybenn
 
13229 19 jeremybenn
fi
13230 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13231 82 jeremybenn
$as_echo "$ac_cv_func_strcoll_works" >&6; }
13232 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
13233
 
13234 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
13235
#define HAVE_STRCOLL 1
13236
_ACEOF
13237 19 jeremybenn
 
13238
fi
13239
 
13240 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether I_PUSH is declared" >&5
13241
$as_echo_n "checking whether I_PUSH is declared... " >&6; }
13242
if test "${ac_cv_have_decl_I_PUSH+set}" = set; then
13243
  $as_echo_n "(cached) " >&6
13244
else
13245
  cat >conftest.$ac_ext <<_ACEOF
13246
/* confdefs.h.  */
13247
_ACEOF
13248
cat confdefs.h >>conftest.$ac_ext
13249
cat >>conftest.$ac_ext <<_ACEOF
13250
/* end confdefs.h.  */
13251
\
13252 82 jeremybenn
               #include 
13253 101 jeremybenn
 
13254
int
13255
main ()
13256
{
13257
#ifndef I_PUSH
13258
  (void) I_PUSH;
13259
#endif
13260
 
13261
  ;
13262
  return 0;
13263
}
13264
_ACEOF
13265
rm -f conftest.$ac_objext
13266
if { (ac_try="$ac_compile"
13267
case "(($ac_try" in
13268
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269
  *) ac_try_echo=$ac_try;;
13270
esac
13271
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13272
$as_echo "$ac_try_echo") >&5
13273
  (eval "$ac_compile") 2>conftest.er1
13274
  ac_status=$?
13275
  grep -v '^ *+' conftest.er1 >conftest.err
13276
  rm -f conftest.er1
13277
  cat conftest.err >&5
13278
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279
  (exit $ac_status); } && {
13280
         test -z "$ac_c_werror_flag" ||
13281
         test ! -s conftest.err
13282
       } && test -s conftest.$ac_objext; then
13283
  ac_cv_have_decl_I_PUSH=yes
13284 19 jeremybenn
else
13285 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13286
sed 's/^/| /' conftest.$ac_ext >&5
13287
 
13288
        ac_cv_have_decl_I_PUSH=no
13289 19 jeremybenn
fi
13290
 
13291 101 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292
fi
13293
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_I_PUSH" >&5
13294
$as_echo "$ac_cv_have_decl_I_PUSH" >&6; }
13295
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then
13296
 
13297 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13298 101 jeremybenn
#define HAVE_DECL_I_PUSH 1
13299 19 jeremybenn
_ACEOF
13300 101 jeremybenn
 
13301
 
13302
else
13303
  cat >>confdefs.h <<_ACEOF
13304
#define HAVE_DECL_I_PUSH 0
13305
_ACEOF
13306
 
13307
 
13308
fi
13309
{ $as_echo "$as_me:$LINENO: checking whether rl_event_hook is declared" >&5
13310
$as_echo_n "checking whether rl_event_hook is declared... " >&6; }
13311
if test "${ac_cv_have_decl_rl_event_hook+set}" = set; then
13312
  $as_echo_n "(cached) " >&6
13313
else
13314
  cat >conftest.$ac_ext <<_ACEOF
13315
/* confdefs.h.  */
13316
_ACEOF
13317
cat confdefs.h >>conftest.$ac_ext
13318
cat >>conftest.$ac_ext <<_ACEOF
13319
/* end confdefs.h.  */
13320
\
13321 82 jeremybenn
               #include 
13322 101 jeremybenn
 
13323
int
13324
main ()
13325
{
13326
#ifndef rl_event_hook
13327
  (void) rl_event_hook;
13328
#endif
13329
 
13330
  ;
13331
  return 0;
13332
}
13333
_ACEOF
13334
rm -f conftest.$ac_objext
13335
if { (ac_try="$ac_compile"
13336
case "(($ac_try" in
13337
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338
  *) ac_try_echo=$ac_try;;
13339
esac
13340
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13341
$as_echo "$ac_try_echo") >&5
13342
  (eval "$ac_compile") 2>conftest.er1
13343
  ac_status=$?
13344
  grep -v '^ *+' conftest.er1 >conftest.err
13345
  rm -f conftest.er1
13346
  cat conftest.err >&5
13347
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348
  (exit $ac_status); } && {
13349
         test -z "$ac_c_werror_flag" ||
13350
         test ! -s conftest.err
13351
       } && test -s conftest.$ac_objext; then
13352
  ac_cv_have_decl_rl_event_hook=yes
13353 19 jeremybenn
else
13354 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13355
sed 's/^/| /' conftest.$ac_ext >&5
13356
 
13357
        ac_cv_have_decl_rl_event_hook=no
13358 19 jeremybenn
fi
13359
 
13360 101 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13361
fi
13362
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_event_hook" >&5
13363
$as_echo "$ac_cv_have_decl_rl_event_hook" >&6; }
13364
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then
13365
 
13366 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13367 101 jeremybenn
#define HAVE_DECL_RL_EVENT_HOOK 1
13368 19 jeremybenn
_ACEOF
13369
 
13370 101 jeremybenn
 
13371
else
13372
  cat >>confdefs.h <<_ACEOF
13373
#define HAVE_DECL_RL_EVENT_HOOK 0
13374
_ACEOF
13375
 
13376
 
13377
fi
13378
 
13379
 
13380
 
13381
 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13382 82 jeremybenn
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13383 101 jeremybenn
if test "${ac_cv_c_bigendian+set}" = set; then
13384 82 jeremybenn
  $as_echo_n "(cached) " >&6
13385 19 jeremybenn
else
13386 82 jeremybenn
  ac_cv_c_bigendian=unknown
13387
    # See if we're dealing with a universal compiler.
13388 101 jeremybenn
    cat >conftest.$ac_ext <<_ACEOF
13389
/* confdefs.h.  */
13390
_ACEOF
13391
cat confdefs.h >>conftest.$ac_ext
13392
cat >>conftest.$ac_ext <<_ACEOF
13393 19 jeremybenn
/* end confdefs.h.  */
13394 82 jeremybenn
#ifndef __APPLE_CC__
13395
               not a universal capable compiler
13396
             #endif
13397
             typedef int dummy;
13398
 
13399 19 jeremybenn
_ACEOF
13400 101 jeremybenn
rm -f conftest.$ac_objext
13401
if { (ac_try="$ac_compile"
13402
case "(($ac_try" in
13403
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404
  *) ac_try_echo=$ac_try;;
13405
esac
13406
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13407
$as_echo "$ac_try_echo") >&5
13408
  (eval "$ac_compile") 2>conftest.er1
13409
  ac_status=$?
13410
  grep -v '^ *+' conftest.er1 >conftest.err
13411
  rm -f conftest.er1
13412
  cat conftest.err >&5
13413
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414
  (exit $ac_status); } && {
13415
         test -z "$ac_c_werror_flag" ||
13416
         test ! -s conftest.err
13417
       } && test -s conftest.$ac_objext; then
13418 82 jeremybenn
 
13419
        # Check for potential -arch flags.  It is not universal unless
13420 101 jeremybenn
        # there are some -arch flags.  Note that *ppc* also matches
13421
        # ppc64.  This check is also rather less than ideal.
13422
        case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13423
          *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13424
        esac
13425
else
13426
  $as_echo "$as_me: failed program was:" >&5
13427
sed 's/^/| /' conftest.$ac_ext >&5
13428
 
13429
 
13430 19 jeremybenn
fi
13431 101 jeremybenn
 
13432 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13433 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
13434
      # See if sys/param.h defines the BYTE_ORDER macro.
13435 101 jeremybenn
      cat >conftest.$ac_ext <<_ACEOF
13436
/* confdefs.h.  */
13437
_ACEOF
13438
cat confdefs.h >>conftest.$ac_ext
13439
cat >>conftest.$ac_ext <<_ACEOF
13440 19 jeremybenn
/* end confdefs.h.  */
13441 82 jeremybenn
#include 
13442
             #include 
13443
 
13444
int
13445
main ()
13446
{
13447
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13448
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13449
                     && LITTLE_ENDIAN)
13450
              bogus endian macros
13451
             #endif
13452
 
13453
  ;
13454
  return 0;
13455
}
13456 19 jeremybenn
_ACEOF
13457 101 jeremybenn
rm -f conftest.$ac_objext
13458
if { (ac_try="$ac_compile"
13459
case "(($ac_try" in
13460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461
  *) ac_try_echo=$ac_try;;
13462
esac
13463
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13464
$as_echo "$ac_try_echo") >&5
13465
  (eval "$ac_compile") 2>conftest.er1
13466
  ac_status=$?
13467
  grep -v '^ *+' conftest.er1 >conftest.err
13468
  rm -f conftest.er1
13469
  cat conftest.err >&5
13470
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471
  (exit $ac_status); } && {
13472
         test -z "$ac_c_werror_flag" ||
13473
         test ! -s conftest.err
13474
       } && test -s conftest.$ac_objext; then
13475 82 jeremybenn
  # It does; now see whether it defined to BIG_ENDIAN or not.
13476 101 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
13477
/* confdefs.h.  */
13478
_ACEOF
13479
cat confdefs.h >>conftest.$ac_ext
13480
cat >>conftest.$ac_ext <<_ACEOF
13481 19 jeremybenn
/* end confdefs.h.  */
13482 82 jeremybenn
#include 
13483
                #include 
13484
 
13485 19 jeremybenn
int
13486
main ()
13487
{
13488 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
13489
                 not big endian
13490
                #endif
13491 19 jeremybenn
 
13492
  ;
13493
  return 0;
13494
}
13495
_ACEOF
13496 101 jeremybenn
rm -f conftest.$ac_objext
13497
if { (ac_try="$ac_compile"
13498
case "(($ac_try" in
13499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500
  *) ac_try_echo=$ac_try;;
13501
esac
13502
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13503
$as_echo "$ac_try_echo") >&5
13504
  (eval "$ac_compile") 2>conftest.er1
13505
  ac_status=$?
13506
  grep -v '^ *+' conftest.er1 >conftest.err
13507
  rm -f conftest.er1
13508
  cat conftest.err >&5
13509
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510
  (exit $ac_status); } && {
13511
         test -z "$ac_c_werror_flag" ||
13512
         test ! -s conftest.err
13513
       } && test -s conftest.$ac_objext; then
13514 82 jeremybenn
  ac_cv_c_bigendian=yes
13515 19 jeremybenn
else
13516 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13517
sed 's/^/| /' conftest.$ac_ext >&5
13518
 
13519
        ac_cv_c_bigendian=no
13520 19 jeremybenn
fi
13521 101 jeremybenn
 
13522 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523 101 jeremybenn
else
13524
  $as_echo "$as_me: failed program was:" >&5
13525
sed 's/^/| /' conftest.$ac_ext >&5
13526
 
13527
 
13528 19 jeremybenn
fi
13529 101 jeremybenn
 
13530 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13531
    fi
13532
    if test $ac_cv_c_bigendian = unknown; then
13533
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13534 101 jeremybenn
      cat >conftest.$ac_ext <<_ACEOF
13535
/* confdefs.h.  */
13536
_ACEOF
13537
cat confdefs.h >>conftest.$ac_ext
13538
cat >>conftest.$ac_ext <<_ACEOF
13539 19 jeremybenn
/* end confdefs.h.  */
13540 82 jeremybenn
#include 
13541 19 jeremybenn
 
13542
int
13543
main ()
13544
{
13545 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13546
              bogus endian macros
13547
             #endif
13548 19 jeremybenn
 
13549
  ;
13550
  return 0;
13551
}
13552
_ACEOF
13553 101 jeremybenn
rm -f conftest.$ac_objext
13554
if { (ac_try="$ac_compile"
13555
case "(($ac_try" in
13556
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557
  *) ac_try_echo=$ac_try;;
13558
esac
13559
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13560
$as_echo "$ac_try_echo") >&5
13561
  (eval "$ac_compile") 2>conftest.er1
13562
  ac_status=$?
13563
  grep -v '^ *+' conftest.er1 >conftest.err
13564
  rm -f conftest.er1
13565
  cat conftest.err >&5
13566
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567
  (exit $ac_status); } && {
13568
         test -z "$ac_c_werror_flag" ||
13569
         test ! -s conftest.err
13570
       } && test -s conftest.$ac_objext; then
13571 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
13572 101 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
13573
/* confdefs.h.  */
13574
_ACEOF
13575
cat confdefs.h >>conftest.$ac_ext
13576
cat >>conftest.$ac_ext <<_ACEOF
13577 19 jeremybenn
/* end confdefs.h.  */
13578 82 jeremybenn
#include 
13579 19 jeremybenn
 
13580
int
13581
main ()
13582
{
13583 82 jeremybenn
#ifndef _BIG_ENDIAN
13584
                 not big endian
13585
                #endif
13586 19 jeremybenn
 
13587
  ;
13588
  return 0;
13589
}
13590
_ACEOF
13591 101 jeremybenn
rm -f conftest.$ac_objext
13592
if { (ac_try="$ac_compile"
13593
case "(($ac_try" in
13594
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595
  *) ac_try_echo=$ac_try;;
13596
esac
13597
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13598
$as_echo "$ac_try_echo") >&5
13599
  (eval "$ac_compile") 2>conftest.er1
13600
  ac_status=$?
13601
  grep -v '^ *+' conftest.er1 >conftest.err
13602
  rm -f conftest.er1
13603
  cat conftest.err >&5
13604
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605
  (exit $ac_status); } && {
13606
         test -z "$ac_c_werror_flag" ||
13607
         test ! -s conftest.err
13608
       } && test -s conftest.$ac_objext; then
13609 19 jeremybenn
  ac_cv_c_bigendian=yes
13610
else
13611 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13612
sed 's/^/| /' conftest.$ac_ext >&5
13613
 
13614
        ac_cv_c_bigendian=no
13615 19 jeremybenn
fi
13616 101 jeremybenn
 
13617 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13618 101 jeremybenn
else
13619
  $as_echo "$as_me: failed program was:" >&5
13620
sed 's/^/| /' conftest.$ac_ext >&5
13621
 
13622
 
13623 82 jeremybenn
fi
13624 101 jeremybenn
 
13625 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13626
    fi
13627
    if test $ac_cv_c_bigendian = unknown; then
13628
      # Compile a test program.
13629 101 jeremybenn
      if test "$cross_compiling" = yes; then
13630 82 jeremybenn
  # Try to guess by grepping values from an object file.
13631 101 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
13632
/* confdefs.h.  */
13633
_ACEOF
13634
cat confdefs.h >>conftest.$ac_ext
13635
cat >>conftest.$ac_ext <<_ACEOF
13636 19 jeremybenn
/* end confdefs.h.  */
13637 82 jeremybenn
short int ascii_mm[] =
13638
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13639
                short int ascii_ii[] =
13640
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13641
                int use_ascii (int i) {
13642
                  return ascii_mm[i] + ascii_ii[i];
13643
                }
13644
                short int ebcdic_ii[] =
13645
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13646
                short int ebcdic_mm[] =
13647
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13648
                int use_ebcdic (int i) {
13649
                  return ebcdic_mm[i] + ebcdic_ii[i];
13650
                }
13651
                extern int foo;
13652
 
13653 19 jeremybenn
int
13654
main ()
13655
{
13656 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
13657 19 jeremybenn
  ;
13658
  return 0;
13659
}
13660
_ACEOF
13661 101 jeremybenn
rm -f conftest.$ac_objext
13662
if { (ac_try="$ac_compile"
13663
case "(($ac_try" in
13664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665
  *) ac_try_echo=$ac_try;;
13666
esac
13667
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13668
$as_echo "$ac_try_echo") >&5
13669
  (eval "$ac_compile") 2>conftest.er1
13670
  ac_status=$?
13671
  grep -v '^ *+' conftest.er1 >conftest.err
13672
  rm -f conftest.er1
13673
  cat conftest.err >&5
13674
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675
  (exit $ac_status); } && {
13676
         test -z "$ac_c_werror_flag" ||
13677
         test ! -s conftest.err
13678
       } && test -s conftest.$ac_objext; then
13679 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13680
              ac_cv_c_bigendian=yes
13681
            fi
13682
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13683
              if test "$ac_cv_c_bigendian" = unknown; then
13684
                ac_cv_c_bigendian=no
13685
              else
13686
                # finding both strings is unlikely to happen, but who knows?
13687
                ac_cv_c_bigendian=unknown
13688
              fi
13689
            fi
13690 101 jeremybenn
else
13691
  $as_echo "$as_me: failed program was:" >&5
13692
sed 's/^/| /' conftest.$ac_ext >&5
13693
 
13694
 
13695 19 jeremybenn
fi
13696 101 jeremybenn
 
13697 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13698
else
13699 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
13700
/* confdefs.h.  */
13701
_ACEOF
13702
cat confdefs.h >>conftest.$ac_ext
13703
cat >>conftest.$ac_ext <<_ACEOF
13704 19 jeremybenn
/* end confdefs.h.  */
13705
$ac_includes_default
13706
int
13707
main ()
13708
{
13709
 
13710 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
13711
             union
13712
             {
13713
               long int l;
13714
               char c[sizeof (long int)];
13715
             } u;
13716
             u.l = 1;
13717
             return u.c[sizeof (long int) - 1] == 1;
13718 19 jeremybenn
 
13719
  ;
13720
  return 0;
13721
}
13722
_ACEOF
13723 101 jeremybenn
rm -f conftest$ac_exeext
13724
if { (ac_try="$ac_link"
13725
case "(($ac_try" in
13726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727
  *) ac_try_echo=$ac_try;;
13728
esac
13729
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13730
$as_echo "$ac_try_echo") >&5
13731
  (eval "$ac_link") 2>&5
13732
  ac_status=$?
13733
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13735
  { (case "(($ac_try" in
13736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737
  *) ac_try_echo=$ac_try;;
13738
esac
13739
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13740
$as_echo "$ac_try_echo") >&5
13741
  (eval "$ac_try") 2>&5
13742
  ac_status=$?
13743
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744
  (exit $ac_status); }; }; then
13745 19 jeremybenn
  ac_cv_c_bigendian=no
13746
else
13747 101 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
13748
$as_echo "$as_me: failed program was:" >&5
13749
sed 's/^/| /' conftest.$ac_ext >&5
13750
 
13751
( exit $ac_status )
13752
ac_cv_c_bigendian=yes
13753 19 jeremybenn
fi
13754 101 jeremybenn
rm -rf conftest.dSYM
13755
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13756 19 jeremybenn
fi
13757
 
13758 101 jeremybenn
 
13759 82 jeremybenn
    fi
13760 19 jeremybenn
fi
13761 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13762 82 jeremybenn
$as_echo "$ac_cv_c_bigendian" >&6; }
13763
 case $ac_cv_c_bigendian in #(
13764
   yes)
13765 101 jeremybenn
     cat >>confdefs.h <<\_ACEOF
13766
#define WORDS_BIGENDIAN 1
13767
_ACEOF
13768 82 jeremybenn
;; #(
13769
   no)
13770
      ;; #(
13771
   universal)
13772 19 jeremybenn
 
13773 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
13774
#define AC_APPLE_UNIVERSAL_BUILD 1
13775
_ACEOF
13776 82 jeremybenn
 
13777
     ;; #(
13778
   *)
13779 101 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
13780
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13781
$as_echo "$as_me: error: unknown endianness
13782
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13783
   { (exit 1); exit 1; }; } ;;
13784 82 jeremybenn
 esac
13785
 
13786
 
13787
# The test for strndup, strcasecmp and isblank fails on modern machines. I
13788
# think it's because GCC 4 does not like the way autoconf overrides the built
13789
# in type declaration. So we must check for them by steam.
13790 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strndup" >&5
13791 82 jeremybenn
$as_echo_n "checking for strndup... " >&6; }
13792 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13793
/* confdefs.h.  */
13794
_ACEOF
13795
cat confdefs.h >>conftest.$ac_ext
13796
cat >>conftest.$ac_ext <<_ACEOF
13797 82 jeremybenn
/* end confdefs.h.  */
13798
#ifdef HAVE_STRING_H
13799
                                  #include 
13800
                                  #else
13801
                                  char *strndup (const char *s,
13802
                                                 size_t      n);
13803
                                  #endif
13804
int
13805
main ()
13806
{
13807
\
13808
                                const char *s = "test";
13809
                                  char       *t;
13810
                                  t = strndup (s, 3);
13811
  ;
13812
  return 0;
13813
}
13814
_ACEOF
13815 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
13816
if { (ac_try="$ac_link"
13817
case "(($ac_try" in
13818
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819
  *) ac_try_echo=$ac_try;;
13820
esac
13821
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13822
$as_echo "$ac_try_echo") >&5
13823
  (eval "$ac_link") 2>conftest.er1
13824
  ac_status=$?
13825
  grep -v '^ *+' conftest.er1 >conftest.err
13826
  rm -f conftest.er1
13827
  cat conftest.err >&5
13828
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829
  (exit $ac_status); } && {
13830
         test -z "$ac_c_werror_flag" ||
13831
         test ! -s conftest.err
13832
       } && test -s conftest$ac_exeext && {
13833
         test "$cross_compiling" = yes ||
13834
         $as_test_x conftest$ac_exeext
13835
       }; then
13836 82 jeremybenn
  \
13837
 
13838 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
13839
#define HAVE_STRNDUP 1
13840
_ACEOF
13841 82 jeremybenn
 \
13842 101 jeremybenn
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13843 82 jeremybenn
$as_echo "yes" >&6; }
13844
else
13845 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13846
sed 's/^/| /' conftest.$ac_ext >&5
13847
 
13848
        { $as_echo "$as_me:$LINENO: result: no" >&5
13849 82 jeremybenn
$as_echo "no" >&6; }
13850 19 jeremybenn
fi
13851
 
13852 101 jeremybenn
rm -rf conftest.dSYM
13853
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13854
      conftest$ac_exeext conftest.$ac_ext
13855
 
13856
{ $as_echo "$as_me:$LINENO: checking for strcasecmp" >&5
13857 82 jeremybenn
$as_echo_n "checking for strcasecmp... " >&6; }
13858 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13859
/* confdefs.h.  */
13860
_ACEOF
13861
cat confdefs.h >>conftest.$ac_ext
13862
cat >>conftest.$ac_ext <<_ACEOF
13863 82 jeremybenn
/* end confdefs.h.  */
13864
#ifdef HAVE_STRINGS_H
13865
                                  #include 
13866
                                  #else
13867
                                  int strcasecmp (const char *s1,
13868
                                                  const char *s2);
13869
                                  #endif
13870
int
13871
main ()
13872
{
13873
\
13874
                                const char *s = "test";
13875
                                  const char *t = "TEST";
13876
                                  int         res;
13877
                                  res = strcasecmp (s, t);
13878
  ;
13879
  return 0;
13880
}
13881
_ACEOF
13882 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
13883
if { (ac_try="$ac_link"
13884
case "(($ac_try" in
13885
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886
  *) ac_try_echo=$ac_try;;
13887
esac
13888
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13889
$as_echo "$ac_try_echo") >&5
13890
  (eval "$ac_link") 2>conftest.er1
13891
  ac_status=$?
13892
  grep -v '^ *+' conftest.er1 >conftest.err
13893
  rm -f conftest.er1
13894
  cat conftest.err >&5
13895
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896
  (exit $ac_status); } && {
13897
         test -z "$ac_c_werror_flag" ||
13898
         test ! -s conftest.err
13899
       } && test -s conftest$ac_exeext && {
13900
         test "$cross_compiling" = yes ||
13901
         $as_test_x conftest$ac_exeext
13902
       }; then
13903 82 jeremybenn
  \
13904
 
13905 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
13906
#define HAVE_STRCASECMP 1
13907
_ACEOF
13908 82 jeremybenn
 \
13909 101 jeremybenn
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13910 82 jeremybenn
$as_echo "yes" >&6; }
13911
else
13912 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13913
sed 's/^/| /' conftest.$ac_ext >&5
13914
 
13915
        { $as_echo "$as_me:$LINENO: result: no" >&5
13916 82 jeremybenn
$as_echo "no" >&6; }
13917
fi
13918
 
13919 101 jeremybenn
rm -rf conftest.dSYM
13920
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13921
      conftest$ac_exeext conftest.$ac_ext
13922
 
13923
{ $as_echo "$as_me:$LINENO: checking for isblank" >&5
13924 82 jeremybenn
$as_echo_n "checking for isblank... " >&6; }
13925 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13926
/* confdefs.h.  */
13927
_ACEOF
13928
cat confdefs.h >>conftest.$ac_ext
13929
cat >>conftest.$ac_ext <<_ACEOF
13930 82 jeremybenn
/* end confdefs.h.  */
13931
#ifdef HAVE_CTYPE_H
13932
                                  #include 
13933
                                  #else
13934
                                  int isblank (int  c);
13935
                                  #endif
13936
int
13937
main ()
13938
{
13939
\
13940
                                return isblank ('x');
13941
  ;
13942
  return 0;
13943
}
13944
_ACEOF
13945 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
13946
if { (ac_try="$ac_link"
13947
case "(($ac_try" in
13948
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949
  *) ac_try_echo=$ac_try;;
13950
esac
13951
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13952
$as_echo "$ac_try_echo") >&5
13953
  (eval "$ac_link") 2>conftest.er1
13954
  ac_status=$?
13955
  grep -v '^ *+' conftest.er1 >conftest.err
13956
  rm -f conftest.er1
13957
  cat conftest.err >&5
13958
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959
  (exit $ac_status); } && {
13960
         test -z "$ac_c_werror_flag" ||
13961
         test ! -s conftest.err
13962
       } && test -s conftest$ac_exeext && {
13963
         test "$cross_compiling" = yes ||
13964
         $as_test_x conftest$ac_exeext
13965
       }; then
13966 82 jeremybenn
  \
13967 19 jeremybenn
 
13968 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
13969
#define HAVE_ISBLANK 1
13970
_ACEOF
13971 82 jeremybenn
 \
13972 101 jeremybenn
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13973 82 jeremybenn
$as_echo "yes" >&6; }
13974
else
13975 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13976
sed 's/^/| /' conftest.$ac_ext >&5
13977
 
13978
        { $as_echo "$as_me:$LINENO: result: no" >&5
13979 82 jeremybenn
$as_echo "no" >&6; }
13980
fi
13981
 
13982 101 jeremybenn
rm -rf conftest.dSYM
13983
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13984
      conftest$ac_exeext conftest.$ac_ext
13985
 
13986 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
13987 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
13988
$as_echo_n "checking for size_t... " >&6; }
13989
if test "${ac_cv_type_size_t+set}" = set; then
13990
  $as_echo_n "(cached) " >&6
13991
else
13992
  ac_cv_type_size_t=no
13993
cat >conftest.$ac_ext <<_ACEOF
13994
/* confdefs.h.  */
13995
_ACEOF
13996
cat confdefs.h >>conftest.$ac_ext
13997
cat >>conftest.$ac_ext <<_ACEOF
13998
/* end confdefs.h.  */
13999
$ac_includes_default
14000
int
14001
main ()
14002
{
14003
if (sizeof (size_t))
14004
       return 0;
14005
  ;
14006
  return 0;
14007
}
14008
_ACEOF
14009
rm -f conftest.$ac_objext
14010
if { (ac_try="$ac_compile"
14011
case "(($ac_try" in
14012
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013
  *) ac_try_echo=$ac_try;;
14014
esac
14015
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14016
$as_echo "$ac_try_echo") >&5
14017
  (eval "$ac_compile") 2>conftest.er1
14018
  ac_status=$?
14019
  grep -v '^ *+' conftest.er1 >conftest.err
14020
  rm -f conftest.er1
14021
  cat conftest.err >&5
14022
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023
  (exit $ac_status); } && {
14024
         test -z "$ac_c_werror_flag" ||
14025
         test ! -s conftest.err
14026
       } && test -s conftest.$ac_objext; then
14027
  cat >conftest.$ac_ext <<_ACEOF
14028
/* confdefs.h.  */
14029
_ACEOF
14030
cat confdefs.h >>conftest.$ac_ext
14031
cat >>conftest.$ac_ext <<_ACEOF
14032
/* end confdefs.h.  */
14033
$ac_includes_default
14034
int
14035
main ()
14036
{
14037
if (sizeof ((size_t)))
14038
          return 0;
14039
  ;
14040
  return 0;
14041
}
14042
_ACEOF
14043
rm -f conftest.$ac_objext
14044
if { (ac_try="$ac_compile"
14045
case "(($ac_try" in
14046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047
  *) ac_try_echo=$ac_try;;
14048
esac
14049
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14050
$as_echo "$ac_try_echo") >&5
14051
  (eval "$ac_compile") 2>conftest.er1
14052
  ac_status=$?
14053
  grep -v '^ *+' conftest.er1 >conftest.err
14054
  rm -f conftest.er1
14055
  cat conftest.err >&5
14056
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057
  (exit $ac_status); } && {
14058
         test -z "$ac_c_werror_flag" ||
14059
         test ! -s conftest.err
14060
       } && test -s conftest.$ac_objext; then
14061
  :
14062
else
14063
  $as_echo "$as_me: failed program was:" >&5
14064
sed 's/^/| /' conftest.$ac_ext >&5
14065 19 jeremybenn
 
14066 101 jeremybenn
        ac_cv_type_size_t=yes
14067
fi
14068
 
14069
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14070 19 jeremybenn
else
14071 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14072
sed 's/^/| /' conftest.$ac_ext >&5
14073 19 jeremybenn
 
14074 101 jeremybenn
 
14075
fi
14076
 
14077
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078
fi
14079
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14080
$as_echo "$ac_cv_type_size_t" >&6; }
14081
if test "x$ac_cv_type_size_t" = x""yes; then
14082
  :
14083
else
14084
 
14085 19 jeremybenn
cat >>confdefs.h <<_ACEOF
14086
#define size_t unsigned int
14087
_ACEOF
14088
 
14089
fi
14090
 
14091 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14092 82 jeremybenn
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14093 101 jeremybenn
if test "${ac_cv_struct_tm+set}" = set; then
14094 82 jeremybenn
  $as_echo_n "(cached) " >&6
14095 19 jeremybenn
else
14096 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14097
/* confdefs.h.  */
14098
_ACEOF
14099
cat confdefs.h >>conftest.$ac_ext
14100
cat >>conftest.$ac_ext <<_ACEOF
14101 19 jeremybenn
/* end confdefs.h.  */
14102
#include 
14103
#include 
14104
 
14105
int
14106
main ()
14107
{
14108
struct tm tm;
14109
                                     int *p = &tm.tm_sec;
14110 82 jeremybenn
                                     return !p;
14111 19 jeremybenn
  ;
14112
  return 0;
14113
}
14114
_ACEOF
14115 101 jeremybenn
rm -f conftest.$ac_objext
14116
if { (ac_try="$ac_compile"
14117
case "(($ac_try" in
14118
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119
  *) ac_try_echo=$ac_try;;
14120
esac
14121
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14122
$as_echo "$ac_try_echo") >&5
14123
  (eval "$ac_compile") 2>conftest.er1
14124
  ac_status=$?
14125
  grep -v '^ *+' conftest.er1 >conftest.err
14126
  rm -f conftest.er1
14127
  cat conftest.err >&5
14128
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129
  (exit $ac_status); } && {
14130
         test -z "$ac_c_werror_flag" ||
14131
         test ! -s conftest.err
14132
       } && test -s conftest.$ac_objext; then
14133 19 jeremybenn
  ac_cv_struct_tm=time.h
14134
else
14135 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14136
sed 's/^/| /' conftest.$ac_ext >&5
14137
 
14138
        ac_cv_struct_tm=sys/time.h
14139 19 jeremybenn
fi
14140 101 jeremybenn
 
14141 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14142
fi
14143 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14144 82 jeremybenn
$as_echo "$ac_cv_struct_tm" >&6; }
14145 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
14146
 
14147 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
14148
#define TM_IN_SYS_TIME 1
14149
_ACEOF
14150 19 jeremybenn
 
14151
fi
14152
 
14153
 
14154
# Checks for library functions (for argtable2).
14155 101 jeremybenn
 
14156 19 jeremybenn
for ac_header in stdlib.h
14157 101 jeremybenn
do
14158
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14159
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14160
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14161
$as_echo_n "checking for $ac_header... " >&6; }
14162
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14163
  $as_echo_n "(cached) " >&6
14164
fi
14165
ac_res=`eval 'as_val=${'$as_ac_Header'}
14166
                 $as_echo "$as_val"'`
14167
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14168
$as_echo "$ac_res" >&6; }
14169
else
14170
  # Is the header compilable?
14171
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14172
$as_echo_n "checking $ac_header usability... " >&6; }
14173
cat >conftest.$ac_ext <<_ACEOF
14174
/* confdefs.h.  */
14175
_ACEOF
14176
cat confdefs.h >>conftest.$ac_ext
14177
cat >>conftest.$ac_ext <<_ACEOF
14178
/* end confdefs.h.  */
14179
$ac_includes_default
14180
#include <$ac_header>
14181
_ACEOF
14182
rm -f conftest.$ac_objext
14183
if { (ac_try="$ac_compile"
14184
case "(($ac_try" in
14185
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186
  *) ac_try_echo=$ac_try;;
14187
esac
14188
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14189
$as_echo "$ac_try_echo") >&5
14190
  (eval "$ac_compile") 2>conftest.er1
14191
  ac_status=$?
14192
  grep -v '^ *+' conftest.er1 >conftest.err
14193
  rm -f conftest.er1
14194
  cat conftest.err >&5
14195
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196
  (exit $ac_status); } && {
14197
         test -z "$ac_c_werror_flag" ||
14198
         test ! -s conftest.err
14199
       } && test -s conftest.$ac_objext; then
14200
  ac_header_compiler=yes
14201
else
14202
  $as_echo "$as_me: failed program was:" >&5
14203
sed 's/^/| /' conftest.$ac_ext >&5
14204
 
14205
        ac_header_compiler=no
14206
fi
14207
 
14208
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14209
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14210
$as_echo "$ac_header_compiler" >&6; }
14211
 
14212
# Is the header present?
14213
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14214
$as_echo_n "checking $ac_header presence... " >&6; }
14215
cat >conftest.$ac_ext <<_ACEOF
14216
/* confdefs.h.  */
14217
_ACEOF
14218
cat confdefs.h >>conftest.$ac_ext
14219
cat >>conftest.$ac_ext <<_ACEOF
14220
/* end confdefs.h.  */
14221
#include <$ac_header>
14222
_ACEOF
14223
if { (ac_try="$ac_cpp conftest.$ac_ext"
14224
case "(($ac_try" in
14225
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226
  *) ac_try_echo=$ac_try;;
14227
esac
14228
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14229
$as_echo "$ac_try_echo") >&5
14230
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14231
  ac_status=$?
14232
  grep -v '^ *+' conftest.er1 >conftest.err
14233
  rm -f conftest.er1
14234
  cat conftest.err >&5
14235
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236
  (exit $ac_status); } >/dev/null && {
14237
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14238
         test ! -s conftest.err
14239
       }; then
14240
  ac_header_preproc=yes
14241
else
14242
  $as_echo "$as_me: failed program was:" >&5
14243
sed 's/^/| /' conftest.$ac_ext >&5
14244
 
14245
  ac_header_preproc=no
14246
fi
14247
 
14248
rm -f conftest.err conftest.$ac_ext
14249
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14250
$as_echo "$ac_header_preproc" >&6; }
14251
 
14252
# So?  What about this header?
14253
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14254
  yes:no: )
14255
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14256
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14257
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14258
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14259
    ac_header_preproc=yes
14260
    ;;
14261
  no:yes:* )
14262
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14263
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14264
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14265
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14266
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14267
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14268
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14269
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14270
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14271
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14272
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14273
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14274
    ( cat <<\_ASBOX
14275
## ------------------------------------- ##
14276
## Report this to openrisc@opencores.org ##
14277
## ------------------------------------- ##
14278
_ASBOX
14279
     ) | sed "s/^/$as_me: WARNING:     /" >&2
14280
    ;;
14281
esac
14282
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14283
$as_echo_n "checking for $ac_header... " >&6; }
14284
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14285
  $as_echo_n "(cached) " >&6
14286
else
14287
  eval "$as_ac_Header=\$ac_header_preproc"
14288
fi
14289
ac_res=`eval 'as_val=${'$as_ac_Header'}
14290
                 $as_echo "$as_val"'`
14291
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14292
$as_echo "$ac_res" >&6; }
14293
 
14294
fi
14295
as_val=`eval 'as_val=${'$as_ac_Header'}
14296
                 $as_echo "$as_val"'`
14297
   if test "x$as_val" = x""yes; then
14298 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14299 101 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14300 19 jeremybenn
_ACEOF
14301
 
14302
fi
14303
 
14304
done
14305
 
14306 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14307 82 jeremybenn
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14308 101 jeremybenn
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14309 82 jeremybenn
  $as_echo_n "(cached) " >&6
14310 19 jeremybenn
else
14311 101 jeremybenn
  if test "$cross_compiling" = yes; then
14312 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
14313
else
14314 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14315
/* confdefs.h.  */
14316
_ACEOF
14317
cat confdefs.h >>conftest.$ac_ext
14318
cat >>conftest.$ac_ext <<_ACEOF
14319 19 jeremybenn
/* end confdefs.h.  */
14320
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14321
# include 
14322
#else
14323
char *malloc ();
14324
#endif
14325
 
14326
int
14327
main ()
14328
{
14329
return ! malloc (0);
14330
  ;
14331
  return 0;
14332
}
14333
_ACEOF
14334 101 jeremybenn
rm -f conftest$ac_exeext
14335
if { (ac_try="$ac_link"
14336
case "(($ac_try" in
14337
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338
  *) ac_try_echo=$ac_try;;
14339
esac
14340
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14341
$as_echo "$ac_try_echo") >&5
14342
  (eval "$ac_link") 2>&5
14343
  ac_status=$?
14344
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14346
  { (case "(($ac_try" in
14347
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348
  *) ac_try_echo=$ac_try;;
14349
esac
14350
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14351
$as_echo "$ac_try_echo") >&5
14352
  (eval "$ac_try") 2>&5
14353
  ac_status=$?
14354
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355
  (exit $ac_status); }; }; then
14356 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=yes
14357
else
14358 101 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14359
$as_echo "$as_me: failed program was:" >&5
14360
sed 's/^/| /' conftest.$ac_ext >&5
14361
 
14362
( exit $ac_status )
14363
ac_cv_func_malloc_0_nonnull=no
14364 19 jeremybenn
fi
14365 101 jeremybenn
rm -rf conftest.dSYM
14366
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14367 19 jeremybenn
fi
14368
 
14369 101 jeremybenn
 
14370 19 jeremybenn
fi
14371 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14372 82 jeremybenn
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14373 101 jeremybenn
if test $ac_cv_func_malloc_0_nonnull = yes; then
14374 19 jeremybenn
 
14375 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
14376
#define HAVE_MALLOC 1
14377
_ACEOF
14378 19 jeremybenn
 
14379
else
14380 101 jeremybenn
  cat >>confdefs.h <<\_ACEOF
14381
#define HAVE_MALLOC 0
14382
_ACEOF
14383 19 jeremybenn
 
14384
   case " $LIBOBJS " in
14385
  *" malloc.$ac_objext "* ) ;;
14386
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14387
 ;;
14388
esac
14389
 
14390
 
14391 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
14392
#define malloc rpl_malloc
14393
_ACEOF
14394 19 jeremybenn
 
14395
fi
14396
 
14397
 
14398 101 jeremybenn
 
14399
 
14400 19 jeremybenn
for ac_func in strftime
14401 101 jeremybenn
do
14402
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14403
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14404
$as_echo_n "checking for $ac_func... " >&6; }
14405
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14406
  $as_echo_n "(cached) " >&6
14407
else
14408
  cat >conftest.$ac_ext <<_ACEOF
14409
/* confdefs.h.  */
14410
_ACEOF
14411
cat confdefs.h >>conftest.$ac_ext
14412
cat >>conftest.$ac_ext <<_ACEOF
14413
/* end confdefs.h.  */
14414
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14415
   For example, HP-UX 11i  declares gettimeofday.  */
14416
#define $ac_func innocuous_$ac_func
14417
 
14418
/* System header to define __stub macros and hopefully few prototypes,
14419
    which can conflict with char $ac_func (); below.
14420
    Prefer  to  if __STDC__ is defined, since
14421
     exists even on freestanding compilers.  */
14422
 
14423
#ifdef __STDC__
14424
# include 
14425
#else
14426
# include 
14427
#endif
14428
 
14429
#undef $ac_func
14430
 
14431
/* Override any GCC internal prototype to avoid an error.
14432
   Use char because int might match the return type of a GCC
14433
   builtin and then its argument prototype would still apply.  */
14434
#ifdef __cplusplus
14435
extern "C"
14436
#endif
14437
char $ac_func ();
14438
/* The GNU C library defines this for functions which it implements
14439
    to always fail with ENOSYS.  Some functions are actually named
14440
    something starting with __ and the normal name is an alias.  */
14441
#if defined __stub_$ac_func || defined __stub___$ac_func
14442
choke me
14443
#endif
14444
 
14445
int
14446
main ()
14447
{
14448
return $ac_func ();
14449
  ;
14450
  return 0;
14451
}
14452
_ACEOF
14453
rm -f conftest.$ac_objext conftest$ac_exeext
14454
if { (ac_try="$ac_link"
14455
case "(($ac_try" in
14456
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457
  *) ac_try_echo=$ac_try;;
14458
esac
14459
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14460
$as_echo "$ac_try_echo") >&5
14461
  (eval "$ac_link") 2>conftest.er1
14462
  ac_status=$?
14463
  grep -v '^ *+' conftest.er1 >conftest.err
14464
  rm -f conftest.er1
14465
  cat conftest.err >&5
14466
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467
  (exit $ac_status); } && {
14468
         test -z "$ac_c_werror_flag" ||
14469
         test ! -s conftest.err
14470
       } && test -s conftest$ac_exeext && {
14471
         test "$cross_compiling" = yes ||
14472
         $as_test_x conftest$ac_exeext
14473
       }; then
14474
  eval "$as_ac_var=yes"
14475
else
14476
  $as_echo "$as_me: failed program was:" >&5
14477
sed 's/^/| /' conftest.$ac_ext >&5
14478
 
14479
        eval "$as_ac_var=no"
14480
fi
14481
 
14482
rm -rf conftest.dSYM
14483
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14484
      conftest$ac_exeext conftest.$ac_ext
14485
fi
14486
ac_res=`eval 'as_val=${'$as_ac_var'}
14487
                 $as_echo "$as_val"'`
14488
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14489
$as_echo "$ac_res" >&6; }
14490
as_val=`eval 'as_val=${'$as_ac_var'}
14491
                 $as_echo "$as_val"'`
14492
   if test "x$as_val" = x""yes; then
14493 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14494 101 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14495 19 jeremybenn
_ACEOF
14496
 
14497
else
14498
  # strftime is in -lintl on SCO UNIX.
14499 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14500 82 jeremybenn
$as_echo_n "checking for strftime in -lintl... " >&6; }
14501 101 jeremybenn
if test "${ac_cv_lib_intl_strftime+set}" = set; then
14502 82 jeremybenn
  $as_echo_n "(cached) " >&6
14503 19 jeremybenn
else
14504
  ac_check_lib_save_LIBS=$LIBS
14505
LIBS="-lintl  $LIBS"
14506 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14507
/* confdefs.h.  */
14508
_ACEOF
14509
cat confdefs.h >>conftest.$ac_ext
14510
cat >>conftest.$ac_ext <<_ACEOF
14511 19 jeremybenn
/* end confdefs.h.  */
14512
 
14513
/* Override any GCC internal prototype to avoid an error.
14514
   Use char because int might match the return type of a GCC
14515
   builtin and then its argument prototype would still apply.  */
14516
#ifdef __cplusplus
14517
extern "C"
14518
#endif
14519
char strftime ();
14520
int
14521
main ()
14522
{
14523
return strftime ();
14524
  ;
14525
  return 0;
14526
}
14527
_ACEOF
14528 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
14529
if { (ac_try="$ac_link"
14530
case "(($ac_try" in
14531
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532
  *) ac_try_echo=$ac_try;;
14533
esac
14534
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14535
$as_echo "$ac_try_echo") >&5
14536
  (eval "$ac_link") 2>conftest.er1
14537
  ac_status=$?
14538
  grep -v '^ *+' conftest.er1 >conftest.err
14539
  rm -f conftest.er1
14540
  cat conftest.err >&5
14541
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542
  (exit $ac_status); } && {
14543
         test -z "$ac_c_werror_flag" ||
14544
         test ! -s conftest.err
14545
       } && test -s conftest$ac_exeext && {
14546
         test "$cross_compiling" = yes ||
14547
         $as_test_x conftest$ac_exeext
14548
       }; then
14549 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
14550
else
14551 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14552
sed 's/^/| /' conftest.$ac_ext >&5
14553
 
14554
        ac_cv_lib_intl_strftime=no
14555 19 jeremybenn
fi
14556 101 jeremybenn
 
14557
rm -rf conftest.dSYM
14558
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14559
      conftest$ac_exeext conftest.$ac_ext
14560 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
14561
fi
14562 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14563 82 jeremybenn
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
14564 101 jeremybenn
if test "x$ac_cv_lib_intl_strftime" = x""yes; then
14565
  cat >>confdefs.h <<\_ACEOF
14566
#define HAVE_STRFTIME 1
14567
_ACEOF
14568 19 jeremybenn
 
14569
LIBS="-lintl $LIBS"
14570
fi
14571
 
14572
fi
14573
done
14574
 
14575 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
14576 82 jeremybenn
$as_echo_n "checking for working strtod... " >&6; }
14577 101 jeremybenn
if test "${ac_cv_func_strtod+set}" = set; then
14578 82 jeremybenn
  $as_echo_n "(cached) " >&6
14579 19 jeremybenn
else
14580 101 jeremybenn
  if test "$cross_compiling" = yes; then
14581 19 jeremybenn
  ac_cv_func_strtod=no
14582
else
14583 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14584
/* confdefs.h.  */
14585
_ACEOF
14586
cat confdefs.h >>conftest.$ac_ext
14587
cat >>conftest.$ac_ext <<_ACEOF
14588 19 jeremybenn
/* end confdefs.h.  */
14589
 
14590
$ac_includes_default
14591
#ifndef strtod
14592
double strtod ();
14593
#endif
14594
int
14595
main()
14596
{
14597
  {
14598
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
14599
    char *string = " +69";
14600
    char *term;
14601
    double value;
14602
    value = strtod (string, &term);
14603
    if (value != 69 || term != (string + 4))
14604
      return 1;
14605
  }
14606
 
14607
  {
14608
    /* Under Solaris 2.4, strtod returns the wrong value for the
14609
       terminating character under some conditions.  */
14610
    char *string = "NaN";
14611
    char *term;
14612
    strtod (string, &term);
14613
    if (term != string && *(term - 1) == 0)
14614
      return 1;
14615
  }
14616
  return 0;
14617
}
14618
 
14619
_ACEOF
14620 101 jeremybenn
rm -f conftest$ac_exeext
14621
if { (ac_try="$ac_link"
14622
case "(($ac_try" in
14623
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624
  *) ac_try_echo=$ac_try;;
14625
esac
14626
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14627
$as_echo "$ac_try_echo") >&5
14628
  (eval "$ac_link") 2>&5
14629
  ac_status=$?
14630
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14632
  { (case "(($ac_try" in
14633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634
  *) ac_try_echo=$ac_try;;
14635
esac
14636
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14637
$as_echo "$ac_try_echo") >&5
14638
  (eval "$ac_try") 2>&5
14639
  ac_status=$?
14640
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641
  (exit $ac_status); }; }; then
14642 19 jeremybenn
  ac_cv_func_strtod=yes
14643
else
14644 101 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14645
$as_echo "$as_me: failed program was:" >&5
14646
sed 's/^/| /' conftest.$ac_ext >&5
14647
 
14648
( exit $ac_status )
14649
ac_cv_func_strtod=no
14650 19 jeremybenn
fi
14651 101 jeremybenn
rm -rf conftest.dSYM
14652
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14653 19 jeremybenn
fi
14654
 
14655 101 jeremybenn
 
14656 19 jeremybenn
fi
14657 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14658 82 jeremybenn
$as_echo "$ac_cv_func_strtod" >&6; }
14659 19 jeremybenn
if test $ac_cv_func_strtod = no; then
14660
  case " $LIBOBJS " in
14661
  *" strtod.$ac_objext "* ) ;;
14662
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14663
 ;;
14664
esac
14665
 
14666 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for pow" >&5
14667
$as_echo_n "checking for pow... " >&6; }
14668
if test "${ac_cv_func_pow+set}" = set; then
14669
  $as_echo_n "(cached) " >&6
14670
else
14671
  cat >conftest.$ac_ext <<_ACEOF
14672
/* confdefs.h.  */
14673
_ACEOF
14674
cat confdefs.h >>conftest.$ac_ext
14675
cat >>conftest.$ac_ext <<_ACEOF
14676
/* end confdefs.h.  */
14677
/* Define pow to an innocuous variant, in case  declares pow.
14678
   For example, HP-UX 11i  declares gettimeofday.  */
14679
#define pow innocuous_pow
14680 19 jeremybenn
 
14681 101 jeremybenn
/* System header to define __stub macros and hopefully few prototypes,
14682
    which can conflict with char pow (); below.
14683
    Prefer  to  if __STDC__ is defined, since
14684
     exists even on freestanding compilers.  */
14685
 
14686
#ifdef __STDC__
14687
# include 
14688
#else
14689
# include 
14690
#endif
14691
 
14692
#undef pow
14693
 
14694
/* Override any GCC internal prototype to avoid an error.
14695
   Use char because int might match the return type of a GCC
14696
   builtin and then its argument prototype would still apply.  */
14697
#ifdef __cplusplus
14698
extern "C"
14699
#endif
14700
char pow ();
14701
/* The GNU C library defines this for functions which it implements
14702
    to always fail with ENOSYS.  Some functions are actually named
14703
    something starting with __ and the normal name is an alias.  */
14704
#if defined __stub_pow || defined __stub___pow
14705
choke me
14706
#endif
14707
 
14708
int
14709
main ()
14710
{
14711
return pow ();
14712
  ;
14713
  return 0;
14714
}
14715
_ACEOF
14716
rm -f conftest.$ac_objext conftest$ac_exeext
14717
if { (ac_try="$ac_link"
14718
case "(($ac_try" in
14719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720
  *) ac_try_echo=$ac_try;;
14721
esac
14722
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14723
$as_echo "$ac_try_echo") >&5
14724
  (eval "$ac_link") 2>conftest.er1
14725
  ac_status=$?
14726
  grep -v '^ *+' conftest.er1 >conftest.err
14727
  rm -f conftest.er1
14728
  cat conftest.err >&5
14729
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730
  (exit $ac_status); } && {
14731
         test -z "$ac_c_werror_flag" ||
14732
         test ! -s conftest.err
14733
       } && test -s conftest$ac_exeext && {
14734
         test "$cross_compiling" = yes ||
14735
         $as_test_x conftest$ac_exeext
14736
       }; then
14737
  ac_cv_func_pow=yes
14738
else
14739
  $as_echo "$as_me: failed program was:" >&5
14740
sed 's/^/| /' conftest.$ac_ext >&5
14741
 
14742
        ac_cv_func_pow=no
14743 19 jeremybenn
fi
14744
 
14745 101 jeremybenn
rm -rf conftest.dSYM
14746
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14747
      conftest$ac_exeext conftest.$ac_ext
14748
fi
14749
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14750
$as_echo "$ac_cv_func_pow" >&6; }
14751
 
14752 19 jeremybenn
if test $ac_cv_func_pow = no; then
14753 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
14754 82 jeremybenn
$as_echo_n "checking for pow in -lm... " >&6; }
14755 101 jeremybenn
if test "${ac_cv_lib_m_pow+set}" = set; then
14756 82 jeremybenn
  $as_echo_n "(cached) " >&6
14757 19 jeremybenn
else
14758
  ac_check_lib_save_LIBS=$LIBS
14759
LIBS="-lm  $LIBS"
14760 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14761
/* confdefs.h.  */
14762
_ACEOF
14763
cat confdefs.h >>conftest.$ac_ext
14764
cat >>conftest.$ac_ext <<_ACEOF
14765 19 jeremybenn
/* end confdefs.h.  */
14766
 
14767
/* Override any GCC internal prototype to avoid an error.
14768
   Use char because int might match the return type of a GCC
14769
   builtin and then its argument prototype would still apply.  */
14770
#ifdef __cplusplus
14771
extern "C"
14772
#endif
14773
char pow ();
14774
int
14775
main ()
14776
{
14777
return pow ();
14778
  ;
14779
  return 0;
14780
}
14781
_ACEOF
14782 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
14783
if { (ac_try="$ac_link"
14784
case "(($ac_try" in
14785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786
  *) ac_try_echo=$ac_try;;
14787
esac
14788
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14789
$as_echo "$ac_try_echo") >&5
14790
  (eval "$ac_link") 2>conftest.er1
14791
  ac_status=$?
14792
  grep -v '^ *+' conftest.er1 >conftest.err
14793
  rm -f conftest.er1
14794
  cat conftest.err >&5
14795
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796
  (exit $ac_status); } && {
14797
         test -z "$ac_c_werror_flag" ||
14798
         test ! -s conftest.err
14799
       } && test -s conftest$ac_exeext && {
14800
         test "$cross_compiling" = yes ||
14801
         $as_test_x conftest$ac_exeext
14802
       }; then
14803 19 jeremybenn
  ac_cv_lib_m_pow=yes
14804
else
14805 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14806
sed 's/^/| /' conftest.$ac_ext >&5
14807
 
14808
        ac_cv_lib_m_pow=no
14809 19 jeremybenn
fi
14810 101 jeremybenn
 
14811
rm -rf conftest.dSYM
14812
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14813
      conftest$ac_exeext conftest.$ac_ext
14814 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
14815
fi
14816 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14817 82 jeremybenn
$as_echo "$ac_cv_lib_m_pow" >&6; }
14818 101 jeremybenn
if test "x$ac_cv_lib_m_pow" = x""yes; then
14819 19 jeremybenn
  POW_LIB=-lm
14820
else
14821 101 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14822 82 jeremybenn
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14823 19 jeremybenn
fi
14824
 
14825
fi
14826
 
14827
fi
14828
 
14829 101 jeremybenn
 
14830
 
14831
 
14832
 
14833
 
14834 19 jeremybenn
for ac_func in bzero strchr strcspn strrchr strtol
14835 101 jeremybenn
do
14836
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14837
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14838
$as_echo_n "checking for $ac_func... " >&6; }
14839
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14840
  $as_echo_n "(cached) " >&6
14841
else
14842
  cat >conftest.$ac_ext <<_ACEOF
14843
/* confdefs.h.  */
14844
_ACEOF
14845
cat confdefs.h >>conftest.$ac_ext
14846
cat >>conftest.$ac_ext <<_ACEOF
14847
/* end confdefs.h.  */
14848
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14849
   For example, HP-UX 11i  declares gettimeofday.  */
14850
#define $ac_func innocuous_$ac_func
14851
 
14852
/* System header to define __stub macros and hopefully few prototypes,
14853
    which can conflict with char $ac_func (); below.
14854
    Prefer  to  if __STDC__ is defined, since
14855
     exists even on freestanding compilers.  */
14856
 
14857
#ifdef __STDC__
14858
# include 
14859
#else
14860
# include 
14861
#endif
14862
 
14863
#undef $ac_func
14864
 
14865
/* Override any GCC internal prototype to avoid an error.
14866
   Use char because int might match the return type of a GCC
14867
   builtin and then its argument prototype would still apply.  */
14868
#ifdef __cplusplus
14869
extern "C"
14870
#endif
14871
char $ac_func ();
14872
/* The GNU C library defines this for functions which it implements
14873
    to always fail with ENOSYS.  Some functions are actually named
14874
    something starting with __ and the normal name is an alias.  */
14875
#if defined __stub_$ac_func || defined __stub___$ac_func
14876
choke me
14877
#endif
14878
 
14879
int
14880
main ()
14881
{
14882
return $ac_func ();
14883
  ;
14884
  return 0;
14885
}
14886
_ACEOF
14887
rm -f conftest.$ac_objext conftest$ac_exeext
14888
if { (ac_try="$ac_link"
14889
case "(($ac_try" in
14890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891
  *) ac_try_echo=$ac_try;;
14892
esac
14893
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14894
$as_echo "$ac_try_echo") >&5
14895
  (eval "$ac_link") 2>conftest.er1
14896
  ac_status=$?
14897
  grep -v '^ *+' conftest.er1 >conftest.err
14898
  rm -f conftest.er1
14899
  cat conftest.err >&5
14900
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901
  (exit $ac_status); } && {
14902
         test -z "$ac_c_werror_flag" ||
14903
         test ! -s conftest.err
14904
       } && test -s conftest$ac_exeext && {
14905
         test "$cross_compiling" = yes ||
14906
         $as_test_x conftest$ac_exeext
14907
       }; then
14908
  eval "$as_ac_var=yes"
14909
else
14910
  $as_echo "$as_me: failed program was:" >&5
14911
sed 's/^/| /' conftest.$ac_ext >&5
14912
 
14913
        eval "$as_ac_var=no"
14914
fi
14915
 
14916
rm -rf conftest.dSYM
14917
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14918
      conftest$ac_exeext conftest.$ac_ext
14919
fi
14920
ac_res=`eval 'as_val=${'$as_ac_var'}
14921
                 $as_echo "$as_val"'`
14922
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14923
$as_echo "$ac_res" >&6; }
14924
as_val=`eval 'as_val=${'$as_ac_var'}
14925
                 $as_echo "$as_val"'`
14926
   if test "x$as_val" = x""yes; then
14927 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14928 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14929 19 jeremybenn
_ACEOF
14930
 
14931
fi
14932
done
14933
 
14934 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
14935
$as_echo_n "checking for getopt_long... " >&6; }
14936
if test "${ac_cv_func_getopt_long+set}" = set; then
14937
  $as_echo_n "(cached) " >&6
14938
else
14939
  cat >conftest.$ac_ext <<_ACEOF
14940
/* confdefs.h.  */
14941
_ACEOF
14942
cat confdefs.h >>conftest.$ac_ext
14943
cat >>conftest.$ac_ext <<_ACEOF
14944
/* end confdefs.h.  */
14945
/* Define getopt_long to an innocuous variant, in case  declares getopt_long.
14946
   For example, HP-UX 11i  declares gettimeofday.  */
14947
#define getopt_long innocuous_getopt_long
14948
 
14949
/* System header to define __stub macros and hopefully few prototypes,
14950
    which can conflict with char getopt_long (); below.
14951
    Prefer  to  if __STDC__ is defined, since
14952
     exists even on freestanding compilers.  */
14953
 
14954
#ifdef __STDC__
14955
# include 
14956
#else
14957
# include 
14958
#endif
14959
 
14960
#undef getopt_long
14961
 
14962
/* Override any GCC internal prototype to avoid an error.
14963
   Use char because int might match the return type of a GCC
14964
   builtin and then its argument prototype would still apply.  */
14965
#ifdef __cplusplus
14966
extern "C"
14967
#endif
14968
char getopt_long ();
14969
/* The GNU C library defines this for functions which it implements
14970
    to always fail with ENOSYS.  Some functions are actually named
14971
    something starting with __ and the normal name is an alias.  */
14972
#if defined __stub_getopt_long || defined __stub___getopt_long
14973
choke me
14974
#endif
14975
 
14976
int
14977
main ()
14978
{
14979
return getopt_long ();
14980
  ;
14981
  return 0;
14982
}
14983
_ACEOF
14984
rm -f conftest.$ac_objext conftest$ac_exeext
14985
if { (ac_try="$ac_link"
14986
case "(($ac_try" in
14987
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988
  *) ac_try_echo=$ac_try;;
14989
esac
14990
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14991
$as_echo "$ac_try_echo") >&5
14992
  (eval "$ac_link") 2>conftest.er1
14993
  ac_status=$?
14994
  grep -v '^ *+' conftest.er1 >conftest.err
14995
  rm -f conftest.er1
14996
  cat conftest.err >&5
14997
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998
  (exit $ac_status); } && {
14999
         test -z "$ac_c_werror_flag" ||
15000
         test ! -s conftest.err
15001
       } && test -s conftest$ac_exeext && {
15002
         test "$cross_compiling" = yes ||
15003
         $as_test_x conftest$ac_exeext
15004
       }; then
15005
  ac_cv_func_getopt_long=yes
15006
else
15007
  $as_echo "$as_me: failed program was:" >&5
15008
sed 's/^/| /' conftest.$ac_ext >&5
15009
 
15010
        ac_cv_func_getopt_long=no
15011
fi
15012
 
15013
rm -rf conftest.dSYM
15014
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15015
      conftest$ac_exeext conftest.$ac_ext
15016
fi
15017
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
15018
$as_echo "$ac_cv_func_getopt_long" >&6; }
15019
if test "x$ac_cv_func_getopt_long" = x""yes; then
15020 19 jeremybenn
  SYS_GETOPTLONG=1
15021
else
15022
  SYS_GETOPTLONG=0
15023
fi
15024
 
15025 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for regcomp" >&5
15026
$as_echo_n "checking for regcomp... " >&6; }
15027
if test "${ac_cv_func_regcomp+set}" = set; then
15028
  $as_echo_n "(cached) " >&6
15029
else
15030
  cat >conftest.$ac_ext <<_ACEOF
15031
/* confdefs.h.  */
15032
_ACEOF
15033
cat confdefs.h >>conftest.$ac_ext
15034
cat >>conftest.$ac_ext <<_ACEOF
15035
/* end confdefs.h.  */
15036
/* Define regcomp to an innocuous variant, in case  declares regcomp.
15037
   For example, HP-UX 11i  declares gettimeofday.  */
15038
#define regcomp innocuous_regcomp
15039
 
15040
/* System header to define __stub macros and hopefully few prototypes,
15041
    which can conflict with char regcomp (); below.
15042
    Prefer  to  if __STDC__ is defined, since
15043
     exists even on freestanding compilers.  */
15044
 
15045
#ifdef __STDC__
15046
# include 
15047
#else
15048
# include 
15049
#endif
15050
 
15051
#undef regcomp
15052
 
15053
/* Override any GCC internal prototype to avoid an error.
15054
   Use char because int might match the return type of a GCC
15055
   builtin and then its argument prototype would still apply.  */
15056
#ifdef __cplusplus
15057
extern "C"
15058
#endif
15059
char regcomp ();
15060
/* The GNU C library defines this for functions which it implements
15061
    to always fail with ENOSYS.  Some functions are actually named
15062
    something starting with __ and the normal name is an alias.  */
15063
#if defined __stub_regcomp || defined __stub___regcomp
15064
choke me
15065
#endif
15066
 
15067
int
15068
main ()
15069
{
15070
return regcomp ();
15071
  ;
15072
  return 0;
15073
}
15074
_ACEOF
15075
rm -f conftest.$ac_objext conftest$ac_exeext
15076
if { (ac_try="$ac_link"
15077
case "(($ac_try" in
15078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079
  *) ac_try_echo=$ac_try;;
15080
esac
15081
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15082
$as_echo "$ac_try_echo") >&5
15083
  (eval "$ac_link") 2>conftest.er1
15084
  ac_status=$?
15085
  grep -v '^ *+' conftest.er1 >conftest.err
15086
  rm -f conftest.er1
15087
  cat conftest.err >&5
15088
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089
  (exit $ac_status); } && {
15090
         test -z "$ac_c_werror_flag" ||
15091
         test ! -s conftest.err
15092
       } && test -s conftest$ac_exeext && {
15093
         test "$cross_compiling" = yes ||
15094
         $as_test_x conftest$ac_exeext
15095
       }; then
15096
  ac_cv_func_regcomp=yes
15097
else
15098
  $as_echo "$as_me: failed program was:" >&5
15099
sed 's/^/| /' conftest.$ac_ext >&5
15100
 
15101
        ac_cv_func_regcomp=no
15102
fi
15103
 
15104
rm -rf conftest.dSYM
15105
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15106
      conftest$ac_exeext conftest.$ac_ext
15107
fi
15108
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
15109
$as_echo "$ac_cv_func_regcomp" >&6; }
15110
if test "x$ac_cv_func_regcomp" = x""yes; then
15111 19 jeremybenn
  SYS_REGEX=1
15112
else
15113
  SYS_REGEX=0
15114
fi
15115
 
15116 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strptime" >&5
15117
$as_echo_n "checking for strptime... " >&6; }
15118
if test "${ac_cv_func_strptime+set}" = set; then
15119
  $as_echo_n "(cached) " >&6
15120
else
15121
  cat >conftest.$ac_ext <<_ACEOF
15122
/* confdefs.h.  */
15123
_ACEOF
15124
cat confdefs.h >>conftest.$ac_ext
15125
cat >>conftest.$ac_ext <<_ACEOF
15126
/* end confdefs.h.  */
15127
/* Define strptime to an innocuous variant, in case  declares strptime.
15128
   For example, HP-UX 11i  declares gettimeofday.  */
15129
#define strptime innocuous_strptime
15130
 
15131
/* System header to define __stub macros and hopefully few prototypes,
15132
    which can conflict with char strptime (); below.
15133
    Prefer  to  if __STDC__ is defined, since
15134
     exists even on freestanding compilers.  */
15135
 
15136
#ifdef __STDC__
15137
# include 
15138
#else
15139
# include 
15140
#endif
15141
 
15142
#undef strptime
15143
 
15144
/* Override any GCC internal prototype to avoid an error.
15145
   Use char because int might match the return type of a GCC
15146
   builtin and then its argument prototype would still apply.  */
15147
#ifdef __cplusplus
15148
extern "C"
15149
#endif
15150
char strptime ();
15151
/* The GNU C library defines this for functions which it implements
15152
    to always fail with ENOSYS.  Some functions are actually named
15153
    something starting with __ and the normal name is an alias.  */
15154
#if defined __stub_strptime || defined __stub___strptime
15155
choke me
15156
#endif
15157
 
15158
int
15159
main ()
15160
{
15161
return strptime ();
15162
  ;
15163
  return 0;
15164
}
15165
_ACEOF
15166
rm -f conftest.$ac_objext conftest$ac_exeext
15167
if { (ac_try="$ac_link"
15168
case "(($ac_try" in
15169
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170
  *) ac_try_echo=$ac_try;;
15171
esac
15172
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15173
$as_echo "$ac_try_echo") >&5
15174
  (eval "$ac_link") 2>conftest.er1
15175
  ac_status=$?
15176
  grep -v '^ *+' conftest.er1 >conftest.err
15177
  rm -f conftest.er1
15178
  cat conftest.err >&5
15179
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180
  (exit $ac_status); } && {
15181
         test -z "$ac_c_werror_flag" ||
15182
         test ! -s conftest.err
15183
       } && test -s conftest$ac_exeext && {
15184
         test "$cross_compiling" = yes ||
15185
         $as_test_x conftest$ac_exeext
15186
       }; then
15187
  ac_cv_func_strptime=yes
15188
else
15189
  $as_echo "$as_me: failed program was:" >&5
15190
sed 's/^/| /' conftest.$ac_ext >&5
15191
 
15192
        ac_cv_func_strptime=no
15193
fi
15194
 
15195
rm -rf conftest.dSYM
15196
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15197
      conftest$ac_exeext conftest.$ac_ext
15198
fi
15199
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
15200
$as_echo "$ac_cv_func_strptime" >&6; }
15201
if test "x$ac_cv_func_strptime" = x""yes; then
15202 19 jeremybenn
  SYS_STRPTIME=1
15203
else
15204
  SYS_STRPTIME=0
15205
fi
15206
 
15207
 
15208
# Define automake conditionals (for argtable2)
15209
 if test "$SYS_GETOPTLONG" = "1"; then
15210
  USE_SYS_GETOPTLONG_TRUE=
15211
  USE_SYS_GETOPTLONG_FALSE='#'
15212
else
15213
  USE_SYS_GETOPTLONG_TRUE='#'
15214
  USE_SYS_GETOPTLONG_FALSE=
15215
fi
15216
 
15217
 if test "$SYS_REGEX" = "1"; then
15218
  USE_ARGREX_TRUE=
15219
  USE_ARGREX_FALSE='#'
15220
else
15221
  USE_ARGREX_TRUE='#'
15222
  USE_ARGREX_FALSE=
15223
fi
15224
 
15225
 if test "$SYS_STRPTIME" = "1"; then
15226
  USE_ARGDATE_TRUE=
15227
  USE_ARGDATE_FALSE='#'
15228
else
15229
  USE_ARGDATE_TRUE='#'
15230
  USE_ARGDATE_FALSE=
15231
fi
15232
 
15233
 
15234
# check for "long long" (added by Erez)
15235 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
15236
/* confdefs.h.  */
15237
_ACEOF
15238
cat confdefs.h >>conftest.$ac_ext
15239
cat >>conftest.$ac_ext <<_ACEOF
15240 19 jeremybenn
/* end confdefs.h.  */
15241
 
15242
int
15243
main ()
15244
{
15245
long long ll; unsigned long long ull;
15246
  ;
15247
  return 0;
15248
}
15249
_ACEOF
15250 101 jeremybenn
rm -f conftest.$ac_objext
15251
if { (ac_try="$ac_compile"
15252
case "(($ac_try" in
15253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254
  *) ac_try_echo=$ac_try;;
15255
esac
15256
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15257
$as_echo "$ac_try_echo") >&5
15258
  (eval "$ac_compile") 2>conftest.er1
15259
  ac_status=$?
15260
  grep -v '^ *+' conftest.er1 >conftest.err
15261
  rm -f conftest.er1
15262
  cat conftest.err >&5
15263
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264
  (exit $ac_status); } && {
15265
         test -z "$ac_c_werror_flag" ||
15266
         test ! -s conftest.err
15267
       } && test -s conftest.$ac_objext; then
15268 19 jeremybenn
 
15269 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
15270
#define CC_HAS_LONG_LONG 1
15271
_ACEOF
15272 19 jeremybenn
 
15273 101 jeremybenn
else
15274
  $as_echo "$as_me: failed program was:" >&5
15275
sed 's/^/| /' conftest.$ac_ext >&5
15276
 
15277
 
15278 19 jeremybenn
fi
15279 101 jeremybenn
 
15280 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15281
 
15282
# check for {u,}int{8,16,32}_t in inttypes.h.
15283 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
15284
$as_echo_n "checking for uint8_t... " >&6; }
15285
if test "${ac_cv_type_uint8_t+set}" = set; then
15286
  $as_echo_n "(cached) " >&6
15287
else
15288
  ac_cv_type_uint8_t=no
15289
cat >conftest.$ac_ext <<_ACEOF
15290
/* confdefs.h.  */
15291
_ACEOF
15292
cat confdefs.h >>conftest.$ac_ext
15293
cat >>conftest.$ac_ext <<_ACEOF
15294
/* end confdefs.h.  */
15295
#include 
15296 82 jeremybenn
 
15297 101 jeremybenn
int
15298
main ()
15299
{
15300
if (sizeof (uint8_t))
15301
       return 0;
15302
  ;
15303
  return 0;
15304
}
15305
_ACEOF
15306
rm -f conftest.$ac_objext
15307
if { (ac_try="$ac_compile"
15308
case "(($ac_try" in
15309
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310
  *) ac_try_echo=$ac_try;;
15311
esac
15312
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15313
$as_echo "$ac_try_echo") >&5
15314
  (eval "$ac_compile") 2>conftest.er1
15315
  ac_status=$?
15316
  grep -v '^ *+' conftest.er1 >conftest.err
15317
  rm -f conftest.er1
15318
  cat conftest.err >&5
15319
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320
  (exit $ac_status); } && {
15321
         test -z "$ac_c_werror_flag" ||
15322
         test ! -s conftest.err
15323
       } && test -s conftest.$ac_objext; then
15324
  cat >conftest.$ac_ext <<_ACEOF
15325
/* confdefs.h.  */
15326
_ACEOF
15327
cat confdefs.h >>conftest.$ac_ext
15328
cat >>conftest.$ac_ext <<_ACEOF
15329
/* end confdefs.h.  */
15330
#include 
15331
 
15332
int
15333
main ()
15334
{
15335
if (sizeof ((uint8_t)))
15336
          return 0;
15337
  ;
15338
  return 0;
15339
}
15340
_ACEOF
15341
rm -f conftest.$ac_objext
15342
if { (ac_try="$ac_compile"
15343
case "(($ac_try" in
15344
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345
  *) ac_try_echo=$ac_try;;
15346
esac
15347
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15348
$as_echo "$ac_try_echo") >&5
15349
  (eval "$ac_compile") 2>conftest.er1
15350
  ac_status=$?
15351
  grep -v '^ *+' conftest.er1 >conftest.err
15352
  rm -f conftest.er1
15353
  cat conftest.err >&5
15354
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355
  (exit $ac_status); } && {
15356
         test -z "$ac_c_werror_flag" ||
15357
         test ! -s conftest.err
15358
       } && test -s conftest.$ac_objext; then
15359
  :
15360
else
15361
  $as_echo "$as_me: failed program was:" >&5
15362
sed 's/^/| /' conftest.$ac_ext >&5
15363
 
15364
        ac_cv_type_uint8_t=yes
15365
fi
15366
 
15367
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15368
else
15369
  $as_echo "$as_me: failed program was:" >&5
15370
sed 's/^/| /' conftest.$ac_ext >&5
15371
 
15372
 
15373
fi
15374
 
15375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15376
fi
15377
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
15378
$as_echo "$ac_cv_type_uint8_t" >&6; }
15379
if test "x$ac_cv_type_uint8_t" = x""yes; then
15380
 
15381 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15382
#define HAVE_UINT8_T 1
15383
_ACEOF
15384
 
15385
 
15386
fi
15387 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
15388
$as_echo_n "checking for uint16_t... " >&6; }
15389
if test "${ac_cv_type_uint16_t+set}" = set; then
15390
  $as_echo_n "(cached) " >&6
15391
else
15392
  ac_cv_type_uint16_t=no
15393
cat >conftest.$ac_ext <<_ACEOF
15394
/* confdefs.h.  */
15395
_ACEOF
15396
cat confdefs.h >>conftest.$ac_ext
15397
cat >>conftest.$ac_ext <<_ACEOF
15398
/* end confdefs.h.  */
15399
#include 
15400 82 jeremybenn
 
15401 101 jeremybenn
int
15402
main ()
15403
{
15404
if (sizeof (uint16_t))
15405
       return 0;
15406
  ;
15407
  return 0;
15408
}
15409
_ACEOF
15410
rm -f conftest.$ac_objext
15411
if { (ac_try="$ac_compile"
15412
case "(($ac_try" in
15413
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414
  *) ac_try_echo=$ac_try;;
15415
esac
15416
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15417
$as_echo "$ac_try_echo") >&5
15418
  (eval "$ac_compile") 2>conftest.er1
15419
  ac_status=$?
15420
  grep -v '^ *+' conftest.er1 >conftest.err
15421
  rm -f conftest.er1
15422
  cat conftest.err >&5
15423
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424
  (exit $ac_status); } && {
15425
         test -z "$ac_c_werror_flag" ||
15426
         test ! -s conftest.err
15427
       } && test -s conftest.$ac_objext; then
15428
  cat >conftest.$ac_ext <<_ACEOF
15429
/* confdefs.h.  */
15430
_ACEOF
15431
cat confdefs.h >>conftest.$ac_ext
15432
cat >>conftest.$ac_ext <<_ACEOF
15433
/* end confdefs.h.  */
15434
#include 
15435
 
15436
int
15437
main ()
15438
{
15439
if (sizeof ((uint16_t)))
15440
          return 0;
15441
  ;
15442
  return 0;
15443
}
15444
_ACEOF
15445
rm -f conftest.$ac_objext
15446
if { (ac_try="$ac_compile"
15447
case "(($ac_try" in
15448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449
  *) ac_try_echo=$ac_try;;
15450
esac
15451
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15452
$as_echo "$ac_try_echo") >&5
15453
  (eval "$ac_compile") 2>conftest.er1
15454
  ac_status=$?
15455
  grep -v '^ *+' conftest.er1 >conftest.err
15456
  rm -f conftest.er1
15457
  cat conftest.err >&5
15458
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459
  (exit $ac_status); } && {
15460
         test -z "$ac_c_werror_flag" ||
15461
         test ! -s conftest.err
15462
       } && test -s conftest.$ac_objext; then
15463
  :
15464
else
15465
  $as_echo "$as_me: failed program was:" >&5
15466
sed 's/^/| /' conftest.$ac_ext >&5
15467
 
15468
        ac_cv_type_uint16_t=yes
15469
fi
15470
 
15471
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15472
else
15473
  $as_echo "$as_me: failed program was:" >&5
15474
sed 's/^/| /' conftest.$ac_ext >&5
15475
 
15476
 
15477
fi
15478
 
15479
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15480
fi
15481
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
15482
$as_echo "$ac_cv_type_uint16_t" >&6; }
15483
if test "x$ac_cv_type_uint16_t" = x""yes; then
15484
 
15485 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15486
#define HAVE_UINT16_T 1
15487
_ACEOF
15488
 
15489
 
15490
fi
15491 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
15492
$as_echo_n "checking for uint32_t... " >&6; }
15493
if test "${ac_cv_type_uint32_t+set}" = set; then
15494
  $as_echo_n "(cached) " >&6
15495
else
15496
  ac_cv_type_uint32_t=no
15497
cat >conftest.$ac_ext <<_ACEOF
15498
/* confdefs.h.  */
15499
_ACEOF
15500
cat confdefs.h >>conftest.$ac_ext
15501
cat >>conftest.$ac_ext <<_ACEOF
15502
/* end confdefs.h.  */
15503
#include 
15504 82 jeremybenn
 
15505 101 jeremybenn
int
15506
main ()
15507
{
15508
if (sizeof (uint32_t))
15509
       return 0;
15510
  ;
15511
  return 0;
15512
}
15513
_ACEOF
15514
rm -f conftest.$ac_objext
15515
if { (ac_try="$ac_compile"
15516
case "(($ac_try" in
15517
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518
  *) ac_try_echo=$ac_try;;
15519
esac
15520
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15521
$as_echo "$ac_try_echo") >&5
15522
  (eval "$ac_compile") 2>conftest.er1
15523
  ac_status=$?
15524
  grep -v '^ *+' conftest.er1 >conftest.err
15525
  rm -f conftest.er1
15526
  cat conftest.err >&5
15527
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528
  (exit $ac_status); } && {
15529
         test -z "$ac_c_werror_flag" ||
15530
         test ! -s conftest.err
15531
       } && test -s conftest.$ac_objext; then
15532
  cat >conftest.$ac_ext <<_ACEOF
15533
/* confdefs.h.  */
15534
_ACEOF
15535
cat confdefs.h >>conftest.$ac_ext
15536
cat >>conftest.$ac_ext <<_ACEOF
15537
/* end confdefs.h.  */
15538
#include 
15539
 
15540
int
15541
main ()
15542
{
15543
if (sizeof ((uint32_t)))
15544
          return 0;
15545
  ;
15546
  return 0;
15547
}
15548
_ACEOF
15549
rm -f conftest.$ac_objext
15550
if { (ac_try="$ac_compile"
15551
case "(($ac_try" in
15552
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553
  *) ac_try_echo=$ac_try;;
15554
esac
15555
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15556
$as_echo "$ac_try_echo") >&5
15557
  (eval "$ac_compile") 2>conftest.er1
15558
  ac_status=$?
15559
  grep -v '^ *+' conftest.er1 >conftest.err
15560
  rm -f conftest.er1
15561
  cat conftest.err >&5
15562
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563
  (exit $ac_status); } && {
15564
         test -z "$ac_c_werror_flag" ||
15565
         test ! -s conftest.err
15566
       } && test -s conftest.$ac_objext; then
15567
  :
15568
else
15569
  $as_echo "$as_me: failed program was:" >&5
15570
sed 's/^/| /' conftest.$ac_ext >&5
15571
 
15572
        ac_cv_type_uint32_t=yes
15573
fi
15574
 
15575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15576
else
15577
  $as_echo "$as_me: failed program was:" >&5
15578
sed 's/^/| /' conftest.$ac_ext >&5
15579
 
15580
 
15581
fi
15582
 
15583
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15584
fi
15585
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
15586
$as_echo "$ac_cv_type_uint32_t" >&6; }
15587
if test "x$ac_cv_type_uint32_t" = x""yes; then
15588
 
15589 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15590
#define HAVE_UINT32_T 1
15591
_ACEOF
15592
 
15593
 
15594
fi
15595
 
15596 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
15597
$as_echo_n "checking for int8_t... " >&6; }
15598
if test "${ac_cv_type_int8_t+set}" = set; then
15599
  $as_echo_n "(cached) " >&6
15600
else
15601
  ac_cv_type_int8_t=no
15602
cat >conftest.$ac_ext <<_ACEOF
15603
/* confdefs.h.  */
15604
_ACEOF
15605
cat confdefs.h >>conftest.$ac_ext
15606
cat >>conftest.$ac_ext <<_ACEOF
15607
/* end confdefs.h.  */
15608
#include 
15609 82 jeremybenn
 
15610 101 jeremybenn
int
15611
main ()
15612
{
15613
if (sizeof (int8_t))
15614
       return 0;
15615
  ;
15616
  return 0;
15617
}
15618
_ACEOF
15619
rm -f conftest.$ac_objext
15620
if { (ac_try="$ac_compile"
15621
case "(($ac_try" in
15622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623
  *) ac_try_echo=$ac_try;;
15624
esac
15625
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15626
$as_echo "$ac_try_echo") >&5
15627
  (eval "$ac_compile") 2>conftest.er1
15628
  ac_status=$?
15629
  grep -v '^ *+' conftest.er1 >conftest.err
15630
  rm -f conftest.er1
15631
  cat conftest.err >&5
15632
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633
  (exit $ac_status); } && {
15634
         test -z "$ac_c_werror_flag" ||
15635
         test ! -s conftest.err
15636
       } && test -s conftest.$ac_objext; then
15637
  cat >conftest.$ac_ext <<_ACEOF
15638
/* confdefs.h.  */
15639
_ACEOF
15640
cat confdefs.h >>conftest.$ac_ext
15641
cat >>conftest.$ac_ext <<_ACEOF
15642
/* end confdefs.h.  */
15643
#include 
15644
 
15645
int
15646
main ()
15647
{
15648
if (sizeof ((int8_t)))
15649
          return 0;
15650
  ;
15651
  return 0;
15652
}
15653
_ACEOF
15654
rm -f conftest.$ac_objext
15655
if { (ac_try="$ac_compile"
15656
case "(($ac_try" in
15657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658
  *) ac_try_echo=$ac_try;;
15659
esac
15660
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15661
$as_echo "$ac_try_echo") >&5
15662
  (eval "$ac_compile") 2>conftest.er1
15663
  ac_status=$?
15664
  grep -v '^ *+' conftest.er1 >conftest.err
15665
  rm -f conftest.er1
15666
  cat conftest.err >&5
15667
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668
  (exit $ac_status); } && {
15669
         test -z "$ac_c_werror_flag" ||
15670
         test ! -s conftest.err
15671
       } && test -s conftest.$ac_objext; then
15672
  :
15673
else
15674
  $as_echo "$as_me: failed program was:" >&5
15675
sed 's/^/| /' conftest.$ac_ext >&5
15676
 
15677
        ac_cv_type_int8_t=yes
15678
fi
15679
 
15680
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681
else
15682
  $as_echo "$as_me: failed program was:" >&5
15683
sed 's/^/| /' conftest.$ac_ext >&5
15684
 
15685
 
15686
fi
15687
 
15688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15689
fi
15690
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
15691
$as_echo "$ac_cv_type_int8_t" >&6; }
15692
if test "x$ac_cv_type_int8_t" = x""yes; then
15693
 
15694 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15695
#define HAVE_INT8_T 1
15696
_ACEOF
15697
 
15698
 
15699
fi
15700 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
15701
$as_echo_n "checking for int16_t... " >&6; }
15702
if test "${ac_cv_type_int16_t+set}" = set; then
15703
  $as_echo_n "(cached) " >&6
15704
else
15705
  ac_cv_type_int16_t=no
15706
cat >conftest.$ac_ext <<_ACEOF
15707
/* confdefs.h.  */
15708
_ACEOF
15709
cat confdefs.h >>conftest.$ac_ext
15710
cat >>conftest.$ac_ext <<_ACEOF
15711
/* end confdefs.h.  */
15712
#include 
15713 82 jeremybenn
 
15714 101 jeremybenn
int
15715
main ()
15716
{
15717
if (sizeof (int16_t))
15718
       return 0;
15719
  ;
15720
  return 0;
15721
}
15722
_ACEOF
15723
rm -f conftest.$ac_objext
15724
if { (ac_try="$ac_compile"
15725
case "(($ac_try" in
15726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727
  *) ac_try_echo=$ac_try;;
15728
esac
15729
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15730
$as_echo "$ac_try_echo") >&5
15731
  (eval "$ac_compile") 2>conftest.er1
15732
  ac_status=$?
15733
  grep -v '^ *+' conftest.er1 >conftest.err
15734
  rm -f conftest.er1
15735
  cat conftest.err >&5
15736
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737
  (exit $ac_status); } && {
15738
         test -z "$ac_c_werror_flag" ||
15739
         test ! -s conftest.err
15740
       } && test -s conftest.$ac_objext; then
15741
  cat >conftest.$ac_ext <<_ACEOF
15742
/* confdefs.h.  */
15743
_ACEOF
15744
cat confdefs.h >>conftest.$ac_ext
15745
cat >>conftest.$ac_ext <<_ACEOF
15746
/* end confdefs.h.  */
15747
#include 
15748
 
15749
int
15750
main ()
15751
{
15752
if (sizeof ((int16_t)))
15753
          return 0;
15754
  ;
15755
  return 0;
15756
}
15757
_ACEOF
15758
rm -f conftest.$ac_objext
15759
if { (ac_try="$ac_compile"
15760
case "(($ac_try" in
15761
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762
  *) ac_try_echo=$ac_try;;
15763
esac
15764
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15765
$as_echo "$ac_try_echo") >&5
15766
  (eval "$ac_compile") 2>conftest.er1
15767
  ac_status=$?
15768
  grep -v '^ *+' conftest.er1 >conftest.err
15769
  rm -f conftest.er1
15770
  cat conftest.err >&5
15771
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772
  (exit $ac_status); } && {
15773
         test -z "$ac_c_werror_flag" ||
15774
         test ! -s conftest.err
15775
       } && test -s conftest.$ac_objext; then
15776
  :
15777
else
15778
  $as_echo "$as_me: failed program was:" >&5
15779
sed 's/^/| /' conftest.$ac_ext >&5
15780
 
15781
        ac_cv_type_int16_t=yes
15782
fi
15783
 
15784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785
else
15786
  $as_echo "$as_me: failed program was:" >&5
15787
sed 's/^/| /' conftest.$ac_ext >&5
15788
 
15789
 
15790
fi
15791
 
15792
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793
fi
15794
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
15795
$as_echo "$ac_cv_type_int16_t" >&6; }
15796
if test "x$ac_cv_type_int16_t" = x""yes; then
15797
 
15798 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15799
#define HAVE_INT16_T 1
15800
_ACEOF
15801
 
15802
 
15803
fi
15804 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
15805
$as_echo_n "checking for int32_t... " >&6; }
15806
if test "${ac_cv_type_int32_t+set}" = set; then
15807
  $as_echo_n "(cached) " >&6
15808
else
15809
  ac_cv_type_int32_t=no
15810
cat >conftest.$ac_ext <<_ACEOF
15811
/* confdefs.h.  */
15812
_ACEOF
15813
cat confdefs.h >>conftest.$ac_ext
15814
cat >>conftest.$ac_ext <<_ACEOF
15815
/* end confdefs.h.  */
15816
#include 
15817 19 jeremybenn
 
15818 101 jeremybenn
int
15819
main ()
15820
{
15821
if (sizeof (int32_t))
15822
       return 0;
15823
  ;
15824
  return 0;
15825
}
15826
_ACEOF
15827
rm -f conftest.$ac_objext
15828
if { (ac_try="$ac_compile"
15829
case "(($ac_try" in
15830
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831
  *) ac_try_echo=$ac_try;;
15832
esac
15833
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15834
$as_echo "$ac_try_echo") >&5
15835
  (eval "$ac_compile") 2>conftest.er1
15836
  ac_status=$?
15837
  grep -v '^ *+' conftest.er1 >conftest.err
15838
  rm -f conftest.er1
15839
  cat conftest.err >&5
15840
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841
  (exit $ac_status); } && {
15842
         test -z "$ac_c_werror_flag" ||
15843
         test ! -s conftest.err
15844
       } && test -s conftest.$ac_objext; then
15845
  cat >conftest.$ac_ext <<_ACEOF
15846
/* confdefs.h.  */
15847
_ACEOF
15848
cat confdefs.h >>conftest.$ac_ext
15849
cat >>conftest.$ac_ext <<_ACEOF
15850
/* end confdefs.h.  */
15851
#include 
15852
 
15853
int
15854
main ()
15855
{
15856
if (sizeof ((int32_t)))
15857
          return 0;
15858
  ;
15859
  return 0;
15860
}
15861
_ACEOF
15862
rm -f conftest.$ac_objext
15863
if { (ac_try="$ac_compile"
15864
case "(($ac_try" in
15865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866
  *) ac_try_echo=$ac_try;;
15867
esac
15868
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15869
$as_echo "$ac_try_echo") >&5
15870
  (eval "$ac_compile") 2>conftest.er1
15871
  ac_status=$?
15872
  grep -v '^ *+' conftest.er1 >conftest.err
15873
  rm -f conftest.er1
15874
  cat conftest.err >&5
15875
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876
  (exit $ac_status); } && {
15877
         test -z "$ac_c_werror_flag" ||
15878
         test ! -s conftest.err
15879
       } && test -s conftest.$ac_objext; then
15880
  :
15881
else
15882
  $as_echo "$as_me: failed program was:" >&5
15883
sed 's/^/| /' conftest.$ac_ext >&5
15884
 
15885
        ac_cv_type_int32_t=yes
15886
fi
15887
 
15888
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889
else
15890
  $as_echo "$as_me: failed program was:" >&5
15891
sed 's/^/| /' conftest.$ac_ext >&5
15892
 
15893
 
15894
fi
15895
 
15896
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15897
fi
15898
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
15899
$as_echo "$ac_cv_type_int32_t" >&6; }
15900
if test "x$ac_cv_type_int32_t" = x""yes; then
15901
 
15902 82 jeremybenn
cat >>confdefs.h <<_ACEOF
15903
#define HAVE_INT32_T 1
15904
_ACEOF
15905
 
15906
 
15907
fi
15908
 
15909
 
15910 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
15911
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15912
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15913
# This bug is HP SR number 8606223364.
15914 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of char" >&5
15915 82 jeremybenn
$as_echo_n "checking size of char... " >&6; }
15916 101 jeremybenn
if test "${ac_cv_sizeof_char+set}" = set; then
15917 82 jeremybenn
  $as_echo_n "(cached) " >&6
15918 19 jeremybenn
else
15919 101 jeremybenn
  if test "$cross_compiling" = yes; then
15920
  # Depending upon the size, compute the lo and hi bounds.
15921
cat >conftest.$ac_ext <<_ACEOF
15922
/* confdefs.h.  */
15923
_ACEOF
15924
cat confdefs.h >>conftest.$ac_ext
15925
cat >>conftest.$ac_ext <<_ACEOF
15926
/* end confdefs.h.  */
15927
$ac_includes_default
15928
int
15929
main ()
15930
{
15931
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
15932
test_array [0] = 0
15933 19 jeremybenn
 
15934 101 jeremybenn
  ;
15935
  return 0;
15936
}
15937
_ACEOF
15938
rm -f conftest.$ac_objext
15939
if { (ac_try="$ac_compile"
15940
case "(($ac_try" in
15941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942
  *) ac_try_echo=$ac_try;;
15943
esac
15944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15945
$as_echo "$ac_try_echo") >&5
15946
  (eval "$ac_compile") 2>conftest.er1
15947
  ac_status=$?
15948
  grep -v '^ *+' conftest.er1 >conftest.err
15949
  rm -f conftest.er1
15950
  cat conftest.err >&5
15951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952
  (exit $ac_status); } && {
15953
         test -z "$ac_c_werror_flag" ||
15954
         test ! -s conftest.err
15955
       } && test -s conftest.$ac_objext; then
15956
  ac_lo=0 ac_mid=0
15957
  while :; do
15958
    cat >conftest.$ac_ext <<_ACEOF
15959
/* confdefs.h.  */
15960
_ACEOF
15961
cat confdefs.h >>conftest.$ac_ext
15962
cat >>conftest.$ac_ext <<_ACEOF
15963
/* end confdefs.h.  */
15964
$ac_includes_default
15965
int
15966
main ()
15967
{
15968
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
15969
test_array [0] = 0
15970
 
15971
  ;
15972
  return 0;
15973
}
15974
_ACEOF
15975
rm -f conftest.$ac_objext
15976
if { (ac_try="$ac_compile"
15977
case "(($ac_try" in
15978
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979
  *) ac_try_echo=$ac_try;;
15980
esac
15981
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15982
$as_echo "$ac_try_echo") >&5
15983
  (eval "$ac_compile") 2>conftest.er1
15984
  ac_status=$?
15985
  grep -v '^ *+' conftest.er1 >conftest.err
15986
  rm -f conftest.er1
15987
  cat conftest.err >&5
15988
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989
  (exit $ac_status); } && {
15990
         test -z "$ac_c_werror_flag" ||
15991
         test ! -s conftest.err
15992
       } && test -s conftest.$ac_objext; then
15993
  ac_hi=$ac_mid; break
15994 19 jeremybenn
else
15995 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15996
sed 's/^/| /' conftest.$ac_ext >&5
15997
 
15998
        ac_lo=`expr $ac_mid + 1`
15999
                        if test $ac_lo -le $ac_mid; then
16000
                          ac_lo= ac_hi=
16001
                          break
16002
                        fi
16003
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16004
fi
16005
 
16006
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16007
  done
16008
else
16009
  $as_echo "$as_me: failed program was:" >&5
16010
sed 's/^/| /' conftest.$ac_ext >&5
16011
 
16012
        cat >conftest.$ac_ext <<_ACEOF
16013
/* confdefs.h.  */
16014
_ACEOF
16015
cat confdefs.h >>conftest.$ac_ext
16016
cat >>conftest.$ac_ext <<_ACEOF
16017
/* end confdefs.h.  */
16018
$ac_includes_default
16019
int
16020
main ()
16021
{
16022
static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
16023
test_array [0] = 0
16024
 
16025
  ;
16026
  return 0;
16027
}
16028
_ACEOF
16029
rm -f conftest.$ac_objext
16030
if { (ac_try="$ac_compile"
16031
case "(($ac_try" in
16032
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033
  *) ac_try_echo=$ac_try;;
16034
esac
16035
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16036
$as_echo "$ac_try_echo") >&5
16037
  (eval "$ac_compile") 2>conftest.er1
16038
  ac_status=$?
16039
  grep -v '^ *+' conftest.er1 >conftest.err
16040
  rm -f conftest.er1
16041
  cat conftest.err >&5
16042
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043
  (exit $ac_status); } && {
16044
         test -z "$ac_c_werror_flag" ||
16045
         test ! -s conftest.err
16046
       } && test -s conftest.$ac_objext; then
16047
  ac_hi=-1 ac_mid=-1
16048
  while :; do
16049
    cat >conftest.$ac_ext <<_ACEOF
16050
/* confdefs.h.  */
16051
_ACEOF
16052
cat confdefs.h >>conftest.$ac_ext
16053
cat >>conftest.$ac_ext <<_ACEOF
16054
/* end confdefs.h.  */
16055
$ac_includes_default
16056
int
16057
main ()
16058
{
16059
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
16060
test_array [0] = 0
16061
 
16062
  ;
16063
  return 0;
16064
}
16065
_ACEOF
16066
rm -f conftest.$ac_objext
16067
if { (ac_try="$ac_compile"
16068
case "(($ac_try" in
16069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070
  *) ac_try_echo=$ac_try;;
16071
esac
16072
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16073
$as_echo "$ac_try_echo") >&5
16074
  (eval "$ac_compile") 2>conftest.er1
16075
  ac_status=$?
16076
  grep -v '^ *+' conftest.er1 >conftest.err
16077
  rm -f conftest.er1
16078
  cat conftest.err >&5
16079
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080
  (exit $ac_status); } && {
16081
         test -z "$ac_c_werror_flag" ||
16082
         test ! -s conftest.err
16083
       } && test -s conftest.$ac_objext; then
16084
  ac_lo=$ac_mid; break
16085
else
16086
  $as_echo "$as_me: failed program was:" >&5
16087
sed 's/^/| /' conftest.$ac_ext >&5
16088
 
16089
        ac_hi=`expr '(' $ac_mid ')' - 1`
16090
                        if test $ac_mid -le $ac_hi; then
16091
                          ac_lo= ac_hi=
16092
                          break
16093
                        fi
16094
                        ac_mid=`expr 2 '*' $ac_mid`
16095
fi
16096
 
16097
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098
  done
16099
else
16100
  $as_echo "$as_me: failed program was:" >&5
16101
sed 's/^/| /' conftest.$ac_ext >&5
16102
 
16103
        ac_lo= ac_hi=
16104
fi
16105
 
16106
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16107
fi
16108
 
16109
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16110
# Binary search between lo and hi bounds.
16111
while test "x$ac_lo" != "x$ac_hi"; do
16112
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16113
  cat >conftest.$ac_ext <<_ACEOF
16114
/* confdefs.h.  */
16115
_ACEOF
16116
cat confdefs.h >>conftest.$ac_ext
16117
cat >>conftest.$ac_ext <<_ACEOF
16118
/* end confdefs.h.  */
16119
$ac_includes_default
16120
int
16121
main ()
16122
{
16123
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
16124
test_array [0] = 0
16125
 
16126
  ;
16127
  return 0;
16128
}
16129
_ACEOF
16130
rm -f conftest.$ac_objext
16131
if { (ac_try="$ac_compile"
16132
case "(($ac_try" in
16133
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134
  *) ac_try_echo=$ac_try;;
16135
esac
16136
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16137
$as_echo "$ac_try_echo") >&5
16138
  (eval "$ac_compile") 2>conftest.er1
16139
  ac_status=$?
16140
  grep -v '^ *+' conftest.er1 >conftest.err
16141
  rm -f conftest.er1
16142
  cat conftest.err >&5
16143
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144
  (exit $ac_status); } && {
16145
         test -z "$ac_c_werror_flag" ||
16146
         test ! -s conftest.err
16147
       } && test -s conftest.$ac_objext; then
16148
  ac_hi=$ac_mid
16149
else
16150
  $as_echo "$as_me: failed program was:" >&5
16151
sed 's/^/| /' conftest.$ac_ext >&5
16152
 
16153
        ac_lo=`expr '(' $ac_mid ')' + 1`
16154
fi
16155
 
16156
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16157
done
16158
case $ac_lo in
16159
?*) ac_cv_sizeof_char=$ac_lo;;
16160
'') if test "$ac_cv_type_char" = yes; then
16161
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16162 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16163 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16164
See \`config.log' for more details." >&5
16165
$as_echo "$as_me: error: cannot compute sizeof (char)
16166
See \`config.log' for more details." >&2;}
16167
   { (exit 77); exit 77; }; }; }
16168 19 jeremybenn
   else
16169
     ac_cv_sizeof_char=0
16170 101 jeremybenn
   fi ;;
16171
esac
16172
else
16173
  cat >conftest.$ac_ext <<_ACEOF
16174
/* confdefs.h.  */
16175
_ACEOF
16176
cat confdefs.h >>conftest.$ac_ext
16177
cat >>conftest.$ac_ext <<_ACEOF
16178
/* end confdefs.h.  */
16179
$ac_includes_default
16180
static long int longval () { return (long int) (sizeof (char)); }
16181
static unsigned long int ulongval () { return (long int) (sizeof (char)); }
16182
#include 
16183
#include 
16184
int
16185
main ()
16186
{
16187
 
16188
  FILE *f = fopen ("conftest.val", "w");
16189
  if (! f)
16190
    return 1;
16191
  if (((long int) (sizeof (char))) < 0)
16192
    {
16193
      long int i = longval ();
16194
      if (i != ((long int) (sizeof (char))))
16195
        return 1;
16196
      fprintf (f, "%ld", i);
16197
    }
16198
  else
16199
    {
16200
      unsigned long int i = ulongval ();
16201
      if (i != ((long int) (sizeof (char))))
16202
        return 1;
16203
      fprintf (f, "%lu", i);
16204
    }
16205
  /* Do not output a trailing newline, as this causes \r\n confusion
16206
     on some platforms.  */
16207
  return ferror (f) || fclose (f) != 0;
16208
 
16209
  ;
16210
  return 0;
16211
}
16212
_ACEOF
16213
rm -f conftest$ac_exeext
16214
if { (ac_try="$ac_link"
16215
case "(($ac_try" in
16216
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217
  *) ac_try_echo=$ac_try;;
16218
esac
16219
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16220
$as_echo "$ac_try_echo") >&5
16221
  (eval "$ac_link") 2>&5
16222
  ac_status=$?
16223
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16225
  { (case "(($ac_try" in
16226
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227
  *) ac_try_echo=$ac_try;;
16228
esac
16229
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16230
$as_echo "$ac_try_echo") >&5
16231
  (eval "$ac_try") 2>&5
16232
  ac_status=$?
16233
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234
  (exit $ac_status); }; }; then
16235
  ac_cv_sizeof_char=`cat conftest.val`
16236
else
16237
  $as_echo "$as_me: program exited with status $ac_status" >&5
16238
$as_echo "$as_me: failed program was:" >&5
16239
sed 's/^/| /' conftest.$ac_ext >&5
16240
 
16241
( exit $ac_status )
16242
if test "$ac_cv_type_char" = yes; then
16243
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16244
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16245
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16246
See \`config.log' for more details." >&5
16247
$as_echo "$as_me: error: cannot compute sizeof (char)
16248
See \`config.log' for more details." >&2;}
16249
   { (exit 77); exit 77; }; }; }
16250
   else
16251
     ac_cv_sizeof_char=0
16252 19 jeremybenn
   fi
16253
fi
16254 101 jeremybenn
rm -rf conftest.dSYM
16255
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16256 19 jeremybenn
fi
16257 101 jeremybenn
rm -f conftest.val
16258
fi
16259
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16260 82 jeremybenn
$as_echo "$ac_cv_sizeof_char" >&6; }
16261 19 jeremybenn
 
16262
 
16263
 
16264
cat >>confdefs.h <<_ACEOF
16265
#define SIZEOF_CHAR $ac_cv_sizeof_char
16266
_ACEOF
16267
 
16268
 
16269
# The cast to long int works around a bug in the HP C Compiler
16270
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16271
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16272
# This bug is HP SR number 8606223364.
16273 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
16274 82 jeremybenn
$as_echo_n "checking size of short... " >&6; }
16275 101 jeremybenn
if test "${ac_cv_sizeof_short+set}" = set; then
16276 82 jeremybenn
  $as_echo_n "(cached) " >&6
16277 19 jeremybenn
else
16278 101 jeremybenn
  if test "$cross_compiling" = yes; then
16279
  # Depending upon the size, compute the lo and hi bounds.
16280
cat >conftest.$ac_ext <<_ACEOF
16281
/* confdefs.h.  */
16282
_ACEOF
16283
cat confdefs.h >>conftest.$ac_ext
16284
cat >>conftest.$ac_ext <<_ACEOF
16285
/* end confdefs.h.  */
16286
$ac_includes_default
16287
int
16288
main ()
16289
{
16290
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
16291
test_array [0] = 0
16292 19 jeremybenn
 
16293 101 jeremybenn
  ;
16294
  return 0;
16295
}
16296
_ACEOF
16297
rm -f conftest.$ac_objext
16298
if { (ac_try="$ac_compile"
16299
case "(($ac_try" in
16300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301
  *) ac_try_echo=$ac_try;;
16302
esac
16303
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16304
$as_echo "$ac_try_echo") >&5
16305
  (eval "$ac_compile") 2>conftest.er1
16306
  ac_status=$?
16307
  grep -v '^ *+' conftest.er1 >conftest.err
16308
  rm -f conftest.er1
16309
  cat conftest.err >&5
16310
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311
  (exit $ac_status); } && {
16312
         test -z "$ac_c_werror_flag" ||
16313
         test ! -s conftest.err
16314
       } && test -s conftest.$ac_objext; then
16315
  ac_lo=0 ac_mid=0
16316
  while :; do
16317
    cat >conftest.$ac_ext <<_ACEOF
16318
/* confdefs.h.  */
16319
_ACEOF
16320
cat confdefs.h >>conftest.$ac_ext
16321
cat >>conftest.$ac_ext <<_ACEOF
16322
/* end confdefs.h.  */
16323
$ac_includes_default
16324
int
16325
main ()
16326
{
16327
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16328
test_array [0] = 0
16329
 
16330
  ;
16331
  return 0;
16332
}
16333
_ACEOF
16334
rm -f conftest.$ac_objext
16335
if { (ac_try="$ac_compile"
16336
case "(($ac_try" in
16337
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338
  *) ac_try_echo=$ac_try;;
16339
esac
16340
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16341
$as_echo "$ac_try_echo") >&5
16342
  (eval "$ac_compile") 2>conftest.er1
16343
  ac_status=$?
16344
  grep -v '^ *+' conftest.er1 >conftest.err
16345
  rm -f conftest.er1
16346
  cat conftest.err >&5
16347
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348
  (exit $ac_status); } && {
16349
         test -z "$ac_c_werror_flag" ||
16350
         test ! -s conftest.err
16351
       } && test -s conftest.$ac_objext; then
16352
  ac_hi=$ac_mid; break
16353 19 jeremybenn
else
16354 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16355
sed 's/^/| /' conftest.$ac_ext >&5
16356
 
16357
        ac_lo=`expr $ac_mid + 1`
16358
                        if test $ac_lo -le $ac_mid; then
16359
                          ac_lo= ac_hi=
16360
                          break
16361
                        fi
16362
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16363
fi
16364
 
16365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16366
  done
16367
else
16368
  $as_echo "$as_me: failed program was:" >&5
16369
sed 's/^/| /' conftest.$ac_ext >&5
16370
 
16371
        cat >conftest.$ac_ext <<_ACEOF
16372
/* confdefs.h.  */
16373
_ACEOF
16374
cat confdefs.h >>conftest.$ac_ext
16375
cat >>conftest.$ac_ext <<_ACEOF
16376
/* end confdefs.h.  */
16377
$ac_includes_default
16378
int
16379
main ()
16380
{
16381
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
16382
test_array [0] = 0
16383
 
16384
  ;
16385
  return 0;
16386
}
16387
_ACEOF
16388
rm -f conftest.$ac_objext
16389
if { (ac_try="$ac_compile"
16390
case "(($ac_try" in
16391
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392
  *) ac_try_echo=$ac_try;;
16393
esac
16394
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16395
$as_echo "$ac_try_echo") >&5
16396
  (eval "$ac_compile") 2>conftest.er1
16397
  ac_status=$?
16398
  grep -v '^ *+' conftest.er1 >conftest.err
16399
  rm -f conftest.er1
16400
  cat conftest.err >&5
16401
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402
  (exit $ac_status); } && {
16403
         test -z "$ac_c_werror_flag" ||
16404
         test ! -s conftest.err
16405
       } && test -s conftest.$ac_objext; then
16406
  ac_hi=-1 ac_mid=-1
16407
  while :; do
16408
    cat >conftest.$ac_ext <<_ACEOF
16409
/* confdefs.h.  */
16410
_ACEOF
16411
cat confdefs.h >>conftest.$ac_ext
16412
cat >>conftest.$ac_ext <<_ACEOF
16413
/* end confdefs.h.  */
16414
$ac_includes_default
16415
int
16416
main ()
16417
{
16418
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
16419
test_array [0] = 0
16420
 
16421
  ;
16422
  return 0;
16423
}
16424
_ACEOF
16425
rm -f conftest.$ac_objext
16426
if { (ac_try="$ac_compile"
16427
case "(($ac_try" in
16428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429
  *) ac_try_echo=$ac_try;;
16430
esac
16431
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16432
$as_echo "$ac_try_echo") >&5
16433
  (eval "$ac_compile") 2>conftest.er1
16434
  ac_status=$?
16435
  grep -v '^ *+' conftest.er1 >conftest.err
16436
  rm -f conftest.er1
16437
  cat conftest.err >&5
16438
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439
  (exit $ac_status); } && {
16440
         test -z "$ac_c_werror_flag" ||
16441
         test ! -s conftest.err
16442
       } && test -s conftest.$ac_objext; then
16443
  ac_lo=$ac_mid; break
16444
else
16445
  $as_echo "$as_me: failed program was:" >&5
16446
sed 's/^/| /' conftest.$ac_ext >&5
16447
 
16448
        ac_hi=`expr '(' $ac_mid ')' - 1`
16449
                        if test $ac_mid -le $ac_hi; then
16450
                          ac_lo= ac_hi=
16451
                          break
16452
                        fi
16453
                        ac_mid=`expr 2 '*' $ac_mid`
16454
fi
16455
 
16456
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16457
  done
16458
else
16459
  $as_echo "$as_me: failed program was:" >&5
16460
sed 's/^/| /' conftest.$ac_ext >&5
16461
 
16462
        ac_lo= ac_hi=
16463
fi
16464
 
16465
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466
fi
16467
 
16468
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16469
# Binary search between lo and hi bounds.
16470
while test "x$ac_lo" != "x$ac_hi"; do
16471
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16472
  cat >conftest.$ac_ext <<_ACEOF
16473
/* confdefs.h.  */
16474
_ACEOF
16475
cat confdefs.h >>conftest.$ac_ext
16476
cat >>conftest.$ac_ext <<_ACEOF
16477
/* end confdefs.h.  */
16478
$ac_includes_default
16479
int
16480
main ()
16481
{
16482
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16483
test_array [0] = 0
16484
 
16485
  ;
16486
  return 0;
16487
}
16488
_ACEOF
16489
rm -f conftest.$ac_objext
16490
if { (ac_try="$ac_compile"
16491
case "(($ac_try" in
16492
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493
  *) ac_try_echo=$ac_try;;
16494
esac
16495
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16496
$as_echo "$ac_try_echo") >&5
16497
  (eval "$ac_compile") 2>conftest.er1
16498
  ac_status=$?
16499
  grep -v '^ *+' conftest.er1 >conftest.err
16500
  rm -f conftest.er1
16501
  cat conftest.err >&5
16502
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503
  (exit $ac_status); } && {
16504
         test -z "$ac_c_werror_flag" ||
16505
         test ! -s conftest.err
16506
       } && test -s conftest.$ac_objext; then
16507
  ac_hi=$ac_mid
16508
else
16509
  $as_echo "$as_me: failed program was:" >&5
16510
sed 's/^/| /' conftest.$ac_ext >&5
16511
 
16512
        ac_lo=`expr '(' $ac_mid ')' + 1`
16513
fi
16514
 
16515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516
done
16517
case $ac_lo in
16518
?*) ac_cv_sizeof_short=$ac_lo;;
16519
'') if test "$ac_cv_type_short" = yes; then
16520
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16521 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16522 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16523
See \`config.log' for more details." >&5
16524
$as_echo "$as_me: error: cannot compute sizeof (short)
16525
See \`config.log' for more details." >&2;}
16526
   { (exit 77); exit 77; }; }; }
16527 19 jeremybenn
   else
16528
     ac_cv_sizeof_short=0
16529 101 jeremybenn
   fi ;;
16530
esac
16531
else
16532
  cat >conftest.$ac_ext <<_ACEOF
16533
/* confdefs.h.  */
16534
_ACEOF
16535
cat confdefs.h >>conftest.$ac_ext
16536
cat >>conftest.$ac_ext <<_ACEOF
16537
/* end confdefs.h.  */
16538
$ac_includes_default
16539
static long int longval () { return (long int) (sizeof (short)); }
16540
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
16541
#include 
16542
#include 
16543
int
16544
main ()
16545
{
16546
 
16547
  FILE *f = fopen ("conftest.val", "w");
16548
  if (! f)
16549
    return 1;
16550
  if (((long int) (sizeof (short))) < 0)
16551
    {
16552
      long int i = longval ();
16553
      if (i != ((long int) (sizeof (short))))
16554
        return 1;
16555
      fprintf (f, "%ld", i);
16556
    }
16557
  else
16558
    {
16559
      unsigned long int i = ulongval ();
16560
      if (i != ((long int) (sizeof (short))))
16561
        return 1;
16562
      fprintf (f, "%lu", i);
16563
    }
16564
  /* Do not output a trailing newline, as this causes \r\n confusion
16565
     on some platforms.  */
16566
  return ferror (f) || fclose (f) != 0;
16567
 
16568
  ;
16569
  return 0;
16570
}
16571
_ACEOF
16572
rm -f conftest$ac_exeext
16573
if { (ac_try="$ac_link"
16574
case "(($ac_try" in
16575
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576
  *) ac_try_echo=$ac_try;;
16577
esac
16578
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16579
$as_echo "$ac_try_echo") >&5
16580
  (eval "$ac_link") 2>&5
16581
  ac_status=$?
16582
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16584
  { (case "(($ac_try" in
16585
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586
  *) ac_try_echo=$ac_try;;
16587
esac
16588
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16589
$as_echo "$ac_try_echo") >&5
16590
  (eval "$ac_try") 2>&5
16591
  ac_status=$?
16592
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593
  (exit $ac_status); }; }; then
16594
  ac_cv_sizeof_short=`cat conftest.val`
16595
else
16596
  $as_echo "$as_me: program exited with status $ac_status" >&5
16597
$as_echo "$as_me: failed program was:" >&5
16598
sed 's/^/| /' conftest.$ac_ext >&5
16599
 
16600
( exit $ac_status )
16601
if test "$ac_cv_type_short" = yes; then
16602
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16603
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16604
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16605
See \`config.log' for more details." >&5
16606
$as_echo "$as_me: error: cannot compute sizeof (short)
16607
See \`config.log' for more details." >&2;}
16608
   { (exit 77); exit 77; }; }; }
16609
   else
16610
     ac_cv_sizeof_short=0
16611 19 jeremybenn
   fi
16612
fi
16613 101 jeremybenn
rm -rf conftest.dSYM
16614
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16615 19 jeremybenn
fi
16616 101 jeremybenn
rm -f conftest.val
16617
fi
16618
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16619 82 jeremybenn
$as_echo "$ac_cv_sizeof_short" >&6; }
16620 19 jeremybenn
 
16621
 
16622
 
16623
cat >>confdefs.h <<_ACEOF
16624
#define SIZEOF_SHORT $ac_cv_sizeof_short
16625
_ACEOF
16626
 
16627
 
16628
# The cast to long int works around a bug in the HP C Compiler
16629
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16630
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16631
# This bug is HP SR number 8606223364.
16632 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
16633 82 jeremybenn
$as_echo_n "checking size of int... " >&6; }
16634 101 jeremybenn
if test "${ac_cv_sizeof_int+set}" = set; then
16635 82 jeremybenn
  $as_echo_n "(cached) " >&6
16636 19 jeremybenn
else
16637 101 jeremybenn
  if test "$cross_compiling" = yes; then
16638
  # Depending upon the size, compute the lo and hi bounds.
16639
cat >conftest.$ac_ext <<_ACEOF
16640
/* confdefs.h.  */
16641
_ACEOF
16642
cat confdefs.h >>conftest.$ac_ext
16643
cat >>conftest.$ac_ext <<_ACEOF
16644
/* end confdefs.h.  */
16645
$ac_includes_default
16646
int
16647
main ()
16648
{
16649
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
16650
test_array [0] = 0
16651 19 jeremybenn
 
16652 101 jeremybenn
  ;
16653
  return 0;
16654
}
16655
_ACEOF
16656
rm -f conftest.$ac_objext
16657
if { (ac_try="$ac_compile"
16658
case "(($ac_try" in
16659
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660
  *) ac_try_echo=$ac_try;;
16661
esac
16662
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16663
$as_echo "$ac_try_echo") >&5
16664
  (eval "$ac_compile") 2>conftest.er1
16665
  ac_status=$?
16666
  grep -v '^ *+' conftest.er1 >conftest.err
16667
  rm -f conftest.er1
16668
  cat conftest.err >&5
16669
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670
  (exit $ac_status); } && {
16671
         test -z "$ac_c_werror_flag" ||
16672
         test ! -s conftest.err
16673
       } && test -s conftest.$ac_objext; then
16674
  ac_lo=0 ac_mid=0
16675
  while :; do
16676
    cat >conftest.$ac_ext <<_ACEOF
16677
/* confdefs.h.  */
16678
_ACEOF
16679
cat confdefs.h >>conftest.$ac_ext
16680
cat >>conftest.$ac_ext <<_ACEOF
16681
/* end confdefs.h.  */
16682
$ac_includes_default
16683
int
16684
main ()
16685
{
16686
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16687
test_array [0] = 0
16688
 
16689
  ;
16690
  return 0;
16691
}
16692
_ACEOF
16693
rm -f conftest.$ac_objext
16694
if { (ac_try="$ac_compile"
16695
case "(($ac_try" in
16696
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697
  *) ac_try_echo=$ac_try;;
16698
esac
16699
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16700
$as_echo "$ac_try_echo") >&5
16701
  (eval "$ac_compile") 2>conftest.er1
16702
  ac_status=$?
16703
  grep -v '^ *+' conftest.er1 >conftest.err
16704
  rm -f conftest.er1
16705
  cat conftest.err >&5
16706
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707
  (exit $ac_status); } && {
16708
         test -z "$ac_c_werror_flag" ||
16709
         test ! -s conftest.err
16710
       } && test -s conftest.$ac_objext; then
16711
  ac_hi=$ac_mid; break
16712 19 jeremybenn
else
16713 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16714
sed 's/^/| /' conftest.$ac_ext >&5
16715
 
16716
        ac_lo=`expr $ac_mid + 1`
16717
                        if test $ac_lo -le $ac_mid; then
16718
                          ac_lo= ac_hi=
16719
                          break
16720
                        fi
16721
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16722
fi
16723
 
16724
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725
  done
16726
else
16727
  $as_echo "$as_me: failed program was:" >&5
16728
sed 's/^/| /' conftest.$ac_ext >&5
16729
 
16730
        cat >conftest.$ac_ext <<_ACEOF
16731
/* confdefs.h.  */
16732
_ACEOF
16733
cat confdefs.h >>conftest.$ac_ext
16734
cat >>conftest.$ac_ext <<_ACEOF
16735
/* end confdefs.h.  */
16736
$ac_includes_default
16737
int
16738
main ()
16739
{
16740
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
16741
test_array [0] = 0
16742
 
16743
  ;
16744
  return 0;
16745
}
16746
_ACEOF
16747
rm -f conftest.$ac_objext
16748
if { (ac_try="$ac_compile"
16749
case "(($ac_try" in
16750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751
  *) ac_try_echo=$ac_try;;
16752
esac
16753
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16754
$as_echo "$ac_try_echo") >&5
16755
  (eval "$ac_compile") 2>conftest.er1
16756
  ac_status=$?
16757
  grep -v '^ *+' conftest.er1 >conftest.err
16758
  rm -f conftest.er1
16759
  cat conftest.err >&5
16760
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761
  (exit $ac_status); } && {
16762
         test -z "$ac_c_werror_flag" ||
16763
         test ! -s conftest.err
16764
       } && test -s conftest.$ac_objext; then
16765
  ac_hi=-1 ac_mid=-1
16766
  while :; do
16767
    cat >conftest.$ac_ext <<_ACEOF
16768
/* confdefs.h.  */
16769
_ACEOF
16770
cat confdefs.h >>conftest.$ac_ext
16771
cat >>conftest.$ac_ext <<_ACEOF
16772
/* end confdefs.h.  */
16773
$ac_includes_default
16774
int
16775
main ()
16776
{
16777
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
16778
test_array [0] = 0
16779
 
16780
  ;
16781
  return 0;
16782
}
16783
_ACEOF
16784
rm -f conftest.$ac_objext
16785
if { (ac_try="$ac_compile"
16786
case "(($ac_try" in
16787
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788
  *) ac_try_echo=$ac_try;;
16789
esac
16790
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16791
$as_echo "$ac_try_echo") >&5
16792
  (eval "$ac_compile") 2>conftest.er1
16793
  ac_status=$?
16794
  grep -v '^ *+' conftest.er1 >conftest.err
16795
  rm -f conftest.er1
16796
  cat conftest.err >&5
16797
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798
  (exit $ac_status); } && {
16799
         test -z "$ac_c_werror_flag" ||
16800
         test ! -s conftest.err
16801
       } && test -s conftest.$ac_objext; then
16802
  ac_lo=$ac_mid; break
16803
else
16804
  $as_echo "$as_me: failed program was:" >&5
16805
sed 's/^/| /' conftest.$ac_ext >&5
16806
 
16807
        ac_hi=`expr '(' $ac_mid ')' - 1`
16808
                        if test $ac_mid -le $ac_hi; then
16809
                          ac_lo= ac_hi=
16810
                          break
16811
                        fi
16812
                        ac_mid=`expr 2 '*' $ac_mid`
16813
fi
16814
 
16815
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16816
  done
16817
else
16818
  $as_echo "$as_me: failed program was:" >&5
16819
sed 's/^/| /' conftest.$ac_ext >&5
16820
 
16821
        ac_lo= ac_hi=
16822
fi
16823
 
16824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16825
fi
16826
 
16827
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16828
# Binary search between lo and hi bounds.
16829
while test "x$ac_lo" != "x$ac_hi"; do
16830
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16831
  cat >conftest.$ac_ext <<_ACEOF
16832
/* confdefs.h.  */
16833
_ACEOF
16834
cat confdefs.h >>conftest.$ac_ext
16835
cat >>conftest.$ac_ext <<_ACEOF
16836
/* end confdefs.h.  */
16837
$ac_includes_default
16838
int
16839
main ()
16840
{
16841
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16842
test_array [0] = 0
16843
 
16844
  ;
16845
  return 0;
16846
}
16847
_ACEOF
16848
rm -f conftest.$ac_objext
16849
if { (ac_try="$ac_compile"
16850
case "(($ac_try" in
16851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852
  *) ac_try_echo=$ac_try;;
16853
esac
16854
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16855
$as_echo "$ac_try_echo") >&5
16856
  (eval "$ac_compile") 2>conftest.er1
16857
  ac_status=$?
16858
  grep -v '^ *+' conftest.er1 >conftest.err
16859
  rm -f conftest.er1
16860
  cat conftest.err >&5
16861
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862
  (exit $ac_status); } && {
16863
         test -z "$ac_c_werror_flag" ||
16864
         test ! -s conftest.err
16865
       } && test -s conftest.$ac_objext; then
16866
  ac_hi=$ac_mid
16867
else
16868
  $as_echo "$as_me: failed program was:" >&5
16869
sed 's/^/| /' conftest.$ac_ext >&5
16870
 
16871
        ac_lo=`expr '(' $ac_mid ')' + 1`
16872
fi
16873
 
16874
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16875
done
16876
case $ac_lo in
16877
?*) ac_cv_sizeof_int=$ac_lo;;
16878
'') if test "$ac_cv_type_int" = yes; then
16879
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16880 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16881 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16882
See \`config.log' for more details." >&5
16883
$as_echo "$as_me: error: cannot compute sizeof (int)
16884
See \`config.log' for more details." >&2;}
16885
   { (exit 77); exit 77; }; }; }
16886 19 jeremybenn
   else
16887
     ac_cv_sizeof_int=0
16888 101 jeremybenn
   fi ;;
16889
esac
16890
else
16891
  cat >conftest.$ac_ext <<_ACEOF
16892
/* confdefs.h.  */
16893
_ACEOF
16894
cat confdefs.h >>conftest.$ac_ext
16895
cat >>conftest.$ac_ext <<_ACEOF
16896
/* end confdefs.h.  */
16897
$ac_includes_default
16898
static long int longval () { return (long int) (sizeof (int)); }
16899
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
16900
#include 
16901
#include 
16902
int
16903
main ()
16904
{
16905
 
16906
  FILE *f = fopen ("conftest.val", "w");
16907
  if (! f)
16908
    return 1;
16909
  if (((long int) (sizeof (int))) < 0)
16910
    {
16911
      long int i = longval ();
16912
      if (i != ((long int) (sizeof (int))))
16913
        return 1;
16914
      fprintf (f, "%ld", i);
16915
    }
16916
  else
16917
    {
16918
      unsigned long int i = ulongval ();
16919
      if (i != ((long int) (sizeof (int))))
16920
        return 1;
16921
      fprintf (f, "%lu", i);
16922
    }
16923
  /* Do not output a trailing newline, as this causes \r\n confusion
16924
     on some platforms.  */
16925
  return ferror (f) || fclose (f) != 0;
16926
 
16927
  ;
16928
  return 0;
16929
}
16930
_ACEOF
16931
rm -f conftest$ac_exeext
16932
if { (ac_try="$ac_link"
16933
case "(($ac_try" in
16934
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935
  *) ac_try_echo=$ac_try;;
16936
esac
16937
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16938
$as_echo "$ac_try_echo") >&5
16939
  (eval "$ac_link") 2>&5
16940
  ac_status=$?
16941
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16943
  { (case "(($ac_try" in
16944
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945
  *) ac_try_echo=$ac_try;;
16946
esac
16947
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16948
$as_echo "$ac_try_echo") >&5
16949
  (eval "$ac_try") 2>&5
16950
  ac_status=$?
16951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952
  (exit $ac_status); }; }; then
16953
  ac_cv_sizeof_int=`cat conftest.val`
16954
else
16955
  $as_echo "$as_me: program exited with status $ac_status" >&5
16956
$as_echo "$as_me: failed program was:" >&5
16957
sed 's/^/| /' conftest.$ac_ext >&5
16958
 
16959
( exit $ac_status )
16960
if test "$ac_cv_type_int" = yes; then
16961
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16962
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16963
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16964
See \`config.log' for more details." >&5
16965
$as_echo "$as_me: error: cannot compute sizeof (int)
16966
See \`config.log' for more details." >&2;}
16967
   { (exit 77); exit 77; }; }; }
16968
   else
16969
     ac_cv_sizeof_int=0
16970 19 jeremybenn
   fi
16971
fi
16972 101 jeremybenn
rm -rf conftest.dSYM
16973
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16974 19 jeremybenn
fi
16975 101 jeremybenn
rm -f conftest.val
16976
fi
16977
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16978 82 jeremybenn
$as_echo "$ac_cv_sizeof_int" >&6; }
16979 19 jeremybenn
 
16980
 
16981
 
16982
cat >>confdefs.h <<_ACEOF
16983
#define SIZEOF_INT $ac_cv_sizeof_int
16984
_ACEOF
16985
 
16986
 
16987
# The cast to long int works around a bug in the HP C Compiler
16988
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16989
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16990
# This bug is HP SR number 8606223364.
16991 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
16992 82 jeremybenn
$as_echo_n "checking size of long... " >&6; }
16993 101 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then
16994 82 jeremybenn
  $as_echo_n "(cached) " >&6
16995 19 jeremybenn
else
16996 101 jeremybenn
  if test "$cross_compiling" = yes; then
16997
  # Depending upon the size, compute the lo and hi bounds.
16998
cat >conftest.$ac_ext <<_ACEOF
16999
/* confdefs.h.  */
17000
_ACEOF
17001
cat confdefs.h >>conftest.$ac_ext
17002
cat >>conftest.$ac_ext <<_ACEOF
17003
/* end confdefs.h.  */
17004
$ac_includes_default
17005
int
17006
main ()
17007
{
17008
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
17009
test_array [0] = 0
17010 19 jeremybenn
 
17011 101 jeremybenn
  ;
17012
  return 0;
17013
}
17014
_ACEOF
17015
rm -f conftest.$ac_objext
17016
if { (ac_try="$ac_compile"
17017
case "(($ac_try" in
17018
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019
  *) ac_try_echo=$ac_try;;
17020
esac
17021
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17022
$as_echo "$ac_try_echo") >&5
17023
  (eval "$ac_compile") 2>conftest.er1
17024
  ac_status=$?
17025
  grep -v '^ *+' conftest.er1 >conftest.err
17026
  rm -f conftest.er1
17027
  cat conftest.err >&5
17028
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029
  (exit $ac_status); } && {
17030
         test -z "$ac_c_werror_flag" ||
17031
         test ! -s conftest.err
17032
       } && test -s conftest.$ac_objext; then
17033
  ac_lo=0 ac_mid=0
17034
  while :; do
17035
    cat >conftest.$ac_ext <<_ACEOF
17036
/* confdefs.h.  */
17037
_ACEOF
17038
cat confdefs.h >>conftest.$ac_ext
17039
cat >>conftest.$ac_ext <<_ACEOF
17040
/* end confdefs.h.  */
17041
$ac_includes_default
17042
int
17043
main ()
17044
{
17045
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
17046
test_array [0] = 0
17047
 
17048
  ;
17049
  return 0;
17050
}
17051
_ACEOF
17052
rm -f conftest.$ac_objext
17053
if { (ac_try="$ac_compile"
17054
case "(($ac_try" in
17055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056
  *) ac_try_echo=$ac_try;;
17057
esac
17058
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17059
$as_echo "$ac_try_echo") >&5
17060
  (eval "$ac_compile") 2>conftest.er1
17061
  ac_status=$?
17062
  grep -v '^ *+' conftest.er1 >conftest.err
17063
  rm -f conftest.er1
17064
  cat conftest.err >&5
17065
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066
  (exit $ac_status); } && {
17067
         test -z "$ac_c_werror_flag" ||
17068
         test ! -s conftest.err
17069
       } && test -s conftest.$ac_objext; then
17070
  ac_hi=$ac_mid; break
17071 19 jeremybenn
else
17072 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17073
sed 's/^/| /' conftest.$ac_ext >&5
17074
 
17075
        ac_lo=`expr $ac_mid + 1`
17076
                        if test $ac_lo -le $ac_mid; then
17077
                          ac_lo= ac_hi=
17078
                          break
17079
                        fi
17080
                        ac_mid=`expr 2 '*' $ac_mid + 1`
17081
fi
17082
 
17083
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17084
  done
17085
else
17086
  $as_echo "$as_me: failed program was:" >&5
17087
sed 's/^/| /' conftest.$ac_ext >&5
17088
 
17089
        cat >conftest.$ac_ext <<_ACEOF
17090
/* confdefs.h.  */
17091
_ACEOF
17092
cat confdefs.h >>conftest.$ac_ext
17093
cat >>conftest.$ac_ext <<_ACEOF
17094
/* end confdefs.h.  */
17095
$ac_includes_default
17096
int
17097
main ()
17098
{
17099
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
17100
test_array [0] = 0
17101
 
17102
  ;
17103
  return 0;
17104
}
17105
_ACEOF
17106
rm -f conftest.$ac_objext
17107
if { (ac_try="$ac_compile"
17108
case "(($ac_try" in
17109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110
  *) ac_try_echo=$ac_try;;
17111
esac
17112
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17113
$as_echo "$ac_try_echo") >&5
17114
  (eval "$ac_compile") 2>conftest.er1
17115
  ac_status=$?
17116
  grep -v '^ *+' conftest.er1 >conftest.err
17117
  rm -f conftest.er1
17118
  cat conftest.err >&5
17119
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120
  (exit $ac_status); } && {
17121
         test -z "$ac_c_werror_flag" ||
17122
         test ! -s conftest.err
17123
       } && test -s conftest.$ac_objext; then
17124
  ac_hi=-1 ac_mid=-1
17125
  while :; do
17126
    cat >conftest.$ac_ext <<_ACEOF
17127
/* confdefs.h.  */
17128
_ACEOF
17129
cat confdefs.h >>conftest.$ac_ext
17130
cat >>conftest.$ac_ext <<_ACEOF
17131
/* end confdefs.h.  */
17132
$ac_includes_default
17133
int
17134
main ()
17135
{
17136
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
17137
test_array [0] = 0
17138
 
17139
  ;
17140
  return 0;
17141
}
17142
_ACEOF
17143
rm -f conftest.$ac_objext
17144
if { (ac_try="$ac_compile"
17145
case "(($ac_try" in
17146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147
  *) ac_try_echo=$ac_try;;
17148
esac
17149
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17150
$as_echo "$ac_try_echo") >&5
17151
  (eval "$ac_compile") 2>conftest.er1
17152
  ac_status=$?
17153
  grep -v '^ *+' conftest.er1 >conftest.err
17154
  rm -f conftest.er1
17155
  cat conftest.err >&5
17156
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157
  (exit $ac_status); } && {
17158
         test -z "$ac_c_werror_flag" ||
17159
         test ! -s conftest.err
17160
       } && test -s conftest.$ac_objext; then
17161
  ac_lo=$ac_mid; break
17162
else
17163
  $as_echo "$as_me: failed program was:" >&5
17164
sed 's/^/| /' conftest.$ac_ext >&5
17165
 
17166
        ac_hi=`expr '(' $ac_mid ')' - 1`
17167
                        if test $ac_mid -le $ac_hi; then
17168
                          ac_lo= ac_hi=
17169
                          break
17170
                        fi
17171
                        ac_mid=`expr 2 '*' $ac_mid`
17172
fi
17173
 
17174
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17175
  done
17176
else
17177
  $as_echo "$as_me: failed program was:" >&5
17178
sed 's/^/| /' conftest.$ac_ext >&5
17179
 
17180
        ac_lo= ac_hi=
17181
fi
17182
 
17183
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17184
fi
17185
 
17186
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17187
# Binary search between lo and hi bounds.
17188
while test "x$ac_lo" != "x$ac_hi"; do
17189
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17190
  cat >conftest.$ac_ext <<_ACEOF
17191
/* confdefs.h.  */
17192
_ACEOF
17193
cat confdefs.h >>conftest.$ac_ext
17194
cat >>conftest.$ac_ext <<_ACEOF
17195
/* end confdefs.h.  */
17196
$ac_includes_default
17197
int
17198
main ()
17199
{
17200
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
17201
test_array [0] = 0
17202
 
17203
  ;
17204
  return 0;
17205
}
17206
_ACEOF
17207
rm -f conftest.$ac_objext
17208
if { (ac_try="$ac_compile"
17209
case "(($ac_try" in
17210
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211
  *) ac_try_echo=$ac_try;;
17212
esac
17213
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17214
$as_echo "$ac_try_echo") >&5
17215
  (eval "$ac_compile") 2>conftest.er1
17216
  ac_status=$?
17217
  grep -v '^ *+' conftest.er1 >conftest.err
17218
  rm -f conftest.er1
17219
  cat conftest.err >&5
17220
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221
  (exit $ac_status); } && {
17222
         test -z "$ac_c_werror_flag" ||
17223
         test ! -s conftest.err
17224
       } && test -s conftest.$ac_objext; then
17225
  ac_hi=$ac_mid
17226
else
17227
  $as_echo "$as_me: failed program was:" >&5
17228
sed 's/^/| /' conftest.$ac_ext >&5
17229
 
17230
        ac_lo=`expr '(' $ac_mid ')' + 1`
17231
fi
17232
 
17233
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17234
done
17235
case $ac_lo in
17236
?*) ac_cv_sizeof_long=$ac_lo;;
17237
'') if test "$ac_cv_type_long" = yes; then
17238
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17239 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17240 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17241
See \`config.log' for more details." >&5
17242
$as_echo "$as_me: error: cannot compute sizeof (long)
17243
See \`config.log' for more details." >&2;}
17244
   { (exit 77); exit 77; }; }; }
17245 19 jeremybenn
   else
17246
     ac_cv_sizeof_long=0
17247 101 jeremybenn
   fi ;;
17248
esac
17249
else
17250
  cat >conftest.$ac_ext <<_ACEOF
17251
/* confdefs.h.  */
17252
_ACEOF
17253
cat confdefs.h >>conftest.$ac_ext
17254
cat >>conftest.$ac_ext <<_ACEOF
17255
/* end confdefs.h.  */
17256
$ac_includes_default
17257
static long int longval () { return (long int) (sizeof (long)); }
17258
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
17259
#include 
17260
#include 
17261
int
17262
main ()
17263
{
17264
 
17265
  FILE *f = fopen ("conftest.val", "w");
17266
  if (! f)
17267
    return 1;
17268
  if (((long int) (sizeof (long))) < 0)
17269
    {
17270
      long int i = longval ();
17271
      if (i != ((long int) (sizeof (long))))
17272
        return 1;
17273
      fprintf (f, "%ld", i);
17274
    }
17275
  else
17276
    {
17277
      unsigned long int i = ulongval ();
17278
      if (i != ((long int) (sizeof (long))))
17279
        return 1;
17280
      fprintf (f, "%lu", i);
17281
    }
17282
  /* Do not output a trailing newline, as this causes \r\n confusion
17283
     on some platforms.  */
17284
  return ferror (f) || fclose (f) != 0;
17285
 
17286
  ;
17287
  return 0;
17288
}
17289
_ACEOF
17290
rm -f conftest$ac_exeext
17291
if { (ac_try="$ac_link"
17292
case "(($ac_try" in
17293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17294
  *) ac_try_echo=$ac_try;;
17295
esac
17296
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17297
$as_echo "$ac_try_echo") >&5
17298
  (eval "$ac_link") 2>&5
17299
  ac_status=$?
17300
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17302
  { (case "(($ac_try" in
17303
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304
  *) ac_try_echo=$ac_try;;
17305
esac
17306
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17307
$as_echo "$ac_try_echo") >&5
17308
  (eval "$ac_try") 2>&5
17309
  ac_status=$?
17310
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311
  (exit $ac_status); }; }; then
17312
  ac_cv_sizeof_long=`cat conftest.val`
17313
else
17314
  $as_echo "$as_me: program exited with status $ac_status" >&5
17315
$as_echo "$as_me: failed program was:" >&5
17316
sed 's/^/| /' conftest.$ac_ext >&5
17317
 
17318
( exit $ac_status )
17319
if test "$ac_cv_type_long" = yes; then
17320
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17321
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17322
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17323
See \`config.log' for more details." >&5
17324
$as_echo "$as_me: error: cannot compute sizeof (long)
17325
See \`config.log' for more details." >&2;}
17326
   { (exit 77); exit 77; }; }; }
17327
   else
17328
     ac_cv_sizeof_long=0
17329 19 jeremybenn
   fi
17330
fi
17331 101 jeremybenn
rm -rf conftest.dSYM
17332
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17333 19 jeremybenn
fi
17334 101 jeremybenn
rm -f conftest.val
17335
fi
17336
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17337 82 jeremybenn
$as_echo "$ac_cv_sizeof_long" >&6; }
17338 19 jeremybenn
 
17339
 
17340
 
17341
cat >>confdefs.h <<_ACEOF
17342
#define SIZEOF_LONG $ac_cv_sizeof_long
17343
_ACEOF
17344
 
17345
 
17346
 
17347
#Check for compare function type for qsort (needed by some Linuxes)
17348 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for __compar_fn_t" >&5
17349
$as_echo_n "checking for __compar_fn_t... " >&6; }
17350
if test "${ac_cv_type___compar_fn_t+set}" = set; then
17351
  $as_echo_n "(cached) " >&6
17352
else
17353
  ac_cv_type___compar_fn_t=no
17354
cat >conftest.$ac_ext <<_ACEOF
17355
/* confdefs.h.  */
17356
_ACEOF
17357
cat confdefs.h >>conftest.$ac_ext
17358
cat >>conftest.$ac_ext <<_ACEOF
17359
/* end confdefs.h.  */
17360
$ac_includes_default
17361
int
17362
main ()
17363
{
17364
if (sizeof (__compar_fn_t))
17365
       return 0;
17366
  ;
17367
  return 0;
17368
}
17369
_ACEOF
17370
rm -f conftest.$ac_objext
17371
if { (ac_try="$ac_compile"
17372
case "(($ac_try" in
17373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374
  *) ac_try_echo=$ac_try;;
17375
esac
17376
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17377
$as_echo "$ac_try_echo") >&5
17378
  (eval "$ac_compile") 2>conftest.er1
17379
  ac_status=$?
17380
  grep -v '^ *+' conftest.er1 >conftest.err
17381
  rm -f conftest.er1
17382
  cat conftest.err >&5
17383
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384
  (exit $ac_status); } && {
17385
         test -z "$ac_c_werror_flag" ||
17386
         test ! -s conftest.err
17387
       } && test -s conftest.$ac_objext; then
17388
  cat >conftest.$ac_ext <<_ACEOF
17389
/* confdefs.h.  */
17390
_ACEOF
17391
cat confdefs.h >>conftest.$ac_ext
17392
cat >>conftest.$ac_ext <<_ACEOF
17393
/* end confdefs.h.  */
17394
$ac_includes_default
17395
int
17396
main ()
17397
{
17398
if (sizeof ((__compar_fn_t)))
17399
          return 0;
17400
  ;
17401
  return 0;
17402
}
17403
_ACEOF
17404
rm -f conftest.$ac_objext
17405
if { (ac_try="$ac_compile"
17406
case "(($ac_try" in
17407
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408
  *) ac_try_echo=$ac_try;;
17409
esac
17410
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17411
$as_echo "$ac_try_echo") >&5
17412
  (eval "$ac_compile") 2>conftest.er1
17413
  ac_status=$?
17414
  grep -v '^ *+' conftest.er1 >conftest.err
17415
  rm -f conftest.er1
17416
  cat conftest.err >&5
17417
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418
  (exit $ac_status); } && {
17419
         test -z "$ac_c_werror_flag" ||
17420
         test ! -s conftest.err
17421
       } && test -s conftest.$ac_objext; then
17422
  :
17423
else
17424
  $as_echo "$as_me: failed program was:" >&5
17425
sed 's/^/| /' conftest.$ac_ext >&5
17426 19 jeremybenn
 
17427 101 jeremybenn
        ac_cv_type___compar_fn_t=yes
17428
fi
17429
 
17430
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17431
else
17432
  $as_echo "$as_me: failed program was:" >&5
17433
sed 's/^/| /' conftest.$ac_ext >&5
17434
 
17435
 
17436
fi
17437
 
17438
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17439
fi
17440
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type___compar_fn_t" >&5
17441
$as_echo "$ac_cv_type___compar_fn_t" >&6; }
17442
if test "x$ac_cv_type___compar_fn_t" = x""yes; then
17443
 
17444 19 jeremybenn
cat >>confdefs.h <<_ACEOF
17445
#define HAVE___COMPAR_FN_T 1
17446
_ACEOF
17447
 
17448
 
17449
fi
17450
 
17451
 
17452
# check for GNU readline
17453 101 jeremybenn
 
17454
{ $as_echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
17455 82 jeremybenn
$as_echo_n "checking for add_history in -lreadline... " >&6; }
17456 101 jeremybenn
if test "${ac_cv_lib_readline_add_history+set}" = set; then
17457 82 jeremybenn
  $as_echo_n "(cached) " >&6
17458 19 jeremybenn
else
17459
  ac_check_lib_save_LIBS=$LIBS
17460
LIBS="-lreadline  $LIBS"
17461 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
17462
/* confdefs.h.  */
17463
_ACEOF
17464
cat confdefs.h >>conftest.$ac_ext
17465
cat >>conftest.$ac_ext <<_ACEOF
17466 19 jeremybenn
/* end confdefs.h.  */
17467
 
17468
/* Override any GCC internal prototype to avoid an error.
17469
   Use char because int might match the return type of a GCC
17470
   builtin and then its argument prototype would still apply.  */
17471
#ifdef __cplusplus
17472
extern "C"
17473
#endif
17474
char add_history ();
17475
int
17476
main ()
17477
{
17478
return add_history ();
17479
  ;
17480
  return 0;
17481
}
17482
_ACEOF
17483 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
17484
if { (ac_try="$ac_link"
17485
case "(($ac_try" in
17486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487
  *) ac_try_echo=$ac_try;;
17488
esac
17489
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17490
$as_echo "$ac_try_echo") >&5
17491
  (eval "$ac_link") 2>conftest.er1
17492
  ac_status=$?
17493
  grep -v '^ *+' conftest.er1 >conftest.err
17494
  rm -f conftest.er1
17495
  cat conftest.err >&5
17496
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497
  (exit $ac_status); } && {
17498
         test -z "$ac_c_werror_flag" ||
17499
         test ! -s conftest.err
17500
       } && test -s conftest$ac_exeext && {
17501
         test "$cross_compiling" = yes ||
17502
         $as_test_x conftest$ac_exeext
17503
       }; then
17504 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
17505
else
17506 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17507
sed 's/^/| /' conftest.$ac_ext >&5
17508
 
17509
        ac_cv_lib_readline_add_history=no
17510 19 jeremybenn
fi
17511 101 jeremybenn
 
17512
rm -rf conftest.dSYM
17513
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17514
      conftest$ac_exeext conftest.$ac_ext
17515 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
17516
fi
17517 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
17518 82 jeremybenn
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
17519 101 jeremybenn
if test "x$ac_cv_lib_readline_add_history" = x""yes; then
17520 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
17521
#define HAVE_LIBREADLINE 1
17522
_ACEOF
17523
 
17524
  LIBS="-lreadline $LIBS"
17525
 
17526
fi
17527
 
17528
 
17529
# yuck
17530
case "$host_os" in
17531
aix*)   prefer_curses=yes ;;
17532
esac
17533
 
17534
case "$host_cpu" in
17535
*cray*) LOCAL_CFLAGS=-DCRAY ;;
17536
esac
17537
 
17538
case "$host_os" in
17539
isc*)   LOCAL_CFLAGS=-Disc386 ;;
17540
esac
17541
 
17542
case "$host_os" in
17543
solaris*) LIBS="-lsocket -lnsl" ;;
17544
esac
17545
 
17546
# define options
17547 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable profiling" >&5
17548 82 jeremybenn
$as_echo_n "checking whether to enable profiling... " >&6; }
17549 19 jeremybenn
# Check whether --enable-profiling was given.
17550 101 jeremybenn
if test "${enable_profiling+set}" = set; then
17551 19 jeremybenn
  enableval=$enable_profiling;
17552
    case "$enableval" in
17553
        yes) profile="-pg" ;;
17554
    esac
17555
 
17556
fi
17557
 
17558 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
17559 82 jeremybenn
$as_echo "${enable_profiling-no}" >&6; }
17560 19 jeremybenn
 
17561
execution="1"
17562
 
17563
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17564 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking which execution style to use" >&5
17565 82 jeremybenn
$as_echo_n "checking which execution style to use... " >&6; }
17566 19 jeremybenn
# Check whether --enable-execution was given.
17567 101 jeremybenn
if test "${enable_execution+set}" = set; then
17568 19 jeremybenn
  enableval=$enable_execution;
17569
    case "$enableval" in
17570
    simple)
17571
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17572
      execution="0"
17573 101 jeremybenn
      { $as_echo "$as_me:$LINENO: result: simple" >&5
17574 82 jeremybenn
$as_echo "simple" >&6; }
17575 19 jeremybenn
      ;;
17576
    complex)
17577
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17578
      execution="1"
17579 101 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17580 82 jeremybenn
$as_echo "complex" >&6; }
17581 19 jeremybenn
      ;;
17582
    dynamic)
17583
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17584
      execution="2"
17585 101 jeremybenn
      { $as_echo "$as_me:$LINENO: result: dynamic" >&5
17586 82 jeremybenn
$as_echo "dynamic" >&6; }
17587 19 jeremybenn
      ;;
17588
    *)
17589 101 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: \"excecution must one of simple/complex/dynamic\"" >&5
17590
$as_echo "$as_me: error: \"excecution must one of simple/complex/dynamic\"" >&2;}
17591
   { (exit 1); exit 1; }; }
17592 19 jeremybenn
      ;;
17593
    esac
17594
 
17595
else
17596
 
17597 101 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17598 82 jeremybenn
$as_echo "complex" >&6; }
17599 19 jeremybenn
 
17600
fi
17601
 
17602
 
17603
eth_phy="0"
17604 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
17605 82 jeremybenn
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
17606 19 jeremybenn
# Check whether --enable-ethphy was given.
17607 101 jeremybenn
if test "${enable_ethphy+set}" = set; then
17608 19 jeremybenn
  enableval=$enable_ethphy;
17609
    case "$enableval" in
17610
  no)  eth_phy="0" ;;
17611
        yes) eth_phy="1" ;;
17612
    esac
17613
 
17614
fi
17615
 
17616 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
17617 82 jeremybenn
$as_echo "${enable_eth_phy-no}" >&6; }
17618 19 jeremybenn
 
17619
 
17620
raw_range_stats="0"
17621 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
17622 82 jeremybenn
$as_echo_n "checking whether to use raw range stats... " >&6; }
17623 19 jeremybenn
# Check whether --enable-range_stats was given.
17624 101 jeremybenn
if test "${enable_range_stats+set}" = set; then
17625 19 jeremybenn
  enableval=$enable_range_stats;
17626
    case "$enableval" in
17627
  no)  raw_range_stats="0" ;;
17628
        yes) raw_range_stats="1" simple_execution="1" ;;
17629
    esac
17630
 
17631
fi
17632
 
17633 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
17634 82 jeremybenn
$as_echo "${enable_range_stats-no}" >&6; }
17635 19 jeremybenn
 
17636
set_ov_flag="0"
17637 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether instructions set overflow flag" >&5
17638 82 jeremybenn
$as_echo_n "checking whether instructions set overflow flag... " >&6; }
17639 19 jeremybenn
# Check whether --enable-ov_flag was given.
17640 101 jeremybenn
if test "${enable_ov_flag+set}" = set; then
17641 19 jeremybenn
  enableval=$enable_ov_flag;
17642
    case "$enableval" in
17643
    no)  set_ov_flag="0" ;;
17644
    yes) set_ov_flag="1" ;;
17645
    esac
17646
 
17647
fi
17648
 
17649 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_ov_flag-no}" >&5
17650 82 jeremybenn
$as_echo "${enable_ov_flag-no}" >&6; }
17651 19 jeremybenn
 
17652
set_arith_flag="0"
17653 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether arithmethic instructions set flag" >&5
17654 82 jeremybenn
$as_echo_n "checking whether arithmethic instructions set flag... " >&6; }
17655 19 jeremybenn
# Check whether --enable-arith_flag was given.
17656 101 jeremybenn
if test "${enable_arith_flag+set}" = set; then
17657 19 jeremybenn
  enableval=$enable_arith_flag;
17658
    case "$enableval" in
17659
  no)  set_arith_flag="0" ;;
17660
        yes) set_arith_flag="1" ;;
17661
    esac
17662
 
17663
fi
17664
 
17665 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_arith_flag-no}" >&5
17666 82 jeremybenn
$as_echo "${enable_arith_flag-no}" >&6; }
17667 19 jeremybenn
 
17668
# check for --enable-debug argument (for argtable2)
17669
# Check whether --enable-debug was given.
17670 101 jeremybenn
if test "${enable_debug+set}" = set; then
17671 19 jeremybenn
  enableval=$enable_debug;
17672
       case $enableval in
17673
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
17674
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
17675
          *)   echo "illegal argument to --enable-debug" & exit 1;;
17676
       esac
17677
 
17678
else
17679
  DEBUGFLAGS="-DNDEBUG"
17680
 
17681
fi
17682
 
17683
 
17684
 
17685
 
17686
cat >>confdefs.h <<_ACEOF
17687
#define RAW_RANGE_STATS $raw_range_stats
17688
_ACEOF
17689
 
17690
 
17691
cat >>confdefs.h <<_ACEOF
17692
#define SET_OV_FLAG $set_ov_flag
17693
_ACEOF
17694
 
17695
 
17696
cat >>confdefs.h <<_ACEOF
17697
#define ARITH_SET_FLAG $set_arith_flag
17698
_ACEOF
17699
 
17700
 
17701
cat >>confdefs.h <<_ACEOF
17702
#define HAVE_ETH_PHY $eth_phy
17703
_ACEOF
17704
 
17705
 
17706
cat >>confdefs.h <<_ACEOF
17707
#define SIMPLE_EXECUTION $execution == 0
17708
_ACEOF
17709
 
17710
 
17711
cat >>confdefs.h <<_ACEOF
17712
#define COMPLEX_EXECUTION $execution == 1
17713
_ACEOF
17714
 
17715
 
17716
cat >>confdefs.h <<_ACEOF
17717
#define DYNAMIC_EXECUTION $execution == 2
17718
_ACEOF
17719
 
17720
 if test x$execution = x1; then
17721
  GENERATE_NEEDED_TRUE=
17722
  GENERATE_NEEDED_FALSE='#'
17723
else
17724
  GENERATE_NEEDED_TRUE='#'
17725
  GENERATE_NEEDED_FALSE=
17726
fi
17727
 
17728
 if test x$execution = x2; then
17729
  DYNAMIC_EXECUTION_TRUE=
17730
  DYNAMIC_EXECUTION_FALSE='#'
17731
else
17732
  DYNAMIC_EXECUTION_TRUE='#'
17733
  DYNAMIC_EXECUTION_FALSE=
17734
fi
17735
 
17736
 
17737
 
17738
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
17739
 
17740 90 jeremybenn
# Check for a DejaGNU global config file. If not set, then set it
17741
# ourselves. This stops runtest complaining
17742
if test x"$DEJAGNU" = x
17743
then
17744 96 jeremybenn
  DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
17745 90 jeremybenn
fi
17746
 
17747 96 jeremybenn
 
17748
 
17749
# The following line will override the default definition of the srcdir, and
17750
# ensure that short names are used for the test names.
17751
RUNTESTDEFAULTFLAGS="--tool \$\$tool"
17752
 
17753
 
17754 19 jeremybenn
BUILD_DIR=`pwd`
17755
 
17756
 
17757
 
17758
 
17759
 
17760
 
17761
 
17762
 
17763
 
17764
 
17765
 
17766
 
17767
 
17768
 
17769
 
17770
 
17771
 
17772
 
17773 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
17774
#define HAVE_EXECUTION 1
17775
_ACEOF
17776 19 jeremybenn
 
17777
 
17778
# yuck
17779
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
17780
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
17781
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
17782
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
17783
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
17784
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
17785
 
17786
 
17787 97 jeremybenn
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile debug/Makefile doc/Makefile mmu/Makefile peripheral/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile port/Makefile support/Makefile testsuite/Makefile testsuite/config/Makefile testsuite/lib/Makefile testsuite/libsim.tests/Makefile testsuite/or1ksim.tests/Makefile testsuite/test-code/Makefile testsuite/test-code/lib-iftest/Makefile testsuite/test-code/lib-inttest/Makefile testsuite/test-code/lib-jtag/Makefile testsuite/test-code/lib-upcalls/Makefile tick/Makefile vapi/Makefile"
17788 19 jeremybenn
 
17789
 
17790
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
17791
case "$CPU_ARCH" in
17792
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
17793
;;
17794
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
17795
;;
17796
esac
17797
 
17798 82 jeremybenn
# Generate the output
17799
 
17800
 
17801 19 jeremybenn
cat >confcache <<\_ACEOF
17802
# This file is a shell script that caches the results of configure
17803
# tests run on this system so they can be shared between configure
17804
# scripts and configure runs, see configure's option --config-cache.
17805
# It is not useful on other systems.  If it contains results you don't
17806
# want to keep, you may remove or edit it.
17807
#
17808
# config.status only pays attention to the cache file if you give it
17809
# the --recheck option to rerun configure.
17810
#
17811
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17812
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17813
# following values.
17814
 
17815
_ACEOF
17816
 
17817
# The following way of writing the cache mishandles newlines in values,
17818
# but we know of no workaround that is simple, portable, and efficient.
17819
# So, we kill variables containing newlines.
17820
# Ultrix sh set writes to stderr and can't be redirected directly,
17821
# and sets the high bit in the cache file unless we assign to the vars.
17822
(
17823
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17824
    eval ac_val=\$$ac_var
17825
    case $ac_val in #(
17826
    *${as_nl}*)
17827
      case $ac_var in #(
17828 101 jeremybenn
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17829 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17830 19 jeremybenn
      esac
17831
      case $ac_var in #(
17832
      _ | IFS | as_nl) ;; #(
17833 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17834 101 jeremybenn
      *) $as_unset $ac_var ;;
17835 19 jeremybenn
      esac ;;
17836
    esac
17837
  done
17838
 
17839
  (set) 2>&1 |
17840
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17841
    *${as_nl}ac_space=\ *)
17842 101 jeremybenn
      # `set' does not quote correctly, so add quotes (double-quote
17843
      # substitution turns \\\\ into \\, and sed turns \\ into \).
17844 19 jeremybenn
      sed -n \
17845
        "s/'/'\\\\''/g;
17846
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17847
      ;; #(
17848
    *)
17849
      # `set' quotes correctly as required by POSIX, so do not add quotes.
17850
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17851
      ;;
17852
    esac |
17853
    sort
17854
) |
17855
  sed '
17856
     /^ac_cv_env_/b end
17857
     t clear
17858
     :clear
17859
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17860
     t end
17861
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17862
     :end' >>confcache
17863
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17864
  if test -w "$cache_file"; then
17865
    test "x$cache_file" != "x/dev/null" &&
17866 101 jeremybenn
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17867 82 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
17868 19 jeremybenn
    cat confcache >$cache_file
17869
  else
17870 101 jeremybenn
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17871 82 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17872 19 jeremybenn
  fi
17873
fi
17874
rm -f confcache
17875
 
17876
test "x$prefix" = xNONE && prefix=$ac_default_prefix
17877
# Let make expand exec_prefix.
17878
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17879
 
17880
DEFS=-DHAVE_CONFIG_H
17881
 
17882
ac_libobjs=
17883
ac_ltlibobjs=
17884
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17885
  # 1. Remove the extension, and $U if already installed.
17886
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17887 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17888 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17889
  #    will be set to the directory where LIBOBJS objects are built.
17890 101 jeremybenn
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17891
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17892 19 jeremybenn
done
17893
LIBOBJS=$ac_libobjs
17894
 
17895
LTLIBOBJS=$ac_ltlibobjs
17896
 
17897
 
17898
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17899 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17900
Usually this means the macro was only invoked conditionally." >&5
17901
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17902
Usually this means the macro was only invoked conditionally." >&2;}
17903
   { (exit 1); exit 1; }; }
17904 19 jeremybenn
fi
17905
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17906 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17907
Usually this means the macro was only invoked conditionally." >&5
17908
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17909
Usually this means the macro was only invoked conditionally." >&2;}
17910
   { (exit 1); exit 1; }; }
17911 19 jeremybenn
fi
17912 82 jeremybenn
 if test -n "$EXEEXT"; then
17913
  am__EXEEXT_TRUE=
17914
  am__EXEEXT_FALSE='#'
17915
else
17916
  am__EXEEXT_TRUE='#'
17917
  am__EXEEXT_FALSE=
17918
fi
17919
 
17920
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17921 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
17922
Usually this means the macro was only invoked conditionally." >&5
17923
$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
17924
Usually this means the macro was only invoked conditionally." >&2;}
17925
   { (exit 1); exit 1; }; }
17926 19 jeremybenn
fi
17927 82 jeremybenn
 
17928 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
17929 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
17930
Usually this means the macro was only invoked conditionally." >&5
17931
$as_echo "$as_me: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
17932
Usually this means the macro was only invoked conditionally." >&2;}
17933
   { (exit 1); exit 1; }; }
17934 19 jeremybenn
fi
17935
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
17936 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGREX\" was never defined.
17937
Usually this means the macro was only invoked conditionally." >&5
17938
$as_echo "$as_me: error: conditional \"USE_ARGREX\" was never defined.
17939
Usually this means the macro was only invoked conditionally." >&2;}
17940
   { (exit 1); exit 1; }; }
17941 19 jeremybenn
fi
17942
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
17943 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGDATE\" was never defined.
17944
Usually this means the macro was only invoked conditionally." >&5
17945
$as_echo "$as_me: error: conditional \"USE_ARGDATE\" was never defined.
17946
Usually this means the macro was only invoked conditionally." >&2;}
17947
   { (exit 1); exit 1; }; }
17948 19 jeremybenn
fi
17949
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
17950 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
17951
Usually this means the macro was only invoked conditionally." >&5
17952
$as_echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
17953
Usually this means the macro was only invoked conditionally." >&2;}
17954
   { (exit 1); exit 1; }; }
17955 19 jeremybenn
fi
17956
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
17957 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
17958
Usually this means the macro was only invoked conditionally." >&5
17959
$as_echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
17960
Usually this means the macro was only invoked conditionally." >&2;}
17961
   { (exit 1); exit 1; }; }
17962 19 jeremybenn
fi
17963
 
17964
: ${CONFIG_STATUS=./config.status}
17965 82 jeremybenn
ac_write_fail=0
17966 19 jeremybenn
ac_clean_files_save=$ac_clean_files
17967
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17968 101 jeremybenn
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17969 82 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17970 101 jeremybenn
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17971 19 jeremybenn
#! $SHELL
17972
# Generated by $as_me.
17973
# Run this file to recreate the current configuration.
17974
# Compiler output produced by configure, useful for debugging
17975
# configure, is in config.log if it exists.
17976
 
17977
debug=false
17978
ac_cs_recheck=false
17979
ac_cs_silent=false
17980
SHELL=\${CONFIG_SHELL-$SHELL}
17981 101 jeremybenn
_ACEOF
17982 19 jeremybenn
 
17983 101 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17984
## --------------------- ##
17985
## M4sh Initialization.  ##
17986
## --------------------- ##
17987
 
17988 19 jeremybenn
# Be more Bourne compatible
17989
DUALCASE=1; export DUALCASE # for MKS sh
17990 101 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17991 19 jeremybenn
  emulate sh
17992
  NULLCMD=:
17993 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17994 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
17995
  alias -g '${1+"$@"}'='"$@"'
17996
  setopt NO_GLOB_SUBST
17997
else
17998 101 jeremybenn
  case `(set -o) 2>/dev/null` in
17999
  *posix*) set -o posix ;;
18000 19 jeremybenn
esac
18001 101 jeremybenn
 
18002 19 jeremybenn
fi
18003
 
18004
 
18005 101 jeremybenn
 
18006
 
18007
# PATH needs CR
18008
# Avoid depending upon Character Ranges.
18009
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18010
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18011
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18012
as_cr_digits='0123456789'
18013
as_cr_alnum=$as_cr_Letters$as_cr_digits
18014
 
18015 82 jeremybenn
as_nl='
18016
'
18017
export as_nl
18018
# Printing a long string crashes Solaris 7 /usr/bin/printf.
18019
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18020
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18021
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18022 101 jeremybenn
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18023 82 jeremybenn
  as_echo='printf %s\n'
18024
  as_echo_n='printf %s'
18025
else
18026
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18027
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18028
    as_echo_n='/usr/ucb/echo -n'
18029 19 jeremybenn
  else
18030 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18031
    as_echo_n_body='eval
18032
      arg=$1;
18033 101 jeremybenn
      case $arg in
18034 82 jeremybenn
      *"$as_nl"*)
18035
        expr "X$arg" : "X\\(.*\\)$as_nl";
18036
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18037
      esac;
18038
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18039
    '
18040
    export as_echo_n_body
18041
    as_echo_n='sh -c $as_echo_n_body as_echo'
18042 19 jeremybenn
  fi
18043 82 jeremybenn
  export as_echo_body
18044
  as_echo='sh -c $as_echo_body as_echo'
18045 19 jeremybenn
fi
18046
 
18047 82 jeremybenn
# The user is always right.
18048
if test "${PATH_SEPARATOR+set}" != set; then
18049
  PATH_SEPARATOR=:
18050
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18051
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18052
      PATH_SEPARATOR=';'
18053
  }
18054
fi
18055
 
18056 101 jeremybenn
# Support unset when possible.
18057
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18058
  as_unset=unset
18059
else
18060
  as_unset=false
18061
fi
18062 19 jeremybenn
 
18063 101 jeremybenn
 
18064 19 jeremybenn
# IFS
18065
# We need space, tab and new line, in precisely that order.  Quoting is
18066
# there to prevent editors from complaining about space-tab.
18067
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18068
# splitting by setting IFS to empty value.)
18069
IFS=" ""        $as_nl"
18070
 
18071
# Find who we are.  Look in the path if we contain no directory separator.
18072 101 jeremybenn
case $0 in
18073 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
18074
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18075
for as_dir in $PATH
18076
do
18077
  IFS=$as_save_IFS
18078
  test -z "$as_dir" && as_dir=.
18079 101 jeremybenn
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18080
done
18081 19 jeremybenn
IFS=$as_save_IFS
18082
 
18083
     ;;
18084
esac
18085
# We did not find ourselves, most probably we were run as `sh COMMAND'
18086
# in which case we are not to be found in the path.
18087
if test "x$as_myself" = x; then
18088
  as_myself=$0
18089
fi
18090
if test ! -f "$as_myself"; then
18091 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18092 101 jeremybenn
  { (exit 1); exit 1; }
18093 19 jeremybenn
fi
18094
 
18095 101 jeremybenn
# Work around bugs in pre-3.0 UWIN ksh.
18096
for as_var in ENV MAIL MAILPATH
18097
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18098 19 jeremybenn
done
18099
PS1='$ '
18100
PS2='> '
18101
PS4='+ '
18102
 
18103
# NLS nuisances.
18104 82 jeremybenn
LC_ALL=C
18105
export LC_ALL
18106
LANGUAGE=C
18107
export LANGUAGE
18108 19 jeremybenn
 
18109 101 jeremybenn
# Required to use basename.
18110 19 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
18111
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18112
  as_expr=expr
18113
else
18114
  as_expr=false
18115
fi
18116
 
18117
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18118
  as_basename=basename
18119
else
18120
  as_basename=false
18121
fi
18122
 
18123
 
18124 101 jeremybenn
# Name of the executable.
18125 19 jeremybenn
as_me=`$as_basename -- "$0" ||
18126
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18127
         X"$0" : 'X\(//\)$' \| \
18128
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18129 82 jeremybenn
$as_echo X/"$0" |
18130 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
18131
            s//\1/
18132
            q
18133
          }
18134
          /^X\/\(\/\/\)$/{
18135
            s//\1/
18136
            q
18137
          }
18138
          /^X\/\(\/\).*/{
18139
            s//\1/
18140
            q
18141
          }
18142
          s/.*/./; q'`
18143
 
18144 101 jeremybenn
# CDPATH.
18145
$as_unset CDPATH
18146 19 jeremybenn
 
18147 101 jeremybenn
 
18148
 
18149
  as_lineno_1=$LINENO
18150
  as_lineno_2=$LINENO
18151
  test "x$as_lineno_1" != "x$as_lineno_2" &&
18152
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18153
 
18154
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18155
  # uniformly replaced by the line number.  The first 'sed' inserts a
18156
  # line-number line after each line using $LINENO; the second 'sed'
18157
  # does the real work.  The second script uses 'N' to pair each
18158
  # line-number line with the line containing $LINENO, and appends
18159
  # trailing '-' during substitution so that $LINENO is not a special
18160
  # case at line end.
18161
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18162
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
18163
  # E. McMahon (1931-1989) for sed's syntax.  :-)
18164
  sed -n '
18165
    p
18166
    /[$]LINENO/=
18167
  ' <$as_myself |
18168
    sed '
18169
      s/[$]LINENO.*/&-/
18170
      t lineno
18171
      b
18172
      :lineno
18173
      N
18174
      :loop
18175
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18176
      t loop
18177
      s/-\n.*//
18178
    ' >$as_me.lineno &&
18179
  chmod +x "$as_me.lineno" ||
18180
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18181
   { (exit 1); exit 1; }; }
18182
 
18183
  # Don't try to exec as it changes $[0], causing all sort of problems
18184
  # (the dirname of $[0] is not the place where we might find the
18185
  # original and so on.  Autoconf is especially sensitive to this).
18186
  . "./$as_me.lineno"
18187
  # Exit status is that of the last command.
18188
  exit
18189
}
18190
 
18191
 
18192
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18193
  as_dirname=dirname
18194
else
18195
  as_dirname=false
18196
fi
18197
 
18198 19 jeremybenn
ECHO_C= ECHO_N= ECHO_T=
18199 101 jeremybenn
case `echo -n x` in
18200 19 jeremybenn
-n*)
18201 101 jeremybenn
  case `echo 'x\c'` in
18202 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18203 101 jeremybenn
  *)   ECHO_C='\c';;
18204 19 jeremybenn
  esac;;
18205
*)
18206
  ECHO_N='-n';;
18207
esac
18208 101 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
18209
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18210
  as_expr=expr
18211
else
18212
  as_expr=false
18213
fi
18214 19 jeremybenn
 
18215
rm -f conf$$ conf$$.exe conf$$.file
18216
if test -d conf$$.dir; then
18217
  rm -f conf$$.dir/conf$$.file
18218
else
18219
  rm -f conf$$.dir
18220 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
18221 19 jeremybenn
fi
18222 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
18223
  if ln -s conf$$.file conf$$ 2>/dev/null; then
18224
    as_ln_s='ln -s'
18225
    # ... but there are two gotchas:
18226
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18227
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18228
    # In both cases, we have to default to `cp -p'.
18229
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18230
      as_ln_s='cp -p'
18231
  elif ln conf$$.file conf$$ 2>/dev/null; then
18232
    as_ln_s=ln
18233
  else
18234 19 jeremybenn
    as_ln_s='cp -p'
18235 82 jeremybenn
  fi
18236 19 jeremybenn
else
18237
  as_ln_s='cp -p'
18238
fi
18239
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18240
rmdir conf$$.dir 2>/dev/null
18241
 
18242
if mkdir -p . 2>/dev/null; then
18243 101 jeremybenn
  as_mkdir_p=:
18244 19 jeremybenn
else
18245
  test -d ./-p && rmdir ./-p
18246
  as_mkdir_p=false
18247
fi
18248
 
18249
if test -x / >/dev/null 2>&1; then
18250
  as_test_x='test -x'
18251
else
18252
  if ls -dL / >/dev/null 2>&1; then
18253
    as_ls_L_option=L
18254
  else
18255
    as_ls_L_option=
18256
  fi
18257
  as_test_x='
18258
    eval sh -c '\''
18259
      if test -d "$1"; then
18260 82 jeremybenn
        test -d "$1/.";
18261 19 jeremybenn
      else
18262 101 jeremybenn
        case $1 in
18263 82 jeremybenn
        -*)set "./$1";;
18264 19 jeremybenn
        esac;
18265 101 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18266 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
18267
    '\'' sh
18268
  '
18269
fi
18270
as_executable_p=$as_test_x
18271
 
18272
# Sed expression to map a string onto a valid CPP name.
18273
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18274
 
18275
# Sed expression to map a string onto a valid variable name.
18276
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18277
 
18278
 
18279
exec 6>&1
18280
 
18281 101 jeremybenn
# Save the log message, to keep $[0] and so on meaningful, and to
18282 19 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
18283
# values after options handling.
18284
ac_log="
18285 101 jeremybenn
This file was extended by or1ksim $as_me 2010-05-25, which was
18286
generated by GNU Autoconf 2.63.  Invocation command line was
18287 19 jeremybenn
 
18288
  CONFIG_FILES    = $CONFIG_FILES
18289
  CONFIG_HEADERS  = $CONFIG_HEADERS
18290
  CONFIG_LINKS    = $CONFIG_LINKS
18291
  CONFIG_COMMANDS = $CONFIG_COMMANDS
18292
  $ $0 $@
18293
 
18294
on `(hostname || uname -n) 2>/dev/null | sed 1q`
18295
"
18296
 
18297
_ACEOF
18298
 
18299 82 jeremybenn
case $ac_config_files in *"
18300
"*) set x $ac_config_files; shift; ac_config_files=$*;;
18301
esac
18302
 
18303
case $ac_config_headers in *"
18304
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18305
esac
18306
 
18307
 
18308
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18309 19 jeremybenn
# Files that config.status was made for.
18310
config_files="$ac_config_files"
18311
config_headers="$ac_config_headers"
18312
config_commands="$ac_config_commands"
18313
 
18314
_ACEOF
18315
 
18316 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18317 19 jeremybenn
ac_cs_usage="\
18318 101 jeremybenn
\`$as_me' instantiates files from templates according to the
18319
current configuration.
18320 19 jeremybenn
 
18321 101 jeremybenn
Usage: $0 [OPTION]... [FILE]...
18322 19 jeremybenn
 
18323
  -h, --help       print this help, then exit
18324
  -V, --version    print version number and configuration settings, then exit
18325 82 jeremybenn
  -q, --quiet, --silent
18326
                   do not print progress messages
18327 19 jeremybenn
  -d, --debug      don't remove temporary files
18328
      --recheck    update $as_me by reconfiguring in the same conditions
18329 82 jeremybenn
      --file=FILE[:TEMPLATE]
18330
                   instantiate the configuration file FILE
18331
      --header=FILE[:TEMPLATE]
18332
                   instantiate the configuration header FILE
18333 19 jeremybenn
 
18334
Configuration files:
18335
$config_files
18336
 
18337
Configuration headers:
18338
$config_headers
18339
 
18340
Configuration commands:
18341
$config_commands
18342
 
18343 101 jeremybenn
Report bugs to ."
18344 19 jeremybenn
 
18345
_ACEOF
18346 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18347 19 jeremybenn
ac_cs_version="\\
18348 101 jeremybenn
or1ksim config.status 2010-05-25
18349
configured by $0, generated by GNU Autoconf 2.63,
18350
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18351 19 jeremybenn
 
18352 101 jeremybenn
Copyright (C) 2008 Free Software Foundation, Inc.
18353 19 jeremybenn
This config.status script is free software; the Free Software Foundation
18354
gives unlimited permission to copy, distribute and modify it."
18355
 
18356
ac_pwd='$ac_pwd'
18357
srcdir='$srcdir'
18358
INSTALL='$INSTALL'
18359
MKDIR_P='$MKDIR_P'
18360 82 jeremybenn
AWK='$AWK'
18361
test -n "\$AWK" || AWK=awk
18362 19 jeremybenn
_ACEOF
18363
 
18364 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18365
# The default lists apply if the user does not specify any file.
18366 19 jeremybenn
ac_need_defaults=:
18367
while test $# != 0
18368
do
18369
  case $1 in
18370
  --*=*)
18371
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18372
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18373
    ac_shift=:
18374
    ;;
18375
  *)
18376
    ac_option=$1
18377
    ac_optarg=$2
18378
    ac_shift=shift
18379
    ;;
18380
  esac
18381
 
18382
  case $ac_option in
18383
  # Handling of the options.
18384
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18385
    ac_cs_recheck=: ;;
18386
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18387 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
18388 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
18389
    debug=: ;;
18390
  --file | --fil | --fi | --f )
18391
    $ac_shift
18392 82 jeremybenn
    case $ac_optarg in
18393
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18394
    esac
18395 101 jeremybenn
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18396 19 jeremybenn
    ac_need_defaults=false;;
18397
  --header | --heade | --head | --hea )
18398
    $ac_shift
18399 82 jeremybenn
    case $ac_optarg in
18400
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18401
    esac
18402 101 jeremybenn
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18403 19 jeremybenn
    ac_need_defaults=false;;
18404
  --he | --h)
18405
    # Conflict between --help and --header
18406 101 jeremybenn
    { $as_echo "$as_me: error: ambiguous option: $1
18407
Try \`$0 --help' for more information." >&2
18408
   { (exit 1); exit 1; }; };;
18409 19 jeremybenn
  --help | --hel | -h )
18410 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
18411 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18412
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18413
    ac_cs_silent=: ;;
18414
 
18415
  # This is an error.
18416 101 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $1
18417
Try \`$0 --help' for more information." >&2
18418
   { (exit 1); exit 1; }; } ;;
18419 19 jeremybenn
 
18420 101 jeremybenn
  *) ac_config_targets="$ac_config_targets $1"
18421 19 jeremybenn
     ac_need_defaults=false ;;
18422
 
18423
  esac
18424
  shift
18425
done
18426
 
18427
ac_configure_extra_args=
18428
 
18429
if $ac_cs_silent; then
18430
  exec 6>/dev/null
18431
  ac_configure_extra_args="$ac_configure_extra_args --silent"
18432
fi
18433
 
18434
_ACEOF
18435 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18436 19 jeremybenn
if \$ac_cs_recheck; then
18437 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18438
  shift
18439
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18440
  CONFIG_SHELL='$SHELL'
18441 19 jeremybenn
  export CONFIG_SHELL
18442 82 jeremybenn
  exec "\$@"
18443 19 jeremybenn
fi
18444
 
18445
_ACEOF
18446 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18447 19 jeremybenn
exec 5>>config.log
18448
{
18449
  echo
18450
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18451
## Running $as_me. ##
18452
_ASBOX
18453 82 jeremybenn
  $as_echo "$ac_log"
18454 19 jeremybenn
} >&5
18455
 
18456
_ACEOF
18457 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18458 19 jeremybenn
#
18459
# INIT-COMMANDS
18460
#
18461 82 jeremybenn
 
18462
 
18463
# The HP-UX ksh and POSIX shell print the target directory to stdout
18464
# if CDPATH is set.
18465
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18466
 
18467
sed_quote_subst='$sed_quote_subst'
18468
double_quote_subst='$double_quote_subst'
18469
delay_variable_subst='$delay_variable_subst'
18470
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18471
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18472
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18473
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18474
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18475
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18476
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18477
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18478
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18479
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18480
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18481
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18482
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18483
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18484
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18485
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18486
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18487
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18488
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18489
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18490
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18491
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18492
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18493
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18494
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18495
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18496
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18497
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18498
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18499
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18500
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18501
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18502
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18503
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18504
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18505
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18506
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18507
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18508
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18509
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18510
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18511
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18512
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18513
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18514
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"`'
18515
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"`'
18516
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18517
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18518
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18519
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18520
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18521
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18522
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18523
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18524
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18525
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18526
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18527
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18528
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18529
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18530
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18531
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18532
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18533
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18534
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18535
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18536
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18537
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18538
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18539
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18540
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18541
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18542
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18543
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18544
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18545
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18546
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18547
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18548
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18549
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18550
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18551
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18552
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18553
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18554
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18555
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18556
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18557
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18558
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18559
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18560
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18561
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18562
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18563
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18564
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18565
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18566
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18567
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18568
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18569
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18570
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18571
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18572
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18573
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18574
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18575
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18576
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18577
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18578
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18579
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18580
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18581
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18582
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18583
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18584
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18585
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18586
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18587
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18588
 
18589
LTCC='$LTCC'
18590
LTCFLAGS='$LTCFLAGS'
18591
compiler='$compiler_DEFAULT'
18592
 
18593
# Quote evaled strings.
18594
for var in SED \
18595
GREP \
18596
EGREP \
18597
FGREP \
18598
LD \
18599
NM \
18600
LN_S \
18601
lt_SP2NL \
18602
lt_NL2SP \
18603
reload_flag \
18604
OBJDUMP \
18605
deplibs_check_method \
18606
file_magic_cmd \
18607
AR \
18608
AR_FLAGS \
18609
STRIP \
18610
RANLIB \
18611
CC \
18612
CFLAGS \
18613
compiler \
18614
lt_cv_sys_global_symbol_pipe \
18615
lt_cv_sys_global_symbol_to_cdecl \
18616
lt_cv_sys_global_symbol_to_c_name_address \
18617
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18618
SHELL \
18619
ECHO \
18620
lt_prog_compiler_no_builtin_flag \
18621
lt_prog_compiler_wl \
18622
lt_prog_compiler_pic \
18623
lt_prog_compiler_static \
18624
lt_cv_prog_compiler_c_o \
18625
need_locks \
18626
DSYMUTIL \
18627
NMEDIT \
18628
LIPO \
18629
OTOOL \
18630
OTOOL64 \
18631
shrext_cmds \
18632
export_dynamic_flag_spec \
18633
whole_archive_flag_spec \
18634
compiler_needs_object \
18635
with_gnu_ld \
18636
allow_undefined_flag \
18637
no_undefined_flag \
18638
hardcode_libdir_flag_spec \
18639
hardcode_libdir_flag_spec_ld \
18640
hardcode_libdir_separator \
18641
fix_srcfile_path \
18642
exclude_expsyms \
18643
include_expsyms \
18644
file_list_spec \
18645
variables_saved_for_relink \
18646
libname_spec \
18647
library_names_spec \
18648
soname_spec \
18649
finish_eval \
18650
old_striplib \
18651
striplib; do
18652
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18653
    *[\\\\\\\`\\"\\\$]*)
18654
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18655
      ;;
18656
    *)
18657
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18658
      ;;
18659
    esac
18660
done
18661
 
18662
# Double-quote double-evaled strings.
18663
for var in reload_cmds \
18664
old_postinstall_cmds \
18665
old_postuninstall_cmds \
18666
old_archive_cmds \
18667
extract_expsyms_cmds \
18668
old_archive_from_new_cmds \
18669
old_archive_from_expsyms_cmds \
18670
archive_cmds \
18671
archive_expsym_cmds \
18672
module_cmds \
18673
module_expsym_cmds \
18674
export_symbols_cmds \
18675
prelink_cmds \
18676
postinstall_cmds \
18677
postuninstall_cmds \
18678
finish_cmds \
18679
sys_lib_search_path_spec \
18680
sys_lib_dlsearch_path_spec; do
18681
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18682
    *[\\\\\\\`\\"\\\$]*)
18683
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18684
      ;;
18685
    *)
18686
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18687
      ;;
18688
    esac
18689
done
18690
 
18691
# Fix-up fallback echo if it was mangled by the above quoting rules.
18692
case \$lt_ECHO in
18693
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18694
  ;;
18695
esac
18696
 
18697
ac_aux_dir='$ac_aux_dir'
18698
xsi_shell='$xsi_shell'
18699
lt_shell_append='$lt_shell_append'
18700
 
18701
# See if we are running on zsh, and set the options which allow our
18702
# commands through without removal of \ escapes INIT.
18703
if test -n "\${ZSH_VERSION+set}" ; then
18704
   setopt NO_GLOB_SUBST
18705
fi
18706
 
18707
 
18708
    PACKAGE='$PACKAGE'
18709
    VERSION='$VERSION'
18710
    TIMESTAMP='$TIMESTAMP'
18711
    RM='$RM'
18712
    ofile='$ofile'
18713
 
18714
 
18715
 
18716 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18717
 
18718
_ACEOF
18719
 
18720 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18721 19 jeremybenn
 
18722
# Handling of arguments.
18723
for ac_config_target in $ac_config_targets
18724
do
18725
  case $ac_config_target in
18726 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18727 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18728
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18729
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18730
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
18731
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
18732
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
18733
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
18734
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
18735
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
18736
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
18737
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
18738
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18739
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
18740
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
18741
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
18742
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
18743
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
18744 90 jeremybenn
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
18745
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
18746
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18747
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
18748
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
18749
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
18750
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
18751
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
18752
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
18753 93 jeremybenn
    "testsuite/test-code/lib-inttest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-inttest/Makefile" ;;
18754 97 jeremybenn
    "testsuite/test-code/lib-jtag/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-jtag/Makefile" ;;
18755 93 jeremybenn
    "testsuite/test-code/lib-upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-upcalls/Makefile" ;;
18756 90 jeremybenn
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
18757 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
18758
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
18759
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
18760
 
18761 101 jeremybenn
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18762
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18763
   { (exit 1); exit 1; }; };;
18764 19 jeremybenn
  esac
18765
done
18766
 
18767
 
18768
# If the user did not use the arguments to specify the items to instantiate,
18769
# then the envvar interface is used.  Set only those that are not.
18770
# We use the long form for the default assignment because of an extremely
18771
# bizarre bug on SunOS 4.1.3.
18772
if $ac_need_defaults; then
18773
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18774
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18775
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18776
fi
18777
 
18778
# Have a temporary directory for convenience.  Make it in the build tree
18779
# simply because there is no reason against having it here, and in addition,
18780
# creating and moving files from /tmp can sometimes cause problems.
18781
# Hook for its removal unless debugging.
18782
# Note that there is a small window in which the directory will not be cleaned:
18783
# after its creation but before its name has been assigned to `$tmp'.
18784
$debug ||
18785
{
18786
  tmp=
18787
  trap 'exit_status=$?
18788
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18789
' 0
18790 101 jeremybenn
  trap '{ (exit 1); exit 1; }' 1 2 13 15
18791 19 jeremybenn
}
18792
# Create a (secure) tmp directory for tmp files.
18793
 
18794
{
18795
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18796
  test -n "$tmp" && test -d "$tmp"
18797
}  ||
18798
{
18799
  tmp=./conf$$-$RANDOM
18800
  (umask 077 && mkdir "$tmp")
18801 101 jeremybenn
} ||
18802
{
18803
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
18804
   { (exit 1); exit 1; }
18805
}
18806 19 jeremybenn
 
18807 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
18808
# No need to generate them if there are no CONFIG_FILES.
18809
# This happens for instance with `./config.status config.h'.
18810 19 jeremybenn
if test -n "$CONFIG_FILES"; then
18811
 
18812 82 jeremybenn
 
18813 101 jeremybenn
ac_cr='
'
18814
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
18815 82 jeremybenn
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18816
  ac_cs_awk_cr='\\r'
18817 101 jeremybenn
else
18818 82 jeremybenn
  ac_cs_awk_cr=$ac_cr
18819
fi
18820
18821
 
18822
_ACEOF
18823 19 jeremybenn
18824
 
18825
 
18826 82 jeremybenn
  echo "cat >conf$$subs.awk <<_ACEOF" &&
18827
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18828
  echo "_ACEOF"
18829
} >conf$$subs.sh ||
18830
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18831 101 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18832
   { (exit 1); exit 1; }; }
18833
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18834 82 jeremybenn
ac_delim='%!_!# '
18835 19 jeremybenn
for ac_last_try in false false false false false :; do
18836
  . ./conf$$subs.sh ||
18837 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18838 101 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18839
   { (exit 1); exit 1; }; }
18840
18841 19 jeremybenn
 
18842 82 jeremybenn
  if test $ac_delim_n = $ac_delim_num; then
18843
    break
18844 19 jeremybenn
  elif $ac_last_try; then
18845
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18846 101 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18847
   { (exit 1); exit 1; }; }
18848
  else
18849 19 jeremybenn
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18850
  fi
18851
done
18852
rm -f conf$$subs.sh
18853 82 jeremybenn
18854 19 jeremybenn
 
18855 82 jeremybenn
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18856
_ACEOF
18857 19 jeremybenn
sed -n '
18858 82 jeremybenn
h
18859
s/^/S["/; s/!.*/"]=/
18860
p
18861
g
18862
s/^[^!]*!//
18863
:repl
18864
t repl
18865
s/'"$ac_delim"'$//
18866
t delim
18867
:nl
18868
h
18869
s/\(.\{148\}\).*/\1/
18870 101 jeremybenn
t more1
18871 82 jeremybenn
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18872
p
18873
n
18874
b repl
18875
:more1
18876
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18877
p
18878
g
18879
s/.\{148\}//
18880
t nl
18881
:delim
18882
h
18883
s/\(.\{148\}\).*/\1/
18884 101 jeremybenn
t more2
18885 82 jeremybenn
s/["\\]/\\&/g; s/^/"/; s/$/"/
18886
p
18887
b
18888
:more2
18889
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18890
p
18891
g
18892
s/.\{148\}//
18893
t delim
18894
' 
18895
/^[^""]/{
18896
  N
18897
  s/\n//
18898
}
18899
' >>$CONFIG_STATUS || ac_write_fail=1
18900
rm -f conf$$subs.awk
18901
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18902
_ACAWK
18903
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18904
  for (key in S) S_is_set[key] = 1
18905
  FS = ""
18906
18907 19 jeremybenn
 
18908 82 jeremybenn
{
18909
  line = $ 0
18910
  nfields = split(line, field, "@")
18911
  substed = 0
18912
  len = length(field[1])
18913
  for (i = 2; i < nfields; i++) {
18914
    key = field[i]
18915
    keylen = length(key)
18916
    if (S_is_set[key]) {
18917
      value = S[key]
18918
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18919
      len += length(value) + length(field[++i])
18920
      substed = 1
18921
    } else
18922
      len += 1 + keylen
18923
  }
18924
18925 19 jeremybenn
 
18926 82 jeremybenn
}
18927
18928
 
18929
_ACEOF
18930 19 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18931 82 jeremybenn
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18932
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18933
else
18934
  cat
18935
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18936
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18937 101 jeremybenn
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18938
   { (exit 1); exit 1; }; }
18939
_ACEOF
18940 19 jeremybenn
18941
 
18942
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18943
# trailing colons and then remove the whole line if VPATH becomes empty
18944
# (actually we leave an empty line to preserve line numbers).
18945
if test "x$srcdir" = x.; then
18946
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
18947
s/:*\$(srcdir):*/:/
18948
s/:*\${srcdir}:*/:/
18949
s/:*@srcdir@:*/:/
18950
s/^\([^=]*=[     ]*\):*/\1/
18951
s/:*$//
18952
s/^[^=]*=[       ]*$//
18953
}'
18954
fi
18955
18956
 
18957 82 jeremybenn
fi # test -n "$CONFIG_FILES"
18958 19 jeremybenn
18959
 
18960 82 jeremybenn
# No need to generate them if there are no CONFIG_HEADERS.
18961
# This happens for instance with `./config.status Makefile'.
18962
if test -n "$CONFIG_HEADERS"; then
18963
cat >"$tmp/defines.awk" <<\_ACAWK ||
18964
BEGIN {
18965
_ACEOF
18966
18967 19 jeremybenn
 
18968 82 jeremybenn
# here-document in config.status, that substitutes the proper values into
18969
# config.h.in to produce config.h.
18970
18971
 
18972
# handling of long lines.
18973
ac_delim='%!_!# '
18974
for ac_last_try in false false :; do
18975
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18976
  if test -z "$ac_t"; then
18977
    break
18978
  elif $ac_last_try; then
18979
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18980 101 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18981
   { (exit 1); exit 1; }; }
18982
  else
18983 82 jeremybenn
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18984
  fi
18985
done
18986
18987
 
18988
# likewise P contains macro parameters if any.  Preserve backslash
18989
# newline sequences.
18990
18991
 
18992
sed -n '
18993
s/.\{148\}/&'"$ac_delim"'/g
18994
t rset
18995
:rset
18996
s/^[     ]*#[    ]*define[       ][      ]*/ /
18997
t def
18998
d
18999
:def
19000
s/\\$//
19001
t bsnl
19002
s/["\\]/\\&/g
19003
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19004
D["\1"]=" \3"/p
19005
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19006
d
19007
:bsnl
19008
s/["\\]/\\&/g
19009
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19010
D["\1"]=" \3\\\\\\n"\\/p
19011
t cont
19012
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19013
t cont
19014
d
19015
:cont
19016
n
19017
s/.\{148\}/&'"$ac_delim"'/g
19018
t clear
19019
:clear
19020
s/\\$//
19021
t bsnlc
19022
s/["\\]/\\&/g; s/^/"/; s/$/"/p
19023
d
19024
:bsnlc
19025
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19026
b cont
19027
' 
19028
s/'"$ac_delim"'/"\\\
19029
"/g' >>$CONFIG_STATUS || ac_write_fail=1
19030
19031
 
19032
  for (key in D) D_is_set[key] = 1
19033
  FS = ""
19034
}
19035
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19036
  line = \$ 0
19037
  split(line, arg, " ")
19038
  if (arg[1] == "#") {
19039
    defundef = arg[2]
19040
    mac1 = arg[3]
19041
  } else {
19042
    defundef = substr(arg[1], 2)
19043
    mac1 = arg[2]
19044
  }
19045
  split(mac1, mac2, "(") #)
19046
  macro = mac2[1]
19047
  prefix = substr(line, 1, index(line, defundef) - 1)
19048
  if (D_is_set[macro]) {
19049
    # Preserve the white space surrounding the "#".
19050
    print prefix "define", macro P[macro] D[macro]
19051
    next
19052
  } else {
19053
    # Replace #undef with comments.  This is necessary, for example,
19054
    # in the case of _POSIX_SOURCE, which is predefined and required
19055
    # on some systems where configure will not decide to define it.
19056
    if (defundef == "undef") {
19057
      print "/*", prefix defundef, macro, "*/"
19058
      next
19059
    }
19060
  }
19061
}
19062
{ print }
19063
_ACAWK
19064
_ACEOF
19065
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19066
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19067 101 jeremybenn
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19068
   { (exit 1); exit 1; }; }
19069
fi # test -n "$CONFIG_HEADERS"
19070 82 jeremybenn
19071
 
19072
 
19073
shift
19074
for ac_tag
19075
do
19076 19 jeremybenn
  case $ac_tag in
19077
  :[FHLC]) ac_mode=$ac_tag; continue;;
19078
  esac
19079
  case $ac_mode$ac_tag in
19080
  :[FHL]*:*);;
19081
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19082 101 jeremybenn
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19083
   { (exit 1); exit 1; }; };;
19084
  :[FH]-) ac_tag=-:-;;
19085 19 jeremybenn
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19086
  esac
19087
  ac_save_IFS=$IFS
19088
  IFS=:
19089
  set x $ac_tag
19090
  IFS=$ac_save_IFS
19091
  shift
19092
  ac_file=$1
19093
  shift
19094
19095
 
19096
  :L) ac_source=$1;;
19097
  :[FH])
19098
    ac_file_inputs=
19099
    for ac_f
19100
    do
19101
      case $ac_f in
19102
      -) ac_f="$tmp/stdin";;
19103
      *) # Look for the file first in the build tree, then in the source tree
19104
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
19105
         # because $ac_f cannot contain `:'.
19106
         test -f "$ac_f" ||
19107
           case $ac_f in
19108
           [\\/$]*) false;;
19109
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19110
           esac ||
19111
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19112 101 jeremybenn
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19113
   { (exit 1); exit 1; }; };;
19114
      esac
19115 19 jeremybenn
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19116 82 jeremybenn
      ac_file_inputs="$ac_file_inputs '$ac_f'"
19117 101 jeremybenn
    done
19118 19 jeremybenn
19119
 
19120
    # use $as_me), people would be surprised to read:
19121
    #    /* config.h.  Generated by config.status.  */
19122
    configure_input='Generated from '`
19123 82 jeremybenn
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19124
        `' by configure.'
19125
    if test x"$ac_file" != x-; then
19126 19 jeremybenn
      configure_input="$ac_file.  $configure_input"
19127
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19128 101 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
19129 82 jeremybenn
    fi
19130 19 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
19131 82 jeremybenn
    case $configure_input in #(
19132
    *\&* | *\|* | *\\* )
19133
       ac_sed_conf_input=`$as_echo "$configure_input" |
19134
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19135
    *) ac_sed_conf_input=$configure_input;;
19136
    esac
19137
19138 19 jeremybenn
 
19139
    *:-:* | *:-) cat >"$tmp/stdin" \
19140 82 jeremybenn
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19141 101 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19142
   { (exit 1); exit 1; }; } ;;
19143
    esac
19144 19 jeremybenn
    ;;
19145
  esac
19146
19147
 
19148
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19149
         X"$ac_file" : 'X\(//\)[^/]' \| \
19150
         X"$ac_file" : 'X\(//\)$' \| \
19151
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19152
$as_echo X"$ac_file" |
19153 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19154 19 jeremybenn
            s//\1/
19155
            q
19156
          }
19157
          /^X\(\/\/\)[^/].*/{
19158
            s//\1/
19159
            q
19160
          }
19161
          /^X\(\/\/\)$/{
19162
            s//\1/
19163
            q
19164
          }
19165
          /^X\(\/\).*/{
19166
            s//\1/
19167
            q
19168
          }
19169
          s/.*/./; q'`
19170
  { as_dir="$ac_dir"
19171 101 jeremybenn
  case $as_dir in #(
19172
  -*) as_dir=./$as_dir;;
19173
  esac
19174
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19175
    as_dirs=
19176
    while :; do
19177
      case $as_dir in #(
19178
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19179
      *) as_qdir=$as_dir;;
19180
      esac
19181
      as_dirs="'$as_qdir' $as_dirs"
19182
      as_dir=`$as_dirname -- "$as_dir" ||
19183
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19184
         X"$as_dir" : 'X\(//\)[^/]' \| \
19185
         X"$as_dir" : 'X\(//\)$' \| \
19186
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19187
$as_echo X"$as_dir" |
19188
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19189
            s//\1/
19190
            q
19191
          }
19192
          /^X\(\/\/\)[^/].*/{
19193
            s//\1/
19194
            q
19195
          }
19196
          /^X\(\/\/\)$/{
19197
            s//\1/
19198
            q
19199
          }
19200
          /^X\(\/\).*/{
19201
            s//\1/
19202
            q
19203
          }
19204
          s/.*/./; q'`
19205
      test -d "$as_dir" && break
19206
    done
19207
    test -z "$as_dirs" || eval "mkdir $as_dirs"
19208
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19209
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19210
   { (exit 1); exit 1; }; }; }
19211
  ac_builddir=.
19212 19 jeremybenn
19213
 
19214
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19215
*)
19216
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19217 82 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
19218 19 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19219 82 jeremybenn
  case $ac_top_builddir_sub in
19220 19 jeremybenn
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19221
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19222
  esac ;;
19223
esac
19224
ac_abs_top_builddir=$ac_pwd
19225
ac_abs_builddir=$ac_pwd$ac_dir_suffix
19226
# for backward compatibility:
19227
ac_top_builddir=$ac_top_build_prefix
19228
19229
 
19230
  .)  # We are building in place.
19231
    ac_srcdir=.
19232
    ac_top_srcdir=$ac_top_builddir_sub
19233
    ac_abs_top_srcdir=$ac_pwd ;;
19234
  [\\/]* | ?:[\\/]* )  # Absolute name.
19235
    ac_srcdir=$srcdir$ac_dir_suffix;
19236
    ac_top_srcdir=$srcdir
19237
    ac_abs_top_srcdir=$srcdir ;;
19238
  *) # Relative name.
19239
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19240
    ac_top_srcdir=$ac_top_build_prefix$srcdir
19241
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19242
esac
19243
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19244
19245
 
19246
 
19247
  :F)
19248
  #
19249
  # CONFIG_FILE
19250
  #
19251
19252
 
19253
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19254
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19255
  esac
19256
  ac_MKDIR_P=$MKDIR_P
19257
  case $MKDIR_P in
19258
  [\\/$]* | ?:[\\/]* ) ;;
19259
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19260
  esac
19261
_ACEOF
19262
19263
 
19264 82 jeremybenn
# If the template does not know about datarootdir, expand it.
19265 19 jeremybenn
# FIXME: This hack should be removed a few years after 2.60.
19266
ac_datarootdir_hack=; ac_datarootdir_seen=
19267
19268 101 jeremybenn
 
19269 82 jeremybenn
/datarootdir/ {
19270
  p
19271 19 jeremybenn
  q
19272
}
19273
/@datadir@/p
19274
/@docdir@/p
19275
/@infodir@/p
19276
/@localedir@/p
19277
/@mandir@/p
19278 101 jeremybenn
'
19279
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19280 82 jeremybenn
*datarootdir*) ac_datarootdir_seen=yes;;
19281 19 jeremybenn
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19282
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19283 101 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19284 82 jeremybenn
_ACEOF
19285 19 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19286 82 jeremybenn
  ac_datarootdir_hack='
19287 19 jeremybenn
  s&@datadir@&$datadir&g
19288
  s&@docdir@&$docdir&g
19289
  s&@infodir@&$infodir&g
19290
  s&@localedir@&$localedir&g
19291
  s&@mandir@&$mandir&g
19292
    s&\\\${datarootdir}&$datarootdir&g' ;;
19293 101 jeremybenn
esac
19294 19 jeremybenn
_ACEOF
19295
19296
 
19297
# Shell code in configure.ac might set extrasub.
19298
# FIXME: do we really want to maintain this feature?
19299
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19300 82 jeremybenn
ac_sed_extra="$ac_vpsub
19301
$extrasub
19302 19 jeremybenn
_ACEOF
19303
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19304 82 jeremybenn
:t
19305 19 jeremybenn
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19306
s|@configure_input@|$ac_sed_conf_input|;t t
19307 82 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
19308 19 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
19309 82 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
19310 19 jeremybenn
s&@abs_srcdir@&$ac_abs_srcdir&;t t
19311
s&@top_srcdir@&$ac_top_srcdir&;t t
19312
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19313
s&@builddir@&$ac_builddir&;t t
19314
s&@abs_builddir@&$ac_abs_builddir&;t t
19315
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19316
s&@INSTALL@&$ac_INSTALL&;t t
19317
s&@MKDIR_P@&$ac_MKDIR_P&;t t
19318
$ac_datarootdir_hack
19319
"
19320 82 jeremybenn
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19321
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19322 101 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19323
   { (exit 1); exit 1; }; }
19324
19325 19 jeremybenn
 
19326
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19327
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19328
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19329 101 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
19330 19 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19331 82 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
19332 19 jeremybenn
19333
 
19334
  case $ac_file in
19335
  -) cat "$tmp/out" && rm -f "$tmp/out";;
19336 82 jeremybenn
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19337
  esac \
19338
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19339 101 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19340
   { (exit 1); exit 1; }; }
19341
 ;;
19342 19 jeremybenn
  :H)
19343
  #
19344
  # CONFIG_HEADER
19345
  #
19346
  if test x"$ac_file" != x-; then
19347
    {
19348 82 jeremybenn
      $as_echo "/* $configure_input  */" \
19349
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19350
    } >"$tmp/config.h" \
19351
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19352 101 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19353
   { (exit 1); exit 1; }; }
19354
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19355 82 jeremybenn
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19356 101 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
19357 82 jeremybenn
    else
19358 19 jeremybenn
      rm -f "$ac_file"
19359 82 jeremybenn
      mv "$tmp/config.h" "$ac_file" \
19360
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19361 101 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19362
   { (exit 1); exit 1; }; }
19363
    fi
19364 19 jeremybenn
  else
19365
    $as_echo "/* $configure_input  */" \
19366 82 jeremybenn
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19367
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19368 101 jeremybenn
$as_echo "$as_me: error: could not create -" >&2;}
19369
   { (exit 1); exit 1; }; }
19370
  fi
19371 19 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
19372 82 jeremybenn
_am_arg="$ac_file"
19373
_am_stamp_count=1
19374 19 jeremybenn
for _am_header in $config_headers :; do
19375
  case $_am_header in
19376
    $_am_arg | $_am_arg:* )
19377
      break ;;
19378
    * )
19379
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19380
  esac
19381
done
19382
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19383
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19384
         X"$_am_arg" : 'X\(//\)[^/]' \| \
19385
         X"$_am_arg" : 'X\(//\)$' \| \
19386
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19387
$as_echo X"$_am_arg" |
19388 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19389 19 jeremybenn
            s//\1/
19390
            q
19391
          }
19392
          /^X\(\/\/\)[^/].*/{
19393
            s//\1/
19394
            q
19395
          }
19396
          /^X\(\/\/\)$/{
19397
            s//\1/
19398
            q
19399
          }
19400
          /^X\(\/\).*/{
19401
            s//\1/
19402
            q
19403
          }
19404
          s/.*/./; q'`/stamp-h$_am_stamp_count
19405
 ;;
19406
19407
 
19408 101 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
19409 82 jeremybenn
 ;;
19410 19 jeremybenn
  esac
19411
19412
 
19413
 
19414
    "libtool":C)
19415 82 jeremybenn
19416
 
19417
    # commands through without removal of \ escapes.
19418
    if test -n "${ZSH_VERSION+set}" ; then
19419
      setopt NO_GLOB_SUBST
19420
    fi
19421
19422
 
19423
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19424
    $RM "$cfgfile"
19425
19426
 
19427
#! $SHELL
19428
19429
 
19430
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19431
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19432
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19433
#
19434
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19435
#                 2006, 2007, 2008 Free Software Foundation, Inc.
19436
#   Written by Gordon Matzigkeit, 1996
19437
#
19438
#   This file is part of GNU Libtool.
19439
#
19440
# GNU Libtool is free software; you can redistribute it and/or
19441
# modify it under the terms of the GNU General Public License as
19442
# published by the Free Software Foundation; either version 2 of
19443
# the License, or (at your option) any later version.
19444
#
19445
# As a special exception to the GNU General Public License,
19446
# if you distribute this file as part of a program or library that
19447
# is built using GNU Libtool, you may include this file under the
19448
# same distribution terms that you use for the rest of that program.
19449
#
19450
# GNU Libtool is distributed in the hope that it will be useful,
19451
# but WITHOUT ANY WARRANTY; without even the implied warranty of
19452
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19453
# GNU General Public License for more details.
19454
#
19455
# You should have received a copy of the GNU General Public License
19456
# along with GNU Libtool; see the file COPYING.  If not, a copy
19457
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19458
# obtained by writing to the Free Software Foundation, Inc.,
19459
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19460
19461
 
19462
 
19463
available_tags=""
19464
19465
 
19466
19467
 
19468
macro_version=$macro_version
19469
macro_revision=$macro_revision
19470
19471
 
19472
build_libtool_libs=$enable_shared
19473
19474
 
19475
build_old_libs=$enable_static
19476
19477
 
19478
pic_mode=$pic_mode
19479
19480
 
19481
fast_install=$enable_fast_install
19482
19483
 
19484
host_alias=$host_alias
19485
host=$host
19486
host_os=$host_os
19487
19488
 
19489
build_alias=$build_alias
19490
build=$build
19491
build_os=$build_os
19492
19493
 
19494
SED=$lt_SED
19495
19496
 
19497
Xsed="\$SED -e 1s/^X//"
19498
19499
 
19500
GREP=$lt_GREP
19501
19502
 
19503
EGREP=$lt_EGREP
19504
19505
 
19506
FGREP=$lt_FGREP
19507
19508
 
19509
NM=$lt_NM
19510
19511
 
19512
LN_S=$lt_LN_S
19513
19514
 
19515
max_cmd_len=$max_cmd_len
19516
19517
 
19518
objext=$ac_objext
19519
19520
 
19521
exeext=$exeext
19522
19523
 
19524
lt_unset=$lt_unset
19525
19526
 
19527
SP2NL=$lt_lt_SP2NL
19528
19529
 
19530
NL2SP=$lt_lt_NL2SP
19531
19532
 
19533
reload_flag=$lt_reload_flag
19534
reload_cmds=$lt_reload_cmds
19535
19536
 
19537
OBJDUMP=$lt_OBJDUMP
19538
19539
 
19540
deplibs_check_method=$lt_deplibs_check_method
19541
19542
 
19543
file_magic_cmd=$lt_file_magic_cmd
19544
19545
 
19546
AR=$lt_AR
19547
AR_FLAGS=$lt_AR_FLAGS
19548
19549
 
19550
STRIP=$lt_STRIP
19551
19552
 
19553
RANLIB=$lt_RANLIB
19554
old_postinstall_cmds=$lt_old_postinstall_cmds
19555
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19556
19557
 
19558
LTCC=$lt_CC
19559
19560
 
19561
LTCFLAGS=$lt_CFLAGS
19562
19563
 
19564
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19565
19566
 
19567
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19568
19569
 
19570
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19571
19572
 
19573
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19574
19575
 
19576
objdir=$objdir
19577
19578
 
19579
SHELL=$lt_SHELL
19580
19581
 
19582
ECHO=$lt_ECHO
19583
19584
 
19585
MAGIC_CMD=$MAGIC_CMD
19586
19587
 
19588
need_locks=$lt_need_locks
19589
19590
 
19591
DSYMUTIL=$lt_DSYMUTIL
19592
19593
 
19594
NMEDIT=$lt_NMEDIT
19595
19596
 
19597
LIPO=$lt_LIPO
19598
19599
 
19600
OTOOL=$lt_OTOOL
19601
19602
 
19603
OTOOL64=$lt_OTOOL64
19604
19605
 
19606
libext=$libext
19607
19608
 
19609
shrext_cmds=$lt_shrext_cmds
19610
19611
 
19612
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19613
19614
 
19615
# restored at link time.
19616
variables_saved_for_relink=$lt_variables_saved_for_relink
19617
19618
 
19619
need_lib_prefix=$need_lib_prefix
19620
19621
 
19622
need_version=$need_version
19623
19624
 
19625
version_type=$version_type
19626
19627
 
19628
runpath_var=$runpath_var
19629
19630
 
19631
shlibpath_var=$shlibpath_var
19632
19633
 
19634
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19635
19636
 
19637
libname_spec=$lt_libname_spec
19638
19639
 
19640
# The last name is the one that the linker finds with -lNAME
19641
library_names_spec=$lt_library_names_spec
19642
19643
 
19644
soname_spec=$lt_soname_spec
19645
19646
 
19647
postinstall_cmds=$lt_postinstall_cmds
19648
19649
 
19650
postuninstall_cmds=$lt_postuninstall_cmds
19651
19652
 
19653
finish_cmds=$lt_finish_cmds
19654
19655
 
19656
# not shown.
19657
finish_eval=$lt_finish_eval
19658
19659
 
19660
hardcode_into_libs=$hardcode_into_libs
19661
19662
 
19663
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19664
19665
 
19666
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19667
19668
 
19669
dlopen_support=$enable_dlopen
19670
19671
 
19672
dlopen_self=$enable_dlopen_self
19673
19674
 
19675
dlopen_self_static=$enable_dlopen_self_static
19676
19677
 
19678
old_striplib=$lt_old_striplib
19679
striplib=$lt_striplib
19680
19681
 
19682
 
19683
LD=$lt_LD
19684
19685
 
19686
old_archive_cmds=$lt_old_archive_cmds
19687
19688
 
19689
CC=$lt_compiler
19690
19691
 
19692
with_gcc=$GCC
19693
19694
 
19695
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19696
19697
 
19698
wl=$lt_lt_prog_compiler_wl
19699
19700
 
19701
pic_flag=$lt_lt_prog_compiler_pic
19702
19703
 
19704
link_static_flag=$lt_lt_prog_compiler_static
19705
19706
 
19707
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19708
19709
 
19710
build_libtool_need_lc=$archive_cmds_need_lc
19711
19712
 
19713
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19714
19715
 
19716
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19717
19718
 
19719
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19720
19721
 
19722
compiler_needs_object=$lt_compiler_needs_object
19723
19724
 
19725
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19726
19727
 
19728
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19729
19730
 
19731
archive_cmds=$lt_archive_cmds
19732
archive_expsym_cmds=$lt_archive_expsym_cmds
19733
19734
 
19735
# a shared archive.
19736
module_cmds=$lt_module_cmds
19737
module_expsym_cmds=$lt_module_expsym_cmds
19738
19739
 
19740
with_gnu_ld=$lt_with_gnu_ld
19741
19742
 
19743
allow_undefined_flag=$lt_allow_undefined_flag
19744
19745
 
19746
no_undefined_flag=$lt_no_undefined_flag
19747
19748
 
19749
# This must work even if \$libdir does not exist
19750
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19751
19752
 
19753
# during linking.  This must work even if \$libdir does not exist.
19754
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19755
19756
 
19757
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19758
19759
 
19760
# DIR into the resulting binary.
19761
hardcode_direct=$hardcode_direct
19762
19763
 
19764
# DIR into the resulting binary and the resulting library dependency is
19765
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19766
# library is relocated.
19767
hardcode_direct_absolute=$hardcode_direct_absolute
19768
19769
 
19770
# into the resulting binary.
19771
hardcode_minus_L=$hardcode_minus_L
19772
19773
 
19774
# into the resulting binary.
19775
hardcode_shlibpath_var=$hardcode_shlibpath_var
19776
19777
 
19778
# into the library and all subsequent libraries and executables linked
19779
# against it.
19780
hardcode_automatic=$hardcode_automatic
19781
19782
 
19783
# to runtime path list.
19784
inherit_rpath=$inherit_rpath
19785
19786
 
19787
link_all_deplibs=$link_all_deplibs
19788
19789
 
19790
fix_srcfile_path=$lt_fix_srcfile_path
19791
19792
 
19793
always_export_symbols=$always_export_symbols
19794
19795
 
19796
export_symbols_cmds=$lt_export_symbols_cmds
19797
19798
 
19799
exclude_expsyms=$lt_exclude_expsyms
19800
19801
 
19802
include_expsyms=$lt_include_expsyms
19803
19804
 
19805
prelink_cmds=$lt_prelink_cmds
19806
19807
 
19808
file_list_spec=$lt_file_list_spec
19809
19810
 
19811
hardcode_action=$hardcode_action
19812
19813
 
19814
19815
 
19816
19817
 
19818
  aix3*)
19819
    cat <<\_LT_EOF >> "$cfgfile"
19820
# AIX sometimes has problems with the GCC collect2 program.  For some
19821
# reason, if we set the COLLECT_NAMES environment variable, the problems
19822
# vanish in a puff of smoke.
19823
if test "X${COLLECT_NAMES+set}" != Xset; then
19824
  COLLECT_NAMES=
19825
  export COLLECT_NAMES
19826
fi
19827
_LT_EOF
19828
    ;;
19829
  esac
19830
19831
 
19832
 
19833
19834
 
19835
 
19836
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19837
  # text mode, it properly converts lines to CR/LF.  This bash problem
19838
  # is reportedly fixed, but why not run on old versions too?
19839
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19840
    || (rm -f "$cfgfile"; exit 1)
19841
19842
 
19843
  yes)
19844
    cat << \_LT_EOF >> "$cfgfile"
19845
19846
 
19847
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19848
# otherwise set result to NONDIR_REPLACEMENT.
19849
func_dirname ()
19850
{
19851
  case ${1} in
19852
    */*) func_dirname_result="${1%/*}${2}" ;;
19853
    *  ) func_dirname_result="${3}" ;;
19854
  esac
19855
}
19856
19857
 
19858
func_basename ()
19859
{
19860
  func_basename_result="${1##*/}"
19861
}
19862
19863
 
19864
# perform func_basename and func_dirname in a single function
19865
# call:
19866
#   dirname:  Compute the dirname of FILE.  If nonempty,
19867
#             add APPEND to the result, otherwise set result
19868
#             to NONDIR_REPLACEMENT.
19869
#             value returned in "$func_dirname_result"
19870
#   basename: Compute filename of FILE.
19871
#             value retuned in "$func_basename_result"
19872
# Implementation must be kept synchronized with func_dirname
19873
# and func_basename. For efficiency, we do not delegate to
19874
# those functions but instead duplicate the functionality here.
19875
func_dirname_and_basename ()
19876
{
19877
  case ${1} in
19878
    */*) func_dirname_result="${1%/*}${2}" ;;
19879
    *  ) func_dirname_result="${3}" ;;
19880
  esac
19881
  func_basename_result="${1##*/}"
19882
}
19883
19884
 
19885
# strip PREFIX and SUFFIX off of NAME.
19886
# PREFIX and SUFFIX must not contain globbing or regex special
19887
# characters, hashes, percent signs, but SUFFIX may contain a leading
19888
# dot (in which case that matches only a dot).
19889
func_stripname ()
19890
{
19891
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19892
  # positional parameters, so assign one to ordinary parameter first.
19893
  func_stripname_result=${3}
19894
  func_stripname_result=${func_stripname_result#"${1}"}
19895
  func_stripname_result=${func_stripname_result%"${2}"}
19896
}
19897
19898
 
19899
func_opt_split ()
19900
{
19901
  func_opt_split_opt=${1%%=*}
19902
  func_opt_split_arg=${1#*=}
19903
}
19904
19905
 
19906
func_lo2o ()
19907
{
19908
  case ${1} in
19909
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19910
    *)    func_lo2o_result=${1} ;;
19911
  esac
19912
}
19913
19914
 
19915
func_xform ()
19916
{
19917
  func_xform_result=${1%.*}.lo
19918
}
19919
19920
 
19921
func_arith ()
19922
{
19923
  func_arith_result=$(( $* ))
19924
}
19925
19926
 
19927
# STRING may not start with a hyphen.
19928
func_len ()
19929
{
19930
  func_len_result=${#1}
19931
}
19932
19933
 
19934
    ;;
19935
  *) # Bourne compatible functions.
19936
    cat << \_LT_EOF >> "$cfgfile"
19937
19938
 
19939
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19940
# otherwise set result to NONDIR_REPLACEMENT.
19941
func_dirname ()
19942
{
19943
  # Extract subdirectory from the argument.
19944
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19945
  if test "X$func_dirname_result" = "X${1}"; then
19946
    func_dirname_result="${3}"
19947
  else
19948
    func_dirname_result="$func_dirname_result${2}"
19949
  fi
19950
}
19951
19952
 
19953
func_basename ()
19954
{
19955
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19956
}
19957
19958
 
19959
 
19960
# strip PREFIX and SUFFIX off of NAME.
19961
# PREFIX and SUFFIX must not contain globbing or regex special
19962
# characters, hashes, percent signs, but SUFFIX may contain a leading
19963
# dot (in which case that matches only a dot).
19964
# func_strip_suffix prefix name
19965
func_stripname ()
19966
{
19967
  case ${2} in
19968
    .*) func_stripname_result=`$ECHO "X${3}" \
19969
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19970
    *)  func_stripname_result=`$ECHO "X${3}" \
19971
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19972
  esac
19973
}
19974
19975
 
19976
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19977
my_sed_long_arg='1s/^-[^=]*=//'
19978
19979
 
19980
func_opt_split ()
19981
{
19982
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19983
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19984
}
19985
19986
 
19987
func_lo2o ()
19988
{
19989
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19990
}
19991
19992
 
19993
func_xform ()
19994
{
19995
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19996
}
19997
19998
 
19999
func_arith ()
20000
{
20001
  func_arith_result=`expr "$@"`
20002
}
20003
20004
 
20005
# STRING may not start with a hyphen.
20006
func_len ()
20007
{
20008
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20009
}
20010
20011
 
20012
esac
20013
20014
 
20015
  yes)
20016
    cat << \_LT_EOF >> "$cfgfile"
20017
20018
 
20019
# Append VALUE to the end of shell variable VAR.
20020
func_append ()
20021
{
20022
  eval "$1+=\$2"
20023
}
20024
_LT_EOF
20025
    ;;
20026
  *)
20027
    cat << \_LT_EOF >> "$cfgfile"
20028
20029
 
20030
# Append VALUE to the end of shell variable VAR.
20031
func_append ()
20032
{
20033
  eval "$1=\$$1\$2"
20034
}
20035
20036
 
20037
    ;;
20038
  esac
20039
20040
 
20041
 
20042
    || (rm -f "$cfgfile"; exit 1)
20043
20044
 
20045
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20046
  chmod +x "$ofile"
20047
20048
 
20049
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20050
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20051
  # are listed without --file.  Let's play safe and only enable the eval
20052
  # if we detect the quoting.
20053
  case $CONFIG_FILES in
20054
  *\'*) eval set x "$CONFIG_FILES" ;;
20055
  *)   set x $CONFIG_FILES ;;
20056
  esac
20057
  shift
20058
  for mf
20059
  do
20060
    # Strip MF so we end up with the name of the file.
20061
    mf=`echo "$mf" | sed -e 's/:.*$//'`
20062
    # Check whether this is an Automake generated Makefile or not.
20063
    # We used to match only the files named `Makefile.in', but
20064
    # some people rename them; so instead we look at the file content.
20065
    # Grep'ing the first line is not enough: some people post-process
20066
    # each Makefile.in and add a new line on top of each file to say so.
20067
    # Grep'ing the whole file is not good either: AIX grep has a line
20068
    # limit of 2048, but all sed's we know have understand at least 4000.
20069
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20070
      dirpart=`$as_dirname -- "$mf" ||
20071
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20072 19 jeremybenn
         X"$mf" : 'X\(//\)[^/]' \| \
20073
         X"$mf" : 'X\(//\)$' \| \
20074
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20075
$as_echo X"$mf" |
20076 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20077 19 jeremybenn
            s//\1/
20078
            q
20079
          }
20080
          /^X\(\/\/\)[^/].*/{
20081
            s//\1/
20082
            q
20083
          }
20084
          /^X\(\/\/\)$/{
20085
            s//\1/
20086
            q
20087
          }
20088
          /^X\(\/\).*/{
20089
            s//\1/
20090
            q
20091
          }
20092
          s/.*/./; q'`
20093
    else
20094 82 jeremybenn
      continue
20095
    fi
20096
    # Extract the definition of DEPDIR, am__include, and am__quote
20097
    # from the Makefile without running `make'.
20098
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20099
    test -z "$DEPDIR" && continue
20100
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20101
    test -z "am__include" && continue
20102
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20103
    # When using ansi2knr, U may be empty or an underscore; expand it
20104
    U=`sed -n 's/^U = //p' < "$mf"`
20105
    # Find all dependency output files, they are included files with
20106
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20107
    # simplest approach to changing $(DEPDIR) to its actual value in the
20108
    # expansion.
20109
    for file in `sed -n "
20110
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20111
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20112
      # Make sure the directory exists.
20113
      test -f "$dirpart/$file" && continue
20114
      fdir=`$as_dirname -- "$file" ||
20115
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20116 19 jeremybenn
         X"$file" : 'X\(//\)[^/]' \| \
20117
         X"$file" : 'X\(//\)$' \| \
20118
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20119
$as_echo X"$file" |
20120 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20121 19 jeremybenn
            s//\1/
20122
            q
20123
          }
20124
          /^X\(\/\/\)[^/].*/{
20125
            s//\1/
20126
            q
20127
          }
20128
          /^X\(\/\/\)$/{
20129
            s//\1/
20130
            q
20131
          }
20132
          /^X\(\/\).*/{
20133
            s//\1/
20134
            q
20135
          }
20136
          s/.*/./; q'`
20137
      { as_dir=$dirpart/$fdir
20138 101 jeremybenn
  case $as_dir in #(
20139
  -*) as_dir=./$as_dir;;
20140
  esac
20141
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20142
    as_dirs=
20143
    while :; do
20144
      case $as_dir in #(
20145
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20146
      *) as_qdir=$as_dir;;
20147
      esac
20148
      as_dirs="'$as_qdir' $as_dirs"
20149
      as_dir=`$as_dirname -- "$as_dir" ||
20150
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20151
         X"$as_dir" : 'X\(//\)[^/]' \| \
20152
         X"$as_dir" : 'X\(//\)$' \| \
20153
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20154
$as_echo X"$as_dir" |
20155
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20156
            s//\1/
20157
            q
20158
          }
20159
          /^X\(\/\/\)[^/].*/{
20160
            s//\1/
20161
            q
20162
          }
20163
          /^X\(\/\/\)$/{
20164
            s//\1/
20165
            q
20166
          }
20167
          /^X\(\/\).*/{
20168
            s//\1/
20169
            q
20170
          }
20171
          s/.*/./; q'`
20172
      test -d "$as_dir" && break
20173
    done
20174
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20175
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20176
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20177
   { (exit 1); exit 1; }; }; }
20178
      # echo "creating $dirpart/$file"
20179 82 jeremybenn
      echo '# dummy' > "$dirpart/$file"
20180
    done
20181
  done
20182 19 jeremybenn
}
20183 82 jeremybenn
 ;;
20184 19 jeremybenn
20185
 
20186
done # for ac_tag
20187
20188
 
20189
 
20190 101 jeremybenn
_ACEOF
20191 19 jeremybenn
chmod +x $CONFIG_STATUS
20192 101 jeremybenn
ac_clean_files=$ac_clean_files_save
20193 19 jeremybenn
20194
 
20195 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20196 101 jeremybenn
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20197
   { (exit 1); exit 1; }; }
20198
20199 19 jeremybenn
 
20200 82 jeremybenn
 
20201 19 jeremybenn
# config.status does its own redirection, appending to config.log.
20202
# Unfortunately, on DOS this fails, as config.log is still kept open
20203
# by configure, so config.status won't be able to write to it; its
20204
# output is simply discarded.  So we exec the FD to /dev/null,
20205
# effectively closing config.log, so it can be properly (re)opened and
20206
# appended to by config.status.  When coming back to configure, we
20207
# need to make the FD available again.
20208
if test "$no_create" != yes; then
20209
  ac_cs_success=:
20210
  ac_config_status_args=
20211
  test "$silent" = yes &&
20212
    ac_config_status_args="$ac_config_status_args --quiet"
20213
  exec 5>/dev/null
20214
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20215
  exec 5>>config.log
20216
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20217
  # would make configure fail if this is the last instruction.
20218
  $ac_cs_success || { (exit 1); exit 1; }
20219 101 jeremybenn
fi
20220 19 jeremybenn
20221
 
20222 82 jeremybenn
# CONFIG_SUBDIRS section.
20223
#
20224
if test "$no_recursion" != yes; then
20225
20226
 
20227
  # so they do not pile up.
20228
  ac_sub_configure_args=
20229
  ac_prev=
20230
  eval "set x $ac_configure_args"
20231
  shift
20232
  for ac_arg
20233
  do
20234
    if test -n "$ac_prev"; then
20235
      ac_prev=
20236
      continue
20237
    fi
20238
    case $ac_arg in
20239
    -cache-file | --cache-file | --cache-fil | --cache-fi \
20240
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20241
      ac_prev=cache_file ;;
20242
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20243
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20244
    | --c=*)
20245
      ;;
20246
    --config-cache | -C)
20247
      ;;
20248
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20249
      ac_prev=srcdir ;;
20250
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20251
      ;;
20252
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20253
      ac_prev=prefix ;;
20254
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20255
      ;;
20256
    --disable-option-checking)
20257
      ;;
20258
    *)
20259
      case $ac_arg in
20260
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20261
      esac
20262
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20263 101 jeremybenn
    esac
20264 82 jeremybenn
  done
20265
20266
 
20267
  # in subdir configurations.
20268
  ac_arg="--prefix=$prefix"
20269
  case $ac_arg in
20270
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20271
  esac
20272
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20273
20274
 
20275
  if test "$silent" = yes; then
20276
    ac_sub_configure_args="--silent $ac_sub_configure_args"
20277
  fi
20278
20279
 
20280
  # different subdirs can have different --enable and --with options.
20281
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
20282
20283
 
20284
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20285
20286
 
20287
    # parts of a large source tree are present.
20288
    test -d "$srcdir/$ac_dir" || continue
20289
20290
 
20291
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
20292 101 jeremybenn
    $as_echo "$ac_msg" >&6
20293 82 jeremybenn
    { as_dir="$ac_dir"
20294 101 jeremybenn
  case $as_dir in #(
20295
  -*) as_dir=./$as_dir;;
20296
  esac
20297
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20298
    as_dirs=
20299
    while :; do
20300
      case $as_dir in #(
20301
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20302
      *) as_qdir=$as_dir;;
20303
      esac
20304
      as_dirs="'$as_qdir' $as_dirs"
20305
      as_dir=`$as_dirname -- "$as_dir" ||
20306
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20307
         X"$as_dir" : 'X\(//\)[^/]' \| \
20308
         X"$as_dir" : 'X\(//\)$' \| \
20309
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20310
$as_echo X"$as_dir" |
20311
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20312
            s//\1/
20313
            q
20314
          }
20315
          /^X\(\/\/\)[^/].*/{
20316
            s//\1/
20317
            q
20318
          }
20319
          /^X\(\/\/\)$/{
20320
            s//\1/
20321
            q
20322
          }
20323
          /^X\(\/\).*/{
20324
            s//\1/
20325
            q
20326
          }
20327
          s/.*/./; q'`
20328
      test -d "$as_dir" && break
20329
    done
20330
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20331
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20332
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20333
   { (exit 1); exit 1; }; }; }
20334
    ac_builddir=.
20335 82 jeremybenn
20336
 
20337
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20338
*)
20339
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20340
  # A ".." for each directory in $ac_dir_suffix.
20341
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20342
  case $ac_top_builddir_sub in
20343
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20344
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20345
  esac ;;
20346
esac
20347
ac_abs_top_builddir=$ac_pwd
20348
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20349
# for backward compatibility:
20350
ac_top_builddir=$ac_top_build_prefix
20351
20352
 
20353
  .)  # We are building in place.
20354
    ac_srcdir=.
20355
    ac_top_srcdir=$ac_top_builddir_sub
20356
    ac_abs_top_srcdir=$ac_pwd ;;
20357
  [\\/]* | ?:[\\/]* )  # Absolute name.
20358
    ac_srcdir=$srcdir$ac_dir_suffix;
20359
    ac_top_srcdir=$srcdir
20360
    ac_abs_top_srcdir=$srcdir ;;
20361
  *) # Relative name.
20362
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20363
    ac_top_srcdir=$ac_top_build_prefix$srcdir
20364
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20365
esac
20366
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20367
20368
 
20369
 
20370
20371
 
20372
    if test -f "$ac_srcdir/configure.gnu"; then
20373
      ac_sub_configure=$ac_srcdir/configure.gnu
20374
    elif test -f "$ac_srcdir/configure"; then
20375
      ac_sub_configure=$ac_srcdir/configure
20376
    elif test -f "$ac_srcdir/configure.in"; then
20377
      # This should be Cygnus configure.
20378
      ac_sub_configure=$ac_aux_dir/configure
20379
    else
20380
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20381 101 jeremybenn
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20382 82 jeremybenn
      ac_sub_configure=
20383
    fi
20384
20385
 
20386
    if test -n "$ac_sub_configure"; then
20387
      # Make the cache file name correct relative to the subdirectory.
20388
      case $cache_file in
20389
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20390
      *) # Relative name.
20391
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20392
      esac
20393
20394
 
20395 101 jeremybenn
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20396 82 jeremybenn
      # The eval makes quoting arguments work.
20397
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20398
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20399
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20400 101 jeremybenn
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20401
   { (exit 1); exit 1; }; }
20402
    fi
20403 82 jeremybenn
20404
 
20405
  done
20406
fi
20407
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20408
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20409 101 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20410 82 jeremybenn
fi
20411
20412
 

powered by: WebSVN 2.1.0

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