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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 91 jeremybenn
# From configure.ac Id: configure.ac 956 2010-04-21 17:16:24Z jeremy  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 89 jeremybenn
# Generated by GNU Autoconf 2.63 for or1ksim 2010-04-21.
5 19 jeremybenn
#
6
# Report bugs to .
7
#
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 82 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 19 jeremybenn
## --------------------- ##
33
## M4sh Initialization.  ##
34
## --------------------- ##
35
 
36
# Be more Bourne compatible
37
DUALCASE=1; export DUALCASE # for MKS sh
38
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39
  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
  case `(set -o) 2>/dev/null` in
47
  *posix*) set -o posix ;;
48
esac
49
 
50
fi
51
 
52
 
53
 
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
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
71
  as_echo='printf %s\n'
72
  as_echo_n='printf %s'
73
else
74
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
75
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
76
    as_echo_n='/usr/ucb/echo -n'
77 19 jeremybenn
  else
78 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
79
    as_echo_n_body='eval
80
      arg=$1;
81
      case $arg in
82
      *"$as_nl"*)
83
        expr "X$arg" : "X\\(.*\\)$as_nl";
84
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
85
      esac;
86
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
87
    '
88
    export as_echo_n_body
89
    as_echo_n='sh -c $as_echo_n_body as_echo'
90 19 jeremybenn
  fi
91 82 jeremybenn
  export as_echo_body
92
  as_echo='sh -c $as_echo_body as_echo'
93 19 jeremybenn
fi
94
 
95 82 jeremybenn
# The user is always right.
96
if test "${PATH_SEPARATOR+set}" != set; then
97
  PATH_SEPARATOR=:
98
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
99
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
100
      PATH_SEPARATOR=';'
101
  }
102
fi
103
 
104 19 jeremybenn
# 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
 
111
 
112
# 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
case $0 in
121
  *[\\/]* ) 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
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
128
done
129
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 19 jeremybenn
  { (exit 1); exit 1; }
141
fi
142
 
143
# 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
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
# 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 82 jeremybenn
$as_echo X/"$0" |
178 19 jeremybenn
    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
# CDPATH.
193
$as_unset CDPATH
194
 
195
 
196
if test "x$CONFIG_SHELL" = x; then
197
  if (eval ":") 2>/dev/null; then
198
  as_have_required=yes
199
else
200
  as_have_required=no
201
fi
202
 
203 82 jeremybenn
  if test $as_have_required = yes &&     (eval ":
204 19 jeremybenn
(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
exitcode=0
221
if as_func_success; then
222
  :
223
else
224
  exitcode=1
225
  echo as_func_success failed.
226
fi
227
 
228
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
else
236
  exitcode=1
237
  echo as_func_ret_success failed.
238
fi
239
 
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
else
248
  exitcode=1
249
  echo positional parameters were not saved.
250
fi
251
 
252
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
else
262
  as_candidate_shells=
263
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
264
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
  case $as_dir in
269
         /*)
270
           for as_base in sh bash ksh sh5; do
271
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
272
           done;;
273
       esac
274
done
275
IFS=$as_save_IFS
276
 
277
 
278
      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 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 19 jeremybenn
  # 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
fi
295
 
296
 
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 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
307 19 jeremybenn
  # 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
fi
316
 
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
fi
342
 
343
if as_func_failure; then
344
  exitcode=1
345
  echo as_func_failure succeeded.
346
fi
347
 
348
if as_func_ret_success; then
349
  :
350
else
351
  exitcode=1
352
  echo as_func_ret_success failed.
353
fi
354
 
355
if as_func_ret_failure; then
356
  exitcode=1
357
  echo as_func_ret_failure succeeded.
358
fi
359
 
360
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
 
367
test $exitcode = 0) || { (exit 1); exit 1; }
368
 
369
(
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
 
375
_ASEOF
376
}; then
377
  break
378
fi
379
 
380
fi
381
 
382
      done
383
 
384
      if test "x$CONFIG_SHELL" != x; then
385
  for as_var in BASH_ENV ENV
386 82 jeremybenn
        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 19 jeremybenn
fi
391
 
392
 
393
    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
else
428
  exitcode=1
429
  echo as_func_success failed.
430
fi
431
 
432
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
else
440
  exitcode=1
441
  echo as_func_ret_success failed.
442
fi
443
 
444
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
else
452
  exitcode=1
453
  echo positional parameters were not saved.
454
fi
455
 
456
test \$exitcode = 0") || {
457
  echo No shell found that supports shell functions.
458 82 jeremybenn
  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 19 jeremybenn
}
463
 
464
 
465
 
466
  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
  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 82 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
498 19 jeremybenn
   { (exit 1); exit 1; }; }
499
 
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
 
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
ECHO_C= ECHO_N= ECHO_T=
516
case `echo -n x` in
517
-n*)
518
  case `echo 'x\c'` in
519
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
520
  *)   ECHO_C='\c';;
521
  esac;;
522
*)
523
  ECHO_N='-n';;
524
esac
525
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
 
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
  as_mkdir_p=:
561
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
        case $1 in
580 82 jeremybenn
        -*)set "./$1";;
581 19 jeremybenn
        esac;
582
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
583
        ???[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
 
598
# 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
exec 7<&0 &1
747
 
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
SHELL=${CONFIG_SHELL-/bin/sh}
765
 
766
# Identity of this package.
767
PACKAGE_NAME='or1ksim'
768
PACKAGE_TARNAME='or1ksim'
769 89 jeremybenn
PACKAGE_VERSION='2010-04-21'
770
PACKAGE_STRING='or1ksim 2010-04-21'
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 90 jeremybenn
DEJAGNU
823 82 jeremybenn
DYNAMIC_EXECUTION_FALSE
824
DYNAMIC_EXECUTION_TRUE
825
GENERATE_NEEDED_FALSE
826
GENERATE_NEEDED_TRUE
827
DEBUGFLAGS
828
USE_ARGDATE_FALSE
829
USE_ARGDATE_TRUE
830
USE_ARGREX_FALSE
831
USE_ARGREX_TRUE
832
USE_SYS_GETOPTLONG_FALSE
833
USE_SYS_GETOPTLONG_TRUE
834
POW_LIB
835
LIBOBJS
836
am__fastdepCCAS_FALSE
837
am__fastdepCCAS_TRUE
838
CCASDEPMODE
839
CCASFLAGS
840
CCAS
841
CPU_ARCH
842
am__fastdepCC_FALSE
843
am__fastdepCC_TRUE
844
CCDEPMODE
845
AMDEPBACKSLASH
846
AMDEP_FALSE
847
AMDEP_TRUE
848
am__quote
849
am__include
850
DEPDIR
851
am__untar
852
am__tar
853
AMTAR
854
am__leading_dot
855
SET_MAKE
856
AWK
857
mkdir_p
858
MKDIR_P
859
INSTALL_STRIP_PROGRAM
860
install_sh
861
MAKEINFO
862
AUTOHEADER
863
AUTOMAKE
864
AUTOCONF
865
ACLOCAL
866
VERSION
867
PACKAGE
868
CYGPATH_W
869
am__isrc
870
INSTALL_DATA
871
INSTALL_SCRIPT
872
INSTALL_PROGRAM
873
OTOOL64
874
OTOOL
875
LIPO
876
NMEDIT
877
DSYMUTIL
878
lt_ECHO
879 19 jeremybenn
RANLIB
880
STRIP
881 82 jeremybenn
AR
882
OBJDUMP
883
LN_S
884
NM
885
ac_ct_DUMPBIN
886
DUMPBIN
887
LD
888
FGREP
889
SED
890 19 jeremybenn
LIBTOOL
891 82 jeremybenn
target_os
892
target_vendor
893
target_cpu
894
target
895
host_os
896
host_vendor
897
host_cpu
898
host
899
build_os
900
build_vendor
901
build_cpu
902
build
903
subdirs
904 91 jeremybenn
EGREP
905
GREP
906
CPP
907
OBJEXT
908
EXEEXT
909
ac_ct_CC
910
CPPFLAGS
911
LDFLAGS
912
CFLAGS
913
CC
914 82 jeremybenn
target_alias
915
host_alias
916
build_alias
917
LIBS
918
ECHO_T
919
ECHO_N
920
ECHO_C
921
DEFS
922
mandir
923
localedir
924
libdir
925
psdir
926
pdfdir
927
dvidir
928
htmldir
929
infodir
930
docdir
931
oldincludedir
932
includedir
933
localstatedir
934
sharedstatedir
935
sysconfdir
936
datadir
937
datarootdir
938
libexecdir
939
sbindir
940
bindir
941
program_transform_name
942
prefix
943
exec_prefix
944
PACKAGE_BUGREPORT
945
PACKAGE_STRING
946
PACKAGE_VERSION
947
PACKAGE_TARNAME
948
PACKAGE_NAME
949
PATH_SEPARATOR
950
SHELL'
951 19 jeremybenn
ac_subst_files=''
952 82 jeremybenn
ac_user_opts='
953
enable_option_checking
954
enable_shared
955
enable_static
956
with_pic
957
enable_fast_install
958
with_gnu_ld
959
enable_libtool_lock
960
enable_dependency_tracking
961
enable_profiling
962
enable_execution
963
enable_ethphy
964
enable_range_stats
965
enable_ov_flag
966
enable_arith_flag
967
enable_debug
968
'
969 19 jeremybenn
      ac_precious_vars='build_alias
970
host_alias
971
target_alias
972
CC
973
CFLAGS
974
LDFLAGS
975
LIBS
976
CPPFLAGS
977
CPP
978 82 jeremybenn
CCAS
979
CCASFLAGS'
980 90 jeremybenn
ac_subdirs_all='testsuite/test-code-or1k'
981 19 jeremybenn
 
982
# Initialize some variables set by options.
983
ac_init_help=
984
ac_init_version=false
985 82 jeremybenn
ac_unrecognized_opts=
986
ac_unrecognized_sep=
987 19 jeremybenn
# The variables have the same names as the options, with
988
# dashes changed to underlines.
989
cache_file=/dev/null
990
exec_prefix=NONE
991
no_create=
992
no_recursion=
993
prefix=NONE
994
program_prefix=NONE
995
program_suffix=NONE
996
program_transform_name=s,x,x,
997
silent=
998
site=
999
srcdir=
1000
verbose=
1001
x_includes=NONE
1002
x_libraries=NONE
1003
 
1004
# Installation directory options.
1005
# These are left unexpanded so users can "make install exec_prefix=/foo"
1006
# and all the variables that are supposed to be based on exec_prefix
1007
# by default will actually change.
1008
# Use braces instead of parens because sh, perl, etc. also accept them.
1009
# (The list follows the same order as the GNU Coding Standards.)
1010
bindir='${exec_prefix}/bin'
1011
sbindir='${exec_prefix}/sbin'
1012
libexecdir='${exec_prefix}/libexec'
1013
datarootdir='${prefix}/share'
1014
datadir='${datarootdir}'
1015
sysconfdir='${prefix}/etc'
1016
sharedstatedir='${prefix}/com'
1017
localstatedir='${prefix}/var'
1018
includedir='${prefix}/include'
1019
oldincludedir='/usr/include'
1020
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1021
infodir='${datarootdir}/info'
1022
htmldir='${docdir}'
1023
dvidir='${docdir}'
1024
pdfdir='${docdir}'
1025
psdir='${docdir}'
1026
libdir='${exec_prefix}/lib'
1027
localedir='${datarootdir}/locale'
1028
mandir='${datarootdir}/man'
1029
 
1030
ac_prev=
1031
ac_dashdash=
1032
for ac_option
1033
do
1034
  # If the previous option needs an argument, assign it.
1035
  if test -n "$ac_prev"; then
1036
    eval $ac_prev=\$ac_option
1037
    ac_prev=
1038
    continue
1039
  fi
1040
 
1041
  case $ac_option in
1042
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1043
  *)    ac_optarg=yes ;;
1044
  esac
1045
 
1046
  # Accept the important Cygnus configure options, so we can diagnose typos.
1047
 
1048
  case $ac_dashdash$ac_option in
1049
  --)
1050
    ac_dashdash=yes ;;
1051
 
1052
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1053
    ac_prev=bindir ;;
1054
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1055
    bindir=$ac_optarg ;;
1056
 
1057
  -build | --build | --buil | --bui | --bu)
1058
    ac_prev=build_alias ;;
1059
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1060
    build_alias=$ac_optarg ;;
1061
 
1062
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1063
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1064
    ac_prev=cache_file ;;
1065
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1066
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1067
    cache_file=$ac_optarg ;;
1068
 
1069
  --config-cache | -C)
1070
    cache_file=config.cache ;;
1071
 
1072
  -datadir | --datadir | --datadi | --datad)
1073
    ac_prev=datadir ;;
1074
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1075
    datadir=$ac_optarg ;;
1076
 
1077
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1078
  | --dataroo | --dataro | --datar)
1079
    ac_prev=datarootdir ;;
1080
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1081
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1082
    datarootdir=$ac_optarg ;;
1083
 
1084
  -disable-* | --disable-*)
1085 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1086 19 jeremybenn
    # Reject names that are not valid shell variable names.
1087 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1089 19 jeremybenn
   { (exit 1); exit 1; }; }
1090 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1091
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092
    case $ac_user_opts in
1093
      *"
1094
"enable_$ac_useropt"
1095
"*) ;;
1096
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1097
         ac_unrecognized_sep=', ';;
1098
    esac
1099
    eval enable_$ac_useropt=no ;;
1100 19 jeremybenn
 
1101
  -docdir | --docdir | --docdi | --doc | --do)
1102
    ac_prev=docdir ;;
1103
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1104
    docdir=$ac_optarg ;;
1105
 
1106
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1107
    ac_prev=dvidir ;;
1108
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1109
    dvidir=$ac_optarg ;;
1110
 
1111
  -enable-* | --enable-*)
1112 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1113 19 jeremybenn
    # Reject names that are not valid shell variable names.
1114 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1116 19 jeremybenn
   { (exit 1); exit 1; }; }
1117 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1118
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119
    case $ac_user_opts in
1120
      *"
1121
"enable_$ac_useropt"
1122
"*) ;;
1123
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1124
         ac_unrecognized_sep=', ';;
1125
    esac
1126
    eval enable_$ac_useropt=\$ac_optarg ;;
1127 19 jeremybenn
 
1128
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1129
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1130
  | --exec | --exe | --ex)
1131
    ac_prev=exec_prefix ;;
1132
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1133
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1134
  | --exec=* | --exe=* | --ex=*)
1135
    exec_prefix=$ac_optarg ;;
1136
 
1137
  -gas | --gas | --ga | --g)
1138
    # Obsolete; use --with-gas.
1139
    with_gas=yes ;;
1140
 
1141
  -help | --help | --hel | --he | -h)
1142
    ac_init_help=long ;;
1143
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1144
    ac_init_help=recursive ;;
1145
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1146
    ac_init_help=short ;;
1147
 
1148
  -host | --host | --hos | --ho)
1149
    ac_prev=host_alias ;;
1150
  -host=* | --host=* | --hos=* | --ho=*)
1151
    host_alias=$ac_optarg ;;
1152
 
1153
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1154
    ac_prev=htmldir ;;
1155
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1156
  | --ht=*)
1157
    htmldir=$ac_optarg ;;
1158
 
1159
  -includedir | --includedir | --includedi | --included | --include \
1160
  | --includ | --inclu | --incl | --inc)
1161
    ac_prev=includedir ;;
1162
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1163
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1164
    includedir=$ac_optarg ;;
1165
 
1166
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1167
    ac_prev=infodir ;;
1168
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1169
    infodir=$ac_optarg ;;
1170
 
1171
  -libdir | --libdir | --libdi | --libd)
1172
    ac_prev=libdir ;;
1173
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1174
    libdir=$ac_optarg ;;
1175
 
1176
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1177
  | --libexe | --libex | --libe)
1178
    ac_prev=libexecdir ;;
1179
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1180
  | --libexe=* | --libex=* | --libe=*)
1181
    libexecdir=$ac_optarg ;;
1182
 
1183
  -localedir | --localedir | --localedi | --localed | --locale)
1184
    ac_prev=localedir ;;
1185
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1186
    localedir=$ac_optarg ;;
1187
 
1188
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1189
  | --localstate | --localstat | --localsta | --localst | --locals)
1190
    ac_prev=localstatedir ;;
1191
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1192
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1193
    localstatedir=$ac_optarg ;;
1194
 
1195
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1196
    ac_prev=mandir ;;
1197
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1198
    mandir=$ac_optarg ;;
1199
 
1200
  -nfp | --nfp | --nf)
1201
    # Obsolete; use --without-fp.
1202
    with_fp=no ;;
1203
 
1204
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1205
  | --no-cr | --no-c | -n)
1206
    no_create=yes ;;
1207
 
1208
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1209
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1210
    no_recursion=yes ;;
1211
 
1212
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1213
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1214
  | --oldin | --oldi | --old | --ol | --o)
1215
    ac_prev=oldincludedir ;;
1216
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1217
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1218
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1219
    oldincludedir=$ac_optarg ;;
1220
 
1221
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1222
    ac_prev=prefix ;;
1223
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1224
    prefix=$ac_optarg ;;
1225
 
1226
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1227
  | --program-pre | --program-pr | --program-p)
1228
    ac_prev=program_prefix ;;
1229
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1230
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1231
    program_prefix=$ac_optarg ;;
1232
 
1233
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1234
  | --program-suf | --program-su | --program-s)
1235
    ac_prev=program_suffix ;;
1236
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1237
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1238
    program_suffix=$ac_optarg ;;
1239
 
1240
  -program-transform-name | --program-transform-name \
1241
  | --program-transform-nam | --program-transform-na \
1242
  | --program-transform-n | --program-transform- \
1243
  | --program-transform | --program-transfor \
1244
  | --program-transfo | --program-transf \
1245
  | --program-trans | --program-tran \
1246
  | --progr-tra | --program-tr | --program-t)
1247
    ac_prev=program_transform_name ;;
1248
  -program-transform-name=* | --program-transform-name=* \
1249
  | --program-transform-nam=* | --program-transform-na=* \
1250
  | --program-transform-n=* | --program-transform-=* \
1251
  | --program-transform=* | --program-transfor=* \
1252
  | --program-transfo=* | --program-transf=* \
1253
  | --program-trans=* | --program-tran=* \
1254
  | --progr-tra=* | --program-tr=* | --program-t=*)
1255
    program_transform_name=$ac_optarg ;;
1256
 
1257
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1258
    ac_prev=pdfdir ;;
1259
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1260
    pdfdir=$ac_optarg ;;
1261
 
1262
  -psdir | --psdir | --psdi | --psd | --ps)
1263
    ac_prev=psdir ;;
1264
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1265
    psdir=$ac_optarg ;;
1266
 
1267
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268
  | -silent | --silent | --silen | --sile | --sil)
1269
    silent=yes ;;
1270
 
1271
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1272
    ac_prev=sbindir ;;
1273
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1274
  | --sbi=* | --sb=*)
1275
    sbindir=$ac_optarg ;;
1276
 
1277
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1278
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1279
  | --sharedst | --shareds | --shared | --share | --shar \
1280
  | --sha | --sh)
1281
    ac_prev=sharedstatedir ;;
1282
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1283
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1284
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1285
  | --sha=* | --sh=*)
1286
    sharedstatedir=$ac_optarg ;;
1287
 
1288
  -site | --site | --sit)
1289
    ac_prev=site ;;
1290
  -site=* | --site=* | --sit=*)
1291
    site=$ac_optarg ;;
1292
 
1293
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1294
    ac_prev=srcdir ;;
1295
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1296
    srcdir=$ac_optarg ;;
1297
 
1298
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1299
  | --syscon | --sysco | --sysc | --sys | --sy)
1300
    ac_prev=sysconfdir ;;
1301
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1302
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1303
    sysconfdir=$ac_optarg ;;
1304
 
1305
  -target | --target | --targe | --targ | --tar | --ta | --t)
1306
    ac_prev=target_alias ;;
1307
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1308
    target_alias=$ac_optarg ;;
1309
 
1310
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1311
    verbose=yes ;;
1312
 
1313
  -version | --version | --versio | --versi | --vers | -V)
1314
    ac_init_version=: ;;
1315
 
1316
  -with-* | --with-*)
1317 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1318 19 jeremybenn
    # Reject names that are not valid shell variable names.
1319 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1321 19 jeremybenn
   { (exit 1); exit 1; }; }
1322 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1323
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324
    case $ac_user_opts in
1325
      *"
1326
"with_$ac_useropt"
1327
"*) ;;
1328
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1329
         ac_unrecognized_sep=', ';;
1330
    esac
1331
    eval with_$ac_useropt=\$ac_optarg ;;
1332 19 jeremybenn
 
1333
  -without-* | --without-*)
1334 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335 19 jeremybenn
    # Reject names that are not valid shell variable names.
1336 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1338 19 jeremybenn
   { (exit 1); exit 1; }; }
1339 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1340
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341
    case $ac_user_opts in
1342
      *"
1343
"with_$ac_useropt"
1344
"*) ;;
1345
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1346
         ac_unrecognized_sep=', ';;
1347
    esac
1348
    eval with_$ac_useropt=no ;;
1349 19 jeremybenn
 
1350
  --x)
1351
    # Obsolete; use --with-x.
1352
    with_x=yes ;;
1353
 
1354
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1355
  | --x-incl | --x-inc | --x-in | --x-i)
1356
    ac_prev=x_includes ;;
1357
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1358
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1359
    x_includes=$ac_optarg ;;
1360
 
1361
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1362
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1363
    ac_prev=x_libraries ;;
1364
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1365
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1366
    x_libraries=$ac_optarg ;;
1367
 
1368 82 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1369 19 jeremybenn
Try \`$0 --help' for more information." >&2
1370
   { (exit 1); exit 1; }; }
1371
    ;;
1372
 
1373
  *=*)
1374
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1375
    # Reject names that are not valid shell variable names.
1376
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1377 82 jeremybenn
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1378 19 jeremybenn
   { (exit 1); exit 1; }; }
1379
    eval $ac_envvar=\$ac_optarg
1380
    export $ac_envvar ;;
1381
 
1382
  *)
1383
    # FIXME: should be removed in autoconf 3.0.
1384 82 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1385 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1386 82 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1387 19 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1388
    ;;
1389
 
1390
  esac
1391
done
1392
 
1393
if test -n "$ac_prev"; then
1394
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1395 82 jeremybenn
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1396 19 jeremybenn
   { (exit 1); exit 1; }; }
1397
fi
1398
 
1399 82 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1400
  case $enable_option_checking in
1401
    no) ;;
1402
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1403
   { (exit 1); exit 1; }; } ;;
1404
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1405
  esac
1406
fi
1407
 
1408
# Check all directory arguments for consistency.
1409 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1410
                datadir sysconfdir sharedstatedir localstatedir includedir \
1411
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1412
                libdir localedir mandir
1413
do
1414
  eval ac_val=\$$ac_var
1415 82 jeremybenn
  # Remove trailing slashes.
1416 19 jeremybenn
  case $ac_val in
1417 82 jeremybenn
    */ )
1418
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1419
      eval $ac_var=\$ac_val;;
1420
  esac
1421
  # Be sure to have absolute directory names.
1422
  case $ac_val in
1423 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1424
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1425
  esac
1426 82 jeremybenn
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1427 19 jeremybenn
   { (exit 1); exit 1; }; }
1428
done
1429
 
1430
# There might be people who depend on the old broken behavior: `$host'
1431
# used to hold the argument of --host etc.
1432
# FIXME: To remove some day.
1433
build=$build_alias
1434
host=$host_alias
1435
target=$target_alias
1436
 
1437
# FIXME: To remove some day.
1438
if test "x$host_alias" != x; then
1439
  if test "x$build_alias" = x; then
1440
    cross_compiling=maybe
1441 82 jeremybenn
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1442 19 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1443
  elif test "x$build_alias" != "x$host_alias"; then
1444
    cross_compiling=yes
1445
  fi
1446
fi
1447
 
1448
ac_tool_prefix=
1449
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1450
 
1451
test "$silent" = yes && exec 6>/dev/null
1452
 
1453
 
1454
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1455
ac_ls_di=`ls -di .` &&
1456
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1457 82 jeremybenn
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1458 19 jeremybenn
   { (exit 1); exit 1; }; }
1459
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1460 82 jeremybenn
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1461 19 jeremybenn
   { (exit 1); exit 1; }; }
1462
 
1463
 
1464
# Find the source files, if location was not specified.
1465
if test -z "$srcdir"; then
1466
  ac_srcdir_defaulted=yes
1467
  # Try the directory containing this script, then the parent directory.
1468 82 jeremybenn
  ac_confdir=`$as_dirname -- "$as_myself" ||
1469
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1470
         X"$as_myself" : 'X\(//\)[^/]' \| \
1471
         X"$as_myself" : 'X\(//\)$' \| \
1472
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1473
$as_echo X"$as_myself" |
1474 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1475
            s//\1/
1476
            q
1477
          }
1478
          /^X\(\/\/\)[^/].*/{
1479
            s//\1/
1480
            q
1481
          }
1482
          /^X\(\/\/\)$/{
1483
            s//\1/
1484
            q
1485
          }
1486
          /^X\(\/\).*/{
1487
            s//\1/
1488
            q
1489
          }
1490
          s/.*/./; q'`
1491
  srcdir=$ac_confdir
1492
  if test ! -r "$srcdir/$ac_unique_file"; then
1493
    srcdir=..
1494
  fi
1495
else
1496
  ac_srcdir_defaulted=no
1497
fi
1498
if test ! -r "$srcdir/$ac_unique_file"; then
1499
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1500 82 jeremybenn
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1501 19 jeremybenn
   { (exit 1); exit 1; }; }
1502
fi
1503
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1504
ac_abs_confdir=`(
1505 82 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1506 19 jeremybenn
   { (exit 1); exit 1; }; }
1507
        pwd)`
1508
# When building in place, set srcdir=.
1509
if test "$ac_abs_confdir" = "$ac_pwd"; then
1510
  srcdir=.
1511
fi
1512
# Remove unnecessary trailing slashes from srcdir.
1513
# Double slashes in file names in object file debugging info
1514
# mess up M-x gdb in Emacs.
1515
case $srcdir in
1516
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1517
esac
1518
for ac_var in $ac_precious_vars; do
1519
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1520
  eval ac_env_${ac_var}_value=\$${ac_var}
1521
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1522
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1523
done
1524
 
1525
#
1526
# Report the --help message.
1527
#
1528
if test "$ac_init_help" = "long"; then
1529
  # Omit some internal or obsolete options to make the list less imposing.
1530
  # This message is too long to be a string in the A/UX 3.1 sh.
1531
  cat <<_ACEOF
1532 89 jeremybenn
\`configure' configures or1ksim 2010-04-21 to adapt to many kinds of systems.
1533 19 jeremybenn
 
1534
Usage: $0 [OPTION]... [VAR=VALUE]...
1535
 
1536
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537
VAR=VALUE.  See below for descriptions of some of the useful variables.
1538
 
1539
Defaults for the options are specified in brackets.
1540
 
1541
Configuration:
1542
  -h, --help              display this help and exit
1543
      --help=short        display options specific to this package
1544
      --help=recursive    display the short help of all the included packages
1545
  -V, --version           display version information and exit
1546
  -q, --quiet, --silent   do not print \`checking...' messages
1547
      --cache-file=FILE   cache test results in FILE [disabled]
1548
  -C, --config-cache      alias for \`--cache-file=config.cache'
1549
  -n, --no-create         do not create output files
1550
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1551
 
1552
Installation directories:
1553
  --prefix=PREFIX         install architecture-independent files in PREFIX
1554 82 jeremybenn
                          [$ac_default_prefix]
1555 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1556 82 jeremybenn
                          [PREFIX]
1557 19 jeremybenn
 
1558
By default, \`make install' will install all the files in
1559
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1560
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1561
for instance \`--prefix=\$HOME'.
1562
 
1563
For better control, use the options below.
1564
 
1565
Fine tuning of the installation directories:
1566 82 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1567
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1568
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1569
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1570
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1571
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1572
  --libdir=DIR            object code libraries [EPREFIX/lib]
1573
  --includedir=DIR        C header files [PREFIX/include]
1574
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1575
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1576
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1577
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1578
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1579
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1580
  --docdir=DIR            documentation root [DATAROOTDIR/doc/or1ksim]
1581
  --htmldir=DIR           html documentation [DOCDIR]
1582
  --dvidir=DIR            dvi documentation [DOCDIR]
1583
  --pdfdir=DIR            pdf documentation [DOCDIR]
1584
  --psdir=DIR             ps documentation [DOCDIR]
1585 19 jeremybenn
_ACEOF
1586
 
1587
  cat <<\_ACEOF
1588
 
1589
Program names:
1590
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1591
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1592
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1593
 
1594
System types:
1595
  --build=BUILD     configure for building on BUILD [guessed]
1596
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1597
  --target=TARGET   configure for building compilers for TARGET [HOST]
1598
_ACEOF
1599
fi
1600
 
1601
if test -n "$ac_init_help"; then
1602
  case $ac_init_help in
1603 89 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 2010-04-21:";;
1604 19 jeremybenn
   esac
1605
  cat <<\_ACEOF
1606
 
1607
Optional Features:
1608 82 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1609 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1610
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1611
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1612
  --enable-static[=PKGS]  build static libraries [default=yes]
1613
  --enable-fast-install[=PKGS]
1614
                          optimize for fast installation [default=yes]
1615
  --disable-libtool-lock  avoid locking (might break parallel builds)
1616
  --disable-dependency-tracking  speeds up one-time build
1617
  --enable-dependency-tracking   do not reject slow dependency extractors
1618
  --enable-profiling      generate profiling code
1619
  --enable-execution Execution style to use (simple/complex/dynamic)
1620
  --enable-ethphy    compiles sim with ethernet phy support
1621
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1622
  --enable-ov-flag      Whether instructions set overflow flag.
1623
  --enable-arith-flag      Whether arithmethic instructions setflag.
1624
  --enable-debug          enable library debugging symbols
1625
 
1626
Optional Packages:
1627
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1628
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1629
  --with-pic              try to use only PIC/non-PIC objects [default=use
1630
                          both]
1631 82 jeremybenn
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1632 19 jeremybenn
 
1633
Some influential environment variables:
1634
  CC          C compiler command
1635
  CFLAGS      C compiler flags
1636
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1637
              nonstandard directory 
1638
  LIBS        libraries to pass to the linker, e.g. -l
1639
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1640
              you have headers in a nonstandard directory 
1641
  CPP         C preprocessor
1642 82 jeremybenn
  CCAS        assembler compiler command (defaults to CC)
1643
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1644 19 jeremybenn
 
1645
Use these variables to override the choices made by `configure' or to help
1646
it to find libraries and programs with nonstandard names/locations.
1647
 
1648
Report bugs to .
1649
_ACEOF
1650
ac_status=$?
1651
fi
1652
 
1653
if test "$ac_init_help" = "recursive"; then
1654
  # If there are subdirs, report their specific --help.
1655
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656 82 jeremybenn
    test -d "$ac_dir" ||
1657
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658
      continue
1659 19 jeremybenn
    ac_builddir=.
1660
 
1661
case "$ac_dir" in
1662
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663
*)
1664 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1666 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667 19 jeremybenn
  case $ac_top_builddir_sub in
1668
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670
  esac ;;
1671
esac
1672
ac_abs_top_builddir=$ac_pwd
1673
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674
# for backward compatibility:
1675
ac_top_builddir=$ac_top_build_prefix
1676
 
1677
case $srcdir in
1678
  .)  # We are building in place.
1679
    ac_srcdir=.
1680
    ac_top_srcdir=$ac_top_builddir_sub
1681
    ac_abs_top_srcdir=$ac_pwd ;;
1682
  [\\/]* | ?:[\\/]* )  # Absolute name.
1683
    ac_srcdir=$srcdir$ac_dir_suffix;
1684
    ac_top_srcdir=$srcdir
1685
    ac_abs_top_srcdir=$srcdir ;;
1686
  *) # Relative name.
1687
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1689
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690
esac
1691
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
 
1693
    cd "$ac_dir" || { ac_status=$?; continue; }
1694
    # Check for guested configure.
1695
    if test -f "$ac_srcdir/configure.gnu"; then
1696
      echo &&
1697
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698
    elif test -f "$ac_srcdir/configure"; then
1699
      echo &&
1700
      $SHELL "$ac_srcdir/configure" --help=recursive
1701
    else
1702 82 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703 19 jeremybenn
    fi || ac_status=$?
1704
    cd "$ac_pwd" || { ac_status=$?; break; }
1705
  done
1706
fi
1707
 
1708
test -n "$ac_init_help" && exit $ac_status
1709
if $ac_init_version; then
1710
  cat <<\_ACEOF
1711 89 jeremybenn
or1ksim configure 2010-04-21
1712 82 jeremybenn
generated by GNU Autoconf 2.63
1713 19 jeremybenn
 
1714
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1715 82 jeremybenn
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1716 19 jeremybenn
This configure script is free software; the Free Software Foundation
1717
gives unlimited permission to copy, distribute and modify it.
1718 82 jeremybenn
 
1719
Copyright (C) 1999-2008 OpenCores
1720
Copyright (C) 2008, 2010 Embecosm Limited
1721
 
1722
Contributor Jeremy Bennett 
1723
 
1724
This file is part of OpenRISC 1000 Architectural Simulator.
1725
 
1726
This program is free software; you can redistribute it and/or modify it
1727
under the terms of the GNU General Public License as published by the Free
1728
Software Foundation; either version 3 of the License, or (at your option)
1729
any later version.
1730
 
1731
This program is distributed in the hope that it will be useful, but WITHOUT
1732
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1733
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1734
more details.
1735
 
1736
You should have received a copy of the GNU General Public License along
1737
with this program.  If not, see .
1738 19 jeremybenn
_ACEOF
1739
  exit
1740
fi
1741
cat >config.log <<_ACEOF
1742
This file contains any messages produced by compilers while
1743
running configure, to aid debugging if configure makes a mistake.
1744
 
1745 89 jeremybenn
It was created by or1ksim $as_me 2010-04-21, which was
1746 82 jeremybenn
generated by GNU Autoconf 2.63.  Invocation command line was
1747 19 jeremybenn
 
1748
  $ $0 $@
1749
 
1750
_ACEOF
1751
exec 5>>config.log
1752
{
1753
cat <<_ASUNAME
1754
## --------- ##
1755
## Platform. ##
1756
## --------- ##
1757
 
1758
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1759
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1760
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1761
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1762
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1763
 
1764
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1765
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1766
 
1767
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1768
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1769
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1770
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1771
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1772
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1773
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1774
 
1775
_ASUNAME
1776
 
1777
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778
for as_dir in $PATH
1779
do
1780
  IFS=$as_save_IFS
1781
  test -z "$as_dir" && as_dir=.
1782 82 jeremybenn
  $as_echo "PATH: $as_dir"
1783 19 jeremybenn
done
1784
IFS=$as_save_IFS
1785
 
1786
} >&5
1787
 
1788
cat >&5 <<_ACEOF
1789
 
1790
 
1791
## ----------- ##
1792
## Core tests. ##
1793
## ----------- ##
1794
 
1795
_ACEOF
1796
 
1797
 
1798
# Keep a trace of the command line.
1799
# Strip out --no-create and --no-recursion so they do not pile up.
1800
# Strip out --silent because we don't want to record it for future runs.
1801
# Also quote any args containing shell meta-characters.
1802
# Make two passes to allow for proper duplicate-argument suppression.
1803
ac_configure_args=
1804
ac_configure_args0=
1805
ac_configure_args1=
1806
ac_must_keep_next=false
1807
for ac_pass in 1 2
1808
do
1809
  for ac_arg
1810
  do
1811
    case $ac_arg in
1812
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1813
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1814
    | -silent | --silent | --silen | --sile | --sil)
1815
      continue ;;
1816
    *\'*)
1817 82 jeremybenn
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1818 19 jeremybenn
    esac
1819
    case $ac_pass in
1820
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1821
    2)
1822
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1823
      if test $ac_must_keep_next = true; then
1824
        ac_must_keep_next=false # Got value, back to normal.
1825
      else
1826
        case $ac_arg in
1827
          *=* | --config-cache | -C | -disable-* | --disable-* \
1828
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1829
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1830
          | -with-* | --with-* | -without-* | --without-* | --x)
1831
            case "$ac_configure_args0 " in
1832
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1833
            esac
1834
            ;;
1835
          -* ) ac_must_keep_next=true ;;
1836
        esac
1837
      fi
1838
      ac_configure_args="$ac_configure_args '$ac_arg'"
1839
      ;;
1840
    esac
1841
  done
1842
done
1843
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1844
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1845
 
1846
# When interrupted or exit'd, cleanup temporary files, and complete
1847
# config.log.  We remove comments because anyway the quotes in there
1848
# would cause problems or look ugly.
1849
# WARNING: Use '\'' to represent an apostrophe within the trap.
1850
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1851
trap 'exit_status=$?
1852
  # Save into config.log some information that might help in debugging.
1853
  {
1854
    echo
1855
 
1856
    cat <<\_ASBOX
1857
## ---------------- ##
1858
## Cache variables. ##
1859
## ---------------- ##
1860
_ASBOX
1861
    echo
1862
    # The following way of writing the cache mishandles newlines in values,
1863
(
1864
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1865
    eval ac_val=\$$ac_var
1866
    case $ac_val in #(
1867
    *${as_nl}*)
1868
      case $ac_var in #(
1869 82 jeremybenn
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1870
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1871 19 jeremybenn
      esac
1872
      case $ac_var in #(
1873
      _ | IFS | as_nl) ;; #(
1874 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1875 19 jeremybenn
      *) $as_unset $ac_var ;;
1876
      esac ;;
1877
    esac
1878
  done
1879
  (set) 2>&1 |
1880
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1881
    *${as_nl}ac_space=\ *)
1882
      sed -n \
1883
        "s/'\''/'\''\\\\'\'''\''/g;
1884
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1885
      ;; #(
1886
    *)
1887
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1888
      ;;
1889
    esac |
1890
    sort
1891
)
1892
    echo
1893
 
1894
    cat <<\_ASBOX
1895
## ----------------- ##
1896
## Output variables. ##
1897
## ----------------- ##
1898
_ASBOX
1899
    echo
1900
    for ac_var in $ac_subst_vars
1901
    do
1902
      eval ac_val=\$$ac_var
1903
      case $ac_val in
1904 82 jeremybenn
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 19 jeremybenn
      esac
1906 82 jeremybenn
      $as_echo "$ac_var='\''$ac_val'\''"
1907 19 jeremybenn
    done | sort
1908
    echo
1909
 
1910
    if test -n "$ac_subst_files"; then
1911
      cat <<\_ASBOX
1912
## ------------------- ##
1913
## File substitutions. ##
1914
## ------------------- ##
1915
_ASBOX
1916
      echo
1917
      for ac_var in $ac_subst_files
1918
      do
1919
        eval ac_val=\$$ac_var
1920
        case $ac_val in
1921 82 jeremybenn
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1922 19 jeremybenn
        esac
1923 82 jeremybenn
        $as_echo "$ac_var='\''$ac_val'\''"
1924 19 jeremybenn
      done | sort
1925
      echo
1926
    fi
1927
 
1928
    if test -s confdefs.h; then
1929
      cat <<\_ASBOX
1930
## ----------- ##
1931
## confdefs.h. ##
1932
## ----------- ##
1933
_ASBOX
1934
      echo
1935
      cat confdefs.h
1936
      echo
1937
    fi
1938
    test "$ac_signal" != 0 &&
1939 82 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
1940
    $as_echo "$as_me: exit $exit_status"
1941 19 jeremybenn
  } >&5
1942
  rm -f core *.core core.conftest.* &&
1943
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1944
    exit $exit_status
1945
' 0
1946
for ac_signal in 1 2 13 15; do
1947
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1948
done
1949
ac_signal=0
1950
 
1951
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1952
rm -f -r conftest* confdefs.h
1953
 
1954
# Predefined preprocessor variables.
1955
 
1956
cat >>confdefs.h <<_ACEOF
1957
#define PACKAGE_NAME "$PACKAGE_NAME"
1958
_ACEOF
1959
 
1960
 
1961
cat >>confdefs.h <<_ACEOF
1962
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1963
_ACEOF
1964
 
1965
 
1966
cat >>confdefs.h <<_ACEOF
1967
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1968
_ACEOF
1969
 
1970
 
1971
cat >>confdefs.h <<_ACEOF
1972
#define PACKAGE_STRING "$PACKAGE_STRING"
1973
_ACEOF
1974
 
1975
 
1976
cat >>confdefs.h <<_ACEOF
1977
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1978
_ACEOF
1979
 
1980
 
1981
# Let the site file select an alternate cache file if it wants to.
1982 82 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
1983
ac_site_file1=NONE
1984
ac_site_file2=NONE
1985 19 jeremybenn
if test -n "$CONFIG_SITE"; then
1986 82 jeremybenn
  ac_site_file1=$CONFIG_SITE
1987 19 jeremybenn
elif test "x$prefix" != xNONE; then
1988 82 jeremybenn
  ac_site_file1=$prefix/share/config.site
1989
  ac_site_file2=$prefix/etc/config.site
1990 19 jeremybenn
else
1991 82 jeremybenn
  ac_site_file1=$ac_default_prefix/share/config.site
1992
  ac_site_file2=$ac_default_prefix/etc/config.site
1993 19 jeremybenn
fi
1994 82 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1995 19 jeremybenn
do
1996 82 jeremybenn
  test "x$ac_site_file" = xNONE && continue
1997 19 jeremybenn
  if test -r "$ac_site_file"; then
1998 82 jeremybenn
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1999
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2000 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2001
    . "$ac_site_file"
2002
  fi
2003
done
2004
 
2005
if test -r "$cache_file"; then
2006
  # Some versions of bash will fail to source /dev/null (special
2007
  # files actually), so we avoid doing that.
2008
  if test -f "$cache_file"; then
2009 82 jeremybenn
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2010
$as_echo "$as_me: loading cache $cache_file" >&6;}
2011 19 jeremybenn
    case $cache_file in
2012
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2013
      *)                      . "./$cache_file";;
2014
    esac
2015
  fi
2016
else
2017 82 jeremybenn
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2018
$as_echo "$as_me: creating cache $cache_file" >&6;}
2019 19 jeremybenn
  >$cache_file
2020
fi
2021
 
2022
# Check that the precious variables saved in the cache have kept the same
2023
# value.
2024
ac_cache_corrupted=false
2025
for ac_var in $ac_precious_vars; do
2026
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2027
  eval ac_new_set=\$ac_env_${ac_var}_set
2028
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2029
  eval ac_new_val=\$ac_env_${ac_var}_value
2030
  case $ac_old_set,$ac_new_set in
2031
    set,)
2032 82 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2033
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2034 19 jeremybenn
      ac_cache_corrupted=: ;;
2035
    ,set)
2036 82 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2037
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2038 19 jeremybenn
      ac_cache_corrupted=: ;;
2039
    ,);;
2040
    *)
2041
      if test "x$ac_old_val" != "x$ac_new_val"; then
2042 82 jeremybenn
        # differences in whitespace do not lead to failure.
2043
        ac_old_val_w=`echo x $ac_old_val`
2044
        ac_new_val_w=`echo x $ac_new_val`
2045
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2046
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2047
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2048
          ac_cache_corrupted=:
2049
        else
2050
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2051
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2052
          eval $ac_var=\$ac_old_val
2053
        fi
2054
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2055
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2056
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2057
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2058 19 jeremybenn
      fi;;
2059
  esac
2060
  # Pass precious variables to config.status.
2061
  if test "$ac_new_set" = set; then
2062
    case $ac_new_val in
2063 82 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2064 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2065
    esac
2066
    case " $ac_configure_args " in
2067
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2068
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2069
    esac
2070
  fi
2071
done
2072
if $ac_cache_corrupted; then
2073 82 jeremybenn
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2074
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2075
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2076
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2077
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2078
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2079 19 jeremybenn
   { (exit 1); exit 1; }; }
2080
fi
2081
 
2082
 
2083
 
2084
 
2085
 
2086
 
2087
 
2088
 
2089
 
2090
 
2091
 
2092
 
2093
 
2094
 
2095
 
2096
 
2097
 
2098
 
2099
 
2100
 
2101
 
2102
 
2103
 
2104
 
2105
 
2106
ac_ext=c
2107
ac_cpp='$CPP $CPPFLAGS'
2108
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111
 
2112
 
2113
 
2114 82 jeremybenn
 
2115 91 jeremybenn
# Generically use extensions such as _GNU_SOURCE if available.
2116 19 jeremybenn
ac_ext=c
2117
ac_cpp='$CPP $CPPFLAGS'
2118
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2119
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2120
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2121
if test -n "$ac_tool_prefix"; then
2122
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2123
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2124 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2125
$as_echo_n "checking for $ac_word... " >&6; }
2126 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2127 82 jeremybenn
  $as_echo_n "(cached) " >&6
2128 19 jeremybenn
else
2129
  if test -n "$CC"; then
2130
  ac_cv_prog_CC="$CC" # Let the user override the test.
2131
else
2132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133
for as_dir in $PATH
2134
do
2135
  IFS=$as_save_IFS
2136
  test -z "$as_dir" && as_dir=.
2137
  for ac_exec_ext in '' $ac_executable_extensions; do
2138
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2139
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2140 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 19 jeremybenn
    break 2
2142
  fi
2143
done
2144
done
2145
IFS=$as_save_IFS
2146
 
2147
fi
2148
fi
2149
CC=$ac_cv_prog_CC
2150
if test -n "$CC"; then
2151 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2152
$as_echo "$CC" >&6; }
2153 19 jeremybenn
else
2154 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2155
$as_echo "no" >&6; }
2156 19 jeremybenn
fi
2157
 
2158
 
2159
fi
2160
if test -z "$ac_cv_prog_CC"; then
2161
  ac_ct_CC=$CC
2162
  # Extract the first word of "gcc", so it can be a program name with args.
2163
set dummy gcc; ac_word=$2
2164 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2165
$as_echo_n "checking for $ac_word... " >&6; }
2166 19 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2167 82 jeremybenn
  $as_echo_n "(cached) " >&6
2168 19 jeremybenn
else
2169
  if test -n "$ac_ct_CC"; then
2170
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2171
else
2172
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173
for as_dir in $PATH
2174
do
2175
  IFS=$as_save_IFS
2176
  test -z "$as_dir" && as_dir=.
2177
  for ac_exec_ext in '' $ac_executable_extensions; do
2178
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179
    ac_cv_prog_ac_ct_CC="gcc"
2180 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 19 jeremybenn
    break 2
2182
  fi
2183
done
2184
done
2185
IFS=$as_save_IFS
2186
 
2187
fi
2188
fi
2189
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2190
if test -n "$ac_ct_CC"; then
2191 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2192
$as_echo "$ac_ct_CC" >&6; }
2193 19 jeremybenn
else
2194 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2195
$as_echo "no" >&6; }
2196 19 jeremybenn
fi
2197
 
2198
  if test "x$ac_ct_CC" = x; then
2199
    CC=""
2200
  else
2201
    case $cross_compiling:$ac_tool_warned in
2202
yes:)
2203 82 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2204
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2205 19 jeremybenn
ac_tool_warned=yes ;;
2206
esac
2207
    CC=$ac_ct_CC
2208
  fi
2209
else
2210
  CC="$ac_cv_prog_CC"
2211
fi
2212
 
2213
if test -z "$CC"; then
2214
          if test -n "$ac_tool_prefix"; then
2215
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2216
set dummy ${ac_tool_prefix}cc; ac_word=$2
2217 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2218
$as_echo_n "checking for $ac_word... " >&6; }
2219 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2220 82 jeremybenn
  $as_echo_n "(cached) " >&6
2221 19 jeremybenn
else
2222
  if test -n "$CC"; then
2223
  ac_cv_prog_CC="$CC" # Let the user override the test.
2224
else
2225
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226
for as_dir in $PATH
2227
do
2228
  IFS=$as_save_IFS
2229
  test -z "$as_dir" && as_dir=.
2230
  for ac_exec_ext in '' $ac_executable_extensions; do
2231
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2232
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2233 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 19 jeremybenn
    break 2
2235
  fi
2236
done
2237
done
2238
IFS=$as_save_IFS
2239
 
2240
fi
2241
fi
2242
CC=$ac_cv_prog_CC
2243
if test -n "$CC"; then
2244 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2245
$as_echo "$CC" >&6; }
2246 19 jeremybenn
else
2247 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2248
$as_echo "no" >&6; }
2249 19 jeremybenn
fi
2250
 
2251
 
2252
  fi
2253
fi
2254
if test -z "$CC"; then
2255
  # Extract the first word of "cc", so it can be a program name with args.
2256
set dummy cc; ac_word=$2
2257 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2258
$as_echo_n "checking for $ac_word... " >&6; }
2259 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2260 82 jeremybenn
  $as_echo_n "(cached) " >&6
2261 19 jeremybenn
else
2262
  if test -n "$CC"; then
2263
  ac_cv_prog_CC="$CC" # Let the user override the test.
2264
else
2265
  ac_prog_rejected=no
2266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267
for as_dir in $PATH
2268
do
2269
  IFS=$as_save_IFS
2270
  test -z "$as_dir" && as_dir=.
2271
  for ac_exec_ext in '' $ac_executable_extensions; do
2272
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2273
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2274
       ac_prog_rejected=yes
2275
       continue
2276
     fi
2277
    ac_cv_prog_CC="cc"
2278 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 19 jeremybenn
    break 2
2280
  fi
2281
done
2282
done
2283
IFS=$as_save_IFS
2284
 
2285
if test $ac_prog_rejected = yes; then
2286
  # We found a bogon in the path, so make sure we never use it.
2287
  set dummy $ac_cv_prog_CC
2288
  shift
2289
  if test $# != 0; then
2290
    # We chose a different compiler from the bogus one.
2291
    # However, it has the same basename, so the bogon will be chosen
2292
    # first if we set CC to just the basename; use the full file name.
2293
    shift
2294
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2295
  fi
2296
fi
2297
fi
2298
fi
2299
CC=$ac_cv_prog_CC
2300
if test -n "$CC"; then
2301 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2302
$as_echo "$CC" >&6; }
2303 19 jeremybenn
else
2304 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2305
$as_echo "no" >&6; }
2306 19 jeremybenn
fi
2307
 
2308
 
2309
fi
2310
if test -z "$CC"; then
2311
  if test -n "$ac_tool_prefix"; then
2312
  for ac_prog in cl.exe
2313
  do
2314
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2315
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2316 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2317
$as_echo_n "checking for $ac_word... " >&6; }
2318 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2319 82 jeremybenn
  $as_echo_n "(cached) " >&6
2320 19 jeremybenn
else
2321
  if test -n "$CC"; then
2322
  ac_cv_prog_CC="$CC" # Let the user override the test.
2323
else
2324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325
for as_dir in $PATH
2326
do
2327
  IFS=$as_save_IFS
2328
  test -z "$as_dir" && as_dir=.
2329
  for ac_exec_ext in '' $ac_executable_extensions; do
2330
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2332 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 19 jeremybenn
    break 2
2334
  fi
2335
done
2336
done
2337
IFS=$as_save_IFS
2338
 
2339
fi
2340
fi
2341
CC=$ac_cv_prog_CC
2342
if test -n "$CC"; then
2343 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2344
$as_echo "$CC" >&6; }
2345 19 jeremybenn
else
2346 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2347
$as_echo "no" >&6; }
2348 19 jeremybenn
fi
2349
 
2350
 
2351
    test -n "$CC" && break
2352
  done
2353
fi
2354
if test -z "$CC"; then
2355
  ac_ct_CC=$CC
2356
  for ac_prog in cl.exe
2357
do
2358
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2359
set dummy $ac_prog; ac_word=$2
2360 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2361
$as_echo_n "checking for $ac_word... " >&6; }
2362 19 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2363 82 jeremybenn
  $as_echo_n "(cached) " >&6
2364 19 jeremybenn
else
2365
  if test -n "$ac_ct_CC"; then
2366
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2367
else
2368
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369
for as_dir in $PATH
2370
do
2371
  IFS=$as_save_IFS
2372
  test -z "$as_dir" && as_dir=.
2373
  for ac_exec_ext in '' $ac_executable_extensions; do
2374
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375
    ac_cv_prog_ac_ct_CC="$ac_prog"
2376 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 19 jeremybenn
    break 2
2378
  fi
2379
done
2380
done
2381
IFS=$as_save_IFS
2382
 
2383
fi
2384
fi
2385
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2386
if test -n "$ac_ct_CC"; then
2387 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2388
$as_echo "$ac_ct_CC" >&6; }
2389 19 jeremybenn
else
2390 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2391
$as_echo "no" >&6; }
2392 19 jeremybenn
fi
2393
 
2394
 
2395
  test -n "$ac_ct_CC" && break
2396
done
2397
 
2398
  if test "x$ac_ct_CC" = x; then
2399
    CC=""
2400
  else
2401
    case $cross_compiling:$ac_tool_warned in
2402
yes:)
2403 82 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2404
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2405 19 jeremybenn
ac_tool_warned=yes ;;
2406
esac
2407
    CC=$ac_ct_CC
2408
  fi
2409
fi
2410
 
2411
fi
2412
 
2413
 
2414 82 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2415
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2416
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2417 19 jeremybenn
See \`config.log' for more details." >&5
2418 82 jeremybenn
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2419 19 jeremybenn
See \`config.log' for more details." >&2;}
2420 82 jeremybenn
   { (exit 1); exit 1; }; }; }
2421 19 jeremybenn
 
2422
# Provide some information about the compiler.
2423 82 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2424
set X $ac_compile
2425
ac_compiler=$2
2426 19 jeremybenn
{ (ac_try="$ac_compiler --version >&5"
2427
case "(($ac_try" in
2428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429
  *) ac_try_echo=$ac_try;;
2430
esac
2431 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2432
$as_echo "$ac_try_echo") >&5
2433 19 jeremybenn
  (eval "$ac_compiler --version >&5") 2>&5
2434
  ac_status=$?
2435 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 19 jeremybenn
  (exit $ac_status); }
2437
{ (ac_try="$ac_compiler -v >&5"
2438
case "(($ac_try" in
2439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440
  *) ac_try_echo=$ac_try;;
2441
esac
2442 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2443
$as_echo "$ac_try_echo") >&5
2444 19 jeremybenn
  (eval "$ac_compiler -v >&5") 2>&5
2445
  ac_status=$?
2446 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 19 jeremybenn
  (exit $ac_status); }
2448
{ (ac_try="$ac_compiler -V >&5"
2449
case "(($ac_try" in
2450
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451
  *) ac_try_echo=$ac_try;;
2452
esac
2453 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2454
$as_echo "$ac_try_echo") >&5
2455 19 jeremybenn
  (eval "$ac_compiler -V >&5") 2>&5
2456
  ac_status=$?
2457 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 19 jeremybenn
  (exit $ac_status); }
2459
 
2460
cat >conftest.$ac_ext <<_ACEOF
2461
/* confdefs.h.  */
2462
_ACEOF
2463
cat confdefs.h >>conftest.$ac_ext
2464
cat >>conftest.$ac_ext <<_ACEOF
2465
/* end confdefs.h.  */
2466
 
2467
int
2468
main ()
2469
{
2470
 
2471
  ;
2472
  return 0;
2473
}
2474
_ACEOF
2475
ac_clean_files_save=$ac_clean_files
2476 82 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2477 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
2478
# It will help us diagnose broken compilers, and finding out an intuition
2479
# of exeext.
2480 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2481
$as_echo_n "checking for C compiler default output file name... " >&6; }
2482
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2483
 
2484
# The possible output files:
2485
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2486
 
2487 19 jeremybenn
ac_rmfiles=
2488
for ac_file in $ac_files
2489
do
2490
  case $ac_file in
2491 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2492 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2493
  esac
2494
done
2495
rm -f $ac_rmfiles
2496
 
2497
if { (ac_try="$ac_link_default"
2498
case "(($ac_try" in
2499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500
  *) ac_try_echo=$ac_try;;
2501
esac
2502 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2503
$as_echo "$ac_try_echo") >&5
2504 19 jeremybenn
  (eval "$ac_link_default") 2>&5
2505
  ac_status=$?
2506 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 19 jeremybenn
  (exit $ac_status); }; then
2508
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2509
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2510
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2511
# so that the user can short-circuit this test for compilers unknown to
2512
# Autoconf.
2513
for ac_file in $ac_files ''
2514
do
2515
  test -f "$ac_file" || continue
2516
  case $ac_file in
2517 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2518 19 jeremybenn
        ;;
2519
    [ab].out )
2520
        # We found the default executable, but exeext='' is most
2521
        # certainly right.
2522
        break;;
2523
    *.* )
2524
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2525
        then :; else
2526
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2527
        fi
2528
        # We set ac_cv_exeext here because the later test for it is not
2529
        # safe: cross compilers may not add the suffix if given an `-o'
2530
        # argument, so we may need to know it at that point already.
2531
        # Even if this section looks crufty: it has the advantage of
2532
        # actually working.
2533
        break;;
2534
    * )
2535
        break;;
2536
  esac
2537
done
2538
test "$ac_cv_exeext" = no && ac_cv_exeext=
2539
 
2540
else
2541
  ac_file=''
2542
fi
2543
 
2544 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2545
$as_echo "$ac_file" >&6; }
2546 19 jeremybenn
if test -z "$ac_file"; then
2547 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2548 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2549
 
2550 82 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2551
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2553 19 jeremybenn
See \`config.log' for more details." >&5
2554 82 jeremybenn
$as_echo "$as_me: error: C compiler cannot create executables
2555 19 jeremybenn
See \`config.log' for more details." >&2;}
2556 82 jeremybenn
   { (exit 77); exit 77; }; }; }
2557 19 jeremybenn
fi
2558
 
2559
ac_exeext=$ac_cv_exeext
2560
 
2561
# Check that the compiler produces executables we can run.  If not, either
2562
# the compiler is broken, or we cross compile.
2563 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2564
$as_echo_n "checking whether the C compiler works... " >&6; }
2565 19 jeremybenn
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2566
# If not cross compiling, check that we can run a simple program.
2567
if test "$cross_compiling" != yes; then
2568
  if { ac_try='./$ac_file'
2569
  { (case "(($ac_try" in
2570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571
  *) ac_try_echo=$ac_try;;
2572
esac
2573 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2574
$as_echo "$ac_try_echo") >&5
2575 19 jeremybenn
  (eval "$ac_try") 2>&5
2576
  ac_status=$?
2577 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 19 jeremybenn
  (exit $ac_status); }; }; then
2579
    cross_compiling=no
2580
  else
2581
    if test "$cross_compiling" = maybe; then
2582
        cross_compiling=yes
2583
    else
2584 82 jeremybenn
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2585
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2587 19 jeremybenn
If you meant to cross compile, use \`--host'.
2588
See \`config.log' for more details." >&5
2589 82 jeremybenn
$as_echo "$as_me: error: cannot run C compiled programs.
2590 19 jeremybenn
If you meant to cross compile, use \`--host'.
2591
See \`config.log' for more details." >&2;}
2592 82 jeremybenn
   { (exit 1); exit 1; }; }; }
2593 19 jeremybenn
    fi
2594
  fi
2595
fi
2596 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2597
$as_echo "yes" >&6; }
2598 19 jeremybenn
 
2599 82 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2600 19 jeremybenn
ac_clean_files=$ac_clean_files_save
2601
# Check that the compiler produces executables we can run.  If not, either
2602
# the compiler is broken, or we cross compile.
2603 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2604
$as_echo_n "checking whether we are cross compiling... " >&6; }
2605
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2606
$as_echo "$cross_compiling" >&6; }
2607 19 jeremybenn
 
2608 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2609
$as_echo_n "checking for suffix of executables... " >&6; }
2610 19 jeremybenn
if { (ac_try="$ac_link"
2611
case "(($ac_try" in
2612
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613
  *) ac_try_echo=$ac_try;;
2614
esac
2615 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2616
$as_echo "$ac_try_echo") >&5
2617 19 jeremybenn
  (eval "$ac_link") 2>&5
2618
  ac_status=$?
2619 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 19 jeremybenn
  (exit $ac_status); }; then
2621
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2622
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2623
# work properly (i.e., refer to `conftest.exe'), while it won't with
2624
# `rm'.
2625
for ac_file in conftest.exe conftest conftest.*; do
2626
  test -f "$ac_file" || continue
2627
  case $ac_file in
2628 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2629 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2630
          break;;
2631
    * ) break;;
2632
  esac
2633
done
2634
else
2635 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2636
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2638 19 jeremybenn
See \`config.log' for more details." >&5
2639 82 jeremybenn
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2640 19 jeremybenn
See \`config.log' for more details." >&2;}
2641 82 jeremybenn
   { (exit 1); exit 1; }; }; }
2642 19 jeremybenn
fi
2643
 
2644
rm -f conftest$ac_cv_exeext
2645 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2646
$as_echo "$ac_cv_exeext" >&6; }
2647 19 jeremybenn
 
2648
rm -f conftest.$ac_ext
2649
EXEEXT=$ac_cv_exeext
2650
ac_exeext=$EXEEXT
2651 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2652
$as_echo_n "checking for suffix of object files... " >&6; }
2653 19 jeremybenn
if test "${ac_cv_objext+set}" = set; then
2654 82 jeremybenn
  $as_echo_n "(cached) " >&6
2655 19 jeremybenn
else
2656
  cat >conftest.$ac_ext <<_ACEOF
2657
/* confdefs.h.  */
2658
_ACEOF
2659
cat confdefs.h >>conftest.$ac_ext
2660
cat >>conftest.$ac_ext <<_ACEOF
2661
/* end confdefs.h.  */
2662
 
2663
int
2664
main ()
2665
{
2666
 
2667
  ;
2668
  return 0;
2669
}
2670
_ACEOF
2671
rm -f conftest.o conftest.obj
2672
if { (ac_try="$ac_compile"
2673
case "(($ac_try" in
2674
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675
  *) ac_try_echo=$ac_try;;
2676
esac
2677 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2678
$as_echo "$ac_try_echo") >&5
2679 19 jeremybenn
  (eval "$ac_compile") 2>&5
2680
  ac_status=$?
2681 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 19 jeremybenn
  (exit $ac_status); }; then
2683
  for ac_file in conftest.o conftest.obj conftest.*; do
2684
  test -f "$ac_file" || continue;
2685
  case $ac_file in
2686 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2687 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2688
       break;;
2689
  esac
2690
done
2691
else
2692 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2693 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2694
 
2695 82 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2696
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2698 19 jeremybenn
See \`config.log' for more details." >&5
2699 82 jeremybenn
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2700 19 jeremybenn
See \`config.log' for more details." >&2;}
2701 82 jeremybenn
   { (exit 1); exit 1; }; }; }
2702 19 jeremybenn
fi
2703
 
2704
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2705
fi
2706 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2707
$as_echo "$ac_cv_objext" >&6; }
2708 19 jeremybenn
OBJEXT=$ac_cv_objext
2709
ac_objext=$OBJEXT
2710 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2711
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2712 19 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2713 82 jeremybenn
  $as_echo_n "(cached) " >&6
2714 19 jeremybenn
else
2715
  cat >conftest.$ac_ext <<_ACEOF
2716
/* confdefs.h.  */
2717
_ACEOF
2718
cat confdefs.h >>conftest.$ac_ext
2719
cat >>conftest.$ac_ext <<_ACEOF
2720
/* end confdefs.h.  */
2721
 
2722
int
2723
main ()
2724
{
2725
#ifndef __GNUC__
2726
       choke me
2727
#endif
2728
 
2729
  ;
2730
  return 0;
2731
}
2732
_ACEOF
2733
rm -f conftest.$ac_objext
2734
if { (ac_try="$ac_compile"
2735
case "(($ac_try" in
2736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737
  *) ac_try_echo=$ac_try;;
2738
esac
2739 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2740
$as_echo "$ac_try_echo") >&5
2741 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
2742
  ac_status=$?
2743
  grep -v '^ *+' conftest.er1 >conftest.err
2744
  rm -f conftest.er1
2745
  cat conftest.err >&5
2746 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 19 jeremybenn
  (exit $ac_status); } && {
2748
         test -z "$ac_c_werror_flag" ||
2749
         test ! -s conftest.err
2750
       } && test -s conftest.$ac_objext; then
2751
  ac_compiler_gnu=yes
2752
else
2753 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2754 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2755
 
2756
        ac_compiler_gnu=no
2757
fi
2758
 
2759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2761
 
2762
fi
2763 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2764
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2765
if test $ac_compiler_gnu = yes; then
2766
  GCC=yes
2767
else
2768
  GCC=
2769
fi
2770 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
2771
ac_save_CFLAGS=$CFLAGS
2772 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2773
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2774 19 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
2775 82 jeremybenn
  $as_echo_n "(cached) " >&6
2776 19 jeremybenn
else
2777
  ac_save_c_werror_flag=$ac_c_werror_flag
2778
   ac_c_werror_flag=yes
2779
   ac_cv_prog_cc_g=no
2780
   CFLAGS="-g"
2781
   cat >conftest.$ac_ext <<_ACEOF
2782
/* confdefs.h.  */
2783
_ACEOF
2784
cat confdefs.h >>conftest.$ac_ext
2785
cat >>conftest.$ac_ext <<_ACEOF
2786
/* end confdefs.h.  */
2787
 
2788
int
2789
main ()
2790
{
2791
 
2792
  ;
2793
  return 0;
2794
}
2795
_ACEOF
2796
rm -f conftest.$ac_objext
2797
if { (ac_try="$ac_compile"
2798
case "(($ac_try" in
2799
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800
  *) ac_try_echo=$ac_try;;
2801
esac
2802 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2803
$as_echo "$ac_try_echo") >&5
2804 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
2805
  ac_status=$?
2806
  grep -v '^ *+' conftest.er1 >conftest.err
2807
  rm -f conftest.er1
2808
  cat conftest.err >&5
2809 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 19 jeremybenn
  (exit $ac_status); } && {
2811
         test -z "$ac_c_werror_flag" ||
2812
         test ! -s conftest.err
2813
       } && test -s conftest.$ac_objext; then
2814
  ac_cv_prog_cc_g=yes
2815
else
2816 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2817 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2818
 
2819
        CFLAGS=""
2820
      cat >conftest.$ac_ext <<_ACEOF
2821
/* confdefs.h.  */
2822
_ACEOF
2823
cat confdefs.h >>conftest.$ac_ext
2824
cat >>conftest.$ac_ext <<_ACEOF
2825
/* end confdefs.h.  */
2826
 
2827
int
2828
main ()
2829
{
2830
 
2831
  ;
2832
  return 0;
2833
}
2834
_ACEOF
2835
rm -f conftest.$ac_objext
2836
if { (ac_try="$ac_compile"
2837
case "(($ac_try" in
2838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839
  *) ac_try_echo=$ac_try;;
2840
esac
2841 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2842
$as_echo "$ac_try_echo") >&5
2843 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
2844
  ac_status=$?
2845
  grep -v '^ *+' conftest.er1 >conftest.err
2846
  rm -f conftest.er1
2847
  cat conftest.err >&5
2848 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 19 jeremybenn
  (exit $ac_status); } && {
2850
         test -z "$ac_c_werror_flag" ||
2851
         test ! -s conftest.err
2852
       } && test -s conftest.$ac_objext; then
2853
  :
2854
else
2855 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2856 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2857
 
2858
        ac_c_werror_flag=$ac_save_c_werror_flag
2859
         CFLAGS="-g"
2860
         cat >conftest.$ac_ext <<_ACEOF
2861
/* confdefs.h.  */
2862
_ACEOF
2863
cat confdefs.h >>conftest.$ac_ext
2864
cat >>conftest.$ac_ext <<_ACEOF
2865
/* end confdefs.h.  */
2866
 
2867
int
2868
main ()
2869
{
2870
 
2871
  ;
2872
  return 0;
2873
}
2874
_ACEOF
2875
rm -f conftest.$ac_objext
2876
if { (ac_try="$ac_compile"
2877
case "(($ac_try" in
2878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879
  *) ac_try_echo=$ac_try;;
2880
esac
2881 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2882
$as_echo "$ac_try_echo") >&5
2883 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
2884
  ac_status=$?
2885
  grep -v '^ *+' conftest.er1 >conftest.err
2886
  rm -f conftest.er1
2887
  cat conftest.err >&5
2888 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 19 jeremybenn
  (exit $ac_status); } && {
2890
         test -z "$ac_c_werror_flag" ||
2891
         test ! -s conftest.err
2892
       } && test -s conftest.$ac_objext; then
2893
  ac_cv_prog_cc_g=yes
2894
else
2895 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2896 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2897
 
2898
 
2899
fi
2900
 
2901
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902
fi
2903
 
2904
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905
fi
2906
 
2907
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908
   ac_c_werror_flag=$ac_save_c_werror_flag
2909
fi
2910 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2911
$as_echo "$ac_cv_prog_cc_g" >&6; }
2912 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
2913
  CFLAGS=$ac_save_CFLAGS
2914
elif test $ac_cv_prog_cc_g = yes; then
2915
  if test "$GCC" = yes; then
2916
    CFLAGS="-g -O2"
2917
  else
2918
    CFLAGS="-g"
2919
  fi
2920
else
2921
  if test "$GCC" = yes; then
2922
    CFLAGS="-O2"
2923
  else
2924
    CFLAGS=
2925
  fi
2926
fi
2927 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2928
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2929 19 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then
2930 82 jeremybenn
  $as_echo_n "(cached) " >&6
2931 19 jeremybenn
else
2932
  ac_cv_prog_cc_c89=no
2933
ac_save_CC=$CC
2934
cat >conftest.$ac_ext <<_ACEOF
2935
/* confdefs.h.  */
2936
_ACEOF
2937
cat confdefs.h >>conftest.$ac_ext
2938
cat >>conftest.$ac_ext <<_ACEOF
2939
/* end confdefs.h.  */
2940
#include 
2941
#include 
2942
#include 
2943
#include 
2944
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2945
struct buf { int x; };
2946
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2947
static char *e (p, i)
2948
     char **p;
2949
     int i;
2950
{
2951
  return p[i];
2952
}
2953
static char *f (char * (*g) (char **, int), char **p, ...)
2954
{
2955
  char *s;
2956
  va_list v;
2957
  va_start (v,p);
2958
  s = g (p, va_arg (v,int));
2959
  va_end (v);
2960
  return s;
2961
}
2962
 
2963
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2964
   function prototypes and stuff, but not '\xHH' hex character constants.
2965
   These don't provoke an error unfortunately, instead are silently treated
2966
   as 'x'.  The following induces an error, until -std is added to get
2967
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2968
   array size at least.  It's necessary to write '\x00'==0 to get something
2969
   that's true only with -std.  */
2970
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2971
 
2972
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2973
   inside strings and character constants.  */
2974
#define FOO(x) 'x'
2975
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2976
 
2977
int test (int i, double x);
2978
struct s1 {int (*f) (int a);};
2979
struct s2 {int (*f) (double a);};
2980
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2981
int argc;
2982
char **argv;
2983
int
2984
main ()
2985
{
2986
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2987
  ;
2988
  return 0;
2989
}
2990
_ACEOF
2991
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2992
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2993
do
2994
  CC="$ac_save_CC $ac_arg"
2995
  rm -f conftest.$ac_objext
2996
if { (ac_try="$ac_compile"
2997
case "(($ac_try" in
2998
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999
  *) ac_try_echo=$ac_try;;
3000
esac
3001 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3002
$as_echo "$ac_try_echo") >&5
3003 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
3004
  ac_status=$?
3005
  grep -v '^ *+' conftest.er1 >conftest.err
3006
  rm -f conftest.er1
3007
  cat conftest.err >&5
3008 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 19 jeremybenn
  (exit $ac_status); } && {
3010
         test -z "$ac_c_werror_flag" ||
3011
         test ! -s conftest.err
3012
       } && test -s conftest.$ac_objext; then
3013
  ac_cv_prog_cc_c89=$ac_arg
3014
else
3015 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3016 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3017
 
3018
 
3019
fi
3020
 
3021
rm -f core conftest.err conftest.$ac_objext
3022
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3023
done
3024
rm -f conftest.$ac_ext
3025
CC=$ac_save_CC
3026
 
3027
fi
3028
# AC_CACHE_VAL
3029
case "x$ac_cv_prog_cc_c89" in
3030
  x)
3031 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3032
$as_echo "none needed" >&6; } ;;
3033 19 jeremybenn
  xno)
3034 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3035
$as_echo "unsupported" >&6; } ;;
3036 19 jeremybenn
  *)
3037
    CC="$CC $ac_cv_prog_cc_c89"
3038 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3039
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3040 19 jeremybenn
esac
3041
 
3042
 
3043
ac_ext=c
3044
ac_cpp='$CPP $CPPFLAGS'
3045
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048
 
3049 91 jeremybenn
 
3050
ac_ext=c
3051
ac_cpp='$CPP $CPPFLAGS'
3052
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3056
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3057
# On Suns, sometimes $CPP names a directory.
3058
if test -n "$CPP" && test -d "$CPP"; then
3059
  CPP=
3060
fi
3061
if test -z "$CPP"; then
3062
  if test "${ac_cv_prog_CPP+set}" = set; then
3063 82 jeremybenn
  $as_echo_n "(cached) " >&6
3064 19 jeremybenn
else
3065 91 jeremybenn
      # Double quotes because CPP needs to be expanded
3066
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3067
    do
3068
      ac_preproc_ok=false
3069
for ac_c_preproc_warn_flag in '' yes
3070 19 jeremybenn
do
3071 91 jeremybenn
  # Use a header file that comes with gcc, so configuring glibc
3072
  # with a fresh cross-compiler works.
3073
  # Prefer  to  if __STDC__ is defined, since
3074
  #  exists even on freestanding compilers.
3075
  # On the NeXT, cc -E runs the code through the compiler's parser,
3076
  # not just through cpp. "Syntax error" is here to catch this case.
3077
  cat >conftest.$ac_ext <<_ACEOF
3078
/* confdefs.h.  */
3079
_ACEOF
3080
cat confdefs.h >>conftest.$ac_ext
3081
cat >>conftest.$ac_ext <<_ACEOF
3082
/* end confdefs.h.  */
3083
#ifdef __STDC__
3084
# include 
3085
#else
3086
# include 
3087
#endif
3088
                     Syntax error
3089
_ACEOF
3090
if { (ac_try="$ac_cpp conftest.$ac_ext"
3091
case "(($ac_try" in
3092
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093
  *) ac_try_echo=$ac_try;;
3094 82 jeremybenn
esac
3095 91 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096
$as_echo "$ac_try_echo") >&5
3097
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3098
  ac_status=$?
3099
  grep -v '^ *+' conftest.er1 >conftest.err
3100
  rm -f conftest.er1
3101
  cat conftest.err >&5
3102
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103
  (exit $ac_status); } >/dev/null && {
3104
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105
         test ! -s conftest.err
3106
       }; then
3107
  :
3108
else
3109
  $as_echo "$as_me: failed program was:" >&5
3110
sed 's/^/| /' conftest.$ac_ext >&5
3111 82 jeremybenn
 
3112 91 jeremybenn
  # Broken: fails on valid input.
3113
continue
3114
fi
3115
 
3116
rm -f conftest.err conftest.$ac_ext
3117
 
3118
  # OK, works on sane cases.  Now check whether nonexistent headers
3119
  # can be detected and how.
3120
  cat >conftest.$ac_ext <<_ACEOF
3121
/* confdefs.h.  */
3122
_ACEOF
3123
cat confdefs.h >>conftest.$ac_ext
3124
cat >>conftest.$ac_ext <<_ACEOF
3125
/* end confdefs.h.  */
3126
#include 
3127
_ACEOF
3128
if { (ac_try="$ac_cpp conftest.$ac_ext"
3129
case "(($ac_try" in
3130
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131
  *) ac_try_echo=$ac_try;;
3132
esac
3133
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3134
$as_echo "$ac_try_echo") >&5
3135
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3136
  ac_status=$?
3137
  grep -v '^ *+' conftest.er1 >conftest.err
3138
  rm -f conftest.er1
3139
  cat conftest.err >&5
3140
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141
  (exit $ac_status); } >/dev/null && {
3142
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143
         test ! -s conftest.err
3144
       }; then
3145
  # Broken: success on invalid input.
3146
continue
3147 82 jeremybenn
else
3148 91 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3149
sed 's/^/| /' conftest.$ac_ext >&5
3150
 
3151
  # Passes both tests.
3152
ac_preproc_ok=:
3153
break
3154 82 jeremybenn
fi
3155 19 jeremybenn
 
3156 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3157
 
3158
done
3159
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160
rm -f conftest.err conftest.$ac_ext
3161
if $ac_preproc_ok; then
3162
  break
3163 19 jeremybenn
fi
3164
 
3165 91 jeremybenn
    done
3166
    ac_cv_prog_CPP=$CPP
3167 19 jeremybenn
 
3168 91 jeremybenn
fi
3169
  CPP=$ac_cv_prog_CPP
3170
else
3171
  ac_cv_prog_CPP=$CPP
3172
fi
3173
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3174
$as_echo "$CPP" >&6; }
3175
ac_preproc_ok=false
3176
for ac_c_preproc_warn_flag in '' yes
3177
do
3178
  # Use a header file that comes with gcc, so configuring glibc
3179
  # with a fresh cross-compiler works.
3180
  # Prefer  to  if __STDC__ is defined, since
3181
  #  exists even on freestanding compilers.
3182
  # On the NeXT, cc -E runs the code through the compiler's parser,
3183
  # not just through cpp. "Syntax error" is here to catch this case.
3184
  cat >conftest.$ac_ext <<_ACEOF
3185
/* confdefs.h.  */
3186
_ACEOF
3187
cat confdefs.h >>conftest.$ac_ext
3188
cat >>conftest.$ac_ext <<_ACEOF
3189
/* end confdefs.h.  */
3190
#ifdef __STDC__
3191
# include 
3192
#else
3193
# include 
3194
#endif
3195
                     Syntax error
3196
_ACEOF
3197
if { (ac_try="$ac_cpp conftest.$ac_ext"
3198
case "(($ac_try" in
3199
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200
  *) ac_try_echo=$ac_try;;
3201
esac
3202
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3203
$as_echo "$ac_try_echo") >&5
3204
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3205
  ac_status=$?
3206
  grep -v '^ *+' conftest.er1 >conftest.err
3207
  rm -f conftest.er1
3208
  cat conftest.err >&5
3209
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210
  (exit $ac_status); } >/dev/null && {
3211
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3212
         test ! -s conftest.err
3213
       }; then
3214
  :
3215
else
3216
  $as_echo "$as_me: failed program was:" >&5
3217
sed 's/^/| /' conftest.$ac_ext >&5
3218 19 jeremybenn
 
3219 91 jeremybenn
  # Broken: fails on valid input.
3220
continue
3221
fi
3222 82 jeremybenn
 
3223 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3224 82 jeremybenn
 
3225 91 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
3226
  # can be detected and how.
3227
  cat >conftest.$ac_ext <<_ACEOF
3228
/* confdefs.h.  */
3229
_ACEOF
3230
cat confdefs.h >>conftest.$ac_ext
3231
cat >>conftest.$ac_ext <<_ACEOF
3232
/* end confdefs.h.  */
3233
#include 
3234
_ACEOF
3235
if { (ac_try="$ac_cpp conftest.$ac_ext"
3236
case "(($ac_try" in
3237
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238
  *) ac_try_echo=$ac_try;;
3239
esac
3240
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3241
$as_echo "$ac_try_echo") >&5
3242
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3243
  ac_status=$?
3244
  grep -v '^ *+' conftest.er1 >conftest.err
3245
  rm -f conftest.er1
3246
  cat conftest.err >&5
3247
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248
  (exit $ac_status); } >/dev/null && {
3249
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3250
         test ! -s conftest.err
3251
       }; then
3252
  # Broken: success on invalid input.
3253
continue
3254
else
3255
  $as_echo "$as_me: failed program was:" >&5
3256
sed 's/^/| /' conftest.$ac_ext >&5
3257 82 jeremybenn
 
3258 91 jeremybenn
  # Passes both tests.
3259
ac_preproc_ok=:
3260
break
3261
fi
3262 82 jeremybenn
 
3263 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3264 82 jeremybenn
 
3265 91 jeremybenn
done
3266
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267
rm -f conftest.err conftest.$ac_ext
3268
if $ac_preproc_ok; then
3269
  :
3270
else
3271
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3272
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3274
See \`config.log' for more details." >&5
3275
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3276
See \`config.log' for more details." >&2;}
3277
   { (exit 1); exit 1; }; }; }
3278
fi
3279 82 jeremybenn
 
3280 91 jeremybenn
ac_ext=c
3281
ac_cpp='$CPP $CPPFLAGS'
3282
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 82 jeremybenn
 
3286
 
3287
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3288
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3289 19 jeremybenn
if test "${ac_cv_path_GREP+set}" = set; then
3290 82 jeremybenn
  $as_echo_n "(cached) " >&6
3291 19 jeremybenn
else
3292 82 jeremybenn
  if test -z "$GREP"; then
3293 19 jeremybenn
  ac_path_GREP_found=false
3294 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3295
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3297
do
3298
  IFS=$as_save_IFS
3299
  test -z "$as_dir" && as_dir=.
3300
  for ac_prog in grep ggrep; do
3301 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3302
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3303
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3304
# Check for GNU ac_path_GREP and select it if it is found.
3305 19 jeremybenn
  # Check for GNU $ac_path_GREP
3306
case `"$ac_path_GREP" --version 2>&1` in
3307
*GNU*)
3308
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3309
*)
3310
  ac_count=0
3311 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3312 19 jeremybenn
  while :
3313
  do
3314
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3315
    mv "conftest.tmp" "conftest.in"
3316
    cp "conftest.in" "conftest.nl"
3317 82 jeremybenn
    $as_echo 'GREP' >> "conftest.nl"
3318 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3319
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3320
    ac_count=`expr $ac_count + 1`
3321
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3322
      # Best one so far, save it but keep looking for a better one
3323
      ac_cv_path_GREP="$ac_path_GREP"
3324
      ac_path_GREP_max=$ac_count
3325
    fi
3326
    # 10*(2^10) chars as input seems more than enough
3327
    test $ac_count -gt 10 && break
3328
  done
3329
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3330
esac
3331
 
3332 82 jeremybenn
      $ac_path_GREP_found && break 3
3333
    done
3334 19 jeremybenn
  done
3335
done
3336
IFS=$as_save_IFS
3337 82 jeremybenn
  if test -z "$ac_cv_path_GREP"; then
3338
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3339
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3340 19 jeremybenn
   { (exit 1); exit 1; }; }
3341 82 jeremybenn
  fi
3342 19 jeremybenn
else
3343
  ac_cv_path_GREP=$GREP
3344
fi
3345
 
3346
fi
3347 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3348
$as_echo "$ac_cv_path_GREP" >&6; }
3349 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3350
 
3351
 
3352 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3353
$as_echo_n "checking for egrep... " >&6; }
3354 19 jeremybenn
if test "${ac_cv_path_EGREP+set}" = set; then
3355 82 jeremybenn
  $as_echo_n "(cached) " >&6
3356 19 jeremybenn
else
3357
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3358
   then ac_cv_path_EGREP="$GREP -E"
3359
   else
3360 82 jeremybenn
     if test -z "$EGREP"; then
3361 19 jeremybenn
  ac_path_EGREP_found=false
3362 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3363
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3365
do
3366
  IFS=$as_save_IFS
3367
  test -z "$as_dir" && as_dir=.
3368
  for ac_prog in egrep; do
3369 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3370
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3371
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3372
# Check for GNU ac_path_EGREP and select it if it is found.
3373 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3374
case `"$ac_path_EGREP" --version 2>&1` in
3375
*GNU*)
3376
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3377
*)
3378
  ac_count=0
3379 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3380 19 jeremybenn
  while :
3381
  do
3382
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3383
    mv "conftest.tmp" "conftest.in"
3384
    cp "conftest.in" "conftest.nl"
3385 82 jeremybenn
    $as_echo 'EGREP' >> "conftest.nl"
3386 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3387
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3388
    ac_count=`expr $ac_count + 1`
3389
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3390
      # Best one so far, save it but keep looking for a better one
3391
      ac_cv_path_EGREP="$ac_path_EGREP"
3392
      ac_path_EGREP_max=$ac_count
3393
    fi
3394
    # 10*(2^10) chars as input seems more than enough
3395
    test $ac_count -gt 10 && break
3396
  done
3397
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3398
esac
3399
 
3400 82 jeremybenn
      $ac_path_EGREP_found && break 3
3401
    done
3402 19 jeremybenn
  done
3403
done
3404
IFS=$as_save_IFS
3405 82 jeremybenn
  if test -z "$ac_cv_path_EGREP"; then
3406
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3407
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3408
   { (exit 1); exit 1; }; }
3409
  fi
3410
else
3411
  ac_cv_path_EGREP=$EGREP
3412 19 jeremybenn
fi
3413
 
3414 82 jeremybenn
   fi
3415 19 jeremybenn
fi
3416 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3417
$as_echo "$ac_cv_path_EGREP" >&6; }
3418
 EGREP="$ac_cv_path_EGREP"
3419 19 jeremybenn
 
3420 82 jeremybenn
 
3421 91 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3422
$as_echo_n "checking for ANSI C header files... " >&6; }
3423
if test "${ac_cv_header_stdc+set}" = set; then
3424
  $as_echo_n "(cached) " >&6
3425
else
3426
  cat >conftest.$ac_ext <<_ACEOF
3427
/* confdefs.h.  */
3428
_ACEOF
3429
cat confdefs.h >>conftest.$ac_ext
3430
cat >>conftest.$ac_ext <<_ACEOF
3431
/* end confdefs.h.  */
3432
#include 
3433
#include 
3434
#include 
3435
#include 
3436
 
3437
int
3438
main ()
3439
{
3440
 
3441
  ;
3442
  return 0;
3443
}
3444
_ACEOF
3445
rm -f conftest.$ac_objext
3446
if { (ac_try="$ac_compile"
3447
case "(($ac_try" in
3448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449
  *) ac_try_echo=$ac_try;;
3450
esac
3451
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3452
$as_echo "$ac_try_echo") >&5
3453
  (eval "$ac_compile") 2>conftest.er1
3454
  ac_status=$?
3455
  grep -v '^ *+' conftest.er1 >conftest.err
3456
  rm -f conftest.er1
3457
  cat conftest.err >&5
3458
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459
  (exit $ac_status); } && {
3460
         test -z "$ac_c_werror_flag" ||
3461
         test ! -s conftest.err
3462
       } && test -s conftest.$ac_objext; then
3463
  ac_cv_header_stdc=yes
3464
else
3465
  $as_echo "$as_me: failed program was:" >&5
3466
sed 's/^/| /' conftest.$ac_ext >&5
3467
 
3468
        ac_cv_header_stdc=no
3469
fi
3470
 
3471
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472
 
3473
if test $ac_cv_header_stdc = yes; then
3474
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3475
  cat >conftest.$ac_ext <<_ACEOF
3476
/* confdefs.h.  */
3477
_ACEOF
3478
cat confdefs.h >>conftest.$ac_ext
3479
cat >>conftest.$ac_ext <<_ACEOF
3480
/* end confdefs.h.  */
3481
#include 
3482
 
3483
_ACEOF
3484
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3485
  $EGREP "memchr" >/dev/null 2>&1; then
3486
  :
3487
else
3488
  ac_cv_header_stdc=no
3489
fi
3490
rm -f conftest*
3491
 
3492
fi
3493
 
3494
if test $ac_cv_header_stdc = yes; then
3495
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3496
  cat >conftest.$ac_ext <<_ACEOF
3497
/* confdefs.h.  */
3498
_ACEOF
3499
cat confdefs.h >>conftest.$ac_ext
3500
cat >>conftest.$ac_ext <<_ACEOF
3501
/* end confdefs.h.  */
3502
#include 
3503
 
3504
_ACEOF
3505
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3506
  $EGREP "free" >/dev/null 2>&1; then
3507
  :
3508
else
3509
  ac_cv_header_stdc=no
3510
fi
3511
rm -f conftest*
3512
 
3513
fi
3514
 
3515
if test $ac_cv_header_stdc = yes; then
3516
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3517
  if test "$cross_compiling" = yes; then
3518
  :
3519
else
3520
  cat >conftest.$ac_ext <<_ACEOF
3521
/* confdefs.h.  */
3522
_ACEOF
3523
cat confdefs.h >>conftest.$ac_ext
3524
cat >>conftest.$ac_ext <<_ACEOF
3525
/* end confdefs.h.  */
3526
#include 
3527
#include 
3528
#if ((' ' & 0x0FF) == 0x020)
3529
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3530
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3531
#else
3532
# define ISLOWER(c) \
3533
                   (('a' <= (c) && (c) <= 'i') \
3534
                     || ('j' <= (c) && (c) <= 'r') \
3535
                     || ('s' <= (c) && (c) <= 'z'))
3536
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3537
#endif
3538
 
3539
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3540
int
3541
main ()
3542
{
3543
  int i;
3544
  for (i = 0; i < 256; i++)
3545
    if (XOR (islower (i), ISLOWER (i))
3546
        || toupper (i) != TOUPPER (i))
3547
      return 2;
3548
  return 0;
3549
}
3550
_ACEOF
3551
rm -f conftest$ac_exeext
3552
if { (ac_try="$ac_link"
3553
case "(($ac_try" in
3554
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555
  *) ac_try_echo=$ac_try;;
3556
esac
3557
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3558
$as_echo "$ac_try_echo") >&5
3559
  (eval "$ac_link") 2>&5
3560
  ac_status=$?
3561
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3563
  { (case "(($ac_try" in
3564
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565
  *) ac_try_echo=$ac_try;;
3566
esac
3567
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3568
$as_echo "$ac_try_echo") >&5
3569
  (eval "$ac_try") 2>&5
3570
  ac_status=$?
3571
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572
  (exit $ac_status); }; }; then
3573
  :
3574
else
3575
  $as_echo "$as_me: program exited with status $ac_status" >&5
3576
$as_echo "$as_me: failed program was:" >&5
3577
sed 's/^/| /' conftest.$ac_ext >&5
3578
 
3579
( exit $ac_status )
3580
ac_cv_header_stdc=no
3581
fi
3582
rm -rf conftest.dSYM
3583
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3584
fi
3585
 
3586
 
3587
fi
3588
fi
3589
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3590
$as_echo "$ac_cv_header_stdc" >&6; }
3591
if test $ac_cv_header_stdc = yes; then
3592
 
3593
cat >>confdefs.h <<\_ACEOF
3594
#define STDC_HEADERS 1
3595
_ACEOF
3596
 
3597
fi
3598
 
3599
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3600
 
3601
 
3602
 
3603
 
3604
 
3605
 
3606
 
3607
 
3608
 
3609
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3610
                  inttypes.h stdint.h unistd.h
3611
do
3612
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3613
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3614
$as_echo_n "checking for $ac_header... " >&6; }
3615
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3616
  $as_echo_n "(cached) " >&6
3617
else
3618
  cat >conftest.$ac_ext <<_ACEOF
3619
/* confdefs.h.  */
3620
_ACEOF
3621
cat confdefs.h >>conftest.$ac_ext
3622
cat >>conftest.$ac_ext <<_ACEOF
3623
/* end confdefs.h.  */
3624
$ac_includes_default
3625
 
3626
#include <$ac_header>
3627
_ACEOF
3628
rm -f conftest.$ac_objext
3629
if { (ac_try="$ac_compile"
3630
case "(($ac_try" in
3631
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632
  *) ac_try_echo=$ac_try;;
3633
esac
3634
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3635
$as_echo "$ac_try_echo") >&5
3636
  (eval "$ac_compile") 2>conftest.er1
3637
  ac_status=$?
3638
  grep -v '^ *+' conftest.er1 >conftest.err
3639
  rm -f conftest.er1
3640
  cat conftest.err >&5
3641
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642
  (exit $ac_status); } && {
3643
         test -z "$ac_c_werror_flag" ||
3644
         test ! -s conftest.err
3645
       } && test -s conftest.$ac_objext; then
3646
  eval "$as_ac_Header=yes"
3647
else
3648
  $as_echo "$as_me: failed program was:" >&5
3649
sed 's/^/| /' conftest.$ac_ext >&5
3650
 
3651
        eval "$as_ac_Header=no"
3652
fi
3653
 
3654
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655
fi
3656
ac_res=`eval 'as_val=${'$as_ac_Header'}
3657
                 $as_echo "$as_val"'`
3658
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3659
$as_echo "$ac_res" >&6; }
3660
as_val=`eval 'as_val=${'$as_ac_Header'}
3661
                 $as_echo "$as_val"'`
3662
   if test "x$as_val" = x""yes; then
3663
  cat >>confdefs.h <<_ACEOF
3664
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3665
_ACEOF
3666
 
3667
fi
3668
 
3669
done
3670
 
3671
 
3672
 
3673
  if test "${ac_cv_header_minix_config_h+set}" = set; then
3674
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3675
$as_echo_n "checking for minix/config.h... " >&6; }
3676
if test "${ac_cv_header_minix_config_h+set}" = set; then
3677
  $as_echo_n "(cached) " >&6
3678
fi
3679
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3680
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3681
else
3682
  # Is the header compilable?
3683
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3684
$as_echo_n "checking minix/config.h usability... " >&6; }
3685
cat >conftest.$ac_ext <<_ACEOF
3686
/* confdefs.h.  */
3687
_ACEOF
3688
cat confdefs.h >>conftest.$ac_ext
3689
cat >>conftest.$ac_ext <<_ACEOF
3690
/* end confdefs.h.  */
3691
$ac_includes_default
3692
#include 
3693
_ACEOF
3694
rm -f conftest.$ac_objext
3695
if { (ac_try="$ac_compile"
3696
case "(($ac_try" in
3697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698
  *) ac_try_echo=$ac_try;;
3699
esac
3700
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3701
$as_echo "$ac_try_echo") >&5
3702
  (eval "$ac_compile") 2>conftest.er1
3703
  ac_status=$?
3704
  grep -v '^ *+' conftest.er1 >conftest.err
3705
  rm -f conftest.er1
3706
  cat conftest.err >&5
3707
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708
  (exit $ac_status); } && {
3709
         test -z "$ac_c_werror_flag" ||
3710
         test ! -s conftest.err
3711
       } && test -s conftest.$ac_objext; then
3712
  ac_header_compiler=yes
3713
else
3714
  $as_echo "$as_me: failed program was:" >&5
3715
sed 's/^/| /' conftest.$ac_ext >&5
3716
 
3717
        ac_header_compiler=no
3718
fi
3719
 
3720
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3722
$as_echo "$ac_header_compiler" >&6; }
3723
 
3724
# Is the header present?
3725
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3726
$as_echo_n "checking minix/config.h presence... " >&6; }
3727
cat >conftest.$ac_ext <<_ACEOF
3728
/* confdefs.h.  */
3729
_ACEOF
3730
cat confdefs.h >>conftest.$ac_ext
3731
cat >>conftest.$ac_ext <<_ACEOF
3732
/* end confdefs.h.  */
3733
#include 
3734
_ACEOF
3735
if { (ac_try="$ac_cpp conftest.$ac_ext"
3736
case "(($ac_try" in
3737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738
  *) ac_try_echo=$ac_try;;
3739
esac
3740
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3741
$as_echo "$ac_try_echo") >&5
3742
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3743
  ac_status=$?
3744
  grep -v '^ *+' conftest.er1 >conftest.err
3745
  rm -f conftest.er1
3746
  cat conftest.err >&5
3747
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748
  (exit $ac_status); } >/dev/null && {
3749
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3750
         test ! -s conftest.err
3751
       }; then
3752
  ac_header_preproc=yes
3753
else
3754
  $as_echo "$as_me: failed program was:" >&5
3755
sed 's/^/| /' conftest.$ac_ext >&5
3756
 
3757
  ac_header_preproc=no
3758
fi
3759
 
3760
rm -f conftest.err conftest.$ac_ext
3761
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3762
$as_echo "$ac_header_preproc" >&6; }
3763
 
3764
# So?  What about this header?
3765
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3766
  yes:no: )
3767
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3768
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3769
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3770
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3771
    ac_header_preproc=yes
3772
    ;;
3773
  no:yes:* )
3774
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3775
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3776
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3777
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3778
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3779
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3780
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3781
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3782
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3783
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3784
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3785
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3786
    ( cat <<\_ASBOX
3787
## ------------------------------------- ##
3788
## Report this to openrisc@opencores.org ##
3789
## ------------------------------------- ##
3790
_ASBOX
3791
     ) | sed "s/^/$as_me: WARNING:     /" >&2
3792
    ;;
3793
esac
3794
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3795
$as_echo_n "checking for minix/config.h... " >&6; }
3796
if test "${ac_cv_header_minix_config_h+set}" = set; then
3797
  $as_echo_n "(cached) " >&6
3798
else
3799
  ac_cv_header_minix_config_h=$ac_header_preproc
3800
fi
3801
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3802
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3803
 
3804
fi
3805
if test "x$ac_cv_header_minix_config_h" = x""yes; then
3806
  MINIX=yes
3807
else
3808
  MINIX=
3809
fi
3810
 
3811
 
3812
  if test "$MINIX" = yes; then
3813
 
3814
cat >>confdefs.h <<\_ACEOF
3815
#define _POSIX_SOURCE 1
3816
_ACEOF
3817
 
3818
 
3819
cat >>confdefs.h <<\_ACEOF
3820
#define _POSIX_1_SOURCE 2
3821
_ACEOF
3822
 
3823
 
3824
cat >>confdefs.h <<\_ACEOF
3825
#define _MINIX 1
3826
_ACEOF
3827
 
3828
  fi
3829
 
3830
 
3831
 
3832
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3833
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3834
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3835
  $as_echo_n "(cached) " >&6
3836
else
3837
  cat >conftest.$ac_ext <<_ACEOF
3838
/* confdefs.h.  */
3839
_ACEOF
3840
cat confdefs.h >>conftest.$ac_ext
3841
cat >>conftest.$ac_ext <<_ACEOF
3842
/* end confdefs.h.  */
3843
 
3844
#         define __EXTENSIONS__ 1
3845
          $ac_includes_default
3846
int
3847
main ()
3848
{
3849
 
3850
  ;
3851
  return 0;
3852
}
3853
_ACEOF
3854
rm -f conftest.$ac_objext
3855
if { (ac_try="$ac_compile"
3856
case "(($ac_try" in
3857
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858
  *) ac_try_echo=$ac_try;;
3859
esac
3860
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3861
$as_echo "$ac_try_echo") >&5
3862
  (eval "$ac_compile") 2>conftest.er1
3863
  ac_status=$?
3864
  grep -v '^ *+' conftest.er1 >conftest.err
3865
  rm -f conftest.er1
3866
  cat conftest.err >&5
3867
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868
  (exit $ac_status); } && {
3869
         test -z "$ac_c_werror_flag" ||
3870
         test ! -s conftest.err
3871
       } && test -s conftest.$ac_objext; then
3872
  ac_cv_safe_to_define___extensions__=yes
3873
else
3874
  $as_echo "$as_me: failed program was:" >&5
3875
sed 's/^/| /' conftest.$ac_ext >&5
3876
 
3877
        ac_cv_safe_to_define___extensions__=no
3878
fi
3879
 
3880
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881
fi
3882
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3883
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3884
  test $ac_cv_safe_to_define___extensions__ = yes &&
3885
    cat >>confdefs.h <<\_ACEOF
3886
#define __EXTENSIONS__ 1
3887
_ACEOF
3888
 
3889
  cat >>confdefs.h <<\_ACEOF
3890
#define _ALL_SOURCE 1
3891
_ACEOF
3892
 
3893
  cat >>confdefs.h <<\_ACEOF
3894
#define _GNU_SOURCE 1
3895
_ACEOF
3896
 
3897
  cat >>confdefs.h <<\_ACEOF
3898
#define _POSIX_PTHREAD_SEMANTICS 1
3899
_ACEOF
3900
 
3901
  cat >>confdefs.h <<\_ACEOF
3902
#define _TANDEM_SOURCE 1
3903
_ACEOF
3904
 
3905
 
3906
 
3907
# Check we have the execute source file present for sanity. Specify a separate
3908
# config for the testsuite OR1K specific programs, since we'll need different
3909
# tool chain there (the OpenRISC one, rather than the native one).
3910
 
3911
ac_aux_dir=
3912
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3913
  if test -f "$ac_dir/install-sh"; then
3914
    ac_aux_dir=$ac_dir
3915
    ac_install_sh="$ac_aux_dir/install-sh -c"
3916
    break
3917
  elif test -f "$ac_dir/install.sh"; then
3918
    ac_aux_dir=$ac_dir
3919
    ac_install_sh="$ac_aux_dir/install.sh -c"
3920
    break
3921
  elif test -f "$ac_dir/shtool"; then
3922
    ac_aux_dir=$ac_dir
3923
    ac_install_sh="$ac_aux_dir/shtool install -c"
3924
    break
3925
  fi
3926
done
3927
if test -z "$ac_aux_dir"; then
3928
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3929
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3930
   { (exit 1); exit 1; }; }
3931
fi
3932
 
3933
# These three variables are undocumented and unsupported,
3934
# and are intended to be withdrawn in a future Autoconf release.
3935
# They can cause serious problems if a builder's source tree is in a directory
3936
# whose full name contains unusual characters.
3937
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3938
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3939
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3940
 
3941
 
3942
 
3943
 
3944
subdirs="$subdirs testsuite/test-code-or1k"
3945
 
3946
 
3947
# Make sure we can run config.sub.
3948
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3949
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3950
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3951
   { (exit 1); exit 1; }; }
3952
 
3953
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3954
$as_echo_n "checking build system type... " >&6; }
3955
if test "${ac_cv_build+set}" = set; then
3956
  $as_echo_n "(cached) " >&6
3957
else
3958
  ac_build_alias=$build_alias
3959
test "x$ac_build_alias" = x &&
3960
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3961
test "x$ac_build_alias" = x &&
3962
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3963
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3964
   { (exit 1); exit 1; }; }
3965
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3966
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3967
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3968
   { (exit 1); exit 1; }; }
3969
 
3970
fi
3971
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3972
$as_echo "$ac_cv_build" >&6; }
3973
case $ac_cv_build in
3974
*-*-*) ;;
3975
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3976
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3977
   { (exit 1); exit 1; }; };;
3978
esac
3979
build=$ac_cv_build
3980
ac_save_IFS=$IFS; IFS='-'
3981
set x $ac_cv_build
3982
shift
3983
build_cpu=$1
3984
build_vendor=$2
3985
shift; shift
3986
# Remember, the first character of IFS is used to create $*,
3987
# except with old shells:
3988
build_os=$*
3989
IFS=$ac_save_IFS
3990
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3991
 
3992
 
3993
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3994
$as_echo_n "checking host system type... " >&6; }
3995
if test "${ac_cv_host+set}" = set; then
3996
  $as_echo_n "(cached) " >&6
3997
else
3998
  if test "x$host_alias" = x; then
3999
  ac_cv_host=$ac_cv_build
4000
else
4001
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4002
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4003
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4004
   { (exit 1); exit 1; }; }
4005
fi
4006
 
4007
fi
4008
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4009
$as_echo "$ac_cv_host" >&6; }
4010
case $ac_cv_host in
4011
*-*-*) ;;
4012
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4013
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4014
   { (exit 1); exit 1; }; };;
4015
esac
4016
host=$ac_cv_host
4017
ac_save_IFS=$IFS; IFS='-'
4018
set x $ac_cv_host
4019
shift
4020
host_cpu=$1
4021
host_vendor=$2
4022
shift; shift
4023
# Remember, the first character of IFS is used to create $*,
4024
# except with old shells:
4025
host_os=$*
4026
IFS=$ac_save_IFS
4027
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4028
 
4029
 
4030
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
4031
$as_echo_n "checking target system type... " >&6; }
4032
if test "${ac_cv_target+set}" = set; then
4033
  $as_echo_n "(cached) " >&6
4034
else
4035
  if test "x$target_alias" = x; then
4036
  ac_cv_target=$ac_cv_host
4037
else
4038
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4039
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4040
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4041
   { (exit 1); exit 1; }; }
4042
fi
4043
 
4044
fi
4045
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4046
$as_echo "$ac_cv_target" >&6; }
4047
case $ac_cv_target in
4048
*-*-*) ;;
4049
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4050
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
4051
   { (exit 1); exit 1; }; };;
4052
esac
4053
target=$ac_cv_target
4054
ac_save_IFS=$IFS; IFS='-'
4055
set x $ac_cv_target
4056
shift
4057
target_cpu=$1
4058
target_vendor=$2
4059
shift; shift
4060
# Remember, the first character of IFS is used to create $*,
4061
# except with old shells:
4062
target_os=$*
4063
IFS=$ac_save_IFS
4064
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4065
 
4066
 
4067
# The aliases save the names the user supplied, while $host etc.
4068
# will get canonicalized.
4069
test -n "$target_alias" &&
4070
  test "$program_prefix$program_suffix$program_transform_name" = \
4071
    NONENONEs,x,x, &&
4072
  program_prefix=${target_alias}-
4073
case `pwd` in
4074
  *\ * | *\     *)
4075
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4076
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4077
esac
4078
 
4079
 
4080
 
4081
macro_version='2.2.6b'
4082
macro_revision='1.3017'
4083
 
4084
 
4085
 
4086
 
4087
 
4088
 
4089
 
4090
 
4091
 
4092
 
4093
 
4094
 
4095
 
4096
ltmain="$ac_aux_dir/ltmain.sh"
4097
 
4098
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4099
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4100
if test "${ac_cv_path_SED+set}" = set; then
4101
  $as_echo_n "(cached) " >&6
4102
else
4103
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4104
     for ac_i in 1 2 3 4 5 6 7; do
4105
       ac_script="$ac_script$as_nl$ac_script"
4106
     done
4107
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4108
     $as_unset ac_script || ac_script=
4109
     if test -z "$SED"; then
4110
  ac_path_SED_found=false
4111
  # Loop through the user's path and test for each of PROGNAME-LIST
4112
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113
for as_dir in $PATH
4114
do
4115
  IFS=$as_save_IFS
4116
  test -z "$as_dir" && as_dir=.
4117
  for ac_prog in sed gsed; do
4118
    for ac_exec_ext in '' $ac_executable_extensions; do
4119
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4120
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4121
# Check for GNU ac_path_SED and select it if it is found.
4122
  # Check for GNU $ac_path_SED
4123
case `"$ac_path_SED" --version 2>&1` in
4124
*GNU*)
4125
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4126
*)
4127
  ac_count=0
4128
  $as_echo_n 0123456789 >"conftest.in"
4129
  while :
4130
  do
4131
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4132
    mv "conftest.tmp" "conftest.in"
4133
    cp "conftest.in" "conftest.nl"
4134
    $as_echo '' >> "conftest.nl"
4135
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4136
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4137
    ac_count=`expr $ac_count + 1`
4138
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4139
      # Best one so far, save it but keep looking for a better one
4140
      ac_cv_path_SED="$ac_path_SED"
4141
      ac_path_SED_max=$ac_count
4142
    fi
4143
    # 10*(2^10) chars as input seems more than enough
4144
    test $ac_count -gt 10 && break
4145
  done
4146
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4147
esac
4148
 
4149
      $ac_path_SED_found && break 3
4150
    done
4151
  done
4152
done
4153
IFS=$as_save_IFS
4154
  if test -z "$ac_cv_path_SED"; then
4155
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4156
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4157
   { (exit 1); exit 1; }; }
4158
  fi
4159
else
4160
  ac_cv_path_SED=$SED
4161
fi
4162
 
4163
fi
4164
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4165
$as_echo "$ac_cv_path_SED" >&6; }
4166
 SED="$ac_cv_path_SED"
4167
  rm -f conftest.sed
4168
 
4169
test -z "$SED" && SED=sed
4170
Xsed="$SED -e 1s/^X//"
4171
 
4172
 
4173
 
4174
 
4175
 
4176
 
4177
 
4178
 
4179
 
4180
 
4181
 
4182 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4183
$as_echo_n "checking for fgrep... " >&6; }
4184
if test "${ac_cv_path_FGREP+set}" = set; then
4185
  $as_echo_n "(cached) " >&6
4186 19 jeremybenn
else
4187 82 jeremybenn
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4188
   then ac_cv_path_FGREP="$GREP -F"
4189
   else
4190
     if test -z "$FGREP"; then
4191
  ac_path_FGREP_found=false
4192
  # Loop through the user's path and test for each of PROGNAME-LIST
4193
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4195
do
4196
  IFS=$as_save_IFS
4197
  test -z "$as_dir" && as_dir=.
4198
  for ac_prog in fgrep; do
4199
    for ac_exec_ext in '' $ac_executable_extensions; do
4200
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4201
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4202
# Check for GNU ac_path_FGREP and select it if it is found.
4203
  # Check for GNU $ac_path_FGREP
4204
case `"$ac_path_FGREP" --version 2>&1` in
4205
*GNU*)
4206
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4207
*)
4208
  ac_count=0
4209
  $as_echo_n 0123456789 >"conftest.in"
4210
  while :
4211
  do
4212
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4213
    mv "conftest.tmp" "conftest.in"
4214
    cp "conftest.in" "conftest.nl"
4215
    $as_echo 'FGREP' >> "conftest.nl"
4216
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4217
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4218
    ac_count=`expr $ac_count + 1`
4219
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4220
      # Best one so far, save it but keep looking for a better one
4221
      ac_cv_path_FGREP="$ac_path_FGREP"
4222
      ac_path_FGREP_max=$ac_count
4223
    fi
4224
    # 10*(2^10) chars as input seems more than enough
4225
    test $ac_count -gt 10 && break
4226
  done
4227
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4228
esac
4229
 
4230
      $ac_path_FGREP_found && break 3
4231
    done
4232
  done
4233
done
4234
IFS=$as_save_IFS
4235
  if test -z "$ac_cv_path_FGREP"; then
4236
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4237
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4238
   { (exit 1); exit 1; }; }
4239
  fi
4240
else
4241
  ac_cv_path_FGREP=$FGREP
4242 19 jeremybenn
fi
4243
 
4244
   fi
4245
fi
4246 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4247
$as_echo "$ac_cv_path_FGREP" >&6; }
4248
 FGREP="$ac_cv_path_FGREP"
4249 19 jeremybenn
 
4250
 
4251 82 jeremybenn
test -z "$GREP" && GREP=grep
4252 19 jeremybenn
 
4253 82 jeremybenn
 
4254
 
4255
 
4256
 
4257
 
4258
 
4259
 
4260
 
4261
 
4262
 
4263
 
4264
 
4265
 
4266
 
4267
 
4268
 
4269
 
4270
 
4271 19 jeremybenn
# Check whether --with-gnu-ld was given.
4272
if test "${with_gnu_ld+set}" = set; then
4273
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4274
else
4275
  with_gnu_ld=no
4276
fi
4277
 
4278
ac_prog=ld
4279
if test "$GCC" = yes; then
4280
  # Check if gcc -print-prog-name=ld gives a path.
4281 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4282
$as_echo_n "checking for ld used by $CC... " >&6; }
4283 19 jeremybenn
  case $host in
4284
  *-*-mingw*)
4285
    # gcc leaves a trailing carriage return which upsets mingw
4286
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4287
  *)
4288
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4289
  esac
4290
  case $ac_prog in
4291
    # Accept absolute paths.
4292
    [\\/]* | ?:[\\/]*)
4293
      re_direlt='/[^/][^/]*/\.\./'
4294
      # Canonicalize the pathname of ld
4295 82 jeremybenn
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4296
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4297
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4298 19 jeremybenn
      done
4299
      test -z "$LD" && LD="$ac_prog"
4300
      ;;
4301
  "")
4302
    # If it fails, then pretend we aren't using GCC.
4303
    ac_prog=ld
4304
    ;;
4305
  *)
4306
    # If it is relative, then search for the first ld in PATH.
4307
    with_gnu_ld=unknown
4308
    ;;
4309
  esac
4310
elif test "$with_gnu_ld" = yes; then
4311 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4312
$as_echo_n "checking for GNU ld... " >&6; }
4313 19 jeremybenn
else
4314 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4315
$as_echo_n "checking for non-GNU ld... " >&6; }
4316 19 jeremybenn
fi
4317
if test "${lt_cv_path_LD+set}" = set; then
4318 82 jeremybenn
  $as_echo_n "(cached) " >&6
4319 19 jeremybenn
else
4320
  if test -z "$LD"; then
4321
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4322
  for ac_dir in $PATH; do
4323
    IFS="$lt_save_ifs"
4324
    test -z "$ac_dir" && ac_dir=.
4325
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4326
      lt_cv_path_LD="$ac_dir/$ac_prog"
4327
      # Check to see if the program is GNU ld.  I'd rather use --version,
4328
      # but apparently some variants of GNU ld only accept -v.
4329
      # Break only if it was the GNU/non-GNU ld that we prefer.
4330
      case `"$lt_cv_path_LD" -v 2>&1 
4331
      *GNU* | *'with BFD'*)
4332
        test "$with_gnu_ld" != no && break
4333
        ;;
4334
      *)
4335
        test "$with_gnu_ld" != yes && break
4336
        ;;
4337
      esac
4338
    fi
4339
  done
4340
  IFS="$lt_save_ifs"
4341
else
4342
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4343
fi
4344
fi
4345
 
4346
LD="$lt_cv_path_LD"
4347
if test -n "$LD"; then
4348 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4349
$as_echo "$LD" >&6; }
4350 19 jeremybenn
else
4351 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4352
$as_echo "no" >&6; }
4353 19 jeremybenn
fi
4354 82 jeremybenn
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4355
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4356 19 jeremybenn
   { (exit 1); exit 1; }; }
4357 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4358
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4359 19 jeremybenn
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4360 82 jeremybenn
  $as_echo_n "(cached) " >&6
4361 19 jeremybenn
else
4362
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4363
case `$LD -v 2>&1 
4364
*GNU* | *'with BFD'*)
4365
  lt_cv_prog_gnu_ld=yes
4366
  ;;
4367
*)
4368
  lt_cv_prog_gnu_ld=no
4369
  ;;
4370
esac
4371
fi
4372 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4373
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4374 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
4375
 
4376
 
4377
 
4378 82 jeremybenn
 
4379
 
4380
 
4381
 
4382
 
4383
 
4384
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4385
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4386 19 jeremybenn
if test "${lt_cv_path_NM+set}" = set; then
4387 82 jeremybenn
  $as_echo_n "(cached) " >&6
4388 19 jeremybenn
else
4389
  if test -n "$NM"; then
4390
  # Let the user override the test.
4391
  lt_cv_path_NM="$NM"
4392
else
4393
  lt_nm_to_check="${ac_tool_prefix}nm"
4394
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4395
    lt_nm_to_check="$lt_nm_to_check nm"
4396
  fi
4397
  for lt_tmp_nm in $lt_nm_to_check; do
4398
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4399
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4400
      IFS="$lt_save_ifs"
4401
      test -z "$ac_dir" && ac_dir=.
4402
      tmp_nm="$ac_dir/$lt_tmp_nm"
4403
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4404
        # Check to see if the nm accepts a BSD-compat flag.
4405
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4406
        #   nm: unknown option "B" ignored
4407
        # Tru64's nm complains that /dev/null is an invalid object file
4408
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4409
        */dev/null* | *'Invalid file or object type'*)
4410
          lt_cv_path_NM="$tmp_nm -B"
4411
          break
4412
          ;;
4413
        *)
4414
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4415
          */dev/null*)
4416
            lt_cv_path_NM="$tmp_nm -p"
4417
            break
4418
            ;;
4419
          *)
4420
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4421
            continue # so that we can try to find one that supports BSD flags
4422
            ;;
4423
          esac
4424
          ;;
4425
        esac
4426
      fi
4427
    done
4428
    IFS="$lt_save_ifs"
4429
  done
4430 82 jeremybenn
  : ${lt_cv_path_NM=no}
4431 19 jeremybenn
fi
4432
fi
4433 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4434
$as_echo "$lt_cv_path_NM" >&6; }
4435
if test "$lt_cv_path_NM" != "no"; then
4436
  NM="$lt_cv_path_NM"
4437
else
4438
  # Didn't find any BSD compatible name lister, look for dumpbin.
4439
  if test -n "$ac_tool_prefix"; then
4440
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4441
  do
4442
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4443
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4444
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4445
$as_echo_n "checking for $ac_word... " >&6; }
4446
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4447
  $as_echo_n "(cached) " >&6
4448
else
4449
  if test -n "$DUMPBIN"; then
4450
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4451
else
4452
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453
for as_dir in $PATH
4454
do
4455
  IFS=$as_save_IFS
4456
  test -z "$as_dir" && as_dir=.
4457
  for ac_exec_ext in '' $ac_executable_extensions; do
4458
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4460
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461
    break 2
4462
  fi
4463
done
4464
done
4465
IFS=$as_save_IFS
4466 19 jeremybenn
 
4467 82 jeremybenn
fi
4468
fi
4469
DUMPBIN=$ac_cv_prog_DUMPBIN
4470
if test -n "$DUMPBIN"; then
4471
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4472
$as_echo "$DUMPBIN" >&6; }
4473
else
4474
  { $as_echo "$as_me:$LINENO: result: no" >&5
4475
$as_echo "no" >&6; }
4476
fi
4477
 
4478
 
4479
    test -n "$DUMPBIN" && break
4480
  done
4481
fi
4482
if test -z "$DUMPBIN"; then
4483
  ac_ct_DUMPBIN=$DUMPBIN
4484
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4485
do
4486
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4487
set dummy $ac_prog; ac_word=$2
4488
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4489
$as_echo_n "checking for $ac_word... " >&6; }
4490
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4491
  $as_echo_n "(cached) " >&6
4492
else
4493
  if test -n "$ac_ct_DUMPBIN"; then
4494
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4495
else
4496
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497
for as_dir in $PATH
4498
do
4499
  IFS=$as_save_IFS
4500
  test -z "$as_dir" && as_dir=.
4501
  for ac_exec_ext in '' $ac_executable_extensions; do
4502
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4504
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505
    break 2
4506
  fi
4507
done
4508
done
4509
IFS=$as_save_IFS
4510
 
4511
fi
4512
fi
4513
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4514
if test -n "$ac_ct_DUMPBIN"; then
4515
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4516
$as_echo "$ac_ct_DUMPBIN" >&6; }
4517
else
4518
  { $as_echo "$as_me:$LINENO: result: no" >&5
4519
$as_echo "no" >&6; }
4520
fi
4521
 
4522
 
4523
  test -n "$ac_ct_DUMPBIN" && break
4524
done
4525
 
4526
  if test "x$ac_ct_DUMPBIN" = x; then
4527
    DUMPBIN=":"
4528
  else
4529
    case $cross_compiling:$ac_tool_warned in
4530
yes:)
4531
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4532
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4533
ac_tool_warned=yes ;;
4534
esac
4535
    DUMPBIN=$ac_ct_DUMPBIN
4536
  fi
4537
fi
4538
 
4539
 
4540
  if test "$DUMPBIN" != ":"; then
4541
    NM="$DUMPBIN"
4542
  fi
4543
fi
4544
test -z "$NM" && NM=nm
4545
 
4546
 
4547
 
4548
 
4549
 
4550
 
4551
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4552
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4553
if test "${lt_cv_nm_interface+set}" = set; then
4554
  $as_echo_n "(cached) " >&6
4555
else
4556
  lt_cv_nm_interface="BSD nm"
4557
  echo "int some_variable = 0;" > conftest.$ac_ext
4558 91 jeremybenn
  (eval echo "\"\$as_me:4558: $ac_compile\"" >&5)
4559 82 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
4560
  cat conftest.err >&5
4561 91 jeremybenn
  (eval echo "\"\$as_me:4561: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4562 82 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4563
  cat conftest.err >&5
4564 91 jeremybenn
  (eval echo "\"\$as_me:4564: output\"" >&5)
4565 82 jeremybenn
  cat conftest.out >&5
4566
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4567
    lt_cv_nm_interface="MS dumpbin"
4568
  fi
4569
  rm -f conftest*
4570
fi
4571
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4572
$as_echo "$lt_cv_nm_interface" >&6; }
4573
 
4574
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4575
$as_echo_n "checking whether ln -s works... " >&6; }
4576 19 jeremybenn
LN_S=$as_ln_s
4577
if test "$LN_S" = "ln -s"; then
4578 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
4579
$as_echo "yes" >&6; }
4580 19 jeremybenn
else
4581 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4582
$as_echo "no, using $LN_S" >&6; }
4583 19 jeremybenn
fi
4584
 
4585 82 jeremybenn
# find the maximum length of command line arguments
4586
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4587
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4588
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4589
  $as_echo_n "(cached) " >&6
4590
else
4591
    i=0
4592
  teststring="ABCD"
4593
 
4594
  case $build_os in
4595
  msdosdjgpp*)
4596
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4597
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4598
    # during glob expansion).  Even if it were fixed, the result of this
4599
    # check would be larger than it should be.
4600
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4601
    ;;
4602
 
4603
  gnu*)
4604
    # Under GNU Hurd, this test is not required because there is
4605
    # no limit to the length of command line arguments.
4606
    # Libtool will interpret -1 as no limit whatsoever
4607
    lt_cv_sys_max_cmd_len=-1;
4608
    ;;
4609
 
4610
  cygwin* | mingw* | cegcc*)
4611
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4612
    # about 5 minutes as the teststring grows exponentially.
4613
    # Worse, since 9x/ME are not pre-emptively multitasking,
4614
    # you end up with a "frozen" computer, even though with patience
4615
    # the test eventually succeeds (with a max line length of 256k).
4616
    # Instead, let's just punt: use the minimum linelength reported by
4617
    # all of the supported platforms: 8192 (on NT/2K/XP).
4618
    lt_cv_sys_max_cmd_len=8192;
4619
    ;;
4620
 
4621
  amigaos*)
4622
    # On AmigaOS with pdksh, this test takes hours, literally.
4623
    # So we just punt and use a minimum line length of 8192.
4624
    lt_cv_sys_max_cmd_len=8192;
4625
    ;;
4626
 
4627
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4628
    # This has been around since 386BSD, at least.  Likely further.
4629
    if test -x /sbin/sysctl; then
4630
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4631
    elif test -x /usr/sbin/sysctl; then
4632
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4633
    else
4634
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4635
    fi
4636
    # And add a safety zone
4637
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4638
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4639
    ;;
4640
 
4641
  interix*)
4642
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4643
    lt_cv_sys_max_cmd_len=196608
4644
    ;;
4645
 
4646
  osf*)
4647
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4648
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4649
    # nice to cause kernel panics so lets avoid the loop below.
4650
    # First set a reasonable default.
4651
    lt_cv_sys_max_cmd_len=16384
4652
    #
4653
    if test -x /sbin/sysconfig; then
4654
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4655
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4656
      esac
4657
    fi
4658
    ;;
4659
  sco3.2v5*)
4660
    lt_cv_sys_max_cmd_len=102400
4661
    ;;
4662
  sysv5* | sco5v6* | sysv4.2uw2*)
4663
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4664
    if test -n "$kargmax"; then
4665
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4666
    else
4667
      lt_cv_sys_max_cmd_len=32768
4668
    fi
4669
    ;;
4670
  *)
4671
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4672
    if test -n "$lt_cv_sys_max_cmd_len"; then
4673
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4674
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4675
    else
4676
      # Make teststring a little bigger before we do anything with it.
4677
      # a 1K string should be a reasonable start.
4678
      for i in 1 2 3 4 5 6 7 8 ; do
4679
        teststring=$teststring$teststring
4680
      done
4681
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4682
      # If test is not a shell built-in, we'll probably end up computing a
4683
      # maximum length that is only half of the actual maximum length, but
4684
      # we can't tell.
4685
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4686
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4687
              test $i != 17 # 1/2 MB should be enough
4688
      do
4689
        i=`expr $i + 1`
4690
        teststring=$teststring$teststring
4691
      done
4692
      # Only check the string length outside the loop.
4693
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4694
      teststring=
4695
      # Add a significant safety factor because C++ compilers can tack on
4696
      # massive amounts of additional arguments before passing them to the
4697
      # linker.  It appears as though 1/2 is a usable value.
4698
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4699
    fi
4700
    ;;
4701
  esac
4702
 
4703
fi
4704
 
4705
if test -n $lt_cv_sys_max_cmd_len ; then
4706
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4707
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4708
else
4709
  { $as_echo "$as_me:$LINENO: result: none" >&5
4710
$as_echo "none" >&6; }
4711
fi
4712
max_cmd_len=$lt_cv_sys_max_cmd_len
4713
 
4714
 
4715
 
4716
 
4717
 
4718
 
4719
: ${CP="cp -f"}
4720
: ${MV="mv -f"}
4721
: ${RM="rm -f"}
4722
 
4723
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4724
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4725
# Try some XSI features
4726
xsi_shell=no
4727
( _lt_dummy="a/b/c"
4728
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4729
      = c,a/b,, \
4730
    && eval 'test $(( 1 + 1 )) -eq 2 \
4731
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4732
  && xsi_shell=yes
4733
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4734
$as_echo "$xsi_shell" >&6; }
4735
 
4736
 
4737
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4738
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4739
lt_shell_append=no
4740
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4741
    >/dev/null 2>&1 \
4742
  && lt_shell_append=yes
4743
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4744
$as_echo "$lt_shell_append" >&6; }
4745
 
4746
 
4747
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4748
  lt_unset=unset
4749
else
4750
  lt_unset=false
4751
fi
4752
 
4753
 
4754
 
4755
 
4756
 
4757
# test EBCDIC or ASCII
4758
case `echo X|tr X '\101'` in
4759
 A) # ASCII based system
4760
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4761
  lt_SP2NL='tr \040 \012'
4762
  lt_NL2SP='tr \015\012 \040\040'
4763
  ;;
4764
 *) # EBCDIC based system
4765
  lt_SP2NL='tr \100 \n'
4766
  lt_NL2SP='tr \r\n \100\100'
4767
  ;;
4768
esac
4769
 
4770
 
4771
 
4772
 
4773
 
4774
 
4775
 
4776
 
4777
 
4778
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4779
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4780
if test "${lt_cv_ld_reload_flag+set}" = set; then
4781
  $as_echo_n "(cached) " >&6
4782
else
4783
  lt_cv_ld_reload_flag='-r'
4784
fi
4785
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4786
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4787
reload_flag=$lt_cv_ld_reload_flag
4788
case $reload_flag in
4789
"" | " "*) ;;
4790
*) reload_flag=" $reload_flag" ;;
4791
esac
4792
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4793
case $host_os in
4794
  darwin*)
4795
    if test "$GCC" = yes; then
4796
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4797
    else
4798
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4799
    fi
4800
    ;;
4801
esac
4802
 
4803
 
4804
 
4805
 
4806
 
4807
 
4808
 
4809
 
4810
 
4811
if test -n "$ac_tool_prefix"; then
4812
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4813
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4814
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4815
$as_echo_n "checking for $ac_word... " >&6; }
4816
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4817
  $as_echo_n "(cached) " >&6
4818
else
4819
  if test -n "$OBJDUMP"; then
4820
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4821
else
4822
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823
for as_dir in $PATH
4824
do
4825
  IFS=$as_save_IFS
4826
  test -z "$as_dir" && as_dir=.
4827
  for ac_exec_ext in '' $ac_executable_extensions; do
4828
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4830
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831
    break 2
4832
  fi
4833
done
4834
done
4835
IFS=$as_save_IFS
4836
 
4837
fi
4838
fi
4839
OBJDUMP=$ac_cv_prog_OBJDUMP
4840
if test -n "$OBJDUMP"; then
4841
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4842
$as_echo "$OBJDUMP" >&6; }
4843
else
4844
  { $as_echo "$as_me:$LINENO: result: no" >&5
4845
$as_echo "no" >&6; }
4846
fi
4847
 
4848
 
4849
fi
4850
if test -z "$ac_cv_prog_OBJDUMP"; then
4851
  ac_ct_OBJDUMP=$OBJDUMP
4852
  # Extract the first word of "objdump", so it can be a program name with args.
4853
set dummy objdump; ac_word=$2
4854
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4855
$as_echo_n "checking for $ac_word... " >&6; }
4856
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4857
  $as_echo_n "(cached) " >&6
4858
else
4859
  if test -n "$ac_ct_OBJDUMP"; then
4860
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4861
else
4862
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863
for as_dir in $PATH
4864
do
4865
  IFS=$as_save_IFS
4866
  test -z "$as_dir" && as_dir=.
4867
  for ac_exec_ext in '' $ac_executable_extensions; do
4868
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4870
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871
    break 2
4872
  fi
4873
done
4874
done
4875
IFS=$as_save_IFS
4876
 
4877
fi
4878
fi
4879
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4880
if test -n "$ac_ct_OBJDUMP"; then
4881
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4882
$as_echo "$ac_ct_OBJDUMP" >&6; }
4883
else
4884
  { $as_echo "$as_me:$LINENO: result: no" >&5
4885
$as_echo "no" >&6; }
4886
fi
4887
 
4888
  if test "x$ac_ct_OBJDUMP" = x; then
4889
    OBJDUMP="false"
4890
  else
4891
    case $cross_compiling:$ac_tool_warned in
4892
yes:)
4893
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4894
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4895
ac_tool_warned=yes ;;
4896
esac
4897
    OBJDUMP=$ac_ct_OBJDUMP
4898
  fi
4899
else
4900
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4901
fi
4902
 
4903
test -z "$OBJDUMP" && OBJDUMP=objdump
4904
 
4905
 
4906
 
4907
 
4908
 
4909
 
4910
 
4911
 
4912
 
4913
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4914
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4915 19 jeremybenn
if test "${lt_cv_deplibs_check_method+set}" = set; then
4916 82 jeremybenn
  $as_echo_n "(cached) " >&6
4917 19 jeremybenn
else
4918
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4919
lt_cv_file_magic_test_file=
4920
lt_cv_deplibs_check_method='unknown'
4921
# Need to set the preceding variable on all platforms that support
4922
# interlibrary dependencies.
4923
# 'none' -- dependencies not supported.
4924
# `unknown' -- same as none, but documents that we really don't know.
4925
# 'pass_all' -- all dependencies passed with no checks.
4926
# 'test_compile' -- check by making test program.
4927
# 'file_magic [[regex]]' -- check by looking for files in library path
4928
# which responds to the $file_magic_cmd with a given extended regex.
4929
# If you have `file' or equivalent on your system and you're not sure
4930
# whether `pass_all' will *always* work, you probably want this one.
4931
 
4932
case $host_os in
4933 82 jeremybenn
aix[4-9]*)
4934 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4935
  ;;
4936
 
4937
beos*)
4938
  lt_cv_deplibs_check_method=pass_all
4939
  ;;
4940
 
4941
bsdi[45]*)
4942
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4943
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4944
  lt_cv_file_magic_test_file=/shlib/libc.so
4945
  ;;
4946
 
4947
cygwin*)
4948
  # func_win32_libid is a shell function defined in ltmain.sh
4949
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4950
  lt_cv_file_magic_cmd='func_win32_libid'
4951
  ;;
4952
 
4953
mingw* | pw32*)
4954
  # Base MSYS/MinGW do not provide the 'file' command needed by
4955
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4956
  # unless we find 'file', for example because we are cross-compiling.
4957
  if ( file / ) >/dev/null 2>&1; then
4958
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4959
    lt_cv_file_magic_cmd='func_win32_libid'
4960
  else
4961
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4962
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4963
  fi
4964
  ;;
4965
 
4966 82 jeremybenn
cegcc)
4967
  # use the weaker test based on 'objdump'. See mingw*.
4968
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4969
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4970
  ;;
4971
 
4972 19 jeremybenn
darwin* | rhapsody*)
4973
  lt_cv_deplibs_check_method=pass_all
4974
  ;;
4975
 
4976
freebsd* | dragonfly*)
4977 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4978 19 jeremybenn
    case $host_cpu in
4979
    i*86 )
4980
      # Not sure whether the presence of OpenBSD here was a mistake.
4981
      # Let's accept both of them until this is cleared up.
4982
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4983
      lt_cv_file_magic_cmd=/usr/bin/file
4984
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4985
      ;;
4986
    esac
4987
  else
4988
    lt_cv_deplibs_check_method=pass_all
4989
  fi
4990
  ;;
4991
 
4992
gnu*)
4993
  lt_cv_deplibs_check_method=pass_all
4994
  ;;
4995
 
4996
hpux10.20* | hpux11*)
4997
  lt_cv_file_magic_cmd=/usr/bin/file
4998
  case $host_cpu in
4999
  ia64*)
5000
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5001
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5002
    ;;
5003
  hppa*64*)
5004
    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]'
5005
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5006
    ;;
5007
  *)
5008
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5009
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5010
    ;;
5011
  esac
5012
  ;;
5013
 
5014
interix[3-9]*)
5015
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5016
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5017
  ;;
5018
 
5019
irix5* | irix6* | nonstopux*)
5020
  case $LD in
5021
  *-32|*"-32 ") libmagic=32-bit;;
5022
  *-n32|*"-n32 ") libmagic=N32;;
5023
  *-64|*"-64 ") libmagic=64-bit;;
5024
  *) libmagic=never-match;;
5025
  esac
5026
  lt_cv_deplibs_check_method=pass_all
5027
  ;;
5028
 
5029
# This must be Linux ELF.
5030
linux* | k*bsd*-gnu)
5031
  lt_cv_deplibs_check_method=pass_all
5032
  ;;
5033
 
5034 90 jeremybenn
netbsd*)
5035 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5036 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5037
  else
5038
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5039
  fi
5040
  ;;
5041
 
5042
newos6*)
5043
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5044
  lt_cv_file_magic_cmd=/usr/bin/file
5045
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5046
  ;;
5047
 
5048 82 jeremybenn
*nto* | *qnx*)
5049
  lt_cv_deplibs_check_method=pass_all
5050 19 jeremybenn
  ;;
5051
 
5052
openbsd*)
5053 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5054 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5055
  else
5056
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5057
  fi
5058
  ;;
5059
 
5060
osf3* | osf4* | osf5*)
5061
  lt_cv_deplibs_check_method=pass_all
5062
  ;;
5063
 
5064
rdos*)
5065
  lt_cv_deplibs_check_method=pass_all
5066
  ;;
5067
 
5068
solaris*)
5069
  lt_cv_deplibs_check_method=pass_all
5070
  ;;
5071
 
5072 82 jeremybenn
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5073
  lt_cv_deplibs_check_method=pass_all
5074
  ;;
5075
 
5076 19 jeremybenn
sysv4 | sysv4.3*)
5077
  case $host_vendor in
5078
  motorola)
5079
    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]'
5080
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5081
    ;;
5082
  ncr)
5083
    lt_cv_deplibs_check_method=pass_all
5084
    ;;
5085
  sequent)
5086
    lt_cv_file_magic_cmd='/bin/file'
5087
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5088
    ;;
5089
  sni)
5090
    lt_cv_file_magic_cmd='/bin/file'
5091
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5092
    lt_cv_file_magic_test_file=/lib/libc.so
5093
    ;;
5094
  siemens)
5095
    lt_cv_deplibs_check_method=pass_all
5096
    ;;
5097
  pc)
5098
    lt_cv_deplibs_check_method=pass_all
5099
    ;;
5100
  esac
5101
  ;;
5102
 
5103 82 jeremybenn
tpf*)
5104 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
5105
  ;;
5106
esac
5107
 
5108
fi
5109 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5110
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5111 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
5112
deplibs_check_method=$lt_cv_deplibs_check_method
5113
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5114
 
5115
 
5116
 
5117
 
5118 82 jeremybenn
 
5119
 
5120
 
5121
 
5122
 
5123
 
5124
 
5125
 
5126
if test -n "$ac_tool_prefix"; then
5127
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5128
set dummy ${ac_tool_prefix}ar; ac_word=$2
5129
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5130
$as_echo_n "checking for $ac_word... " >&6; }
5131
if test "${ac_cv_prog_AR+set}" = set; then
5132
  $as_echo_n "(cached) " >&6
5133
else
5134
  if test -n "$AR"; then
5135
  ac_cv_prog_AR="$AR" # Let the user override the test.
5136
else
5137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138
for as_dir in $PATH
5139
do
5140
  IFS=$as_save_IFS
5141
  test -z "$as_dir" && as_dir=.
5142
  for ac_exec_ext in '' $ac_executable_extensions; do
5143
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5145
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146
    break 2
5147
  fi
5148
done
5149
done
5150
IFS=$as_save_IFS
5151
 
5152
fi
5153
fi
5154
AR=$ac_cv_prog_AR
5155
if test -n "$AR"; then
5156
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5157
$as_echo "$AR" >&6; }
5158
else
5159
  { $as_echo "$as_me:$LINENO: result: no" >&5
5160
$as_echo "no" >&6; }
5161
fi
5162
 
5163
 
5164
fi
5165
if test -z "$ac_cv_prog_AR"; then
5166
  ac_ct_AR=$AR
5167
  # Extract the first word of "ar", so it can be a program name with args.
5168
set dummy ar; ac_word=$2
5169
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5170
$as_echo_n "checking for $ac_word... " >&6; }
5171
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5172
  $as_echo_n "(cached) " >&6
5173
else
5174
  if test -n "$ac_ct_AR"; then
5175
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5176
else
5177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178
for as_dir in $PATH
5179
do
5180
  IFS=$as_save_IFS
5181
  test -z "$as_dir" && as_dir=.
5182
  for ac_exec_ext in '' $ac_executable_extensions; do
5183
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184
    ac_cv_prog_ac_ct_AR="ar"
5185
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186
    break 2
5187
  fi
5188
done
5189
done
5190
IFS=$as_save_IFS
5191
 
5192
fi
5193
fi
5194
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5195
if test -n "$ac_ct_AR"; then
5196
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5197
$as_echo "$ac_ct_AR" >&6; }
5198
else
5199
  { $as_echo "$as_me:$LINENO: result: no" >&5
5200
$as_echo "no" >&6; }
5201
fi
5202
 
5203
  if test "x$ac_ct_AR" = x; then
5204
    AR="false"
5205
  else
5206
    case $cross_compiling:$ac_tool_warned in
5207
yes:)
5208
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5209
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5210
ac_tool_warned=yes ;;
5211
esac
5212
    AR=$ac_ct_AR
5213
  fi
5214
else
5215
  AR="$ac_cv_prog_AR"
5216
fi
5217
 
5218
test -z "$AR" && AR=ar
5219
test -z "$AR_FLAGS" && AR_FLAGS=cru
5220
 
5221
 
5222
 
5223
 
5224
 
5225
 
5226
 
5227
 
5228
 
5229
 
5230
 
5231
if test -n "$ac_tool_prefix"; then
5232
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5233
set dummy ${ac_tool_prefix}strip; ac_word=$2
5234
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5235
$as_echo_n "checking for $ac_word... " >&6; }
5236
if test "${ac_cv_prog_STRIP+set}" = set; then
5237
  $as_echo_n "(cached) " >&6
5238
else
5239
  if test -n "$STRIP"; then
5240
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5241
else
5242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243
for as_dir in $PATH
5244
do
5245
  IFS=$as_save_IFS
5246
  test -z "$as_dir" && as_dir=.
5247
  for ac_exec_ext in '' $ac_executable_extensions; do
5248
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5250
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251
    break 2
5252
  fi
5253
done
5254
done
5255
IFS=$as_save_IFS
5256
 
5257
fi
5258
fi
5259
STRIP=$ac_cv_prog_STRIP
5260
if test -n "$STRIP"; then
5261
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5262
$as_echo "$STRIP" >&6; }
5263
else
5264
  { $as_echo "$as_me:$LINENO: result: no" >&5
5265
$as_echo "no" >&6; }
5266
fi
5267
 
5268
 
5269
fi
5270
if test -z "$ac_cv_prog_STRIP"; then
5271
  ac_ct_STRIP=$STRIP
5272
  # Extract the first word of "strip", so it can be a program name with args.
5273
set dummy strip; ac_word=$2
5274
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5275
$as_echo_n "checking for $ac_word... " >&6; }
5276
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5277
  $as_echo_n "(cached) " >&6
5278
else
5279
  if test -n "$ac_ct_STRIP"; then
5280
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5281
else
5282
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283
for as_dir in $PATH
5284
do
5285
  IFS=$as_save_IFS
5286
  test -z "$as_dir" && as_dir=.
5287
  for ac_exec_ext in '' $ac_executable_extensions; do
5288
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289
    ac_cv_prog_ac_ct_STRIP="strip"
5290
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291
    break 2
5292
  fi
5293
done
5294
done
5295
IFS=$as_save_IFS
5296
 
5297
fi
5298
fi
5299
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5300
if test -n "$ac_ct_STRIP"; then
5301
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5302
$as_echo "$ac_ct_STRIP" >&6; }
5303
else
5304
  { $as_echo "$as_me:$LINENO: result: no" >&5
5305
$as_echo "no" >&6; }
5306
fi
5307
 
5308
  if test "x$ac_ct_STRIP" = x; then
5309
    STRIP=":"
5310
  else
5311
    case $cross_compiling:$ac_tool_warned in
5312
yes:)
5313
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5314
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5315
ac_tool_warned=yes ;;
5316
esac
5317
    STRIP=$ac_ct_STRIP
5318
  fi
5319
else
5320
  STRIP="$ac_cv_prog_STRIP"
5321
fi
5322
 
5323
test -z "$STRIP" && STRIP=:
5324
 
5325
 
5326
 
5327
 
5328
 
5329
 
5330
if test -n "$ac_tool_prefix"; then
5331
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5332
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5333
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5334
$as_echo_n "checking for $ac_word... " >&6; }
5335
if test "${ac_cv_prog_RANLIB+set}" = set; then
5336
  $as_echo_n "(cached) " >&6
5337
else
5338
  if test -n "$RANLIB"; then
5339
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5340
else
5341
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342
for as_dir in $PATH
5343
do
5344
  IFS=$as_save_IFS
5345
  test -z "$as_dir" && as_dir=.
5346
  for ac_exec_ext in '' $ac_executable_extensions; do
5347
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5349
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350
    break 2
5351
  fi
5352
done
5353
done
5354
IFS=$as_save_IFS
5355
 
5356
fi
5357
fi
5358
RANLIB=$ac_cv_prog_RANLIB
5359
if test -n "$RANLIB"; then
5360
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5361
$as_echo "$RANLIB" >&6; }
5362
else
5363
  { $as_echo "$as_me:$LINENO: result: no" >&5
5364
$as_echo "no" >&6; }
5365
fi
5366
 
5367
 
5368
fi
5369
if test -z "$ac_cv_prog_RANLIB"; then
5370
  ac_ct_RANLIB=$RANLIB
5371
  # Extract the first word of "ranlib", so it can be a program name with args.
5372
set dummy ranlib; ac_word=$2
5373
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5374
$as_echo_n "checking for $ac_word... " >&6; }
5375
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5376
  $as_echo_n "(cached) " >&6
5377
else
5378
  if test -n "$ac_ct_RANLIB"; then
5379
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5380
else
5381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382
for as_dir in $PATH
5383
do
5384
  IFS=$as_save_IFS
5385
  test -z "$as_dir" && as_dir=.
5386
  for ac_exec_ext in '' $ac_executable_extensions; do
5387
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5388
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5389
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390
    break 2
5391
  fi
5392
done
5393
done
5394
IFS=$as_save_IFS
5395
 
5396
fi
5397
fi
5398
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5399
if test -n "$ac_ct_RANLIB"; then
5400
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5401
$as_echo "$ac_ct_RANLIB" >&6; }
5402
else
5403
  { $as_echo "$as_me:$LINENO: result: no" >&5
5404
$as_echo "no" >&6; }
5405
fi
5406
 
5407
  if test "x$ac_ct_RANLIB" = x; then
5408
    RANLIB=":"
5409
  else
5410
    case $cross_compiling:$ac_tool_warned in
5411
yes:)
5412
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5413
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5414
ac_tool_warned=yes ;;
5415
esac
5416
    RANLIB=$ac_ct_RANLIB
5417
  fi
5418
else
5419
  RANLIB="$ac_cv_prog_RANLIB"
5420
fi
5421
 
5422
test -z "$RANLIB" && RANLIB=:
5423
 
5424
 
5425
 
5426
 
5427
 
5428
 
5429
# Determine commands to create old-style static archives.
5430
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5431
old_postinstall_cmds='chmod 644 $oldlib'
5432
old_postuninstall_cmds=
5433
 
5434
if test -n "$RANLIB"; then
5435
  case $host_os in
5436
  openbsd*)
5437
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5438
    ;;
5439
  *)
5440
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5441
    ;;
5442
  esac
5443
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5444
fi
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
 
5477
 
5478
 
5479 19 jeremybenn
# If no C compiler was specified, use CC.
5480
LTCC=${LTCC-"$CC"}
5481
 
5482
# If no C compiler flags were specified, use CFLAGS.
5483
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5484
 
5485
# Allow CC to be a program name with arguments.
5486
compiler=$CC
5487
 
5488
 
5489 82 jeremybenn
# Check for command to grab the raw symbol name followed by C symbol from nm.
5490
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5491
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5492
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5493
  $as_echo_n "(cached) " >&6
5494
else
5495
 
5496
# These are sane defaults that work on at least a few old systems.
5497
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5498
 
5499
# Character class describing NM global symbol codes.
5500
symcode='[BCDEGRST]'
5501
 
5502
# Regexp to match symbols that can be accessed directly from C.
5503
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5504
 
5505
# Define system-specific variables.
5506
case $host_os in
5507
aix*)
5508
  symcode='[BCDT]'
5509
  ;;
5510
cygwin* | mingw* | pw32* | cegcc*)
5511
  symcode='[ABCDGISTW]'
5512
  ;;
5513
hpux*)
5514
  if test "$host_cpu" = ia64; then
5515
    symcode='[ABCDEGRST]'
5516
  fi
5517
  ;;
5518
irix* | nonstopux*)
5519
  symcode='[BCDEGRST]'
5520
  ;;
5521
osf*)
5522
  symcode='[BCDEGQRST]'
5523
  ;;
5524
solaris*)
5525
  symcode='[BDRT]'
5526
  ;;
5527
sco3.2v5*)
5528
  symcode='[DT]'
5529
  ;;
5530
sysv4.2uw2*)
5531
  symcode='[DT]'
5532
  ;;
5533
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5534
  symcode='[ABDT]'
5535
  ;;
5536
sysv4)
5537
  symcode='[DFNSTU]'
5538
  ;;
5539
esac
5540
 
5541
# If we're using GNU nm, then use its standard symbol codes.
5542
case `$NM -V 2>&1` in
5543
*GNU* | *'with BFD'*)
5544
  symcode='[ABCDGIRSTW]' ;;
5545
esac
5546
 
5547
# Transform an extracted symbol line into a proper C declaration.
5548
# Some systems (esp. on ia64) link data and code symbols differently,
5549
# so use this general approach.
5550
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5551
 
5552
# Transform an extracted symbol line into symbol name and symbol address
5553
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5554
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'"
5555
 
5556
# Handle CRLF in mingw tool chain
5557
opt_cr=
5558
case $build_os in
5559
mingw*)
5560
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5561
  ;;
5562
esac
5563
 
5564
# Try without a prefix underscore, then with it.
5565
for ac_symprfx in "" "_"; do
5566
 
5567
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5568
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5569
 
5570
  # Write the raw and C identifiers.
5571
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5572
    # Fake it for dumpbin and say T for any non-static function
5573
    # and D for any global variable.
5574
    # Also find C++ and __fastcall symbols from MSVC++,
5575
    # which start with @ or ?.
5576
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5577
"     {last_section=section; section=\$ 3};"\
5578
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5579
"     \$ 0!~/External *\|/{next};"\
5580
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5581
"     {if(hide[section]) next};"\
5582
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5583
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5584
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5585
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5586
"     ' prfx=^$ac_symprfx"
5587
  else
5588
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5589
  fi
5590
 
5591
  # Check to see that the pipe works correctly.
5592
  pipe_works=no
5593
 
5594
  rm -f conftest*
5595
  cat > conftest.$ac_ext <<_LT_EOF
5596
#ifdef __cplusplus
5597
extern "C" {
5598
#endif
5599
char nm_test_var;
5600
void nm_test_func(void);
5601
void nm_test_func(void){}
5602
#ifdef __cplusplus
5603
}
5604
#endif
5605
int main(){nm_test_var='a';nm_test_func();return(0);}
5606
_LT_EOF
5607
 
5608
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609
  (eval $ac_compile) 2>&5
5610
  ac_status=$?
5611
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612
  (exit $ac_status); }; then
5613
    # Now try to grab the symbols.
5614
    nlist=conftest.nm
5615
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5616
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5617
  ac_status=$?
5618
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619
  (exit $ac_status); } && test -s "$nlist"; then
5620
      # Try sorting and uniquifying the output.
5621
      if sort "$nlist" | uniq > "$nlist"T; then
5622
        mv -f "$nlist"T "$nlist"
5623
      else
5624
        rm -f "$nlist"T
5625
      fi
5626
 
5627
      # Make sure that we snagged all the symbols we need.
5628
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5629
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5630
          cat <<_LT_EOF > conftest.$ac_ext
5631
#ifdef __cplusplus
5632
extern "C" {
5633
#endif
5634
 
5635
_LT_EOF
5636
          # Now generate the symbol file.
5637
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5638
 
5639
          cat <<_LT_EOF >> conftest.$ac_ext
5640
 
5641
/* The mapping between symbol names and symbols.  */
5642
const struct {
5643
  const char *name;
5644
  void       *address;
5645
}
5646
lt__PROGRAM__LTX_preloaded_symbols[] =
5647
{
5648
  { "@PROGRAM@", (void *) 0 },
5649
_LT_EOF
5650
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5651
          cat <<\_LT_EOF >> conftest.$ac_ext
5652
  {0, (void *) 0}
5653
};
5654
 
5655
/* This works around a problem in FreeBSD linker */
5656
#ifdef FREEBSD_WORKAROUND
5657
static const void *lt_preloaded_setup() {
5658
  return lt__PROGRAM__LTX_preloaded_symbols;
5659
}
5660
#endif
5661
 
5662
#ifdef __cplusplus
5663
}
5664
#endif
5665
_LT_EOF
5666
          # Now try linking the two files.
5667
          mv conftest.$ac_objext conftstm.$ac_objext
5668
          lt_save_LIBS="$LIBS"
5669
          lt_save_CFLAGS="$CFLAGS"
5670
          LIBS="conftstm.$ac_objext"
5671
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5672
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5673
  (eval $ac_link) 2>&5
5674
  ac_status=$?
5675
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5677
            pipe_works=yes
5678
          fi
5679
          LIBS="$lt_save_LIBS"
5680
          CFLAGS="$lt_save_CFLAGS"
5681
        else
5682
          echo "cannot find nm_test_func in $nlist" >&5
5683
        fi
5684
      else
5685
        echo "cannot find nm_test_var in $nlist" >&5
5686
      fi
5687
    else
5688
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5689
    fi
5690
  else
5691
    echo "$progname: failed program was:" >&5
5692
    cat conftest.$ac_ext >&5
5693
  fi
5694
  rm -rf conftest* conftst*
5695
 
5696
  # Do not use the global_symbol_pipe unless it works.
5697
  if test "$pipe_works" = yes; then
5698
    break
5699
  else
5700
    lt_cv_sys_global_symbol_pipe=
5701
  fi
5702
done
5703
 
5704
fi
5705
 
5706
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5707
  lt_cv_sys_global_symbol_to_cdecl=
5708
fi
5709
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5710
  { $as_echo "$as_me:$LINENO: result: failed" >&5
5711
$as_echo "failed" >&6; }
5712
else
5713
  { $as_echo "$as_me:$LINENO: result: ok" >&5
5714
$as_echo "ok" >&6; }
5715
fi
5716
 
5717
 
5718
 
5719
 
5720
 
5721
 
5722
 
5723
 
5724
 
5725
 
5726
 
5727
 
5728
 
5729
 
5730
 
5731
 
5732
 
5733
 
5734
 
5735
 
5736
 
5737
 
5738 19 jeremybenn
# Check whether --enable-libtool-lock was given.
5739
if test "${enable_libtool_lock+set}" = set; then
5740
  enableval=$enable_libtool_lock;
5741
fi
5742
 
5743
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5744
 
5745
# Some flags need to be propagated to the compiler or linker for good
5746
# libtool support.
5747
case $host in
5748
ia64-*-hpux*)
5749
  # Find out which ABI we are using.
5750
  echo 'int i;' > conftest.$ac_ext
5751
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5752
  (eval $ac_compile) 2>&5
5753
  ac_status=$?
5754 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 19 jeremybenn
  (exit $ac_status); }; then
5756
    case `/usr/bin/file conftest.$ac_objext` in
5757 82 jeremybenn
      *ELF-32*)
5758
        HPUX_IA64_MODE="32"
5759
        ;;
5760
      *ELF-64*)
5761
        HPUX_IA64_MODE="64"
5762
        ;;
5763 19 jeremybenn
    esac
5764
  fi
5765
  rm -rf conftest*
5766
  ;;
5767
*-*-irix6*)
5768
  # Find out which ABI we are using.
5769 91 jeremybenn
  echo '#line 5769 "configure"' > conftest.$ac_ext
5770 19 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771
  (eval $ac_compile) 2>&5
5772
  ac_status=$?
5773 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 19 jeremybenn
  (exit $ac_status); }; then
5775 82 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5776
      case `/usr/bin/file conftest.$ac_objext` in
5777
        *32-bit*)
5778
          LD="${LD-ld} -melf32bsmip"
5779
          ;;
5780
        *N32*)
5781
          LD="${LD-ld} -melf32bmipn32"
5782
          ;;
5783
        *64-bit*)
5784
          LD="${LD-ld} -melf64bmip"
5785
        ;;
5786
      esac
5787
    else
5788
      case `/usr/bin/file conftest.$ac_objext` in
5789
        *32-bit*)
5790
          LD="${LD-ld} -32"
5791
          ;;
5792
        *N32*)
5793
          LD="${LD-ld} -n32"
5794
          ;;
5795
        *64-bit*)
5796
          LD="${LD-ld} -64"
5797
          ;;
5798
      esac
5799
    fi
5800 19 jeremybenn
  fi
5801
  rm -rf conftest*
5802
  ;;
5803
 
5804
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5805 82 jeremybenn
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5806 19 jeremybenn
  # Find out which ABI we are using.
5807
  echo 'int i;' > conftest.$ac_ext
5808
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809
  (eval $ac_compile) 2>&5
5810
  ac_status=$?
5811 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 19 jeremybenn
  (exit $ac_status); }; then
5813
    case `/usr/bin/file conftest.o` in
5814 82 jeremybenn
      *32-bit*)
5815
        case $host in
5816
          x86_64-*kfreebsd*-gnu)
5817
            LD="${LD-ld} -m elf_i386_fbsd"
5818
            ;;
5819
          x86_64-*linux*)
5820
            LD="${LD-ld} -m elf_i386"
5821
            ;;
5822
          ppc64-*linux*|powerpc64-*linux*)
5823
            LD="${LD-ld} -m elf32ppclinux"
5824
            ;;
5825
          s390x-*linux*)
5826
            LD="${LD-ld} -m elf_s390"
5827
            ;;
5828
          sparc64-*linux*)
5829
            LD="${LD-ld} -m elf32_sparc"
5830
            ;;
5831
        esac
5832
        ;;
5833
      *64-bit*)
5834
        case $host in
5835
          x86_64-*kfreebsd*-gnu)
5836
            LD="${LD-ld} -m elf_x86_64_fbsd"
5837
            ;;
5838
          x86_64-*linux*)
5839
            LD="${LD-ld} -m elf_x86_64"
5840
            ;;
5841
          ppc*-*linux*|powerpc*-*linux*)
5842
            LD="${LD-ld} -m elf64ppc"
5843
            ;;
5844
          s390*-*linux*|s390*-*tpf*)
5845
            LD="${LD-ld} -m elf64_s390"
5846
            ;;
5847
          sparc*-*linux*)
5848
            LD="${LD-ld} -m elf64_sparc"
5849
            ;;
5850
        esac
5851
        ;;
5852 19 jeremybenn
    esac
5853
  fi
5854
  rm -rf conftest*
5855
  ;;
5856
 
5857
*-*-sco3.2v5*)
5858
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5859
  SAVE_CFLAGS="$CFLAGS"
5860
  CFLAGS="$CFLAGS -belf"
5861 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5862
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5863 19 jeremybenn
if test "${lt_cv_cc_needs_belf+set}" = set; then
5864 82 jeremybenn
  $as_echo_n "(cached) " >&6
5865 19 jeremybenn
else
5866
  ac_ext=c
5867
ac_cpp='$CPP $CPPFLAGS'
5868
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5869
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5870
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5871
 
5872
     cat >conftest.$ac_ext <<_ACEOF
5873
/* confdefs.h.  */
5874
_ACEOF
5875
cat confdefs.h >>conftest.$ac_ext
5876
cat >>conftest.$ac_ext <<_ACEOF
5877
/* end confdefs.h.  */
5878
 
5879
int
5880
main ()
5881
{
5882
 
5883
  ;
5884
  return 0;
5885
}
5886
_ACEOF
5887
rm -f conftest.$ac_objext conftest$ac_exeext
5888
if { (ac_try="$ac_link"
5889
case "(($ac_try" in
5890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891
  *) ac_try_echo=$ac_try;;
5892
esac
5893 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5894
$as_echo "$ac_try_echo") >&5
5895 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
5896
  ac_status=$?
5897
  grep -v '^ *+' conftest.er1 >conftest.err
5898
  rm -f conftest.er1
5899
  cat conftest.err >&5
5900 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 19 jeremybenn
  (exit $ac_status); } && {
5902
         test -z "$ac_c_werror_flag" ||
5903
         test ! -s conftest.err
5904 82 jeremybenn
       } && test -s conftest$ac_exeext && {
5905
         test "$cross_compiling" = yes ||
5906
         $as_test_x conftest$ac_exeext
5907
       }; then
5908 19 jeremybenn
  lt_cv_cc_needs_belf=yes
5909
else
5910 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5911 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5912
 
5913
        lt_cv_cc_needs_belf=no
5914
fi
5915
 
5916 82 jeremybenn
rm -rf conftest.dSYM
5917 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5918
      conftest$ac_exeext conftest.$ac_ext
5919
     ac_ext=c
5920
ac_cpp='$CPP $CPPFLAGS'
5921
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5922
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5924
 
5925
fi
5926 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5927
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5928 19 jeremybenn
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5929
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5930
    CFLAGS="$SAVE_CFLAGS"
5931
  fi
5932
  ;;
5933
sparc*-*solaris*)
5934
  # Find out which ABI we are using.
5935
  echo 'int i;' > conftest.$ac_ext
5936
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937
  (eval $ac_compile) 2>&5
5938
  ac_status=$?
5939 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 19 jeremybenn
  (exit $ac_status); }; then
5941
    case `/usr/bin/file conftest.o` in
5942
    *64-bit*)
5943
      case $lt_cv_prog_gnu_ld in
5944
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5945 82 jeremybenn
      *)
5946
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5947
          LD="${LD-ld} -64"
5948
        fi
5949
        ;;
5950 19 jeremybenn
      esac
5951
      ;;
5952
    esac
5953
  fi
5954
  rm -rf conftest*
5955
  ;;
5956 82 jeremybenn
esac
5957 19 jeremybenn
 
5958 82 jeremybenn
need_locks="$enable_libtool_lock"
5959 19 jeremybenn
 
5960 82 jeremybenn
 
5961
  case $host_os in
5962
    rhapsody* | darwin*)
5963
    if test -n "$ac_tool_prefix"; then
5964
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5965
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5966
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5967
$as_echo_n "checking for $ac_word... " >&6; }
5968
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5969
  $as_echo_n "(cached) " >&6
5970
else
5971
  if test -n "$DSYMUTIL"; then
5972
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5973
else
5974
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975
for as_dir in $PATH
5976
do
5977
  IFS=$as_save_IFS
5978
  test -z "$as_dir" && as_dir=.
5979
  for ac_exec_ext in '' $ac_executable_extensions; do
5980
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5981
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5982
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983
    break 2
5984
  fi
5985
done
5986
done
5987
IFS=$as_save_IFS
5988
 
5989
fi
5990
fi
5991
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5992
if test -n "$DSYMUTIL"; then
5993
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5994
$as_echo "$DSYMUTIL" >&6; }
5995
else
5996
  { $as_echo "$as_me:$LINENO: result: no" >&5
5997
$as_echo "no" >&6; }
5998
fi
5999
 
6000
 
6001
fi
6002
if test -z "$ac_cv_prog_DSYMUTIL"; then
6003
  ac_ct_DSYMUTIL=$DSYMUTIL
6004
  # Extract the first word of "dsymutil", so it can be a program name with args.
6005
set dummy dsymutil; ac_word=$2
6006
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6007
$as_echo_n "checking for $ac_word... " >&6; }
6008
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6009
  $as_echo_n "(cached) " >&6
6010
else
6011
  if test -n "$ac_ct_DSYMUTIL"; then
6012
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6013
else
6014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015
for as_dir in $PATH
6016
do
6017
  IFS=$as_save_IFS
6018
  test -z "$as_dir" && as_dir=.
6019
  for ac_exec_ext in '' $ac_executable_extensions; do
6020
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6021
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6022
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6023
    break 2
6024
  fi
6025
done
6026
done
6027
IFS=$as_save_IFS
6028
 
6029
fi
6030
fi
6031
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6032
if test -n "$ac_ct_DSYMUTIL"; then
6033
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6034
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6035
else
6036
  { $as_echo "$as_me:$LINENO: result: no" >&5
6037
$as_echo "no" >&6; }
6038
fi
6039
 
6040
  if test "x$ac_ct_DSYMUTIL" = x; then
6041
    DSYMUTIL=":"
6042
  else
6043
    case $cross_compiling:$ac_tool_warned in
6044
yes:)
6045
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6046
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6047
ac_tool_warned=yes ;;
6048 19 jeremybenn
esac
6049 82 jeremybenn
    DSYMUTIL=$ac_ct_DSYMUTIL
6050
  fi
6051
else
6052
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6053
fi
6054 19 jeremybenn
 
6055 82 jeremybenn
    if test -n "$ac_tool_prefix"; then
6056
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6057
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6058
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6059
$as_echo_n "checking for $ac_word... " >&6; }
6060
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6061
  $as_echo_n "(cached) " >&6
6062
else
6063
  if test -n "$NMEDIT"; then
6064
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6065
else
6066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067
for as_dir in $PATH
6068
do
6069
  IFS=$as_save_IFS
6070
  test -z "$as_dir" && as_dir=.
6071
  for ac_exec_ext in '' $ac_executable_extensions; do
6072
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6073
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6074
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075
    break 2
6076
  fi
6077
done
6078
done
6079
IFS=$as_save_IFS
6080 19 jeremybenn
 
6081 82 jeremybenn
fi
6082
fi
6083
NMEDIT=$ac_cv_prog_NMEDIT
6084
if test -n "$NMEDIT"; then
6085
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6086
$as_echo "$NMEDIT" >&6; }
6087
else
6088
  { $as_echo "$as_me:$LINENO: result: no" >&5
6089
$as_echo "no" >&6; }
6090
fi
6091 19 jeremybenn
 
6092 82 jeremybenn
 
6093
fi
6094
if test -z "$ac_cv_prog_NMEDIT"; then
6095
  ac_ct_NMEDIT=$NMEDIT
6096
  # Extract the first word of "nmedit", so it can be a program name with args.
6097
set dummy nmedit; ac_word=$2
6098
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6099
$as_echo_n "checking for $ac_word... " >&6; }
6100
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6101
  $as_echo_n "(cached) " >&6
6102
else
6103
  if test -n "$ac_ct_NMEDIT"; then
6104
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6105
else
6106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107
for as_dir in $PATH
6108
do
6109
  IFS=$as_save_IFS
6110
  test -z "$as_dir" && as_dir=.
6111
  for ac_exec_ext in '' $ac_executable_extensions; do
6112
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6113
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6114
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115
    break 2
6116
  fi
6117
done
6118
done
6119
IFS=$as_save_IFS
6120
 
6121
fi
6122
fi
6123
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6124
if test -n "$ac_ct_NMEDIT"; then
6125
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6126
$as_echo "$ac_ct_NMEDIT" >&6; }
6127
else
6128
  { $as_echo "$as_me:$LINENO: result: no" >&5
6129
$as_echo "no" >&6; }
6130
fi
6131
 
6132
  if test "x$ac_ct_NMEDIT" = x; then
6133
    NMEDIT=":"
6134
  else
6135
    case $cross_compiling:$ac_tool_warned in
6136
yes:)
6137
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6138
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6139
ac_tool_warned=yes ;;
6140
esac
6141
    NMEDIT=$ac_ct_NMEDIT
6142
  fi
6143
else
6144
  NMEDIT="$ac_cv_prog_NMEDIT"
6145
fi
6146
 
6147
    if test -n "$ac_tool_prefix"; then
6148
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6149
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6150
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6151
$as_echo_n "checking for $ac_word... " >&6; }
6152
if test "${ac_cv_prog_LIPO+set}" = set; then
6153
  $as_echo_n "(cached) " >&6
6154
else
6155
  if test -n "$LIPO"; then
6156
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6157
else
6158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159
for as_dir in $PATH
6160
do
6161
  IFS=$as_save_IFS
6162
  test -z "$as_dir" && as_dir=.
6163
  for ac_exec_ext in '' $ac_executable_extensions; do
6164
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6166
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167
    break 2
6168
  fi
6169
done
6170
done
6171
IFS=$as_save_IFS
6172
 
6173
fi
6174
fi
6175
LIPO=$ac_cv_prog_LIPO
6176
if test -n "$LIPO"; then
6177
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6178
$as_echo "$LIPO" >&6; }
6179
else
6180
  { $as_echo "$as_me:$LINENO: result: no" >&5
6181
$as_echo "no" >&6; }
6182
fi
6183
 
6184
 
6185
fi
6186
if test -z "$ac_cv_prog_LIPO"; then
6187
  ac_ct_LIPO=$LIPO
6188
  # Extract the first word of "lipo", so it can be a program name with args.
6189
set dummy lipo; ac_word=$2
6190
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6191
$as_echo_n "checking for $ac_word... " >&6; }
6192
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6193
  $as_echo_n "(cached) " >&6
6194
else
6195
  if test -n "$ac_ct_LIPO"; then
6196
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6197
else
6198
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199
for as_dir in $PATH
6200
do
6201
  IFS=$as_save_IFS
6202
  test -z "$as_dir" && as_dir=.
6203
  for ac_exec_ext in '' $ac_executable_extensions; do
6204
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205
    ac_cv_prog_ac_ct_LIPO="lipo"
6206
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207
    break 2
6208
  fi
6209
done
6210
done
6211
IFS=$as_save_IFS
6212
 
6213
fi
6214
fi
6215
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6216
if test -n "$ac_ct_LIPO"; then
6217
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6218
$as_echo "$ac_ct_LIPO" >&6; }
6219
else
6220
  { $as_echo "$as_me:$LINENO: result: no" >&5
6221
$as_echo "no" >&6; }
6222
fi
6223
 
6224
  if test "x$ac_ct_LIPO" = x; then
6225
    LIPO=":"
6226
  else
6227
    case $cross_compiling:$ac_tool_warned in
6228
yes:)
6229
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6230
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6231
ac_tool_warned=yes ;;
6232
esac
6233
    LIPO=$ac_ct_LIPO
6234
  fi
6235
else
6236
  LIPO="$ac_cv_prog_LIPO"
6237
fi
6238
 
6239
    if test -n "$ac_tool_prefix"; then
6240
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6241
set dummy ${ac_tool_prefix}otool; ac_word=$2
6242
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6243
$as_echo_n "checking for $ac_word... " >&6; }
6244
if test "${ac_cv_prog_OTOOL+set}" = set; then
6245
  $as_echo_n "(cached) " >&6
6246
else
6247
  if test -n "$OTOOL"; then
6248
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6249
else
6250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251
for as_dir in $PATH
6252
do
6253
  IFS=$as_save_IFS
6254
  test -z "$as_dir" && as_dir=.
6255
  for ac_exec_ext in '' $ac_executable_extensions; do
6256
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6258
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259
    break 2
6260
  fi
6261
done
6262
done
6263
IFS=$as_save_IFS
6264
 
6265
fi
6266
fi
6267
OTOOL=$ac_cv_prog_OTOOL
6268
if test -n "$OTOOL"; then
6269
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6270
$as_echo "$OTOOL" >&6; }
6271
else
6272
  { $as_echo "$as_me:$LINENO: result: no" >&5
6273
$as_echo "no" >&6; }
6274
fi
6275
 
6276
 
6277
fi
6278
if test -z "$ac_cv_prog_OTOOL"; then
6279
  ac_ct_OTOOL=$OTOOL
6280
  # Extract the first word of "otool", so it can be a program name with args.
6281
set dummy otool; ac_word=$2
6282
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6283
$as_echo_n "checking for $ac_word... " >&6; }
6284
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6285
  $as_echo_n "(cached) " >&6
6286
else
6287
  if test -n "$ac_ct_OTOOL"; then
6288
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6289
else
6290
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291
for as_dir in $PATH
6292
do
6293
  IFS=$as_save_IFS
6294
  test -z "$as_dir" && as_dir=.
6295
  for ac_exec_ext in '' $ac_executable_extensions; do
6296
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297
    ac_cv_prog_ac_ct_OTOOL="otool"
6298
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299
    break 2
6300
  fi
6301
done
6302
done
6303
IFS=$as_save_IFS
6304
 
6305
fi
6306
fi
6307
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6308
if test -n "$ac_ct_OTOOL"; then
6309
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6310
$as_echo "$ac_ct_OTOOL" >&6; }
6311
else
6312
  { $as_echo "$as_me:$LINENO: result: no" >&5
6313
$as_echo "no" >&6; }
6314
fi
6315
 
6316
  if test "x$ac_ct_OTOOL" = x; then
6317
    OTOOL=":"
6318
  else
6319
    case $cross_compiling:$ac_tool_warned in
6320
yes:)
6321
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6322
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6323
ac_tool_warned=yes ;;
6324
esac
6325
    OTOOL=$ac_ct_OTOOL
6326
  fi
6327
else
6328
  OTOOL="$ac_cv_prog_OTOOL"
6329
fi
6330
 
6331
    if test -n "$ac_tool_prefix"; then
6332
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6333
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6334
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6335
$as_echo_n "checking for $ac_word... " >&6; }
6336
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6337
  $as_echo_n "(cached) " >&6
6338
else
6339
  if test -n "$OTOOL64"; then
6340
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6341
else
6342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343
for as_dir in $PATH
6344
do
6345
  IFS=$as_save_IFS
6346
  test -z "$as_dir" && as_dir=.
6347
  for ac_exec_ext in '' $ac_executable_extensions; do
6348
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6350
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351
    break 2
6352
  fi
6353
done
6354
done
6355
IFS=$as_save_IFS
6356
 
6357
fi
6358
fi
6359
OTOOL64=$ac_cv_prog_OTOOL64
6360
if test -n "$OTOOL64"; then
6361
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6362
$as_echo "$OTOOL64" >&6; }
6363
else
6364
  { $as_echo "$as_me:$LINENO: result: no" >&5
6365
$as_echo "no" >&6; }
6366
fi
6367
 
6368
 
6369
fi
6370
if test -z "$ac_cv_prog_OTOOL64"; then
6371
  ac_ct_OTOOL64=$OTOOL64
6372
  # Extract the first word of "otool64", so it can be a program name with args.
6373
set dummy otool64; ac_word=$2
6374
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6375
$as_echo_n "checking for $ac_word... " >&6; }
6376
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6377
  $as_echo_n "(cached) " >&6
6378
else
6379
  if test -n "$ac_ct_OTOOL64"; then
6380
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6381
else
6382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383
for as_dir in $PATH
6384
do
6385
  IFS=$as_save_IFS
6386
  test -z "$as_dir" && as_dir=.
6387
  for ac_exec_ext in '' $ac_executable_extensions; do
6388
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6390
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391
    break 2
6392
  fi
6393
done
6394
done
6395
IFS=$as_save_IFS
6396
 
6397
fi
6398
fi
6399
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6400
if test -n "$ac_ct_OTOOL64"; then
6401
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6402
$as_echo "$ac_ct_OTOOL64" >&6; }
6403
else
6404
  { $as_echo "$as_me:$LINENO: result: no" >&5
6405
$as_echo "no" >&6; }
6406
fi
6407
 
6408
  if test "x$ac_ct_OTOOL64" = x; then
6409
    OTOOL64=":"
6410
  else
6411
    case $cross_compiling:$ac_tool_warned in
6412
yes:)
6413
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6414
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415
ac_tool_warned=yes ;;
6416
esac
6417
    OTOOL64=$ac_ct_OTOOL64
6418
  fi
6419
else
6420
  OTOOL64="$ac_cv_prog_OTOOL64"
6421
fi
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
 
6447
 
6448
 
6449
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6450
$as_echo_n "checking for -single_module linker flag... " >&6; }
6451
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6452
  $as_echo_n "(cached) " >&6
6453
else
6454
  lt_cv_apple_cc_single_mod=no
6455
      if test -z "${LT_MULTI_MODULE}"; then
6456
        # By default we will add the -single_module flag. You can override
6457
        # by either setting the environment variable LT_MULTI_MODULE
6458
        # non-empty at configure time, or by adding -multi_module to the
6459
        # link flags.
6460
        rm -rf libconftest.dylib*
6461
        echo "int foo(void){return 1;}" > conftest.c
6462
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6463
-dynamiclib -Wl,-single_module conftest.c" >&5
6464
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6465
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6466
        _lt_result=$?
6467
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6468
          lt_cv_apple_cc_single_mod=yes
6469
        else
6470
          cat conftest.err >&5
6471
        fi
6472
        rm -rf libconftest.dylib*
6473
        rm -f conftest.*
6474
      fi
6475
fi
6476
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6477
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6478
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6479
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6480
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6481
  $as_echo_n "(cached) " >&6
6482
else
6483
  lt_cv_ld_exported_symbols_list=no
6484
      save_LDFLAGS=$LDFLAGS
6485
      echo "_main" > conftest.sym
6486
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6487
      cat >conftest.$ac_ext <<_ACEOF
6488
/* confdefs.h.  */
6489
_ACEOF
6490
cat confdefs.h >>conftest.$ac_ext
6491
cat >>conftest.$ac_ext <<_ACEOF
6492
/* end confdefs.h.  */
6493
 
6494
int
6495
main ()
6496
{
6497
 
6498
  ;
6499
  return 0;
6500
}
6501
_ACEOF
6502
rm -f conftest.$ac_objext conftest$ac_exeext
6503
if { (ac_try="$ac_link"
6504
case "(($ac_try" in
6505
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506
  *) ac_try_echo=$ac_try;;
6507
esac
6508
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6509
$as_echo "$ac_try_echo") >&5
6510
  (eval "$ac_link") 2>conftest.er1
6511
  ac_status=$?
6512
  grep -v '^ *+' conftest.er1 >conftest.err
6513
  rm -f conftest.er1
6514
  cat conftest.err >&5
6515
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516
  (exit $ac_status); } && {
6517
         test -z "$ac_c_werror_flag" ||
6518
         test ! -s conftest.err
6519
       } && test -s conftest$ac_exeext && {
6520
         test "$cross_compiling" = yes ||
6521
         $as_test_x conftest$ac_exeext
6522
       }; then
6523
  lt_cv_ld_exported_symbols_list=yes
6524
else
6525
  $as_echo "$as_me: failed program was:" >&5
6526
sed 's/^/| /' conftest.$ac_ext >&5
6527
 
6528
        lt_cv_ld_exported_symbols_list=no
6529
fi
6530
 
6531
rm -rf conftest.dSYM
6532
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6533
      conftest$ac_exeext conftest.$ac_ext
6534
        LDFLAGS="$save_LDFLAGS"
6535
 
6536
fi
6537
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6538
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6539
    case $host_os in
6540
    rhapsody* | darwin1.[012])
6541
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6542
    darwin1.*)
6543
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6544
    darwin*) # darwin 5.x on
6545
      # if running on 10.5 or later, the deployment target defaults
6546
      # to the OS version, if on x86, and 10.4, the deployment
6547
      # target defaults to 10.4. Don't you love it?
6548
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6549
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6550
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6551
        10.[012]*)
6552
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6553
        10.*)
6554
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6555
      esac
6556
    ;;
6557
  esac
6558
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6559
      _lt_dar_single_mod='$single_module'
6560
    fi
6561
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6562
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6563
    else
6564
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6565
    fi
6566
    if test "$DSYMUTIL" != ":"; then
6567
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6568
    else
6569
      _lt_dsymutil=
6570
    fi
6571
    ;;
6572
  esac
6573
 
6574 19 jeremybenn
 
6575
for ac_header in dlfcn.h
6576
do
6577 82 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6578
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6579
$as_echo_n "checking for $ac_header... " >&6; }
6580 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6581 82 jeremybenn
  $as_echo_n "(cached) " >&6
6582 19 jeremybenn
else
6583 82 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
6584 19 jeremybenn
/* confdefs.h.  */
6585
_ACEOF
6586
cat confdefs.h >>conftest.$ac_ext
6587
cat >>conftest.$ac_ext <<_ACEOF
6588
/* end confdefs.h.  */
6589
$ac_includes_default
6590 82 jeremybenn
 
6591 19 jeremybenn
#include <$ac_header>
6592
_ACEOF
6593
rm -f conftest.$ac_objext
6594
if { (ac_try="$ac_compile"
6595
case "(($ac_try" in
6596
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597
  *) ac_try_echo=$ac_try;;
6598
esac
6599 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6600
$as_echo "$ac_try_echo") >&5
6601 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
6602
  ac_status=$?
6603
  grep -v '^ *+' conftest.er1 >conftest.err
6604
  rm -f conftest.er1
6605
  cat conftest.err >&5
6606 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 19 jeremybenn
  (exit $ac_status); } && {
6608
         test -z "$ac_c_werror_flag" ||
6609
         test ! -s conftest.err
6610
       } && test -s conftest.$ac_objext; then
6611 82 jeremybenn
  eval "$as_ac_Header=yes"
6612 19 jeremybenn
else
6613 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6614 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6615
 
6616 82 jeremybenn
        eval "$as_ac_Header=no"
6617 19 jeremybenn
fi
6618
 
6619
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620
fi
6621 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
6622
                 $as_echo "$as_val"'`
6623
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6624
$as_echo "$ac_res" >&6; }
6625
as_val=`eval 'as_val=${'$as_ac_Header'}
6626
                 $as_echo "$as_val"'`
6627
   if test "x$as_val" = x""yes; then
6628 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
6629 82 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6630 19 jeremybenn
_ACEOF
6631
 
6632
fi
6633
 
6634
done
6635
 
6636
 
6637
 
6638 82 jeremybenn
# Set options
6639 19 jeremybenn
 
6640
 
6641
 
6642 82 jeremybenn
        enable_dlopen=no
6643 19 jeremybenn
 
6644
 
6645 82 jeremybenn
  enable_win32_dll=no
6646 19 jeremybenn
 
6647
 
6648 82 jeremybenn
            # Check whether --enable-shared was given.
6649
if test "${enable_shared+set}" = set; then
6650
  enableval=$enable_shared; p=${PACKAGE-default}
6651
    case $enableval in
6652
    yes) enable_shared=yes ;;
6653
    no) enable_shared=no ;;
6654
    *)
6655
      enable_shared=no
6656
      # Look at the argument we got.  We use all the common list separators.
6657
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6658
      for pkg in $enableval; do
6659
        IFS="$lt_save_ifs"
6660
        if test "X$pkg" = "X$p"; then
6661
          enable_shared=yes
6662
        fi
6663
      done
6664
      IFS="$lt_save_ifs"
6665
      ;;
6666
    esac
6667 19 jeremybenn
else
6668 82 jeremybenn
  enable_shared=yes
6669 19 jeremybenn
fi
6670
 
6671
 
6672
 
6673
 
6674
 
6675
 
6676
 
6677
 
6678
 
6679 82 jeremybenn
  # Check whether --enable-static was given.
6680
if test "${enable_static+set}" = set; then
6681
  enableval=$enable_static; p=${PACKAGE-default}
6682
    case $enableval in
6683
    yes) enable_static=yes ;;
6684
    no) enable_static=no ;;
6685
    *)
6686
     enable_static=no
6687
      # Look at the argument we got.  We use all the common list separators.
6688
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6689
      for pkg in $enableval; do
6690
        IFS="$lt_save_ifs"
6691
        if test "X$pkg" = "X$p"; then
6692
          enable_static=yes
6693
        fi
6694
      done
6695
      IFS="$lt_save_ifs"
6696
      ;;
6697
    esac
6698 19 jeremybenn
else
6699 82 jeremybenn
  enable_static=yes
6700 19 jeremybenn
fi
6701
 
6702
 
6703
 
6704
 
6705
 
6706
 
6707
 
6708
 
6709
 
6710
 
6711 82 jeremybenn
# Check whether --with-pic was given.
6712
if test "${with_pic+set}" = set; then
6713
  withval=$with_pic; pic_mode="$withval"
6714 19 jeremybenn
else
6715 82 jeremybenn
  pic_mode=default
6716 19 jeremybenn
fi
6717
 
6718
 
6719 82 jeremybenn
test -z "$pic_mode" && pic_mode=default
6720 19 jeremybenn
 
6721
 
6722
 
6723
 
6724
 
6725
 
6726
 
6727 82 jeremybenn
  # Check whether --enable-fast-install was given.
6728
if test "${enable_fast_install+set}" = set; then
6729
  enableval=$enable_fast_install; p=${PACKAGE-default}
6730
    case $enableval in
6731
    yes) enable_fast_install=yes ;;
6732
    no) enable_fast_install=no ;;
6733
    *)
6734
      enable_fast_install=no
6735
      # Look at the argument we got.  We use all the common list separators.
6736
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6737
      for pkg in $enableval; do
6738
        IFS="$lt_save_ifs"
6739
        if test "X$pkg" = "X$p"; then
6740
          enable_fast_install=yes
6741
        fi
6742
      done
6743
      IFS="$lt_save_ifs"
6744
      ;;
6745
    esac
6746 19 jeremybenn
else
6747 82 jeremybenn
  enable_fast_install=yes
6748 19 jeremybenn
fi
6749
 
6750
 
6751
 
6752
 
6753
 
6754
 
6755
 
6756
 
6757
 
6758
 
6759
 
6760 82 jeremybenn
# This can be used to rebuild libtool when needed
6761
LIBTOOL_DEPS="$ltmain"
6762 19 jeremybenn
 
6763 82 jeremybenn
# Always use our own libtool.
6764
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6765 19 jeremybenn
 
6766
 
6767
 
6768
 
6769
 
6770
 
6771
 
6772
 
6773
 
6774
 
6775
 
6776
 
6777
 
6778
 
6779
 
6780
 
6781
 
6782
 
6783
 
6784
 
6785
 
6786
 
6787
 
6788
 
6789
 
6790 82 jeremybenn
test -z "$LN_S" && LN_S="ln -s"
6791 19 jeremybenn
 
6792
 
6793
 
6794
 
6795
 
6796
 
6797
 
6798
 
6799
 
6800
 
6801
 
6802
 
6803
 
6804
 
6805 82 jeremybenn
if test -n "${ZSH_VERSION+set}" ; then
6806
   setopt NO_GLOB_SUBST
6807 19 jeremybenn
fi
6808
 
6809 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6810
$as_echo_n "checking for objdir... " >&6; }
6811 19 jeremybenn
if test "${lt_cv_objdir+set}" = set; then
6812 82 jeremybenn
  $as_echo_n "(cached) " >&6
6813 19 jeremybenn
else
6814
  rm -f .libs 2>/dev/null
6815
mkdir .libs 2>/dev/null
6816
if test -d .libs; then
6817
  lt_cv_objdir=.libs
6818
else
6819
  # MS-DOS does not allow filenames that begin with a dot.
6820
  lt_cv_objdir=_libs
6821
fi
6822
rmdir .libs 2>/dev/null
6823
fi
6824 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6825
$as_echo "$lt_cv_objdir" >&6; }
6826 19 jeremybenn
objdir=$lt_cv_objdir
6827
 
6828
 
6829
 
6830
 
6831
 
6832 82 jeremybenn
cat >>confdefs.h <<_ACEOF
6833
#define LT_OBJDIR "$lt_cv_objdir/"
6834
_ACEOF
6835
 
6836
 
6837
 
6838
 
6839
 
6840
 
6841
 
6842
 
6843
 
6844
 
6845
 
6846
 
6847
 
6848
 
6849
 
6850
 
6851
 
6852 19 jeremybenn
case $host_os in
6853
aix3*)
6854
  # AIX sometimes has problems with the GCC collect2 program.  For some
6855
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6856
  # vanish in a puff of smoke.
6857
  if test "X${COLLECT_NAMES+set}" != Xset; then
6858
    COLLECT_NAMES=
6859
    export COLLECT_NAMES
6860
  fi
6861
  ;;
6862
esac
6863
 
6864
# Sed substitution that helps us do robust quoting.  It backslashifies
6865
# metacharacters that are still active within double-quoted strings.
6866 82 jeremybenn
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6867 19 jeremybenn
 
6868
# Same as above, but do not quote variable references.
6869 82 jeremybenn
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6870 19 jeremybenn
 
6871
# Sed substitution to delay expansion of an escaped shell variable in a
6872
# double_quote_subst'ed string.
6873
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6874
 
6875 82 jeremybenn
# Sed substitution to delay expansion of an escaped single quote.
6876
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6877
 
6878 19 jeremybenn
# Sed substitution to avoid accidental globbing in evaled expressions
6879
no_glob_subst='s/\*/\\\*/g'
6880
 
6881
# Global variables:
6882 82 jeremybenn
ofile=libtool
6883 19 jeremybenn
can_build_shared=yes
6884
 
6885
# All known linkers require a `.a' archive for static linking (except MSVC,
6886
# which needs '.lib').
6887
libext=a
6888 82 jeremybenn
 
6889 19 jeremybenn
with_gnu_ld="$lt_cv_prog_gnu_ld"
6890
 
6891
old_CC="$CC"
6892
old_CFLAGS="$CFLAGS"
6893
 
6894
# Set sane defaults for various variables
6895
test -z "$CC" && CC=cc
6896
test -z "$LTCC" && LTCC=$CC
6897
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6898
test -z "$LD" && LD=ld
6899
test -z "$ac_objext" && ac_objext=o
6900
 
6901
for cc_temp in $compiler""; do
6902
  case $cc_temp in
6903
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6904
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6905
    \-*) ;;
6906
    *) break;;
6907
  esac
6908
done
6909 82 jeremybenn
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6910 19 jeremybenn
 
6911
 
6912
# Only perform the check for file, if the check method requires it
6913 82 jeremybenn
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6914 19 jeremybenn
case $deplibs_check_method in
6915
file_magic*)
6916
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6917 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6918
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6919 19 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6920 82 jeremybenn
  $as_echo_n "(cached) " >&6
6921 19 jeremybenn
else
6922
  case $MAGIC_CMD in
6923
[\\/*] |  ?:[\\/]*)
6924
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6925
  ;;
6926
*)
6927
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6928
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6929
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6930
  for ac_dir in $ac_dummy; do
6931
    IFS="$lt_save_ifs"
6932
    test -z "$ac_dir" && ac_dir=.
6933
    if test -f $ac_dir/${ac_tool_prefix}file; then
6934
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6935
      if test -n "$file_magic_test_file"; then
6936
        case $deplibs_check_method in
6937
        "file_magic "*)
6938
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6939
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6940
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6941
            $EGREP "$file_magic_regex" > /dev/null; then
6942
            :
6943
          else
6944 82 jeremybenn
            cat <<_LT_EOF 1>&2
6945 19 jeremybenn
 
6946
*** Warning: the command libtool uses to detect shared libraries,
6947
*** $file_magic_cmd, produces output that libtool cannot recognize.
6948
*** The result is that libtool may fail to recognize shared libraries
6949
*** as such.  This will affect the creation of libtool libraries that
6950
*** depend on shared libraries, but programs linked with such libtool
6951
*** libraries will work regardless of this problem.  Nevertheless, you
6952
*** may want to report the problem to your system manager and/or to
6953
*** bug-libtool@gnu.org
6954
 
6955 82 jeremybenn
_LT_EOF
6956 19 jeremybenn
          fi ;;
6957
        esac
6958
      fi
6959
      break
6960
    fi
6961
  done
6962
  IFS="$lt_save_ifs"
6963
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6964
  ;;
6965
esac
6966
fi
6967
 
6968
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6969
if test -n "$MAGIC_CMD"; then
6970 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6971
$as_echo "$MAGIC_CMD" >&6; }
6972 19 jeremybenn
else
6973 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6974
$as_echo "no" >&6; }
6975 19 jeremybenn
fi
6976
 
6977 82 jeremybenn
 
6978
 
6979
 
6980
 
6981 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
6982
  if test -n "$ac_tool_prefix"; then
6983 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for file" >&5
6984
$as_echo_n "checking for file... " >&6; }
6985 19 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6986 82 jeremybenn
  $as_echo_n "(cached) " >&6
6987 19 jeremybenn
else
6988
  case $MAGIC_CMD in
6989
[\\/*] |  ?:[\\/]*)
6990
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6991
  ;;
6992
*)
6993
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6994
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6995
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6996
  for ac_dir in $ac_dummy; do
6997
    IFS="$lt_save_ifs"
6998
    test -z "$ac_dir" && ac_dir=.
6999
    if test -f $ac_dir/file; then
7000
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7001
      if test -n "$file_magic_test_file"; then
7002
        case $deplibs_check_method in
7003
        "file_magic "*)
7004
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7005
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7006
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7007
            $EGREP "$file_magic_regex" > /dev/null; then
7008
            :
7009
          else
7010 82 jeremybenn
            cat <<_LT_EOF 1>&2
7011 19 jeremybenn
 
7012
*** Warning: the command libtool uses to detect shared libraries,
7013
*** $file_magic_cmd, produces output that libtool cannot recognize.
7014
*** The result is that libtool may fail to recognize shared libraries
7015
*** as such.  This will affect the creation of libtool libraries that
7016
*** depend on shared libraries, but programs linked with such libtool
7017
*** libraries will work regardless of this problem.  Nevertheless, you
7018
*** may want to report the problem to your system manager and/or to
7019
*** bug-libtool@gnu.org
7020
 
7021 82 jeremybenn
_LT_EOF
7022 19 jeremybenn
          fi ;;
7023
        esac
7024
      fi
7025
      break
7026
    fi
7027
  done
7028
  IFS="$lt_save_ifs"
7029
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7030
  ;;
7031
esac
7032
fi
7033
 
7034
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7035
if test -n "$MAGIC_CMD"; then
7036 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7037
$as_echo "$MAGIC_CMD" >&6; }
7038 19 jeremybenn
else
7039 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
7040
$as_echo "no" >&6; }
7041 19 jeremybenn
fi
7042
 
7043 82 jeremybenn
 
7044 19 jeremybenn
  else
7045
    MAGIC_CMD=:
7046
  fi
7047
fi
7048
 
7049
  fi
7050
  ;;
7051
esac
7052
 
7053 82 jeremybenn
# Use C for the default configuration in the libtool script
7054 19 jeremybenn
 
7055
lt_save_CC="$CC"
7056
ac_ext=c
7057
ac_cpp='$CPP $CPPFLAGS'
7058
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7061
 
7062
 
7063
# Source file extension for C test sources.
7064
ac_ext=c
7065
 
7066
# Object file extension for compiled C test sources.
7067
objext=o
7068
objext=$objext
7069
 
7070
# Code to be used in simple compile tests
7071
lt_simple_compile_test_code="int some_variable = 0;"
7072
 
7073
# Code to be used in simple link tests
7074
lt_simple_link_test_code='int main(){return(0);}'
7075
 
7076
 
7077 82 jeremybenn
 
7078
 
7079
 
7080
 
7081
 
7082 19 jeremybenn
# If no C compiler was specified, use CC.
7083
LTCC=${LTCC-"$CC"}
7084
 
7085
# If no C compiler flags were specified, use CFLAGS.
7086
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7087
 
7088
# Allow CC to be a program name with arguments.
7089
compiler=$CC
7090
 
7091 82 jeremybenn
# Save the default compiler, since it gets overwritten when the other
7092
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7093
compiler_DEFAULT=$CC
7094 19 jeremybenn
 
7095
# save warnings/boilerplate of simple test code
7096
ac_outfile=conftest.$ac_objext
7097
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7098
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7099
_lt_compiler_boilerplate=`cat conftest.err`
7100 82 jeremybenn
$RM conftest*
7101 19 jeremybenn
 
7102
ac_outfile=conftest.$ac_objext
7103
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7104
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7105
_lt_linker_boilerplate=`cat conftest.err`
7106 82 jeremybenn
$RM -r conftest*
7107 19 jeremybenn
 
7108
 
7109 82 jeremybenn
## CAVEAT EMPTOR:
7110
## There is no encapsulation within the following macros, do not change
7111
## the running order or otherwise move them around unless you know exactly
7112
## what you are doing...
7113
if test -n "$compiler"; then
7114 19 jeremybenn
 
7115
lt_prog_compiler_no_builtin_flag=
7116
 
7117
if test "$GCC" = yes; then
7118
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7119
 
7120 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7121
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7122 19 jeremybenn
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7123 82 jeremybenn
  $as_echo_n "(cached) " >&6
7124 19 jeremybenn
else
7125
  lt_cv_prog_compiler_rtti_exceptions=no
7126 82 jeremybenn
   ac_outfile=conftest.$ac_objext
7127 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7128
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7129
   # Insert the option either (1) after the last *FLAGS variable, or
7130
   # (2) before a word containing "conftest.", or (3) at the end.
7131
   # Note that $ac_compile itself does not contain backslashes and begins
7132
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7133
   # The option is referenced via a variable to avoid confusing sed.
7134
   lt_compile=`echo "$ac_compile" | $SED \
7135
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7136
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7137
   -e 's:$: $lt_compiler_flag:'`
7138 91 jeremybenn
   (eval echo "\"\$as_me:7138: $lt_compile\"" >&5)
7139 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7140
   ac_status=$?
7141
   cat conftest.err >&5
7142 91 jeremybenn
   echo "$as_me:7142: \$? = $ac_status" >&5
7143 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7144
     # The compiler can only warn and ignore the option if not recognized
7145
     # So say no if there are warnings other than the usual output.
7146 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7147 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7148
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7149
       lt_cv_prog_compiler_rtti_exceptions=yes
7150
     fi
7151
   fi
7152 82 jeremybenn
   $RM conftest*
7153 19 jeremybenn
 
7154
fi
7155 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7156
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7157 19 jeremybenn
 
7158
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7159
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7160
else
7161
    :
7162
fi
7163
 
7164
fi
7165
 
7166 82 jeremybenn
 
7167
 
7168
 
7169
 
7170
 
7171
  lt_prog_compiler_wl=
7172 19 jeremybenn
lt_prog_compiler_pic=
7173
lt_prog_compiler_static=
7174
 
7175 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7176
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7177 19 jeremybenn
 
7178
  if test "$GCC" = yes; then
7179
    lt_prog_compiler_wl='-Wl,'
7180
    lt_prog_compiler_static='-static'
7181
 
7182
    case $host_os in
7183
      aix*)
7184
      # All AIX code is PIC.
7185
      if test "$host_cpu" = ia64; then
7186
        # AIX 5 now supports IA64 processor
7187
        lt_prog_compiler_static='-Bstatic'
7188
      fi
7189
      ;;
7190
 
7191
    amigaos*)
7192 82 jeremybenn
      case $host_cpu in
7193
      powerpc)
7194
            # see comment about AmigaOS4 .so support
7195
            lt_prog_compiler_pic='-fPIC'
7196
        ;;
7197
      m68k)
7198
            # FIXME: we need at least 68020 code to build shared libraries, but
7199
            # adding the `-m68020' flag to GCC prevents building anything better,
7200
            # like `-m68040'.
7201
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7202
        ;;
7203
      esac
7204 19 jeremybenn
      ;;
7205
 
7206
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7207
      # PIC is the default for these OSes.
7208
      ;;
7209
 
7210 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7211 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7212
      # built for inclusion in a dll (and should export symbols for example).
7213
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7214
      # (--disable-auto-import) libraries
7215
      lt_prog_compiler_pic='-DDLL_EXPORT'
7216
      ;;
7217
 
7218
    darwin* | rhapsody*)
7219
      # PIC is the default on this platform
7220
      # Common symbols not allowed in MH_DYLIB files
7221
      lt_prog_compiler_pic='-fno-common'
7222
      ;;
7223
 
7224 82 jeremybenn
    hpux*)
7225
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7226
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7227
      # sets the default TLS model and affects inlining.
7228
      case $host_cpu in
7229
      hppa*64*)
7230
        # +Z the default
7231
        ;;
7232
      *)
7233
        lt_prog_compiler_pic='-fPIC'
7234
        ;;
7235
      esac
7236
      ;;
7237
 
7238 19 jeremybenn
    interix[3-9]*)
7239
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7240
      # Instead, we relocate shared libraries at runtime.
7241
      ;;
7242
 
7243
    msdosdjgpp*)
7244
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7245
      # on systems that don't support them.
7246
      lt_prog_compiler_can_build_shared=no
7247
      enable_shared=no
7248
      ;;
7249
 
7250 82 jeremybenn
    *nto* | *qnx*)
7251
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7252
      # it will coredump.
7253
      lt_prog_compiler_pic='-fPIC -shared'
7254
      ;;
7255
 
7256 19 jeremybenn
    sysv4*MP*)
7257
      if test -d /usr/nec; then
7258
        lt_prog_compiler_pic=-Kconform_pic
7259
      fi
7260
      ;;
7261
 
7262
    *)
7263
      lt_prog_compiler_pic='-fPIC'
7264
      ;;
7265
    esac
7266
  else
7267
    # PORTME Check for flag to pass linker flags through the system compiler.
7268
    case $host_os in
7269
    aix*)
7270
      lt_prog_compiler_wl='-Wl,'
7271
      if test "$host_cpu" = ia64; then
7272
        # AIX 5 now supports IA64 processor
7273
        lt_prog_compiler_static='-Bstatic'
7274
      else
7275
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7276
      fi
7277
      ;;
7278
 
7279 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7280 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7281
      # built for inclusion in a dll (and should export symbols for example).
7282
      lt_prog_compiler_pic='-DDLL_EXPORT'
7283
      ;;
7284
 
7285
    hpux9* | hpux10* | hpux11*)
7286
      lt_prog_compiler_wl='-Wl,'
7287
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7288
      # not for PA HP-UX.
7289
      case $host_cpu in
7290
      hppa*64*|ia64*)
7291
        # +Z the default
7292
        ;;
7293
      *)
7294
        lt_prog_compiler_pic='+Z'
7295
        ;;
7296
      esac
7297
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7298
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7299
      ;;
7300
 
7301
    irix5* | irix6* | nonstopux*)
7302
      lt_prog_compiler_wl='-Wl,'
7303
      # PIC (with -KPIC) is the default.
7304
      lt_prog_compiler_static='-non_shared'
7305
      ;;
7306
 
7307
    linux* | k*bsd*-gnu)
7308
      case $cc_basename in
7309 82 jeremybenn
      # old Intel for x86_64 which still supported -KPIC.
7310
      ecc*)
7311 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7312
        lt_prog_compiler_pic='-KPIC'
7313
        lt_prog_compiler_static='-static'
7314
        ;;
7315 82 jeremybenn
      # icc used to be incompatible with GCC.
7316
      # ICC 10 doesn't accept -KPIC any more.
7317
      icc* | ifort*)
7318
        lt_prog_compiler_wl='-Wl,'
7319
        lt_prog_compiler_pic='-fPIC'
7320
        lt_prog_compiler_static='-static'
7321
        ;;
7322
      # Lahey Fortran 8.1.
7323
      lf95*)
7324
        lt_prog_compiler_wl='-Wl,'
7325
        lt_prog_compiler_pic='--shared'
7326
        lt_prog_compiler_static='--static'
7327
        ;;
7328 19 jeremybenn
      pgcc* | pgf77* | pgf90* | pgf95*)
7329
        # Portland Group compilers (*not* the Pentium gcc compiler,
7330
        # which looks to be a dead project)
7331
        lt_prog_compiler_wl='-Wl,'
7332
        lt_prog_compiler_pic='-fpic'
7333
        lt_prog_compiler_static='-Bstatic'
7334
        ;;
7335
      ccc*)
7336
        lt_prog_compiler_wl='-Wl,'
7337
        # All Alpha code is PIC.
7338
        lt_prog_compiler_static='-non_shared'
7339
        ;;
7340 82 jeremybenn
      xl*)
7341
        # IBM XL C 8.0/Fortran 10.1 on PPC
7342
        lt_prog_compiler_wl='-Wl,'
7343
        lt_prog_compiler_pic='-qpic'
7344
        lt_prog_compiler_static='-qstaticlink'
7345
        ;;
7346 19 jeremybenn
      *)
7347 82 jeremybenn
        case `$CC -V 2>&1 | sed 5q` in
7348 19 jeremybenn
        *Sun\ C*)
7349
          # Sun C 5.9
7350
          lt_prog_compiler_pic='-KPIC'
7351
          lt_prog_compiler_static='-Bstatic'
7352
          lt_prog_compiler_wl='-Wl,'
7353
          ;;
7354
        *Sun\ F*)
7355
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7356
          lt_prog_compiler_pic='-KPIC'
7357
          lt_prog_compiler_static='-Bstatic'
7358
          lt_prog_compiler_wl=''
7359
          ;;
7360
        esac
7361
        ;;
7362
      esac
7363
      ;;
7364
 
7365 82 jeremybenn
    newsos6)
7366
      lt_prog_compiler_pic='-KPIC'
7367
      lt_prog_compiler_static='-Bstatic'
7368
      ;;
7369
 
7370
    *nto* | *qnx*)
7371
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7372
      # it will coredump.
7373
      lt_prog_compiler_pic='-fPIC -shared'
7374
      ;;
7375
 
7376 19 jeremybenn
    osf3* | osf4* | osf5*)
7377
      lt_prog_compiler_wl='-Wl,'
7378
      # All OSF/1 code is PIC.
7379
      lt_prog_compiler_static='-non_shared'
7380
      ;;
7381
 
7382
    rdos*)
7383
      lt_prog_compiler_static='-non_shared'
7384
      ;;
7385
 
7386
    solaris*)
7387
      lt_prog_compiler_pic='-KPIC'
7388
      lt_prog_compiler_static='-Bstatic'
7389
      case $cc_basename in
7390
      f77* | f90* | f95*)
7391
        lt_prog_compiler_wl='-Qoption ld ';;
7392
      *)
7393
        lt_prog_compiler_wl='-Wl,';;
7394
      esac
7395
      ;;
7396
 
7397
    sunos4*)
7398
      lt_prog_compiler_wl='-Qoption ld '
7399
      lt_prog_compiler_pic='-PIC'
7400
      lt_prog_compiler_static='-Bstatic'
7401
      ;;
7402
 
7403
    sysv4 | sysv4.2uw2* | sysv4.3*)
7404
      lt_prog_compiler_wl='-Wl,'
7405
      lt_prog_compiler_pic='-KPIC'
7406
      lt_prog_compiler_static='-Bstatic'
7407
      ;;
7408
 
7409
    sysv4*MP*)
7410
      if test -d /usr/nec ;then
7411
        lt_prog_compiler_pic='-Kconform_pic'
7412
        lt_prog_compiler_static='-Bstatic'
7413
      fi
7414
      ;;
7415
 
7416
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7417
      lt_prog_compiler_wl='-Wl,'
7418
      lt_prog_compiler_pic='-KPIC'
7419
      lt_prog_compiler_static='-Bstatic'
7420
      ;;
7421
 
7422
    unicos*)
7423
      lt_prog_compiler_wl='-Wl,'
7424
      lt_prog_compiler_can_build_shared=no
7425
      ;;
7426
 
7427
    uts4*)
7428
      lt_prog_compiler_pic='-pic'
7429
      lt_prog_compiler_static='-Bstatic'
7430
      ;;
7431
 
7432
    *)
7433
      lt_prog_compiler_can_build_shared=no
7434
      ;;
7435
    esac
7436
  fi
7437
 
7438 82 jeremybenn
case $host_os in
7439
  # For platforms which do not support PIC, -DPIC is meaningless:
7440
  *djgpp*)
7441
    lt_prog_compiler_pic=
7442
    ;;
7443
  *)
7444
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7445
    ;;
7446
esac
7447
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7448
$as_echo "$lt_prog_compiler_pic" >&6; }
7449 19 jeremybenn
 
7450 82 jeremybenn
 
7451
 
7452
 
7453
 
7454
 
7455 19 jeremybenn
#
7456
# Check to make sure the PIC flag actually works.
7457
#
7458
if test -n "$lt_prog_compiler_pic"; then
7459 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7460
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7461
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7462
  $as_echo_n "(cached) " >&6
7463 19 jeremybenn
else
7464 82 jeremybenn
  lt_cv_prog_compiler_pic_works=no
7465
   ac_outfile=conftest.$ac_objext
7466 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7467
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7468
   # Insert the option either (1) after the last *FLAGS variable, or
7469
   # (2) before a word containing "conftest.", or (3) at the end.
7470
   # Note that $ac_compile itself does not contain backslashes and begins
7471
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7472
   # The option is referenced via a variable to avoid confusing sed.
7473
   lt_compile=`echo "$ac_compile" | $SED \
7474
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7475
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7476
   -e 's:$: $lt_compiler_flag:'`
7477 91 jeremybenn
   (eval echo "\"\$as_me:7477: $lt_compile\"" >&5)
7478 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7479
   ac_status=$?
7480
   cat conftest.err >&5
7481 91 jeremybenn
   echo "$as_me:7481: \$? = $ac_status" >&5
7482 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7483
     # The compiler can only warn and ignore the option if not recognized
7484
     # So say no if there are warnings other than the usual output.
7485 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7486 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7487
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7488 82 jeremybenn
       lt_cv_prog_compiler_pic_works=yes
7489 19 jeremybenn
     fi
7490
   fi
7491 82 jeremybenn
   $RM conftest*
7492 19 jeremybenn
 
7493
fi
7494 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7495
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7496 19 jeremybenn
 
7497 82 jeremybenn
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7498 19 jeremybenn
    case $lt_prog_compiler_pic in
7499
     "" | " "*) ;;
7500
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7501
     esac
7502
else
7503
    lt_prog_compiler_pic=
7504
     lt_prog_compiler_can_build_shared=no
7505
fi
7506
 
7507
fi
7508
 
7509 82 jeremybenn
 
7510
 
7511
 
7512
 
7513
 
7514 19 jeremybenn
#
7515
# Check to make sure the static flag actually works.
7516
#
7517
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7518 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7519
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7520
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7521
  $as_echo_n "(cached) " >&6
7522 19 jeremybenn
else
7523 82 jeremybenn
  lt_cv_prog_compiler_static_works=no
7524 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7525
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7526
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7527
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7528
     # The linker can only warn and ignore the option if not recognized
7529
     # So say no if there are warnings
7530
     if test -s conftest.err; then
7531
       # Append any errors to the config.log.
7532
       cat conftest.err 1>&5
7533 82 jeremybenn
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7534 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7535
       if diff conftest.exp conftest.er2 >/dev/null; then
7536 82 jeremybenn
         lt_cv_prog_compiler_static_works=yes
7537 19 jeremybenn
       fi
7538
     else
7539 82 jeremybenn
       lt_cv_prog_compiler_static_works=yes
7540 19 jeremybenn
     fi
7541
   fi
7542 82 jeremybenn
   $RM -r conftest*
7543 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7544
 
7545
fi
7546 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7547
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7548 19 jeremybenn
 
7549 82 jeremybenn
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7550 19 jeremybenn
    :
7551
else
7552
    lt_prog_compiler_static=
7553
fi
7554
 
7555
 
7556 82 jeremybenn
 
7557
 
7558
 
7559
 
7560
 
7561
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7562
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7563 19 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7564 82 jeremybenn
  $as_echo_n "(cached) " >&6
7565 19 jeremybenn
else
7566
  lt_cv_prog_compiler_c_o=no
7567 82 jeremybenn
   $RM -r conftest 2>/dev/null
7568 19 jeremybenn
   mkdir conftest
7569
   cd conftest
7570
   mkdir out
7571
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7572
 
7573
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7574
   # Insert the option either (1) after the last *FLAGS variable, or
7575
   # (2) before a word containing "conftest.", or (3) at the end.
7576
   # Note that $ac_compile itself does not contain backslashes and begins
7577
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7578
   lt_compile=`echo "$ac_compile" | $SED \
7579
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7580
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7581
   -e 's:$: $lt_compiler_flag:'`
7582 91 jeremybenn
   (eval echo "\"\$as_me:7582: $lt_compile\"" >&5)
7583 19 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7584
   ac_status=$?
7585
   cat out/conftest.err >&5
7586 91 jeremybenn
   echo "$as_me:7586: \$? = $ac_status" >&5
7587 19 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7588
   then
7589
     # The compiler can only warn and ignore the option if not recognized
7590
     # So say no if there are warnings
7591 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7592 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7593
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7594
       lt_cv_prog_compiler_c_o=yes
7595
     fi
7596
   fi
7597
   chmod u+w . 2>&5
7598 82 jeremybenn
   $RM conftest*
7599 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
7600
   # template instantiation
7601 82 jeremybenn
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7602
   $RM out/* && rmdir out
7603 19 jeremybenn
   cd ..
7604 82 jeremybenn
   $RM -r conftest
7605
   $RM conftest*
7606 19 jeremybenn
 
7607
fi
7608 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7609
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7610 19 jeremybenn
 
7611
 
7612 82 jeremybenn
 
7613
 
7614
 
7615
 
7616
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7617
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7618
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7619
  $as_echo_n "(cached) " >&6
7620
else
7621
  lt_cv_prog_compiler_c_o=no
7622
   $RM -r conftest 2>/dev/null
7623
   mkdir conftest
7624
   cd conftest
7625
   mkdir out
7626
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7627
 
7628
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7629
   # Insert the option either (1) after the last *FLAGS variable, or
7630
   # (2) before a word containing "conftest.", or (3) at the end.
7631
   # Note that $ac_compile itself does not contain backslashes and begins
7632
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7633
   lt_compile=`echo "$ac_compile" | $SED \
7634
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7635
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7636
   -e 's:$: $lt_compiler_flag:'`
7637 91 jeremybenn
   (eval echo "\"\$as_me:7637: $lt_compile\"" >&5)
7638 82 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7639
   ac_status=$?
7640
   cat out/conftest.err >&5
7641 91 jeremybenn
   echo "$as_me:7641: \$? = $ac_status" >&5
7642 82 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7643
   then
7644
     # The compiler can only warn and ignore the option if not recognized
7645
     # So say no if there are warnings
7646
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7647
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7648
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7649
       lt_cv_prog_compiler_c_o=yes
7650
     fi
7651
   fi
7652
   chmod u+w . 2>&5
7653
   $RM conftest*
7654
   # SGI C++ compiler will create directory out/ii_files/ for
7655
   # template instantiation
7656
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7657
   $RM out/* && rmdir out
7658
   cd ..
7659
   $RM -r conftest
7660
   $RM conftest*
7661
 
7662
fi
7663
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7664
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7665
 
7666
 
7667
 
7668
 
7669 19 jeremybenn
hard_links="nottested"
7670
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7671
  # do not overwrite the value of need_locks provided by the user
7672 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7673
$as_echo_n "checking if we can lock with hard links... " >&6; }
7674 19 jeremybenn
  hard_links=yes
7675 82 jeremybenn
  $RM conftest*
7676 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7677
  touch conftest.a
7678
  ln conftest.a conftest.b 2>&5 || hard_links=no
7679
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7680 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7681
$as_echo "$hard_links" >&6; }
7682 19 jeremybenn
  if test "$hard_links" = no; then
7683 82 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7684
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7685 19 jeremybenn
    need_locks=warn
7686
  fi
7687
else
7688
  need_locks=no
7689
fi
7690
 
7691
 
7692 82 jeremybenn
 
7693
 
7694
 
7695
 
7696
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7697
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7698
 
7699 19 jeremybenn
  runpath_var=
7700
  allow_undefined_flag=
7701 82 jeremybenn
  always_export_symbols=no
7702 19 jeremybenn
  archive_cmds=
7703
  archive_expsym_cmds=
7704 82 jeremybenn
  compiler_needs_object=no
7705
  enable_shared_with_static_runtimes=no
7706 19 jeremybenn
  export_dynamic_flag_spec=
7707 82 jeremybenn
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7708
  hardcode_automatic=no
7709
  hardcode_direct=no
7710
  hardcode_direct_absolute=no
7711 19 jeremybenn
  hardcode_libdir_flag_spec=
7712
  hardcode_libdir_flag_spec_ld=
7713
  hardcode_libdir_separator=
7714
  hardcode_minus_L=no
7715
  hardcode_shlibpath_var=unsupported
7716 82 jeremybenn
  inherit_rpath=no
7717 19 jeremybenn
  link_all_deplibs=unknown
7718
  module_cmds=
7719
  module_expsym_cmds=
7720 82 jeremybenn
  old_archive_from_new_cmds=
7721
  old_archive_from_expsyms_cmds=
7722
  thread_safe_flag_spec=
7723
  whole_archive_flag_spec=
7724 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
7725
  # included in the symbol list
7726
  include_expsyms=
7727
  # exclude_expsyms can be an extended regexp of symbols to exclude
7728
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7729
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7730
  # as well as any symbol that contains `d'.
7731 82 jeremybenn
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7732 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7733
  # platforms (ab)use it in PIC code, but their linkers get confused if
7734
  # the symbol is explicitly referenced.  Since portable code cannot
7735
  # rely on this symbol name, it's probably fine to never include it in
7736
  # preloaded symbol tables.
7737 82 jeremybenn
  # Exclude shared library initialization/finalization symbols.
7738 19 jeremybenn
  extract_expsyms_cmds=
7739
 
7740
  case $host_os in
7741 82 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
7742 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7743
    # When not using gcc, we currently assume that we are using
7744
    # Microsoft Visual C++.
7745
    if test "$GCC" != yes; then
7746
      with_gnu_ld=no
7747
    fi
7748
    ;;
7749
  interix*)
7750
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7751
    with_gnu_ld=yes
7752
    ;;
7753
  openbsd*)
7754
    with_gnu_ld=no
7755
    ;;
7756
  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 90 jeremybenn
    netbsd*)
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
      else
8114
        # not using gcc
8115
        if test "$host_cpu" = ia64; then
8116 82 jeremybenn
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8117
        # chokes on -Wl,-G. The following line is correct:
8118 19 jeremybenn
          shared_flag='-G'
8119
        else
8120
          if test "$aix_use_runtimelinking" = yes; then
8121
            shared_flag='${wl}-G'
8122
          else
8123
            shared_flag='${wl}-bM:SRE'
8124
          fi
8125
        fi
8126
      fi
8127
 
8128 82 jeremybenn
      export_dynamic_flag_spec='${wl}-bexpall'
8129 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
8130
      # underscore (_), so it is better to generate a list of symbols to export.
8131
      always_export_symbols=yes
8132
      if test "$aix_use_runtimelinking" = yes; then
8133
        # Warning - without using the other runtime loading flags (-brtl),
8134
        # -berok will link without error, but may produce a broken library.
8135
        allow_undefined_flag='-berok'
8136 82 jeremybenn
        # Determine the default libpath from the value encoded in an
8137
        # empty executable.
8138
        cat >conftest.$ac_ext <<_ACEOF
8139 19 jeremybenn
/* confdefs.h.  */
8140
_ACEOF
8141
cat confdefs.h >>conftest.$ac_ext
8142
cat >>conftest.$ac_ext <<_ACEOF
8143
/* end confdefs.h.  */
8144
 
8145
int
8146
main ()
8147
{
8148
 
8149
  ;
8150
  return 0;
8151
}
8152
_ACEOF
8153
rm -f conftest.$ac_objext conftest$ac_exeext
8154
if { (ac_try="$ac_link"
8155
case "(($ac_try" in
8156
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157
  *) ac_try_echo=$ac_try;;
8158
esac
8159 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8160
$as_echo "$ac_try_echo") >&5
8161 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
8162
  ac_status=$?
8163
  grep -v '^ *+' conftest.er1 >conftest.err
8164
  rm -f conftest.er1
8165
  cat conftest.err >&5
8166 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 19 jeremybenn
  (exit $ac_status); } && {
8168
         test -z "$ac_c_werror_flag" ||
8169
         test ! -s conftest.err
8170 82 jeremybenn
       } && test -s conftest$ac_exeext && {
8171
         test "$cross_compiling" = yes ||
8172
         $as_test_x conftest$ac_exeext
8173
       }; then
8174 19 jeremybenn
 
8175
lt_aix_libpath_sed='
8176
    /Import File Strings/,/^$/ {
8177
        /^0/ {
8178
            s/^0  *\(.*\)$/\1/
8179
            p
8180
        }
8181
    }'
8182
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8183
# Check for a 64-bit object if we didn't find anything.
8184
if test -z "$aix_libpath"; then
8185
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8186
fi
8187
else
8188 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
8189 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8190
 
8191
 
8192
fi
8193
 
8194 82 jeremybenn
rm -rf conftest.dSYM
8195 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8196
      conftest$ac_exeext conftest.$ac_ext
8197
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8198
 
8199 82 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8200
        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"
8201
      else
8202 19 jeremybenn
        if test "$host_cpu" = ia64; then
8203
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8204
          allow_undefined_flag="-z nodefs"
8205
          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"
8206
        else
8207 82 jeremybenn
         # Determine the default libpath from the value encoded in an
8208
         # empty executable.
8209 19 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
8210
/* confdefs.h.  */
8211
_ACEOF
8212
cat confdefs.h >>conftest.$ac_ext
8213
cat >>conftest.$ac_ext <<_ACEOF
8214
/* end confdefs.h.  */
8215
 
8216
int
8217
main ()
8218
{
8219
 
8220
  ;
8221
  return 0;
8222
}
8223
_ACEOF
8224
rm -f conftest.$ac_objext conftest$ac_exeext
8225
if { (ac_try="$ac_link"
8226
case "(($ac_try" in
8227
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8228
  *) ac_try_echo=$ac_try;;
8229
esac
8230 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8231
$as_echo "$ac_try_echo") >&5
8232 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
8233
  ac_status=$?
8234
  grep -v '^ *+' conftest.er1 >conftest.err
8235
  rm -f conftest.er1
8236
  cat conftest.err >&5
8237 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 19 jeremybenn
  (exit $ac_status); } && {
8239
         test -z "$ac_c_werror_flag" ||
8240
         test ! -s conftest.err
8241 82 jeremybenn
       } && test -s conftest$ac_exeext && {
8242
         test "$cross_compiling" = yes ||
8243
         $as_test_x conftest$ac_exeext
8244
       }; then
8245 19 jeremybenn
 
8246
lt_aix_libpath_sed='
8247
    /Import File Strings/,/^$/ {
8248
        /^0/ {
8249
            s/^0  *\(.*\)$/\1/
8250
            p
8251
        }
8252
    }'
8253
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8254
# Check for a 64-bit object if we didn't find anything.
8255
if test -z "$aix_libpath"; then
8256
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8257
fi
8258
else
8259 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
8260 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8261
 
8262
 
8263
fi
8264
 
8265 82 jeremybenn
rm -rf conftest.dSYM
8266 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8267
      conftest$ac_exeext conftest.$ac_ext
8268
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8269
 
8270
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8271
          # Warning - without using the other run time loading flags,
8272
          # -berok will link without error, but may produce a broken library.
8273
          no_undefined_flag=' ${wl}-bernotok'
8274
          allow_undefined_flag=' ${wl}-berok'
8275
          # Exported symbols can be pulled into shared objects from archives
8276
          whole_archive_flag_spec='$convenience'
8277
          archive_cmds_need_lc=yes
8278
          # This is similar to how AIX traditionally builds its shared libraries.
8279
          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'
8280
        fi
8281
      fi
8282
      ;;
8283
 
8284
    amigaos*)
8285 82 jeremybenn
      case $host_cpu in
8286
      powerpc)
8287
            # see comment about AmigaOS4 .so support
8288
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8289
            archive_expsym_cmds=''
8290
        ;;
8291
      m68k)
8292
            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)'
8293
            hardcode_libdir_flag_spec='-L$libdir'
8294
            hardcode_minus_L=yes
8295
        ;;
8296
      esac
8297 19 jeremybenn
      ;;
8298
 
8299
    bsdi[45]*)
8300
      export_dynamic_flag_spec=-rdynamic
8301
      ;;
8302
 
8303 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8304 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8305
      # Microsoft Visual C++.
8306
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8307
      # no search path for DLLs.
8308
      hardcode_libdir_flag_spec=' '
8309
      allow_undefined_flag=unsupported
8310
      # Tell ltmain to make .lib files, not .a files.
8311
      libext=lib
8312
      # Tell ltmain to make .dll files, not .so files.
8313
      shrext_cmds=".dll"
8314
      # FIXME: Setting linknames here is a bad hack.
8315 82 jeremybenn
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8316 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8317 82 jeremybenn
      old_archive_from_new_cmds='true'
8318 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8319
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8320
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8321
      enable_shared_with_static_runtimes=yes
8322
      ;;
8323
 
8324
    darwin* | rhapsody*)
8325 82 jeremybenn
 
8326
 
8327
  archive_cmds_need_lc=no
8328
  hardcode_direct=no
8329
  hardcode_automatic=yes
8330
  hardcode_shlibpath_var=unsupported
8331
  whole_archive_flag_spec=''
8332
  link_all_deplibs=yes
8333
  allow_undefined_flag="$_lt_dar_allow_undefined"
8334
  case $cc_basename in
8335
     ifort*) _lt_dar_can_shared=yes ;;
8336
     *) _lt_dar_can_shared=$GCC ;;
8337
  esac
8338
  if test "$_lt_dar_can_shared" = "yes"; then
8339
    output_verbose_link_cmd=echo
8340
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8341
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8342
    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}"
8343
    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}"
8344
 
8345
  else
8346
  ld_shlibs=no
8347
  fi
8348
 
8349 19 jeremybenn
      ;;
8350
 
8351
    dgux*)
8352
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8353
      hardcode_libdir_flag_spec='-L$libdir'
8354
      hardcode_shlibpath_var=no
8355
      ;;
8356
 
8357
    freebsd1*)
8358
      ld_shlibs=no
8359
      ;;
8360
 
8361
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8362
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8363
    # does not break anything, and helps significantly (at the cost of a little
8364
    # extra space).
8365
    freebsd2.2*)
8366
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8367
      hardcode_libdir_flag_spec='-R$libdir'
8368
      hardcode_direct=yes
8369
      hardcode_shlibpath_var=no
8370
      ;;
8371
 
8372
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8373
    freebsd2*)
8374
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8375
      hardcode_direct=yes
8376
      hardcode_minus_L=yes
8377
      hardcode_shlibpath_var=no
8378
      ;;
8379
 
8380
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8381
    freebsd* | dragonfly*)
8382
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8383
      hardcode_libdir_flag_spec='-R$libdir'
8384
      hardcode_direct=yes
8385
      hardcode_shlibpath_var=no
8386
      ;;
8387
 
8388
    hpux9*)
8389
      if test "$GCC" = yes; then
8390 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'
8391 19 jeremybenn
      else
8392 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'
8393 19 jeremybenn
      fi
8394
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8395
      hardcode_libdir_separator=:
8396
      hardcode_direct=yes
8397
 
8398
      # hardcode_minus_L: Not really in the search PATH,
8399
      # but as the default location of the library.
8400
      hardcode_minus_L=yes
8401
      export_dynamic_flag_spec='${wl}-E'
8402
      ;;
8403
 
8404
    hpux10*)
8405
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8406
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8407
      else
8408
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8409
      fi
8410
      if test "$with_gnu_ld" = no; then
8411
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8412 82 jeremybenn
        hardcode_libdir_flag_spec_ld='+b $libdir'
8413 19 jeremybenn
        hardcode_libdir_separator=:
8414
        hardcode_direct=yes
8415 82 jeremybenn
        hardcode_direct_absolute=yes
8416 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8417
        # hardcode_minus_L: Not really in the search PATH,
8418
        # but as the default location of the library.
8419
        hardcode_minus_L=yes
8420
      fi
8421
      ;;
8422
 
8423
    hpux11*)
8424
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8425
        case $host_cpu in
8426
        hppa*64*)
8427
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8428
          ;;
8429
        ia64*)
8430 82 jeremybenn
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8431 19 jeremybenn
          ;;
8432
        *)
8433
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8434
          ;;
8435
        esac
8436
      else
8437
        case $host_cpu in
8438
        hppa*64*)
8439
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8440
          ;;
8441
        ia64*)
8442
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8443
          ;;
8444
        *)
8445
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8446
          ;;
8447
        esac
8448
      fi
8449
      if test "$with_gnu_ld" = no; then
8450
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8451
        hardcode_libdir_separator=:
8452
 
8453
        case $host_cpu in
8454
        hppa*64*|ia64*)
8455
          hardcode_direct=no
8456
          hardcode_shlibpath_var=no
8457
          ;;
8458
        *)
8459
          hardcode_direct=yes
8460 82 jeremybenn
          hardcode_direct_absolute=yes
8461 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8462
 
8463
          # hardcode_minus_L: Not really in the search PATH,
8464
          # but as the default location of the library.
8465
          hardcode_minus_L=yes
8466
          ;;
8467
        esac
8468
      fi
8469
      ;;
8470
 
8471
    irix5* | irix6* | nonstopux*)
8472
      if test "$GCC" = yes; then
8473 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'
8474
        # Try to use the -exported_symbol ld option, if it does not
8475
        # work, assume that -exports_file does not work either and
8476
        # implicitly export all symbols.
8477
        save_LDFLAGS="$LDFLAGS"
8478
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8479
        cat >conftest.$ac_ext <<_ACEOF
8480
int foo(void) {}
8481
_ACEOF
8482
rm -f conftest.$ac_objext conftest$ac_exeext
8483
if { (ac_try="$ac_link"
8484
case "(($ac_try" in
8485
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486
  *) ac_try_echo=$ac_try;;
8487
esac
8488
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8489
$as_echo "$ac_try_echo") >&5
8490
  (eval "$ac_link") 2>conftest.er1
8491
  ac_status=$?
8492
  grep -v '^ *+' conftest.er1 >conftest.err
8493
  rm -f conftest.er1
8494
  cat conftest.err >&5
8495
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496
  (exit $ac_status); } && {
8497
         test -z "$ac_c_werror_flag" ||
8498
         test ! -s conftest.err
8499
       } && test -s conftest$ac_exeext && {
8500
         test "$cross_compiling" = yes ||
8501
         $as_test_x conftest$ac_exeext
8502
       }; then
8503
  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'
8504
 
8505
else
8506
  $as_echo "$as_me: failed program was:" >&5
8507
sed 's/^/| /' conftest.$ac_ext >&5
8508
 
8509
 
8510
fi
8511
 
8512
rm -rf conftest.dSYM
8513
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8514
      conftest$ac_exeext conftest.$ac_ext
8515
        LDFLAGS="$save_LDFLAGS"
8516 19 jeremybenn
      else
8517 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'
8518
        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'
8519 19 jeremybenn
      fi
8520 82 jeremybenn
      archive_cmds_need_lc='no'
8521 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8522
      hardcode_libdir_separator=:
8523 82 jeremybenn
      inherit_rpath=yes
8524 19 jeremybenn
      link_all_deplibs=yes
8525
      ;;
8526
 
8527 90 jeremybenn
    netbsd*)
8528 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8529 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8530
      else
8531
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8532
      fi
8533
      hardcode_libdir_flag_spec='-R$libdir'
8534
      hardcode_direct=yes
8535
      hardcode_shlibpath_var=no
8536
      ;;
8537
 
8538
    newsos6)
8539
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8540
      hardcode_direct=yes
8541
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8542
      hardcode_libdir_separator=:
8543
      hardcode_shlibpath_var=no
8544
      ;;
8545
 
8546 82 jeremybenn
    *nto* | *qnx*)
8547
      ;;
8548
 
8549 19 jeremybenn
    openbsd*)
8550
      if test -f /usr/libexec/ld.so; then
8551
        hardcode_direct=yes
8552
        hardcode_shlibpath_var=no
8553 82 jeremybenn
        hardcode_direct_absolute=yes
8554
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8555 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8556
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8557
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8558
          export_dynamic_flag_spec='${wl}-E'
8559
        else
8560
          case $host_os in
8561
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8562
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8563
             hardcode_libdir_flag_spec='-R$libdir'
8564
             ;;
8565
           *)
8566
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8567
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8568
             ;;
8569
          esac
8570 82 jeremybenn
        fi
8571 19 jeremybenn
      else
8572
        ld_shlibs=no
8573
      fi
8574
      ;;
8575
 
8576
    os2*)
8577
      hardcode_libdir_flag_spec='-L$libdir'
8578
      hardcode_minus_L=yes
8579
      allow_undefined_flag=unsupported
8580 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'
8581
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8582 19 jeremybenn
      ;;
8583
 
8584
    osf3*)
8585
      if test "$GCC" = yes; then
8586
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8587 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'
8588 19 jeremybenn
      else
8589
        allow_undefined_flag=' -expect_unresolved \*'
8590 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'
8591 19 jeremybenn
      fi
8592 82 jeremybenn
      archive_cmds_need_lc='no'
8593 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8594
      hardcode_libdir_separator=:
8595
      ;;
8596
 
8597
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8598
      if test "$GCC" = yes; then
8599
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8600 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'
8601 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8602
      else
8603
        allow_undefined_flag=' -expect_unresolved \*'
8604 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'
8605
        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~
8606
        $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'
8607 19 jeremybenn
 
8608
        # Both c and cxx compiler support -rpath directly
8609
        hardcode_libdir_flag_spec='-rpath $libdir'
8610
      fi
8611 82 jeremybenn
      archive_cmds_need_lc='no'
8612 19 jeremybenn
      hardcode_libdir_separator=:
8613
      ;;
8614
 
8615
    solaris*)
8616 82 jeremybenn
      no_undefined_flag=' -z defs'
8617 19 jeremybenn
      if test "$GCC" = yes; then
8618
        wlarc='${wl}'
8619 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8620
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8621
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8622 19 jeremybenn
      else
8623 82 jeremybenn
        case `$CC -V 2>&1` in
8624
        *"Compilers 5.0"*)
8625
          wlarc=''
8626
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8627
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8628
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8629
          ;;
8630
        *)
8631
          wlarc='${wl}'
8632
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8633
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8634
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8635
          ;;
8636
        esac
8637 19 jeremybenn
      fi
8638
      hardcode_libdir_flag_spec='-R$libdir'
8639
      hardcode_shlibpath_var=no
8640
      case $host_os in
8641
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8642
      *)
8643
        # The compiler driver will combine and reorder linker options,
8644
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8645
        # but is careful enough not to reorder.
8646 82 jeremybenn
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8647 19 jeremybenn
        if test "$GCC" = yes; then
8648
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8649
        else
8650
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8651
        fi
8652
        ;;
8653
      esac
8654
      link_all_deplibs=yes
8655
      ;;
8656
 
8657
    sunos4*)
8658
      if test "x$host_vendor" = xsequent; then
8659
        # Use $CC to link under sequent, because it throws in some extra .o
8660
        # files that make .init and .fini sections work.
8661
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8662
      else
8663
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8664
      fi
8665
      hardcode_libdir_flag_spec='-L$libdir'
8666
      hardcode_direct=yes
8667
      hardcode_minus_L=yes
8668
      hardcode_shlibpath_var=no
8669
      ;;
8670
 
8671
    sysv4)
8672
      case $host_vendor in
8673
        sni)
8674
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8675
          hardcode_direct=yes # is this really true???
8676
        ;;
8677
        siemens)
8678
          ## LD is ld it makes a PLAMLIB
8679
          ## CC just makes a GrossModule.
8680
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8681
          reload_cmds='$CC -r -o $output$reload_objs'
8682
          hardcode_direct=no
8683
        ;;
8684
        motorola)
8685
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8686
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8687
        ;;
8688
      esac
8689
      runpath_var='LD_RUN_PATH'
8690
      hardcode_shlibpath_var=no
8691
      ;;
8692
 
8693
    sysv4.3*)
8694
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8695
      hardcode_shlibpath_var=no
8696
      export_dynamic_flag_spec='-Bexport'
8697
      ;;
8698
 
8699
    sysv4*MP*)
8700
      if test -d /usr/nec; then
8701
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8702
        hardcode_shlibpath_var=no
8703
        runpath_var=LD_RUN_PATH
8704
        hardcode_runpath_var=yes
8705
        ld_shlibs=yes
8706
      fi
8707
      ;;
8708
 
8709
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8710
      no_undefined_flag='${wl}-z,text'
8711
      archive_cmds_need_lc=no
8712
      hardcode_shlibpath_var=no
8713
      runpath_var='LD_RUN_PATH'
8714
 
8715
      if test "$GCC" = yes; then
8716
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8717
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8718
      else
8719
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8720
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8721
      fi
8722
      ;;
8723
 
8724
    sysv5* | sco3.2v5* | sco5v6*)
8725
      # Note: We can NOT use -z defs as we might desire, because we do not
8726
      # link with -lc, and that would cause any symbols used from libc to
8727
      # always be unresolved, which means just about no library would
8728
      # ever link correctly.  If we're not using GNU ld we use -z text
8729
      # though, which does catch some bad symbols but isn't as heavy-handed
8730
      # as -z defs.
8731
      no_undefined_flag='${wl}-z,text'
8732
      allow_undefined_flag='${wl}-z,nodefs'
8733
      archive_cmds_need_lc=no
8734
      hardcode_shlibpath_var=no
8735 82 jeremybenn
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8736 19 jeremybenn
      hardcode_libdir_separator=':'
8737
      link_all_deplibs=yes
8738
      export_dynamic_flag_spec='${wl}-Bexport'
8739
      runpath_var='LD_RUN_PATH'
8740
 
8741
      if test "$GCC" = yes; then
8742 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8743
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8744 19 jeremybenn
      else
8745 82 jeremybenn
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8746
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747 19 jeremybenn
      fi
8748
      ;;
8749
 
8750
    uts4*)
8751
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8752
      hardcode_libdir_flag_spec='-L$libdir'
8753
      hardcode_shlibpath_var=no
8754
      ;;
8755
 
8756
    *)
8757
      ld_shlibs=no
8758
      ;;
8759
    esac
8760 82 jeremybenn
 
8761
    if test x$host_vendor = xsni; then
8762
      case $host in
8763
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8764
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8765
        ;;
8766
      esac
8767
    fi
8768 19 jeremybenn
  fi
8769
 
8770 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8771
$as_echo "$ld_shlibs" >&6; }
8772 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8773
 
8774 82 jeremybenn
with_gnu_ld=$with_gnu_ld
8775
 
8776
 
8777
 
8778
 
8779
 
8780
 
8781
 
8782
 
8783
 
8784
 
8785
 
8786
 
8787
 
8788
 
8789
 
8790 19 jeremybenn
#
8791
# Do we need to explicitly link libc?
8792
#
8793
case "x$archive_cmds_need_lc" in
8794
x|xyes)
8795
  # Assume -lc should be added
8796
  archive_cmds_need_lc=yes
8797
 
8798
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8799
    case $archive_cmds in
8800
    *'~'*)
8801
      # FIXME: we may have to deal with multi-command sequences.
8802
      ;;
8803
    '$CC '*)
8804
      # Test whether the compiler implicitly links with -lc since on some
8805
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8806
      # to ld, don't add -lc before -lgcc.
8807 82 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8808
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8809
      $RM conftest*
8810 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8811
 
8812
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8813
  (eval $ac_compile) 2>&5
8814
  ac_status=$?
8815 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 19 jeremybenn
  (exit $ac_status); } 2>conftest.err; then
8817
        soname=conftest
8818
        lib=conftest
8819
        libobjs=conftest.$ac_objext
8820
        deplibs=
8821
        wl=$lt_prog_compiler_wl
8822
        pic_flag=$lt_prog_compiler_pic
8823
        compiler_flags=-v
8824
        linker_flags=-v
8825
        verstring=
8826
        output_objdir=.
8827
        libname=conftest
8828
        lt_save_allow_undefined_flag=$allow_undefined_flag
8829
        allow_undefined_flag=
8830 82 jeremybenn
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8831
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8832 19 jeremybenn
  ac_status=$?
8833 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 19 jeremybenn
  (exit $ac_status); }
8835
        then
8836
          archive_cmds_need_lc=no
8837
        else
8838
          archive_cmds_need_lc=yes
8839
        fi
8840
        allow_undefined_flag=$lt_save_allow_undefined_flag
8841
      else
8842
        cat conftest.err 1>&5
8843
      fi
8844 82 jeremybenn
      $RM conftest*
8845
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8846
$as_echo "$archive_cmds_need_lc" >&6; }
8847 19 jeremybenn
      ;;
8848
    esac
8849
  fi
8850
  ;;
8851
esac
8852
 
8853
 
8854 82 jeremybenn
 
8855
 
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
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9010
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9011
 
9012 19 jeremybenn
if test "$GCC" = yes; then
9013
  case $host_os in
9014
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9015
    *) lt_awk_arg="/^libraries:/" ;;
9016
  esac
9017
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9018 82 jeremybenn
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9019 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
9020
    # otherwise default to the standard path separator (i.e. ":") - it is
9021
    # assumed that no part of a normal pathname contains ";" but that should
9022
    # okay in the real world where ";" in dirpaths is itself problematic.
9023 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9024 19 jeremybenn
  else
9025 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9026 19 jeremybenn
  fi
9027
  # Ok, now we have the path, separated by spaces, we can step through it
9028
  # and add multilib dir if necessary.
9029
  lt_tmp_lt_search_path_spec=
9030
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9031
  for lt_sys_path in $lt_search_path_spec; do
9032
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9033
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9034
    else
9035
      test -d "$lt_sys_path" && \
9036
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9037
    fi
9038
  done
9039 82 jeremybenn
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9040 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
9041
  lt_foo="";
9042
  lt_count=0;
9043
  for (lt_i = NF; lt_i > 0; lt_i--) {
9044
    if ($lt_i != "" && $lt_i != ".") {
9045
      if ($lt_i == "..") {
9046
        lt_count++;
9047
      } else {
9048
        if (lt_count == 0) {
9049
          lt_foo="/" $lt_i lt_foo;
9050
        } else {
9051
          lt_count--;
9052
        }
9053
      }
9054
    }
9055
  }
9056
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9057
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9058
}'`
9059 82 jeremybenn
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9060 19 jeremybenn
else
9061
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9062
fi
9063 82 jeremybenn
library_names_spec=
9064
libname_spec='lib$name'
9065
soname_spec=
9066
shrext_cmds=".so"
9067
postinstall_cmds=
9068
postuninstall_cmds=
9069
finish_cmds=
9070
finish_eval=
9071
shlibpath_var=
9072
shlibpath_overrides_runpath=unknown
9073
version_type=none
9074
dynamic_linker="$host_os ld.so"
9075
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9076 19 jeremybenn
need_lib_prefix=unknown
9077
hardcode_into_libs=no
9078
 
9079
# when you set need_version to no, make sure it does not cause -set_version
9080
# flags to be left without arguments
9081
need_version=unknown
9082
 
9083
case $host_os in
9084
aix3*)
9085
  version_type=linux
9086
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9087
  shlibpath_var=LIBPATH
9088
 
9089
  # AIX 3 has no versioning support, so we append a major version to the name.
9090
  soname_spec='${libname}${release}${shared_ext}$major'
9091
  ;;
9092
 
9093 82 jeremybenn
aix[4-9]*)
9094 19 jeremybenn
  version_type=linux
9095
  need_lib_prefix=no
9096
  need_version=no
9097
  hardcode_into_libs=yes
9098
  if test "$host_cpu" = ia64; then
9099
    # AIX 5 supports IA64
9100
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9101
    shlibpath_var=LD_LIBRARY_PATH
9102
  else
9103
    # With GCC up to 2.95.x, collect2 would create an import file
9104
    # for dependence libraries.  The import file would start with
9105
    # the line `#! .'.  This would cause the generated library to
9106
    # depend on `.', always an invalid library.  This was fixed in
9107
    # development snapshots of GCC prior to 3.0.
9108
    case $host_os in
9109
      aix4 | aix4.[01] | aix4.[01].*)
9110
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9111
           echo ' yes '
9112 82 jeremybenn
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9113 19 jeremybenn
        :
9114
      else
9115
        can_build_shared=no
9116
      fi
9117
      ;;
9118
    esac
9119
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9120
    # soname into executable. Probably we can add versioning support to
9121
    # collect2, so additional links can be useful in future.
9122
    if test "$aix_use_runtimelinking" = yes; then
9123
      # If using run time linking (on AIX 4.2 or later) use lib.so
9124
      # instead of lib.a to let people know that these are not
9125
      # typical AIX shared libraries.
9126
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127
    else
9128
      # We preserve .a as extension for shared libraries through AIX4.2
9129
      # and later when we are not doing run time linking.
9130
      library_names_spec='${libname}${release}.a $libname.a'
9131
      soname_spec='${libname}${release}${shared_ext}$major'
9132
    fi
9133
    shlibpath_var=LIBPATH
9134
  fi
9135
  ;;
9136
 
9137
amigaos*)
9138 82 jeremybenn
  case $host_cpu in
9139
  powerpc)
9140
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9141
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9142
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143
    ;;
9144
  m68k)
9145
    library_names_spec='$libname.ixlibrary $libname.a'
9146
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9147
    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'
9148
    ;;
9149
  esac
9150 19 jeremybenn
  ;;
9151
 
9152
beos*)
9153
  library_names_spec='${libname}${shared_ext}'
9154
  dynamic_linker="$host_os ld.so"
9155
  shlibpath_var=LIBRARY_PATH
9156
  ;;
9157
 
9158
bsdi[45]*)
9159
  version_type=linux
9160
  need_version=no
9161
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9162
  soname_spec='${libname}${release}${shared_ext}$major'
9163
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9164
  shlibpath_var=LD_LIBRARY_PATH
9165
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9166
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9167
  # the default ld.so.conf also contains /usr/contrib/lib and
9168
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9169
  # libtool to hard-code these into programs
9170
  ;;
9171
 
9172 82 jeremybenn
cygwin* | mingw* | pw32* | cegcc*)
9173 19 jeremybenn
  version_type=windows
9174
  shrext_cmds=".dll"
9175
  need_version=no
9176
  need_lib_prefix=no
9177
 
9178
  case $GCC,$host_os in
9179 82 jeremybenn
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9180 19 jeremybenn
    library_names_spec='$libname.dll.a'
9181
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9182
    postinstall_cmds='base_file=`basename \${file}`~
9183 82 jeremybenn
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9184 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
9185
      test -d \$dldir || mkdir -p \$dldir~
9186
      $install_prog $dir/$dlname \$dldir/$dlname~
9187 82 jeremybenn
      chmod a+x \$dldir/$dlname~
9188
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9189
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9190
      fi'
9191 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9192
      dlpath=$dir/\$dldll~
9193 82 jeremybenn
       $RM \$dlpath'
9194 19 jeremybenn
    shlibpath_overrides_runpath=yes
9195
 
9196
    case $host_os in
9197
    cygwin*)
9198
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9199
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9200
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9201
      ;;
9202 82 jeremybenn
    mingw* | cegcc*)
9203 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
9204
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9205 82 jeremybenn
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9206
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9207 19 jeremybenn
        # It is most probably a Windows format PATH printed by
9208
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9209
        # path with ; separators, and with drive letters. We can handle the
9210
        # drive letters (cygwin fileutils understands them), so leave them,
9211
        # especially as we might pass files found there to a mingw objdump,
9212
        # which wouldn't understand a cygwinified path. Ahh.
9213 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9214 19 jeremybenn
      else
9215 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9216 19 jeremybenn
      fi
9217
      ;;
9218
    pw32*)
9219
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9220
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9221
      ;;
9222
    esac
9223
    ;;
9224
 
9225
  *)
9226
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9227
    ;;
9228
  esac
9229
  dynamic_linker='Win32 ld.exe'
9230
  # FIXME: first we should search . and the directory the executable is in
9231
  shlibpath_var=PATH
9232
  ;;
9233
 
9234
darwin* | rhapsody*)
9235
  dynamic_linker="$host_os dyld"
9236
  version_type=darwin
9237
  need_lib_prefix=no
9238
  need_version=no
9239 82 jeremybenn
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9240 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9241
  shlibpath_overrides_runpath=yes
9242
  shlibpath_var=DYLD_LIBRARY_PATH
9243
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9244
 
9245
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9246
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9247
  ;;
9248
 
9249
dgux*)
9250
  version_type=linux
9251
  need_lib_prefix=no
9252
  need_version=no
9253
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9254
  soname_spec='${libname}${release}${shared_ext}$major'
9255
  shlibpath_var=LD_LIBRARY_PATH
9256
  ;;
9257
 
9258
freebsd1*)
9259
  dynamic_linker=no
9260
  ;;
9261
 
9262
freebsd* | dragonfly*)
9263
  # DragonFly does not have aout.  When/if they implement a new
9264
  # versioning mechanism, adjust this.
9265
  if test -x /usr/bin/objformat; then
9266
    objformat=`/usr/bin/objformat`
9267
  else
9268
    case $host_os in
9269
    freebsd[123]*) objformat=aout ;;
9270
    *) objformat=elf ;;
9271
    esac
9272
  fi
9273
  version_type=freebsd-$objformat
9274
  case $version_type in
9275
    freebsd-elf*)
9276
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9277
      need_version=no
9278
      need_lib_prefix=no
9279
      ;;
9280
    freebsd-*)
9281
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9282
      need_version=yes
9283
      ;;
9284
  esac
9285
  shlibpath_var=LD_LIBRARY_PATH
9286
  case $host_os in
9287
  freebsd2*)
9288
    shlibpath_overrides_runpath=yes
9289
    ;;
9290
  freebsd3.[01]* | freebsdelf3.[01]*)
9291
    shlibpath_overrides_runpath=yes
9292
    hardcode_into_libs=yes
9293
    ;;
9294
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9295
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9296
    shlibpath_overrides_runpath=no
9297
    hardcode_into_libs=yes
9298
    ;;
9299
  *) # from 4.6 on, and DragonFly
9300
    shlibpath_overrides_runpath=yes
9301
    hardcode_into_libs=yes
9302
    ;;
9303
  esac
9304
  ;;
9305
 
9306
gnu*)
9307
  version_type=linux
9308
  need_lib_prefix=no
9309
  need_version=no
9310
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9311
  soname_spec='${libname}${release}${shared_ext}$major'
9312
  shlibpath_var=LD_LIBRARY_PATH
9313
  hardcode_into_libs=yes
9314
  ;;
9315
 
9316
hpux9* | hpux10* | hpux11*)
9317
  # Give a soname corresponding to the major version so that dld.sl refuses to
9318
  # link against other versions.
9319
  version_type=sunos
9320
  need_lib_prefix=no
9321
  need_version=no
9322
  case $host_cpu in
9323
  ia64*)
9324
    shrext_cmds='.so'
9325
    hardcode_into_libs=yes
9326
    dynamic_linker="$host_os dld.so"
9327
    shlibpath_var=LD_LIBRARY_PATH
9328
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9329
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330
    soname_spec='${libname}${release}${shared_ext}$major'
9331
    if test "X$HPUX_IA64_MODE" = X32; then
9332
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9333
    else
9334
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9335
    fi
9336
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9337
    ;;
9338 82 jeremybenn
  hppa*64*)
9339 19 jeremybenn
    shrext_cmds='.sl'
9340 82 jeremybenn
    hardcode_into_libs=yes
9341 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9342 82 jeremybenn
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9343
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9344
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345
    soname_spec='${libname}${release}${shared_ext}$major'
9346
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9347
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9348
    ;;
9349
  *)
9350
    shrext_cmds='.sl'
9351
    dynamic_linker="$host_os dld.sl"
9352 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9353
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9354
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355
    soname_spec='${libname}${release}${shared_ext}$major'
9356
    ;;
9357
  esac
9358
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9359
  postinstall_cmds='chmod 555 $lib'
9360
  ;;
9361
 
9362
interix[3-9]*)
9363
  version_type=linux
9364
  need_lib_prefix=no
9365
  need_version=no
9366
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9367
  soname_spec='${libname}${release}${shared_ext}$major'
9368
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9369
  shlibpath_var=LD_LIBRARY_PATH
9370
  shlibpath_overrides_runpath=no
9371
  hardcode_into_libs=yes
9372
  ;;
9373
 
9374
irix5* | irix6* | nonstopux*)
9375
  case $host_os in
9376
    nonstopux*) version_type=nonstopux ;;
9377
    *)
9378
        if test "$lt_cv_prog_gnu_ld" = yes; then
9379
                version_type=linux
9380
        else
9381
                version_type=irix
9382
        fi ;;
9383
  esac
9384
  need_lib_prefix=no
9385
  need_version=no
9386
  soname_spec='${libname}${release}${shared_ext}$major'
9387
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9388
  case $host_os in
9389
  irix5* | nonstopux*)
9390
    libsuff= shlibsuff=
9391
    ;;
9392
  *)
9393
    case $LD in # libtool.m4 will add one of these switches to LD
9394
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9395
      libsuff= shlibsuff= libmagic=32-bit;;
9396
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9397
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9398
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9399
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9400
    *) libsuff= shlibsuff= libmagic=never-match;;
9401
    esac
9402
    ;;
9403
  esac
9404
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9405
  shlibpath_overrides_runpath=no
9406
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9407
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9408
  hardcode_into_libs=yes
9409
  ;;
9410
 
9411
# No shared lib support for Linux oldld, aout, or coff.
9412
linux*oldld* | linux*aout* | linux*coff*)
9413
  dynamic_linker=no
9414
  ;;
9415
 
9416
# This must be Linux ELF.
9417
linux* | k*bsd*-gnu)
9418
  version_type=linux
9419
  need_lib_prefix=no
9420
  need_version=no
9421
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9422
  soname_spec='${libname}${release}${shared_ext}$major'
9423
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9424
  shlibpath_var=LD_LIBRARY_PATH
9425
  shlibpath_overrides_runpath=no
9426 82 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
9427
  save_LDFLAGS=$LDFLAGS
9428
  save_libdir=$libdir
9429
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9430
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9431
  cat >conftest.$ac_ext <<_ACEOF
9432
/* confdefs.h.  */
9433
_ACEOF
9434
cat confdefs.h >>conftest.$ac_ext
9435
cat >>conftest.$ac_ext <<_ACEOF
9436
/* end confdefs.h.  */
9437
 
9438
int
9439
main ()
9440
{
9441
 
9442
  ;
9443
  return 0;
9444
}
9445
_ACEOF
9446
rm -f conftest.$ac_objext conftest$ac_exeext
9447
if { (ac_try="$ac_link"
9448
case "(($ac_try" in
9449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450
  *) ac_try_echo=$ac_try;;
9451
esac
9452
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9453
$as_echo "$ac_try_echo") >&5
9454
  (eval "$ac_link") 2>conftest.er1
9455
  ac_status=$?
9456
  grep -v '^ *+' conftest.er1 >conftest.err
9457
  rm -f conftest.er1
9458
  cat conftest.err >&5
9459
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460
  (exit $ac_status); } && {
9461
         test -z "$ac_c_werror_flag" ||
9462
         test ! -s conftest.err
9463
       } && test -s conftest$ac_exeext && {
9464
         test "$cross_compiling" = yes ||
9465
         $as_test_x conftest$ac_exeext
9466
       }; then
9467
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9468
  shlibpath_overrides_runpath=yes
9469
fi
9470
 
9471
else
9472
  $as_echo "$as_me: failed program was:" >&5
9473
sed 's/^/| /' conftest.$ac_ext >&5
9474
 
9475
 
9476
fi
9477
 
9478
rm -rf conftest.dSYM
9479
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9480
      conftest$ac_exeext conftest.$ac_ext
9481
  LDFLAGS=$save_LDFLAGS
9482
  libdir=$save_libdir
9483
 
9484 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9485
  # Some rework will be needed to allow for fast_install
9486
  # before this can be enabled.
9487
  hardcode_into_libs=yes
9488
 
9489 90 jeremybenn
  # Add ABI-specific directories to the system library path.
9490
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9491
 
9492 19 jeremybenn
  # Append ld.so.conf contents to the search path
9493
  if test -f /etc/ld.so.conf; then
9494 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' ' '`
9495 90 jeremybenn
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9496 19 jeremybenn
  fi
9497
 
9498
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9499
  # powerpc, because MkLinux only supported shared libraries with the
9500
  # GNU dynamic linker.  Since this was broken with cross compilers,
9501
  # most powerpc-linux boxes support dynamic linking these days and
9502
  # people can always --disable-shared, the test was removed, and we
9503
  # assume the GNU/Linux dynamic linker is in use.
9504
  dynamic_linker='GNU/Linux ld.so'
9505
  ;;
9506
 
9507
netbsd*)
9508
  version_type=sunos
9509
  need_lib_prefix=no
9510
  need_version=no
9511 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9512 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9513
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9514
    dynamic_linker='NetBSD (a.out) ld.so'
9515
  else
9516
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9517
    soname_spec='${libname}${release}${shared_ext}$major'
9518
    dynamic_linker='NetBSD ld.elf_so'
9519
  fi
9520
  shlibpath_var=LD_LIBRARY_PATH
9521
  shlibpath_overrides_runpath=yes
9522
  hardcode_into_libs=yes
9523
  ;;
9524
 
9525
newsos6)
9526
  version_type=linux
9527
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528
  shlibpath_var=LD_LIBRARY_PATH
9529
  shlibpath_overrides_runpath=yes
9530
  ;;
9531
 
9532 82 jeremybenn
*nto* | *qnx*)
9533
  version_type=qnx
9534 19 jeremybenn
  need_lib_prefix=no
9535
  need_version=no
9536
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537
  soname_spec='${libname}${release}${shared_ext}$major'
9538
  shlibpath_var=LD_LIBRARY_PATH
9539 82 jeremybenn
  shlibpath_overrides_runpath=no
9540
  hardcode_into_libs=yes
9541
  dynamic_linker='ldqnx.so'
9542 19 jeremybenn
  ;;
9543
 
9544
openbsd*)
9545
  version_type=sunos
9546
  sys_lib_dlsearch_path_spec="/usr/lib"
9547
  need_lib_prefix=no
9548
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9549
  case $host_os in
9550 82 jeremybenn
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9551
    *)                          need_version=no  ;;
9552 19 jeremybenn
  esac
9553
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9554
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9555
  shlibpath_var=LD_LIBRARY_PATH
9556 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9557 19 jeremybenn
    case $host_os in
9558
      openbsd2.[89] | openbsd2.[89].*)
9559
        shlibpath_overrides_runpath=no
9560
        ;;
9561
      *)
9562
        shlibpath_overrides_runpath=yes
9563
        ;;
9564
      esac
9565
  else
9566
    shlibpath_overrides_runpath=yes
9567
  fi
9568
  ;;
9569
 
9570
os2*)
9571
  libname_spec='$name'
9572
  shrext_cmds=".dll"
9573
  need_lib_prefix=no
9574
  library_names_spec='$libname${shared_ext} $libname.a'
9575
  dynamic_linker='OS/2 ld.exe'
9576
  shlibpath_var=LIBPATH
9577
  ;;
9578
 
9579
osf3* | osf4* | osf5*)
9580
  version_type=osf
9581
  need_lib_prefix=no
9582
  need_version=no
9583
  soname_spec='${libname}${release}${shared_ext}$major'
9584
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585
  shlibpath_var=LD_LIBRARY_PATH
9586
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9587
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9588
  ;;
9589
 
9590
rdos*)
9591
  dynamic_linker=no
9592
  ;;
9593
 
9594
solaris*)
9595
  version_type=linux
9596
  need_lib_prefix=no
9597
  need_version=no
9598
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599
  soname_spec='${libname}${release}${shared_ext}$major'
9600
  shlibpath_var=LD_LIBRARY_PATH
9601
  shlibpath_overrides_runpath=yes
9602
  hardcode_into_libs=yes
9603
  # ldd complains unless libraries are executable
9604
  postinstall_cmds='chmod +x $lib'
9605
  ;;
9606
 
9607
sunos4*)
9608
  version_type=sunos
9609
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9610
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9611
  shlibpath_var=LD_LIBRARY_PATH
9612
  shlibpath_overrides_runpath=yes
9613
  if test "$with_gnu_ld" = yes; then
9614
    need_lib_prefix=no
9615
  fi
9616
  need_version=yes
9617
  ;;
9618
 
9619
sysv4 | sysv4.3*)
9620
  version_type=linux
9621
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622
  soname_spec='${libname}${release}${shared_ext}$major'
9623
  shlibpath_var=LD_LIBRARY_PATH
9624
  case $host_vendor in
9625
    sni)
9626
      shlibpath_overrides_runpath=no
9627
      need_lib_prefix=no
9628
      runpath_var=LD_RUN_PATH
9629
      ;;
9630
    siemens)
9631
      need_lib_prefix=no
9632
      ;;
9633
    motorola)
9634
      need_lib_prefix=no
9635
      need_version=no
9636
      shlibpath_overrides_runpath=no
9637
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9638
      ;;
9639
  esac
9640
  ;;
9641
 
9642
sysv4*MP*)
9643
  if test -d /usr/nec ;then
9644
    version_type=linux
9645
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9646
    soname_spec='$libname${shared_ext}.$major'
9647
    shlibpath_var=LD_LIBRARY_PATH
9648
  fi
9649
  ;;
9650
 
9651
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9652
  version_type=freebsd-elf
9653
  need_lib_prefix=no
9654
  need_version=no
9655
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9656
  soname_spec='${libname}${release}${shared_ext}$major'
9657
  shlibpath_var=LD_LIBRARY_PATH
9658 82 jeremybenn
  shlibpath_overrides_runpath=yes
9659 19 jeremybenn
  hardcode_into_libs=yes
9660
  if test "$with_gnu_ld" = yes; then
9661
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9662
  else
9663
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9664
    case $host_os in
9665
      sco3.2v5*)
9666
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9667
        ;;
9668
    esac
9669
  fi
9670
  sys_lib_dlsearch_path_spec='/usr/lib'
9671
  ;;
9672
 
9673 82 jeremybenn
tpf*)
9674
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9675
  version_type=linux
9676
  need_lib_prefix=no
9677
  need_version=no
9678
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679
  shlibpath_var=LD_LIBRARY_PATH
9680
  shlibpath_overrides_runpath=no
9681
  hardcode_into_libs=yes
9682
  ;;
9683
 
9684 19 jeremybenn
uts4*)
9685
  version_type=linux
9686
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687
  soname_spec='${libname}${release}${shared_ext}$major'
9688
  shlibpath_var=LD_LIBRARY_PATH
9689
  ;;
9690
 
9691
*)
9692
  dynamic_linker=no
9693
  ;;
9694
esac
9695 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9696
$as_echo "$dynamic_linker" >&6; }
9697 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9698
 
9699
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9700
if test "$GCC" = yes; then
9701
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9702
fi
9703
 
9704 82 jeremybenn
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9705
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9706
fi
9707
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9708
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9709
fi
9710
 
9711
 
9712
 
9713
 
9714
 
9715
 
9716
 
9717
 
9718
 
9719
 
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
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9798
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9799 19 jeremybenn
hardcode_action=
9800 82 jeremybenn
if test -n "$hardcode_libdir_flag_spec" ||
9801
   test -n "$runpath_var" ||
9802 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9803
 
9804 82 jeremybenn
  # We can hardcode non-existent directories.
9805 19 jeremybenn
  if test "$hardcode_direct" != no &&
9806
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9807
     # have to relink, otherwise we might link with an installed library
9808
     # when we should be linking with a yet-to-be-installed one
9809 82 jeremybenn
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9810 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9811
    # Linking always hardcodes the temporary library directory.
9812
    hardcode_action=relink
9813
  else
9814
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9815
    hardcode_action=immediate
9816
  fi
9817
else
9818
  # We cannot hardcode anything, or else we can only hardcode existing
9819
  # directories.
9820
  hardcode_action=unsupported
9821
fi
9822 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9823
$as_echo "$hardcode_action" >&6; }
9824 19 jeremybenn
 
9825 82 jeremybenn
if test "$hardcode_action" = relink ||
9826
   test "$inherit_rpath" = yes; then
9827 19 jeremybenn
  # Fast installation is not supported
9828
  enable_fast_install=no
9829
elif test "$shlibpath_overrides_runpath" = yes ||
9830
     test "$enable_shared" = no; then
9831
  # Fast installation is not necessary
9832
  enable_fast_install=needless
9833
fi
9834
 
9835
 
9836 82 jeremybenn
 
9837
 
9838
 
9839
 
9840
  if test "x$enable_dlopen" != xyes; then
9841 19 jeremybenn
  enable_dlopen=unknown
9842
  enable_dlopen_self=unknown
9843
  enable_dlopen_self_static=unknown
9844
else
9845
  lt_cv_dlopen=no
9846
  lt_cv_dlopen_libs=
9847
 
9848
  case $host_os in
9849
  beos*)
9850
    lt_cv_dlopen="load_add_on"
9851
    lt_cv_dlopen_libs=
9852
    lt_cv_dlopen_self=yes
9853
    ;;
9854
 
9855 82 jeremybenn
  mingw* | pw32* | cegcc*)
9856 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9857
    lt_cv_dlopen_libs=
9858 82 jeremybenn
    ;;
9859 19 jeremybenn
 
9860
  cygwin*)
9861
    lt_cv_dlopen="dlopen"
9862
    lt_cv_dlopen_libs=
9863 82 jeremybenn
    ;;
9864 19 jeremybenn
 
9865
  darwin*)
9866
  # if libdl is installed we need to link against it
9867 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9868
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9869 19 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9870 82 jeremybenn
  $as_echo_n "(cached) " >&6
9871 19 jeremybenn
else
9872
  ac_check_lib_save_LIBS=$LIBS
9873
LIBS="-ldl  $LIBS"
9874
cat >conftest.$ac_ext <<_ACEOF
9875
/* confdefs.h.  */
9876
_ACEOF
9877
cat confdefs.h >>conftest.$ac_ext
9878
cat >>conftest.$ac_ext <<_ACEOF
9879
/* end confdefs.h.  */
9880
 
9881
/* Override any GCC internal prototype to avoid an error.
9882
   Use char because int might match the return type of a GCC
9883
   builtin and then its argument prototype would still apply.  */
9884
#ifdef __cplusplus
9885
extern "C"
9886
#endif
9887
char dlopen ();
9888
int
9889
main ()
9890
{
9891
return dlopen ();
9892
  ;
9893
  return 0;
9894
}
9895
_ACEOF
9896
rm -f conftest.$ac_objext conftest$ac_exeext
9897
if { (ac_try="$ac_link"
9898
case "(($ac_try" in
9899
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900
  *) ac_try_echo=$ac_try;;
9901
esac
9902 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9903
$as_echo "$ac_try_echo") >&5
9904 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
9905
  ac_status=$?
9906
  grep -v '^ *+' conftest.er1 >conftest.err
9907
  rm -f conftest.er1
9908
  cat conftest.err >&5
9909 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 19 jeremybenn
  (exit $ac_status); } && {
9911
         test -z "$ac_c_werror_flag" ||
9912
         test ! -s conftest.err
9913 82 jeremybenn
       } && test -s conftest$ac_exeext && {
9914
         test "$cross_compiling" = yes ||
9915
         $as_test_x conftest$ac_exeext
9916
       }; then
9917 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9918
else
9919 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9920 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9921
 
9922
        ac_cv_lib_dl_dlopen=no
9923
fi
9924
 
9925 82 jeremybenn
rm -rf conftest.dSYM
9926 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9927
      conftest$ac_exeext conftest.$ac_ext
9928
LIBS=$ac_check_lib_save_LIBS
9929
fi
9930 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9931
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9932
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9933 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9934
else
9935
 
9936
    lt_cv_dlopen="dyld"
9937
    lt_cv_dlopen_libs=
9938
    lt_cv_dlopen_self=yes
9939
 
9940
fi
9941
 
9942 82 jeremybenn
    ;;
9943 19 jeremybenn
 
9944
  *)
9945 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9946
$as_echo_n "checking for shl_load... " >&6; }
9947 19 jeremybenn
if test "${ac_cv_func_shl_load+set}" = set; then
9948 82 jeremybenn
  $as_echo_n "(cached) " >&6
9949 19 jeremybenn
else
9950
  cat >conftest.$ac_ext <<_ACEOF
9951
/* confdefs.h.  */
9952
_ACEOF
9953
cat confdefs.h >>conftest.$ac_ext
9954
cat >>conftest.$ac_ext <<_ACEOF
9955
/* end confdefs.h.  */
9956
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9957
   For example, HP-UX 11i  declares gettimeofday.  */
9958
#define shl_load innocuous_shl_load
9959
 
9960
/* System header to define __stub macros and hopefully few prototypes,
9961
    which can conflict with char shl_load (); below.
9962
    Prefer  to  if __STDC__ is defined, since
9963
     exists even on freestanding compilers.  */
9964
 
9965
#ifdef __STDC__
9966
# include 
9967
#else
9968
# include 
9969
#endif
9970
 
9971
#undef shl_load
9972
 
9973
/* Override any GCC internal prototype to avoid an error.
9974
   Use char because int might match the return type of a GCC
9975
   builtin and then its argument prototype would still apply.  */
9976
#ifdef __cplusplus
9977
extern "C"
9978
#endif
9979
char shl_load ();
9980
/* The GNU C library defines this for functions which it implements
9981
    to always fail with ENOSYS.  Some functions are actually named
9982
    something starting with __ and the normal name is an alias.  */
9983
#if defined __stub_shl_load || defined __stub___shl_load
9984
choke me
9985
#endif
9986
 
9987
int
9988
main ()
9989
{
9990
return shl_load ();
9991
  ;
9992
  return 0;
9993
}
9994
_ACEOF
9995
rm -f conftest.$ac_objext conftest$ac_exeext
9996
if { (ac_try="$ac_link"
9997
case "(($ac_try" in
9998
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999
  *) ac_try_echo=$ac_try;;
10000
esac
10001 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10002
$as_echo "$ac_try_echo") >&5
10003 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10004
  ac_status=$?
10005
  grep -v '^ *+' conftest.er1 >conftest.err
10006
  rm -f conftest.er1
10007
  cat conftest.err >&5
10008 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 19 jeremybenn
  (exit $ac_status); } && {
10010
         test -z "$ac_c_werror_flag" ||
10011
         test ! -s conftest.err
10012 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10013
         test "$cross_compiling" = yes ||
10014
         $as_test_x conftest$ac_exeext
10015
       }; then
10016 19 jeremybenn
  ac_cv_func_shl_load=yes
10017
else
10018 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10019 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10020
 
10021
        ac_cv_func_shl_load=no
10022
fi
10023
 
10024 82 jeremybenn
rm -rf conftest.dSYM
10025 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10026
      conftest$ac_exeext conftest.$ac_ext
10027
fi
10028 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10029
$as_echo "$ac_cv_func_shl_load" >&6; }
10030
if test "x$ac_cv_func_shl_load" = x""yes; then
10031 19 jeremybenn
  lt_cv_dlopen="shl_load"
10032
else
10033 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10034
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10035 19 jeremybenn
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10036 82 jeremybenn
  $as_echo_n "(cached) " >&6
10037 19 jeremybenn
else
10038
  ac_check_lib_save_LIBS=$LIBS
10039
LIBS="-ldld  $LIBS"
10040
cat >conftest.$ac_ext <<_ACEOF
10041
/* confdefs.h.  */
10042
_ACEOF
10043
cat confdefs.h >>conftest.$ac_ext
10044
cat >>conftest.$ac_ext <<_ACEOF
10045
/* end confdefs.h.  */
10046
 
10047
/* Override any GCC internal prototype to avoid an error.
10048
   Use char because int might match the return type of a GCC
10049
   builtin and then its argument prototype would still apply.  */
10050
#ifdef __cplusplus
10051
extern "C"
10052
#endif
10053
char shl_load ();
10054
int
10055
main ()
10056
{
10057
return shl_load ();
10058
  ;
10059
  return 0;
10060
}
10061
_ACEOF
10062
rm -f conftest.$ac_objext conftest$ac_exeext
10063
if { (ac_try="$ac_link"
10064
case "(($ac_try" in
10065
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066
  *) ac_try_echo=$ac_try;;
10067
esac
10068 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10069
$as_echo "$ac_try_echo") >&5
10070 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10071
  ac_status=$?
10072
  grep -v '^ *+' conftest.er1 >conftest.err
10073
  rm -f conftest.er1
10074
  cat conftest.err >&5
10075 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 19 jeremybenn
  (exit $ac_status); } && {
10077
         test -z "$ac_c_werror_flag" ||
10078
         test ! -s conftest.err
10079 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10080
         test "$cross_compiling" = yes ||
10081
         $as_test_x conftest$ac_exeext
10082
       }; then
10083 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
10084
else
10085 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10086 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10087
 
10088
        ac_cv_lib_dld_shl_load=no
10089
fi
10090
 
10091 82 jeremybenn
rm -rf conftest.dSYM
10092 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10093
      conftest$ac_exeext conftest.$ac_ext
10094
LIBS=$ac_check_lib_save_LIBS
10095
fi
10096 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10097
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10098
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10099
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10100 19 jeremybenn
else
10101 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10102
$as_echo_n "checking for dlopen... " >&6; }
10103 19 jeremybenn
if test "${ac_cv_func_dlopen+set}" = set; then
10104 82 jeremybenn
  $as_echo_n "(cached) " >&6
10105 19 jeremybenn
else
10106
  cat >conftest.$ac_ext <<_ACEOF
10107
/* confdefs.h.  */
10108
_ACEOF
10109
cat confdefs.h >>conftest.$ac_ext
10110
cat >>conftest.$ac_ext <<_ACEOF
10111
/* end confdefs.h.  */
10112
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10113
   For example, HP-UX 11i  declares gettimeofday.  */
10114
#define dlopen innocuous_dlopen
10115
 
10116
/* System header to define __stub macros and hopefully few prototypes,
10117
    which can conflict with char dlopen (); below.
10118
    Prefer  to  if __STDC__ is defined, since
10119
     exists even on freestanding compilers.  */
10120
 
10121
#ifdef __STDC__
10122
# include 
10123
#else
10124
# include 
10125
#endif
10126
 
10127
#undef dlopen
10128
 
10129
/* Override any GCC internal prototype to avoid an error.
10130
   Use char because int might match the return type of a GCC
10131
   builtin and then its argument prototype would still apply.  */
10132
#ifdef __cplusplus
10133
extern "C"
10134
#endif
10135
char dlopen ();
10136
/* The GNU C library defines this for functions which it implements
10137
    to always fail with ENOSYS.  Some functions are actually named
10138
    something starting with __ and the normal name is an alias.  */
10139
#if defined __stub_dlopen || defined __stub___dlopen
10140
choke me
10141
#endif
10142
 
10143
int
10144
main ()
10145
{
10146
return dlopen ();
10147
  ;
10148
  return 0;
10149
}
10150
_ACEOF
10151
rm -f conftest.$ac_objext conftest$ac_exeext
10152
if { (ac_try="$ac_link"
10153
case "(($ac_try" in
10154
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155
  *) ac_try_echo=$ac_try;;
10156
esac
10157 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10158
$as_echo "$ac_try_echo") >&5
10159 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10160
  ac_status=$?
10161
  grep -v '^ *+' conftest.er1 >conftest.err
10162
  rm -f conftest.er1
10163
  cat conftest.err >&5
10164 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 19 jeremybenn
  (exit $ac_status); } && {
10166
         test -z "$ac_c_werror_flag" ||
10167
         test ! -s conftest.err
10168 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10169
         test "$cross_compiling" = yes ||
10170
         $as_test_x conftest$ac_exeext
10171
       }; then
10172 19 jeremybenn
  ac_cv_func_dlopen=yes
10173
else
10174 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10175 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10176
 
10177
        ac_cv_func_dlopen=no
10178
fi
10179
 
10180 82 jeremybenn
rm -rf conftest.dSYM
10181 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10182
      conftest$ac_exeext conftest.$ac_ext
10183
fi
10184 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10185
$as_echo "$ac_cv_func_dlopen" >&6; }
10186
if test "x$ac_cv_func_dlopen" = x""yes; then
10187 19 jeremybenn
  lt_cv_dlopen="dlopen"
10188
else
10189 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10190
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10191 19 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10192 82 jeremybenn
  $as_echo_n "(cached) " >&6
10193 19 jeremybenn
else
10194
  ac_check_lib_save_LIBS=$LIBS
10195
LIBS="-ldl  $LIBS"
10196
cat >conftest.$ac_ext <<_ACEOF
10197
/* confdefs.h.  */
10198
_ACEOF
10199
cat confdefs.h >>conftest.$ac_ext
10200
cat >>conftest.$ac_ext <<_ACEOF
10201
/* end confdefs.h.  */
10202
 
10203
/* Override any GCC internal prototype to avoid an error.
10204
   Use char because int might match the return type of a GCC
10205
   builtin and then its argument prototype would still apply.  */
10206
#ifdef __cplusplus
10207
extern "C"
10208
#endif
10209
char dlopen ();
10210
int
10211
main ()
10212
{
10213
return dlopen ();
10214
  ;
10215
  return 0;
10216
}
10217
_ACEOF
10218
rm -f conftest.$ac_objext conftest$ac_exeext
10219
if { (ac_try="$ac_link"
10220
case "(($ac_try" in
10221
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222
  *) ac_try_echo=$ac_try;;
10223
esac
10224 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10225
$as_echo "$ac_try_echo") >&5
10226 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10227
  ac_status=$?
10228
  grep -v '^ *+' conftest.er1 >conftest.err
10229
  rm -f conftest.er1
10230
  cat conftest.err >&5
10231 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 19 jeremybenn
  (exit $ac_status); } && {
10233
         test -z "$ac_c_werror_flag" ||
10234
         test ! -s conftest.err
10235 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10236
         test "$cross_compiling" = yes ||
10237
         $as_test_x conftest$ac_exeext
10238
       }; then
10239 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
10240
else
10241 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10242 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10243
 
10244
        ac_cv_lib_dl_dlopen=no
10245
fi
10246
 
10247 82 jeremybenn
rm -rf conftest.dSYM
10248 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249
      conftest$ac_exeext conftest.$ac_ext
10250
LIBS=$ac_check_lib_save_LIBS
10251
fi
10252 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10253
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10254
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10255 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10256
else
10257 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10258
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10259 19 jeremybenn
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10260 82 jeremybenn
  $as_echo_n "(cached) " >&6
10261 19 jeremybenn
else
10262
  ac_check_lib_save_LIBS=$LIBS
10263
LIBS="-lsvld  $LIBS"
10264
cat >conftest.$ac_ext <<_ACEOF
10265
/* confdefs.h.  */
10266
_ACEOF
10267
cat confdefs.h >>conftest.$ac_ext
10268
cat >>conftest.$ac_ext <<_ACEOF
10269
/* end confdefs.h.  */
10270
 
10271
/* Override any GCC internal prototype to avoid an error.
10272
   Use char because int might match the return type of a GCC
10273
   builtin and then its argument prototype would still apply.  */
10274
#ifdef __cplusplus
10275
extern "C"
10276
#endif
10277
char dlopen ();
10278
int
10279
main ()
10280
{
10281
return dlopen ();
10282
  ;
10283
  return 0;
10284
}
10285
_ACEOF
10286
rm -f conftest.$ac_objext conftest$ac_exeext
10287
if { (ac_try="$ac_link"
10288
case "(($ac_try" in
10289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290
  *) ac_try_echo=$ac_try;;
10291
esac
10292 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293
$as_echo "$ac_try_echo") >&5
10294 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10295
  ac_status=$?
10296
  grep -v '^ *+' conftest.er1 >conftest.err
10297
  rm -f conftest.er1
10298
  cat conftest.err >&5
10299 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 19 jeremybenn
  (exit $ac_status); } && {
10301
         test -z "$ac_c_werror_flag" ||
10302
         test ! -s conftest.err
10303 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10304
         test "$cross_compiling" = yes ||
10305
         $as_test_x conftest$ac_exeext
10306
       }; then
10307 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
10308
else
10309 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10310 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10311
 
10312
        ac_cv_lib_svld_dlopen=no
10313
fi
10314
 
10315 82 jeremybenn
rm -rf conftest.dSYM
10316 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10317
      conftest$ac_exeext conftest.$ac_ext
10318
LIBS=$ac_check_lib_save_LIBS
10319
fi
10320 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10321
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10322
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10323 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10324
else
10325 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10326
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10327 19 jeremybenn
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10328 82 jeremybenn
  $as_echo_n "(cached) " >&6
10329 19 jeremybenn
else
10330
  ac_check_lib_save_LIBS=$LIBS
10331
LIBS="-ldld  $LIBS"
10332
cat >conftest.$ac_ext <<_ACEOF
10333
/* confdefs.h.  */
10334
_ACEOF
10335
cat confdefs.h >>conftest.$ac_ext
10336
cat >>conftest.$ac_ext <<_ACEOF
10337
/* end confdefs.h.  */
10338
 
10339
/* Override any GCC internal prototype to avoid an error.
10340
   Use char because int might match the return type of a GCC
10341
   builtin and then its argument prototype would still apply.  */
10342
#ifdef __cplusplus
10343
extern "C"
10344
#endif
10345
char dld_link ();
10346
int
10347
main ()
10348
{
10349
return dld_link ();
10350
  ;
10351
  return 0;
10352
}
10353
_ACEOF
10354
rm -f conftest.$ac_objext conftest$ac_exeext
10355
if { (ac_try="$ac_link"
10356
case "(($ac_try" in
10357
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358
  *) ac_try_echo=$ac_try;;
10359
esac
10360 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10361
$as_echo "$ac_try_echo") >&5
10362 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10363
  ac_status=$?
10364
  grep -v '^ *+' conftest.er1 >conftest.err
10365
  rm -f conftest.er1
10366
  cat conftest.err >&5
10367 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 19 jeremybenn
  (exit $ac_status); } && {
10369
         test -z "$ac_c_werror_flag" ||
10370
         test ! -s conftest.err
10371 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10372
         test "$cross_compiling" = yes ||
10373
         $as_test_x conftest$ac_exeext
10374
       }; then
10375 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
10376
else
10377 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10378 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10379
 
10380
        ac_cv_lib_dld_dld_link=no
10381
fi
10382
 
10383 82 jeremybenn
rm -rf conftest.dSYM
10384 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10385
      conftest$ac_exeext conftest.$ac_ext
10386
LIBS=$ac_check_lib_save_LIBS
10387
fi
10388 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10389
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10390
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10391
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10392 19 jeremybenn
fi
10393
 
10394
 
10395
fi
10396
 
10397
 
10398
fi
10399
 
10400
 
10401
fi
10402
 
10403
 
10404
fi
10405
 
10406
 
10407
fi
10408
 
10409
    ;;
10410
  esac
10411
 
10412
  if test "x$lt_cv_dlopen" != xno; then
10413
    enable_dlopen=yes
10414
  else
10415
    enable_dlopen=no
10416
  fi
10417
 
10418
  case $lt_cv_dlopen in
10419
  dlopen)
10420
    save_CPPFLAGS="$CPPFLAGS"
10421
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10422
 
10423
    save_LDFLAGS="$LDFLAGS"
10424
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10425
 
10426
    save_LIBS="$LIBS"
10427
    LIBS="$lt_cv_dlopen_libs $LIBS"
10428
 
10429 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10430
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10431 19 jeremybenn
if test "${lt_cv_dlopen_self+set}" = set; then
10432 82 jeremybenn
  $as_echo_n "(cached) " >&6
10433 19 jeremybenn
else
10434
          if test "$cross_compiling" = yes; then :
10435
  lt_cv_dlopen_self=cross
10436
else
10437
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10438
  lt_status=$lt_dlunknown
10439 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10440 91 jeremybenn
#line 10440 "configure"
10441 19 jeremybenn
#include "confdefs.h"
10442
 
10443
#if HAVE_DLFCN_H
10444
#include 
10445
#endif
10446
 
10447
#include 
10448
 
10449
#ifdef RTLD_GLOBAL
10450
#  define LT_DLGLOBAL           RTLD_GLOBAL
10451
#else
10452
#  ifdef DL_GLOBAL
10453
#    define LT_DLGLOBAL         DL_GLOBAL
10454
#  else
10455
#    define LT_DLGLOBAL         0
10456
#  endif
10457
#endif
10458
 
10459
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10460
   find out it does not work in some platform. */
10461
#ifndef LT_DLLAZY_OR_NOW
10462
#  ifdef RTLD_LAZY
10463
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10464
#  else
10465
#    ifdef DL_LAZY
10466
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10467
#    else
10468
#      ifdef RTLD_NOW
10469
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10470
#      else
10471
#        ifdef DL_NOW
10472
#          define LT_DLLAZY_OR_NOW      DL_NOW
10473
#        else
10474
#          define LT_DLLAZY_OR_NOW      0
10475
#        endif
10476
#      endif
10477
#    endif
10478
#  endif
10479
#endif
10480
 
10481
void fnord() { int i=42;}
10482
int main ()
10483
{
10484
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10485
  int status = $lt_dlunknown;
10486
 
10487
  if (self)
10488
    {
10489
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10490
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10491
      /* dlclose (self); */
10492
    }
10493
  else
10494
    puts (dlerror ());
10495
 
10496 82 jeremybenn
  return status;
10497 19 jeremybenn
}
10498 82 jeremybenn
_LT_EOF
10499 19 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500
  (eval $ac_link) 2>&5
10501
  ac_status=$?
10502 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 19 jeremybenn
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10504
    (./conftest; exit; ) >&5 2>/dev/null
10505
    lt_status=$?
10506
    case x$lt_status in
10507
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10508
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10509
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10510
    esac
10511
  else :
10512
    # compilation failed
10513
    lt_cv_dlopen_self=no
10514
  fi
10515
fi
10516
rm -fr conftest*
10517
 
10518
 
10519
fi
10520 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10521
$as_echo "$lt_cv_dlopen_self" >&6; }
10522 19 jeremybenn
 
10523
    if test "x$lt_cv_dlopen_self" = xyes; then
10524
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10525 82 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10526
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10527 19 jeremybenn
if test "${lt_cv_dlopen_self_static+set}" = set; then
10528 82 jeremybenn
  $as_echo_n "(cached) " >&6
10529 19 jeremybenn
else
10530
          if test "$cross_compiling" = yes; then :
10531
  lt_cv_dlopen_self_static=cross
10532
else
10533
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10534
  lt_status=$lt_dlunknown
10535 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10536 91 jeremybenn
#line 10536 "configure"
10537 19 jeremybenn
#include "confdefs.h"
10538
 
10539
#if HAVE_DLFCN_H
10540
#include 
10541
#endif
10542
 
10543
#include 
10544
 
10545
#ifdef RTLD_GLOBAL
10546
#  define LT_DLGLOBAL           RTLD_GLOBAL
10547
#else
10548
#  ifdef DL_GLOBAL
10549
#    define LT_DLGLOBAL         DL_GLOBAL
10550
#  else
10551
#    define LT_DLGLOBAL         0
10552
#  endif
10553
#endif
10554
 
10555
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10556
   find out it does not work in some platform. */
10557
#ifndef LT_DLLAZY_OR_NOW
10558
#  ifdef RTLD_LAZY
10559
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10560
#  else
10561
#    ifdef DL_LAZY
10562
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10563
#    else
10564
#      ifdef RTLD_NOW
10565
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10566
#      else
10567
#        ifdef DL_NOW
10568
#          define LT_DLLAZY_OR_NOW      DL_NOW
10569
#        else
10570
#          define LT_DLLAZY_OR_NOW      0
10571
#        endif
10572
#      endif
10573
#    endif
10574
#  endif
10575
#endif
10576
 
10577
void fnord() { int i=42;}
10578
int main ()
10579
{
10580
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10581
  int status = $lt_dlunknown;
10582
 
10583
  if (self)
10584
    {
10585
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10586
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10587
      /* dlclose (self); */
10588
    }
10589
  else
10590
    puts (dlerror ());
10591
 
10592 82 jeremybenn
  return status;
10593 19 jeremybenn
}
10594 82 jeremybenn
_LT_EOF
10595 19 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596
  (eval $ac_link) 2>&5
10597
  ac_status=$?
10598 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 19 jeremybenn
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10600
    (./conftest; exit; ) >&5 2>/dev/null
10601
    lt_status=$?
10602
    case x$lt_status in
10603
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10604
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10605
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10606
    esac
10607
  else :
10608
    # compilation failed
10609
    lt_cv_dlopen_self_static=no
10610
  fi
10611
fi
10612
rm -fr conftest*
10613
 
10614
 
10615
fi
10616 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10617
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10618 19 jeremybenn
    fi
10619
 
10620
    CPPFLAGS="$save_CPPFLAGS"
10621
    LDFLAGS="$save_LDFLAGS"
10622
    LIBS="$save_LIBS"
10623
    ;;
10624
  esac
10625
 
10626
  case $lt_cv_dlopen_self in
10627
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10628
  *) enable_dlopen_self=unknown ;;
10629
  esac
10630
 
10631
  case $lt_cv_dlopen_self_static in
10632
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10633
  *) enable_dlopen_self_static=unknown ;;
10634
  esac
10635
fi
10636
 
10637
 
10638
 
10639
 
10640
 
10641
 
10642
 
10643
 
10644
 
10645
 
10646
 
10647
 
10648
 
10649
 
10650
 
10651
 
10652
 
10653 82 jeremybenn
striplib=
10654
old_striplib=
10655
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10656
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10657
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10658
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10659
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10660
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10661
$as_echo "yes" >&6; }
10662
else
10663
# FIXME - insert some real tests, host_os isn't really good enough
10664 19 jeremybenn
  case $host_os in
10665 82 jeremybenn
  darwin*)
10666
    if test -n "$STRIP" ; then
10667
      striplib="$STRIP -x"
10668
      old_striplib="$STRIP -S"
10669
      { $as_echo "$as_me:$LINENO: result: yes" >&5
10670
$as_echo "yes" >&6; }
10671 19 jeremybenn
    else
10672 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: no" >&5
10673
$as_echo "no" >&6; }
10674 19 jeremybenn
    fi
10675
    ;;
10676
  *)
10677 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: no" >&5
10678
$as_echo "no" >&6; }
10679 19 jeremybenn
    ;;
10680
  esac
10681
fi
10682
 
10683
 
10684
 
10685
 
10686
 
10687
 
10688
 
10689
 
10690
 
10691
 
10692
 
10693
 
10694 82 jeremybenn
  # Report which library types will actually be built
10695
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10696
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10697
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10698
$as_echo "$can_build_shared" >&6; }
10699 19 jeremybenn
 
10700 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10701
$as_echo_n "checking whether to build shared libraries... " >&6; }
10702
  test "$can_build_shared" = "no" && enable_shared=no
10703 19 jeremybenn
 
10704 82 jeremybenn
  # On AIX, shared libraries and static libraries use the same namespace, and
10705
  # are all built from PIC.
10706 19 jeremybenn
  case $host_os in
10707 82 jeremybenn
  aix3*)
10708 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10709 82 jeremybenn
    if test -n "$RANLIB"; then
10710
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10711
      postinstall_cmds='$RANLIB $lib'
10712 19 jeremybenn
    fi
10713
    ;;
10714
 
10715 82 jeremybenn
  aix[4-9]*)
10716
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10717
      test "$enable_shared" = yes && enable_static=no
10718 19 jeremybenn
    fi
10719
    ;;
10720
  esac
10721 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10722
$as_echo "$enable_shared" >&6; }
10723 19 jeremybenn
 
10724 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10725
$as_echo_n "checking whether to build static libraries... " >&6; }
10726
  # Make sure either enable_shared or enable_static is yes.
10727
  test "$enable_shared" = yes || enable_static=yes
10728
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10729
$as_echo "$enable_static" >&6; }
10730 19 jeremybenn
 
10731
 
10732
 
10733
 
10734
fi
10735
ac_ext=c
10736
ac_cpp='$CPP $CPPFLAGS'
10737
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10738
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10739
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10740
 
10741
CC="$lt_save_CC"
10742
 
10743
 
10744
 
10745
 
10746
 
10747
 
10748
 
10749
 
10750
 
10751
 
10752
 
10753
 
10754
 
10755 82 jeremybenn
        ac_config_commands="$ac_config_commands libtool"
10756 19 jeremybenn
 
10757
 
10758
 
10759
 
10760 82 jeremybenn
# Only expand once:
10761 19 jeremybenn
 
10762
 
10763 82 jeremybenn
am__api_version='1.11'
10764 19 jeremybenn
 
10765
# Find a good install program.  We prefer a C program (faster),
10766
# so one script is as good as another.  But avoid the broken or
10767
# incompatible versions:
10768
# SysV /etc/install, /usr/sbin/install
10769
# SunOS /usr/etc/install
10770
# IRIX /sbin/install
10771
# AIX /bin/install
10772
# AmigaOS /C/install, which installs bootblocks on floppy discs
10773
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10774
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10775
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10776
# OS/2's system install, which has a completely different semantic
10777
# ./install, which can be erroneously created by make from ./install.sh.
10778 82 jeremybenn
# Reject install programs that cannot install multiple files.
10779
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10780
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10781 19 jeremybenn
if test -z "$INSTALL"; then
10782
if test "${ac_cv_path_install+set}" = set; then
10783 82 jeremybenn
  $as_echo_n "(cached) " >&6
10784 19 jeremybenn
else
10785
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786
for as_dir in $PATH
10787
do
10788
  IFS=$as_save_IFS
10789
  test -z "$as_dir" && as_dir=.
10790
  # Account for people who put trailing slashes in PATH elements.
10791
case $as_dir/ in
10792
  ./ | .// | /cC/* | \
10793
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10794
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10795
  /usr/ucb/* ) ;;
10796
  *)
10797
    # OSF1 and SCO ODT 3.0 have their own names for install.
10798
    # Don't use installbsd from OSF since it installs stuff as root
10799
    # by default.
10800
    for ac_prog in ginstall scoinst install; do
10801
      for ac_exec_ext in '' $ac_executable_extensions; do
10802
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10803
          if test $ac_prog = install &&
10804
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10805
            # AIX install.  It has an incompatible calling convention.
10806
            :
10807
          elif test $ac_prog = install &&
10808
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10809
            # program-specific install script used by HP pwplus--don't use.
10810
            :
10811
          else
10812 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
10813
            echo one > conftest.one
10814
            echo two > conftest.two
10815
            mkdir conftest.dir
10816
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10817
              test -s conftest.one && test -s conftest.two &&
10818
              test -s conftest.dir/conftest.one &&
10819
              test -s conftest.dir/conftest.two
10820
            then
10821
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10822
              break 3
10823
            fi
10824 19 jeremybenn
          fi
10825
        fi
10826
      done
10827
    done
10828
    ;;
10829
esac
10830 82 jeremybenn
 
10831 19 jeremybenn
done
10832
IFS=$as_save_IFS
10833
 
10834 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
10835 19 jeremybenn
 
10836
fi
10837
  if test "${ac_cv_path_install+set}" = set; then
10838
    INSTALL=$ac_cv_path_install
10839
  else
10840
    # As a last resort, use the slow shell script.  Don't cache a
10841
    # value for INSTALL within a source directory, because that will
10842
    # break other packages using the cache if that directory is
10843
    # removed, or if the value is a relative name.
10844
    INSTALL=$ac_install_sh
10845
  fi
10846
fi
10847 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10848
$as_echo "$INSTALL" >&6; }
10849 19 jeremybenn
 
10850
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10851
# It thinks the first close brace ends the variable substitution.
10852
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10853
 
10854
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10855
 
10856
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10857
 
10858 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10859
$as_echo_n "checking whether build environment is sane... " >&6; }
10860 19 jeremybenn
# Just in case
10861
sleep 1
10862
echo timestamp > conftest.file
10863 82 jeremybenn
# Reject unsafe characters in $srcdir or the absolute working directory
10864
# name.  Accept space and tab only in the latter.
10865
am_lf='
10866
'
10867
case `pwd` in
10868
  *[\\\"\#\$\&\'\`$am_lf]*)
10869
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
10870
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
10871
   { (exit 1); exit 1; }; };;
10872
esac
10873
case $srcdir in
10874
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10875
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
10876
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
10877
   { (exit 1); exit 1; }; };;
10878
esac
10879
 
10880 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10881
# arguments.  Must try -L first in case configure is actually a
10882
# symlink; some systems play weird games with the mod time of symlinks
10883
# (eg FreeBSD returns the mod time of the symlink's containing
10884
# directory).
10885
if (
10886 82 jeremybenn
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10887 19 jeremybenn
   if test "$*" = "X"; then
10888
      # -L didn't work.
10889 82 jeremybenn
      set X `ls -t "$srcdir/configure" conftest.file`
10890 19 jeremybenn
   fi
10891
   rm -f conftest.file
10892
   if test "$*" != "X $srcdir/configure conftest.file" \
10893
      && test "$*" != "X conftest.file $srcdir/configure"; then
10894
 
10895
      # If neither matched, then we have a broken ls.  This can happen
10896
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10897
      # broken ls alias from the environment.  This has actually
10898
      # happened.  Such a system could not be considered "sane".
10899 82 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
10900 19 jeremybenn
alias in your environment" >&5
10901 82 jeremybenn
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
10902 19 jeremybenn
alias in your environment" >&2;}
10903
   { (exit 1); exit 1; }; }
10904
   fi
10905
 
10906
   test "$2" = conftest.file
10907
   )
10908
then
10909
   # Ok.
10910
   :
10911
else
10912 82 jeremybenn
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10913 19 jeremybenn
Check your system clock" >&5
10914 82 jeremybenn
$as_echo "$as_me: error: newly created file is older than distributed files!
10915 19 jeremybenn
Check your system clock" >&2;}
10916
   { (exit 1); exit 1; }; }
10917
fi
10918 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: yes" >&5
10919
$as_echo "yes" >&6; }
10920 19 jeremybenn
test "$program_prefix" != NONE &&
10921
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10922
# Use a double $ so make ignores it.
10923
test "$program_suffix" != NONE &&
10924
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10925 82 jeremybenn
# Double any \ or $.
10926 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10927 82 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10928
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10929 19 jeremybenn
 
10930
# expand $ac_aux_dir to an absolute path
10931
am_aux_dir=`cd $ac_aux_dir && pwd`
10932
 
10933 82 jeremybenn
if test x"${MISSING+set}" != xset; then
10934
  case $am_aux_dir in
10935
  *\ * | *\     *)
10936
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10937
  *)
10938
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10939
  esac
10940
fi
10941 19 jeremybenn
# Use eval to expand $SHELL
10942
if eval "$MISSING --run true"; then
10943
  am_missing_run="$MISSING --run "
10944
else
10945
  am_missing_run=
10946 82 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10947
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10948 19 jeremybenn
fi
10949
 
10950 82 jeremybenn
if test x"${install_sh}" != xset; then
10951
  case $am_aux_dir in
10952
  *\ * | *\     *)
10953
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10954
  *)
10955
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10956
  esac
10957
fi
10958
 
10959
# Installed binaries are usually stripped using `strip' when the user
10960
# run `make install-strip'.  However `strip' might not be the right
10961
# tool to use in cross-compilation environments, therefore Automake
10962
# will honor the `STRIP' environment variable to overrule this program.
10963
if test "$cross_compiling" != no; then
10964
  if test -n "$ac_tool_prefix"; then
10965
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10966
set dummy ${ac_tool_prefix}strip; ac_word=$2
10967
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10968
$as_echo_n "checking for $ac_word... " >&6; }
10969
if test "${ac_cv_prog_STRIP+set}" = set; then
10970
  $as_echo_n "(cached) " >&6
10971
else
10972
  if test -n "$STRIP"; then
10973
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10974
else
10975
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976
for as_dir in $PATH
10977
do
10978
  IFS=$as_save_IFS
10979
  test -z "$as_dir" && as_dir=.
10980
  for ac_exec_ext in '' $ac_executable_extensions; do
10981
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10982
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10983
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10984
    break 2
10985
  fi
10986
done
10987
done
10988
IFS=$as_save_IFS
10989
 
10990
fi
10991
fi
10992
STRIP=$ac_cv_prog_STRIP
10993
if test -n "$STRIP"; then
10994
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
10995
$as_echo "$STRIP" >&6; }
10996
else
10997
  { $as_echo "$as_me:$LINENO: result: no" >&5
10998
$as_echo "no" >&6; }
10999
fi
11000
 
11001
 
11002
fi
11003
if test -z "$ac_cv_prog_STRIP"; then
11004
  ac_ct_STRIP=$STRIP
11005
  # Extract the first word of "strip", so it can be a program name with args.
11006
set dummy strip; ac_word=$2
11007
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11008
$as_echo_n "checking for $ac_word... " >&6; }
11009
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11010
  $as_echo_n "(cached) " >&6
11011
else
11012
  if test -n "$ac_ct_STRIP"; then
11013
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11014
else
11015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016
for as_dir in $PATH
11017
do
11018
  IFS=$as_save_IFS
11019
  test -z "$as_dir" && as_dir=.
11020
  for ac_exec_ext in '' $ac_executable_extensions; do
11021
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11022
    ac_cv_prog_ac_ct_STRIP="strip"
11023
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11024
    break 2
11025
  fi
11026
done
11027
done
11028
IFS=$as_save_IFS
11029
 
11030
fi
11031
fi
11032
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11033
if test -n "$ac_ct_STRIP"; then
11034
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11035
$as_echo "$ac_ct_STRIP" >&6; }
11036
else
11037
  { $as_echo "$as_me:$LINENO: result: no" >&5
11038
$as_echo "no" >&6; }
11039
fi
11040
 
11041
  if test "x$ac_ct_STRIP" = x; then
11042
    STRIP=":"
11043
  else
11044
    case $cross_compiling:$ac_tool_warned in
11045
yes:)
11046
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11047
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11048
ac_tool_warned=yes ;;
11049
esac
11050
    STRIP=$ac_ct_STRIP
11051
  fi
11052
else
11053
  STRIP="$ac_cv_prog_STRIP"
11054
fi
11055
 
11056
fi
11057
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11058
 
11059
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
11060
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11061 19 jeremybenn
if test -z "$MKDIR_P"; then
11062
  if test "${ac_cv_path_mkdir+set}" = set; then
11063 82 jeremybenn
  $as_echo_n "(cached) " >&6
11064 19 jeremybenn
else
11065
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11067
do
11068
  IFS=$as_save_IFS
11069
  test -z "$as_dir" && as_dir=.
11070
  for ac_prog in mkdir gmkdir; do
11071
         for ac_exec_ext in '' $ac_executable_extensions; do
11072
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11073
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11074
             'mkdir (GNU coreutils) '* | \
11075
             'mkdir (coreutils) '* | \
11076
             'mkdir (fileutils) '4.1*)
11077
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11078
               break 3;;
11079
           esac
11080
         done
11081
       done
11082
done
11083
IFS=$as_save_IFS
11084
 
11085
fi
11086
 
11087
  if test "${ac_cv_path_mkdir+set}" = set; then
11088
    MKDIR_P="$ac_cv_path_mkdir -p"
11089
  else
11090
    # As a last resort, use the slow shell script.  Don't cache a
11091
    # value for MKDIR_P within a source directory, because that will
11092
    # break other packages using the cache if that directory is
11093
    # removed, or if the value is a relative name.
11094
    test -d ./--version && rmdir ./--version
11095
    MKDIR_P="$ac_install_sh -d"
11096
  fi
11097
fi
11098 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
11099
$as_echo "$MKDIR_P" >&6; }
11100 19 jeremybenn
 
11101
mkdir_p="$MKDIR_P"
11102
case $mkdir_p in
11103
  [\\/$]* | ?:[\\/]*) ;;
11104
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11105
esac
11106
 
11107
for ac_prog in gawk mawk nawk awk
11108
do
11109
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11110
set dummy $ac_prog; ac_word=$2
11111 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11112
$as_echo_n "checking for $ac_word... " >&6; }
11113 19 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then
11114 82 jeremybenn
  $as_echo_n "(cached) " >&6
11115 19 jeremybenn
else
11116
  if test -n "$AWK"; then
11117
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
11118
else
11119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120
for as_dir in $PATH
11121
do
11122
  IFS=$as_save_IFS
11123
  test -z "$as_dir" && as_dir=.
11124
  for ac_exec_ext in '' $ac_executable_extensions; do
11125
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11126
    ac_cv_prog_AWK="$ac_prog"
11127 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11128 19 jeremybenn
    break 2
11129
  fi
11130
done
11131
done
11132
IFS=$as_save_IFS
11133
 
11134
fi
11135
fi
11136
AWK=$ac_cv_prog_AWK
11137
if test -n "$AWK"; then
11138 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11139
$as_echo "$AWK" >&6; }
11140 19 jeremybenn
else
11141 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11142
$as_echo "no" >&6; }
11143 19 jeremybenn
fi
11144
 
11145
 
11146
  test -n "$AWK" && break
11147
done
11148
 
11149 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11150
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11151
set x ${MAKE-make}
11152
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11153 19 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11154 82 jeremybenn
  $as_echo_n "(cached) " >&6
11155 19 jeremybenn
else
11156
  cat >conftest.make <<\_ACEOF
11157
SHELL = /bin/sh
11158
all:
11159
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11160
_ACEOF
11161
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11162
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11163
  *@@@%%%=?*=@@@%%%*)
11164
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11165
  *)
11166
    eval ac_cv_prog_make_${ac_make}_set=no;;
11167
esac
11168
rm -f conftest.make
11169
fi
11170
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11171 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
11172
$as_echo "yes" >&6; }
11173 19 jeremybenn
  SET_MAKE=
11174
else
11175 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11176
$as_echo "no" >&6; }
11177 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11178
fi
11179
 
11180
rm -rf .tst 2>/dev/null
11181
mkdir .tst 2>/dev/null
11182
if test -d .tst; then
11183
  am__leading_dot=.
11184
else
11185
  am__leading_dot=_
11186
fi
11187
rmdir .tst 2>/dev/null
11188
 
11189
DEPDIR="${am__leading_dot}deps"
11190
 
11191
ac_config_commands="$ac_config_commands depfiles"
11192
 
11193
 
11194
am_make=${MAKE-make}
11195
cat > confinc << 'END'
11196
am__doit:
11197 82 jeremybenn
        @echo this is the am__doit target
11198 19 jeremybenn
.PHONY: am__doit
11199
END
11200
# If we don't find an include directive, just comment out the code.
11201 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
11202
$as_echo_n "checking for style of include used by $am_make... " >&6; }
11203 19 jeremybenn
am__include="#"
11204
am__quote=
11205
_am_result=none
11206
# First try GNU make style include.
11207
echo "include confinc" > confmf
11208 82 jeremybenn
# Ignore all kinds of additional output from `make'.
11209
case `$am_make -s -f confmf 2> /dev/null` in #(
11210
*the\ am__doit\ target*)
11211
  am__include=include
11212
  am__quote=
11213
  _am_result=GNU
11214
  ;;
11215
esac
11216 19 jeremybenn
# Now try BSD make style include.
11217
if test "$am__include" = "#"; then
11218
   echo '.include "confinc"' > confmf
11219 82 jeremybenn
   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=BSD
11224
     ;;
11225
   esac
11226 19 jeremybenn
fi
11227
 
11228
 
11229 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
11230
$as_echo "$_am_result" >&6; }
11231 19 jeremybenn
rm -f confinc confmf
11232
 
11233
# Check whether --enable-dependency-tracking was given.
11234
if test "${enable_dependency_tracking+set}" = set; then
11235
  enableval=$enable_dependency_tracking;
11236
fi
11237
 
11238
if test "x$enable_dependency_tracking" != xno; then
11239
  am_depcomp="$ac_aux_dir/depcomp"
11240
  AMDEPBACKSLASH='\'
11241
fi
11242
 if test "x$enable_dependency_tracking" != xno; then
11243
  AMDEP_TRUE=
11244
  AMDEP_FALSE='#'
11245
else
11246
  AMDEP_TRUE='#'
11247
  AMDEP_FALSE=
11248
fi
11249
 
11250
 
11251
if test "`cd $srcdir && pwd`" != "`pwd`"; then
11252
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11253
  # is not polluted with repeated "-I."
11254
  am__isrc=' -I$(srcdir)'
11255
  # test to see if srcdir already configured
11256
  if test -f $srcdir/config.status; then
11257 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11258
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11259 19 jeremybenn
   { (exit 1); exit 1; }; }
11260
  fi
11261
fi
11262
 
11263
# test whether we have cygpath
11264
if test -z "$CYGPATH_W"; then
11265
  if (cygpath --version) >/dev/null 2>/dev/null; then
11266
    CYGPATH_W='cygpath -w'
11267
  else
11268
    CYGPATH_W=echo
11269
  fi
11270
fi
11271
 
11272
 
11273
# Define the identity of the package.
11274
 PACKAGE='or1ksim'
11275 89 jeremybenn
 VERSION='2010-04-21'
11276 19 jeremybenn
 
11277
 
11278
cat >>confdefs.h <<_ACEOF
11279
#define PACKAGE "$PACKAGE"
11280
_ACEOF
11281
 
11282
 
11283
cat >>confdefs.h <<_ACEOF
11284
#define VERSION "$VERSION"
11285
_ACEOF
11286
 
11287
# Some tools Automake needs.
11288
 
11289
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11290
 
11291
 
11292
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11293
 
11294
 
11295
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11296
 
11297
 
11298
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11299
 
11300
 
11301
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11302
 
11303
# We need awk for the "check" target.  The system "awk" is bad on
11304
# some platforms.
11305
# Always define AMTAR for backward compatibility.
11306
 
11307
AMTAR=${AMTAR-"${am_missing_run}tar"}
11308
 
11309
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11310
 
11311
 
11312
 
11313
 
11314
depcc="$CC"   am_compiler_list=
11315
 
11316 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11317
$as_echo_n "checking dependency style of $depcc... " >&6; }
11318 19 jeremybenn
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11319 82 jeremybenn
  $as_echo_n "(cached) " >&6
11320 19 jeremybenn
else
11321
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11322
  # We make a subdir and do the tests there.  Otherwise we can end up
11323
  # making bogus files that we don't know about and never remove.  For
11324
  # instance it was reported that on HP-UX the gcc test will end up
11325
  # making a dummy file named `D' -- because `-MD' means `put the output
11326
  # in D'.
11327
  mkdir conftest.dir
11328
  # Copy depcomp to subdir because otherwise we won't find it if we're
11329
  # using a relative directory.
11330
  cp "$am_depcomp" conftest.dir
11331
  cd conftest.dir
11332
  # We will build objects and dependencies in a subdirectory because
11333
  # it helps to detect inapplicable dependency modes.  For instance
11334
  # both Tru64's cc and ICC support -MD to output dependencies as a
11335
  # side effect of compilation, but ICC will put the dependencies in
11336
  # the current directory while Tru64 will put them in the object
11337
  # directory.
11338
  mkdir sub
11339
 
11340
  am_cv_CC_dependencies_compiler_type=none
11341
  if test "$am_compiler_list" = ""; then
11342
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11343
  fi
11344 82 jeremybenn
  am__universal=false
11345
  case " $depcc " in #(
11346
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11347
     esac
11348
 
11349 19 jeremybenn
  for depmode in $am_compiler_list; do
11350
    # Setup a source with many dependencies, because some compilers
11351
    # like to wrap large dependency lists on column 80 (with \), and
11352
    # we should not choose a depcomp mode which is confused by this.
11353
    #
11354
    # We need to recreate these files for each test, as the compiler may
11355
    # overwrite some of them when testing with obscure command lines.
11356
    # This happens at least with the AIX C compiler.
11357
    : > sub/conftest.c
11358
    for i in 1 2 3 4 5 6; do
11359
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11360
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11361
      # Solaris 8's {/usr,}/bin/sh.
11362
      touch sub/conftst$i.h
11363
    done
11364
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11365
 
11366 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11367
    # mode.  It turns out that the SunPro C++ compiler does not properly
11368
    # handle `-M -o', and we need to detect this.  Also, some Intel
11369
    # versions had trouble with output in subdirs
11370
    am__obj=sub/conftest.${OBJEXT-o}
11371
    am__minus_obj="-o $am__obj"
11372 19 jeremybenn
    case $depmode in
11373 82 jeremybenn
    gcc)
11374
      # This depmode causes a compiler race in universal mode.
11375
      test "$am__universal" = false || continue
11376
      ;;
11377 19 jeremybenn
    nosideeffect)
11378
      # after this tag, mechanisms are not by side-effect, so they'll
11379
      # only be used when explicitly requested
11380
      if test "x$enable_dependency_tracking" = xyes; then
11381
        continue
11382
      else
11383
        break
11384
      fi
11385
      ;;
11386 82 jeremybenn
    msvisualcpp | msvcmsys)
11387
      # This compiler won't grok `-c -o', but also, the minuso test has
11388
      # not run yet.  These depmodes are late enough in the game, and
11389
      # so weak that their functioning should not be impacted.
11390
      am__obj=conftest.${OBJEXT-o}
11391
      am__minus_obj=
11392
      ;;
11393 19 jeremybenn
    none) break ;;
11394
    esac
11395
    if depmode=$depmode \
11396 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11397 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11398 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11399 19 jeremybenn
         >/dev/null 2>conftest.err &&
11400
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11401
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11402 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11403 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11404
      # icc doesn't choke on unknown options, it will just issue warnings
11405
      # or remarks (even with -Werror).  So we grep stderr for any message
11406
      # that says an option was ignored or not supported.
11407
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11408
      #   icc: Command line warning: ignoring option '-M'; no argument required
11409
      # The diagnosis changed in icc 8.0:
11410
      #   icc: Command line remark: option '-MP' not supported
11411
      if (grep 'ignoring option' conftest.err ||
11412
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11413
        am_cv_CC_dependencies_compiler_type=$depmode
11414
        break
11415
      fi
11416
    fi
11417
  done
11418
 
11419
  cd ..
11420
  rm -rf conftest.dir
11421
else
11422
  am_cv_CC_dependencies_compiler_type=none
11423
fi
11424
 
11425
fi
11426 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11427
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11428 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11429
 
11430
 if
11431
  test "x$enable_dependency_tracking" != xno \
11432
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11433
  am__fastdepCC_TRUE=
11434
  am__fastdepCC_FALSE='#'
11435
else
11436
  am__fastdepCC_TRUE='#'
11437
  am__fastdepCC_FALSE=
11438
fi
11439
 
11440
 
11441
 
11442 91 jeremybenn
 
11443 82 jeremybenn
ac_config_headers="$ac_config_headers config.h"
11444
 
11445
 
11446
 
11447
 
11448
# make sure we are using a recent autoconf version
11449
 
11450
 
11451
# yuck.
11452
case "$target_cpu" in
11453
or32*)  CPU_ARCH=or32;
11454
        ARCH_ISA=OR32;
11455
 
11456
cat >>confdefs.h <<\_ACEOF
11457
#define OR32_TYPES 1
11458
_ACEOF
11459
;;
11460
dlx*)   CPU_ARCH=dlx;
11461
        ARCH_ISA=DLX;;
11462
*)      { $as_echo "$as_me:$LINENO: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
11463
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
11464
        CPU_ARCH=or32;
11465
        ARCH_ISA=OR32;
11466
 
11467
cat >>confdefs.h <<\_ACEOF
11468
#define OR32_TYPES 1
11469
_ACEOF
11470
;;
11471
esac
11472
 
11473
# determine endianism from target CPU name. If it has "little" in the name,
11474
# then its litte endian, otherwise its big endian (default for OR1K)
11475
case "$target_cpu" in
11476
*little*)
11477
cat >>confdefs.h <<\_ACEOF
11478
#define OR32_LITTLE_ENDIAN 1
11479
_ACEOF
11480
;;
11481
       *)
11482
cat >>confdefs.h <<\_ACEOF
11483
#define OR32_BIG_ENDIAN 1
11484
_ACEOF
11485
;;
11486
esac
11487
 
11488
 
11489
 
11490
# Set the CFLAGS we want
11491
CFLAGS="$CFLAGS -g -Wall -Werror -O2 -D$ARCH_ISA"
11492
 
11493
# By default we simply use the C compiler to build assembly code.
11494
 
11495
test "${CCAS+set}" = set || CCAS=$CC
11496
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11497
 
11498
 
11499
 
11500
depcc="$CCAS"   am_compiler_list=
11501
 
11502
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11503
$as_echo_n "checking dependency style of $depcc... " >&6; }
11504
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11505
  $as_echo_n "(cached) " >&6
11506 19 jeremybenn
else
11507
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11508
  # We make a subdir and do the tests there.  Otherwise we can end up
11509
  # making bogus files that we don't know about and never remove.  For
11510
  # instance it was reported that on HP-UX the gcc test will end up
11511
  # making a dummy file named `D' -- because `-MD' means `put the output
11512
  # in D'.
11513
  mkdir conftest.dir
11514
  # Copy depcomp to subdir because otherwise we won't find it if we're
11515
  # using a relative directory.
11516
  cp "$am_depcomp" conftest.dir
11517
  cd conftest.dir
11518
  # We will build objects and dependencies in a subdirectory because
11519
  # it helps to detect inapplicable dependency modes.  For instance
11520
  # both Tru64's cc and ICC support -MD to output dependencies as a
11521
  # side effect of compilation, but ICC will put the dependencies in
11522
  # the current directory while Tru64 will put them in the object
11523
  # directory.
11524
  mkdir sub
11525
 
11526 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11527 19 jeremybenn
  if test "$am_compiler_list" = ""; then
11528
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11529
  fi
11530 82 jeremybenn
  am__universal=false
11531
 
11532
 
11533 19 jeremybenn
  for depmode in $am_compiler_list; do
11534
    # Setup a source with many dependencies, because some compilers
11535
    # like to wrap large dependency lists on column 80 (with \), and
11536
    # we should not choose a depcomp mode which is confused by this.
11537
    #
11538
    # We need to recreate these files for each test, as the compiler may
11539
    # overwrite some of them when testing with obscure command lines.
11540
    # This happens at least with the AIX C compiler.
11541
    : > sub/conftest.c
11542
    for i in 1 2 3 4 5 6; do
11543
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11544
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11545
      # Solaris 8's {/usr,}/bin/sh.
11546
      touch sub/conftst$i.h
11547
    done
11548
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11549
 
11550 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11551
    # mode.  It turns out that the SunPro C++ compiler does not properly
11552
    # handle `-M -o', and we need to detect this.  Also, some Intel
11553
    # versions had trouble with output in subdirs
11554
    am__obj=sub/conftest.${OBJEXT-o}
11555
    am__minus_obj="-o $am__obj"
11556 19 jeremybenn
    case $depmode in
11557 82 jeremybenn
    gcc)
11558
      # This depmode causes a compiler race in universal mode.
11559
      test "$am__universal" = false || continue
11560
      ;;
11561 19 jeremybenn
    nosideeffect)
11562
      # after this tag, mechanisms are not by side-effect, so they'll
11563
      # only be used when explicitly requested
11564
      if test "x$enable_dependency_tracking" = xyes; then
11565
        continue
11566
      else
11567
        break
11568
      fi
11569
      ;;
11570 82 jeremybenn
    msvisualcpp | msvcmsys)
11571
      # This compiler won't grok `-c -o', but also, the minuso test has
11572
      # not run yet.  These depmodes are late enough in the game, and
11573
      # so weak that their functioning should not be impacted.
11574
      am__obj=conftest.${OBJEXT-o}
11575
      am__minus_obj=
11576
      ;;
11577 19 jeremybenn
    none) break ;;
11578
    esac
11579
    if depmode=$depmode \
11580 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11581 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11582 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11583 19 jeremybenn
         >/dev/null 2>conftest.err &&
11584
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11585
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11586 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11587 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11588
      # icc doesn't choke on unknown options, it will just issue warnings
11589
      # or remarks (even with -Werror).  So we grep stderr for any message
11590
      # that says an option was ignored or not supported.
11591
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11592
      #   icc: Command line warning: ignoring option '-M'; no argument required
11593
      # The diagnosis changed in icc 8.0:
11594
      #   icc: Command line remark: option '-MP' not supported
11595
      if (grep 'ignoring option' conftest.err ||
11596
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11597 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11598 19 jeremybenn
        break
11599
      fi
11600
    fi
11601
  done
11602
 
11603
  cd ..
11604
  rm -rf conftest.dir
11605
else
11606 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11607 19 jeremybenn
fi
11608
 
11609
fi
11610 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11611
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11612
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11613 19 jeremybenn
 
11614
 if
11615
  test "x$enable_dependency_tracking" != xno \
11616 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11617
  am__fastdepCCAS_TRUE=
11618
  am__fastdepCCAS_FALSE='#'
11619 19 jeremybenn
else
11620 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11621
  am__fastdepCCAS_FALSE=
11622 19 jeremybenn
fi
11623
 
11624
 
11625
 
11626
ac_ext=c
11627
ac_cpp='$CPP $CPPFLAGS'
11628
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11629
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11630
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11631
if test -n "$ac_tool_prefix"; then
11632
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11633
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11634 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11635
$as_echo_n "checking for $ac_word... " >&6; }
11636 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11637 82 jeremybenn
  $as_echo_n "(cached) " >&6
11638 19 jeremybenn
else
11639
  if test -n "$CC"; then
11640
  ac_cv_prog_CC="$CC" # Let the user override the test.
11641
else
11642
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643
for as_dir in $PATH
11644
do
11645
  IFS=$as_save_IFS
11646
  test -z "$as_dir" && as_dir=.
11647
  for ac_exec_ext in '' $ac_executable_extensions; do
11648
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11649
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11650 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 19 jeremybenn
    break 2
11652
  fi
11653
done
11654
done
11655
IFS=$as_save_IFS
11656
 
11657
fi
11658
fi
11659
CC=$ac_cv_prog_CC
11660
if test -n "$CC"; then
11661 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11662
$as_echo "$CC" >&6; }
11663 19 jeremybenn
else
11664 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11665
$as_echo "no" >&6; }
11666 19 jeremybenn
fi
11667
 
11668
 
11669
fi
11670
if test -z "$ac_cv_prog_CC"; then
11671
  ac_ct_CC=$CC
11672
  # Extract the first word of "gcc", so it can be a program name with args.
11673
set dummy gcc; ac_word=$2
11674 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11675
$as_echo_n "checking for $ac_word... " >&6; }
11676 19 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11677 82 jeremybenn
  $as_echo_n "(cached) " >&6
11678 19 jeremybenn
else
11679
  if test -n "$ac_ct_CC"; then
11680
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11681
else
11682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683
for as_dir in $PATH
11684
do
11685
  IFS=$as_save_IFS
11686
  test -z "$as_dir" && as_dir=.
11687
  for ac_exec_ext in '' $ac_executable_extensions; do
11688
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11689
    ac_cv_prog_ac_ct_CC="gcc"
11690 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11691 19 jeremybenn
    break 2
11692
  fi
11693
done
11694
done
11695
IFS=$as_save_IFS
11696
 
11697
fi
11698
fi
11699
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11700
if test -n "$ac_ct_CC"; then
11701 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11702
$as_echo "$ac_ct_CC" >&6; }
11703 19 jeremybenn
else
11704 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11705
$as_echo "no" >&6; }
11706 19 jeremybenn
fi
11707
 
11708
  if test "x$ac_ct_CC" = x; then
11709
    CC=""
11710
  else
11711
    case $cross_compiling:$ac_tool_warned in
11712
yes:)
11713 82 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11714
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11715 19 jeremybenn
ac_tool_warned=yes ;;
11716
esac
11717
    CC=$ac_ct_CC
11718
  fi
11719
else
11720
  CC="$ac_cv_prog_CC"
11721
fi
11722
 
11723
if test -z "$CC"; then
11724
          if test -n "$ac_tool_prefix"; then
11725
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11726
set dummy ${ac_tool_prefix}cc; ac_word=$2
11727 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11728
$as_echo_n "checking for $ac_word... " >&6; }
11729 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11730 82 jeremybenn
  $as_echo_n "(cached) " >&6
11731 19 jeremybenn
else
11732
  if test -n "$CC"; then
11733
  ac_cv_prog_CC="$CC" # Let the user override the test.
11734
else
11735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736
for as_dir in $PATH
11737
do
11738
  IFS=$as_save_IFS
11739
  test -z "$as_dir" && as_dir=.
11740
  for ac_exec_ext in '' $ac_executable_extensions; do
11741
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11742
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11743 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11744 19 jeremybenn
    break 2
11745
  fi
11746
done
11747
done
11748
IFS=$as_save_IFS
11749
 
11750
fi
11751
fi
11752
CC=$ac_cv_prog_CC
11753
if test -n "$CC"; then
11754 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11755
$as_echo "$CC" >&6; }
11756 19 jeremybenn
else
11757 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11758
$as_echo "no" >&6; }
11759 19 jeremybenn
fi
11760
 
11761
 
11762
  fi
11763
fi
11764
if test -z "$CC"; then
11765
  # Extract the first word of "cc", so it can be a program name with args.
11766
set dummy cc; ac_word=$2
11767 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11768
$as_echo_n "checking for $ac_word... " >&6; }
11769 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11770 82 jeremybenn
  $as_echo_n "(cached) " >&6
11771 19 jeremybenn
else
11772
  if test -n "$CC"; then
11773
  ac_cv_prog_CC="$CC" # Let the user override the test.
11774
else
11775
  ac_prog_rejected=no
11776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777
for as_dir in $PATH
11778
do
11779
  IFS=$as_save_IFS
11780
  test -z "$as_dir" && as_dir=.
11781
  for ac_exec_ext in '' $ac_executable_extensions; do
11782
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11783
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11784
       ac_prog_rejected=yes
11785
       continue
11786
     fi
11787
    ac_cv_prog_CC="cc"
11788 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11789 19 jeremybenn
    break 2
11790
  fi
11791
done
11792
done
11793
IFS=$as_save_IFS
11794
 
11795
if test $ac_prog_rejected = yes; then
11796
  # We found a bogon in the path, so make sure we never use it.
11797
  set dummy $ac_cv_prog_CC
11798
  shift
11799
  if test $# != 0; then
11800
    # We chose a different compiler from the bogus one.
11801
    # However, it has the same basename, so the bogon will be chosen
11802
    # first if we set CC to just the basename; use the full file name.
11803
    shift
11804
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11805
  fi
11806
fi
11807
fi
11808
fi
11809
CC=$ac_cv_prog_CC
11810
if test -n "$CC"; then
11811 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11812
$as_echo "$CC" >&6; }
11813 19 jeremybenn
else
11814 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11815
$as_echo "no" >&6; }
11816 19 jeremybenn
fi
11817
 
11818
 
11819
fi
11820
if test -z "$CC"; then
11821
  if test -n "$ac_tool_prefix"; then
11822
  for ac_prog in cl.exe
11823
  do
11824
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11825
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11826 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11827
$as_echo_n "checking for $ac_word... " >&6; }
11828 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11829 82 jeremybenn
  $as_echo_n "(cached) " >&6
11830 19 jeremybenn
else
11831
  if test -n "$CC"; then
11832
  ac_cv_prog_CC="$CC" # Let the user override the test.
11833
else
11834
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835
for as_dir in $PATH
11836
do
11837
  IFS=$as_save_IFS
11838
  test -z "$as_dir" && as_dir=.
11839
  for ac_exec_ext in '' $ac_executable_extensions; do
11840
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11841
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11842 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11843 19 jeremybenn
    break 2
11844
  fi
11845
done
11846
done
11847
IFS=$as_save_IFS
11848
 
11849
fi
11850
fi
11851
CC=$ac_cv_prog_CC
11852
if test -n "$CC"; then
11853 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11854
$as_echo "$CC" >&6; }
11855 19 jeremybenn
else
11856 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11857
$as_echo "no" >&6; }
11858 19 jeremybenn
fi
11859
 
11860
 
11861
    test -n "$CC" && break
11862
  done
11863
fi
11864
if test -z "$CC"; then
11865
  ac_ct_CC=$CC
11866
  for ac_prog in cl.exe
11867
do
11868
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11869
set dummy $ac_prog; ac_word=$2
11870 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11871
$as_echo_n "checking for $ac_word... " >&6; }
11872 19 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11873 82 jeremybenn
  $as_echo_n "(cached) " >&6
11874 19 jeremybenn
else
11875
  if test -n "$ac_ct_CC"; then
11876
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11877
else
11878
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879
for as_dir in $PATH
11880
do
11881
  IFS=$as_save_IFS
11882
  test -z "$as_dir" && as_dir=.
11883
  for ac_exec_ext in '' $ac_executable_extensions; do
11884
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11885
    ac_cv_prog_ac_ct_CC="$ac_prog"
11886 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11887 19 jeremybenn
    break 2
11888
  fi
11889
done
11890
done
11891
IFS=$as_save_IFS
11892
 
11893
fi
11894
fi
11895
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11896
if test -n "$ac_ct_CC"; then
11897 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11898
$as_echo "$ac_ct_CC" >&6; }
11899 19 jeremybenn
else
11900 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11901
$as_echo "no" >&6; }
11902 19 jeremybenn
fi
11903
 
11904
 
11905
  test -n "$ac_ct_CC" && break
11906
done
11907
 
11908
  if test "x$ac_ct_CC" = x; then
11909
    CC=""
11910
  else
11911
    case $cross_compiling:$ac_tool_warned in
11912
yes:)
11913 82 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11914
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11915 19 jeremybenn
ac_tool_warned=yes ;;
11916
esac
11917
    CC=$ac_ct_CC
11918
  fi
11919
fi
11920
 
11921
fi
11922
 
11923
 
11924 82 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11925
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11926
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11927 19 jeremybenn
See \`config.log' for more details." >&5
11928 82 jeremybenn
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11929 19 jeremybenn
See \`config.log' for more details." >&2;}
11930 82 jeremybenn
   { (exit 1); exit 1; }; }; }
11931 19 jeremybenn
 
11932
# Provide some information about the compiler.
11933 82 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11934
set X $ac_compile
11935
ac_compiler=$2
11936 19 jeremybenn
{ (ac_try="$ac_compiler --version >&5"
11937
case "(($ac_try" in
11938
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939
  *) ac_try_echo=$ac_try;;
11940
esac
11941 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11942
$as_echo "$ac_try_echo") >&5
11943 19 jeremybenn
  (eval "$ac_compiler --version >&5") 2>&5
11944
  ac_status=$?
11945 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 19 jeremybenn
  (exit $ac_status); }
11947
{ (ac_try="$ac_compiler -v >&5"
11948
case "(($ac_try" in
11949
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950
  *) ac_try_echo=$ac_try;;
11951
esac
11952 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11953
$as_echo "$ac_try_echo") >&5
11954 19 jeremybenn
  (eval "$ac_compiler -v >&5") 2>&5
11955
  ac_status=$?
11956 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 19 jeremybenn
  (exit $ac_status); }
11958
{ (ac_try="$ac_compiler -V >&5"
11959
case "(($ac_try" in
11960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961
  *) ac_try_echo=$ac_try;;
11962
esac
11963 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11964
$as_echo "$ac_try_echo") >&5
11965 19 jeremybenn
  (eval "$ac_compiler -V >&5") 2>&5
11966
  ac_status=$?
11967 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 19 jeremybenn
  (exit $ac_status); }
11969
 
11970 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11971
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11972 19 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
11973 82 jeremybenn
  $as_echo_n "(cached) " >&6
11974 19 jeremybenn
else
11975
  cat >conftest.$ac_ext <<_ACEOF
11976
/* confdefs.h.  */
11977
_ACEOF
11978
cat confdefs.h >>conftest.$ac_ext
11979
cat >>conftest.$ac_ext <<_ACEOF
11980
/* end confdefs.h.  */
11981
 
11982
int
11983
main ()
11984
{
11985
#ifndef __GNUC__
11986
       choke me
11987
#endif
11988
 
11989
  ;
11990
  return 0;
11991
}
11992
_ACEOF
11993
rm -f conftest.$ac_objext
11994
if { (ac_try="$ac_compile"
11995
case "(($ac_try" in
11996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997
  *) ac_try_echo=$ac_try;;
11998
esac
11999 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12000
$as_echo "$ac_try_echo") >&5
12001 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12002
  ac_status=$?
12003
  grep -v '^ *+' conftest.er1 >conftest.err
12004
  rm -f conftest.er1
12005
  cat conftest.err >&5
12006 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 19 jeremybenn
  (exit $ac_status); } && {
12008
         test -z "$ac_c_werror_flag" ||
12009
         test ! -s conftest.err
12010
       } && test -s conftest.$ac_objext; then
12011
  ac_compiler_gnu=yes
12012
else
12013 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12014 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12015
 
12016
        ac_compiler_gnu=no
12017
fi
12018
 
12019
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12020
ac_cv_c_compiler_gnu=$ac_compiler_gnu
12021
 
12022
fi
12023 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12024
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12025
if test $ac_compiler_gnu = yes; then
12026
  GCC=yes
12027
else
12028
  GCC=
12029
fi
12030 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
12031
ac_save_CFLAGS=$CFLAGS
12032 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12033
$as_echo_n "checking whether $CC accepts -g... " >&6; }
12034 19 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
12035 82 jeremybenn
  $as_echo_n "(cached) " >&6
12036 19 jeremybenn
else
12037
  ac_save_c_werror_flag=$ac_c_werror_flag
12038
   ac_c_werror_flag=yes
12039
   ac_cv_prog_cc_g=no
12040
   CFLAGS="-g"
12041
   cat >conftest.$ac_ext <<_ACEOF
12042
/* confdefs.h.  */
12043
_ACEOF
12044
cat confdefs.h >>conftest.$ac_ext
12045
cat >>conftest.$ac_ext <<_ACEOF
12046
/* end confdefs.h.  */
12047
 
12048
int
12049
main ()
12050
{
12051
 
12052
  ;
12053
  return 0;
12054
}
12055
_ACEOF
12056
rm -f conftest.$ac_objext
12057
if { (ac_try="$ac_compile"
12058
case "(($ac_try" in
12059
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060
  *) ac_try_echo=$ac_try;;
12061
esac
12062 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12063
$as_echo "$ac_try_echo") >&5
12064 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12065
  ac_status=$?
12066
  grep -v '^ *+' conftest.er1 >conftest.err
12067
  rm -f conftest.er1
12068
  cat conftest.err >&5
12069 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 19 jeremybenn
  (exit $ac_status); } && {
12071
         test -z "$ac_c_werror_flag" ||
12072
         test ! -s conftest.err
12073
       } && test -s conftest.$ac_objext; then
12074
  ac_cv_prog_cc_g=yes
12075
else
12076 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12077 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12078
 
12079
        CFLAGS=""
12080
      cat >conftest.$ac_ext <<_ACEOF
12081
/* confdefs.h.  */
12082
_ACEOF
12083
cat confdefs.h >>conftest.$ac_ext
12084
cat >>conftest.$ac_ext <<_ACEOF
12085
/* end confdefs.h.  */
12086
 
12087
int
12088
main ()
12089
{
12090
 
12091
  ;
12092
  return 0;
12093
}
12094
_ACEOF
12095
rm -f conftest.$ac_objext
12096
if { (ac_try="$ac_compile"
12097
case "(($ac_try" in
12098
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099
  *) ac_try_echo=$ac_try;;
12100
esac
12101 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12102
$as_echo "$ac_try_echo") >&5
12103 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12104
  ac_status=$?
12105
  grep -v '^ *+' conftest.er1 >conftest.err
12106
  rm -f conftest.er1
12107
  cat conftest.err >&5
12108 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 19 jeremybenn
  (exit $ac_status); } && {
12110
         test -z "$ac_c_werror_flag" ||
12111
         test ! -s conftest.err
12112
       } && test -s conftest.$ac_objext; then
12113
  :
12114
else
12115 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12116 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12117
 
12118
        ac_c_werror_flag=$ac_save_c_werror_flag
12119
         CFLAGS="-g"
12120
         cat >conftest.$ac_ext <<_ACEOF
12121
/* confdefs.h.  */
12122
_ACEOF
12123
cat confdefs.h >>conftest.$ac_ext
12124
cat >>conftest.$ac_ext <<_ACEOF
12125
/* end confdefs.h.  */
12126
 
12127
int
12128
main ()
12129
{
12130
 
12131
  ;
12132
  return 0;
12133
}
12134
_ACEOF
12135
rm -f conftest.$ac_objext
12136
if { (ac_try="$ac_compile"
12137
case "(($ac_try" in
12138
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139
  *) ac_try_echo=$ac_try;;
12140
esac
12141 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12142
$as_echo "$ac_try_echo") >&5
12143 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12144
  ac_status=$?
12145
  grep -v '^ *+' conftest.er1 >conftest.err
12146
  rm -f conftest.er1
12147
  cat conftest.err >&5
12148 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 19 jeremybenn
  (exit $ac_status); } && {
12150
         test -z "$ac_c_werror_flag" ||
12151
         test ! -s conftest.err
12152
       } && test -s conftest.$ac_objext; then
12153
  ac_cv_prog_cc_g=yes
12154
else
12155 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12156 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12157
 
12158
 
12159
fi
12160
 
12161
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12162
fi
12163
 
12164
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12165
fi
12166
 
12167
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12168
   ac_c_werror_flag=$ac_save_c_werror_flag
12169
fi
12170 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12171
$as_echo "$ac_cv_prog_cc_g" >&6; }
12172 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
12173
  CFLAGS=$ac_save_CFLAGS
12174
elif test $ac_cv_prog_cc_g = yes; then
12175
  if test "$GCC" = yes; then
12176
    CFLAGS="-g -O2"
12177
  else
12178
    CFLAGS="-g"
12179
  fi
12180
else
12181
  if test "$GCC" = yes; then
12182
    CFLAGS="-O2"
12183
  else
12184
    CFLAGS=
12185
  fi
12186
fi
12187 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12188
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12189 19 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then
12190 82 jeremybenn
  $as_echo_n "(cached) " >&6
12191 19 jeremybenn
else
12192
  ac_cv_prog_cc_c89=no
12193
ac_save_CC=$CC
12194
cat >conftest.$ac_ext <<_ACEOF
12195
/* confdefs.h.  */
12196
_ACEOF
12197
cat confdefs.h >>conftest.$ac_ext
12198
cat >>conftest.$ac_ext <<_ACEOF
12199
/* end confdefs.h.  */
12200
#include 
12201
#include 
12202
#include 
12203
#include 
12204
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12205
struct buf { int x; };
12206
FILE * (*rcsopen) (struct buf *, struct stat *, int);
12207
static char *e (p, i)
12208
     char **p;
12209
     int i;
12210
{
12211
  return p[i];
12212
}
12213
static char *f (char * (*g) (char **, int), char **p, ...)
12214
{
12215
  char *s;
12216
  va_list v;
12217
  va_start (v,p);
12218
  s = g (p, va_arg (v,int));
12219
  va_end (v);
12220
  return s;
12221
}
12222
 
12223
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12224
   function prototypes and stuff, but not '\xHH' hex character constants.
12225
   These don't provoke an error unfortunately, instead are silently treated
12226
   as 'x'.  The following induces an error, until -std is added to get
12227
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12228
   array size at least.  It's necessary to write '\x00'==0 to get something
12229
   that's true only with -std.  */
12230
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12231
 
12232
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12233
   inside strings and character constants.  */
12234
#define FOO(x) 'x'
12235
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12236
 
12237
int test (int i, double x);
12238
struct s1 {int (*f) (int a);};
12239
struct s2 {int (*f) (double a);};
12240
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12241
int argc;
12242
char **argv;
12243
int
12244
main ()
12245
{
12246
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12247
  ;
12248
  return 0;
12249
}
12250
_ACEOF
12251
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12252
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12253
do
12254
  CC="$ac_save_CC $ac_arg"
12255
  rm -f conftest.$ac_objext
12256
if { (ac_try="$ac_compile"
12257
case "(($ac_try" in
12258
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259
  *) ac_try_echo=$ac_try;;
12260
esac
12261 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12262
$as_echo "$ac_try_echo") >&5
12263 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12264
  ac_status=$?
12265
  grep -v '^ *+' conftest.er1 >conftest.err
12266
  rm -f conftest.er1
12267
  cat conftest.err >&5
12268 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 19 jeremybenn
  (exit $ac_status); } && {
12270
         test -z "$ac_c_werror_flag" ||
12271
         test ! -s conftest.err
12272
       } && test -s conftest.$ac_objext; then
12273
  ac_cv_prog_cc_c89=$ac_arg
12274
else
12275 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12276 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12277
 
12278
 
12279
fi
12280
 
12281
rm -f core conftest.err conftest.$ac_objext
12282
  test "x$ac_cv_prog_cc_c89" != "xno" && break
12283
done
12284
rm -f conftest.$ac_ext
12285
CC=$ac_save_CC
12286
 
12287
fi
12288
# AC_CACHE_VAL
12289
case "x$ac_cv_prog_cc_c89" in
12290
  x)
12291 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
12292
$as_echo "none needed" >&6; } ;;
12293 19 jeremybenn
  xno)
12294 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12295
$as_echo "unsupported" >&6; } ;;
12296 19 jeremybenn
  *)
12297
    CC="$CC $ac_cv_prog_cc_c89"
12298 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12299
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12300 19 jeremybenn
esac
12301
 
12302
 
12303
ac_ext=c
12304
ac_cpp='$CPP $CPPFLAGS'
12305
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12306
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12307
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12308
 
12309
if test "x$CC" != xcc; then
12310 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
12311
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12312 19 jeremybenn
else
12313 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
12314
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12315 19 jeremybenn
fi
12316 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
12317 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12318
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
12319 82 jeremybenn
  $as_echo_n "(cached) " >&6
12320 19 jeremybenn
else
12321
  cat >conftest.$ac_ext <<_ACEOF
12322
/* confdefs.h.  */
12323
_ACEOF
12324
cat confdefs.h >>conftest.$ac_ext
12325
cat >>conftest.$ac_ext <<_ACEOF
12326
/* end confdefs.h.  */
12327
 
12328
int
12329
main ()
12330
{
12331
 
12332
  ;
12333
  return 0;
12334
}
12335
_ACEOF
12336
# Make sure it works both with $CC and with simple cc.
12337
# We do the test twice because some compilers refuse to overwrite an
12338
# existing .o file with -o, though they will create one.
12339
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12340
rm -f conftest2.*
12341
if { (case "(($ac_try" in
12342
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343
  *) ac_try_echo=$ac_try;;
12344
esac
12345 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12346
$as_echo "$ac_try_echo") >&5
12347 19 jeremybenn
  (eval "$ac_try") 2>&5
12348
  ac_status=$?
12349 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 19 jeremybenn
  (exit $ac_status); } &&
12351
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
12352
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353
  *) ac_try_echo=$ac_try;;
12354
esac
12355 82 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 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 19 jeremybenn
  (exit $ac_status); };
12361
then
12362
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12363
  if test "x$CC" != xcc; then
12364
    # Test first that cc exists at all.
12365
    if { ac_try='cc -c conftest.$ac_ext >&5'
12366
  { (case "(($ac_try" in
12367
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368
  *) ac_try_echo=$ac_try;;
12369
esac
12370 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12371
$as_echo "$ac_try_echo") >&5
12372 19 jeremybenn
  (eval "$ac_try") 2>&5
12373
  ac_status=$?
12374 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 19 jeremybenn
  (exit $ac_status); }; }; then
12376
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12377
      rm -f conftest2.*
12378
      if { (case "(($ac_try" in
12379
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380
  *) ac_try_echo=$ac_try;;
12381
esac
12382 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12383
$as_echo "$ac_try_echo") >&5
12384 19 jeremybenn
  (eval "$ac_try") 2>&5
12385
  ac_status=$?
12386 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 19 jeremybenn
  (exit $ac_status); } &&
12388
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
12389
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390
  *) ac_try_echo=$ac_try;;
12391
esac
12392 82 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 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 19 jeremybenn
  (exit $ac_status); };
12398
      then
12399
        # cc works too.
12400
        :
12401
      else
12402
        # cc exists but doesn't like -o.
12403
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
12404
      fi
12405
    fi
12406
  fi
12407
else
12408
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12409
fi
12410
rm -f core conftest*
12411
 
12412
fi
12413
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12414 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12415
$as_echo "yes" >&6; }
12416 19 jeremybenn
else
12417 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12418
$as_echo "no" >&6; }
12419 19 jeremybenn
 
12420
cat >>confdefs.h <<\_ACEOF
12421
#define NO_MINUS_C_MINUS_O 1
12422
_ACEOF
12423
 
12424
fi
12425
 
12426
# FIXME: we rely on the cache variable name because
12427
# there is no other way.
12428
set dummy $CC
12429 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12430
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12431
if test "$am_t" != yes; then
12432 19 jeremybenn
   # Losing compiler, so override with the script.
12433
   # FIXME: It is wrong to rewrite CC.
12434
   # But if we don't then we get into trouble of one sort or another.
12435
   # A longer-term fix would be to have automake use am__CC in this case,
12436
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12437
   CC="$am_aux_dir/compile $CC"
12438
fi
12439
 
12440
 
12441
 
12442 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12443
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12444
set x ${MAKE-make}
12445
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12446 19 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
12447 82 jeremybenn
  $as_echo_n "(cached) " >&6
12448 19 jeremybenn
else
12449
  cat >conftest.make <<\_ACEOF
12450
SHELL = /bin/sh
12451
all:
12452
        @echo '@@@%%%=$(MAKE)=@@@%%%'
12453
_ACEOF
12454
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12455
case `${MAKE-make} -f conftest.make 2>/dev/null` in
12456
  *@@@%%%=?*=@@@%%%*)
12457
    eval ac_cv_prog_make_${ac_make}_set=yes;;
12458
  *)
12459
    eval ac_cv_prog_make_${ac_make}_set=no;;
12460
esac
12461
rm -f conftest.make
12462
fi
12463
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12464 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12465
$as_echo "yes" >&6; }
12466 19 jeremybenn
  SET_MAKE=
12467
else
12468 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12469
$as_echo "no" >&6; }
12470 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
12471
fi
12472
 
12473
 
12474
# Find a good install program.  We prefer a C program (faster),
12475
# so one script is as good as another.  But avoid the broken or
12476
# incompatible versions:
12477
# SysV /etc/install, /usr/sbin/install
12478
# SunOS /usr/etc/install
12479
# IRIX /sbin/install
12480
# AIX /bin/install
12481
# AmigaOS /C/install, which installs bootblocks on floppy discs
12482
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12483
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12484
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12485
# OS/2's system install, which has a completely different semantic
12486
# ./install, which can be erroneously created by make from ./install.sh.
12487 82 jeremybenn
# Reject install programs that cannot install multiple files.
12488
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12489
$as_echo_n "checking for a BSD-compatible install... " >&6; }
12490 19 jeremybenn
if test -z "$INSTALL"; then
12491
if test "${ac_cv_path_install+set}" = set; then
12492 82 jeremybenn
  $as_echo_n "(cached) " >&6
12493 19 jeremybenn
else
12494
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495
for as_dir in $PATH
12496
do
12497
  IFS=$as_save_IFS
12498
  test -z "$as_dir" && as_dir=.
12499
  # Account for people who put trailing slashes in PATH elements.
12500
case $as_dir/ in
12501
  ./ | .// | /cC/* | \
12502
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12503
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12504
  /usr/ucb/* ) ;;
12505
  *)
12506
    # OSF1 and SCO ODT 3.0 have their own names for install.
12507
    # Don't use installbsd from OSF since it installs stuff as root
12508
    # by default.
12509
    for ac_prog in ginstall scoinst install; do
12510
      for ac_exec_ext in '' $ac_executable_extensions; do
12511
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12512
          if test $ac_prog = install &&
12513
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12514
            # AIX install.  It has an incompatible calling convention.
12515
            :
12516
          elif test $ac_prog = install &&
12517
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12518
            # program-specific install script used by HP pwplus--don't use.
12519
            :
12520
          else
12521 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
12522
            echo one > conftest.one
12523
            echo two > conftest.two
12524
            mkdir conftest.dir
12525
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12526
              test -s conftest.one && test -s conftest.two &&
12527
              test -s conftest.dir/conftest.one &&
12528
              test -s conftest.dir/conftest.two
12529
            then
12530
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12531
              break 3
12532
            fi
12533 19 jeremybenn
          fi
12534
        fi
12535
      done
12536
    done
12537
    ;;
12538
esac
12539 82 jeremybenn
 
12540 19 jeremybenn
done
12541
IFS=$as_save_IFS
12542
 
12543 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
12544 19 jeremybenn
 
12545
fi
12546
  if test "${ac_cv_path_install+set}" = set; then
12547
    INSTALL=$ac_cv_path_install
12548
  else
12549
    # As a last resort, use the slow shell script.  Don't cache a
12550
    # value for INSTALL within a source directory, because that will
12551
    # break other packages using the cache if that directory is
12552
    # removed, or if the value is a relative name.
12553
    INSTALL=$ac_install_sh
12554
  fi
12555
fi
12556 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12557
$as_echo "$INSTALL" >&6; }
12558 19 jeremybenn
 
12559
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12560
# It thinks the first close brace ends the variable substitution.
12561
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12562
 
12563
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12564
 
12565
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12566
 
12567
# Extract the first word of "ar", so it can be a program name with args.
12568
set dummy ar; ac_word=$2
12569 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12570
$as_echo_n "checking for $ac_word... " >&6; }
12571 19 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then
12572 82 jeremybenn
  $as_echo_n "(cached) " >&6
12573 19 jeremybenn
else
12574
  if test -n "$AR"; then
12575
  ac_cv_prog_AR="$AR" # Let the user override the test.
12576
else
12577
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578
for as_dir in $PATH
12579
do
12580
  IFS=$as_save_IFS
12581
  test -z "$as_dir" && as_dir=.
12582
  for ac_exec_ext in '' $ac_executable_extensions; do
12583
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12584
    ac_cv_prog_AR="ar"
12585 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12586 19 jeremybenn
    break 2
12587
  fi
12588
done
12589
done
12590
IFS=$as_save_IFS
12591
 
12592
fi
12593
fi
12594
AR=$ac_cv_prog_AR
12595
if test -n "$AR"; then
12596 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
12597
$as_echo "$AR" >&6; }
12598 19 jeremybenn
else
12599 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12600
$as_echo "no" >&6; }
12601 19 jeremybenn
fi
12602
 
12603
 
12604
 
12605
# Set default for ARFLAGS, since autoconf does not have a macro for it.
12606
# This allows people to set it when running configure or make
12607
test -n "$ARFLAGS" || ARFLAGS="cr"
12608
 
12609 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12610
$as_echo_n "checking return type of signal handlers... " >&6; }
12611 19 jeremybenn
if test "${ac_cv_type_signal+set}" = set; then
12612 82 jeremybenn
  $as_echo_n "(cached) " >&6
12613 19 jeremybenn
else
12614
  cat >conftest.$ac_ext <<_ACEOF
12615
/* confdefs.h.  */
12616
_ACEOF
12617
cat confdefs.h >>conftest.$ac_ext
12618
cat >>conftest.$ac_ext <<_ACEOF
12619
/* end confdefs.h.  */
12620
#include 
12621
#include 
12622
 
12623
int
12624
main ()
12625
{
12626
return *(signal (0, 0)) (0) == 1;
12627
  ;
12628
  return 0;
12629
}
12630
_ACEOF
12631
rm -f conftest.$ac_objext
12632
if { (ac_try="$ac_compile"
12633
case "(($ac_try" in
12634
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635
  *) ac_try_echo=$ac_try;;
12636
esac
12637 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12638
$as_echo "$ac_try_echo") >&5
12639 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12640
  ac_status=$?
12641
  grep -v '^ *+' conftest.er1 >conftest.err
12642
  rm -f conftest.er1
12643
  cat conftest.err >&5
12644 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 19 jeremybenn
  (exit $ac_status); } && {
12646
         test -z "$ac_c_werror_flag" ||
12647
         test ! -s conftest.err
12648
       } && test -s conftest.$ac_objext; then
12649
  ac_cv_type_signal=int
12650
else
12651 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12652 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12653
 
12654
        ac_cv_type_signal=void
12655
fi
12656
 
12657
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12658
fi
12659 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12660
$as_echo "$ac_cv_type_signal" >&6; }
12661 19 jeremybenn
 
12662
cat >>confdefs.h <<_ACEOF
12663
#define RETSIGTYPE $ac_cv_type_signal
12664
_ACEOF
12665
 
12666
 
12667
 
12668
 
12669
 
12670
 
12671
 
12672
 
12673
 
12674
 
12675
 
12676
 
12677
 
12678
 
12679
 
12680
 
12681
 
12682 82 jeremybenn
 
12683
 
12684
 
12685
 
12686
 
12687
 
12688
 
12689
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h      \
12690
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
12691
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
12692
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h
12693
do
12694
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12695 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12696 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12697
$as_echo_n "checking for $ac_header... " >&6; }
12698
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12699
  $as_echo_n "(cached) " >&6
12700
fi
12701
ac_res=`eval 'as_val=${'$as_ac_Header'}
12702
                 $as_echo "$as_val"'`
12703
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12704
$as_echo "$ac_res" >&6; }
12705 19 jeremybenn
else
12706 82 jeremybenn
  # Is the header compilable?
12707
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12708
$as_echo_n "checking $ac_header usability... " >&6; }
12709
cat >conftest.$ac_ext <<_ACEOF
12710 19 jeremybenn
/* confdefs.h.  */
12711
_ACEOF
12712
cat confdefs.h >>conftest.$ac_ext
12713
cat >>conftest.$ac_ext <<_ACEOF
12714
/* end confdefs.h.  */
12715 82 jeremybenn
$ac_includes_default
12716
#include <$ac_header>
12717 19 jeremybenn
_ACEOF
12718
rm -f conftest.$ac_objext
12719
if { (ac_try="$ac_compile"
12720
case "(($ac_try" in
12721
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722
  *) ac_try_echo=$ac_try;;
12723
esac
12724 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12725
$as_echo "$ac_try_echo") >&5
12726 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12727
  ac_status=$?
12728
  grep -v '^ *+' conftest.er1 >conftest.err
12729
  rm -f conftest.er1
12730
  cat conftest.err >&5
12731 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 19 jeremybenn
  (exit $ac_status); } && {
12733
         test -z "$ac_c_werror_flag" ||
12734
         test ! -s conftest.err
12735
       } && test -s conftest.$ac_objext; then
12736 82 jeremybenn
  ac_header_compiler=yes
12737 19 jeremybenn
else
12738 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12739 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12740
 
12741 82 jeremybenn
        ac_header_compiler=no
12742 19 jeremybenn
fi
12743
 
12744
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12745 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12746
$as_echo "$ac_header_compiler" >&6; }
12747 19 jeremybenn
 
12748 82 jeremybenn
# Is the header present?
12749
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12750
$as_echo_n "checking $ac_header presence... " >&6; }
12751 19 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12752
/* confdefs.h.  */
12753
_ACEOF
12754
cat confdefs.h >>conftest.$ac_ext
12755
cat >>conftest.$ac_ext <<_ACEOF
12756
/* end confdefs.h.  */
12757 82 jeremybenn
#include <$ac_header>
12758 19 jeremybenn
_ACEOF
12759 82 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
12760 19 jeremybenn
case "(($ac_try" in
12761
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762
  *) ac_try_echo=$ac_try;;
12763
esac
12764 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12765
$as_echo "$ac_try_echo") >&5
12766
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12767 19 jeremybenn
  ac_status=$?
12768
  grep -v '^ *+' conftest.er1 >conftest.err
12769
  rm -f conftest.er1
12770
  cat conftest.err >&5
12771 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772
  (exit $ac_status); } >/dev/null && {
12773
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12774 19 jeremybenn
         test ! -s conftest.err
12775 82 jeremybenn
       }; then
12776
  ac_header_preproc=yes
12777 19 jeremybenn
else
12778 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12779 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12780
 
12781 82 jeremybenn
  ac_header_preproc=no
12782 19 jeremybenn
fi
12783
 
12784 82 jeremybenn
rm -f conftest.err conftest.$ac_ext
12785
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12786
$as_echo "$ac_header_preproc" >&6; }
12787
 
12788
# So?  What about this header?
12789
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12790
  yes:no: )
12791
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12792
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12793
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12794
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12795
    ac_header_preproc=yes
12796
    ;;
12797
  no:yes:* )
12798
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12799
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12800
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12801
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12802
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12803
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12804
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12805
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12806
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12807
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12808
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12809
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12810
    ( cat <<\_ASBOX
12811
## ------------------------------------- ##
12812
## Report this to openrisc@opencores.org ##
12813
## ------------------------------------- ##
12814
_ASBOX
12815
     ) | sed "s/^/$as_me: WARNING:     /" >&2
12816
    ;;
12817
esac
12818
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12819
$as_echo_n "checking for $ac_header... " >&6; }
12820
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12821
  $as_echo_n "(cached) " >&6
12822 19 jeremybenn
else
12823 82 jeremybenn
  eval "$as_ac_Header=\$ac_header_preproc"
12824 19 jeremybenn
fi
12825 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12826
                 $as_echo "$as_val"'`
12827
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12828
$as_echo "$ac_res" >&6; }
12829 19 jeremybenn
 
12830
fi
12831 82 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
12832
                 $as_echo "$as_val"'`
12833
   if test "x$as_val" = x""yes; then
12834
  cat >>confdefs.h <<_ACEOF
12835
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12836 19 jeremybenn
_ACEOF
12837
 
12838
fi
12839
 
12840
done
12841
 
12842
 
12843
 
12844
 
12845
 
12846
 
12847
 
12848
 
12849
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
12850
do
12851 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12852
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12853
$as_echo_n "checking for $ac_func... " >&6; }
12854 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12855 82 jeremybenn
  $as_echo_n "(cached) " >&6
12856 19 jeremybenn
else
12857
  cat >conftest.$ac_ext <<_ACEOF
12858
/* confdefs.h.  */
12859
_ACEOF
12860
cat confdefs.h >>conftest.$ac_ext
12861
cat >>conftest.$ac_ext <<_ACEOF
12862
/* end confdefs.h.  */
12863
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12864
   For example, HP-UX 11i  declares gettimeofday.  */
12865
#define $ac_func innocuous_$ac_func
12866
 
12867
/* System header to define __stub macros and hopefully few prototypes,
12868
    which can conflict with char $ac_func (); below.
12869
    Prefer  to  if __STDC__ is defined, since
12870
     exists even on freestanding compilers.  */
12871
 
12872
#ifdef __STDC__
12873
# include 
12874
#else
12875
# include 
12876
#endif
12877
 
12878
#undef $ac_func
12879
 
12880
/* Override any GCC internal prototype to avoid an error.
12881
   Use char because int might match the return type of a GCC
12882
   builtin and then its argument prototype would still apply.  */
12883
#ifdef __cplusplus
12884
extern "C"
12885
#endif
12886
char $ac_func ();
12887
/* The GNU C library defines this for functions which it implements
12888
    to always fail with ENOSYS.  Some functions are actually named
12889
    something starting with __ and the normal name is an alias.  */
12890
#if defined __stub_$ac_func || defined __stub___$ac_func
12891
choke me
12892
#endif
12893
 
12894
int
12895
main ()
12896
{
12897
return $ac_func ();
12898
  ;
12899
  return 0;
12900
}
12901
_ACEOF
12902
rm -f conftest.$ac_objext conftest$ac_exeext
12903
if { (ac_try="$ac_link"
12904
case "(($ac_try" in
12905
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906
  *) ac_try_echo=$ac_try;;
12907
esac
12908 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12909
$as_echo "$ac_try_echo") >&5
12910 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
12911
  ac_status=$?
12912
  grep -v '^ *+' conftest.er1 >conftest.err
12913
  rm -f conftest.er1
12914
  cat conftest.err >&5
12915 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 19 jeremybenn
  (exit $ac_status); } && {
12917
         test -z "$ac_c_werror_flag" ||
12918
         test ! -s conftest.err
12919 82 jeremybenn
       } && test -s conftest$ac_exeext && {
12920
         test "$cross_compiling" = yes ||
12921
         $as_test_x conftest$ac_exeext
12922
       }; then
12923 19 jeremybenn
  eval "$as_ac_var=yes"
12924
else
12925 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12926 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12927
 
12928
        eval "$as_ac_var=no"
12929
fi
12930
 
12931 82 jeremybenn
rm -rf conftest.dSYM
12932 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12933
      conftest$ac_exeext conftest.$ac_ext
12934
fi
12935 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
12936
                 $as_echo "$as_val"'`
12937
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12938
$as_echo "$ac_res" >&6; }
12939
as_val=`eval 'as_val=${'$as_ac_var'}
12940
                 $as_echo "$as_val"'`
12941
   if test "x$as_val" = x""yes; then
12942 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12943 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12944 19 jeremybenn
_ACEOF
12945
 
12946
fi
12947
done
12948
 
12949
 
12950
 
12951
 
12952
 
12953 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
12954 19 jeremybenn
do
12955 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12956
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12957
$as_echo_n "checking for $ac_func... " >&6; }
12958 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12959 82 jeremybenn
  $as_echo_n "(cached) " >&6
12960 19 jeremybenn
else
12961
  cat >conftest.$ac_ext <<_ACEOF
12962
/* confdefs.h.  */
12963
_ACEOF
12964
cat confdefs.h >>conftest.$ac_ext
12965
cat >>conftest.$ac_ext <<_ACEOF
12966
/* end confdefs.h.  */
12967
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12968
   For example, HP-UX 11i  declares gettimeofday.  */
12969
#define $ac_func innocuous_$ac_func
12970
 
12971
/* System header to define __stub macros and hopefully few prototypes,
12972
    which can conflict with char $ac_func (); below.
12973
    Prefer  to  if __STDC__ is defined, since
12974
     exists even on freestanding compilers.  */
12975
 
12976
#ifdef __STDC__
12977
# include 
12978
#else
12979
# include 
12980
#endif
12981
 
12982
#undef $ac_func
12983
 
12984
/* Override any GCC internal prototype to avoid an error.
12985
   Use char because int might match the return type of a GCC
12986
   builtin and then its argument prototype would still apply.  */
12987
#ifdef __cplusplus
12988
extern "C"
12989
#endif
12990
char $ac_func ();
12991
/* The GNU C library defines this for functions which it implements
12992
    to always fail with ENOSYS.  Some functions are actually named
12993
    something starting with __ and the normal name is an alias.  */
12994
#if defined __stub_$ac_func || defined __stub___$ac_func
12995
choke me
12996
#endif
12997
 
12998
int
12999
main ()
13000
{
13001
return $ac_func ();
13002
  ;
13003
  return 0;
13004
}
13005
_ACEOF
13006
rm -f conftest.$ac_objext conftest$ac_exeext
13007
if { (ac_try="$ac_link"
13008
case "(($ac_try" in
13009
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010
  *) ac_try_echo=$ac_try;;
13011
esac
13012 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13013
$as_echo "$ac_try_echo") >&5
13014 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
13015
  ac_status=$?
13016
  grep -v '^ *+' conftest.er1 >conftest.err
13017
  rm -f conftest.er1
13018
  cat conftest.err >&5
13019 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 19 jeremybenn
  (exit $ac_status); } && {
13021
         test -z "$ac_c_werror_flag" ||
13022
         test ! -s conftest.err
13023 82 jeremybenn
       } && test -s conftest$ac_exeext && {
13024
         test "$cross_compiling" = yes ||
13025
         $as_test_x conftest$ac_exeext
13026
       }; then
13027 19 jeremybenn
  eval "$as_ac_var=yes"
13028
else
13029 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13030 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13031
 
13032
        eval "$as_ac_var=no"
13033
fi
13034
 
13035 82 jeremybenn
rm -rf conftest.dSYM
13036 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13037
      conftest$ac_exeext conftest.$ac_ext
13038
fi
13039 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
13040
                 $as_echo "$as_val"'`
13041
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13042
$as_echo "$ac_res" >&6; }
13043
as_val=`eval 'as_val=${'$as_ac_var'}
13044
                 $as_echo "$as_val"'`
13045
   if test "x$as_val" = x""yes; then
13046 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13047 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13048 19 jeremybenn
_ACEOF
13049
 
13050
fi
13051
done
13052
 
13053
 
13054
for ac_func in basename
13055
do
13056 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13057
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13058
$as_echo_n "checking for $ac_func... " >&6; }
13059 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13060 82 jeremybenn
  $as_echo_n "(cached) " >&6
13061 19 jeremybenn
else
13062
  cat >conftest.$ac_ext <<_ACEOF
13063
/* confdefs.h.  */
13064
_ACEOF
13065
cat confdefs.h >>conftest.$ac_ext
13066
cat >>conftest.$ac_ext <<_ACEOF
13067
/* end confdefs.h.  */
13068
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
13069
   For example, HP-UX 11i  declares gettimeofday.  */
13070
#define $ac_func innocuous_$ac_func
13071
 
13072
/* System header to define __stub macros and hopefully few prototypes,
13073
    which can conflict with char $ac_func (); below.
13074
    Prefer  to  if __STDC__ is defined, since
13075
     exists even on freestanding compilers.  */
13076
 
13077
#ifdef __STDC__
13078
# include 
13079
#else
13080
# include 
13081
#endif
13082
 
13083
#undef $ac_func
13084
 
13085
/* Override any GCC internal prototype to avoid an error.
13086
   Use char because int might match the return type of a GCC
13087
   builtin and then its argument prototype would still apply.  */
13088
#ifdef __cplusplus
13089
extern "C"
13090
#endif
13091
char $ac_func ();
13092
/* The GNU C library defines this for functions which it implements
13093
    to always fail with ENOSYS.  Some functions are actually named
13094
    something starting with __ and the normal name is an alias.  */
13095
#if defined __stub_$ac_func || defined __stub___$ac_func
13096
choke me
13097
#endif
13098
 
13099
int
13100
main ()
13101
{
13102
return $ac_func ();
13103
  ;
13104
  return 0;
13105
}
13106
_ACEOF
13107
rm -f conftest.$ac_objext conftest$ac_exeext
13108
if { (ac_try="$ac_link"
13109
case "(($ac_try" in
13110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13111
  *) ac_try_echo=$ac_try;;
13112
esac
13113 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13114
$as_echo "$ac_try_echo") >&5
13115 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
13116
  ac_status=$?
13117
  grep -v '^ *+' conftest.er1 >conftest.err
13118
  rm -f conftest.er1
13119
  cat conftest.err >&5
13120 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 19 jeremybenn
  (exit $ac_status); } && {
13122
         test -z "$ac_c_werror_flag" ||
13123
         test ! -s conftest.err
13124 82 jeremybenn
       } && test -s conftest$ac_exeext && {
13125
         test "$cross_compiling" = yes ||
13126
         $as_test_x conftest$ac_exeext
13127
       }; then
13128 19 jeremybenn
  eval "$as_ac_var=yes"
13129
else
13130 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13131 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13132
 
13133
        eval "$as_ac_var=no"
13134
fi
13135
 
13136 82 jeremybenn
rm -rf conftest.dSYM
13137 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13138
      conftest$ac_exeext conftest.$ac_ext
13139
fi
13140 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
13141
                 $as_echo "$as_val"'`
13142
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13143
$as_echo "$ac_res" >&6; }
13144
as_val=`eval 'as_val=${'$as_ac_var'}
13145
                 $as_echo "$as_val"'`
13146
   if test "x$as_val" = x""yes; then
13147 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13148 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13149 19 jeremybenn
_ACEOF
13150
 
13151
fi
13152
done
13153
 
13154 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
13155
$as_echo_n "checking for working strcoll... " >&6; }
13156 19 jeremybenn
if test "${ac_cv_func_strcoll_works+set}" = set; then
13157 82 jeremybenn
  $as_echo_n "(cached) " >&6
13158 19 jeremybenn
else
13159
  if test "$cross_compiling" = yes; then
13160
  ac_cv_func_strcoll_works=no
13161
else
13162
  cat >conftest.$ac_ext <<_ACEOF
13163
/* confdefs.h.  */
13164
_ACEOF
13165
cat confdefs.h >>conftest.$ac_ext
13166
cat >>conftest.$ac_ext <<_ACEOF
13167
/* end confdefs.h.  */
13168
$ac_includes_default
13169
int
13170
main ()
13171
{
13172
return (strcoll ("abc", "def") >= 0 ||
13173
         strcoll ("ABC", "DEF") >= 0 ||
13174
         strcoll ("123", "456") >= 0)
13175
  ;
13176
  return 0;
13177
}
13178
_ACEOF
13179
rm -f conftest$ac_exeext
13180
if { (ac_try="$ac_link"
13181
case "(($ac_try" in
13182
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183
  *) ac_try_echo=$ac_try;;
13184
esac
13185 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13186
$as_echo "$ac_try_echo") >&5
13187 19 jeremybenn
  (eval "$ac_link") 2>&5
13188
  ac_status=$?
13189 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13191
  { (case "(($ac_try" in
13192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193
  *) ac_try_echo=$ac_try;;
13194
esac
13195 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13196
$as_echo "$ac_try_echo") >&5
13197 19 jeremybenn
  (eval "$ac_try") 2>&5
13198
  ac_status=$?
13199 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 19 jeremybenn
  (exit $ac_status); }; }; then
13201
  ac_cv_func_strcoll_works=yes
13202
else
13203 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
13204
$as_echo "$as_me: failed program was:" >&5
13205 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13206
 
13207
( exit $ac_status )
13208
ac_cv_func_strcoll_works=no
13209
fi
13210 82 jeremybenn
rm -rf conftest.dSYM
13211 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13212
fi
13213
 
13214
 
13215
fi
13216 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13217
$as_echo "$ac_cv_func_strcoll_works" >&6; }
13218 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
13219
 
13220
cat >>confdefs.h <<\_ACEOF
13221
#define HAVE_STRCOLL 1
13222
_ACEOF
13223
 
13224
fi
13225
 
13226 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether I_PUSH is declared" >&5
13227
$as_echo_n "checking whether I_PUSH is declared... " >&6; }
13228
if test "${ac_cv_have_decl_I_PUSH+set}" = set; then
13229
  $as_echo_n "(cached) " >&6
13230 19 jeremybenn
else
13231
  cat >conftest.$ac_ext <<_ACEOF
13232
/* confdefs.h.  */
13233
_ACEOF
13234
cat confdefs.h >>conftest.$ac_ext
13235
cat >>conftest.$ac_ext <<_ACEOF
13236
/* end confdefs.h.  */
13237 82 jeremybenn
\
13238
               #include 
13239 19 jeremybenn
 
13240
int
13241
main ()
13242
{
13243 82 jeremybenn
#ifndef I_PUSH
13244
  (void) I_PUSH;
13245
#endif
13246 19 jeremybenn
 
13247
  ;
13248
  return 0;
13249
}
13250
_ACEOF
13251
rm -f conftest.$ac_objext
13252
if { (ac_try="$ac_compile"
13253
case "(($ac_try" in
13254
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255
  *) ac_try_echo=$ac_try;;
13256
esac
13257 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13258
$as_echo "$ac_try_echo") >&5
13259 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13260
  ac_status=$?
13261
  grep -v '^ *+' conftest.er1 >conftest.err
13262
  rm -f conftest.er1
13263
  cat conftest.err >&5
13264 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 19 jeremybenn
  (exit $ac_status); } && {
13266
         test -z "$ac_c_werror_flag" ||
13267
         test ! -s conftest.err
13268
       } && test -s conftest.$ac_objext; then
13269 82 jeremybenn
  ac_cv_have_decl_I_PUSH=yes
13270 19 jeremybenn
else
13271 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13272 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13273
 
13274 82 jeremybenn
        ac_cv_have_decl_I_PUSH=no
13275 19 jeremybenn
fi
13276
 
13277
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278 82 jeremybenn
fi
13279
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_I_PUSH" >&5
13280
$as_echo "$ac_cv_have_decl_I_PUSH" >&6; }
13281
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then
13282 19 jeremybenn
 
13283 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13284
#define HAVE_DECL_I_PUSH 1
13285 19 jeremybenn
_ACEOF
13286
 
13287 82 jeremybenn
 
13288 19 jeremybenn
else
13289 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
13290
#define HAVE_DECL_I_PUSH 0
13291 19 jeremybenn
_ACEOF
13292
 
13293
 
13294
fi
13295 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether rl_event_hook is declared" >&5
13296
$as_echo_n "checking whether rl_event_hook is declared... " >&6; }
13297
if test "${ac_cv_have_decl_rl_event_hook+set}" = set; then
13298
  $as_echo_n "(cached) " >&6
13299 19 jeremybenn
else
13300
  cat >conftest.$ac_ext <<_ACEOF
13301
/* confdefs.h.  */
13302
_ACEOF
13303
cat confdefs.h >>conftest.$ac_ext
13304
cat >>conftest.$ac_ext <<_ACEOF
13305
/* end confdefs.h.  */
13306 82 jeremybenn
\
13307
               #include 
13308 19 jeremybenn
 
13309
int
13310
main ()
13311
{
13312 82 jeremybenn
#ifndef rl_event_hook
13313
  (void) rl_event_hook;
13314
#endif
13315
 
13316
  ;
13317 19 jeremybenn
  return 0;
13318
}
13319
_ACEOF
13320 82 jeremybenn
rm -f conftest.$ac_objext
13321
if { (ac_try="$ac_compile"
13322 19 jeremybenn
case "(($ac_try" in
13323
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324
  *) ac_try_echo=$ac_try;;
13325
esac
13326 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13327
$as_echo "$ac_try_echo") >&5
13328
  (eval "$ac_compile") 2>conftest.er1
13329 19 jeremybenn
  ac_status=$?
13330 82 jeremybenn
  grep -v '^ *+' conftest.er1 >conftest.err
13331
  rm -f conftest.er1
13332
  cat conftest.err >&5
13333
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334
  (exit $ac_status); } && {
13335
         test -z "$ac_c_werror_flag" ||
13336
         test ! -s conftest.err
13337
       } && test -s conftest.$ac_objext; then
13338
  ac_cv_have_decl_rl_event_hook=yes
13339 19 jeremybenn
else
13340 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13341 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13342
 
13343 82 jeremybenn
        ac_cv_have_decl_rl_event_hook=no
13344 19 jeremybenn
fi
13345
 
13346 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13347 19 jeremybenn
fi
13348 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_event_hook" >&5
13349
$as_echo "$ac_cv_have_decl_rl_event_hook" >&6; }
13350
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then
13351 19 jeremybenn
 
13352 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13353
#define HAVE_DECL_RL_EVENT_HOOK 1
13354 19 jeremybenn
_ACEOF
13355
 
13356
 
13357 82 jeremybenn
else
13358
  cat >>confdefs.h <<_ACEOF
13359
#define HAVE_DECL_RL_EVENT_HOOK 0
13360
_ACEOF
13361 19 jeremybenn
 
13362
 
13363 82 jeremybenn
fi
13364 19 jeremybenn
 
13365
 
13366
 
13367 82 jeremybenn
 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13368
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13369
if test "${ac_cv_c_bigendian+set}" = set; then
13370
  $as_echo_n "(cached) " >&6
13371 19 jeremybenn
else
13372 82 jeremybenn
  ac_cv_c_bigendian=unknown
13373
    # See if we're dealing with a universal compiler.
13374
    cat >conftest.$ac_ext <<_ACEOF
13375 19 jeremybenn
/* confdefs.h.  */
13376
_ACEOF
13377
cat confdefs.h >>conftest.$ac_ext
13378
cat >>conftest.$ac_ext <<_ACEOF
13379
/* end confdefs.h.  */
13380 82 jeremybenn
#ifndef __APPLE_CC__
13381
               not a universal capable compiler
13382
             #endif
13383
             typedef int dummy;
13384
 
13385 19 jeremybenn
_ACEOF
13386
rm -f conftest.$ac_objext
13387
if { (ac_try="$ac_compile"
13388
case "(($ac_try" in
13389
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390
  *) ac_try_echo=$ac_try;;
13391
esac
13392 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13393
$as_echo "$ac_try_echo") >&5
13394 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13395
  ac_status=$?
13396
  grep -v '^ *+' conftest.er1 >conftest.err
13397
  rm -f conftest.er1
13398
  cat conftest.err >&5
13399 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 19 jeremybenn
  (exit $ac_status); } && {
13401
         test -z "$ac_c_werror_flag" ||
13402
         test ! -s conftest.err
13403
       } && test -s conftest.$ac_objext; then
13404 82 jeremybenn
 
13405
        # Check for potential -arch flags.  It is not universal unless
13406
        # there are some -arch flags.  Note that *ppc* also matches
13407
        # ppc64.  This check is also rather less than ideal.
13408
        case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13409
          *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13410
        esac
13411 19 jeremybenn
else
13412 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13413 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13414
 
13415 82 jeremybenn
 
13416 19 jeremybenn
fi
13417
 
13418
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13419 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
13420
      # See if sys/param.h defines the BYTE_ORDER macro.
13421
      cat >conftest.$ac_ext <<_ACEOF
13422 19 jeremybenn
/* confdefs.h.  */
13423
_ACEOF
13424
cat confdefs.h >>conftest.$ac_ext
13425
cat >>conftest.$ac_ext <<_ACEOF
13426
/* end confdefs.h.  */
13427 82 jeremybenn
#include 
13428
             #include 
13429
 
13430
int
13431
main ()
13432
{
13433
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13434
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13435
                     && LITTLE_ENDIAN)
13436
              bogus endian macros
13437
             #endif
13438
 
13439
  ;
13440
  return 0;
13441
}
13442 19 jeremybenn
_ACEOF
13443 82 jeremybenn
rm -f conftest.$ac_objext
13444
if { (ac_try="$ac_compile"
13445 19 jeremybenn
case "(($ac_try" in
13446
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447
  *) ac_try_echo=$ac_try;;
13448
esac
13449 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13450
$as_echo "$ac_try_echo") >&5
13451
  (eval "$ac_compile") 2>conftest.er1
13452 19 jeremybenn
  ac_status=$?
13453
  grep -v '^ *+' conftest.er1 >conftest.err
13454
  rm -f conftest.er1
13455
  cat conftest.err >&5
13456 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457
  (exit $ac_status); } && {
13458
         test -z "$ac_c_werror_flag" ||
13459 19 jeremybenn
         test ! -s conftest.err
13460 82 jeremybenn
       } && test -s conftest.$ac_objext; then
13461
  # It does; now see whether it defined to BIG_ENDIAN or not.
13462
         cat >conftest.$ac_ext <<_ACEOF
13463 19 jeremybenn
/* confdefs.h.  */
13464
_ACEOF
13465
cat confdefs.h >>conftest.$ac_ext
13466
cat >>conftest.$ac_ext <<_ACEOF
13467
/* end confdefs.h.  */
13468 82 jeremybenn
#include 
13469
                #include 
13470
 
13471 19 jeremybenn
int
13472
main ()
13473
{
13474 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
13475
                 not big endian
13476
                #endif
13477 19 jeremybenn
 
13478
  ;
13479
  return 0;
13480
}
13481
_ACEOF
13482
rm -f conftest.$ac_objext
13483
if { (ac_try="$ac_compile"
13484
case "(($ac_try" in
13485
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486
  *) ac_try_echo=$ac_try;;
13487
esac
13488 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13489
$as_echo "$ac_try_echo") >&5
13490 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13491
  ac_status=$?
13492
  grep -v '^ *+' conftest.er1 >conftest.err
13493
  rm -f conftest.er1
13494
  cat conftest.err >&5
13495 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 19 jeremybenn
  (exit $ac_status); } && {
13497
         test -z "$ac_c_werror_flag" ||
13498
         test ! -s conftest.err
13499
       } && test -s conftest.$ac_objext; then
13500 82 jeremybenn
  ac_cv_c_bigendian=yes
13501 19 jeremybenn
else
13502 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13503 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13504
 
13505 82 jeremybenn
        ac_cv_c_bigendian=no
13506 19 jeremybenn
fi
13507
 
13508
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13509
else
13510 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13511
sed 's/^/| /' conftest.$ac_ext >&5
13512 19 jeremybenn
 
13513
 
13514
fi
13515
 
13516 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13517
    fi
13518
    if test $ac_cv_c_bigendian = unknown; then
13519
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13520
      cat >conftest.$ac_ext <<_ACEOF
13521 19 jeremybenn
/* confdefs.h.  */
13522
_ACEOF
13523
cat confdefs.h >>conftest.$ac_ext
13524
cat >>conftest.$ac_ext <<_ACEOF
13525
/* end confdefs.h.  */
13526 82 jeremybenn
#include 
13527 19 jeremybenn
 
13528
int
13529
main ()
13530
{
13531 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13532
              bogus endian macros
13533
             #endif
13534 19 jeremybenn
 
13535
  ;
13536
  return 0;
13537
}
13538
_ACEOF
13539
rm -f conftest.$ac_objext
13540
if { (ac_try="$ac_compile"
13541
case "(($ac_try" in
13542
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543
  *) ac_try_echo=$ac_try;;
13544
esac
13545 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13546
$as_echo "$ac_try_echo") >&5
13547 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13548
  ac_status=$?
13549
  grep -v '^ *+' conftest.er1 >conftest.err
13550
  rm -f conftest.er1
13551
  cat conftest.err >&5
13552 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 19 jeremybenn
  (exit $ac_status); } && {
13554
         test -z "$ac_c_werror_flag" ||
13555
         test ! -s conftest.err
13556
       } && test -s conftest.$ac_objext; then
13557 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
13558
         cat >conftest.$ac_ext <<_ACEOF
13559 19 jeremybenn
/* confdefs.h.  */
13560
_ACEOF
13561
cat confdefs.h >>conftest.$ac_ext
13562
cat >>conftest.$ac_ext <<_ACEOF
13563
/* end confdefs.h.  */
13564 82 jeremybenn
#include 
13565 19 jeremybenn
 
13566
int
13567
main ()
13568
{
13569 82 jeremybenn
#ifndef _BIG_ENDIAN
13570
                 not big endian
13571
                #endif
13572 19 jeremybenn
 
13573
  ;
13574
  return 0;
13575
}
13576
_ACEOF
13577
rm -f conftest.$ac_objext
13578
if { (ac_try="$ac_compile"
13579
case "(($ac_try" in
13580
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581
  *) ac_try_echo=$ac_try;;
13582
esac
13583 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13584
$as_echo "$ac_try_echo") >&5
13585 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13586
  ac_status=$?
13587
  grep -v '^ *+' conftest.er1 >conftest.err
13588
  rm -f conftest.er1
13589
  cat conftest.err >&5
13590 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 19 jeremybenn
  (exit $ac_status); } && {
13592
         test -z "$ac_c_werror_flag" ||
13593
         test ! -s conftest.err
13594
       } && test -s conftest.$ac_objext; then
13595
  ac_cv_c_bigendian=yes
13596
else
13597 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13598 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13599
 
13600
        ac_cv_c_bigendian=no
13601
fi
13602
 
13603
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604
else
13605 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13606 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13607
 
13608 82 jeremybenn
 
13609
fi
13610
 
13611
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612
    fi
13613
    if test $ac_cv_c_bigendian = unknown; then
13614
      # Compile a test program.
13615
      if test "$cross_compiling" = yes; then
13616
  # Try to guess by grepping values from an object file.
13617
         cat >conftest.$ac_ext <<_ACEOF
13618 19 jeremybenn
/* confdefs.h.  */
13619
_ACEOF
13620
cat confdefs.h >>conftest.$ac_ext
13621
cat >>conftest.$ac_ext <<_ACEOF
13622
/* end confdefs.h.  */
13623 82 jeremybenn
short int ascii_mm[] =
13624
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13625
                short int ascii_ii[] =
13626
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13627
                int use_ascii (int i) {
13628
                  return ascii_mm[i] + ascii_ii[i];
13629
                }
13630
                short int ebcdic_ii[] =
13631
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13632
                short int ebcdic_mm[] =
13633
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13634
                int use_ebcdic (int i) {
13635
                  return ebcdic_mm[i] + ebcdic_ii[i];
13636
                }
13637
                extern int foo;
13638
 
13639 19 jeremybenn
int
13640
main ()
13641
{
13642 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
13643 19 jeremybenn
  ;
13644
  return 0;
13645
}
13646
_ACEOF
13647
rm -f conftest.$ac_objext
13648
if { (ac_try="$ac_compile"
13649
case "(($ac_try" in
13650
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651
  *) ac_try_echo=$ac_try;;
13652
esac
13653 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13654
$as_echo "$ac_try_echo") >&5
13655 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13656
  ac_status=$?
13657
  grep -v '^ *+' conftest.er1 >conftest.err
13658
  rm -f conftest.er1
13659
  cat conftest.err >&5
13660 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 19 jeremybenn
  (exit $ac_status); } && {
13662
         test -z "$ac_c_werror_flag" ||
13663
         test ! -s conftest.err
13664
       } && test -s conftest.$ac_objext; then
13665 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13666
              ac_cv_c_bigendian=yes
13667
            fi
13668
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13669
              if test "$ac_cv_c_bigendian" = unknown; then
13670
                ac_cv_c_bigendian=no
13671
              else
13672
                # finding both strings is unlikely to happen, but who knows?
13673
                ac_cv_c_bigendian=unknown
13674
              fi
13675
            fi
13676 19 jeremybenn
else
13677 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13678 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13679
 
13680
 
13681
fi
13682
 
13683
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13684
else
13685
  cat >conftest.$ac_ext <<_ACEOF
13686
/* confdefs.h.  */
13687
_ACEOF
13688
cat confdefs.h >>conftest.$ac_ext
13689
cat >>conftest.$ac_ext <<_ACEOF
13690
/* end confdefs.h.  */
13691
$ac_includes_default
13692
int
13693
main ()
13694
{
13695
 
13696 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
13697
             union
13698
             {
13699
               long int l;
13700
               char c[sizeof (long int)];
13701
             } u;
13702
             u.l = 1;
13703
             return u.c[sizeof (long int) - 1] == 1;
13704 19 jeremybenn
 
13705
  ;
13706
  return 0;
13707
}
13708
_ACEOF
13709
rm -f conftest$ac_exeext
13710
if { (ac_try="$ac_link"
13711
case "(($ac_try" in
13712
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713
  *) ac_try_echo=$ac_try;;
13714
esac
13715 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13716
$as_echo "$ac_try_echo") >&5
13717 19 jeremybenn
  (eval "$ac_link") 2>&5
13718
  ac_status=$?
13719 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13721
  { (case "(($ac_try" in
13722
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723
  *) ac_try_echo=$ac_try;;
13724
esac
13725 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13726
$as_echo "$ac_try_echo") >&5
13727 19 jeremybenn
  (eval "$ac_try") 2>&5
13728
  ac_status=$?
13729 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 19 jeremybenn
  (exit $ac_status); }; }; then
13731
  ac_cv_c_bigendian=no
13732
else
13733 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
13734
$as_echo "$as_me: failed program was:" >&5
13735 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13736
 
13737
( exit $ac_status )
13738
ac_cv_c_bigendian=yes
13739
fi
13740 82 jeremybenn
rm -rf conftest.dSYM
13741 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13742
fi
13743
 
13744
 
13745 82 jeremybenn
    fi
13746 19 jeremybenn
fi
13747 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13748
$as_echo "$ac_cv_c_bigendian" >&6; }
13749
 case $ac_cv_c_bigendian in #(
13750
   yes)
13751
     cat >>confdefs.h <<\_ACEOF
13752
#define WORDS_BIGENDIAN 1
13753
_ACEOF
13754
;; #(
13755
   no)
13756
      ;; #(
13757
   universal)
13758 19 jeremybenn
 
13759 82 jeremybenn
cat >>confdefs.h <<\_ACEOF
13760
#define AC_APPLE_UNIVERSAL_BUILD 1
13761
_ACEOF
13762
 
13763
     ;; #(
13764
   *)
13765
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
13766
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13767
$as_echo "$as_me: error: unknown endianness
13768
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13769
   { (exit 1); exit 1; }; } ;;
13770
 esac
13771
 
13772
 
13773
# The test for strndup, strcasecmp and isblank fails on modern machines. I
13774
# think it's because GCC 4 does not like the way autoconf overrides the built
13775
# in type declaration. So we must check for them by steam.
13776
{ $as_echo "$as_me:$LINENO: checking for strndup" >&5
13777
$as_echo_n "checking for strndup... " >&6; }
13778
cat >conftest.$ac_ext <<_ACEOF
13779
/* confdefs.h.  */
13780
_ACEOF
13781
cat confdefs.h >>conftest.$ac_ext
13782
cat >>conftest.$ac_ext <<_ACEOF
13783
/* end confdefs.h.  */
13784
#ifdef HAVE_STRING_H
13785
                                  #include 
13786
                                  #else
13787
                                  char *strndup (const char *s,
13788
                                                 size_t      n);
13789
                                  #endif
13790
int
13791
main ()
13792
{
13793
\
13794
                                const char *s = "test";
13795
                                  char       *t;
13796
                                  t = strndup (s, 3);
13797
  ;
13798
  return 0;
13799
}
13800
_ACEOF
13801
rm -f conftest.$ac_objext conftest$ac_exeext
13802
if { (ac_try="$ac_link"
13803
case "(($ac_try" in
13804
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805
  *) ac_try_echo=$ac_try;;
13806
esac
13807
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13808
$as_echo "$ac_try_echo") >&5
13809
  (eval "$ac_link") 2>conftest.er1
13810
  ac_status=$?
13811
  grep -v '^ *+' conftest.er1 >conftest.err
13812
  rm -f conftest.er1
13813
  cat conftest.err >&5
13814
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815
  (exit $ac_status); } && {
13816
         test -z "$ac_c_werror_flag" ||
13817
         test ! -s conftest.err
13818
       } && test -s conftest$ac_exeext && {
13819
         test "$cross_compiling" = yes ||
13820
         $as_test_x conftest$ac_exeext
13821
       }; then
13822
  \
13823
 
13824
cat >>confdefs.h <<\_ACEOF
13825
#define HAVE_STRNDUP 1
13826
_ACEOF
13827
 \
13828
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13829
$as_echo "yes" >&6; }
13830
else
13831
  $as_echo "$as_me: failed program was:" >&5
13832
sed 's/^/| /' conftest.$ac_ext >&5
13833
 
13834
        { $as_echo "$as_me:$LINENO: result: no" >&5
13835
$as_echo "no" >&6; }
13836 19 jeremybenn
fi
13837
 
13838 82 jeremybenn
rm -rf conftest.dSYM
13839
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13840
      conftest$ac_exeext conftest.$ac_ext
13841
 
13842
{ $as_echo "$as_me:$LINENO: checking for strcasecmp" >&5
13843
$as_echo_n "checking for strcasecmp... " >&6; }
13844
cat >conftest.$ac_ext <<_ACEOF
13845
/* confdefs.h.  */
13846
_ACEOF
13847
cat confdefs.h >>conftest.$ac_ext
13848
cat >>conftest.$ac_ext <<_ACEOF
13849
/* end confdefs.h.  */
13850
#ifdef HAVE_STRINGS_H
13851
                                  #include 
13852
                                  #else
13853
                                  int strcasecmp (const char *s1,
13854
                                                  const char *s2);
13855
                                  #endif
13856
int
13857
main ()
13858
{
13859
\
13860
                                const char *s = "test";
13861
                                  const char *t = "TEST";
13862
                                  int         res;
13863
                                  res = strcasecmp (s, t);
13864
  ;
13865
  return 0;
13866
}
13867
_ACEOF
13868
rm -f conftest.$ac_objext conftest$ac_exeext
13869
if { (ac_try="$ac_link"
13870
case "(($ac_try" in
13871
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872
  *) ac_try_echo=$ac_try;;
13873
esac
13874
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13875
$as_echo "$ac_try_echo") >&5
13876
  (eval "$ac_link") 2>conftest.er1
13877
  ac_status=$?
13878
  grep -v '^ *+' conftest.er1 >conftest.err
13879
  rm -f conftest.er1
13880
  cat conftest.err >&5
13881
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882
  (exit $ac_status); } && {
13883
         test -z "$ac_c_werror_flag" ||
13884
         test ! -s conftest.err
13885
       } && test -s conftest$ac_exeext && {
13886
         test "$cross_compiling" = yes ||
13887
         $as_test_x conftest$ac_exeext
13888
       }; then
13889
  \
13890
 
13891 19 jeremybenn
cat >>confdefs.h <<\_ACEOF
13892 82 jeremybenn
#define HAVE_STRCASECMP 1
13893 19 jeremybenn
_ACEOF
13894 82 jeremybenn
 \
13895
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13896
$as_echo "yes" >&6; }
13897
else
13898
  $as_echo "$as_me: failed program was:" >&5
13899
sed 's/^/| /' conftest.$ac_ext >&5
13900
 
13901
        { $as_echo "$as_me:$LINENO: result: no" >&5
13902
$as_echo "no" >&6; }
13903
fi
13904
 
13905
rm -rf conftest.dSYM
13906
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13907
      conftest$ac_exeext conftest.$ac_ext
13908
 
13909
{ $as_echo "$as_me:$LINENO: checking for isblank" >&5
13910
$as_echo_n "checking for isblank... " >&6; }
13911
cat >conftest.$ac_ext <<_ACEOF
13912
/* confdefs.h.  */
13913
_ACEOF
13914
cat confdefs.h >>conftest.$ac_ext
13915
cat >>conftest.$ac_ext <<_ACEOF
13916
/* end confdefs.h.  */
13917
#ifdef HAVE_CTYPE_H
13918
                                  #include 
13919
                                  #else
13920
                                  int isblank (int  c);
13921
                                  #endif
13922
int
13923
main ()
13924
{
13925
\
13926
                                return isblank ('x');
13927
  ;
13928
  return 0;
13929
}
13930
_ACEOF
13931
rm -f conftest.$ac_objext conftest$ac_exeext
13932
if { (ac_try="$ac_link"
13933
case "(($ac_try" in
13934
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935
  *) ac_try_echo=$ac_try;;
13936 19 jeremybenn
esac
13937 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13938
$as_echo "$ac_try_echo") >&5
13939
  (eval "$ac_link") 2>conftest.er1
13940
  ac_status=$?
13941
  grep -v '^ *+' conftest.er1 >conftest.err
13942
  rm -f conftest.er1
13943
  cat conftest.err >&5
13944
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945
  (exit $ac_status); } && {
13946
         test -z "$ac_c_werror_flag" ||
13947
         test ! -s conftest.err
13948
       } && test -s conftest$ac_exeext && {
13949
         test "$cross_compiling" = yes ||
13950
         $as_test_x conftest$ac_exeext
13951
       }; then
13952
  \
13953 19 jeremybenn
 
13954 82 jeremybenn
cat >>confdefs.h <<\_ACEOF
13955
#define HAVE_ISBLANK 1
13956
_ACEOF
13957
 \
13958
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13959
$as_echo "yes" >&6; }
13960
else
13961
  $as_echo "$as_me: failed program was:" >&5
13962
sed 's/^/| /' conftest.$ac_ext >&5
13963 19 jeremybenn
 
13964 82 jeremybenn
        { $as_echo "$as_me:$LINENO: result: no" >&5
13965
$as_echo "no" >&6; }
13966
fi
13967
 
13968
rm -rf conftest.dSYM
13969
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13970
      conftest$ac_exeext conftest.$ac_ext
13971
 
13972 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
13973 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13974
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13975 19 jeremybenn
if test "${ac_cv_c_const+set}" = set; then
13976 82 jeremybenn
  $as_echo_n "(cached) " >&6
13977 19 jeremybenn
else
13978
  cat >conftest.$ac_ext <<_ACEOF
13979
/* confdefs.h.  */
13980
_ACEOF
13981
cat confdefs.h >>conftest.$ac_ext
13982
cat >>conftest.$ac_ext <<_ACEOF
13983
/* end confdefs.h.  */
13984
 
13985
int
13986
main ()
13987
{
13988
/* FIXME: Include the comments suggested by Paul. */
13989
#ifndef __cplusplus
13990
  /* Ultrix mips cc rejects this.  */
13991
  typedef int charset[2];
13992
  const charset cs;
13993
  /* SunOS 4.1.1 cc rejects this.  */
13994
  char const *const *pcpcc;
13995
  char **ppc;
13996
  /* NEC SVR4.0.2 mips cc rejects this.  */
13997
  struct point {int x, y;};
13998
  static struct point const zero = {0,0};
13999
  /* AIX XL C 1.02.0.0 rejects this.
14000
     It does not let you subtract one const X* pointer from another in
14001
     an arm of an if-expression whose if-part is not a constant
14002
     expression */
14003
  const char *g = "string";
14004
  pcpcc = &g + (g ? g-g : 0);
14005
  /* HPUX 7.0 cc rejects these. */
14006
  ++pcpcc;
14007
  ppc = (char**) pcpcc;
14008
  pcpcc = (char const *const *) ppc;
14009
  { /* SCO 3.2v4 cc rejects this.  */
14010
    char *t;
14011
    char const *s = 0 ? (char *) 0 : (char const *) 0;
14012
 
14013
    *t++ = 0;
14014
    if (s) return 0;
14015
  }
14016
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14017
    int x[] = {25, 17};
14018
    const int *foo = &x[0];
14019
    ++foo;
14020
  }
14021
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14022
    typedef const int *iptr;
14023
    iptr p = 0;
14024
    ++p;
14025
  }
14026
  { /* AIX XL C 1.02.0.0 rejects this saying
14027
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14028
    struct s { int j; const int *ap[3]; };
14029
    struct s *b; b->j = 5;
14030
  }
14031
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14032
    const int foo = 10;
14033
    if (!foo) return 0;
14034
  }
14035
  return !cs[0] && !zero.x;
14036
#endif
14037
 
14038
  ;
14039
  return 0;
14040
}
14041
_ACEOF
14042
rm -f conftest.$ac_objext
14043
if { (ac_try="$ac_compile"
14044
case "(($ac_try" in
14045
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046
  *) ac_try_echo=$ac_try;;
14047
esac
14048 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14049
$as_echo "$ac_try_echo") >&5
14050 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
14051
  ac_status=$?
14052
  grep -v '^ *+' conftest.er1 >conftest.err
14053
  rm -f conftest.er1
14054
  cat conftest.err >&5
14055 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 19 jeremybenn
  (exit $ac_status); } && {
14057
         test -z "$ac_c_werror_flag" ||
14058
         test ! -s conftest.err
14059
       } && test -s conftest.$ac_objext; then
14060
  ac_cv_c_const=yes
14061
else
14062 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14063 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14064
 
14065
        ac_cv_c_const=no
14066
fi
14067
 
14068
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14069
fi
14070 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14071
$as_echo "$ac_cv_c_const" >&6; }
14072 19 jeremybenn
if test $ac_cv_c_const = no; then
14073
 
14074
cat >>confdefs.h <<\_ACEOF
14075 82 jeremybenn
#define const /**/
14076 19 jeremybenn
_ACEOF
14077
 
14078
fi
14079
 
14080 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
14081
$as_echo_n "checking for size_t... " >&6; }
14082 19 jeremybenn
if test "${ac_cv_type_size_t+set}" = set; then
14083 82 jeremybenn
  $as_echo_n "(cached) " >&6
14084 19 jeremybenn
else
14085 82 jeremybenn
  ac_cv_type_size_t=no
14086
cat >conftest.$ac_ext <<_ACEOF
14087
/* confdefs.h.  */
14088
_ACEOF
14089
cat confdefs.h >>conftest.$ac_ext
14090
cat >>conftest.$ac_ext <<_ACEOF
14091
/* end confdefs.h.  */
14092
$ac_includes_default
14093
int
14094
main ()
14095
{
14096
if (sizeof (size_t))
14097
       return 0;
14098
  ;
14099
  return 0;
14100
}
14101
_ACEOF
14102
rm -f conftest.$ac_objext
14103
if { (ac_try="$ac_compile"
14104
case "(($ac_try" in
14105
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106
  *) ac_try_echo=$ac_try;;
14107
esac
14108
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14109
$as_echo "$ac_try_echo") >&5
14110
  (eval "$ac_compile") 2>conftest.er1
14111
  ac_status=$?
14112
  grep -v '^ *+' conftest.er1 >conftest.err
14113
  rm -f conftest.er1
14114
  cat conftest.err >&5
14115
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116
  (exit $ac_status); } && {
14117
         test -z "$ac_c_werror_flag" ||
14118
         test ! -s conftest.err
14119
       } && test -s conftest.$ac_objext; then
14120 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14121
/* confdefs.h.  */
14122
_ACEOF
14123
cat confdefs.h >>conftest.$ac_ext
14124
cat >>conftest.$ac_ext <<_ACEOF
14125
/* end confdefs.h.  */
14126
$ac_includes_default
14127
int
14128
main ()
14129
{
14130 82 jeremybenn
if (sizeof ((size_t)))
14131
          return 0;
14132 19 jeremybenn
  ;
14133
  return 0;
14134
}
14135
_ACEOF
14136
rm -f conftest.$ac_objext
14137
if { (ac_try="$ac_compile"
14138
case "(($ac_try" in
14139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140
  *) ac_try_echo=$ac_try;;
14141
esac
14142 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14143
$as_echo "$ac_try_echo") >&5
14144 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
14145
  ac_status=$?
14146
  grep -v '^ *+' conftest.er1 >conftest.err
14147
  rm -f conftest.er1
14148
  cat conftest.err >&5
14149 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 19 jeremybenn
  (exit $ac_status); } && {
14151
         test -z "$ac_c_werror_flag" ||
14152
         test ! -s conftest.err
14153
       } && test -s conftest.$ac_objext; then
14154 82 jeremybenn
  :
14155 19 jeremybenn
else
14156 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14157 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14158
 
14159 82 jeremybenn
        ac_cv_type_size_t=yes
14160 19 jeremybenn
fi
14161
 
14162
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14163 82 jeremybenn
else
14164
  $as_echo "$as_me: failed program was:" >&5
14165
sed 's/^/| /' conftest.$ac_ext >&5
14166
 
14167
 
14168 19 jeremybenn
fi
14169 82 jeremybenn
 
14170
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171
fi
14172
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14173
$as_echo "$ac_cv_type_size_t" >&6; }
14174
if test "x$ac_cv_type_size_t" = x""yes; then
14175 19 jeremybenn
  :
14176
else
14177
 
14178
cat >>confdefs.h <<_ACEOF
14179
#define size_t unsigned int
14180
_ACEOF
14181
 
14182
fi
14183
 
14184 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14185
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14186 19 jeremybenn
if test "${ac_cv_struct_tm+set}" = set; then
14187 82 jeremybenn
  $as_echo_n "(cached) " >&6
14188 19 jeremybenn
else
14189
  cat >conftest.$ac_ext <<_ACEOF
14190
/* confdefs.h.  */
14191
_ACEOF
14192
cat confdefs.h >>conftest.$ac_ext
14193
cat >>conftest.$ac_ext <<_ACEOF
14194
/* end confdefs.h.  */
14195
#include 
14196
#include 
14197
 
14198
int
14199
main ()
14200
{
14201
struct tm tm;
14202
                                     int *p = &tm.tm_sec;
14203 82 jeremybenn
                                     return !p;
14204 19 jeremybenn
  ;
14205
  return 0;
14206
}
14207
_ACEOF
14208
rm -f conftest.$ac_objext
14209
if { (ac_try="$ac_compile"
14210
case "(($ac_try" in
14211
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212
  *) ac_try_echo=$ac_try;;
14213
esac
14214 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14215
$as_echo "$ac_try_echo") >&5
14216 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
14217
  ac_status=$?
14218
  grep -v '^ *+' conftest.er1 >conftest.err
14219
  rm -f conftest.er1
14220
  cat conftest.err >&5
14221 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 19 jeremybenn
  (exit $ac_status); } && {
14223
         test -z "$ac_c_werror_flag" ||
14224
         test ! -s conftest.err
14225
       } && test -s conftest.$ac_objext; then
14226
  ac_cv_struct_tm=time.h
14227
else
14228 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14229 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14230
 
14231
        ac_cv_struct_tm=sys/time.h
14232
fi
14233
 
14234
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14235
fi
14236 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14237
$as_echo "$ac_cv_struct_tm" >&6; }
14238 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
14239
 
14240
cat >>confdefs.h <<\_ACEOF
14241
#define TM_IN_SYS_TIME 1
14242
_ACEOF
14243
 
14244
fi
14245
 
14246
 
14247
# Checks for library functions (for argtable2).
14248
 
14249
for ac_header in stdlib.h
14250
do
14251 82 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14252 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14253 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14254
$as_echo_n "checking for $ac_header... " >&6; }
14255 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14256 82 jeremybenn
  $as_echo_n "(cached) " >&6
14257 19 jeremybenn
fi
14258 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
14259
                 $as_echo "$as_val"'`
14260
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14261
$as_echo "$ac_res" >&6; }
14262 19 jeremybenn
else
14263
  # Is the header compilable?
14264 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14265
$as_echo_n "checking $ac_header usability... " >&6; }
14266 19 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14267
/* confdefs.h.  */
14268
_ACEOF
14269
cat confdefs.h >>conftest.$ac_ext
14270
cat >>conftest.$ac_ext <<_ACEOF
14271
/* end confdefs.h.  */
14272
$ac_includes_default
14273
#include <$ac_header>
14274
_ACEOF
14275
rm -f conftest.$ac_objext
14276
if { (ac_try="$ac_compile"
14277
case "(($ac_try" in
14278
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279
  *) ac_try_echo=$ac_try;;
14280
esac
14281 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14282
$as_echo "$ac_try_echo") >&5
14283 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
14284
  ac_status=$?
14285
  grep -v '^ *+' conftest.er1 >conftest.err
14286
  rm -f conftest.er1
14287
  cat conftest.err >&5
14288 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 19 jeremybenn
  (exit $ac_status); } && {
14290
         test -z "$ac_c_werror_flag" ||
14291
         test ! -s conftest.err
14292
       } && test -s conftest.$ac_objext; then
14293
  ac_header_compiler=yes
14294
else
14295 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14296 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14297
 
14298
        ac_header_compiler=no
14299
fi
14300
 
14301
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14303
$as_echo "$ac_header_compiler" >&6; }
14304 19 jeremybenn
 
14305
# Is the header present?
14306 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14307
$as_echo_n "checking $ac_header presence... " >&6; }
14308 19 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14309
/* confdefs.h.  */
14310
_ACEOF
14311
cat confdefs.h >>conftest.$ac_ext
14312
cat >>conftest.$ac_ext <<_ACEOF
14313
/* end confdefs.h.  */
14314
#include <$ac_header>
14315
_ACEOF
14316
if { (ac_try="$ac_cpp conftest.$ac_ext"
14317
case "(($ac_try" in
14318
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319
  *) ac_try_echo=$ac_try;;
14320
esac
14321 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14322
$as_echo "$ac_try_echo") >&5
14323 19 jeremybenn
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14324
  ac_status=$?
14325
  grep -v '^ *+' conftest.er1 >conftest.err
14326
  rm -f conftest.er1
14327
  cat conftest.err >&5
14328 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 19 jeremybenn
  (exit $ac_status); } >/dev/null && {
14330
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14331
         test ! -s conftest.err
14332
       }; then
14333
  ac_header_preproc=yes
14334
else
14335 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14336 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14337
 
14338
  ac_header_preproc=no
14339
fi
14340
 
14341
rm -f conftest.err conftest.$ac_ext
14342 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14343
$as_echo "$ac_header_preproc" >&6; }
14344 19 jeremybenn
 
14345
# So?  What about this header?
14346
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14347
  yes:no: )
14348 82 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14349
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14350
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14351
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14352 19 jeremybenn
    ac_header_preproc=yes
14353
    ;;
14354
  no:yes:* )
14355 82 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14356
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14357
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14358
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14359
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14360
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14361
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14362
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14363
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14364
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14365
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14366
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14367 19 jeremybenn
    ( cat <<\_ASBOX
14368
## ------------------------------------- ##
14369
## Report this to openrisc@opencores.org ##
14370
## ------------------------------------- ##
14371
_ASBOX
14372
     ) | sed "s/^/$as_me: WARNING:     /" >&2
14373
    ;;
14374
esac
14375 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14376
$as_echo_n "checking for $ac_header... " >&6; }
14377 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14378 82 jeremybenn
  $as_echo_n "(cached) " >&6
14379 19 jeremybenn
else
14380
  eval "$as_ac_Header=\$ac_header_preproc"
14381
fi
14382 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
14383
                 $as_echo "$as_val"'`
14384
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14385
$as_echo "$ac_res" >&6; }
14386 19 jeremybenn
 
14387
fi
14388 82 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
14389
                 $as_echo "$as_val"'`
14390
   if test "x$as_val" = x""yes; then
14391 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14392 82 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14393 19 jeremybenn
_ACEOF
14394
 
14395
fi
14396
 
14397
done
14398
 
14399 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14400
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14401 19 jeremybenn
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14402 82 jeremybenn
  $as_echo_n "(cached) " >&6
14403 19 jeremybenn
else
14404
  if test "$cross_compiling" = yes; then
14405
  ac_cv_func_malloc_0_nonnull=no
14406
else
14407
  cat >conftest.$ac_ext <<_ACEOF
14408
/* confdefs.h.  */
14409
_ACEOF
14410
cat confdefs.h >>conftest.$ac_ext
14411
cat >>conftest.$ac_ext <<_ACEOF
14412
/* end confdefs.h.  */
14413
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14414
# include 
14415
#else
14416
char *malloc ();
14417
#endif
14418
 
14419
int
14420
main ()
14421
{
14422
return ! malloc (0);
14423
  ;
14424
  return 0;
14425
}
14426
_ACEOF
14427
rm -f conftest$ac_exeext
14428
if { (ac_try="$ac_link"
14429
case "(($ac_try" in
14430
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431
  *) ac_try_echo=$ac_try;;
14432
esac
14433 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14434
$as_echo "$ac_try_echo") >&5
14435 19 jeremybenn
  (eval "$ac_link") 2>&5
14436
  ac_status=$?
14437 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14439
  { (case "(($ac_try" in
14440
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441
  *) ac_try_echo=$ac_try;;
14442
esac
14443 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14444
$as_echo "$ac_try_echo") >&5
14445 19 jeremybenn
  (eval "$ac_try") 2>&5
14446
  ac_status=$?
14447 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 19 jeremybenn
  (exit $ac_status); }; }; then
14449
  ac_cv_func_malloc_0_nonnull=yes
14450
else
14451 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14452
$as_echo "$as_me: failed program was:" >&5
14453 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14454
 
14455
( exit $ac_status )
14456
ac_cv_func_malloc_0_nonnull=no
14457
fi
14458 82 jeremybenn
rm -rf conftest.dSYM
14459 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14460
fi
14461
 
14462
 
14463
fi
14464 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14465
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14466 19 jeremybenn
if test $ac_cv_func_malloc_0_nonnull = yes; then
14467
 
14468
cat >>confdefs.h <<\_ACEOF
14469
#define HAVE_MALLOC 1
14470
_ACEOF
14471
 
14472
else
14473
  cat >>confdefs.h <<\_ACEOF
14474
#define HAVE_MALLOC 0
14475
_ACEOF
14476
 
14477
   case " $LIBOBJS " in
14478
  *" malloc.$ac_objext "* ) ;;
14479
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14480
 ;;
14481
esac
14482
 
14483
 
14484
cat >>confdefs.h <<\_ACEOF
14485
#define malloc rpl_malloc
14486
_ACEOF
14487
 
14488
fi
14489
 
14490
 
14491
 
14492
 
14493
for ac_func in strftime
14494
do
14495 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14496
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14497
$as_echo_n "checking for $ac_func... " >&6; }
14498 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14499 82 jeremybenn
  $as_echo_n "(cached) " >&6
14500 19 jeremybenn
else
14501
  cat >conftest.$ac_ext <<_ACEOF
14502
/* confdefs.h.  */
14503
_ACEOF
14504
cat confdefs.h >>conftest.$ac_ext
14505
cat >>conftest.$ac_ext <<_ACEOF
14506
/* end confdefs.h.  */
14507
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14508
   For example, HP-UX 11i  declares gettimeofday.  */
14509
#define $ac_func innocuous_$ac_func
14510
 
14511
/* System header to define __stub macros and hopefully few prototypes,
14512
    which can conflict with char $ac_func (); below.
14513
    Prefer  to  if __STDC__ is defined, since
14514
     exists even on freestanding compilers.  */
14515
 
14516
#ifdef __STDC__
14517
# include 
14518
#else
14519
# include 
14520
#endif
14521
 
14522
#undef $ac_func
14523
 
14524
/* Override any GCC internal prototype to avoid an error.
14525
   Use char because int might match the return type of a GCC
14526
   builtin and then its argument prototype would still apply.  */
14527
#ifdef __cplusplus
14528
extern "C"
14529
#endif
14530
char $ac_func ();
14531
/* The GNU C library defines this for functions which it implements
14532
    to always fail with ENOSYS.  Some functions are actually named
14533
    something starting with __ and the normal name is an alias.  */
14534
#if defined __stub_$ac_func || defined __stub___$ac_func
14535
choke me
14536
#endif
14537
 
14538
int
14539
main ()
14540
{
14541
return $ac_func ();
14542
  ;
14543
  return 0;
14544
}
14545
_ACEOF
14546
rm -f conftest.$ac_objext conftest$ac_exeext
14547
if { (ac_try="$ac_link"
14548
case "(($ac_try" in
14549
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550
  *) ac_try_echo=$ac_try;;
14551
esac
14552 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14553
$as_echo "$ac_try_echo") >&5
14554 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14555
  ac_status=$?
14556
  grep -v '^ *+' conftest.er1 >conftest.err
14557
  rm -f conftest.er1
14558
  cat conftest.err >&5
14559 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 19 jeremybenn
  (exit $ac_status); } && {
14561
         test -z "$ac_c_werror_flag" ||
14562
         test ! -s conftest.err
14563 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14564
         test "$cross_compiling" = yes ||
14565
         $as_test_x conftest$ac_exeext
14566
       }; then
14567 19 jeremybenn
  eval "$as_ac_var=yes"
14568
else
14569 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14570 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14571
 
14572
        eval "$as_ac_var=no"
14573
fi
14574
 
14575 82 jeremybenn
rm -rf conftest.dSYM
14576 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14577
      conftest$ac_exeext conftest.$ac_ext
14578
fi
14579 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
14580
                 $as_echo "$as_val"'`
14581
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14582
$as_echo "$ac_res" >&6; }
14583
as_val=`eval 'as_val=${'$as_ac_var'}
14584
                 $as_echo "$as_val"'`
14585
   if test "x$as_val" = x""yes; then
14586 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14587 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14588 19 jeremybenn
_ACEOF
14589
 
14590
else
14591
  # strftime is in -lintl on SCO UNIX.
14592 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14593
$as_echo_n "checking for strftime in -lintl... " >&6; }
14594 19 jeremybenn
if test "${ac_cv_lib_intl_strftime+set}" = set; then
14595 82 jeremybenn
  $as_echo_n "(cached) " >&6
14596 19 jeremybenn
else
14597
  ac_check_lib_save_LIBS=$LIBS
14598
LIBS="-lintl  $LIBS"
14599
cat >conftest.$ac_ext <<_ACEOF
14600
/* confdefs.h.  */
14601
_ACEOF
14602
cat confdefs.h >>conftest.$ac_ext
14603
cat >>conftest.$ac_ext <<_ACEOF
14604
/* end confdefs.h.  */
14605
 
14606
/* Override any GCC internal prototype to avoid an error.
14607
   Use char because int might match the return type of a GCC
14608
   builtin and then its argument prototype would still apply.  */
14609
#ifdef __cplusplus
14610
extern "C"
14611
#endif
14612
char strftime ();
14613
int
14614
main ()
14615
{
14616
return strftime ();
14617
  ;
14618
  return 0;
14619
}
14620
_ACEOF
14621
rm -f conftest.$ac_objext conftest$ac_exeext
14622
if { (ac_try="$ac_link"
14623
case "(($ac_try" in
14624
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625
  *) ac_try_echo=$ac_try;;
14626
esac
14627 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14628
$as_echo "$ac_try_echo") >&5
14629 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14630
  ac_status=$?
14631
  grep -v '^ *+' conftest.er1 >conftest.err
14632
  rm -f conftest.er1
14633
  cat conftest.err >&5
14634 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 19 jeremybenn
  (exit $ac_status); } && {
14636
         test -z "$ac_c_werror_flag" ||
14637
         test ! -s conftest.err
14638 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14639
         test "$cross_compiling" = yes ||
14640
         $as_test_x conftest$ac_exeext
14641
       }; then
14642 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
14643
else
14644 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14645 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14646
 
14647
        ac_cv_lib_intl_strftime=no
14648
fi
14649
 
14650 82 jeremybenn
rm -rf conftest.dSYM
14651 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14652
      conftest$ac_exeext conftest.$ac_ext
14653
LIBS=$ac_check_lib_save_LIBS
14654
fi
14655 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14656
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
14657
if test "x$ac_cv_lib_intl_strftime" = x""yes; then
14658 19 jeremybenn
  cat >>confdefs.h <<\_ACEOF
14659
#define HAVE_STRFTIME 1
14660
_ACEOF
14661
 
14662
LIBS="-lintl $LIBS"
14663
fi
14664
 
14665
fi
14666
done
14667
 
14668 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
14669
$as_echo_n "checking for working strtod... " >&6; }
14670 19 jeremybenn
if test "${ac_cv_func_strtod+set}" = set; then
14671 82 jeremybenn
  $as_echo_n "(cached) " >&6
14672 19 jeremybenn
else
14673
  if test "$cross_compiling" = yes; then
14674
  ac_cv_func_strtod=no
14675
else
14676
  cat >conftest.$ac_ext <<_ACEOF
14677
/* confdefs.h.  */
14678
_ACEOF
14679
cat confdefs.h >>conftest.$ac_ext
14680
cat >>conftest.$ac_ext <<_ACEOF
14681
/* end confdefs.h.  */
14682
 
14683
$ac_includes_default
14684
#ifndef strtod
14685
double strtod ();
14686
#endif
14687
int
14688
main()
14689
{
14690
  {
14691
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
14692
    char *string = " +69";
14693
    char *term;
14694
    double value;
14695
    value = strtod (string, &term);
14696
    if (value != 69 || term != (string + 4))
14697
      return 1;
14698
  }
14699
 
14700
  {
14701
    /* Under Solaris 2.4, strtod returns the wrong value for the
14702
       terminating character under some conditions.  */
14703
    char *string = "NaN";
14704
    char *term;
14705
    strtod (string, &term);
14706
    if (term != string && *(term - 1) == 0)
14707
      return 1;
14708
  }
14709
  return 0;
14710
}
14711
 
14712
_ACEOF
14713
rm -f conftest$ac_exeext
14714
if { (ac_try="$ac_link"
14715
case "(($ac_try" in
14716
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717
  *) ac_try_echo=$ac_try;;
14718
esac
14719 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14720
$as_echo "$ac_try_echo") >&5
14721 19 jeremybenn
  (eval "$ac_link") 2>&5
14722
  ac_status=$?
14723 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14725
  { (case "(($ac_try" in
14726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727
  *) ac_try_echo=$ac_try;;
14728
esac
14729 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14730
$as_echo "$ac_try_echo") >&5
14731 19 jeremybenn
  (eval "$ac_try") 2>&5
14732
  ac_status=$?
14733 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 19 jeremybenn
  (exit $ac_status); }; }; then
14735
  ac_cv_func_strtod=yes
14736
else
14737 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14738
$as_echo "$as_me: failed program was:" >&5
14739 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14740
 
14741
( exit $ac_status )
14742
ac_cv_func_strtod=no
14743
fi
14744 82 jeremybenn
rm -rf conftest.dSYM
14745 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14746
fi
14747
 
14748
 
14749
fi
14750 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14751
$as_echo "$ac_cv_func_strtod" >&6; }
14752 19 jeremybenn
if test $ac_cv_func_strtod = no; then
14753
  case " $LIBOBJS " in
14754
  *" strtod.$ac_objext "* ) ;;
14755
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14756
 ;;
14757
esac
14758
 
14759 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for pow" >&5
14760
$as_echo_n "checking for pow... " >&6; }
14761 19 jeremybenn
if test "${ac_cv_func_pow+set}" = set; then
14762 82 jeremybenn
  $as_echo_n "(cached) " >&6
14763 19 jeremybenn
else
14764
  cat >conftest.$ac_ext <<_ACEOF
14765
/* confdefs.h.  */
14766
_ACEOF
14767
cat confdefs.h >>conftest.$ac_ext
14768
cat >>conftest.$ac_ext <<_ACEOF
14769
/* end confdefs.h.  */
14770
/* Define pow to an innocuous variant, in case  declares pow.
14771
   For example, HP-UX 11i  declares gettimeofday.  */
14772
#define pow innocuous_pow
14773
 
14774
/* System header to define __stub macros and hopefully few prototypes,
14775
    which can conflict with char pow (); below.
14776
    Prefer  to  if __STDC__ is defined, since
14777
     exists even on freestanding compilers.  */
14778
 
14779
#ifdef __STDC__
14780
# include 
14781
#else
14782
# include 
14783
#endif
14784
 
14785
#undef pow
14786
 
14787
/* Override any GCC internal prototype to avoid an error.
14788
   Use char because int might match the return type of a GCC
14789
   builtin and then its argument prototype would still apply.  */
14790
#ifdef __cplusplus
14791
extern "C"
14792
#endif
14793
char pow ();
14794
/* The GNU C library defines this for functions which it implements
14795
    to always fail with ENOSYS.  Some functions are actually named
14796
    something starting with __ and the normal name is an alias.  */
14797
#if defined __stub_pow || defined __stub___pow
14798
choke me
14799
#endif
14800
 
14801
int
14802
main ()
14803
{
14804
return pow ();
14805
  ;
14806
  return 0;
14807
}
14808
_ACEOF
14809
rm -f conftest.$ac_objext conftest$ac_exeext
14810
if { (ac_try="$ac_link"
14811
case "(($ac_try" in
14812
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813
  *) ac_try_echo=$ac_try;;
14814
esac
14815 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14816
$as_echo "$ac_try_echo") >&5
14817 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14818
  ac_status=$?
14819
  grep -v '^ *+' conftest.er1 >conftest.err
14820
  rm -f conftest.er1
14821
  cat conftest.err >&5
14822 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 19 jeremybenn
  (exit $ac_status); } && {
14824
         test -z "$ac_c_werror_flag" ||
14825
         test ! -s conftest.err
14826 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14827
         test "$cross_compiling" = yes ||
14828
         $as_test_x conftest$ac_exeext
14829
       }; then
14830 19 jeremybenn
  ac_cv_func_pow=yes
14831
else
14832 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14833 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14834
 
14835
        ac_cv_func_pow=no
14836
fi
14837
 
14838 82 jeremybenn
rm -rf conftest.dSYM
14839 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14840
      conftest$ac_exeext conftest.$ac_ext
14841
fi
14842 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14843
$as_echo "$ac_cv_func_pow" >&6; }
14844 19 jeremybenn
 
14845
if test $ac_cv_func_pow = no; then
14846 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
14847
$as_echo_n "checking for pow in -lm... " >&6; }
14848 19 jeremybenn
if test "${ac_cv_lib_m_pow+set}" = set; then
14849 82 jeremybenn
  $as_echo_n "(cached) " >&6
14850 19 jeremybenn
else
14851
  ac_check_lib_save_LIBS=$LIBS
14852
LIBS="-lm  $LIBS"
14853
cat >conftest.$ac_ext <<_ACEOF
14854
/* confdefs.h.  */
14855
_ACEOF
14856
cat confdefs.h >>conftest.$ac_ext
14857
cat >>conftest.$ac_ext <<_ACEOF
14858
/* end confdefs.h.  */
14859
 
14860
/* Override any GCC internal prototype to avoid an error.
14861
   Use char because int might match the return type of a GCC
14862
   builtin and then its argument prototype would still apply.  */
14863
#ifdef __cplusplus
14864
extern "C"
14865
#endif
14866
char pow ();
14867
int
14868
main ()
14869
{
14870
return pow ();
14871
  ;
14872
  return 0;
14873
}
14874
_ACEOF
14875
rm -f conftest.$ac_objext conftest$ac_exeext
14876
if { (ac_try="$ac_link"
14877
case "(($ac_try" in
14878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879
  *) ac_try_echo=$ac_try;;
14880
esac
14881 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14882
$as_echo "$ac_try_echo") >&5
14883 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14884
  ac_status=$?
14885
  grep -v '^ *+' conftest.er1 >conftest.err
14886
  rm -f conftest.er1
14887
  cat conftest.err >&5
14888 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 19 jeremybenn
  (exit $ac_status); } && {
14890
         test -z "$ac_c_werror_flag" ||
14891
         test ! -s conftest.err
14892 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14893
         test "$cross_compiling" = yes ||
14894
         $as_test_x conftest$ac_exeext
14895
       }; then
14896 19 jeremybenn
  ac_cv_lib_m_pow=yes
14897
else
14898 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14899 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14900
 
14901
        ac_cv_lib_m_pow=no
14902
fi
14903
 
14904 82 jeremybenn
rm -rf conftest.dSYM
14905 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14906
      conftest$ac_exeext conftest.$ac_ext
14907
LIBS=$ac_check_lib_save_LIBS
14908
fi
14909 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14910
$as_echo "$ac_cv_lib_m_pow" >&6; }
14911
if test "x$ac_cv_lib_m_pow" = x""yes; then
14912 19 jeremybenn
  POW_LIB=-lm
14913
else
14914 82 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14915
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14916 19 jeremybenn
fi
14917
 
14918
fi
14919
 
14920
fi
14921
 
14922
 
14923
 
14924
 
14925
 
14926
 
14927
for ac_func in bzero strchr strcspn strrchr strtol
14928
do
14929 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14930
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14931
$as_echo_n "checking for $ac_func... " >&6; }
14932 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14933 82 jeremybenn
  $as_echo_n "(cached) " >&6
14934 19 jeremybenn
else
14935
  cat >conftest.$ac_ext <<_ACEOF
14936
/* confdefs.h.  */
14937
_ACEOF
14938
cat confdefs.h >>conftest.$ac_ext
14939
cat >>conftest.$ac_ext <<_ACEOF
14940
/* end confdefs.h.  */
14941
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14942
   For example, HP-UX 11i  declares gettimeofday.  */
14943
#define $ac_func innocuous_$ac_func
14944
 
14945
/* System header to define __stub macros and hopefully few prototypes,
14946
    which can conflict with char $ac_func (); below.
14947
    Prefer  to  if __STDC__ is defined, since
14948
     exists even on freestanding compilers.  */
14949
 
14950
#ifdef __STDC__
14951
# include 
14952
#else
14953
# include 
14954
#endif
14955
 
14956
#undef $ac_func
14957
 
14958
/* Override any GCC internal prototype to avoid an error.
14959
   Use char because int might match the return type of a GCC
14960
   builtin and then its argument prototype would still apply.  */
14961
#ifdef __cplusplus
14962
extern "C"
14963
#endif
14964
char $ac_func ();
14965
/* The GNU C library defines this for functions which it implements
14966
    to always fail with ENOSYS.  Some functions are actually named
14967
    something starting with __ and the normal name is an alias.  */
14968
#if defined __stub_$ac_func || defined __stub___$ac_func
14969
choke me
14970
#endif
14971
 
14972
int
14973
main ()
14974
{
14975
return $ac_func ();
14976
  ;
14977
  return 0;
14978
}
14979
_ACEOF
14980
rm -f conftest.$ac_objext conftest$ac_exeext
14981
if { (ac_try="$ac_link"
14982
case "(($ac_try" in
14983
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984
  *) ac_try_echo=$ac_try;;
14985
esac
14986 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14987
$as_echo "$ac_try_echo") >&5
14988 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14989
  ac_status=$?
14990
  grep -v '^ *+' conftest.er1 >conftest.err
14991
  rm -f conftest.er1
14992
  cat conftest.err >&5
14993 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 19 jeremybenn
  (exit $ac_status); } && {
14995
         test -z "$ac_c_werror_flag" ||
14996
         test ! -s conftest.err
14997 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14998
         test "$cross_compiling" = yes ||
14999
         $as_test_x conftest$ac_exeext
15000
       }; then
15001 19 jeremybenn
  eval "$as_ac_var=yes"
15002
else
15003 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15004 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15005
 
15006
        eval "$as_ac_var=no"
15007
fi
15008
 
15009 82 jeremybenn
rm -rf conftest.dSYM
15010 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15011
      conftest$ac_exeext conftest.$ac_ext
15012
fi
15013 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
15014
                 $as_echo "$as_val"'`
15015
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15016
$as_echo "$ac_res" >&6; }
15017
as_val=`eval 'as_val=${'$as_ac_var'}
15018
                 $as_echo "$as_val"'`
15019
   if test "x$as_val" = x""yes; then
15020 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
15021 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15022 19 jeremybenn
_ACEOF
15023
 
15024
fi
15025
done
15026
 
15027 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
15028
$as_echo_n "checking for getopt_long... " >&6; }
15029 19 jeremybenn
if test "${ac_cv_func_getopt_long+set}" = set; then
15030 82 jeremybenn
  $as_echo_n "(cached) " >&6
15031 19 jeremybenn
else
15032
  cat >conftest.$ac_ext <<_ACEOF
15033
/* confdefs.h.  */
15034
_ACEOF
15035
cat confdefs.h >>conftest.$ac_ext
15036
cat >>conftest.$ac_ext <<_ACEOF
15037
/* end confdefs.h.  */
15038
/* Define getopt_long to an innocuous variant, in case  declares getopt_long.
15039
   For example, HP-UX 11i  declares gettimeofday.  */
15040
#define getopt_long innocuous_getopt_long
15041
 
15042
/* System header to define __stub macros and hopefully few prototypes,
15043
    which can conflict with char getopt_long (); below.
15044
    Prefer  to  if __STDC__ is defined, since
15045
     exists even on freestanding compilers.  */
15046
 
15047
#ifdef __STDC__
15048
# include 
15049
#else
15050
# include 
15051
#endif
15052
 
15053
#undef getopt_long
15054
 
15055
/* Override any GCC internal prototype to avoid an error.
15056
   Use char because int might match the return type of a GCC
15057
   builtin and then its argument prototype would still apply.  */
15058
#ifdef __cplusplus
15059
extern "C"
15060
#endif
15061
char getopt_long ();
15062
/* The GNU C library defines this for functions which it implements
15063
    to always fail with ENOSYS.  Some functions are actually named
15064
    something starting with __ and the normal name is an alias.  */
15065
#if defined __stub_getopt_long || defined __stub___getopt_long
15066
choke me
15067
#endif
15068
 
15069
int
15070
main ()
15071
{
15072
return getopt_long ();
15073
  ;
15074
  return 0;
15075
}
15076
_ACEOF
15077
rm -f conftest.$ac_objext conftest$ac_exeext
15078
if { (ac_try="$ac_link"
15079
case "(($ac_try" in
15080
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081
  *) ac_try_echo=$ac_try;;
15082
esac
15083 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15084
$as_echo "$ac_try_echo") >&5
15085 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
15086
  ac_status=$?
15087
  grep -v '^ *+' conftest.er1 >conftest.err
15088
  rm -f conftest.er1
15089
  cat conftest.err >&5
15090 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 19 jeremybenn
  (exit $ac_status); } && {
15092
         test -z "$ac_c_werror_flag" ||
15093
         test ! -s conftest.err
15094 82 jeremybenn
       } && test -s conftest$ac_exeext && {
15095
         test "$cross_compiling" = yes ||
15096
         $as_test_x conftest$ac_exeext
15097
       }; then
15098 19 jeremybenn
  ac_cv_func_getopt_long=yes
15099
else
15100 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15101 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15102
 
15103
        ac_cv_func_getopt_long=no
15104
fi
15105
 
15106 82 jeremybenn
rm -rf conftest.dSYM
15107 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15108
      conftest$ac_exeext conftest.$ac_ext
15109
fi
15110 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
15111
$as_echo "$ac_cv_func_getopt_long" >&6; }
15112
if test "x$ac_cv_func_getopt_long" = x""yes; then
15113 19 jeremybenn
  SYS_GETOPTLONG=1
15114
else
15115
  SYS_GETOPTLONG=0
15116
fi
15117
 
15118 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for regcomp" >&5
15119
$as_echo_n "checking for regcomp... " >&6; }
15120 19 jeremybenn
if test "${ac_cv_func_regcomp+set}" = set; then
15121 82 jeremybenn
  $as_echo_n "(cached) " >&6
15122 19 jeremybenn
else
15123
  cat >conftest.$ac_ext <<_ACEOF
15124
/* confdefs.h.  */
15125
_ACEOF
15126
cat confdefs.h >>conftest.$ac_ext
15127
cat >>conftest.$ac_ext <<_ACEOF
15128
/* end confdefs.h.  */
15129
/* Define regcomp to an innocuous variant, in case  declares regcomp.
15130
   For example, HP-UX 11i  declares gettimeofday.  */
15131
#define regcomp innocuous_regcomp
15132
 
15133
/* System header to define __stub macros and hopefully few prototypes,
15134
    which can conflict with char regcomp (); below.
15135
    Prefer  to  if __STDC__ is defined, since
15136
     exists even on freestanding compilers.  */
15137
 
15138
#ifdef __STDC__
15139
# include 
15140
#else
15141
# include 
15142
#endif
15143
 
15144
#undef regcomp
15145
 
15146
/* Override any GCC internal prototype to avoid an error.
15147
   Use char because int might match the return type of a GCC
15148
   builtin and then its argument prototype would still apply.  */
15149
#ifdef __cplusplus
15150
extern "C"
15151
#endif
15152
char regcomp ();
15153
/* The GNU C library defines this for functions which it implements
15154
    to always fail with ENOSYS.  Some functions are actually named
15155
    something starting with __ and the normal name is an alias.  */
15156
#if defined __stub_regcomp || defined __stub___regcomp
15157
choke me
15158
#endif
15159
 
15160
int
15161
main ()
15162
{
15163
return regcomp ();
15164
  ;
15165
  return 0;
15166
}
15167
_ACEOF
15168
rm -f conftest.$ac_objext conftest$ac_exeext
15169
if { (ac_try="$ac_link"
15170
case "(($ac_try" in
15171
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172
  *) ac_try_echo=$ac_try;;
15173
esac
15174 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15175
$as_echo "$ac_try_echo") >&5
15176 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
15177
  ac_status=$?
15178
  grep -v '^ *+' conftest.er1 >conftest.err
15179
  rm -f conftest.er1
15180
  cat conftest.err >&5
15181 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 19 jeremybenn
  (exit $ac_status); } && {
15183
         test -z "$ac_c_werror_flag" ||
15184
         test ! -s conftest.err
15185 82 jeremybenn
       } && test -s conftest$ac_exeext && {
15186
         test "$cross_compiling" = yes ||
15187
         $as_test_x conftest$ac_exeext
15188
       }; then
15189 19 jeremybenn
  ac_cv_func_regcomp=yes
15190
else
15191 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15192 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15193
 
15194
        ac_cv_func_regcomp=no
15195
fi
15196
 
15197 82 jeremybenn
rm -rf conftest.dSYM
15198 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15199
      conftest$ac_exeext conftest.$ac_ext
15200
fi
15201 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
15202
$as_echo "$ac_cv_func_regcomp" >&6; }
15203
if test "x$ac_cv_func_regcomp" = x""yes; then
15204 19 jeremybenn
  SYS_REGEX=1
15205
else
15206
  SYS_REGEX=0
15207
fi
15208
 
15209 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strptime" >&5
15210
$as_echo_n "checking for strptime... " >&6; }
15211 19 jeremybenn
if test "${ac_cv_func_strptime+set}" = set; then
15212 82 jeremybenn
  $as_echo_n "(cached) " >&6
15213 19 jeremybenn
else
15214
  cat >conftest.$ac_ext <<_ACEOF
15215
/* confdefs.h.  */
15216
_ACEOF
15217
cat confdefs.h >>conftest.$ac_ext
15218
cat >>conftest.$ac_ext <<_ACEOF
15219
/* end confdefs.h.  */
15220
/* Define strptime to an innocuous variant, in case  declares strptime.
15221
   For example, HP-UX 11i  declares gettimeofday.  */
15222
#define strptime innocuous_strptime
15223
 
15224
/* System header to define __stub macros and hopefully few prototypes,
15225
    which can conflict with char strptime (); below.
15226
    Prefer  to  if __STDC__ is defined, since
15227
     exists even on freestanding compilers.  */
15228
 
15229
#ifdef __STDC__
15230
# include 
15231
#else
15232
# include 
15233
#endif
15234
 
15235
#undef strptime
15236
 
15237
/* Override any GCC internal prototype to avoid an error.
15238
   Use char because int might match the return type of a GCC
15239
   builtin and then its argument prototype would still apply.  */
15240
#ifdef __cplusplus
15241
extern "C"
15242
#endif
15243
char strptime ();
15244
/* The GNU C library defines this for functions which it implements
15245
    to always fail with ENOSYS.  Some functions are actually named
15246
    something starting with __ and the normal name is an alias.  */
15247
#if defined __stub_strptime || defined __stub___strptime
15248
choke me
15249
#endif
15250
 
15251
int
15252
main ()
15253
{
15254
return strptime ();
15255
  ;
15256
  return 0;
15257
}
15258
_ACEOF
15259
rm -f conftest.$ac_objext conftest$ac_exeext
15260
if { (ac_try="$ac_link"
15261
case "(($ac_try" in
15262
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263
  *) ac_try_echo=$ac_try;;
15264
esac
15265 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15266
$as_echo "$ac_try_echo") >&5
15267 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
15268
  ac_status=$?
15269
  grep -v '^ *+' conftest.er1 >conftest.err
15270
  rm -f conftest.er1
15271
  cat conftest.err >&5
15272 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 19 jeremybenn
  (exit $ac_status); } && {
15274
         test -z "$ac_c_werror_flag" ||
15275
         test ! -s conftest.err
15276 82 jeremybenn
       } && test -s conftest$ac_exeext && {
15277
         test "$cross_compiling" = yes ||
15278
         $as_test_x conftest$ac_exeext
15279
       }; then
15280 19 jeremybenn
  ac_cv_func_strptime=yes
15281
else
15282 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15283 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15284
 
15285
        ac_cv_func_strptime=no
15286
fi
15287
 
15288 82 jeremybenn
rm -rf conftest.dSYM
15289 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15290
      conftest$ac_exeext conftest.$ac_ext
15291
fi
15292 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
15293
$as_echo "$ac_cv_func_strptime" >&6; }
15294
if test "x$ac_cv_func_strptime" = x""yes; then
15295 19 jeremybenn
  SYS_STRPTIME=1
15296
else
15297
  SYS_STRPTIME=0
15298
fi
15299
 
15300
 
15301
# Define automake conditionals (for argtable2)
15302
 if test "$SYS_GETOPTLONG" = "1"; then
15303
  USE_SYS_GETOPTLONG_TRUE=
15304
  USE_SYS_GETOPTLONG_FALSE='#'
15305
else
15306
  USE_SYS_GETOPTLONG_TRUE='#'
15307
  USE_SYS_GETOPTLONG_FALSE=
15308
fi
15309
 
15310
 if test "$SYS_REGEX" = "1"; then
15311
  USE_ARGREX_TRUE=
15312
  USE_ARGREX_FALSE='#'
15313
else
15314
  USE_ARGREX_TRUE='#'
15315
  USE_ARGREX_FALSE=
15316
fi
15317
 
15318
 if test "$SYS_STRPTIME" = "1"; then
15319
  USE_ARGDATE_TRUE=
15320
  USE_ARGDATE_FALSE='#'
15321
else
15322
  USE_ARGDATE_TRUE='#'
15323
  USE_ARGDATE_FALSE=
15324
fi
15325
 
15326
 
15327
# check for "long long" (added by Erez)
15328
cat >conftest.$ac_ext <<_ACEOF
15329
/* confdefs.h.  */
15330
_ACEOF
15331
cat confdefs.h >>conftest.$ac_ext
15332
cat >>conftest.$ac_ext <<_ACEOF
15333
/* end confdefs.h.  */
15334
 
15335
int
15336
main ()
15337
{
15338
long long ll; unsigned long long ull;
15339
  ;
15340
  return 0;
15341
}
15342
_ACEOF
15343
rm -f conftest.$ac_objext
15344
if { (ac_try="$ac_compile"
15345
case "(($ac_try" in
15346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347
  *) ac_try_echo=$ac_try;;
15348
esac
15349 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15350
$as_echo "$ac_try_echo") >&5
15351 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15352
  ac_status=$?
15353
  grep -v '^ *+' conftest.er1 >conftest.err
15354
  rm -f conftest.er1
15355
  cat conftest.err >&5
15356 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 19 jeremybenn
  (exit $ac_status); } && {
15358
         test -z "$ac_c_werror_flag" ||
15359
         test ! -s conftest.err
15360
       } && test -s conftest.$ac_objext; then
15361
 
15362
cat >>confdefs.h <<\_ACEOF
15363
#define CC_HAS_LONG_LONG 1
15364
_ACEOF
15365
 
15366
else
15367 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15368 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15369
 
15370
 
15371
fi
15372
 
15373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374
 
15375
# check for {u,}int{8,16,32}_t in inttypes.h.
15376 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
15377
$as_echo_n "checking for uint8_t... " >&6; }
15378 19 jeremybenn
if test "${ac_cv_type_uint8_t+set}" = set; then
15379 82 jeremybenn
  $as_echo_n "(cached) " >&6
15380 19 jeremybenn
else
15381 82 jeremybenn
  ac_cv_type_uint8_t=no
15382
cat >conftest.$ac_ext <<_ACEOF
15383
/* confdefs.h.  */
15384
_ACEOF
15385
cat confdefs.h >>conftest.$ac_ext
15386
cat >>conftest.$ac_ext <<_ACEOF
15387
/* end confdefs.h.  */
15388
#include 
15389
 
15390
int
15391
main ()
15392
{
15393
if (sizeof (uint8_t))
15394
       return 0;
15395
  ;
15396
  return 0;
15397
}
15398
_ACEOF
15399
rm -f conftest.$ac_objext
15400
if { (ac_try="$ac_compile"
15401
case "(($ac_try" in
15402
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403
  *) ac_try_echo=$ac_try;;
15404
esac
15405
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15406
$as_echo "$ac_try_echo") >&5
15407
  (eval "$ac_compile") 2>conftest.er1
15408
  ac_status=$?
15409
  grep -v '^ *+' conftest.er1 >conftest.err
15410
  rm -f conftest.er1
15411
  cat conftest.err >&5
15412
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413
  (exit $ac_status); } && {
15414
         test -z "$ac_c_werror_flag" ||
15415
         test ! -s conftest.err
15416
       } && test -s conftest.$ac_objext; then
15417 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15418
/* confdefs.h.  */
15419
_ACEOF
15420
cat confdefs.h >>conftest.$ac_ext
15421
cat >>conftest.$ac_ext <<_ACEOF
15422
/* end confdefs.h.  */
15423
#include 
15424
 
15425
int
15426
main ()
15427
{
15428 82 jeremybenn
if (sizeof ((uint8_t)))
15429
          return 0;
15430 19 jeremybenn
  ;
15431
  return 0;
15432
}
15433
_ACEOF
15434
rm -f conftest.$ac_objext
15435
if { (ac_try="$ac_compile"
15436
case "(($ac_try" in
15437
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438
  *) ac_try_echo=$ac_try;;
15439
esac
15440 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15441
$as_echo "$ac_try_echo") >&5
15442 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15443
  ac_status=$?
15444
  grep -v '^ *+' conftest.er1 >conftest.err
15445
  rm -f conftest.er1
15446
  cat conftest.err >&5
15447 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 19 jeremybenn
  (exit $ac_status); } && {
15449
         test -z "$ac_c_werror_flag" ||
15450
         test ! -s conftest.err
15451
       } && test -s conftest.$ac_objext; then
15452 82 jeremybenn
  :
15453 19 jeremybenn
else
15454 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15455 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15456
 
15457 82 jeremybenn
        ac_cv_type_uint8_t=yes
15458 19 jeremybenn
fi
15459
 
15460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461 82 jeremybenn
else
15462
  $as_echo "$as_me: failed program was:" >&5
15463
sed 's/^/| /' conftest.$ac_ext >&5
15464
 
15465
 
15466 19 jeremybenn
fi
15467
 
15468 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15469
fi
15470
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
15471
$as_echo "$ac_cv_type_uint8_t" >&6; }
15472
if test "x$ac_cv_type_uint8_t" = x""yes; then
15473
 
15474 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15475
#define HAVE_UINT8_T 1
15476
_ACEOF
15477
 
15478
 
15479
fi
15480 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
15481
$as_echo_n "checking for uint16_t... " >&6; }
15482 19 jeremybenn
if test "${ac_cv_type_uint16_t+set}" = set; then
15483 82 jeremybenn
  $as_echo_n "(cached) " >&6
15484 19 jeremybenn
else
15485 82 jeremybenn
  ac_cv_type_uint16_t=no
15486
cat >conftest.$ac_ext <<_ACEOF
15487
/* confdefs.h.  */
15488
_ACEOF
15489
cat confdefs.h >>conftest.$ac_ext
15490
cat >>conftest.$ac_ext <<_ACEOF
15491
/* end confdefs.h.  */
15492
#include 
15493
 
15494
int
15495
main ()
15496
{
15497
if (sizeof (uint16_t))
15498
       return 0;
15499
  ;
15500
  return 0;
15501
}
15502
_ACEOF
15503
rm -f conftest.$ac_objext
15504
if { (ac_try="$ac_compile"
15505
case "(($ac_try" in
15506
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507
  *) ac_try_echo=$ac_try;;
15508
esac
15509
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15510
$as_echo "$ac_try_echo") >&5
15511
  (eval "$ac_compile") 2>conftest.er1
15512
  ac_status=$?
15513
  grep -v '^ *+' conftest.er1 >conftest.err
15514
  rm -f conftest.er1
15515
  cat conftest.err >&5
15516
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517
  (exit $ac_status); } && {
15518
         test -z "$ac_c_werror_flag" ||
15519
         test ! -s conftest.err
15520
       } && test -s conftest.$ac_objext; then
15521 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15522
/* confdefs.h.  */
15523
_ACEOF
15524
cat confdefs.h >>conftest.$ac_ext
15525
cat >>conftest.$ac_ext <<_ACEOF
15526
/* end confdefs.h.  */
15527
#include 
15528
 
15529
int
15530
main ()
15531
{
15532 82 jeremybenn
if (sizeof ((uint16_t)))
15533
          return 0;
15534 19 jeremybenn
  ;
15535
  return 0;
15536
}
15537
_ACEOF
15538
rm -f conftest.$ac_objext
15539
if { (ac_try="$ac_compile"
15540
case "(($ac_try" in
15541
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542
  *) ac_try_echo=$ac_try;;
15543
esac
15544 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15545
$as_echo "$ac_try_echo") >&5
15546 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15547
  ac_status=$?
15548
  grep -v '^ *+' conftest.er1 >conftest.err
15549
  rm -f conftest.er1
15550
  cat conftest.err >&5
15551 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 19 jeremybenn
  (exit $ac_status); } && {
15553
         test -z "$ac_c_werror_flag" ||
15554
         test ! -s conftest.err
15555
       } && test -s conftest.$ac_objext; then
15556 82 jeremybenn
  :
15557 19 jeremybenn
else
15558 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15559 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15560
 
15561 82 jeremybenn
        ac_cv_type_uint16_t=yes
15562 19 jeremybenn
fi
15563
 
15564
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15565 82 jeremybenn
else
15566
  $as_echo "$as_me: failed program was:" >&5
15567
sed 's/^/| /' conftest.$ac_ext >&5
15568
 
15569
 
15570 19 jeremybenn
fi
15571
 
15572 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573
fi
15574
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
15575
$as_echo "$ac_cv_type_uint16_t" >&6; }
15576
if test "x$ac_cv_type_uint16_t" = x""yes; then
15577
 
15578 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15579
#define HAVE_UINT16_T 1
15580
_ACEOF
15581
 
15582
 
15583
fi
15584 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
15585
$as_echo_n "checking for uint32_t... " >&6; }
15586 19 jeremybenn
if test "${ac_cv_type_uint32_t+set}" = set; then
15587 82 jeremybenn
  $as_echo_n "(cached) " >&6
15588 19 jeremybenn
else
15589 82 jeremybenn
  ac_cv_type_uint32_t=no
15590
cat >conftest.$ac_ext <<_ACEOF
15591
/* confdefs.h.  */
15592
_ACEOF
15593
cat confdefs.h >>conftest.$ac_ext
15594
cat >>conftest.$ac_ext <<_ACEOF
15595
/* end confdefs.h.  */
15596
#include 
15597
 
15598
int
15599
main ()
15600
{
15601
if (sizeof (uint32_t))
15602
       return 0;
15603
  ;
15604
  return 0;
15605
}
15606
_ACEOF
15607
rm -f conftest.$ac_objext
15608
if { (ac_try="$ac_compile"
15609
case "(($ac_try" in
15610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611
  *) ac_try_echo=$ac_try;;
15612
esac
15613
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15614
$as_echo "$ac_try_echo") >&5
15615
  (eval "$ac_compile") 2>conftest.er1
15616
  ac_status=$?
15617
  grep -v '^ *+' conftest.er1 >conftest.err
15618
  rm -f conftest.er1
15619
  cat conftest.err >&5
15620
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621
  (exit $ac_status); } && {
15622
         test -z "$ac_c_werror_flag" ||
15623
         test ! -s conftest.err
15624
       } && test -s conftest.$ac_objext; then
15625 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15626
/* confdefs.h.  */
15627
_ACEOF
15628
cat confdefs.h >>conftest.$ac_ext
15629
cat >>conftest.$ac_ext <<_ACEOF
15630
/* end confdefs.h.  */
15631
#include 
15632
 
15633
int
15634
main ()
15635
{
15636 82 jeremybenn
if (sizeof ((uint32_t)))
15637
          return 0;
15638 19 jeremybenn
  ;
15639
  return 0;
15640
}
15641
_ACEOF
15642
rm -f conftest.$ac_objext
15643
if { (ac_try="$ac_compile"
15644
case "(($ac_try" in
15645
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646
  *) ac_try_echo=$ac_try;;
15647
esac
15648 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15649
$as_echo "$ac_try_echo") >&5
15650 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15651
  ac_status=$?
15652
  grep -v '^ *+' conftest.er1 >conftest.err
15653
  rm -f conftest.er1
15654
  cat conftest.err >&5
15655 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 19 jeremybenn
  (exit $ac_status); } && {
15657
         test -z "$ac_c_werror_flag" ||
15658
         test ! -s conftest.err
15659
       } && test -s conftest.$ac_objext; then
15660 82 jeremybenn
  :
15661 19 jeremybenn
else
15662 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15663 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15664
 
15665 82 jeremybenn
        ac_cv_type_uint32_t=yes
15666 19 jeremybenn
fi
15667
 
15668
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 82 jeremybenn
else
15670
  $as_echo "$as_me: failed program was:" >&5
15671
sed 's/^/| /' conftest.$ac_ext >&5
15672
 
15673
 
15674 19 jeremybenn
fi
15675
 
15676 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677
fi
15678
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
15679
$as_echo "$ac_cv_type_uint32_t" >&6; }
15680
if test "x$ac_cv_type_uint32_t" = x""yes; then
15681
 
15682 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15683
#define HAVE_UINT32_T 1
15684
_ACEOF
15685
 
15686
 
15687
fi
15688
 
15689 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
15690
$as_echo_n "checking for int8_t... " >&6; }
15691 19 jeremybenn
if test "${ac_cv_type_int8_t+set}" = set; then
15692 82 jeremybenn
  $as_echo_n "(cached) " >&6
15693 19 jeremybenn
else
15694 82 jeremybenn
  ac_cv_type_int8_t=no
15695
cat >conftest.$ac_ext <<_ACEOF
15696
/* confdefs.h.  */
15697
_ACEOF
15698
cat confdefs.h >>conftest.$ac_ext
15699
cat >>conftest.$ac_ext <<_ACEOF
15700
/* end confdefs.h.  */
15701
#include 
15702
 
15703
int
15704
main ()
15705
{
15706
if (sizeof (int8_t))
15707
       return 0;
15708
  ;
15709
  return 0;
15710
}
15711
_ACEOF
15712
rm -f conftest.$ac_objext
15713
if { (ac_try="$ac_compile"
15714
case "(($ac_try" in
15715
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716
  *) ac_try_echo=$ac_try;;
15717
esac
15718
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15719
$as_echo "$ac_try_echo") >&5
15720
  (eval "$ac_compile") 2>conftest.er1
15721
  ac_status=$?
15722
  grep -v '^ *+' conftest.er1 >conftest.err
15723
  rm -f conftest.er1
15724
  cat conftest.err >&5
15725
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726
  (exit $ac_status); } && {
15727
         test -z "$ac_c_werror_flag" ||
15728
         test ! -s conftest.err
15729
       } && test -s conftest.$ac_objext; then
15730 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15731
/* confdefs.h.  */
15732
_ACEOF
15733
cat confdefs.h >>conftest.$ac_ext
15734
cat >>conftest.$ac_ext <<_ACEOF
15735
/* end confdefs.h.  */
15736
#include 
15737
 
15738
int
15739
main ()
15740
{
15741 82 jeremybenn
if (sizeof ((int8_t)))
15742
          return 0;
15743 19 jeremybenn
  ;
15744
  return 0;
15745
}
15746
_ACEOF
15747
rm -f conftest.$ac_objext
15748
if { (ac_try="$ac_compile"
15749
case "(($ac_try" in
15750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751
  *) ac_try_echo=$ac_try;;
15752
esac
15753 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15754
$as_echo "$ac_try_echo") >&5
15755 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15756
  ac_status=$?
15757
  grep -v '^ *+' conftest.er1 >conftest.err
15758
  rm -f conftest.er1
15759
  cat conftest.err >&5
15760 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 19 jeremybenn
  (exit $ac_status); } && {
15762
         test -z "$ac_c_werror_flag" ||
15763
         test ! -s conftest.err
15764
       } && test -s conftest.$ac_objext; then
15765 82 jeremybenn
  :
15766 19 jeremybenn
else
15767 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15768 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15769
 
15770 82 jeremybenn
        ac_cv_type_int8_t=yes
15771 19 jeremybenn
fi
15772
 
15773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774 82 jeremybenn
else
15775
  $as_echo "$as_me: failed program was:" >&5
15776
sed 's/^/| /' conftest.$ac_ext >&5
15777
 
15778
 
15779 19 jeremybenn
fi
15780
 
15781 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782
fi
15783
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
15784
$as_echo "$ac_cv_type_int8_t" >&6; }
15785
if test "x$ac_cv_type_int8_t" = x""yes; then
15786
 
15787 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15788
#define HAVE_INT8_T 1
15789
_ACEOF
15790
 
15791
 
15792
fi
15793 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
15794
$as_echo_n "checking for int16_t... " >&6; }
15795 19 jeremybenn
if test "${ac_cv_type_int16_t+set}" = set; then
15796 82 jeremybenn
  $as_echo_n "(cached) " >&6
15797 19 jeremybenn
else
15798 82 jeremybenn
  ac_cv_type_int16_t=no
15799
cat >conftest.$ac_ext <<_ACEOF
15800
/* confdefs.h.  */
15801
_ACEOF
15802
cat confdefs.h >>conftest.$ac_ext
15803
cat >>conftest.$ac_ext <<_ACEOF
15804
/* end confdefs.h.  */
15805
#include 
15806
 
15807
int
15808
main ()
15809
{
15810
if (sizeof (int16_t))
15811
       return 0;
15812
  ;
15813
  return 0;
15814
}
15815
_ACEOF
15816
rm -f conftest.$ac_objext
15817
if { (ac_try="$ac_compile"
15818
case "(($ac_try" in
15819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820
  *) ac_try_echo=$ac_try;;
15821
esac
15822
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15823
$as_echo "$ac_try_echo") >&5
15824
  (eval "$ac_compile") 2>conftest.er1
15825
  ac_status=$?
15826
  grep -v '^ *+' conftest.er1 >conftest.err
15827
  rm -f conftest.er1
15828
  cat conftest.err >&5
15829
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830
  (exit $ac_status); } && {
15831
         test -z "$ac_c_werror_flag" ||
15832
         test ! -s conftest.err
15833
       } && test -s conftest.$ac_objext; then
15834 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15835
/* confdefs.h.  */
15836
_ACEOF
15837
cat confdefs.h >>conftest.$ac_ext
15838
cat >>conftest.$ac_ext <<_ACEOF
15839
/* end confdefs.h.  */
15840
#include 
15841
 
15842
int
15843
main ()
15844
{
15845 82 jeremybenn
if (sizeof ((int16_t)))
15846
          return 0;
15847 19 jeremybenn
  ;
15848
  return 0;
15849
}
15850
_ACEOF
15851
rm -f conftest.$ac_objext
15852
if { (ac_try="$ac_compile"
15853
case "(($ac_try" in
15854
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855
  *) ac_try_echo=$ac_try;;
15856
esac
15857 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15858
$as_echo "$ac_try_echo") >&5
15859 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15860
  ac_status=$?
15861
  grep -v '^ *+' conftest.er1 >conftest.err
15862
  rm -f conftest.er1
15863
  cat conftest.err >&5
15864 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 19 jeremybenn
  (exit $ac_status); } && {
15866
         test -z "$ac_c_werror_flag" ||
15867
         test ! -s conftest.err
15868
       } && test -s conftest.$ac_objext; then
15869 82 jeremybenn
  :
15870 19 jeremybenn
else
15871 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15872 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15873
 
15874 82 jeremybenn
        ac_cv_type_int16_t=yes
15875 19 jeremybenn
fi
15876
 
15877
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878 82 jeremybenn
else
15879
  $as_echo "$as_me: failed program was:" >&5
15880
sed 's/^/| /' conftest.$ac_ext >&5
15881
 
15882
 
15883 19 jeremybenn
fi
15884
 
15885 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15886
fi
15887
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
15888
$as_echo "$ac_cv_type_int16_t" >&6; }
15889
if test "x$ac_cv_type_int16_t" = x""yes; then
15890
 
15891 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15892
#define HAVE_INT16_T 1
15893
_ACEOF
15894
 
15895
 
15896
fi
15897 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
15898
$as_echo_n "checking for int32_t... " >&6; }
15899 19 jeremybenn
if test "${ac_cv_type_int32_t+set}" = set; then
15900 82 jeremybenn
  $as_echo_n "(cached) " >&6
15901 19 jeremybenn
else
15902 82 jeremybenn
  ac_cv_type_int32_t=no
15903
cat >conftest.$ac_ext <<_ACEOF
15904 19 jeremybenn
/* confdefs.h.  */
15905
_ACEOF
15906
cat confdefs.h >>conftest.$ac_ext
15907
cat >>conftest.$ac_ext <<_ACEOF
15908
/* end confdefs.h.  */
15909
#include 
15910
 
15911
int
15912
main ()
15913
{
15914 82 jeremybenn
if (sizeof (int32_t))
15915
       return 0;
15916 19 jeremybenn
  ;
15917
  return 0;
15918
}
15919
_ACEOF
15920
rm -f conftest.$ac_objext
15921
if { (ac_try="$ac_compile"
15922
case "(($ac_try" in
15923
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15924
  *) ac_try_echo=$ac_try;;
15925
esac
15926 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15927
$as_echo "$ac_try_echo") >&5
15928 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15929
  ac_status=$?
15930
  grep -v '^ *+' conftest.er1 >conftest.err
15931
  rm -f conftest.er1
15932
  cat conftest.err >&5
15933 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 19 jeremybenn
  (exit $ac_status); } && {
15935
         test -z "$ac_c_werror_flag" ||
15936
         test ! -s conftest.err
15937
       } && test -s conftest.$ac_objext; then
15938
  cat >conftest.$ac_ext <<_ACEOF
15939
/* confdefs.h.  */
15940
_ACEOF
15941
cat confdefs.h >>conftest.$ac_ext
15942
cat >>conftest.$ac_ext <<_ACEOF
15943
/* end confdefs.h.  */
15944 82 jeremybenn
#include 
15945
 
15946 19 jeremybenn
int
15947
main ()
15948
{
15949 82 jeremybenn
if (sizeof ((int32_t)))
15950
          return 0;
15951 19 jeremybenn
  ;
15952
  return 0;
15953
}
15954
_ACEOF
15955
rm -f conftest.$ac_objext
15956
if { (ac_try="$ac_compile"
15957
case "(($ac_try" in
15958
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959
  *) ac_try_echo=$ac_try;;
15960
esac
15961 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15962
$as_echo "$ac_try_echo") >&5
15963 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15964
  ac_status=$?
15965
  grep -v '^ *+' conftest.er1 >conftest.err
15966
  rm -f conftest.er1
15967
  cat conftest.err >&5
15968 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 19 jeremybenn
  (exit $ac_status); } && {
15970
         test -z "$ac_c_werror_flag" ||
15971
         test ! -s conftest.err
15972
       } && test -s conftest.$ac_objext; then
15973 82 jeremybenn
  :
15974 19 jeremybenn
else
15975 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15976 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15977
 
15978 82 jeremybenn
        ac_cv_type_int32_t=yes
15979 19 jeremybenn
fi
15980
 
15981
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15982 82 jeremybenn
else
15983
  $as_echo "$as_me: failed program was:" >&5
15984
sed 's/^/| /' conftest.$ac_ext >&5
15985
 
15986
 
15987 19 jeremybenn
fi
15988
 
15989 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15990
fi
15991
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
15992
$as_echo "$ac_cv_type_int32_t" >&6; }
15993
if test "x$ac_cv_type_int32_t" = x""yes; then
15994
 
15995
cat >>confdefs.h <<_ACEOF
15996
#define HAVE_INT32_T 1
15997
_ACEOF
15998
 
15999
 
16000
fi
16001
 
16002
 
16003 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
16004
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16005
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16006
# This bug is HP SR number 8606223364.
16007 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of char" >&5
16008
$as_echo_n "checking size of char... " >&6; }
16009 19 jeremybenn
if test "${ac_cv_sizeof_char+set}" = set; then
16010 82 jeremybenn
  $as_echo_n "(cached) " >&6
16011 19 jeremybenn
else
16012
  if test "$cross_compiling" = yes; then
16013
  # Depending upon the size, compute the lo and hi bounds.
16014
cat >conftest.$ac_ext <<_ACEOF
16015
/* confdefs.h.  */
16016
_ACEOF
16017
cat confdefs.h >>conftest.$ac_ext
16018
cat >>conftest.$ac_ext <<_ACEOF
16019
/* end confdefs.h.  */
16020
$ac_includes_default
16021
int
16022
main ()
16023
{
16024 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
16025 19 jeremybenn
test_array [0] = 0
16026
 
16027
  ;
16028
  return 0;
16029
}
16030
_ACEOF
16031
rm -f conftest.$ac_objext
16032
if { (ac_try="$ac_compile"
16033
case "(($ac_try" in
16034
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035
  *) ac_try_echo=$ac_try;;
16036
esac
16037 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16038
$as_echo "$ac_try_echo") >&5
16039 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16040
  ac_status=$?
16041
  grep -v '^ *+' conftest.er1 >conftest.err
16042
  rm -f conftest.er1
16043
  cat conftest.err >&5
16044 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 19 jeremybenn
  (exit $ac_status); } && {
16046
         test -z "$ac_c_werror_flag" ||
16047
         test ! -s conftest.err
16048
       } && test -s conftest.$ac_objext; then
16049
  ac_lo=0 ac_mid=0
16050
  while :; do
16051
    cat >conftest.$ac_ext <<_ACEOF
16052
/* confdefs.h.  */
16053
_ACEOF
16054
cat confdefs.h >>conftest.$ac_ext
16055
cat >>conftest.$ac_ext <<_ACEOF
16056
/* end confdefs.h.  */
16057
$ac_includes_default
16058
int
16059
main ()
16060
{
16061 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
16062 19 jeremybenn
test_array [0] = 0
16063
 
16064
  ;
16065
  return 0;
16066
}
16067
_ACEOF
16068
rm -f conftest.$ac_objext
16069
if { (ac_try="$ac_compile"
16070
case "(($ac_try" in
16071
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072
  *) ac_try_echo=$ac_try;;
16073
esac
16074 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16075
$as_echo "$ac_try_echo") >&5
16076 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16077
  ac_status=$?
16078
  grep -v '^ *+' conftest.er1 >conftest.err
16079
  rm -f conftest.er1
16080
  cat conftest.err >&5
16081 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 19 jeremybenn
  (exit $ac_status); } && {
16083
         test -z "$ac_c_werror_flag" ||
16084
         test ! -s conftest.err
16085
       } && test -s conftest.$ac_objext; then
16086
  ac_hi=$ac_mid; break
16087
else
16088 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16089 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16090
 
16091
        ac_lo=`expr $ac_mid + 1`
16092
                        if test $ac_lo -le $ac_mid; then
16093
                          ac_lo= ac_hi=
16094
                          break
16095
                        fi
16096
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16097
fi
16098
 
16099
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16100
  done
16101
else
16102 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16103 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16104
 
16105
        cat >conftest.$ac_ext <<_ACEOF
16106
/* confdefs.h.  */
16107
_ACEOF
16108
cat confdefs.h >>conftest.$ac_ext
16109
cat >>conftest.$ac_ext <<_ACEOF
16110
/* end confdefs.h.  */
16111
$ac_includes_default
16112
int
16113
main ()
16114
{
16115 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
16116 19 jeremybenn
test_array [0] = 0
16117
 
16118
  ;
16119
  return 0;
16120
}
16121
_ACEOF
16122
rm -f conftest.$ac_objext
16123
if { (ac_try="$ac_compile"
16124
case "(($ac_try" in
16125
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16126
  *) ac_try_echo=$ac_try;;
16127
esac
16128 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16129
$as_echo "$ac_try_echo") >&5
16130 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16131
  ac_status=$?
16132
  grep -v '^ *+' conftest.er1 >conftest.err
16133
  rm -f conftest.er1
16134
  cat conftest.err >&5
16135 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 19 jeremybenn
  (exit $ac_status); } && {
16137
         test -z "$ac_c_werror_flag" ||
16138
         test ! -s conftest.err
16139
       } && test -s conftest.$ac_objext; then
16140
  ac_hi=-1 ac_mid=-1
16141
  while :; do
16142
    cat >conftest.$ac_ext <<_ACEOF
16143
/* confdefs.h.  */
16144
_ACEOF
16145
cat confdefs.h >>conftest.$ac_ext
16146
cat >>conftest.$ac_ext <<_ACEOF
16147
/* end confdefs.h.  */
16148
$ac_includes_default
16149
int
16150
main ()
16151
{
16152 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
16153 19 jeremybenn
test_array [0] = 0
16154
 
16155
  ;
16156
  return 0;
16157
}
16158
_ACEOF
16159
rm -f conftest.$ac_objext
16160
if { (ac_try="$ac_compile"
16161
case "(($ac_try" in
16162
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163
  *) ac_try_echo=$ac_try;;
16164
esac
16165 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16166
$as_echo "$ac_try_echo") >&5
16167 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16168
  ac_status=$?
16169
  grep -v '^ *+' conftest.er1 >conftest.err
16170
  rm -f conftest.er1
16171
  cat conftest.err >&5
16172 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 19 jeremybenn
  (exit $ac_status); } && {
16174
         test -z "$ac_c_werror_flag" ||
16175
         test ! -s conftest.err
16176
       } && test -s conftest.$ac_objext; then
16177
  ac_lo=$ac_mid; break
16178
else
16179 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16180 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16181
 
16182
        ac_hi=`expr '(' $ac_mid ')' - 1`
16183
                        if test $ac_mid -le $ac_hi; then
16184
                          ac_lo= ac_hi=
16185
                          break
16186
                        fi
16187
                        ac_mid=`expr 2 '*' $ac_mid`
16188
fi
16189
 
16190
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16191
  done
16192
else
16193 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16194 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16195
 
16196
        ac_lo= ac_hi=
16197
fi
16198
 
16199
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16200
fi
16201
 
16202
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16203
# Binary search between lo and hi bounds.
16204
while test "x$ac_lo" != "x$ac_hi"; do
16205
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16206
  cat >conftest.$ac_ext <<_ACEOF
16207
/* confdefs.h.  */
16208
_ACEOF
16209
cat confdefs.h >>conftest.$ac_ext
16210
cat >>conftest.$ac_ext <<_ACEOF
16211
/* end confdefs.h.  */
16212
$ac_includes_default
16213
int
16214
main ()
16215
{
16216 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
16217 19 jeremybenn
test_array [0] = 0
16218
 
16219
  ;
16220
  return 0;
16221
}
16222
_ACEOF
16223
rm -f conftest.$ac_objext
16224
if { (ac_try="$ac_compile"
16225
case "(($ac_try" in
16226
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227
  *) ac_try_echo=$ac_try;;
16228
esac
16229 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16230
$as_echo "$ac_try_echo") >&5
16231 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16232
  ac_status=$?
16233
  grep -v '^ *+' conftest.er1 >conftest.err
16234
  rm -f conftest.er1
16235
  cat conftest.err >&5
16236 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 19 jeremybenn
  (exit $ac_status); } && {
16238
         test -z "$ac_c_werror_flag" ||
16239
         test ! -s conftest.err
16240
       } && test -s conftest.$ac_objext; then
16241
  ac_hi=$ac_mid
16242
else
16243 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16244 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16245
 
16246
        ac_lo=`expr '(' $ac_mid ')' + 1`
16247
fi
16248
 
16249
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250
done
16251
case $ac_lo in
16252
?*) ac_cv_sizeof_char=$ac_lo;;
16253
'') if test "$ac_cv_type_char" = yes; then
16254 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16255
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16256
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16257 19 jeremybenn
See \`config.log' for more details." >&5
16258 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (char)
16259 19 jeremybenn
See \`config.log' for more details." >&2;}
16260 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16261 19 jeremybenn
   else
16262
     ac_cv_sizeof_char=0
16263
   fi ;;
16264
esac
16265
else
16266
  cat >conftest.$ac_ext <<_ACEOF
16267
/* confdefs.h.  */
16268
_ACEOF
16269
cat confdefs.h >>conftest.$ac_ext
16270
cat >>conftest.$ac_ext <<_ACEOF
16271
/* end confdefs.h.  */
16272
$ac_includes_default
16273 82 jeremybenn
static long int longval () { return (long int) (sizeof (char)); }
16274
static unsigned long int ulongval () { return (long int) (sizeof (char)); }
16275 19 jeremybenn
#include 
16276
#include 
16277
int
16278
main ()
16279
{
16280
 
16281
  FILE *f = fopen ("conftest.val", "w");
16282
  if (! f)
16283
    return 1;
16284 82 jeremybenn
  if (((long int) (sizeof (char))) < 0)
16285 19 jeremybenn
    {
16286
      long int i = longval ();
16287 82 jeremybenn
      if (i != ((long int) (sizeof (char))))
16288 19 jeremybenn
        return 1;
16289 82 jeremybenn
      fprintf (f, "%ld", i);
16290 19 jeremybenn
    }
16291
  else
16292
    {
16293
      unsigned long int i = ulongval ();
16294 82 jeremybenn
      if (i != ((long int) (sizeof (char))))
16295 19 jeremybenn
        return 1;
16296 82 jeremybenn
      fprintf (f, "%lu", i);
16297 19 jeremybenn
    }
16298 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
16299
     on some platforms.  */
16300 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
16301
 
16302
  ;
16303
  return 0;
16304
}
16305
_ACEOF
16306
rm -f conftest$ac_exeext
16307
if { (ac_try="$ac_link"
16308
case "(($ac_try" in
16309
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310
  *) ac_try_echo=$ac_try;;
16311
esac
16312 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16313
$as_echo "$ac_try_echo") >&5
16314 19 jeremybenn
  (eval "$ac_link") 2>&5
16315
  ac_status=$?
16316 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16318
  { (case "(($ac_try" in
16319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320
  *) ac_try_echo=$ac_try;;
16321
esac
16322 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16323
$as_echo "$ac_try_echo") >&5
16324 19 jeremybenn
  (eval "$ac_try") 2>&5
16325
  ac_status=$?
16326 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 19 jeremybenn
  (exit $ac_status); }; }; then
16328
  ac_cv_sizeof_char=`cat conftest.val`
16329
else
16330 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
16331
$as_echo "$as_me: failed program was:" >&5
16332 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16333
 
16334
( exit $ac_status )
16335
if test "$ac_cv_type_char" = yes; then
16336 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16337
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16338
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16339 19 jeremybenn
See \`config.log' for more details." >&5
16340 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (char)
16341 19 jeremybenn
See \`config.log' for more details." >&2;}
16342 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16343 19 jeremybenn
   else
16344
     ac_cv_sizeof_char=0
16345
   fi
16346
fi
16347 82 jeremybenn
rm -rf conftest.dSYM
16348 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16349
fi
16350
rm -f conftest.val
16351
fi
16352 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16353
$as_echo "$ac_cv_sizeof_char" >&6; }
16354 19 jeremybenn
 
16355
 
16356
 
16357
cat >>confdefs.h <<_ACEOF
16358
#define SIZEOF_CHAR $ac_cv_sizeof_char
16359
_ACEOF
16360
 
16361
 
16362
# The cast to long int works around a bug in the HP C Compiler
16363
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16364
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16365
# This bug is HP SR number 8606223364.
16366 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
16367
$as_echo_n "checking size of short... " >&6; }
16368 19 jeremybenn
if test "${ac_cv_sizeof_short+set}" = set; then
16369 82 jeremybenn
  $as_echo_n "(cached) " >&6
16370 19 jeremybenn
else
16371
  if test "$cross_compiling" = yes; then
16372
  # Depending upon the size, compute the lo and hi bounds.
16373
cat >conftest.$ac_ext <<_ACEOF
16374
/* confdefs.h.  */
16375
_ACEOF
16376
cat confdefs.h >>conftest.$ac_ext
16377
cat >>conftest.$ac_ext <<_ACEOF
16378
/* end confdefs.h.  */
16379
$ac_includes_default
16380
int
16381
main ()
16382
{
16383 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
16384 19 jeremybenn
test_array [0] = 0
16385
 
16386
  ;
16387
  return 0;
16388
}
16389
_ACEOF
16390
rm -f conftest.$ac_objext
16391
if { (ac_try="$ac_compile"
16392
case "(($ac_try" in
16393
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394
  *) ac_try_echo=$ac_try;;
16395
esac
16396 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16397
$as_echo "$ac_try_echo") >&5
16398 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16399
  ac_status=$?
16400
  grep -v '^ *+' conftest.er1 >conftest.err
16401
  rm -f conftest.er1
16402
  cat conftest.err >&5
16403 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 19 jeremybenn
  (exit $ac_status); } && {
16405
         test -z "$ac_c_werror_flag" ||
16406
         test ! -s conftest.err
16407
       } && test -s conftest.$ac_objext; then
16408
  ac_lo=0 ac_mid=0
16409
  while :; do
16410
    cat >conftest.$ac_ext <<_ACEOF
16411
/* confdefs.h.  */
16412
_ACEOF
16413
cat confdefs.h >>conftest.$ac_ext
16414
cat >>conftest.$ac_ext <<_ACEOF
16415
/* end confdefs.h.  */
16416
$ac_includes_default
16417
int
16418
main ()
16419
{
16420 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16421 19 jeremybenn
test_array [0] = 0
16422
 
16423
  ;
16424
  return 0;
16425
}
16426
_ACEOF
16427
rm -f conftest.$ac_objext
16428
if { (ac_try="$ac_compile"
16429
case "(($ac_try" in
16430
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431
  *) ac_try_echo=$ac_try;;
16432
esac
16433 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16434
$as_echo "$ac_try_echo") >&5
16435 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16436
  ac_status=$?
16437
  grep -v '^ *+' conftest.er1 >conftest.err
16438
  rm -f conftest.er1
16439
  cat conftest.err >&5
16440 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 19 jeremybenn
  (exit $ac_status); } && {
16442
         test -z "$ac_c_werror_flag" ||
16443
         test ! -s conftest.err
16444
       } && test -s conftest.$ac_objext; then
16445
  ac_hi=$ac_mid; break
16446
else
16447 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16448 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16449
 
16450
        ac_lo=`expr $ac_mid + 1`
16451
                        if test $ac_lo -le $ac_mid; then
16452
                          ac_lo= ac_hi=
16453
                          break
16454
                        fi
16455
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16456
fi
16457
 
16458
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16459
  done
16460
else
16461 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16462 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16463
 
16464
        cat >conftest.$ac_ext <<_ACEOF
16465
/* confdefs.h.  */
16466
_ACEOF
16467
cat confdefs.h >>conftest.$ac_ext
16468
cat >>conftest.$ac_ext <<_ACEOF
16469
/* end confdefs.h.  */
16470
$ac_includes_default
16471
int
16472
main ()
16473
{
16474 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
16475 19 jeremybenn
test_array [0] = 0
16476
 
16477
  ;
16478
  return 0;
16479
}
16480
_ACEOF
16481
rm -f conftest.$ac_objext
16482
if { (ac_try="$ac_compile"
16483
case "(($ac_try" in
16484
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16485
  *) ac_try_echo=$ac_try;;
16486
esac
16487 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16488
$as_echo "$ac_try_echo") >&5
16489 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16490
  ac_status=$?
16491
  grep -v '^ *+' conftest.er1 >conftest.err
16492
  rm -f conftest.er1
16493
  cat conftest.err >&5
16494 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 19 jeremybenn
  (exit $ac_status); } && {
16496
         test -z "$ac_c_werror_flag" ||
16497
         test ! -s conftest.err
16498
       } && test -s conftest.$ac_objext; then
16499
  ac_hi=-1 ac_mid=-1
16500
  while :; do
16501
    cat >conftest.$ac_ext <<_ACEOF
16502
/* confdefs.h.  */
16503
_ACEOF
16504
cat confdefs.h >>conftest.$ac_ext
16505
cat >>conftest.$ac_ext <<_ACEOF
16506
/* end confdefs.h.  */
16507
$ac_includes_default
16508
int
16509
main ()
16510
{
16511 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
16512 19 jeremybenn
test_array [0] = 0
16513
 
16514
  ;
16515
  return 0;
16516
}
16517
_ACEOF
16518
rm -f conftest.$ac_objext
16519
if { (ac_try="$ac_compile"
16520
case "(($ac_try" in
16521
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522
  *) ac_try_echo=$ac_try;;
16523
esac
16524 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16525
$as_echo "$ac_try_echo") >&5
16526 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16527
  ac_status=$?
16528
  grep -v '^ *+' conftest.er1 >conftest.err
16529
  rm -f conftest.er1
16530
  cat conftest.err >&5
16531 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 19 jeremybenn
  (exit $ac_status); } && {
16533
         test -z "$ac_c_werror_flag" ||
16534
         test ! -s conftest.err
16535
       } && test -s conftest.$ac_objext; then
16536
  ac_lo=$ac_mid; break
16537
else
16538 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16539 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16540
 
16541
        ac_hi=`expr '(' $ac_mid ')' - 1`
16542
                        if test $ac_mid -le $ac_hi; then
16543
                          ac_lo= ac_hi=
16544
                          break
16545
                        fi
16546
                        ac_mid=`expr 2 '*' $ac_mid`
16547
fi
16548
 
16549
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16550
  done
16551
else
16552 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16553 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16554
 
16555
        ac_lo= ac_hi=
16556
fi
16557
 
16558
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16559
fi
16560
 
16561
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16562
# Binary search between lo and hi bounds.
16563
while test "x$ac_lo" != "x$ac_hi"; do
16564
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16565
  cat >conftest.$ac_ext <<_ACEOF
16566
/* confdefs.h.  */
16567
_ACEOF
16568
cat confdefs.h >>conftest.$ac_ext
16569
cat >>conftest.$ac_ext <<_ACEOF
16570
/* end confdefs.h.  */
16571
$ac_includes_default
16572
int
16573
main ()
16574
{
16575 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16576 19 jeremybenn
test_array [0] = 0
16577
 
16578
  ;
16579
  return 0;
16580
}
16581
_ACEOF
16582
rm -f conftest.$ac_objext
16583
if { (ac_try="$ac_compile"
16584
case "(($ac_try" in
16585
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586
  *) ac_try_echo=$ac_try;;
16587
esac
16588 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16589
$as_echo "$ac_try_echo") >&5
16590 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16591
  ac_status=$?
16592
  grep -v '^ *+' conftest.er1 >conftest.err
16593
  rm -f conftest.er1
16594
  cat conftest.err >&5
16595 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 19 jeremybenn
  (exit $ac_status); } && {
16597
         test -z "$ac_c_werror_flag" ||
16598
         test ! -s conftest.err
16599
       } && test -s conftest.$ac_objext; then
16600
  ac_hi=$ac_mid
16601
else
16602 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16603 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16604
 
16605
        ac_lo=`expr '(' $ac_mid ')' + 1`
16606
fi
16607
 
16608
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16609
done
16610
case $ac_lo in
16611
?*) ac_cv_sizeof_short=$ac_lo;;
16612
'') if test "$ac_cv_type_short" = yes; then
16613 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16614
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16615
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16616 19 jeremybenn
See \`config.log' for more details." >&5
16617 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (short)
16618 19 jeremybenn
See \`config.log' for more details." >&2;}
16619 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16620 19 jeremybenn
   else
16621
     ac_cv_sizeof_short=0
16622
   fi ;;
16623
esac
16624
else
16625
  cat >conftest.$ac_ext <<_ACEOF
16626
/* confdefs.h.  */
16627
_ACEOF
16628
cat confdefs.h >>conftest.$ac_ext
16629
cat >>conftest.$ac_ext <<_ACEOF
16630
/* end confdefs.h.  */
16631
$ac_includes_default
16632 82 jeremybenn
static long int longval () { return (long int) (sizeof (short)); }
16633
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
16634 19 jeremybenn
#include 
16635
#include 
16636
int
16637
main ()
16638
{
16639
 
16640
  FILE *f = fopen ("conftest.val", "w");
16641
  if (! f)
16642
    return 1;
16643 82 jeremybenn
  if (((long int) (sizeof (short))) < 0)
16644 19 jeremybenn
    {
16645
      long int i = longval ();
16646 82 jeremybenn
      if (i != ((long int) (sizeof (short))))
16647 19 jeremybenn
        return 1;
16648 82 jeremybenn
      fprintf (f, "%ld", i);
16649 19 jeremybenn
    }
16650
  else
16651
    {
16652
      unsigned long int i = ulongval ();
16653 82 jeremybenn
      if (i != ((long int) (sizeof (short))))
16654 19 jeremybenn
        return 1;
16655 82 jeremybenn
      fprintf (f, "%lu", i);
16656 19 jeremybenn
    }
16657 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
16658
     on some platforms.  */
16659 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
16660
 
16661
  ;
16662
  return 0;
16663
}
16664
_ACEOF
16665
rm -f conftest$ac_exeext
16666
if { (ac_try="$ac_link"
16667
case "(($ac_try" in
16668
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669
  *) ac_try_echo=$ac_try;;
16670
esac
16671 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16672
$as_echo "$ac_try_echo") >&5
16673 19 jeremybenn
  (eval "$ac_link") 2>&5
16674
  ac_status=$?
16675 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16677
  { (case "(($ac_try" in
16678
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16679
  *) ac_try_echo=$ac_try;;
16680
esac
16681 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16682
$as_echo "$ac_try_echo") >&5
16683 19 jeremybenn
  (eval "$ac_try") 2>&5
16684
  ac_status=$?
16685 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 19 jeremybenn
  (exit $ac_status); }; }; then
16687
  ac_cv_sizeof_short=`cat conftest.val`
16688
else
16689 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
16690
$as_echo "$as_me: failed program was:" >&5
16691 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16692
 
16693
( exit $ac_status )
16694
if test "$ac_cv_type_short" = yes; then
16695 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16696
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16697
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16698 19 jeremybenn
See \`config.log' for more details." >&5
16699 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (short)
16700 19 jeremybenn
See \`config.log' for more details." >&2;}
16701 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16702 19 jeremybenn
   else
16703
     ac_cv_sizeof_short=0
16704
   fi
16705
fi
16706 82 jeremybenn
rm -rf conftest.dSYM
16707 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16708
fi
16709
rm -f conftest.val
16710
fi
16711 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16712
$as_echo "$ac_cv_sizeof_short" >&6; }
16713 19 jeremybenn
 
16714
 
16715
 
16716
cat >>confdefs.h <<_ACEOF
16717
#define SIZEOF_SHORT $ac_cv_sizeof_short
16718
_ACEOF
16719
 
16720
 
16721
# The cast to long int works around a bug in the HP C Compiler
16722
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16723
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16724
# This bug is HP SR number 8606223364.
16725 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
16726
$as_echo_n "checking size of int... " >&6; }
16727 19 jeremybenn
if test "${ac_cv_sizeof_int+set}" = set; then
16728 82 jeremybenn
  $as_echo_n "(cached) " >&6
16729 19 jeremybenn
else
16730
  if test "$cross_compiling" = yes; then
16731
  # Depending upon the size, compute the lo and hi bounds.
16732
cat >conftest.$ac_ext <<_ACEOF
16733
/* confdefs.h.  */
16734
_ACEOF
16735
cat confdefs.h >>conftest.$ac_ext
16736
cat >>conftest.$ac_ext <<_ACEOF
16737
/* end confdefs.h.  */
16738
$ac_includes_default
16739
int
16740
main ()
16741
{
16742 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
16743 19 jeremybenn
test_array [0] = 0
16744
 
16745
  ;
16746
  return 0;
16747
}
16748
_ACEOF
16749
rm -f conftest.$ac_objext
16750
if { (ac_try="$ac_compile"
16751
case "(($ac_try" in
16752
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753
  *) ac_try_echo=$ac_try;;
16754
esac
16755 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16756
$as_echo "$ac_try_echo") >&5
16757 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16758
  ac_status=$?
16759
  grep -v '^ *+' conftest.er1 >conftest.err
16760
  rm -f conftest.er1
16761
  cat conftest.err >&5
16762 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 19 jeremybenn
  (exit $ac_status); } && {
16764
         test -z "$ac_c_werror_flag" ||
16765
         test ! -s conftest.err
16766
       } && test -s conftest.$ac_objext; then
16767
  ac_lo=0 ac_mid=0
16768
  while :; do
16769
    cat >conftest.$ac_ext <<_ACEOF
16770
/* confdefs.h.  */
16771
_ACEOF
16772
cat confdefs.h >>conftest.$ac_ext
16773
cat >>conftest.$ac_ext <<_ACEOF
16774
/* end confdefs.h.  */
16775
$ac_includes_default
16776
int
16777
main ()
16778
{
16779 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16780 19 jeremybenn
test_array [0] = 0
16781
 
16782
  ;
16783
  return 0;
16784
}
16785
_ACEOF
16786
rm -f conftest.$ac_objext
16787
if { (ac_try="$ac_compile"
16788
case "(($ac_try" in
16789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790
  *) ac_try_echo=$ac_try;;
16791
esac
16792 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16793
$as_echo "$ac_try_echo") >&5
16794 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16795
  ac_status=$?
16796
  grep -v '^ *+' conftest.er1 >conftest.err
16797
  rm -f conftest.er1
16798
  cat conftest.err >&5
16799 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 19 jeremybenn
  (exit $ac_status); } && {
16801
         test -z "$ac_c_werror_flag" ||
16802
         test ! -s conftest.err
16803
       } && test -s conftest.$ac_objext; then
16804
  ac_hi=$ac_mid; break
16805
else
16806 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16807 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16808
 
16809
        ac_lo=`expr $ac_mid + 1`
16810
                        if test $ac_lo -le $ac_mid; then
16811
                          ac_lo= ac_hi=
16812
                          break
16813
                        fi
16814
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16815
fi
16816
 
16817
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818
  done
16819
else
16820 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16821 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16822
 
16823
        cat >conftest.$ac_ext <<_ACEOF
16824
/* confdefs.h.  */
16825
_ACEOF
16826
cat confdefs.h >>conftest.$ac_ext
16827
cat >>conftest.$ac_ext <<_ACEOF
16828
/* end confdefs.h.  */
16829
$ac_includes_default
16830
int
16831
main ()
16832
{
16833 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
16834 19 jeremybenn
test_array [0] = 0
16835
 
16836
  ;
16837
  return 0;
16838
}
16839
_ACEOF
16840
rm -f conftest.$ac_objext
16841
if { (ac_try="$ac_compile"
16842
case "(($ac_try" in
16843
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844
  *) ac_try_echo=$ac_try;;
16845
esac
16846 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16847
$as_echo "$ac_try_echo") >&5
16848 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16849
  ac_status=$?
16850
  grep -v '^ *+' conftest.er1 >conftest.err
16851
  rm -f conftest.er1
16852
  cat conftest.err >&5
16853 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 19 jeremybenn
  (exit $ac_status); } && {
16855
         test -z "$ac_c_werror_flag" ||
16856
         test ! -s conftest.err
16857
       } && test -s conftest.$ac_objext; then
16858
  ac_hi=-1 ac_mid=-1
16859
  while :; do
16860
    cat >conftest.$ac_ext <<_ACEOF
16861
/* confdefs.h.  */
16862
_ACEOF
16863
cat confdefs.h >>conftest.$ac_ext
16864
cat >>conftest.$ac_ext <<_ACEOF
16865
/* end confdefs.h.  */
16866
$ac_includes_default
16867
int
16868
main ()
16869
{
16870 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
16871 19 jeremybenn
test_array [0] = 0
16872
 
16873
  ;
16874
  return 0;
16875
}
16876
_ACEOF
16877
rm -f conftest.$ac_objext
16878
if { (ac_try="$ac_compile"
16879
case "(($ac_try" in
16880
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881
  *) ac_try_echo=$ac_try;;
16882
esac
16883 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16884
$as_echo "$ac_try_echo") >&5
16885 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16886
  ac_status=$?
16887
  grep -v '^ *+' conftest.er1 >conftest.err
16888
  rm -f conftest.er1
16889
  cat conftest.err >&5
16890 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 19 jeremybenn
  (exit $ac_status); } && {
16892
         test -z "$ac_c_werror_flag" ||
16893
         test ! -s conftest.err
16894
       } && test -s conftest.$ac_objext; then
16895
  ac_lo=$ac_mid; break
16896
else
16897 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16898 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16899
 
16900
        ac_hi=`expr '(' $ac_mid ')' - 1`
16901
                        if test $ac_mid -le $ac_hi; then
16902
                          ac_lo= ac_hi=
16903
                          break
16904
                        fi
16905
                        ac_mid=`expr 2 '*' $ac_mid`
16906
fi
16907
 
16908
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16909
  done
16910
else
16911 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16912 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16913
 
16914
        ac_lo= ac_hi=
16915
fi
16916
 
16917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918
fi
16919
 
16920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16921
# Binary search between lo and hi bounds.
16922
while test "x$ac_lo" != "x$ac_hi"; do
16923
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16924
  cat >conftest.$ac_ext <<_ACEOF
16925
/* confdefs.h.  */
16926
_ACEOF
16927
cat confdefs.h >>conftest.$ac_ext
16928
cat >>conftest.$ac_ext <<_ACEOF
16929
/* end confdefs.h.  */
16930
$ac_includes_default
16931
int
16932
main ()
16933
{
16934 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16935 19 jeremybenn
test_array [0] = 0
16936
 
16937
  ;
16938
  return 0;
16939
}
16940
_ACEOF
16941
rm -f conftest.$ac_objext
16942
if { (ac_try="$ac_compile"
16943
case "(($ac_try" in
16944
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945
  *) ac_try_echo=$ac_try;;
16946
esac
16947 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16948
$as_echo "$ac_try_echo") >&5
16949 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16950
  ac_status=$?
16951
  grep -v '^ *+' conftest.er1 >conftest.err
16952
  rm -f conftest.er1
16953
  cat conftest.err >&5
16954 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 19 jeremybenn
  (exit $ac_status); } && {
16956
         test -z "$ac_c_werror_flag" ||
16957
         test ! -s conftest.err
16958
       } && test -s conftest.$ac_objext; then
16959
  ac_hi=$ac_mid
16960
else
16961 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16962 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16963
 
16964
        ac_lo=`expr '(' $ac_mid ')' + 1`
16965
fi
16966
 
16967
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16968
done
16969
case $ac_lo in
16970
?*) ac_cv_sizeof_int=$ac_lo;;
16971
'') if test "$ac_cv_type_int" = yes; then
16972 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16973
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16974
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16975 19 jeremybenn
See \`config.log' for more details." >&5
16976 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (int)
16977 19 jeremybenn
See \`config.log' for more details." >&2;}
16978 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16979 19 jeremybenn
   else
16980
     ac_cv_sizeof_int=0
16981
   fi ;;
16982
esac
16983
else
16984
  cat >conftest.$ac_ext <<_ACEOF
16985
/* confdefs.h.  */
16986
_ACEOF
16987
cat confdefs.h >>conftest.$ac_ext
16988
cat >>conftest.$ac_ext <<_ACEOF
16989
/* end confdefs.h.  */
16990
$ac_includes_default
16991 82 jeremybenn
static long int longval () { return (long int) (sizeof (int)); }
16992
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
16993 19 jeremybenn
#include 
16994
#include 
16995
int
16996
main ()
16997
{
16998
 
16999
  FILE *f = fopen ("conftest.val", "w");
17000
  if (! f)
17001
    return 1;
17002 82 jeremybenn
  if (((long int) (sizeof (int))) < 0)
17003 19 jeremybenn
    {
17004
      long int i = longval ();
17005 82 jeremybenn
      if (i != ((long int) (sizeof (int))))
17006 19 jeremybenn
        return 1;
17007 82 jeremybenn
      fprintf (f, "%ld", i);
17008 19 jeremybenn
    }
17009
  else
17010
    {
17011
      unsigned long int i = ulongval ();
17012 82 jeremybenn
      if (i != ((long int) (sizeof (int))))
17013 19 jeremybenn
        return 1;
17014 82 jeremybenn
      fprintf (f, "%lu", i);
17015 19 jeremybenn
    }
17016 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
17017
     on some platforms.  */
17018 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
17019
 
17020
  ;
17021
  return 0;
17022
}
17023
_ACEOF
17024
rm -f conftest$ac_exeext
17025
if { (ac_try="$ac_link"
17026
case "(($ac_try" in
17027
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028
  *) ac_try_echo=$ac_try;;
17029
esac
17030 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17031
$as_echo "$ac_try_echo") >&5
17032 19 jeremybenn
  (eval "$ac_link") 2>&5
17033
  ac_status=$?
17034 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17036
  { (case "(($ac_try" in
17037
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038
  *) ac_try_echo=$ac_try;;
17039
esac
17040 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17041
$as_echo "$ac_try_echo") >&5
17042 19 jeremybenn
  (eval "$ac_try") 2>&5
17043
  ac_status=$?
17044 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 19 jeremybenn
  (exit $ac_status); }; }; then
17046
  ac_cv_sizeof_int=`cat conftest.val`
17047
else
17048 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
17049
$as_echo "$as_me: failed program was:" >&5
17050 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17051
 
17052
( exit $ac_status )
17053
if test "$ac_cv_type_int" = yes; then
17054 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17055
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17056
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
17057 19 jeremybenn
See \`config.log' for more details." >&5
17058 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (int)
17059 19 jeremybenn
See \`config.log' for more details." >&2;}
17060 82 jeremybenn
   { (exit 77); exit 77; }; }; }
17061 19 jeremybenn
   else
17062
     ac_cv_sizeof_int=0
17063
   fi
17064
fi
17065 82 jeremybenn
rm -rf conftest.dSYM
17066 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17067
fi
17068
rm -f conftest.val
17069
fi
17070 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17071
$as_echo "$ac_cv_sizeof_int" >&6; }
17072 19 jeremybenn
 
17073
 
17074
 
17075
cat >>confdefs.h <<_ACEOF
17076
#define SIZEOF_INT $ac_cv_sizeof_int
17077
_ACEOF
17078
 
17079
 
17080
# The cast to long int works around a bug in the HP C Compiler
17081
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17082
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17083
# This bug is HP SR number 8606223364.
17084 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
17085
$as_echo_n "checking size of long... " >&6; }
17086 19 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then
17087 82 jeremybenn
  $as_echo_n "(cached) " >&6
17088 19 jeremybenn
else
17089
  if test "$cross_compiling" = yes; then
17090
  # Depending upon the size, compute the lo and hi bounds.
17091
cat >conftest.$ac_ext <<_ACEOF
17092
/* confdefs.h.  */
17093
_ACEOF
17094
cat confdefs.h >>conftest.$ac_ext
17095
cat >>conftest.$ac_ext <<_ACEOF
17096
/* end confdefs.h.  */
17097
$ac_includes_default
17098
int
17099
main ()
17100
{
17101 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
17102 19 jeremybenn
test_array [0] = 0
17103
 
17104
  ;
17105
  return 0;
17106
}
17107
_ACEOF
17108
rm -f conftest.$ac_objext
17109
if { (ac_try="$ac_compile"
17110
case "(($ac_try" in
17111
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112
  *) ac_try_echo=$ac_try;;
17113
esac
17114 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17115
$as_echo "$ac_try_echo") >&5
17116 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17117
  ac_status=$?
17118
  grep -v '^ *+' conftest.er1 >conftest.err
17119
  rm -f conftest.er1
17120
  cat conftest.err >&5
17121 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 19 jeremybenn
  (exit $ac_status); } && {
17123
         test -z "$ac_c_werror_flag" ||
17124
         test ! -s conftest.err
17125
       } && test -s conftest.$ac_objext; then
17126
  ac_lo=0 ac_mid=0
17127
  while :; do
17128
    cat >conftest.$ac_ext <<_ACEOF
17129
/* confdefs.h.  */
17130
_ACEOF
17131
cat confdefs.h >>conftest.$ac_ext
17132
cat >>conftest.$ac_ext <<_ACEOF
17133
/* end confdefs.h.  */
17134
$ac_includes_default
17135
int
17136
main ()
17137
{
17138 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
17139 19 jeremybenn
test_array [0] = 0
17140
 
17141
  ;
17142
  return 0;
17143
}
17144
_ACEOF
17145
rm -f conftest.$ac_objext
17146
if { (ac_try="$ac_compile"
17147
case "(($ac_try" in
17148
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149
  *) ac_try_echo=$ac_try;;
17150
esac
17151 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17152
$as_echo "$ac_try_echo") >&5
17153 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17154
  ac_status=$?
17155
  grep -v '^ *+' conftest.er1 >conftest.err
17156
  rm -f conftest.er1
17157
  cat conftest.err >&5
17158 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 19 jeremybenn
  (exit $ac_status); } && {
17160
         test -z "$ac_c_werror_flag" ||
17161
         test ! -s conftest.err
17162
       } && test -s conftest.$ac_objext; then
17163
  ac_hi=$ac_mid; break
17164
else
17165 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17166 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17167
 
17168
        ac_lo=`expr $ac_mid + 1`
17169
                        if test $ac_lo -le $ac_mid; then
17170
                          ac_lo= ac_hi=
17171
                          break
17172
                        fi
17173
                        ac_mid=`expr 2 '*' $ac_mid + 1`
17174
fi
17175
 
17176
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17177
  done
17178
else
17179 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17180 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17181
 
17182
        cat >conftest.$ac_ext <<_ACEOF
17183
/* confdefs.h.  */
17184
_ACEOF
17185
cat confdefs.h >>conftest.$ac_ext
17186
cat >>conftest.$ac_ext <<_ACEOF
17187
/* end confdefs.h.  */
17188
$ac_includes_default
17189
int
17190
main ()
17191
{
17192 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
17193 19 jeremybenn
test_array [0] = 0
17194
 
17195
  ;
17196
  return 0;
17197
}
17198
_ACEOF
17199
rm -f conftest.$ac_objext
17200
if { (ac_try="$ac_compile"
17201
case "(($ac_try" in
17202
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203
  *) ac_try_echo=$ac_try;;
17204
esac
17205 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17206
$as_echo "$ac_try_echo") >&5
17207 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17208
  ac_status=$?
17209
  grep -v '^ *+' conftest.er1 >conftest.err
17210
  rm -f conftest.er1
17211
  cat conftest.err >&5
17212 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 19 jeremybenn
  (exit $ac_status); } && {
17214
         test -z "$ac_c_werror_flag" ||
17215
         test ! -s conftest.err
17216
       } && test -s conftest.$ac_objext; then
17217
  ac_hi=-1 ac_mid=-1
17218
  while :; do
17219
    cat >conftest.$ac_ext <<_ACEOF
17220
/* confdefs.h.  */
17221
_ACEOF
17222
cat confdefs.h >>conftest.$ac_ext
17223
cat >>conftest.$ac_ext <<_ACEOF
17224
/* end confdefs.h.  */
17225
$ac_includes_default
17226
int
17227
main ()
17228
{
17229 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
17230 19 jeremybenn
test_array [0] = 0
17231
 
17232
  ;
17233
  return 0;
17234
}
17235
_ACEOF
17236
rm -f conftest.$ac_objext
17237
if { (ac_try="$ac_compile"
17238
case "(($ac_try" in
17239
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240
  *) ac_try_echo=$ac_try;;
17241
esac
17242 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17243
$as_echo "$ac_try_echo") >&5
17244 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17245
  ac_status=$?
17246
  grep -v '^ *+' conftest.er1 >conftest.err
17247
  rm -f conftest.er1
17248
  cat conftest.err >&5
17249 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 19 jeremybenn
  (exit $ac_status); } && {
17251
         test -z "$ac_c_werror_flag" ||
17252
         test ! -s conftest.err
17253
       } && test -s conftest.$ac_objext; then
17254
  ac_lo=$ac_mid; break
17255
else
17256 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17257 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17258
 
17259
        ac_hi=`expr '(' $ac_mid ')' - 1`
17260
                        if test $ac_mid -le $ac_hi; then
17261
                          ac_lo= ac_hi=
17262
                          break
17263
                        fi
17264
                        ac_mid=`expr 2 '*' $ac_mid`
17265
fi
17266
 
17267
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17268
  done
17269
else
17270 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17271 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17272
 
17273
        ac_lo= ac_hi=
17274
fi
17275
 
17276
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17277
fi
17278
 
17279
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17280
# Binary search between lo and hi bounds.
17281
while test "x$ac_lo" != "x$ac_hi"; do
17282
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17283
  cat >conftest.$ac_ext <<_ACEOF
17284
/* confdefs.h.  */
17285
_ACEOF
17286
cat confdefs.h >>conftest.$ac_ext
17287
cat >>conftest.$ac_ext <<_ACEOF
17288
/* end confdefs.h.  */
17289
$ac_includes_default
17290
int
17291
main ()
17292
{
17293 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
17294 19 jeremybenn
test_array [0] = 0
17295
 
17296
  ;
17297
  return 0;
17298
}
17299
_ACEOF
17300
rm -f conftest.$ac_objext
17301
if { (ac_try="$ac_compile"
17302
case "(($ac_try" in
17303
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304
  *) ac_try_echo=$ac_try;;
17305
esac
17306 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17307
$as_echo "$ac_try_echo") >&5
17308 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17309
  ac_status=$?
17310
  grep -v '^ *+' conftest.er1 >conftest.err
17311
  rm -f conftest.er1
17312
  cat conftest.err >&5
17313 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 19 jeremybenn
  (exit $ac_status); } && {
17315
         test -z "$ac_c_werror_flag" ||
17316
         test ! -s conftest.err
17317
       } && test -s conftest.$ac_objext; then
17318
  ac_hi=$ac_mid
17319
else
17320 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17321 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17322
 
17323
        ac_lo=`expr '(' $ac_mid ')' + 1`
17324
fi
17325
 
17326
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17327
done
17328
case $ac_lo in
17329
?*) ac_cv_sizeof_long=$ac_lo;;
17330
'') if test "$ac_cv_type_long" = yes; then
17331 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17332
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17333
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17334 19 jeremybenn
See \`config.log' for more details." >&5
17335 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (long)
17336 19 jeremybenn
See \`config.log' for more details." >&2;}
17337 82 jeremybenn
   { (exit 77); exit 77; }; }; }
17338 19 jeremybenn
   else
17339
     ac_cv_sizeof_long=0
17340
   fi ;;
17341
esac
17342
else
17343
  cat >conftest.$ac_ext <<_ACEOF
17344
/* confdefs.h.  */
17345
_ACEOF
17346
cat confdefs.h >>conftest.$ac_ext
17347
cat >>conftest.$ac_ext <<_ACEOF
17348
/* end confdefs.h.  */
17349
$ac_includes_default
17350 82 jeremybenn
static long int longval () { return (long int) (sizeof (long)); }
17351
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
17352 19 jeremybenn
#include 
17353
#include 
17354
int
17355
main ()
17356
{
17357
 
17358
  FILE *f = fopen ("conftest.val", "w");
17359
  if (! f)
17360
    return 1;
17361 82 jeremybenn
  if (((long int) (sizeof (long))) < 0)
17362 19 jeremybenn
    {
17363
      long int i = longval ();
17364 82 jeremybenn
      if (i != ((long int) (sizeof (long))))
17365 19 jeremybenn
        return 1;
17366 82 jeremybenn
      fprintf (f, "%ld", i);
17367 19 jeremybenn
    }
17368
  else
17369
    {
17370
      unsigned long int i = ulongval ();
17371 82 jeremybenn
      if (i != ((long int) (sizeof (long))))
17372 19 jeremybenn
        return 1;
17373 82 jeremybenn
      fprintf (f, "%lu", i);
17374 19 jeremybenn
    }
17375 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
17376
     on some platforms.  */
17377 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
17378
 
17379
  ;
17380
  return 0;
17381
}
17382
_ACEOF
17383
rm -f conftest$ac_exeext
17384
if { (ac_try="$ac_link"
17385
case "(($ac_try" in
17386
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387
  *) ac_try_echo=$ac_try;;
17388
esac
17389 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17390
$as_echo "$ac_try_echo") >&5
17391 19 jeremybenn
  (eval "$ac_link") 2>&5
17392
  ac_status=$?
17393 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17395
  { (case "(($ac_try" in
17396
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397
  *) ac_try_echo=$ac_try;;
17398
esac
17399 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17400
$as_echo "$ac_try_echo") >&5
17401 19 jeremybenn
  (eval "$ac_try") 2>&5
17402
  ac_status=$?
17403 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 19 jeremybenn
  (exit $ac_status); }; }; then
17405
  ac_cv_sizeof_long=`cat conftest.val`
17406
else
17407 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
17408
$as_echo "$as_me: failed program was:" >&5
17409 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17410
 
17411
( exit $ac_status )
17412
if test "$ac_cv_type_long" = yes; then
17413 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17414
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17415
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17416 19 jeremybenn
See \`config.log' for more details." >&5
17417 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (long)
17418 19 jeremybenn
See \`config.log' for more details." >&2;}
17419 82 jeremybenn
   { (exit 77); exit 77; }; }; }
17420 19 jeremybenn
   else
17421
     ac_cv_sizeof_long=0
17422
   fi
17423
fi
17424 82 jeremybenn
rm -rf conftest.dSYM
17425 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17426
fi
17427
rm -f conftest.val
17428
fi
17429 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17430
$as_echo "$ac_cv_sizeof_long" >&6; }
17431 19 jeremybenn
 
17432
 
17433
 
17434
cat >>confdefs.h <<_ACEOF
17435
#define SIZEOF_LONG $ac_cv_sizeof_long
17436
_ACEOF
17437
 
17438
 
17439
 
17440
#Check for compare function type for qsort (needed by some Linuxes)
17441 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for __compar_fn_t" >&5
17442
$as_echo_n "checking for __compar_fn_t... " >&6; }
17443 19 jeremybenn
if test "${ac_cv_type___compar_fn_t+set}" = set; then
17444 82 jeremybenn
  $as_echo_n "(cached) " >&6
17445 19 jeremybenn
else
17446 82 jeremybenn
  ac_cv_type___compar_fn_t=no
17447
cat >conftest.$ac_ext <<_ACEOF
17448
/* confdefs.h.  */
17449
_ACEOF
17450
cat confdefs.h >>conftest.$ac_ext
17451
cat >>conftest.$ac_ext <<_ACEOF
17452
/* end confdefs.h.  */
17453
$ac_includes_default
17454
int
17455
main ()
17456
{
17457
if (sizeof (__compar_fn_t))
17458
       return 0;
17459
  ;
17460
  return 0;
17461
}
17462
_ACEOF
17463
rm -f conftest.$ac_objext
17464
if { (ac_try="$ac_compile"
17465
case "(($ac_try" in
17466
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467
  *) ac_try_echo=$ac_try;;
17468
esac
17469
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17470
$as_echo "$ac_try_echo") >&5
17471
  (eval "$ac_compile") 2>conftest.er1
17472
  ac_status=$?
17473
  grep -v '^ *+' conftest.er1 >conftest.err
17474
  rm -f conftest.er1
17475
  cat conftest.err >&5
17476
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477
  (exit $ac_status); } && {
17478
         test -z "$ac_c_werror_flag" ||
17479
         test ! -s conftest.err
17480
       } && test -s conftest.$ac_objext; then
17481 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
17482
/* confdefs.h.  */
17483
_ACEOF
17484
cat confdefs.h >>conftest.$ac_ext
17485
cat >>conftest.$ac_ext <<_ACEOF
17486
/* end confdefs.h.  */
17487
$ac_includes_default
17488
int
17489
main ()
17490
{
17491 82 jeremybenn
if (sizeof ((__compar_fn_t)))
17492
          return 0;
17493 19 jeremybenn
  ;
17494
  return 0;
17495
}
17496
_ACEOF
17497
rm -f conftest.$ac_objext
17498
if { (ac_try="$ac_compile"
17499
case "(($ac_try" in
17500
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501
  *) ac_try_echo=$ac_try;;
17502
esac
17503 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17504
$as_echo "$ac_try_echo") >&5
17505 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17506
  ac_status=$?
17507
  grep -v '^ *+' conftest.er1 >conftest.err
17508
  rm -f conftest.er1
17509
  cat conftest.err >&5
17510 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 19 jeremybenn
  (exit $ac_status); } && {
17512
         test -z "$ac_c_werror_flag" ||
17513
         test ! -s conftest.err
17514
       } && test -s conftest.$ac_objext; then
17515 82 jeremybenn
  :
17516 19 jeremybenn
else
17517 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17518 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17519
 
17520 82 jeremybenn
        ac_cv_type___compar_fn_t=yes
17521 19 jeremybenn
fi
17522
 
17523
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17524 82 jeremybenn
else
17525
  $as_echo "$as_me: failed program was:" >&5
17526
sed 's/^/| /' conftest.$ac_ext >&5
17527
 
17528
 
17529 19 jeremybenn
fi
17530
 
17531 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17532
fi
17533
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type___compar_fn_t" >&5
17534
$as_echo "$ac_cv_type___compar_fn_t" >&6; }
17535
if test "x$ac_cv_type___compar_fn_t" = x""yes; then
17536
 
17537 19 jeremybenn
cat >>confdefs.h <<_ACEOF
17538
#define HAVE___COMPAR_FN_T 1
17539
_ACEOF
17540
 
17541
 
17542
fi
17543
 
17544
 
17545
# check for GNU readline
17546
 
17547 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
17548
$as_echo_n "checking for add_history in -lreadline... " >&6; }
17549 19 jeremybenn
if test "${ac_cv_lib_readline_add_history+set}" = set; then
17550 82 jeremybenn
  $as_echo_n "(cached) " >&6
17551 19 jeremybenn
else
17552
  ac_check_lib_save_LIBS=$LIBS
17553
LIBS="-lreadline  $LIBS"
17554
cat >conftest.$ac_ext <<_ACEOF
17555
/* confdefs.h.  */
17556
_ACEOF
17557
cat confdefs.h >>conftest.$ac_ext
17558
cat >>conftest.$ac_ext <<_ACEOF
17559
/* end confdefs.h.  */
17560
 
17561
/* Override any GCC internal prototype to avoid an error.
17562
   Use char because int might match the return type of a GCC
17563
   builtin and then its argument prototype would still apply.  */
17564
#ifdef __cplusplus
17565
extern "C"
17566
#endif
17567
char add_history ();
17568
int
17569
main ()
17570
{
17571
return add_history ();
17572
  ;
17573
  return 0;
17574
}
17575
_ACEOF
17576
rm -f conftest.$ac_objext conftest$ac_exeext
17577
if { (ac_try="$ac_link"
17578
case "(($ac_try" in
17579
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580
  *) ac_try_echo=$ac_try;;
17581
esac
17582 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17583
$as_echo "$ac_try_echo") >&5
17584 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
17585
  ac_status=$?
17586
  grep -v '^ *+' conftest.er1 >conftest.err
17587
  rm -f conftest.er1
17588
  cat conftest.err >&5
17589 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 19 jeremybenn
  (exit $ac_status); } && {
17591
         test -z "$ac_c_werror_flag" ||
17592
         test ! -s conftest.err
17593 82 jeremybenn
       } && test -s conftest$ac_exeext && {
17594
         test "$cross_compiling" = yes ||
17595
         $as_test_x conftest$ac_exeext
17596
       }; then
17597 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
17598
else
17599 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17600 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17601
 
17602
        ac_cv_lib_readline_add_history=no
17603
fi
17604
 
17605 82 jeremybenn
rm -rf conftest.dSYM
17606 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17607
      conftest$ac_exeext conftest.$ac_ext
17608
LIBS=$ac_check_lib_save_LIBS
17609
fi
17610 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
17611
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
17612
if test "x$ac_cv_lib_readline_add_history" = x""yes; then
17613 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
17614
#define HAVE_LIBREADLINE 1
17615
_ACEOF
17616
 
17617
  LIBS="-lreadline $LIBS"
17618
 
17619
fi
17620
 
17621
 
17622
# yuck
17623
case "$host_os" in
17624
aix*)   prefer_curses=yes ;;
17625
esac
17626
 
17627
case "$host_cpu" in
17628
*cray*) LOCAL_CFLAGS=-DCRAY ;;
17629
esac
17630
 
17631
case "$host_os" in
17632
isc*)   LOCAL_CFLAGS=-Disc386 ;;
17633
esac
17634
 
17635
case "$host_os" in
17636
solaris*) LIBS="-lsocket -lnsl" ;;
17637
esac
17638
 
17639
# define options
17640 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable profiling" >&5
17641
$as_echo_n "checking whether to enable profiling... " >&6; }
17642 19 jeremybenn
# Check whether --enable-profiling was given.
17643
if test "${enable_profiling+set}" = set; then
17644
  enableval=$enable_profiling;
17645
    case "$enableval" in
17646
        yes) profile="-pg" ;;
17647
    esac
17648
 
17649
fi
17650
 
17651 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
17652
$as_echo "${enable_profiling-no}" >&6; }
17653 19 jeremybenn
 
17654
execution="1"
17655
 
17656
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17657 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking which execution style to use" >&5
17658
$as_echo_n "checking which execution style to use... " >&6; }
17659 19 jeremybenn
# Check whether --enable-execution was given.
17660
if test "${enable_execution+set}" = set; then
17661
  enableval=$enable_execution;
17662
    case "$enableval" in
17663
    simple)
17664
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17665
      execution="0"
17666 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: simple" >&5
17667
$as_echo "simple" >&6; }
17668 19 jeremybenn
      ;;
17669
    complex)
17670
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17671
      execution="1"
17672 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17673
$as_echo "complex" >&6; }
17674 19 jeremybenn
      ;;
17675
    dynamic)
17676
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17677
      execution="2"
17678 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: dynamic" >&5
17679
$as_echo "dynamic" >&6; }
17680 19 jeremybenn
      ;;
17681
    *)
17682 82 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: \"excecution must one of simple/complex/dynamic\"" >&5
17683
$as_echo "$as_me: error: \"excecution must one of simple/complex/dynamic\"" >&2;}
17684 19 jeremybenn
   { (exit 1); exit 1; }; }
17685
      ;;
17686
    esac
17687
 
17688
else
17689
 
17690 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17691
$as_echo "complex" >&6; }
17692 19 jeremybenn
 
17693
fi
17694
 
17695
 
17696
eth_phy="0"
17697 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
17698
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
17699 19 jeremybenn
# Check whether --enable-ethphy was given.
17700
if test "${enable_ethphy+set}" = set; then
17701
  enableval=$enable_ethphy;
17702
    case "$enableval" in
17703
  no)  eth_phy="0" ;;
17704
        yes) eth_phy="1" ;;
17705
    esac
17706
 
17707
fi
17708
 
17709 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
17710
$as_echo "${enable_eth_phy-no}" >&6; }
17711 19 jeremybenn
 
17712
 
17713
raw_range_stats="0"
17714 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
17715
$as_echo_n "checking whether to use raw range stats... " >&6; }
17716 19 jeremybenn
# Check whether --enable-range_stats was given.
17717
if test "${enable_range_stats+set}" = set; then
17718
  enableval=$enable_range_stats;
17719
    case "$enableval" in
17720
  no)  raw_range_stats="0" ;;
17721
        yes) raw_range_stats="1" simple_execution="1" ;;
17722
    esac
17723
 
17724
fi
17725
 
17726 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
17727
$as_echo "${enable_range_stats-no}" >&6; }
17728 19 jeremybenn
 
17729
set_ov_flag="0"
17730 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether instructions set overflow flag" >&5
17731
$as_echo_n "checking whether instructions set overflow flag... " >&6; }
17732 19 jeremybenn
# Check whether --enable-ov_flag was given.
17733
if test "${enable_ov_flag+set}" = set; then
17734
  enableval=$enable_ov_flag;
17735
    case "$enableval" in
17736
    no)  set_ov_flag="0" ;;
17737
    yes) set_ov_flag="1" ;;
17738
    esac
17739
 
17740
fi
17741
 
17742 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_ov_flag-no}" >&5
17743
$as_echo "${enable_ov_flag-no}" >&6; }
17744 19 jeremybenn
 
17745
set_arith_flag="0"
17746 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether arithmethic instructions set flag" >&5
17747
$as_echo_n "checking whether arithmethic instructions set flag... " >&6; }
17748 19 jeremybenn
# Check whether --enable-arith_flag was given.
17749
if test "${enable_arith_flag+set}" = set; then
17750
  enableval=$enable_arith_flag;
17751
    case "$enableval" in
17752
  no)  set_arith_flag="0" ;;
17753
        yes) set_arith_flag="1" ;;
17754
    esac
17755
 
17756
fi
17757
 
17758 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_arith_flag-no}" >&5
17759
$as_echo "${enable_arith_flag-no}" >&6; }
17760 19 jeremybenn
 
17761
# check for --enable-debug argument (for argtable2)
17762
# Check whether --enable-debug was given.
17763
if test "${enable_debug+set}" = set; then
17764
  enableval=$enable_debug;
17765
       case $enableval in
17766
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
17767
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
17768
          *)   echo "illegal argument to --enable-debug" & exit 1;;
17769
       esac
17770
 
17771
else
17772
  DEBUGFLAGS="-DNDEBUG"
17773
 
17774
fi
17775
 
17776
 
17777
 
17778
 
17779
cat >>confdefs.h <<_ACEOF
17780
#define RAW_RANGE_STATS $raw_range_stats
17781
_ACEOF
17782
 
17783
 
17784
cat >>confdefs.h <<_ACEOF
17785
#define SET_OV_FLAG $set_ov_flag
17786
_ACEOF
17787
 
17788
 
17789
cat >>confdefs.h <<_ACEOF
17790
#define ARITH_SET_FLAG $set_arith_flag
17791
_ACEOF
17792
 
17793
 
17794
cat >>confdefs.h <<_ACEOF
17795
#define HAVE_ETH_PHY $eth_phy
17796
_ACEOF
17797
 
17798
 
17799
cat >>confdefs.h <<_ACEOF
17800
#define SIMPLE_EXECUTION $execution == 0
17801
_ACEOF
17802
 
17803
 
17804
cat >>confdefs.h <<_ACEOF
17805
#define COMPLEX_EXECUTION $execution == 1
17806
_ACEOF
17807
 
17808
 
17809
cat >>confdefs.h <<_ACEOF
17810
#define DYNAMIC_EXECUTION $execution == 2
17811
_ACEOF
17812
 
17813
 if test x$execution = x1; then
17814
  GENERATE_NEEDED_TRUE=
17815
  GENERATE_NEEDED_FALSE='#'
17816
else
17817
  GENERATE_NEEDED_TRUE='#'
17818
  GENERATE_NEEDED_FALSE=
17819
fi
17820
 
17821
 if test x$execution = x2; then
17822
  DYNAMIC_EXECUTION_TRUE=
17823
  DYNAMIC_EXECUTION_FALSE='#'
17824
else
17825
  DYNAMIC_EXECUTION_TRUE='#'
17826
  DYNAMIC_EXECUTION_FALSE=
17827
fi
17828
 
17829
 
17830
 
17831
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
17832
 
17833 90 jeremybenn
# Check for a DejaGNU global config file. If not set, then set it
17834
# ourselves. This stops runtest complaining
17835
if test x"$DEJAGNU" = x
17836
then
17837
  DEJAGNU="\$(top_srcdir)/testsuite/default-global-conf.exp"
17838
 
17839
fi
17840
 
17841 19 jeremybenn
BUILD_DIR=`pwd`
17842
 
17843
 
17844
 
17845
 
17846
 
17847
 
17848
 
17849
 
17850
 
17851
 
17852
 
17853
 
17854
 
17855
 
17856
 
17857
 
17858
 
17859
 
17860
cat >>confdefs.h <<\_ACEOF
17861
#define HAVE_EXECUTION 1
17862
_ACEOF
17863
 
17864
 
17865
# yuck
17866
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
17867
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
17868
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
17869
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
17870
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
17871
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
17872
 
17873
 
17874 90 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 tick/Makefile vapi/Makefile"
17875 19 jeremybenn
 
17876
 
17877
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
17878
case "$CPU_ARCH" in
17879
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
17880
;;
17881
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
17882
;;
17883
esac
17884
 
17885 82 jeremybenn
# Generate the output
17886
 
17887
 
17888 19 jeremybenn
cat >confcache <<\_ACEOF
17889
# This file is a shell script that caches the results of configure
17890
# tests run on this system so they can be shared between configure
17891
# scripts and configure runs, see configure's option --config-cache.
17892
# It is not useful on other systems.  If it contains results you don't
17893
# want to keep, you may remove or edit it.
17894
#
17895
# config.status only pays attention to the cache file if you give it
17896
# the --recheck option to rerun configure.
17897
#
17898
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17899
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17900
# following values.
17901
 
17902
_ACEOF
17903
 
17904
# The following way of writing the cache mishandles newlines in values,
17905
# but we know of no workaround that is simple, portable, and efficient.
17906
# So, we kill variables containing newlines.
17907
# Ultrix sh set writes to stderr and can't be redirected directly,
17908
# and sets the high bit in the cache file unless we assign to the vars.
17909
(
17910
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17911
    eval ac_val=\$$ac_var
17912
    case $ac_val in #(
17913
    *${as_nl}*)
17914
      case $ac_var in #(
17915 82 jeremybenn
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17916
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17917 19 jeremybenn
      esac
17918
      case $ac_var in #(
17919
      _ | IFS | as_nl) ;; #(
17920 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17921 19 jeremybenn
      *) $as_unset $ac_var ;;
17922
      esac ;;
17923
    esac
17924
  done
17925
 
17926
  (set) 2>&1 |
17927
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17928
    *${as_nl}ac_space=\ *)
17929
      # `set' does not quote correctly, so add quotes (double-quote
17930
      # substitution turns \\\\ into \\, and sed turns \\ into \).
17931
      sed -n \
17932
        "s/'/'\\\\''/g;
17933
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17934
      ;; #(
17935
    *)
17936
      # `set' quotes correctly as required by POSIX, so do not add quotes.
17937
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17938
      ;;
17939
    esac |
17940
    sort
17941
) |
17942
  sed '
17943
     /^ac_cv_env_/b end
17944
     t clear
17945
     :clear
17946
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17947
     t end
17948
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17949
     :end' >>confcache
17950
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17951
  if test -w "$cache_file"; then
17952
    test "x$cache_file" != "x/dev/null" &&
17953 82 jeremybenn
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17954
$as_echo "$as_me: updating cache $cache_file" >&6;}
17955 19 jeremybenn
    cat confcache >$cache_file
17956
  else
17957 82 jeremybenn
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17958
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17959 19 jeremybenn
  fi
17960
fi
17961
rm -f confcache
17962
 
17963
test "x$prefix" = xNONE && prefix=$ac_default_prefix
17964
# Let make expand exec_prefix.
17965
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17966
 
17967
DEFS=-DHAVE_CONFIG_H
17968
 
17969
ac_libobjs=
17970
ac_ltlibobjs=
17971
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17972
  # 1. Remove the extension, and $U if already installed.
17973
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17974 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17975 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17976
  #    will be set to the directory where LIBOBJS objects are built.
17977
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17978
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17979
done
17980
LIBOBJS=$ac_libobjs
17981
 
17982
LTLIBOBJS=$ac_ltlibobjs
17983
 
17984
 
17985
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17986 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17987 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17988 82 jeremybenn
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17989 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17990
   { (exit 1); exit 1; }; }
17991
fi
17992
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17993 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17994 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17995 82 jeremybenn
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17996 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17997
   { (exit 1); exit 1; }; }
17998
fi
17999 82 jeremybenn
 if test -n "$EXEEXT"; then
18000
  am__EXEEXT_TRUE=
18001
  am__EXEEXT_FALSE='#'
18002
else
18003
  am__EXEEXT_TRUE='#'
18004
  am__EXEEXT_FALSE=
18005
fi
18006
 
18007
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18008
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
18009 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
18010 82 jeremybenn
$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
18011 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
18012
   { (exit 1); exit 1; }; }
18013
fi
18014 82 jeremybenn
 
18015 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
18016 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
18017 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
18018 82 jeremybenn
$as_echo "$as_me: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
18019 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
18020
   { (exit 1); exit 1; }; }
18021
fi
18022
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
18023 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGREX\" was never defined.
18024 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
18025 82 jeremybenn
$as_echo "$as_me: error: conditional \"USE_ARGREX\" was never defined.
18026 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
18027
   { (exit 1); exit 1; }; }
18028
fi
18029
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
18030 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGDATE\" was never defined.
18031 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
18032 82 jeremybenn
$as_echo "$as_me: error: conditional \"USE_ARGDATE\" was never defined.
18033 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
18034
   { (exit 1); exit 1; }; }
18035
fi
18036
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
18037 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
18038 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
18039 82 jeremybenn
$as_echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
18040 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
18041
   { (exit 1); exit 1; }; }
18042
fi
18043
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
18044 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
18045 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
18046 82 jeremybenn
$as_echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
18047 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
18048
   { (exit 1); exit 1; }; }
18049
fi
18050
 
18051
: ${CONFIG_STATUS=./config.status}
18052 82 jeremybenn
ac_write_fail=0
18053 19 jeremybenn
ac_clean_files_save=$ac_clean_files
18054
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18055 82 jeremybenn
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18056
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18057
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18058 19 jeremybenn
#! $SHELL
18059
# Generated by $as_me.
18060
# Run this file to recreate the current configuration.
18061
# Compiler output produced by configure, useful for debugging
18062
# configure, is in config.log if it exists.
18063
 
18064
debug=false
18065
ac_cs_recheck=false
18066
ac_cs_silent=false
18067
SHELL=\${CONFIG_SHELL-$SHELL}
18068
_ACEOF
18069
 
18070 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18071 19 jeremybenn
## --------------------- ##
18072
## M4sh Initialization.  ##
18073
## --------------------- ##
18074
 
18075
# Be more Bourne compatible
18076
DUALCASE=1; export DUALCASE # for MKS sh
18077
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18078
  emulate sh
18079
  NULLCMD=:
18080 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18081 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
18082
  alias -g '${1+"$@"}'='"$@"'
18083
  setopt NO_GLOB_SUBST
18084
else
18085
  case `(set -o) 2>/dev/null` in
18086
  *posix*) set -o posix ;;
18087
esac
18088
 
18089
fi
18090
 
18091
 
18092
 
18093
 
18094
# PATH needs CR
18095
# Avoid depending upon Character Ranges.
18096
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18097
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18098
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18099
as_cr_digits='0123456789'
18100
as_cr_alnum=$as_cr_Letters$as_cr_digits
18101
 
18102 82 jeremybenn
as_nl='
18103
'
18104
export as_nl
18105
# Printing a long string crashes Solaris 7 /usr/bin/printf.
18106
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18107
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18108
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18109
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18110
  as_echo='printf %s\n'
18111
  as_echo_n='printf %s'
18112
else
18113
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18114
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18115
    as_echo_n='/usr/ucb/echo -n'
18116 19 jeremybenn
  else
18117 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18118
    as_echo_n_body='eval
18119
      arg=$1;
18120
      case $arg in
18121
      *"$as_nl"*)
18122
        expr "X$arg" : "X\\(.*\\)$as_nl";
18123
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18124
      esac;
18125
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18126
    '
18127
    export as_echo_n_body
18128
    as_echo_n='sh -c $as_echo_n_body as_echo'
18129 19 jeremybenn
  fi
18130 82 jeremybenn
  export as_echo_body
18131
  as_echo='sh -c $as_echo_body as_echo'
18132 19 jeremybenn
fi
18133
 
18134 82 jeremybenn
# The user is always right.
18135
if test "${PATH_SEPARATOR+set}" != set; then
18136
  PATH_SEPARATOR=:
18137
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18138
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18139
      PATH_SEPARATOR=';'
18140
  }
18141
fi
18142
 
18143 19 jeremybenn
# Support unset when possible.
18144
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18145
  as_unset=unset
18146
else
18147
  as_unset=false
18148
fi
18149
 
18150
 
18151
# IFS
18152
# We need space, tab and new line, in precisely that order.  Quoting is
18153
# there to prevent editors from complaining about space-tab.
18154
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18155
# splitting by setting IFS to empty value.)
18156
IFS=" ""        $as_nl"
18157
 
18158
# Find who we are.  Look in the path if we contain no directory separator.
18159
case $0 in
18160
  *[\\/]* ) as_myself=$0 ;;
18161
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18162
for as_dir in $PATH
18163
do
18164
  IFS=$as_save_IFS
18165
  test -z "$as_dir" && as_dir=.
18166
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18167
done
18168
IFS=$as_save_IFS
18169
 
18170
     ;;
18171
esac
18172
# We did not find ourselves, most probably we were run as `sh COMMAND'
18173
# in which case we are not to be found in the path.
18174
if test "x$as_myself" = x; then
18175
  as_myself=$0
18176
fi
18177
if test ! -f "$as_myself"; then
18178 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18179 19 jeremybenn
  { (exit 1); exit 1; }
18180
fi
18181
 
18182
# Work around bugs in pre-3.0 UWIN ksh.
18183
for as_var in ENV MAIL MAILPATH
18184
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18185
done
18186
PS1='$ '
18187
PS2='> '
18188
PS4='+ '
18189
 
18190
# NLS nuisances.
18191 82 jeremybenn
LC_ALL=C
18192
export LC_ALL
18193
LANGUAGE=C
18194
export LANGUAGE
18195 19 jeremybenn
 
18196
# Required to use basename.
18197
if expr a : '\(a\)' >/dev/null 2>&1 &&
18198
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18199
  as_expr=expr
18200
else
18201
  as_expr=false
18202
fi
18203
 
18204
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18205
  as_basename=basename
18206
else
18207
  as_basename=false
18208
fi
18209
 
18210
 
18211
# Name of the executable.
18212
as_me=`$as_basename -- "$0" ||
18213
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18214
         X"$0" : 'X\(//\)$' \| \
18215
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18216 82 jeremybenn
$as_echo X/"$0" |
18217 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
18218
            s//\1/
18219
            q
18220
          }
18221
          /^X\/\(\/\/\)$/{
18222
            s//\1/
18223
            q
18224
          }
18225
          /^X\/\(\/\).*/{
18226
            s//\1/
18227
            q
18228
          }
18229
          s/.*/./; q'`
18230
 
18231
# CDPATH.
18232
$as_unset CDPATH
18233
 
18234
 
18235
 
18236
  as_lineno_1=$LINENO
18237
  as_lineno_2=$LINENO
18238
  test "x$as_lineno_1" != "x$as_lineno_2" &&
18239
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18240
 
18241
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18242
  # uniformly replaced by the line number.  The first 'sed' inserts a
18243
  # line-number line after each line using $LINENO; the second 'sed'
18244
  # does the real work.  The second script uses 'N' to pair each
18245
  # line-number line with the line containing $LINENO, and appends
18246
  # trailing '-' during substitution so that $LINENO is not a special
18247
  # case at line end.
18248
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18249
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
18250
  # E. McMahon (1931-1989) for sed's syntax.  :-)
18251
  sed -n '
18252
    p
18253
    /[$]LINENO/=
18254
  ' <$as_myself |
18255
    sed '
18256
      s/[$]LINENO.*/&-/
18257
      t lineno
18258
      b
18259
      :lineno
18260
      N
18261
      :loop
18262
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18263
      t loop
18264
      s/-\n.*//
18265
    ' >$as_me.lineno &&
18266
  chmod +x "$as_me.lineno" ||
18267 82 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18268 19 jeremybenn
   { (exit 1); exit 1; }; }
18269
 
18270
  # Don't try to exec as it changes $[0], causing all sort of problems
18271
  # (the dirname of $[0] is not the place where we might find the
18272
  # original and so on.  Autoconf is especially sensitive to this).
18273
  . "./$as_me.lineno"
18274
  # Exit status is that of the last command.
18275
  exit
18276
}
18277
 
18278
 
18279
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18280
  as_dirname=dirname
18281
else
18282
  as_dirname=false
18283
fi
18284
 
18285
ECHO_C= ECHO_N= ECHO_T=
18286
case `echo -n x` in
18287
-n*)
18288
  case `echo 'x\c'` in
18289
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18290
  *)   ECHO_C='\c';;
18291
  esac;;
18292
*)
18293
  ECHO_N='-n';;
18294
esac
18295
if expr a : '\(a\)' >/dev/null 2>&1 &&
18296
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18297
  as_expr=expr
18298
else
18299
  as_expr=false
18300
fi
18301
 
18302
rm -f conf$$ conf$$.exe conf$$.file
18303
if test -d conf$$.dir; then
18304
  rm -f conf$$.dir/conf$$.file
18305
else
18306
  rm -f conf$$.dir
18307 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
18308 19 jeremybenn
fi
18309 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
18310
  if ln -s conf$$.file conf$$ 2>/dev/null; then
18311
    as_ln_s='ln -s'
18312
    # ... but there are two gotchas:
18313
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18314
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18315
    # In both cases, we have to default to `cp -p'.
18316
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18317
      as_ln_s='cp -p'
18318
  elif ln conf$$.file conf$$ 2>/dev/null; then
18319
    as_ln_s=ln
18320
  else
18321 19 jeremybenn
    as_ln_s='cp -p'
18322 82 jeremybenn
  fi
18323 19 jeremybenn
else
18324
  as_ln_s='cp -p'
18325
fi
18326
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18327
rmdir conf$$.dir 2>/dev/null
18328
 
18329
if mkdir -p . 2>/dev/null; then
18330
  as_mkdir_p=:
18331
else
18332
  test -d ./-p && rmdir ./-p
18333
  as_mkdir_p=false
18334
fi
18335
 
18336
if test -x / >/dev/null 2>&1; then
18337
  as_test_x='test -x'
18338
else
18339
  if ls -dL / >/dev/null 2>&1; then
18340
    as_ls_L_option=L
18341
  else
18342
    as_ls_L_option=
18343
  fi
18344
  as_test_x='
18345
    eval sh -c '\''
18346
      if test -d "$1"; then
18347 82 jeremybenn
        test -d "$1/.";
18348 19 jeremybenn
      else
18349
        case $1 in
18350 82 jeremybenn
        -*)set "./$1";;
18351 19 jeremybenn
        esac;
18352
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18353
        ???[sx]*):;;*)false;;esac;fi
18354
    '\'' sh
18355
  '
18356
fi
18357
as_executable_p=$as_test_x
18358
 
18359
# Sed expression to map a string onto a valid CPP name.
18360
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18361
 
18362
# Sed expression to map a string onto a valid variable name.
18363
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18364
 
18365
 
18366
exec 6>&1
18367
 
18368
# Save the log message, to keep $[0] and so on meaningful, and to
18369
# report actual input values of CONFIG_FILES etc. instead of their
18370
# values after options handling.
18371
ac_log="
18372 89 jeremybenn
This file was extended by or1ksim $as_me 2010-04-21, which was
18373 82 jeremybenn
generated by GNU Autoconf 2.63.  Invocation command line was
18374 19 jeremybenn
 
18375
  CONFIG_FILES    = $CONFIG_FILES
18376
  CONFIG_HEADERS  = $CONFIG_HEADERS
18377
  CONFIG_LINKS    = $CONFIG_LINKS
18378
  CONFIG_COMMANDS = $CONFIG_COMMANDS
18379
  $ $0 $@
18380
 
18381
on `(hostname || uname -n) 2>/dev/null | sed 1q`
18382
"
18383
 
18384
_ACEOF
18385
 
18386 82 jeremybenn
case $ac_config_files in *"
18387
"*) set x $ac_config_files; shift; ac_config_files=$*;;
18388
esac
18389
 
18390
case $ac_config_headers in *"
18391
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18392
esac
18393
 
18394
 
18395
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18396 19 jeremybenn
# Files that config.status was made for.
18397
config_files="$ac_config_files"
18398
config_headers="$ac_config_headers"
18399
config_commands="$ac_config_commands"
18400
 
18401
_ACEOF
18402
 
18403 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18404 19 jeremybenn
ac_cs_usage="\
18405
\`$as_me' instantiates files from templates according to the
18406
current configuration.
18407
 
18408 82 jeremybenn
Usage: $0 [OPTION]... [FILE]...
18409 19 jeremybenn
 
18410
  -h, --help       print this help, then exit
18411
  -V, --version    print version number and configuration settings, then exit
18412 82 jeremybenn
  -q, --quiet, --silent
18413
                   do not print progress messages
18414 19 jeremybenn
  -d, --debug      don't remove temporary files
18415
      --recheck    update $as_me by reconfiguring in the same conditions
18416 82 jeremybenn
      --file=FILE[:TEMPLATE]
18417
                   instantiate the configuration file FILE
18418
      --header=FILE[:TEMPLATE]
18419
                   instantiate the configuration header FILE
18420 19 jeremybenn
 
18421
Configuration files:
18422
$config_files
18423
 
18424
Configuration headers:
18425
$config_headers
18426
 
18427
Configuration commands:
18428
$config_commands
18429
 
18430
Report bugs to ."
18431
 
18432
_ACEOF
18433 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18434 19 jeremybenn
ac_cs_version="\\
18435 89 jeremybenn
or1ksim config.status 2010-04-21
18436 82 jeremybenn
configured by $0, generated by GNU Autoconf 2.63,
18437
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18438 19 jeremybenn
 
18439 82 jeremybenn
Copyright (C) 2008 Free Software Foundation, Inc.
18440 19 jeremybenn
This config.status script is free software; the Free Software Foundation
18441
gives unlimited permission to copy, distribute and modify it."
18442
 
18443
ac_pwd='$ac_pwd'
18444
srcdir='$srcdir'
18445
INSTALL='$INSTALL'
18446
MKDIR_P='$MKDIR_P'
18447 82 jeremybenn
AWK='$AWK'
18448
test -n "\$AWK" || AWK=awk
18449 19 jeremybenn
_ACEOF
18450
 
18451 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18452
# The default lists apply if the user does not specify any file.
18453 19 jeremybenn
ac_need_defaults=:
18454
while test $# != 0
18455
do
18456
  case $1 in
18457
  --*=*)
18458
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18459
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18460
    ac_shift=:
18461
    ;;
18462
  *)
18463
    ac_option=$1
18464
    ac_optarg=$2
18465
    ac_shift=shift
18466
    ;;
18467
  esac
18468
 
18469
  case $ac_option in
18470
  # Handling of the options.
18471
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18472
    ac_cs_recheck=: ;;
18473
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18474 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
18475 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
18476
    debug=: ;;
18477
  --file | --fil | --fi | --f )
18478
    $ac_shift
18479 82 jeremybenn
    case $ac_optarg in
18480
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18481
    esac
18482
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18483 19 jeremybenn
    ac_need_defaults=false;;
18484
  --header | --heade | --head | --hea )
18485
    $ac_shift
18486 82 jeremybenn
    case $ac_optarg in
18487
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18488
    esac
18489
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18490 19 jeremybenn
    ac_need_defaults=false;;
18491
  --he | --h)
18492
    # Conflict between --help and --header
18493 82 jeremybenn
    { $as_echo "$as_me: error: ambiguous option: $1
18494 19 jeremybenn
Try \`$0 --help' for more information." >&2
18495
   { (exit 1); exit 1; }; };;
18496
  --help | --hel | -h )
18497 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
18498 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18499
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18500
    ac_cs_silent=: ;;
18501
 
18502
  # This is an error.
18503 82 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $1
18504 19 jeremybenn
Try \`$0 --help' for more information." >&2
18505
   { (exit 1); exit 1; }; } ;;
18506
 
18507
  *) ac_config_targets="$ac_config_targets $1"
18508
     ac_need_defaults=false ;;
18509
 
18510
  esac
18511
  shift
18512
done
18513
 
18514
ac_configure_extra_args=
18515
 
18516
if $ac_cs_silent; then
18517
  exec 6>/dev/null
18518
  ac_configure_extra_args="$ac_configure_extra_args --silent"
18519
fi
18520
 
18521
_ACEOF
18522 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18523 19 jeremybenn
if \$ac_cs_recheck; then
18524 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18525
  shift
18526
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18527
  CONFIG_SHELL='$SHELL'
18528 19 jeremybenn
  export CONFIG_SHELL
18529 82 jeremybenn
  exec "\$@"
18530 19 jeremybenn
fi
18531
 
18532
_ACEOF
18533 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18534 19 jeremybenn
exec 5>>config.log
18535
{
18536
  echo
18537
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18538
## Running $as_me. ##
18539
_ASBOX
18540 82 jeremybenn
  $as_echo "$ac_log"
18541 19 jeremybenn
} >&5
18542
 
18543
_ACEOF
18544 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18545 19 jeremybenn
#
18546
# INIT-COMMANDS
18547
#
18548 82 jeremybenn
 
18549
 
18550
# The HP-UX ksh and POSIX shell print the target directory to stdout
18551
# if CDPATH is set.
18552
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18553
 
18554
sed_quote_subst='$sed_quote_subst'
18555
double_quote_subst='$double_quote_subst'
18556
delay_variable_subst='$delay_variable_subst'
18557
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18558
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18559
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18560
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18561
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18562
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18563
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18564
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18565
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18566
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18567
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18568
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18569
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18570
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18571
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18572
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18573
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18574
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18575
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18576
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18577
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18578
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18579
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18580
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18581
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18582
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18583
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18584
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18585
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18586
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18587
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18588
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18589
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18590
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18591
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18592
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18593
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18594
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18595
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18596
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18597
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18598
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18599
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18600
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18601
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"`'
18602
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"`'
18603
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18604
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18605
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18606
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18607
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18608
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18609
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18610
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18611
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18612
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18613
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18614
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18615
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18616
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18617
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18618
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18619
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18620
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18621
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18622
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18623
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18624
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18625
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18626
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18627
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18628
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18629
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18630
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18631
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18632
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18633
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18634
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18635
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18636
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18637
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18638
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18639
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18640
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18641
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18642
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18643
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18644
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18645
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18646
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18647
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18648
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18649
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18650
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18651
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18652
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18653
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18654
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18655
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18656
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18657
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18658
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18659
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18660
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18661
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18662
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18663
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18664
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18665
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18666
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18667
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18668
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18669
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18670
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18671
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18672
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18673
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18674
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18675
 
18676
LTCC='$LTCC'
18677
LTCFLAGS='$LTCFLAGS'
18678
compiler='$compiler_DEFAULT'
18679
 
18680
# Quote evaled strings.
18681
for var in SED \
18682
GREP \
18683
EGREP \
18684
FGREP \
18685
LD \
18686
NM \
18687
LN_S \
18688
lt_SP2NL \
18689
lt_NL2SP \
18690
reload_flag \
18691
OBJDUMP \
18692
deplibs_check_method \
18693
file_magic_cmd \
18694
AR \
18695
AR_FLAGS \
18696
STRIP \
18697
RANLIB \
18698
CC \
18699
CFLAGS \
18700
compiler \
18701
lt_cv_sys_global_symbol_pipe \
18702
lt_cv_sys_global_symbol_to_cdecl \
18703
lt_cv_sys_global_symbol_to_c_name_address \
18704
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18705
SHELL \
18706
ECHO \
18707
lt_prog_compiler_no_builtin_flag \
18708
lt_prog_compiler_wl \
18709
lt_prog_compiler_pic \
18710
lt_prog_compiler_static \
18711
lt_cv_prog_compiler_c_o \
18712
need_locks \
18713
DSYMUTIL \
18714
NMEDIT \
18715
LIPO \
18716
OTOOL \
18717
OTOOL64 \
18718
shrext_cmds \
18719
export_dynamic_flag_spec \
18720
whole_archive_flag_spec \
18721
compiler_needs_object \
18722
with_gnu_ld \
18723
allow_undefined_flag \
18724
no_undefined_flag \
18725
hardcode_libdir_flag_spec \
18726
hardcode_libdir_flag_spec_ld \
18727
hardcode_libdir_separator \
18728
fix_srcfile_path \
18729
exclude_expsyms \
18730
include_expsyms \
18731
file_list_spec \
18732
variables_saved_for_relink \
18733
libname_spec \
18734
library_names_spec \
18735
soname_spec \
18736
finish_eval \
18737
old_striplib \
18738
striplib; do
18739
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18740
    *[\\\\\\\`\\"\\\$]*)
18741
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18742
      ;;
18743
    *)
18744
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18745
      ;;
18746
    esac
18747
done
18748
 
18749
# Double-quote double-evaled strings.
18750
for var in reload_cmds \
18751
old_postinstall_cmds \
18752
old_postuninstall_cmds \
18753
old_archive_cmds \
18754
extract_expsyms_cmds \
18755
old_archive_from_new_cmds \
18756
old_archive_from_expsyms_cmds \
18757
archive_cmds \
18758
archive_expsym_cmds \
18759
module_cmds \
18760
module_expsym_cmds \
18761
export_symbols_cmds \
18762
prelink_cmds \
18763
postinstall_cmds \
18764
postuninstall_cmds \
18765
finish_cmds \
18766
sys_lib_search_path_spec \
18767
sys_lib_dlsearch_path_spec; do
18768
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18769
    *[\\\\\\\`\\"\\\$]*)
18770
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18771
      ;;
18772
    *)
18773
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18774
      ;;
18775
    esac
18776
done
18777
 
18778
# Fix-up fallback echo if it was mangled by the above quoting rules.
18779
case \$lt_ECHO in
18780
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18781
  ;;
18782
esac
18783
 
18784
ac_aux_dir='$ac_aux_dir'
18785
xsi_shell='$xsi_shell'
18786
lt_shell_append='$lt_shell_append'
18787
 
18788
# See if we are running on zsh, and set the options which allow our
18789
# commands through without removal of \ escapes INIT.
18790
if test -n "\${ZSH_VERSION+set}" ; then
18791
   setopt NO_GLOB_SUBST
18792
fi
18793
 
18794
 
18795
    PACKAGE='$PACKAGE'
18796
    VERSION='$VERSION'
18797
    TIMESTAMP='$TIMESTAMP'
18798
    RM='$RM'
18799
    ofile='$ofile'
18800
 
18801
 
18802
 
18803 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18804
 
18805
_ACEOF
18806
 
18807 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18808 19 jeremybenn
 
18809
# Handling of arguments.
18810
for ac_config_target in $ac_config_targets
18811
do
18812
  case $ac_config_target in
18813 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18814 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18815
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18816
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18817
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
18818
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
18819
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
18820
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
18821
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
18822
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
18823
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
18824
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
18825
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18826
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
18827
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
18828
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
18829
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
18830
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
18831 90 jeremybenn
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
18832
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
18833
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18834
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
18835
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
18836
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
18837
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
18838
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
18839
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
18840
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
18841 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
18842
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
18843
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
18844
 
18845 82 jeremybenn
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18846
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18847 19 jeremybenn
   { (exit 1); exit 1; }; };;
18848
  esac
18849
done
18850
 
18851
 
18852
# If the user did not use the arguments to specify the items to instantiate,
18853
# then the envvar interface is used.  Set only those that are not.
18854
# We use the long form for the default assignment because of an extremely
18855
# bizarre bug on SunOS 4.1.3.
18856
if $ac_need_defaults; then
18857
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18858
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18859
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18860
fi
18861
 
18862
# Have a temporary directory for convenience.  Make it in the build tree
18863
# simply because there is no reason against having it here, and in addition,
18864
# creating and moving files from /tmp can sometimes cause problems.
18865
# Hook for its removal unless debugging.
18866
# Note that there is a small window in which the directory will not be cleaned:
18867
# after its creation but before its name has been assigned to `$tmp'.
18868
$debug ||
18869
{
18870
  tmp=
18871
  trap 'exit_status=$?
18872
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18873
' 0
18874
  trap '{ (exit 1); exit 1; }' 1 2 13 15
18875
}
18876
# Create a (secure) tmp directory for tmp files.
18877
 
18878
{
18879
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18880
  test -n "$tmp" && test -d "$tmp"
18881
}  ||
18882
{
18883
  tmp=./conf$$-$RANDOM
18884
  (umask 077 && mkdir "$tmp")
18885
} ||
18886
{
18887 82 jeremybenn
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
18888 19 jeremybenn
   { (exit 1); exit 1; }
18889
}
18890
 
18891 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
18892
# No need to generate them if there are no CONFIG_FILES.
18893
# This happens for instance with `./config.status config.h'.
18894 19 jeremybenn
if test -n "$CONFIG_FILES"; then
18895
 
18896 82 jeremybenn
 
18897
ac_cr='
'
18898
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
18899
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18900
  ac_cs_awk_cr='\\r'
18901
else
18902
  ac_cs_awk_cr=$ac_cr
18903
fi
18904
18905
 
18906
_ACEOF
18907 19 jeremybenn
18908
 
18909
 
18910 82 jeremybenn
  echo "cat >conf$$subs.awk <<_ACEOF" &&
18911
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18912
  echo "_ACEOF"
18913
} >conf$$subs.sh ||
18914
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18915
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18916
   { (exit 1); exit 1; }; }
18917
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18918
ac_delim='%!_!# '
18919 19 jeremybenn
for ac_last_try in false false false false false :; do
18920
  . ./conf$$subs.sh ||
18921 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18922
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18923
   { (exit 1); exit 1; }; }
18924
18925 19 jeremybenn
 
18926 82 jeremybenn
  if test $ac_delim_n = $ac_delim_num; then
18927
    break
18928 19 jeremybenn
  elif $ac_last_try; then
18929
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18930 82 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18931
   { (exit 1); exit 1; }; }
18932 19 jeremybenn
  else
18933
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18934
  fi
18935
done
18936
rm -f conf$$subs.sh
18937 82 jeremybenn
18938 19 jeremybenn
 
18939 82 jeremybenn
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18940
_ACEOF
18941 19 jeremybenn
sed -n '
18942 82 jeremybenn
h
18943
s/^/S["/; s/!.*/"]=/
18944
p
18945
g
18946
s/^[^!]*!//
18947
:repl
18948
t repl
18949
s/'"$ac_delim"'$//
18950
t delim
18951
:nl
18952
h
18953
s/\(.\{148\}\).*/\1/
18954
t more1
18955
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18956
p
18957
n
18958
b repl
18959
:more1
18960
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18961
p
18962
g
18963
s/.\{148\}//
18964
t nl
18965
:delim
18966
h
18967
s/\(.\{148\}\).*/\1/
18968
t more2
18969
s/["\\]/\\&/g; s/^/"/; s/$/"/
18970
p
18971
b
18972
:more2
18973
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18974
p
18975
g
18976
s/.\{148\}//
18977
t delim
18978
' 
18979
/^[^""]/{
18980
  N
18981
  s/\n//
18982
}
18983
' >>$CONFIG_STATUS || ac_write_fail=1
18984
rm -f conf$$subs.awk
18985
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18986
_ACAWK
18987
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18988
  for (key in S) S_is_set[key] = 1
18989
  FS = ""
18990
18991 19 jeremybenn
 
18992 82 jeremybenn
{
18993
  line = $ 0
18994
  nfields = split(line, field, "@")
18995
  substed = 0
18996
  len = length(field[1])
18997
  for (i = 2; i < nfields; i++) {
18998
    key = field[i]
18999
    keylen = length(key)
19000
    if (S_is_set[key]) {
19001
      value = S[key]
19002
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19003
      len += length(value) + length(field[++i])
19004
      substed = 1
19005
    } else
19006
      len += 1 + keylen
19007
  }
19008
19009 19 jeremybenn
 
19010 82 jeremybenn
}
19011
19012
 
19013
_ACEOF
19014 19 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19015 82 jeremybenn
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19016
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19017
else
19018
  cat
19019
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19020
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19021
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
19022
   { (exit 1); exit 1; }; }
19023 19 jeremybenn
_ACEOF
19024
19025
 
19026
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19027
# trailing colons and then remove the whole line if VPATH becomes empty
19028
# (actually we leave an empty line to preserve line numbers).
19029
if test "x$srcdir" = x.; then
19030
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
19031
s/:*\$(srcdir):*/:/
19032
s/:*\${srcdir}:*/:/
19033
s/:*@srcdir@:*/:/
19034
s/^\([^=]*=[     ]*\):*/\1/
19035
s/:*$//
19036
s/^[^=]*=[       ]*$//
19037
}'
19038
fi
19039
19040
 
19041 82 jeremybenn
fi # test -n "$CONFIG_FILES"
19042 19 jeremybenn
19043
 
19044 82 jeremybenn
# No need to generate them if there are no CONFIG_HEADERS.
19045
# This happens for instance with `./config.status Makefile'.
19046
if test -n "$CONFIG_HEADERS"; then
19047
cat >"$tmp/defines.awk" <<\_ACAWK ||
19048
BEGIN {
19049
_ACEOF
19050
19051 19 jeremybenn
 
19052 82 jeremybenn
# here-document in config.status, that substitutes the proper values into
19053
# config.h.in to produce config.h.
19054
19055
 
19056
# handling of long lines.
19057
ac_delim='%!_!# '
19058
for ac_last_try in false false :; do
19059
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19060
  if test -z "$ac_t"; then
19061
    break
19062
  elif $ac_last_try; then
19063
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19064
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19065
   { (exit 1); exit 1; }; }
19066
  else
19067
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19068
  fi
19069
done
19070
19071
 
19072
# likewise P contains macro parameters if any.  Preserve backslash
19073
# newline sequences.
19074
19075
 
19076
sed -n '
19077
s/.\{148\}/&'"$ac_delim"'/g
19078
t rset
19079
:rset
19080
s/^[     ]*#[    ]*define[       ][      ]*/ /
19081
t def
19082
d
19083
:def
19084
s/\\$//
19085
t bsnl
19086
s/["\\]/\\&/g
19087
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19088
D["\1"]=" \3"/p
19089
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19090
d
19091
:bsnl
19092
s/["\\]/\\&/g
19093
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19094
D["\1"]=" \3\\\\\\n"\\/p
19095
t cont
19096
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19097
t cont
19098
d
19099
:cont
19100
n
19101
s/.\{148\}/&'"$ac_delim"'/g
19102
t clear
19103
:clear
19104
s/\\$//
19105
t bsnlc
19106
s/["\\]/\\&/g; s/^/"/; s/$/"/p
19107
d
19108
:bsnlc
19109
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19110
b cont
19111
' 
19112
s/'"$ac_delim"'/"\\\
19113
"/g' >>$CONFIG_STATUS || ac_write_fail=1
19114
19115
 
19116
  for (key in D) D_is_set[key] = 1
19117
  FS = ""
19118
}
19119
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19120
  line = \$ 0
19121
  split(line, arg, " ")
19122
  if (arg[1] == "#") {
19123
    defundef = arg[2]
19124
    mac1 = arg[3]
19125
  } else {
19126
    defundef = substr(arg[1], 2)
19127
    mac1 = arg[2]
19128
  }
19129
  split(mac1, mac2, "(") #)
19130
  macro = mac2[1]
19131
  prefix = substr(line, 1, index(line, defundef) - 1)
19132
  if (D_is_set[macro]) {
19133
    # Preserve the white space surrounding the "#".
19134
    print prefix "define", macro P[macro] D[macro]
19135
    next
19136
  } else {
19137
    # Replace #undef with comments.  This is necessary, for example,
19138
    # in the case of _POSIX_SOURCE, which is predefined and required
19139
    # on some systems where configure will not decide to define it.
19140
    if (defundef == "undef") {
19141
      print "/*", prefix defundef, macro, "*/"
19142
      next
19143
    }
19144
  }
19145
}
19146
{ print }
19147
_ACAWK
19148
_ACEOF
19149
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19150
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19151
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19152
   { (exit 1); exit 1; }; }
19153
fi # test -n "$CONFIG_HEADERS"
19154
19155
 
19156
 
19157
shift
19158
for ac_tag
19159
do
19160 19 jeremybenn
  case $ac_tag in
19161
  :[FHLC]) ac_mode=$ac_tag; continue;;
19162
  esac
19163
  case $ac_mode$ac_tag in
19164
  :[FHL]*:*);;
19165
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19166 82 jeremybenn
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19167
   { (exit 1); exit 1; }; };;
19168 19 jeremybenn
  :[FH]-) ac_tag=-:-;;
19169
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19170
  esac
19171
  ac_save_IFS=$IFS
19172
  IFS=:
19173
  set x $ac_tag
19174
  IFS=$ac_save_IFS
19175
  shift
19176
  ac_file=$1
19177
  shift
19178
19179
 
19180
  :L) ac_source=$1;;
19181
  :[FH])
19182
    ac_file_inputs=
19183
    for ac_f
19184
    do
19185
      case $ac_f in
19186
      -) ac_f="$tmp/stdin";;
19187
      *) # Look for the file first in the build tree, then in the source tree
19188
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
19189
         # because $ac_f cannot contain `:'.
19190
         test -f "$ac_f" ||
19191
           case $ac_f in
19192
           [\\/$]*) false;;
19193
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19194
           esac ||
19195
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19196 82 jeremybenn
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19197
   { (exit 1); exit 1; }; };;
19198 19 jeremybenn
      esac
19199
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19200 82 jeremybenn
      ac_file_inputs="$ac_file_inputs '$ac_f'"
19201
    done
19202 19 jeremybenn
19203
 
19204
    # use $as_me), people would be surprised to read:
19205
    #    /* config.h.  Generated by config.status.  */
19206
    configure_input='Generated from '`
19207 82 jeremybenn
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19208
        `' by configure.'
19209
    if test x"$ac_file" != x-; then
19210 19 jeremybenn
      configure_input="$ac_file.  $configure_input"
19211
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19212 82 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
19213
    fi
19214 19 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
19215 82 jeremybenn
    case $configure_input in #(
19216
    *\&* | *\|* | *\\* )
19217
       ac_sed_conf_input=`$as_echo "$configure_input" |
19218
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19219
    *) ac_sed_conf_input=$configure_input;;
19220
    esac
19221
19222 19 jeremybenn
 
19223
    *:-:* | *:-) cat >"$tmp/stdin" \
19224 82 jeremybenn
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19225
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19226
   { (exit 1); exit 1; }; } ;;
19227
    esac
19228 19 jeremybenn
    ;;
19229
  esac
19230
19231
 
19232
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19233
         X"$ac_file" : 'X\(//\)[^/]' \| \
19234
         X"$ac_file" : 'X\(//\)$' \| \
19235
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19236
$as_echo X"$ac_file" |
19237 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19238 19 jeremybenn
            s//\1/
19239
            q
19240
          }
19241
          /^X\(\/\/\)[^/].*/{
19242
            s//\1/
19243
            q
19244
          }
19245
          /^X\(\/\/\)$/{
19246
            s//\1/
19247
            q
19248
          }
19249
          /^X\(\/\).*/{
19250
            s//\1/
19251
            q
19252
          }
19253
          s/.*/./; q'`
19254
  { as_dir="$ac_dir"
19255
  case $as_dir in #(
19256
  -*) as_dir=./$as_dir;;
19257
  esac
19258
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19259
    as_dirs=
19260
    while :; do
19261
      case $as_dir in #(
19262
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19263 82 jeremybenn
      *) as_qdir=$as_dir;;
19264 19 jeremybenn
      esac
19265
      as_dirs="'$as_qdir' $as_dirs"
19266
      as_dir=`$as_dirname -- "$as_dir" ||
19267
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19268
         X"$as_dir" : 'X\(//\)[^/]' \| \
19269
         X"$as_dir" : 'X\(//\)$' \| \
19270
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19271
$as_echo X"$as_dir" |
19272 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19273 19 jeremybenn
            s//\1/
19274
            q
19275
          }
19276
          /^X\(\/\/\)[^/].*/{
19277
            s//\1/
19278
            q
19279
          }
19280
          /^X\(\/\/\)$/{
19281
            s//\1/
19282
            q
19283
          }
19284
          /^X\(\/\).*/{
19285
            s//\1/
19286
            q
19287
          }
19288
          s/.*/./; q'`
19289
      test -d "$as_dir" && break
19290
    done
19291
    test -z "$as_dirs" || eval "mkdir $as_dirs"
19292
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19293 82 jeremybenn
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19294
   { (exit 1); exit 1; }; }; }
19295 19 jeremybenn
  ac_builddir=.
19296
19297
 
19298
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19299
*)
19300
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19301 82 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
19302 19 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19303 82 jeremybenn
  case $ac_top_builddir_sub in
19304 19 jeremybenn
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19305
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19306
  esac ;;
19307
esac
19308
ac_abs_top_builddir=$ac_pwd
19309
ac_abs_builddir=$ac_pwd$ac_dir_suffix
19310
# for backward compatibility:
19311
ac_top_builddir=$ac_top_build_prefix
19312
19313
 
19314
  .)  # We are building in place.
19315
    ac_srcdir=.
19316
    ac_top_srcdir=$ac_top_builddir_sub
19317
    ac_abs_top_srcdir=$ac_pwd ;;
19318
  [\\/]* | ?:[\\/]* )  # Absolute name.
19319
    ac_srcdir=$srcdir$ac_dir_suffix;
19320
    ac_top_srcdir=$srcdir
19321
    ac_abs_top_srcdir=$srcdir ;;
19322
  *) # Relative name.
19323
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19324
    ac_top_srcdir=$ac_top_build_prefix$srcdir
19325
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19326
esac
19327
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19328
19329
 
19330
 
19331
  :F)
19332
  #
19333
  # CONFIG_FILE
19334
  #
19335
19336
 
19337
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19338
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19339
  esac
19340
  ac_MKDIR_P=$MKDIR_P
19341
  case $MKDIR_P in
19342
  [\\/$]* | ?:[\\/]* ) ;;
19343
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19344
  esac
19345
_ACEOF
19346
19347
 
19348 82 jeremybenn
# If the template does not know about datarootdir, expand it.
19349 19 jeremybenn
# FIXME: This hack should be removed a few years after 2.60.
19350
ac_datarootdir_hack=; ac_datarootdir_seen=
19351
19352
 
19353 82 jeremybenn
/datarootdir/ {
19354
  p
19355 19 jeremybenn
  q
19356
}
19357
/@datadir@/p
19358
/@docdir@/p
19359
/@infodir@/p
19360
/@localedir@/p
19361
/@mandir@/p
19362
'
19363 82 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19364
*datarootdir*) ac_datarootdir_seen=yes;;
19365 19 jeremybenn
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19366
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19367 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19368
_ACEOF
19369 19 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19370 82 jeremybenn
  ac_datarootdir_hack='
19371 19 jeremybenn
  s&@datadir@&$datadir&g
19372
  s&@docdir@&$docdir&g
19373
  s&@infodir@&$infodir&g
19374
  s&@localedir@&$localedir&g
19375
  s&@mandir@&$mandir&g
19376
    s&\\\${datarootdir}&$datarootdir&g' ;;
19377
esac
19378
_ACEOF
19379
19380
 
19381
# Shell code in configure.ac might set extrasub.
19382
# FIXME: do we really want to maintain this feature?
19383
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19384 82 jeremybenn
ac_sed_extra="$ac_vpsub
19385
$extrasub
19386 19 jeremybenn
_ACEOF
19387
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19388 82 jeremybenn
:t
19389 19 jeremybenn
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19390
s|@configure_input@|$ac_sed_conf_input|;t t
19391 82 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
19392 19 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
19393 82 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
19394 19 jeremybenn
s&@abs_srcdir@&$ac_abs_srcdir&;t t
19395
s&@top_srcdir@&$ac_top_srcdir&;t t
19396
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19397
s&@builddir@&$ac_builddir&;t t
19398
s&@abs_builddir@&$ac_abs_builddir&;t t
19399
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19400
s&@INSTALL@&$ac_INSTALL&;t t
19401
s&@MKDIR_P@&$ac_MKDIR_P&;t t
19402
$ac_datarootdir_hack
19403
"
19404 82 jeremybenn
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19405
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19406
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19407
   { (exit 1); exit 1; }; }
19408
19409 19 jeremybenn
 
19410
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19411
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19412
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19413 82 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
19414 19 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19415 82 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
19416 19 jeremybenn
19417
 
19418
  case $ac_file in
19419
  -) cat "$tmp/out" && rm -f "$tmp/out";;
19420 82 jeremybenn
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19421
  esac \
19422
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19423
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19424
   { (exit 1); exit 1; }; }
19425
 ;;
19426 19 jeremybenn
  :H)
19427
  #
19428
  # CONFIG_HEADER
19429
  #
19430
  if test x"$ac_file" != x-; then
19431
    {
19432 82 jeremybenn
      $as_echo "/* $configure_input  */" \
19433
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19434
    } >"$tmp/config.h" \
19435
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19436
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19437
   { (exit 1); exit 1; }; }
19438
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19439
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19440
$as_echo "$as_me: $ac_file is unchanged" >&6;}
19441
    else
19442 19 jeremybenn
      rm -f "$ac_file"
19443 82 jeremybenn
      mv "$tmp/config.h" "$ac_file" \
19444
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19445
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19446
   { (exit 1); exit 1; }; }
19447
    fi
19448 19 jeremybenn
  else
19449
    $as_echo "/* $configure_input  */" \
19450 82 jeremybenn
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19451
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19452
$as_echo "$as_me: error: could not create -" >&2;}
19453
   { (exit 1); exit 1; }; }
19454
  fi
19455 19 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
19456 82 jeremybenn
_am_arg="$ac_file"
19457
_am_stamp_count=1
19458 19 jeremybenn
for _am_header in $config_headers :; do
19459
  case $_am_header in
19460
    $_am_arg | $_am_arg:* )
19461
      break ;;
19462
    * )
19463
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19464
  esac
19465
done
19466
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19467
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19468
         X"$_am_arg" : 'X\(//\)[^/]' \| \
19469
         X"$_am_arg" : 'X\(//\)$' \| \
19470
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19471
$as_echo X"$_am_arg" |
19472 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19473 19 jeremybenn
            s//\1/
19474
            q
19475
          }
19476
          /^X\(\/\/\)[^/].*/{
19477
            s//\1/
19478
            q
19479
          }
19480
          /^X\(\/\/\)$/{
19481
            s//\1/
19482
            q
19483
          }
19484
          /^X\(\/\).*/{
19485
            s//\1/
19486
            q
19487
          }
19488
          s/.*/./; q'`/stamp-h$_am_stamp_count
19489
 ;;
19490
19491
 
19492 82 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
19493
 ;;
19494 19 jeremybenn
  esac
19495
19496
 
19497
 
19498
    "libtool":C)
19499 82 jeremybenn
19500
 
19501
    # commands through without removal of \ escapes.
19502
    if test -n "${ZSH_VERSION+set}" ; then
19503
      setopt NO_GLOB_SUBST
19504
    fi
19505
19506
 
19507
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19508
    $RM "$cfgfile"
19509
19510
 
19511
#! $SHELL
19512
19513
 
19514
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19515
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19516
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19517
#
19518
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19519
#                 2006, 2007, 2008 Free Software Foundation, Inc.
19520
#   Written by Gordon Matzigkeit, 1996
19521
#
19522
#   This file is part of GNU Libtool.
19523
#
19524
# GNU Libtool is free software; you can redistribute it and/or
19525
# modify it under the terms of the GNU General Public License as
19526
# published by the Free Software Foundation; either version 2 of
19527
# the License, or (at your option) any later version.
19528
#
19529
# As a special exception to the GNU General Public License,
19530
# if you distribute this file as part of a program or library that
19531
# is built using GNU Libtool, you may include this file under the
19532
# same distribution terms that you use for the rest of that program.
19533
#
19534
# GNU Libtool is distributed in the hope that it will be useful,
19535
# but WITHOUT ANY WARRANTY; without even the implied warranty of
19536
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19537
# GNU General Public License for more details.
19538
#
19539
# You should have received a copy of the GNU General Public License
19540
# along with GNU Libtool; see the file COPYING.  If not, a copy
19541
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19542
# obtained by writing to the Free Software Foundation, Inc.,
19543
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19544
19545
 
19546
 
19547
available_tags=""
19548
19549
 
19550
19551
 
19552
macro_version=$macro_version
19553
macro_revision=$macro_revision
19554
19555
 
19556
build_libtool_libs=$enable_shared
19557
19558
 
19559
build_old_libs=$enable_static
19560
19561
 
19562
pic_mode=$pic_mode
19563
19564
 
19565
fast_install=$enable_fast_install
19566
19567
 
19568
host_alias=$host_alias
19569
host=$host
19570
host_os=$host_os
19571
19572
 
19573
build_alias=$build_alias
19574
build=$build
19575
build_os=$build_os
19576
19577
 
19578
SED=$lt_SED
19579
19580
 
19581
Xsed="\$SED -e 1s/^X//"
19582
19583
 
19584
GREP=$lt_GREP
19585
19586
 
19587
EGREP=$lt_EGREP
19588
19589
 
19590
FGREP=$lt_FGREP
19591
19592
 
19593
NM=$lt_NM
19594
19595
 
19596
LN_S=$lt_LN_S
19597
19598
 
19599
max_cmd_len=$max_cmd_len
19600
19601
 
19602
objext=$ac_objext
19603
19604
 
19605
exeext=$exeext
19606
19607
 
19608
lt_unset=$lt_unset
19609
19610
 
19611
SP2NL=$lt_lt_SP2NL
19612
19613
 
19614
NL2SP=$lt_lt_NL2SP
19615
19616
 
19617
reload_flag=$lt_reload_flag
19618
reload_cmds=$lt_reload_cmds
19619
19620
 
19621
OBJDUMP=$lt_OBJDUMP
19622
19623
 
19624
deplibs_check_method=$lt_deplibs_check_method
19625
19626
 
19627
file_magic_cmd=$lt_file_magic_cmd
19628
19629
 
19630
AR=$lt_AR
19631
AR_FLAGS=$lt_AR_FLAGS
19632
19633
 
19634
STRIP=$lt_STRIP
19635
19636
 
19637
RANLIB=$lt_RANLIB
19638
old_postinstall_cmds=$lt_old_postinstall_cmds
19639
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19640
19641
 
19642
LTCC=$lt_CC
19643
19644
 
19645
LTCFLAGS=$lt_CFLAGS
19646
19647
 
19648
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19649
19650
 
19651
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19652
19653
 
19654
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19655
19656
 
19657
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19658
19659
 
19660
objdir=$objdir
19661
19662
 
19663
SHELL=$lt_SHELL
19664
19665
 
19666
ECHO=$lt_ECHO
19667
19668
 
19669
MAGIC_CMD=$MAGIC_CMD
19670
19671
 
19672
need_locks=$lt_need_locks
19673
19674
 
19675
DSYMUTIL=$lt_DSYMUTIL
19676
19677
 
19678
NMEDIT=$lt_NMEDIT
19679
19680
 
19681
LIPO=$lt_LIPO
19682
19683
 
19684
OTOOL=$lt_OTOOL
19685
19686
 
19687
OTOOL64=$lt_OTOOL64
19688
19689
 
19690
libext=$libext
19691
19692
 
19693
shrext_cmds=$lt_shrext_cmds
19694
19695
 
19696
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19697
19698
 
19699
# restored at link time.
19700
variables_saved_for_relink=$lt_variables_saved_for_relink
19701
19702
 
19703
need_lib_prefix=$need_lib_prefix
19704
19705
 
19706
need_version=$need_version
19707
19708
 
19709
version_type=$version_type
19710
19711
 
19712
runpath_var=$runpath_var
19713
19714
 
19715
shlibpath_var=$shlibpath_var
19716
19717
 
19718
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19719
19720
 
19721
libname_spec=$lt_libname_spec
19722
19723
 
19724
# The last name is the one that the linker finds with -lNAME
19725
library_names_spec=$lt_library_names_spec
19726
19727
 
19728
soname_spec=$lt_soname_spec
19729
19730
 
19731
postinstall_cmds=$lt_postinstall_cmds
19732
19733
 
19734
postuninstall_cmds=$lt_postuninstall_cmds
19735
19736
 
19737
finish_cmds=$lt_finish_cmds
19738
19739
 
19740
# not shown.
19741
finish_eval=$lt_finish_eval
19742
19743
 
19744
hardcode_into_libs=$hardcode_into_libs
19745
19746
 
19747
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19748
19749
 
19750
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19751
19752
 
19753
dlopen_support=$enable_dlopen
19754
19755
 
19756
dlopen_self=$enable_dlopen_self
19757
19758
 
19759
dlopen_self_static=$enable_dlopen_self_static
19760
19761
 
19762
old_striplib=$lt_old_striplib
19763
striplib=$lt_striplib
19764
19765
 
19766
 
19767
LD=$lt_LD
19768
19769
 
19770
old_archive_cmds=$lt_old_archive_cmds
19771
19772
 
19773
CC=$lt_compiler
19774
19775
 
19776
with_gcc=$GCC
19777
19778
 
19779
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19780
19781
 
19782
wl=$lt_lt_prog_compiler_wl
19783
19784
 
19785
pic_flag=$lt_lt_prog_compiler_pic
19786
19787
 
19788
link_static_flag=$lt_lt_prog_compiler_static
19789
19790
 
19791
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19792
19793
 
19794
build_libtool_need_lc=$archive_cmds_need_lc
19795
19796
 
19797
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19798
19799
 
19800
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19801
19802
 
19803
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19804
19805
 
19806
compiler_needs_object=$lt_compiler_needs_object
19807
19808
 
19809
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19810
19811
 
19812
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19813
19814
 
19815
archive_cmds=$lt_archive_cmds
19816
archive_expsym_cmds=$lt_archive_expsym_cmds
19817
19818
 
19819
# a shared archive.
19820
module_cmds=$lt_module_cmds
19821
module_expsym_cmds=$lt_module_expsym_cmds
19822
19823
 
19824
with_gnu_ld=$lt_with_gnu_ld
19825
19826
 
19827
allow_undefined_flag=$lt_allow_undefined_flag
19828
19829
 
19830
no_undefined_flag=$lt_no_undefined_flag
19831
19832
 
19833
# This must work even if \$libdir does not exist
19834
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19835
19836
 
19837
# during linking.  This must work even if \$libdir does not exist.
19838
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19839
19840
 
19841
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19842
19843
 
19844
# DIR into the resulting binary.
19845
hardcode_direct=$hardcode_direct
19846
19847
 
19848
# DIR into the resulting binary and the resulting library dependency is
19849
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19850
# library is relocated.
19851
hardcode_direct_absolute=$hardcode_direct_absolute
19852
19853
 
19854
# into the resulting binary.
19855
hardcode_minus_L=$hardcode_minus_L
19856
19857
 
19858
# into the resulting binary.
19859
hardcode_shlibpath_var=$hardcode_shlibpath_var
19860
19861
 
19862
# into the library and all subsequent libraries and executables linked
19863
# against it.
19864
hardcode_automatic=$hardcode_automatic
19865
19866
 
19867
# to runtime path list.
19868
inherit_rpath=$inherit_rpath
19869
19870
 
19871
link_all_deplibs=$link_all_deplibs
19872
19873
 
19874
fix_srcfile_path=$lt_fix_srcfile_path
19875
19876
 
19877
always_export_symbols=$always_export_symbols
19878
19879
 
19880
export_symbols_cmds=$lt_export_symbols_cmds
19881
19882
 
19883
exclude_expsyms=$lt_exclude_expsyms
19884
19885
 
19886
include_expsyms=$lt_include_expsyms
19887
19888
 
19889
prelink_cmds=$lt_prelink_cmds
19890
19891
 
19892
file_list_spec=$lt_file_list_spec
19893
19894
 
19895
hardcode_action=$hardcode_action
19896
19897
 
19898
19899
 
19900
19901
 
19902
  aix3*)
19903
    cat <<\_LT_EOF >> "$cfgfile"
19904
# AIX sometimes has problems with the GCC collect2 program.  For some
19905
# reason, if we set the COLLECT_NAMES environment variable, the problems
19906
# vanish in a puff of smoke.
19907
if test "X${COLLECT_NAMES+set}" != Xset; then
19908
  COLLECT_NAMES=
19909
  export COLLECT_NAMES
19910
fi
19911
_LT_EOF
19912
    ;;
19913
  esac
19914
19915
 
19916
 
19917
19918
 
19919
 
19920
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19921
  # text mode, it properly converts lines to CR/LF.  This bash problem
19922
  # is reportedly fixed, but why not run on old versions too?
19923
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19924
    || (rm -f "$cfgfile"; exit 1)
19925
19926
 
19927
  yes)
19928
    cat << \_LT_EOF >> "$cfgfile"
19929
19930
 
19931
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19932
# otherwise set result to NONDIR_REPLACEMENT.
19933
func_dirname ()
19934
{
19935
  case ${1} in
19936
    */*) func_dirname_result="${1%/*}${2}" ;;
19937
    *  ) func_dirname_result="${3}" ;;
19938
  esac
19939
}
19940
19941
 
19942
func_basename ()
19943
{
19944
  func_basename_result="${1##*/}"
19945
}
19946
19947
 
19948
# perform func_basename and func_dirname in a single function
19949
# call:
19950
#   dirname:  Compute the dirname of FILE.  If nonempty,
19951
#             add APPEND to the result, otherwise set result
19952
#             to NONDIR_REPLACEMENT.
19953
#             value returned in "$func_dirname_result"
19954
#   basename: Compute filename of FILE.
19955
#             value retuned in "$func_basename_result"
19956
# Implementation must be kept synchronized with func_dirname
19957
# and func_basename. For efficiency, we do not delegate to
19958
# those functions but instead duplicate the functionality here.
19959
func_dirname_and_basename ()
19960
{
19961
  case ${1} in
19962
    */*) func_dirname_result="${1%/*}${2}" ;;
19963
    *  ) func_dirname_result="${3}" ;;
19964
  esac
19965
  func_basename_result="${1##*/}"
19966
}
19967
19968
 
19969
# strip PREFIX and SUFFIX off of NAME.
19970
# PREFIX and SUFFIX must not contain globbing or regex special
19971
# characters, hashes, percent signs, but SUFFIX may contain a leading
19972
# dot (in which case that matches only a dot).
19973
func_stripname ()
19974
{
19975
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19976
  # positional parameters, so assign one to ordinary parameter first.
19977
  func_stripname_result=${3}
19978
  func_stripname_result=${func_stripname_result#"${1}"}
19979
  func_stripname_result=${func_stripname_result%"${2}"}
19980
}
19981
19982
 
19983
func_opt_split ()
19984
{
19985
  func_opt_split_opt=${1%%=*}
19986
  func_opt_split_arg=${1#*=}
19987
}
19988
19989
 
19990
func_lo2o ()
19991
{
19992
  case ${1} in
19993
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19994
    *)    func_lo2o_result=${1} ;;
19995
  esac
19996
}
19997
19998
 
19999
func_xform ()
20000
{
20001
  func_xform_result=${1%.*}.lo
20002
}
20003
20004
 
20005
func_arith ()
20006
{
20007
  func_arith_result=$(( $* ))
20008
}
20009
20010
 
20011
# STRING may not start with a hyphen.
20012
func_len ()
20013
{
20014
  func_len_result=${#1}
20015
}
20016
20017
 
20018
    ;;
20019
  *) # Bourne compatible functions.
20020
    cat << \_LT_EOF >> "$cfgfile"
20021
20022
 
20023
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20024
# otherwise set result to NONDIR_REPLACEMENT.
20025
func_dirname ()
20026
{
20027
  # Extract subdirectory from the argument.
20028
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20029
  if test "X$func_dirname_result" = "X${1}"; then
20030
    func_dirname_result="${3}"
20031
  else
20032
    func_dirname_result="$func_dirname_result${2}"
20033
  fi
20034
}
20035
20036
 
20037
func_basename ()
20038
{
20039
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20040
}
20041
20042
 
20043
 
20044
# strip PREFIX and SUFFIX off of NAME.
20045
# PREFIX and SUFFIX must not contain globbing or regex special
20046
# characters, hashes, percent signs, but SUFFIX may contain a leading
20047
# dot (in which case that matches only a dot).
20048
# func_strip_suffix prefix name
20049
func_stripname ()
20050
{
20051
  case ${2} in
20052
    .*) func_stripname_result=`$ECHO "X${3}" \
20053
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20054
    *)  func_stripname_result=`$ECHO "X${3}" \
20055
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20056
  esac
20057
}
20058
20059
 
20060
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20061
my_sed_long_arg='1s/^-[^=]*=//'
20062
20063
 
20064
func_opt_split ()
20065
{
20066
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20067
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20068
}
20069
20070
 
20071
func_lo2o ()
20072
{
20073
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20074
}
20075
20076
 
20077
func_xform ()
20078
{
20079
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20080
}
20081
20082
 
20083
func_arith ()
20084
{
20085
  func_arith_result=`expr "$@"`
20086
}
20087
20088
 
20089
# STRING may not start with a hyphen.
20090
func_len ()
20091
{
20092
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20093
}
20094
20095
 
20096
esac
20097
20098
 
20099
  yes)
20100
    cat << \_LT_EOF >> "$cfgfile"
20101
20102
 
20103
# Append VALUE to the end of shell variable VAR.
20104
func_append ()
20105
{
20106
  eval "$1+=\$2"
20107
}
20108
_LT_EOF
20109
    ;;
20110
  *)
20111
    cat << \_LT_EOF >> "$cfgfile"
20112
20113
 
20114
# Append VALUE to the end of shell variable VAR.
20115
func_append ()
20116
{
20117
  eval "$1=\$$1\$2"
20118
}
20119
20120
 
20121
    ;;
20122
  esac
20123
20124
 
20125
 
20126
    || (rm -f "$cfgfile"; exit 1)
20127
20128
 
20129
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20130
  chmod +x "$ofile"
20131
20132
 
20133
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20134
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20135
  # are listed without --file.  Let's play safe and only enable the eval
20136
  # if we detect the quoting.
20137
  case $CONFIG_FILES in
20138
  *\'*) eval set x "$CONFIG_FILES" ;;
20139
  *)   set x $CONFIG_FILES ;;
20140
  esac
20141
  shift
20142
  for mf
20143
  do
20144
    # Strip MF so we end up with the name of the file.
20145
    mf=`echo "$mf" | sed -e 's/:.*$//'`
20146
    # Check whether this is an Automake generated Makefile or not.
20147
    # We used to match only the files named `Makefile.in', but
20148
    # some people rename them; so instead we look at the file content.
20149
    # Grep'ing the first line is not enough: some people post-process
20150
    # each Makefile.in and add a new line on top of each file to say so.
20151
    # Grep'ing the whole file is not good either: AIX grep has a line
20152
    # limit of 2048, but all sed's we know have understand at least 4000.
20153
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20154
      dirpart=`$as_dirname -- "$mf" ||
20155
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20156 19 jeremybenn
         X"$mf" : 'X\(//\)[^/]' \| \
20157
         X"$mf" : 'X\(//\)$' \| \
20158
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20159
$as_echo X"$mf" |
20160 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20161 19 jeremybenn
            s//\1/
20162
            q
20163
          }
20164
          /^X\(\/\/\)[^/].*/{
20165
            s//\1/
20166
            q
20167
          }
20168
          /^X\(\/\/\)$/{
20169
            s//\1/
20170
            q
20171
          }
20172
          /^X\(\/\).*/{
20173
            s//\1/
20174
            q
20175
          }
20176
          s/.*/./; q'`
20177
    else
20178 82 jeremybenn
      continue
20179
    fi
20180
    # Extract the definition of DEPDIR, am__include, and am__quote
20181
    # from the Makefile without running `make'.
20182
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20183
    test -z "$DEPDIR" && continue
20184
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20185
    test -z "am__include" && continue
20186
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20187
    # When using ansi2knr, U may be empty or an underscore; expand it
20188
    U=`sed -n 's/^U = //p' < "$mf"`
20189
    # Find all dependency output files, they are included files with
20190
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20191
    # simplest approach to changing $(DEPDIR) to its actual value in the
20192
    # expansion.
20193
    for file in `sed -n "
20194
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20195
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20196
      # Make sure the directory exists.
20197
      test -f "$dirpart/$file" && continue
20198
      fdir=`$as_dirname -- "$file" ||
20199
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20200 19 jeremybenn
         X"$file" : 'X\(//\)[^/]' \| \
20201
         X"$file" : 'X\(//\)$' \| \
20202
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20203
$as_echo X"$file" |
20204 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20205 19 jeremybenn
            s//\1/
20206
            q
20207
          }
20208
          /^X\(\/\/\)[^/].*/{
20209
            s//\1/
20210
            q
20211
          }
20212
          /^X\(\/\/\)$/{
20213
            s//\1/
20214
            q
20215
          }
20216
          /^X\(\/\).*/{
20217
            s//\1/
20218
            q
20219
          }
20220
          s/.*/./; q'`
20221
      { as_dir=$dirpart/$fdir
20222 82 jeremybenn
  case $as_dir in #(
20223 19 jeremybenn
  -*) as_dir=./$as_dir;;
20224
  esac
20225
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20226
    as_dirs=
20227
    while :; do
20228
      case $as_dir in #(
20229
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20230 82 jeremybenn
      *) as_qdir=$as_dir;;
20231 19 jeremybenn
      esac
20232
      as_dirs="'$as_qdir' $as_dirs"
20233
      as_dir=`$as_dirname -- "$as_dir" ||
20234
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20235
         X"$as_dir" : 'X\(//\)[^/]' \| \
20236
         X"$as_dir" : 'X\(//\)$' \| \
20237
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20238
$as_echo X"$as_dir" |
20239 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20240 19 jeremybenn
            s//\1/
20241
            q
20242
          }
20243
          /^X\(\/\/\)[^/].*/{
20244
            s//\1/
20245
            q
20246
          }
20247
          /^X\(\/\/\)$/{
20248
            s//\1/
20249
            q
20250
          }
20251
          /^X\(\/\).*/{
20252
            s//\1/
20253
            q
20254
          }
20255
          s/.*/./; q'`
20256
      test -d "$as_dir" && break
20257
    done
20258
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20259
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20260 82 jeremybenn
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20261
   { (exit 1); exit 1; }; }; }
20262 19 jeremybenn
      # echo "creating $dirpart/$file"
20263 82 jeremybenn
      echo '# dummy' > "$dirpart/$file"
20264
    done
20265
  done
20266 19 jeremybenn
}
20267 82 jeremybenn
 ;;
20268 19 jeremybenn
20269
 
20270
done # for ac_tag
20271
20272
 
20273
 
20274
_ACEOF
20275
chmod +x $CONFIG_STATUS
20276
ac_clean_files=$ac_clean_files_save
20277
20278
 
20279 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20280
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20281
   { (exit 1); exit 1; }; }
20282
20283 19 jeremybenn
 
20284 82 jeremybenn
 
20285 19 jeremybenn
# config.status does its own redirection, appending to config.log.
20286
# Unfortunately, on DOS this fails, as config.log is still kept open
20287
# by configure, so config.status won't be able to write to it; its
20288
# output is simply discarded.  So we exec the FD to /dev/null,
20289
# effectively closing config.log, so it can be properly (re)opened and
20290
# appended to by config.status.  When coming back to configure, we
20291
# need to make the FD available again.
20292
if test "$no_create" != yes; then
20293
  ac_cs_success=:
20294
  ac_config_status_args=
20295
  test "$silent" = yes &&
20296
    ac_config_status_args="$ac_config_status_args --quiet"
20297
  exec 5>/dev/null
20298
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20299
  exec 5>>config.log
20300
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20301
  # would make configure fail if this is the last instruction.
20302
  $ac_cs_success || { (exit 1); exit 1; }
20303
fi
20304
20305
 
20306 82 jeremybenn
# CONFIG_SUBDIRS section.
20307
#
20308
if test "$no_recursion" != yes; then
20309
20310
 
20311
  # so they do not pile up.
20312
  ac_sub_configure_args=
20313
  ac_prev=
20314
  eval "set x $ac_configure_args"
20315
  shift
20316
  for ac_arg
20317
  do
20318
    if test -n "$ac_prev"; then
20319
      ac_prev=
20320
      continue
20321
    fi
20322
    case $ac_arg in
20323
    -cache-file | --cache-file | --cache-fil | --cache-fi \
20324
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20325
      ac_prev=cache_file ;;
20326
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20327
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20328
    | --c=*)
20329
      ;;
20330
    --config-cache | -C)
20331
      ;;
20332
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20333
      ac_prev=srcdir ;;
20334
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20335
      ;;
20336
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20337
      ac_prev=prefix ;;
20338
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20339
      ;;
20340
    --disable-option-checking)
20341
      ;;
20342
    *)
20343
      case $ac_arg in
20344
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20345
      esac
20346
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20347
    esac
20348
  done
20349
20350
 
20351
  # in subdir configurations.
20352
  ac_arg="--prefix=$prefix"
20353
  case $ac_arg in
20354
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20355
  esac
20356
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20357
20358
 
20359
  if test "$silent" = yes; then
20360
    ac_sub_configure_args="--silent $ac_sub_configure_args"
20361
  fi
20362
20363
 
20364
  # different subdirs can have different --enable and --with options.
20365
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
20366
20367
 
20368
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20369
20370
 
20371
    # parts of a large source tree are present.
20372
    test -d "$srcdir/$ac_dir" || continue
20373
20374
 
20375
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
20376
    $as_echo "$ac_msg" >&6
20377
    { as_dir="$ac_dir"
20378
  case $as_dir in #(
20379
  -*) as_dir=./$as_dir;;
20380
  esac
20381
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20382
    as_dirs=
20383
    while :; do
20384
      case $as_dir in #(
20385
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20386
      *) as_qdir=$as_dir;;
20387
      esac
20388
      as_dirs="'$as_qdir' $as_dirs"
20389
      as_dir=`$as_dirname -- "$as_dir" ||
20390
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20391
         X"$as_dir" : 'X\(//\)[^/]' \| \
20392
         X"$as_dir" : 'X\(//\)$' \| \
20393
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20394
$as_echo X"$as_dir" |
20395
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20396
            s//\1/
20397
            q
20398
          }
20399
          /^X\(\/\/\)[^/].*/{
20400
            s//\1/
20401
            q
20402
          }
20403
          /^X\(\/\/\)$/{
20404
            s//\1/
20405
            q
20406
          }
20407
          /^X\(\/\).*/{
20408
            s//\1/
20409
            q
20410
          }
20411
          s/.*/./; q'`
20412
      test -d "$as_dir" && break
20413
    done
20414
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20415
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20416
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20417
   { (exit 1); exit 1; }; }; }
20418
    ac_builddir=.
20419
20420
 
20421
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20422
*)
20423
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20424
  # A ".." for each directory in $ac_dir_suffix.
20425
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20426
  case $ac_top_builddir_sub in
20427
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20428
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20429
  esac ;;
20430
esac
20431
ac_abs_top_builddir=$ac_pwd
20432
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20433
# for backward compatibility:
20434
ac_top_builddir=$ac_top_build_prefix
20435
20436
 
20437
  .)  # We are building in place.
20438
    ac_srcdir=.
20439
    ac_top_srcdir=$ac_top_builddir_sub
20440
    ac_abs_top_srcdir=$ac_pwd ;;
20441
  [\\/]* | ?:[\\/]* )  # Absolute name.
20442
    ac_srcdir=$srcdir$ac_dir_suffix;
20443
    ac_top_srcdir=$srcdir
20444
    ac_abs_top_srcdir=$srcdir ;;
20445
  *) # Relative name.
20446
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20447
    ac_top_srcdir=$ac_top_build_prefix$srcdir
20448
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20449
esac
20450
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20451
20452
 
20453
 
20454
20455
 
20456
    if test -f "$ac_srcdir/configure.gnu"; then
20457
      ac_sub_configure=$ac_srcdir/configure.gnu
20458
    elif test -f "$ac_srcdir/configure"; then
20459
      ac_sub_configure=$ac_srcdir/configure
20460
    elif test -f "$ac_srcdir/configure.in"; then
20461
      # This should be Cygnus configure.
20462
      ac_sub_configure=$ac_aux_dir/configure
20463
    else
20464
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20465
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20466
      ac_sub_configure=
20467
    fi
20468
20469
 
20470
    if test -n "$ac_sub_configure"; then
20471
      # Make the cache file name correct relative to the subdirectory.
20472
      case $cache_file in
20473
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20474
      *) # Relative name.
20475
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20476
      esac
20477
20478
 
20479
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20480
      # The eval makes quoting arguments work.
20481
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20482
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20483
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20484
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20485
   { (exit 1); exit 1; }; }
20486
    fi
20487
20488
 
20489
  done
20490
fi
20491
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20492
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20493
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20494
fi
20495
20496
 

powered by: WebSVN 2.1.0

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