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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 122 jeremybenn
# From configure.ac Id: configure.ac 1039 2010-06-14 17:57:40Z jeremy  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 123 jeremybenn
# Generated by GNU Autoconf 2.63 for or1ksim 2010-06-15.
5 19 jeremybenn
#
6
# Report bugs to .
7
#
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 121 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 121 jeremybenn
## --------------------- ##
33
## M4sh Initialization.  ##
34
## --------------------- ##
35 19 jeremybenn
 
36
# Be more Bourne compatible
37
DUALCASE=1; export DUALCASE # for MKS sh
38 121 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 121 jeremybenn
  case `(set -o) 2>/dev/null` in
47
  *posix*) set -o posix ;;
48 19 jeremybenn
esac
49 121 jeremybenn
 
50 19 jeremybenn
fi
51
 
52
 
53 121 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 121 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 121 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 121 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 121 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 121 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 121 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 121 jeremybenn
  { (exit 1); exit 1; }
141 19 jeremybenn
fi
142
 
143 121 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 121 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 121 jeremybenn
$as_unset CDPATH
194 19 jeremybenn
 
195 121 jeremybenn
 
196 19 jeremybenn
if test "x$CONFIG_SHELL" = x; then
197 121 jeremybenn
  if (eval ":") 2>/dev/null; then
198
  as_have_required=yes
199 19 jeremybenn
else
200 121 jeremybenn
  as_have_required=no
201 19 jeremybenn
fi
202
 
203 121 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 121 jeremybenn
if as_func_success; then
222
  :
223
else
224
  exitcode=1
225
  echo as_func_success failed.
226
fi
227 19 jeremybenn
 
228 121 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 121 jeremybenn
  exitcode=1
237
  echo as_func_ret_success failed.
238 19 jeremybenn
fi
239 121 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 121 jeremybenn
  exitcode=1
249
  echo positional parameters were not saved.
250 19 jeremybenn
fi
251
 
252 121 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 121 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 121 jeremybenn
  case $as_dir in
269 19 jeremybenn
         /*)
270
           for as_base in sh bash ksh sh5; do
271 121 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 121 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 121 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 121 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 121 jeremybenn
 
343
if as_func_failure; then
344
  exitcode=1
345
  echo as_func_failure succeeded.
346 19 jeremybenn
fi
347
 
348 121 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 121 jeremybenn
if as_func_ret_failure; then
356
  exitcode=1
357
  echo as_func_ret_failure succeeded.
358
fi
359 19 jeremybenn
 
360 121 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 121 jeremybenn
test $exitcode = 0) || { (exit 1); exit 1; }
368 19 jeremybenn
 
369 121 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 121 jeremybenn
_ASEOF
376
}; then
377
  break
378
fi
379 19 jeremybenn
 
380 121 jeremybenn
fi
381 19 jeremybenn
 
382 121 jeremybenn
      done
383 19 jeremybenn
 
384 121 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 121 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 121 jeremybenn
  exitcode=1
429
  echo as_func_success failed.
430 19 jeremybenn
fi
431
 
432 121 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 121 jeremybenn
  exitcode=1
441
  echo as_func_ret_success failed.
442 19 jeremybenn
fi
443
 
444 121 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 121 jeremybenn
  exitcode=1
453
  echo positional parameters were not saved.
454 19 jeremybenn
fi
455
 
456 121 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 121 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 121 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 121 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 121 jeremybenn
case `echo -n x` in
517 19 jeremybenn
-n*)
518 121 jeremybenn
  case `echo 'x\c'` in
519 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
520 121 jeremybenn
  *)   ECHO_C='\c';;
521 19 jeremybenn
  esac;;
522
*)
523
  ECHO_N='-n';;
524
esac
525 121 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 121 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 121 jeremybenn
        case $1 in
580 82 jeremybenn
        -*)set "./$1";;
581 19 jeremybenn
        esac;
582 121 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 121 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 121 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 121 jeremybenn
SHELL=${CONFIG_SHELL-/bin/sh}
765 19 jeremybenn
 
766
# Identity of this package.
767
PACKAGE_NAME='or1ksim'
768
PACKAGE_TARNAME='or1ksim'
769 123 jeremybenn
PACKAGE_VERSION='2010-06-15'
770
PACKAGE_STRING='or1ksim 2010-06-15'
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_debug
967
'
968 19 jeremybenn
      ac_precious_vars='build_alias
969
host_alias
970
target_alias
971
CC
972
CFLAGS
973
LDFLAGS
974
LIBS
975
CPPFLAGS
976
CPP
977 82 jeremybenn
CCAS
978
CCASFLAGS'
979 90 jeremybenn
ac_subdirs_all='testsuite/test-code-or1k'
980 19 jeremybenn
 
981
# Initialize some variables set by options.
982
ac_init_help=
983
ac_init_version=false
984 82 jeremybenn
ac_unrecognized_opts=
985
ac_unrecognized_sep=
986 19 jeremybenn
# The variables have the same names as the options, with
987
# dashes changed to underlines.
988
cache_file=/dev/null
989
exec_prefix=NONE
990
no_create=
991
no_recursion=
992
prefix=NONE
993
program_prefix=NONE
994
program_suffix=NONE
995
program_transform_name=s,x,x,
996
silent=
997
site=
998
srcdir=
999
verbose=
1000
x_includes=NONE
1001
x_libraries=NONE
1002
 
1003
# Installation directory options.
1004
# These are left unexpanded so users can "make install exec_prefix=/foo"
1005
# and all the variables that are supposed to be based on exec_prefix
1006
# by default will actually change.
1007
# Use braces instead of parens because sh, perl, etc. also accept them.
1008
# (The list follows the same order as the GNU Coding Standards.)
1009
bindir='${exec_prefix}/bin'
1010
sbindir='${exec_prefix}/sbin'
1011
libexecdir='${exec_prefix}/libexec'
1012
datarootdir='${prefix}/share'
1013
datadir='${datarootdir}'
1014
sysconfdir='${prefix}/etc'
1015
sharedstatedir='${prefix}/com'
1016
localstatedir='${prefix}/var'
1017
includedir='${prefix}/include'
1018
oldincludedir='/usr/include'
1019
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1020
infodir='${datarootdir}/info'
1021
htmldir='${docdir}'
1022
dvidir='${docdir}'
1023
pdfdir='${docdir}'
1024
psdir='${docdir}'
1025
libdir='${exec_prefix}/lib'
1026
localedir='${datarootdir}/locale'
1027
mandir='${datarootdir}/man'
1028
 
1029
ac_prev=
1030
ac_dashdash=
1031
for ac_option
1032
do
1033
  # If the previous option needs an argument, assign it.
1034
  if test -n "$ac_prev"; then
1035
    eval $ac_prev=\$ac_option
1036
    ac_prev=
1037
    continue
1038
  fi
1039
 
1040
  case $ac_option in
1041
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1042
  *)    ac_optarg=yes ;;
1043
  esac
1044
 
1045
  # Accept the important Cygnus configure options, so we can diagnose typos.
1046
 
1047
  case $ac_dashdash$ac_option in
1048
  --)
1049
    ac_dashdash=yes ;;
1050
 
1051
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1052
    ac_prev=bindir ;;
1053
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1054
    bindir=$ac_optarg ;;
1055
 
1056
  -build | --build | --buil | --bui | --bu)
1057
    ac_prev=build_alias ;;
1058
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1059
    build_alias=$ac_optarg ;;
1060
 
1061
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1062
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1063
    ac_prev=cache_file ;;
1064
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1065
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1066
    cache_file=$ac_optarg ;;
1067
 
1068
  --config-cache | -C)
1069
    cache_file=config.cache ;;
1070
 
1071
  -datadir | --datadir | --datadi | --datad)
1072
    ac_prev=datadir ;;
1073
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1074
    datadir=$ac_optarg ;;
1075
 
1076
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1077
  | --dataroo | --dataro | --datar)
1078
    ac_prev=datarootdir ;;
1079
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1080
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1081
    datarootdir=$ac_optarg ;;
1082
 
1083
  -disable-* | --disable-*)
1084 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1085 19 jeremybenn
    # Reject names that are not valid shell variable names.
1086 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 121 jeremybenn
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1088
   { (exit 1); exit 1; }; }
1089 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1090
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091
    case $ac_user_opts in
1092
      *"
1093
"enable_$ac_useropt"
1094
"*) ;;
1095
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1096
         ac_unrecognized_sep=', ';;
1097
    esac
1098
    eval enable_$ac_useropt=no ;;
1099 19 jeremybenn
 
1100
  -docdir | --docdir | --docdi | --doc | --do)
1101
    ac_prev=docdir ;;
1102
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1103
    docdir=$ac_optarg ;;
1104
 
1105
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1106
    ac_prev=dvidir ;;
1107
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1108
    dvidir=$ac_optarg ;;
1109
 
1110
  -enable-* | --enable-*)
1111 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1112 19 jeremybenn
    # Reject names that are not valid shell variable names.
1113 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 121 jeremybenn
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1115
   { (exit 1); exit 1; }; }
1116 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1117
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118
    case $ac_user_opts in
1119
      *"
1120
"enable_$ac_useropt"
1121
"*) ;;
1122
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1123
         ac_unrecognized_sep=', ';;
1124
    esac
1125
    eval enable_$ac_useropt=\$ac_optarg ;;
1126 19 jeremybenn
 
1127
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1128
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1129
  | --exec | --exe | --ex)
1130
    ac_prev=exec_prefix ;;
1131
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1132
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1133
  | --exec=* | --exe=* | --ex=*)
1134
    exec_prefix=$ac_optarg ;;
1135
 
1136
  -gas | --gas | --ga | --g)
1137
    # Obsolete; use --with-gas.
1138
    with_gas=yes ;;
1139
 
1140
  -help | --help | --hel | --he | -h)
1141
    ac_init_help=long ;;
1142
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1143
    ac_init_help=recursive ;;
1144
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1145
    ac_init_help=short ;;
1146
 
1147
  -host | --host | --hos | --ho)
1148
    ac_prev=host_alias ;;
1149
  -host=* | --host=* | --hos=* | --ho=*)
1150
    host_alias=$ac_optarg ;;
1151
 
1152
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1153
    ac_prev=htmldir ;;
1154
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1155
  | --ht=*)
1156
    htmldir=$ac_optarg ;;
1157
 
1158
  -includedir | --includedir | --includedi | --included | --include \
1159
  | --includ | --inclu | --incl | --inc)
1160
    ac_prev=includedir ;;
1161
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1162
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1163
    includedir=$ac_optarg ;;
1164
 
1165
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1166
    ac_prev=infodir ;;
1167
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1168
    infodir=$ac_optarg ;;
1169
 
1170
  -libdir | --libdir | --libdi | --libd)
1171
    ac_prev=libdir ;;
1172
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1173
    libdir=$ac_optarg ;;
1174
 
1175
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1176
  | --libexe | --libex | --libe)
1177
    ac_prev=libexecdir ;;
1178
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1179
  | --libexe=* | --libex=* | --libe=*)
1180
    libexecdir=$ac_optarg ;;
1181
 
1182
  -localedir | --localedir | --localedi | --localed | --locale)
1183
    ac_prev=localedir ;;
1184
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1185
    localedir=$ac_optarg ;;
1186
 
1187
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1188
  | --localstate | --localstat | --localsta | --localst | --locals)
1189
    ac_prev=localstatedir ;;
1190
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1191
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1192
    localstatedir=$ac_optarg ;;
1193
 
1194
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1195
    ac_prev=mandir ;;
1196
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1197
    mandir=$ac_optarg ;;
1198
 
1199
  -nfp | --nfp | --nf)
1200
    # Obsolete; use --without-fp.
1201
    with_fp=no ;;
1202
 
1203
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1204
  | --no-cr | --no-c | -n)
1205
    no_create=yes ;;
1206
 
1207
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1208
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1209
    no_recursion=yes ;;
1210
 
1211
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1212
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1213
  | --oldin | --oldi | --old | --ol | --o)
1214
    ac_prev=oldincludedir ;;
1215
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1216
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1217
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1218
    oldincludedir=$ac_optarg ;;
1219
 
1220
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1221
    ac_prev=prefix ;;
1222
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1223
    prefix=$ac_optarg ;;
1224
 
1225
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1226
  | --program-pre | --program-pr | --program-p)
1227
    ac_prev=program_prefix ;;
1228
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1229
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1230
    program_prefix=$ac_optarg ;;
1231
 
1232
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1233
  | --program-suf | --program-su | --program-s)
1234
    ac_prev=program_suffix ;;
1235
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1236
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1237
    program_suffix=$ac_optarg ;;
1238
 
1239
  -program-transform-name | --program-transform-name \
1240
  | --program-transform-nam | --program-transform-na \
1241
  | --program-transform-n | --program-transform- \
1242
  | --program-transform | --program-transfor \
1243
  | --program-transfo | --program-transf \
1244
  | --program-trans | --program-tran \
1245
  | --progr-tra | --program-tr | --program-t)
1246
    ac_prev=program_transform_name ;;
1247
  -program-transform-name=* | --program-transform-name=* \
1248
  | --program-transform-nam=* | --program-transform-na=* \
1249
  | --program-transform-n=* | --program-transform-=* \
1250
  | --program-transform=* | --program-transfor=* \
1251
  | --program-transfo=* | --program-transf=* \
1252
  | --program-trans=* | --program-tran=* \
1253
  | --progr-tra=* | --program-tr=* | --program-t=*)
1254
    program_transform_name=$ac_optarg ;;
1255
 
1256
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1257
    ac_prev=pdfdir ;;
1258
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1259
    pdfdir=$ac_optarg ;;
1260
 
1261
  -psdir | --psdir | --psdi | --psd | --ps)
1262
    ac_prev=psdir ;;
1263
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1264
    psdir=$ac_optarg ;;
1265
 
1266
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1267
  | -silent | --silent | --silen | --sile | --sil)
1268
    silent=yes ;;
1269
 
1270
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1271
    ac_prev=sbindir ;;
1272
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1273
  | --sbi=* | --sb=*)
1274
    sbindir=$ac_optarg ;;
1275
 
1276
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1277
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1278
  | --sharedst | --shareds | --shared | --share | --shar \
1279
  | --sha | --sh)
1280
    ac_prev=sharedstatedir ;;
1281
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1282
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1283
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1284
  | --sha=* | --sh=*)
1285
    sharedstatedir=$ac_optarg ;;
1286
 
1287
  -site | --site | --sit)
1288
    ac_prev=site ;;
1289
  -site=* | --site=* | --sit=*)
1290
    site=$ac_optarg ;;
1291
 
1292
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1293
    ac_prev=srcdir ;;
1294
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1295
    srcdir=$ac_optarg ;;
1296
 
1297
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1298
  | --syscon | --sysco | --sysc | --sys | --sy)
1299
    ac_prev=sysconfdir ;;
1300
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1301
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1302
    sysconfdir=$ac_optarg ;;
1303
 
1304
  -target | --target | --targe | --targ | --tar | --ta | --t)
1305
    ac_prev=target_alias ;;
1306
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1307
    target_alias=$ac_optarg ;;
1308
 
1309
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1310
    verbose=yes ;;
1311
 
1312
  -version | --version | --versio | --versi | --vers | -V)
1313
    ac_init_version=: ;;
1314
 
1315
  -with-* | --with-*)
1316 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1317 19 jeremybenn
    # Reject names that are not valid shell variable names.
1318 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319 121 jeremybenn
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1320
   { (exit 1); exit 1; }; }
1321 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1322
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323
    case $ac_user_opts in
1324
      *"
1325
"with_$ac_useropt"
1326
"*) ;;
1327
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1328
         ac_unrecognized_sep=', ';;
1329
    esac
1330
    eval with_$ac_useropt=\$ac_optarg ;;
1331 19 jeremybenn
 
1332
  -without-* | --without-*)
1333 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1334 19 jeremybenn
    # Reject names that are not valid shell variable names.
1335 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1336 121 jeremybenn
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1337
   { (exit 1); exit 1; }; }
1338 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1339
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340
    case $ac_user_opts in
1341
      *"
1342
"with_$ac_useropt"
1343
"*) ;;
1344
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1345
         ac_unrecognized_sep=', ';;
1346
    esac
1347
    eval with_$ac_useropt=no ;;
1348 19 jeremybenn
 
1349
  --x)
1350
    # Obsolete; use --with-x.
1351
    with_x=yes ;;
1352
 
1353
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1354
  | --x-incl | --x-inc | --x-in | --x-i)
1355
    ac_prev=x_includes ;;
1356
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1357
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1358
    x_includes=$ac_optarg ;;
1359
 
1360
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1361
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1362
    ac_prev=x_libraries ;;
1363
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1364
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1365
    x_libraries=$ac_optarg ;;
1366
 
1367 121 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1368
Try \`$0 --help' for more information." >&2
1369
   { (exit 1); exit 1; }; }
1370 19 jeremybenn
    ;;
1371
 
1372
  *=*)
1373
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1374
    # Reject names that are not valid shell variable names.
1375 121 jeremybenn
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1376
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1377
   { (exit 1); exit 1; }; }
1378 19 jeremybenn
    eval $ac_envvar=\$ac_optarg
1379
    export $ac_envvar ;;
1380
 
1381
  *)
1382
    # FIXME: should be removed in autoconf 3.0.
1383 82 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1384 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1385 82 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1386 19 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1387
    ;;
1388
 
1389
  esac
1390
done
1391
 
1392
if test -n "$ac_prev"; then
1393
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1394 121 jeremybenn
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1395
   { (exit 1); exit 1; }; }
1396 19 jeremybenn
fi
1397
 
1398 82 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1399
  case $enable_option_checking in
1400
    no) ;;
1401 121 jeremybenn
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1402
   { (exit 1); exit 1; }; } ;;
1403 82 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1404
  esac
1405
fi
1406
 
1407
# Check all directory arguments for consistency.
1408 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1409
                datadir sysconfdir sharedstatedir localstatedir includedir \
1410
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1411
                libdir localedir mandir
1412
do
1413
  eval ac_val=\$$ac_var
1414 82 jeremybenn
  # Remove trailing slashes.
1415 19 jeremybenn
  case $ac_val in
1416 82 jeremybenn
    */ )
1417
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1418
      eval $ac_var=\$ac_val;;
1419
  esac
1420
  # Be sure to have absolute directory names.
1421
  case $ac_val in
1422 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1423
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1424
  esac
1425 121 jeremybenn
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1426
   { (exit 1); exit 1; }; }
1427 19 jeremybenn
done
1428
 
1429
# There might be people who depend on the old broken behavior: `$host'
1430
# used to hold the argument of --host etc.
1431
# FIXME: To remove some day.
1432
build=$build_alias
1433
host=$host_alias
1434
target=$target_alias
1435
 
1436
# FIXME: To remove some day.
1437
if test "x$host_alias" != x; then
1438
  if test "x$build_alias" = x; then
1439
    cross_compiling=maybe
1440 82 jeremybenn
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1441 19 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1442
  elif test "x$build_alias" != "x$host_alias"; then
1443
    cross_compiling=yes
1444
  fi
1445
fi
1446
 
1447
ac_tool_prefix=
1448
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1449
 
1450
test "$silent" = yes && exec 6>/dev/null
1451
 
1452
 
1453
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1454
ac_ls_di=`ls -di .` &&
1455
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1456 121 jeremybenn
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1457
   { (exit 1); exit 1; }; }
1458 19 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1459 121 jeremybenn
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1460
   { (exit 1); exit 1; }; }
1461 19 jeremybenn
 
1462
 
1463
# Find the source files, if location was not specified.
1464
if test -z "$srcdir"; then
1465
  ac_srcdir_defaulted=yes
1466
  # Try the directory containing this script, then the parent directory.
1467 82 jeremybenn
  ac_confdir=`$as_dirname -- "$as_myself" ||
1468
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1469
         X"$as_myself" : 'X\(//\)[^/]' \| \
1470
         X"$as_myself" : 'X\(//\)$' \| \
1471
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1472
$as_echo X"$as_myself" |
1473 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474
            s//\1/
1475
            q
1476
          }
1477
          /^X\(\/\/\)[^/].*/{
1478
            s//\1/
1479
            q
1480
          }
1481
          /^X\(\/\/\)$/{
1482
            s//\1/
1483
            q
1484
          }
1485
          /^X\(\/\).*/{
1486
            s//\1/
1487
            q
1488
          }
1489
          s/.*/./; q'`
1490
  srcdir=$ac_confdir
1491
  if test ! -r "$srcdir/$ac_unique_file"; then
1492
    srcdir=..
1493
  fi
1494
else
1495
  ac_srcdir_defaulted=no
1496
fi
1497
if test ! -r "$srcdir/$ac_unique_file"; then
1498
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1499 121 jeremybenn
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1500
   { (exit 1); exit 1; }; }
1501 19 jeremybenn
fi
1502
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1503
ac_abs_confdir=`(
1504 121 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1505
   { (exit 1); exit 1; }; }
1506 19 jeremybenn
        pwd)`
1507
# When building in place, set srcdir=.
1508
if test "$ac_abs_confdir" = "$ac_pwd"; then
1509
  srcdir=.
1510
fi
1511
# Remove unnecessary trailing slashes from srcdir.
1512
# Double slashes in file names in object file debugging info
1513
# mess up M-x gdb in Emacs.
1514
case $srcdir in
1515
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1516
esac
1517
for ac_var in $ac_precious_vars; do
1518
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1519
  eval ac_env_${ac_var}_value=\$${ac_var}
1520
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1521
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1522
done
1523
 
1524
#
1525
# Report the --help message.
1526
#
1527
if test "$ac_init_help" = "long"; then
1528
  # Omit some internal or obsolete options to make the list less imposing.
1529
  # This message is too long to be a string in the A/UX 3.1 sh.
1530
  cat <<_ACEOF
1531 123 jeremybenn
\`configure' configures or1ksim 2010-06-15 to adapt to many kinds of systems.
1532 19 jeremybenn
 
1533
Usage: $0 [OPTION]... [VAR=VALUE]...
1534
 
1535
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1536
VAR=VALUE.  See below for descriptions of some of the useful variables.
1537
 
1538
Defaults for the options are specified in brackets.
1539
 
1540
Configuration:
1541
  -h, --help              display this help and exit
1542
      --help=short        display options specific to this package
1543
      --help=recursive    display the short help of all the included packages
1544
  -V, --version           display version information and exit
1545
  -q, --quiet, --silent   do not print \`checking...' messages
1546
      --cache-file=FILE   cache test results in FILE [disabled]
1547
  -C, --config-cache      alias for \`--cache-file=config.cache'
1548
  -n, --no-create         do not create output files
1549
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1550
 
1551
Installation directories:
1552
  --prefix=PREFIX         install architecture-independent files in PREFIX
1553 82 jeremybenn
                          [$ac_default_prefix]
1554 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1555 82 jeremybenn
                          [PREFIX]
1556 19 jeremybenn
 
1557
By default, \`make install' will install all the files in
1558
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1559
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1560
for instance \`--prefix=\$HOME'.
1561
 
1562
For better control, use the options below.
1563
 
1564
Fine tuning of the installation directories:
1565 82 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1566
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1567
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1568
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1569
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1570
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1571
  --libdir=DIR            object code libraries [EPREFIX/lib]
1572
  --includedir=DIR        C header files [PREFIX/include]
1573
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1574
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1575
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1576
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1577
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1578
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1579
  --docdir=DIR            documentation root [DATAROOTDIR/doc/or1ksim]
1580
  --htmldir=DIR           html documentation [DOCDIR]
1581
  --dvidir=DIR            dvi documentation [DOCDIR]
1582
  --pdfdir=DIR            pdf documentation [DOCDIR]
1583
  --psdir=DIR             ps documentation [DOCDIR]
1584 19 jeremybenn
_ACEOF
1585
 
1586
  cat <<\_ACEOF
1587
 
1588
Program names:
1589
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1590
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1591
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1592
 
1593
System types:
1594
  --build=BUILD     configure for building on BUILD [guessed]
1595
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1596
  --target=TARGET   configure for building compilers for TARGET [HOST]
1597
_ACEOF
1598
fi
1599
 
1600
if test -n "$ac_init_help"; then
1601
  case $ac_init_help in
1602 123 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 2010-06-15:";;
1603 19 jeremybenn
   esac
1604
  cat <<\_ACEOF
1605
 
1606
Optional Features:
1607 82 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1608 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1609
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1610
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1611
  --enable-static[=PKGS]  build static libraries [default=yes]
1612
  --enable-fast-install[=PKGS]
1613
                          optimize for fast installation [default=yes]
1614
  --disable-libtool-lock  avoid locking (might break parallel builds)
1615
  --disable-dependency-tracking  speeds up one-time build
1616
  --enable-dependency-tracking   do not reject slow dependency extractors
1617
  --enable-profiling      generate profiling code
1618
  --enable-execution Execution style to use (simple/complex/dynamic)
1619
  --enable-ethphy    compiles sim with ethernet phy support
1620
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1621
  --enable-debug          enable library debugging symbols
1622
 
1623
Optional Packages:
1624
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1625
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1626
  --with-pic              try to use only PIC/non-PIC objects [default=use
1627
                          both]
1628 82 jeremybenn
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1629 19 jeremybenn
 
1630
Some influential environment variables:
1631
  CC          C compiler command
1632
  CFLAGS      C compiler flags
1633
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1634
              nonstandard directory 
1635
  LIBS        libraries to pass to the linker, e.g. -l
1636 121 jeremybenn
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1637 19 jeremybenn
              you have headers in a nonstandard directory 
1638
  CPP         C preprocessor
1639 82 jeremybenn
  CCAS        assembler compiler command (defaults to CC)
1640
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1641 19 jeremybenn
 
1642
Use these variables to override the choices made by `configure' or to help
1643
it to find libraries and programs with nonstandard names/locations.
1644
 
1645
Report bugs to .
1646
_ACEOF
1647
ac_status=$?
1648
fi
1649
 
1650
if test "$ac_init_help" = "recursive"; then
1651
  # If there are subdirs, report their specific --help.
1652
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1653 82 jeremybenn
    test -d "$ac_dir" ||
1654
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1655
      continue
1656 19 jeremybenn
    ac_builddir=.
1657
 
1658
case "$ac_dir" in
1659
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660
*)
1661 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1662 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1663 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1664 19 jeremybenn
  case $ac_top_builddir_sub in
1665
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667
  esac ;;
1668
esac
1669
ac_abs_top_builddir=$ac_pwd
1670
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671
# for backward compatibility:
1672
ac_top_builddir=$ac_top_build_prefix
1673
 
1674
case $srcdir in
1675
  .)  # We are building in place.
1676
    ac_srcdir=.
1677
    ac_top_srcdir=$ac_top_builddir_sub
1678
    ac_abs_top_srcdir=$ac_pwd ;;
1679
  [\\/]* | ?:[\\/]* )  # Absolute name.
1680
    ac_srcdir=$srcdir$ac_dir_suffix;
1681
    ac_top_srcdir=$srcdir
1682
    ac_abs_top_srcdir=$srcdir ;;
1683
  *) # Relative name.
1684
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1686
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1687
esac
1688
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1689
 
1690
    cd "$ac_dir" || { ac_status=$?; continue; }
1691
    # Check for guested configure.
1692
    if test -f "$ac_srcdir/configure.gnu"; then
1693
      echo &&
1694
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695
    elif test -f "$ac_srcdir/configure"; then
1696
      echo &&
1697
      $SHELL "$ac_srcdir/configure" --help=recursive
1698
    else
1699 82 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700 19 jeremybenn
    fi || ac_status=$?
1701
    cd "$ac_pwd" || { ac_status=$?; break; }
1702
  done
1703
fi
1704
 
1705
test -n "$ac_init_help" && exit $ac_status
1706
if $ac_init_version; then
1707
  cat <<\_ACEOF
1708 123 jeremybenn
or1ksim configure 2010-06-15
1709 121 jeremybenn
generated by GNU Autoconf 2.63
1710 19 jeremybenn
 
1711 121 jeremybenn
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1712
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1713 19 jeremybenn
This configure script is free software; the Free Software Foundation
1714
gives unlimited permission to copy, distribute and modify it.
1715 82 jeremybenn
 
1716
Copyright (C) 1999-2008 OpenCores
1717
Copyright (C) 2008, 2010 Embecosm Limited
1718
 
1719
Contributor Jeremy Bennett 
1720
 
1721
This file is part of OpenRISC 1000 Architectural Simulator.
1722
 
1723
This program is free software; you can redistribute it and/or modify it
1724
under the terms of the GNU General Public License as published by the Free
1725
Software Foundation; either version 3 of the License, or (at your option)
1726
any later version.
1727
 
1728
This program is distributed in the hope that it will be useful, but WITHOUT
1729
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1730
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1731
more details.
1732
 
1733
You should have received a copy of the GNU General Public License along
1734
with this program.  If not, see .
1735 19 jeremybenn
_ACEOF
1736
  exit
1737
fi
1738
cat >config.log <<_ACEOF
1739
This file contains any messages produced by compilers while
1740
running configure, to aid debugging if configure makes a mistake.
1741
 
1742 123 jeremybenn
It was created by or1ksim $as_me 2010-06-15, which was
1743 121 jeremybenn
generated by GNU Autoconf 2.63.  Invocation command line was
1744 19 jeremybenn
 
1745
  $ $0 $@
1746
 
1747
_ACEOF
1748
exec 5>>config.log
1749
{
1750
cat <<_ASUNAME
1751
## --------- ##
1752
## Platform. ##
1753
## --------- ##
1754
 
1755
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1756
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1757
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1758
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1759
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1760
 
1761
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1762
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1763
 
1764
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1765
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1766
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1767
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1768
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1769
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1770
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1771
 
1772
_ASUNAME
1773
 
1774
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775
for as_dir in $PATH
1776
do
1777
  IFS=$as_save_IFS
1778
  test -z "$as_dir" && as_dir=.
1779 121 jeremybenn
  $as_echo "PATH: $as_dir"
1780
done
1781 19 jeremybenn
IFS=$as_save_IFS
1782
 
1783
} >&5
1784
 
1785
cat >&5 <<_ACEOF
1786
 
1787
 
1788
## ----------- ##
1789
## Core tests. ##
1790
## ----------- ##
1791
 
1792
_ACEOF
1793
 
1794
 
1795
# Keep a trace of the command line.
1796
# Strip out --no-create and --no-recursion so they do not pile up.
1797
# Strip out --silent because we don't want to record it for future runs.
1798
# Also quote any args containing shell meta-characters.
1799
# Make two passes to allow for proper duplicate-argument suppression.
1800
ac_configure_args=
1801
ac_configure_args0=
1802
ac_configure_args1=
1803
ac_must_keep_next=false
1804
for ac_pass in 1 2
1805
do
1806
  for ac_arg
1807
  do
1808
    case $ac_arg in
1809
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1810
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1811
    | -silent | --silent | --silen | --sile | --sil)
1812
      continue ;;
1813
    *\'*)
1814 82 jeremybenn
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1815 19 jeremybenn
    esac
1816
    case $ac_pass in
1817 121 jeremybenn
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1818 19 jeremybenn
    2)
1819 121 jeremybenn
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1820 19 jeremybenn
      if test $ac_must_keep_next = true; then
1821
        ac_must_keep_next=false # Got value, back to normal.
1822
      else
1823
        case $ac_arg in
1824
          *=* | --config-cache | -C | -disable-* | --disable-* \
1825
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1826
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1827
          | -with-* | --with-* | -without-* | --without-* | --x)
1828
            case "$ac_configure_args0 " in
1829
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1830
            esac
1831
            ;;
1832
          -* ) ac_must_keep_next=true ;;
1833
        esac
1834
      fi
1835 121 jeremybenn
      ac_configure_args="$ac_configure_args '$ac_arg'"
1836 19 jeremybenn
      ;;
1837
    esac
1838
  done
1839
done
1840 121 jeremybenn
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1841
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1842 19 jeremybenn
 
1843
# When interrupted or exit'd, cleanup temporary files, and complete
1844
# config.log.  We remove comments because anyway the quotes in there
1845
# would cause problems or look ugly.
1846
# WARNING: Use '\'' to represent an apostrophe within the trap.
1847
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1848
trap 'exit_status=$?
1849
  # Save into config.log some information that might help in debugging.
1850
  {
1851
    echo
1852
 
1853
    cat <<\_ASBOX
1854
## ---------------- ##
1855
## Cache variables. ##
1856
## ---------------- ##
1857
_ASBOX
1858
    echo
1859
    # The following way of writing the cache mishandles newlines in values,
1860
(
1861
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1862
    eval ac_val=\$$ac_var
1863
    case $ac_val in #(
1864
    *${as_nl}*)
1865
      case $ac_var in #(
1866 121 jeremybenn
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1867 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1868 19 jeremybenn
      esac
1869
      case $ac_var in #(
1870
      _ | IFS | as_nl) ;; #(
1871 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1872 121 jeremybenn
      *) $as_unset $ac_var ;;
1873 19 jeremybenn
      esac ;;
1874
    esac
1875
  done
1876
  (set) 2>&1 |
1877
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1878
    *${as_nl}ac_space=\ *)
1879
      sed -n \
1880
        "s/'\''/'\''\\\\'\'''\''/g;
1881
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1882
      ;; #(
1883
    *)
1884
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1885
      ;;
1886
    esac |
1887
    sort
1888
)
1889
    echo
1890
 
1891
    cat <<\_ASBOX
1892
## ----------------- ##
1893
## Output variables. ##
1894
## ----------------- ##
1895
_ASBOX
1896
    echo
1897
    for ac_var in $ac_subst_vars
1898
    do
1899
      eval ac_val=\$$ac_var
1900
      case $ac_val in
1901 82 jeremybenn
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1902 19 jeremybenn
      esac
1903 82 jeremybenn
      $as_echo "$ac_var='\''$ac_val'\''"
1904 19 jeremybenn
    done | sort
1905
    echo
1906
 
1907
    if test -n "$ac_subst_files"; then
1908
      cat <<\_ASBOX
1909
## ------------------- ##
1910
## File substitutions. ##
1911
## ------------------- ##
1912
_ASBOX
1913
      echo
1914
      for ac_var in $ac_subst_files
1915
      do
1916
        eval ac_val=\$$ac_var
1917
        case $ac_val in
1918 82 jeremybenn
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1919 19 jeremybenn
        esac
1920 82 jeremybenn
        $as_echo "$ac_var='\''$ac_val'\''"
1921 19 jeremybenn
      done | sort
1922
      echo
1923
    fi
1924
 
1925
    if test -s confdefs.h; then
1926
      cat <<\_ASBOX
1927
## ----------- ##
1928
## confdefs.h. ##
1929
## ----------- ##
1930
_ASBOX
1931
      echo
1932
      cat confdefs.h
1933
      echo
1934
    fi
1935
    test "$ac_signal" != 0 &&
1936 82 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
1937
    $as_echo "$as_me: exit $exit_status"
1938 19 jeremybenn
  } >&5
1939
  rm -f core *.core core.conftest.* &&
1940
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1941
    exit $exit_status
1942
' 0
1943
for ac_signal in 1 2 13 15; do
1944 121 jeremybenn
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1945 19 jeremybenn
done
1946
ac_signal=0
1947
 
1948
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1949
rm -f -r conftest* confdefs.h
1950
 
1951
# Predefined preprocessor variables.
1952
 
1953
cat >>confdefs.h <<_ACEOF
1954
#define PACKAGE_NAME "$PACKAGE_NAME"
1955
_ACEOF
1956
 
1957 121 jeremybenn
 
1958 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1959
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1960
_ACEOF
1961
 
1962 121 jeremybenn
 
1963 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1964
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1965
_ACEOF
1966
 
1967 121 jeremybenn
 
1968 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1969
#define PACKAGE_STRING "$PACKAGE_STRING"
1970
_ACEOF
1971
 
1972 121 jeremybenn
 
1973 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1974
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1975
_ACEOF
1976
 
1977
 
1978
# Let the site file select an alternate cache file if it wants to.
1979 82 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
1980
ac_site_file1=NONE
1981
ac_site_file2=NONE
1982 19 jeremybenn
if test -n "$CONFIG_SITE"; then
1983 82 jeremybenn
  ac_site_file1=$CONFIG_SITE
1984 19 jeremybenn
elif test "x$prefix" != xNONE; then
1985 82 jeremybenn
  ac_site_file1=$prefix/share/config.site
1986
  ac_site_file2=$prefix/etc/config.site
1987 19 jeremybenn
else
1988 82 jeremybenn
  ac_site_file1=$ac_default_prefix/share/config.site
1989
  ac_site_file2=$ac_default_prefix/etc/config.site
1990 19 jeremybenn
fi
1991 82 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1992 19 jeremybenn
do
1993 82 jeremybenn
  test "x$ac_site_file" = xNONE && continue
1994 121 jeremybenn
  if test -r "$ac_site_file"; then
1995
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1996 82 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1997 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
1998
    . "$ac_site_file"
1999
  fi
2000
done
2001
 
2002
if test -r "$cache_file"; then
2003 121 jeremybenn
  # Some versions of bash will fail to source /dev/null (special
2004
  # files actually), so we avoid doing that.
2005
  if test -f "$cache_file"; then
2006
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2007 82 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2008 19 jeremybenn
    case $cache_file in
2009
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2010
      *)                      . "./$cache_file";;
2011
    esac
2012
  fi
2013
else
2014 121 jeremybenn
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2015 82 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2016 19 jeremybenn
  >$cache_file
2017
fi
2018
 
2019
# Check that the precious variables saved in the cache have kept the same
2020
# value.
2021
ac_cache_corrupted=false
2022
for ac_var in $ac_precious_vars; do
2023
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2024
  eval ac_new_set=\$ac_env_${ac_var}_set
2025
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2026
  eval ac_new_val=\$ac_env_${ac_var}_value
2027
  case $ac_old_set,$ac_new_set in
2028
    set,)
2029 121 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2030 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2031 19 jeremybenn
      ac_cache_corrupted=: ;;
2032
    ,set)
2033 121 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2034 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2035 19 jeremybenn
      ac_cache_corrupted=: ;;
2036
    ,);;
2037
    *)
2038
      if test "x$ac_old_val" != "x$ac_new_val"; then
2039 82 jeremybenn
        # differences in whitespace do not lead to failure.
2040
        ac_old_val_w=`echo x $ac_old_val`
2041
        ac_new_val_w=`echo x $ac_new_val`
2042
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2043 121 jeremybenn
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2044 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2045
          ac_cache_corrupted=:
2046
        else
2047 121 jeremybenn
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2048 82 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2049
          eval $ac_var=\$ac_old_val
2050
        fi
2051 121 jeremybenn
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2052 82 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2053 121 jeremybenn
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2054 82 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2055 19 jeremybenn
      fi;;
2056
  esac
2057
  # Pass precious variables to config.status.
2058
  if test "$ac_new_set" = set; then
2059
    case $ac_new_val in
2060 82 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2061 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2062
    esac
2063
    case " $ac_configure_args " in
2064
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2065 121 jeremybenn
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2066 19 jeremybenn
    esac
2067
  fi
2068
done
2069
if $ac_cache_corrupted; then
2070 121 jeremybenn
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2071 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2072 121 jeremybenn
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2073 82 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2074 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2075
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2076
   { (exit 1); exit 1; }; }
2077 19 jeremybenn
fi
2078
 
2079 121 jeremybenn
 
2080
 
2081
 
2082
 
2083
 
2084
 
2085
 
2086
 
2087
 
2088
 
2089
 
2090
 
2091
 
2092
 
2093
 
2094
 
2095
 
2096
 
2097
 
2098
 
2099
 
2100
 
2101
 
2102
 
2103 19 jeremybenn
ac_ext=c
2104
ac_cpp='$CPP $CPPFLAGS'
2105
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2106
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2107
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2108
 
2109
 
2110
 
2111 82 jeremybenn
 
2112 91 jeremybenn
# Generically use extensions such as _GNU_SOURCE if available.
2113 19 jeremybenn
ac_ext=c
2114
ac_cpp='$CPP $CPPFLAGS'
2115
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118
if test -n "$ac_tool_prefix"; then
2119
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2120
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2121 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2122 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2123 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2124 82 jeremybenn
  $as_echo_n "(cached) " >&6
2125 19 jeremybenn
else
2126
  if test -n "$CC"; then
2127
  ac_cv_prog_CC="$CC" # Let the user override the test.
2128
else
2129
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130
for as_dir in $PATH
2131
do
2132
  IFS=$as_save_IFS
2133
  test -z "$as_dir" && as_dir=.
2134 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2135 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2136
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2137 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 19 jeremybenn
    break 2
2139
  fi
2140
done
2141 121 jeremybenn
done
2142 19 jeremybenn
IFS=$as_save_IFS
2143
 
2144
fi
2145
fi
2146
CC=$ac_cv_prog_CC
2147
if test -n "$CC"; then
2148 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2149 82 jeremybenn
$as_echo "$CC" >&6; }
2150 19 jeremybenn
else
2151 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2152 82 jeremybenn
$as_echo "no" >&6; }
2153 19 jeremybenn
fi
2154
 
2155
 
2156
fi
2157
if test -z "$ac_cv_prog_CC"; then
2158
  ac_ct_CC=$CC
2159
  # Extract the first word of "gcc", so it can be a program name with args.
2160
set dummy gcc; ac_word=$2
2161 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2163 121 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2164 82 jeremybenn
  $as_echo_n "(cached) " >&6
2165 19 jeremybenn
else
2166
  if test -n "$ac_ct_CC"; then
2167
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2168
else
2169
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170
for as_dir in $PATH
2171
do
2172
  IFS=$as_save_IFS
2173
  test -z "$as_dir" && as_dir=.
2174 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2175 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2176
    ac_cv_prog_ac_ct_CC="gcc"
2177 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 19 jeremybenn
    break 2
2179
  fi
2180
done
2181 121 jeremybenn
done
2182 19 jeremybenn
IFS=$as_save_IFS
2183
 
2184
fi
2185
fi
2186
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2187
if test -n "$ac_ct_CC"; then
2188 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2189 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2190 19 jeremybenn
else
2191 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2192 82 jeremybenn
$as_echo "no" >&6; }
2193 19 jeremybenn
fi
2194
 
2195
  if test "x$ac_ct_CC" = x; then
2196
    CC=""
2197
  else
2198
    case $cross_compiling:$ac_tool_warned in
2199
yes:)
2200 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2201 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2202 19 jeremybenn
ac_tool_warned=yes ;;
2203
esac
2204
    CC=$ac_ct_CC
2205
  fi
2206
else
2207
  CC="$ac_cv_prog_CC"
2208
fi
2209
 
2210
if test -z "$CC"; then
2211
          if test -n "$ac_tool_prefix"; then
2212
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2213
set dummy ${ac_tool_prefix}cc; ac_word=$2
2214 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2216 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2217 82 jeremybenn
  $as_echo_n "(cached) " >&6
2218 19 jeremybenn
else
2219
  if test -n "$CC"; then
2220
  ac_cv_prog_CC="$CC" # Let the user override the test.
2221
else
2222
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223
for as_dir in $PATH
2224
do
2225
  IFS=$as_save_IFS
2226
  test -z "$as_dir" && as_dir=.
2227 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2228 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2229
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2230 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 19 jeremybenn
    break 2
2232
  fi
2233
done
2234 121 jeremybenn
done
2235 19 jeremybenn
IFS=$as_save_IFS
2236
 
2237
fi
2238
fi
2239
CC=$ac_cv_prog_CC
2240
if test -n "$CC"; then
2241 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2242 82 jeremybenn
$as_echo "$CC" >&6; }
2243 19 jeremybenn
else
2244 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2245 82 jeremybenn
$as_echo "no" >&6; }
2246 19 jeremybenn
fi
2247
 
2248
 
2249
  fi
2250
fi
2251
if test -z "$CC"; then
2252
  # Extract the first word of "cc", so it can be a program name with args.
2253
set dummy cc; ac_word=$2
2254 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2256 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2257 82 jeremybenn
  $as_echo_n "(cached) " >&6
2258 19 jeremybenn
else
2259
  if test -n "$CC"; then
2260
  ac_cv_prog_CC="$CC" # Let the user override the test.
2261
else
2262
  ac_prog_rejected=no
2263
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264
for as_dir in $PATH
2265
do
2266
  IFS=$as_save_IFS
2267
  test -z "$as_dir" && as_dir=.
2268 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2269 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2271
       ac_prog_rejected=yes
2272
       continue
2273
     fi
2274
    ac_cv_prog_CC="cc"
2275 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 19 jeremybenn
    break 2
2277
  fi
2278
done
2279 121 jeremybenn
done
2280 19 jeremybenn
IFS=$as_save_IFS
2281
 
2282
if test $ac_prog_rejected = yes; then
2283
  # We found a bogon in the path, so make sure we never use it.
2284
  set dummy $ac_cv_prog_CC
2285
  shift
2286
  if test $# != 0; then
2287
    # We chose a different compiler from the bogus one.
2288
    # However, it has the same basename, so the bogon will be chosen
2289
    # first if we set CC to just the basename; use the full file name.
2290
    shift
2291
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2292
  fi
2293
fi
2294
fi
2295
fi
2296
CC=$ac_cv_prog_CC
2297
if test -n "$CC"; then
2298 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2299 82 jeremybenn
$as_echo "$CC" >&6; }
2300 19 jeremybenn
else
2301 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2302 82 jeremybenn
$as_echo "no" >&6; }
2303 19 jeremybenn
fi
2304
 
2305
 
2306
fi
2307
if test -z "$CC"; then
2308
  if test -n "$ac_tool_prefix"; then
2309
  for ac_prog in cl.exe
2310
  do
2311
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2312
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2313 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2315 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2316 82 jeremybenn
  $as_echo_n "(cached) " >&6
2317 19 jeremybenn
else
2318
  if test -n "$CC"; then
2319
  ac_cv_prog_CC="$CC" # Let the user override the test.
2320
else
2321
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322
for as_dir in $PATH
2323
do
2324
  IFS=$as_save_IFS
2325
  test -z "$as_dir" && as_dir=.
2326 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2327 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2329 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 19 jeremybenn
    break 2
2331
  fi
2332
done
2333 121 jeremybenn
done
2334 19 jeremybenn
IFS=$as_save_IFS
2335
 
2336
fi
2337
fi
2338
CC=$ac_cv_prog_CC
2339
if test -n "$CC"; then
2340 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2341 82 jeremybenn
$as_echo "$CC" >&6; }
2342 19 jeremybenn
else
2343 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2344 82 jeremybenn
$as_echo "no" >&6; }
2345 19 jeremybenn
fi
2346
 
2347
 
2348
    test -n "$CC" && break
2349
  done
2350
fi
2351
if test -z "$CC"; then
2352
  ac_ct_CC=$CC
2353
  for ac_prog in cl.exe
2354
do
2355
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2356
set dummy $ac_prog; ac_word=$2
2357 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2359 121 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2360 82 jeremybenn
  $as_echo_n "(cached) " >&6
2361 19 jeremybenn
else
2362
  if test -n "$ac_ct_CC"; then
2363
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2364
else
2365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366
for as_dir in $PATH
2367
do
2368
  IFS=$as_save_IFS
2369
  test -z "$as_dir" && as_dir=.
2370 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2371 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372
    ac_cv_prog_ac_ct_CC="$ac_prog"
2373 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 19 jeremybenn
    break 2
2375
  fi
2376
done
2377 121 jeremybenn
done
2378 19 jeremybenn
IFS=$as_save_IFS
2379
 
2380
fi
2381
fi
2382
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2383
if test -n "$ac_ct_CC"; then
2384 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2385 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2386 19 jeremybenn
else
2387 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2388 82 jeremybenn
$as_echo "no" >&6; }
2389 19 jeremybenn
fi
2390
 
2391
 
2392
  test -n "$ac_ct_CC" && break
2393
done
2394
 
2395
  if test "x$ac_ct_CC" = x; then
2396
    CC=""
2397
  else
2398
    case $cross_compiling:$ac_tool_warned in
2399
yes:)
2400 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2401 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2402 19 jeremybenn
ac_tool_warned=yes ;;
2403
esac
2404
    CC=$ac_ct_CC
2405
  fi
2406
fi
2407
 
2408
fi
2409
 
2410
 
2411 121 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2412 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2413 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2414
See \`config.log' for more details." >&5
2415
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2416
See \`config.log' for more details." >&2;}
2417
   { (exit 1); exit 1; }; }; }
2418 19 jeremybenn
 
2419
# Provide some information about the compiler.
2420 121 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2421 82 jeremybenn
set X $ac_compile
2422
ac_compiler=$2
2423 121 jeremybenn
{ (ac_try="$ac_compiler --version >&5"
2424 19 jeremybenn
case "(($ac_try" in
2425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426
  *) ac_try_echo=$ac_try;;
2427
esac
2428 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2429
$as_echo "$ac_try_echo") >&5
2430
  (eval "$ac_compiler --version >&5") 2>&5
2431 19 jeremybenn
  ac_status=$?
2432 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433
  (exit $ac_status); }
2434
{ (ac_try="$ac_compiler -v >&5"
2435
case "(($ac_try" in
2436
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437
  *) ac_try_echo=$ac_try;;
2438
esac
2439
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2440
$as_echo "$ac_try_echo") >&5
2441
  (eval "$ac_compiler -v >&5") 2>&5
2442
  ac_status=$?
2443
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444
  (exit $ac_status); }
2445
{ (ac_try="$ac_compiler -V >&5"
2446
case "(($ac_try" in
2447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448
  *) ac_try_echo=$ac_try;;
2449
esac
2450
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2451
$as_echo "$ac_try_echo") >&5
2452
  (eval "$ac_compiler -V >&5") 2>&5
2453
  ac_status=$?
2454
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455
  (exit $ac_status); }
2456 19 jeremybenn
 
2457 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
2458
/* confdefs.h.  */
2459
_ACEOF
2460
cat confdefs.h >>conftest.$ac_ext
2461
cat >>conftest.$ac_ext <<_ACEOF
2462 19 jeremybenn
/* end confdefs.h.  */
2463
 
2464
int
2465
main ()
2466
{
2467
 
2468
  ;
2469
  return 0;
2470
}
2471
_ACEOF
2472
ac_clean_files_save=$ac_clean_files
2473 82 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2474 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
2475
# It will help us diagnose broken compilers, and finding out an intuition
2476
# of exeext.
2477 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2478
$as_echo_n "checking for C compiler default output file name... " >&6; }
2479 82 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2480
 
2481
# The possible output files:
2482
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2483
 
2484 19 jeremybenn
ac_rmfiles=
2485
for ac_file in $ac_files
2486
do
2487
  case $ac_file in
2488 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2489 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2490
  esac
2491
done
2492
rm -f $ac_rmfiles
2493
 
2494 121 jeremybenn
if { (ac_try="$ac_link_default"
2495 19 jeremybenn
case "(($ac_try" in
2496
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497
  *) ac_try_echo=$ac_try;;
2498
esac
2499 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2500
$as_echo "$ac_try_echo") >&5
2501 19 jeremybenn
  (eval "$ac_link_default") 2>&5
2502
  ac_status=$?
2503 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504
  (exit $ac_status); }; then
2505 19 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2506
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2507
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2508
# so that the user can short-circuit this test for compilers unknown to
2509
# Autoconf.
2510
for ac_file in $ac_files ''
2511
do
2512
  test -f "$ac_file" || continue
2513
  case $ac_file in
2514 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2515 19 jeremybenn
        ;;
2516
    [ab].out )
2517
        # We found the default executable, but exeext='' is most
2518
        # certainly right.
2519
        break;;
2520
    *.* )
2521 121 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2522 19 jeremybenn
        then :; else
2523
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2524
        fi
2525
        # We set ac_cv_exeext here because the later test for it is not
2526
        # safe: cross compilers may not add the suffix if given an `-o'
2527
        # argument, so we may need to know it at that point already.
2528
        # Even if this section looks crufty: it has the advantage of
2529
        # actually working.
2530
        break;;
2531
    * )
2532
        break;;
2533
  esac
2534
done
2535
test "$ac_cv_exeext" = no && ac_cv_exeext=
2536
 
2537
else
2538
  ac_file=''
2539
fi
2540 121 jeremybenn
 
2541
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2542
$as_echo "$ac_file" >&6; }
2543
if test -z "$ac_file"; then
2544
  $as_echo "$as_me: failed program was:" >&5
2545 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2546
 
2547 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2548 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2549 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2550
See \`config.log' for more details." >&5
2551
$as_echo "$as_me: error: C compiler cannot create executables
2552
See \`config.log' for more details." >&2;}
2553
   { (exit 77); exit 77; }; }; }
2554 19 jeremybenn
fi
2555 121 jeremybenn
 
2556 19 jeremybenn
ac_exeext=$ac_cv_exeext
2557
 
2558 121 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
2559
# the compiler is broken, or we cross compile.
2560
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2561
$as_echo_n "checking whether the C compiler works... " >&6; }
2562
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2563
# If not cross compiling, check that we can run a simple program.
2564
if test "$cross_compiling" != yes; then
2565
  if { ac_try='./$ac_file'
2566
  { (case "(($ac_try" in
2567
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568
  *) ac_try_echo=$ac_try;;
2569
esac
2570
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2571
$as_echo "$ac_try_echo") >&5
2572
  (eval "$ac_try") 2>&5
2573
  ac_status=$?
2574
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575
  (exit $ac_status); }; }; then
2576
    cross_compiling=no
2577
  else
2578
    if test "$cross_compiling" = maybe; then
2579
        cross_compiling=yes
2580
    else
2581
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2582
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2583
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2584
If you meant to cross compile, use \`--host'.
2585
See \`config.log' for more details." >&5
2586
$as_echo "$as_me: error: cannot run C compiled programs.
2587
If you meant to cross compile, use \`--host'.
2588
See \`config.log' for more details." >&2;}
2589
   { (exit 1); exit 1; }; }; }
2590
    fi
2591
  fi
2592
fi
2593
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2594
$as_echo "yes" >&6; }
2595
 
2596 82 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2597 19 jeremybenn
ac_clean_files=$ac_clean_files_save
2598 121 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
2599
# the compiler is broken, or we cross compile.
2600
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2601
$as_echo_n "checking whether we are cross compiling... " >&6; }
2602
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2603
$as_echo "$cross_compiling" >&6; }
2604
 
2605
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2606 82 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
2607 121 jeremybenn
if { (ac_try="$ac_link"
2608 19 jeremybenn
case "(($ac_try" in
2609
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610
  *) ac_try_echo=$ac_try;;
2611
esac
2612 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2613
$as_echo "$ac_try_echo") >&5
2614 19 jeremybenn
  (eval "$ac_link") 2>&5
2615
  ac_status=$?
2616 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617
  (exit $ac_status); }; then
2618 19 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2619
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2620
# work properly (i.e., refer to `conftest.exe'), while it won't with
2621
# `rm'.
2622
for ac_file in conftest.exe conftest conftest.*; do
2623
  test -f "$ac_file" || continue
2624
  case $ac_file in
2625 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2626 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2627
          break;;
2628
    * ) break;;
2629
  esac
2630
done
2631
else
2632 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2633 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2635
See \`config.log' for more details." >&5
2636
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2637
See \`config.log' for more details." >&2;}
2638
   { (exit 1); exit 1; }; }; }
2639 19 jeremybenn
fi
2640 121 jeremybenn
 
2641
rm -f conftest$ac_cv_exeext
2642
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2643 82 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
2644 19 jeremybenn
 
2645
rm -f conftest.$ac_ext
2646
EXEEXT=$ac_cv_exeext
2647
ac_exeext=$EXEEXT
2648 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2649 82 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
2650 121 jeremybenn
if test "${ac_cv_objext+set}" = set; then
2651 82 jeremybenn
  $as_echo_n "(cached) " >&6
2652 19 jeremybenn
else
2653 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
2654
/* confdefs.h.  */
2655
_ACEOF
2656
cat confdefs.h >>conftest.$ac_ext
2657
cat >>conftest.$ac_ext <<_ACEOF
2658 19 jeremybenn
/* end confdefs.h.  */
2659
 
2660
int
2661
main ()
2662
{
2663
 
2664
  ;
2665
  return 0;
2666
}
2667
_ACEOF
2668
rm -f conftest.o conftest.obj
2669 121 jeremybenn
if { (ac_try="$ac_compile"
2670 19 jeremybenn
case "(($ac_try" in
2671
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672
  *) ac_try_echo=$ac_try;;
2673
esac
2674 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2675
$as_echo "$ac_try_echo") >&5
2676 19 jeremybenn
  (eval "$ac_compile") 2>&5
2677
  ac_status=$?
2678 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679
  (exit $ac_status); }; then
2680 19 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
2681
  test -f "$ac_file" || continue;
2682
  case $ac_file in
2683 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2684 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2685
       break;;
2686
  esac
2687
done
2688
else
2689 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2690 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2691
 
2692 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2693 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2694 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2695
See \`config.log' for more details." >&5
2696
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2697
See \`config.log' for more details." >&2;}
2698
   { (exit 1); exit 1; }; }; }
2699 19 jeremybenn
fi
2700 121 jeremybenn
 
2701 19 jeremybenn
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2702
fi
2703 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2704 82 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
2705 19 jeremybenn
OBJEXT=$ac_cv_objext
2706
ac_objext=$OBJEXT
2707 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2708 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2709 121 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2710 82 jeremybenn
  $as_echo_n "(cached) " >&6
2711 19 jeremybenn
else
2712 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
2713
/* confdefs.h.  */
2714
_ACEOF
2715
cat confdefs.h >>conftest.$ac_ext
2716
cat >>conftest.$ac_ext <<_ACEOF
2717 19 jeremybenn
/* end confdefs.h.  */
2718
 
2719
int
2720
main ()
2721
{
2722
#ifndef __GNUC__
2723
       choke me
2724
#endif
2725
 
2726
  ;
2727
  return 0;
2728
}
2729
_ACEOF
2730 121 jeremybenn
rm -f conftest.$ac_objext
2731
if { (ac_try="$ac_compile"
2732
case "(($ac_try" in
2733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734
  *) ac_try_echo=$ac_try;;
2735
esac
2736
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2737
$as_echo "$ac_try_echo") >&5
2738
  (eval "$ac_compile") 2>conftest.er1
2739
  ac_status=$?
2740
  grep -v '^ *+' conftest.er1 >conftest.err
2741
  rm -f conftest.er1
2742
  cat conftest.err >&5
2743
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744
  (exit $ac_status); } && {
2745
         test -z "$ac_c_werror_flag" ||
2746
         test ! -s conftest.err
2747
       } && test -s conftest.$ac_objext; then
2748 19 jeremybenn
  ac_compiler_gnu=yes
2749
else
2750 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2751
sed 's/^/| /' conftest.$ac_ext >&5
2752
 
2753
        ac_compiler_gnu=no
2754 19 jeremybenn
fi
2755 121 jeremybenn
 
2756 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2758
 
2759
fi
2760 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2761 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2762
if test $ac_compiler_gnu = yes; then
2763
  GCC=yes
2764
else
2765
  GCC=
2766
fi
2767 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
2768
ac_save_CFLAGS=$CFLAGS
2769 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2770 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2771 121 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
2772 82 jeremybenn
  $as_echo_n "(cached) " >&6
2773 19 jeremybenn
else
2774
  ac_save_c_werror_flag=$ac_c_werror_flag
2775
   ac_c_werror_flag=yes
2776
   ac_cv_prog_cc_g=no
2777
   CFLAGS="-g"
2778 121 jeremybenn
   cat >conftest.$ac_ext <<_ACEOF
2779
/* confdefs.h.  */
2780
_ACEOF
2781
cat confdefs.h >>conftest.$ac_ext
2782
cat >>conftest.$ac_ext <<_ACEOF
2783 19 jeremybenn
/* end confdefs.h.  */
2784
 
2785
int
2786
main ()
2787
{
2788
 
2789
  ;
2790
  return 0;
2791
}
2792
_ACEOF
2793 121 jeremybenn
rm -f conftest.$ac_objext
2794
if { (ac_try="$ac_compile"
2795
case "(($ac_try" in
2796
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797
  *) ac_try_echo=$ac_try;;
2798
esac
2799
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2800
$as_echo "$ac_try_echo") >&5
2801
  (eval "$ac_compile") 2>conftest.er1
2802
  ac_status=$?
2803
  grep -v '^ *+' conftest.er1 >conftest.err
2804
  rm -f conftest.er1
2805
  cat conftest.err >&5
2806
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807
  (exit $ac_status); } && {
2808
         test -z "$ac_c_werror_flag" ||
2809
         test ! -s conftest.err
2810
       } && test -s conftest.$ac_objext; then
2811 19 jeremybenn
  ac_cv_prog_cc_g=yes
2812
else
2813 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2814
sed 's/^/| /' conftest.$ac_ext >&5
2815
 
2816
        CFLAGS=""
2817
      cat >conftest.$ac_ext <<_ACEOF
2818
/* confdefs.h.  */
2819
_ACEOF
2820
cat confdefs.h >>conftest.$ac_ext
2821
cat >>conftest.$ac_ext <<_ACEOF
2822 19 jeremybenn
/* end confdefs.h.  */
2823
 
2824
int
2825
main ()
2826
{
2827
 
2828
  ;
2829
  return 0;
2830
}
2831
_ACEOF
2832 121 jeremybenn
rm -f conftest.$ac_objext
2833
if { (ac_try="$ac_compile"
2834
case "(($ac_try" in
2835
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836
  *) ac_try_echo=$ac_try;;
2837
esac
2838
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2839
$as_echo "$ac_try_echo") >&5
2840
  (eval "$ac_compile") 2>conftest.er1
2841
  ac_status=$?
2842
  grep -v '^ *+' conftest.er1 >conftest.err
2843
  rm -f conftest.er1
2844
  cat conftest.err >&5
2845
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846
  (exit $ac_status); } && {
2847
         test -z "$ac_c_werror_flag" ||
2848
         test ! -s conftest.err
2849
       } && test -s conftest.$ac_objext; then
2850
  :
2851
else
2852
  $as_echo "$as_me: failed program was:" >&5
2853
sed 's/^/| /' conftest.$ac_ext >&5
2854 118 jeremybenn
 
2855 121 jeremybenn
        ac_c_werror_flag=$ac_save_c_werror_flag
2856 19 jeremybenn
         CFLAGS="-g"
2857 121 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
2858
/* confdefs.h.  */
2859
_ACEOF
2860
cat confdefs.h >>conftest.$ac_ext
2861
cat >>conftest.$ac_ext <<_ACEOF
2862 19 jeremybenn
/* end confdefs.h.  */
2863
 
2864
int
2865
main ()
2866
{
2867
 
2868
  ;
2869
  return 0;
2870
}
2871
_ACEOF
2872 121 jeremybenn
rm -f conftest.$ac_objext
2873
if { (ac_try="$ac_compile"
2874
case "(($ac_try" in
2875
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876
  *) ac_try_echo=$ac_try;;
2877
esac
2878
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879
$as_echo "$ac_try_echo") >&5
2880
  (eval "$ac_compile") 2>conftest.er1
2881
  ac_status=$?
2882
  grep -v '^ *+' conftest.er1 >conftest.err
2883
  rm -f conftest.er1
2884
  cat conftest.err >&5
2885
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886
  (exit $ac_status); } && {
2887
         test -z "$ac_c_werror_flag" ||
2888
         test ! -s conftest.err
2889
       } && test -s conftest.$ac_objext; then
2890 19 jeremybenn
  ac_cv_prog_cc_g=yes
2891 121 jeremybenn
else
2892
  $as_echo "$as_me: failed program was:" >&5
2893
sed 's/^/| /' conftest.$ac_ext >&5
2894
 
2895
 
2896 19 jeremybenn
fi
2897 121 jeremybenn
 
2898 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899
fi
2900 121 jeremybenn
 
2901 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902
fi
2903 121 jeremybenn
 
2904 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905
   ac_c_werror_flag=$ac_save_c_werror_flag
2906
fi
2907 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2908 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
2909 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
2910
  CFLAGS=$ac_save_CFLAGS
2911
elif test $ac_cv_prog_cc_g = yes; then
2912
  if test "$GCC" = yes; then
2913
    CFLAGS="-g -O2"
2914
  else
2915
    CFLAGS="-g"
2916
  fi
2917
else
2918
  if test "$GCC" = yes; then
2919
    CFLAGS="-O2"
2920
  else
2921
    CFLAGS=
2922
  fi
2923
fi
2924 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2925 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2926 121 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then
2927 82 jeremybenn
  $as_echo_n "(cached) " >&6
2928 19 jeremybenn
else
2929
  ac_cv_prog_cc_c89=no
2930
ac_save_CC=$CC
2931 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
2932
/* confdefs.h.  */
2933
_ACEOF
2934
cat confdefs.h >>conftest.$ac_ext
2935
cat >>conftest.$ac_ext <<_ACEOF
2936 19 jeremybenn
/* end confdefs.h.  */
2937
#include 
2938
#include 
2939
#include 
2940
#include 
2941
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2942
struct buf { int x; };
2943
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2944
static char *e (p, i)
2945
     char **p;
2946
     int i;
2947
{
2948
  return p[i];
2949
}
2950
static char *f (char * (*g) (char **, int), char **p, ...)
2951
{
2952
  char *s;
2953
  va_list v;
2954
  va_start (v,p);
2955
  s = g (p, va_arg (v,int));
2956
  va_end (v);
2957
  return s;
2958
}
2959
 
2960
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2961
   function prototypes and stuff, but not '\xHH' hex character constants.
2962
   These don't provoke an error unfortunately, instead are silently treated
2963
   as 'x'.  The following induces an error, until -std is added to get
2964
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2965
   array size at least.  It's necessary to write '\x00'==0 to get something
2966
   that's true only with -std.  */
2967
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2968
 
2969
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2970
   inside strings and character constants.  */
2971
#define FOO(x) 'x'
2972
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2973
 
2974
int test (int i, double x);
2975
struct s1 {int (*f) (int a);};
2976
struct s2 {int (*f) (double a);};
2977
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2978
int argc;
2979
char **argv;
2980
int
2981
main ()
2982
{
2983
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2984
  ;
2985
  return 0;
2986
}
2987
_ACEOF
2988
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2989
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2990
do
2991
  CC="$ac_save_CC $ac_arg"
2992 121 jeremybenn
  rm -f conftest.$ac_objext
2993
if { (ac_try="$ac_compile"
2994
case "(($ac_try" in
2995
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996
  *) ac_try_echo=$ac_try;;
2997
esac
2998
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2999
$as_echo "$ac_try_echo") >&5
3000
  (eval "$ac_compile") 2>conftest.er1
3001
  ac_status=$?
3002
  grep -v '^ *+' conftest.er1 >conftest.err
3003
  rm -f conftest.er1
3004
  cat conftest.err >&5
3005
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006
  (exit $ac_status); } && {
3007
         test -z "$ac_c_werror_flag" ||
3008
         test ! -s conftest.err
3009
       } && test -s conftest.$ac_objext; then
3010 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3011 121 jeremybenn
else
3012
  $as_echo "$as_me: failed program was:" >&5
3013
sed 's/^/| /' conftest.$ac_ext >&5
3014
 
3015
 
3016 19 jeremybenn
fi
3017 121 jeremybenn
 
3018 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext
3019
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3020
done
3021
rm -f conftest.$ac_ext
3022
CC=$ac_save_CC
3023
 
3024
fi
3025
# AC_CACHE_VAL
3026
case "x$ac_cv_prog_cc_c89" in
3027
  x)
3028 121 jeremybenn
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3029 82 jeremybenn
$as_echo "none needed" >&6; } ;;
3030 19 jeremybenn
  xno)
3031 121 jeremybenn
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3032 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
3033 19 jeremybenn
  *)
3034
    CC="$CC $ac_cv_prog_cc_c89"
3035 121 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3036 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3037 19 jeremybenn
esac
3038
 
3039
 
3040
ac_ext=c
3041
ac_cpp='$CPP $CPPFLAGS'
3042
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045
 
3046 91 jeremybenn
 
3047
ac_ext=c
3048
ac_cpp='$CPP $CPPFLAGS'
3049
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3053 91 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3054
# On Suns, sometimes $CPP names a directory.
3055
if test -n "$CPP" && test -d "$CPP"; then
3056
  CPP=
3057
fi
3058
if test -z "$CPP"; then
3059 121 jeremybenn
  if test "${ac_cv_prog_CPP+set}" = set; then
3060 82 jeremybenn
  $as_echo_n "(cached) " >&6
3061 19 jeremybenn
else
3062 91 jeremybenn
      # Double quotes because CPP needs to be expanded
3063
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3064
    do
3065
      ac_preproc_ok=false
3066
for ac_c_preproc_warn_flag in '' yes
3067 19 jeremybenn
do
3068 91 jeremybenn
  # Use a header file that comes with gcc, so configuring glibc
3069
  # with a fresh cross-compiler works.
3070
  # Prefer  to  if __STDC__ is defined, since
3071
  #  exists even on freestanding compilers.
3072
  # On the NeXT, cc -E runs the code through the compiler's parser,
3073
  # not just through cpp. "Syntax error" is here to catch this case.
3074 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3075
/* confdefs.h.  */
3076
_ACEOF
3077
cat confdefs.h >>conftest.$ac_ext
3078
cat >>conftest.$ac_ext <<_ACEOF
3079 91 jeremybenn
/* end confdefs.h.  */
3080
#ifdef __STDC__
3081
# include 
3082
#else
3083
# include 
3084
#endif
3085
                     Syntax error
3086
_ACEOF
3087 121 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3088
case "(($ac_try" in
3089
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090
  *) ac_try_echo=$ac_try;;
3091
esac
3092
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3093
$as_echo "$ac_try_echo") >&5
3094
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3095
  ac_status=$?
3096
  grep -v '^ *+' conftest.er1 >conftest.err
3097
  rm -f conftest.er1
3098
  cat conftest.err >&5
3099
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100
  (exit $ac_status); } >/dev/null && {
3101
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3102
         test ! -s conftest.err
3103
       }; then
3104
  :
3105
else
3106
  $as_echo "$as_me: failed program was:" >&5
3107
sed 's/^/| /' conftest.$ac_ext >&5
3108 118 jeremybenn
 
3109 91 jeremybenn
  # Broken: fails on valid input.
3110
continue
3111
fi
3112 121 jeremybenn
 
3113 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3114
 
3115
  # OK, works on sane cases.  Now check whether nonexistent headers
3116
  # can be detected and how.
3117 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3118
/* confdefs.h.  */
3119
_ACEOF
3120
cat confdefs.h >>conftest.$ac_ext
3121
cat >>conftest.$ac_ext <<_ACEOF
3122 91 jeremybenn
/* end confdefs.h.  */
3123
#include 
3124
_ACEOF
3125 121 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3126
case "(($ac_try" in
3127
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128
  *) ac_try_echo=$ac_try;;
3129
esac
3130
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3131
$as_echo "$ac_try_echo") >&5
3132
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3133
  ac_status=$?
3134
  grep -v '^ *+' conftest.er1 >conftest.err
3135
  rm -f conftest.er1
3136
  cat conftest.err >&5
3137
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138
  (exit $ac_status); } >/dev/null && {
3139
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3140
         test ! -s conftest.err
3141
       }; then
3142 91 jeremybenn
  # Broken: success on invalid input.
3143
continue
3144 82 jeremybenn
else
3145 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3146
sed 's/^/| /' conftest.$ac_ext >&5
3147
 
3148 91 jeremybenn
  # Passes both tests.
3149
ac_preproc_ok=:
3150
break
3151 82 jeremybenn
fi
3152 121 jeremybenn
 
3153 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3154
 
3155
done
3156
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3157
rm -f conftest.err conftest.$ac_ext
3158 121 jeremybenn
if $ac_preproc_ok; then
3159 91 jeremybenn
  break
3160 19 jeremybenn
fi
3161
 
3162 91 jeremybenn
    done
3163
    ac_cv_prog_CPP=$CPP
3164 19 jeremybenn
 
3165 91 jeremybenn
fi
3166
  CPP=$ac_cv_prog_CPP
3167
else
3168
  ac_cv_prog_CPP=$CPP
3169
fi
3170 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3171 91 jeremybenn
$as_echo "$CPP" >&6; }
3172
ac_preproc_ok=false
3173
for ac_c_preproc_warn_flag in '' yes
3174
do
3175
  # Use a header file that comes with gcc, so configuring glibc
3176
  # with a fresh cross-compiler works.
3177
  # Prefer  to  if __STDC__ is defined, since
3178
  #  exists even on freestanding compilers.
3179
  # On the NeXT, cc -E runs the code through the compiler's parser,
3180
  # not just through cpp. "Syntax error" is here to catch this case.
3181 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3182
/* confdefs.h.  */
3183
_ACEOF
3184
cat confdefs.h >>conftest.$ac_ext
3185
cat >>conftest.$ac_ext <<_ACEOF
3186 91 jeremybenn
/* end confdefs.h.  */
3187
#ifdef __STDC__
3188
# include 
3189
#else
3190
# include 
3191
#endif
3192
                     Syntax error
3193
_ACEOF
3194 121 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3195
case "(($ac_try" in
3196
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197
  *) ac_try_echo=$ac_try;;
3198
esac
3199
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3200
$as_echo "$ac_try_echo") >&5
3201
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3202
  ac_status=$?
3203
  grep -v '^ *+' conftest.er1 >conftest.err
3204
  rm -f conftest.er1
3205
  cat conftest.err >&5
3206
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207
  (exit $ac_status); } >/dev/null && {
3208
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3209
         test ! -s conftest.err
3210
       }; then
3211
  :
3212
else
3213
  $as_echo "$as_me: failed program was:" >&5
3214
sed 's/^/| /' conftest.$ac_ext >&5
3215 118 jeremybenn
 
3216 91 jeremybenn
  # Broken: fails on valid input.
3217
continue
3218
fi
3219 121 jeremybenn
 
3220 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3221 82 jeremybenn
 
3222 91 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
3223
  # can be detected and how.
3224 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3225
/* confdefs.h.  */
3226
_ACEOF
3227
cat confdefs.h >>conftest.$ac_ext
3228
cat >>conftest.$ac_ext <<_ACEOF
3229 91 jeremybenn
/* end confdefs.h.  */
3230
#include 
3231
_ACEOF
3232 121 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3233
case "(($ac_try" in
3234
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235
  *) ac_try_echo=$ac_try;;
3236
esac
3237
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3238
$as_echo "$ac_try_echo") >&5
3239
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3240
  ac_status=$?
3241
  grep -v '^ *+' conftest.er1 >conftest.err
3242
  rm -f conftest.er1
3243
  cat conftest.err >&5
3244
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245
  (exit $ac_status); } >/dev/null && {
3246
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3247
         test ! -s conftest.err
3248
       }; then
3249 91 jeremybenn
  # Broken: success on invalid input.
3250
continue
3251
else
3252 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3253
sed 's/^/| /' conftest.$ac_ext >&5
3254
 
3255 91 jeremybenn
  # Passes both tests.
3256
ac_preproc_ok=:
3257
break
3258
fi
3259 121 jeremybenn
 
3260 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3261 82 jeremybenn
 
3262 91 jeremybenn
done
3263
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3264
rm -f conftest.err conftest.$ac_ext
3265 121 jeremybenn
if $ac_preproc_ok; then
3266
  :
3267 91 jeremybenn
else
3268 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3269 91 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3271
See \`config.log' for more details." >&5
3272
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3273
See \`config.log' for more details." >&2;}
3274
   { (exit 1); exit 1; }; }; }
3275 91 jeremybenn
fi
3276 82 jeremybenn
 
3277 91 jeremybenn
ac_ext=c
3278
ac_cpp='$CPP $CPPFLAGS'
3279
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282 82 jeremybenn
 
3283
 
3284 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3285 82 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3286 121 jeremybenn
if test "${ac_cv_path_GREP+set}" = set; then
3287 82 jeremybenn
  $as_echo_n "(cached) " >&6
3288 19 jeremybenn
else
3289 82 jeremybenn
  if test -z "$GREP"; then
3290 19 jeremybenn
  ac_path_GREP_found=false
3291 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3292
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3294
do
3295
  IFS=$as_save_IFS
3296
  test -z "$as_dir" && as_dir=.
3297 121 jeremybenn
  for ac_prog in grep ggrep; do
3298 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3299
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3300
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3301
# Check for GNU ac_path_GREP and select it if it is found.
3302 19 jeremybenn
  # Check for GNU $ac_path_GREP
3303
case `"$ac_path_GREP" --version 2>&1` in
3304
*GNU*)
3305
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3306
*)
3307
  ac_count=0
3308 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3309 19 jeremybenn
  while :
3310
  do
3311
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3312
    mv "conftest.tmp" "conftest.in"
3313
    cp "conftest.in" "conftest.nl"
3314 82 jeremybenn
    $as_echo 'GREP' >> "conftest.nl"
3315 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3316
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3317 121 jeremybenn
    ac_count=`expr $ac_count + 1`
3318 19 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3319
      # Best one so far, save it but keep looking for a better one
3320
      ac_cv_path_GREP="$ac_path_GREP"
3321
      ac_path_GREP_max=$ac_count
3322
    fi
3323
    # 10*(2^10) chars as input seems more than enough
3324
    test $ac_count -gt 10 && break
3325
  done
3326
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3327
esac
3328
 
3329 82 jeremybenn
      $ac_path_GREP_found && break 3
3330
    done
3331 19 jeremybenn
  done
3332 121 jeremybenn
done
3333 19 jeremybenn
IFS=$as_save_IFS
3334 82 jeremybenn
  if test -z "$ac_cv_path_GREP"; then
3335 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3336
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3337
   { (exit 1); exit 1; }; }
3338 82 jeremybenn
  fi
3339 19 jeremybenn
else
3340
  ac_cv_path_GREP=$GREP
3341
fi
3342
 
3343
fi
3344 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3345 82 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3346 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3347
 
3348
 
3349 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3350 82 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3351 121 jeremybenn
if test "${ac_cv_path_EGREP+set}" = set; then
3352 82 jeremybenn
  $as_echo_n "(cached) " >&6
3353 19 jeremybenn
else
3354
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3355
   then ac_cv_path_EGREP="$GREP -E"
3356
   else
3357 82 jeremybenn
     if test -z "$EGREP"; then
3358 19 jeremybenn
  ac_path_EGREP_found=false
3359 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3360
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3362
do
3363
  IFS=$as_save_IFS
3364
  test -z "$as_dir" && as_dir=.
3365 121 jeremybenn
  for ac_prog in egrep; do
3366 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3367
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3368
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3369
# Check for GNU ac_path_EGREP and select it if it is found.
3370 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3371
case `"$ac_path_EGREP" --version 2>&1` in
3372
*GNU*)
3373
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3374
*)
3375
  ac_count=0
3376 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3377 19 jeremybenn
  while :
3378
  do
3379
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3380
    mv "conftest.tmp" "conftest.in"
3381
    cp "conftest.in" "conftest.nl"
3382 82 jeremybenn
    $as_echo 'EGREP' >> "conftest.nl"
3383 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3384
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3385 121 jeremybenn
    ac_count=`expr $ac_count + 1`
3386 19 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3387
      # Best one so far, save it but keep looking for a better one
3388
      ac_cv_path_EGREP="$ac_path_EGREP"
3389
      ac_path_EGREP_max=$ac_count
3390
    fi
3391
    # 10*(2^10) chars as input seems more than enough
3392
    test $ac_count -gt 10 && break
3393
  done
3394
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3395
esac
3396
 
3397 82 jeremybenn
      $ac_path_EGREP_found && break 3
3398
    done
3399 19 jeremybenn
  done
3400 121 jeremybenn
done
3401 19 jeremybenn
IFS=$as_save_IFS
3402 82 jeremybenn
  if test -z "$ac_cv_path_EGREP"; then
3403 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3404
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3405
   { (exit 1); exit 1; }; }
3406 82 jeremybenn
  fi
3407
else
3408
  ac_cv_path_EGREP=$EGREP
3409 19 jeremybenn
fi
3410
 
3411 82 jeremybenn
   fi
3412 19 jeremybenn
fi
3413 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3414 82 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3415
 EGREP="$ac_cv_path_EGREP"
3416 19 jeremybenn
 
3417 82 jeremybenn
 
3418 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3419 91 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
3420 121 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then
3421 91 jeremybenn
  $as_echo_n "(cached) " >&6
3422
else
3423 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3424
/* confdefs.h.  */
3425
_ACEOF
3426
cat confdefs.h >>conftest.$ac_ext
3427
cat >>conftest.$ac_ext <<_ACEOF
3428 91 jeremybenn
/* end confdefs.h.  */
3429
#include 
3430
#include 
3431
#include 
3432
#include 
3433
 
3434
int
3435
main ()
3436
{
3437
 
3438
  ;
3439
  return 0;
3440
}
3441
_ACEOF
3442 121 jeremybenn
rm -f conftest.$ac_objext
3443
if { (ac_try="$ac_compile"
3444
case "(($ac_try" in
3445
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446
  *) ac_try_echo=$ac_try;;
3447
esac
3448
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3449
$as_echo "$ac_try_echo") >&5
3450
  (eval "$ac_compile") 2>conftest.er1
3451
  ac_status=$?
3452
  grep -v '^ *+' conftest.er1 >conftest.err
3453
  rm -f conftest.er1
3454
  cat conftest.err >&5
3455
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456
  (exit $ac_status); } && {
3457
         test -z "$ac_c_werror_flag" ||
3458
         test ! -s conftest.err
3459
       } && test -s conftest.$ac_objext; then
3460 91 jeremybenn
  ac_cv_header_stdc=yes
3461
else
3462 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3463
sed 's/^/| /' conftest.$ac_ext >&5
3464
 
3465
        ac_cv_header_stdc=no
3466 91 jeremybenn
fi
3467 121 jeremybenn
 
3468 91 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469
 
3470
if test $ac_cv_header_stdc = yes; then
3471
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3472 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3473
/* confdefs.h.  */
3474
_ACEOF
3475
cat confdefs.h >>conftest.$ac_ext
3476
cat >>conftest.$ac_ext <<_ACEOF
3477 91 jeremybenn
/* end confdefs.h.  */
3478
#include 
3479
 
3480
_ACEOF
3481
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3482 121 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then
3483
  :
3484 91 jeremybenn
else
3485
  ac_cv_header_stdc=no
3486
fi
3487
rm -f conftest*
3488
 
3489
fi
3490
 
3491
if test $ac_cv_header_stdc = yes; then
3492
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3493 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3494
/* confdefs.h.  */
3495
_ACEOF
3496
cat confdefs.h >>conftest.$ac_ext
3497
cat >>conftest.$ac_ext <<_ACEOF
3498 91 jeremybenn
/* end confdefs.h.  */
3499
#include 
3500
 
3501
_ACEOF
3502
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3503 121 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then
3504
  :
3505 91 jeremybenn
else
3506
  ac_cv_header_stdc=no
3507
fi
3508
rm -f conftest*
3509
 
3510
fi
3511
 
3512
if test $ac_cv_header_stdc = yes; then
3513
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3514 121 jeremybenn
  if test "$cross_compiling" = yes; then
3515 91 jeremybenn
  :
3516
else
3517 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3518
/* confdefs.h.  */
3519
_ACEOF
3520
cat confdefs.h >>conftest.$ac_ext
3521
cat >>conftest.$ac_ext <<_ACEOF
3522 91 jeremybenn
/* end confdefs.h.  */
3523
#include 
3524
#include 
3525
#if ((' ' & 0x0FF) == 0x020)
3526
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3527
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3528
#else
3529
# define ISLOWER(c) \
3530
                   (('a' <= (c) && (c) <= 'i') \
3531
                     || ('j' <= (c) && (c) <= 'r') \
3532
                     || ('s' <= (c) && (c) <= 'z'))
3533
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3534
#endif
3535
 
3536
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3537
int
3538
main ()
3539
{
3540
  int i;
3541
  for (i = 0; i < 256; i++)
3542
    if (XOR (islower (i), ISLOWER (i))
3543
        || toupper (i) != TOUPPER (i))
3544
      return 2;
3545
  return 0;
3546
}
3547
_ACEOF
3548 121 jeremybenn
rm -f conftest$ac_exeext
3549
if { (ac_try="$ac_link"
3550
case "(($ac_try" in
3551
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552
  *) ac_try_echo=$ac_try;;
3553
esac
3554
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3555
$as_echo "$ac_try_echo") >&5
3556
  (eval "$ac_link") 2>&5
3557
  ac_status=$?
3558
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3560
  { (case "(($ac_try" in
3561
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562
  *) ac_try_echo=$ac_try;;
3563
esac
3564
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3565
$as_echo "$ac_try_echo") >&5
3566
  (eval "$ac_try") 2>&5
3567
  ac_status=$?
3568
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569
  (exit $ac_status); }; }; then
3570
  :
3571
else
3572
  $as_echo "$as_me: program exited with status $ac_status" >&5
3573
$as_echo "$as_me: failed program was:" >&5
3574
sed 's/^/| /' conftest.$ac_ext >&5
3575 118 jeremybenn
 
3576 121 jeremybenn
( exit $ac_status )
3577
ac_cv_header_stdc=no
3578 91 jeremybenn
fi
3579 121 jeremybenn
rm -rf conftest.dSYM
3580
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3581 91 jeremybenn
fi
3582
 
3583 121 jeremybenn
 
3584 91 jeremybenn
fi
3585
fi
3586 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3587 91 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
3588
if test $ac_cv_header_stdc = yes; then
3589
 
3590 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
3591
#define STDC_HEADERS 1
3592
_ACEOF
3593 91 jeremybenn
 
3594
fi
3595
 
3596
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3597 121 jeremybenn
 
3598
 
3599
 
3600
 
3601
 
3602
 
3603
 
3604
 
3605
 
3606 91 jeremybenn
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3607
                  inttypes.h stdint.h unistd.h
3608 121 jeremybenn
do
3609
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3610
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3611
$as_echo_n "checking for $ac_header... " >&6; }
3612
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3613
  $as_echo_n "(cached) " >&6
3614
else
3615
  cat >conftest.$ac_ext <<_ACEOF
3616
/* confdefs.h.  */
3617
_ACEOF
3618
cat confdefs.h >>conftest.$ac_ext
3619
cat >>conftest.$ac_ext <<_ACEOF
3620
/* end confdefs.h.  */
3621
$ac_includes_default
3622
 
3623
#include <$ac_header>
3624
_ACEOF
3625
rm -f conftest.$ac_objext
3626
if { (ac_try="$ac_compile"
3627
case "(($ac_try" in
3628
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629
  *) ac_try_echo=$ac_try;;
3630
esac
3631
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3632
$as_echo "$ac_try_echo") >&5
3633
  (eval "$ac_compile") 2>conftest.er1
3634
  ac_status=$?
3635
  grep -v '^ *+' conftest.er1 >conftest.err
3636
  rm -f conftest.er1
3637
  cat conftest.err >&5
3638
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639
  (exit $ac_status); } && {
3640
         test -z "$ac_c_werror_flag" ||
3641
         test ! -s conftest.err
3642
       } && test -s conftest.$ac_objext; then
3643
  eval "$as_ac_Header=yes"
3644
else
3645
  $as_echo "$as_me: failed program was:" >&5
3646
sed 's/^/| /' conftest.$ac_ext >&5
3647
 
3648
        eval "$as_ac_Header=no"
3649
fi
3650
 
3651
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652
fi
3653
ac_res=`eval 'as_val=${'$as_ac_Header'}
3654
                 $as_echo "$as_val"'`
3655
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3656
$as_echo "$ac_res" >&6; }
3657
as_val=`eval 'as_val=${'$as_ac_Header'}
3658
                 $as_echo "$as_val"'`
3659
   if test "x$as_val" = x""yes; then
3660 91 jeremybenn
  cat >>confdefs.h <<_ACEOF
3661
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3662
_ACEOF
3663
 
3664
fi
3665
 
3666
done
3667
 
3668
 
3669
 
3670 121 jeremybenn
  if test "${ac_cv_header_minix_config_h+set}" = set; then
3671
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3672
$as_echo_n "checking for minix/config.h... " >&6; }
3673
if test "${ac_cv_header_minix_config_h+set}" = set; then
3674
  $as_echo_n "(cached) " >&6
3675
fi
3676
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3677
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3678
else
3679
  # Is the header compilable?
3680
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3681
$as_echo_n "checking minix/config.h usability... " >&6; }
3682
cat >conftest.$ac_ext <<_ACEOF
3683
/* confdefs.h.  */
3684
_ACEOF
3685
cat confdefs.h >>conftest.$ac_ext
3686
cat >>conftest.$ac_ext <<_ACEOF
3687
/* end confdefs.h.  */
3688
$ac_includes_default
3689
#include 
3690
_ACEOF
3691
rm -f conftest.$ac_objext
3692
if { (ac_try="$ac_compile"
3693
case "(($ac_try" in
3694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695
  *) ac_try_echo=$ac_try;;
3696
esac
3697
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3698
$as_echo "$ac_try_echo") >&5
3699
  (eval "$ac_compile") 2>conftest.er1
3700
  ac_status=$?
3701
  grep -v '^ *+' conftest.er1 >conftest.err
3702
  rm -f conftest.er1
3703
  cat conftest.err >&5
3704
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705
  (exit $ac_status); } && {
3706
         test -z "$ac_c_werror_flag" ||
3707
         test ! -s conftest.err
3708
       } && test -s conftest.$ac_objext; then
3709
  ac_header_compiler=yes
3710
else
3711
  $as_echo "$as_me: failed program was:" >&5
3712
sed 's/^/| /' conftest.$ac_ext >&5
3713
 
3714
        ac_header_compiler=no
3715
fi
3716
 
3717
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3719
$as_echo "$ac_header_compiler" >&6; }
3720
 
3721
# Is the header present?
3722
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3723
$as_echo_n "checking minix/config.h presence... " >&6; }
3724
cat >conftest.$ac_ext <<_ACEOF
3725
/* confdefs.h.  */
3726
_ACEOF
3727
cat confdefs.h >>conftest.$ac_ext
3728
cat >>conftest.$ac_ext <<_ACEOF
3729
/* end confdefs.h.  */
3730
#include 
3731
_ACEOF
3732
if { (ac_try="$ac_cpp conftest.$ac_ext"
3733
case "(($ac_try" in
3734
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735
  *) ac_try_echo=$ac_try;;
3736
esac
3737
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3738
$as_echo "$ac_try_echo") >&5
3739
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3740
  ac_status=$?
3741
  grep -v '^ *+' conftest.er1 >conftest.err
3742
  rm -f conftest.er1
3743
  cat conftest.err >&5
3744
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745
  (exit $ac_status); } >/dev/null && {
3746
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3747
         test ! -s conftest.err
3748
       }; then
3749
  ac_header_preproc=yes
3750
else
3751
  $as_echo "$as_me: failed program was:" >&5
3752
sed 's/^/| /' conftest.$ac_ext >&5
3753
 
3754
  ac_header_preproc=no
3755
fi
3756
 
3757
rm -f conftest.err conftest.$ac_ext
3758
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3759
$as_echo "$ac_header_preproc" >&6; }
3760
 
3761
# So?  What about this header?
3762
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3763
  yes:no: )
3764
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3765
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3766
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3767
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3768
    ac_header_preproc=yes
3769
    ;;
3770
  no:yes:* )
3771
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3772
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3773
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3774
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3775
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3776
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3777
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3778
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3779
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3780
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3781
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3782
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3783
    ( cat <<\_ASBOX
3784
## ------------------------------------- ##
3785
## Report this to openrisc@opencores.org ##
3786
## ------------------------------------- ##
3787
_ASBOX
3788
     ) | sed "s/^/$as_me: WARNING:     /" >&2
3789
    ;;
3790
esac
3791
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3792
$as_echo_n "checking for minix/config.h... " >&6; }
3793
if test "${ac_cv_header_minix_config_h+set}" = set; then
3794
  $as_echo_n "(cached) " >&6
3795
else
3796
  ac_cv_header_minix_config_h=$ac_header_preproc
3797
fi
3798
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3799
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3800
 
3801
fi
3802
if test "x$ac_cv_header_minix_config_h" = x""yes; then
3803 91 jeremybenn
  MINIX=yes
3804
else
3805
  MINIX=
3806
fi
3807
 
3808
 
3809
  if test "$MINIX" = yes; then
3810
 
3811 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
3812
#define _POSIX_SOURCE 1
3813
_ACEOF
3814 91 jeremybenn
 
3815
 
3816 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
3817
#define _POSIX_1_SOURCE 2
3818
_ACEOF
3819 91 jeremybenn
 
3820
 
3821 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
3822
#define _MINIX 1
3823
_ACEOF
3824 91 jeremybenn
 
3825
  fi
3826
 
3827
 
3828 121 jeremybenn
 
3829
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3830 91 jeremybenn
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3831 121 jeremybenn
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3832 91 jeremybenn
  $as_echo_n "(cached) " >&6
3833
else
3834 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3835
/* confdefs.h.  */
3836
_ACEOF
3837
cat confdefs.h >>conftest.$ac_ext
3838
cat >>conftest.$ac_ext <<_ACEOF
3839 91 jeremybenn
/* end confdefs.h.  */
3840
 
3841
#         define __EXTENSIONS__ 1
3842
          $ac_includes_default
3843
int
3844
main ()
3845
{
3846
 
3847
  ;
3848
  return 0;
3849
}
3850
_ACEOF
3851 121 jeremybenn
rm -f conftest.$ac_objext
3852
if { (ac_try="$ac_compile"
3853
case "(($ac_try" in
3854
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855
  *) ac_try_echo=$ac_try;;
3856
esac
3857
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3858
$as_echo "$ac_try_echo") >&5
3859
  (eval "$ac_compile") 2>conftest.er1
3860
  ac_status=$?
3861
  grep -v '^ *+' conftest.er1 >conftest.err
3862
  rm -f conftest.er1
3863
  cat conftest.err >&5
3864
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865
  (exit $ac_status); } && {
3866
         test -z "$ac_c_werror_flag" ||
3867
         test ! -s conftest.err
3868
       } && test -s conftest.$ac_objext; then
3869 91 jeremybenn
  ac_cv_safe_to_define___extensions__=yes
3870
else
3871 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3872
sed 's/^/| /' conftest.$ac_ext >&5
3873
 
3874
        ac_cv_safe_to_define___extensions__=no
3875 91 jeremybenn
fi
3876 121 jeremybenn
 
3877 91 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878
fi
3879 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3880 91 jeremybenn
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3881
  test $ac_cv_safe_to_define___extensions__ = yes &&
3882 121 jeremybenn
    cat >>confdefs.h <<\_ACEOF
3883
#define __EXTENSIONS__ 1
3884
_ACEOF
3885 91 jeremybenn
 
3886 121 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3887
#define _ALL_SOURCE 1
3888
_ACEOF
3889 91 jeremybenn
 
3890 121 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3891
#define _GNU_SOURCE 1
3892
_ACEOF
3893 91 jeremybenn
 
3894 121 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3895
#define _POSIX_PTHREAD_SEMANTICS 1
3896
_ACEOF
3897 91 jeremybenn
 
3898 121 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3899
#define _TANDEM_SOURCE 1
3900
_ACEOF
3901 91 jeremybenn
 
3902
 
3903
 
3904
# Check we have the execute source file present for sanity. Specify a separate
3905
# config for the testsuite OR1K specific programs, since we'll need different
3906
# tool chain there (the OpenRISC one, rather than the native one).
3907
 
3908
ac_aux_dir=
3909
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3910 121 jeremybenn
  if test -f "$ac_dir/install-sh"; then
3911
    ac_aux_dir=$ac_dir
3912
    ac_install_sh="$ac_aux_dir/install-sh -c"
3913
    break
3914
  elif 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/shtool"; then
3919
    ac_aux_dir=$ac_dir
3920
    ac_install_sh="$ac_aux_dir/shtool install -c"
3921
    break
3922
  fi
3923 91 jeremybenn
done
3924
if test -z "$ac_aux_dir"; then
3925 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3926
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3927
   { (exit 1); exit 1; }; }
3928 91 jeremybenn
fi
3929
 
3930
# These three variables are undocumented and unsupported,
3931
# and are intended to be withdrawn in a future Autoconf release.
3932
# They can cause serious problems if a builder's source tree is in a directory
3933
# whose full name contains unusual characters.
3934
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3935
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3936
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3937
 
3938
 
3939
 
3940
 
3941
subdirs="$subdirs testsuite/test-code-or1k"
3942
 
3943
 
3944
# Make sure we can run config.sub.
3945
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3946 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3947
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3948
   { (exit 1); exit 1; }; }
3949 91 jeremybenn
 
3950 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3951 91 jeremybenn
$as_echo_n "checking build system type... " >&6; }
3952 121 jeremybenn
if test "${ac_cv_build+set}" = set; then
3953 91 jeremybenn
  $as_echo_n "(cached) " >&6
3954
else
3955
  ac_build_alias=$build_alias
3956
test "x$ac_build_alias" = x &&
3957
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3958
test "x$ac_build_alias" = x &&
3959 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3960
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3961
   { (exit 1); exit 1; }; }
3962 91 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3963 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3964
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3965
   { (exit 1); exit 1; }; }
3966 91 jeremybenn
 
3967
fi
3968 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3969 91 jeremybenn
$as_echo "$ac_cv_build" >&6; }
3970
case $ac_cv_build in
3971
*-*-*) ;;
3972 121 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3973
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3974
   { (exit 1); exit 1; }; };;
3975 91 jeremybenn
esac
3976
build=$ac_cv_build
3977
ac_save_IFS=$IFS; IFS='-'
3978
set x $ac_cv_build
3979
shift
3980
build_cpu=$1
3981
build_vendor=$2
3982
shift; shift
3983
# Remember, the first character of IFS is used to create $*,
3984
# except with old shells:
3985
build_os=$*
3986
IFS=$ac_save_IFS
3987
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3988
 
3989
 
3990 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3991 91 jeremybenn
$as_echo_n "checking host system type... " >&6; }
3992 121 jeremybenn
if test "${ac_cv_host+set}" = set; then
3993 91 jeremybenn
  $as_echo_n "(cached) " >&6
3994
else
3995
  if test "x$host_alias" = x; then
3996
  ac_cv_host=$ac_cv_build
3997
else
3998
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3999 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4000
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4001
   { (exit 1); exit 1; }; }
4002 91 jeremybenn
fi
4003
 
4004
fi
4005 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4006 91 jeremybenn
$as_echo "$ac_cv_host" >&6; }
4007
case $ac_cv_host in
4008
*-*-*) ;;
4009 121 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4010
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4011
   { (exit 1); exit 1; }; };;
4012 91 jeremybenn
esac
4013
host=$ac_cv_host
4014
ac_save_IFS=$IFS; IFS='-'
4015
set x $ac_cv_host
4016
shift
4017
host_cpu=$1
4018
host_vendor=$2
4019
shift; shift
4020
# Remember, the first character of IFS is used to create $*,
4021
# except with old shells:
4022
host_os=$*
4023
IFS=$ac_save_IFS
4024
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4025
 
4026
 
4027 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
4028 91 jeremybenn
$as_echo_n "checking target system type... " >&6; }
4029 121 jeremybenn
if test "${ac_cv_target+set}" = set; then
4030 91 jeremybenn
  $as_echo_n "(cached) " >&6
4031
else
4032
  if test "x$target_alias" = x; then
4033
  ac_cv_target=$ac_cv_host
4034
else
4035
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4036 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4037
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4038
   { (exit 1); exit 1; }; }
4039 91 jeremybenn
fi
4040
 
4041
fi
4042 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4043 91 jeremybenn
$as_echo "$ac_cv_target" >&6; }
4044
case $ac_cv_target in
4045
*-*-*) ;;
4046 121 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4047
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
4048
   { (exit 1); exit 1; }; };;
4049 91 jeremybenn
esac
4050
target=$ac_cv_target
4051
ac_save_IFS=$IFS; IFS='-'
4052
set x $ac_cv_target
4053
shift
4054
target_cpu=$1
4055
target_vendor=$2
4056
shift; shift
4057
# Remember, the first character of IFS is used to create $*,
4058
# except with old shells:
4059
target_os=$*
4060
IFS=$ac_save_IFS
4061
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4062
 
4063
 
4064
# The aliases save the names the user supplied, while $host etc.
4065
# will get canonicalized.
4066
test -n "$target_alias" &&
4067
  test "$program_prefix$program_suffix$program_transform_name" = \
4068
    NONENONEs,x,x, &&
4069
  program_prefix=${target_alias}-
4070
case `pwd` in
4071
  *\ * | *\     *)
4072 121 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4073 91 jeremybenn
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4074
esac
4075
 
4076
 
4077
 
4078 96 jeremybenn
macro_version='2.2.6b'
4079
macro_revision='1.3017'
4080 91 jeremybenn
 
4081
 
4082
 
4083
 
4084
 
4085
 
4086
 
4087
 
4088
 
4089
 
4090
 
4091
 
4092
 
4093
ltmain="$ac_aux_dir/ltmain.sh"
4094
 
4095 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4096 91 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4097 121 jeremybenn
if test "${ac_cv_path_SED+set}" = set; then
4098 91 jeremybenn
  $as_echo_n "(cached) " >&6
4099
else
4100
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4101
     for ac_i in 1 2 3 4 5 6 7; do
4102
       ac_script="$ac_script$as_nl$ac_script"
4103
     done
4104
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4105 121 jeremybenn
     $as_unset ac_script || ac_script=
4106 91 jeremybenn
     if test -z "$SED"; then
4107
  ac_path_SED_found=false
4108
  # Loop through the user's path and test for each of PROGNAME-LIST
4109
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110
for as_dir in $PATH
4111
do
4112
  IFS=$as_save_IFS
4113
  test -z "$as_dir" && as_dir=.
4114 121 jeremybenn
  for ac_prog in sed gsed; do
4115 91 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4116
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4117
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4118
# Check for GNU ac_path_SED and select it if it is found.
4119
  # Check for GNU $ac_path_SED
4120
case `"$ac_path_SED" --version 2>&1` in
4121
*GNU*)
4122
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4123
*)
4124
  ac_count=0
4125
  $as_echo_n 0123456789 >"conftest.in"
4126
  while :
4127
  do
4128
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4129
    mv "conftest.tmp" "conftest.in"
4130
    cp "conftest.in" "conftest.nl"
4131
    $as_echo '' >> "conftest.nl"
4132
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4133
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4134 121 jeremybenn
    ac_count=`expr $ac_count + 1`
4135 91 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4136
      # Best one so far, save it but keep looking for a better one
4137
      ac_cv_path_SED="$ac_path_SED"
4138
      ac_path_SED_max=$ac_count
4139
    fi
4140
    # 10*(2^10) chars as input seems more than enough
4141
    test $ac_count -gt 10 && break
4142
  done
4143
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4144
esac
4145
 
4146
      $ac_path_SED_found && break 3
4147
    done
4148
  done
4149 121 jeremybenn
done
4150 91 jeremybenn
IFS=$as_save_IFS
4151
  if test -z "$ac_cv_path_SED"; then
4152 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4153
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4154
   { (exit 1); exit 1; }; }
4155 91 jeremybenn
  fi
4156
else
4157
  ac_cv_path_SED=$SED
4158
fi
4159
 
4160
fi
4161 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4162 91 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
4163
 SED="$ac_cv_path_SED"
4164
  rm -f conftest.sed
4165
 
4166
test -z "$SED" && SED=sed
4167
Xsed="$SED -e 1s/^X//"
4168
 
4169
 
4170
 
4171
 
4172
 
4173
 
4174
 
4175
 
4176
 
4177
 
4178
 
4179 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4180 82 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
4181 121 jeremybenn
if test "${ac_cv_path_FGREP+set}" = set; then
4182 82 jeremybenn
  $as_echo_n "(cached) " >&6
4183 19 jeremybenn
else
4184 82 jeremybenn
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4185
   then ac_cv_path_FGREP="$GREP -F"
4186
   else
4187
     if test -z "$FGREP"; then
4188
  ac_path_FGREP_found=false
4189
  # Loop through the user's path and test for each of PROGNAME-LIST
4190
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4192
do
4193
  IFS=$as_save_IFS
4194
  test -z "$as_dir" && as_dir=.
4195 121 jeremybenn
  for ac_prog in fgrep; do
4196 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4197
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4198
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4199
# Check for GNU ac_path_FGREP and select it if it is found.
4200
  # Check for GNU $ac_path_FGREP
4201
case `"$ac_path_FGREP" --version 2>&1` in
4202
*GNU*)
4203
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4204
*)
4205
  ac_count=0
4206
  $as_echo_n 0123456789 >"conftest.in"
4207
  while :
4208
  do
4209
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4210
    mv "conftest.tmp" "conftest.in"
4211
    cp "conftest.in" "conftest.nl"
4212
    $as_echo 'FGREP' >> "conftest.nl"
4213
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215 121 jeremybenn
    ac_count=`expr $ac_count + 1`
4216 82 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4217
      # Best one so far, save it but keep looking for a better one
4218
      ac_cv_path_FGREP="$ac_path_FGREP"
4219
      ac_path_FGREP_max=$ac_count
4220
    fi
4221
    # 10*(2^10) chars as input seems more than enough
4222
    test $ac_count -gt 10 && break
4223
  done
4224
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225
esac
4226
 
4227
      $ac_path_FGREP_found && break 3
4228
    done
4229
  done
4230 121 jeremybenn
done
4231 82 jeremybenn
IFS=$as_save_IFS
4232
  if test -z "$ac_cv_path_FGREP"; then
4233 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4234
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4235
   { (exit 1); exit 1; }; }
4236 82 jeremybenn
  fi
4237
else
4238
  ac_cv_path_FGREP=$FGREP
4239 19 jeremybenn
fi
4240
 
4241
   fi
4242
fi
4243 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4244 82 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
4245
 FGREP="$ac_cv_path_FGREP"
4246 19 jeremybenn
 
4247
 
4248 82 jeremybenn
test -z "$GREP" && GREP=grep
4249 19 jeremybenn
 
4250 82 jeremybenn
 
4251
 
4252
 
4253
 
4254
 
4255
 
4256
 
4257
 
4258
 
4259
 
4260
 
4261
 
4262
 
4263
 
4264
 
4265
 
4266
 
4267
 
4268 19 jeremybenn
# Check whether --with-gnu-ld was given.
4269 121 jeremybenn
if test "${with_gnu_ld+set}" = set; then
4270 19 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4271
else
4272
  with_gnu_ld=no
4273
fi
4274
 
4275
ac_prog=ld
4276
if test "$GCC" = yes; then
4277
  # Check if gcc -print-prog-name=ld gives a path.
4278 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4279 82 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
4280 19 jeremybenn
  case $host in
4281
  *-*-mingw*)
4282
    # gcc leaves a trailing carriage return which upsets mingw
4283
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4284
  *)
4285
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4286
  esac
4287
  case $ac_prog in
4288
    # Accept absolute paths.
4289
    [\\/]* | ?:[\\/]*)
4290
      re_direlt='/[^/][^/]*/\.\./'
4291
      # Canonicalize the pathname of ld
4292 82 jeremybenn
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4293
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4294
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4295 19 jeremybenn
      done
4296
      test -z "$LD" && LD="$ac_prog"
4297
      ;;
4298
  "")
4299
    # If it fails, then pretend we aren't using GCC.
4300
    ac_prog=ld
4301
    ;;
4302
  *)
4303
    # If it is relative, then search for the first ld in PATH.
4304
    with_gnu_ld=unknown
4305
    ;;
4306
  esac
4307
elif test "$with_gnu_ld" = yes; then
4308 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4309 82 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
4310 19 jeremybenn
else
4311 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4312 82 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
4313 19 jeremybenn
fi
4314 121 jeremybenn
if test "${lt_cv_path_LD+set}" = set; then
4315 82 jeremybenn
  $as_echo_n "(cached) " >&6
4316 19 jeremybenn
else
4317
  if test -z "$LD"; then
4318
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4319
  for ac_dir in $PATH; do
4320
    IFS="$lt_save_ifs"
4321
    test -z "$ac_dir" && ac_dir=.
4322
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4323
      lt_cv_path_LD="$ac_dir/$ac_prog"
4324
      # Check to see if the program is GNU ld.  I'd rather use --version,
4325
      # but apparently some variants of GNU ld only accept -v.
4326
      # Break only if it was the GNU/non-GNU ld that we prefer.
4327
      case `"$lt_cv_path_LD" -v 2>&1 
4328
      *GNU* | *'with BFD'*)
4329
        test "$with_gnu_ld" != no && break
4330
        ;;
4331
      *)
4332
        test "$with_gnu_ld" != yes && break
4333
        ;;
4334
      esac
4335
    fi
4336
  done
4337
  IFS="$lt_save_ifs"
4338
else
4339
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4340
fi
4341
fi
4342
 
4343
LD="$lt_cv_path_LD"
4344
if test -n "$LD"; then
4345 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4346 82 jeremybenn
$as_echo "$LD" >&6; }
4347 19 jeremybenn
else
4348 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4349 82 jeremybenn
$as_echo "no" >&6; }
4350 19 jeremybenn
fi
4351 121 jeremybenn
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4352
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4353
   { (exit 1); exit 1; }; }
4354
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4355 82 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4356 121 jeremybenn
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4357 82 jeremybenn
  $as_echo_n "(cached) " >&6
4358 19 jeremybenn
else
4359
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4360
case `$LD -v 2>&1 
4361
*GNU* | *'with BFD'*)
4362
  lt_cv_prog_gnu_ld=yes
4363
  ;;
4364
*)
4365
  lt_cv_prog_gnu_ld=no
4366
  ;;
4367
esac
4368
fi
4369 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4370 82 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4371 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
4372
 
4373
 
4374
 
4375 82 jeremybenn
 
4376
 
4377
 
4378
 
4379
 
4380
 
4381 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4382 82 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4383 121 jeremybenn
if test "${lt_cv_path_NM+set}" = set; then
4384 82 jeremybenn
  $as_echo_n "(cached) " >&6
4385 19 jeremybenn
else
4386
  if test -n "$NM"; then
4387
  # Let the user override the test.
4388
  lt_cv_path_NM="$NM"
4389
else
4390
  lt_nm_to_check="${ac_tool_prefix}nm"
4391
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4392
    lt_nm_to_check="$lt_nm_to_check nm"
4393
  fi
4394
  for lt_tmp_nm in $lt_nm_to_check; do
4395
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4396
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4397
      IFS="$lt_save_ifs"
4398
      test -z "$ac_dir" && ac_dir=.
4399
      tmp_nm="$ac_dir/$lt_tmp_nm"
4400
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4401
        # Check to see if the nm accepts a BSD-compat flag.
4402
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4403
        #   nm: unknown option "B" ignored
4404
        # Tru64's nm complains that /dev/null is an invalid object file
4405
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4406
        */dev/null* | *'Invalid file or object type'*)
4407
          lt_cv_path_NM="$tmp_nm -B"
4408
          break
4409
          ;;
4410
        *)
4411
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4412
          */dev/null*)
4413
            lt_cv_path_NM="$tmp_nm -p"
4414
            break
4415
            ;;
4416
          *)
4417
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4418
            continue # so that we can try to find one that supports BSD flags
4419
            ;;
4420
          esac
4421
          ;;
4422
        esac
4423
      fi
4424
    done
4425
    IFS="$lt_save_ifs"
4426
  done
4427 82 jeremybenn
  : ${lt_cv_path_NM=no}
4428 19 jeremybenn
fi
4429
fi
4430 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4431 82 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
4432
if test "$lt_cv_path_NM" != "no"; then
4433
  NM="$lt_cv_path_NM"
4434
else
4435
  # Didn't find any BSD compatible name lister, look for dumpbin.
4436
  if test -n "$ac_tool_prefix"; then
4437
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4438
  do
4439
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4440
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4441 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4443 121 jeremybenn
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4444 82 jeremybenn
  $as_echo_n "(cached) " >&6
4445
else
4446
  if test -n "$DUMPBIN"; then
4447
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4448
else
4449
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450
for as_dir in $PATH
4451
do
4452
  IFS=$as_save_IFS
4453
  test -z "$as_dir" && as_dir=.
4454 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4455 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4457 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 82 jeremybenn
    break 2
4459
  fi
4460
done
4461 121 jeremybenn
done
4462 82 jeremybenn
IFS=$as_save_IFS
4463 19 jeremybenn
 
4464 82 jeremybenn
fi
4465
fi
4466
DUMPBIN=$ac_cv_prog_DUMPBIN
4467
if test -n "$DUMPBIN"; then
4468 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4469 82 jeremybenn
$as_echo "$DUMPBIN" >&6; }
4470
else
4471 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4472 82 jeremybenn
$as_echo "no" >&6; }
4473
fi
4474
 
4475
 
4476
    test -n "$DUMPBIN" && break
4477
  done
4478
fi
4479
if test -z "$DUMPBIN"; then
4480
  ac_ct_DUMPBIN=$DUMPBIN
4481
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4482
do
4483
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4484
set dummy $ac_prog; ac_word=$2
4485 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4487 121 jeremybenn
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4488 82 jeremybenn
  $as_echo_n "(cached) " >&6
4489
else
4490
  if test -n "$ac_ct_DUMPBIN"; then
4491
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4492
else
4493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494
for as_dir in $PATH
4495
do
4496
  IFS=$as_save_IFS
4497
  test -z "$as_dir" && as_dir=.
4498 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4499 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4500
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4501 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 82 jeremybenn
    break 2
4503
  fi
4504
done
4505 121 jeremybenn
done
4506 82 jeremybenn
IFS=$as_save_IFS
4507
 
4508
fi
4509
fi
4510
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4511
if test -n "$ac_ct_DUMPBIN"; then
4512 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4513 82 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
4514
else
4515 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4516 82 jeremybenn
$as_echo "no" >&6; }
4517
fi
4518
 
4519
 
4520
  test -n "$ac_ct_DUMPBIN" && break
4521
done
4522
 
4523
  if test "x$ac_ct_DUMPBIN" = x; then
4524
    DUMPBIN=":"
4525
  else
4526
    case $cross_compiling:$ac_tool_warned in
4527
yes:)
4528 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4529 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4530
ac_tool_warned=yes ;;
4531
esac
4532
    DUMPBIN=$ac_ct_DUMPBIN
4533
  fi
4534
fi
4535
 
4536
 
4537
  if test "$DUMPBIN" != ":"; then
4538
    NM="$DUMPBIN"
4539
  fi
4540
fi
4541
test -z "$NM" && NM=nm
4542
 
4543
 
4544
 
4545
 
4546
 
4547
 
4548 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4549 82 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4550 121 jeremybenn
if test "${lt_cv_nm_interface+set}" = set; then
4551 82 jeremybenn
  $as_echo_n "(cached) " >&6
4552
else
4553
  lt_cv_nm_interface="BSD nm"
4554
  echo "int some_variable = 0;" > conftest.$ac_ext
4555 124 jeremybenn
  (eval echo "\"\$as_me:4555: $ac_compile\"" >&5)
4556 82 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
4557
  cat conftest.err >&5
4558 124 jeremybenn
  (eval echo "\"\$as_me:4558: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4559 82 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4560
  cat conftest.err >&5
4561 124 jeremybenn
  (eval echo "\"\$as_me:4561: output\"" >&5)
4562 82 jeremybenn
  cat conftest.out >&5
4563
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4564
    lt_cv_nm_interface="MS dumpbin"
4565
  fi
4566
  rm -f conftest*
4567
fi
4568 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4569 82 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
4570
 
4571 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4572 82 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
4573 19 jeremybenn
LN_S=$as_ln_s
4574
if test "$LN_S" = "ln -s"; then
4575 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
4576 82 jeremybenn
$as_echo "yes" >&6; }
4577 19 jeremybenn
else
4578 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4579 82 jeremybenn
$as_echo "no, using $LN_S" >&6; }
4580 19 jeremybenn
fi
4581
 
4582 82 jeremybenn
# find the maximum length of command line arguments
4583 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4584 82 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4585 121 jeremybenn
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4586 82 jeremybenn
  $as_echo_n "(cached) " >&6
4587
else
4588
    i=0
4589
  teststring="ABCD"
4590
 
4591
  case $build_os in
4592
  msdosdjgpp*)
4593
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4594
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4595
    # during glob expansion).  Even if it were fixed, the result of this
4596
    # check would be larger than it should be.
4597
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4598
    ;;
4599
 
4600
  gnu*)
4601
    # Under GNU Hurd, this test is not required because there is
4602
    # no limit to the length of command line arguments.
4603
    # Libtool will interpret -1 as no limit whatsoever
4604
    lt_cv_sys_max_cmd_len=-1;
4605
    ;;
4606
 
4607
  cygwin* | mingw* | cegcc*)
4608
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4609
    # about 5 minutes as the teststring grows exponentially.
4610
    # Worse, since 9x/ME are not pre-emptively multitasking,
4611
    # you end up with a "frozen" computer, even though with patience
4612
    # the test eventually succeeds (with a max line length of 256k).
4613
    # Instead, let's just punt: use the minimum linelength reported by
4614
    # all of the supported platforms: 8192 (on NT/2K/XP).
4615
    lt_cv_sys_max_cmd_len=8192;
4616
    ;;
4617
 
4618
  amigaos*)
4619
    # On AmigaOS with pdksh, this test takes hours, literally.
4620
    # So we just punt and use a minimum line length of 8192.
4621
    lt_cv_sys_max_cmd_len=8192;
4622
    ;;
4623
 
4624
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4625
    # This has been around since 386BSD, at least.  Likely further.
4626
    if test -x /sbin/sysctl; then
4627
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4628
    elif test -x /usr/sbin/sysctl; then
4629
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4630
    else
4631
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4632
    fi
4633
    # And add a safety zone
4634
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4635
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4636
    ;;
4637
 
4638
  interix*)
4639
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4640
    lt_cv_sys_max_cmd_len=196608
4641
    ;;
4642
 
4643
  osf*)
4644
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4645
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4646
    # nice to cause kernel panics so lets avoid the loop below.
4647
    # First set a reasonable default.
4648
    lt_cv_sys_max_cmd_len=16384
4649
    #
4650
    if test -x /sbin/sysconfig; then
4651
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4652
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4653
      esac
4654
    fi
4655
    ;;
4656
  sco3.2v5*)
4657
    lt_cv_sys_max_cmd_len=102400
4658
    ;;
4659
  sysv5* | sco5v6* | sysv4.2uw2*)
4660
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4661
    if test -n "$kargmax"; then
4662
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4663
    else
4664
      lt_cv_sys_max_cmd_len=32768
4665
    fi
4666
    ;;
4667
  *)
4668
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4669
    if test -n "$lt_cv_sys_max_cmd_len"; then
4670
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4671
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4672
    else
4673
      # Make teststring a little bigger before we do anything with it.
4674
      # a 1K string should be a reasonable start.
4675
      for i in 1 2 3 4 5 6 7 8 ; do
4676
        teststring=$teststring$teststring
4677
      done
4678
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4679
      # If test is not a shell built-in, we'll probably end up computing a
4680
      # maximum length that is only half of the actual maximum length, but
4681
      # we can't tell.
4682
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4683
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4684
              test $i != 17 # 1/2 MB should be enough
4685
      do
4686
        i=`expr $i + 1`
4687
        teststring=$teststring$teststring
4688
      done
4689
      # Only check the string length outside the loop.
4690
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4691
      teststring=
4692
      # Add a significant safety factor because C++ compilers can tack on
4693
      # massive amounts of additional arguments before passing them to the
4694
      # linker.  It appears as though 1/2 is a usable value.
4695
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4696
    fi
4697
    ;;
4698
  esac
4699
 
4700
fi
4701
 
4702
if test -n $lt_cv_sys_max_cmd_len ; then
4703 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4704 82 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4705
else
4706 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: none" >&5
4707 82 jeremybenn
$as_echo "none" >&6; }
4708
fi
4709
max_cmd_len=$lt_cv_sys_max_cmd_len
4710
 
4711
 
4712
 
4713
 
4714
 
4715
 
4716
: ${CP="cp -f"}
4717
: ${MV="mv -f"}
4718
: ${RM="rm -f"}
4719
 
4720 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4721 82 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4722
# Try some XSI features
4723
xsi_shell=no
4724
( _lt_dummy="a/b/c"
4725
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4726
      = c,a/b,, \
4727
    && eval 'test $(( 1 + 1 )) -eq 2 \
4728
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4729
  && xsi_shell=yes
4730 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4731 82 jeremybenn
$as_echo "$xsi_shell" >&6; }
4732
 
4733
 
4734 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4735 82 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4736
lt_shell_append=no
4737
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4738
    >/dev/null 2>&1 \
4739
  && lt_shell_append=yes
4740 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4741 82 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4742
 
4743
 
4744
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4745
  lt_unset=unset
4746
else
4747
  lt_unset=false
4748
fi
4749
 
4750
 
4751
 
4752
 
4753
 
4754
# test EBCDIC or ASCII
4755
case `echo X|tr X '\101'` in
4756
 A) # ASCII based system
4757
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4758
  lt_SP2NL='tr \040 \012'
4759
  lt_NL2SP='tr \015\012 \040\040'
4760
  ;;
4761
 *) # EBCDIC based system
4762
  lt_SP2NL='tr \100 \n'
4763
  lt_NL2SP='tr \r\n \100\100'
4764
  ;;
4765
esac
4766
 
4767
 
4768
 
4769
 
4770
 
4771
 
4772
 
4773
 
4774
 
4775 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4776 82 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4777 121 jeremybenn
if test "${lt_cv_ld_reload_flag+set}" = set; then
4778 82 jeremybenn
  $as_echo_n "(cached) " >&6
4779
else
4780
  lt_cv_ld_reload_flag='-r'
4781
fi
4782 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4783 82 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4784
reload_flag=$lt_cv_ld_reload_flag
4785
case $reload_flag in
4786
"" | " "*) ;;
4787
*) reload_flag=" $reload_flag" ;;
4788
esac
4789
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4790
case $host_os in
4791
  darwin*)
4792
    if test "$GCC" = yes; then
4793
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4794
    else
4795
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4796
    fi
4797
    ;;
4798
esac
4799
 
4800
 
4801
 
4802
 
4803
 
4804
 
4805
 
4806
 
4807
 
4808
if test -n "$ac_tool_prefix"; then
4809
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4810
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4811 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4813 121 jeremybenn
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4814 82 jeremybenn
  $as_echo_n "(cached) " >&6
4815
else
4816
  if test -n "$OBJDUMP"; then
4817
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4818
else
4819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820
for as_dir in $PATH
4821
do
4822
  IFS=$as_save_IFS
4823
  test -z "$as_dir" && as_dir=.
4824 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4825 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4827 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 82 jeremybenn
    break 2
4829
  fi
4830
done
4831 121 jeremybenn
done
4832 82 jeremybenn
IFS=$as_save_IFS
4833
 
4834
fi
4835
fi
4836
OBJDUMP=$ac_cv_prog_OBJDUMP
4837
if test -n "$OBJDUMP"; then
4838 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4839 82 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4840
else
4841 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4842 82 jeremybenn
$as_echo "no" >&6; }
4843
fi
4844
 
4845
 
4846
fi
4847
if test -z "$ac_cv_prog_OBJDUMP"; then
4848
  ac_ct_OBJDUMP=$OBJDUMP
4849
  # Extract the first word of "objdump", so it can be a program name with args.
4850
set dummy objdump; ac_word=$2
4851 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4853 121 jeremybenn
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4854 82 jeremybenn
  $as_echo_n "(cached) " >&6
4855
else
4856
  if test -n "$ac_ct_OBJDUMP"; then
4857
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4858
else
4859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860
for as_dir in $PATH
4861
do
4862
  IFS=$as_save_IFS
4863
  test -z "$as_dir" && as_dir=.
4864 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4865 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4867 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 82 jeremybenn
    break 2
4869
  fi
4870
done
4871 121 jeremybenn
done
4872 82 jeremybenn
IFS=$as_save_IFS
4873
 
4874
fi
4875
fi
4876
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4877
if test -n "$ac_ct_OBJDUMP"; then
4878 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4879 82 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4880
else
4881 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4882 82 jeremybenn
$as_echo "no" >&6; }
4883
fi
4884
 
4885
  if test "x$ac_ct_OBJDUMP" = x; then
4886
    OBJDUMP="false"
4887
  else
4888
    case $cross_compiling:$ac_tool_warned in
4889
yes:)
4890 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4891 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892
ac_tool_warned=yes ;;
4893
esac
4894
    OBJDUMP=$ac_ct_OBJDUMP
4895
  fi
4896
else
4897
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4898
fi
4899
 
4900
test -z "$OBJDUMP" && OBJDUMP=objdump
4901
 
4902
 
4903
 
4904
 
4905
 
4906
 
4907
 
4908
 
4909
 
4910 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4911 82 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4912 121 jeremybenn
if test "${lt_cv_deplibs_check_method+set}" = set; then
4913 82 jeremybenn
  $as_echo_n "(cached) " >&6
4914 19 jeremybenn
else
4915
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4916
lt_cv_file_magic_test_file=
4917
lt_cv_deplibs_check_method='unknown'
4918
# Need to set the preceding variable on all platforms that support
4919
# interlibrary dependencies.
4920
# 'none' -- dependencies not supported.
4921
# `unknown' -- same as none, but documents that we really don't know.
4922
# 'pass_all' -- all dependencies passed with no checks.
4923
# 'test_compile' -- check by making test program.
4924
# 'file_magic [[regex]]' -- check by looking for files in library path
4925
# which responds to the $file_magic_cmd with a given extended regex.
4926
# If you have `file' or equivalent on your system and you're not sure
4927
# whether `pass_all' will *always* work, you probably want this one.
4928
 
4929
case $host_os in
4930 82 jeremybenn
aix[4-9]*)
4931 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4932
  ;;
4933
 
4934
beos*)
4935
  lt_cv_deplibs_check_method=pass_all
4936
  ;;
4937
 
4938
bsdi[45]*)
4939
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4940
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4941
  lt_cv_file_magic_test_file=/shlib/libc.so
4942
  ;;
4943
 
4944
cygwin*)
4945
  # func_win32_libid is a shell function defined in ltmain.sh
4946
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4947
  lt_cv_file_magic_cmd='func_win32_libid'
4948
  ;;
4949
 
4950
mingw* | pw32*)
4951
  # Base MSYS/MinGW do not provide the 'file' command needed by
4952
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4953
  # unless we find 'file', for example because we are cross-compiling.
4954
  if ( file / ) >/dev/null 2>&1; then
4955
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4956
    lt_cv_file_magic_cmd='func_win32_libid'
4957
  else
4958
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4959
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4960
  fi
4961
  ;;
4962
 
4963 82 jeremybenn
cegcc)
4964
  # use the weaker test based on 'objdump'. See mingw*.
4965
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4966
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4967
  ;;
4968
 
4969 19 jeremybenn
darwin* | rhapsody*)
4970
  lt_cv_deplibs_check_method=pass_all
4971
  ;;
4972
 
4973
freebsd* | dragonfly*)
4974 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4975 19 jeremybenn
    case $host_cpu in
4976
    i*86 )
4977
      # Not sure whether the presence of OpenBSD here was a mistake.
4978
      # Let's accept both of them until this is cleared up.
4979
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4980
      lt_cv_file_magic_cmd=/usr/bin/file
4981
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4982
      ;;
4983
    esac
4984
  else
4985
    lt_cv_deplibs_check_method=pass_all
4986
  fi
4987
  ;;
4988
 
4989
gnu*)
4990
  lt_cv_deplibs_check_method=pass_all
4991
  ;;
4992
 
4993
hpux10.20* | hpux11*)
4994
  lt_cv_file_magic_cmd=/usr/bin/file
4995
  case $host_cpu in
4996
  ia64*)
4997
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4998
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4999
    ;;
5000
  hppa*64*)
5001
    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]'
5002
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5003
    ;;
5004
  *)
5005
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5006
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5007
    ;;
5008
  esac
5009
  ;;
5010
 
5011
interix[3-9]*)
5012
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5013
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5014
  ;;
5015
 
5016
irix5* | irix6* | nonstopux*)
5017
  case $LD in
5018
  *-32|*"-32 ") libmagic=32-bit;;
5019
  *-n32|*"-n32 ") libmagic=N32;;
5020
  *-64|*"-64 ") libmagic=64-bit;;
5021
  *) libmagic=never-match;;
5022
  esac
5023
  lt_cv_deplibs_check_method=pass_all
5024
  ;;
5025
 
5026
# This must be Linux ELF.
5027
linux* | k*bsd*-gnu)
5028
  lt_cv_deplibs_check_method=pass_all
5029
  ;;
5030
 
5031 93 jeremybenn
netbsd* | netbsdelf*-gnu)
5032 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5033 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5034
  else
5035
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5036
  fi
5037
  ;;
5038
 
5039
newos6*)
5040
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5041
  lt_cv_file_magic_cmd=/usr/bin/file
5042
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5043
  ;;
5044
 
5045 82 jeremybenn
*nto* | *qnx*)
5046
  lt_cv_deplibs_check_method=pass_all
5047 19 jeremybenn
  ;;
5048
 
5049
openbsd*)
5050 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5051 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5052
  else
5053
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5054
  fi
5055
  ;;
5056
 
5057
osf3* | osf4* | osf5*)
5058
  lt_cv_deplibs_check_method=pass_all
5059
  ;;
5060
 
5061
rdos*)
5062
  lt_cv_deplibs_check_method=pass_all
5063
  ;;
5064
 
5065
solaris*)
5066
  lt_cv_deplibs_check_method=pass_all
5067
  ;;
5068
 
5069 82 jeremybenn
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5070
  lt_cv_deplibs_check_method=pass_all
5071
  ;;
5072
 
5073 19 jeremybenn
sysv4 | sysv4.3*)
5074
  case $host_vendor in
5075
  motorola)
5076
    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]'
5077
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5078
    ;;
5079
  ncr)
5080
    lt_cv_deplibs_check_method=pass_all
5081
    ;;
5082
  sequent)
5083
    lt_cv_file_magic_cmd='/bin/file'
5084
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5085
    ;;
5086
  sni)
5087
    lt_cv_file_magic_cmd='/bin/file'
5088
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5089
    lt_cv_file_magic_test_file=/lib/libc.so
5090
    ;;
5091
  siemens)
5092
    lt_cv_deplibs_check_method=pass_all
5093
    ;;
5094
  pc)
5095
    lt_cv_deplibs_check_method=pass_all
5096
    ;;
5097
  esac
5098
  ;;
5099
 
5100 82 jeremybenn
tpf*)
5101 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
5102
  ;;
5103
esac
5104
 
5105
fi
5106 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5107 82 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5108 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
5109
deplibs_check_method=$lt_cv_deplibs_check_method
5110
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5111
 
5112
 
5113
 
5114
 
5115 82 jeremybenn
 
5116
 
5117
 
5118
 
5119
 
5120
 
5121
 
5122
 
5123
if test -n "$ac_tool_prefix"; then
5124
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5125
set dummy ${ac_tool_prefix}ar; ac_word=$2
5126 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5127 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5128 121 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then
5129 82 jeremybenn
  $as_echo_n "(cached) " >&6
5130
else
5131
  if test -n "$AR"; then
5132
  ac_cv_prog_AR="$AR" # Let the user override the test.
5133
else
5134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135
for as_dir in $PATH
5136
do
5137
  IFS=$as_save_IFS
5138
  test -z "$as_dir" && as_dir=.
5139 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5140 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5142 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 82 jeremybenn
    break 2
5144
  fi
5145
done
5146 121 jeremybenn
done
5147 82 jeremybenn
IFS=$as_save_IFS
5148
 
5149
fi
5150
fi
5151
AR=$ac_cv_prog_AR
5152
if test -n "$AR"; then
5153 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5154 82 jeremybenn
$as_echo "$AR" >&6; }
5155
else
5156 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5157 82 jeremybenn
$as_echo "no" >&6; }
5158
fi
5159
 
5160
 
5161
fi
5162
if test -z "$ac_cv_prog_AR"; then
5163
  ac_ct_AR=$AR
5164
  # Extract the first word of "ar", so it can be a program name with args.
5165
set dummy ar; ac_word=$2
5166 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5168 121 jeremybenn
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5169 82 jeremybenn
  $as_echo_n "(cached) " >&6
5170
else
5171
  if test -n "$ac_ct_AR"; then
5172
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5173
else
5174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175
for as_dir in $PATH
5176
do
5177
  IFS=$as_save_IFS
5178
  test -z "$as_dir" && as_dir=.
5179 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5180 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181
    ac_cv_prog_ac_ct_AR="ar"
5182 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 82 jeremybenn
    break 2
5184
  fi
5185
done
5186 121 jeremybenn
done
5187 82 jeremybenn
IFS=$as_save_IFS
5188
 
5189
fi
5190
fi
5191
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5192
if test -n "$ac_ct_AR"; then
5193 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5194 82 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
5195
else
5196 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5197 82 jeremybenn
$as_echo "no" >&6; }
5198
fi
5199
 
5200
  if test "x$ac_ct_AR" = x; then
5201
    AR="false"
5202
  else
5203
    case $cross_compiling:$ac_tool_warned in
5204
yes:)
5205 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5206 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5207
ac_tool_warned=yes ;;
5208
esac
5209
    AR=$ac_ct_AR
5210
  fi
5211
else
5212
  AR="$ac_cv_prog_AR"
5213
fi
5214
 
5215
test -z "$AR" && AR=ar
5216
test -z "$AR_FLAGS" && AR_FLAGS=cru
5217
 
5218
 
5219
 
5220
 
5221
 
5222
 
5223
 
5224
 
5225
 
5226
 
5227
 
5228
if test -n "$ac_tool_prefix"; then
5229
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5230
set dummy ${ac_tool_prefix}strip; ac_word=$2
5231 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5233 121 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then
5234 82 jeremybenn
  $as_echo_n "(cached) " >&6
5235
else
5236
  if test -n "$STRIP"; then
5237
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5238
else
5239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240
for as_dir in $PATH
5241
do
5242
  IFS=$as_save_IFS
5243
  test -z "$as_dir" && as_dir=.
5244 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5245 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5247 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 82 jeremybenn
    break 2
5249
  fi
5250
done
5251 121 jeremybenn
done
5252 82 jeremybenn
IFS=$as_save_IFS
5253
 
5254
fi
5255
fi
5256
STRIP=$ac_cv_prog_STRIP
5257
if test -n "$STRIP"; then
5258 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5259 82 jeremybenn
$as_echo "$STRIP" >&6; }
5260
else
5261 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5262 82 jeremybenn
$as_echo "no" >&6; }
5263
fi
5264
 
5265
 
5266
fi
5267
if test -z "$ac_cv_prog_STRIP"; then
5268
  ac_ct_STRIP=$STRIP
5269
  # Extract the first word of "strip", so it can be a program name with args.
5270
set dummy strip; ac_word=$2
5271 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5272 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5273 121 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5274 82 jeremybenn
  $as_echo_n "(cached) " >&6
5275
else
5276
  if test -n "$ac_ct_STRIP"; then
5277
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5278
else
5279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280
for as_dir in $PATH
5281
do
5282
  IFS=$as_save_IFS
5283
  test -z "$as_dir" && as_dir=.
5284 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5285 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5286
    ac_cv_prog_ac_ct_STRIP="strip"
5287 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 82 jeremybenn
    break 2
5289
  fi
5290
done
5291 121 jeremybenn
done
5292 82 jeremybenn
IFS=$as_save_IFS
5293
 
5294
fi
5295
fi
5296
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5297
if test -n "$ac_ct_STRIP"; then
5298 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5299 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
5300
else
5301 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5302 82 jeremybenn
$as_echo "no" >&6; }
5303
fi
5304
 
5305
  if test "x$ac_ct_STRIP" = x; then
5306
    STRIP=":"
5307
  else
5308
    case $cross_compiling:$ac_tool_warned in
5309
yes:)
5310 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5311 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5312
ac_tool_warned=yes ;;
5313
esac
5314
    STRIP=$ac_ct_STRIP
5315
  fi
5316
else
5317
  STRIP="$ac_cv_prog_STRIP"
5318
fi
5319
 
5320
test -z "$STRIP" && STRIP=:
5321
 
5322
 
5323
 
5324
 
5325
 
5326
 
5327
if test -n "$ac_tool_prefix"; then
5328
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5329
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5330 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5332 121 jeremybenn
if test "${ac_cv_prog_RANLIB+set}" = set; then
5333 82 jeremybenn
  $as_echo_n "(cached) " >&6
5334
else
5335
  if test -n "$RANLIB"; then
5336
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5337
else
5338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339
for as_dir in $PATH
5340
do
5341
  IFS=$as_save_IFS
5342
  test -z "$as_dir" && as_dir=.
5343 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5344 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5345
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5346 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 82 jeremybenn
    break 2
5348
  fi
5349
done
5350 121 jeremybenn
done
5351 82 jeremybenn
IFS=$as_save_IFS
5352
 
5353
fi
5354
fi
5355
RANLIB=$ac_cv_prog_RANLIB
5356
if test -n "$RANLIB"; then
5357 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5358 82 jeremybenn
$as_echo "$RANLIB" >&6; }
5359
else
5360 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5361 82 jeremybenn
$as_echo "no" >&6; }
5362
fi
5363
 
5364
 
5365
fi
5366
if test -z "$ac_cv_prog_RANLIB"; then
5367
  ac_ct_RANLIB=$RANLIB
5368
  # Extract the first word of "ranlib", so it can be a program name with args.
5369
set dummy ranlib; ac_word=$2
5370 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5371 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5372 121 jeremybenn
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5373 82 jeremybenn
  $as_echo_n "(cached) " >&6
5374
else
5375
  if test -n "$ac_ct_RANLIB"; then
5376
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5377
else
5378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379
for as_dir in $PATH
5380
do
5381
  IFS=$as_save_IFS
5382
  test -z "$as_dir" && as_dir=.
5383 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5384 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5386 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 82 jeremybenn
    break 2
5388
  fi
5389
done
5390 121 jeremybenn
done
5391 82 jeremybenn
IFS=$as_save_IFS
5392
 
5393
fi
5394
fi
5395
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5396
if test -n "$ac_ct_RANLIB"; then
5397 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5398 82 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
5399
else
5400 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5401 82 jeremybenn
$as_echo "no" >&6; }
5402
fi
5403
 
5404
  if test "x$ac_ct_RANLIB" = x; then
5405
    RANLIB=":"
5406
  else
5407
    case $cross_compiling:$ac_tool_warned in
5408
yes:)
5409 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5410 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5411
ac_tool_warned=yes ;;
5412
esac
5413
    RANLIB=$ac_ct_RANLIB
5414
  fi
5415
else
5416
  RANLIB="$ac_cv_prog_RANLIB"
5417
fi
5418
 
5419
test -z "$RANLIB" && RANLIB=:
5420
 
5421
 
5422
 
5423
 
5424
 
5425
 
5426
# Determine commands to create old-style static archives.
5427
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5428
old_postinstall_cmds='chmod 644 $oldlib'
5429
old_postuninstall_cmds=
5430
 
5431
if test -n "$RANLIB"; then
5432
  case $host_os in
5433
  openbsd*)
5434
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5435
    ;;
5436
  *)
5437
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5438
    ;;
5439
  esac
5440
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5441
fi
5442
 
5443
 
5444
 
5445
 
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 19 jeremybenn
# If no C compiler was specified, use CC.
5477
LTCC=${LTCC-"$CC"}
5478
 
5479
# If no C compiler flags were specified, use CFLAGS.
5480
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5481
 
5482
# Allow CC to be a program name with arguments.
5483
compiler=$CC
5484
 
5485
 
5486 82 jeremybenn
# Check for command to grab the raw symbol name followed by C symbol from nm.
5487 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5488 82 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5489 121 jeremybenn
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5490 82 jeremybenn
  $as_echo_n "(cached) " >&6
5491
else
5492
 
5493
# These are sane defaults that work on at least a few old systems.
5494
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5495
 
5496
# Character class describing NM global symbol codes.
5497
symcode='[BCDEGRST]'
5498
 
5499
# Regexp to match symbols that can be accessed directly from C.
5500
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5501
 
5502
# Define system-specific variables.
5503
case $host_os in
5504
aix*)
5505
  symcode='[BCDT]'
5506
  ;;
5507
cygwin* | mingw* | pw32* | cegcc*)
5508
  symcode='[ABCDGISTW]'
5509
  ;;
5510
hpux*)
5511
  if test "$host_cpu" = ia64; then
5512
    symcode='[ABCDEGRST]'
5513
  fi
5514
  ;;
5515
irix* | nonstopux*)
5516
  symcode='[BCDEGRST]'
5517
  ;;
5518
osf*)
5519
  symcode='[BCDEGQRST]'
5520
  ;;
5521
solaris*)
5522
  symcode='[BDRT]'
5523
  ;;
5524
sco3.2v5*)
5525
  symcode='[DT]'
5526
  ;;
5527
sysv4.2uw2*)
5528
  symcode='[DT]'
5529
  ;;
5530
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5531
  symcode='[ABDT]'
5532
  ;;
5533
sysv4)
5534
  symcode='[DFNSTU]'
5535
  ;;
5536
esac
5537
 
5538
# If we're using GNU nm, then use its standard symbol codes.
5539
case `$NM -V 2>&1` in
5540
*GNU* | *'with BFD'*)
5541
  symcode='[ABCDGIRSTW]' ;;
5542
esac
5543
 
5544
# Transform an extracted symbol line into a proper C declaration.
5545
# Some systems (esp. on ia64) link data and code symbols differently,
5546
# so use this general approach.
5547
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5548
 
5549
# Transform an extracted symbol line into symbol name and symbol address
5550
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5551
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'"
5552
 
5553
# Handle CRLF in mingw tool chain
5554
opt_cr=
5555
case $build_os in
5556
mingw*)
5557
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5558
  ;;
5559
esac
5560
 
5561
# Try without a prefix underscore, then with it.
5562
for ac_symprfx in "" "_"; do
5563
 
5564
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5565
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5566
 
5567
  # Write the raw and C identifiers.
5568
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5569
    # Fake it for dumpbin and say T for any non-static function
5570
    # and D for any global variable.
5571
    # Also find C++ and __fastcall symbols from MSVC++,
5572
    # which start with @ or ?.
5573
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5574
"     {last_section=section; section=\$ 3};"\
5575
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5576
"     \$ 0!~/External *\|/{next};"\
5577
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5578
"     {if(hide[section]) next};"\
5579
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5580
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5581
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5582
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5583
"     ' prfx=^$ac_symprfx"
5584
  else
5585
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5586
  fi
5587
 
5588
  # Check to see that the pipe works correctly.
5589
  pipe_works=no
5590
 
5591
  rm -f conftest*
5592
  cat > conftest.$ac_ext <<_LT_EOF
5593
#ifdef __cplusplus
5594
extern "C" {
5595
#endif
5596
char nm_test_var;
5597
void nm_test_func(void);
5598
void nm_test_func(void){}
5599
#ifdef __cplusplus
5600
}
5601
#endif
5602
int main(){nm_test_var='a';nm_test_func();return(0);}
5603
_LT_EOF
5604
 
5605 121 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606 82 jeremybenn
  (eval $ac_compile) 2>&5
5607
  ac_status=$?
5608 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609
  (exit $ac_status); }; then
5610 82 jeremybenn
    # Now try to grab the symbols.
5611
    nlist=conftest.nm
5612 121 jeremybenn
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5613 82 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5614
  ac_status=$?
5615 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616
  (exit $ac_status); } && test -s "$nlist"; then
5617 82 jeremybenn
      # Try sorting and uniquifying the output.
5618
      if sort "$nlist" | uniq > "$nlist"T; then
5619
        mv -f "$nlist"T "$nlist"
5620
      else
5621
        rm -f "$nlist"T
5622
      fi
5623
 
5624
      # Make sure that we snagged all the symbols we need.
5625
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5626
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5627
          cat <<_LT_EOF > conftest.$ac_ext
5628
#ifdef __cplusplus
5629
extern "C" {
5630
#endif
5631
 
5632
_LT_EOF
5633
          # Now generate the symbol file.
5634
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5635
 
5636
          cat <<_LT_EOF >> conftest.$ac_ext
5637
 
5638
/* The mapping between symbol names and symbols.  */
5639
const struct {
5640
  const char *name;
5641
  void       *address;
5642
}
5643
lt__PROGRAM__LTX_preloaded_symbols[] =
5644
{
5645
  { "@PROGRAM@", (void *) 0 },
5646
_LT_EOF
5647
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5648
          cat <<\_LT_EOF >> conftest.$ac_ext
5649
  {0, (void *) 0}
5650
};
5651
 
5652
/* This works around a problem in FreeBSD linker */
5653
#ifdef FREEBSD_WORKAROUND
5654
static const void *lt_preloaded_setup() {
5655
  return lt__PROGRAM__LTX_preloaded_symbols;
5656
}
5657
#endif
5658
 
5659
#ifdef __cplusplus
5660
}
5661
#endif
5662
_LT_EOF
5663
          # Now try linking the two files.
5664
          mv conftest.$ac_objext conftstm.$ac_objext
5665
          lt_save_LIBS="$LIBS"
5666
          lt_save_CFLAGS="$CFLAGS"
5667
          LIBS="conftstm.$ac_objext"
5668
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5669 121 jeremybenn
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670 82 jeremybenn
  (eval $ac_link) 2>&5
5671
  ac_status=$?
5672 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5674 82 jeremybenn
            pipe_works=yes
5675
          fi
5676
          LIBS="$lt_save_LIBS"
5677
          CFLAGS="$lt_save_CFLAGS"
5678
        else
5679
          echo "cannot find nm_test_func in $nlist" >&5
5680
        fi
5681
      else
5682
        echo "cannot find nm_test_var in $nlist" >&5
5683
      fi
5684
    else
5685
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5686
    fi
5687
  else
5688
    echo "$progname: failed program was:" >&5
5689
    cat conftest.$ac_ext >&5
5690
  fi
5691
  rm -rf conftest* conftst*
5692
 
5693
  # Do not use the global_symbol_pipe unless it works.
5694
  if test "$pipe_works" = yes; then
5695
    break
5696
  else
5697
    lt_cv_sys_global_symbol_pipe=
5698
  fi
5699
done
5700
 
5701
fi
5702
 
5703
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5704
  lt_cv_sys_global_symbol_to_cdecl=
5705
fi
5706
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5707 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: failed" >&5
5708 82 jeremybenn
$as_echo "failed" >&6; }
5709
else
5710 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: ok" >&5
5711 82 jeremybenn
$as_echo "ok" >&6; }
5712
fi
5713
 
5714
 
5715
 
5716
 
5717
 
5718
 
5719
 
5720
 
5721
 
5722
 
5723
 
5724
 
5725
 
5726
 
5727
 
5728
 
5729
 
5730
 
5731
 
5732
 
5733
 
5734
 
5735 19 jeremybenn
# Check whether --enable-libtool-lock was given.
5736 121 jeremybenn
if test "${enable_libtool_lock+set}" = set; then
5737 19 jeremybenn
  enableval=$enable_libtool_lock;
5738
fi
5739
 
5740
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5741
 
5742
# Some flags need to be propagated to the compiler or linker for good
5743
# libtool support.
5744
case $host in
5745
ia64-*-hpux*)
5746
  # Find out which ABI we are using.
5747
  echo 'int i;' > conftest.$ac_ext
5748 121 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749 19 jeremybenn
  (eval $ac_compile) 2>&5
5750
  ac_status=$?
5751 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752
  (exit $ac_status); }; then
5753 19 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
5754 82 jeremybenn
      *ELF-32*)
5755
        HPUX_IA64_MODE="32"
5756
        ;;
5757
      *ELF-64*)
5758
        HPUX_IA64_MODE="64"
5759
        ;;
5760 19 jeremybenn
    esac
5761
  fi
5762
  rm -rf conftest*
5763
  ;;
5764
*-*-irix6*)
5765
  # Find out which ABI we are using.
5766 124 jeremybenn
  echo '#line 5766 "configure"' > conftest.$ac_ext
5767 121 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768 19 jeremybenn
  (eval $ac_compile) 2>&5
5769
  ac_status=$?
5770 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771
  (exit $ac_status); }; then
5772 82 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5773
      case `/usr/bin/file conftest.$ac_objext` in
5774
        *32-bit*)
5775
          LD="${LD-ld} -melf32bsmip"
5776
          ;;
5777
        *N32*)
5778
          LD="${LD-ld} -melf32bmipn32"
5779
          ;;
5780
        *64-bit*)
5781
          LD="${LD-ld} -melf64bmip"
5782
        ;;
5783
      esac
5784
    else
5785
      case `/usr/bin/file conftest.$ac_objext` in
5786
        *32-bit*)
5787
          LD="${LD-ld} -32"
5788
          ;;
5789
        *N32*)
5790
          LD="${LD-ld} -n32"
5791
          ;;
5792
        *64-bit*)
5793
          LD="${LD-ld} -64"
5794
          ;;
5795
      esac
5796
    fi
5797 19 jeremybenn
  fi
5798
  rm -rf conftest*
5799
  ;;
5800
 
5801
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5802 82 jeremybenn
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5803 19 jeremybenn
  # Find out which ABI we are using.
5804
  echo 'int i;' > conftest.$ac_ext
5805 121 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806 19 jeremybenn
  (eval $ac_compile) 2>&5
5807
  ac_status=$?
5808 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809
  (exit $ac_status); }; then
5810 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5811 82 jeremybenn
      *32-bit*)
5812
        case $host in
5813
          x86_64-*kfreebsd*-gnu)
5814
            LD="${LD-ld} -m elf_i386_fbsd"
5815
            ;;
5816
          x86_64-*linux*)
5817
            LD="${LD-ld} -m elf_i386"
5818
            ;;
5819
          ppc64-*linux*|powerpc64-*linux*)
5820
            LD="${LD-ld} -m elf32ppclinux"
5821
            ;;
5822
          s390x-*linux*)
5823
            LD="${LD-ld} -m elf_s390"
5824
            ;;
5825
          sparc64-*linux*)
5826
            LD="${LD-ld} -m elf32_sparc"
5827
            ;;
5828
        esac
5829
        ;;
5830
      *64-bit*)
5831
        case $host in
5832
          x86_64-*kfreebsd*-gnu)
5833
            LD="${LD-ld} -m elf_x86_64_fbsd"
5834
            ;;
5835
          x86_64-*linux*)
5836
            LD="${LD-ld} -m elf_x86_64"
5837
            ;;
5838
          ppc*-*linux*|powerpc*-*linux*)
5839
            LD="${LD-ld} -m elf64ppc"
5840
            ;;
5841
          s390*-*linux*|s390*-*tpf*)
5842
            LD="${LD-ld} -m elf64_s390"
5843
            ;;
5844
          sparc*-*linux*)
5845
            LD="${LD-ld} -m elf64_sparc"
5846
            ;;
5847
        esac
5848
        ;;
5849 19 jeremybenn
    esac
5850
  fi
5851
  rm -rf conftest*
5852
  ;;
5853
 
5854
*-*-sco3.2v5*)
5855
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5856
  SAVE_CFLAGS="$CFLAGS"
5857
  CFLAGS="$CFLAGS -belf"
5858 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5859 82 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5860 121 jeremybenn
if test "${lt_cv_cc_needs_belf+set}" = set; then
5861 82 jeremybenn
  $as_echo_n "(cached) " >&6
5862 19 jeremybenn
else
5863
  ac_ext=c
5864
ac_cpp='$CPP $CPPFLAGS'
5865
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5868
 
5869 121 jeremybenn
     cat >conftest.$ac_ext <<_ACEOF
5870
/* confdefs.h.  */
5871
_ACEOF
5872
cat confdefs.h >>conftest.$ac_ext
5873
cat >>conftest.$ac_ext <<_ACEOF
5874 19 jeremybenn
/* end confdefs.h.  */
5875
 
5876
int
5877
main ()
5878
{
5879
 
5880
  ;
5881
  return 0;
5882
}
5883
_ACEOF
5884 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
5885
if { (ac_try="$ac_link"
5886
case "(($ac_try" in
5887
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888
  *) ac_try_echo=$ac_try;;
5889
esac
5890
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5891
$as_echo "$ac_try_echo") >&5
5892
  (eval "$ac_link") 2>conftest.er1
5893
  ac_status=$?
5894
  grep -v '^ *+' conftest.er1 >conftest.err
5895
  rm -f conftest.er1
5896
  cat conftest.err >&5
5897
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898
  (exit $ac_status); } && {
5899
         test -z "$ac_c_werror_flag" ||
5900
         test ! -s conftest.err
5901
       } && test -s conftest$ac_exeext && {
5902
         test "$cross_compiling" = yes ||
5903
         $as_test_x conftest$ac_exeext
5904
       }; then
5905 19 jeremybenn
  lt_cv_cc_needs_belf=yes
5906
else
5907 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5908
sed 's/^/| /' conftest.$ac_ext >&5
5909
 
5910
        lt_cv_cc_needs_belf=no
5911 19 jeremybenn
fi
5912 121 jeremybenn
 
5913
rm -rf conftest.dSYM
5914
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5915
      conftest$ac_exeext conftest.$ac_ext
5916 19 jeremybenn
     ac_ext=c
5917
ac_cpp='$CPP $CPPFLAGS'
5918
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5919
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5920
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5921
 
5922
fi
5923 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5924 82 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5925 19 jeremybenn
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5926
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5927
    CFLAGS="$SAVE_CFLAGS"
5928
  fi
5929
  ;;
5930
sparc*-*solaris*)
5931
  # Find out which ABI we are using.
5932
  echo 'int i;' > conftest.$ac_ext
5933 121 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934 19 jeremybenn
  (eval $ac_compile) 2>&5
5935
  ac_status=$?
5936 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937
  (exit $ac_status); }; then
5938 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5939
    *64-bit*)
5940
      case $lt_cv_prog_gnu_ld in
5941
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5942 82 jeremybenn
      *)
5943
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5944
          LD="${LD-ld} -64"
5945
        fi
5946
        ;;
5947 19 jeremybenn
      esac
5948
      ;;
5949
    esac
5950
  fi
5951
  rm -rf conftest*
5952
  ;;
5953 82 jeremybenn
esac
5954 19 jeremybenn
 
5955 82 jeremybenn
need_locks="$enable_libtool_lock"
5956 19 jeremybenn
 
5957 82 jeremybenn
 
5958
  case $host_os in
5959
    rhapsody* | darwin*)
5960
    if test -n "$ac_tool_prefix"; then
5961
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5962
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5963 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5964 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5965 121 jeremybenn
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5966 82 jeremybenn
  $as_echo_n "(cached) " >&6
5967
else
5968
  if test -n "$DSYMUTIL"; then
5969
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5970
else
5971
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972
for as_dir in $PATH
5973
do
5974
  IFS=$as_save_IFS
5975
  test -z "$as_dir" && as_dir=.
5976 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5977 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5978
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5979 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 82 jeremybenn
    break 2
5981
  fi
5982
done
5983 121 jeremybenn
done
5984 82 jeremybenn
IFS=$as_save_IFS
5985
 
5986
fi
5987
fi
5988
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5989
if test -n "$DSYMUTIL"; then
5990 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5991 82 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5992
else
5993 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5994 82 jeremybenn
$as_echo "no" >&6; }
5995
fi
5996
 
5997
 
5998
fi
5999
if test -z "$ac_cv_prog_DSYMUTIL"; then
6000
  ac_ct_DSYMUTIL=$DSYMUTIL
6001
  # Extract the first word of "dsymutil", so it can be a program name with args.
6002
set dummy dsymutil; ac_word=$2
6003 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6004 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6005 121 jeremybenn
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6006 82 jeremybenn
  $as_echo_n "(cached) " >&6
6007
else
6008
  if test -n "$ac_ct_DSYMUTIL"; then
6009
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6010
else
6011
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012
for as_dir in $PATH
6013
do
6014
  IFS=$as_save_IFS
6015
  test -z "$as_dir" && as_dir=.
6016 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6017 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6018
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6019 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 82 jeremybenn
    break 2
6021
  fi
6022
done
6023 121 jeremybenn
done
6024 82 jeremybenn
IFS=$as_save_IFS
6025
 
6026
fi
6027
fi
6028
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6029
if test -n "$ac_ct_DSYMUTIL"; then
6030 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6031 82 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6032
else
6033 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6034 82 jeremybenn
$as_echo "no" >&6; }
6035
fi
6036
 
6037
  if test "x$ac_ct_DSYMUTIL" = x; then
6038
    DSYMUTIL=":"
6039
  else
6040
    case $cross_compiling:$ac_tool_warned in
6041
yes:)
6042 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6043 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6044
ac_tool_warned=yes ;;
6045 19 jeremybenn
esac
6046 82 jeremybenn
    DSYMUTIL=$ac_ct_DSYMUTIL
6047
  fi
6048
else
6049
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6050
fi
6051 19 jeremybenn
 
6052 82 jeremybenn
    if test -n "$ac_tool_prefix"; then
6053
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6054
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6055 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6057 121 jeremybenn
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6058 82 jeremybenn
  $as_echo_n "(cached) " >&6
6059
else
6060
  if test -n "$NMEDIT"; then
6061
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6062
else
6063
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064
for as_dir in $PATH
6065
do
6066
  IFS=$as_save_IFS
6067
  test -z "$as_dir" && as_dir=.
6068 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6069 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6071 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 82 jeremybenn
    break 2
6073
  fi
6074
done
6075 121 jeremybenn
done
6076 82 jeremybenn
IFS=$as_save_IFS
6077 19 jeremybenn
 
6078 82 jeremybenn
fi
6079
fi
6080
NMEDIT=$ac_cv_prog_NMEDIT
6081
if test -n "$NMEDIT"; then
6082 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6083 82 jeremybenn
$as_echo "$NMEDIT" >&6; }
6084
else
6085 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6086 82 jeremybenn
$as_echo "no" >&6; }
6087
fi
6088 19 jeremybenn
 
6089 82 jeremybenn
 
6090
fi
6091
if test -z "$ac_cv_prog_NMEDIT"; then
6092
  ac_ct_NMEDIT=$NMEDIT
6093
  # Extract the first word of "nmedit", so it can be a program name with args.
6094
set dummy nmedit; ac_word=$2
6095 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6097 121 jeremybenn
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6098 82 jeremybenn
  $as_echo_n "(cached) " >&6
6099
else
6100
  if test -n "$ac_ct_NMEDIT"; then
6101
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6102
else
6103
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104
for as_dir in $PATH
6105
do
6106
  IFS=$as_save_IFS
6107
  test -z "$as_dir" && as_dir=.
6108 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6109 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6111 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 82 jeremybenn
    break 2
6113
  fi
6114
done
6115 121 jeremybenn
done
6116 82 jeremybenn
IFS=$as_save_IFS
6117
 
6118
fi
6119
fi
6120
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6121
if test -n "$ac_ct_NMEDIT"; then
6122 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6123 82 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
6124
else
6125 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6126 82 jeremybenn
$as_echo "no" >&6; }
6127
fi
6128
 
6129
  if test "x$ac_ct_NMEDIT" = x; then
6130
    NMEDIT=":"
6131
  else
6132
    case $cross_compiling:$ac_tool_warned in
6133
yes:)
6134 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6135 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6136
ac_tool_warned=yes ;;
6137
esac
6138
    NMEDIT=$ac_ct_NMEDIT
6139
  fi
6140
else
6141
  NMEDIT="$ac_cv_prog_NMEDIT"
6142
fi
6143
 
6144
    if test -n "$ac_tool_prefix"; then
6145
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6146
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6147 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6149 121 jeremybenn
if test "${ac_cv_prog_LIPO+set}" = set; then
6150 82 jeremybenn
  $as_echo_n "(cached) " >&6
6151
else
6152
  if test -n "$LIPO"; then
6153
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6154
else
6155
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156
for as_dir in $PATH
6157
do
6158
  IFS=$as_save_IFS
6159
  test -z "$as_dir" && as_dir=.
6160 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6161 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6163 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 82 jeremybenn
    break 2
6165
  fi
6166
done
6167 121 jeremybenn
done
6168 82 jeremybenn
IFS=$as_save_IFS
6169
 
6170
fi
6171
fi
6172
LIPO=$ac_cv_prog_LIPO
6173
if test -n "$LIPO"; then
6174 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6175 82 jeremybenn
$as_echo "$LIPO" >&6; }
6176
else
6177 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6178 82 jeremybenn
$as_echo "no" >&6; }
6179
fi
6180
 
6181
 
6182
fi
6183
if test -z "$ac_cv_prog_LIPO"; then
6184
  ac_ct_LIPO=$LIPO
6185
  # Extract the first word of "lipo", so it can be a program name with args.
6186
set dummy lipo; ac_word=$2
6187 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6189 121 jeremybenn
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6190 82 jeremybenn
  $as_echo_n "(cached) " >&6
6191
else
6192
  if test -n "$ac_ct_LIPO"; then
6193
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6194
else
6195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196
for as_dir in $PATH
6197
do
6198
  IFS=$as_save_IFS
6199
  test -z "$as_dir" && as_dir=.
6200 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6201 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6202
    ac_cv_prog_ac_ct_LIPO="lipo"
6203 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 82 jeremybenn
    break 2
6205
  fi
6206
done
6207 121 jeremybenn
done
6208 82 jeremybenn
IFS=$as_save_IFS
6209
 
6210
fi
6211
fi
6212
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6213
if test -n "$ac_ct_LIPO"; then
6214 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6215 82 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
6216
else
6217 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6218 82 jeremybenn
$as_echo "no" >&6; }
6219
fi
6220
 
6221
  if test "x$ac_ct_LIPO" = x; then
6222
    LIPO=":"
6223
  else
6224
    case $cross_compiling:$ac_tool_warned in
6225
yes:)
6226 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6227 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6228
ac_tool_warned=yes ;;
6229
esac
6230
    LIPO=$ac_ct_LIPO
6231
  fi
6232
else
6233
  LIPO="$ac_cv_prog_LIPO"
6234
fi
6235
 
6236
    if test -n "$ac_tool_prefix"; then
6237
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6238
set dummy ${ac_tool_prefix}otool; ac_word=$2
6239 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6241 121 jeremybenn
if test "${ac_cv_prog_OTOOL+set}" = set; then
6242 82 jeremybenn
  $as_echo_n "(cached) " >&6
6243
else
6244
  if test -n "$OTOOL"; then
6245
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6246
else
6247
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248
for as_dir in $PATH
6249
do
6250
  IFS=$as_save_IFS
6251
  test -z "$as_dir" && as_dir=.
6252 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6253 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6254
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6255 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 82 jeremybenn
    break 2
6257
  fi
6258
done
6259 121 jeremybenn
done
6260 82 jeremybenn
IFS=$as_save_IFS
6261
 
6262
fi
6263
fi
6264
OTOOL=$ac_cv_prog_OTOOL
6265
if test -n "$OTOOL"; then
6266 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6267 82 jeremybenn
$as_echo "$OTOOL" >&6; }
6268
else
6269 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6270 82 jeremybenn
$as_echo "no" >&6; }
6271
fi
6272
 
6273
 
6274
fi
6275
if test -z "$ac_cv_prog_OTOOL"; then
6276
  ac_ct_OTOOL=$OTOOL
6277
  # Extract the first word of "otool", so it can be a program name with args.
6278
set dummy otool; ac_word=$2
6279 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6281 121 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6282 82 jeremybenn
  $as_echo_n "(cached) " >&6
6283
else
6284
  if test -n "$ac_ct_OTOOL"; then
6285
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6286
else
6287
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288
for as_dir in $PATH
6289
do
6290
  IFS=$as_save_IFS
6291
  test -z "$as_dir" && as_dir=.
6292 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6293 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294
    ac_cv_prog_ac_ct_OTOOL="otool"
6295 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 82 jeremybenn
    break 2
6297
  fi
6298
done
6299 121 jeremybenn
done
6300 82 jeremybenn
IFS=$as_save_IFS
6301
 
6302
fi
6303
fi
6304
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6305
if test -n "$ac_ct_OTOOL"; then
6306 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6307 82 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
6308
else
6309 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6310 82 jeremybenn
$as_echo "no" >&6; }
6311
fi
6312
 
6313
  if test "x$ac_ct_OTOOL" = x; then
6314
    OTOOL=":"
6315
  else
6316
    case $cross_compiling:$ac_tool_warned in
6317
yes:)
6318 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6319 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320
ac_tool_warned=yes ;;
6321
esac
6322
    OTOOL=$ac_ct_OTOOL
6323
  fi
6324
else
6325
  OTOOL="$ac_cv_prog_OTOOL"
6326
fi
6327
 
6328
    if test -n "$ac_tool_prefix"; then
6329
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6330
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6331 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6332 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6333 121 jeremybenn
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6334 82 jeremybenn
  $as_echo_n "(cached) " >&6
6335
else
6336
  if test -n "$OTOOL64"; then
6337
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6338
else
6339
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340
for as_dir in $PATH
6341
do
6342
  IFS=$as_save_IFS
6343
  test -z "$as_dir" && as_dir=.
6344 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6345 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6347 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 82 jeremybenn
    break 2
6349
  fi
6350
done
6351 121 jeremybenn
done
6352 82 jeremybenn
IFS=$as_save_IFS
6353
 
6354
fi
6355
fi
6356
OTOOL64=$ac_cv_prog_OTOOL64
6357
if test -n "$OTOOL64"; then
6358 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6359 82 jeremybenn
$as_echo "$OTOOL64" >&6; }
6360
else
6361 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6362 82 jeremybenn
$as_echo "no" >&6; }
6363
fi
6364
 
6365
 
6366
fi
6367
if test -z "$ac_cv_prog_OTOOL64"; then
6368
  ac_ct_OTOOL64=$OTOOL64
6369
  # Extract the first word of "otool64", so it can be a program name with args.
6370
set dummy otool64; ac_word=$2
6371 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6372 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6373 121 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6374 82 jeremybenn
  $as_echo_n "(cached) " >&6
6375
else
6376
  if test -n "$ac_ct_OTOOL64"; then
6377
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6378
else
6379
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380
for as_dir in $PATH
6381
do
6382
  IFS=$as_save_IFS
6383
  test -z "$as_dir" && as_dir=.
6384 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6385 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6387 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 82 jeremybenn
    break 2
6389
  fi
6390
done
6391 121 jeremybenn
done
6392 82 jeremybenn
IFS=$as_save_IFS
6393
 
6394
fi
6395
fi
6396
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6397
if test -n "$ac_ct_OTOOL64"; then
6398 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6399 82 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
6400
else
6401 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6402 82 jeremybenn
$as_echo "no" >&6; }
6403
fi
6404
 
6405
  if test "x$ac_ct_OTOOL64" = x; then
6406
    OTOOL64=":"
6407
  else
6408
    case $cross_compiling:$ac_tool_warned in
6409
yes:)
6410 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6411 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6412
ac_tool_warned=yes ;;
6413
esac
6414
    OTOOL64=$ac_ct_OTOOL64
6415
  fi
6416
else
6417
  OTOOL64="$ac_cv_prog_OTOOL64"
6418
fi
6419
 
6420
 
6421
 
6422
 
6423
 
6424
 
6425
 
6426
 
6427
 
6428
 
6429
 
6430
 
6431
 
6432
 
6433
 
6434
 
6435
 
6436
 
6437
 
6438
 
6439
 
6440
 
6441
 
6442
 
6443
 
6444
 
6445
 
6446 121 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6447 82 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
6448 121 jeremybenn
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6449 82 jeremybenn
  $as_echo_n "(cached) " >&6
6450
else
6451
  lt_cv_apple_cc_single_mod=no
6452
      if test -z "${LT_MULTI_MODULE}"; then
6453
        # By default we will add the -single_module flag. You can override
6454
        # by either setting the environment variable LT_MULTI_MODULE
6455
        # non-empty at configure time, or by adding -multi_module to the
6456
        # link flags.
6457
        rm -rf libconftest.dylib*
6458
        echo "int foo(void){return 1;}" > conftest.c
6459
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6460
-dynamiclib -Wl,-single_module conftest.c" >&5
6461
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6462
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6463
        _lt_result=$?
6464
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6465
          lt_cv_apple_cc_single_mod=yes
6466
        else
6467
          cat conftest.err >&5
6468
        fi
6469
        rm -rf libconftest.dylib*
6470
        rm -f conftest.*
6471
      fi
6472
fi
6473 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6474 82 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6475 121 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6476 82 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6477 121 jeremybenn
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6478 82 jeremybenn
  $as_echo_n "(cached) " >&6
6479
else
6480
  lt_cv_ld_exported_symbols_list=no
6481
      save_LDFLAGS=$LDFLAGS
6482
      echo "_main" > conftest.sym
6483
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6484 121 jeremybenn
      cat >conftest.$ac_ext <<_ACEOF
6485
/* confdefs.h.  */
6486
_ACEOF
6487
cat confdefs.h >>conftest.$ac_ext
6488
cat >>conftest.$ac_ext <<_ACEOF
6489 82 jeremybenn
/* end confdefs.h.  */
6490
 
6491
int
6492
main ()
6493
{
6494
 
6495
  ;
6496
  return 0;
6497
}
6498
_ACEOF
6499 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
6500
if { (ac_try="$ac_link"
6501
case "(($ac_try" in
6502
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503
  *) ac_try_echo=$ac_try;;
6504
esac
6505
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6506
$as_echo "$ac_try_echo") >&5
6507
  (eval "$ac_link") 2>conftest.er1
6508
  ac_status=$?
6509
  grep -v '^ *+' conftest.er1 >conftest.err
6510
  rm -f conftest.er1
6511
  cat conftest.err >&5
6512
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513
  (exit $ac_status); } && {
6514
         test -z "$ac_c_werror_flag" ||
6515
         test ! -s conftest.err
6516
       } && test -s conftest$ac_exeext && {
6517
         test "$cross_compiling" = yes ||
6518
         $as_test_x conftest$ac_exeext
6519
       }; then
6520 82 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
6521
else
6522 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6523
sed 's/^/| /' conftest.$ac_ext >&5
6524
 
6525
        lt_cv_ld_exported_symbols_list=no
6526 82 jeremybenn
fi
6527 121 jeremybenn
 
6528
rm -rf conftest.dSYM
6529
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6530
      conftest$ac_exeext conftest.$ac_ext
6531 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
6532
 
6533
fi
6534 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6535 82 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6536
    case $host_os in
6537
    rhapsody* | darwin1.[012])
6538
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6539
    darwin1.*)
6540
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6541
    darwin*) # darwin 5.x on
6542
      # if running on 10.5 or later, the deployment target defaults
6543
      # to the OS version, if on x86, and 10.4, the deployment
6544
      # target defaults to 10.4. Don't you love it?
6545
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6546
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6547
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6548
        10.[012]*)
6549
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6550
        10.*)
6551
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6552
      esac
6553
    ;;
6554
  esac
6555
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6556
      _lt_dar_single_mod='$single_module'
6557
    fi
6558
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6559
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6560
    else
6561
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6562
    fi
6563
    if test "$DSYMUTIL" != ":"; then
6564
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6565
    else
6566
      _lt_dsymutil=
6567
    fi
6568
    ;;
6569
  esac
6570
 
6571 121 jeremybenn
 
6572 19 jeremybenn
for ac_header in dlfcn.h
6573 121 jeremybenn
do
6574
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6575
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6576
$as_echo_n "checking for $ac_header... " >&6; }
6577
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6578
  $as_echo_n "(cached) " >&6
6579
else
6580
  cat >conftest.$ac_ext <<_ACEOF
6581
/* confdefs.h.  */
6582
_ACEOF
6583
cat confdefs.h >>conftest.$ac_ext
6584
cat >>conftest.$ac_ext <<_ACEOF
6585
/* end confdefs.h.  */
6586
$ac_includes_default
6587
 
6588
#include <$ac_header>
6589
_ACEOF
6590
rm -f conftest.$ac_objext
6591
if { (ac_try="$ac_compile"
6592
case "(($ac_try" in
6593
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594
  *) ac_try_echo=$ac_try;;
6595
esac
6596
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6597
$as_echo "$ac_try_echo") >&5
6598
  (eval "$ac_compile") 2>conftest.er1
6599
  ac_status=$?
6600
  grep -v '^ *+' conftest.er1 >conftest.err
6601
  rm -f conftest.er1
6602
  cat conftest.err >&5
6603
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604
  (exit $ac_status); } && {
6605
         test -z "$ac_c_werror_flag" ||
6606
         test ! -s conftest.err
6607
       } && test -s conftest.$ac_objext; then
6608
  eval "$as_ac_Header=yes"
6609
else
6610
  $as_echo "$as_me: failed program was:" >&5
6611
sed 's/^/| /' conftest.$ac_ext >&5
6612
 
6613
        eval "$as_ac_Header=no"
6614
fi
6615
 
6616
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617
fi
6618
ac_res=`eval 'as_val=${'$as_ac_Header'}
6619
                 $as_echo "$as_val"'`
6620
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6621
$as_echo "$ac_res" >&6; }
6622
as_val=`eval 'as_val=${'$as_ac_Header'}
6623
                 $as_echo "$as_val"'`
6624
   if test "x$as_val" = x""yes; then
6625 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
6626 121 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6627 19 jeremybenn
_ACEOF
6628
 
6629
fi
6630
 
6631
done
6632
 
6633
 
6634
 
6635 82 jeremybenn
# Set options
6636 19 jeremybenn
 
6637
 
6638
 
6639 82 jeremybenn
        enable_dlopen=no
6640 19 jeremybenn
 
6641
 
6642 82 jeremybenn
  enable_win32_dll=no
6643 19 jeremybenn
 
6644
 
6645 82 jeremybenn
            # Check whether --enable-shared was given.
6646 121 jeremybenn
if test "${enable_shared+set}" = set; then
6647 82 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
6648
    case $enableval in
6649
    yes) enable_shared=yes ;;
6650
    no) enable_shared=no ;;
6651
    *)
6652
      enable_shared=no
6653
      # Look at the argument we got.  We use all the common list separators.
6654
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6655
      for pkg in $enableval; do
6656
        IFS="$lt_save_ifs"
6657
        if test "X$pkg" = "X$p"; then
6658
          enable_shared=yes
6659
        fi
6660
      done
6661
      IFS="$lt_save_ifs"
6662
      ;;
6663
    esac
6664 19 jeremybenn
else
6665 82 jeremybenn
  enable_shared=yes
6666 19 jeremybenn
fi
6667
 
6668
 
6669
 
6670
 
6671
 
6672
 
6673
 
6674
 
6675
 
6676 82 jeremybenn
  # Check whether --enable-static was given.
6677 121 jeremybenn
if test "${enable_static+set}" = set; then
6678 82 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
6679
    case $enableval in
6680
    yes) enable_static=yes ;;
6681
    no) enable_static=no ;;
6682
    *)
6683
     enable_static=no
6684
      # Look at the argument we got.  We use all the common list separators.
6685
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6686
      for pkg in $enableval; do
6687
        IFS="$lt_save_ifs"
6688
        if test "X$pkg" = "X$p"; then
6689
          enable_static=yes
6690
        fi
6691
      done
6692
      IFS="$lt_save_ifs"
6693
      ;;
6694
    esac
6695 19 jeremybenn
else
6696 82 jeremybenn
  enable_static=yes
6697 19 jeremybenn
fi
6698
 
6699
 
6700
 
6701
 
6702
 
6703
 
6704
 
6705
 
6706
 
6707
 
6708 82 jeremybenn
# Check whether --with-pic was given.
6709 121 jeremybenn
if test "${with_pic+set}" = set; then
6710 82 jeremybenn
  withval=$with_pic; pic_mode="$withval"
6711 19 jeremybenn
else
6712 82 jeremybenn
  pic_mode=default
6713 19 jeremybenn
fi
6714
 
6715
 
6716 82 jeremybenn
test -z "$pic_mode" && pic_mode=default
6717 19 jeremybenn
 
6718
 
6719
 
6720
 
6721
 
6722
 
6723
 
6724 82 jeremybenn
  # Check whether --enable-fast-install was given.
6725 121 jeremybenn
if test "${enable_fast_install+set}" = set; then
6726 82 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
6727
    case $enableval in
6728
    yes) enable_fast_install=yes ;;
6729
    no) enable_fast_install=no ;;
6730
    *)
6731
      enable_fast_install=no
6732
      # Look at the argument we got.  We use all the common list separators.
6733
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6734
      for pkg in $enableval; do
6735
        IFS="$lt_save_ifs"
6736
        if test "X$pkg" = "X$p"; then
6737
          enable_fast_install=yes
6738
        fi
6739
      done
6740
      IFS="$lt_save_ifs"
6741
      ;;
6742
    esac
6743 19 jeremybenn
else
6744 82 jeremybenn
  enable_fast_install=yes
6745 19 jeremybenn
fi
6746
 
6747
 
6748
 
6749
 
6750
 
6751
 
6752
 
6753
 
6754
 
6755
 
6756
 
6757 82 jeremybenn
# This can be used to rebuild libtool when needed
6758
LIBTOOL_DEPS="$ltmain"
6759 19 jeremybenn
 
6760 82 jeremybenn
# Always use our own libtool.
6761
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6762 19 jeremybenn
 
6763
 
6764
 
6765
 
6766
 
6767
 
6768
 
6769
 
6770
 
6771
 
6772
 
6773
 
6774
 
6775
 
6776
 
6777
 
6778
 
6779
 
6780
 
6781
 
6782
 
6783
 
6784
 
6785
 
6786
 
6787 82 jeremybenn
test -z "$LN_S" && LN_S="ln -s"
6788 19 jeremybenn
 
6789
 
6790
 
6791
 
6792
 
6793
 
6794
 
6795
 
6796
 
6797
 
6798
 
6799
 
6800
 
6801
 
6802 82 jeremybenn
if test -n "${ZSH_VERSION+set}" ; then
6803
   setopt NO_GLOB_SUBST
6804 19 jeremybenn
fi
6805
 
6806 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6807 82 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6808 121 jeremybenn
if test "${lt_cv_objdir+set}" = set; then
6809 82 jeremybenn
  $as_echo_n "(cached) " >&6
6810 19 jeremybenn
else
6811
  rm -f .libs 2>/dev/null
6812
mkdir .libs 2>/dev/null
6813
if test -d .libs; then
6814
  lt_cv_objdir=.libs
6815
else
6816
  # MS-DOS does not allow filenames that begin with a dot.
6817
  lt_cv_objdir=_libs
6818
fi
6819
rmdir .libs 2>/dev/null
6820
fi
6821 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6822 82 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
6823 19 jeremybenn
objdir=$lt_cv_objdir
6824
 
6825
 
6826
 
6827
 
6828
 
6829 82 jeremybenn
cat >>confdefs.h <<_ACEOF
6830
#define LT_OBJDIR "$lt_cv_objdir/"
6831
_ACEOF
6832
 
6833
 
6834
 
6835
 
6836
 
6837
 
6838
 
6839
 
6840
 
6841
 
6842
 
6843
 
6844
 
6845
 
6846
 
6847
 
6848
 
6849 19 jeremybenn
case $host_os in
6850
aix3*)
6851
  # AIX sometimes has problems with the GCC collect2 program.  For some
6852
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6853
  # vanish in a puff of smoke.
6854
  if test "X${COLLECT_NAMES+set}" != Xset; then
6855
    COLLECT_NAMES=
6856
    export COLLECT_NAMES
6857
  fi
6858
  ;;
6859
esac
6860
 
6861
# Sed substitution that helps us do robust quoting.  It backslashifies
6862
# metacharacters that are still active within double-quoted strings.
6863 82 jeremybenn
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6864 19 jeremybenn
 
6865
# Same as above, but do not quote variable references.
6866 82 jeremybenn
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6867 19 jeremybenn
 
6868
# Sed substitution to delay expansion of an escaped shell variable in a
6869
# double_quote_subst'ed string.
6870
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6871
 
6872 82 jeremybenn
# Sed substitution to delay expansion of an escaped single quote.
6873
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6874
 
6875 19 jeremybenn
# Sed substitution to avoid accidental globbing in evaled expressions
6876
no_glob_subst='s/\*/\\\*/g'
6877
 
6878
# Global variables:
6879 82 jeremybenn
ofile=libtool
6880 19 jeremybenn
can_build_shared=yes
6881
 
6882
# All known linkers require a `.a' archive for static linking (except MSVC,
6883
# which needs '.lib').
6884
libext=a
6885 82 jeremybenn
 
6886 19 jeremybenn
with_gnu_ld="$lt_cv_prog_gnu_ld"
6887
 
6888
old_CC="$CC"
6889
old_CFLAGS="$CFLAGS"
6890
 
6891
# Set sane defaults for various variables
6892
test -z "$CC" && CC=cc
6893
test -z "$LTCC" && LTCC=$CC
6894
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6895
test -z "$LD" && LD=ld
6896
test -z "$ac_objext" && ac_objext=o
6897
 
6898
for cc_temp in $compiler""; do
6899
  case $cc_temp in
6900
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6901
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6902
    \-*) ;;
6903
    *) break;;
6904
  esac
6905
done
6906 82 jeremybenn
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6907 19 jeremybenn
 
6908
 
6909
# Only perform the check for file, if the check method requires it
6910 82 jeremybenn
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6911 19 jeremybenn
case $deplibs_check_method in
6912
file_magic*)
6913
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6914 121 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6915 82 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6916 121 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6917 82 jeremybenn
  $as_echo_n "(cached) " >&6
6918 19 jeremybenn
else
6919
  case $MAGIC_CMD in
6920
[\\/*] |  ?:[\\/]*)
6921
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6922
  ;;
6923
*)
6924
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6925
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6926
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6927
  for ac_dir in $ac_dummy; do
6928
    IFS="$lt_save_ifs"
6929
    test -z "$ac_dir" && ac_dir=.
6930
    if test -f $ac_dir/${ac_tool_prefix}file; then
6931
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6932
      if test -n "$file_magic_test_file"; then
6933
        case $deplibs_check_method in
6934
        "file_magic "*)
6935
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6936
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6937
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6938
            $EGREP "$file_magic_regex" > /dev/null; then
6939
            :
6940
          else
6941 82 jeremybenn
            cat <<_LT_EOF 1>&2
6942 19 jeremybenn
 
6943
*** Warning: the command libtool uses to detect shared libraries,
6944
*** $file_magic_cmd, produces output that libtool cannot recognize.
6945
*** The result is that libtool may fail to recognize shared libraries
6946
*** as such.  This will affect the creation of libtool libraries that
6947
*** depend on shared libraries, but programs linked with such libtool
6948
*** libraries will work regardless of this problem.  Nevertheless, you
6949
*** may want to report the problem to your system manager and/or to
6950
*** bug-libtool@gnu.org
6951
 
6952 82 jeremybenn
_LT_EOF
6953 19 jeremybenn
          fi ;;
6954
        esac
6955
      fi
6956
      break
6957
    fi
6958
  done
6959
  IFS="$lt_save_ifs"
6960
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6961
  ;;
6962
esac
6963
fi
6964
 
6965
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6966
if test -n "$MAGIC_CMD"; then
6967 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6968 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6969 19 jeremybenn
else
6970 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6971 82 jeremybenn
$as_echo "no" >&6; }
6972 19 jeremybenn
fi
6973
 
6974 82 jeremybenn
 
6975
 
6976
 
6977
 
6978 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
6979
  if test -n "$ac_tool_prefix"; then
6980 121 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for file" >&5
6981 82 jeremybenn
$as_echo_n "checking for file... " >&6; }
6982 121 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6983 82 jeremybenn
  $as_echo_n "(cached) " >&6
6984 19 jeremybenn
else
6985
  case $MAGIC_CMD in
6986
[\\/*] |  ?:[\\/]*)
6987
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6988
  ;;
6989
*)
6990
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6991
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6992
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6993
  for ac_dir in $ac_dummy; do
6994
    IFS="$lt_save_ifs"
6995
    test -z "$ac_dir" && ac_dir=.
6996
    if test -f $ac_dir/file; then
6997
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6998
      if test -n "$file_magic_test_file"; then
6999
        case $deplibs_check_method in
7000
        "file_magic "*)
7001
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7002
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7003
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7004
            $EGREP "$file_magic_regex" > /dev/null; then
7005
            :
7006
          else
7007 82 jeremybenn
            cat <<_LT_EOF 1>&2
7008 19 jeremybenn
 
7009
*** Warning: the command libtool uses to detect shared libraries,
7010
*** $file_magic_cmd, produces output that libtool cannot recognize.
7011
*** The result is that libtool may fail to recognize shared libraries
7012
*** as such.  This will affect the creation of libtool libraries that
7013
*** depend on shared libraries, but programs linked with such libtool
7014
*** libraries will work regardless of this problem.  Nevertheless, you
7015
*** may want to report the problem to your system manager and/or to
7016
*** bug-libtool@gnu.org
7017
 
7018 82 jeremybenn
_LT_EOF
7019 19 jeremybenn
          fi ;;
7020
        esac
7021
      fi
7022
      break
7023
    fi
7024
  done
7025
  IFS="$lt_save_ifs"
7026
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7027
  ;;
7028
esac
7029
fi
7030
 
7031
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7032
if test -n "$MAGIC_CMD"; then
7033 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7034 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
7035 19 jeremybenn
else
7036 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
7037 82 jeremybenn
$as_echo "no" >&6; }
7038 19 jeremybenn
fi
7039
 
7040 82 jeremybenn
 
7041 19 jeremybenn
  else
7042
    MAGIC_CMD=:
7043
  fi
7044
fi
7045
 
7046
  fi
7047
  ;;
7048
esac
7049
 
7050 82 jeremybenn
# Use C for the default configuration in the libtool script
7051 19 jeremybenn
 
7052
lt_save_CC="$CC"
7053
ac_ext=c
7054
ac_cpp='$CPP $CPPFLAGS'
7055
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7058
 
7059
 
7060
# Source file extension for C test sources.
7061
ac_ext=c
7062
 
7063
# Object file extension for compiled C test sources.
7064
objext=o
7065
objext=$objext
7066
 
7067
# Code to be used in simple compile tests
7068
lt_simple_compile_test_code="int some_variable = 0;"
7069
 
7070
# Code to be used in simple link tests
7071
lt_simple_link_test_code='int main(){return(0);}'
7072
 
7073
 
7074 82 jeremybenn
 
7075
 
7076
 
7077
 
7078
 
7079 19 jeremybenn
# If no C compiler was specified, use CC.
7080
LTCC=${LTCC-"$CC"}
7081
 
7082
# If no C compiler flags were specified, use CFLAGS.
7083
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7084
 
7085
# Allow CC to be a program name with arguments.
7086
compiler=$CC
7087
 
7088 82 jeremybenn
# Save the default compiler, since it gets overwritten when the other
7089
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7090
compiler_DEFAULT=$CC
7091 19 jeremybenn
 
7092
# save warnings/boilerplate of simple test code
7093
ac_outfile=conftest.$ac_objext
7094
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7095
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7096
_lt_compiler_boilerplate=`cat conftest.err`
7097 82 jeremybenn
$RM conftest*
7098 19 jeremybenn
 
7099
ac_outfile=conftest.$ac_objext
7100
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7101
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7102
_lt_linker_boilerplate=`cat conftest.err`
7103 82 jeremybenn
$RM -r conftest*
7104 19 jeremybenn
 
7105
 
7106 82 jeremybenn
## CAVEAT EMPTOR:
7107
## There is no encapsulation within the following macros, do not change
7108
## the running order or otherwise move them around unless you know exactly
7109
## what you are doing...
7110
if test -n "$compiler"; then
7111 19 jeremybenn
 
7112
lt_prog_compiler_no_builtin_flag=
7113
 
7114
if test "$GCC" = yes; then
7115
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7116
 
7117 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7118 82 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7119 121 jeremybenn
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7120 82 jeremybenn
  $as_echo_n "(cached) " >&6
7121 19 jeremybenn
else
7122
  lt_cv_prog_compiler_rtti_exceptions=no
7123 82 jeremybenn
   ac_outfile=conftest.$ac_objext
7124 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7125
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7126
   # Insert the option either (1) after the last *FLAGS variable, or
7127
   # (2) before a word containing "conftest.", or (3) at the end.
7128
   # Note that $ac_compile itself does not contain backslashes and begins
7129
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7130
   # The option is referenced via a variable to avoid confusing sed.
7131
   lt_compile=`echo "$ac_compile" | $SED \
7132
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7133
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7134
   -e 's:$: $lt_compiler_flag:'`
7135 124 jeremybenn
   (eval echo "\"\$as_me:7135: $lt_compile\"" >&5)
7136 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7137
   ac_status=$?
7138
   cat conftest.err >&5
7139 124 jeremybenn
   echo "$as_me:7139: \$? = $ac_status" >&5
7140 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7141
     # The compiler can only warn and ignore the option if not recognized
7142
     # So say no if there are warnings other than the usual output.
7143 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7144 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7145
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7146
       lt_cv_prog_compiler_rtti_exceptions=yes
7147
     fi
7148
   fi
7149 82 jeremybenn
   $RM conftest*
7150 19 jeremybenn
 
7151
fi
7152 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7153 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7154 19 jeremybenn
 
7155
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7156
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7157
else
7158
    :
7159
fi
7160
 
7161
fi
7162
 
7163 82 jeremybenn
 
7164
 
7165
 
7166
 
7167
 
7168
  lt_prog_compiler_wl=
7169 19 jeremybenn
lt_prog_compiler_pic=
7170
lt_prog_compiler_static=
7171
 
7172 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7173 82 jeremybenn
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7174 19 jeremybenn
 
7175
  if test "$GCC" = yes; then
7176
    lt_prog_compiler_wl='-Wl,'
7177
    lt_prog_compiler_static='-static'
7178
 
7179
    case $host_os in
7180
      aix*)
7181
      # All AIX code is PIC.
7182
      if test "$host_cpu" = ia64; then
7183
        # AIX 5 now supports IA64 processor
7184
        lt_prog_compiler_static='-Bstatic'
7185
      fi
7186
      ;;
7187
 
7188
    amigaos*)
7189 82 jeremybenn
      case $host_cpu in
7190
      powerpc)
7191
            # see comment about AmigaOS4 .so support
7192
            lt_prog_compiler_pic='-fPIC'
7193
        ;;
7194
      m68k)
7195
            # FIXME: we need at least 68020 code to build shared libraries, but
7196
            # adding the `-m68020' flag to GCC prevents building anything better,
7197
            # like `-m68040'.
7198
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7199
        ;;
7200
      esac
7201 19 jeremybenn
      ;;
7202
 
7203
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7204
      # PIC is the default for these OSes.
7205
      ;;
7206
 
7207 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7208 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7209
      # built for inclusion in a dll (and should export symbols for example).
7210
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7211
      # (--disable-auto-import) libraries
7212
      lt_prog_compiler_pic='-DDLL_EXPORT'
7213
      ;;
7214
 
7215
    darwin* | rhapsody*)
7216
      # PIC is the default on this platform
7217
      # Common symbols not allowed in MH_DYLIB files
7218
      lt_prog_compiler_pic='-fno-common'
7219
      ;;
7220
 
7221 82 jeremybenn
    hpux*)
7222
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7223
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7224
      # sets the default TLS model and affects inlining.
7225
      case $host_cpu in
7226
      hppa*64*)
7227
        # +Z the default
7228
        ;;
7229
      *)
7230
        lt_prog_compiler_pic='-fPIC'
7231
        ;;
7232
      esac
7233
      ;;
7234
 
7235 19 jeremybenn
    interix[3-9]*)
7236
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7237
      # Instead, we relocate shared libraries at runtime.
7238
      ;;
7239
 
7240
    msdosdjgpp*)
7241
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7242
      # on systems that don't support them.
7243
      lt_prog_compiler_can_build_shared=no
7244
      enable_shared=no
7245
      ;;
7246
 
7247 82 jeremybenn
    *nto* | *qnx*)
7248
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7249
      # it will coredump.
7250
      lt_prog_compiler_pic='-fPIC -shared'
7251
      ;;
7252
 
7253 19 jeremybenn
    sysv4*MP*)
7254
      if test -d /usr/nec; then
7255
        lt_prog_compiler_pic=-Kconform_pic
7256
      fi
7257
      ;;
7258
 
7259
    *)
7260
      lt_prog_compiler_pic='-fPIC'
7261
      ;;
7262
    esac
7263
  else
7264
    # PORTME Check for flag to pass linker flags through the system compiler.
7265
    case $host_os in
7266
    aix*)
7267
      lt_prog_compiler_wl='-Wl,'
7268
      if test "$host_cpu" = ia64; then
7269
        # AIX 5 now supports IA64 processor
7270
        lt_prog_compiler_static='-Bstatic'
7271
      else
7272
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7273
      fi
7274
      ;;
7275
 
7276 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7277 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7278
      # built for inclusion in a dll (and should export symbols for example).
7279
      lt_prog_compiler_pic='-DDLL_EXPORT'
7280
      ;;
7281
 
7282
    hpux9* | hpux10* | hpux11*)
7283
      lt_prog_compiler_wl='-Wl,'
7284
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7285
      # not for PA HP-UX.
7286
      case $host_cpu in
7287
      hppa*64*|ia64*)
7288
        # +Z the default
7289
        ;;
7290
      *)
7291
        lt_prog_compiler_pic='+Z'
7292
        ;;
7293
      esac
7294
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7295
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7296
      ;;
7297
 
7298
    irix5* | irix6* | nonstopux*)
7299
      lt_prog_compiler_wl='-Wl,'
7300
      # PIC (with -KPIC) is the default.
7301
      lt_prog_compiler_static='-non_shared'
7302
      ;;
7303
 
7304
    linux* | k*bsd*-gnu)
7305
      case $cc_basename in
7306 82 jeremybenn
      # old Intel for x86_64 which still supported -KPIC.
7307
      ecc*)
7308 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7309
        lt_prog_compiler_pic='-KPIC'
7310
        lt_prog_compiler_static='-static'
7311
        ;;
7312 82 jeremybenn
      # icc used to be incompatible with GCC.
7313
      # ICC 10 doesn't accept -KPIC any more.
7314
      icc* | ifort*)
7315
        lt_prog_compiler_wl='-Wl,'
7316
        lt_prog_compiler_pic='-fPIC'
7317
        lt_prog_compiler_static='-static'
7318
        ;;
7319
      # Lahey Fortran 8.1.
7320
      lf95*)
7321
        lt_prog_compiler_wl='-Wl,'
7322
        lt_prog_compiler_pic='--shared'
7323
        lt_prog_compiler_static='--static'
7324
        ;;
7325 19 jeremybenn
      pgcc* | pgf77* | pgf90* | pgf95*)
7326
        # Portland Group compilers (*not* the Pentium gcc compiler,
7327
        # which looks to be a dead project)
7328
        lt_prog_compiler_wl='-Wl,'
7329
        lt_prog_compiler_pic='-fpic'
7330
        lt_prog_compiler_static='-Bstatic'
7331
        ;;
7332
      ccc*)
7333
        lt_prog_compiler_wl='-Wl,'
7334
        # All Alpha code is PIC.
7335
        lt_prog_compiler_static='-non_shared'
7336
        ;;
7337 82 jeremybenn
      xl*)
7338
        # IBM XL C 8.0/Fortran 10.1 on PPC
7339
        lt_prog_compiler_wl='-Wl,'
7340
        lt_prog_compiler_pic='-qpic'
7341
        lt_prog_compiler_static='-qstaticlink'
7342
        ;;
7343 19 jeremybenn
      *)
7344 82 jeremybenn
        case `$CC -V 2>&1 | sed 5q` in
7345 19 jeremybenn
        *Sun\ C*)
7346
          # Sun C 5.9
7347
          lt_prog_compiler_pic='-KPIC'
7348
          lt_prog_compiler_static='-Bstatic'
7349
          lt_prog_compiler_wl='-Wl,'
7350
          ;;
7351
        *Sun\ F*)
7352
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7353
          lt_prog_compiler_pic='-KPIC'
7354
          lt_prog_compiler_static='-Bstatic'
7355
          lt_prog_compiler_wl=''
7356
          ;;
7357
        esac
7358
        ;;
7359
      esac
7360
      ;;
7361
 
7362 82 jeremybenn
    newsos6)
7363
      lt_prog_compiler_pic='-KPIC'
7364
      lt_prog_compiler_static='-Bstatic'
7365
      ;;
7366
 
7367
    *nto* | *qnx*)
7368
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7369
      # it will coredump.
7370
      lt_prog_compiler_pic='-fPIC -shared'
7371
      ;;
7372
 
7373 19 jeremybenn
    osf3* | osf4* | osf5*)
7374
      lt_prog_compiler_wl='-Wl,'
7375
      # All OSF/1 code is PIC.
7376
      lt_prog_compiler_static='-non_shared'
7377
      ;;
7378
 
7379
    rdos*)
7380
      lt_prog_compiler_static='-non_shared'
7381
      ;;
7382
 
7383
    solaris*)
7384
      lt_prog_compiler_pic='-KPIC'
7385
      lt_prog_compiler_static='-Bstatic'
7386
      case $cc_basename in
7387
      f77* | f90* | f95*)
7388
        lt_prog_compiler_wl='-Qoption ld ';;
7389
      *)
7390
        lt_prog_compiler_wl='-Wl,';;
7391
      esac
7392
      ;;
7393
 
7394
    sunos4*)
7395
      lt_prog_compiler_wl='-Qoption ld '
7396
      lt_prog_compiler_pic='-PIC'
7397
      lt_prog_compiler_static='-Bstatic'
7398
      ;;
7399
 
7400
    sysv4 | sysv4.2uw2* | sysv4.3*)
7401
      lt_prog_compiler_wl='-Wl,'
7402
      lt_prog_compiler_pic='-KPIC'
7403
      lt_prog_compiler_static='-Bstatic'
7404
      ;;
7405
 
7406
    sysv4*MP*)
7407
      if test -d /usr/nec ;then
7408
        lt_prog_compiler_pic='-Kconform_pic'
7409
        lt_prog_compiler_static='-Bstatic'
7410
      fi
7411
      ;;
7412
 
7413
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7414
      lt_prog_compiler_wl='-Wl,'
7415
      lt_prog_compiler_pic='-KPIC'
7416
      lt_prog_compiler_static='-Bstatic'
7417
      ;;
7418
 
7419
    unicos*)
7420
      lt_prog_compiler_wl='-Wl,'
7421
      lt_prog_compiler_can_build_shared=no
7422
      ;;
7423
 
7424
    uts4*)
7425
      lt_prog_compiler_pic='-pic'
7426
      lt_prog_compiler_static='-Bstatic'
7427
      ;;
7428
 
7429
    *)
7430
      lt_prog_compiler_can_build_shared=no
7431
      ;;
7432
    esac
7433
  fi
7434
 
7435 82 jeremybenn
case $host_os in
7436
  # For platforms which do not support PIC, -DPIC is meaningless:
7437
  *djgpp*)
7438
    lt_prog_compiler_pic=
7439
    ;;
7440
  *)
7441
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7442
    ;;
7443
esac
7444 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7445 82 jeremybenn
$as_echo "$lt_prog_compiler_pic" >&6; }
7446 19 jeremybenn
 
7447 82 jeremybenn
 
7448
 
7449
 
7450
 
7451
 
7452 19 jeremybenn
#
7453
# Check to make sure the PIC flag actually works.
7454
#
7455
if test -n "$lt_prog_compiler_pic"; then
7456 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7457 82 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7458 121 jeremybenn
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7459 82 jeremybenn
  $as_echo_n "(cached) " >&6
7460 19 jeremybenn
else
7461 82 jeremybenn
  lt_cv_prog_compiler_pic_works=no
7462
   ac_outfile=conftest.$ac_objext
7463 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7464
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7465
   # Insert the option either (1) after the last *FLAGS variable, or
7466
   # (2) before a word containing "conftest.", or (3) at the end.
7467
   # Note that $ac_compile itself does not contain backslashes and begins
7468
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7469
   # The option is referenced via a variable to avoid confusing sed.
7470
   lt_compile=`echo "$ac_compile" | $SED \
7471
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7472
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7473
   -e 's:$: $lt_compiler_flag:'`
7474 124 jeremybenn
   (eval echo "\"\$as_me:7474: $lt_compile\"" >&5)
7475 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7476
   ac_status=$?
7477
   cat conftest.err >&5
7478 124 jeremybenn
   echo "$as_me:7478: \$? = $ac_status" >&5
7479 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7480
     # The compiler can only warn and ignore the option if not recognized
7481
     # So say no if there are warnings other than the usual output.
7482 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7483 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7484
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7485 82 jeremybenn
       lt_cv_prog_compiler_pic_works=yes
7486 19 jeremybenn
     fi
7487
   fi
7488 82 jeremybenn
   $RM conftest*
7489 19 jeremybenn
 
7490
fi
7491 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7492 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7493 19 jeremybenn
 
7494 82 jeremybenn
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7495 19 jeremybenn
    case $lt_prog_compiler_pic in
7496
     "" | " "*) ;;
7497
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7498
     esac
7499
else
7500
    lt_prog_compiler_pic=
7501
     lt_prog_compiler_can_build_shared=no
7502
fi
7503
 
7504
fi
7505
 
7506 82 jeremybenn
 
7507
 
7508
 
7509
 
7510
 
7511 19 jeremybenn
#
7512
# Check to make sure the static flag actually works.
7513
#
7514
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7515 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7516 82 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7517 121 jeremybenn
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7518 82 jeremybenn
  $as_echo_n "(cached) " >&6
7519 19 jeremybenn
else
7520 82 jeremybenn
  lt_cv_prog_compiler_static_works=no
7521 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7522
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7523
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7524
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7525
     # The linker can only warn and ignore the option if not recognized
7526
     # So say no if there are warnings
7527
     if test -s conftest.err; then
7528
       # Append any errors to the config.log.
7529
       cat conftest.err 1>&5
7530 82 jeremybenn
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7531 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7532
       if diff conftest.exp conftest.er2 >/dev/null; then
7533 82 jeremybenn
         lt_cv_prog_compiler_static_works=yes
7534 19 jeremybenn
       fi
7535
     else
7536 82 jeremybenn
       lt_cv_prog_compiler_static_works=yes
7537 19 jeremybenn
     fi
7538
   fi
7539 82 jeremybenn
   $RM -r conftest*
7540 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7541
 
7542
fi
7543 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7544 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7545 19 jeremybenn
 
7546 82 jeremybenn
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7547 19 jeremybenn
    :
7548
else
7549
    lt_prog_compiler_static=
7550
fi
7551
 
7552
 
7553 82 jeremybenn
 
7554
 
7555
 
7556
 
7557
 
7558 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7559 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7560 121 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7561 82 jeremybenn
  $as_echo_n "(cached) " >&6
7562 19 jeremybenn
else
7563
  lt_cv_prog_compiler_c_o=no
7564 82 jeremybenn
   $RM -r conftest 2>/dev/null
7565 19 jeremybenn
   mkdir conftest
7566
   cd conftest
7567
   mkdir out
7568
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7569
 
7570
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7571
   # Insert the option either (1) after the last *FLAGS variable, or
7572
   # (2) before a word containing "conftest.", or (3) at the end.
7573
   # Note that $ac_compile itself does not contain backslashes and begins
7574
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7575
   lt_compile=`echo "$ac_compile" | $SED \
7576
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7577
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7578
   -e 's:$: $lt_compiler_flag:'`
7579 124 jeremybenn
   (eval echo "\"\$as_me:7579: $lt_compile\"" >&5)
7580 19 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7581
   ac_status=$?
7582
   cat out/conftest.err >&5
7583 124 jeremybenn
   echo "$as_me:7583: \$? = $ac_status" >&5
7584 19 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7585
   then
7586
     # The compiler can only warn and ignore the option if not recognized
7587
     # So say no if there are warnings
7588 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7589 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7590
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7591
       lt_cv_prog_compiler_c_o=yes
7592
     fi
7593
   fi
7594
   chmod u+w . 2>&5
7595 82 jeremybenn
   $RM conftest*
7596 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
7597
   # template instantiation
7598 82 jeremybenn
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7599
   $RM out/* && rmdir out
7600 19 jeremybenn
   cd ..
7601 82 jeremybenn
   $RM -r conftest
7602
   $RM conftest*
7603 19 jeremybenn
 
7604
fi
7605 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7606 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7607 19 jeremybenn
 
7608
 
7609 82 jeremybenn
 
7610
 
7611
 
7612
 
7613 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7614 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7615 121 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7616 82 jeremybenn
  $as_echo_n "(cached) " >&6
7617
else
7618
  lt_cv_prog_compiler_c_o=no
7619
   $RM -r conftest 2>/dev/null
7620
   mkdir conftest
7621
   cd conftest
7622
   mkdir out
7623
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7624
 
7625
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7626
   # Insert the option either (1) after the last *FLAGS variable, or
7627
   # (2) before a word containing "conftest.", or (3) at the end.
7628
   # Note that $ac_compile itself does not contain backslashes and begins
7629
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7630
   lt_compile=`echo "$ac_compile" | $SED \
7631
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7632
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7633
   -e 's:$: $lt_compiler_flag:'`
7634 124 jeremybenn
   (eval echo "\"\$as_me:7634: $lt_compile\"" >&5)
7635 82 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7636
   ac_status=$?
7637
   cat out/conftest.err >&5
7638 124 jeremybenn
   echo "$as_me:7638: \$? = $ac_status" >&5
7639 82 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7640
   then
7641
     # The compiler can only warn and ignore the option if not recognized
7642
     # So say no if there are warnings
7643
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7644
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7645
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7646
       lt_cv_prog_compiler_c_o=yes
7647
     fi
7648
   fi
7649
   chmod u+w . 2>&5
7650
   $RM conftest*
7651
   # SGI C++ compiler will create directory out/ii_files/ for
7652
   # template instantiation
7653
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7654
   $RM out/* && rmdir out
7655
   cd ..
7656
   $RM -r conftest
7657
   $RM conftest*
7658
 
7659
fi
7660 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7661 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7662
 
7663
 
7664
 
7665
 
7666 19 jeremybenn
hard_links="nottested"
7667
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7668
  # do not overwrite the value of need_locks provided by the user
7669 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7670 82 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
7671 19 jeremybenn
  hard_links=yes
7672 82 jeremybenn
  $RM conftest*
7673 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7674
  touch conftest.a
7675
  ln conftest.a conftest.b 2>&5 || hard_links=no
7676
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7677 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7678 82 jeremybenn
$as_echo "$hard_links" >&6; }
7679 19 jeremybenn
  if test "$hard_links" = no; then
7680 121 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7681 82 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7682 19 jeremybenn
    need_locks=warn
7683
  fi
7684
else
7685
  need_locks=no
7686
fi
7687
 
7688
 
7689 82 jeremybenn
 
7690
 
7691
 
7692
 
7693 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7694 82 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7695
 
7696 19 jeremybenn
  runpath_var=
7697
  allow_undefined_flag=
7698 82 jeremybenn
  always_export_symbols=no
7699 19 jeremybenn
  archive_cmds=
7700
  archive_expsym_cmds=
7701 82 jeremybenn
  compiler_needs_object=no
7702
  enable_shared_with_static_runtimes=no
7703 19 jeremybenn
  export_dynamic_flag_spec=
7704 82 jeremybenn
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7705
  hardcode_automatic=no
7706
  hardcode_direct=no
7707
  hardcode_direct_absolute=no
7708 19 jeremybenn
  hardcode_libdir_flag_spec=
7709
  hardcode_libdir_flag_spec_ld=
7710
  hardcode_libdir_separator=
7711
  hardcode_minus_L=no
7712
  hardcode_shlibpath_var=unsupported
7713 82 jeremybenn
  inherit_rpath=no
7714 19 jeremybenn
  link_all_deplibs=unknown
7715
  module_cmds=
7716
  module_expsym_cmds=
7717 82 jeremybenn
  old_archive_from_new_cmds=
7718
  old_archive_from_expsyms_cmds=
7719
  thread_safe_flag_spec=
7720
  whole_archive_flag_spec=
7721 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
7722
  # included in the symbol list
7723
  include_expsyms=
7724
  # exclude_expsyms can be an extended regexp of symbols to exclude
7725
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7726
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7727
  # as well as any symbol that contains `d'.
7728 82 jeremybenn
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7729 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7730
  # platforms (ab)use it in PIC code, but their linkers get confused if
7731
  # the symbol is explicitly referenced.  Since portable code cannot
7732
  # rely on this symbol name, it's probably fine to never include it in
7733
  # preloaded symbol tables.
7734 82 jeremybenn
  # Exclude shared library initialization/finalization symbols.
7735 19 jeremybenn
  extract_expsyms_cmds=
7736
 
7737
  case $host_os in
7738 82 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
7739 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7740
    # When not using gcc, we currently assume that we are using
7741
    # Microsoft Visual C++.
7742
    if test "$GCC" != yes; then
7743
      with_gnu_ld=no
7744
    fi
7745
    ;;
7746
  interix*)
7747
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7748
    with_gnu_ld=yes
7749
    ;;
7750
  openbsd*)
7751
    with_gnu_ld=no
7752
    ;;
7753 93 jeremybenn
  linux* | k*bsd*-gnu)
7754
    link_all_deplibs=no
7755
    ;;
7756 19 jeremybenn
  esac
7757
 
7758
  ld_shlibs=yes
7759
  if test "$with_gnu_ld" = yes; then
7760
    # If archive_cmds runs LD, not CC, wlarc should be empty
7761
    wlarc='${wl}'
7762
 
7763
    # Set some defaults for GNU ld with shared library support. These
7764
    # are reset later if shared libraries are not supported. Putting them
7765
    # here allows them to be overridden if necessary.
7766
    runpath_var=LD_RUN_PATH
7767 82 jeremybenn
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7768 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
7769
    # ancient GNU ld didn't support --whole-archive et. al.
7770 82 jeremybenn
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7771
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7772
    else
7773
      whole_archive_flag_spec=
7774 19 jeremybenn
    fi
7775
    supports_anon_versioning=no
7776 82 jeremybenn
    case `$LD -v 2>&1` in
7777 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7778
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7779
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7780
      *\ 2.11.*) ;; # other 2.11 versions
7781
      *) supports_anon_versioning=yes ;;
7782
    esac
7783
 
7784
    # See if GNU ld supports shared libraries.
7785
    case $host_os in
7786 82 jeremybenn
    aix[3-9]*)
7787 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
7788
      if test "$host_cpu" != ia64; then
7789
        ld_shlibs=no
7790 82 jeremybenn
        cat <<_LT_EOF 1>&2
7791 19 jeremybenn
 
7792
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7793
*** to be unable to reliably create shared libraries on AIX.
7794
*** Therefore, libtool is disabling shared libraries support.  If you
7795
*** really care for shared libraries, you may want to modify your PATH
7796
*** so that a non-GNU linker is found, and then restart.
7797
 
7798 82 jeremybenn
_LT_EOF
7799 19 jeremybenn
      fi
7800
      ;;
7801
 
7802
    amigaos*)
7803 82 jeremybenn
      case $host_cpu in
7804
      powerpc)
7805
            # see comment about AmigaOS4 .so support
7806
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7807
            archive_expsym_cmds=''
7808
        ;;
7809
      m68k)
7810
            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)'
7811
            hardcode_libdir_flag_spec='-L$libdir'
7812
            hardcode_minus_L=yes
7813
        ;;
7814
      esac
7815 19 jeremybenn
      ;;
7816
 
7817
    beos*)
7818 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7819 19 jeremybenn
        allow_undefined_flag=unsupported
7820
        # Joseph Beckenbach  says some releases of gcc
7821
        # support --undefined.  This deserves some investigation.  FIXME
7822
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7823
      else
7824
        ld_shlibs=no
7825
      fi
7826
      ;;
7827
 
7828 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
7829
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7830 19 jeremybenn
      # as there is no search path for DLLs.
7831
      hardcode_libdir_flag_spec='-L$libdir'
7832
      allow_undefined_flag=unsupported
7833
      always_export_symbols=no
7834
      enable_shared_with_static_runtimes=yes
7835 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'
7836 19 jeremybenn
 
7837 82 jeremybenn
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7838 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7839
        # If the export-symbols file already is a .def file (1st line
7840
        # is EXPORTS), use it as is; otherwise, prepend...
7841
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7842
          cp $export_symbols $output_objdir/$soname.def;
7843
        else
7844
          echo EXPORTS > $output_objdir/$soname.def;
7845
          cat $export_symbols >> $output_objdir/$soname.def;
7846
        fi~
7847
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7848
      else
7849
        ld_shlibs=no
7850
      fi
7851
      ;;
7852
 
7853
    interix[3-9]*)
7854
      hardcode_direct=no
7855
      hardcode_shlibpath_var=no
7856
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7857
      export_dynamic_flag_spec='${wl}-E'
7858
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7859
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7860
      # default) and relocated if they conflict, which is a slow very memory
7861
      # consuming and fragmenting process.  To avoid this, we pick a random,
7862
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7863
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7864
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7865
      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'
7866
      ;;
7867
 
7868 82 jeremybenn
    gnu* | linux* | tpf* | k*bsd*-gnu)
7869
      tmp_diet=no
7870
      if test "$host_os" = linux-dietlibc; then
7871
        case $cc_basename in
7872
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7873
        esac
7874
      fi
7875
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7876
         && test "$tmp_diet" = no
7877
      then
7878 19 jeremybenn
        tmp_addflag=
7879 82 jeremybenn
        tmp_sharedflag='-shared'
7880 19 jeremybenn
        case $cc_basename,$host_cpu in
7881 82 jeremybenn
        pgcc*)                          # Portland Group C compiler
7882
          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'
7883 19 jeremybenn
          tmp_addflag=' $pic_flag'
7884
          ;;
7885
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7886 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'
7887 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7888 82 jeremybenn
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7889 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
7890
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7891
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7892
        ifc* | ifort*)                  # Intel Fortran compiler
7893
          tmp_addflag=' -nofor_main' ;;
7894 82 jeremybenn
        lf95*)                          # Lahey Fortran 8.1
7895
          whole_archive_flag_spec=
7896
          tmp_sharedflag='--shared' ;;
7897
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7898
          tmp_sharedflag='-qmkshrobj'
7899
          tmp_addflag= ;;
7900 19 jeremybenn
        esac
7901
        case `$CC -V 2>&1 | sed 5q` in
7902
        *Sun\ C*)                       # Sun C 5.9
7903 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'
7904
          compiler_needs_object=yes
7905 19 jeremybenn
          tmp_sharedflag='-G' ;;
7906
        *Sun\ F*)                       # Sun Fortran 8.3
7907
          tmp_sharedflag='-G' ;;
7908
        esac
7909
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7910
 
7911 82 jeremybenn
        if test "x$supports_anon_versioning" = xyes; then
7912
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7913
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7914
            echo "local: *; };" >> $output_objdir/$libname.ver~
7915
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7916
        fi
7917
 
7918
        case $cc_basename in
7919
        xlf*)
7920
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7921
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7922
          hardcode_libdir_flag_spec=
7923
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7924
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7925
          if test "x$supports_anon_versioning" = xyes; then
7926
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7927
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7928
              echo "local: *; };" >> $output_objdir/$libname.ver~
7929
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7930
          fi
7931
          ;;
7932
        esac
7933 19 jeremybenn
      else
7934 82 jeremybenn
        ld_shlibs=no
7935 19 jeremybenn
      fi
7936
      ;;
7937
 
7938 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7939 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7940 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7941
        wlarc=
7942
      else
7943
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7944
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7945
      fi
7946
      ;;
7947
 
7948
    solaris*)
7949 82 jeremybenn
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7950 19 jeremybenn
        ld_shlibs=no
7951 82 jeremybenn
        cat <<_LT_EOF 1>&2
7952 19 jeremybenn
 
7953
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7954
*** create shared libraries on Solaris systems.  Therefore, libtool
7955
*** is disabling shared libraries support.  We urge you to upgrade GNU
7956
*** binutils to release 2.9.1 or newer.  Another option is to modify
7957
*** your PATH or compiler configuration so that the native linker is
7958
*** used, and then restart.
7959
 
7960 82 jeremybenn
_LT_EOF
7961
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7962 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7963
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7964
      else
7965
        ld_shlibs=no
7966
      fi
7967
      ;;
7968
 
7969
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7970
      case `$LD -v 2>&1` in
7971
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7972
        ld_shlibs=no
7973
        cat <<_LT_EOF 1>&2
7974
 
7975
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7976
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7977
*** is disabling shared libraries support.  We urge you to upgrade GNU
7978
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7979
*** your PATH or compiler configuration so that the native linker is
7980
*** used, and then restart.
7981
 
7982
_LT_EOF
7983
        ;;
7984
        *)
7985 82 jeremybenn
          # For security reasons, it is highly recommended that you always
7986
          # use absolute paths for naming shared libraries, and exclude the
7987
          # DT_RUNPATH tag from executables and libraries.  But doing so
7988
          # requires that you compile everything twice, which is a pain.
7989
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7990
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7991
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7992
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7993 19 jeremybenn
          else
7994
            ld_shlibs=no
7995
          fi
7996
        ;;
7997
      esac
7998
      ;;
7999
 
8000
    sunos4*)
8001
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8002
      wlarc=
8003
      hardcode_direct=yes
8004
      hardcode_shlibpath_var=no
8005
      ;;
8006
 
8007
    *)
8008 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8009 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8010
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8011
      else
8012
        ld_shlibs=no
8013
      fi
8014
      ;;
8015
    esac
8016
 
8017
    if test "$ld_shlibs" = no; then
8018
      runpath_var=
8019
      hardcode_libdir_flag_spec=
8020
      export_dynamic_flag_spec=
8021
      whole_archive_flag_spec=
8022
    fi
8023
  else
8024
    # PORTME fill in a description of your system's linker (not GNU ld)
8025
    case $host_os in
8026
    aix3*)
8027
      allow_undefined_flag=unsupported
8028
      always_export_symbols=yes
8029
      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'
8030
      # Note: this linker hardcodes the directories in LIBPATH if there
8031
      # are no directories specified by -L.
8032
      hardcode_minus_L=yes
8033
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8034
        # Neither direct hardcoding nor static linking is supported with a
8035
        # broken collect2.
8036
        hardcode_direct=unsupported
8037
      fi
8038
      ;;
8039
 
8040 82 jeremybenn
    aix[4-9]*)
8041 19 jeremybenn
      if test "$host_cpu" = ia64; then
8042
        # On IA64, the linker does run time linking by default, so we don't
8043
        # have to do anything special.
8044
        aix_use_runtimelinking=no
8045
        exp_sym_flag='-Bexport'
8046
        no_entry_flag=""
8047
      else
8048
        # If we're using GNU nm, then we don't want the "-C" option.
8049
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8050 82 jeremybenn
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8051
          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'
8052 19 jeremybenn
        else
8053 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'
8054 19 jeremybenn
        fi
8055
        aix_use_runtimelinking=no
8056
 
8057
        # Test if we are trying to use run time linking or normal
8058
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8059
        # need to do runtime linking.
8060 82 jeremybenn
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8061 19 jeremybenn
          for ld_flag in $LDFLAGS; do
8062 82 jeremybenn
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8063
            aix_use_runtimelinking=yes
8064
            break
8065
          fi
8066 19 jeremybenn
          done
8067
          ;;
8068
        esac
8069
 
8070
        exp_sym_flag='-bexport'
8071
        no_entry_flag='-bnoentry'
8072
      fi
8073
 
8074
      # When large executables or shared objects are built, AIX ld can
8075
      # have problems creating the table of contents.  If linking a library
8076
      # or program results in "error TOC overflow" add -mminimal-toc to
8077
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8078
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8079
 
8080
      archive_cmds=''
8081
      hardcode_direct=yes
8082 82 jeremybenn
      hardcode_direct_absolute=yes
8083 19 jeremybenn
      hardcode_libdir_separator=':'
8084
      link_all_deplibs=yes
8085 82 jeremybenn
      file_list_spec='${wl}-f,'
8086 19 jeremybenn
 
8087
      if test "$GCC" = yes; then
8088
        case $host_os in aix4.[012]|aix4.[012].*)
8089
        # We only want to do this on AIX 4.2 and lower, the check
8090
        # below for broken collect2 doesn't work under 4.3+
8091
          collect2name=`${CC} -print-prog-name=collect2`
8092 82 jeremybenn
          if test -f "$collect2name" &&
8093
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8094 19 jeremybenn
          then
8095 82 jeremybenn
          # We have reworked collect2
8096
          :
8097 19 jeremybenn
          else
8098 82 jeremybenn
          # We have old collect2
8099
          hardcode_direct=unsupported
8100
          # It fails to find uninstalled libraries when the uninstalled
8101
          # path is not listed in the libpath.  Setting hardcode_minus_L
8102
          # to unsupported forces relinking
8103
          hardcode_minus_L=yes
8104
          hardcode_libdir_flag_spec='-L$libdir'
8105
          hardcode_libdir_separator=
8106 19 jeremybenn
          fi
8107
          ;;
8108
        esac
8109
        shared_flag='-shared'
8110
        if test "$aix_use_runtimelinking" = yes; then
8111
          shared_flag="$shared_flag "'${wl}-G'
8112
        fi
8113 93 jeremybenn
        link_all_deplibs=no
8114 19 jeremybenn
      else
8115
        # not using gcc
8116
        if test "$host_cpu" = ia64; then
8117 82 jeremybenn
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8118
        # chokes on -Wl,-G. The following line is correct:
8119 19 jeremybenn
          shared_flag='-G'
8120
        else
8121
          if test "$aix_use_runtimelinking" = yes; then
8122
            shared_flag='${wl}-G'
8123
          else
8124
            shared_flag='${wl}-bM:SRE'
8125
          fi
8126
        fi
8127
      fi
8128
 
8129 82 jeremybenn
      export_dynamic_flag_spec='${wl}-bexpall'
8130 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
8131
      # underscore (_), so it is better to generate a list of symbols to export.
8132
      always_export_symbols=yes
8133
      if test "$aix_use_runtimelinking" = yes; then
8134
        # Warning - without using the other runtime loading flags (-brtl),
8135
        # -berok will link without error, but may produce a broken library.
8136
        allow_undefined_flag='-berok'
8137 82 jeremybenn
        # Determine the default libpath from the value encoded in an
8138
        # empty executable.
8139 121 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
8140
/* confdefs.h.  */
8141
_ACEOF
8142
cat confdefs.h >>conftest.$ac_ext
8143
cat >>conftest.$ac_ext <<_ACEOF
8144 19 jeremybenn
/* end confdefs.h.  */
8145
 
8146
int
8147
main ()
8148
{
8149
 
8150
  ;
8151
  return 0;
8152
}
8153
_ACEOF
8154 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
8155
if { (ac_try="$ac_link"
8156
case "(($ac_try" in
8157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158
  *) ac_try_echo=$ac_try;;
8159
esac
8160
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8161
$as_echo "$ac_try_echo") >&5
8162
  (eval "$ac_link") 2>conftest.er1
8163
  ac_status=$?
8164
  grep -v '^ *+' conftest.er1 >conftest.err
8165
  rm -f conftest.er1
8166
  cat conftest.err >&5
8167
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168
  (exit $ac_status); } && {
8169
         test -z "$ac_c_werror_flag" ||
8170
         test ! -s conftest.err
8171
       } && test -s conftest$ac_exeext && {
8172
         test "$cross_compiling" = yes ||
8173
         $as_test_x conftest$ac_exeext
8174
       }; then
8175 19 jeremybenn
 
8176
lt_aix_libpath_sed='
8177
    /Import File Strings/,/^$/ {
8178
        /^0/ {
8179
            s/^0  *\(.*\)$/\1/
8180
            p
8181
        }
8182
    }'
8183
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8184
# Check for a 64-bit object if we didn't find anything.
8185
if test -z "$aix_libpath"; then
8186
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8187
fi
8188 121 jeremybenn
else
8189
  $as_echo "$as_me: failed program was:" >&5
8190
sed 's/^/| /' conftest.$ac_ext >&5
8191
 
8192
 
8193 19 jeremybenn
fi
8194 121 jeremybenn
 
8195
rm -rf conftest.dSYM
8196
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8197
      conftest$ac_exeext conftest.$ac_ext
8198 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8199
 
8200 82 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8201
        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"
8202
      else
8203 19 jeremybenn
        if test "$host_cpu" = ia64; then
8204
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8205
          allow_undefined_flag="-z nodefs"
8206
          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"
8207
        else
8208 82 jeremybenn
         # Determine the default libpath from the value encoded in an
8209
         # empty executable.
8210 121 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
8211
/* confdefs.h.  */
8212
_ACEOF
8213
cat confdefs.h >>conftest.$ac_ext
8214
cat >>conftest.$ac_ext <<_ACEOF
8215 19 jeremybenn
/* end confdefs.h.  */
8216
 
8217
int
8218
main ()
8219
{
8220
 
8221
  ;
8222
  return 0;
8223
}
8224
_ACEOF
8225 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
8226
if { (ac_try="$ac_link"
8227
case "(($ac_try" in
8228
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229
  *) ac_try_echo=$ac_try;;
8230
esac
8231
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8232
$as_echo "$ac_try_echo") >&5
8233
  (eval "$ac_link") 2>conftest.er1
8234
  ac_status=$?
8235
  grep -v '^ *+' conftest.er1 >conftest.err
8236
  rm -f conftest.er1
8237
  cat conftest.err >&5
8238
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239
  (exit $ac_status); } && {
8240
         test -z "$ac_c_werror_flag" ||
8241
         test ! -s conftest.err
8242
       } && test -s conftest$ac_exeext && {
8243
         test "$cross_compiling" = yes ||
8244
         $as_test_x conftest$ac_exeext
8245
       }; then
8246 19 jeremybenn
 
8247
lt_aix_libpath_sed='
8248
    /Import File Strings/,/^$/ {
8249
        /^0/ {
8250
            s/^0  *\(.*\)$/\1/
8251
            p
8252
        }
8253
    }'
8254
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8255
# Check for a 64-bit object if we didn't find anything.
8256
if test -z "$aix_libpath"; then
8257
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8258
fi
8259 121 jeremybenn
else
8260
  $as_echo "$as_me: failed program was:" >&5
8261
sed 's/^/| /' conftest.$ac_ext >&5
8262
 
8263
 
8264 19 jeremybenn
fi
8265 121 jeremybenn
 
8266
rm -rf conftest.dSYM
8267
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8268
      conftest$ac_exeext conftest.$ac_ext
8269 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8270
 
8271
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8272
          # Warning - without using the other run time loading flags,
8273
          # -berok will link without error, but may produce a broken library.
8274
          no_undefined_flag=' ${wl}-bernotok'
8275
          allow_undefined_flag=' ${wl}-berok'
8276
          # Exported symbols can be pulled into shared objects from archives
8277
          whole_archive_flag_spec='$convenience'
8278
          archive_cmds_need_lc=yes
8279
          # This is similar to how AIX traditionally builds its shared libraries.
8280
          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'
8281
        fi
8282
      fi
8283
      ;;
8284
 
8285
    amigaos*)
8286 82 jeremybenn
      case $host_cpu in
8287
      powerpc)
8288
            # see comment about AmigaOS4 .so support
8289
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290
            archive_expsym_cmds=''
8291
        ;;
8292
      m68k)
8293
            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)'
8294
            hardcode_libdir_flag_spec='-L$libdir'
8295
            hardcode_minus_L=yes
8296
        ;;
8297
      esac
8298 19 jeremybenn
      ;;
8299
 
8300
    bsdi[45]*)
8301
      export_dynamic_flag_spec=-rdynamic
8302
      ;;
8303
 
8304 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8305 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8306
      # Microsoft Visual C++.
8307
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8308
      # no search path for DLLs.
8309
      hardcode_libdir_flag_spec=' '
8310
      allow_undefined_flag=unsupported
8311
      # Tell ltmain to make .lib files, not .a files.
8312
      libext=lib
8313
      # Tell ltmain to make .dll files, not .so files.
8314
      shrext_cmds=".dll"
8315
      # FIXME: Setting linknames here is a bad hack.
8316 82 jeremybenn
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8317 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8318 82 jeremybenn
      old_archive_from_new_cmds='true'
8319 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8320
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8321
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8322
      enable_shared_with_static_runtimes=yes
8323
      ;;
8324
 
8325
    darwin* | rhapsody*)
8326 82 jeremybenn
 
8327
 
8328
  archive_cmds_need_lc=no
8329
  hardcode_direct=no
8330
  hardcode_automatic=yes
8331
  hardcode_shlibpath_var=unsupported
8332
  whole_archive_flag_spec=''
8333
  link_all_deplibs=yes
8334
  allow_undefined_flag="$_lt_dar_allow_undefined"
8335
  case $cc_basename in
8336
     ifort*) _lt_dar_can_shared=yes ;;
8337
     *) _lt_dar_can_shared=$GCC ;;
8338
  esac
8339
  if test "$_lt_dar_can_shared" = "yes"; then
8340
    output_verbose_link_cmd=echo
8341
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8342
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8343
    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}"
8344
    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}"
8345
 
8346
  else
8347
  ld_shlibs=no
8348
  fi
8349
 
8350 19 jeremybenn
      ;;
8351
 
8352
    dgux*)
8353
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8354
      hardcode_libdir_flag_spec='-L$libdir'
8355
      hardcode_shlibpath_var=no
8356
      ;;
8357
 
8358
    freebsd1*)
8359
      ld_shlibs=no
8360
      ;;
8361
 
8362
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8363
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8364
    # does not break anything, and helps significantly (at the cost of a little
8365
    # extra space).
8366
    freebsd2.2*)
8367
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8368
      hardcode_libdir_flag_spec='-R$libdir'
8369
      hardcode_direct=yes
8370
      hardcode_shlibpath_var=no
8371
      ;;
8372
 
8373
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8374
    freebsd2*)
8375
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8376
      hardcode_direct=yes
8377
      hardcode_minus_L=yes
8378
      hardcode_shlibpath_var=no
8379
      ;;
8380
 
8381
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8382
    freebsd* | dragonfly*)
8383
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8384
      hardcode_libdir_flag_spec='-R$libdir'
8385
      hardcode_direct=yes
8386
      hardcode_shlibpath_var=no
8387
      ;;
8388
 
8389
    hpux9*)
8390
      if test "$GCC" = yes; then
8391 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'
8392 19 jeremybenn
      else
8393 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'
8394 19 jeremybenn
      fi
8395
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8396
      hardcode_libdir_separator=:
8397
      hardcode_direct=yes
8398
 
8399
      # hardcode_minus_L: Not really in the search PATH,
8400
      # but as the default location of the library.
8401
      hardcode_minus_L=yes
8402
      export_dynamic_flag_spec='${wl}-E'
8403
      ;;
8404
 
8405
    hpux10*)
8406
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8407
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8408
      else
8409
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8410
      fi
8411
      if test "$with_gnu_ld" = no; then
8412
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8413 82 jeremybenn
        hardcode_libdir_flag_spec_ld='+b $libdir'
8414 19 jeremybenn
        hardcode_libdir_separator=:
8415
        hardcode_direct=yes
8416 82 jeremybenn
        hardcode_direct_absolute=yes
8417 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8418
        # hardcode_minus_L: Not really in the search PATH,
8419
        # but as the default location of the library.
8420
        hardcode_minus_L=yes
8421
      fi
8422
      ;;
8423
 
8424
    hpux11*)
8425
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8426
        case $host_cpu in
8427
        hppa*64*)
8428
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8429
          ;;
8430
        ia64*)
8431 82 jeremybenn
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8432 19 jeremybenn
          ;;
8433
        *)
8434
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8435
          ;;
8436
        esac
8437
      else
8438
        case $host_cpu in
8439
        hppa*64*)
8440
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8441
          ;;
8442
        ia64*)
8443
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8444
          ;;
8445
        *)
8446
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8447
          ;;
8448
        esac
8449
      fi
8450
      if test "$with_gnu_ld" = no; then
8451
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8452
        hardcode_libdir_separator=:
8453
 
8454
        case $host_cpu in
8455
        hppa*64*|ia64*)
8456
          hardcode_direct=no
8457
          hardcode_shlibpath_var=no
8458
          ;;
8459
        *)
8460
          hardcode_direct=yes
8461 82 jeremybenn
          hardcode_direct_absolute=yes
8462 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8463
 
8464
          # hardcode_minus_L: Not really in the search PATH,
8465
          # but as the default location of the library.
8466
          hardcode_minus_L=yes
8467
          ;;
8468
        esac
8469
      fi
8470
      ;;
8471
 
8472
    irix5* | irix6* | nonstopux*)
8473
      if test "$GCC" = yes; then
8474 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'
8475
        # Try to use the -exported_symbol ld option, if it does not
8476
        # work, assume that -exports_file does not work either and
8477
        # implicitly export all symbols.
8478
        save_LDFLAGS="$LDFLAGS"
8479
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8480 121 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
8481 82 jeremybenn
int foo(void) {}
8482
_ACEOF
8483 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
8484
if { (ac_try="$ac_link"
8485
case "(($ac_try" in
8486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487
  *) ac_try_echo=$ac_try;;
8488
esac
8489
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8490
$as_echo "$ac_try_echo") >&5
8491
  (eval "$ac_link") 2>conftest.er1
8492
  ac_status=$?
8493
  grep -v '^ *+' conftest.er1 >conftest.err
8494
  rm -f conftest.er1
8495
  cat conftest.err >&5
8496
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497
  (exit $ac_status); } && {
8498
         test -z "$ac_c_werror_flag" ||
8499
         test ! -s conftest.err
8500
       } && test -s conftest$ac_exeext && {
8501
         test "$cross_compiling" = yes ||
8502
         $as_test_x conftest$ac_exeext
8503
       }; then
8504 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'
8505
 
8506 121 jeremybenn
else
8507
  $as_echo "$as_me: failed program was:" >&5
8508
sed 's/^/| /' conftest.$ac_ext >&5
8509
 
8510
 
8511 82 jeremybenn
fi
8512 121 jeremybenn
 
8513
rm -rf conftest.dSYM
8514
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8515
      conftest$ac_exeext conftest.$ac_ext
8516 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
8517 19 jeremybenn
      else
8518 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'
8519
        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'
8520 19 jeremybenn
      fi
8521 82 jeremybenn
      archive_cmds_need_lc='no'
8522 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8523
      hardcode_libdir_separator=:
8524 82 jeremybenn
      inherit_rpath=yes
8525 19 jeremybenn
      link_all_deplibs=yes
8526
      ;;
8527
 
8528 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
8529 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8530 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8531
      else
8532
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8533
      fi
8534
      hardcode_libdir_flag_spec='-R$libdir'
8535
      hardcode_direct=yes
8536
      hardcode_shlibpath_var=no
8537
      ;;
8538
 
8539
    newsos6)
8540
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8541
      hardcode_direct=yes
8542
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8543
      hardcode_libdir_separator=:
8544
      hardcode_shlibpath_var=no
8545
      ;;
8546
 
8547 82 jeremybenn
    *nto* | *qnx*)
8548
      ;;
8549
 
8550 19 jeremybenn
    openbsd*)
8551
      if test -f /usr/libexec/ld.so; then
8552
        hardcode_direct=yes
8553
        hardcode_shlibpath_var=no
8554 82 jeremybenn
        hardcode_direct_absolute=yes
8555
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8556 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8557
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8558
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8559
          export_dynamic_flag_spec='${wl}-E'
8560
        else
8561
          case $host_os in
8562
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8563
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8564
             hardcode_libdir_flag_spec='-R$libdir'
8565
             ;;
8566
           *)
8567
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8568
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8569
             ;;
8570
          esac
8571 82 jeremybenn
        fi
8572 19 jeremybenn
      else
8573
        ld_shlibs=no
8574
      fi
8575
      ;;
8576
 
8577
    os2*)
8578
      hardcode_libdir_flag_spec='-L$libdir'
8579
      hardcode_minus_L=yes
8580
      allow_undefined_flag=unsupported
8581 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'
8582
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8583 19 jeremybenn
      ;;
8584
 
8585
    osf3*)
8586
      if test "$GCC" = yes; then
8587
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8588 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'
8589 19 jeremybenn
      else
8590
        allow_undefined_flag=' -expect_unresolved \*'
8591 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'
8592 19 jeremybenn
      fi
8593 82 jeremybenn
      archive_cmds_need_lc='no'
8594 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8595
      hardcode_libdir_separator=:
8596
      ;;
8597
 
8598
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8599
      if test "$GCC" = yes; then
8600
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8601 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'
8602 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8603
      else
8604
        allow_undefined_flag=' -expect_unresolved \*'
8605 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'
8606
        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~
8607
        $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'
8608 19 jeremybenn
 
8609
        # Both c and cxx compiler support -rpath directly
8610
        hardcode_libdir_flag_spec='-rpath $libdir'
8611
      fi
8612 82 jeremybenn
      archive_cmds_need_lc='no'
8613 19 jeremybenn
      hardcode_libdir_separator=:
8614
      ;;
8615
 
8616
    solaris*)
8617 82 jeremybenn
      no_undefined_flag=' -z defs'
8618 19 jeremybenn
      if test "$GCC" = yes; then
8619
        wlarc='${wl}'
8620 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8621
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8622
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8623 19 jeremybenn
      else
8624 82 jeremybenn
        case `$CC -V 2>&1` in
8625
        *"Compilers 5.0"*)
8626
          wlarc=''
8627
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8628
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8629
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8630
          ;;
8631
        *)
8632
          wlarc='${wl}'
8633
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8634
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8635
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8636
          ;;
8637
        esac
8638 19 jeremybenn
      fi
8639
      hardcode_libdir_flag_spec='-R$libdir'
8640
      hardcode_shlibpath_var=no
8641
      case $host_os in
8642
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8643
      *)
8644
        # The compiler driver will combine and reorder linker options,
8645
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8646
        # but is careful enough not to reorder.
8647 82 jeremybenn
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8648 19 jeremybenn
        if test "$GCC" = yes; then
8649
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8650
        else
8651
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8652
        fi
8653
        ;;
8654
      esac
8655
      link_all_deplibs=yes
8656
      ;;
8657
 
8658
    sunos4*)
8659
      if test "x$host_vendor" = xsequent; then
8660
        # Use $CC to link under sequent, because it throws in some extra .o
8661
        # files that make .init and .fini sections work.
8662
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8663
      else
8664
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8665
      fi
8666
      hardcode_libdir_flag_spec='-L$libdir'
8667
      hardcode_direct=yes
8668
      hardcode_minus_L=yes
8669
      hardcode_shlibpath_var=no
8670
      ;;
8671
 
8672
    sysv4)
8673
      case $host_vendor in
8674
        sni)
8675
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8676
          hardcode_direct=yes # is this really true???
8677
        ;;
8678
        siemens)
8679
          ## LD is ld it makes a PLAMLIB
8680
          ## CC just makes a GrossModule.
8681
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8682
          reload_cmds='$CC -r -o $output$reload_objs'
8683
          hardcode_direct=no
8684
        ;;
8685
        motorola)
8686
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8687
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8688
        ;;
8689
      esac
8690
      runpath_var='LD_RUN_PATH'
8691
      hardcode_shlibpath_var=no
8692
      ;;
8693
 
8694
    sysv4.3*)
8695
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8696
      hardcode_shlibpath_var=no
8697
      export_dynamic_flag_spec='-Bexport'
8698
      ;;
8699
 
8700
    sysv4*MP*)
8701
      if test -d /usr/nec; then
8702
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8703
        hardcode_shlibpath_var=no
8704
        runpath_var=LD_RUN_PATH
8705
        hardcode_runpath_var=yes
8706
        ld_shlibs=yes
8707
      fi
8708
      ;;
8709
 
8710
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8711
      no_undefined_flag='${wl}-z,text'
8712
      archive_cmds_need_lc=no
8713
      hardcode_shlibpath_var=no
8714
      runpath_var='LD_RUN_PATH'
8715
 
8716
      if test "$GCC" = yes; then
8717
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8718
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8719
      else
8720
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8721
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8722
      fi
8723
      ;;
8724
 
8725
    sysv5* | sco3.2v5* | sco5v6*)
8726
      # Note: We can NOT use -z defs as we might desire, because we do not
8727
      # link with -lc, and that would cause any symbols used from libc to
8728
      # always be unresolved, which means just about no library would
8729
      # ever link correctly.  If we're not using GNU ld we use -z text
8730
      # though, which does catch some bad symbols but isn't as heavy-handed
8731
      # as -z defs.
8732
      no_undefined_flag='${wl}-z,text'
8733
      allow_undefined_flag='${wl}-z,nodefs'
8734
      archive_cmds_need_lc=no
8735
      hardcode_shlibpath_var=no
8736 82 jeremybenn
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8737 19 jeremybenn
      hardcode_libdir_separator=':'
8738
      link_all_deplibs=yes
8739
      export_dynamic_flag_spec='${wl}-Bexport'
8740
      runpath_var='LD_RUN_PATH'
8741
 
8742
      if test "$GCC" = yes; then
8743 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8744
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8745 19 jeremybenn
      else
8746 82 jeremybenn
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8748 19 jeremybenn
      fi
8749
      ;;
8750
 
8751
    uts4*)
8752
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753
      hardcode_libdir_flag_spec='-L$libdir'
8754
      hardcode_shlibpath_var=no
8755
      ;;
8756
 
8757
    *)
8758
      ld_shlibs=no
8759
      ;;
8760
    esac
8761 82 jeremybenn
 
8762
    if test x$host_vendor = xsni; then
8763
      case $host in
8764
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8765
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8766
        ;;
8767
      esac
8768
    fi
8769 19 jeremybenn
  fi
8770
 
8771 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8772 82 jeremybenn
$as_echo "$ld_shlibs" >&6; }
8773 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8774
 
8775 82 jeremybenn
with_gnu_ld=$with_gnu_ld
8776
 
8777
 
8778
 
8779
 
8780
 
8781
 
8782
 
8783
 
8784
 
8785
 
8786
 
8787
 
8788
 
8789
 
8790
 
8791 19 jeremybenn
#
8792
# Do we need to explicitly link libc?
8793
#
8794
case "x$archive_cmds_need_lc" in
8795
x|xyes)
8796
  # Assume -lc should be added
8797
  archive_cmds_need_lc=yes
8798
 
8799
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8800
    case $archive_cmds in
8801
    *'~'*)
8802
      # FIXME: we may have to deal with multi-command sequences.
8803
      ;;
8804
    '$CC '*)
8805
      # Test whether the compiler implicitly links with -lc since on some
8806
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8807
      # to ld, don't add -lc before -lgcc.
8808 121 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8809 82 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8810
      $RM conftest*
8811 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8812
 
8813 121 jeremybenn
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8814 19 jeremybenn
  (eval $ac_compile) 2>&5
8815
  ac_status=$?
8816 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817
  (exit $ac_status); } 2>conftest.err; then
8818 19 jeremybenn
        soname=conftest
8819
        lib=conftest
8820
        libobjs=conftest.$ac_objext
8821
        deplibs=
8822
        wl=$lt_prog_compiler_wl
8823
        pic_flag=$lt_prog_compiler_pic
8824
        compiler_flags=-v
8825
        linker_flags=-v
8826
        verstring=
8827
        output_objdir=.
8828
        libname=conftest
8829
        lt_save_allow_undefined_flag=$allow_undefined_flag
8830
        allow_undefined_flag=
8831 121 jeremybenn
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8832 82 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8833 19 jeremybenn
  ac_status=$?
8834 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835
  (exit $ac_status); }
8836 19 jeremybenn
        then
8837
          archive_cmds_need_lc=no
8838
        else
8839
          archive_cmds_need_lc=yes
8840
        fi
8841
        allow_undefined_flag=$lt_save_allow_undefined_flag
8842
      else
8843
        cat conftest.err 1>&5
8844
      fi
8845 82 jeremybenn
      $RM conftest*
8846 121 jeremybenn
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8847 82 jeremybenn
$as_echo "$archive_cmds_need_lc" >&6; }
8848 19 jeremybenn
      ;;
8849
    esac
8850
  fi
8851
  ;;
8852
esac
8853
 
8854
 
8855 82 jeremybenn
 
8856
 
8857
 
8858
 
8859
 
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 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9011 82 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9012
 
9013 19 jeremybenn
if test "$GCC" = yes; then
9014
  case $host_os in
9015
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9016
    *) lt_awk_arg="/^libraries:/" ;;
9017
  esac
9018
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9019 82 jeremybenn
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9020 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
9021
    # otherwise default to the standard path separator (i.e. ":") - it is
9022
    # assumed that no part of a normal pathname contains ";" but that should
9023
    # okay in the real world where ";" in dirpaths is itself problematic.
9024 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9025 19 jeremybenn
  else
9026 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9027 19 jeremybenn
  fi
9028
  # Ok, now we have the path, separated by spaces, we can step through it
9029
  # and add multilib dir if necessary.
9030
  lt_tmp_lt_search_path_spec=
9031
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9032
  for lt_sys_path in $lt_search_path_spec; do
9033
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9034
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9035
    else
9036
      test -d "$lt_sys_path" && \
9037
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9038
    fi
9039
  done
9040 82 jeremybenn
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9041 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
9042
  lt_foo="";
9043
  lt_count=0;
9044
  for (lt_i = NF; lt_i > 0; lt_i--) {
9045
    if ($lt_i != "" && $lt_i != ".") {
9046
      if ($lt_i == "..") {
9047
        lt_count++;
9048
      } else {
9049
        if (lt_count == 0) {
9050
          lt_foo="/" $lt_i lt_foo;
9051
        } else {
9052
          lt_count--;
9053
        }
9054
      }
9055
    }
9056
  }
9057
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9058
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9059
}'`
9060 82 jeremybenn
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9061 19 jeremybenn
else
9062
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9063
fi
9064 82 jeremybenn
library_names_spec=
9065
libname_spec='lib$name'
9066
soname_spec=
9067
shrext_cmds=".so"
9068
postinstall_cmds=
9069
postuninstall_cmds=
9070
finish_cmds=
9071
finish_eval=
9072
shlibpath_var=
9073
shlibpath_overrides_runpath=unknown
9074
version_type=none
9075
dynamic_linker="$host_os ld.so"
9076
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9077 19 jeremybenn
need_lib_prefix=unknown
9078
hardcode_into_libs=no
9079
 
9080
# when you set need_version to no, make sure it does not cause -set_version
9081
# flags to be left without arguments
9082
need_version=unknown
9083
 
9084
case $host_os in
9085
aix3*)
9086
  version_type=linux
9087
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9088
  shlibpath_var=LIBPATH
9089
 
9090
  # AIX 3 has no versioning support, so we append a major version to the name.
9091
  soname_spec='${libname}${release}${shared_ext}$major'
9092
  ;;
9093
 
9094 82 jeremybenn
aix[4-9]*)
9095 19 jeremybenn
  version_type=linux
9096
  need_lib_prefix=no
9097
  need_version=no
9098
  hardcode_into_libs=yes
9099
  if test "$host_cpu" = ia64; then
9100
    # AIX 5 supports IA64
9101
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9102
    shlibpath_var=LD_LIBRARY_PATH
9103
  else
9104
    # With GCC up to 2.95.x, collect2 would create an import file
9105
    # for dependence libraries.  The import file would start with
9106
    # the line `#! .'.  This would cause the generated library to
9107
    # depend on `.', always an invalid library.  This was fixed in
9108
    # development snapshots of GCC prior to 3.0.
9109
    case $host_os in
9110
      aix4 | aix4.[01] | aix4.[01].*)
9111
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9112
           echo ' yes '
9113 82 jeremybenn
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9114 19 jeremybenn
        :
9115
      else
9116
        can_build_shared=no
9117
      fi
9118
      ;;
9119
    esac
9120
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9121
    # soname into executable. Probably we can add versioning support to
9122
    # collect2, so additional links can be useful in future.
9123
    if test "$aix_use_runtimelinking" = yes; then
9124
      # If using run time linking (on AIX 4.2 or later) use lib.so
9125
      # instead of lib.a to let people know that these are not
9126
      # typical AIX shared libraries.
9127
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9128
    else
9129
      # We preserve .a as extension for shared libraries through AIX4.2
9130
      # and later when we are not doing run time linking.
9131
      library_names_spec='${libname}${release}.a $libname.a'
9132
      soname_spec='${libname}${release}${shared_ext}$major'
9133
    fi
9134
    shlibpath_var=LIBPATH
9135
  fi
9136
  ;;
9137
 
9138
amigaos*)
9139 82 jeremybenn
  case $host_cpu in
9140
  powerpc)
9141
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9142
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9143
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144
    ;;
9145
  m68k)
9146
    library_names_spec='$libname.ixlibrary $libname.a'
9147
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9148
    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'
9149
    ;;
9150
  esac
9151 19 jeremybenn
  ;;
9152
 
9153
beos*)
9154
  library_names_spec='${libname}${shared_ext}'
9155
  dynamic_linker="$host_os ld.so"
9156
  shlibpath_var=LIBRARY_PATH
9157
  ;;
9158
 
9159
bsdi[45]*)
9160
  version_type=linux
9161
  need_version=no
9162
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163
  soname_spec='${libname}${release}${shared_ext}$major'
9164
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9165
  shlibpath_var=LD_LIBRARY_PATH
9166
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9167
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9168
  # the default ld.so.conf also contains /usr/contrib/lib and
9169
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9170
  # libtool to hard-code these into programs
9171
  ;;
9172
 
9173 82 jeremybenn
cygwin* | mingw* | pw32* | cegcc*)
9174 19 jeremybenn
  version_type=windows
9175
  shrext_cmds=".dll"
9176
  need_version=no
9177
  need_lib_prefix=no
9178
 
9179
  case $GCC,$host_os in
9180 82 jeremybenn
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9181 19 jeremybenn
    library_names_spec='$libname.dll.a'
9182
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9183
    postinstall_cmds='base_file=`basename \${file}`~
9184 82 jeremybenn
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9185 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
9186
      test -d \$dldir || mkdir -p \$dldir~
9187
      $install_prog $dir/$dlname \$dldir/$dlname~
9188 82 jeremybenn
      chmod a+x \$dldir/$dlname~
9189
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9190
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9191
      fi'
9192 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9193
      dlpath=$dir/\$dldll~
9194 82 jeremybenn
       $RM \$dlpath'
9195 19 jeremybenn
    shlibpath_overrides_runpath=yes
9196
 
9197
    case $host_os in
9198
    cygwin*)
9199
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9200
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9201
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9202
      ;;
9203 82 jeremybenn
    mingw* | cegcc*)
9204 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
9205
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9206 82 jeremybenn
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9207
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9208 19 jeremybenn
        # It is most probably a Windows format PATH printed by
9209
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9210
        # path with ; separators, and with drive letters. We can handle the
9211
        # drive letters (cygwin fileutils understands them), so leave them,
9212
        # especially as we might pass files found there to a mingw objdump,
9213
        # which wouldn't understand a cygwinified path. Ahh.
9214 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9215 19 jeremybenn
      else
9216 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9217 19 jeremybenn
      fi
9218
      ;;
9219
    pw32*)
9220
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9221
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9222
      ;;
9223
    esac
9224
    ;;
9225
 
9226
  *)
9227
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9228
    ;;
9229
  esac
9230
  dynamic_linker='Win32 ld.exe'
9231
  # FIXME: first we should search . and the directory the executable is in
9232
  shlibpath_var=PATH
9233
  ;;
9234
 
9235
darwin* | rhapsody*)
9236
  dynamic_linker="$host_os dyld"
9237
  version_type=darwin
9238
  need_lib_prefix=no
9239
  need_version=no
9240 82 jeremybenn
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9241 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9242
  shlibpath_overrides_runpath=yes
9243
  shlibpath_var=DYLD_LIBRARY_PATH
9244
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9245
 
9246
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9247
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9248
  ;;
9249
 
9250
dgux*)
9251
  version_type=linux
9252
  need_lib_prefix=no
9253
  need_version=no
9254
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9255
  soname_spec='${libname}${release}${shared_ext}$major'
9256
  shlibpath_var=LD_LIBRARY_PATH
9257
  ;;
9258
 
9259
freebsd1*)
9260
  dynamic_linker=no
9261
  ;;
9262
 
9263
freebsd* | dragonfly*)
9264
  # DragonFly does not have aout.  When/if they implement a new
9265
  # versioning mechanism, adjust this.
9266
  if test -x /usr/bin/objformat; then
9267
    objformat=`/usr/bin/objformat`
9268
  else
9269
    case $host_os in
9270
    freebsd[123]*) objformat=aout ;;
9271
    *) objformat=elf ;;
9272
    esac
9273
  fi
9274
  version_type=freebsd-$objformat
9275
  case $version_type in
9276
    freebsd-elf*)
9277
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9278
      need_version=no
9279
      need_lib_prefix=no
9280
      ;;
9281
    freebsd-*)
9282
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9283
      need_version=yes
9284
      ;;
9285
  esac
9286
  shlibpath_var=LD_LIBRARY_PATH
9287
  case $host_os in
9288
  freebsd2*)
9289
    shlibpath_overrides_runpath=yes
9290
    ;;
9291
  freebsd3.[01]* | freebsdelf3.[01]*)
9292
    shlibpath_overrides_runpath=yes
9293
    hardcode_into_libs=yes
9294
    ;;
9295
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9296
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9297
    shlibpath_overrides_runpath=no
9298
    hardcode_into_libs=yes
9299
    ;;
9300
  *) # from 4.6 on, and DragonFly
9301
    shlibpath_overrides_runpath=yes
9302
    hardcode_into_libs=yes
9303
    ;;
9304
  esac
9305
  ;;
9306
 
9307
gnu*)
9308
  version_type=linux
9309
  need_lib_prefix=no
9310
  need_version=no
9311
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9312
  soname_spec='${libname}${release}${shared_ext}$major'
9313
  shlibpath_var=LD_LIBRARY_PATH
9314
  hardcode_into_libs=yes
9315
  ;;
9316
 
9317
hpux9* | hpux10* | hpux11*)
9318
  # Give a soname corresponding to the major version so that dld.sl refuses to
9319
  # link against other versions.
9320
  version_type=sunos
9321
  need_lib_prefix=no
9322
  need_version=no
9323
  case $host_cpu in
9324
  ia64*)
9325
    shrext_cmds='.so'
9326
    hardcode_into_libs=yes
9327
    dynamic_linker="$host_os dld.so"
9328
    shlibpath_var=LD_LIBRARY_PATH
9329
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9330
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331
    soname_spec='${libname}${release}${shared_ext}$major'
9332
    if test "X$HPUX_IA64_MODE" = X32; then
9333
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9334
    else
9335
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9336
    fi
9337
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9338
    ;;
9339 82 jeremybenn
  hppa*64*)
9340 19 jeremybenn
    shrext_cmds='.sl'
9341 82 jeremybenn
    hardcode_into_libs=yes
9342 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9343 82 jeremybenn
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9344
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9345
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346
    soname_spec='${libname}${release}${shared_ext}$major'
9347
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9348
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9349
    ;;
9350
  *)
9351
    shrext_cmds='.sl'
9352
    dynamic_linker="$host_os dld.sl"
9353 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9354
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9355
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9356
    soname_spec='${libname}${release}${shared_ext}$major'
9357
    ;;
9358
  esac
9359
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9360
  postinstall_cmds='chmod 555 $lib'
9361
  ;;
9362
 
9363
interix[3-9]*)
9364
  version_type=linux
9365
  need_lib_prefix=no
9366
  need_version=no
9367
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9368
  soname_spec='${libname}${release}${shared_ext}$major'
9369
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9370
  shlibpath_var=LD_LIBRARY_PATH
9371
  shlibpath_overrides_runpath=no
9372
  hardcode_into_libs=yes
9373
  ;;
9374
 
9375
irix5* | irix6* | nonstopux*)
9376
  case $host_os in
9377
    nonstopux*) version_type=nonstopux ;;
9378
    *)
9379
        if test "$lt_cv_prog_gnu_ld" = yes; then
9380
                version_type=linux
9381
        else
9382
                version_type=irix
9383
        fi ;;
9384
  esac
9385
  need_lib_prefix=no
9386
  need_version=no
9387
  soname_spec='${libname}${release}${shared_ext}$major'
9388
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9389
  case $host_os in
9390
  irix5* | nonstopux*)
9391
    libsuff= shlibsuff=
9392
    ;;
9393
  *)
9394
    case $LD in # libtool.m4 will add one of these switches to LD
9395
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9396
      libsuff= shlibsuff= libmagic=32-bit;;
9397
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9398
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9399
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9400
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9401
    *) libsuff= shlibsuff= libmagic=never-match;;
9402
    esac
9403
    ;;
9404
  esac
9405
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9406
  shlibpath_overrides_runpath=no
9407
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9408
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9409
  hardcode_into_libs=yes
9410
  ;;
9411
 
9412
# No shared lib support for Linux oldld, aout, or coff.
9413
linux*oldld* | linux*aout* | linux*coff*)
9414
  dynamic_linker=no
9415
  ;;
9416
 
9417
# This must be Linux ELF.
9418
linux* | k*bsd*-gnu)
9419
  version_type=linux
9420
  need_lib_prefix=no
9421
  need_version=no
9422
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9423
  soname_spec='${libname}${release}${shared_ext}$major'
9424
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9425
  shlibpath_var=LD_LIBRARY_PATH
9426
  shlibpath_overrides_runpath=no
9427 82 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
9428
  save_LDFLAGS=$LDFLAGS
9429
  save_libdir=$libdir
9430
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9431
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9432 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
9433
/* confdefs.h.  */
9434
_ACEOF
9435
cat confdefs.h >>conftest.$ac_ext
9436
cat >>conftest.$ac_ext <<_ACEOF
9437 82 jeremybenn
/* end confdefs.h.  */
9438
 
9439
int
9440
main ()
9441
{
9442
 
9443
  ;
9444
  return 0;
9445
}
9446
_ACEOF
9447 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
9448
if { (ac_try="$ac_link"
9449
case "(($ac_try" in
9450
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451
  *) ac_try_echo=$ac_try;;
9452
esac
9453
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9454
$as_echo "$ac_try_echo") >&5
9455
  (eval "$ac_link") 2>conftest.er1
9456
  ac_status=$?
9457
  grep -v '^ *+' conftest.er1 >conftest.err
9458
  rm -f conftest.er1
9459
  cat conftest.err >&5
9460
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461
  (exit $ac_status); } && {
9462
         test -z "$ac_c_werror_flag" ||
9463
         test ! -s conftest.err
9464
       } && test -s conftest$ac_exeext && {
9465
         test "$cross_compiling" = yes ||
9466
         $as_test_x conftest$ac_exeext
9467
       }; then
9468
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9469 82 jeremybenn
  shlibpath_overrides_runpath=yes
9470
fi
9471 121 jeremybenn
 
9472
else
9473
  $as_echo "$as_me: failed program was:" >&5
9474
sed 's/^/| /' conftest.$ac_ext >&5
9475
 
9476
 
9477 82 jeremybenn
fi
9478 121 jeremybenn
 
9479
rm -rf conftest.dSYM
9480
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9481
      conftest$ac_exeext conftest.$ac_ext
9482 82 jeremybenn
  LDFLAGS=$save_LDFLAGS
9483
  libdir=$save_libdir
9484
 
9485 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9486
  # Some rework will be needed to allow for fast_install
9487
  # before this can be enabled.
9488
  hardcode_into_libs=yes
9489
 
9490
  # Append ld.so.conf contents to the search path
9491
  if test -f /etc/ld.so.conf; then
9492 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' ' '`
9493 93 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9494 19 jeremybenn
  fi
9495
 
9496
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9497
  # powerpc, because MkLinux only supported shared libraries with the
9498
  # GNU dynamic linker.  Since this was broken with cross compilers,
9499
  # most powerpc-linux boxes support dynamic linking these days and
9500
  # people can always --disable-shared, the test was removed, and we
9501
  # assume the GNU/Linux dynamic linker is in use.
9502
  dynamic_linker='GNU/Linux ld.so'
9503
  ;;
9504
 
9505 93 jeremybenn
netbsdelf*-gnu)
9506
  version_type=linux
9507
  need_lib_prefix=no
9508
  need_version=no
9509
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9510
  soname_spec='${libname}${release}${shared_ext}$major'
9511
  shlibpath_var=LD_LIBRARY_PATH
9512
  shlibpath_overrides_runpath=no
9513
  hardcode_into_libs=yes
9514
  dynamic_linker='NetBSD ld.elf_so'
9515
  ;;
9516
 
9517 19 jeremybenn
netbsd*)
9518
  version_type=sunos
9519
  need_lib_prefix=no
9520
  need_version=no
9521 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9522 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9523
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9524
    dynamic_linker='NetBSD (a.out) ld.so'
9525
  else
9526
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9527
    soname_spec='${libname}${release}${shared_ext}$major'
9528
    dynamic_linker='NetBSD ld.elf_so'
9529
  fi
9530
  shlibpath_var=LD_LIBRARY_PATH
9531
  shlibpath_overrides_runpath=yes
9532
  hardcode_into_libs=yes
9533
  ;;
9534
 
9535
newsos6)
9536
  version_type=linux
9537
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9538
  shlibpath_var=LD_LIBRARY_PATH
9539
  shlibpath_overrides_runpath=yes
9540
  ;;
9541
 
9542 82 jeremybenn
*nto* | *qnx*)
9543
  version_type=qnx
9544 19 jeremybenn
  need_lib_prefix=no
9545
  need_version=no
9546
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9547
  soname_spec='${libname}${release}${shared_ext}$major'
9548
  shlibpath_var=LD_LIBRARY_PATH
9549 82 jeremybenn
  shlibpath_overrides_runpath=no
9550
  hardcode_into_libs=yes
9551
  dynamic_linker='ldqnx.so'
9552 19 jeremybenn
  ;;
9553
 
9554
openbsd*)
9555
  version_type=sunos
9556
  sys_lib_dlsearch_path_spec="/usr/lib"
9557
  need_lib_prefix=no
9558
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9559
  case $host_os in
9560 82 jeremybenn
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9561
    *)                          need_version=no  ;;
9562 19 jeremybenn
  esac
9563
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9564
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9565
  shlibpath_var=LD_LIBRARY_PATH
9566 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9567 19 jeremybenn
    case $host_os in
9568
      openbsd2.[89] | openbsd2.[89].*)
9569
        shlibpath_overrides_runpath=no
9570
        ;;
9571
      *)
9572
        shlibpath_overrides_runpath=yes
9573
        ;;
9574
      esac
9575
  else
9576
    shlibpath_overrides_runpath=yes
9577
  fi
9578
  ;;
9579
 
9580
os2*)
9581
  libname_spec='$name'
9582
  shrext_cmds=".dll"
9583
  need_lib_prefix=no
9584
  library_names_spec='$libname${shared_ext} $libname.a'
9585
  dynamic_linker='OS/2 ld.exe'
9586
  shlibpath_var=LIBPATH
9587
  ;;
9588
 
9589
osf3* | osf4* | osf5*)
9590
  version_type=osf
9591
  need_lib_prefix=no
9592
  need_version=no
9593
  soname_spec='${libname}${release}${shared_ext}$major'
9594
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595
  shlibpath_var=LD_LIBRARY_PATH
9596
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9597
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9598
  ;;
9599
 
9600
rdos*)
9601
  dynamic_linker=no
9602
  ;;
9603
 
9604
solaris*)
9605
  version_type=linux
9606
  need_lib_prefix=no
9607
  need_version=no
9608
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609
  soname_spec='${libname}${release}${shared_ext}$major'
9610
  shlibpath_var=LD_LIBRARY_PATH
9611
  shlibpath_overrides_runpath=yes
9612
  hardcode_into_libs=yes
9613
  # ldd complains unless libraries are executable
9614
  postinstall_cmds='chmod +x $lib'
9615
  ;;
9616
 
9617
sunos4*)
9618
  version_type=sunos
9619
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9620
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9621
  shlibpath_var=LD_LIBRARY_PATH
9622
  shlibpath_overrides_runpath=yes
9623
  if test "$with_gnu_ld" = yes; then
9624
    need_lib_prefix=no
9625
  fi
9626
  need_version=yes
9627
  ;;
9628
 
9629
sysv4 | sysv4.3*)
9630
  version_type=linux
9631
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632
  soname_spec='${libname}${release}${shared_ext}$major'
9633
  shlibpath_var=LD_LIBRARY_PATH
9634
  case $host_vendor in
9635
    sni)
9636
      shlibpath_overrides_runpath=no
9637
      need_lib_prefix=no
9638
      runpath_var=LD_RUN_PATH
9639
      ;;
9640
    siemens)
9641
      need_lib_prefix=no
9642
      ;;
9643
    motorola)
9644
      need_lib_prefix=no
9645
      need_version=no
9646
      shlibpath_overrides_runpath=no
9647
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9648
      ;;
9649
  esac
9650
  ;;
9651
 
9652
sysv4*MP*)
9653
  if test -d /usr/nec ;then
9654
    version_type=linux
9655
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9656
    soname_spec='$libname${shared_ext}.$major'
9657
    shlibpath_var=LD_LIBRARY_PATH
9658
  fi
9659
  ;;
9660
 
9661
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9662
  version_type=freebsd-elf
9663
  need_lib_prefix=no
9664
  need_version=no
9665
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9666
  soname_spec='${libname}${release}${shared_ext}$major'
9667
  shlibpath_var=LD_LIBRARY_PATH
9668 82 jeremybenn
  shlibpath_overrides_runpath=yes
9669 19 jeremybenn
  hardcode_into_libs=yes
9670
  if test "$with_gnu_ld" = yes; then
9671
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9672
  else
9673
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9674
    case $host_os in
9675
      sco3.2v5*)
9676
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9677
        ;;
9678
    esac
9679
  fi
9680
  sys_lib_dlsearch_path_spec='/usr/lib'
9681
  ;;
9682
 
9683 82 jeremybenn
tpf*)
9684
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9685
  version_type=linux
9686
  need_lib_prefix=no
9687
  need_version=no
9688
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689
  shlibpath_var=LD_LIBRARY_PATH
9690
  shlibpath_overrides_runpath=no
9691
  hardcode_into_libs=yes
9692
  ;;
9693
 
9694 19 jeremybenn
uts4*)
9695
  version_type=linux
9696
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697
  soname_spec='${libname}${release}${shared_ext}$major'
9698
  shlibpath_var=LD_LIBRARY_PATH
9699
  ;;
9700
 
9701
*)
9702
  dynamic_linker=no
9703
  ;;
9704
esac
9705 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9706 82 jeremybenn
$as_echo "$dynamic_linker" >&6; }
9707 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9708
 
9709
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9710
if test "$GCC" = yes; then
9711
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9712
fi
9713
 
9714 82 jeremybenn
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9715
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9716
fi
9717
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9718
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9719
fi
9720
 
9721
 
9722
 
9723
 
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 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9808 82 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9809 19 jeremybenn
hardcode_action=
9810 82 jeremybenn
if test -n "$hardcode_libdir_flag_spec" ||
9811
   test -n "$runpath_var" ||
9812 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9813
 
9814 82 jeremybenn
  # We can hardcode non-existent directories.
9815 19 jeremybenn
  if test "$hardcode_direct" != no &&
9816
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9817
     # have to relink, otherwise we might link with an installed library
9818
     # when we should be linking with a yet-to-be-installed one
9819 82 jeremybenn
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9820 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9821
    # Linking always hardcodes the temporary library directory.
9822
    hardcode_action=relink
9823
  else
9824
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9825
    hardcode_action=immediate
9826
  fi
9827
else
9828
  # We cannot hardcode anything, or else we can only hardcode existing
9829
  # directories.
9830
  hardcode_action=unsupported
9831
fi
9832 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9833 82 jeremybenn
$as_echo "$hardcode_action" >&6; }
9834 19 jeremybenn
 
9835 82 jeremybenn
if test "$hardcode_action" = relink ||
9836
   test "$inherit_rpath" = yes; then
9837 19 jeremybenn
  # Fast installation is not supported
9838
  enable_fast_install=no
9839
elif test "$shlibpath_overrides_runpath" = yes ||
9840
     test "$enable_shared" = no; then
9841
  # Fast installation is not necessary
9842
  enable_fast_install=needless
9843
fi
9844
 
9845
 
9846 82 jeremybenn
 
9847
 
9848
 
9849
 
9850
  if test "x$enable_dlopen" != xyes; then
9851 19 jeremybenn
  enable_dlopen=unknown
9852
  enable_dlopen_self=unknown
9853
  enable_dlopen_self_static=unknown
9854
else
9855
  lt_cv_dlopen=no
9856
  lt_cv_dlopen_libs=
9857
 
9858
  case $host_os in
9859
  beos*)
9860
    lt_cv_dlopen="load_add_on"
9861
    lt_cv_dlopen_libs=
9862
    lt_cv_dlopen_self=yes
9863
    ;;
9864
 
9865 82 jeremybenn
  mingw* | pw32* | cegcc*)
9866 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9867
    lt_cv_dlopen_libs=
9868 82 jeremybenn
    ;;
9869 19 jeremybenn
 
9870
  cygwin*)
9871
    lt_cv_dlopen="dlopen"
9872
    lt_cv_dlopen_libs=
9873 82 jeremybenn
    ;;
9874 19 jeremybenn
 
9875
  darwin*)
9876
  # if libdl is installed we need to link against it
9877 121 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9878 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9879 121 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9880 82 jeremybenn
  $as_echo_n "(cached) " >&6
9881 19 jeremybenn
else
9882
  ac_check_lib_save_LIBS=$LIBS
9883
LIBS="-ldl  $LIBS"
9884 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9885
/* confdefs.h.  */
9886
_ACEOF
9887
cat confdefs.h >>conftest.$ac_ext
9888
cat >>conftest.$ac_ext <<_ACEOF
9889 19 jeremybenn
/* end confdefs.h.  */
9890
 
9891
/* Override any GCC internal prototype to avoid an error.
9892
   Use char because int might match the return type of a GCC
9893
   builtin and then its argument prototype would still apply.  */
9894
#ifdef __cplusplus
9895
extern "C"
9896
#endif
9897
char dlopen ();
9898
int
9899
main ()
9900
{
9901
return dlopen ();
9902
  ;
9903
  return 0;
9904
}
9905
_ACEOF
9906 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
9907
if { (ac_try="$ac_link"
9908
case "(($ac_try" in
9909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910
  *) ac_try_echo=$ac_try;;
9911
esac
9912
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9913
$as_echo "$ac_try_echo") >&5
9914
  (eval "$ac_link") 2>conftest.er1
9915
  ac_status=$?
9916
  grep -v '^ *+' conftest.er1 >conftest.err
9917
  rm -f conftest.er1
9918
  cat conftest.err >&5
9919
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920
  (exit $ac_status); } && {
9921
         test -z "$ac_c_werror_flag" ||
9922
         test ! -s conftest.err
9923
       } && test -s conftest$ac_exeext && {
9924
         test "$cross_compiling" = yes ||
9925
         $as_test_x conftest$ac_exeext
9926
       }; then
9927 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9928
else
9929 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9930
sed 's/^/| /' conftest.$ac_ext >&5
9931
 
9932
        ac_cv_lib_dl_dlopen=no
9933 19 jeremybenn
fi
9934 121 jeremybenn
 
9935
rm -rf conftest.dSYM
9936
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9937
      conftest$ac_exeext conftest.$ac_ext
9938 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9939
fi
9940 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9941 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9942 121 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9943 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9944
else
9945
 
9946
    lt_cv_dlopen="dyld"
9947
    lt_cv_dlopen_libs=
9948
    lt_cv_dlopen_self=yes
9949
 
9950
fi
9951
 
9952 82 jeremybenn
    ;;
9953 19 jeremybenn
 
9954
  *)
9955 121 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9956
$as_echo_n "checking for shl_load... " >&6; }
9957
if test "${ac_cv_func_shl_load+set}" = set; then
9958
  $as_echo_n "(cached) " >&6
9959
else
9960
  cat >conftest.$ac_ext <<_ACEOF
9961
/* confdefs.h.  */
9962
_ACEOF
9963
cat confdefs.h >>conftest.$ac_ext
9964
cat >>conftest.$ac_ext <<_ACEOF
9965
/* end confdefs.h.  */
9966
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9967
   For example, HP-UX 11i  declares gettimeofday.  */
9968
#define shl_load innocuous_shl_load
9969
 
9970
/* System header to define __stub macros and hopefully few prototypes,
9971
    which can conflict with char shl_load (); below.
9972
    Prefer  to  if __STDC__ is defined, since
9973
     exists even on freestanding compilers.  */
9974
 
9975
#ifdef __STDC__
9976
# include 
9977
#else
9978
# include 
9979
#endif
9980
 
9981
#undef shl_load
9982
 
9983
/* Override any GCC internal prototype to avoid an error.
9984
   Use char because int might match the return type of a GCC
9985
   builtin and then its argument prototype would still apply.  */
9986
#ifdef __cplusplus
9987
extern "C"
9988
#endif
9989
char shl_load ();
9990
/* The GNU C library defines this for functions which it implements
9991
    to always fail with ENOSYS.  Some functions are actually named
9992
    something starting with __ and the normal name is an alias.  */
9993
#if defined __stub_shl_load || defined __stub___shl_load
9994
choke me
9995
#endif
9996
 
9997
int
9998
main ()
9999
{
10000
return shl_load ();
10001
  ;
10002
  return 0;
10003
}
10004
_ACEOF
10005
rm -f conftest.$ac_objext conftest$ac_exeext
10006
if { (ac_try="$ac_link"
10007
case "(($ac_try" in
10008
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009
  *) ac_try_echo=$ac_try;;
10010
esac
10011
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10012
$as_echo "$ac_try_echo") >&5
10013
  (eval "$ac_link") 2>conftest.er1
10014
  ac_status=$?
10015
  grep -v '^ *+' conftest.er1 >conftest.err
10016
  rm -f conftest.er1
10017
  cat conftest.err >&5
10018
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019
  (exit $ac_status); } && {
10020
         test -z "$ac_c_werror_flag" ||
10021
         test ! -s conftest.err
10022
       } && test -s conftest$ac_exeext && {
10023
         test "$cross_compiling" = yes ||
10024
         $as_test_x conftest$ac_exeext
10025
       }; then
10026
  ac_cv_func_shl_load=yes
10027
else
10028
  $as_echo "$as_me: failed program was:" >&5
10029
sed 's/^/| /' conftest.$ac_ext >&5
10030
 
10031
        ac_cv_func_shl_load=no
10032
fi
10033
 
10034
rm -rf conftest.dSYM
10035
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10036
      conftest$ac_exeext conftest.$ac_ext
10037
fi
10038
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10039
$as_echo "$ac_cv_func_shl_load" >&6; }
10040
if test "x$ac_cv_func_shl_load" = x""yes; then
10041 19 jeremybenn
  lt_cv_dlopen="shl_load"
10042
else
10043 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10044 82 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10045 121 jeremybenn
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10046 82 jeremybenn
  $as_echo_n "(cached) " >&6
10047 19 jeremybenn
else
10048
  ac_check_lib_save_LIBS=$LIBS
10049
LIBS="-ldld  $LIBS"
10050 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10051
/* confdefs.h.  */
10052
_ACEOF
10053
cat confdefs.h >>conftest.$ac_ext
10054
cat >>conftest.$ac_ext <<_ACEOF
10055 19 jeremybenn
/* end confdefs.h.  */
10056
 
10057
/* Override any GCC internal prototype to avoid an error.
10058
   Use char because int might match the return type of a GCC
10059
   builtin and then its argument prototype would still apply.  */
10060
#ifdef __cplusplus
10061
extern "C"
10062
#endif
10063
char shl_load ();
10064
int
10065
main ()
10066
{
10067
return shl_load ();
10068
  ;
10069
  return 0;
10070
}
10071
_ACEOF
10072 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10073
if { (ac_try="$ac_link"
10074
case "(($ac_try" in
10075
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076
  *) ac_try_echo=$ac_try;;
10077
esac
10078
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10079
$as_echo "$ac_try_echo") >&5
10080
  (eval "$ac_link") 2>conftest.er1
10081
  ac_status=$?
10082
  grep -v '^ *+' conftest.er1 >conftest.err
10083
  rm -f conftest.er1
10084
  cat conftest.err >&5
10085
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086
  (exit $ac_status); } && {
10087
         test -z "$ac_c_werror_flag" ||
10088
         test ! -s conftest.err
10089
       } && test -s conftest$ac_exeext && {
10090
         test "$cross_compiling" = yes ||
10091
         $as_test_x conftest$ac_exeext
10092
       }; then
10093 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
10094
else
10095 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10096
sed 's/^/| /' conftest.$ac_ext >&5
10097
 
10098
        ac_cv_lib_dld_shl_load=no
10099 19 jeremybenn
fi
10100 121 jeremybenn
 
10101
rm -rf conftest.dSYM
10102
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10103
      conftest$ac_exeext conftest.$ac_ext
10104 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10105
fi
10106 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10107 82 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10108 121 jeremybenn
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10109 82 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10110 19 jeremybenn
else
10111 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10112
$as_echo_n "checking for dlopen... " >&6; }
10113
if test "${ac_cv_func_dlopen+set}" = set; then
10114
  $as_echo_n "(cached) " >&6
10115
else
10116
  cat >conftest.$ac_ext <<_ACEOF
10117
/* confdefs.h.  */
10118
_ACEOF
10119
cat confdefs.h >>conftest.$ac_ext
10120
cat >>conftest.$ac_ext <<_ACEOF
10121
/* end confdefs.h.  */
10122
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10123
   For example, HP-UX 11i  declares gettimeofday.  */
10124
#define dlopen innocuous_dlopen
10125
 
10126
/* System header to define __stub macros and hopefully few prototypes,
10127
    which can conflict with char dlopen (); below.
10128
    Prefer  to  if __STDC__ is defined, since
10129
     exists even on freestanding compilers.  */
10130
 
10131
#ifdef __STDC__
10132
# include 
10133
#else
10134
# include 
10135
#endif
10136
 
10137
#undef dlopen
10138
 
10139
/* Override any GCC internal prototype to avoid an error.
10140
   Use char because int might match the return type of a GCC
10141
   builtin and then its argument prototype would still apply.  */
10142
#ifdef __cplusplus
10143
extern "C"
10144
#endif
10145
char dlopen ();
10146
/* The GNU C library defines this for functions which it implements
10147
    to always fail with ENOSYS.  Some functions are actually named
10148
    something starting with __ and the normal name is an alias.  */
10149
#if defined __stub_dlopen || defined __stub___dlopen
10150
choke me
10151
#endif
10152
 
10153
int
10154
main ()
10155
{
10156
return dlopen ();
10157
  ;
10158
  return 0;
10159
}
10160
_ACEOF
10161
rm -f conftest.$ac_objext conftest$ac_exeext
10162
if { (ac_try="$ac_link"
10163
case "(($ac_try" in
10164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165
  *) ac_try_echo=$ac_try;;
10166
esac
10167
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10168
$as_echo "$ac_try_echo") >&5
10169
  (eval "$ac_link") 2>conftest.er1
10170
  ac_status=$?
10171
  grep -v '^ *+' conftest.er1 >conftest.err
10172
  rm -f conftest.er1
10173
  cat conftest.err >&5
10174
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175
  (exit $ac_status); } && {
10176
         test -z "$ac_c_werror_flag" ||
10177
         test ! -s conftest.err
10178
       } && test -s conftest$ac_exeext && {
10179
         test "$cross_compiling" = yes ||
10180
         $as_test_x conftest$ac_exeext
10181
       }; then
10182
  ac_cv_func_dlopen=yes
10183
else
10184
  $as_echo "$as_me: failed program was:" >&5
10185
sed 's/^/| /' conftest.$ac_ext >&5
10186
 
10187
        ac_cv_func_dlopen=no
10188
fi
10189
 
10190
rm -rf conftest.dSYM
10191
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10192
      conftest$ac_exeext conftest.$ac_ext
10193
fi
10194
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10195
$as_echo "$ac_cv_func_dlopen" >&6; }
10196
if test "x$ac_cv_func_dlopen" = x""yes; then
10197 19 jeremybenn
  lt_cv_dlopen="dlopen"
10198
else
10199 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10200 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10201 121 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10202 82 jeremybenn
  $as_echo_n "(cached) " >&6
10203 19 jeremybenn
else
10204
  ac_check_lib_save_LIBS=$LIBS
10205
LIBS="-ldl  $LIBS"
10206 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10207
/* confdefs.h.  */
10208
_ACEOF
10209
cat confdefs.h >>conftest.$ac_ext
10210
cat >>conftest.$ac_ext <<_ACEOF
10211 19 jeremybenn
/* end confdefs.h.  */
10212
 
10213
/* Override any GCC internal prototype to avoid an error.
10214
   Use char because int might match the return type of a GCC
10215
   builtin and then its argument prototype would still apply.  */
10216
#ifdef __cplusplus
10217
extern "C"
10218
#endif
10219
char dlopen ();
10220
int
10221
main ()
10222
{
10223
return dlopen ();
10224
  ;
10225
  return 0;
10226
}
10227
_ACEOF
10228 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10229
if { (ac_try="$ac_link"
10230
case "(($ac_try" in
10231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232
  *) ac_try_echo=$ac_try;;
10233
esac
10234
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10235
$as_echo "$ac_try_echo") >&5
10236
  (eval "$ac_link") 2>conftest.er1
10237
  ac_status=$?
10238
  grep -v '^ *+' conftest.er1 >conftest.err
10239
  rm -f conftest.er1
10240
  cat conftest.err >&5
10241
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242
  (exit $ac_status); } && {
10243
         test -z "$ac_c_werror_flag" ||
10244
         test ! -s conftest.err
10245
       } && test -s conftest$ac_exeext && {
10246
         test "$cross_compiling" = yes ||
10247
         $as_test_x conftest$ac_exeext
10248
       }; then
10249 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
10250
else
10251 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10252
sed 's/^/| /' conftest.$ac_ext >&5
10253
 
10254
        ac_cv_lib_dl_dlopen=no
10255 19 jeremybenn
fi
10256 121 jeremybenn
 
10257
rm -rf conftest.dSYM
10258
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10259
      conftest$ac_exeext conftest.$ac_ext
10260 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10261
fi
10262 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10263 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10264 121 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10265 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10266
else
10267 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10268 82 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10269 121 jeremybenn
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10270 82 jeremybenn
  $as_echo_n "(cached) " >&6
10271 19 jeremybenn
else
10272
  ac_check_lib_save_LIBS=$LIBS
10273
LIBS="-lsvld  $LIBS"
10274 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10275
/* confdefs.h.  */
10276
_ACEOF
10277
cat confdefs.h >>conftest.$ac_ext
10278
cat >>conftest.$ac_ext <<_ACEOF
10279 19 jeremybenn
/* end confdefs.h.  */
10280
 
10281
/* Override any GCC internal prototype to avoid an error.
10282
   Use char because int might match the return type of a GCC
10283
   builtin and then its argument prototype would still apply.  */
10284
#ifdef __cplusplus
10285
extern "C"
10286
#endif
10287
char dlopen ();
10288
int
10289
main ()
10290
{
10291
return dlopen ();
10292
  ;
10293
  return 0;
10294
}
10295
_ACEOF
10296 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10297
if { (ac_try="$ac_link"
10298
case "(($ac_try" in
10299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300
  *) ac_try_echo=$ac_try;;
10301
esac
10302
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10303
$as_echo "$ac_try_echo") >&5
10304
  (eval "$ac_link") 2>conftest.er1
10305
  ac_status=$?
10306
  grep -v '^ *+' conftest.er1 >conftest.err
10307
  rm -f conftest.er1
10308
  cat conftest.err >&5
10309
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310
  (exit $ac_status); } && {
10311
         test -z "$ac_c_werror_flag" ||
10312
         test ! -s conftest.err
10313
       } && test -s conftest$ac_exeext && {
10314
         test "$cross_compiling" = yes ||
10315
         $as_test_x conftest$ac_exeext
10316
       }; then
10317 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
10318
else
10319 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10320
sed 's/^/| /' conftest.$ac_ext >&5
10321
 
10322
        ac_cv_lib_svld_dlopen=no
10323 19 jeremybenn
fi
10324 121 jeremybenn
 
10325
rm -rf conftest.dSYM
10326
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10327
      conftest$ac_exeext conftest.$ac_ext
10328 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10329
fi
10330 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10331 82 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10332 121 jeremybenn
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10333 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10334
else
10335 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10336 82 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10337 121 jeremybenn
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10338 82 jeremybenn
  $as_echo_n "(cached) " >&6
10339 19 jeremybenn
else
10340
  ac_check_lib_save_LIBS=$LIBS
10341
LIBS="-ldld  $LIBS"
10342 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10343
/* confdefs.h.  */
10344
_ACEOF
10345
cat confdefs.h >>conftest.$ac_ext
10346
cat >>conftest.$ac_ext <<_ACEOF
10347 19 jeremybenn
/* end confdefs.h.  */
10348
 
10349
/* Override any GCC internal prototype to avoid an error.
10350
   Use char because int might match the return type of a GCC
10351
   builtin and then its argument prototype would still apply.  */
10352
#ifdef __cplusplus
10353
extern "C"
10354
#endif
10355
char dld_link ();
10356
int
10357
main ()
10358
{
10359
return dld_link ();
10360
  ;
10361
  return 0;
10362
}
10363
_ACEOF
10364 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10365
if { (ac_try="$ac_link"
10366
case "(($ac_try" in
10367
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368
  *) ac_try_echo=$ac_try;;
10369
esac
10370
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10371
$as_echo "$ac_try_echo") >&5
10372
  (eval "$ac_link") 2>conftest.er1
10373
  ac_status=$?
10374
  grep -v '^ *+' conftest.er1 >conftest.err
10375
  rm -f conftest.er1
10376
  cat conftest.err >&5
10377
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378
  (exit $ac_status); } && {
10379
         test -z "$ac_c_werror_flag" ||
10380
         test ! -s conftest.err
10381
       } && test -s conftest$ac_exeext && {
10382
         test "$cross_compiling" = yes ||
10383
         $as_test_x conftest$ac_exeext
10384
       }; then
10385 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
10386
else
10387 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10388
sed 's/^/| /' conftest.$ac_ext >&5
10389
 
10390
        ac_cv_lib_dld_dld_link=no
10391 19 jeremybenn
fi
10392 121 jeremybenn
 
10393
rm -rf conftest.dSYM
10394
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10395
      conftest$ac_exeext conftest.$ac_ext
10396 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10397
fi
10398 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10399 82 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10400 121 jeremybenn
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10401 82 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10402 19 jeremybenn
fi
10403
 
10404
 
10405
fi
10406
 
10407
 
10408
fi
10409
 
10410
 
10411
fi
10412
 
10413
 
10414
fi
10415
 
10416
 
10417
fi
10418
 
10419
    ;;
10420
  esac
10421
 
10422
  if test "x$lt_cv_dlopen" != xno; then
10423
    enable_dlopen=yes
10424
  else
10425
    enable_dlopen=no
10426
  fi
10427
 
10428
  case $lt_cv_dlopen in
10429
  dlopen)
10430
    save_CPPFLAGS="$CPPFLAGS"
10431
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10432
 
10433
    save_LDFLAGS="$LDFLAGS"
10434
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10435
 
10436
    save_LIBS="$LIBS"
10437
    LIBS="$lt_cv_dlopen_libs $LIBS"
10438
 
10439 121 jeremybenn
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10440 82 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10441 121 jeremybenn
if test "${lt_cv_dlopen_self+set}" = set; then
10442 82 jeremybenn
  $as_echo_n "(cached) " >&6
10443 19 jeremybenn
else
10444
          if test "$cross_compiling" = yes; then :
10445
  lt_cv_dlopen_self=cross
10446
else
10447
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10448
  lt_status=$lt_dlunknown
10449 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10450 124 jeremybenn
#line 10450 "configure"
10451 19 jeremybenn
#include "confdefs.h"
10452
 
10453
#if HAVE_DLFCN_H
10454
#include 
10455
#endif
10456
 
10457
#include 
10458
 
10459
#ifdef RTLD_GLOBAL
10460
#  define LT_DLGLOBAL           RTLD_GLOBAL
10461
#else
10462
#  ifdef DL_GLOBAL
10463
#    define LT_DLGLOBAL         DL_GLOBAL
10464
#  else
10465
#    define LT_DLGLOBAL         0
10466
#  endif
10467
#endif
10468
 
10469
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10470
   find out it does not work in some platform. */
10471
#ifndef LT_DLLAZY_OR_NOW
10472
#  ifdef RTLD_LAZY
10473
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10474
#  else
10475
#    ifdef DL_LAZY
10476
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10477
#    else
10478
#      ifdef RTLD_NOW
10479
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10480
#      else
10481
#        ifdef DL_NOW
10482
#          define LT_DLLAZY_OR_NOW      DL_NOW
10483
#        else
10484
#          define LT_DLLAZY_OR_NOW      0
10485
#        endif
10486
#      endif
10487
#    endif
10488
#  endif
10489
#endif
10490
 
10491
void fnord() { int i=42;}
10492
int main ()
10493
{
10494
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10495
  int status = $lt_dlunknown;
10496
 
10497
  if (self)
10498
    {
10499
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10500
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10501
      /* dlclose (self); */
10502
    }
10503
  else
10504
    puts (dlerror ());
10505
 
10506 82 jeremybenn
  return status;
10507 19 jeremybenn
}
10508 82 jeremybenn
_LT_EOF
10509 121 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10510 19 jeremybenn
  (eval $ac_link) 2>&5
10511
  ac_status=$?
10512 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10514 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10515
    lt_status=$?
10516
    case x$lt_status in
10517
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10518
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10519
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10520
    esac
10521
  else :
10522
    # compilation failed
10523
    lt_cv_dlopen_self=no
10524
  fi
10525
fi
10526
rm -fr conftest*
10527
 
10528
 
10529
fi
10530 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10531 82 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
10532 19 jeremybenn
 
10533
    if test "x$lt_cv_dlopen_self" = xyes; then
10534
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10535 121 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10536 82 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10537 121 jeremybenn
if test "${lt_cv_dlopen_self_static+set}" = set; then
10538 82 jeremybenn
  $as_echo_n "(cached) " >&6
10539 19 jeremybenn
else
10540
          if test "$cross_compiling" = yes; then :
10541
  lt_cv_dlopen_self_static=cross
10542
else
10543
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10544
  lt_status=$lt_dlunknown
10545 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10546 124 jeremybenn
#line 10546 "configure"
10547 19 jeremybenn
#include "confdefs.h"
10548
 
10549
#if HAVE_DLFCN_H
10550
#include 
10551
#endif
10552
 
10553
#include 
10554
 
10555
#ifdef RTLD_GLOBAL
10556
#  define LT_DLGLOBAL           RTLD_GLOBAL
10557
#else
10558
#  ifdef DL_GLOBAL
10559
#    define LT_DLGLOBAL         DL_GLOBAL
10560
#  else
10561
#    define LT_DLGLOBAL         0
10562
#  endif
10563
#endif
10564
 
10565
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10566
   find out it does not work in some platform. */
10567
#ifndef LT_DLLAZY_OR_NOW
10568
#  ifdef RTLD_LAZY
10569
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10570
#  else
10571
#    ifdef DL_LAZY
10572
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10573
#    else
10574
#      ifdef RTLD_NOW
10575
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10576
#      else
10577
#        ifdef DL_NOW
10578
#          define LT_DLLAZY_OR_NOW      DL_NOW
10579
#        else
10580
#          define LT_DLLAZY_OR_NOW      0
10581
#        endif
10582
#      endif
10583
#    endif
10584
#  endif
10585
#endif
10586
 
10587
void fnord() { int i=42;}
10588
int main ()
10589
{
10590
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10591
  int status = $lt_dlunknown;
10592
 
10593
  if (self)
10594
    {
10595
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10596
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10597
      /* dlclose (self); */
10598
    }
10599
  else
10600
    puts (dlerror ());
10601
 
10602 82 jeremybenn
  return status;
10603 19 jeremybenn
}
10604 82 jeremybenn
_LT_EOF
10605 121 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606 19 jeremybenn
  (eval $ac_link) 2>&5
10607
  ac_status=$?
10608 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10610 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10611
    lt_status=$?
10612
    case x$lt_status in
10613
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10614
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10615
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10616
    esac
10617
  else :
10618
    # compilation failed
10619
    lt_cv_dlopen_self_static=no
10620
  fi
10621
fi
10622
rm -fr conftest*
10623
 
10624
 
10625
fi
10626 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10627 82 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10628 19 jeremybenn
    fi
10629
 
10630
    CPPFLAGS="$save_CPPFLAGS"
10631
    LDFLAGS="$save_LDFLAGS"
10632
    LIBS="$save_LIBS"
10633
    ;;
10634
  esac
10635
 
10636
  case $lt_cv_dlopen_self in
10637
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10638
  *) enable_dlopen_self=unknown ;;
10639
  esac
10640
 
10641
  case $lt_cv_dlopen_self_static in
10642
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10643
  *) enable_dlopen_self_static=unknown ;;
10644
  esac
10645
fi
10646
 
10647
 
10648
 
10649
 
10650
 
10651
 
10652
 
10653
 
10654
 
10655
 
10656
 
10657
 
10658
 
10659
 
10660
 
10661
 
10662
 
10663 82 jeremybenn
striplib=
10664
old_striplib=
10665 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10666 82 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10667
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10668
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10669
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10670 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10671 82 jeremybenn
$as_echo "yes" >&6; }
10672
else
10673
# FIXME - insert some real tests, host_os isn't really good enough
10674 19 jeremybenn
  case $host_os in
10675 82 jeremybenn
  darwin*)
10676
    if test -n "$STRIP" ; then
10677
      striplib="$STRIP -x"
10678
      old_striplib="$STRIP -S"
10679 121 jeremybenn
      { $as_echo "$as_me:$LINENO: result: yes" >&5
10680 82 jeremybenn
$as_echo "yes" >&6; }
10681 19 jeremybenn
    else
10682 121 jeremybenn
      { $as_echo "$as_me:$LINENO: result: no" >&5
10683 82 jeremybenn
$as_echo "no" >&6; }
10684 19 jeremybenn
    fi
10685
    ;;
10686
  *)
10687 121 jeremybenn
    { $as_echo "$as_me:$LINENO: result: no" >&5
10688 82 jeremybenn
$as_echo "no" >&6; }
10689 19 jeremybenn
    ;;
10690
  esac
10691
fi
10692
 
10693
 
10694
 
10695
 
10696
 
10697
 
10698
 
10699
 
10700
 
10701
 
10702
 
10703
 
10704 82 jeremybenn
  # Report which library types will actually be built
10705 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10706 82 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10707 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10708 82 jeremybenn
$as_echo "$can_build_shared" >&6; }
10709 19 jeremybenn
 
10710 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10711 82 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
10712
  test "$can_build_shared" = "no" && enable_shared=no
10713 19 jeremybenn
 
10714 82 jeremybenn
  # On AIX, shared libraries and static libraries use the same namespace, and
10715
  # are all built from PIC.
10716 19 jeremybenn
  case $host_os in
10717 82 jeremybenn
  aix3*)
10718 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10719 82 jeremybenn
    if test -n "$RANLIB"; then
10720
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10721
      postinstall_cmds='$RANLIB $lib'
10722 19 jeremybenn
    fi
10723
    ;;
10724
 
10725 82 jeremybenn
  aix[4-9]*)
10726
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10727
      test "$enable_shared" = yes && enable_static=no
10728 19 jeremybenn
    fi
10729
    ;;
10730
  esac
10731 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10732 82 jeremybenn
$as_echo "$enable_shared" >&6; }
10733 19 jeremybenn
 
10734 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10735 82 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
10736
  # Make sure either enable_shared or enable_static is yes.
10737
  test "$enable_shared" = yes || enable_static=yes
10738 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10739 82 jeremybenn
$as_echo "$enable_static" >&6; }
10740 19 jeremybenn
 
10741
 
10742
 
10743
 
10744
fi
10745
ac_ext=c
10746
ac_cpp='$CPP $CPPFLAGS'
10747
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10748
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10749
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10750
 
10751
CC="$lt_save_CC"
10752
 
10753
 
10754
 
10755
 
10756
 
10757
 
10758
 
10759
 
10760
 
10761
 
10762
 
10763
 
10764
 
10765 82 jeremybenn
        ac_config_commands="$ac_config_commands libtool"
10766 19 jeremybenn
 
10767
 
10768
 
10769
 
10770 82 jeremybenn
# Only expand once:
10771 19 jeremybenn
 
10772
 
10773 82 jeremybenn
am__api_version='1.11'
10774 19 jeremybenn
 
10775
# Find a good install program.  We prefer a C program (faster),
10776
# so one script is as good as another.  But avoid the broken or
10777
# incompatible versions:
10778
# SysV /etc/install, /usr/sbin/install
10779
# SunOS /usr/etc/install
10780
# IRIX /sbin/install
10781
# AIX /bin/install
10782
# AmigaOS /C/install, which installs bootblocks on floppy discs
10783
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10784
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10785
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10786
# OS/2's system install, which has a completely different semantic
10787
# ./install, which can be erroneously created by make from ./install.sh.
10788 82 jeremybenn
# Reject install programs that cannot install multiple files.
10789 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10790 82 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10791 19 jeremybenn
if test -z "$INSTALL"; then
10792 121 jeremybenn
if test "${ac_cv_path_install+set}" = set; then
10793 82 jeremybenn
  $as_echo_n "(cached) " >&6
10794 19 jeremybenn
else
10795
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796
for as_dir in $PATH
10797
do
10798
  IFS=$as_save_IFS
10799
  test -z "$as_dir" && as_dir=.
10800 121 jeremybenn
  # Account for people who put trailing slashes in PATH elements.
10801
case $as_dir/ in
10802
  ./ | .// | /cC/* | \
10803 19 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10804 121 jeremybenn
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10805 19 jeremybenn
  /usr/ucb/* ) ;;
10806
  *)
10807
    # OSF1 and SCO ODT 3.0 have their own names for install.
10808
    # Don't use installbsd from OSF since it installs stuff as root
10809
    # by default.
10810
    for ac_prog in ginstall scoinst install; do
10811
      for ac_exec_ext in '' $ac_executable_extensions; do
10812
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10813
          if test $ac_prog = install &&
10814
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10815
            # AIX install.  It has an incompatible calling convention.
10816
            :
10817
          elif test $ac_prog = install &&
10818
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10819
            # program-specific install script used by HP pwplus--don't use.
10820
            :
10821
          else
10822 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
10823
            echo one > conftest.one
10824
            echo two > conftest.two
10825
            mkdir conftest.dir
10826
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10827
              test -s conftest.one && test -s conftest.two &&
10828
              test -s conftest.dir/conftest.one &&
10829
              test -s conftest.dir/conftest.two
10830
            then
10831
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10832
              break 3
10833
            fi
10834 19 jeremybenn
          fi
10835
        fi
10836
      done
10837
    done
10838
    ;;
10839
esac
10840 82 jeremybenn
 
10841 121 jeremybenn
done
10842 19 jeremybenn
IFS=$as_save_IFS
10843
 
10844 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
10845 19 jeremybenn
 
10846
fi
10847
  if test "${ac_cv_path_install+set}" = set; then
10848
    INSTALL=$ac_cv_path_install
10849
  else
10850
    # As a last resort, use the slow shell script.  Don't cache a
10851
    # value for INSTALL within a source directory, because that will
10852
    # break other packages using the cache if that directory is
10853
    # removed, or if the value is a relative name.
10854
    INSTALL=$ac_install_sh
10855
  fi
10856
fi
10857 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10858 82 jeremybenn
$as_echo "$INSTALL" >&6; }
10859 19 jeremybenn
 
10860
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10861
# It thinks the first close brace ends the variable substitution.
10862
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10863
 
10864
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10865
 
10866
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10867
 
10868 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10869 82 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
10870 19 jeremybenn
# Just in case
10871
sleep 1
10872
echo timestamp > conftest.file
10873 82 jeremybenn
# Reject unsafe characters in $srcdir or the absolute working directory
10874
# name.  Accept space and tab only in the latter.
10875
am_lf='
10876
'
10877
case `pwd` in
10878
  *[\\\"\#\$\&\'\`$am_lf]*)
10879 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
10880
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
10881
   { (exit 1); exit 1; }; };;
10882 82 jeremybenn
esac
10883
case $srcdir in
10884
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10885 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
10886
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
10887
   { (exit 1); exit 1; }; };;
10888 82 jeremybenn
esac
10889
 
10890 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10891
# arguments.  Must try -L first in case configure is actually a
10892
# symlink; some systems play weird games with the mod time of symlinks
10893
# (eg FreeBSD returns the mod time of the symlink's containing
10894
# directory).
10895
if (
10896 82 jeremybenn
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10897 19 jeremybenn
   if test "$*" = "X"; then
10898
      # -L didn't work.
10899 82 jeremybenn
      set X `ls -t "$srcdir/configure" conftest.file`
10900 19 jeremybenn
   fi
10901
   rm -f conftest.file
10902
   if test "$*" != "X $srcdir/configure conftest.file" \
10903
      && test "$*" != "X conftest.file $srcdir/configure"; then
10904
 
10905
      # If neither matched, then we have a broken ls.  This can happen
10906
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10907
      # broken ls alias from the environment.  This has actually
10908
      # happened.  Such a system could not be considered "sane".
10909 121 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
10910
alias in your environment" >&5
10911
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
10912
alias in your environment" >&2;}
10913
   { (exit 1); exit 1; }; }
10914 19 jeremybenn
   fi
10915
 
10916
   test "$2" = conftest.file
10917
   )
10918
then
10919
   # Ok.
10920
   :
10921
else
10922 121 jeremybenn
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10923
Check your system clock" >&5
10924
$as_echo "$as_me: error: newly created file is older than distributed files!
10925
Check your system clock" >&2;}
10926
   { (exit 1); exit 1; }; }
10927 19 jeremybenn
fi
10928 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: yes" >&5
10929 82 jeremybenn
$as_echo "yes" >&6; }
10930 19 jeremybenn
test "$program_prefix" != NONE &&
10931
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10932
# Use a double $ so make ignores it.
10933
test "$program_suffix" != NONE &&
10934
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10935 82 jeremybenn
# Double any \ or $.
10936 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10937 82 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10938
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10939 19 jeremybenn
 
10940
# expand $ac_aux_dir to an absolute path
10941
am_aux_dir=`cd $ac_aux_dir && pwd`
10942
 
10943 82 jeremybenn
if test x"${MISSING+set}" != xset; then
10944
  case $am_aux_dir in
10945
  *\ * | *\     *)
10946
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10947
  *)
10948
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10949
  esac
10950
fi
10951 19 jeremybenn
# Use eval to expand $SHELL
10952
if eval "$MISSING --run true"; then
10953
  am_missing_run="$MISSING --run "
10954
else
10955
  am_missing_run=
10956 121 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10957 82 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10958 19 jeremybenn
fi
10959
 
10960 82 jeremybenn
if test x"${install_sh}" != xset; then
10961
  case $am_aux_dir in
10962
  *\ * | *\     *)
10963
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10964
  *)
10965
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10966
  esac
10967
fi
10968
 
10969
# Installed binaries are usually stripped using `strip' when the user
10970
# run `make install-strip'.  However `strip' might not be the right
10971
# tool to use in cross-compilation environments, therefore Automake
10972
# will honor the `STRIP' environment variable to overrule this program.
10973
if test "$cross_compiling" != no; then
10974
  if test -n "$ac_tool_prefix"; then
10975
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10976
set dummy ${ac_tool_prefix}strip; ac_word=$2
10977 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10978 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10979 121 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then
10980 82 jeremybenn
  $as_echo_n "(cached) " >&6
10981
else
10982
  if test -n "$STRIP"; then
10983
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10984
else
10985
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986
for as_dir in $PATH
10987
do
10988
  IFS=$as_save_IFS
10989
  test -z "$as_dir" && as_dir=.
10990 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
10991 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10992
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10993 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10994 82 jeremybenn
    break 2
10995
  fi
10996
done
10997 121 jeremybenn
done
10998 82 jeremybenn
IFS=$as_save_IFS
10999
 
11000
fi
11001
fi
11002
STRIP=$ac_cv_prog_STRIP
11003
if test -n "$STRIP"; then
11004 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
11005 82 jeremybenn
$as_echo "$STRIP" >&6; }
11006
else
11007 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11008 82 jeremybenn
$as_echo "no" >&6; }
11009
fi
11010
 
11011
 
11012
fi
11013
if test -z "$ac_cv_prog_STRIP"; then
11014
  ac_ct_STRIP=$STRIP
11015
  # Extract the first word of "strip", so it can be a program name with args.
11016
set dummy strip; ac_word=$2
11017 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11018 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11019 121 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11020 82 jeremybenn
  $as_echo_n "(cached) " >&6
11021
else
11022
  if test -n "$ac_ct_STRIP"; then
11023
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11024
else
11025
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026
for as_dir in $PATH
11027
do
11028
  IFS=$as_save_IFS
11029
  test -z "$as_dir" && as_dir=.
11030 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11031 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11032
    ac_cv_prog_ac_ct_STRIP="strip"
11033 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11034 82 jeremybenn
    break 2
11035
  fi
11036
done
11037 121 jeremybenn
done
11038 82 jeremybenn
IFS=$as_save_IFS
11039
 
11040
fi
11041
fi
11042
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11043
if test -n "$ac_ct_STRIP"; then
11044 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11045 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
11046
else
11047 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11048 82 jeremybenn
$as_echo "no" >&6; }
11049
fi
11050
 
11051
  if test "x$ac_ct_STRIP" = x; then
11052
    STRIP=":"
11053
  else
11054
    case $cross_compiling:$ac_tool_warned in
11055
yes:)
11056 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11057 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11058
ac_tool_warned=yes ;;
11059
esac
11060
    STRIP=$ac_ct_STRIP
11061
  fi
11062
else
11063
  STRIP="$ac_cv_prog_STRIP"
11064
fi
11065
 
11066
fi
11067
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11068
 
11069 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
11070 82 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11071 19 jeremybenn
if test -z "$MKDIR_P"; then
11072 121 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then
11073 82 jeremybenn
  $as_echo_n "(cached) " >&6
11074 19 jeremybenn
else
11075
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11077
do
11078
  IFS=$as_save_IFS
11079
  test -z "$as_dir" && as_dir=.
11080 121 jeremybenn
  for ac_prog in mkdir gmkdir; do
11081 19 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
11082
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11083
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11084
             'mkdir (GNU coreutils) '* | \
11085
             'mkdir (coreutils) '* | \
11086
             'mkdir (fileutils) '4.1*)
11087
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11088
               break 3;;
11089
           esac
11090
         done
11091
       done
11092 121 jeremybenn
done
11093 19 jeremybenn
IFS=$as_save_IFS
11094
 
11095
fi
11096
 
11097
  if test "${ac_cv_path_mkdir+set}" = set; then
11098
    MKDIR_P="$ac_cv_path_mkdir -p"
11099
  else
11100
    # As a last resort, use the slow shell script.  Don't cache a
11101
    # value for MKDIR_P within a source directory, because that will
11102
    # break other packages using the cache if that directory is
11103
    # removed, or if the value is a relative name.
11104 121 jeremybenn
    test -d ./--version && rmdir ./--version
11105 19 jeremybenn
    MKDIR_P="$ac_install_sh -d"
11106
  fi
11107
fi
11108 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
11109 82 jeremybenn
$as_echo "$MKDIR_P" >&6; }
11110 19 jeremybenn
 
11111
mkdir_p="$MKDIR_P"
11112
case $mkdir_p in
11113
  [\\/$]* | ?:[\\/]*) ;;
11114
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11115
esac
11116
 
11117
for ac_prog in gawk mawk nawk awk
11118
do
11119
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11120
set dummy $ac_prog; ac_word=$2
11121 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11122 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11123 121 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then
11124 82 jeremybenn
  $as_echo_n "(cached) " >&6
11125 19 jeremybenn
else
11126
  if test -n "$AWK"; then
11127
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
11128
else
11129
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130
for as_dir in $PATH
11131
do
11132
  IFS=$as_save_IFS
11133
  test -z "$as_dir" && as_dir=.
11134 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11135 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11136
    ac_cv_prog_AWK="$ac_prog"
11137 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11138 19 jeremybenn
    break 2
11139
  fi
11140
done
11141 121 jeremybenn
done
11142 19 jeremybenn
IFS=$as_save_IFS
11143
 
11144
fi
11145
fi
11146
AWK=$ac_cv_prog_AWK
11147
if test -n "$AWK"; then
11148 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11149 82 jeremybenn
$as_echo "$AWK" >&6; }
11150 19 jeremybenn
else
11151 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11152 82 jeremybenn
$as_echo "no" >&6; }
11153 19 jeremybenn
fi
11154
 
11155
 
11156
  test -n "$AWK" && break
11157
done
11158
 
11159 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11160 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11161
set x ${MAKE-make}
11162
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11163 121 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11164 82 jeremybenn
  $as_echo_n "(cached) " >&6
11165 19 jeremybenn
else
11166
  cat >conftest.make <<\_ACEOF
11167
SHELL = /bin/sh
11168
all:
11169
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11170
_ACEOF
11171
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11172
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11173
  *@@@%%%=?*=@@@%%%*)
11174
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11175
  *)
11176
    eval ac_cv_prog_make_${ac_make}_set=no;;
11177
esac
11178
rm -f conftest.make
11179
fi
11180
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11181 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
11182 82 jeremybenn
$as_echo "yes" >&6; }
11183 19 jeremybenn
  SET_MAKE=
11184
else
11185 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11186 82 jeremybenn
$as_echo "no" >&6; }
11187 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11188
fi
11189
 
11190
rm -rf .tst 2>/dev/null
11191
mkdir .tst 2>/dev/null
11192
if test -d .tst; then
11193
  am__leading_dot=.
11194
else
11195
  am__leading_dot=_
11196
fi
11197
rmdir .tst 2>/dev/null
11198
 
11199
DEPDIR="${am__leading_dot}deps"
11200
 
11201
ac_config_commands="$ac_config_commands depfiles"
11202
 
11203
 
11204
am_make=${MAKE-make}
11205
cat > confinc << 'END'
11206
am__doit:
11207 82 jeremybenn
        @echo this is the am__doit target
11208 19 jeremybenn
.PHONY: am__doit
11209
END
11210
# If we don't find an include directive, just comment out the code.
11211 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
11212 82 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
11213 19 jeremybenn
am__include="#"
11214
am__quote=
11215
_am_result=none
11216
# First try GNU make style include.
11217
echo "include confinc" > confmf
11218 82 jeremybenn
# Ignore all kinds of additional output from `make'.
11219
case `$am_make -s -f confmf 2> /dev/null` in #(
11220
*the\ am__doit\ target*)
11221
  am__include=include
11222
  am__quote=
11223
  _am_result=GNU
11224
  ;;
11225
esac
11226 19 jeremybenn
# Now try BSD make style include.
11227
if test "$am__include" = "#"; then
11228
   echo '.include "confinc"' > confmf
11229 82 jeremybenn
   case `$am_make -s -f confmf 2> /dev/null` in #(
11230
   *the\ am__doit\ target*)
11231
     am__include=.include
11232
     am__quote="\""
11233
     _am_result=BSD
11234
     ;;
11235
   esac
11236 19 jeremybenn
fi
11237
 
11238
 
11239 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
11240 82 jeremybenn
$as_echo "$_am_result" >&6; }
11241 19 jeremybenn
rm -f confinc confmf
11242
 
11243
# Check whether --enable-dependency-tracking was given.
11244 121 jeremybenn
if test "${enable_dependency_tracking+set}" = set; then
11245 19 jeremybenn
  enableval=$enable_dependency_tracking;
11246
fi
11247
 
11248
if test "x$enable_dependency_tracking" != xno; then
11249
  am_depcomp="$ac_aux_dir/depcomp"
11250
  AMDEPBACKSLASH='\'
11251
fi
11252
 if test "x$enable_dependency_tracking" != xno; then
11253
  AMDEP_TRUE=
11254
  AMDEP_FALSE='#'
11255
else
11256
  AMDEP_TRUE='#'
11257
  AMDEP_FALSE=
11258
fi
11259
 
11260
 
11261
if test "`cd $srcdir && pwd`" != "`pwd`"; then
11262
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11263
  # is not polluted with repeated "-I."
11264
  am__isrc=' -I$(srcdir)'
11265
  # test to see if srcdir already configured
11266
  if test -f $srcdir/config.status; then
11267 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11268
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11269
   { (exit 1); exit 1; }; }
11270 19 jeremybenn
  fi
11271
fi
11272
 
11273
# test whether we have cygpath
11274
if test -z "$CYGPATH_W"; then
11275
  if (cygpath --version) >/dev/null 2>/dev/null; then
11276
    CYGPATH_W='cygpath -w'
11277
  else
11278
    CYGPATH_W=echo
11279
  fi
11280
fi
11281
 
11282
 
11283
# Define the identity of the package.
11284
 PACKAGE='or1ksim'
11285 123 jeremybenn
 VERSION='2010-06-15'
11286 19 jeremybenn
 
11287
 
11288
cat >>confdefs.h <<_ACEOF
11289
#define PACKAGE "$PACKAGE"
11290
_ACEOF
11291
 
11292
 
11293
cat >>confdefs.h <<_ACEOF
11294
#define VERSION "$VERSION"
11295
_ACEOF
11296
 
11297
# Some tools Automake needs.
11298
 
11299
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11300
 
11301
 
11302
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11303
 
11304
 
11305
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11306
 
11307
 
11308
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11309
 
11310
 
11311
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11312
 
11313
# We need awk for the "check" target.  The system "awk" is bad on
11314
# some platforms.
11315
# Always define AMTAR for backward compatibility.
11316
 
11317
AMTAR=${AMTAR-"${am_missing_run}tar"}
11318
 
11319
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11320
 
11321
 
11322
 
11323
 
11324
depcc="$CC"   am_compiler_list=
11325
 
11326 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11327 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
11328 121 jeremybenn
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11329 82 jeremybenn
  $as_echo_n "(cached) " >&6
11330 19 jeremybenn
else
11331
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11332
  # We make a subdir and do the tests there.  Otherwise we can end up
11333
  # making bogus files that we don't know about and never remove.  For
11334
  # instance it was reported that on HP-UX the gcc test will end up
11335
  # making a dummy file named `D' -- because `-MD' means `put the output
11336
  # in D'.
11337
  mkdir conftest.dir
11338
  # Copy depcomp to subdir because otherwise we won't find it if we're
11339
  # using a relative directory.
11340
  cp "$am_depcomp" conftest.dir
11341
  cd conftest.dir
11342
  # We will build objects and dependencies in a subdirectory because
11343
  # it helps to detect inapplicable dependency modes.  For instance
11344
  # both Tru64's cc and ICC support -MD to output dependencies as a
11345
  # side effect of compilation, but ICC will put the dependencies in
11346
  # the current directory while Tru64 will put them in the object
11347
  # directory.
11348
  mkdir sub
11349
 
11350
  am_cv_CC_dependencies_compiler_type=none
11351
  if test "$am_compiler_list" = ""; then
11352
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11353
  fi
11354 82 jeremybenn
  am__universal=false
11355
  case " $depcc " in #(
11356
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11357
     esac
11358
 
11359 19 jeremybenn
  for depmode in $am_compiler_list; do
11360
    # Setup a source with many dependencies, because some compilers
11361
    # like to wrap large dependency lists on column 80 (with \), and
11362
    # we should not choose a depcomp mode which is confused by this.
11363
    #
11364
    # We need to recreate these files for each test, as the compiler may
11365
    # overwrite some of them when testing with obscure command lines.
11366
    # This happens at least with the AIX C compiler.
11367
    : > sub/conftest.c
11368
    for i in 1 2 3 4 5 6; do
11369
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11370
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11371
      # Solaris 8's {/usr,}/bin/sh.
11372
      touch sub/conftst$i.h
11373
    done
11374
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11375
 
11376 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11377
    # mode.  It turns out that the SunPro C++ compiler does not properly
11378
    # handle `-M -o', and we need to detect this.  Also, some Intel
11379
    # versions had trouble with output in subdirs
11380
    am__obj=sub/conftest.${OBJEXT-o}
11381
    am__minus_obj="-o $am__obj"
11382 19 jeremybenn
    case $depmode in
11383 82 jeremybenn
    gcc)
11384
      # This depmode causes a compiler race in universal mode.
11385
      test "$am__universal" = false || continue
11386
      ;;
11387 19 jeremybenn
    nosideeffect)
11388
      # after this tag, mechanisms are not by side-effect, so they'll
11389
      # only be used when explicitly requested
11390
      if test "x$enable_dependency_tracking" = xyes; then
11391
        continue
11392
      else
11393
        break
11394
      fi
11395
      ;;
11396 82 jeremybenn
    msvisualcpp | msvcmsys)
11397
      # This compiler won't grok `-c -o', but also, the minuso test has
11398
      # not run yet.  These depmodes are late enough in the game, and
11399
      # so weak that their functioning should not be impacted.
11400
      am__obj=conftest.${OBJEXT-o}
11401
      am__minus_obj=
11402
      ;;
11403 19 jeremybenn
    none) break ;;
11404
    esac
11405
    if depmode=$depmode \
11406 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11407 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11408 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11409 19 jeremybenn
         >/dev/null 2>conftest.err &&
11410
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11411
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11412 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11413 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11414
      # icc doesn't choke on unknown options, it will just issue warnings
11415
      # or remarks (even with -Werror).  So we grep stderr for any message
11416
      # that says an option was ignored or not supported.
11417
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11418
      #   icc: Command line warning: ignoring option '-M'; no argument required
11419
      # The diagnosis changed in icc 8.0:
11420
      #   icc: Command line remark: option '-MP' not supported
11421
      if (grep 'ignoring option' conftest.err ||
11422
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11423
        am_cv_CC_dependencies_compiler_type=$depmode
11424
        break
11425
      fi
11426
    fi
11427
  done
11428
 
11429
  cd ..
11430
  rm -rf conftest.dir
11431
else
11432
  am_cv_CC_dependencies_compiler_type=none
11433
fi
11434
 
11435
fi
11436 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11437 82 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11438 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11439
 
11440
 if
11441
  test "x$enable_dependency_tracking" != xno \
11442
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11443
  am__fastdepCC_TRUE=
11444
  am__fastdepCC_FALSE='#'
11445
else
11446
  am__fastdepCC_TRUE='#'
11447
  am__fastdepCC_FALSE=
11448
fi
11449
 
11450
 
11451
 
11452 91 jeremybenn
 
11453 82 jeremybenn
ac_config_headers="$ac_config_headers config.h"
11454
 
11455
 
11456
 
11457
 
11458
# make sure we are using a recent autoconf version
11459
 
11460
 
11461
# yuck.
11462
case "$target_cpu" in
11463
or32*)  CPU_ARCH=or32;
11464
        ARCH_ISA=OR32;
11465
 
11466 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
11467
#define OR32_TYPES 1
11468
_ACEOF
11469 82 jeremybenn
;;
11470
dlx*)   CPU_ARCH=dlx;
11471
        ARCH_ISA=DLX;;
11472 121 jeremybenn
*)      { $as_echo "$as_me:$LINENO: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
11473 82 jeremybenn
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
11474
        CPU_ARCH=or32;
11475
        ARCH_ISA=OR32;
11476
 
11477 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
11478
#define OR32_TYPES 1
11479
_ACEOF
11480 82 jeremybenn
;;
11481
esac
11482
 
11483
# determine endianism from target CPU name. If it has "little" in the name,
11484
# then its litte endian, otherwise its big endian (default for OR1K)
11485
case "$target_cpu" in
11486
*little*)
11487 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
11488
#define OR32_LITTLE_ENDIAN 1
11489
_ACEOF
11490 82 jeremybenn
;;
11491
       *)
11492 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
11493
#define OR32_BIG_ENDIAN 1
11494
_ACEOF
11495 82 jeremybenn
;;
11496
esac
11497
 
11498
 
11499
 
11500
# Set the CFLAGS we want
11501
CFLAGS="$CFLAGS -g -Wall -Werror -O2 -D$ARCH_ISA"
11502
 
11503
# By default we simply use the C compiler to build assembly code.
11504
 
11505
test "${CCAS+set}" = set || CCAS=$CC
11506
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11507
 
11508
 
11509
 
11510
depcc="$CCAS"   am_compiler_list=
11511
 
11512 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11513 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
11514 121 jeremybenn
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11515 82 jeremybenn
  $as_echo_n "(cached) " >&6
11516 19 jeremybenn
else
11517
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11518
  # We make a subdir and do the tests there.  Otherwise we can end up
11519
  # making bogus files that we don't know about and never remove.  For
11520
  # instance it was reported that on HP-UX the gcc test will end up
11521
  # making a dummy file named `D' -- because `-MD' means `put the output
11522
  # in D'.
11523
  mkdir conftest.dir
11524
  # Copy depcomp to subdir because otherwise we won't find it if we're
11525
  # using a relative directory.
11526
  cp "$am_depcomp" conftest.dir
11527
  cd conftest.dir
11528
  # We will build objects and dependencies in a subdirectory because
11529
  # it helps to detect inapplicable dependency modes.  For instance
11530
  # both Tru64's cc and ICC support -MD to output dependencies as a
11531
  # side effect of compilation, but ICC will put the dependencies in
11532
  # the current directory while Tru64 will put them in the object
11533
  # directory.
11534
  mkdir sub
11535
 
11536 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11537 19 jeremybenn
  if test "$am_compiler_list" = ""; then
11538
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11539
  fi
11540 82 jeremybenn
  am__universal=false
11541
 
11542
 
11543 19 jeremybenn
  for depmode in $am_compiler_list; do
11544
    # Setup a source with many dependencies, because some compilers
11545
    # like to wrap large dependency lists on column 80 (with \), and
11546
    # we should not choose a depcomp mode which is confused by this.
11547
    #
11548
    # We need to recreate these files for each test, as the compiler may
11549
    # overwrite some of them when testing with obscure command lines.
11550
    # This happens at least with the AIX C compiler.
11551
    : > sub/conftest.c
11552
    for i in 1 2 3 4 5 6; do
11553
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11554
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11555
      # Solaris 8's {/usr,}/bin/sh.
11556
      touch sub/conftst$i.h
11557
    done
11558
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11559
 
11560 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11561
    # mode.  It turns out that the SunPro C++ compiler does not properly
11562
    # handle `-M -o', and we need to detect this.  Also, some Intel
11563
    # versions had trouble with output in subdirs
11564
    am__obj=sub/conftest.${OBJEXT-o}
11565
    am__minus_obj="-o $am__obj"
11566 19 jeremybenn
    case $depmode in
11567 82 jeremybenn
    gcc)
11568
      # This depmode causes a compiler race in universal mode.
11569
      test "$am__universal" = false || continue
11570
      ;;
11571 19 jeremybenn
    nosideeffect)
11572
      # after this tag, mechanisms are not by side-effect, so they'll
11573
      # only be used when explicitly requested
11574
      if test "x$enable_dependency_tracking" = xyes; then
11575
        continue
11576
      else
11577
        break
11578
      fi
11579
      ;;
11580 82 jeremybenn
    msvisualcpp | msvcmsys)
11581
      # This compiler won't grok `-c -o', but also, the minuso test has
11582
      # not run yet.  These depmodes are late enough in the game, and
11583
      # so weak that their functioning should not be impacted.
11584
      am__obj=conftest.${OBJEXT-o}
11585
      am__minus_obj=
11586
      ;;
11587 19 jeremybenn
    none) break ;;
11588
    esac
11589
    if depmode=$depmode \
11590 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11591 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11592 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11593 19 jeremybenn
         >/dev/null 2>conftest.err &&
11594
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11595
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11596 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11597 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11598
      # icc doesn't choke on unknown options, it will just issue warnings
11599
      # or remarks (even with -Werror).  So we grep stderr for any message
11600
      # that says an option was ignored or not supported.
11601
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11602
      #   icc: Command line warning: ignoring option '-M'; no argument required
11603
      # The diagnosis changed in icc 8.0:
11604
      #   icc: Command line remark: option '-MP' not supported
11605
      if (grep 'ignoring option' conftest.err ||
11606
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11607 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11608 19 jeremybenn
        break
11609
      fi
11610
    fi
11611
  done
11612
 
11613
  cd ..
11614
  rm -rf conftest.dir
11615
else
11616 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11617 19 jeremybenn
fi
11618
 
11619
fi
11620 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11621 82 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11622
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11623 19 jeremybenn
 
11624
 if
11625
  test "x$enable_dependency_tracking" != xno \
11626 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11627
  am__fastdepCCAS_TRUE=
11628
  am__fastdepCCAS_FALSE='#'
11629 19 jeremybenn
else
11630 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11631
  am__fastdepCCAS_FALSE=
11632 19 jeremybenn
fi
11633
 
11634
 
11635
 
11636
ac_ext=c
11637
ac_cpp='$CPP $CPPFLAGS'
11638
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11639
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11640
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11641
if test -n "$ac_tool_prefix"; then
11642
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11643
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11644 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11645 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11646 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11647 82 jeremybenn
  $as_echo_n "(cached) " >&6
11648 19 jeremybenn
else
11649
  if test -n "$CC"; then
11650
  ac_cv_prog_CC="$CC" # Let the user override the test.
11651
else
11652
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653
for as_dir in $PATH
11654
do
11655
  IFS=$as_save_IFS
11656
  test -z "$as_dir" && as_dir=.
11657 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11658 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11659
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11660 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11661 19 jeremybenn
    break 2
11662
  fi
11663
done
11664 121 jeremybenn
done
11665 19 jeremybenn
IFS=$as_save_IFS
11666
 
11667
fi
11668
fi
11669
CC=$ac_cv_prog_CC
11670
if test -n "$CC"; then
11671 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11672 82 jeremybenn
$as_echo "$CC" >&6; }
11673 19 jeremybenn
else
11674 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11675 82 jeremybenn
$as_echo "no" >&6; }
11676 19 jeremybenn
fi
11677
 
11678
 
11679
fi
11680
if test -z "$ac_cv_prog_CC"; then
11681
  ac_ct_CC=$CC
11682
  # Extract the first word of "gcc", so it can be a program name with args.
11683
set dummy gcc; ac_word=$2
11684 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11685 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11686 121 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11687 82 jeremybenn
  $as_echo_n "(cached) " >&6
11688 19 jeremybenn
else
11689
  if test -n "$ac_ct_CC"; then
11690
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11691
else
11692
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693
for as_dir in $PATH
11694
do
11695
  IFS=$as_save_IFS
11696
  test -z "$as_dir" && as_dir=.
11697 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11698 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11699
    ac_cv_prog_ac_ct_CC="gcc"
11700 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11701 19 jeremybenn
    break 2
11702
  fi
11703
done
11704 121 jeremybenn
done
11705 19 jeremybenn
IFS=$as_save_IFS
11706
 
11707
fi
11708
fi
11709
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11710
if test -n "$ac_ct_CC"; then
11711 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11712 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11713 19 jeremybenn
else
11714 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11715 82 jeremybenn
$as_echo "no" >&6; }
11716 19 jeremybenn
fi
11717
 
11718
  if test "x$ac_ct_CC" = x; then
11719
    CC=""
11720
  else
11721
    case $cross_compiling:$ac_tool_warned in
11722
yes:)
11723 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11724 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11725 19 jeremybenn
ac_tool_warned=yes ;;
11726
esac
11727
    CC=$ac_ct_CC
11728
  fi
11729
else
11730
  CC="$ac_cv_prog_CC"
11731
fi
11732
 
11733
if test -z "$CC"; then
11734
          if test -n "$ac_tool_prefix"; then
11735
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11736
set dummy ${ac_tool_prefix}cc; ac_word=$2
11737 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11738 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11739 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11740 82 jeremybenn
  $as_echo_n "(cached) " >&6
11741 19 jeremybenn
else
11742
  if test -n "$CC"; then
11743
  ac_cv_prog_CC="$CC" # Let the user override the test.
11744
else
11745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746
for as_dir in $PATH
11747
do
11748
  IFS=$as_save_IFS
11749
  test -z "$as_dir" && as_dir=.
11750 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11751 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11752
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11753 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11754 19 jeremybenn
    break 2
11755
  fi
11756
done
11757 121 jeremybenn
done
11758 19 jeremybenn
IFS=$as_save_IFS
11759
 
11760
fi
11761
fi
11762
CC=$ac_cv_prog_CC
11763
if test -n "$CC"; then
11764 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11765 82 jeremybenn
$as_echo "$CC" >&6; }
11766 19 jeremybenn
else
11767 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11768 82 jeremybenn
$as_echo "no" >&6; }
11769 19 jeremybenn
fi
11770
 
11771
 
11772
  fi
11773
fi
11774
if test -z "$CC"; then
11775
  # Extract the first word of "cc", so it can be a program name with args.
11776
set dummy cc; ac_word=$2
11777 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11778 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11779 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11780 82 jeremybenn
  $as_echo_n "(cached) " >&6
11781 19 jeremybenn
else
11782
  if test -n "$CC"; then
11783
  ac_cv_prog_CC="$CC" # Let the user override the test.
11784
else
11785
  ac_prog_rejected=no
11786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787
for as_dir in $PATH
11788
do
11789
  IFS=$as_save_IFS
11790
  test -z "$as_dir" && as_dir=.
11791 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11792 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11793
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11794
       ac_prog_rejected=yes
11795
       continue
11796
     fi
11797
    ac_cv_prog_CC="cc"
11798 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11799 19 jeremybenn
    break 2
11800
  fi
11801
done
11802 121 jeremybenn
done
11803 19 jeremybenn
IFS=$as_save_IFS
11804
 
11805
if test $ac_prog_rejected = yes; then
11806
  # We found a bogon in the path, so make sure we never use it.
11807
  set dummy $ac_cv_prog_CC
11808
  shift
11809
  if test $# != 0; then
11810
    # We chose a different compiler from the bogus one.
11811
    # However, it has the same basename, so the bogon will be chosen
11812
    # first if we set CC to just the basename; use the full file name.
11813
    shift
11814
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11815
  fi
11816
fi
11817
fi
11818
fi
11819
CC=$ac_cv_prog_CC
11820
if test -n "$CC"; then
11821 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11822 82 jeremybenn
$as_echo "$CC" >&6; }
11823 19 jeremybenn
else
11824 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11825 82 jeremybenn
$as_echo "no" >&6; }
11826 19 jeremybenn
fi
11827
 
11828
 
11829
fi
11830
if test -z "$CC"; then
11831
  if test -n "$ac_tool_prefix"; then
11832
  for ac_prog in cl.exe
11833
  do
11834
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11835
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11836 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11837 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11838 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11839 82 jeremybenn
  $as_echo_n "(cached) " >&6
11840 19 jeremybenn
else
11841
  if test -n "$CC"; then
11842
  ac_cv_prog_CC="$CC" # Let the user override the test.
11843
else
11844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845
for as_dir in $PATH
11846
do
11847
  IFS=$as_save_IFS
11848
  test -z "$as_dir" && as_dir=.
11849 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11850 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11851
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11852 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11853 19 jeremybenn
    break 2
11854
  fi
11855
done
11856 121 jeremybenn
done
11857 19 jeremybenn
IFS=$as_save_IFS
11858
 
11859
fi
11860
fi
11861
CC=$ac_cv_prog_CC
11862
if test -n "$CC"; then
11863 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11864 82 jeremybenn
$as_echo "$CC" >&6; }
11865 19 jeremybenn
else
11866 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11867 82 jeremybenn
$as_echo "no" >&6; }
11868 19 jeremybenn
fi
11869
 
11870
 
11871
    test -n "$CC" && break
11872
  done
11873
fi
11874
if test -z "$CC"; then
11875
  ac_ct_CC=$CC
11876
  for ac_prog in cl.exe
11877
do
11878
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11879
set dummy $ac_prog; ac_word=$2
11880 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11881 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11882 121 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11883 82 jeremybenn
  $as_echo_n "(cached) " >&6
11884 19 jeremybenn
else
11885
  if test -n "$ac_ct_CC"; then
11886
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11887
else
11888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889
for as_dir in $PATH
11890
do
11891
  IFS=$as_save_IFS
11892
  test -z "$as_dir" && as_dir=.
11893 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11894 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11895
    ac_cv_prog_ac_ct_CC="$ac_prog"
11896 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11897 19 jeremybenn
    break 2
11898
  fi
11899
done
11900 121 jeremybenn
done
11901 19 jeremybenn
IFS=$as_save_IFS
11902
 
11903
fi
11904
fi
11905
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11906
if test -n "$ac_ct_CC"; then
11907 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11908 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11909 19 jeremybenn
else
11910 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11911 82 jeremybenn
$as_echo "no" >&6; }
11912 19 jeremybenn
fi
11913
 
11914
 
11915
  test -n "$ac_ct_CC" && break
11916
done
11917
 
11918
  if test "x$ac_ct_CC" = x; then
11919
    CC=""
11920
  else
11921
    case $cross_compiling:$ac_tool_warned in
11922
yes:)
11923 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11924 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11925 19 jeremybenn
ac_tool_warned=yes ;;
11926
esac
11927
    CC=$ac_ct_CC
11928
  fi
11929
fi
11930
 
11931
fi
11932
 
11933
 
11934 121 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11935 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11936 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11937
See \`config.log' for more details." >&5
11938
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11939
See \`config.log' for more details." >&2;}
11940
   { (exit 1); exit 1; }; }; }
11941 19 jeremybenn
 
11942
# Provide some information about the compiler.
11943 121 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11944 82 jeremybenn
set X $ac_compile
11945
ac_compiler=$2
11946 121 jeremybenn
{ (ac_try="$ac_compiler --version >&5"
11947 19 jeremybenn
case "(($ac_try" in
11948
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949
  *) ac_try_echo=$ac_try;;
11950
esac
11951 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11952
$as_echo "$ac_try_echo") >&5
11953
  (eval "$ac_compiler --version >&5") 2>&5
11954 19 jeremybenn
  ac_status=$?
11955 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956
  (exit $ac_status); }
11957
{ (ac_try="$ac_compiler -v >&5"
11958
case "(($ac_try" in
11959
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960
  *) ac_try_echo=$ac_try;;
11961
esac
11962
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11963
$as_echo "$ac_try_echo") >&5
11964
  (eval "$ac_compiler -v >&5") 2>&5
11965
  ac_status=$?
11966
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967
  (exit $ac_status); }
11968
{ (ac_try="$ac_compiler -V >&5"
11969
case "(($ac_try" in
11970
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971
  *) ac_try_echo=$ac_try;;
11972
esac
11973
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11974
$as_echo "$ac_try_echo") >&5
11975
  (eval "$ac_compiler -V >&5") 2>&5
11976
  ac_status=$?
11977
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978
  (exit $ac_status); }
11979 19 jeremybenn
 
11980 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11981 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11982 121 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
11983 82 jeremybenn
  $as_echo_n "(cached) " >&6
11984 19 jeremybenn
else
11985 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
11986
/* confdefs.h.  */
11987
_ACEOF
11988
cat confdefs.h >>conftest.$ac_ext
11989
cat >>conftest.$ac_ext <<_ACEOF
11990 19 jeremybenn
/* end confdefs.h.  */
11991
 
11992
int
11993
main ()
11994
{
11995
#ifndef __GNUC__
11996
       choke me
11997
#endif
11998
 
11999
  ;
12000
  return 0;
12001
}
12002
_ACEOF
12003 121 jeremybenn
rm -f conftest.$ac_objext
12004
if { (ac_try="$ac_compile"
12005
case "(($ac_try" in
12006
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007
  *) ac_try_echo=$ac_try;;
12008
esac
12009
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12010
$as_echo "$ac_try_echo") >&5
12011
  (eval "$ac_compile") 2>conftest.er1
12012
  ac_status=$?
12013
  grep -v '^ *+' conftest.er1 >conftest.err
12014
  rm -f conftest.er1
12015
  cat conftest.err >&5
12016
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017
  (exit $ac_status); } && {
12018
         test -z "$ac_c_werror_flag" ||
12019
         test ! -s conftest.err
12020
       } && test -s conftest.$ac_objext; then
12021 19 jeremybenn
  ac_compiler_gnu=yes
12022
else
12023 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12024
sed 's/^/| /' conftest.$ac_ext >&5
12025
 
12026
        ac_compiler_gnu=no
12027 19 jeremybenn
fi
12028 121 jeremybenn
 
12029 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12030
ac_cv_c_compiler_gnu=$ac_compiler_gnu
12031
 
12032
fi
12033 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12034 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12035
if test $ac_compiler_gnu = yes; then
12036
  GCC=yes
12037
else
12038
  GCC=
12039
fi
12040 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
12041
ac_save_CFLAGS=$CFLAGS
12042 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12043 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
12044 121 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
12045 82 jeremybenn
  $as_echo_n "(cached) " >&6
12046 19 jeremybenn
else
12047
  ac_save_c_werror_flag=$ac_c_werror_flag
12048
   ac_c_werror_flag=yes
12049
   ac_cv_prog_cc_g=no
12050
   CFLAGS="-g"
12051 121 jeremybenn
   cat >conftest.$ac_ext <<_ACEOF
12052
/* confdefs.h.  */
12053
_ACEOF
12054
cat confdefs.h >>conftest.$ac_ext
12055
cat >>conftest.$ac_ext <<_ACEOF
12056 19 jeremybenn
/* end confdefs.h.  */
12057
 
12058
int
12059
main ()
12060
{
12061
 
12062
  ;
12063
  return 0;
12064
}
12065
_ACEOF
12066 121 jeremybenn
rm -f conftest.$ac_objext
12067
if { (ac_try="$ac_compile"
12068
case "(($ac_try" in
12069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070
  *) ac_try_echo=$ac_try;;
12071
esac
12072
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12073
$as_echo "$ac_try_echo") >&5
12074
  (eval "$ac_compile") 2>conftest.er1
12075
  ac_status=$?
12076
  grep -v '^ *+' conftest.er1 >conftest.err
12077
  rm -f conftest.er1
12078
  cat conftest.err >&5
12079
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080
  (exit $ac_status); } && {
12081
         test -z "$ac_c_werror_flag" ||
12082
         test ! -s conftest.err
12083
       } && test -s conftest.$ac_objext; then
12084 19 jeremybenn
  ac_cv_prog_cc_g=yes
12085
else
12086 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12087
sed 's/^/| /' conftest.$ac_ext >&5
12088
 
12089
        CFLAGS=""
12090
      cat >conftest.$ac_ext <<_ACEOF
12091
/* confdefs.h.  */
12092
_ACEOF
12093
cat confdefs.h >>conftest.$ac_ext
12094
cat >>conftest.$ac_ext <<_ACEOF
12095 19 jeremybenn
/* end confdefs.h.  */
12096
 
12097
int
12098
main ()
12099
{
12100
 
12101
  ;
12102
  return 0;
12103
}
12104
_ACEOF
12105 121 jeremybenn
rm -f conftest.$ac_objext
12106
if { (ac_try="$ac_compile"
12107
case "(($ac_try" in
12108
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109
  *) ac_try_echo=$ac_try;;
12110
esac
12111
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12112
$as_echo "$ac_try_echo") >&5
12113
  (eval "$ac_compile") 2>conftest.er1
12114
  ac_status=$?
12115
  grep -v '^ *+' conftest.er1 >conftest.err
12116
  rm -f conftest.er1
12117
  cat conftest.err >&5
12118
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119
  (exit $ac_status); } && {
12120
         test -z "$ac_c_werror_flag" ||
12121
         test ! -s conftest.err
12122
       } && test -s conftest.$ac_objext; then
12123
  :
12124
else
12125
  $as_echo "$as_me: failed program was:" >&5
12126
sed 's/^/| /' conftest.$ac_ext >&5
12127 118 jeremybenn
 
12128 121 jeremybenn
        ac_c_werror_flag=$ac_save_c_werror_flag
12129 19 jeremybenn
         CFLAGS="-g"
12130 121 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
12131
/* confdefs.h.  */
12132
_ACEOF
12133
cat confdefs.h >>conftest.$ac_ext
12134
cat >>conftest.$ac_ext <<_ACEOF
12135 19 jeremybenn
/* end confdefs.h.  */
12136
 
12137
int
12138
main ()
12139
{
12140
 
12141
  ;
12142
  return 0;
12143
}
12144
_ACEOF
12145 121 jeremybenn
rm -f conftest.$ac_objext
12146
if { (ac_try="$ac_compile"
12147
case "(($ac_try" in
12148
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149
  *) ac_try_echo=$ac_try;;
12150
esac
12151
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12152
$as_echo "$ac_try_echo") >&5
12153
  (eval "$ac_compile") 2>conftest.er1
12154
  ac_status=$?
12155
  grep -v '^ *+' conftest.er1 >conftest.err
12156
  rm -f conftest.er1
12157
  cat conftest.err >&5
12158
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159
  (exit $ac_status); } && {
12160
         test -z "$ac_c_werror_flag" ||
12161
         test ! -s conftest.err
12162
       } && test -s conftest.$ac_objext; then
12163 19 jeremybenn
  ac_cv_prog_cc_g=yes
12164 121 jeremybenn
else
12165
  $as_echo "$as_me: failed program was:" >&5
12166
sed 's/^/| /' conftest.$ac_ext >&5
12167
 
12168
 
12169 19 jeremybenn
fi
12170 121 jeremybenn
 
12171 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12172
fi
12173 121 jeremybenn
 
12174 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12175
fi
12176 121 jeremybenn
 
12177 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12178
   ac_c_werror_flag=$ac_save_c_werror_flag
12179
fi
12180 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12181 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
12182 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
12183
  CFLAGS=$ac_save_CFLAGS
12184
elif test $ac_cv_prog_cc_g = yes; then
12185
  if test "$GCC" = yes; then
12186
    CFLAGS="-g -O2"
12187
  else
12188
    CFLAGS="-g"
12189
  fi
12190
else
12191
  if test "$GCC" = yes; then
12192
    CFLAGS="-O2"
12193
  else
12194
    CFLAGS=
12195
  fi
12196
fi
12197 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12198 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12199 121 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then
12200 82 jeremybenn
  $as_echo_n "(cached) " >&6
12201 19 jeremybenn
else
12202
  ac_cv_prog_cc_c89=no
12203
ac_save_CC=$CC
12204 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12205
/* confdefs.h.  */
12206
_ACEOF
12207
cat confdefs.h >>conftest.$ac_ext
12208
cat >>conftest.$ac_ext <<_ACEOF
12209 19 jeremybenn
/* end confdefs.h.  */
12210
#include 
12211
#include 
12212
#include 
12213
#include 
12214
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12215
struct buf { int x; };
12216
FILE * (*rcsopen) (struct buf *, struct stat *, int);
12217
static char *e (p, i)
12218
     char **p;
12219
     int i;
12220
{
12221
  return p[i];
12222
}
12223
static char *f (char * (*g) (char **, int), char **p, ...)
12224
{
12225
  char *s;
12226
  va_list v;
12227
  va_start (v,p);
12228
  s = g (p, va_arg (v,int));
12229
  va_end (v);
12230
  return s;
12231
}
12232
 
12233
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12234
   function prototypes and stuff, but not '\xHH' hex character constants.
12235
   These don't provoke an error unfortunately, instead are silently treated
12236
   as 'x'.  The following induces an error, until -std is added to get
12237
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12238
   array size at least.  It's necessary to write '\x00'==0 to get something
12239
   that's true only with -std.  */
12240
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12241
 
12242
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12243
   inside strings and character constants.  */
12244
#define FOO(x) 'x'
12245
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12246
 
12247
int test (int i, double x);
12248
struct s1 {int (*f) (int a);};
12249
struct s2 {int (*f) (double a);};
12250
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12251
int argc;
12252
char **argv;
12253
int
12254
main ()
12255
{
12256
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12257
  ;
12258
  return 0;
12259
}
12260
_ACEOF
12261
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12262
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12263
do
12264
  CC="$ac_save_CC $ac_arg"
12265 121 jeremybenn
  rm -f conftest.$ac_objext
12266
if { (ac_try="$ac_compile"
12267
case "(($ac_try" in
12268
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269
  *) ac_try_echo=$ac_try;;
12270
esac
12271
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12272
$as_echo "$ac_try_echo") >&5
12273
  (eval "$ac_compile") 2>conftest.er1
12274
  ac_status=$?
12275
  grep -v '^ *+' conftest.er1 >conftest.err
12276
  rm -f conftest.er1
12277
  cat conftest.err >&5
12278
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279
  (exit $ac_status); } && {
12280
         test -z "$ac_c_werror_flag" ||
12281
         test ! -s conftest.err
12282
       } && test -s conftest.$ac_objext; then
12283 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
12284 121 jeremybenn
else
12285
  $as_echo "$as_me: failed program was:" >&5
12286
sed 's/^/| /' conftest.$ac_ext >&5
12287
 
12288
 
12289 19 jeremybenn
fi
12290 121 jeremybenn
 
12291 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext
12292
  test "x$ac_cv_prog_cc_c89" != "xno" && break
12293
done
12294
rm -f conftest.$ac_ext
12295
CC=$ac_save_CC
12296
 
12297
fi
12298
# AC_CACHE_VAL
12299
case "x$ac_cv_prog_cc_c89" in
12300
  x)
12301 121 jeremybenn
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
12302 82 jeremybenn
$as_echo "none needed" >&6; } ;;
12303 19 jeremybenn
  xno)
12304 121 jeremybenn
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12305 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
12306 19 jeremybenn
  *)
12307
    CC="$CC $ac_cv_prog_cc_c89"
12308 121 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12309 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12310 19 jeremybenn
esac
12311
 
12312
 
12313
ac_ext=c
12314
ac_cpp='$CPP $CPPFLAGS'
12315
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12316
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12317
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12318
 
12319
if test "x$CC" != xcc; then
12320 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
12321 82 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12322 19 jeremybenn
else
12323 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
12324 82 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12325 19 jeremybenn
fi
12326 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
12327 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12328 121 jeremybenn
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
12329 82 jeremybenn
  $as_echo_n "(cached) " >&6
12330 19 jeremybenn
else
12331 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
12332
/* confdefs.h.  */
12333
_ACEOF
12334
cat confdefs.h >>conftest.$ac_ext
12335
cat >>conftest.$ac_ext <<_ACEOF
12336 19 jeremybenn
/* end confdefs.h.  */
12337
 
12338
int
12339
main ()
12340
{
12341
 
12342
  ;
12343
  return 0;
12344
}
12345
_ACEOF
12346
# Make sure it works both with $CC and with simple cc.
12347
# We do the test twice because some compilers refuse to overwrite an
12348
# existing .o file with -o, though they will create one.
12349
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12350
rm -f conftest2.*
12351 121 jeremybenn
if { (case "(($ac_try" in
12352 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353
  *) ac_try_echo=$ac_try;;
12354
esac
12355 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12356
$as_echo "$ac_try_echo") >&5
12357 19 jeremybenn
  (eval "$ac_try") 2>&5
12358
  ac_status=$?
12359 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360
  (exit $ac_status); } &&
12361
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
12362 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363
  *) ac_try_echo=$ac_try;;
12364
esac
12365 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12366
$as_echo "$ac_try_echo") >&5
12367 19 jeremybenn
  (eval "$ac_try") 2>&5
12368
  ac_status=$?
12369 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370
  (exit $ac_status); };
12371 19 jeremybenn
then
12372
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12373
  if test "x$CC" != xcc; then
12374
    # Test first that cc exists at all.
12375
    if { ac_try='cc -c conftest.$ac_ext >&5'
12376 121 jeremybenn
  { (case "(($ac_try" in
12377 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378
  *) ac_try_echo=$ac_try;;
12379
esac
12380 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12381
$as_echo "$ac_try_echo") >&5
12382 19 jeremybenn
  (eval "$ac_try") 2>&5
12383
  ac_status=$?
12384 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385
  (exit $ac_status); }; }; then
12386 19 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12387
      rm -f conftest2.*
12388 121 jeremybenn
      if { (case "(($ac_try" in
12389 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390
  *) ac_try_echo=$ac_try;;
12391
esac
12392 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12393
$as_echo "$ac_try_echo") >&5
12394 19 jeremybenn
  (eval "$ac_try") 2>&5
12395
  ac_status=$?
12396 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397
  (exit $ac_status); } &&
12398
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
12399 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400
  *) ac_try_echo=$ac_try;;
12401
esac
12402 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12403
$as_echo "$ac_try_echo") >&5
12404 19 jeremybenn
  (eval "$ac_try") 2>&5
12405
  ac_status=$?
12406 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407
  (exit $ac_status); };
12408 19 jeremybenn
      then
12409
        # cc works too.
12410
        :
12411
      else
12412
        # cc exists but doesn't like -o.
12413
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
12414
      fi
12415
    fi
12416
  fi
12417
else
12418
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12419
fi
12420
rm -f core conftest*
12421
 
12422
fi
12423
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12424 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12425 82 jeremybenn
$as_echo "yes" >&6; }
12426 19 jeremybenn
else
12427 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12428 82 jeremybenn
$as_echo "no" >&6; }
12429 19 jeremybenn
 
12430 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
12431
#define NO_MINUS_C_MINUS_O 1
12432
_ACEOF
12433 19 jeremybenn
 
12434
fi
12435
 
12436
# FIXME: we rely on the cache variable name because
12437
# there is no other way.
12438
set dummy $CC
12439 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12440
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12441
if test "$am_t" != yes; then
12442 19 jeremybenn
   # Losing compiler, so override with the script.
12443
   # FIXME: It is wrong to rewrite CC.
12444
   # But if we don't then we get into trouble of one sort or another.
12445
   # A longer-term fix would be to have automake use am__CC in this case,
12446
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12447
   CC="$am_aux_dir/compile $CC"
12448
fi
12449
 
12450
 
12451
 
12452 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12453 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12454
set x ${MAKE-make}
12455
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12456 121 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
12457 82 jeremybenn
  $as_echo_n "(cached) " >&6
12458 19 jeremybenn
else
12459
  cat >conftest.make <<\_ACEOF
12460
SHELL = /bin/sh
12461
all:
12462
        @echo '@@@%%%=$(MAKE)=@@@%%%'
12463
_ACEOF
12464
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12465
case `${MAKE-make} -f conftest.make 2>/dev/null` in
12466
  *@@@%%%=?*=@@@%%%*)
12467
    eval ac_cv_prog_make_${ac_make}_set=yes;;
12468
  *)
12469
    eval ac_cv_prog_make_${ac_make}_set=no;;
12470
esac
12471
rm -f conftest.make
12472
fi
12473
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12474 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12475 82 jeremybenn
$as_echo "yes" >&6; }
12476 19 jeremybenn
  SET_MAKE=
12477
else
12478 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12479 82 jeremybenn
$as_echo "no" >&6; }
12480 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
12481
fi
12482
 
12483
 
12484 121 jeremybenn
# Find a good install program.  We prefer a C program (faster),
12485
# so one script is as good as another.  But avoid the broken or
12486
# incompatible versions:
12487
# SysV /etc/install, /usr/sbin/install
12488
# SunOS /usr/etc/install
12489
# IRIX /sbin/install
12490
# AIX /bin/install
12491
# AmigaOS /C/install, which installs bootblocks on floppy discs
12492
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12493
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12494
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12495
# OS/2's system install, which has a completely different semantic
12496
# ./install, which can be erroneously created by make from ./install.sh.
12497
# Reject install programs that cannot install multiple files.
12498
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12499
$as_echo_n "checking for a BSD-compatible install... " >&6; }
12500
if test -z "$INSTALL"; then
12501
if test "${ac_cv_path_install+set}" = set; then
12502
  $as_echo_n "(cached) " >&6
12503
else
12504
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505
for as_dir in $PATH
12506
do
12507
  IFS=$as_save_IFS
12508
  test -z "$as_dir" && as_dir=.
12509
  # Account for people who put trailing slashes in PATH elements.
12510
case $as_dir/ in
12511
  ./ | .// | /cC/* | \
12512
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12513
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12514
  /usr/ucb/* ) ;;
12515
  *)
12516
    # OSF1 and SCO ODT 3.0 have their own names for install.
12517
    # Don't use installbsd from OSF since it installs stuff as root
12518
    # by default.
12519
    for ac_prog in ginstall scoinst install; do
12520
      for ac_exec_ext in '' $ac_executable_extensions; do
12521
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12522
          if test $ac_prog = install &&
12523
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12524
            # AIX install.  It has an incompatible calling convention.
12525
            :
12526
          elif test $ac_prog = install &&
12527
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12528
            # program-specific install script used by HP pwplus--don't use.
12529
            :
12530
          else
12531
            rm -rf conftest.one conftest.two conftest.dir
12532
            echo one > conftest.one
12533
            echo two > conftest.two
12534
            mkdir conftest.dir
12535
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12536
              test -s conftest.one && test -s conftest.two &&
12537
              test -s conftest.dir/conftest.one &&
12538
              test -s conftest.dir/conftest.two
12539
            then
12540
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12541
              break 3
12542
            fi
12543
          fi
12544
        fi
12545
      done
12546
    done
12547
    ;;
12548
esac
12549 82 jeremybenn
 
12550 121 jeremybenn
done
12551
IFS=$as_save_IFS
12552
 
12553
rm -rf conftest.one conftest.two conftest.dir
12554
 
12555
fi
12556
  if test "${ac_cv_path_install+set}" = set; then
12557
    INSTALL=$ac_cv_path_install
12558
  else
12559
    # As a last resort, use the slow shell script.  Don't cache a
12560
    # value for INSTALL within a source directory, because that will
12561
    # break other packages using the cache if that directory is
12562
    # removed, or if the value is a relative name.
12563
    INSTALL=$ac_install_sh
12564
  fi
12565
fi
12566
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12567
$as_echo "$INSTALL" >&6; }
12568
 
12569
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12570
# It thinks the first close brace ends the variable substitution.
12571
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12572
 
12573
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12574
 
12575
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12576
 
12577 19 jeremybenn
# Extract the first word of "ar", so it can be a program name with args.
12578
set dummy ar; ac_word=$2
12579 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12580 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
12581 121 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then
12582 82 jeremybenn
  $as_echo_n "(cached) " >&6
12583 19 jeremybenn
else
12584
  if test -n "$AR"; then
12585
  ac_cv_prog_AR="$AR" # Let the user override the test.
12586
else
12587
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588
for as_dir in $PATH
12589
do
12590
  IFS=$as_save_IFS
12591
  test -z "$as_dir" && as_dir=.
12592 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
12593 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12594
    ac_cv_prog_AR="ar"
12595 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12596 19 jeremybenn
    break 2
12597
  fi
12598
done
12599 121 jeremybenn
done
12600 19 jeremybenn
IFS=$as_save_IFS
12601
 
12602
fi
12603
fi
12604
AR=$ac_cv_prog_AR
12605
if test -n "$AR"; then
12606 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
12607 82 jeremybenn
$as_echo "$AR" >&6; }
12608 19 jeremybenn
else
12609 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12610 82 jeremybenn
$as_echo "no" >&6; }
12611 19 jeremybenn
fi
12612
 
12613
 
12614
 
12615
# Set default for ARFLAGS, since autoconf does not have a macro for it.
12616
# This allows people to set it when running configure or make
12617
test -n "$ARFLAGS" || ARFLAGS="cr"
12618
 
12619 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12620 82 jeremybenn
$as_echo_n "checking return type of signal handlers... " >&6; }
12621 121 jeremybenn
if test "${ac_cv_type_signal+set}" = set; then
12622 82 jeremybenn
  $as_echo_n "(cached) " >&6
12623 19 jeremybenn
else
12624 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
12625
/* confdefs.h.  */
12626
_ACEOF
12627
cat confdefs.h >>conftest.$ac_ext
12628
cat >>conftest.$ac_ext <<_ACEOF
12629 19 jeremybenn
/* end confdefs.h.  */
12630
#include 
12631
#include 
12632
 
12633
int
12634
main ()
12635
{
12636
return *(signal (0, 0)) (0) == 1;
12637
  ;
12638
  return 0;
12639
}
12640
_ACEOF
12641 121 jeremybenn
rm -f conftest.$ac_objext
12642
if { (ac_try="$ac_compile"
12643
case "(($ac_try" in
12644
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645
  *) ac_try_echo=$ac_try;;
12646
esac
12647
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12648
$as_echo "$ac_try_echo") >&5
12649
  (eval "$ac_compile") 2>conftest.er1
12650
  ac_status=$?
12651
  grep -v '^ *+' conftest.er1 >conftest.err
12652
  rm -f conftest.er1
12653
  cat conftest.err >&5
12654
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655
  (exit $ac_status); } && {
12656
         test -z "$ac_c_werror_flag" ||
12657
         test ! -s conftest.err
12658
       } && test -s conftest.$ac_objext; then
12659 19 jeremybenn
  ac_cv_type_signal=int
12660
else
12661 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12662
sed 's/^/| /' conftest.$ac_ext >&5
12663
 
12664
        ac_cv_type_signal=void
12665 19 jeremybenn
fi
12666 121 jeremybenn
 
12667 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12668
fi
12669 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12670 82 jeremybenn
$as_echo "$ac_cv_type_signal" >&6; }
12671 19 jeremybenn
 
12672
cat >>confdefs.h <<_ACEOF
12673
#define RETSIGTYPE $ac_cv_type_signal
12674
_ACEOF
12675
 
12676
 
12677 121 jeremybenn
 
12678
 
12679
 
12680
 
12681
 
12682
 
12683
 
12684
 
12685
 
12686
 
12687
 
12688
 
12689
 
12690
 
12691
 
12692
 
12693
 
12694
 
12695
 
12696
 
12697
 
12698
 
12699
 
12700 82 jeremybenn
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h      \
12701
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
12702
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
12703 118 jeremybenn
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h  \
12704
                 limits.h
12705 121 jeremybenn
do
12706
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12707
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12708
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12709
$as_echo_n "checking for $ac_header... " >&6; }
12710
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12711
  $as_echo_n "(cached) " >&6
12712
fi
12713
ac_res=`eval 'as_val=${'$as_ac_Header'}
12714
                 $as_echo "$as_val"'`
12715
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12716
$as_echo "$ac_res" >&6; }
12717
else
12718
  # Is the header compilable?
12719
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12720
$as_echo_n "checking $ac_header usability... " >&6; }
12721
cat >conftest.$ac_ext <<_ACEOF
12722
/* confdefs.h.  */
12723
_ACEOF
12724
cat confdefs.h >>conftest.$ac_ext
12725
cat >>conftest.$ac_ext <<_ACEOF
12726
/* end confdefs.h.  */
12727
$ac_includes_default
12728
#include <$ac_header>
12729
_ACEOF
12730
rm -f conftest.$ac_objext
12731
if { (ac_try="$ac_compile"
12732
case "(($ac_try" in
12733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734
  *) ac_try_echo=$ac_try;;
12735
esac
12736
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12737
$as_echo "$ac_try_echo") >&5
12738
  (eval "$ac_compile") 2>conftest.er1
12739
  ac_status=$?
12740
  grep -v '^ *+' conftest.er1 >conftest.err
12741
  rm -f conftest.er1
12742
  cat conftest.err >&5
12743
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744
  (exit $ac_status); } && {
12745
         test -z "$ac_c_werror_flag" ||
12746
         test ! -s conftest.err
12747
       } && test -s conftest.$ac_objext; then
12748
  ac_header_compiler=yes
12749
else
12750
  $as_echo "$as_me: failed program was:" >&5
12751
sed 's/^/| /' conftest.$ac_ext >&5
12752
 
12753
        ac_header_compiler=no
12754
fi
12755
 
12756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12757
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12758
$as_echo "$ac_header_compiler" >&6; }
12759
 
12760
# Is the header present?
12761
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12762
$as_echo_n "checking $ac_header presence... " >&6; }
12763
cat >conftest.$ac_ext <<_ACEOF
12764
/* confdefs.h.  */
12765
_ACEOF
12766
cat confdefs.h >>conftest.$ac_ext
12767
cat >>conftest.$ac_ext <<_ACEOF
12768
/* end confdefs.h.  */
12769
#include <$ac_header>
12770
_ACEOF
12771
if { (ac_try="$ac_cpp conftest.$ac_ext"
12772
case "(($ac_try" in
12773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774
  *) ac_try_echo=$ac_try;;
12775
esac
12776
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12777
$as_echo "$ac_try_echo") >&5
12778
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12779
  ac_status=$?
12780
  grep -v '^ *+' conftest.er1 >conftest.err
12781
  rm -f conftest.er1
12782
  cat conftest.err >&5
12783
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784
  (exit $ac_status); } >/dev/null && {
12785
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12786
         test ! -s conftest.err
12787
       }; then
12788
  ac_header_preproc=yes
12789
else
12790
  $as_echo "$as_me: failed program was:" >&5
12791
sed 's/^/| /' conftest.$ac_ext >&5
12792
 
12793
  ac_header_preproc=no
12794
fi
12795
 
12796
rm -f conftest.err conftest.$ac_ext
12797
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12798
$as_echo "$ac_header_preproc" >&6; }
12799
 
12800
# So?  What about this header?
12801
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12802
  yes:no: )
12803
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12804
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12805
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12806
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12807
    ac_header_preproc=yes
12808
    ;;
12809
  no:yes:* )
12810
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12811
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12812
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12813
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12814
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12815
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12816
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12817
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12818
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12819
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12820
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12821
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12822
    ( cat <<\_ASBOX
12823
## ------------------------------------- ##
12824
## Report this to openrisc@opencores.org ##
12825
## ------------------------------------- ##
12826
_ASBOX
12827
     ) | sed "s/^/$as_me: WARNING:     /" >&2
12828
    ;;
12829
esac
12830
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12831
$as_echo_n "checking for $ac_header... " >&6; }
12832
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12833
  $as_echo_n "(cached) " >&6
12834
else
12835
  eval "$as_ac_Header=\$ac_header_preproc"
12836
fi
12837
ac_res=`eval 'as_val=${'$as_ac_Header'}
12838
                 $as_echo "$as_val"'`
12839
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12840
$as_echo "$ac_res" >&6; }
12841
 
12842
fi
12843
as_val=`eval 'as_val=${'$as_ac_Header'}
12844
                 $as_echo "$as_val"'`
12845
   if test "x$as_val" = x""yes; then
12846 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
12847
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12848 19 jeremybenn
_ACEOF
12849
 
12850
fi
12851
 
12852
done
12853
 
12854 121 jeremybenn
 
12855
 
12856
 
12857
 
12858
 
12859
 
12860
 
12861 19 jeremybenn
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
12862 121 jeremybenn
do
12863
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12864
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12865
$as_echo_n "checking for $ac_func... " >&6; }
12866
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12867
  $as_echo_n "(cached) " >&6
12868
else
12869
  cat >conftest.$ac_ext <<_ACEOF
12870
/* confdefs.h.  */
12871
_ACEOF
12872
cat confdefs.h >>conftest.$ac_ext
12873
cat >>conftest.$ac_ext <<_ACEOF
12874
/* end confdefs.h.  */
12875
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12876
   For example, HP-UX 11i  declares gettimeofday.  */
12877
#define $ac_func innocuous_$ac_func
12878
 
12879
/* System header to define __stub macros and hopefully few prototypes,
12880
    which can conflict with char $ac_func (); below.
12881
    Prefer  to  if __STDC__ is defined, since
12882
     exists even on freestanding compilers.  */
12883
 
12884
#ifdef __STDC__
12885
# include 
12886
#else
12887
# include 
12888
#endif
12889
 
12890
#undef $ac_func
12891
 
12892
/* Override any GCC internal prototype to avoid an error.
12893
   Use char because int might match the return type of a GCC
12894
   builtin and then its argument prototype would still apply.  */
12895
#ifdef __cplusplus
12896
extern "C"
12897
#endif
12898
char $ac_func ();
12899
/* The GNU C library defines this for functions which it implements
12900
    to always fail with ENOSYS.  Some functions are actually named
12901
    something starting with __ and the normal name is an alias.  */
12902
#if defined __stub_$ac_func || defined __stub___$ac_func
12903
choke me
12904
#endif
12905
 
12906
int
12907
main ()
12908
{
12909
return $ac_func ();
12910
  ;
12911
  return 0;
12912
}
12913
_ACEOF
12914
rm -f conftest.$ac_objext conftest$ac_exeext
12915
if { (ac_try="$ac_link"
12916
case "(($ac_try" in
12917
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918
  *) ac_try_echo=$ac_try;;
12919
esac
12920
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12921
$as_echo "$ac_try_echo") >&5
12922
  (eval "$ac_link") 2>conftest.er1
12923
  ac_status=$?
12924
  grep -v '^ *+' conftest.er1 >conftest.err
12925
  rm -f conftest.er1
12926
  cat conftest.err >&5
12927
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928
  (exit $ac_status); } && {
12929
         test -z "$ac_c_werror_flag" ||
12930
         test ! -s conftest.err
12931
       } && test -s conftest$ac_exeext && {
12932
         test "$cross_compiling" = yes ||
12933
         $as_test_x conftest$ac_exeext
12934
       }; then
12935
  eval "$as_ac_var=yes"
12936
else
12937
  $as_echo "$as_me: failed program was:" >&5
12938
sed 's/^/| /' conftest.$ac_ext >&5
12939
 
12940
        eval "$as_ac_var=no"
12941
fi
12942
 
12943
rm -rf conftest.dSYM
12944
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12945
      conftest$ac_exeext conftest.$ac_ext
12946
fi
12947
ac_res=`eval 'as_val=${'$as_ac_var'}
12948
                 $as_echo "$as_val"'`
12949
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12950
$as_echo "$ac_res" >&6; }
12951
as_val=`eval 'as_val=${'$as_ac_var'}
12952
                 $as_echo "$as_val"'`
12953
   if test "x$as_val" = x""yes; then
12954 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12955 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12956 19 jeremybenn
_ACEOF
12957
 
12958
fi
12959
done
12960
 
12961 121 jeremybenn
 
12962
 
12963
 
12964
 
12965 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
12966 121 jeremybenn
do
12967
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12968
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12969
$as_echo_n "checking for $ac_func... " >&6; }
12970
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12971
  $as_echo_n "(cached) " >&6
12972
else
12973
  cat >conftest.$ac_ext <<_ACEOF
12974
/* confdefs.h.  */
12975
_ACEOF
12976
cat confdefs.h >>conftest.$ac_ext
12977
cat >>conftest.$ac_ext <<_ACEOF
12978
/* end confdefs.h.  */
12979
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12980
   For example, HP-UX 11i  declares gettimeofday.  */
12981
#define $ac_func innocuous_$ac_func
12982
 
12983
/* System header to define __stub macros and hopefully few prototypes,
12984
    which can conflict with char $ac_func (); below.
12985
    Prefer  to  if __STDC__ is defined, since
12986
     exists even on freestanding compilers.  */
12987
 
12988
#ifdef __STDC__
12989
# include 
12990
#else
12991
# include 
12992
#endif
12993
 
12994
#undef $ac_func
12995
 
12996
/* Override any GCC internal prototype to avoid an error.
12997
   Use char because int might match the return type of a GCC
12998
   builtin and then its argument prototype would still apply.  */
12999
#ifdef __cplusplus
13000
extern "C"
13001
#endif
13002
char $ac_func ();
13003
/* The GNU C library defines this for functions which it implements
13004
    to always fail with ENOSYS.  Some functions are actually named
13005
    something starting with __ and the normal name is an alias.  */
13006
#if defined __stub_$ac_func || defined __stub___$ac_func
13007
choke me
13008
#endif
13009
 
13010
int
13011
main ()
13012
{
13013
return $ac_func ();
13014
  ;
13015
  return 0;
13016
}
13017
_ACEOF
13018
rm -f conftest.$ac_objext conftest$ac_exeext
13019
if { (ac_try="$ac_link"
13020
case "(($ac_try" in
13021
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022
  *) ac_try_echo=$ac_try;;
13023
esac
13024
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13025
$as_echo "$ac_try_echo") >&5
13026
  (eval "$ac_link") 2>conftest.er1
13027
  ac_status=$?
13028
  grep -v '^ *+' conftest.er1 >conftest.err
13029
  rm -f conftest.er1
13030
  cat conftest.err >&5
13031
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032
  (exit $ac_status); } && {
13033
         test -z "$ac_c_werror_flag" ||
13034
         test ! -s conftest.err
13035
       } && test -s conftest$ac_exeext && {
13036
         test "$cross_compiling" = yes ||
13037
         $as_test_x conftest$ac_exeext
13038
       }; then
13039
  eval "$as_ac_var=yes"
13040
else
13041
  $as_echo "$as_me: failed program was:" >&5
13042
sed 's/^/| /' conftest.$ac_ext >&5
13043
 
13044
        eval "$as_ac_var=no"
13045
fi
13046
 
13047
rm -rf conftest.dSYM
13048
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13049
      conftest$ac_exeext conftest.$ac_ext
13050
fi
13051
ac_res=`eval 'as_val=${'$as_ac_var'}
13052
                 $as_echo "$as_val"'`
13053
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13054
$as_echo "$ac_res" >&6; }
13055
as_val=`eval 'as_val=${'$as_ac_var'}
13056
                 $as_echo "$as_val"'`
13057
   if test "x$as_val" = x""yes; then
13058 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13059 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13060 19 jeremybenn
_ACEOF
13061
 
13062
fi
13063
done
13064
 
13065 121 jeremybenn
 
13066 19 jeremybenn
for ac_func in basename
13067 121 jeremybenn
do
13068
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13069
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13070
$as_echo_n "checking for $ac_func... " >&6; }
13071
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13072
  $as_echo_n "(cached) " >&6
13073
else
13074
  cat >conftest.$ac_ext <<_ACEOF
13075
/* confdefs.h.  */
13076
_ACEOF
13077
cat confdefs.h >>conftest.$ac_ext
13078
cat >>conftest.$ac_ext <<_ACEOF
13079
/* end confdefs.h.  */
13080
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
13081
   For example, HP-UX 11i  declares gettimeofday.  */
13082
#define $ac_func innocuous_$ac_func
13083
 
13084
/* System header to define __stub macros and hopefully few prototypes,
13085
    which can conflict with char $ac_func (); below.
13086
    Prefer  to  if __STDC__ is defined, since
13087
     exists even on freestanding compilers.  */
13088
 
13089
#ifdef __STDC__
13090
# include 
13091
#else
13092
# include 
13093
#endif
13094
 
13095
#undef $ac_func
13096
 
13097
/* Override any GCC internal prototype to avoid an error.
13098
   Use char because int might match the return type of a GCC
13099
   builtin and then its argument prototype would still apply.  */
13100
#ifdef __cplusplus
13101
extern "C"
13102
#endif
13103
char $ac_func ();
13104
/* The GNU C library defines this for functions which it implements
13105
    to always fail with ENOSYS.  Some functions are actually named
13106
    something starting with __ and the normal name is an alias.  */
13107
#if defined __stub_$ac_func || defined __stub___$ac_func
13108
choke me
13109
#endif
13110
 
13111
int
13112
main ()
13113
{
13114
return $ac_func ();
13115
  ;
13116
  return 0;
13117
}
13118
_ACEOF
13119
rm -f conftest.$ac_objext conftest$ac_exeext
13120
if { (ac_try="$ac_link"
13121
case "(($ac_try" in
13122
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123
  *) ac_try_echo=$ac_try;;
13124
esac
13125
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13126
$as_echo "$ac_try_echo") >&5
13127
  (eval "$ac_link") 2>conftest.er1
13128
  ac_status=$?
13129
  grep -v '^ *+' conftest.er1 >conftest.err
13130
  rm -f conftest.er1
13131
  cat conftest.err >&5
13132
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133
  (exit $ac_status); } && {
13134
         test -z "$ac_c_werror_flag" ||
13135
         test ! -s conftest.err
13136
       } && test -s conftest$ac_exeext && {
13137
         test "$cross_compiling" = yes ||
13138
         $as_test_x conftest$ac_exeext
13139
       }; then
13140
  eval "$as_ac_var=yes"
13141
else
13142
  $as_echo "$as_me: failed program was:" >&5
13143
sed 's/^/| /' conftest.$ac_ext >&5
13144
 
13145
        eval "$as_ac_var=no"
13146
fi
13147
 
13148
rm -rf conftest.dSYM
13149
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13150
      conftest$ac_exeext conftest.$ac_ext
13151
fi
13152
ac_res=`eval 'as_val=${'$as_ac_var'}
13153
                 $as_echo "$as_val"'`
13154
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13155
$as_echo "$ac_res" >&6; }
13156
as_val=`eval 'as_val=${'$as_ac_var'}
13157
                 $as_echo "$as_val"'`
13158
   if test "x$as_val" = x""yes; then
13159 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13160 121 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13161 19 jeremybenn
_ACEOF
13162
 
13163
fi
13164
done
13165
 
13166 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
13167 82 jeremybenn
$as_echo_n "checking for working strcoll... " >&6; }
13168 121 jeremybenn
if test "${ac_cv_func_strcoll_works+set}" = set; then
13169 82 jeremybenn
  $as_echo_n "(cached) " >&6
13170 19 jeremybenn
else
13171 121 jeremybenn
  if test "$cross_compiling" = yes; then
13172 19 jeremybenn
  ac_cv_func_strcoll_works=no
13173
else
13174 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
13175
/* confdefs.h.  */
13176
_ACEOF
13177
cat confdefs.h >>conftest.$ac_ext
13178
cat >>conftest.$ac_ext <<_ACEOF
13179 19 jeremybenn
/* end confdefs.h.  */
13180
$ac_includes_default
13181
int
13182
main ()
13183
{
13184
return (strcoll ("abc", "def") >= 0 ||
13185
         strcoll ("ABC", "DEF") >= 0 ||
13186
         strcoll ("123", "456") >= 0)
13187
  ;
13188
  return 0;
13189
}
13190
_ACEOF
13191 121 jeremybenn
rm -f conftest$ac_exeext
13192
if { (ac_try="$ac_link"
13193
case "(($ac_try" in
13194
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195
  *) ac_try_echo=$ac_try;;
13196
esac
13197
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13198
$as_echo "$ac_try_echo") >&5
13199
  (eval "$ac_link") 2>&5
13200
  ac_status=$?
13201
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13203
  { (case "(($ac_try" in
13204
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205
  *) ac_try_echo=$ac_try;;
13206
esac
13207
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13208
$as_echo "$ac_try_echo") >&5
13209
  (eval "$ac_try") 2>&5
13210
  ac_status=$?
13211
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212
  (exit $ac_status); }; }; then
13213 19 jeremybenn
  ac_cv_func_strcoll_works=yes
13214
else
13215 121 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
13216
$as_echo "$as_me: failed program was:" >&5
13217
sed 's/^/| /' conftest.$ac_ext >&5
13218
 
13219
( exit $ac_status )
13220
ac_cv_func_strcoll_works=no
13221 19 jeremybenn
fi
13222 121 jeremybenn
rm -rf conftest.dSYM
13223
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13224 19 jeremybenn
fi
13225
 
13226 121 jeremybenn
 
13227 19 jeremybenn
fi
13228 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13229 82 jeremybenn
$as_echo "$ac_cv_func_strcoll_works" >&6; }
13230 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
13231
 
13232 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
13233
#define HAVE_STRCOLL 1
13234
_ACEOF
13235 19 jeremybenn
 
13236
fi
13237
 
13238 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether I_PUSH is declared" >&5
13239
$as_echo_n "checking whether I_PUSH is declared... " >&6; }
13240
if test "${ac_cv_have_decl_I_PUSH+set}" = set; then
13241
  $as_echo_n "(cached) " >&6
13242
else
13243
  cat >conftest.$ac_ext <<_ACEOF
13244
/* confdefs.h.  */
13245
_ACEOF
13246
cat confdefs.h >>conftest.$ac_ext
13247
cat >>conftest.$ac_ext <<_ACEOF
13248
/* end confdefs.h.  */
13249
\
13250 82 jeremybenn
               #include 
13251 121 jeremybenn
 
13252
int
13253
main ()
13254
{
13255
#ifndef I_PUSH
13256
  (void) I_PUSH;
13257
#endif
13258
 
13259
  ;
13260
  return 0;
13261
}
13262
_ACEOF
13263
rm -f conftest.$ac_objext
13264
if { (ac_try="$ac_compile"
13265
case "(($ac_try" in
13266
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267
  *) ac_try_echo=$ac_try;;
13268
esac
13269
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13270
$as_echo "$ac_try_echo") >&5
13271
  (eval "$ac_compile") 2>conftest.er1
13272
  ac_status=$?
13273
  grep -v '^ *+' conftest.er1 >conftest.err
13274
  rm -f conftest.er1
13275
  cat conftest.err >&5
13276
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277
  (exit $ac_status); } && {
13278
         test -z "$ac_c_werror_flag" ||
13279
         test ! -s conftest.err
13280
       } && test -s conftest.$ac_objext; then
13281
  ac_cv_have_decl_I_PUSH=yes
13282 19 jeremybenn
else
13283 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13284
sed 's/^/| /' conftest.$ac_ext >&5
13285
 
13286
        ac_cv_have_decl_I_PUSH=no
13287 19 jeremybenn
fi
13288
 
13289 121 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290
fi
13291
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_I_PUSH" >&5
13292
$as_echo "$ac_cv_have_decl_I_PUSH" >&6; }
13293
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then
13294
 
13295 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13296 121 jeremybenn
#define HAVE_DECL_I_PUSH 1
13297 19 jeremybenn
_ACEOF
13298 121 jeremybenn
 
13299
 
13300
else
13301
  cat >>confdefs.h <<_ACEOF
13302
#define HAVE_DECL_I_PUSH 0
13303
_ACEOF
13304
 
13305
 
13306
fi
13307
{ $as_echo "$as_me:$LINENO: checking whether rl_event_hook is declared" >&5
13308
$as_echo_n "checking whether rl_event_hook is declared... " >&6; }
13309
if test "${ac_cv_have_decl_rl_event_hook+set}" = set; then
13310
  $as_echo_n "(cached) " >&6
13311
else
13312
  cat >conftest.$ac_ext <<_ACEOF
13313
/* confdefs.h.  */
13314
_ACEOF
13315
cat confdefs.h >>conftest.$ac_ext
13316
cat >>conftest.$ac_ext <<_ACEOF
13317
/* end confdefs.h.  */
13318
\
13319 82 jeremybenn
               #include 
13320 121 jeremybenn
 
13321
int
13322
main ()
13323
{
13324
#ifndef rl_event_hook
13325
  (void) rl_event_hook;
13326
#endif
13327
 
13328
  ;
13329
  return 0;
13330
}
13331
_ACEOF
13332
rm -f conftest.$ac_objext
13333
if { (ac_try="$ac_compile"
13334
case "(($ac_try" in
13335
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336
  *) ac_try_echo=$ac_try;;
13337
esac
13338
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13339
$as_echo "$ac_try_echo") >&5
13340
  (eval "$ac_compile") 2>conftest.er1
13341
  ac_status=$?
13342
  grep -v '^ *+' conftest.er1 >conftest.err
13343
  rm -f conftest.er1
13344
  cat conftest.err >&5
13345
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346
  (exit $ac_status); } && {
13347
         test -z "$ac_c_werror_flag" ||
13348
         test ! -s conftest.err
13349
       } && test -s conftest.$ac_objext; then
13350
  ac_cv_have_decl_rl_event_hook=yes
13351 19 jeremybenn
else
13352 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13353
sed 's/^/| /' conftest.$ac_ext >&5
13354
 
13355
        ac_cv_have_decl_rl_event_hook=no
13356 19 jeremybenn
fi
13357
 
13358 121 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13359
fi
13360
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_event_hook" >&5
13361
$as_echo "$ac_cv_have_decl_rl_event_hook" >&6; }
13362
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then
13363
 
13364 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13365 121 jeremybenn
#define HAVE_DECL_RL_EVENT_HOOK 1
13366 19 jeremybenn
_ACEOF
13367
 
13368 121 jeremybenn
 
13369
else
13370
  cat >>confdefs.h <<_ACEOF
13371
#define HAVE_DECL_RL_EVENT_HOOK 0
13372
_ACEOF
13373
 
13374
 
13375
fi
13376
 
13377
 
13378
 
13379
 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13380 82 jeremybenn
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13381 121 jeremybenn
if test "${ac_cv_c_bigendian+set}" = set; then
13382 82 jeremybenn
  $as_echo_n "(cached) " >&6
13383 19 jeremybenn
else
13384 82 jeremybenn
  ac_cv_c_bigendian=unknown
13385
    # See if we're dealing with a universal compiler.
13386 121 jeremybenn
    cat >conftest.$ac_ext <<_ACEOF
13387
/* confdefs.h.  */
13388
_ACEOF
13389
cat confdefs.h >>conftest.$ac_ext
13390
cat >>conftest.$ac_ext <<_ACEOF
13391 19 jeremybenn
/* end confdefs.h.  */
13392 82 jeremybenn
#ifndef __APPLE_CC__
13393
               not a universal capable compiler
13394
             #endif
13395
             typedef int dummy;
13396
 
13397 19 jeremybenn
_ACEOF
13398 121 jeremybenn
rm -f conftest.$ac_objext
13399
if { (ac_try="$ac_compile"
13400
case "(($ac_try" in
13401
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402
  *) ac_try_echo=$ac_try;;
13403
esac
13404
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13405
$as_echo "$ac_try_echo") >&5
13406
  (eval "$ac_compile") 2>conftest.er1
13407
  ac_status=$?
13408
  grep -v '^ *+' conftest.er1 >conftest.err
13409
  rm -f conftest.er1
13410
  cat conftest.err >&5
13411
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412
  (exit $ac_status); } && {
13413
         test -z "$ac_c_werror_flag" ||
13414
         test ! -s conftest.err
13415
       } && test -s conftest.$ac_objext; then
13416 82 jeremybenn
 
13417
        # Check for potential -arch flags.  It is not universal unless
13418 121 jeremybenn
        # there are some -arch flags.  Note that *ppc* also matches
13419
        # ppc64.  This check is also rather less than ideal.
13420
        case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13421
          *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13422
        esac
13423
else
13424
  $as_echo "$as_me: failed program was:" >&5
13425
sed 's/^/| /' conftest.$ac_ext >&5
13426
 
13427
 
13428 19 jeremybenn
fi
13429 121 jeremybenn
 
13430 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
13432
      # See if sys/param.h defines the BYTE_ORDER macro.
13433 121 jeremybenn
      cat >conftest.$ac_ext <<_ACEOF
13434
/* confdefs.h.  */
13435
_ACEOF
13436
cat confdefs.h >>conftest.$ac_ext
13437
cat >>conftest.$ac_ext <<_ACEOF
13438 19 jeremybenn
/* end confdefs.h.  */
13439 82 jeremybenn
#include 
13440
             #include 
13441
 
13442
int
13443
main ()
13444
{
13445
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13446
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13447
                     && LITTLE_ENDIAN)
13448
              bogus endian macros
13449
             #endif
13450
 
13451
  ;
13452
  return 0;
13453
}
13454 19 jeremybenn
_ACEOF
13455 121 jeremybenn
rm -f conftest.$ac_objext
13456
if { (ac_try="$ac_compile"
13457
case "(($ac_try" in
13458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459
  *) ac_try_echo=$ac_try;;
13460
esac
13461
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13462
$as_echo "$ac_try_echo") >&5
13463
  (eval "$ac_compile") 2>conftest.er1
13464
  ac_status=$?
13465
  grep -v '^ *+' conftest.er1 >conftest.err
13466
  rm -f conftest.er1
13467
  cat conftest.err >&5
13468
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469
  (exit $ac_status); } && {
13470
         test -z "$ac_c_werror_flag" ||
13471
         test ! -s conftest.err
13472
       } && test -s conftest.$ac_objext; then
13473 82 jeremybenn
  # It does; now see whether it defined to BIG_ENDIAN or not.
13474 121 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
13475
/* confdefs.h.  */
13476
_ACEOF
13477
cat confdefs.h >>conftest.$ac_ext
13478
cat >>conftest.$ac_ext <<_ACEOF
13479 19 jeremybenn
/* end confdefs.h.  */
13480 82 jeremybenn
#include 
13481
                #include 
13482
 
13483 19 jeremybenn
int
13484
main ()
13485
{
13486 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
13487
                 not big endian
13488
                #endif
13489 19 jeremybenn
 
13490
  ;
13491
  return 0;
13492
}
13493
_ACEOF
13494 121 jeremybenn
rm -f conftest.$ac_objext
13495
if { (ac_try="$ac_compile"
13496
case "(($ac_try" in
13497
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498
  *) ac_try_echo=$ac_try;;
13499
esac
13500
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13501
$as_echo "$ac_try_echo") >&5
13502
  (eval "$ac_compile") 2>conftest.er1
13503
  ac_status=$?
13504
  grep -v '^ *+' conftest.er1 >conftest.err
13505
  rm -f conftest.er1
13506
  cat conftest.err >&5
13507
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508
  (exit $ac_status); } && {
13509
         test -z "$ac_c_werror_flag" ||
13510
         test ! -s conftest.err
13511
       } && test -s conftest.$ac_objext; then
13512 82 jeremybenn
  ac_cv_c_bigendian=yes
13513 19 jeremybenn
else
13514 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13515
sed 's/^/| /' conftest.$ac_ext >&5
13516
 
13517
        ac_cv_c_bigendian=no
13518 19 jeremybenn
fi
13519 121 jeremybenn
 
13520 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521 121 jeremybenn
else
13522
  $as_echo "$as_me: failed program was:" >&5
13523
sed 's/^/| /' conftest.$ac_ext >&5
13524
 
13525
 
13526 19 jeremybenn
fi
13527 121 jeremybenn
 
13528 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13529
    fi
13530
    if test $ac_cv_c_bigendian = unknown; then
13531
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13532 121 jeremybenn
      cat >conftest.$ac_ext <<_ACEOF
13533
/* confdefs.h.  */
13534
_ACEOF
13535
cat confdefs.h >>conftest.$ac_ext
13536
cat >>conftest.$ac_ext <<_ACEOF
13537 19 jeremybenn
/* end confdefs.h.  */
13538 82 jeremybenn
#include 
13539 19 jeremybenn
 
13540
int
13541
main ()
13542
{
13543 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13544
              bogus endian macros
13545
             #endif
13546 19 jeremybenn
 
13547
  ;
13548
  return 0;
13549
}
13550
_ACEOF
13551 121 jeremybenn
rm -f conftest.$ac_objext
13552
if { (ac_try="$ac_compile"
13553
case "(($ac_try" in
13554
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555
  *) ac_try_echo=$ac_try;;
13556
esac
13557
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13558
$as_echo "$ac_try_echo") >&5
13559
  (eval "$ac_compile") 2>conftest.er1
13560
  ac_status=$?
13561
  grep -v '^ *+' conftest.er1 >conftest.err
13562
  rm -f conftest.er1
13563
  cat conftest.err >&5
13564
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565
  (exit $ac_status); } && {
13566
         test -z "$ac_c_werror_flag" ||
13567
         test ! -s conftest.err
13568
       } && test -s conftest.$ac_objext; then
13569 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
13570 121 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
13571
/* confdefs.h.  */
13572
_ACEOF
13573
cat confdefs.h >>conftest.$ac_ext
13574
cat >>conftest.$ac_ext <<_ACEOF
13575 19 jeremybenn
/* end confdefs.h.  */
13576 82 jeremybenn
#include 
13577 19 jeremybenn
 
13578
int
13579
main ()
13580
{
13581 82 jeremybenn
#ifndef _BIG_ENDIAN
13582
                 not big endian
13583
                #endif
13584 19 jeremybenn
 
13585
  ;
13586
  return 0;
13587
}
13588
_ACEOF
13589 121 jeremybenn
rm -f conftest.$ac_objext
13590
if { (ac_try="$ac_compile"
13591
case "(($ac_try" in
13592
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593
  *) ac_try_echo=$ac_try;;
13594
esac
13595
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13596
$as_echo "$ac_try_echo") >&5
13597
  (eval "$ac_compile") 2>conftest.er1
13598
  ac_status=$?
13599
  grep -v '^ *+' conftest.er1 >conftest.err
13600
  rm -f conftest.er1
13601
  cat conftest.err >&5
13602
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603
  (exit $ac_status); } && {
13604
         test -z "$ac_c_werror_flag" ||
13605
         test ! -s conftest.err
13606
       } && test -s conftest.$ac_objext; then
13607 19 jeremybenn
  ac_cv_c_bigendian=yes
13608
else
13609 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13610
sed 's/^/| /' conftest.$ac_ext >&5
13611
 
13612
        ac_cv_c_bigendian=no
13613 19 jeremybenn
fi
13614 121 jeremybenn
 
13615 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 121 jeremybenn
else
13617
  $as_echo "$as_me: failed program was:" >&5
13618
sed 's/^/| /' conftest.$ac_ext >&5
13619
 
13620
 
13621 82 jeremybenn
fi
13622 121 jeremybenn
 
13623 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624
    fi
13625
    if test $ac_cv_c_bigendian = unknown; then
13626
      # Compile a test program.
13627 121 jeremybenn
      if test "$cross_compiling" = yes; then
13628 82 jeremybenn
  # Try to guess by grepping values from an object file.
13629 121 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
13630
/* confdefs.h.  */
13631
_ACEOF
13632
cat confdefs.h >>conftest.$ac_ext
13633
cat >>conftest.$ac_ext <<_ACEOF
13634 19 jeremybenn
/* end confdefs.h.  */
13635 82 jeremybenn
short int ascii_mm[] =
13636
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13637
                short int ascii_ii[] =
13638
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13639
                int use_ascii (int i) {
13640
                  return ascii_mm[i] + ascii_ii[i];
13641
                }
13642
                short int ebcdic_ii[] =
13643
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13644
                short int ebcdic_mm[] =
13645
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13646
                int use_ebcdic (int i) {
13647
                  return ebcdic_mm[i] + ebcdic_ii[i];
13648
                }
13649
                extern int foo;
13650
 
13651 19 jeremybenn
int
13652
main ()
13653
{
13654 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
13655 19 jeremybenn
  ;
13656
  return 0;
13657
}
13658
_ACEOF
13659 121 jeremybenn
rm -f conftest.$ac_objext
13660
if { (ac_try="$ac_compile"
13661
case "(($ac_try" in
13662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663
  *) ac_try_echo=$ac_try;;
13664
esac
13665
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13666
$as_echo "$ac_try_echo") >&5
13667
  (eval "$ac_compile") 2>conftest.er1
13668
  ac_status=$?
13669
  grep -v '^ *+' conftest.er1 >conftest.err
13670
  rm -f conftest.er1
13671
  cat conftest.err >&5
13672
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673
  (exit $ac_status); } && {
13674
         test -z "$ac_c_werror_flag" ||
13675
         test ! -s conftest.err
13676
       } && test -s conftest.$ac_objext; then
13677 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13678
              ac_cv_c_bigendian=yes
13679
            fi
13680
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13681
              if test "$ac_cv_c_bigendian" = unknown; then
13682
                ac_cv_c_bigendian=no
13683
              else
13684
                # finding both strings is unlikely to happen, but who knows?
13685
                ac_cv_c_bigendian=unknown
13686
              fi
13687
            fi
13688 121 jeremybenn
else
13689
  $as_echo "$as_me: failed program was:" >&5
13690
sed 's/^/| /' conftest.$ac_ext >&5
13691
 
13692
 
13693 19 jeremybenn
fi
13694 121 jeremybenn
 
13695 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13696
else
13697 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
13698
/* confdefs.h.  */
13699
_ACEOF
13700
cat confdefs.h >>conftest.$ac_ext
13701
cat >>conftest.$ac_ext <<_ACEOF
13702 19 jeremybenn
/* end confdefs.h.  */
13703
$ac_includes_default
13704
int
13705
main ()
13706
{
13707
 
13708 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
13709
             union
13710
             {
13711
               long int l;
13712
               char c[sizeof (long int)];
13713
             } u;
13714
             u.l = 1;
13715
             return u.c[sizeof (long int) - 1] == 1;
13716 19 jeremybenn
 
13717
  ;
13718
  return 0;
13719
}
13720
_ACEOF
13721 121 jeremybenn
rm -f conftest$ac_exeext
13722
if { (ac_try="$ac_link"
13723
case "(($ac_try" in
13724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725
  *) ac_try_echo=$ac_try;;
13726
esac
13727
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13728
$as_echo "$ac_try_echo") >&5
13729
  (eval "$ac_link") 2>&5
13730
  ac_status=$?
13731
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13733
  { (case "(($ac_try" in
13734
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735
  *) ac_try_echo=$ac_try;;
13736
esac
13737
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13738
$as_echo "$ac_try_echo") >&5
13739
  (eval "$ac_try") 2>&5
13740
  ac_status=$?
13741
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742
  (exit $ac_status); }; }; then
13743 19 jeremybenn
  ac_cv_c_bigendian=no
13744
else
13745 121 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
13746
$as_echo "$as_me: failed program was:" >&5
13747
sed 's/^/| /' conftest.$ac_ext >&5
13748
 
13749
( exit $ac_status )
13750
ac_cv_c_bigendian=yes
13751 19 jeremybenn
fi
13752 121 jeremybenn
rm -rf conftest.dSYM
13753
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13754 19 jeremybenn
fi
13755
 
13756 121 jeremybenn
 
13757 82 jeremybenn
    fi
13758 19 jeremybenn
fi
13759 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13760 82 jeremybenn
$as_echo "$ac_cv_c_bigendian" >&6; }
13761
 case $ac_cv_c_bigendian in #(
13762
   yes)
13763 121 jeremybenn
     cat >>confdefs.h <<\_ACEOF
13764
#define WORDS_BIGENDIAN 1
13765
_ACEOF
13766 82 jeremybenn
;; #(
13767
   no)
13768
      ;; #(
13769
   universal)
13770 19 jeremybenn
 
13771 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
13772
#define AC_APPLE_UNIVERSAL_BUILD 1
13773
_ACEOF
13774 82 jeremybenn
 
13775
     ;; #(
13776
   *)
13777 121 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
13778
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13779
$as_echo "$as_me: error: unknown endianness
13780
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13781
   { (exit 1); exit 1; }; } ;;
13782 82 jeremybenn
 esac
13783
 
13784
 
13785
# The test for strndup, strcasecmp and isblank fails on modern machines. I
13786
# think it's because GCC 4 does not like the way autoconf overrides the built
13787
# in type declaration. So we must check for them by steam.
13788 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strndup" >&5
13789 82 jeremybenn
$as_echo_n "checking for strndup... " >&6; }
13790 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13791
/* confdefs.h.  */
13792
_ACEOF
13793
cat confdefs.h >>conftest.$ac_ext
13794
cat >>conftest.$ac_ext <<_ACEOF
13795 82 jeremybenn
/* end confdefs.h.  */
13796
#ifdef HAVE_STRING_H
13797
                                  #include 
13798
                                  #else
13799
                                  char *strndup (const char *s,
13800
                                                 size_t      n);
13801
                                  #endif
13802
int
13803
main ()
13804
{
13805
\
13806
                                const char *s = "test";
13807
                                  char       *t;
13808
                                  t = strndup (s, 3);
13809
  ;
13810
  return 0;
13811
}
13812
_ACEOF
13813 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
13814
if { (ac_try="$ac_link"
13815
case "(($ac_try" in
13816
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817
  *) ac_try_echo=$ac_try;;
13818
esac
13819
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13820
$as_echo "$ac_try_echo") >&5
13821
  (eval "$ac_link") 2>conftest.er1
13822
  ac_status=$?
13823
  grep -v '^ *+' conftest.er1 >conftest.err
13824
  rm -f conftest.er1
13825
  cat conftest.err >&5
13826
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827
  (exit $ac_status); } && {
13828
         test -z "$ac_c_werror_flag" ||
13829
         test ! -s conftest.err
13830
       } && test -s conftest$ac_exeext && {
13831
         test "$cross_compiling" = yes ||
13832
         $as_test_x conftest$ac_exeext
13833
       }; then
13834 82 jeremybenn
  \
13835
 
13836 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
13837
#define HAVE_STRNDUP 1
13838
_ACEOF
13839 82 jeremybenn
 \
13840 121 jeremybenn
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13841 82 jeremybenn
$as_echo "yes" >&6; }
13842
else
13843 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13844
sed 's/^/| /' conftest.$ac_ext >&5
13845
 
13846
        { $as_echo "$as_me:$LINENO: result: no" >&5
13847 82 jeremybenn
$as_echo "no" >&6; }
13848 19 jeremybenn
fi
13849
 
13850 121 jeremybenn
rm -rf conftest.dSYM
13851
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13852
      conftest$ac_exeext conftest.$ac_ext
13853
 
13854
{ $as_echo "$as_me:$LINENO: checking for strcasecmp" >&5
13855 82 jeremybenn
$as_echo_n "checking for strcasecmp... " >&6; }
13856 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13857
/* confdefs.h.  */
13858
_ACEOF
13859
cat confdefs.h >>conftest.$ac_ext
13860
cat >>conftest.$ac_ext <<_ACEOF
13861 82 jeremybenn
/* end confdefs.h.  */
13862
#ifdef HAVE_STRINGS_H
13863
                                  #include 
13864
                                  #else
13865
                                  int strcasecmp (const char *s1,
13866
                                                  const char *s2);
13867
                                  #endif
13868
int
13869
main ()
13870
{
13871
\
13872
                                const char *s = "test";
13873
                                  const char *t = "TEST";
13874
                                  int         res;
13875
                                  res = strcasecmp (s, t);
13876
  ;
13877
  return 0;
13878
}
13879
_ACEOF
13880 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
13881
if { (ac_try="$ac_link"
13882
case "(($ac_try" in
13883
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884
  *) ac_try_echo=$ac_try;;
13885
esac
13886
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13887
$as_echo "$ac_try_echo") >&5
13888
  (eval "$ac_link") 2>conftest.er1
13889
  ac_status=$?
13890
  grep -v '^ *+' conftest.er1 >conftest.err
13891
  rm -f conftest.er1
13892
  cat conftest.err >&5
13893
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894
  (exit $ac_status); } && {
13895
         test -z "$ac_c_werror_flag" ||
13896
         test ! -s conftest.err
13897
       } && test -s conftest$ac_exeext && {
13898
         test "$cross_compiling" = yes ||
13899
         $as_test_x conftest$ac_exeext
13900
       }; then
13901 82 jeremybenn
  \
13902
 
13903 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
13904
#define HAVE_STRCASECMP 1
13905
_ACEOF
13906 82 jeremybenn
 \
13907 121 jeremybenn
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13908 82 jeremybenn
$as_echo "yes" >&6; }
13909
else
13910 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13911
sed 's/^/| /' conftest.$ac_ext >&5
13912
 
13913
        { $as_echo "$as_me:$LINENO: result: no" >&5
13914 82 jeremybenn
$as_echo "no" >&6; }
13915
fi
13916
 
13917 121 jeremybenn
rm -rf conftest.dSYM
13918
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13919
      conftest$ac_exeext conftest.$ac_ext
13920
 
13921
{ $as_echo "$as_me:$LINENO: checking for isblank" >&5
13922 82 jeremybenn
$as_echo_n "checking for isblank... " >&6; }
13923 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13924
/* confdefs.h.  */
13925
_ACEOF
13926
cat confdefs.h >>conftest.$ac_ext
13927
cat >>conftest.$ac_ext <<_ACEOF
13928 82 jeremybenn
/* end confdefs.h.  */
13929
#ifdef HAVE_CTYPE_H
13930
                                  #include 
13931
                                  #else
13932
                                  int isblank (int  c);
13933
                                  #endif
13934
int
13935
main ()
13936
{
13937
\
13938
                                return isblank ('x');
13939
  ;
13940
  return 0;
13941
}
13942
_ACEOF
13943 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
13944
if { (ac_try="$ac_link"
13945
case "(($ac_try" in
13946
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947
  *) ac_try_echo=$ac_try;;
13948
esac
13949
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13950
$as_echo "$ac_try_echo") >&5
13951
  (eval "$ac_link") 2>conftest.er1
13952
  ac_status=$?
13953
  grep -v '^ *+' conftest.er1 >conftest.err
13954
  rm -f conftest.er1
13955
  cat conftest.err >&5
13956
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957
  (exit $ac_status); } && {
13958
         test -z "$ac_c_werror_flag" ||
13959
         test ! -s conftest.err
13960
       } && test -s conftest$ac_exeext && {
13961
         test "$cross_compiling" = yes ||
13962
         $as_test_x conftest$ac_exeext
13963
       }; then
13964 82 jeremybenn
  \
13965 19 jeremybenn
 
13966 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
13967
#define HAVE_ISBLANK 1
13968
_ACEOF
13969 82 jeremybenn
 \
13970 121 jeremybenn
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13971 82 jeremybenn
$as_echo "yes" >&6; }
13972
else
13973 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13974
sed 's/^/| /' conftest.$ac_ext >&5
13975
 
13976
        { $as_echo "$as_me:$LINENO: result: no" >&5
13977 82 jeremybenn
$as_echo "no" >&6; }
13978
fi
13979
 
13980 121 jeremybenn
rm -rf conftest.dSYM
13981
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13982
      conftest$ac_exeext conftest.$ac_ext
13983
 
13984 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
13985 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
13986
$as_echo_n "checking for size_t... " >&6; }
13987
if test "${ac_cv_type_size_t+set}" = set; then
13988
  $as_echo_n "(cached) " >&6
13989
else
13990
  ac_cv_type_size_t=no
13991
cat >conftest.$ac_ext <<_ACEOF
13992
/* confdefs.h.  */
13993
_ACEOF
13994
cat confdefs.h >>conftest.$ac_ext
13995
cat >>conftest.$ac_ext <<_ACEOF
13996
/* end confdefs.h.  */
13997
$ac_includes_default
13998
int
13999
main ()
14000
{
14001
if (sizeof (size_t))
14002
       return 0;
14003
  ;
14004
  return 0;
14005
}
14006
_ACEOF
14007
rm -f conftest.$ac_objext
14008
if { (ac_try="$ac_compile"
14009
case "(($ac_try" in
14010
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011
  *) ac_try_echo=$ac_try;;
14012
esac
14013
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14014
$as_echo "$ac_try_echo") >&5
14015
  (eval "$ac_compile") 2>conftest.er1
14016
  ac_status=$?
14017
  grep -v '^ *+' conftest.er1 >conftest.err
14018
  rm -f conftest.er1
14019
  cat conftest.err >&5
14020
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021
  (exit $ac_status); } && {
14022
         test -z "$ac_c_werror_flag" ||
14023
         test ! -s conftest.err
14024
       } && test -s conftest.$ac_objext; then
14025
  cat >conftest.$ac_ext <<_ACEOF
14026
/* confdefs.h.  */
14027
_ACEOF
14028
cat confdefs.h >>conftest.$ac_ext
14029
cat >>conftest.$ac_ext <<_ACEOF
14030
/* end confdefs.h.  */
14031
$ac_includes_default
14032
int
14033
main ()
14034
{
14035
if (sizeof ((size_t)))
14036
          return 0;
14037
  ;
14038
  return 0;
14039
}
14040
_ACEOF
14041
rm -f conftest.$ac_objext
14042
if { (ac_try="$ac_compile"
14043
case "(($ac_try" in
14044
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045
  *) ac_try_echo=$ac_try;;
14046
esac
14047
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14048
$as_echo "$ac_try_echo") >&5
14049
  (eval "$ac_compile") 2>conftest.er1
14050
  ac_status=$?
14051
  grep -v '^ *+' conftest.er1 >conftest.err
14052
  rm -f conftest.er1
14053
  cat conftest.err >&5
14054
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055
  (exit $ac_status); } && {
14056
         test -z "$ac_c_werror_flag" ||
14057
         test ! -s conftest.err
14058
       } && test -s conftest.$ac_objext; then
14059
  :
14060
else
14061
  $as_echo "$as_me: failed program was:" >&5
14062
sed 's/^/| /' conftest.$ac_ext >&5
14063 19 jeremybenn
 
14064 121 jeremybenn
        ac_cv_type_size_t=yes
14065
fi
14066
 
14067
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14068 19 jeremybenn
else
14069 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14070
sed 's/^/| /' conftest.$ac_ext >&5
14071 19 jeremybenn
 
14072 121 jeremybenn
 
14073
fi
14074
 
14075
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076
fi
14077
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14078
$as_echo "$ac_cv_type_size_t" >&6; }
14079
if test "x$ac_cv_type_size_t" = x""yes; then
14080
  :
14081
else
14082
 
14083 19 jeremybenn
cat >>confdefs.h <<_ACEOF
14084
#define size_t unsigned int
14085
_ACEOF
14086
 
14087
fi
14088
 
14089 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14090 82 jeremybenn
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14091 121 jeremybenn
if test "${ac_cv_struct_tm+set}" = set; then
14092 82 jeremybenn
  $as_echo_n "(cached) " >&6
14093 19 jeremybenn
else
14094 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14095
/* confdefs.h.  */
14096
_ACEOF
14097
cat confdefs.h >>conftest.$ac_ext
14098
cat >>conftest.$ac_ext <<_ACEOF
14099 19 jeremybenn
/* end confdefs.h.  */
14100
#include 
14101
#include 
14102
 
14103
int
14104
main ()
14105
{
14106
struct tm tm;
14107
                                     int *p = &tm.tm_sec;
14108 82 jeremybenn
                                     return !p;
14109 19 jeremybenn
  ;
14110
  return 0;
14111
}
14112
_ACEOF
14113 121 jeremybenn
rm -f conftest.$ac_objext
14114
if { (ac_try="$ac_compile"
14115
case "(($ac_try" in
14116
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117
  *) ac_try_echo=$ac_try;;
14118
esac
14119
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14120
$as_echo "$ac_try_echo") >&5
14121
  (eval "$ac_compile") 2>conftest.er1
14122
  ac_status=$?
14123
  grep -v '^ *+' conftest.er1 >conftest.err
14124
  rm -f conftest.er1
14125
  cat conftest.err >&5
14126
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127
  (exit $ac_status); } && {
14128
         test -z "$ac_c_werror_flag" ||
14129
         test ! -s conftest.err
14130
       } && test -s conftest.$ac_objext; then
14131 19 jeremybenn
  ac_cv_struct_tm=time.h
14132
else
14133 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14134
sed 's/^/| /' conftest.$ac_ext >&5
14135
 
14136
        ac_cv_struct_tm=sys/time.h
14137 19 jeremybenn
fi
14138 121 jeremybenn
 
14139 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14140
fi
14141 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14142 82 jeremybenn
$as_echo "$ac_cv_struct_tm" >&6; }
14143 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
14144
 
14145 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
14146
#define TM_IN_SYS_TIME 1
14147
_ACEOF
14148 19 jeremybenn
 
14149
fi
14150
 
14151
 
14152
# Checks for library functions (for argtable2).
14153 121 jeremybenn
 
14154 19 jeremybenn
for ac_header in stdlib.h
14155 121 jeremybenn
do
14156
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14157
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14158
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14159
$as_echo_n "checking for $ac_header... " >&6; }
14160
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14161
  $as_echo_n "(cached) " >&6
14162
fi
14163
ac_res=`eval 'as_val=${'$as_ac_Header'}
14164
                 $as_echo "$as_val"'`
14165
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14166
$as_echo "$ac_res" >&6; }
14167
else
14168
  # Is the header compilable?
14169
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14170
$as_echo_n "checking $ac_header usability... " >&6; }
14171
cat >conftest.$ac_ext <<_ACEOF
14172
/* confdefs.h.  */
14173
_ACEOF
14174
cat confdefs.h >>conftest.$ac_ext
14175
cat >>conftest.$ac_ext <<_ACEOF
14176
/* end confdefs.h.  */
14177
$ac_includes_default
14178
#include <$ac_header>
14179
_ACEOF
14180
rm -f conftest.$ac_objext
14181
if { (ac_try="$ac_compile"
14182
case "(($ac_try" in
14183
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14184
  *) ac_try_echo=$ac_try;;
14185
esac
14186
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14187
$as_echo "$ac_try_echo") >&5
14188
  (eval "$ac_compile") 2>conftest.er1
14189
  ac_status=$?
14190
  grep -v '^ *+' conftest.er1 >conftest.err
14191
  rm -f conftest.er1
14192
  cat conftest.err >&5
14193
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194
  (exit $ac_status); } && {
14195
         test -z "$ac_c_werror_flag" ||
14196
         test ! -s conftest.err
14197
       } && test -s conftest.$ac_objext; then
14198
  ac_header_compiler=yes
14199
else
14200
  $as_echo "$as_me: failed program was:" >&5
14201
sed 's/^/| /' conftest.$ac_ext >&5
14202
 
14203
        ac_header_compiler=no
14204
fi
14205
 
14206
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14208
$as_echo "$ac_header_compiler" >&6; }
14209
 
14210
# Is the header present?
14211
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14212
$as_echo_n "checking $ac_header presence... " >&6; }
14213
cat >conftest.$ac_ext <<_ACEOF
14214
/* confdefs.h.  */
14215
_ACEOF
14216
cat confdefs.h >>conftest.$ac_ext
14217
cat >>conftest.$ac_ext <<_ACEOF
14218
/* end confdefs.h.  */
14219
#include <$ac_header>
14220
_ACEOF
14221
if { (ac_try="$ac_cpp conftest.$ac_ext"
14222
case "(($ac_try" in
14223
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224
  *) ac_try_echo=$ac_try;;
14225
esac
14226
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14227
$as_echo "$ac_try_echo") >&5
14228
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14229
  ac_status=$?
14230
  grep -v '^ *+' conftest.er1 >conftest.err
14231
  rm -f conftest.er1
14232
  cat conftest.err >&5
14233
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234
  (exit $ac_status); } >/dev/null && {
14235
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14236
         test ! -s conftest.err
14237
       }; then
14238
  ac_header_preproc=yes
14239
else
14240
  $as_echo "$as_me: failed program was:" >&5
14241
sed 's/^/| /' conftest.$ac_ext >&5
14242
 
14243
  ac_header_preproc=no
14244
fi
14245
 
14246
rm -f conftest.err conftest.$ac_ext
14247
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14248
$as_echo "$ac_header_preproc" >&6; }
14249
 
14250
# So?  What about this header?
14251
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14252
  yes:no: )
14253
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14254
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14255
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14256
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14257
    ac_header_preproc=yes
14258
    ;;
14259
  no:yes:* )
14260
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14261
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14262
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14263
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14264
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14265
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14266
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14267
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14268
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14269
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14270
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14271
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14272
    ( cat <<\_ASBOX
14273
## ------------------------------------- ##
14274
## Report this to openrisc@opencores.org ##
14275
## ------------------------------------- ##
14276
_ASBOX
14277
     ) | sed "s/^/$as_me: WARNING:     /" >&2
14278
    ;;
14279
esac
14280
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14281
$as_echo_n "checking for $ac_header... " >&6; }
14282
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14283
  $as_echo_n "(cached) " >&6
14284
else
14285
  eval "$as_ac_Header=\$ac_header_preproc"
14286
fi
14287
ac_res=`eval 'as_val=${'$as_ac_Header'}
14288
                 $as_echo "$as_val"'`
14289
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14290
$as_echo "$ac_res" >&6; }
14291
 
14292
fi
14293
as_val=`eval 'as_val=${'$as_ac_Header'}
14294
                 $as_echo "$as_val"'`
14295
   if test "x$as_val" = x""yes; then
14296 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14297 121 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14298 19 jeremybenn
_ACEOF
14299
 
14300
fi
14301
 
14302
done
14303
 
14304 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14305 82 jeremybenn
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14306 121 jeremybenn
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14307 82 jeremybenn
  $as_echo_n "(cached) " >&6
14308 19 jeremybenn
else
14309 121 jeremybenn
  if test "$cross_compiling" = yes; then
14310 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
14311
else
14312 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14313
/* confdefs.h.  */
14314
_ACEOF
14315
cat confdefs.h >>conftest.$ac_ext
14316
cat >>conftest.$ac_ext <<_ACEOF
14317 19 jeremybenn
/* end confdefs.h.  */
14318
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14319
# include 
14320
#else
14321
char *malloc ();
14322
#endif
14323
 
14324
int
14325
main ()
14326
{
14327
return ! malloc (0);
14328
  ;
14329
  return 0;
14330
}
14331
_ACEOF
14332 121 jeremybenn
rm -f conftest$ac_exeext
14333
if { (ac_try="$ac_link"
14334
case "(($ac_try" in
14335
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336
  *) ac_try_echo=$ac_try;;
14337
esac
14338
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14339
$as_echo "$ac_try_echo") >&5
14340
  (eval "$ac_link") 2>&5
14341
  ac_status=$?
14342
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14344
  { (case "(($ac_try" in
14345
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346
  *) ac_try_echo=$ac_try;;
14347
esac
14348
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14349
$as_echo "$ac_try_echo") >&5
14350
  (eval "$ac_try") 2>&5
14351
  ac_status=$?
14352
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353
  (exit $ac_status); }; }; then
14354 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=yes
14355
else
14356 121 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14357
$as_echo "$as_me: failed program was:" >&5
14358
sed 's/^/| /' conftest.$ac_ext >&5
14359
 
14360
( exit $ac_status )
14361
ac_cv_func_malloc_0_nonnull=no
14362 19 jeremybenn
fi
14363 121 jeremybenn
rm -rf conftest.dSYM
14364
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14365 19 jeremybenn
fi
14366
 
14367 121 jeremybenn
 
14368 19 jeremybenn
fi
14369 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14370 82 jeremybenn
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14371 121 jeremybenn
if test $ac_cv_func_malloc_0_nonnull = yes; then
14372 19 jeremybenn
 
14373 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
14374
#define HAVE_MALLOC 1
14375
_ACEOF
14376 19 jeremybenn
 
14377
else
14378 121 jeremybenn
  cat >>confdefs.h <<\_ACEOF
14379
#define HAVE_MALLOC 0
14380
_ACEOF
14381 19 jeremybenn
 
14382
   case " $LIBOBJS " in
14383
  *" malloc.$ac_objext "* ) ;;
14384
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14385
 ;;
14386
esac
14387
 
14388
 
14389 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
14390
#define malloc rpl_malloc
14391
_ACEOF
14392 19 jeremybenn
 
14393
fi
14394
 
14395
 
14396 121 jeremybenn
 
14397
 
14398 19 jeremybenn
for ac_func in strftime
14399 121 jeremybenn
do
14400
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14401
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14402
$as_echo_n "checking for $ac_func... " >&6; }
14403
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14404
  $as_echo_n "(cached) " >&6
14405
else
14406
  cat >conftest.$ac_ext <<_ACEOF
14407
/* confdefs.h.  */
14408
_ACEOF
14409
cat confdefs.h >>conftest.$ac_ext
14410
cat >>conftest.$ac_ext <<_ACEOF
14411
/* end confdefs.h.  */
14412
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14413
   For example, HP-UX 11i  declares gettimeofday.  */
14414
#define $ac_func innocuous_$ac_func
14415
 
14416
/* System header to define __stub macros and hopefully few prototypes,
14417
    which can conflict with char $ac_func (); below.
14418
    Prefer  to  if __STDC__ is defined, since
14419
     exists even on freestanding compilers.  */
14420
 
14421
#ifdef __STDC__
14422
# include 
14423
#else
14424
# include 
14425
#endif
14426
 
14427
#undef $ac_func
14428
 
14429
/* Override any GCC internal prototype to avoid an error.
14430
   Use char because int might match the return type of a GCC
14431
   builtin and then its argument prototype would still apply.  */
14432
#ifdef __cplusplus
14433
extern "C"
14434
#endif
14435
char $ac_func ();
14436
/* The GNU C library defines this for functions which it implements
14437
    to always fail with ENOSYS.  Some functions are actually named
14438
    something starting with __ and the normal name is an alias.  */
14439
#if defined __stub_$ac_func || defined __stub___$ac_func
14440
choke me
14441
#endif
14442
 
14443
int
14444
main ()
14445
{
14446
return $ac_func ();
14447
  ;
14448
  return 0;
14449
}
14450
_ACEOF
14451
rm -f conftest.$ac_objext conftest$ac_exeext
14452
if { (ac_try="$ac_link"
14453
case "(($ac_try" in
14454
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455
  *) ac_try_echo=$ac_try;;
14456
esac
14457
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14458
$as_echo "$ac_try_echo") >&5
14459
  (eval "$ac_link") 2>conftest.er1
14460
  ac_status=$?
14461
  grep -v '^ *+' conftest.er1 >conftest.err
14462
  rm -f conftest.er1
14463
  cat conftest.err >&5
14464
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465
  (exit $ac_status); } && {
14466
         test -z "$ac_c_werror_flag" ||
14467
         test ! -s conftest.err
14468
       } && test -s conftest$ac_exeext && {
14469
         test "$cross_compiling" = yes ||
14470
         $as_test_x conftest$ac_exeext
14471
       }; then
14472
  eval "$as_ac_var=yes"
14473
else
14474
  $as_echo "$as_me: failed program was:" >&5
14475
sed 's/^/| /' conftest.$ac_ext >&5
14476
 
14477
        eval "$as_ac_var=no"
14478
fi
14479
 
14480
rm -rf conftest.dSYM
14481
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14482
      conftest$ac_exeext conftest.$ac_ext
14483
fi
14484
ac_res=`eval 'as_val=${'$as_ac_var'}
14485
                 $as_echo "$as_val"'`
14486
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14487
$as_echo "$ac_res" >&6; }
14488
as_val=`eval 'as_val=${'$as_ac_var'}
14489
                 $as_echo "$as_val"'`
14490
   if test "x$as_val" = x""yes; then
14491 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14492 121 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14493 19 jeremybenn
_ACEOF
14494
 
14495
else
14496
  # strftime is in -lintl on SCO UNIX.
14497 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14498 82 jeremybenn
$as_echo_n "checking for strftime in -lintl... " >&6; }
14499 121 jeremybenn
if test "${ac_cv_lib_intl_strftime+set}" = set; then
14500 82 jeremybenn
  $as_echo_n "(cached) " >&6
14501 19 jeremybenn
else
14502
  ac_check_lib_save_LIBS=$LIBS
14503
LIBS="-lintl  $LIBS"
14504 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14505
/* confdefs.h.  */
14506
_ACEOF
14507
cat confdefs.h >>conftest.$ac_ext
14508
cat >>conftest.$ac_ext <<_ACEOF
14509 19 jeremybenn
/* end confdefs.h.  */
14510
 
14511
/* Override any GCC internal prototype to avoid an error.
14512
   Use char because int might match the return type of a GCC
14513
   builtin and then its argument prototype would still apply.  */
14514
#ifdef __cplusplus
14515
extern "C"
14516
#endif
14517
char strftime ();
14518
int
14519
main ()
14520
{
14521
return strftime ();
14522
  ;
14523
  return 0;
14524
}
14525
_ACEOF
14526 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
14527
if { (ac_try="$ac_link"
14528
case "(($ac_try" in
14529
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530
  *) ac_try_echo=$ac_try;;
14531
esac
14532
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14533
$as_echo "$ac_try_echo") >&5
14534
  (eval "$ac_link") 2>conftest.er1
14535
  ac_status=$?
14536
  grep -v '^ *+' conftest.er1 >conftest.err
14537
  rm -f conftest.er1
14538
  cat conftest.err >&5
14539
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540
  (exit $ac_status); } && {
14541
         test -z "$ac_c_werror_flag" ||
14542
         test ! -s conftest.err
14543
       } && test -s conftest$ac_exeext && {
14544
         test "$cross_compiling" = yes ||
14545
         $as_test_x conftest$ac_exeext
14546
       }; then
14547 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
14548
else
14549 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14550
sed 's/^/| /' conftest.$ac_ext >&5
14551
 
14552
        ac_cv_lib_intl_strftime=no
14553 19 jeremybenn
fi
14554 121 jeremybenn
 
14555
rm -rf conftest.dSYM
14556
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14557
      conftest$ac_exeext conftest.$ac_ext
14558 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
14559
fi
14560 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14561 82 jeremybenn
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
14562 121 jeremybenn
if test "x$ac_cv_lib_intl_strftime" = x""yes; then
14563
  cat >>confdefs.h <<\_ACEOF
14564
#define HAVE_STRFTIME 1
14565
_ACEOF
14566 19 jeremybenn
 
14567
LIBS="-lintl $LIBS"
14568
fi
14569
 
14570
fi
14571
done
14572
 
14573 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
14574 82 jeremybenn
$as_echo_n "checking for working strtod... " >&6; }
14575 121 jeremybenn
if test "${ac_cv_func_strtod+set}" = set; then
14576 82 jeremybenn
  $as_echo_n "(cached) " >&6
14577 19 jeremybenn
else
14578 121 jeremybenn
  if test "$cross_compiling" = yes; then
14579 19 jeremybenn
  ac_cv_func_strtod=no
14580
else
14581 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14582
/* confdefs.h.  */
14583
_ACEOF
14584
cat confdefs.h >>conftest.$ac_ext
14585
cat >>conftest.$ac_ext <<_ACEOF
14586 19 jeremybenn
/* end confdefs.h.  */
14587
 
14588
$ac_includes_default
14589
#ifndef strtod
14590
double strtod ();
14591
#endif
14592
int
14593
main()
14594
{
14595
  {
14596
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
14597
    char *string = " +69";
14598
    char *term;
14599
    double value;
14600
    value = strtod (string, &term);
14601
    if (value != 69 || term != (string + 4))
14602
      return 1;
14603
  }
14604
 
14605
  {
14606
    /* Under Solaris 2.4, strtod returns the wrong value for the
14607
       terminating character under some conditions.  */
14608
    char *string = "NaN";
14609
    char *term;
14610
    strtod (string, &term);
14611
    if (term != string && *(term - 1) == 0)
14612
      return 1;
14613
  }
14614
  return 0;
14615
}
14616
 
14617
_ACEOF
14618 121 jeremybenn
rm -f conftest$ac_exeext
14619
if { (ac_try="$ac_link"
14620
case "(($ac_try" in
14621
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622
  *) ac_try_echo=$ac_try;;
14623
esac
14624
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14625
$as_echo "$ac_try_echo") >&5
14626
  (eval "$ac_link") 2>&5
14627
  ac_status=$?
14628
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14630
  { (case "(($ac_try" in
14631
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632
  *) ac_try_echo=$ac_try;;
14633
esac
14634
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14635
$as_echo "$ac_try_echo") >&5
14636
  (eval "$ac_try") 2>&5
14637
  ac_status=$?
14638
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639
  (exit $ac_status); }; }; then
14640 19 jeremybenn
  ac_cv_func_strtod=yes
14641
else
14642 121 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14643
$as_echo "$as_me: failed program was:" >&5
14644
sed 's/^/| /' conftest.$ac_ext >&5
14645
 
14646
( exit $ac_status )
14647
ac_cv_func_strtod=no
14648 19 jeremybenn
fi
14649 121 jeremybenn
rm -rf conftest.dSYM
14650
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14651 19 jeremybenn
fi
14652
 
14653 121 jeremybenn
 
14654 19 jeremybenn
fi
14655 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14656 82 jeremybenn
$as_echo "$ac_cv_func_strtod" >&6; }
14657 19 jeremybenn
if test $ac_cv_func_strtod = no; then
14658
  case " $LIBOBJS " in
14659
  *" strtod.$ac_objext "* ) ;;
14660
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14661
 ;;
14662
esac
14663
 
14664 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for pow" >&5
14665
$as_echo_n "checking for pow... " >&6; }
14666
if test "${ac_cv_func_pow+set}" = set; then
14667
  $as_echo_n "(cached) " >&6
14668
else
14669
  cat >conftest.$ac_ext <<_ACEOF
14670
/* confdefs.h.  */
14671
_ACEOF
14672
cat confdefs.h >>conftest.$ac_ext
14673
cat >>conftest.$ac_ext <<_ACEOF
14674
/* end confdefs.h.  */
14675
/* Define pow to an innocuous variant, in case  declares pow.
14676
   For example, HP-UX 11i  declares gettimeofday.  */
14677
#define pow innocuous_pow
14678 19 jeremybenn
 
14679 121 jeremybenn
/* System header to define __stub macros and hopefully few prototypes,
14680
    which can conflict with char pow (); below.
14681
    Prefer  to  if __STDC__ is defined, since
14682
     exists even on freestanding compilers.  */
14683
 
14684
#ifdef __STDC__
14685
# include 
14686
#else
14687
# include 
14688
#endif
14689
 
14690
#undef pow
14691
 
14692
/* Override any GCC internal prototype to avoid an error.
14693
   Use char because int might match the return type of a GCC
14694
   builtin and then its argument prototype would still apply.  */
14695
#ifdef __cplusplus
14696
extern "C"
14697
#endif
14698
char pow ();
14699
/* The GNU C library defines this for functions which it implements
14700
    to always fail with ENOSYS.  Some functions are actually named
14701
    something starting with __ and the normal name is an alias.  */
14702
#if defined __stub_pow || defined __stub___pow
14703
choke me
14704
#endif
14705
 
14706
int
14707
main ()
14708
{
14709
return pow ();
14710
  ;
14711
  return 0;
14712
}
14713
_ACEOF
14714
rm -f conftest.$ac_objext conftest$ac_exeext
14715
if { (ac_try="$ac_link"
14716
case "(($ac_try" in
14717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718
  *) ac_try_echo=$ac_try;;
14719
esac
14720
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14721
$as_echo "$ac_try_echo") >&5
14722
  (eval "$ac_link") 2>conftest.er1
14723
  ac_status=$?
14724
  grep -v '^ *+' conftest.er1 >conftest.err
14725
  rm -f conftest.er1
14726
  cat conftest.err >&5
14727
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728
  (exit $ac_status); } && {
14729
         test -z "$ac_c_werror_flag" ||
14730
         test ! -s conftest.err
14731
       } && test -s conftest$ac_exeext && {
14732
         test "$cross_compiling" = yes ||
14733
         $as_test_x conftest$ac_exeext
14734
       }; then
14735
  ac_cv_func_pow=yes
14736
else
14737
  $as_echo "$as_me: failed program was:" >&5
14738
sed 's/^/| /' conftest.$ac_ext >&5
14739
 
14740
        ac_cv_func_pow=no
14741 19 jeremybenn
fi
14742
 
14743 121 jeremybenn
rm -rf conftest.dSYM
14744
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14745
      conftest$ac_exeext conftest.$ac_ext
14746
fi
14747
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14748
$as_echo "$ac_cv_func_pow" >&6; }
14749
 
14750 19 jeremybenn
if test $ac_cv_func_pow = no; then
14751 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
14752 82 jeremybenn
$as_echo_n "checking for pow in -lm... " >&6; }
14753 121 jeremybenn
if test "${ac_cv_lib_m_pow+set}" = set; then
14754 82 jeremybenn
  $as_echo_n "(cached) " >&6
14755 19 jeremybenn
else
14756
  ac_check_lib_save_LIBS=$LIBS
14757
LIBS="-lm  $LIBS"
14758 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14759
/* confdefs.h.  */
14760
_ACEOF
14761
cat confdefs.h >>conftest.$ac_ext
14762
cat >>conftest.$ac_ext <<_ACEOF
14763 19 jeremybenn
/* end confdefs.h.  */
14764
 
14765
/* Override any GCC internal prototype to avoid an error.
14766
   Use char because int might match the return type of a GCC
14767
   builtin and then its argument prototype would still apply.  */
14768
#ifdef __cplusplus
14769
extern "C"
14770
#endif
14771
char pow ();
14772
int
14773
main ()
14774
{
14775
return pow ();
14776
  ;
14777
  return 0;
14778
}
14779
_ACEOF
14780 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
14781
if { (ac_try="$ac_link"
14782
case "(($ac_try" in
14783
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784
  *) ac_try_echo=$ac_try;;
14785
esac
14786
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14787
$as_echo "$ac_try_echo") >&5
14788
  (eval "$ac_link") 2>conftest.er1
14789
  ac_status=$?
14790
  grep -v '^ *+' conftest.er1 >conftest.err
14791
  rm -f conftest.er1
14792
  cat conftest.err >&5
14793
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794
  (exit $ac_status); } && {
14795
         test -z "$ac_c_werror_flag" ||
14796
         test ! -s conftest.err
14797
       } && test -s conftest$ac_exeext && {
14798
         test "$cross_compiling" = yes ||
14799
         $as_test_x conftest$ac_exeext
14800
       }; then
14801 19 jeremybenn
  ac_cv_lib_m_pow=yes
14802
else
14803 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14804
sed 's/^/| /' conftest.$ac_ext >&5
14805
 
14806
        ac_cv_lib_m_pow=no
14807 19 jeremybenn
fi
14808 121 jeremybenn
 
14809
rm -rf conftest.dSYM
14810
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14811
      conftest$ac_exeext conftest.$ac_ext
14812 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
14813
fi
14814 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14815 82 jeremybenn
$as_echo "$ac_cv_lib_m_pow" >&6; }
14816 121 jeremybenn
if test "x$ac_cv_lib_m_pow" = x""yes; then
14817 19 jeremybenn
  POW_LIB=-lm
14818
else
14819 121 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14820 82 jeremybenn
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14821 19 jeremybenn
fi
14822
 
14823
fi
14824
 
14825
fi
14826
 
14827 121 jeremybenn
 
14828
 
14829
 
14830
 
14831
 
14832 19 jeremybenn
for ac_func in bzero strchr strcspn strrchr strtol
14833 121 jeremybenn
do
14834
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14835
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14836
$as_echo_n "checking for $ac_func... " >&6; }
14837
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14838
  $as_echo_n "(cached) " >&6
14839
else
14840
  cat >conftest.$ac_ext <<_ACEOF
14841
/* confdefs.h.  */
14842
_ACEOF
14843
cat confdefs.h >>conftest.$ac_ext
14844
cat >>conftest.$ac_ext <<_ACEOF
14845
/* end confdefs.h.  */
14846
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14847
   For example, HP-UX 11i  declares gettimeofday.  */
14848
#define $ac_func innocuous_$ac_func
14849
 
14850
/* System header to define __stub macros and hopefully few prototypes,
14851
    which can conflict with char $ac_func (); below.
14852
    Prefer  to  if __STDC__ is defined, since
14853
     exists even on freestanding compilers.  */
14854
 
14855
#ifdef __STDC__
14856
# include 
14857
#else
14858
# include 
14859
#endif
14860
 
14861
#undef $ac_func
14862
 
14863
/* Override any GCC internal prototype to avoid an error.
14864
   Use char because int might match the return type of a GCC
14865
   builtin and then its argument prototype would still apply.  */
14866
#ifdef __cplusplus
14867
extern "C"
14868
#endif
14869
char $ac_func ();
14870
/* The GNU C library defines this for functions which it implements
14871
    to always fail with ENOSYS.  Some functions are actually named
14872
    something starting with __ and the normal name is an alias.  */
14873
#if defined __stub_$ac_func || defined __stub___$ac_func
14874
choke me
14875
#endif
14876
 
14877
int
14878
main ()
14879
{
14880
return $ac_func ();
14881
  ;
14882
  return 0;
14883
}
14884
_ACEOF
14885
rm -f conftest.$ac_objext conftest$ac_exeext
14886
if { (ac_try="$ac_link"
14887
case "(($ac_try" in
14888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889
  *) ac_try_echo=$ac_try;;
14890
esac
14891
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14892
$as_echo "$ac_try_echo") >&5
14893
  (eval "$ac_link") 2>conftest.er1
14894
  ac_status=$?
14895
  grep -v '^ *+' conftest.er1 >conftest.err
14896
  rm -f conftest.er1
14897
  cat conftest.err >&5
14898
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899
  (exit $ac_status); } && {
14900
         test -z "$ac_c_werror_flag" ||
14901
         test ! -s conftest.err
14902
       } && test -s conftest$ac_exeext && {
14903
         test "$cross_compiling" = yes ||
14904
         $as_test_x conftest$ac_exeext
14905
       }; then
14906
  eval "$as_ac_var=yes"
14907
else
14908
  $as_echo "$as_me: failed program was:" >&5
14909
sed 's/^/| /' conftest.$ac_ext >&5
14910
 
14911
        eval "$as_ac_var=no"
14912
fi
14913
 
14914
rm -rf conftest.dSYM
14915
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14916
      conftest$ac_exeext conftest.$ac_ext
14917
fi
14918
ac_res=`eval 'as_val=${'$as_ac_var'}
14919
                 $as_echo "$as_val"'`
14920
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14921
$as_echo "$ac_res" >&6; }
14922
as_val=`eval 'as_val=${'$as_ac_var'}
14923
                 $as_echo "$as_val"'`
14924
   if test "x$as_val" = x""yes; then
14925 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14926 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14927 19 jeremybenn
_ACEOF
14928
 
14929
fi
14930
done
14931
 
14932 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
14933
$as_echo_n "checking for getopt_long... " >&6; }
14934
if test "${ac_cv_func_getopt_long+set}" = set; then
14935
  $as_echo_n "(cached) " >&6
14936
else
14937
  cat >conftest.$ac_ext <<_ACEOF
14938
/* confdefs.h.  */
14939
_ACEOF
14940
cat confdefs.h >>conftest.$ac_ext
14941
cat >>conftest.$ac_ext <<_ACEOF
14942
/* end confdefs.h.  */
14943
/* Define getopt_long to an innocuous variant, in case  declares getopt_long.
14944
   For example, HP-UX 11i  declares gettimeofday.  */
14945
#define getopt_long innocuous_getopt_long
14946
 
14947
/* System header to define __stub macros and hopefully few prototypes,
14948
    which can conflict with char getopt_long (); below.
14949
    Prefer  to  if __STDC__ is defined, since
14950
     exists even on freestanding compilers.  */
14951
 
14952
#ifdef __STDC__
14953
# include 
14954
#else
14955
# include 
14956
#endif
14957
 
14958
#undef getopt_long
14959
 
14960
/* Override any GCC internal prototype to avoid an error.
14961
   Use char because int might match the return type of a GCC
14962
   builtin and then its argument prototype would still apply.  */
14963
#ifdef __cplusplus
14964
extern "C"
14965
#endif
14966
char getopt_long ();
14967
/* The GNU C library defines this for functions which it implements
14968
    to always fail with ENOSYS.  Some functions are actually named
14969
    something starting with __ and the normal name is an alias.  */
14970
#if defined __stub_getopt_long || defined __stub___getopt_long
14971
choke me
14972
#endif
14973
 
14974
int
14975
main ()
14976
{
14977
return getopt_long ();
14978
  ;
14979
  return 0;
14980
}
14981
_ACEOF
14982
rm -f conftest.$ac_objext conftest$ac_exeext
14983
if { (ac_try="$ac_link"
14984
case "(($ac_try" in
14985
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986
  *) ac_try_echo=$ac_try;;
14987
esac
14988
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14989
$as_echo "$ac_try_echo") >&5
14990
  (eval "$ac_link") 2>conftest.er1
14991
  ac_status=$?
14992
  grep -v '^ *+' conftest.er1 >conftest.err
14993
  rm -f conftest.er1
14994
  cat conftest.err >&5
14995
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996
  (exit $ac_status); } && {
14997
         test -z "$ac_c_werror_flag" ||
14998
         test ! -s conftest.err
14999
       } && test -s conftest$ac_exeext && {
15000
         test "$cross_compiling" = yes ||
15001
         $as_test_x conftest$ac_exeext
15002
       }; then
15003
  ac_cv_func_getopt_long=yes
15004
else
15005
  $as_echo "$as_me: failed program was:" >&5
15006
sed 's/^/| /' conftest.$ac_ext >&5
15007
 
15008
        ac_cv_func_getopt_long=no
15009
fi
15010
 
15011
rm -rf conftest.dSYM
15012
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15013
      conftest$ac_exeext conftest.$ac_ext
15014
fi
15015
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
15016
$as_echo "$ac_cv_func_getopt_long" >&6; }
15017
if test "x$ac_cv_func_getopt_long" = x""yes; then
15018 19 jeremybenn
  SYS_GETOPTLONG=1
15019
else
15020
  SYS_GETOPTLONG=0
15021
fi
15022
 
15023 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for regcomp" >&5
15024
$as_echo_n "checking for regcomp... " >&6; }
15025
if test "${ac_cv_func_regcomp+set}" = set; then
15026
  $as_echo_n "(cached) " >&6
15027
else
15028
  cat >conftest.$ac_ext <<_ACEOF
15029
/* confdefs.h.  */
15030
_ACEOF
15031
cat confdefs.h >>conftest.$ac_ext
15032
cat >>conftest.$ac_ext <<_ACEOF
15033
/* end confdefs.h.  */
15034
/* Define regcomp to an innocuous variant, in case  declares regcomp.
15035
   For example, HP-UX 11i  declares gettimeofday.  */
15036
#define regcomp innocuous_regcomp
15037
 
15038
/* System header to define __stub macros and hopefully few prototypes,
15039
    which can conflict with char regcomp (); below.
15040
    Prefer  to  if __STDC__ is defined, since
15041
     exists even on freestanding compilers.  */
15042
 
15043
#ifdef __STDC__
15044
# include 
15045
#else
15046
# include 
15047
#endif
15048
 
15049
#undef regcomp
15050
 
15051
/* Override any GCC internal prototype to avoid an error.
15052
   Use char because int might match the return type of a GCC
15053
   builtin and then its argument prototype would still apply.  */
15054
#ifdef __cplusplus
15055
extern "C"
15056
#endif
15057
char regcomp ();
15058
/* The GNU C library defines this for functions which it implements
15059
    to always fail with ENOSYS.  Some functions are actually named
15060
    something starting with __ and the normal name is an alias.  */
15061
#if defined __stub_regcomp || defined __stub___regcomp
15062
choke me
15063
#endif
15064
 
15065
int
15066
main ()
15067
{
15068
return regcomp ();
15069
  ;
15070
  return 0;
15071
}
15072
_ACEOF
15073
rm -f conftest.$ac_objext conftest$ac_exeext
15074
if { (ac_try="$ac_link"
15075
case "(($ac_try" in
15076
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077
  *) ac_try_echo=$ac_try;;
15078
esac
15079
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15080
$as_echo "$ac_try_echo") >&5
15081
  (eval "$ac_link") 2>conftest.er1
15082
  ac_status=$?
15083
  grep -v '^ *+' conftest.er1 >conftest.err
15084
  rm -f conftest.er1
15085
  cat conftest.err >&5
15086
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087
  (exit $ac_status); } && {
15088
         test -z "$ac_c_werror_flag" ||
15089
         test ! -s conftest.err
15090
       } && test -s conftest$ac_exeext && {
15091
         test "$cross_compiling" = yes ||
15092
         $as_test_x conftest$ac_exeext
15093
       }; then
15094
  ac_cv_func_regcomp=yes
15095
else
15096
  $as_echo "$as_me: failed program was:" >&5
15097
sed 's/^/| /' conftest.$ac_ext >&5
15098
 
15099
        ac_cv_func_regcomp=no
15100
fi
15101
 
15102
rm -rf conftest.dSYM
15103
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15104
      conftest$ac_exeext conftest.$ac_ext
15105
fi
15106
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
15107
$as_echo "$ac_cv_func_regcomp" >&6; }
15108
if test "x$ac_cv_func_regcomp" = x""yes; then
15109 19 jeremybenn
  SYS_REGEX=1
15110
else
15111
  SYS_REGEX=0
15112
fi
15113
 
15114 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strptime" >&5
15115
$as_echo_n "checking for strptime... " >&6; }
15116
if test "${ac_cv_func_strptime+set}" = set; then
15117
  $as_echo_n "(cached) " >&6
15118
else
15119
  cat >conftest.$ac_ext <<_ACEOF
15120
/* confdefs.h.  */
15121
_ACEOF
15122
cat confdefs.h >>conftest.$ac_ext
15123
cat >>conftest.$ac_ext <<_ACEOF
15124
/* end confdefs.h.  */
15125
/* Define strptime to an innocuous variant, in case  declares strptime.
15126
   For example, HP-UX 11i  declares gettimeofday.  */
15127
#define strptime innocuous_strptime
15128
 
15129
/* System header to define __stub macros and hopefully few prototypes,
15130
    which can conflict with char strptime (); below.
15131
    Prefer  to  if __STDC__ is defined, since
15132
     exists even on freestanding compilers.  */
15133
 
15134
#ifdef __STDC__
15135
# include 
15136
#else
15137
# include 
15138
#endif
15139
 
15140
#undef strptime
15141
 
15142
/* Override any GCC internal prototype to avoid an error.
15143
   Use char because int might match the return type of a GCC
15144
   builtin and then its argument prototype would still apply.  */
15145
#ifdef __cplusplus
15146
extern "C"
15147
#endif
15148
char strptime ();
15149
/* The GNU C library defines this for functions which it implements
15150
    to always fail with ENOSYS.  Some functions are actually named
15151
    something starting with __ and the normal name is an alias.  */
15152
#if defined __stub_strptime || defined __stub___strptime
15153
choke me
15154
#endif
15155
 
15156
int
15157
main ()
15158
{
15159
return strptime ();
15160
  ;
15161
  return 0;
15162
}
15163
_ACEOF
15164
rm -f conftest.$ac_objext conftest$ac_exeext
15165
if { (ac_try="$ac_link"
15166
case "(($ac_try" in
15167
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168
  *) ac_try_echo=$ac_try;;
15169
esac
15170
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15171
$as_echo "$ac_try_echo") >&5
15172
  (eval "$ac_link") 2>conftest.er1
15173
  ac_status=$?
15174
  grep -v '^ *+' conftest.er1 >conftest.err
15175
  rm -f conftest.er1
15176
  cat conftest.err >&5
15177
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178
  (exit $ac_status); } && {
15179
         test -z "$ac_c_werror_flag" ||
15180
         test ! -s conftest.err
15181
       } && test -s conftest$ac_exeext && {
15182
         test "$cross_compiling" = yes ||
15183
         $as_test_x conftest$ac_exeext
15184
       }; then
15185
  ac_cv_func_strptime=yes
15186
else
15187
  $as_echo "$as_me: failed program was:" >&5
15188
sed 's/^/| /' conftest.$ac_ext >&5
15189
 
15190
        ac_cv_func_strptime=no
15191
fi
15192
 
15193
rm -rf conftest.dSYM
15194
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15195
      conftest$ac_exeext conftest.$ac_ext
15196
fi
15197
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
15198
$as_echo "$ac_cv_func_strptime" >&6; }
15199
if test "x$ac_cv_func_strptime" = x""yes; then
15200 19 jeremybenn
  SYS_STRPTIME=1
15201
else
15202
  SYS_STRPTIME=0
15203
fi
15204
 
15205
 
15206
# Define automake conditionals (for argtable2)
15207
 if test "$SYS_GETOPTLONG" = "1"; then
15208
  USE_SYS_GETOPTLONG_TRUE=
15209
  USE_SYS_GETOPTLONG_FALSE='#'
15210
else
15211
  USE_SYS_GETOPTLONG_TRUE='#'
15212
  USE_SYS_GETOPTLONG_FALSE=
15213
fi
15214
 
15215
 if test "$SYS_REGEX" = "1"; then
15216
  USE_ARGREX_TRUE=
15217
  USE_ARGREX_FALSE='#'
15218
else
15219
  USE_ARGREX_TRUE='#'
15220
  USE_ARGREX_FALSE=
15221
fi
15222
 
15223
 if test "$SYS_STRPTIME" = "1"; then
15224
  USE_ARGDATE_TRUE=
15225
  USE_ARGDATE_FALSE='#'
15226
else
15227
  USE_ARGDATE_TRUE='#'
15228
  USE_ARGDATE_FALSE=
15229
fi
15230
 
15231
 
15232
# check for "long long" (added by Erez)
15233 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
15234
/* confdefs.h.  */
15235
_ACEOF
15236
cat confdefs.h >>conftest.$ac_ext
15237
cat >>conftest.$ac_ext <<_ACEOF
15238 19 jeremybenn
/* end confdefs.h.  */
15239
 
15240
int
15241
main ()
15242
{
15243
long long ll; unsigned long long ull;
15244
  ;
15245
  return 0;
15246
}
15247
_ACEOF
15248 121 jeremybenn
rm -f conftest.$ac_objext
15249
if { (ac_try="$ac_compile"
15250
case "(($ac_try" in
15251
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252
  *) ac_try_echo=$ac_try;;
15253
esac
15254
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15255
$as_echo "$ac_try_echo") >&5
15256
  (eval "$ac_compile") 2>conftest.er1
15257
  ac_status=$?
15258
  grep -v '^ *+' conftest.er1 >conftest.err
15259
  rm -f conftest.er1
15260
  cat conftest.err >&5
15261
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262
  (exit $ac_status); } && {
15263
         test -z "$ac_c_werror_flag" ||
15264
         test ! -s conftest.err
15265
       } && test -s conftest.$ac_objext; then
15266 19 jeremybenn
 
15267 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
15268
#define CC_HAS_LONG_LONG 1
15269
_ACEOF
15270 19 jeremybenn
 
15271 121 jeremybenn
else
15272
  $as_echo "$as_me: failed program was:" >&5
15273
sed 's/^/| /' conftest.$ac_ext >&5
15274
 
15275
 
15276 19 jeremybenn
fi
15277 121 jeremybenn
 
15278 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279
 
15280
# check for {u,}int{8,16,32}_t in inttypes.h.
15281 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
15282
$as_echo_n "checking for uint8_t... " >&6; }
15283
if test "${ac_cv_type_uint8_t+set}" = set; then
15284
  $as_echo_n "(cached) " >&6
15285
else
15286
  ac_cv_type_uint8_t=no
15287
cat >conftest.$ac_ext <<_ACEOF
15288
/* confdefs.h.  */
15289
_ACEOF
15290
cat confdefs.h >>conftest.$ac_ext
15291
cat >>conftest.$ac_ext <<_ACEOF
15292
/* end confdefs.h.  */
15293
#include 
15294 82 jeremybenn
 
15295 121 jeremybenn
int
15296
main ()
15297
{
15298
if (sizeof (uint8_t))
15299
       return 0;
15300
  ;
15301
  return 0;
15302
}
15303
_ACEOF
15304
rm -f conftest.$ac_objext
15305
if { (ac_try="$ac_compile"
15306
case "(($ac_try" in
15307
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308
  *) ac_try_echo=$ac_try;;
15309
esac
15310
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15311
$as_echo "$ac_try_echo") >&5
15312
  (eval "$ac_compile") 2>conftest.er1
15313
  ac_status=$?
15314
  grep -v '^ *+' conftest.er1 >conftest.err
15315
  rm -f conftest.er1
15316
  cat conftest.err >&5
15317
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318
  (exit $ac_status); } && {
15319
         test -z "$ac_c_werror_flag" ||
15320
         test ! -s conftest.err
15321
       } && test -s conftest.$ac_objext; then
15322
  cat >conftest.$ac_ext <<_ACEOF
15323
/* confdefs.h.  */
15324
_ACEOF
15325
cat confdefs.h >>conftest.$ac_ext
15326
cat >>conftest.$ac_ext <<_ACEOF
15327
/* end confdefs.h.  */
15328
#include 
15329
 
15330
int
15331
main ()
15332
{
15333
if (sizeof ((uint8_t)))
15334
          return 0;
15335
  ;
15336
  return 0;
15337
}
15338
_ACEOF
15339
rm -f conftest.$ac_objext
15340
if { (ac_try="$ac_compile"
15341
case "(($ac_try" in
15342
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343
  *) ac_try_echo=$ac_try;;
15344
esac
15345
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15346
$as_echo "$ac_try_echo") >&5
15347
  (eval "$ac_compile") 2>conftest.er1
15348
  ac_status=$?
15349
  grep -v '^ *+' conftest.er1 >conftest.err
15350
  rm -f conftest.er1
15351
  cat conftest.err >&5
15352
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353
  (exit $ac_status); } && {
15354
         test -z "$ac_c_werror_flag" ||
15355
         test ! -s conftest.err
15356
       } && test -s conftest.$ac_objext; then
15357
  :
15358
else
15359
  $as_echo "$as_me: failed program was:" >&5
15360
sed 's/^/| /' conftest.$ac_ext >&5
15361
 
15362
        ac_cv_type_uint8_t=yes
15363
fi
15364
 
15365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366
else
15367
  $as_echo "$as_me: failed program was:" >&5
15368
sed 's/^/| /' conftest.$ac_ext >&5
15369
 
15370
 
15371
fi
15372
 
15373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374
fi
15375
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
15376
$as_echo "$ac_cv_type_uint8_t" >&6; }
15377
if test "x$ac_cv_type_uint8_t" = x""yes; then
15378
 
15379 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15380
#define HAVE_UINT8_T 1
15381
_ACEOF
15382
 
15383
 
15384
fi
15385 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
15386
$as_echo_n "checking for uint16_t... " >&6; }
15387
if test "${ac_cv_type_uint16_t+set}" = set; then
15388
  $as_echo_n "(cached) " >&6
15389
else
15390
  ac_cv_type_uint16_t=no
15391
cat >conftest.$ac_ext <<_ACEOF
15392
/* confdefs.h.  */
15393
_ACEOF
15394
cat confdefs.h >>conftest.$ac_ext
15395
cat >>conftest.$ac_ext <<_ACEOF
15396
/* end confdefs.h.  */
15397
#include 
15398 82 jeremybenn
 
15399 121 jeremybenn
int
15400
main ()
15401
{
15402
if (sizeof (uint16_t))
15403
       return 0;
15404
  ;
15405
  return 0;
15406
}
15407
_ACEOF
15408
rm -f conftest.$ac_objext
15409
if { (ac_try="$ac_compile"
15410
case "(($ac_try" in
15411
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412
  *) ac_try_echo=$ac_try;;
15413
esac
15414
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15415
$as_echo "$ac_try_echo") >&5
15416
  (eval "$ac_compile") 2>conftest.er1
15417
  ac_status=$?
15418
  grep -v '^ *+' conftest.er1 >conftest.err
15419
  rm -f conftest.er1
15420
  cat conftest.err >&5
15421
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422
  (exit $ac_status); } && {
15423
         test -z "$ac_c_werror_flag" ||
15424
         test ! -s conftest.err
15425
       } && test -s conftest.$ac_objext; then
15426
  cat >conftest.$ac_ext <<_ACEOF
15427
/* confdefs.h.  */
15428
_ACEOF
15429
cat confdefs.h >>conftest.$ac_ext
15430
cat >>conftest.$ac_ext <<_ACEOF
15431
/* end confdefs.h.  */
15432
#include 
15433
 
15434
int
15435
main ()
15436
{
15437
if (sizeof ((uint16_t)))
15438
          return 0;
15439
  ;
15440
  return 0;
15441
}
15442
_ACEOF
15443
rm -f conftest.$ac_objext
15444
if { (ac_try="$ac_compile"
15445
case "(($ac_try" in
15446
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447
  *) ac_try_echo=$ac_try;;
15448
esac
15449
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15450
$as_echo "$ac_try_echo") >&5
15451
  (eval "$ac_compile") 2>conftest.er1
15452
  ac_status=$?
15453
  grep -v '^ *+' conftest.er1 >conftest.err
15454
  rm -f conftest.er1
15455
  cat conftest.err >&5
15456
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457
  (exit $ac_status); } && {
15458
         test -z "$ac_c_werror_flag" ||
15459
         test ! -s conftest.err
15460
       } && test -s conftest.$ac_objext; then
15461
  :
15462
else
15463
  $as_echo "$as_me: failed program was:" >&5
15464
sed 's/^/| /' conftest.$ac_ext >&5
15465
 
15466
        ac_cv_type_uint16_t=yes
15467
fi
15468
 
15469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15470
else
15471
  $as_echo "$as_me: failed program was:" >&5
15472
sed 's/^/| /' conftest.$ac_ext >&5
15473
 
15474
 
15475
fi
15476
 
15477
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15478
fi
15479
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
15480
$as_echo "$ac_cv_type_uint16_t" >&6; }
15481
if test "x$ac_cv_type_uint16_t" = x""yes; then
15482
 
15483 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15484
#define HAVE_UINT16_T 1
15485
_ACEOF
15486
 
15487
 
15488
fi
15489 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
15490
$as_echo_n "checking for uint32_t... " >&6; }
15491
if test "${ac_cv_type_uint32_t+set}" = set; then
15492
  $as_echo_n "(cached) " >&6
15493
else
15494
  ac_cv_type_uint32_t=no
15495
cat >conftest.$ac_ext <<_ACEOF
15496
/* confdefs.h.  */
15497
_ACEOF
15498
cat confdefs.h >>conftest.$ac_ext
15499
cat >>conftest.$ac_ext <<_ACEOF
15500
/* end confdefs.h.  */
15501
#include 
15502 82 jeremybenn
 
15503 121 jeremybenn
int
15504
main ()
15505
{
15506
if (sizeof (uint32_t))
15507
       return 0;
15508
  ;
15509
  return 0;
15510
}
15511
_ACEOF
15512
rm -f conftest.$ac_objext
15513
if { (ac_try="$ac_compile"
15514
case "(($ac_try" in
15515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516
  *) ac_try_echo=$ac_try;;
15517
esac
15518
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519
$as_echo "$ac_try_echo") >&5
15520
  (eval "$ac_compile") 2>conftest.er1
15521
  ac_status=$?
15522
  grep -v '^ *+' conftest.er1 >conftest.err
15523
  rm -f conftest.er1
15524
  cat conftest.err >&5
15525
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526
  (exit $ac_status); } && {
15527
         test -z "$ac_c_werror_flag" ||
15528
         test ! -s conftest.err
15529
       } && test -s conftest.$ac_objext; then
15530
  cat >conftest.$ac_ext <<_ACEOF
15531
/* confdefs.h.  */
15532
_ACEOF
15533
cat confdefs.h >>conftest.$ac_ext
15534
cat >>conftest.$ac_ext <<_ACEOF
15535
/* end confdefs.h.  */
15536
#include 
15537
 
15538
int
15539
main ()
15540
{
15541
if (sizeof ((uint32_t)))
15542
          return 0;
15543
  ;
15544
  return 0;
15545
}
15546
_ACEOF
15547
rm -f conftest.$ac_objext
15548
if { (ac_try="$ac_compile"
15549
case "(($ac_try" in
15550
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551
  *) ac_try_echo=$ac_try;;
15552
esac
15553
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15554
$as_echo "$ac_try_echo") >&5
15555
  (eval "$ac_compile") 2>conftest.er1
15556
  ac_status=$?
15557
  grep -v '^ *+' conftest.er1 >conftest.err
15558
  rm -f conftest.er1
15559
  cat conftest.err >&5
15560
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561
  (exit $ac_status); } && {
15562
         test -z "$ac_c_werror_flag" ||
15563
         test ! -s conftest.err
15564
       } && test -s conftest.$ac_objext; then
15565
  :
15566
else
15567
  $as_echo "$as_me: failed program was:" >&5
15568
sed 's/^/| /' conftest.$ac_ext >&5
15569
 
15570
        ac_cv_type_uint32_t=yes
15571
fi
15572
 
15573
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15574
else
15575
  $as_echo "$as_me: failed program was:" >&5
15576
sed 's/^/| /' conftest.$ac_ext >&5
15577
 
15578
 
15579
fi
15580
 
15581
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582
fi
15583
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
15584
$as_echo "$ac_cv_type_uint32_t" >&6; }
15585
if test "x$ac_cv_type_uint32_t" = x""yes; then
15586
 
15587 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15588
#define HAVE_UINT32_T 1
15589
_ACEOF
15590
 
15591
 
15592
fi
15593
 
15594 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
15595
$as_echo_n "checking for int8_t... " >&6; }
15596
if test "${ac_cv_type_int8_t+set}" = set; then
15597
  $as_echo_n "(cached) " >&6
15598
else
15599
  ac_cv_type_int8_t=no
15600
cat >conftest.$ac_ext <<_ACEOF
15601
/* confdefs.h.  */
15602
_ACEOF
15603
cat confdefs.h >>conftest.$ac_ext
15604
cat >>conftest.$ac_ext <<_ACEOF
15605
/* end confdefs.h.  */
15606
#include 
15607 82 jeremybenn
 
15608 121 jeremybenn
int
15609
main ()
15610
{
15611
if (sizeof (int8_t))
15612
       return 0;
15613
  ;
15614
  return 0;
15615
}
15616
_ACEOF
15617
rm -f conftest.$ac_objext
15618
if { (ac_try="$ac_compile"
15619
case "(($ac_try" in
15620
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621
  *) ac_try_echo=$ac_try;;
15622
esac
15623
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15624
$as_echo "$ac_try_echo") >&5
15625
  (eval "$ac_compile") 2>conftest.er1
15626
  ac_status=$?
15627
  grep -v '^ *+' conftest.er1 >conftest.err
15628
  rm -f conftest.er1
15629
  cat conftest.err >&5
15630
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631
  (exit $ac_status); } && {
15632
         test -z "$ac_c_werror_flag" ||
15633
         test ! -s conftest.err
15634
       } && test -s conftest.$ac_objext; then
15635
  cat >conftest.$ac_ext <<_ACEOF
15636
/* confdefs.h.  */
15637
_ACEOF
15638
cat confdefs.h >>conftest.$ac_ext
15639
cat >>conftest.$ac_ext <<_ACEOF
15640
/* end confdefs.h.  */
15641
#include 
15642
 
15643
int
15644
main ()
15645
{
15646
if (sizeof ((int8_t)))
15647
          return 0;
15648
  ;
15649
  return 0;
15650
}
15651
_ACEOF
15652
rm -f conftest.$ac_objext
15653
if { (ac_try="$ac_compile"
15654
case "(($ac_try" in
15655
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656
  *) ac_try_echo=$ac_try;;
15657
esac
15658
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15659
$as_echo "$ac_try_echo") >&5
15660
  (eval "$ac_compile") 2>conftest.er1
15661
  ac_status=$?
15662
  grep -v '^ *+' conftest.er1 >conftest.err
15663
  rm -f conftest.er1
15664
  cat conftest.err >&5
15665
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666
  (exit $ac_status); } && {
15667
         test -z "$ac_c_werror_flag" ||
15668
         test ! -s conftest.err
15669
       } && test -s conftest.$ac_objext; then
15670
  :
15671
else
15672
  $as_echo "$as_me: failed program was:" >&5
15673
sed 's/^/| /' conftest.$ac_ext >&5
15674
 
15675
        ac_cv_type_int8_t=yes
15676
fi
15677
 
15678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679
else
15680
  $as_echo "$as_me: failed program was:" >&5
15681
sed 's/^/| /' conftest.$ac_ext >&5
15682
 
15683
 
15684
fi
15685
 
15686
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15687
fi
15688
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
15689
$as_echo "$ac_cv_type_int8_t" >&6; }
15690
if test "x$ac_cv_type_int8_t" = x""yes; then
15691
 
15692 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15693
#define HAVE_INT8_T 1
15694
_ACEOF
15695
 
15696
 
15697
fi
15698 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
15699
$as_echo_n "checking for int16_t... " >&6; }
15700
if test "${ac_cv_type_int16_t+set}" = set; then
15701
  $as_echo_n "(cached) " >&6
15702
else
15703
  ac_cv_type_int16_t=no
15704
cat >conftest.$ac_ext <<_ACEOF
15705
/* confdefs.h.  */
15706
_ACEOF
15707
cat confdefs.h >>conftest.$ac_ext
15708
cat >>conftest.$ac_ext <<_ACEOF
15709
/* end confdefs.h.  */
15710
#include 
15711 82 jeremybenn
 
15712 121 jeremybenn
int
15713
main ()
15714
{
15715
if (sizeof (int16_t))
15716
       return 0;
15717
  ;
15718
  return 0;
15719
}
15720
_ACEOF
15721
rm -f conftest.$ac_objext
15722
if { (ac_try="$ac_compile"
15723
case "(($ac_try" in
15724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725
  *) ac_try_echo=$ac_try;;
15726
esac
15727
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15728
$as_echo "$ac_try_echo") >&5
15729
  (eval "$ac_compile") 2>conftest.er1
15730
  ac_status=$?
15731
  grep -v '^ *+' conftest.er1 >conftest.err
15732
  rm -f conftest.er1
15733
  cat conftest.err >&5
15734
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735
  (exit $ac_status); } && {
15736
         test -z "$ac_c_werror_flag" ||
15737
         test ! -s conftest.err
15738
       } && test -s conftest.$ac_objext; then
15739
  cat >conftest.$ac_ext <<_ACEOF
15740
/* confdefs.h.  */
15741
_ACEOF
15742
cat confdefs.h >>conftest.$ac_ext
15743
cat >>conftest.$ac_ext <<_ACEOF
15744
/* end confdefs.h.  */
15745
#include 
15746
 
15747
int
15748
main ()
15749
{
15750
if (sizeof ((int16_t)))
15751
          return 0;
15752
  ;
15753
  return 0;
15754
}
15755
_ACEOF
15756
rm -f conftest.$ac_objext
15757
if { (ac_try="$ac_compile"
15758
case "(($ac_try" in
15759
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760
  *) ac_try_echo=$ac_try;;
15761
esac
15762
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15763
$as_echo "$ac_try_echo") >&5
15764
  (eval "$ac_compile") 2>conftest.er1
15765
  ac_status=$?
15766
  grep -v '^ *+' conftest.er1 >conftest.err
15767
  rm -f conftest.er1
15768
  cat conftest.err >&5
15769
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770
  (exit $ac_status); } && {
15771
         test -z "$ac_c_werror_flag" ||
15772
         test ! -s conftest.err
15773
       } && test -s conftest.$ac_objext; then
15774
  :
15775
else
15776
  $as_echo "$as_me: failed program was:" >&5
15777
sed 's/^/| /' conftest.$ac_ext >&5
15778
 
15779
        ac_cv_type_int16_t=yes
15780
fi
15781
 
15782
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783
else
15784
  $as_echo "$as_me: failed program was:" >&5
15785
sed 's/^/| /' conftest.$ac_ext >&5
15786
 
15787
 
15788
fi
15789
 
15790
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791
fi
15792
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
15793
$as_echo "$ac_cv_type_int16_t" >&6; }
15794
if test "x$ac_cv_type_int16_t" = x""yes; then
15795
 
15796 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15797
#define HAVE_INT16_T 1
15798
_ACEOF
15799
 
15800
 
15801
fi
15802 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
15803
$as_echo_n "checking for int32_t... " >&6; }
15804
if test "${ac_cv_type_int32_t+set}" = set; then
15805
  $as_echo_n "(cached) " >&6
15806
else
15807
  ac_cv_type_int32_t=no
15808
cat >conftest.$ac_ext <<_ACEOF
15809
/* confdefs.h.  */
15810
_ACEOF
15811
cat confdefs.h >>conftest.$ac_ext
15812
cat >>conftest.$ac_ext <<_ACEOF
15813
/* end confdefs.h.  */
15814
#include 
15815 19 jeremybenn
 
15816 121 jeremybenn
int
15817
main ()
15818
{
15819
if (sizeof (int32_t))
15820
       return 0;
15821
  ;
15822
  return 0;
15823
}
15824
_ACEOF
15825
rm -f conftest.$ac_objext
15826
if { (ac_try="$ac_compile"
15827
case "(($ac_try" in
15828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829
  *) ac_try_echo=$ac_try;;
15830
esac
15831
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15832
$as_echo "$ac_try_echo") >&5
15833
  (eval "$ac_compile") 2>conftest.er1
15834
  ac_status=$?
15835
  grep -v '^ *+' conftest.er1 >conftest.err
15836
  rm -f conftest.er1
15837
  cat conftest.err >&5
15838
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839
  (exit $ac_status); } && {
15840
         test -z "$ac_c_werror_flag" ||
15841
         test ! -s conftest.err
15842
       } && test -s conftest.$ac_objext; then
15843
  cat >conftest.$ac_ext <<_ACEOF
15844
/* confdefs.h.  */
15845
_ACEOF
15846
cat confdefs.h >>conftest.$ac_ext
15847
cat >>conftest.$ac_ext <<_ACEOF
15848
/* end confdefs.h.  */
15849
#include 
15850
 
15851
int
15852
main ()
15853
{
15854
if (sizeof ((int32_t)))
15855
          return 0;
15856
  ;
15857
  return 0;
15858
}
15859
_ACEOF
15860
rm -f conftest.$ac_objext
15861
if { (ac_try="$ac_compile"
15862
case "(($ac_try" in
15863
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864
  *) ac_try_echo=$ac_try;;
15865
esac
15866
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15867
$as_echo "$ac_try_echo") >&5
15868
  (eval "$ac_compile") 2>conftest.er1
15869
  ac_status=$?
15870
  grep -v '^ *+' conftest.er1 >conftest.err
15871
  rm -f conftest.er1
15872
  cat conftest.err >&5
15873
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874
  (exit $ac_status); } && {
15875
         test -z "$ac_c_werror_flag" ||
15876
         test ! -s conftest.err
15877
       } && test -s conftest.$ac_objext; then
15878
  :
15879
else
15880
  $as_echo "$as_me: failed program was:" >&5
15881
sed 's/^/| /' conftest.$ac_ext >&5
15882
 
15883
        ac_cv_type_int32_t=yes
15884
fi
15885
 
15886
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15887
else
15888
  $as_echo "$as_me: failed program was:" >&5
15889
sed 's/^/| /' conftest.$ac_ext >&5
15890
 
15891
 
15892
fi
15893
 
15894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895
fi
15896
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
15897
$as_echo "$ac_cv_type_int32_t" >&6; }
15898
if test "x$ac_cv_type_int32_t" = x""yes; then
15899
 
15900 82 jeremybenn
cat >>confdefs.h <<_ACEOF
15901
#define HAVE_INT32_T 1
15902
_ACEOF
15903
 
15904
 
15905
fi
15906
 
15907
 
15908 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
15909
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15910
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15911
# This bug is HP SR number 8606223364.
15912 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of char" >&5
15913 82 jeremybenn
$as_echo_n "checking size of char... " >&6; }
15914 121 jeremybenn
if test "${ac_cv_sizeof_char+set}" = set; then
15915 82 jeremybenn
  $as_echo_n "(cached) " >&6
15916 19 jeremybenn
else
15917 121 jeremybenn
  if test "$cross_compiling" = yes; then
15918
  # Depending upon the size, compute the lo and hi bounds.
15919
cat >conftest.$ac_ext <<_ACEOF
15920
/* confdefs.h.  */
15921
_ACEOF
15922
cat confdefs.h >>conftest.$ac_ext
15923
cat >>conftest.$ac_ext <<_ACEOF
15924
/* end confdefs.h.  */
15925
$ac_includes_default
15926
int
15927
main ()
15928
{
15929
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
15930
test_array [0] = 0
15931 19 jeremybenn
 
15932 121 jeremybenn
  ;
15933
  return 0;
15934
}
15935
_ACEOF
15936
rm -f conftest.$ac_objext
15937
if { (ac_try="$ac_compile"
15938
case "(($ac_try" in
15939
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940
  *) ac_try_echo=$ac_try;;
15941
esac
15942
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15943
$as_echo "$ac_try_echo") >&5
15944
  (eval "$ac_compile") 2>conftest.er1
15945
  ac_status=$?
15946
  grep -v '^ *+' conftest.er1 >conftest.err
15947
  rm -f conftest.er1
15948
  cat conftest.err >&5
15949
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950
  (exit $ac_status); } && {
15951
         test -z "$ac_c_werror_flag" ||
15952
         test ! -s conftest.err
15953
       } && test -s conftest.$ac_objext; then
15954
  ac_lo=0 ac_mid=0
15955
  while :; do
15956
    cat >conftest.$ac_ext <<_ACEOF
15957
/* confdefs.h.  */
15958
_ACEOF
15959
cat confdefs.h >>conftest.$ac_ext
15960
cat >>conftest.$ac_ext <<_ACEOF
15961
/* end confdefs.h.  */
15962
$ac_includes_default
15963
int
15964
main ()
15965
{
15966
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
15967
test_array [0] = 0
15968
 
15969
  ;
15970
  return 0;
15971
}
15972
_ACEOF
15973
rm -f conftest.$ac_objext
15974
if { (ac_try="$ac_compile"
15975
case "(($ac_try" in
15976
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977
  *) ac_try_echo=$ac_try;;
15978
esac
15979
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15980
$as_echo "$ac_try_echo") >&5
15981
  (eval "$ac_compile") 2>conftest.er1
15982
  ac_status=$?
15983
  grep -v '^ *+' conftest.er1 >conftest.err
15984
  rm -f conftest.er1
15985
  cat conftest.err >&5
15986
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987
  (exit $ac_status); } && {
15988
         test -z "$ac_c_werror_flag" ||
15989
         test ! -s conftest.err
15990
       } && test -s conftest.$ac_objext; then
15991
  ac_hi=$ac_mid; break
15992 19 jeremybenn
else
15993 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15994
sed 's/^/| /' conftest.$ac_ext >&5
15995
 
15996
        ac_lo=`expr $ac_mid + 1`
15997
                        if test $ac_lo -le $ac_mid; then
15998
                          ac_lo= ac_hi=
15999
                          break
16000
                        fi
16001
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16002
fi
16003
 
16004
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16005
  done
16006
else
16007
  $as_echo "$as_me: failed program was:" >&5
16008
sed 's/^/| /' conftest.$ac_ext >&5
16009
 
16010
        cat >conftest.$ac_ext <<_ACEOF
16011
/* confdefs.h.  */
16012
_ACEOF
16013
cat confdefs.h >>conftest.$ac_ext
16014
cat >>conftest.$ac_ext <<_ACEOF
16015
/* end confdefs.h.  */
16016
$ac_includes_default
16017
int
16018
main ()
16019
{
16020
static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
16021
test_array [0] = 0
16022
 
16023
  ;
16024
  return 0;
16025
}
16026
_ACEOF
16027
rm -f conftest.$ac_objext
16028
if { (ac_try="$ac_compile"
16029
case "(($ac_try" in
16030
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031
  *) ac_try_echo=$ac_try;;
16032
esac
16033
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16034
$as_echo "$ac_try_echo") >&5
16035
  (eval "$ac_compile") 2>conftest.er1
16036
  ac_status=$?
16037
  grep -v '^ *+' conftest.er1 >conftest.err
16038
  rm -f conftest.er1
16039
  cat conftest.err >&5
16040
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041
  (exit $ac_status); } && {
16042
         test -z "$ac_c_werror_flag" ||
16043
         test ! -s conftest.err
16044
       } && test -s conftest.$ac_objext; then
16045
  ac_hi=-1 ac_mid=-1
16046
  while :; do
16047
    cat >conftest.$ac_ext <<_ACEOF
16048
/* confdefs.h.  */
16049
_ACEOF
16050
cat confdefs.h >>conftest.$ac_ext
16051
cat >>conftest.$ac_ext <<_ACEOF
16052
/* end confdefs.h.  */
16053
$ac_includes_default
16054
int
16055
main ()
16056
{
16057
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
16058
test_array [0] = 0
16059
 
16060
  ;
16061
  return 0;
16062
}
16063
_ACEOF
16064
rm -f conftest.$ac_objext
16065
if { (ac_try="$ac_compile"
16066
case "(($ac_try" in
16067
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068
  *) ac_try_echo=$ac_try;;
16069
esac
16070
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16071
$as_echo "$ac_try_echo") >&5
16072
  (eval "$ac_compile") 2>conftest.er1
16073
  ac_status=$?
16074
  grep -v '^ *+' conftest.er1 >conftest.err
16075
  rm -f conftest.er1
16076
  cat conftest.err >&5
16077
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078
  (exit $ac_status); } && {
16079
         test -z "$ac_c_werror_flag" ||
16080
         test ! -s conftest.err
16081
       } && test -s conftest.$ac_objext; then
16082
  ac_lo=$ac_mid; break
16083
else
16084
  $as_echo "$as_me: failed program was:" >&5
16085
sed 's/^/| /' conftest.$ac_ext >&5
16086
 
16087
        ac_hi=`expr '(' $ac_mid ')' - 1`
16088
                        if test $ac_mid -le $ac_hi; then
16089
                          ac_lo= ac_hi=
16090
                          break
16091
                        fi
16092
                        ac_mid=`expr 2 '*' $ac_mid`
16093
fi
16094
 
16095
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096
  done
16097
else
16098
  $as_echo "$as_me: failed program was:" >&5
16099
sed 's/^/| /' conftest.$ac_ext >&5
16100
 
16101
        ac_lo= ac_hi=
16102
fi
16103
 
16104
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16105
fi
16106
 
16107
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16108
# Binary search between lo and hi bounds.
16109
while test "x$ac_lo" != "x$ac_hi"; do
16110
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16111
  cat >conftest.$ac_ext <<_ACEOF
16112
/* confdefs.h.  */
16113
_ACEOF
16114
cat confdefs.h >>conftest.$ac_ext
16115
cat >>conftest.$ac_ext <<_ACEOF
16116
/* end confdefs.h.  */
16117
$ac_includes_default
16118
int
16119
main ()
16120
{
16121
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
16122
test_array [0] = 0
16123
 
16124
  ;
16125
  return 0;
16126
}
16127
_ACEOF
16128
rm -f conftest.$ac_objext
16129
if { (ac_try="$ac_compile"
16130
case "(($ac_try" in
16131
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16132
  *) ac_try_echo=$ac_try;;
16133
esac
16134
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16135
$as_echo "$ac_try_echo") >&5
16136
  (eval "$ac_compile") 2>conftest.er1
16137
  ac_status=$?
16138
  grep -v '^ *+' conftest.er1 >conftest.err
16139
  rm -f conftest.er1
16140
  cat conftest.err >&5
16141
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142
  (exit $ac_status); } && {
16143
         test -z "$ac_c_werror_flag" ||
16144
         test ! -s conftest.err
16145
       } && test -s conftest.$ac_objext; then
16146
  ac_hi=$ac_mid
16147
else
16148
  $as_echo "$as_me: failed program was:" >&5
16149
sed 's/^/| /' conftest.$ac_ext >&5
16150
 
16151
        ac_lo=`expr '(' $ac_mid ')' + 1`
16152
fi
16153
 
16154
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16155
done
16156
case $ac_lo in
16157
?*) ac_cv_sizeof_char=$ac_lo;;
16158
'') if test "$ac_cv_type_char" = yes; then
16159
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16160 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16161 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16162
See \`config.log' for more details." >&5
16163
$as_echo "$as_me: error: cannot compute sizeof (char)
16164
See \`config.log' for more details." >&2;}
16165
   { (exit 77); exit 77; }; }; }
16166 19 jeremybenn
   else
16167
     ac_cv_sizeof_char=0
16168 121 jeremybenn
   fi ;;
16169
esac
16170
else
16171
  cat >conftest.$ac_ext <<_ACEOF
16172
/* confdefs.h.  */
16173
_ACEOF
16174
cat confdefs.h >>conftest.$ac_ext
16175
cat >>conftest.$ac_ext <<_ACEOF
16176
/* end confdefs.h.  */
16177
$ac_includes_default
16178
static long int longval () { return (long int) (sizeof (char)); }
16179
static unsigned long int ulongval () { return (long int) (sizeof (char)); }
16180
#include 
16181
#include 
16182
int
16183
main ()
16184
{
16185
 
16186
  FILE *f = fopen ("conftest.val", "w");
16187
  if (! f)
16188
    return 1;
16189
  if (((long int) (sizeof (char))) < 0)
16190
    {
16191
      long int i = longval ();
16192
      if (i != ((long int) (sizeof (char))))
16193
        return 1;
16194
      fprintf (f, "%ld", i);
16195
    }
16196
  else
16197
    {
16198
      unsigned long int i = ulongval ();
16199
      if (i != ((long int) (sizeof (char))))
16200
        return 1;
16201
      fprintf (f, "%lu", i);
16202
    }
16203
  /* Do not output a trailing newline, as this causes \r\n confusion
16204
     on some platforms.  */
16205
  return ferror (f) || fclose (f) != 0;
16206
 
16207
  ;
16208
  return 0;
16209
}
16210
_ACEOF
16211
rm -f conftest$ac_exeext
16212
if { (ac_try="$ac_link"
16213
case "(($ac_try" in
16214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215
  *) ac_try_echo=$ac_try;;
16216
esac
16217
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16218
$as_echo "$ac_try_echo") >&5
16219
  (eval "$ac_link") 2>&5
16220
  ac_status=$?
16221
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16223
  { (case "(($ac_try" in
16224
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225
  *) ac_try_echo=$ac_try;;
16226
esac
16227
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16228
$as_echo "$ac_try_echo") >&5
16229
  (eval "$ac_try") 2>&5
16230
  ac_status=$?
16231
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232
  (exit $ac_status); }; }; then
16233
  ac_cv_sizeof_char=`cat conftest.val`
16234
else
16235
  $as_echo "$as_me: program exited with status $ac_status" >&5
16236
$as_echo "$as_me: failed program was:" >&5
16237
sed 's/^/| /' conftest.$ac_ext >&5
16238
 
16239
( exit $ac_status )
16240
if test "$ac_cv_type_char" = yes; then
16241
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16242
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16243
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16244
See \`config.log' for more details." >&5
16245
$as_echo "$as_me: error: cannot compute sizeof (char)
16246
See \`config.log' for more details." >&2;}
16247
   { (exit 77); exit 77; }; }; }
16248
   else
16249
     ac_cv_sizeof_char=0
16250 19 jeremybenn
   fi
16251
fi
16252 121 jeremybenn
rm -rf conftest.dSYM
16253
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16254 19 jeremybenn
fi
16255 121 jeremybenn
rm -f conftest.val
16256
fi
16257
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16258 82 jeremybenn
$as_echo "$ac_cv_sizeof_char" >&6; }
16259 19 jeremybenn
 
16260
 
16261
 
16262
cat >>confdefs.h <<_ACEOF
16263
#define SIZEOF_CHAR $ac_cv_sizeof_char
16264
_ACEOF
16265
 
16266
 
16267
# The cast to long int works around a bug in the HP C Compiler
16268
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16269
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16270
# This bug is HP SR number 8606223364.
16271 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
16272 82 jeremybenn
$as_echo_n "checking size of short... " >&6; }
16273 121 jeremybenn
if test "${ac_cv_sizeof_short+set}" = set; then
16274 82 jeremybenn
  $as_echo_n "(cached) " >&6
16275 19 jeremybenn
else
16276 121 jeremybenn
  if test "$cross_compiling" = yes; then
16277
  # Depending upon the size, compute the lo and hi bounds.
16278
cat >conftest.$ac_ext <<_ACEOF
16279
/* confdefs.h.  */
16280
_ACEOF
16281
cat confdefs.h >>conftest.$ac_ext
16282
cat >>conftest.$ac_ext <<_ACEOF
16283
/* end confdefs.h.  */
16284
$ac_includes_default
16285
int
16286
main ()
16287
{
16288
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
16289
test_array [0] = 0
16290 19 jeremybenn
 
16291 121 jeremybenn
  ;
16292
  return 0;
16293
}
16294
_ACEOF
16295
rm -f conftest.$ac_objext
16296
if { (ac_try="$ac_compile"
16297
case "(($ac_try" in
16298
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299
  *) ac_try_echo=$ac_try;;
16300
esac
16301
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16302
$as_echo "$ac_try_echo") >&5
16303
  (eval "$ac_compile") 2>conftest.er1
16304
  ac_status=$?
16305
  grep -v '^ *+' conftest.er1 >conftest.err
16306
  rm -f conftest.er1
16307
  cat conftest.err >&5
16308
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309
  (exit $ac_status); } && {
16310
         test -z "$ac_c_werror_flag" ||
16311
         test ! -s conftest.err
16312
       } && test -s conftest.$ac_objext; then
16313
  ac_lo=0 ac_mid=0
16314
  while :; do
16315
    cat >conftest.$ac_ext <<_ACEOF
16316
/* confdefs.h.  */
16317
_ACEOF
16318
cat confdefs.h >>conftest.$ac_ext
16319
cat >>conftest.$ac_ext <<_ACEOF
16320
/* end confdefs.h.  */
16321
$ac_includes_default
16322
int
16323
main ()
16324
{
16325
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16326
test_array [0] = 0
16327
 
16328
  ;
16329
  return 0;
16330
}
16331
_ACEOF
16332
rm -f conftest.$ac_objext
16333
if { (ac_try="$ac_compile"
16334
case "(($ac_try" in
16335
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336
  *) ac_try_echo=$ac_try;;
16337
esac
16338
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16339
$as_echo "$ac_try_echo") >&5
16340
  (eval "$ac_compile") 2>conftest.er1
16341
  ac_status=$?
16342
  grep -v '^ *+' conftest.er1 >conftest.err
16343
  rm -f conftest.er1
16344
  cat conftest.err >&5
16345
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346
  (exit $ac_status); } && {
16347
         test -z "$ac_c_werror_flag" ||
16348
         test ! -s conftest.err
16349
       } && test -s conftest.$ac_objext; then
16350
  ac_hi=$ac_mid; break
16351 19 jeremybenn
else
16352 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16353
sed 's/^/| /' conftest.$ac_ext >&5
16354
 
16355
        ac_lo=`expr $ac_mid + 1`
16356
                        if test $ac_lo -le $ac_mid; then
16357
                          ac_lo= ac_hi=
16358
                          break
16359
                        fi
16360
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16361
fi
16362
 
16363
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16364
  done
16365
else
16366
  $as_echo "$as_me: failed program was:" >&5
16367
sed 's/^/| /' conftest.$ac_ext >&5
16368
 
16369
        cat >conftest.$ac_ext <<_ACEOF
16370
/* confdefs.h.  */
16371
_ACEOF
16372
cat confdefs.h >>conftest.$ac_ext
16373
cat >>conftest.$ac_ext <<_ACEOF
16374
/* end confdefs.h.  */
16375
$ac_includes_default
16376
int
16377
main ()
16378
{
16379
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
16380
test_array [0] = 0
16381
 
16382
  ;
16383
  return 0;
16384
}
16385
_ACEOF
16386
rm -f conftest.$ac_objext
16387
if { (ac_try="$ac_compile"
16388
case "(($ac_try" in
16389
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390
  *) ac_try_echo=$ac_try;;
16391
esac
16392
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16393
$as_echo "$ac_try_echo") >&5
16394
  (eval "$ac_compile") 2>conftest.er1
16395
  ac_status=$?
16396
  grep -v '^ *+' conftest.er1 >conftest.err
16397
  rm -f conftest.er1
16398
  cat conftest.err >&5
16399
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400
  (exit $ac_status); } && {
16401
         test -z "$ac_c_werror_flag" ||
16402
         test ! -s conftest.err
16403
       } && test -s conftest.$ac_objext; then
16404
  ac_hi=-1 ac_mid=-1
16405
  while :; do
16406
    cat >conftest.$ac_ext <<_ACEOF
16407
/* confdefs.h.  */
16408
_ACEOF
16409
cat confdefs.h >>conftest.$ac_ext
16410
cat >>conftest.$ac_ext <<_ACEOF
16411
/* end confdefs.h.  */
16412
$ac_includes_default
16413
int
16414
main ()
16415
{
16416
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
16417
test_array [0] = 0
16418
 
16419
  ;
16420
  return 0;
16421
}
16422
_ACEOF
16423
rm -f conftest.$ac_objext
16424
if { (ac_try="$ac_compile"
16425
case "(($ac_try" in
16426
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427
  *) ac_try_echo=$ac_try;;
16428
esac
16429
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16430
$as_echo "$ac_try_echo") >&5
16431
  (eval "$ac_compile") 2>conftest.er1
16432
  ac_status=$?
16433
  grep -v '^ *+' conftest.er1 >conftest.err
16434
  rm -f conftest.er1
16435
  cat conftest.err >&5
16436
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437
  (exit $ac_status); } && {
16438
         test -z "$ac_c_werror_flag" ||
16439
         test ! -s conftest.err
16440
       } && test -s conftest.$ac_objext; then
16441
  ac_lo=$ac_mid; break
16442
else
16443
  $as_echo "$as_me: failed program was:" >&5
16444
sed 's/^/| /' conftest.$ac_ext >&5
16445
 
16446
        ac_hi=`expr '(' $ac_mid ')' - 1`
16447
                        if test $ac_mid -le $ac_hi; then
16448
                          ac_lo= ac_hi=
16449
                          break
16450
                        fi
16451
                        ac_mid=`expr 2 '*' $ac_mid`
16452
fi
16453
 
16454
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16455
  done
16456
else
16457
  $as_echo "$as_me: failed program was:" >&5
16458
sed 's/^/| /' conftest.$ac_ext >&5
16459
 
16460
        ac_lo= ac_hi=
16461
fi
16462
 
16463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464
fi
16465
 
16466
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16467
# Binary search between lo and hi bounds.
16468
while test "x$ac_lo" != "x$ac_hi"; do
16469
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16470
  cat >conftest.$ac_ext <<_ACEOF
16471
/* confdefs.h.  */
16472
_ACEOF
16473
cat confdefs.h >>conftest.$ac_ext
16474
cat >>conftest.$ac_ext <<_ACEOF
16475
/* end confdefs.h.  */
16476
$ac_includes_default
16477
int
16478
main ()
16479
{
16480
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16481
test_array [0] = 0
16482
 
16483
  ;
16484
  return 0;
16485
}
16486
_ACEOF
16487
rm -f conftest.$ac_objext
16488
if { (ac_try="$ac_compile"
16489
case "(($ac_try" in
16490
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491
  *) ac_try_echo=$ac_try;;
16492
esac
16493
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16494
$as_echo "$ac_try_echo") >&5
16495
  (eval "$ac_compile") 2>conftest.er1
16496
  ac_status=$?
16497
  grep -v '^ *+' conftest.er1 >conftest.err
16498
  rm -f conftest.er1
16499
  cat conftest.err >&5
16500
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501
  (exit $ac_status); } && {
16502
         test -z "$ac_c_werror_flag" ||
16503
         test ! -s conftest.err
16504
       } && test -s conftest.$ac_objext; then
16505
  ac_hi=$ac_mid
16506
else
16507
  $as_echo "$as_me: failed program was:" >&5
16508
sed 's/^/| /' conftest.$ac_ext >&5
16509
 
16510
        ac_lo=`expr '(' $ac_mid ')' + 1`
16511
fi
16512
 
16513
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514
done
16515
case $ac_lo in
16516
?*) ac_cv_sizeof_short=$ac_lo;;
16517
'') if test "$ac_cv_type_short" = yes; then
16518
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16519 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16520 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16521
See \`config.log' for more details." >&5
16522
$as_echo "$as_me: error: cannot compute sizeof (short)
16523
See \`config.log' for more details." >&2;}
16524
   { (exit 77); exit 77; }; }; }
16525 19 jeremybenn
   else
16526
     ac_cv_sizeof_short=0
16527 121 jeremybenn
   fi ;;
16528
esac
16529
else
16530
  cat >conftest.$ac_ext <<_ACEOF
16531
/* confdefs.h.  */
16532
_ACEOF
16533
cat confdefs.h >>conftest.$ac_ext
16534
cat >>conftest.$ac_ext <<_ACEOF
16535
/* end confdefs.h.  */
16536
$ac_includes_default
16537
static long int longval () { return (long int) (sizeof (short)); }
16538
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
16539
#include 
16540
#include 
16541
int
16542
main ()
16543
{
16544
 
16545
  FILE *f = fopen ("conftest.val", "w");
16546
  if (! f)
16547
    return 1;
16548
  if (((long int) (sizeof (short))) < 0)
16549
    {
16550
      long int i = longval ();
16551
      if (i != ((long int) (sizeof (short))))
16552
        return 1;
16553
      fprintf (f, "%ld", i);
16554
    }
16555
  else
16556
    {
16557
      unsigned long int i = ulongval ();
16558
      if (i != ((long int) (sizeof (short))))
16559
        return 1;
16560
      fprintf (f, "%lu", i);
16561
    }
16562
  /* Do not output a trailing newline, as this causes \r\n confusion
16563
     on some platforms.  */
16564
  return ferror (f) || fclose (f) != 0;
16565
 
16566
  ;
16567
  return 0;
16568
}
16569
_ACEOF
16570
rm -f conftest$ac_exeext
16571
if { (ac_try="$ac_link"
16572
case "(($ac_try" in
16573
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574
  *) ac_try_echo=$ac_try;;
16575
esac
16576
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16577
$as_echo "$ac_try_echo") >&5
16578
  (eval "$ac_link") 2>&5
16579
  ac_status=$?
16580
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16582
  { (case "(($ac_try" in
16583
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584
  *) ac_try_echo=$ac_try;;
16585
esac
16586
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16587
$as_echo "$ac_try_echo") >&5
16588
  (eval "$ac_try") 2>&5
16589
  ac_status=$?
16590
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591
  (exit $ac_status); }; }; then
16592
  ac_cv_sizeof_short=`cat conftest.val`
16593
else
16594
  $as_echo "$as_me: program exited with status $ac_status" >&5
16595
$as_echo "$as_me: failed program was:" >&5
16596
sed 's/^/| /' conftest.$ac_ext >&5
16597
 
16598
( exit $ac_status )
16599
if test "$ac_cv_type_short" = yes; then
16600
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16601
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16602
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16603
See \`config.log' for more details." >&5
16604
$as_echo "$as_me: error: cannot compute sizeof (short)
16605
See \`config.log' for more details." >&2;}
16606
   { (exit 77); exit 77; }; }; }
16607
   else
16608
     ac_cv_sizeof_short=0
16609 19 jeremybenn
   fi
16610
fi
16611 121 jeremybenn
rm -rf conftest.dSYM
16612
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16613 19 jeremybenn
fi
16614 121 jeremybenn
rm -f conftest.val
16615
fi
16616
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16617 82 jeremybenn
$as_echo "$ac_cv_sizeof_short" >&6; }
16618 19 jeremybenn
 
16619
 
16620
 
16621
cat >>confdefs.h <<_ACEOF
16622
#define SIZEOF_SHORT $ac_cv_sizeof_short
16623
_ACEOF
16624
 
16625
 
16626
# The cast to long int works around a bug in the HP C Compiler
16627
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16628
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16629
# This bug is HP SR number 8606223364.
16630 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
16631 82 jeremybenn
$as_echo_n "checking size of int... " >&6; }
16632 121 jeremybenn
if test "${ac_cv_sizeof_int+set}" = set; then
16633 82 jeremybenn
  $as_echo_n "(cached) " >&6
16634 19 jeremybenn
else
16635 121 jeremybenn
  if test "$cross_compiling" = yes; then
16636
  # Depending upon the size, compute the lo and hi bounds.
16637
cat >conftest.$ac_ext <<_ACEOF
16638
/* confdefs.h.  */
16639
_ACEOF
16640
cat confdefs.h >>conftest.$ac_ext
16641
cat >>conftest.$ac_ext <<_ACEOF
16642
/* end confdefs.h.  */
16643
$ac_includes_default
16644
int
16645
main ()
16646
{
16647
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
16648
test_array [0] = 0
16649 19 jeremybenn
 
16650 121 jeremybenn
  ;
16651
  return 0;
16652
}
16653
_ACEOF
16654
rm -f conftest.$ac_objext
16655
if { (ac_try="$ac_compile"
16656
case "(($ac_try" in
16657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658
  *) ac_try_echo=$ac_try;;
16659
esac
16660
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16661
$as_echo "$ac_try_echo") >&5
16662
  (eval "$ac_compile") 2>conftest.er1
16663
  ac_status=$?
16664
  grep -v '^ *+' conftest.er1 >conftest.err
16665
  rm -f conftest.er1
16666
  cat conftest.err >&5
16667
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668
  (exit $ac_status); } && {
16669
         test -z "$ac_c_werror_flag" ||
16670
         test ! -s conftest.err
16671
       } && test -s conftest.$ac_objext; then
16672
  ac_lo=0 ac_mid=0
16673
  while :; do
16674
    cat >conftest.$ac_ext <<_ACEOF
16675
/* confdefs.h.  */
16676
_ACEOF
16677
cat confdefs.h >>conftest.$ac_ext
16678
cat >>conftest.$ac_ext <<_ACEOF
16679
/* end confdefs.h.  */
16680
$ac_includes_default
16681
int
16682
main ()
16683
{
16684
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16685
test_array [0] = 0
16686
 
16687
  ;
16688
  return 0;
16689
}
16690
_ACEOF
16691
rm -f conftest.$ac_objext
16692
if { (ac_try="$ac_compile"
16693
case "(($ac_try" in
16694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695
  *) ac_try_echo=$ac_try;;
16696
esac
16697
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16698
$as_echo "$ac_try_echo") >&5
16699
  (eval "$ac_compile") 2>conftest.er1
16700
  ac_status=$?
16701
  grep -v '^ *+' conftest.er1 >conftest.err
16702
  rm -f conftest.er1
16703
  cat conftest.err >&5
16704
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705
  (exit $ac_status); } && {
16706
         test -z "$ac_c_werror_flag" ||
16707
         test ! -s conftest.err
16708
       } && test -s conftest.$ac_objext; then
16709
  ac_hi=$ac_mid; break
16710 19 jeremybenn
else
16711 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16712
sed 's/^/| /' conftest.$ac_ext >&5
16713
 
16714
        ac_lo=`expr $ac_mid + 1`
16715
                        if test $ac_lo -le $ac_mid; then
16716
                          ac_lo= ac_hi=
16717
                          break
16718
                        fi
16719
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16720
fi
16721
 
16722
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16723
  done
16724
else
16725
  $as_echo "$as_me: failed program was:" >&5
16726
sed 's/^/| /' conftest.$ac_ext >&5
16727
 
16728
        cat >conftest.$ac_ext <<_ACEOF
16729
/* confdefs.h.  */
16730
_ACEOF
16731
cat confdefs.h >>conftest.$ac_ext
16732
cat >>conftest.$ac_ext <<_ACEOF
16733
/* end confdefs.h.  */
16734
$ac_includes_default
16735
int
16736
main ()
16737
{
16738
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
16739
test_array [0] = 0
16740
 
16741
  ;
16742
  return 0;
16743
}
16744
_ACEOF
16745
rm -f conftest.$ac_objext
16746
if { (ac_try="$ac_compile"
16747
case "(($ac_try" in
16748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749
  *) ac_try_echo=$ac_try;;
16750
esac
16751
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16752
$as_echo "$ac_try_echo") >&5
16753
  (eval "$ac_compile") 2>conftest.er1
16754
  ac_status=$?
16755
  grep -v '^ *+' conftest.er1 >conftest.err
16756
  rm -f conftest.er1
16757
  cat conftest.err >&5
16758
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759
  (exit $ac_status); } && {
16760
         test -z "$ac_c_werror_flag" ||
16761
         test ! -s conftest.err
16762
       } && test -s conftest.$ac_objext; then
16763
  ac_hi=-1 ac_mid=-1
16764
  while :; do
16765
    cat >conftest.$ac_ext <<_ACEOF
16766
/* confdefs.h.  */
16767
_ACEOF
16768
cat confdefs.h >>conftest.$ac_ext
16769
cat >>conftest.$ac_ext <<_ACEOF
16770
/* end confdefs.h.  */
16771
$ac_includes_default
16772
int
16773
main ()
16774
{
16775
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
16776
test_array [0] = 0
16777
 
16778
  ;
16779
  return 0;
16780
}
16781
_ACEOF
16782
rm -f conftest.$ac_objext
16783
if { (ac_try="$ac_compile"
16784
case "(($ac_try" in
16785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786
  *) ac_try_echo=$ac_try;;
16787
esac
16788
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16789
$as_echo "$ac_try_echo") >&5
16790
  (eval "$ac_compile") 2>conftest.er1
16791
  ac_status=$?
16792
  grep -v '^ *+' conftest.er1 >conftest.err
16793
  rm -f conftest.er1
16794
  cat conftest.err >&5
16795
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796
  (exit $ac_status); } && {
16797
         test -z "$ac_c_werror_flag" ||
16798
         test ! -s conftest.err
16799
       } && test -s conftest.$ac_objext; then
16800
  ac_lo=$ac_mid; break
16801
else
16802
  $as_echo "$as_me: failed program was:" >&5
16803
sed 's/^/| /' conftest.$ac_ext >&5
16804
 
16805
        ac_hi=`expr '(' $ac_mid ')' - 1`
16806
                        if test $ac_mid -le $ac_hi; then
16807
                          ac_lo= ac_hi=
16808
                          break
16809
                        fi
16810
                        ac_mid=`expr 2 '*' $ac_mid`
16811
fi
16812
 
16813
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16814
  done
16815
else
16816
  $as_echo "$as_me: failed program was:" >&5
16817
sed 's/^/| /' conftest.$ac_ext >&5
16818
 
16819
        ac_lo= ac_hi=
16820
fi
16821
 
16822
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16823
fi
16824
 
16825
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16826
# Binary search between lo and hi bounds.
16827
while test "x$ac_lo" != "x$ac_hi"; do
16828
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16829
  cat >conftest.$ac_ext <<_ACEOF
16830
/* confdefs.h.  */
16831
_ACEOF
16832
cat confdefs.h >>conftest.$ac_ext
16833
cat >>conftest.$ac_ext <<_ACEOF
16834
/* end confdefs.h.  */
16835
$ac_includes_default
16836
int
16837
main ()
16838
{
16839
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16840
test_array [0] = 0
16841
 
16842
  ;
16843
  return 0;
16844
}
16845
_ACEOF
16846
rm -f conftest.$ac_objext
16847
if { (ac_try="$ac_compile"
16848
case "(($ac_try" in
16849
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850
  *) ac_try_echo=$ac_try;;
16851
esac
16852
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16853
$as_echo "$ac_try_echo") >&5
16854
  (eval "$ac_compile") 2>conftest.er1
16855
  ac_status=$?
16856
  grep -v '^ *+' conftest.er1 >conftest.err
16857
  rm -f conftest.er1
16858
  cat conftest.err >&5
16859
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860
  (exit $ac_status); } && {
16861
         test -z "$ac_c_werror_flag" ||
16862
         test ! -s conftest.err
16863
       } && test -s conftest.$ac_objext; then
16864
  ac_hi=$ac_mid
16865
else
16866
  $as_echo "$as_me: failed program was:" >&5
16867
sed 's/^/| /' conftest.$ac_ext >&5
16868
 
16869
        ac_lo=`expr '(' $ac_mid ')' + 1`
16870
fi
16871
 
16872
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873
done
16874
case $ac_lo in
16875
?*) ac_cv_sizeof_int=$ac_lo;;
16876
'') if test "$ac_cv_type_int" = yes; then
16877
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16878 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16879 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16880
See \`config.log' for more details." >&5
16881
$as_echo "$as_me: error: cannot compute sizeof (int)
16882
See \`config.log' for more details." >&2;}
16883
   { (exit 77); exit 77; }; }; }
16884 19 jeremybenn
   else
16885
     ac_cv_sizeof_int=0
16886 121 jeremybenn
   fi ;;
16887
esac
16888
else
16889
  cat >conftest.$ac_ext <<_ACEOF
16890
/* confdefs.h.  */
16891
_ACEOF
16892
cat confdefs.h >>conftest.$ac_ext
16893
cat >>conftest.$ac_ext <<_ACEOF
16894
/* end confdefs.h.  */
16895
$ac_includes_default
16896
static long int longval () { return (long int) (sizeof (int)); }
16897
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
16898
#include 
16899
#include 
16900
int
16901
main ()
16902
{
16903
 
16904
  FILE *f = fopen ("conftest.val", "w");
16905
  if (! f)
16906
    return 1;
16907
  if (((long int) (sizeof (int))) < 0)
16908
    {
16909
      long int i = longval ();
16910
      if (i != ((long int) (sizeof (int))))
16911
        return 1;
16912
      fprintf (f, "%ld", i);
16913
    }
16914
  else
16915
    {
16916
      unsigned long int i = ulongval ();
16917
      if (i != ((long int) (sizeof (int))))
16918
        return 1;
16919
      fprintf (f, "%lu", i);
16920
    }
16921
  /* Do not output a trailing newline, as this causes \r\n confusion
16922
     on some platforms.  */
16923
  return ferror (f) || fclose (f) != 0;
16924
 
16925
  ;
16926
  return 0;
16927
}
16928
_ACEOF
16929
rm -f conftest$ac_exeext
16930
if { (ac_try="$ac_link"
16931
case "(($ac_try" in
16932
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933
  *) ac_try_echo=$ac_try;;
16934
esac
16935
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16936
$as_echo "$ac_try_echo") >&5
16937
  (eval "$ac_link") 2>&5
16938
  ac_status=$?
16939
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16941
  { (case "(($ac_try" in
16942
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943
  *) ac_try_echo=$ac_try;;
16944
esac
16945
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16946
$as_echo "$ac_try_echo") >&5
16947
  (eval "$ac_try") 2>&5
16948
  ac_status=$?
16949
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950
  (exit $ac_status); }; }; then
16951
  ac_cv_sizeof_int=`cat conftest.val`
16952
else
16953
  $as_echo "$as_me: program exited with status $ac_status" >&5
16954
$as_echo "$as_me: failed program was:" >&5
16955
sed 's/^/| /' conftest.$ac_ext >&5
16956
 
16957
( exit $ac_status )
16958
if test "$ac_cv_type_int" = yes; then
16959
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16960
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16961
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16962
See \`config.log' for more details." >&5
16963
$as_echo "$as_me: error: cannot compute sizeof (int)
16964
See \`config.log' for more details." >&2;}
16965
   { (exit 77); exit 77; }; }; }
16966
   else
16967
     ac_cv_sizeof_int=0
16968 19 jeremybenn
   fi
16969
fi
16970 121 jeremybenn
rm -rf conftest.dSYM
16971
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16972 19 jeremybenn
fi
16973 121 jeremybenn
rm -f conftest.val
16974
fi
16975
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16976 82 jeremybenn
$as_echo "$ac_cv_sizeof_int" >&6; }
16977 19 jeremybenn
 
16978
 
16979
 
16980
cat >>confdefs.h <<_ACEOF
16981
#define SIZEOF_INT $ac_cv_sizeof_int
16982
_ACEOF
16983
 
16984
 
16985
# The cast to long int works around a bug in the HP C Compiler
16986
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16987
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16988
# This bug is HP SR number 8606223364.
16989 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
16990 82 jeremybenn
$as_echo_n "checking size of long... " >&6; }
16991 121 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then
16992 82 jeremybenn
  $as_echo_n "(cached) " >&6
16993 19 jeremybenn
else
16994 121 jeremybenn
  if test "$cross_compiling" = yes; then
16995
  # Depending upon the size, compute the lo and hi bounds.
16996
cat >conftest.$ac_ext <<_ACEOF
16997
/* confdefs.h.  */
16998
_ACEOF
16999
cat confdefs.h >>conftest.$ac_ext
17000
cat >>conftest.$ac_ext <<_ACEOF
17001
/* end confdefs.h.  */
17002
$ac_includes_default
17003
int
17004
main ()
17005
{
17006
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
17007
test_array [0] = 0
17008 19 jeremybenn
 
17009 121 jeremybenn
  ;
17010
  return 0;
17011
}
17012
_ACEOF
17013
rm -f conftest.$ac_objext
17014
if { (ac_try="$ac_compile"
17015
case "(($ac_try" in
17016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017
  *) ac_try_echo=$ac_try;;
17018
esac
17019
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17020
$as_echo "$ac_try_echo") >&5
17021
  (eval "$ac_compile") 2>conftest.er1
17022
  ac_status=$?
17023
  grep -v '^ *+' conftest.er1 >conftest.err
17024
  rm -f conftest.er1
17025
  cat conftest.err >&5
17026
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027
  (exit $ac_status); } && {
17028
         test -z "$ac_c_werror_flag" ||
17029
         test ! -s conftest.err
17030
       } && test -s conftest.$ac_objext; then
17031
  ac_lo=0 ac_mid=0
17032
  while :; do
17033
    cat >conftest.$ac_ext <<_ACEOF
17034
/* confdefs.h.  */
17035
_ACEOF
17036
cat confdefs.h >>conftest.$ac_ext
17037
cat >>conftest.$ac_ext <<_ACEOF
17038
/* end confdefs.h.  */
17039
$ac_includes_default
17040
int
17041
main ()
17042
{
17043
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
17044
test_array [0] = 0
17045
 
17046
  ;
17047
  return 0;
17048
}
17049
_ACEOF
17050
rm -f conftest.$ac_objext
17051
if { (ac_try="$ac_compile"
17052
case "(($ac_try" in
17053
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054
  *) ac_try_echo=$ac_try;;
17055
esac
17056
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17057
$as_echo "$ac_try_echo") >&5
17058
  (eval "$ac_compile") 2>conftest.er1
17059
  ac_status=$?
17060
  grep -v '^ *+' conftest.er1 >conftest.err
17061
  rm -f conftest.er1
17062
  cat conftest.err >&5
17063
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064
  (exit $ac_status); } && {
17065
         test -z "$ac_c_werror_flag" ||
17066
         test ! -s conftest.err
17067
       } && test -s conftest.$ac_objext; then
17068
  ac_hi=$ac_mid; break
17069 19 jeremybenn
else
17070 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17071
sed 's/^/| /' conftest.$ac_ext >&5
17072
 
17073
        ac_lo=`expr $ac_mid + 1`
17074
                        if test $ac_lo -le $ac_mid; then
17075
                          ac_lo= ac_hi=
17076
                          break
17077
                        fi
17078
                        ac_mid=`expr 2 '*' $ac_mid + 1`
17079
fi
17080
 
17081
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17082
  done
17083
else
17084
  $as_echo "$as_me: failed program was:" >&5
17085
sed 's/^/| /' conftest.$ac_ext >&5
17086
 
17087
        cat >conftest.$ac_ext <<_ACEOF
17088
/* confdefs.h.  */
17089
_ACEOF
17090
cat confdefs.h >>conftest.$ac_ext
17091
cat >>conftest.$ac_ext <<_ACEOF
17092
/* end confdefs.h.  */
17093
$ac_includes_default
17094
int
17095
main ()
17096
{
17097
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
17098
test_array [0] = 0
17099
 
17100
  ;
17101
  return 0;
17102
}
17103
_ACEOF
17104
rm -f conftest.$ac_objext
17105
if { (ac_try="$ac_compile"
17106
case "(($ac_try" in
17107
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108
  *) ac_try_echo=$ac_try;;
17109
esac
17110
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17111
$as_echo "$ac_try_echo") >&5
17112
  (eval "$ac_compile") 2>conftest.er1
17113
  ac_status=$?
17114
  grep -v '^ *+' conftest.er1 >conftest.err
17115
  rm -f conftest.er1
17116
  cat conftest.err >&5
17117
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118
  (exit $ac_status); } && {
17119
         test -z "$ac_c_werror_flag" ||
17120
         test ! -s conftest.err
17121
       } && test -s conftest.$ac_objext; then
17122
  ac_hi=-1 ac_mid=-1
17123
  while :; do
17124
    cat >conftest.$ac_ext <<_ACEOF
17125
/* confdefs.h.  */
17126
_ACEOF
17127
cat confdefs.h >>conftest.$ac_ext
17128
cat >>conftest.$ac_ext <<_ACEOF
17129
/* end confdefs.h.  */
17130
$ac_includes_default
17131
int
17132
main ()
17133
{
17134
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
17135
test_array [0] = 0
17136
 
17137
  ;
17138
  return 0;
17139
}
17140
_ACEOF
17141
rm -f conftest.$ac_objext
17142
if { (ac_try="$ac_compile"
17143
case "(($ac_try" in
17144
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145
  *) ac_try_echo=$ac_try;;
17146
esac
17147
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17148
$as_echo "$ac_try_echo") >&5
17149
  (eval "$ac_compile") 2>conftest.er1
17150
  ac_status=$?
17151
  grep -v '^ *+' conftest.er1 >conftest.err
17152
  rm -f conftest.er1
17153
  cat conftest.err >&5
17154
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155
  (exit $ac_status); } && {
17156
         test -z "$ac_c_werror_flag" ||
17157
         test ! -s conftest.err
17158
       } && test -s conftest.$ac_objext; then
17159
  ac_lo=$ac_mid; break
17160
else
17161
  $as_echo "$as_me: failed program was:" >&5
17162
sed 's/^/| /' conftest.$ac_ext >&5
17163
 
17164
        ac_hi=`expr '(' $ac_mid ')' - 1`
17165
                        if test $ac_mid -le $ac_hi; then
17166
                          ac_lo= ac_hi=
17167
                          break
17168
                        fi
17169
                        ac_mid=`expr 2 '*' $ac_mid`
17170
fi
17171
 
17172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17173
  done
17174
else
17175
  $as_echo "$as_me: failed program was:" >&5
17176
sed 's/^/| /' conftest.$ac_ext >&5
17177
 
17178
        ac_lo= ac_hi=
17179
fi
17180
 
17181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17182
fi
17183
 
17184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17185
# Binary search between lo and hi bounds.
17186
while test "x$ac_lo" != "x$ac_hi"; do
17187
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17188
  cat >conftest.$ac_ext <<_ACEOF
17189
/* confdefs.h.  */
17190
_ACEOF
17191
cat confdefs.h >>conftest.$ac_ext
17192
cat >>conftest.$ac_ext <<_ACEOF
17193
/* end confdefs.h.  */
17194
$ac_includes_default
17195
int
17196
main ()
17197
{
17198
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
17199
test_array [0] = 0
17200
 
17201
  ;
17202
  return 0;
17203
}
17204
_ACEOF
17205
rm -f conftest.$ac_objext
17206
if { (ac_try="$ac_compile"
17207
case "(($ac_try" in
17208
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209
  *) ac_try_echo=$ac_try;;
17210
esac
17211
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17212
$as_echo "$ac_try_echo") >&5
17213
  (eval "$ac_compile") 2>conftest.er1
17214
  ac_status=$?
17215
  grep -v '^ *+' conftest.er1 >conftest.err
17216
  rm -f conftest.er1
17217
  cat conftest.err >&5
17218
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219
  (exit $ac_status); } && {
17220
         test -z "$ac_c_werror_flag" ||
17221
         test ! -s conftest.err
17222
       } && test -s conftest.$ac_objext; then
17223
  ac_hi=$ac_mid
17224
else
17225
  $as_echo "$as_me: failed program was:" >&5
17226
sed 's/^/| /' conftest.$ac_ext >&5
17227
 
17228
        ac_lo=`expr '(' $ac_mid ')' + 1`
17229
fi
17230
 
17231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17232
done
17233
case $ac_lo in
17234
?*) ac_cv_sizeof_long=$ac_lo;;
17235
'') if test "$ac_cv_type_long" = yes; then
17236
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17237 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17238 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17239
See \`config.log' for more details." >&5
17240
$as_echo "$as_me: error: cannot compute sizeof (long)
17241
See \`config.log' for more details." >&2;}
17242
   { (exit 77); exit 77; }; }; }
17243 19 jeremybenn
   else
17244
     ac_cv_sizeof_long=0
17245 121 jeremybenn
   fi ;;
17246
esac
17247
else
17248
  cat >conftest.$ac_ext <<_ACEOF
17249
/* confdefs.h.  */
17250
_ACEOF
17251
cat confdefs.h >>conftest.$ac_ext
17252
cat >>conftest.$ac_ext <<_ACEOF
17253
/* end confdefs.h.  */
17254
$ac_includes_default
17255
static long int longval () { return (long int) (sizeof (long)); }
17256
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
17257
#include 
17258
#include 
17259
int
17260
main ()
17261
{
17262
 
17263
  FILE *f = fopen ("conftest.val", "w");
17264
  if (! f)
17265
    return 1;
17266
  if (((long int) (sizeof (long))) < 0)
17267
    {
17268
      long int i = longval ();
17269
      if (i != ((long int) (sizeof (long))))
17270
        return 1;
17271
      fprintf (f, "%ld", i);
17272
    }
17273
  else
17274
    {
17275
      unsigned long int i = ulongval ();
17276
      if (i != ((long int) (sizeof (long))))
17277
        return 1;
17278
      fprintf (f, "%lu", i);
17279
    }
17280
  /* Do not output a trailing newline, as this causes \r\n confusion
17281
     on some platforms.  */
17282
  return ferror (f) || fclose (f) != 0;
17283
 
17284
  ;
17285
  return 0;
17286
}
17287
_ACEOF
17288
rm -f conftest$ac_exeext
17289
if { (ac_try="$ac_link"
17290
case "(($ac_try" in
17291
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292
  *) ac_try_echo=$ac_try;;
17293
esac
17294
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17295
$as_echo "$ac_try_echo") >&5
17296
  (eval "$ac_link") 2>&5
17297
  ac_status=$?
17298
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17300
  { (case "(($ac_try" in
17301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302
  *) ac_try_echo=$ac_try;;
17303
esac
17304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17305
$as_echo "$ac_try_echo") >&5
17306
  (eval "$ac_try") 2>&5
17307
  ac_status=$?
17308
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309
  (exit $ac_status); }; }; then
17310
  ac_cv_sizeof_long=`cat conftest.val`
17311
else
17312
  $as_echo "$as_me: program exited with status $ac_status" >&5
17313
$as_echo "$as_me: failed program was:" >&5
17314
sed 's/^/| /' conftest.$ac_ext >&5
17315
 
17316
( exit $ac_status )
17317
if test "$ac_cv_type_long" = yes; then
17318
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17319
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17320
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17321
See \`config.log' for more details." >&5
17322
$as_echo "$as_me: error: cannot compute sizeof (long)
17323
See \`config.log' for more details." >&2;}
17324
   { (exit 77); exit 77; }; }; }
17325
   else
17326
     ac_cv_sizeof_long=0
17327 19 jeremybenn
   fi
17328
fi
17329 121 jeremybenn
rm -rf conftest.dSYM
17330
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17331 19 jeremybenn
fi
17332 121 jeremybenn
rm -f conftest.val
17333
fi
17334
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17335 82 jeremybenn
$as_echo "$ac_cv_sizeof_long" >&6; }
17336 19 jeremybenn
 
17337
 
17338
 
17339
cat >>confdefs.h <<_ACEOF
17340
#define SIZEOF_LONG $ac_cv_sizeof_long
17341
_ACEOF
17342
 
17343
 
17344
 
17345
#Check for compare function type for qsort (needed by some Linuxes)
17346 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for __compar_fn_t" >&5
17347
$as_echo_n "checking for __compar_fn_t... " >&6; }
17348
if test "${ac_cv_type___compar_fn_t+set}" = set; then
17349
  $as_echo_n "(cached) " >&6
17350
else
17351
  ac_cv_type___compar_fn_t=no
17352
cat >conftest.$ac_ext <<_ACEOF
17353
/* confdefs.h.  */
17354
_ACEOF
17355
cat confdefs.h >>conftest.$ac_ext
17356
cat >>conftest.$ac_ext <<_ACEOF
17357
/* end confdefs.h.  */
17358
$ac_includes_default
17359
int
17360
main ()
17361
{
17362
if (sizeof (__compar_fn_t))
17363
       return 0;
17364
  ;
17365
  return 0;
17366
}
17367
_ACEOF
17368
rm -f conftest.$ac_objext
17369
if { (ac_try="$ac_compile"
17370
case "(($ac_try" in
17371
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372
  *) ac_try_echo=$ac_try;;
17373
esac
17374
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17375
$as_echo "$ac_try_echo") >&5
17376
  (eval "$ac_compile") 2>conftest.er1
17377
  ac_status=$?
17378
  grep -v '^ *+' conftest.er1 >conftest.err
17379
  rm -f conftest.er1
17380
  cat conftest.err >&5
17381
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382
  (exit $ac_status); } && {
17383
         test -z "$ac_c_werror_flag" ||
17384
         test ! -s conftest.err
17385
       } && test -s conftest.$ac_objext; then
17386
  cat >conftest.$ac_ext <<_ACEOF
17387
/* confdefs.h.  */
17388
_ACEOF
17389
cat confdefs.h >>conftest.$ac_ext
17390
cat >>conftest.$ac_ext <<_ACEOF
17391
/* end confdefs.h.  */
17392
$ac_includes_default
17393
int
17394
main ()
17395
{
17396
if (sizeof ((__compar_fn_t)))
17397
          return 0;
17398
  ;
17399
  return 0;
17400
}
17401
_ACEOF
17402
rm -f conftest.$ac_objext
17403
if { (ac_try="$ac_compile"
17404
case "(($ac_try" in
17405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406
  *) ac_try_echo=$ac_try;;
17407
esac
17408
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17409
$as_echo "$ac_try_echo") >&5
17410
  (eval "$ac_compile") 2>conftest.er1
17411
  ac_status=$?
17412
  grep -v '^ *+' conftest.er1 >conftest.err
17413
  rm -f conftest.er1
17414
  cat conftest.err >&5
17415
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416
  (exit $ac_status); } && {
17417
         test -z "$ac_c_werror_flag" ||
17418
         test ! -s conftest.err
17419
       } && test -s conftest.$ac_objext; then
17420
  :
17421
else
17422
  $as_echo "$as_me: failed program was:" >&5
17423
sed 's/^/| /' conftest.$ac_ext >&5
17424 19 jeremybenn
 
17425 121 jeremybenn
        ac_cv_type___compar_fn_t=yes
17426
fi
17427
 
17428
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17429
else
17430
  $as_echo "$as_me: failed program was:" >&5
17431
sed 's/^/| /' conftest.$ac_ext >&5
17432
 
17433
 
17434
fi
17435
 
17436
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17437
fi
17438
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type___compar_fn_t" >&5
17439
$as_echo "$ac_cv_type___compar_fn_t" >&6; }
17440
if test "x$ac_cv_type___compar_fn_t" = x""yes; then
17441
 
17442 19 jeremybenn
cat >>confdefs.h <<_ACEOF
17443
#define HAVE___COMPAR_FN_T 1
17444
_ACEOF
17445
 
17446
 
17447
fi
17448
 
17449
 
17450
# check for GNU readline
17451 121 jeremybenn
 
17452
{ $as_echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
17453 82 jeremybenn
$as_echo_n "checking for add_history in -lreadline... " >&6; }
17454 121 jeremybenn
if test "${ac_cv_lib_readline_add_history+set}" = set; then
17455 82 jeremybenn
  $as_echo_n "(cached) " >&6
17456 19 jeremybenn
else
17457
  ac_check_lib_save_LIBS=$LIBS
17458
LIBS="-lreadline  $LIBS"
17459 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
17460
/* confdefs.h.  */
17461
_ACEOF
17462
cat confdefs.h >>conftest.$ac_ext
17463
cat >>conftest.$ac_ext <<_ACEOF
17464 19 jeremybenn
/* end confdefs.h.  */
17465
 
17466
/* Override any GCC internal prototype to avoid an error.
17467
   Use char because int might match the return type of a GCC
17468
   builtin and then its argument prototype would still apply.  */
17469
#ifdef __cplusplus
17470
extern "C"
17471
#endif
17472
char add_history ();
17473
int
17474
main ()
17475
{
17476
return add_history ();
17477
  ;
17478
  return 0;
17479
}
17480
_ACEOF
17481 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
17482
if { (ac_try="$ac_link"
17483
case "(($ac_try" in
17484
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485
  *) ac_try_echo=$ac_try;;
17486
esac
17487
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17488
$as_echo "$ac_try_echo") >&5
17489
  (eval "$ac_link") 2>conftest.er1
17490
  ac_status=$?
17491
  grep -v '^ *+' conftest.er1 >conftest.err
17492
  rm -f conftest.er1
17493
  cat conftest.err >&5
17494
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495
  (exit $ac_status); } && {
17496
         test -z "$ac_c_werror_flag" ||
17497
         test ! -s conftest.err
17498
       } && test -s conftest$ac_exeext && {
17499
         test "$cross_compiling" = yes ||
17500
         $as_test_x conftest$ac_exeext
17501
       }; then
17502 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
17503
else
17504 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17505
sed 's/^/| /' conftest.$ac_ext >&5
17506
 
17507
        ac_cv_lib_readline_add_history=no
17508 19 jeremybenn
fi
17509 121 jeremybenn
 
17510
rm -rf conftest.dSYM
17511
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17512
      conftest$ac_exeext conftest.$ac_ext
17513 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
17514
fi
17515 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
17516 82 jeremybenn
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
17517 121 jeremybenn
if test "x$ac_cv_lib_readline_add_history" = x""yes; then
17518 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
17519
#define HAVE_LIBREADLINE 1
17520
_ACEOF
17521
 
17522
  LIBS="-lreadline $LIBS"
17523
 
17524
fi
17525
 
17526
 
17527
# yuck
17528
case "$host_os" in
17529
aix*)   prefer_curses=yes ;;
17530
esac
17531
 
17532
case "$host_cpu" in
17533
*cray*) LOCAL_CFLAGS=-DCRAY ;;
17534
esac
17535
 
17536
case "$host_os" in
17537
isc*)   LOCAL_CFLAGS=-Disc386 ;;
17538
esac
17539
 
17540
case "$host_os" in
17541
solaris*) LIBS="-lsocket -lnsl" ;;
17542
esac
17543
 
17544
# define options
17545 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable profiling" >&5
17546 82 jeremybenn
$as_echo_n "checking whether to enable profiling... " >&6; }
17547 19 jeremybenn
# Check whether --enable-profiling was given.
17548 121 jeremybenn
if test "${enable_profiling+set}" = set; then
17549 19 jeremybenn
  enableval=$enable_profiling;
17550
    case "$enableval" in
17551
        yes) profile="-pg" ;;
17552
    esac
17553
 
17554
fi
17555
 
17556 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
17557 82 jeremybenn
$as_echo "${enable_profiling-no}" >&6; }
17558 19 jeremybenn
 
17559
execution="1"
17560
 
17561
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17562 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking which execution style to use" >&5
17563 82 jeremybenn
$as_echo_n "checking which execution style to use... " >&6; }
17564 19 jeremybenn
# Check whether --enable-execution was given.
17565 121 jeremybenn
if test "${enable_execution+set}" = set; then
17566 19 jeremybenn
  enableval=$enable_execution;
17567
    case "$enableval" in
17568
    simple)
17569
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17570
      execution="0"
17571 121 jeremybenn
      { $as_echo "$as_me:$LINENO: result: simple" >&5
17572 82 jeremybenn
$as_echo "simple" >&6; }
17573 19 jeremybenn
      ;;
17574
    complex)
17575
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17576
      execution="1"
17577 121 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17578 82 jeremybenn
$as_echo "complex" >&6; }
17579 19 jeremybenn
      ;;
17580
    dynamic)
17581
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17582
      execution="2"
17583 121 jeremybenn
      { $as_echo "$as_me:$LINENO: result: dynamic" >&5
17584 82 jeremybenn
$as_echo "dynamic" >&6; }
17585 19 jeremybenn
      ;;
17586
    *)
17587 124 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: \"execution must one of simple/complex/dynamic\"" >&5
17588
$as_echo "$as_me: error: \"execution must one of simple/complex/dynamic\"" >&2;}
17589 121 jeremybenn
   { (exit 1); exit 1; }; }
17590 19 jeremybenn
      ;;
17591
    esac
17592
 
17593
else
17594
 
17595 121 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17596 82 jeremybenn
$as_echo "complex" >&6; }
17597 19 jeremybenn
 
17598
fi
17599
 
17600
 
17601
eth_phy="0"
17602 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
17603 82 jeremybenn
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
17604 19 jeremybenn
# Check whether --enable-ethphy was given.
17605 121 jeremybenn
if test "${enable_ethphy+set}" = set; then
17606 19 jeremybenn
  enableval=$enable_ethphy;
17607
    case "$enableval" in
17608
  no)  eth_phy="0" ;;
17609
        yes) eth_phy="1" ;;
17610
    esac
17611
 
17612
fi
17613
 
17614 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
17615 82 jeremybenn
$as_echo "${enable_eth_phy-no}" >&6; }
17616 19 jeremybenn
 
17617
 
17618
raw_range_stats="0"
17619 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
17620 82 jeremybenn
$as_echo_n "checking whether to use raw range stats... " >&6; }
17621 19 jeremybenn
# Check whether --enable-range_stats was given.
17622 121 jeremybenn
if test "${enable_range_stats+set}" = set; then
17623 19 jeremybenn
  enableval=$enable_range_stats;
17624
    case "$enableval" in
17625
  no)  raw_range_stats="0" ;;
17626
        yes) raw_range_stats="1" simple_execution="1" ;;
17627
    esac
17628
 
17629
fi
17630
 
17631 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
17632 82 jeremybenn
$as_echo "${enable_range_stats-no}" >&6; }
17633 19 jeremybenn
 
17634
# check for --enable-debug argument (for argtable2)
17635
# Check whether --enable-debug was given.
17636 121 jeremybenn
if test "${enable_debug+set}" = set; then
17637 19 jeremybenn
  enableval=$enable_debug;
17638
       case $enableval in
17639
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
17640
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
17641
          *)   echo "illegal argument to --enable-debug" & exit 1;;
17642
       esac
17643
 
17644
else
17645
  DEBUGFLAGS="-DNDEBUG"
17646
 
17647
fi
17648
 
17649
 
17650
 
17651
 
17652
cat >>confdefs.h <<_ACEOF
17653
#define RAW_RANGE_STATS $raw_range_stats
17654
_ACEOF
17655
 
17656
 
17657
cat >>confdefs.h <<_ACEOF
17658
#define HAVE_ETH_PHY $eth_phy
17659
_ACEOF
17660
 
17661
 
17662
cat >>confdefs.h <<_ACEOF
17663
#define SIMPLE_EXECUTION $execution == 0
17664
_ACEOF
17665
 
17666
 
17667
cat >>confdefs.h <<_ACEOF
17668
#define COMPLEX_EXECUTION $execution == 1
17669
_ACEOF
17670
 
17671
 
17672
cat >>confdefs.h <<_ACEOF
17673
#define DYNAMIC_EXECUTION $execution == 2
17674
_ACEOF
17675
 
17676
 if test x$execution = x1; then
17677
  GENERATE_NEEDED_TRUE=
17678
  GENERATE_NEEDED_FALSE='#'
17679
else
17680
  GENERATE_NEEDED_TRUE='#'
17681
  GENERATE_NEEDED_FALSE=
17682
fi
17683
 
17684
 if test x$execution = x2; then
17685
  DYNAMIC_EXECUTION_TRUE=
17686
  DYNAMIC_EXECUTION_FALSE='#'
17687
else
17688
  DYNAMIC_EXECUTION_TRUE='#'
17689
  DYNAMIC_EXECUTION_FALSE=
17690
fi
17691
 
17692
 
17693
 
17694
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
17695
 
17696 90 jeremybenn
# Check for a DejaGNU global config file. If not set, then set it
17697
# ourselves. This stops runtest complaining
17698
if test x"$DEJAGNU" = x
17699
then
17700 96 jeremybenn
  DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
17701 90 jeremybenn
fi
17702
 
17703 96 jeremybenn
 
17704
 
17705
# The following line will override the default definition of the srcdir, and
17706
# ensure that short names are used for the test names.
17707
RUNTESTDEFAULTFLAGS="--tool \$\$tool"
17708
 
17709
 
17710 19 jeremybenn
BUILD_DIR=`pwd`
17711
 
17712
 
17713
 
17714
 
17715
 
17716
 
17717
 
17718
 
17719
 
17720
 
17721
 
17722
 
17723
 
17724
 
17725
 
17726
 
17727
 
17728
 
17729 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
17730
#define HAVE_EXECUTION 1
17731
_ACEOF
17732 19 jeremybenn
 
17733
 
17734
# yuck
17735
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
17736
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
17737
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
17738
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
17739
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
17740
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
17741
 
17742
 
17743 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"
17744 19 jeremybenn
 
17745
 
17746
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
17747
case "$CPU_ARCH" in
17748
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
17749
;;
17750
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
17751
;;
17752
esac
17753
 
17754 82 jeremybenn
# Generate the output
17755
 
17756
 
17757 19 jeremybenn
cat >confcache <<\_ACEOF
17758
# This file is a shell script that caches the results of configure
17759
# tests run on this system so they can be shared between configure
17760
# scripts and configure runs, see configure's option --config-cache.
17761
# It is not useful on other systems.  If it contains results you don't
17762
# want to keep, you may remove or edit it.
17763
#
17764
# config.status only pays attention to the cache file if you give it
17765
# the --recheck option to rerun configure.
17766
#
17767
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17768
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17769
# following values.
17770
 
17771
_ACEOF
17772
 
17773
# The following way of writing the cache mishandles newlines in values,
17774
# but we know of no workaround that is simple, portable, and efficient.
17775
# So, we kill variables containing newlines.
17776
# Ultrix sh set writes to stderr and can't be redirected directly,
17777
# and sets the high bit in the cache file unless we assign to the vars.
17778
(
17779
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17780
    eval ac_val=\$$ac_var
17781
    case $ac_val in #(
17782
    *${as_nl}*)
17783
      case $ac_var in #(
17784 121 jeremybenn
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17785 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17786 19 jeremybenn
      esac
17787
      case $ac_var in #(
17788
      _ | IFS | as_nl) ;; #(
17789 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17790 121 jeremybenn
      *) $as_unset $ac_var ;;
17791 19 jeremybenn
      esac ;;
17792
    esac
17793
  done
17794
 
17795
  (set) 2>&1 |
17796
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17797
    *${as_nl}ac_space=\ *)
17798 121 jeremybenn
      # `set' does not quote correctly, so add quotes (double-quote
17799
      # substitution turns \\\\ into \\, and sed turns \\ into \).
17800 19 jeremybenn
      sed -n \
17801
        "s/'/'\\\\''/g;
17802
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17803
      ;; #(
17804
    *)
17805
      # `set' quotes correctly as required by POSIX, so do not add quotes.
17806
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17807
      ;;
17808
    esac |
17809
    sort
17810
) |
17811
  sed '
17812
     /^ac_cv_env_/b end
17813
     t clear
17814
     :clear
17815
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17816
     t end
17817
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17818
     :end' >>confcache
17819
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17820
  if test -w "$cache_file"; then
17821
    test "x$cache_file" != "x/dev/null" &&
17822 121 jeremybenn
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17823 82 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
17824 19 jeremybenn
    cat confcache >$cache_file
17825
  else
17826 121 jeremybenn
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17827 82 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17828 19 jeremybenn
  fi
17829
fi
17830
rm -f confcache
17831
 
17832
test "x$prefix" = xNONE && prefix=$ac_default_prefix
17833
# Let make expand exec_prefix.
17834
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17835
 
17836
DEFS=-DHAVE_CONFIG_H
17837
 
17838
ac_libobjs=
17839
ac_ltlibobjs=
17840
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17841
  # 1. Remove the extension, and $U if already installed.
17842
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17843 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17844 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17845
  #    will be set to the directory where LIBOBJS objects are built.
17846 121 jeremybenn
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17847
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17848 19 jeremybenn
done
17849
LIBOBJS=$ac_libobjs
17850
 
17851
LTLIBOBJS=$ac_ltlibobjs
17852
 
17853
 
17854
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17855 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17856
Usually this means the macro was only invoked conditionally." >&5
17857
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17858
Usually this means the macro was only invoked conditionally." >&2;}
17859
   { (exit 1); exit 1; }; }
17860 19 jeremybenn
fi
17861
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17862 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17863
Usually this means the macro was only invoked conditionally." >&5
17864
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17865
Usually this means the macro was only invoked conditionally." >&2;}
17866
   { (exit 1); exit 1; }; }
17867 19 jeremybenn
fi
17868 82 jeremybenn
 if test -n "$EXEEXT"; then
17869
  am__EXEEXT_TRUE=
17870
  am__EXEEXT_FALSE='#'
17871
else
17872
  am__EXEEXT_TRUE='#'
17873
  am__EXEEXT_FALSE=
17874
fi
17875
 
17876
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17877 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
17878
Usually this means the macro was only invoked conditionally." >&5
17879
$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
17880
Usually this means the macro was only invoked conditionally." >&2;}
17881
   { (exit 1); exit 1; }; }
17882 19 jeremybenn
fi
17883 82 jeremybenn
 
17884 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
17885 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
17886
Usually this means the macro was only invoked conditionally." >&5
17887
$as_echo "$as_me: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
17888
Usually this means the macro was only invoked conditionally." >&2;}
17889
   { (exit 1); exit 1; }; }
17890 19 jeremybenn
fi
17891
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
17892 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGREX\" was never defined.
17893
Usually this means the macro was only invoked conditionally." >&5
17894
$as_echo "$as_me: error: conditional \"USE_ARGREX\" was never defined.
17895
Usually this means the macro was only invoked conditionally." >&2;}
17896
   { (exit 1); exit 1; }; }
17897 19 jeremybenn
fi
17898
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
17899 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGDATE\" was never defined.
17900
Usually this means the macro was only invoked conditionally." >&5
17901
$as_echo "$as_me: error: conditional \"USE_ARGDATE\" 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 "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
17906 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
17907
Usually this means the macro was only invoked conditionally." >&5
17908
$as_echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
17909
Usually this means the macro was only invoked conditionally." >&2;}
17910
   { (exit 1); exit 1; }; }
17911 19 jeremybenn
fi
17912
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
17913 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
17914
Usually this means the macro was only invoked conditionally." >&5
17915
$as_echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
17916
Usually this means the macro was only invoked conditionally." >&2;}
17917
   { (exit 1); exit 1; }; }
17918 19 jeremybenn
fi
17919
 
17920
: ${CONFIG_STATUS=./config.status}
17921 82 jeremybenn
ac_write_fail=0
17922 19 jeremybenn
ac_clean_files_save=$ac_clean_files
17923
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17924 121 jeremybenn
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17925 82 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17926 121 jeremybenn
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17927 19 jeremybenn
#! $SHELL
17928
# Generated by $as_me.
17929
# Run this file to recreate the current configuration.
17930
# Compiler output produced by configure, useful for debugging
17931
# configure, is in config.log if it exists.
17932
 
17933
debug=false
17934
ac_cs_recheck=false
17935
ac_cs_silent=false
17936
SHELL=\${CONFIG_SHELL-$SHELL}
17937 121 jeremybenn
_ACEOF
17938 19 jeremybenn
 
17939 121 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17940
## --------------------- ##
17941
## M4sh Initialization.  ##
17942
## --------------------- ##
17943
 
17944 19 jeremybenn
# Be more Bourne compatible
17945
DUALCASE=1; export DUALCASE # for MKS sh
17946 121 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17947 19 jeremybenn
  emulate sh
17948
  NULLCMD=:
17949 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17950 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
17951
  alias -g '${1+"$@"}'='"$@"'
17952
  setopt NO_GLOB_SUBST
17953
else
17954 121 jeremybenn
  case `(set -o) 2>/dev/null` in
17955
  *posix*) set -o posix ;;
17956 19 jeremybenn
esac
17957 121 jeremybenn
 
17958 19 jeremybenn
fi
17959
 
17960
 
17961 121 jeremybenn
 
17962
 
17963
# PATH needs CR
17964
# Avoid depending upon Character Ranges.
17965
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17966
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17967
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17968
as_cr_digits='0123456789'
17969
as_cr_alnum=$as_cr_Letters$as_cr_digits
17970
 
17971 82 jeremybenn
as_nl='
17972
'
17973
export as_nl
17974
# Printing a long string crashes Solaris 7 /usr/bin/printf.
17975
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17976
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17977
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17978 121 jeremybenn
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17979 82 jeremybenn
  as_echo='printf %s\n'
17980
  as_echo_n='printf %s'
17981
else
17982
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17983
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17984
    as_echo_n='/usr/ucb/echo -n'
17985 19 jeremybenn
  else
17986 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17987
    as_echo_n_body='eval
17988
      arg=$1;
17989 121 jeremybenn
      case $arg in
17990 82 jeremybenn
      *"$as_nl"*)
17991
        expr "X$arg" : "X\\(.*\\)$as_nl";
17992
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17993
      esac;
17994
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17995
    '
17996
    export as_echo_n_body
17997
    as_echo_n='sh -c $as_echo_n_body as_echo'
17998 19 jeremybenn
  fi
17999 82 jeremybenn
  export as_echo_body
18000
  as_echo='sh -c $as_echo_body as_echo'
18001 19 jeremybenn
fi
18002
 
18003 82 jeremybenn
# The user is always right.
18004
if test "${PATH_SEPARATOR+set}" != set; then
18005
  PATH_SEPARATOR=:
18006
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18007
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18008
      PATH_SEPARATOR=';'
18009
  }
18010
fi
18011
 
18012 121 jeremybenn
# Support unset when possible.
18013
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18014
  as_unset=unset
18015
else
18016
  as_unset=false
18017
fi
18018 19 jeremybenn
 
18019 121 jeremybenn
 
18020 19 jeremybenn
# IFS
18021
# We need space, tab and new line, in precisely that order.  Quoting is
18022
# there to prevent editors from complaining about space-tab.
18023
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18024
# splitting by setting IFS to empty value.)
18025
IFS=" ""        $as_nl"
18026
 
18027
# Find who we are.  Look in the path if we contain no directory separator.
18028 121 jeremybenn
case $0 in
18029 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
18030
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18031
for as_dir in $PATH
18032
do
18033
  IFS=$as_save_IFS
18034
  test -z "$as_dir" && as_dir=.
18035 121 jeremybenn
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18036
done
18037 19 jeremybenn
IFS=$as_save_IFS
18038
 
18039
     ;;
18040
esac
18041
# We did not find ourselves, most probably we were run as `sh COMMAND'
18042
# in which case we are not to be found in the path.
18043
if test "x$as_myself" = x; then
18044
  as_myself=$0
18045
fi
18046
if test ! -f "$as_myself"; then
18047 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18048 121 jeremybenn
  { (exit 1); exit 1; }
18049 19 jeremybenn
fi
18050
 
18051 121 jeremybenn
# Work around bugs in pre-3.0 UWIN ksh.
18052
for as_var in ENV MAIL MAILPATH
18053
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18054 19 jeremybenn
done
18055
PS1='$ '
18056
PS2='> '
18057
PS4='+ '
18058
 
18059
# NLS nuisances.
18060 82 jeremybenn
LC_ALL=C
18061
export LC_ALL
18062
LANGUAGE=C
18063
export LANGUAGE
18064 19 jeremybenn
 
18065 121 jeremybenn
# Required to use basename.
18066 19 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
18067
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18068
  as_expr=expr
18069
else
18070
  as_expr=false
18071
fi
18072
 
18073
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18074
  as_basename=basename
18075
else
18076
  as_basename=false
18077
fi
18078
 
18079
 
18080 121 jeremybenn
# Name of the executable.
18081 19 jeremybenn
as_me=`$as_basename -- "$0" ||
18082
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18083
         X"$0" : 'X\(//\)$' \| \
18084
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18085 82 jeremybenn
$as_echo X/"$0" |
18086 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
18087
            s//\1/
18088
            q
18089
          }
18090
          /^X\/\(\/\/\)$/{
18091
            s//\1/
18092
            q
18093
          }
18094
          /^X\/\(\/\).*/{
18095
            s//\1/
18096
            q
18097
          }
18098
          s/.*/./; q'`
18099
 
18100 121 jeremybenn
# CDPATH.
18101
$as_unset CDPATH
18102 19 jeremybenn
 
18103 121 jeremybenn
 
18104
 
18105
  as_lineno_1=$LINENO
18106
  as_lineno_2=$LINENO
18107
  test "x$as_lineno_1" != "x$as_lineno_2" &&
18108
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18109
 
18110
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18111
  # uniformly replaced by the line number.  The first 'sed' inserts a
18112
  # line-number line after each line using $LINENO; the second 'sed'
18113
  # does the real work.  The second script uses 'N' to pair each
18114
  # line-number line with the line containing $LINENO, and appends
18115
  # trailing '-' during substitution so that $LINENO is not a special
18116
  # case at line end.
18117
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18118
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
18119
  # E. McMahon (1931-1989) for sed's syntax.  :-)
18120
  sed -n '
18121
    p
18122
    /[$]LINENO/=
18123
  ' <$as_myself |
18124
    sed '
18125
      s/[$]LINENO.*/&-/
18126
      t lineno
18127
      b
18128
      :lineno
18129
      N
18130
      :loop
18131
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18132
      t loop
18133
      s/-\n.*//
18134
    ' >$as_me.lineno &&
18135
  chmod +x "$as_me.lineno" ||
18136
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18137
   { (exit 1); exit 1; }; }
18138
 
18139
  # Don't try to exec as it changes $[0], causing all sort of problems
18140
  # (the dirname of $[0] is not the place where we might find the
18141
  # original and so on.  Autoconf is especially sensitive to this).
18142
  . "./$as_me.lineno"
18143
  # Exit status is that of the last command.
18144
  exit
18145
}
18146
 
18147
 
18148
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18149
  as_dirname=dirname
18150
else
18151
  as_dirname=false
18152
fi
18153
 
18154 19 jeremybenn
ECHO_C= ECHO_N= ECHO_T=
18155 121 jeremybenn
case `echo -n x` in
18156 19 jeremybenn
-n*)
18157 121 jeremybenn
  case `echo 'x\c'` in
18158 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18159 121 jeremybenn
  *)   ECHO_C='\c';;
18160 19 jeremybenn
  esac;;
18161
*)
18162
  ECHO_N='-n';;
18163
esac
18164 121 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
18165
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18166
  as_expr=expr
18167
else
18168
  as_expr=false
18169
fi
18170 19 jeremybenn
 
18171
rm -f conf$$ conf$$.exe conf$$.file
18172
if test -d conf$$.dir; then
18173
  rm -f conf$$.dir/conf$$.file
18174
else
18175
  rm -f conf$$.dir
18176 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
18177 19 jeremybenn
fi
18178 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
18179
  if ln -s conf$$.file conf$$ 2>/dev/null; then
18180
    as_ln_s='ln -s'
18181
    # ... but there are two gotchas:
18182
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18183
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18184
    # In both cases, we have to default to `cp -p'.
18185
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18186
      as_ln_s='cp -p'
18187
  elif ln conf$$.file conf$$ 2>/dev/null; then
18188
    as_ln_s=ln
18189
  else
18190 19 jeremybenn
    as_ln_s='cp -p'
18191 82 jeremybenn
  fi
18192 19 jeremybenn
else
18193
  as_ln_s='cp -p'
18194
fi
18195
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18196
rmdir conf$$.dir 2>/dev/null
18197
 
18198
if mkdir -p . 2>/dev/null; then
18199 121 jeremybenn
  as_mkdir_p=:
18200 19 jeremybenn
else
18201
  test -d ./-p && rmdir ./-p
18202
  as_mkdir_p=false
18203
fi
18204
 
18205
if test -x / >/dev/null 2>&1; then
18206
  as_test_x='test -x'
18207
else
18208
  if ls -dL / >/dev/null 2>&1; then
18209
    as_ls_L_option=L
18210
  else
18211
    as_ls_L_option=
18212
  fi
18213
  as_test_x='
18214
    eval sh -c '\''
18215
      if test -d "$1"; then
18216 82 jeremybenn
        test -d "$1/.";
18217 19 jeremybenn
      else
18218 121 jeremybenn
        case $1 in
18219 82 jeremybenn
        -*)set "./$1";;
18220 19 jeremybenn
        esac;
18221 121 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18222 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
18223
    '\'' sh
18224
  '
18225
fi
18226
as_executable_p=$as_test_x
18227
 
18228
# Sed expression to map a string onto a valid CPP name.
18229
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18230
 
18231
# Sed expression to map a string onto a valid variable name.
18232
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18233
 
18234
 
18235
exec 6>&1
18236
 
18237 121 jeremybenn
# Save the log message, to keep $[0] and so on meaningful, and to
18238 19 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
18239
# values after options handling.
18240
ac_log="
18241 123 jeremybenn
This file was extended by or1ksim $as_me 2010-06-15, which was
18242 121 jeremybenn
generated by GNU Autoconf 2.63.  Invocation command line was
18243 19 jeremybenn
 
18244
  CONFIG_FILES    = $CONFIG_FILES
18245
  CONFIG_HEADERS  = $CONFIG_HEADERS
18246
  CONFIG_LINKS    = $CONFIG_LINKS
18247
  CONFIG_COMMANDS = $CONFIG_COMMANDS
18248
  $ $0 $@
18249
 
18250
on `(hostname || uname -n) 2>/dev/null | sed 1q`
18251
"
18252
 
18253
_ACEOF
18254
 
18255 82 jeremybenn
case $ac_config_files in *"
18256
"*) set x $ac_config_files; shift; ac_config_files=$*;;
18257
esac
18258
 
18259
case $ac_config_headers in *"
18260
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18261
esac
18262
 
18263
 
18264
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18265 19 jeremybenn
# Files that config.status was made for.
18266
config_files="$ac_config_files"
18267
config_headers="$ac_config_headers"
18268
config_commands="$ac_config_commands"
18269
 
18270
_ACEOF
18271
 
18272 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18273 19 jeremybenn
ac_cs_usage="\
18274 121 jeremybenn
\`$as_me' instantiates files from templates according to the
18275
current configuration.
18276 19 jeremybenn
 
18277 121 jeremybenn
Usage: $0 [OPTION]... [FILE]...
18278 19 jeremybenn
 
18279
  -h, --help       print this help, then exit
18280
  -V, --version    print version number and configuration settings, then exit
18281 82 jeremybenn
  -q, --quiet, --silent
18282
                   do not print progress messages
18283 19 jeremybenn
  -d, --debug      don't remove temporary files
18284
      --recheck    update $as_me by reconfiguring in the same conditions
18285 82 jeremybenn
      --file=FILE[:TEMPLATE]
18286
                   instantiate the configuration file FILE
18287
      --header=FILE[:TEMPLATE]
18288
                   instantiate the configuration header FILE
18289 19 jeremybenn
 
18290
Configuration files:
18291
$config_files
18292
 
18293
Configuration headers:
18294
$config_headers
18295
 
18296
Configuration commands:
18297
$config_commands
18298
 
18299 121 jeremybenn
Report bugs to ."
18300 19 jeremybenn
 
18301
_ACEOF
18302 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18303 19 jeremybenn
ac_cs_version="\\
18304 123 jeremybenn
or1ksim config.status 2010-06-15
18305 121 jeremybenn
configured by $0, generated by GNU Autoconf 2.63,
18306
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18307 19 jeremybenn
 
18308 121 jeremybenn
Copyright (C) 2008 Free Software Foundation, Inc.
18309 19 jeremybenn
This config.status script is free software; the Free Software Foundation
18310
gives unlimited permission to copy, distribute and modify it."
18311
 
18312
ac_pwd='$ac_pwd'
18313
srcdir='$srcdir'
18314
INSTALL='$INSTALL'
18315
MKDIR_P='$MKDIR_P'
18316 82 jeremybenn
AWK='$AWK'
18317
test -n "\$AWK" || AWK=awk
18318 19 jeremybenn
_ACEOF
18319
 
18320 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18321
# The default lists apply if the user does not specify any file.
18322 19 jeremybenn
ac_need_defaults=:
18323
while test $# != 0
18324
do
18325
  case $1 in
18326
  --*=*)
18327
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18328
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18329
    ac_shift=:
18330
    ;;
18331
  *)
18332
    ac_option=$1
18333
    ac_optarg=$2
18334
    ac_shift=shift
18335
    ;;
18336
  esac
18337
 
18338
  case $ac_option in
18339
  # Handling of the options.
18340
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18341
    ac_cs_recheck=: ;;
18342
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18343 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
18344 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
18345
    debug=: ;;
18346
  --file | --fil | --fi | --f )
18347
    $ac_shift
18348 82 jeremybenn
    case $ac_optarg in
18349
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18350
    esac
18351 121 jeremybenn
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18352 19 jeremybenn
    ac_need_defaults=false;;
18353
  --header | --heade | --head | --hea )
18354
    $ac_shift
18355 82 jeremybenn
    case $ac_optarg in
18356
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18357
    esac
18358 121 jeremybenn
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18359 19 jeremybenn
    ac_need_defaults=false;;
18360
  --he | --h)
18361
    # Conflict between --help and --header
18362 121 jeremybenn
    { $as_echo "$as_me: error: ambiguous option: $1
18363
Try \`$0 --help' for more information." >&2
18364
   { (exit 1); exit 1; }; };;
18365 19 jeremybenn
  --help | --hel | -h )
18366 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
18367 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18368
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18369
    ac_cs_silent=: ;;
18370
 
18371
  # This is an error.
18372 121 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $1
18373
Try \`$0 --help' for more information." >&2
18374
   { (exit 1); exit 1; }; } ;;
18375 19 jeremybenn
 
18376 121 jeremybenn
  *) ac_config_targets="$ac_config_targets $1"
18377 19 jeremybenn
     ac_need_defaults=false ;;
18378
 
18379
  esac
18380
  shift
18381
done
18382
 
18383
ac_configure_extra_args=
18384
 
18385
if $ac_cs_silent; then
18386
  exec 6>/dev/null
18387
  ac_configure_extra_args="$ac_configure_extra_args --silent"
18388
fi
18389
 
18390
_ACEOF
18391 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18392 19 jeremybenn
if \$ac_cs_recheck; then
18393 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18394
  shift
18395
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18396
  CONFIG_SHELL='$SHELL'
18397 19 jeremybenn
  export CONFIG_SHELL
18398 82 jeremybenn
  exec "\$@"
18399 19 jeremybenn
fi
18400
 
18401
_ACEOF
18402 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18403 19 jeremybenn
exec 5>>config.log
18404
{
18405
  echo
18406
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18407
## Running $as_me. ##
18408
_ASBOX
18409 82 jeremybenn
  $as_echo "$ac_log"
18410 19 jeremybenn
} >&5
18411
 
18412
_ACEOF
18413 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18414 19 jeremybenn
#
18415
# INIT-COMMANDS
18416
#
18417 82 jeremybenn
 
18418
 
18419
# The HP-UX ksh and POSIX shell print the target directory to stdout
18420
# if CDPATH is set.
18421
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18422
 
18423
sed_quote_subst='$sed_quote_subst'
18424
double_quote_subst='$double_quote_subst'
18425
delay_variable_subst='$delay_variable_subst'
18426
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18427
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18428
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18429
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18430
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18431
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18432
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18433
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18434
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18435
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18436
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18437
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18438
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18439
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18440
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18441
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18442
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18443
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18444
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18445
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18446
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18447
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18448
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18449
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18450
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18451
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18452
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18453
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18454
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18455
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18456
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18457
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18458
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18459
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18460
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18461
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18462
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18463
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18464
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18465
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18466
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18467
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18468
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18469
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18470
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"`'
18471
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"`'
18472
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18473
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18474
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18475
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18476
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18477
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18478
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18479
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18480
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18481
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18482
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18483
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18484
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18485
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18486
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18487
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18488
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18489
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18490
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18491
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18492
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18493
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18494
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18495
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18496
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18497
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18498
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18499
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18500
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18501
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18502
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18503
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18504
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18505
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18506
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18507
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18508
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18509
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18510
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18511
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18512
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18513
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18514
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18515
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18516
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18517
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18518
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18519
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18520
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18521
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18522
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18523
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18524
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18525
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18526
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18527
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18528
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18529
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18530
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18531
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18532
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18533
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18534
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18535
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18536
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18537
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18538
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18539
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18540
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18541
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18542
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18543
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18544
 
18545
LTCC='$LTCC'
18546
LTCFLAGS='$LTCFLAGS'
18547
compiler='$compiler_DEFAULT'
18548
 
18549
# Quote evaled strings.
18550
for var in SED \
18551
GREP \
18552
EGREP \
18553
FGREP \
18554
LD \
18555
NM \
18556
LN_S \
18557
lt_SP2NL \
18558
lt_NL2SP \
18559
reload_flag \
18560
OBJDUMP \
18561
deplibs_check_method \
18562
file_magic_cmd \
18563
AR \
18564
AR_FLAGS \
18565
STRIP \
18566
RANLIB \
18567
CC \
18568
CFLAGS \
18569
compiler \
18570
lt_cv_sys_global_symbol_pipe \
18571
lt_cv_sys_global_symbol_to_cdecl \
18572
lt_cv_sys_global_symbol_to_c_name_address \
18573
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18574
SHELL \
18575
ECHO \
18576
lt_prog_compiler_no_builtin_flag \
18577
lt_prog_compiler_wl \
18578
lt_prog_compiler_pic \
18579
lt_prog_compiler_static \
18580
lt_cv_prog_compiler_c_o \
18581
need_locks \
18582
DSYMUTIL \
18583
NMEDIT \
18584
LIPO \
18585
OTOOL \
18586
OTOOL64 \
18587
shrext_cmds \
18588
export_dynamic_flag_spec \
18589
whole_archive_flag_spec \
18590
compiler_needs_object \
18591
with_gnu_ld \
18592
allow_undefined_flag \
18593
no_undefined_flag \
18594
hardcode_libdir_flag_spec \
18595
hardcode_libdir_flag_spec_ld \
18596
hardcode_libdir_separator \
18597
fix_srcfile_path \
18598
exclude_expsyms \
18599
include_expsyms \
18600
file_list_spec \
18601
variables_saved_for_relink \
18602
libname_spec \
18603
library_names_spec \
18604
soname_spec \
18605
finish_eval \
18606
old_striplib \
18607
striplib; do
18608
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18609
    *[\\\\\\\`\\"\\\$]*)
18610
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18611
      ;;
18612
    *)
18613
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18614
      ;;
18615
    esac
18616
done
18617
 
18618
# Double-quote double-evaled strings.
18619
for var in reload_cmds \
18620
old_postinstall_cmds \
18621
old_postuninstall_cmds \
18622
old_archive_cmds \
18623
extract_expsyms_cmds \
18624
old_archive_from_new_cmds \
18625
old_archive_from_expsyms_cmds \
18626
archive_cmds \
18627
archive_expsym_cmds \
18628
module_cmds \
18629
module_expsym_cmds \
18630
export_symbols_cmds \
18631
prelink_cmds \
18632
postinstall_cmds \
18633
postuninstall_cmds \
18634
finish_cmds \
18635
sys_lib_search_path_spec \
18636
sys_lib_dlsearch_path_spec; do
18637
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18638
    *[\\\\\\\`\\"\\\$]*)
18639
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18640
      ;;
18641
    *)
18642
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18643
      ;;
18644
    esac
18645
done
18646
 
18647
# Fix-up fallback echo if it was mangled by the above quoting rules.
18648
case \$lt_ECHO in
18649
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18650
  ;;
18651
esac
18652
 
18653
ac_aux_dir='$ac_aux_dir'
18654
xsi_shell='$xsi_shell'
18655
lt_shell_append='$lt_shell_append'
18656
 
18657
# See if we are running on zsh, and set the options which allow our
18658
# commands through without removal of \ escapes INIT.
18659
if test -n "\${ZSH_VERSION+set}" ; then
18660
   setopt NO_GLOB_SUBST
18661
fi
18662
 
18663
 
18664
    PACKAGE='$PACKAGE'
18665
    VERSION='$VERSION'
18666
    TIMESTAMP='$TIMESTAMP'
18667
    RM='$RM'
18668
    ofile='$ofile'
18669
 
18670
 
18671
 
18672 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18673
 
18674
_ACEOF
18675
 
18676 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18677 19 jeremybenn
 
18678
# Handling of arguments.
18679
for ac_config_target in $ac_config_targets
18680
do
18681
  case $ac_config_target in
18682 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18683 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18684
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18685
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18686
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
18687
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
18688
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
18689
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
18690
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
18691
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
18692
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
18693
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
18694
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18695
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
18696
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
18697
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
18698
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
18699
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
18700 90 jeremybenn
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
18701
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
18702
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18703
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
18704
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
18705
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
18706
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
18707
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
18708
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
18709 93 jeremybenn
    "testsuite/test-code/lib-inttest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-inttest/Makefile" ;;
18710 97 jeremybenn
    "testsuite/test-code/lib-jtag/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-jtag/Makefile" ;;
18711 93 jeremybenn
    "testsuite/test-code/lib-upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-upcalls/Makefile" ;;
18712 90 jeremybenn
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
18713 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
18714
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
18715
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
18716
 
18717 121 jeremybenn
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18718
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18719
   { (exit 1); exit 1; }; };;
18720 19 jeremybenn
  esac
18721
done
18722
 
18723
 
18724
# If the user did not use the arguments to specify the items to instantiate,
18725
# then the envvar interface is used.  Set only those that are not.
18726
# We use the long form for the default assignment because of an extremely
18727
# bizarre bug on SunOS 4.1.3.
18728
if $ac_need_defaults; then
18729
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18730
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18731
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18732
fi
18733
 
18734
# Have a temporary directory for convenience.  Make it in the build tree
18735
# simply because there is no reason against having it here, and in addition,
18736
# creating and moving files from /tmp can sometimes cause problems.
18737
# Hook for its removal unless debugging.
18738
# Note that there is a small window in which the directory will not be cleaned:
18739
# after its creation but before its name has been assigned to `$tmp'.
18740
$debug ||
18741
{
18742
  tmp=
18743
  trap 'exit_status=$?
18744
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18745
' 0
18746 121 jeremybenn
  trap '{ (exit 1); exit 1; }' 1 2 13 15
18747 19 jeremybenn
}
18748
# Create a (secure) tmp directory for tmp files.
18749
 
18750
{
18751
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18752
  test -n "$tmp" && test -d "$tmp"
18753
}  ||
18754
{
18755
  tmp=./conf$$-$RANDOM
18756
  (umask 077 && mkdir "$tmp")
18757 121 jeremybenn
} ||
18758
{
18759
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
18760
   { (exit 1); exit 1; }
18761
}
18762 19 jeremybenn
 
18763 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
18764
# No need to generate them if there are no CONFIG_FILES.
18765
# This happens for instance with `./config.status config.h'.
18766 19 jeremybenn
if test -n "$CONFIG_FILES"; then
18767
 
18768 82 jeremybenn
 
18769 121 jeremybenn
ac_cr='
'
18770
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
18771 82 jeremybenn
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18772
  ac_cs_awk_cr='\\r'
18773 121 jeremybenn
else
18774 82 jeremybenn
  ac_cs_awk_cr=$ac_cr
18775
fi
18776
18777
 
18778
_ACEOF
18779 19 jeremybenn
18780
 
18781
 
18782 82 jeremybenn
  echo "cat >conf$$subs.awk <<_ACEOF" &&
18783
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18784
  echo "_ACEOF"
18785
} >conf$$subs.sh ||
18786
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18787 121 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18788
   { (exit 1); exit 1; }; }
18789
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18790 82 jeremybenn
ac_delim='%!_!# '
18791 19 jeremybenn
for ac_last_try in false false false false false :; do
18792
  . ./conf$$subs.sh ||
18793 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18794 121 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18795
   { (exit 1); exit 1; }; }
18796
18797 19 jeremybenn
 
18798 82 jeremybenn
  if test $ac_delim_n = $ac_delim_num; then
18799
    break
18800 19 jeremybenn
  elif $ac_last_try; then
18801
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18802 121 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18803
   { (exit 1); exit 1; }; }
18804
  else
18805 19 jeremybenn
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18806
  fi
18807
done
18808
rm -f conf$$subs.sh
18809 82 jeremybenn
18810 19 jeremybenn
 
18811 82 jeremybenn
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18812
_ACEOF
18813 19 jeremybenn
sed -n '
18814 82 jeremybenn
h
18815
s/^/S["/; s/!.*/"]=/
18816
p
18817
g
18818
s/^[^!]*!//
18819
:repl
18820
t repl
18821
s/'"$ac_delim"'$//
18822
t delim
18823
:nl
18824
h
18825
s/\(.\{148\}\).*/\1/
18826 121 jeremybenn
t more1
18827 82 jeremybenn
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18828
p
18829
n
18830
b repl
18831
:more1
18832
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18833
p
18834
g
18835
s/.\{148\}//
18836
t nl
18837
:delim
18838
h
18839
s/\(.\{148\}\).*/\1/
18840 121 jeremybenn
t more2
18841 82 jeremybenn
s/["\\]/\\&/g; s/^/"/; s/$/"/
18842
p
18843
b
18844
:more2
18845
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18846
p
18847
g
18848
s/.\{148\}//
18849
t delim
18850
' 
18851
/^[^""]/{
18852
  N
18853
  s/\n//
18854
}
18855
' >>$CONFIG_STATUS || ac_write_fail=1
18856
rm -f conf$$subs.awk
18857
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18858
_ACAWK
18859
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18860
  for (key in S) S_is_set[key] = 1
18861
  FS = ""
18862
18863 19 jeremybenn
 
18864 82 jeremybenn
{
18865
  line = $ 0
18866
  nfields = split(line, field, "@")
18867
  substed = 0
18868
  len = length(field[1])
18869
  for (i = 2; i < nfields; i++) {
18870
    key = field[i]
18871
    keylen = length(key)
18872
    if (S_is_set[key]) {
18873
      value = S[key]
18874
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18875
      len += length(value) + length(field[++i])
18876
      substed = 1
18877
    } else
18878
      len += 1 + keylen
18879
  }
18880
18881 19 jeremybenn
 
18882 82 jeremybenn
}
18883
18884
 
18885
_ACEOF
18886 19 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18887 82 jeremybenn
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18888
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18889
else
18890
  cat
18891
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18892
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18893 121 jeremybenn
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18894
   { (exit 1); exit 1; }; }
18895
_ACEOF
18896 19 jeremybenn
18897
 
18898
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18899
# trailing colons and then remove the whole line if VPATH becomes empty
18900
# (actually we leave an empty line to preserve line numbers).
18901
if test "x$srcdir" = x.; then
18902
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
18903
s/:*\$(srcdir):*/:/
18904
s/:*\${srcdir}:*/:/
18905
s/:*@srcdir@:*/:/
18906
s/^\([^=]*=[     ]*\):*/\1/
18907
s/:*$//
18908
s/^[^=]*=[       ]*$//
18909
}'
18910
fi
18911
18912
 
18913 82 jeremybenn
fi # test -n "$CONFIG_FILES"
18914 19 jeremybenn
18915
 
18916 82 jeremybenn
# No need to generate them if there are no CONFIG_HEADERS.
18917
# This happens for instance with `./config.status Makefile'.
18918
if test -n "$CONFIG_HEADERS"; then
18919
cat >"$tmp/defines.awk" <<\_ACAWK ||
18920
BEGIN {
18921
_ACEOF
18922
18923 19 jeremybenn
 
18924 82 jeremybenn
# here-document in config.status, that substitutes the proper values into
18925
# config.h.in to produce config.h.
18926
18927
 
18928
# handling of long lines.
18929
ac_delim='%!_!# '
18930
for ac_last_try in false false :; do
18931
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18932
  if test -z "$ac_t"; then
18933
    break
18934
  elif $ac_last_try; then
18935
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18936 121 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18937
   { (exit 1); exit 1; }; }
18938
  else
18939 82 jeremybenn
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18940
  fi
18941
done
18942
18943
 
18944
# likewise P contains macro parameters if any.  Preserve backslash
18945
# newline sequences.
18946
18947
 
18948
sed -n '
18949
s/.\{148\}/&'"$ac_delim"'/g
18950
t rset
18951
:rset
18952
s/^[     ]*#[    ]*define[       ][      ]*/ /
18953
t def
18954
d
18955
:def
18956
s/\\$//
18957
t bsnl
18958
s/["\\]/\\&/g
18959
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18960
D["\1"]=" \3"/p
18961
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18962
d
18963
:bsnl
18964
s/["\\]/\\&/g
18965
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18966
D["\1"]=" \3\\\\\\n"\\/p
18967
t cont
18968
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18969
t cont
18970
d
18971
:cont
18972
n
18973
s/.\{148\}/&'"$ac_delim"'/g
18974
t clear
18975
:clear
18976
s/\\$//
18977
t bsnlc
18978
s/["\\]/\\&/g; s/^/"/; s/$/"/p
18979
d
18980
:bsnlc
18981
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18982
b cont
18983
' 
18984
s/'"$ac_delim"'/"\\\
18985
"/g' >>$CONFIG_STATUS || ac_write_fail=1
18986
18987
 
18988
  for (key in D) D_is_set[key] = 1
18989
  FS = ""
18990
}
18991
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18992
  line = \$ 0
18993
  split(line, arg, " ")
18994
  if (arg[1] == "#") {
18995
    defundef = arg[2]
18996
    mac1 = arg[3]
18997
  } else {
18998
    defundef = substr(arg[1], 2)
18999
    mac1 = arg[2]
19000
  }
19001
  split(mac1, mac2, "(") #)
19002
  macro = mac2[1]
19003
  prefix = substr(line, 1, index(line, defundef) - 1)
19004
  if (D_is_set[macro]) {
19005
    # Preserve the white space surrounding the "#".
19006
    print prefix "define", macro P[macro] D[macro]
19007
    next
19008
  } else {
19009
    # Replace #undef with comments.  This is necessary, for example,
19010
    # in the case of _POSIX_SOURCE, which is predefined and required
19011
    # on some systems where configure will not decide to define it.
19012
    if (defundef == "undef") {
19013
      print "/*", prefix defundef, macro, "*/"
19014
      next
19015
    }
19016
  }
19017
}
19018
{ print }
19019
_ACAWK
19020
_ACEOF
19021
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19022
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19023 121 jeremybenn
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19024
   { (exit 1); exit 1; }; }
19025
fi # test -n "$CONFIG_HEADERS"
19026 82 jeremybenn
19027
 
19028
 
19029
shift
19030
for ac_tag
19031
do
19032 19 jeremybenn
  case $ac_tag in
19033
  :[FHLC]) ac_mode=$ac_tag; continue;;
19034
  esac
19035
  case $ac_mode$ac_tag in
19036
  :[FHL]*:*);;
19037
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19038 121 jeremybenn
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19039
   { (exit 1); exit 1; }; };;
19040
  :[FH]-) ac_tag=-:-;;
19041 19 jeremybenn
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19042
  esac
19043
  ac_save_IFS=$IFS
19044
  IFS=:
19045
  set x $ac_tag
19046
  IFS=$ac_save_IFS
19047
  shift
19048
  ac_file=$1
19049
  shift
19050
19051
 
19052
  :L) ac_source=$1;;
19053
  :[FH])
19054
    ac_file_inputs=
19055
    for ac_f
19056
    do
19057
      case $ac_f in
19058
      -) ac_f="$tmp/stdin";;
19059
      *) # Look for the file first in the build tree, then in the source tree
19060
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
19061
         # because $ac_f cannot contain `:'.
19062
         test -f "$ac_f" ||
19063
           case $ac_f in
19064
           [\\/$]*) false;;
19065
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19066
           esac ||
19067
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19068 121 jeremybenn
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19069
   { (exit 1); exit 1; }; };;
19070
      esac
19071 19 jeremybenn
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19072 82 jeremybenn
      ac_file_inputs="$ac_file_inputs '$ac_f'"
19073 121 jeremybenn
    done
19074 19 jeremybenn
19075
 
19076
    # use $as_me), people would be surprised to read:
19077
    #    /* config.h.  Generated by config.status.  */
19078
    configure_input='Generated from '`
19079 82 jeremybenn
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19080
        `' by configure.'
19081
    if test x"$ac_file" != x-; then
19082 19 jeremybenn
      configure_input="$ac_file.  $configure_input"
19083
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19084 121 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
19085 82 jeremybenn
    fi
19086 19 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
19087 82 jeremybenn
    case $configure_input in #(
19088
    *\&* | *\|* | *\\* )
19089
       ac_sed_conf_input=`$as_echo "$configure_input" |
19090
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19091
    *) ac_sed_conf_input=$configure_input;;
19092
    esac
19093
19094 19 jeremybenn
 
19095
    *:-:* | *:-) cat >"$tmp/stdin" \
19096 82 jeremybenn
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19097 121 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19098
   { (exit 1); exit 1; }; } ;;
19099
    esac
19100 19 jeremybenn
    ;;
19101
  esac
19102
19103
 
19104
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19105
         X"$ac_file" : 'X\(//\)[^/]' \| \
19106
         X"$ac_file" : 'X\(//\)$' \| \
19107
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19108
$as_echo X"$ac_file" |
19109 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19110 19 jeremybenn
            s//\1/
19111
            q
19112
          }
19113
          /^X\(\/\/\)[^/].*/{
19114
            s//\1/
19115
            q
19116
          }
19117
          /^X\(\/\/\)$/{
19118
            s//\1/
19119
            q
19120
          }
19121
          /^X\(\/\).*/{
19122
            s//\1/
19123
            q
19124
          }
19125
          s/.*/./; q'`
19126
  { as_dir="$ac_dir"
19127 121 jeremybenn
  case $as_dir in #(
19128
  -*) as_dir=./$as_dir;;
19129
  esac
19130
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19131
    as_dirs=
19132
    while :; do
19133
      case $as_dir in #(
19134
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19135
      *) as_qdir=$as_dir;;
19136
      esac
19137
      as_dirs="'$as_qdir' $as_dirs"
19138
      as_dir=`$as_dirname -- "$as_dir" ||
19139
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19140
         X"$as_dir" : 'X\(//\)[^/]' \| \
19141
         X"$as_dir" : 'X\(//\)$' \| \
19142
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19143
$as_echo X"$as_dir" |
19144
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19145
            s//\1/
19146
            q
19147
          }
19148
          /^X\(\/\/\)[^/].*/{
19149
            s//\1/
19150
            q
19151
          }
19152
          /^X\(\/\/\)$/{
19153
            s//\1/
19154
            q
19155
          }
19156
          /^X\(\/\).*/{
19157
            s//\1/
19158
            q
19159
          }
19160
          s/.*/./; q'`
19161
      test -d "$as_dir" && break
19162
    done
19163
    test -z "$as_dirs" || eval "mkdir $as_dirs"
19164
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19165
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19166
   { (exit 1); exit 1; }; }; }
19167
  ac_builddir=.
19168 19 jeremybenn
19169
 
19170
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19171
*)
19172
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19173 82 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
19174 19 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19175 82 jeremybenn
  case $ac_top_builddir_sub in
19176 19 jeremybenn
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19177
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19178
  esac ;;
19179
esac
19180
ac_abs_top_builddir=$ac_pwd
19181
ac_abs_builddir=$ac_pwd$ac_dir_suffix
19182
# for backward compatibility:
19183
ac_top_builddir=$ac_top_build_prefix
19184
19185
 
19186
  .)  # We are building in place.
19187
    ac_srcdir=.
19188
    ac_top_srcdir=$ac_top_builddir_sub
19189
    ac_abs_top_srcdir=$ac_pwd ;;
19190
  [\\/]* | ?:[\\/]* )  # Absolute name.
19191
    ac_srcdir=$srcdir$ac_dir_suffix;
19192
    ac_top_srcdir=$srcdir
19193
    ac_abs_top_srcdir=$srcdir ;;
19194
  *) # Relative name.
19195
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19196
    ac_top_srcdir=$ac_top_build_prefix$srcdir
19197
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19198
esac
19199
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19200
19201
 
19202
 
19203
  :F)
19204
  #
19205
  # CONFIG_FILE
19206
  #
19207
19208
 
19209
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19210
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19211
  esac
19212
  ac_MKDIR_P=$MKDIR_P
19213
  case $MKDIR_P in
19214
  [\\/$]* | ?:[\\/]* ) ;;
19215
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19216
  esac
19217
_ACEOF
19218
19219
 
19220 82 jeremybenn
# If the template does not know about datarootdir, expand it.
19221 19 jeremybenn
# FIXME: This hack should be removed a few years after 2.60.
19222
ac_datarootdir_hack=; ac_datarootdir_seen=
19223
19224 121 jeremybenn
 
19225 82 jeremybenn
/datarootdir/ {
19226
  p
19227 19 jeremybenn
  q
19228
}
19229
/@datadir@/p
19230
/@docdir@/p
19231
/@infodir@/p
19232
/@localedir@/p
19233
/@mandir@/p
19234 121 jeremybenn
'
19235
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19236 82 jeremybenn
*datarootdir*) ac_datarootdir_seen=yes;;
19237 19 jeremybenn
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19238
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19239 121 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19240 82 jeremybenn
_ACEOF
19241 19 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19242 82 jeremybenn
  ac_datarootdir_hack='
19243 19 jeremybenn
  s&@datadir@&$datadir&g
19244
  s&@docdir@&$docdir&g
19245
  s&@infodir@&$infodir&g
19246
  s&@localedir@&$localedir&g
19247
  s&@mandir@&$mandir&g
19248
    s&\\\${datarootdir}&$datarootdir&g' ;;
19249 121 jeremybenn
esac
19250 19 jeremybenn
_ACEOF
19251
19252
 
19253
# Shell code in configure.ac might set extrasub.
19254
# FIXME: do we really want to maintain this feature?
19255
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19256 82 jeremybenn
ac_sed_extra="$ac_vpsub
19257
$extrasub
19258 19 jeremybenn
_ACEOF
19259
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19260 82 jeremybenn
:t
19261 19 jeremybenn
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19262
s|@configure_input@|$ac_sed_conf_input|;t t
19263 82 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
19264 19 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
19265 82 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
19266 19 jeremybenn
s&@abs_srcdir@&$ac_abs_srcdir&;t t
19267
s&@top_srcdir@&$ac_top_srcdir&;t t
19268
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19269
s&@builddir@&$ac_builddir&;t t
19270
s&@abs_builddir@&$ac_abs_builddir&;t t
19271
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19272
s&@INSTALL@&$ac_INSTALL&;t t
19273
s&@MKDIR_P@&$ac_MKDIR_P&;t t
19274
$ac_datarootdir_hack
19275
"
19276 82 jeremybenn
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19277
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19278 121 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19279
   { (exit 1); exit 1; }; }
19280
19281 19 jeremybenn
 
19282
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19283
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19284
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19285 121 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
19286 19 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19287 82 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
19288 19 jeremybenn
19289
 
19290
  case $ac_file in
19291
  -) cat "$tmp/out" && rm -f "$tmp/out";;
19292 82 jeremybenn
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19293
  esac \
19294
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19295 121 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19296
   { (exit 1); exit 1; }; }
19297
 ;;
19298 19 jeremybenn
  :H)
19299
  #
19300
  # CONFIG_HEADER
19301
  #
19302
  if test x"$ac_file" != x-; then
19303
    {
19304 82 jeremybenn
      $as_echo "/* $configure_input  */" \
19305
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19306
    } >"$tmp/config.h" \
19307
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19308 121 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19309
   { (exit 1); exit 1; }; }
19310
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19311 82 jeremybenn
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19312 121 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
19313 82 jeremybenn
    else
19314 19 jeremybenn
      rm -f "$ac_file"
19315 82 jeremybenn
      mv "$tmp/config.h" "$ac_file" \
19316
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19317 121 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19318
   { (exit 1); exit 1; }; }
19319
    fi
19320 19 jeremybenn
  else
19321
    $as_echo "/* $configure_input  */" \
19322 82 jeremybenn
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19323
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19324 121 jeremybenn
$as_echo "$as_me: error: could not create -" >&2;}
19325
   { (exit 1); exit 1; }; }
19326
  fi
19327 19 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
19328 82 jeremybenn
_am_arg="$ac_file"
19329
_am_stamp_count=1
19330 19 jeremybenn
for _am_header in $config_headers :; do
19331
  case $_am_header in
19332
    $_am_arg | $_am_arg:* )
19333
      break ;;
19334
    * )
19335
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19336
  esac
19337
done
19338
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19339
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19340
         X"$_am_arg" : 'X\(//\)[^/]' \| \
19341
         X"$_am_arg" : 'X\(//\)$' \| \
19342
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19343
$as_echo X"$_am_arg" |
19344 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19345 19 jeremybenn
            s//\1/
19346
            q
19347
          }
19348
          /^X\(\/\/\)[^/].*/{
19349
            s//\1/
19350
            q
19351
          }
19352
          /^X\(\/\/\)$/{
19353
            s//\1/
19354
            q
19355
          }
19356
          /^X\(\/\).*/{
19357
            s//\1/
19358
            q
19359
          }
19360
          s/.*/./; q'`/stamp-h$_am_stamp_count
19361
 ;;
19362
19363
 
19364 121 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
19365 82 jeremybenn
 ;;
19366 19 jeremybenn
  esac
19367
19368
 
19369
 
19370
    "libtool":C)
19371 82 jeremybenn
19372
 
19373
    # commands through without removal of \ escapes.
19374
    if test -n "${ZSH_VERSION+set}" ; then
19375
      setopt NO_GLOB_SUBST
19376
    fi
19377
19378
 
19379
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19380
    $RM "$cfgfile"
19381
19382
 
19383
#! $SHELL
19384
19385
 
19386
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19387
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19388
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19389
#
19390
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19391
#                 2006, 2007, 2008 Free Software Foundation, Inc.
19392
#   Written by Gordon Matzigkeit, 1996
19393
#
19394
#   This file is part of GNU Libtool.
19395
#
19396
# GNU Libtool is free software; you can redistribute it and/or
19397
# modify it under the terms of the GNU General Public License as
19398
# published by the Free Software Foundation; either version 2 of
19399
# the License, or (at your option) any later version.
19400
#
19401
# As a special exception to the GNU General Public License,
19402
# if you distribute this file as part of a program or library that
19403
# is built using GNU Libtool, you may include this file under the
19404
# same distribution terms that you use for the rest of that program.
19405
#
19406
# GNU Libtool is distributed in the hope that it will be useful,
19407
# but WITHOUT ANY WARRANTY; without even the implied warranty of
19408
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19409
# GNU General Public License for more details.
19410
#
19411
# You should have received a copy of the GNU General Public License
19412
# along with GNU Libtool; see the file COPYING.  If not, a copy
19413
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19414
# obtained by writing to the Free Software Foundation, Inc.,
19415
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19416
19417
 
19418
 
19419
available_tags=""
19420
19421
 
19422
19423
 
19424
macro_version=$macro_version
19425
macro_revision=$macro_revision
19426
19427
 
19428
build_libtool_libs=$enable_shared
19429
19430
 
19431
build_old_libs=$enable_static
19432
19433
 
19434
pic_mode=$pic_mode
19435
19436
 
19437
fast_install=$enable_fast_install
19438
19439
 
19440
host_alias=$host_alias
19441
host=$host
19442
host_os=$host_os
19443
19444
 
19445
build_alias=$build_alias
19446
build=$build
19447
build_os=$build_os
19448
19449
 
19450
SED=$lt_SED
19451
19452
 
19453
Xsed="\$SED -e 1s/^X//"
19454
19455
 
19456
GREP=$lt_GREP
19457
19458
 
19459
EGREP=$lt_EGREP
19460
19461
 
19462
FGREP=$lt_FGREP
19463
19464
 
19465
NM=$lt_NM
19466
19467
 
19468
LN_S=$lt_LN_S
19469
19470
 
19471
max_cmd_len=$max_cmd_len
19472
19473
 
19474
objext=$ac_objext
19475
19476
 
19477
exeext=$exeext
19478
19479
 
19480
lt_unset=$lt_unset
19481
19482
 
19483
SP2NL=$lt_lt_SP2NL
19484
19485
 
19486
NL2SP=$lt_lt_NL2SP
19487
19488
 
19489
reload_flag=$lt_reload_flag
19490
reload_cmds=$lt_reload_cmds
19491
19492
 
19493
OBJDUMP=$lt_OBJDUMP
19494
19495
 
19496
deplibs_check_method=$lt_deplibs_check_method
19497
19498
 
19499
file_magic_cmd=$lt_file_magic_cmd
19500
19501
 
19502
AR=$lt_AR
19503
AR_FLAGS=$lt_AR_FLAGS
19504
19505
 
19506
STRIP=$lt_STRIP
19507
19508
 
19509
RANLIB=$lt_RANLIB
19510
old_postinstall_cmds=$lt_old_postinstall_cmds
19511
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19512
19513
 
19514
LTCC=$lt_CC
19515
19516
 
19517
LTCFLAGS=$lt_CFLAGS
19518
19519
 
19520
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19521
19522
 
19523
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19524
19525
 
19526
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19527
19528
 
19529
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19530
19531
 
19532
objdir=$objdir
19533
19534
 
19535
SHELL=$lt_SHELL
19536
19537
 
19538
ECHO=$lt_ECHO
19539
19540
 
19541
MAGIC_CMD=$MAGIC_CMD
19542
19543
 
19544
need_locks=$lt_need_locks
19545
19546
 
19547
DSYMUTIL=$lt_DSYMUTIL
19548
19549
 
19550
NMEDIT=$lt_NMEDIT
19551
19552
 
19553
LIPO=$lt_LIPO
19554
19555
 
19556
OTOOL=$lt_OTOOL
19557
19558
 
19559
OTOOL64=$lt_OTOOL64
19560
19561
 
19562
libext=$libext
19563
19564
 
19565
shrext_cmds=$lt_shrext_cmds
19566
19567
 
19568
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19569
19570
 
19571
# restored at link time.
19572
variables_saved_for_relink=$lt_variables_saved_for_relink
19573
19574
 
19575
need_lib_prefix=$need_lib_prefix
19576
19577
 
19578
need_version=$need_version
19579
19580
 
19581
version_type=$version_type
19582
19583
 
19584
runpath_var=$runpath_var
19585
19586
 
19587
shlibpath_var=$shlibpath_var
19588
19589
 
19590
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19591
19592
 
19593
libname_spec=$lt_libname_spec
19594
19595
 
19596
# The last name is the one that the linker finds with -lNAME
19597
library_names_spec=$lt_library_names_spec
19598
19599
 
19600
soname_spec=$lt_soname_spec
19601
19602
 
19603
postinstall_cmds=$lt_postinstall_cmds
19604
19605
 
19606
postuninstall_cmds=$lt_postuninstall_cmds
19607
19608
 
19609
finish_cmds=$lt_finish_cmds
19610
19611
 
19612
# not shown.
19613
finish_eval=$lt_finish_eval
19614
19615
 
19616
hardcode_into_libs=$hardcode_into_libs
19617
19618
 
19619
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19620
19621
 
19622
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19623
19624
 
19625
dlopen_support=$enable_dlopen
19626
19627
 
19628
dlopen_self=$enable_dlopen_self
19629
19630
 
19631
dlopen_self_static=$enable_dlopen_self_static
19632
19633
 
19634
old_striplib=$lt_old_striplib
19635
striplib=$lt_striplib
19636
19637
 
19638
 
19639
LD=$lt_LD
19640
19641
 
19642
old_archive_cmds=$lt_old_archive_cmds
19643
19644
 
19645
CC=$lt_compiler
19646
19647
 
19648
with_gcc=$GCC
19649
19650
 
19651
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19652
19653
 
19654
wl=$lt_lt_prog_compiler_wl
19655
19656
 
19657
pic_flag=$lt_lt_prog_compiler_pic
19658
19659
 
19660
link_static_flag=$lt_lt_prog_compiler_static
19661
19662
 
19663
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19664
19665
 
19666
build_libtool_need_lc=$archive_cmds_need_lc
19667
19668
 
19669
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19670
19671
 
19672
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19673
19674
 
19675
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19676
19677
 
19678
compiler_needs_object=$lt_compiler_needs_object
19679
19680
 
19681
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19682
19683
 
19684
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19685
19686
 
19687
archive_cmds=$lt_archive_cmds
19688
archive_expsym_cmds=$lt_archive_expsym_cmds
19689
19690
 
19691
# a shared archive.
19692
module_cmds=$lt_module_cmds
19693
module_expsym_cmds=$lt_module_expsym_cmds
19694
19695
 
19696
with_gnu_ld=$lt_with_gnu_ld
19697
19698
 
19699
allow_undefined_flag=$lt_allow_undefined_flag
19700
19701
 
19702
no_undefined_flag=$lt_no_undefined_flag
19703
19704
 
19705
# This must work even if \$libdir does not exist
19706
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19707
19708
 
19709
# during linking.  This must work even if \$libdir does not exist.
19710
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19711
19712
 
19713
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19714
19715
 
19716
# DIR into the resulting binary.
19717
hardcode_direct=$hardcode_direct
19718
19719
 
19720
# DIR into the resulting binary and the resulting library dependency is
19721
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19722
# library is relocated.
19723
hardcode_direct_absolute=$hardcode_direct_absolute
19724
19725
 
19726
# into the resulting binary.
19727
hardcode_minus_L=$hardcode_minus_L
19728
19729
 
19730
# into the resulting binary.
19731
hardcode_shlibpath_var=$hardcode_shlibpath_var
19732
19733
 
19734
# into the library and all subsequent libraries and executables linked
19735
# against it.
19736
hardcode_automatic=$hardcode_automatic
19737
19738
 
19739
# to runtime path list.
19740
inherit_rpath=$inherit_rpath
19741
19742
 
19743
link_all_deplibs=$link_all_deplibs
19744
19745
 
19746
fix_srcfile_path=$lt_fix_srcfile_path
19747
19748
 
19749
always_export_symbols=$always_export_symbols
19750
19751
 
19752
export_symbols_cmds=$lt_export_symbols_cmds
19753
19754
 
19755
exclude_expsyms=$lt_exclude_expsyms
19756
19757
 
19758
include_expsyms=$lt_include_expsyms
19759
19760
 
19761
prelink_cmds=$lt_prelink_cmds
19762
19763
 
19764
file_list_spec=$lt_file_list_spec
19765
19766
 
19767
hardcode_action=$hardcode_action
19768
19769
 
19770
19771
 
19772
19773
 
19774
  aix3*)
19775
    cat <<\_LT_EOF >> "$cfgfile"
19776
# AIX sometimes has problems with the GCC collect2 program.  For some
19777
# reason, if we set the COLLECT_NAMES environment variable, the problems
19778
# vanish in a puff of smoke.
19779
if test "X${COLLECT_NAMES+set}" != Xset; then
19780
  COLLECT_NAMES=
19781
  export COLLECT_NAMES
19782
fi
19783
_LT_EOF
19784
    ;;
19785
  esac
19786
19787
 
19788
 
19789
19790
 
19791
 
19792
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19793
  # text mode, it properly converts lines to CR/LF.  This bash problem
19794
  # is reportedly fixed, but why not run on old versions too?
19795
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19796
    || (rm -f "$cfgfile"; exit 1)
19797
19798
 
19799
  yes)
19800
    cat << \_LT_EOF >> "$cfgfile"
19801
19802
 
19803
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19804
# otherwise set result to NONDIR_REPLACEMENT.
19805
func_dirname ()
19806
{
19807
  case ${1} in
19808
    */*) func_dirname_result="${1%/*}${2}" ;;
19809
    *  ) func_dirname_result="${3}" ;;
19810
  esac
19811
}
19812
19813
 
19814
func_basename ()
19815
{
19816
  func_basename_result="${1##*/}"
19817
}
19818
19819
 
19820
# perform func_basename and func_dirname in a single function
19821
# call:
19822
#   dirname:  Compute the dirname of FILE.  If nonempty,
19823
#             add APPEND to the result, otherwise set result
19824
#             to NONDIR_REPLACEMENT.
19825
#             value returned in "$func_dirname_result"
19826
#   basename: Compute filename of FILE.
19827
#             value retuned in "$func_basename_result"
19828
# Implementation must be kept synchronized with func_dirname
19829
# and func_basename. For efficiency, we do not delegate to
19830
# those functions but instead duplicate the functionality here.
19831
func_dirname_and_basename ()
19832
{
19833
  case ${1} in
19834
    */*) func_dirname_result="${1%/*}${2}" ;;
19835
    *  ) func_dirname_result="${3}" ;;
19836
  esac
19837
  func_basename_result="${1##*/}"
19838
}
19839
19840
 
19841
# strip PREFIX and SUFFIX off of NAME.
19842
# PREFIX and SUFFIX must not contain globbing or regex special
19843
# characters, hashes, percent signs, but SUFFIX may contain a leading
19844
# dot (in which case that matches only a dot).
19845
func_stripname ()
19846
{
19847
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19848
  # positional parameters, so assign one to ordinary parameter first.
19849
  func_stripname_result=${3}
19850
  func_stripname_result=${func_stripname_result#"${1}"}
19851
  func_stripname_result=${func_stripname_result%"${2}"}
19852
}
19853
19854
 
19855
func_opt_split ()
19856
{
19857
  func_opt_split_opt=${1%%=*}
19858
  func_opt_split_arg=${1#*=}
19859
}
19860
19861
 
19862
func_lo2o ()
19863
{
19864
  case ${1} in
19865
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19866
    *)    func_lo2o_result=${1} ;;
19867
  esac
19868
}
19869
19870
 
19871
func_xform ()
19872
{
19873
  func_xform_result=${1%.*}.lo
19874
}
19875
19876
 
19877
func_arith ()
19878
{
19879
  func_arith_result=$(( $* ))
19880
}
19881
19882
 
19883
# STRING may not start with a hyphen.
19884
func_len ()
19885
{
19886
  func_len_result=${#1}
19887
}
19888
19889
 
19890
    ;;
19891
  *) # Bourne compatible functions.
19892
    cat << \_LT_EOF >> "$cfgfile"
19893
19894
 
19895
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19896
# otherwise set result to NONDIR_REPLACEMENT.
19897
func_dirname ()
19898
{
19899
  # Extract subdirectory from the argument.
19900
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19901
  if test "X$func_dirname_result" = "X${1}"; then
19902
    func_dirname_result="${3}"
19903
  else
19904
    func_dirname_result="$func_dirname_result${2}"
19905
  fi
19906
}
19907
19908
 
19909
func_basename ()
19910
{
19911
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19912
}
19913
19914
 
19915
 
19916
# strip PREFIX and SUFFIX off of NAME.
19917
# PREFIX and SUFFIX must not contain globbing or regex special
19918
# characters, hashes, percent signs, but SUFFIX may contain a leading
19919
# dot (in which case that matches only a dot).
19920
# func_strip_suffix prefix name
19921
func_stripname ()
19922
{
19923
  case ${2} in
19924
    .*) func_stripname_result=`$ECHO "X${3}" \
19925
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19926
    *)  func_stripname_result=`$ECHO "X${3}" \
19927
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19928
  esac
19929
}
19930
19931
 
19932
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19933
my_sed_long_arg='1s/^-[^=]*=//'
19934
19935
 
19936
func_opt_split ()
19937
{
19938
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19939
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19940
}
19941
19942
 
19943
func_lo2o ()
19944
{
19945
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19946
}
19947
19948
 
19949
func_xform ()
19950
{
19951
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19952
}
19953
19954
 
19955
func_arith ()
19956
{
19957
  func_arith_result=`expr "$@"`
19958
}
19959
19960
 
19961
# STRING may not start with a hyphen.
19962
func_len ()
19963
{
19964
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19965
}
19966
19967
 
19968
esac
19969
19970
 
19971
  yes)
19972
    cat << \_LT_EOF >> "$cfgfile"
19973
19974
 
19975
# Append VALUE to the end of shell variable VAR.
19976
func_append ()
19977
{
19978
  eval "$1+=\$2"
19979
}
19980
_LT_EOF
19981
    ;;
19982
  *)
19983
    cat << \_LT_EOF >> "$cfgfile"
19984
19985
 
19986
# Append VALUE to the end of shell variable VAR.
19987
func_append ()
19988
{
19989
  eval "$1=\$$1\$2"
19990
}
19991
19992
 
19993
    ;;
19994
  esac
19995
19996
 
19997
 
19998
    || (rm -f "$cfgfile"; exit 1)
19999
20000
 
20001
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20002
  chmod +x "$ofile"
20003
20004
 
20005
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20006
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20007
  # are listed without --file.  Let's play safe and only enable the eval
20008
  # if we detect the quoting.
20009
  case $CONFIG_FILES in
20010
  *\'*) eval set x "$CONFIG_FILES" ;;
20011
  *)   set x $CONFIG_FILES ;;
20012
  esac
20013
  shift
20014
  for mf
20015
  do
20016
    # Strip MF so we end up with the name of the file.
20017
    mf=`echo "$mf" | sed -e 's/:.*$//'`
20018
    # Check whether this is an Automake generated Makefile or not.
20019
    # We used to match only the files named `Makefile.in', but
20020
    # some people rename them; so instead we look at the file content.
20021
    # Grep'ing the first line is not enough: some people post-process
20022
    # each Makefile.in and add a new line on top of each file to say so.
20023
    # Grep'ing the whole file is not good either: AIX grep has a line
20024
    # limit of 2048, but all sed's we know have understand at least 4000.
20025
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20026
      dirpart=`$as_dirname -- "$mf" ||
20027
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20028 19 jeremybenn
         X"$mf" : 'X\(//\)[^/]' \| \
20029
         X"$mf" : 'X\(//\)$' \| \
20030
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20031
$as_echo X"$mf" |
20032 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20033 19 jeremybenn
            s//\1/
20034
            q
20035
          }
20036
          /^X\(\/\/\)[^/].*/{
20037
            s//\1/
20038
            q
20039
          }
20040
          /^X\(\/\/\)$/{
20041
            s//\1/
20042
            q
20043
          }
20044
          /^X\(\/\).*/{
20045
            s//\1/
20046
            q
20047
          }
20048
          s/.*/./; q'`
20049
    else
20050 82 jeremybenn
      continue
20051
    fi
20052
    # Extract the definition of DEPDIR, am__include, and am__quote
20053
    # from the Makefile without running `make'.
20054
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20055
    test -z "$DEPDIR" && continue
20056
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20057
    test -z "am__include" && continue
20058
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20059
    # When using ansi2knr, U may be empty or an underscore; expand it
20060
    U=`sed -n 's/^U = //p' < "$mf"`
20061
    # Find all dependency output files, they are included files with
20062
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20063
    # simplest approach to changing $(DEPDIR) to its actual value in the
20064
    # expansion.
20065
    for file in `sed -n "
20066
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20067
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20068
      # Make sure the directory exists.
20069
      test -f "$dirpart/$file" && continue
20070
      fdir=`$as_dirname -- "$file" ||
20071
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20072 19 jeremybenn
         X"$file" : 'X\(//\)[^/]' \| \
20073
         X"$file" : 'X\(//\)$' \| \
20074
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20075
$as_echo X"$file" |
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
      { as_dir=$dirpart/$fdir
20094 121 jeremybenn
  case $as_dir in #(
20095
  -*) as_dir=./$as_dir;;
20096
  esac
20097
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20098
    as_dirs=
20099
    while :; do
20100
      case $as_dir in #(
20101
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20102
      *) as_qdir=$as_dir;;
20103
      esac
20104
      as_dirs="'$as_qdir' $as_dirs"
20105
      as_dir=`$as_dirname -- "$as_dir" ||
20106
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20107
         X"$as_dir" : 'X\(//\)[^/]' \| \
20108
         X"$as_dir" : 'X\(//\)$' \| \
20109
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20110
$as_echo X"$as_dir" |
20111
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20112
            s//\1/
20113
            q
20114
          }
20115
          /^X\(\/\/\)[^/].*/{
20116
            s//\1/
20117
            q
20118
          }
20119
          /^X\(\/\/\)$/{
20120
            s//\1/
20121
            q
20122
          }
20123
          /^X\(\/\).*/{
20124
            s//\1/
20125
            q
20126
          }
20127
          s/.*/./; q'`
20128
      test -d "$as_dir" && break
20129
    done
20130
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20131
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20132
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20133
   { (exit 1); exit 1; }; }; }
20134
      # echo "creating $dirpart/$file"
20135 82 jeremybenn
      echo '# dummy' > "$dirpart/$file"
20136
    done
20137
  done
20138 19 jeremybenn
}
20139 82 jeremybenn
 ;;
20140 19 jeremybenn
20141
 
20142
done # for ac_tag
20143
20144
 
20145
 
20146 121 jeremybenn
_ACEOF
20147 19 jeremybenn
chmod +x $CONFIG_STATUS
20148 121 jeremybenn
ac_clean_files=$ac_clean_files_save
20149 19 jeremybenn
20150
 
20151 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20152 121 jeremybenn
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20153
   { (exit 1); exit 1; }; }
20154
20155 19 jeremybenn
 
20156 82 jeremybenn
 
20157 19 jeremybenn
# config.status does its own redirection, appending to config.log.
20158
# Unfortunately, on DOS this fails, as config.log is still kept open
20159
# by configure, so config.status won't be able to write to it; its
20160
# output is simply discarded.  So we exec the FD to /dev/null,
20161
# effectively closing config.log, so it can be properly (re)opened and
20162
# appended to by config.status.  When coming back to configure, we
20163
# need to make the FD available again.
20164
if test "$no_create" != yes; then
20165
  ac_cs_success=:
20166
  ac_config_status_args=
20167
  test "$silent" = yes &&
20168
    ac_config_status_args="$ac_config_status_args --quiet"
20169
  exec 5>/dev/null
20170
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20171
  exec 5>>config.log
20172
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20173
  # would make configure fail if this is the last instruction.
20174
  $ac_cs_success || { (exit 1); exit 1; }
20175 121 jeremybenn
fi
20176 19 jeremybenn
20177
 
20178 82 jeremybenn
# CONFIG_SUBDIRS section.
20179
#
20180
if test "$no_recursion" != yes; then
20181
20182
 
20183
  # so they do not pile up.
20184
  ac_sub_configure_args=
20185
  ac_prev=
20186
  eval "set x $ac_configure_args"
20187
  shift
20188
  for ac_arg
20189
  do
20190
    if test -n "$ac_prev"; then
20191
      ac_prev=
20192
      continue
20193
    fi
20194
    case $ac_arg in
20195
    -cache-file | --cache-file | --cache-fil | --cache-fi \
20196
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20197
      ac_prev=cache_file ;;
20198
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20199
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20200
    | --c=*)
20201
      ;;
20202
    --config-cache | -C)
20203
      ;;
20204
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20205
      ac_prev=srcdir ;;
20206
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20207
      ;;
20208
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20209
      ac_prev=prefix ;;
20210
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20211
      ;;
20212
    --disable-option-checking)
20213
      ;;
20214
    *)
20215
      case $ac_arg in
20216
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20217
      esac
20218
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20219 121 jeremybenn
    esac
20220 82 jeremybenn
  done
20221
20222
 
20223
  # in subdir configurations.
20224
  ac_arg="--prefix=$prefix"
20225
  case $ac_arg in
20226
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20227
  esac
20228
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20229
20230
 
20231
  if test "$silent" = yes; then
20232
    ac_sub_configure_args="--silent $ac_sub_configure_args"
20233
  fi
20234
20235
 
20236
  # different subdirs can have different --enable and --with options.
20237
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
20238
20239
 
20240
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20241
20242
 
20243
    # parts of a large source tree are present.
20244
    test -d "$srcdir/$ac_dir" || continue
20245
20246
 
20247
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
20248 121 jeremybenn
    $as_echo "$ac_msg" >&6
20249 82 jeremybenn
    { as_dir="$ac_dir"
20250 121 jeremybenn
  case $as_dir in #(
20251
  -*) as_dir=./$as_dir;;
20252
  esac
20253
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20254
    as_dirs=
20255
    while :; do
20256
      case $as_dir in #(
20257
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20258
      *) as_qdir=$as_dir;;
20259
      esac
20260
      as_dirs="'$as_qdir' $as_dirs"
20261
      as_dir=`$as_dirname -- "$as_dir" ||
20262
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20263
         X"$as_dir" : 'X\(//\)[^/]' \| \
20264
         X"$as_dir" : 'X\(//\)$' \| \
20265
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20266
$as_echo X"$as_dir" |
20267
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20268
            s//\1/
20269
            q
20270
          }
20271
          /^X\(\/\/\)[^/].*/{
20272
            s//\1/
20273
            q
20274
          }
20275
          /^X\(\/\/\)$/{
20276
            s//\1/
20277
            q
20278
          }
20279
          /^X\(\/\).*/{
20280
            s//\1/
20281
            q
20282
          }
20283
          s/.*/./; q'`
20284
      test -d "$as_dir" && break
20285
    done
20286
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20287
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20288
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20289
   { (exit 1); exit 1; }; }; }
20290
    ac_builddir=.
20291 82 jeremybenn
20292
 
20293
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20294
*)
20295
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20296
  # A ".." for each directory in $ac_dir_suffix.
20297
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20298
  case $ac_top_builddir_sub in
20299
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20300
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20301
  esac ;;
20302
esac
20303
ac_abs_top_builddir=$ac_pwd
20304
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20305
# for backward compatibility:
20306
ac_top_builddir=$ac_top_build_prefix
20307
20308
 
20309
  .)  # We are building in place.
20310
    ac_srcdir=.
20311
    ac_top_srcdir=$ac_top_builddir_sub
20312
    ac_abs_top_srcdir=$ac_pwd ;;
20313
  [\\/]* | ?:[\\/]* )  # Absolute name.
20314
    ac_srcdir=$srcdir$ac_dir_suffix;
20315
    ac_top_srcdir=$srcdir
20316
    ac_abs_top_srcdir=$srcdir ;;
20317
  *) # Relative name.
20318
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20319
    ac_top_srcdir=$ac_top_build_prefix$srcdir
20320
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20321
esac
20322
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20323
20324
 
20325
 
20326
20327
 
20328
    if test -f "$ac_srcdir/configure.gnu"; then
20329
      ac_sub_configure=$ac_srcdir/configure.gnu
20330
    elif test -f "$ac_srcdir/configure"; then
20331
      ac_sub_configure=$ac_srcdir/configure
20332
    elif test -f "$ac_srcdir/configure.in"; then
20333
      # This should be Cygnus configure.
20334
      ac_sub_configure=$ac_aux_dir/configure
20335
    else
20336
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20337 121 jeremybenn
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20338 82 jeremybenn
      ac_sub_configure=
20339
    fi
20340
20341
 
20342
    if test -n "$ac_sub_configure"; then
20343
      # Make the cache file name correct relative to the subdirectory.
20344
      case $cache_file in
20345
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20346
      *) # Relative name.
20347
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20348
      esac
20349
20350
 
20351 121 jeremybenn
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20352 82 jeremybenn
      # The eval makes quoting arguments work.
20353
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20354
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20355
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20356 121 jeremybenn
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20357
   { (exit 1); exit 1; }; }
20358
    fi
20359 82 jeremybenn
20360
 
20361
  done
20362
fi
20363
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20364
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20365 121 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20366 82 jeremybenn
fi
20367
20368
 

powered by: WebSVN 2.1.0

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