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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 93 jeremybenn
# From configure.ac Id: configure.ac 961 2010-04-25 15:30:12Z jeremy  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 93 jeremybenn
# Generated by GNU Autoconf 2.63 for or1ksim 2010-04-28.
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 93 jeremybenn
PACKAGE_VERSION='2010-04-28'
770
PACKAGE_STRING='or1ksim 2010-04-28'
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 93 jeremybenn
\`configure' configures or1ksim 2010-04-28 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 93 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 2010-04-28:";;
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 93 jeremybenn
or1ksim configure 2010-04-28
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 93 jeremybenn
It was created by or1ksim $as_me 2010-04-28, 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 93 jeremybenn
macro_version='2.2.6'
4082
macro_revision='1.3012'
4083 91 jeremybenn
 
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 93 jeremybenn
netbsd* | netbsdelf*-gnu)
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 93 jeremybenn
  linux* | k*bsd*-gnu)
7757
    link_all_deplibs=no
7758
    ;;
7759 19 jeremybenn
  esac
7760
 
7761
  ld_shlibs=yes
7762
  if test "$with_gnu_ld" = yes; then
7763
    # If archive_cmds runs LD, not CC, wlarc should be empty
7764
    wlarc='${wl}'
7765
 
7766
    # Set some defaults for GNU ld with shared library support. These
7767
    # are reset later if shared libraries are not supported. Putting them
7768
    # here allows them to be overridden if necessary.
7769
    runpath_var=LD_RUN_PATH
7770 82 jeremybenn
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7771 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
7772
    # ancient GNU ld didn't support --whole-archive et. al.
7773 82 jeremybenn
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7774
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7775
    else
7776
      whole_archive_flag_spec=
7777 19 jeremybenn
    fi
7778
    supports_anon_versioning=no
7779 82 jeremybenn
    case `$LD -v 2>&1` in
7780 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7781
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7782
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7783
      *\ 2.11.*) ;; # other 2.11 versions
7784
      *) supports_anon_versioning=yes ;;
7785
    esac
7786
 
7787
    # See if GNU ld supports shared libraries.
7788
    case $host_os in
7789 82 jeremybenn
    aix[3-9]*)
7790 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
7791
      if test "$host_cpu" != ia64; then
7792
        ld_shlibs=no
7793 82 jeremybenn
        cat <<_LT_EOF 1>&2
7794 19 jeremybenn
 
7795
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7796
*** to be unable to reliably create shared libraries on AIX.
7797
*** Therefore, libtool is disabling shared libraries support.  If you
7798
*** really care for shared libraries, you may want to modify your PATH
7799
*** so that a non-GNU linker is found, and then restart.
7800
 
7801 82 jeremybenn
_LT_EOF
7802 19 jeremybenn
      fi
7803
      ;;
7804
 
7805
    amigaos*)
7806 82 jeremybenn
      case $host_cpu in
7807
      powerpc)
7808
            # see comment about AmigaOS4 .so support
7809
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7810
            archive_expsym_cmds=''
7811
        ;;
7812
      m68k)
7813
            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)'
7814
            hardcode_libdir_flag_spec='-L$libdir'
7815
            hardcode_minus_L=yes
7816
        ;;
7817
      esac
7818 19 jeremybenn
      ;;
7819
 
7820
    beos*)
7821 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7822 19 jeremybenn
        allow_undefined_flag=unsupported
7823
        # Joseph Beckenbach  says some releases of gcc
7824
        # support --undefined.  This deserves some investigation.  FIXME
7825
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7826
      else
7827
        ld_shlibs=no
7828
      fi
7829
      ;;
7830
 
7831 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
7832
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7833 19 jeremybenn
      # as there is no search path for DLLs.
7834
      hardcode_libdir_flag_spec='-L$libdir'
7835
      allow_undefined_flag=unsupported
7836
      always_export_symbols=no
7837
      enable_shared_with_static_runtimes=yes
7838 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'
7839 19 jeremybenn
 
7840 82 jeremybenn
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7841 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7842
        # If the export-symbols file already is a .def file (1st line
7843
        # is EXPORTS), use it as is; otherwise, prepend...
7844
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7845
          cp $export_symbols $output_objdir/$soname.def;
7846
        else
7847
          echo EXPORTS > $output_objdir/$soname.def;
7848
          cat $export_symbols >> $output_objdir/$soname.def;
7849
        fi~
7850
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7851
      else
7852
        ld_shlibs=no
7853
      fi
7854
      ;;
7855
 
7856
    interix[3-9]*)
7857
      hardcode_direct=no
7858
      hardcode_shlibpath_var=no
7859
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7860
      export_dynamic_flag_spec='${wl}-E'
7861
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7862
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7863
      # default) and relocated if they conflict, which is a slow very memory
7864
      # consuming and fragmenting process.  To avoid this, we pick a random,
7865
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7866
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7867
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7868
      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'
7869
      ;;
7870
 
7871 82 jeremybenn
    gnu* | linux* | tpf* | k*bsd*-gnu)
7872
      tmp_diet=no
7873
      if test "$host_os" = linux-dietlibc; then
7874
        case $cc_basename in
7875
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7876
        esac
7877
      fi
7878
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7879
         && test "$tmp_diet" = no
7880
      then
7881 19 jeremybenn
        tmp_addflag=
7882 82 jeremybenn
        tmp_sharedflag='-shared'
7883 19 jeremybenn
        case $cc_basename,$host_cpu in
7884 82 jeremybenn
        pgcc*)                          # Portland Group C compiler
7885
          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'
7886 19 jeremybenn
          tmp_addflag=' $pic_flag'
7887
          ;;
7888
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7889 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'
7890 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7891 82 jeremybenn
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7892 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
7893
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7894
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7895
        ifc* | ifort*)                  # Intel Fortran compiler
7896
          tmp_addflag=' -nofor_main' ;;
7897 82 jeremybenn
        lf95*)                          # Lahey Fortran 8.1
7898
          whole_archive_flag_spec=
7899
          tmp_sharedflag='--shared' ;;
7900
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7901
          tmp_sharedflag='-qmkshrobj'
7902
          tmp_addflag= ;;
7903 19 jeremybenn
        esac
7904
        case `$CC -V 2>&1 | sed 5q` in
7905
        *Sun\ C*)                       # Sun C 5.9
7906 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'
7907
          compiler_needs_object=yes
7908 19 jeremybenn
          tmp_sharedflag='-G' ;;
7909
        *Sun\ F*)                       # Sun Fortran 8.3
7910
          tmp_sharedflag='-G' ;;
7911
        esac
7912
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7913
 
7914 82 jeremybenn
        if test "x$supports_anon_versioning" = xyes; then
7915
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7916
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7917
            echo "local: *; };" >> $output_objdir/$libname.ver~
7918
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7919
        fi
7920
 
7921
        case $cc_basename in
7922
        xlf*)
7923
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7924
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7925
          hardcode_libdir_flag_spec=
7926
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7927
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7928
          if test "x$supports_anon_versioning" = xyes; then
7929
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7930
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7931
              echo "local: *; };" >> $output_objdir/$libname.ver~
7932
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7933
          fi
7934
          ;;
7935
        esac
7936 19 jeremybenn
      else
7937 82 jeremybenn
        ld_shlibs=no
7938 19 jeremybenn
      fi
7939
      ;;
7940
 
7941 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7942 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7943 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7944
        wlarc=
7945
      else
7946
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7947
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7948
      fi
7949
      ;;
7950
 
7951
    solaris*)
7952 82 jeremybenn
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7953 19 jeremybenn
        ld_shlibs=no
7954 82 jeremybenn
        cat <<_LT_EOF 1>&2
7955 19 jeremybenn
 
7956
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7957
*** create shared libraries on Solaris systems.  Therefore, libtool
7958
*** is disabling shared libraries support.  We urge you to upgrade GNU
7959
*** binutils to release 2.9.1 or newer.  Another option is to modify
7960
*** your PATH or compiler configuration so that the native linker is
7961
*** used, and then restart.
7962
 
7963 82 jeremybenn
_LT_EOF
7964
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7965 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7966
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7967
      else
7968
        ld_shlibs=no
7969
      fi
7970
      ;;
7971
 
7972
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7973
      case `$LD -v 2>&1` in
7974
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7975
        ld_shlibs=no
7976
        cat <<_LT_EOF 1>&2
7977
 
7978
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7979
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7980
*** is disabling shared libraries support.  We urge you to upgrade GNU
7981
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7982
*** your PATH or compiler configuration so that the native linker is
7983
*** used, and then restart.
7984
 
7985
_LT_EOF
7986
        ;;
7987
        *)
7988 82 jeremybenn
          # For security reasons, it is highly recommended that you always
7989
          # use absolute paths for naming shared libraries, and exclude the
7990
          # DT_RUNPATH tag from executables and libraries.  But doing so
7991
          # requires that you compile everything twice, which is a pain.
7992
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7993
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7994
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7995
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7996 19 jeremybenn
          else
7997
            ld_shlibs=no
7998
          fi
7999
        ;;
8000
      esac
8001
      ;;
8002
 
8003
    sunos4*)
8004
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8005
      wlarc=
8006
      hardcode_direct=yes
8007
      hardcode_shlibpath_var=no
8008
      ;;
8009
 
8010
    *)
8011 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8012 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8013
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8014
      else
8015
        ld_shlibs=no
8016
      fi
8017
      ;;
8018
    esac
8019
 
8020
    if test "$ld_shlibs" = no; then
8021
      runpath_var=
8022
      hardcode_libdir_flag_spec=
8023
      export_dynamic_flag_spec=
8024
      whole_archive_flag_spec=
8025
    fi
8026
  else
8027
    # PORTME fill in a description of your system's linker (not GNU ld)
8028
    case $host_os in
8029
    aix3*)
8030
      allow_undefined_flag=unsupported
8031
      always_export_symbols=yes
8032
      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'
8033
      # Note: this linker hardcodes the directories in LIBPATH if there
8034
      # are no directories specified by -L.
8035
      hardcode_minus_L=yes
8036
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8037
        # Neither direct hardcoding nor static linking is supported with a
8038
        # broken collect2.
8039
        hardcode_direct=unsupported
8040
      fi
8041
      ;;
8042
 
8043 82 jeremybenn
    aix[4-9]*)
8044 19 jeremybenn
      if test "$host_cpu" = ia64; then
8045
        # On IA64, the linker does run time linking by default, so we don't
8046
        # have to do anything special.
8047
        aix_use_runtimelinking=no
8048
        exp_sym_flag='-Bexport'
8049
        no_entry_flag=""
8050
      else
8051
        # If we're using GNU nm, then we don't want the "-C" option.
8052
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8053 82 jeremybenn
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8054
          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'
8055 19 jeremybenn
        else
8056 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'
8057 19 jeremybenn
        fi
8058
        aix_use_runtimelinking=no
8059
 
8060
        # Test if we are trying to use run time linking or normal
8061
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8062
        # need to do runtime linking.
8063 82 jeremybenn
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8064 19 jeremybenn
          for ld_flag in $LDFLAGS; do
8065 82 jeremybenn
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8066
            aix_use_runtimelinking=yes
8067
            break
8068
          fi
8069 19 jeremybenn
          done
8070
          ;;
8071
        esac
8072
 
8073
        exp_sym_flag='-bexport'
8074
        no_entry_flag='-bnoentry'
8075
      fi
8076
 
8077
      # When large executables or shared objects are built, AIX ld can
8078
      # have problems creating the table of contents.  If linking a library
8079
      # or program results in "error TOC overflow" add -mminimal-toc to
8080
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8081
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8082
 
8083
      archive_cmds=''
8084
      hardcode_direct=yes
8085 82 jeremybenn
      hardcode_direct_absolute=yes
8086 19 jeremybenn
      hardcode_libdir_separator=':'
8087
      link_all_deplibs=yes
8088 82 jeremybenn
      file_list_spec='${wl}-f,'
8089 19 jeremybenn
 
8090
      if test "$GCC" = yes; then
8091
        case $host_os in aix4.[012]|aix4.[012].*)
8092
        # We only want to do this on AIX 4.2 and lower, the check
8093
        # below for broken collect2 doesn't work under 4.3+
8094
          collect2name=`${CC} -print-prog-name=collect2`
8095 82 jeremybenn
          if test -f "$collect2name" &&
8096
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8097 19 jeremybenn
          then
8098 82 jeremybenn
          # We have reworked collect2
8099
          :
8100 19 jeremybenn
          else
8101 82 jeremybenn
          # We have old collect2
8102
          hardcode_direct=unsupported
8103
          # It fails to find uninstalled libraries when the uninstalled
8104
          # path is not listed in the libpath.  Setting hardcode_minus_L
8105
          # to unsupported forces relinking
8106
          hardcode_minus_L=yes
8107
          hardcode_libdir_flag_spec='-L$libdir'
8108
          hardcode_libdir_separator=
8109 19 jeremybenn
          fi
8110
          ;;
8111
        esac
8112
        shared_flag='-shared'
8113
        if test "$aix_use_runtimelinking" = yes; then
8114
          shared_flag="$shared_flag "'${wl}-G'
8115
        fi
8116 93 jeremybenn
        link_all_deplibs=no
8117 19 jeremybenn
      else
8118
        # not using gcc
8119
        if test "$host_cpu" = ia64; then
8120 82 jeremybenn
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8121
        # chokes on -Wl,-G. The following line is correct:
8122 19 jeremybenn
          shared_flag='-G'
8123
        else
8124
          if test "$aix_use_runtimelinking" = yes; then
8125
            shared_flag='${wl}-G'
8126
          else
8127
            shared_flag='${wl}-bM:SRE'
8128
          fi
8129
        fi
8130
      fi
8131
 
8132 82 jeremybenn
      export_dynamic_flag_spec='${wl}-bexpall'
8133 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
8134
      # underscore (_), so it is better to generate a list of symbols to export.
8135
      always_export_symbols=yes
8136
      if test "$aix_use_runtimelinking" = yes; then
8137
        # Warning - without using the other runtime loading flags (-brtl),
8138
        # -berok will link without error, but may produce a broken library.
8139
        allow_undefined_flag='-berok'
8140 82 jeremybenn
        # Determine the default libpath from the value encoded in an
8141
        # empty executable.
8142
        cat >conftest.$ac_ext <<_ACEOF
8143 19 jeremybenn
/* confdefs.h.  */
8144
_ACEOF
8145
cat confdefs.h >>conftest.$ac_ext
8146
cat >>conftest.$ac_ext <<_ACEOF
8147
/* end confdefs.h.  */
8148
 
8149
int
8150
main ()
8151
{
8152
 
8153
  ;
8154
  return 0;
8155
}
8156
_ACEOF
8157
rm -f conftest.$ac_objext conftest$ac_exeext
8158
if { (ac_try="$ac_link"
8159
case "(($ac_try" in
8160
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161
  *) ac_try_echo=$ac_try;;
8162
esac
8163 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8164
$as_echo "$ac_try_echo") >&5
8165 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
8166
  ac_status=$?
8167
  grep -v '^ *+' conftest.er1 >conftest.err
8168
  rm -f conftest.er1
8169
  cat conftest.err >&5
8170 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 19 jeremybenn
  (exit $ac_status); } && {
8172
         test -z "$ac_c_werror_flag" ||
8173
         test ! -s conftest.err
8174 82 jeremybenn
       } && test -s conftest$ac_exeext && {
8175
         test "$cross_compiling" = yes ||
8176
         $as_test_x conftest$ac_exeext
8177
       }; then
8178 19 jeremybenn
 
8179
lt_aix_libpath_sed='
8180
    /Import File Strings/,/^$/ {
8181
        /^0/ {
8182
            s/^0  *\(.*\)$/\1/
8183
            p
8184
        }
8185
    }'
8186
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8187
# Check for a 64-bit object if we didn't find anything.
8188
if test -z "$aix_libpath"; then
8189
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8190
fi
8191
else
8192 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
8193 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8194
 
8195
 
8196
fi
8197
 
8198 82 jeremybenn
rm -rf conftest.dSYM
8199 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8200
      conftest$ac_exeext conftest.$ac_ext
8201
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8202
 
8203 82 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8204
        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"
8205
      else
8206 19 jeremybenn
        if test "$host_cpu" = ia64; then
8207
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8208
          allow_undefined_flag="-z nodefs"
8209
          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"
8210
        else
8211 82 jeremybenn
         # Determine the default libpath from the value encoded in an
8212
         # empty executable.
8213 19 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
8214
/* confdefs.h.  */
8215
_ACEOF
8216
cat confdefs.h >>conftest.$ac_ext
8217
cat >>conftest.$ac_ext <<_ACEOF
8218
/* end confdefs.h.  */
8219
 
8220
int
8221
main ()
8222
{
8223
 
8224
  ;
8225
  return 0;
8226
}
8227
_ACEOF
8228
rm -f conftest.$ac_objext conftest$ac_exeext
8229
if { (ac_try="$ac_link"
8230
case "(($ac_try" in
8231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232
  *) ac_try_echo=$ac_try;;
8233
esac
8234 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8235
$as_echo "$ac_try_echo") >&5
8236 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
8237
  ac_status=$?
8238
  grep -v '^ *+' conftest.er1 >conftest.err
8239
  rm -f conftest.er1
8240
  cat conftest.err >&5
8241 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 19 jeremybenn
  (exit $ac_status); } && {
8243
         test -z "$ac_c_werror_flag" ||
8244
         test ! -s conftest.err
8245 82 jeremybenn
       } && test -s conftest$ac_exeext && {
8246
         test "$cross_compiling" = yes ||
8247
         $as_test_x conftest$ac_exeext
8248
       }; then
8249 19 jeremybenn
 
8250
lt_aix_libpath_sed='
8251
    /Import File Strings/,/^$/ {
8252
        /^0/ {
8253
            s/^0  *\(.*\)$/\1/
8254
            p
8255
        }
8256
    }'
8257
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8258
# Check for a 64-bit object if we didn't find anything.
8259
if test -z "$aix_libpath"; then
8260
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8261
fi
8262
else
8263 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
8264 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8265
 
8266
 
8267
fi
8268
 
8269 82 jeremybenn
rm -rf conftest.dSYM
8270 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8271
      conftest$ac_exeext conftest.$ac_ext
8272
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8273
 
8274
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8275
          # Warning - without using the other run time loading flags,
8276
          # -berok will link without error, but may produce a broken library.
8277
          no_undefined_flag=' ${wl}-bernotok'
8278
          allow_undefined_flag=' ${wl}-berok'
8279
          # Exported symbols can be pulled into shared objects from archives
8280
          whole_archive_flag_spec='$convenience'
8281
          archive_cmds_need_lc=yes
8282
          # This is similar to how AIX traditionally builds its shared libraries.
8283
          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'
8284
        fi
8285
      fi
8286
      ;;
8287
 
8288
    amigaos*)
8289 82 jeremybenn
      case $host_cpu in
8290
      powerpc)
8291
            # see comment about AmigaOS4 .so support
8292
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8293
            archive_expsym_cmds=''
8294
        ;;
8295
      m68k)
8296
            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)'
8297
            hardcode_libdir_flag_spec='-L$libdir'
8298
            hardcode_minus_L=yes
8299
        ;;
8300
      esac
8301 19 jeremybenn
      ;;
8302
 
8303
    bsdi[45]*)
8304
      export_dynamic_flag_spec=-rdynamic
8305
      ;;
8306
 
8307 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8308 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8309
      # Microsoft Visual C++.
8310
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8311
      # no search path for DLLs.
8312
      hardcode_libdir_flag_spec=' '
8313
      allow_undefined_flag=unsupported
8314
      # Tell ltmain to make .lib files, not .a files.
8315
      libext=lib
8316
      # Tell ltmain to make .dll files, not .so files.
8317
      shrext_cmds=".dll"
8318
      # FIXME: Setting linknames here is a bad hack.
8319 82 jeremybenn
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8320 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8321 82 jeremybenn
      old_archive_from_new_cmds='true'
8322 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8323
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8324
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8325
      enable_shared_with_static_runtimes=yes
8326
      ;;
8327
 
8328
    darwin* | rhapsody*)
8329 82 jeremybenn
 
8330
 
8331
  archive_cmds_need_lc=no
8332
  hardcode_direct=no
8333
  hardcode_automatic=yes
8334
  hardcode_shlibpath_var=unsupported
8335
  whole_archive_flag_spec=''
8336
  link_all_deplibs=yes
8337
  allow_undefined_flag="$_lt_dar_allow_undefined"
8338
  case $cc_basename in
8339
     ifort*) _lt_dar_can_shared=yes ;;
8340
     *) _lt_dar_can_shared=$GCC ;;
8341
  esac
8342
  if test "$_lt_dar_can_shared" = "yes"; then
8343
    output_verbose_link_cmd=echo
8344
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8345
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8346
    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}"
8347
    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}"
8348
 
8349
  else
8350
  ld_shlibs=no
8351
  fi
8352
 
8353 19 jeremybenn
      ;;
8354
 
8355
    dgux*)
8356
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8357
      hardcode_libdir_flag_spec='-L$libdir'
8358
      hardcode_shlibpath_var=no
8359
      ;;
8360
 
8361
    freebsd1*)
8362
      ld_shlibs=no
8363
      ;;
8364
 
8365
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8366
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8367
    # does not break anything, and helps significantly (at the cost of a little
8368
    # extra space).
8369
    freebsd2.2*)
8370
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8371
      hardcode_libdir_flag_spec='-R$libdir'
8372
      hardcode_direct=yes
8373
      hardcode_shlibpath_var=no
8374
      ;;
8375
 
8376
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8377
    freebsd2*)
8378
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8379
      hardcode_direct=yes
8380
      hardcode_minus_L=yes
8381
      hardcode_shlibpath_var=no
8382
      ;;
8383
 
8384
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8385
    freebsd* | dragonfly*)
8386
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8387
      hardcode_libdir_flag_spec='-R$libdir'
8388
      hardcode_direct=yes
8389
      hardcode_shlibpath_var=no
8390
      ;;
8391
 
8392
    hpux9*)
8393
      if test "$GCC" = yes; then
8394 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'
8395 19 jeremybenn
      else
8396 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'
8397 19 jeremybenn
      fi
8398
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8399
      hardcode_libdir_separator=:
8400
      hardcode_direct=yes
8401
 
8402
      # hardcode_minus_L: Not really in the search PATH,
8403
      # but as the default location of the library.
8404
      hardcode_minus_L=yes
8405
      export_dynamic_flag_spec='${wl}-E'
8406
      ;;
8407
 
8408
    hpux10*)
8409
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8410
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8411
      else
8412
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8413
      fi
8414
      if test "$with_gnu_ld" = no; then
8415
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8416 82 jeremybenn
        hardcode_libdir_flag_spec_ld='+b $libdir'
8417 19 jeremybenn
        hardcode_libdir_separator=:
8418
        hardcode_direct=yes
8419 82 jeremybenn
        hardcode_direct_absolute=yes
8420 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8421
        # hardcode_minus_L: Not really in the search PATH,
8422
        # but as the default location of the library.
8423
        hardcode_minus_L=yes
8424
      fi
8425
      ;;
8426
 
8427
    hpux11*)
8428
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8429
        case $host_cpu in
8430
        hppa*64*)
8431
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8432
          ;;
8433
        ia64*)
8434 82 jeremybenn
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8435 19 jeremybenn
          ;;
8436
        *)
8437
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8438
          ;;
8439
        esac
8440
      else
8441
        case $host_cpu in
8442
        hppa*64*)
8443
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8444
          ;;
8445
        ia64*)
8446
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8447
          ;;
8448
        *)
8449
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8450
          ;;
8451
        esac
8452
      fi
8453
      if test "$with_gnu_ld" = no; then
8454
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8455
        hardcode_libdir_separator=:
8456
 
8457
        case $host_cpu in
8458
        hppa*64*|ia64*)
8459
          hardcode_direct=no
8460
          hardcode_shlibpath_var=no
8461
          ;;
8462
        *)
8463
          hardcode_direct=yes
8464 82 jeremybenn
          hardcode_direct_absolute=yes
8465 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8466
 
8467
          # hardcode_minus_L: Not really in the search PATH,
8468
          # but as the default location of the library.
8469
          hardcode_minus_L=yes
8470
          ;;
8471
        esac
8472
      fi
8473
      ;;
8474
 
8475
    irix5* | irix6* | nonstopux*)
8476
      if test "$GCC" = yes; then
8477 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'
8478
        # Try to use the -exported_symbol ld option, if it does not
8479
        # work, assume that -exports_file does not work either and
8480
        # implicitly export all symbols.
8481
        save_LDFLAGS="$LDFLAGS"
8482
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8483
        cat >conftest.$ac_ext <<_ACEOF
8484
int foo(void) {}
8485
_ACEOF
8486
rm -f conftest.$ac_objext conftest$ac_exeext
8487
if { (ac_try="$ac_link"
8488
case "(($ac_try" in
8489
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490
  *) ac_try_echo=$ac_try;;
8491
esac
8492
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8493
$as_echo "$ac_try_echo") >&5
8494
  (eval "$ac_link") 2>conftest.er1
8495
  ac_status=$?
8496
  grep -v '^ *+' conftest.er1 >conftest.err
8497
  rm -f conftest.er1
8498
  cat conftest.err >&5
8499
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500
  (exit $ac_status); } && {
8501
         test -z "$ac_c_werror_flag" ||
8502
         test ! -s conftest.err
8503
       } && test -s conftest$ac_exeext && {
8504
         test "$cross_compiling" = yes ||
8505
         $as_test_x conftest$ac_exeext
8506
       }; then
8507
  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'
8508
 
8509
else
8510
  $as_echo "$as_me: failed program was:" >&5
8511
sed 's/^/| /' conftest.$ac_ext >&5
8512
 
8513
 
8514
fi
8515
 
8516
rm -rf conftest.dSYM
8517
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8518
      conftest$ac_exeext conftest.$ac_ext
8519
        LDFLAGS="$save_LDFLAGS"
8520 19 jeremybenn
      else
8521 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'
8522
        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'
8523 19 jeremybenn
      fi
8524 82 jeremybenn
      archive_cmds_need_lc='no'
8525 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8526
      hardcode_libdir_separator=:
8527 82 jeremybenn
      inherit_rpath=yes
8528 19 jeremybenn
      link_all_deplibs=yes
8529
      ;;
8530
 
8531 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
8532 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8533 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8534
      else
8535
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8536
      fi
8537
      hardcode_libdir_flag_spec='-R$libdir'
8538
      hardcode_direct=yes
8539
      hardcode_shlibpath_var=no
8540
      ;;
8541
 
8542
    newsos6)
8543
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8544
      hardcode_direct=yes
8545
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8546
      hardcode_libdir_separator=:
8547
      hardcode_shlibpath_var=no
8548
      ;;
8549
 
8550 82 jeremybenn
    *nto* | *qnx*)
8551
      ;;
8552
 
8553 19 jeremybenn
    openbsd*)
8554
      if test -f /usr/libexec/ld.so; then
8555
        hardcode_direct=yes
8556
        hardcode_shlibpath_var=no
8557 82 jeremybenn
        hardcode_direct_absolute=yes
8558
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8559 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8560
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8561
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8562
          export_dynamic_flag_spec='${wl}-E'
8563
        else
8564
          case $host_os in
8565
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8566
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8567
             hardcode_libdir_flag_spec='-R$libdir'
8568
             ;;
8569
           *)
8570
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8571
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8572
             ;;
8573
          esac
8574 82 jeremybenn
        fi
8575 19 jeremybenn
      else
8576
        ld_shlibs=no
8577
      fi
8578
      ;;
8579
 
8580
    os2*)
8581
      hardcode_libdir_flag_spec='-L$libdir'
8582
      hardcode_minus_L=yes
8583
      allow_undefined_flag=unsupported
8584 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'
8585
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8586 19 jeremybenn
      ;;
8587
 
8588
    osf3*)
8589
      if test "$GCC" = yes; then
8590
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8591 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'
8592 19 jeremybenn
      else
8593
        allow_undefined_flag=' -expect_unresolved \*'
8594 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'
8595 19 jeremybenn
      fi
8596 82 jeremybenn
      archive_cmds_need_lc='no'
8597 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8598
      hardcode_libdir_separator=:
8599
      ;;
8600
 
8601
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8602
      if test "$GCC" = yes; then
8603
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8604 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'
8605 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8606
      else
8607
        allow_undefined_flag=' -expect_unresolved \*'
8608 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'
8609
        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~
8610
        $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'
8611 19 jeremybenn
 
8612
        # Both c and cxx compiler support -rpath directly
8613
        hardcode_libdir_flag_spec='-rpath $libdir'
8614
      fi
8615 82 jeremybenn
      archive_cmds_need_lc='no'
8616 19 jeremybenn
      hardcode_libdir_separator=:
8617
      ;;
8618
 
8619
    solaris*)
8620 82 jeremybenn
      no_undefined_flag=' -z defs'
8621 19 jeremybenn
      if test "$GCC" = yes; then
8622
        wlarc='${wl}'
8623 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8624
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8625
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8626 19 jeremybenn
      else
8627 82 jeremybenn
        case `$CC -V 2>&1` in
8628
        *"Compilers 5.0"*)
8629
          wlarc=''
8630
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8631
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8632
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8633
          ;;
8634
        *)
8635
          wlarc='${wl}'
8636
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8637
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8638
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8639
          ;;
8640
        esac
8641 19 jeremybenn
      fi
8642
      hardcode_libdir_flag_spec='-R$libdir'
8643
      hardcode_shlibpath_var=no
8644
      case $host_os in
8645
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8646
      *)
8647
        # The compiler driver will combine and reorder linker options,
8648
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8649
        # but is careful enough not to reorder.
8650 82 jeremybenn
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8651 19 jeremybenn
        if test "$GCC" = yes; then
8652
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8653
        else
8654
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8655
        fi
8656
        ;;
8657
      esac
8658
      link_all_deplibs=yes
8659
      ;;
8660
 
8661
    sunos4*)
8662
      if test "x$host_vendor" = xsequent; then
8663
        # Use $CC to link under sequent, because it throws in some extra .o
8664
        # files that make .init and .fini sections work.
8665
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8666
      else
8667
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8668
      fi
8669
      hardcode_libdir_flag_spec='-L$libdir'
8670
      hardcode_direct=yes
8671
      hardcode_minus_L=yes
8672
      hardcode_shlibpath_var=no
8673
      ;;
8674
 
8675
    sysv4)
8676
      case $host_vendor in
8677
        sni)
8678
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8679
          hardcode_direct=yes # is this really true???
8680
        ;;
8681
        siemens)
8682
          ## LD is ld it makes a PLAMLIB
8683
          ## CC just makes a GrossModule.
8684
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8685
          reload_cmds='$CC -r -o $output$reload_objs'
8686
          hardcode_direct=no
8687
        ;;
8688
        motorola)
8689
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8690
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8691
        ;;
8692
      esac
8693
      runpath_var='LD_RUN_PATH'
8694
      hardcode_shlibpath_var=no
8695
      ;;
8696
 
8697
    sysv4.3*)
8698
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8699
      hardcode_shlibpath_var=no
8700
      export_dynamic_flag_spec='-Bexport'
8701
      ;;
8702
 
8703
    sysv4*MP*)
8704
      if test -d /usr/nec; then
8705
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8706
        hardcode_shlibpath_var=no
8707
        runpath_var=LD_RUN_PATH
8708
        hardcode_runpath_var=yes
8709
        ld_shlibs=yes
8710
      fi
8711
      ;;
8712
 
8713
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8714
      no_undefined_flag='${wl}-z,text'
8715
      archive_cmds_need_lc=no
8716
      hardcode_shlibpath_var=no
8717
      runpath_var='LD_RUN_PATH'
8718
 
8719
      if test "$GCC" = yes; then
8720
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8721
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8722
      else
8723
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8724
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8725
      fi
8726
      ;;
8727
 
8728
    sysv5* | sco3.2v5* | sco5v6*)
8729
      # Note: We can NOT use -z defs as we might desire, because we do not
8730
      # link with -lc, and that would cause any symbols used from libc to
8731
      # always be unresolved, which means just about no library would
8732
      # ever link correctly.  If we're not using GNU ld we use -z text
8733
      # though, which does catch some bad symbols but isn't as heavy-handed
8734
      # as -z defs.
8735
      no_undefined_flag='${wl}-z,text'
8736
      allow_undefined_flag='${wl}-z,nodefs'
8737
      archive_cmds_need_lc=no
8738
      hardcode_shlibpath_var=no
8739 82 jeremybenn
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8740 19 jeremybenn
      hardcode_libdir_separator=':'
8741
      link_all_deplibs=yes
8742
      export_dynamic_flag_spec='${wl}-Bexport'
8743
      runpath_var='LD_RUN_PATH'
8744
 
8745
      if test "$GCC" = yes; then
8746 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8748 19 jeremybenn
      else
8749 82 jeremybenn
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8750
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8751 19 jeremybenn
      fi
8752
      ;;
8753
 
8754
    uts4*)
8755
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8756
      hardcode_libdir_flag_spec='-L$libdir'
8757
      hardcode_shlibpath_var=no
8758
      ;;
8759
 
8760
    *)
8761
      ld_shlibs=no
8762
      ;;
8763
    esac
8764 82 jeremybenn
 
8765
    if test x$host_vendor = xsni; then
8766
      case $host in
8767
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8768
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8769
        ;;
8770
      esac
8771
    fi
8772 19 jeremybenn
  fi
8773
 
8774 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8775
$as_echo "$ld_shlibs" >&6; }
8776 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8777
 
8778 82 jeremybenn
with_gnu_ld=$with_gnu_ld
8779
 
8780
 
8781
 
8782
 
8783
 
8784
 
8785
 
8786
 
8787
 
8788
 
8789
 
8790
 
8791
 
8792
 
8793
 
8794 19 jeremybenn
#
8795
# Do we need to explicitly link libc?
8796
#
8797
case "x$archive_cmds_need_lc" in
8798
x|xyes)
8799
  # Assume -lc should be added
8800
  archive_cmds_need_lc=yes
8801
 
8802
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8803
    case $archive_cmds in
8804
    *'~'*)
8805
      # FIXME: we may have to deal with multi-command sequences.
8806
      ;;
8807
    '$CC '*)
8808
      # Test whether the compiler implicitly links with -lc since on some
8809
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8810
      # to ld, don't add -lc before -lgcc.
8811 82 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8812
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8813
      $RM conftest*
8814 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8815
 
8816
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8817
  (eval $ac_compile) 2>&5
8818
  ac_status=$?
8819 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 19 jeremybenn
  (exit $ac_status); } 2>conftest.err; then
8821
        soname=conftest
8822
        lib=conftest
8823
        libobjs=conftest.$ac_objext
8824
        deplibs=
8825
        wl=$lt_prog_compiler_wl
8826
        pic_flag=$lt_prog_compiler_pic
8827
        compiler_flags=-v
8828
        linker_flags=-v
8829
        verstring=
8830
        output_objdir=.
8831
        libname=conftest
8832
        lt_save_allow_undefined_flag=$allow_undefined_flag
8833
        allow_undefined_flag=
8834 82 jeremybenn
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8835
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8836 19 jeremybenn
  ac_status=$?
8837 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 19 jeremybenn
  (exit $ac_status); }
8839
        then
8840
          archive_cmds_need_lc=no
8841
        else
8842
          archive_cmds_need_lc=yes
8843
        fi
8844
        allow_undefined_flag=$lt_save_allow_undefined_flag
8845
      else
8846
        cat conftest.err 1>&5
8847
      fi
8848 82 jeremybenn
      $RM conftest*
8849
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8850
$as_echo "$archive_cmds_need_lc" >&6; }
8851 19 jeremybenn
      ;;
8852
    esac
8853
  fi
8854
  ;;
8855
esac
8856
 
8857
 
8858 82 jeremybenn
 
8859
 
8860
 
8861
 
8862
 
8863
 
8864
 
8865
 
8866
 
8867
 
8868
 
8869
 
8870
 
8871
 
8872
 
8873
 
8874
 
8875
 
8876
 
8877
 
8878
 
8879
 
8880
 
8881
 
8882
 
8883
 
8884
 
8885
 
8886
 
8887
 
8888
 
8889
 
8890
 
8891
 
8892
 
8893
 
8894
 
8895
 
8896
 
8897
 
8898
 
8899
 
8900
 
8901
 
8902
 
8903
 
8904
 
8905
 
8906
 
8907
 
8908
 
8909
 
8910
 
8911
 
8912
 
8913
 
8914
 
8915
 
8916
 
8917
 
8918
 
8919
 
8920
 
8921
 
8922
 
8923
 
8924
 
8925
 
8926
 
8927
 
8928
 
8929
 
8930
 
8931
 
8932
 
8933
 
8934
 
8935
 
8936
 
8937
 
8938
 
8939
 
8940
 
8941
 
8942
 
8943
 
8944
 
8945
 
8946
 
8947
 
8948
 
8949
 
8950
 
8951
 
8952
 
8953
 
8954
 
8955
 
8956
 
8957
 
8958
 
8959
 
8960
 
8961
 
8962
 
8963
 
8964
 
8965
 
8966
 
8967
 
8968
 
8969
 
8970
 
8971
 
8972
 
8973
 
8974
 
8975
 
8976
 
8977
 
8978
 
8979
 
8980
 
8981
 
8982
 
8983
 
8984
 
8985
 
8986
 
8987
 
8988
 
8989
 
8990
 
8991
 
8992
 
8993
 
8994
 
8995
 
8996
 
8997
 
8998
 
8999
 
9000
 
9001
 
9002
 
9003
 
9004
 
9005
 
9006
 
9007
 
9008
 
9009
 
9010
 
9011
 
9012
 
9013
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9014
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9015
 
9016 19 jeremybenn
if test "$GCC" = yes; then
9017
  case $host_os in
9018
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9019
    *) lt_awk_arg="/^libraries:/" ;;
9020
  esac
9021
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9022 82 jeremybenn
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9023 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
9024
    # otherwise default to the standard path separator (i.e. ":") - it is
9025
    # assumed that no part of a normal pathname contains ";" but that should
9026
    # okay in the real world where ";" in dirpaths is itself problematic.
9027 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9028 19 jeremybenn
  else
9029 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9030 19 jeremybenn
  fi
9031
  # Ok, now we have the path, separated by spaces, we can step through it
9032
  # and add multilib dir if necessary.
9033
  lt_tmp_lt_search_path_spec=
9034
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9035
  for lt_sys_path in $lt_search_path_spec; do
9036
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9037
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9038
    else
9039
      test -d "$lt_sys_path" && \
9040
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9041
    fi
9042
  done
9043 82 jeremybenn
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9044 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
9045
  lt_foo="";
9046
  lt_count=0;
9047
  for (lt_i = NF; lt_i > 0; lt_i--) {
9048
    if ($lt_i != "" && $lt_i != ".") {
9049
      if ($lt_i == "..") {
9050
        lt_count++;
9051
      } else {
9052
        if (lt_count == 0) {
9053
          lt_foo="/" $lt_i lt_foo;
9054
        } else {
9055
          lt_count--;
9056
        }
9057
      }
9058
    }
9059
  }
9060
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9061
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9062
}'`
9063 82 jeremybenn
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9064 19 jeremybenn
else
9065
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9066
fi
9067 82 jeremybenn
library_names_spec=
9068
libname_spec='lib$name'
9069
soname_spec=
9070
shrext_cmds=".so"
9071
postinstall_cmds=
9072
postuninstall_cmds=
9073
finish_cmds=
9074
finish_eval=
9075
shlibpath_var=
9076
shlibpath_overrides_runpath=unknown
9077
version_type=none
9078
dynamic_linker="$host_os ld.so"
9079
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9080 19 jeremybenn
need_lib_prefix=unknown
9081
hardcode_into_libs=no
9082
 
9083
# when you set need_version to no, make sure it does not cause -set_version
9084
# flags to be left without arguments
9085
need_version=unknown
9086
 
9087
case $host_os in
9088
aix3*)
9089
  version_type=linux
9090
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9091
  shlibpath_var=LIBPATH
9092
 
9093
  # AIX 3 has no versioning support, so we append a major version to the name.
9094
  soname_spec='${libname}${release}${shared_ext}$major'
9095
  ;;
9096
 
9097 82 jeremybenn
aix[4-9]*)
9098 19 jeremybenn
  version_type=linux
9099
  need_lib_prefix=no
9100
  need_version=no
9101
  hardcode_into_libs=yes
9102
  if test "$host_cpu" = ia64; then
9103
    # AIX 5 supports IA64
9104
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9105
    shlibpath_var=LD_LIBRARY_PATH
9106
  else
9107
    # With GCC up to 2.95.x, collect2 would create an import file
9108
    # for dependence libraries.  The import file would start with
9109
    # the line `#! .'.  This would cause the generated library to
9110
    # depend on `.', always an invalid library.  This was fixed in
9111
    # development snapshots of GCC prior to 3.0.
9112
    case $host_os in
9113
      aix4 | aix4.[01] | aix4.[01].*)
9114
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9115
           echo ' yes '
9116 82 jeremybenn
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9117 19 jeremybenn
        :
9118
      else
9119
        can_build_shared=no
9120
      fi
9121
      ;;
9122
    esac
9123
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9124
    # soname into executable. Probably we can add versioning support to
9125
    # collect2, so additional links can be useful in future.
9126
    if test "$aix_use_runtimelinking" = yes; then
9127
      # If using run time linking (on AIX 4.2 or later) use lib.so
9128
      # instead of lib.a to let people know that these are not
9129
      # typical AIX shared libraries.
9130
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131
    else
9132
      # We preserve .a as extension for shared libraries through AIX4.2
9133
      # and later when we are not doing run time linking.
9134
      library_names_spec='${libname}${release}.a $libname.a'
9135
      soname_spec='${libname}${release}${shared_ext}$major'
9136
    fi
9137
    shlibpath_var=LIBPATH
9138
  fi
9139
  ;;
9140
 
9141
amigaos*)
9142 82 jeremybenn
  case $host_cpu in
9143
  powerpc)
9144
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9145
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9146
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9147
    ;;
9148
  m68k)
9149
    library_names_spec='$libname.ixlibrary $libname.a'
9150
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9151
    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'
9152
    ;;
9153
  esac
9154 19 jeremybenn
  ;;
9155
 
9156
beos*)
9157
  library_names_spec='${libname}${shared_ext}'
9158
  dynamic_linker="$host_os ld.so"
9159
  shlibpath_var=LIBRARY_PATH
9160
  ;;
9161
 
9162
bsdi[45]*)
9163
  version_type=linux
9164
  need_version=no
9165
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166
  soname_spec='${libname}${release}${shared_ext}$major'
9167
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9168
  shlibpath_var=LD_LIBRARY_PATH
9169
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9170
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9171
  # the default ld.so.conf also contains /usr/contrib/lib and
9172
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9173
  # libtool to hard-code these into programs
9174
  ;;
9175
 
9176 82 jeremybenn
cygwin* | mingw* | pw32* | cegcc*)
9177 19 jeremybenn
  version_type=windows
9178
  shrext_cmds=".dll"
9179
  need_version=no
9180
  need_lib_prefix=no
9181
 
9182
  case $GCC,$host_os in
9183 82 jeremybenn
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9184 19 jeremybenn
    library_names_spec='$libname.dll.a'
9185
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9186
    postinstall_cmds='base_file=`basename \${file}`~
9187 82 jeremybenn
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9188 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
9189
      test -d \$dldir || mkdir -p \$dldir~
9190
      $install_prog $dir/$dlname \$dldir/$dlname~
9191 82 jeremybenn
      chmod a+x \$dldir/$dlname~
9192
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9193
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9194
      fi'
9195 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9196
      dlpath=$dir/\$dldll~
9197 82 jeremybenn
       $RM \$dlpath'
9198 19 jeremybenn
    shlibpath_overrides_runpath=yes
9199
 
9200
    case $host_os in
9201
    cygwin*)
9202
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9203
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9204
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9205
      ;;
9206 82 jeremybenn
    mingw* | cegcc*)
9207 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
9208
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9209 82 jeremybenn
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9210
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9211 19 jeremybenn
        # It is most probably a Windows format PATH printed by
9212
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9213
        # path with ; separators, and with drive letters. We can handle the
9214
        # drive letters (cygwin fileutils understands them), so leave them,
9215
        # especially as we might pass files found there to a mingw objdump,
9216
        # which wouldn't understand a cygwinified path. Ahh.
9217 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9218 19 jeremybenn
      else
9219 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9220 19 jeremybenn
      fi
9221
      ;;
9222
    pw32*)
9223
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9224
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9225
      ;;
9226
    esac
9227
    ;;
9228
 
9229
  *)
9230
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9231
    ;;
9232
  esac
9233
  dynamic_linker='Win32 ld.exe'
9234
  # FIXME: first we should search . and the directory the executable is in
9235
  shlibpath_var=PATH
9236
  ;;
9237
 
9238
darwin* | rhapsody*)
9239
  dynamic_linker="$host_os dyld"
9240
  version_type=darwin
9241
  need_lib_prefix=no
9242
  need_version=no
9243 82 jeremybenn
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9244 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9245
  shlibpath_overrides_runpath=yes
9246
  shlibpath_var=DYLD_LIBRARY_PATH
9247
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9248
 
9249
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9250
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9251
  ;;
9252
 
9253
dgux*)
9254
  version_type=linux
9255
  need_lib_prefix=no
9256
  need_version=no
9257
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9258
  soname_spec='${libname}${release}${shared_ext}$major'
9259
  shlibpath_var=LD_LIBRARY_PATH
9260
  ;;
9261
 
9262
freebsd1*)
9263
  dynamic_linker=no
9264
  ;;
9265
 
9266
freebsd* | dragonfly*)
9267
  # DragonFly does not have aout.  When/if they implement a new
9268
  # versioning mechanism, adjust this.
9269
  if test -x /usr/bin/objformat; then
9270
    objformat=`/usr/bin/objformat`
9271
  else
9272
    case $host_os in
9273
    freebsd[123]*) objformat=aout ;;
9274
    *) objformat=elf ;;
9275
    esac
9276
  fi
9277
  version_type=freebsd-$objformat
9278
  case $version_type in
9279
    freebsd-elf*)
9280
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9281
      need_version=no
9282
      need_lib_prefix=no
9283
      ;;
9284
    freebsd-*)
9285
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9286
      need_version=yes
9287
      ;;
9288
  esac
9289
  shlibpath_var=LD_LIBRARY_PATH
9290
  case $host_os in
9291
  freebsd2*)
9292
    shlibpath_overrides_runpath=yes
9293
    ;;
9294
  freebsd3.[01]* | freebsdelf3.[01]*)
9295
    shlibpath_overrides_runpath=yes
9296
    hardcode_into_libs=yes
9297
    ;;
9298
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9299
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9300
    shlibpath_overrides_runpath=no
9301
    hardcode_into_libs=yes
9302
    ;;
9303
  *) # from 4.6 on, and DragonFly
9304
    shlibpath_overrides_runpath=yes
9305
    hardcode_into_libs=yes
9306
    ;;
9307
  esac
9308
  ;;
9309
 
9310
gnu*)
9311
  version_type=linux
9312
  need_lib_prefix=no
9313
  need_version=no
9314
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9315
  soname_spec='${libname}${release}${shared_ext}$major'
9316
  shlibpath_var=LD_LIBRARY_PATH
9317
  hardcode_into_libs=yes
9318
  ;;
9319
 
9320
hpux9* | hpux10* | hpux11*)
9321
  # Give a soname corresponding to the major version so that dld.sl refuses to
9322
  # link against other versions.
9323
  version_type=sunos
9324
  need_lib_prefix=no
9325
  need_version=no
9326
  case $host_cpu in
9327
  ia64*)
9328
    shrext_cmds='.so'
9329
    hardcode_into_libs=yes
9330
    dynamic_linker="$host_os dld.so"
9331
    shlibpath_var=LD_LIBRARY_PATH
9332
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9333
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9334
    soname_spec='${libname}${release}${shared_ext}$major'
9335
    if test "X$HPUX_IA64_MODE" = X32; then
9336
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9337
    else
9338
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9339
    fi
9340
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9341
    ;;
9342 82 jeremybenn
  hppa*64*)
9343 19 jeremybenn
    shrext_cmds='.sl'
9344 82 jeremybenn
    hardcode_into_libs=yes
9345 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9346 82 jeremybenn
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9347
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9348
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9349
    soname_spec='${libname}${release}${shared_ext}$major'
9350
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9351
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9352
    ;;
9353
  *)
9354
    shrext_cmds='.sl'
9355
    dynamic_linker="$host_os dld.sl"
9356 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9357
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9358
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359
    soname_spec='${libname}${release}${shared_ext}$major'
9360
    ;;
9361
  esac
9362
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9363
  postinstall_cmds='chmod 555 $lib'
9364
  ;;
9365
 
9366
interix[3-9]*)
9367
  version_type=linux
9368
  need_lib_prefix=no
9369
  need_version=no
9370
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9371
  soname_spec='${libname}${release}${shared_ext}$major'
9372
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9373
  shlibpath_var=LD_LIBRARY_PATH
9374
  shlibpath_overrides_runpath=no
9375
  hardcode_into_libs=yes
9376
  ;;
9377
 
9378
irix5* | irix6* | nonstopux*)
9379
  case $host_os in
9380
    nonstopux*) version_type=nonstopux ;;
9381
    *)
9382
        if test "$lt_cv_prog_gnu_ld" = yes; then
9383
                version_type=linux
9384
        else
9385
                version_type=irix
9386
        fi ;;
9387
  esac
9388
  need_lib_prefix=no
9389
  need_version=no
9390
  soname_spec='${libname}${release}${shared_ext}$major'
9391
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9392
  case $host_os in
9393
  irix5* | nonstopux*)
9394
    libsuff= shlibsuff=
9395
    ;;
9396
  *)
9397
    case $LD in # libtool.m4 will add one of these switches to LD
9398
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9399
      libsuff= shlibsuff= libmagic=32-bit;;
9400
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9401
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9402
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9403
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9404
    *) libsuff= shlibsuff= libmagic=never-match;;
9405
    esac
9406
    ;;
9407
  esac
9408
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9409
  shlibpath_overrides_runpath=no
9410
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9411
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9412
  hardcode_into_libs=yes
9413
  ;;
9414
 
9415
# No shared lib support for Linux oldld, aout, or coff.
9416
linux*oldld* | linux*aout* | linux*coff*)
9417
  dynamic_linker=no
9418
  ;;
9419
 
9420
# This must be Linux ELF.
9421
linux* | k*bsd*-gnu)
9422
  version_type=linux
9423
  need_lib_prefix=no
9424
  need_version=no
9425
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426
  soname_spec='${libname}${release}${shared_ext}$major'
9427
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9428
  shlibpath_var=LD_LIBRARY_PATH
9429
  shlibpath_overrides_runpath=no
9430 82 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
9431
  save_LDFLAGS=$LDFLAGS
9432
  save_libdir=$libdir
9433
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9434
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9435
  cat >conftest.$ac_ext <<_ACEOF
9436
/* confdefs.h.  */
9437
_ACEOF
9438
cat confdefs.h >>conftest.$ac_ext
9439
cat >>conftest.$ac_ext <<_ACEOF
9440
/* end confdefs.h.  */
9441
 
9442
int
9443
main ()
9444
{
9445
 
9446
  ;
9447
  return 0;
9448
}
9449
_ACEOF
9450
rm -f conftest.$ac_objext conftest$ac_exeext
9451
if { (ac_try="$ac_link"
9452
case "(($ac_try" in
9453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454
  *) ac_try_echo=$ac_try;;
9455
esac
9456
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9457
$as_echo "$ac_try_echo") >&5
9458
  (eval "$ac_link") 2>conftest.er1
9459
  ac_status=$?
9460
  grep -v '^ *+' conftest.er1 >conftest.err
9461
  rm -f conftest.er1
9462
  cat conftest.err >&5
9463
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464
  (exit $ac_status); } && {
9465
         test -z "$ac_c_werror_flag" ||
9466
         test ! -s conftest.err
9467
       } && test -s conftest$ac_exeext && {
9468
         test "$cross_compiling" = yes ||
9469
         $as_test_x conftest$ac_exeext
9470
       }; then
9471
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9472
  shlibpath_overrides_runpath=yes
9473
fi
9474
 
9475
else
9476
  $as_echo "$as_me: failed program was:" >&5
9477
sed 's/^/| /' conftest.$ac_ext >&5
9478
 
9479
 
9480
fi
9481
 
9482
rm -rf conftest.dSYM
9483
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9484
      conftest$ac_exeext conftest.$ac_ext
9485
  LDFLAGS=$save_LDFLAGS
9486
  libdir=$save_libdir
9487
 
9488 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9489
  # Some rework will be needed to allow for fast_install
9490
  # before this can be enabled.
9491
  hardcode_into_libs=yes
9492
 
9493
  # Append ld.so.conf contents to the search path
9494
  if test -f /etc/ld.so.conf; then
9495 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' ' '`
9496 93 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9497 19 jeremybenn
  fi
9498
 
9499
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9500
  # powerpc, because MkLinux only supported shared libraries with the
9501
  # GNU dynamic linker.  Since this was broken with cross compilers,
9502
  # most powerpc-linux boxes support dynamic linking these days and
9503
  # people can always --disable-shared, the test was removed, and we
9504
  # assume the GNU/Linux dynamic linker is in use.
9505
  dynamic_linker='GNU/Linux ld.so'
9506
  ;;
9507
 
9508 93 jeremybenn
netbsdelf*-gnu)
9509
  version_type=linux
9510
  need_lib_prefix=no
9511
  need_version=no
9512
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9513
  soname_spec='${libname}${release}${shared_ext}$major'
9514
  shlibpath_var=LD_LIBRARY_PATH
9515
  shlibpath_overrides_runpath=no
9516
  hardcode_into_libs=yes
9517
  dynamic_linker='NetBSD ld.elf_so'
9518
  ;;
9519
 
9520 19 jeremybenn
netbsd*)
9521
  version_type=sunos
9522
  need_lib_prefix=no
9523
  need_version=no
9524 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9525 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9526
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9527
    dynamic_linker='NetBSD (a.out) ld.so'
9528
  else
9529
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9530
    soname_spec='${libname}${release}${shared_ext}$major'
9531
    dynamic_linker='NetBSD ld.elf_so'
9532
  fi
9533
  shlibpath_var=LD_LIBRARY_PATH
9534
  shlibpath_overrides_runpath=yes
9535
  hardcode_into_libs=yes
9536
  ;;
9537
 
9538
newsos6)
9539
  version_type=linux
9540
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541
  shlibpath_var=LD_LIBRARY_PATH
9542
  shlibpath_overrides_runpath=yes
9543
  ;;
9544
 
9545 82 jeremybenn
*nto* | *qnx*)
9546
  version_type=qnx
9547 19 jeremybenn
  need_lib_prefix=no
9548
  need_version=no
9549
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9550
  soname_spec='${libname}${release}${shared_ext}$major'
9551
  shlibpath_var=LD_LIBRARY_PATH
9552 82 jeremybenn
  shlibpath_overrides_runpath=no
9553
  hardcode_into_libs=yes
9554
  dynamic_linker='ldqnx.so'
9555 19 jeremybenn
  ;;
9556
 
9557
openbsd*)
9558
  version_type=sunos
9559
  sys_lib_dlsearch_path_spec="/usr/lib"
9560
  need_lib_prefix=no
9561
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9562
  case $host_os in
9563 82 jeremybenn
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9564
    *)                          need_version=no  ;;
9565 19 jeremybenn
  esac
9566
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9567
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9568
  shlibpath_var=LD_LIBRARY_PATH
9569 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9570 19 jeremybenn
    case $host_os in
9571
      openbsd2.[89] | openbsd2.[89].*)
9572
        shlibpath_overrides_runpath=no
9573
        ;;
9574
      *)
9575
        shlibpath_overrides_runpath=yes
9576
        ;;
9577
      esac
9578
  else
9579
    shlibpath_overrides_runpath=yes
9580
  fi
9581
  ;;
9582
 
9583
os2*)
9584
  libname_spec='$name'
9585
  shrext_cmds=".dll"
9586
  need_lib_prefix=no
9587
  library_names_spec='$libname${shared_ext} $libname.a'
9588
  dynamic_linker='OS/2 ld.exe'
9589
  shlibpath_var=LIBPATH
9590
  ;;
9591
 
9592
osf3* | osf4* | osf5*)
9593
  version_type=osf
9594
  need_lib_prefix=no
9595
  need_version=no
9596
  soname_spec='${libname}${release}${shared_ext}$major'
9597
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598
  shlibpath_var=LD_LIBRARY_PATH
9599
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9600
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9601
  ;;
9602
 
9603
rdos*)
9604
  dynamic_linker=no
9605
  ;;
9606
 
9607
solaris*)
9608
  version_type=linux
9609
  need_lib_prefix=no
9610
  need_version=no
9611
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612
  soname_spec='${libname}${release}${shared_ext}$major'
9613
  shlibpath_var=LD_LIBRARY_PATH
9614
  shlibpath_overrides_runpath=yes
9615
  hardcode_into_libs=yes
9616
  # ldd complains unless libraries are executable
9617
  postinstall_cmds='chmod +x $lib'
9618
  ;;
9619
 
9620
sunos4*)
9621
  version_type=sunos
9622
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9623
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9624
  shlibpath_var=LD_LIBRARY_PATH
9625
  shlibpath_overrides_runpath=yes
9626
  if test "$with_gnu_ld" = yes; then
9627
    need_lib_prefix=no
9628
  fi
9629
  need_version=yes
9630
  ;;
9631
 
9632
sysv4 | sysv4.3*)
9633
  version_type=linux
9634
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9635
  soname_spec='${libname}${release}${shared_ext}$major'
9636
  shlibpath_var=LD_LIBRARY_PATH
9637
  case $host_vendor in
9638
    sni)
9639
      shlibpath_overrides_runpath=no
9640
      need_lib_prefix=no
9641
      runpath_var=LD_RUN_PATH
9642
      ;;
9643
    siemens)
9644
      need_lib_prefix=no
9645
      ;;
9646
    motorola)
9647
      need_lib_prefix=no
9648
      need_version=no
9649
      shlibpath_overrides_runpath=no
9650
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9651
      ;;
9652
  esac
9653
  ;;
9654
 
9655
sysv4*MP*)
9656
  if test -d /usr/nec ;then
9657
    version_type=linux
9658
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9659
    soname_spec='$libname${shared_ext}.$major'
9660
    shlibpath_var=LD_LIBRARY_PATH
9661
  fi
9662
  ;;
9663
 
9664
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9665
  version_type=freebsd-elf
9666
  need_lib_prefix=no
9667
  need_version=no
9668
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9669
  soname_spec='${libname}${release}${shared_ext}$major'
9670
  shlibpath_var=LD_LIBRARY_PATH
9671 82 jeremybenn
  shlibpath_overrides_runpath=yes
9672 19 jeremybenn
  hardcode_into_libs=yes
9673
  if test "$with_gnu_ld" = yes; then
9674
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9675
  else
9676
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9677
    case $host_os in
9678
      sco3.2v5*)
9679
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9680
        ;;
9681
    esac
9682
  fi
9683
  sys_lib_dlsearch_path_spec='/usr/lib'
9684
  ;;
9685
 
9686 82 jeremybenn
tpf*)
9687
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9688
  version_type=linux
9689
  need_lib_prefix=no
9690
  need_version=no
9691
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9692
  shlibpath_var=LD_LIBRARY_PATH
9693
  shlibpath_overrides_runpath=no
9694
  hardcode_into_libs=yes
9695
  ;;
9696
 
9697 19 jeremybenn
uts4*)
9698
  version_type=linux
9699
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9700
  soname_spec='${libname}${release}${shared_ext}$major'
9701
  shlibpath_var=LD_LIBRARY_PATH
9702
  ;;
9703
 
9704
*)
9705
  dynamic_linker=no
9706
  ;;
9707
esac
9708 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9709
$as_echo "$dynamic_linker" >&6; }
9710 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9711
 
9712
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9713
if test "$GCC" = yes; then
9714
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9715
fi
9716
 
9717 82 jeremybenn
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9718
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9719
fi
9720
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9721
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9722
fi
9723
 
9724
 
9725
 
9726
 
9727
 
9728
 
9729
 
9730
 
9731
 
9732
 
9733
 
9734
 
9735
 
9736
 
9737
 
9738
 
9739
 
9740
 
9741
 
9742
 
9743
 
9744
 
9745
 
9746
 
9747
 
9748
 
9749
 
9750
 
9751
 
9752
 
9753
 
9754
 
9755
 
9756
 
9757
 
9758
 
9759
 
9760
 
9761
 
9762
 
9763
 
9764
 
9765
 
9766
 
9767
 
9768
 
9769
 
9770
 
9771
 
9772
 
9773
 
9774
 
9775
 
9776
 
9777
 
9778
 
9779
 
9780
 
9781
 
9782
 
9783
 
9784
 
9785
 
9786
 
9787
 
9788
 
9789
 
9790
 
9791
 
9792
 
9793
 
9794
 
9795
 
9796
 
9797
 
9798
 
9799
 
9800
 
9801
 
9802
 
9803
 
9804
 
9805
 
9806
 
9807
 
9808
 
9809
 
9810
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9811
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9812 19 jeremybenn
hardcode_action=
9813 82 jeremybenn
if test -n "$hardcode_libdir_flag_spec" ||
9814
   test -n "$runpath_var" ||
9815 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9816
 
9817 82 jeremybenn
  # We can hardcode non-existent directories.
9818 19 jeremybenn
  if test "$hardcode_direct" != no &&
9819
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9820
     # have to relink, otherwise we might link with an installed library
9821
     # when we should be linking with a yet-to-be-installed one
9822 82 jeremybenn
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9823 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9824
    # Linking always hardcodes the temporary library directory.
9825
    hardcode_action=relink
9826
  else
9827
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9828
    hardcode_action=immediate
9829
  fi
9830
else
9831
  # We cannot hardcode anything, or else we can only hardcode existing
9832
  # directories.
9833
  hardcode_action=unsupported
9834
fi
9835 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9836
$as_echo "$hardcode_action" >&6; }
9837 19 jeremybenn
 
9838 82 jeremybenn
if test "$hardcode_action" = relink ||
9839
   test "$inherit_rpath" = yes; then
9840 19 jeremybenn
  # Fast installation is not supported
9841
  enable_fast_install=no
9842
elif test "$shlibpath_overrides_runpath" = yes ||
9843
     test "$enable_shared" = no; then
9844
  # Fast installation is not necessary
9845
  enable_fast_install=needless
9846
fi
9847
 
9848
 
9849 82 jeremybenn
 
9850
 
9851
 
9852
 
9853
  if test "x$enable_dlopen" != xyes; then
9854 19 jeremybenn
  enable_dlopen=unknown
9855
  enable_dlopen_self=unknown
9856
  enable_dlopen_self_static=unknown
9857
else
9858
  lt_cv_dlopen=no
9859
  lt_cv_dlopen_libs=
9860
 
9861
  case $host_os in
9862
  beos*)
9863
    lt_cv_dlopen="load_add_on"
9864
    lt_cv_dlopen_libs=
9865
    lt_cv_dlopen_self=yes
9866
    ;;
9867
 
9868 82 jeremybenn
  mingw* | pw32* | cegcc*)
9869 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9870
    lt_cv_dlopen_libs=
9871 82 jeremybenn
    ;;
9872 19 jeremybenn
 
9873
  cygwin*)
9874
    lt_cv_dlopen="dlopen"
9875
    lt_cv_dlopen_libs=
9876 82 jeremybenn
    ;;
9877 19 jeremybenn
 
9878
  darwin*)
9879
  # if libdl is installed we need to link against it
9880 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9881
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9882 19 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9883 82 jeremybenn
  $as_echo_n "(cached) " >&6
9884 19 jeremybenn
else
9885
  ac_check_lib_save_LIBS=$LIBS
9886
LIBS="-ldl  $LIBS"
9887
cat >conftest.$ac_ext <<_ACEOF
9888
/* confdefs.h.  */
9889
_ACEOF
9890
cat confdefs.h >>conftest.$ac_ext
9891
cat >>conftest.$ac_ext <<_ACEOF
9892
/* end confdefs.h.  */
9893
 
9894
/* Override any GCC internal prototype to avoid an error.
9895
   Use char because int might match the return type of a GCC
9896
   builtin and then its argument prototype would still apply.  */
9897
#ifdef __cplusplus
9898
extern "C"
9899
#endif
9900
char dlopen ();
9901
int
9902
main ()
9903
{
9904
return dlopen ();
9905
  ;
9906
  return 0;
9907
}
9908
_ACEOF
9909
rm -f conftest.$ac_objext conftest$ac_exeext
9910
if { (ac_try="$ac_link"
9911
case "(($ac_try" in
9912
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913
  *) ac_try_echo=$ac_try;;
9914
esac
9915 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9916
$as_echo "$ac_try_echo") >&5
9917 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
9918
  ac_status=$?
9919
  grep -v '^ *+' conftest.er1 >conftest.err
9920
  rm -f conftest.er1
9921
  cat conftest.err >&5
9922 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 19 jeremybenn
  (exit $ac_status); } && {
9924
         test -z "$ac_c_werror_flag" ||
9925
         test ! -s conftest.err
9926 82 jeremybenn
       } && test -s conftest$ac_exeext && {
9927
         test "$cross_compiling" = yes ||
9928
         $as_test_x conftest$ac_exeext
9929
       }; then
9930 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9931
else
9932 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9933 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9934
 
9935
        ac_cv_lib_dl_dlopen=no
9936
fi
9937
 
9938 82 jeremybenn
rm -rf conftest.dSYM
9939 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9940
      conftest$ac_exeext conftest.$ac_ext
9941
LIBS=$ac_check_lib_save_LIBS
9942
fi
9943 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9944
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9945
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9946 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9947
else
9948
 
9949
    lt_cv_dlopen="dyld"
9950
    lt_cv_dlopen_libs=
9951
    lt_cv_dlopen_self=yes
9952
 
9953
fi
9954
 
9955 82 jeremybenn
    ;;
9956 19 jeremybenn
 
9957
  *)
9958 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9959
$as_echo_n "checking for shl_load... " >&6; }
9960 19 jeremybenn
if test "${ac_cv_func_shl_load+set}" = set; then
9961 82 jeremybenn
  $as_echo_n "(cached) " >&6
9962 19 jeremybenn
else
9963
  cat >conftest.$ac_ext <<_ACEOF
9964
/* confdefs.h.  */
9965
_ACEOF
9966
cat confdefs.h >>conftest.$ac_ext
9967
cat >>conftest.$ac_ext <<_ACEOF
9968
/* end confdefs.h.  */
9969
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9970
   For example, HP-UX 11i  declares gettimeofday.  */
9971
#define shl_load innocuous_shl_load
9972
 
9973
/* System header to define __stub macros and hopefully few prototypes,
9974
    which can conflict with char shl_load (); below.
9975
    Prefer  to  if __STDC__ is defined, since
9976
     exists even on freestanding compilers.  */
9977
 
9978
#ifdef __STDC__
9979
# include 
9980
#else
9981
# include 
9982
#endif
9983
 
9984
#undef shl_load
9985
 
9986
/* Override any GCC internal prototype to avoid an error.
9987
   Use char because int might match the return type of a GCC
9988
   builtin and then its argument prototype would still apply.  */
9989
#ifdef __cplusplus
9990
extern "C"
9991
#endif
9992
char shl_load ();
9993
/* The GNU C library defines this for functions which it implements
9994
    to always fail with ENOSYS.  Some functions are actually named
9995
    something starting with __ and the normal name is an alias.  */
9996
#if defined __stub_shl_load || defined __stub___shl_load
9997
choke me
9998
#endif
9999
 
10000
int
10001
main ()
10002
{
10003
return shl_load ();
10004
  ;
10005
  return 0;
10006
}
10007
_ACEOF
10008
rm -f conftest.$ac_objext conftest$ac_exeext
10009
if { (ac_try="$ac_link"
10010
case "(($ac_try" in
10011
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012
  *) ac_try_echo=$ac_try;;
10013
esac
10014 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10015
$as_echo "$ac_try_echo") >&5
10016 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10017
  ac_status=$?
10018
  grep -v '^ *+' conftest.er1 >conftest.err
10019
  rm -f conftest.er1
10020
  cat conftest.err >&5
10021 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 19 jeremybenn
  (exit $ac_status); } && {
10023
         test -z "$ac_c_werror_flag" ||
10024
         test ! -s conftest.err
10025 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10026
         test "$cross_compiling" = yes ||
10027
         $as_test_x conftest$ac_exeext
10028
       }; then
10029 19 jeremybenn
  ac_cv_func_shl_load=yes
10030
else
10031 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10032 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10033
 
10034
        ac_cv_func_shl_load=no
10035
fi
10036
 
10037 82 jeremybenn
rm -rf conftest.dSYM
10038 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10039
      conftest$ac_exeext conftest.$ac_ext
10040
fi
10041 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10042
$as_echo "$ac_cv_func_shl_load" >&6; }
10043
if test "x$ac_cv_func_shl_load" = x""yes; then
10044 19 jeremybenn
  lt_cv_dlopen="shl_load"
10045
else
10046 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10047
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10048 19 jeremybenn
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10049 82 jeremybenn
  $as_echo_n "(cached) " >&6
10050 19 jeremybenn
else
10051
  ac_check_lib_save_LIBS=$LIBS
10052
LIBS="-ldld  $LIBS"
10053
cat >conftest.$ac_ext <<_ACEOF
10054
/* confdefs.h.  */
10055
_ACEOF
10056
cat confdefs.h >>conftest.$ac_ext
10057
cat >>conftest.$ac_ext <<_ACEOF
10058
/* end confdefs.h.  */
10059
 
10060
/* Override any GCC internal prototype to avoid an error.
10061
   Use char because int might match the return type of a GCC
10062
   builtin and then its argument prototype would still apply.  */
10063
#ifdef __cplusplus
10064
extern "C"
10065
#endif
10066
char shl_load ();
10067
int
10068
main ()
10069
{
10070
return shl_load ();
10071
  ;
10072
  return 0;
10073
}
10074
_ACEOF
10075
rm -f conftest.$ac_objext conftest$ac_exeext
10076
if { (ac_try="$ac_link"
10077
case "(($ac_try" in
10078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079
  *) ac_try_echo=$ac_try;;
10080
esac
10081 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10082
$as_echo "$ac_try_echo") >&5
10083 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10084
  ac_status=$?
10085
  grep -v '^ *+' conftest.er1 >conftest.err
10086
  rm -f conftest.er1
10087
  cat conftest.err >&5
10088 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 19 jeremybenn
  (exit $ac_status); } && {
10090
         test -z "$ac_c_werror_flag" ||
10091
         test ! -s conftest.err
10092 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10093
         test "$cross_compiling" = yes ||
10094
         $as_test_x conftest$ac_exeext
10095
       }; then
10096 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
10097
else
10098 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10099 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10100
 
10101
        ac_cv_lib_dld_shl_load=no
10102
fi
10103
 
10104 82 jeremybenn
rm -rf conftest.dSYM
10105 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10106
      conftest$ac_exeext conftest.$ac_ext
10107
LIBS=$ac_check_lib_save_LIBS
10108
fi
10109 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10110
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10111
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10112
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10113 19 jeremybenn
else
10114 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10115
$as_echo_n "checking for dlopen... " >&6; }
10116 19 jeremybenn
if test "${ac_cv_func_dlopen+set}" = set; then
10117 82 jeremybenn
  $as_echo_n "(cached) " >&6
10118 19 jeremybenn
else
10119
  cat >conftest.$ac_ext <<_ACEOF
10120
/* confdefs.h.  */
10121
_ACEOF
10122
cat confdefs.h >>conftest.$ac_ext
10123
cat >>conftest.$ac_ext <<_ACEOF
10124
/* end confdefs.h.  */
10125
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10126
   For example, HP-UX 11i  declares gettimeofday.  */
10127
#define dlopen innocuous_dlopen
10128
 
10129
/* System header to define __stub macros and hopefully few prototypes,
10130
    which can conflict with char dlopen (); below.
10131
    Prefer  to  if __STDC__ is defined, since
10132
     exists even on freestanding compilers.  */
10133
 
10134
#ifdef __STDC__
10135
# include 
10136
#else
10137
# include 
10138
#endif
10139
 
10140
#undef dlopen
10141
 
10142
/* Override any GCC internal prototype to avoid an error.
10143
   Use char because int might match the return type of a GCC
10144
   builtin and then its argument prototype would still apply.  */
10145
#ifdef __cplusplus
10146
extern "C"
10147
#endif
10148
char dlopen ();
10149
/* The GNU C library defines this for functions which it implements
10150
    to always fail with ENOSYS.  Some functions are actually named
10151
    something starting with __ and the normal name is an alias.  */
10152
#if defined __stub_dlopen || defined __stub___dlopen
10153
choke me
10154
#endif
10155
 
10156
int
10157
main ()
10158
{
10159
return dlopen ();
10160
  ;
10161
  return 0;
10162
}
10163
_ACEOF
10164
rm -f conftest.$ac_objext conftest$ac_exeext
10165
if { (ac_try="$ac_link"
10166
case "(($ac_try" in
10167
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168
  *) ac_try_echo=$ac_try;;
10169
esac
10170 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10171
$as_echo "$ac_try_echo") >&5
10172 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10173
  ac_status=$?
10174
  grep -v '^ *+' conftest.er1 >conftest.err
10175
  rm -f conftest.er1
10176
  cat conftest.err >&5
10177 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 19 jeremybenn
  (exit $ac_status); } && {
10179
         test -z "$ac_c_werror_flag" ||
10180
         test ! -s conftest.err
10181 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10182
         test "$cross_compiling" = yes ||
10183
         $as_test_x conftest$ac_exeext
10184
       }; then
10185 19 jeremybenn
  ac_cv_func_dlopen=yes
10186
else
10187 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10188 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10189
 
10190
        ac_cv_func_dlopen=no
10191
fi
10192
 
10193 82 jeremybenn
rm -rf conftest.dSYM
10194 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10195
      conftest$ac_exeext conftest.$ac_ext
10196
fi
10197 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10198
$as_echo "$ac_cv_func_dlopen" >&6; }
10199
if test "x$ac_cv_func_dlopen" = x""yes; then
10200 19 jeremybenn
  lt_cv_dlopen="dlopen"
10201
else
10202 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10203
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10204 19 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10205 82 jeremybenn
  $as_echo_n "(cached) " >&6
10206 19 jeremybenn
else
10207
  ac_check_lib_save_LIBS=$LIBS
10208
LIBS="-ldl  $LIBS"
10209
cat >conftest.$ac_ext <<_ACEOF
10210
/* confdefs.h.  */
10211
_ACEOF
10212
cat confdefs.h >>conftest.$ac_ext
10213
cat >>conftest.$ac_ext <<_ACEOF
10214
/* end confdefs.h.  */
10215
 
10216
/* Override any GCC internal prototype to avoid an error.
10217
   Use char because int might match the return type of a GCC
10218
   builtin and then its argument prototype would still apply.  */
10219
#ifdef __cplusplus
10220
extern "C"
10221
#endif
10222
char dlopen ();
10223
int
10224
main ()
10225
{
10226
return dlopen ();
10227
  ;
10228
  return 0;
10229
}
10230
_ACEOF
10231
rm -f conftest.$ac_objext conftest$ac_exeext
10232
if { (ac_try="$ac_link"
10233
case "(($ac_try" in
10234
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235
  *) ac_try_echo=$ac_try;;
10236
esac
10237 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10238
$as_echo "$ac_try_echo") >&5
10239 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10240
  ac_status=$?
10241
  grep -v '^ *+' conftest.er1 >conftest.err
10242
  rm -f conftest.er1
10243
  cat conftest.err >&5
10244 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 19 jeremybenn
  (exit $ac_status); } && {
10246
         test -z "$ac_c_werror_flag" ||
10247
         test ! -s conftest.err
10248 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10249
         test "$cross_compiling" = yes ||
10250
         $as_test_x conftest$ac_exeext
10251
       }; then
10252 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
10253
else
10254 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10255 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10256
 
10257
        ac_cv_lib_dl_dlopen=no
10258
fi
10259
 
10260 82 jeremybenn
rm -rf conftest.dSYM
10261 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10262
      conftest$ac_exeext conftest.$ac_ext
10263
LIBS=$ac_check_lib_save_LIBS
10264
fi
10265 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10266
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10267
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10268 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10269
else
10270 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10271
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10272 19 jeremybenn
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10273 82 jeremybenn
  $as_echo_n "(cached) " >&6
10274 19 jeremybenn
else
10275
  ac_check_lib_save_LIBS=$LIBS
10276
LIBS="-lsvld  $LIBS"
10277
cat >conftest.$ac_ext <<_ACEOF
10278
/* confdefs.h.  */
10279
_ACEOF
10280
cat confdefs.h >>conftest.$ac_ext
10281
cat >>conftest.$ac_ext <<_ACEOF
10282
/* end confdefs.h.  */
10283
 
10284
/* Override any GCC internal prototype to avoid an error.
10285
   Use char because int might match the return type of a GCC
10286
   builtin and then its argument prototype would still apply.  */
10287
#ifdef __cplusplus
10288
extern "C"
10289
#endif
10290
char dlopen ();
10291
int
10292
main ()
10293
{
10294
return dlopen ();
10295
  ;
10296
  return 0;
10297
}
10298
_ACEOF
10299
rm -f conftest.$ac_objext conftest$ac_exeext
10300
if { (ac_try="$ac_link"
10301
case "(($ac_try" in
10302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303
  *) ac_try_echo=$ac_try;;
10304
esac
10305 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10306
$as_echo "$ac_try_echo") >&5
10307 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10308
  ac_status=$?
10309
  grep -v '^ *+' conftest.er1 >conftest.err
10310
  rm -f conftest.er1
10311
  cat conftest.err >&5
10312 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 19 jeremybenn
  (exit $ac_status); } && {
10314
         test -z "$ac_c_werror_flag" ||
10315
         test ! -s conftest.err
10316 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10317
         test "$cross_compiling" = yes ||
10318
         $as_test_x conftest$ac_exeext
10319
       }; then
10320 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
10321
else
10322 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10323 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10324
 
10325
        ac_cv_lib_svld_dlopen=no
10326
fi
10327
 
10328 82 jeremybenn
rm -rf conftest.dSYM
10329 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10330
      conftest$ac_exeext conftest.$ac_ext
10331
LIBS=$ac_check_lib_save_LIBS
10332
fi
10333 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10334
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10335
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10336 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10337
else
10338 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10339
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10340 19 jeremybenn
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10341 82 jeremybenn
  $as_echo_n "(cached) " >&6
10342 19 jeremybenn
else
10343
  ac_check_lib_save_LIBS=$LIBS
10344
LIBS="-ldld  $LIBS"
10345
cat >conftest.$ac_ext <<_ACEOF
10346
/* confdefs.h.  */
10347
_ACEOF
10348
cat confdefs.h >>conftest.$ac_ext
10349
cat >>conftest.$ac_ext <<_ACEOF
10350
/* end confdefs.h.  */
10351
 
10352
/* Override any GCC internal prototype to avoid an error.
10353
   Use char because int might match the return type of a GCC
10354
   builtin and then its argument prototype would still apply.  */
10355
#ifdef __cplusplus
10356
extern "C"
10357
#endif
10358
char dld_link ();
10359
int
10360
main ()
10361
{
10362
return dld_link ();
10363
  ;
10364
  return 0;
10365
}
10366
_ACEOF
10367
rm -f conftest.$ac_objext conftest$ac_exeext
10368
if { (ac_try="$ac_link"
10369
case "(($ac_try" in
10370
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371
  *) ac_try_echo=$ac_try;;
10372
esac
10373 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10374
$as_echo "$ac_try_echo") >&5
10375 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10376
  ac_status=$?
10377
  grep -v '^ *+' conftest.er1 >conftest.err
10378
  rm -f conftest.er1
10379
  cat conftest.err >&5
10380 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 19 jeremybenn
  (exit $ac_status); } && {
10382
         test -z "$ac_c_werror_flag" ||
10383
         test ! -s conftest.err
10384 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10385
         test "$cross_compiling" = yes ||
10386
         $as_test_x conftest$ac_exeext
10387
       }; then
10388 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
10389
else
10390 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10391 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10392
 
10393
        ac_cv_lib_dld_dld_link=no
10394
fi
10395
 
10396 82 jeremybenn
rm -rf conftest.dSYM
10397 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10398
      conftest$ac_exeext conftest.$ac_ext
10399
LIBS=$ac_check_lib_save_LIBS
10400
fi
10401 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10402
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10403
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10404
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10405 19 jeremybenn
fi
10406
 
10407
 
10408
fi
10409
 
10410
 
10411
fi
10412
 
10413
 
10414
fi
10415
 
10416
 
10417
fi
10418
 
10419
 
10420
fi
10421
 
10422
    ;;
10423
  esac
10424
 
10425
  if test "x$lt_cv_dlopen" != xno; then
10426
    enable_dlopen=yes
10427
  else
10428
    enable_dlopen=no
10429
  fi
10430
 
10431
  case $lt_cv_dlopen in
10432
  dlopen)
10433
    save_CPPFLAGS="$CPPFLAGS"
10434
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10435
 
10436
    save_LDFLAGS="$LDFLAGS"
10437
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10438
 
10439
    save_LIBS="$LIBS"
10440
    LIBS="$lt_cv_dlopen_libs $LIBS"
10441
 
10442 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10443
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10444 19 jeremybenn
if test "${lt_cv_dlopen_self+set}" = set; then
10445 82 jeremybenn
  $as_echo_n "(cached) " >&6
10446 19 jeremybenn
else
10447
          if test "$cross_compiling" = yes; then :
10448
  lt_cv_dlopen_self=cross
10449
else
10450
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10451
  lt_status=$lt_dlunknown
10452 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10453 93 jeremybenn
#line 10453 "configure"
10454 19 jeremybenn
#include "confdefs.h"
10455
 
10456
#if HAVE_DLFCN_H
10457
#include 
10458
#endif
10459
 
10460
#include 
10461
 
10462
#ifdef RTLD_GLOBAL
10463
#  define LT_DLGLOBAL           RTLD_GLOBAL
10464
#else
10465
#  ifdef DL_GLOBAL
10466
#    define LT_DLGLOBAL         DL_GLOBAL
10467
#  else
10468
#    define LT_DLGLOBAL         0
10469
#  endif
10470
#endif
10471
 
10472
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10473
   find out it does not work in some platform. */
10474
#ifndef LT_DLLAZY_OR_NOW
10475
#  ifdef RTLD_LAZY
10476
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10477
#  else
10478
#    ifdef DL_LAZY
10479
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10480
#    else
10481
#      ifdef RTLD_NOW
10482
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10483
#      else
10484
#        ifdef DL_NOW
10485
#          define LT_DLLAZY_OR_NOW      DL_NOW
10486
#        else
10487
#          define LT_DLLAZY_OR_NOW      0
10488
#        endif
10489
#      endif
10490
#    endif
10491
#  endif
10492
#endif
10493
 
10494
void fnord() { int i=42;}
10495
int main ()
10496
{
10497
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10498
  int status = $lt_dlunknown;
10499
 
10500
  if (self)
10501
    {
10502
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10503
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10504
      /* dlclose (self); */
10505
    }
10506
  else
10507
    puts (dlerror ());
10508
 
10509 82 jeremybenn
  return status;
10510 19 jeremybenn
}
10511 82 jeremybenn
_LT_EOF
10512 19 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10513
  (eval $ac_link) 2>&5
10514
  ac_status=$?
10515 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 19 jeremybenn
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10517
    (./conftest; exit; ) >&5 2>/dev/null
10518
    lt_status=$?
10519
    case x$lt_status in
10520
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10521
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10522
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10523
    esac
10524
  else :
10525
    # compilation failed
10526
    lt_cv_dlopen_self=no
10527
  fi
10528
fi
10529
rm -fr conftest*
10530
 
10531
 
10532
fi
10533 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10534
$as_echo "$lt_cv_dlopen_self" >&6; }
10535 19 jeremybenn
 
10536
    if test "x$lt_cv_dlopen_self" = xyes; then
10537
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10538 82 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10539
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10540 19 jeremybenn
if test "${lt_cv_dlopen_self_static+set}" = set; then
10541 82 jeremybenn
  $as_echo_n "(cached) " >&6
10542 19 jeremybenn
else
10543
          if test "$cross_compiling" = yes; then :
10544
  lt_cv_dlopen_self_static=cross
10545
else
10546
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10547
  lt_status=$lt_dlunknown
10548 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10549 93 jeremybenn
#line 10549 "configure"
10550 19 jeremybenn
#include "confdefs.h"
10551
 
10552
#if HAVE_DLFCN_H
10553
#include 
10554
#endif
10555
 
10556
#include 
10557
 
10558
#ifdef RTLD_GLOBAL
10559
#  define LT_DLGLOBAL           RTLD_GLOBAL
10560
#else
10561
#  ifdef DL_GLOBAL
10562
#    define LT_DLGLOBAL         DL_GLOBAL
10563
#  else
10564
#    define LT_DLGLOBAL         0
10565
#  endif
10566
#endif
10567
 
10568
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10569
   find out it does not work in some platform. */
10570
#ifndef LT_DLLAZY_OR_NOW
10571
#  ifdef RTLD_LAZY
10572
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10573
#  else
10574
#    ifdef DL_LAZY
10575
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10576
#    else
10577
#      ifdef RTLD_NOW
10578
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10579
#      else
10580
#        ifdef DL_NOW
10581
#          define LT_DLLAZY_OR_NOW      DL_NOW
10582
#        else
10583
#          define LT_DLLAZY_OR_NOW      0
10584
#        endif
10585
#      endif
10586
#    endif
10587
#  endif
10588
#endif
10589
 
10590
void fnord() { int i=42;}
10591
int main ()
10592
{
10593
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10594
  int status = $lt_dlunknown;
10595
 
10596
  if (self)
10597
    {
10598
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10599
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10600
      /* dlclose (self); */
10601
    }
10602
  else
10603
    puts (dlerror ());
10604
 
10605 82 jeremybenn
  return status;
10606 19 jeremybenn
}
10607 82 jeremybenn
_LT_EOF
10608 19 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10609
  (eval $ac_link) 2>&5
10610
  ac_status=$?
10611 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 19 jeremybenn
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10613
    (./conftest; exit; ) >&5 2>/dev/null
10614
    lt_status=$?
10615
    case x$lt_status in
10616
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10617
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10618
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10619
    esac
10620
  else :
10621
    # compilation failed
10622
    lt_cv_dlopen_self_static=no
10623
  fi
10624
fi
10625
rm -fr conftest*
10626
 
10627
 
10628
fi
10629 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10630
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10631 19 jeremybenn
    fi
10632
 
10633
    CPPFLAGS="$save_CPPFLAGS"
10634
    LDFLAGS="$save_LDFLAGS"
10635
    LIBS="$save_LIBS"
10636
    ;;
10637
  esac
10638
 
10639
  case $lt_cv_dlopen_self in
10640
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10641
  *) enable_dlopen_self=unknown ;;
10642
  esac
10643
 
10644
  case $lt_cv_dlopen_self_static in
10645
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10646
  *) enable_dlopen_self_static=unknown ;;
10647
  esac
10648
fi
10649
 
10650
 
10651
 
10652
 
10653
 
10654
 
10655
 
10656
 
10657
 
10658
 
10659
 
10660
 
10661
 
10662
 
10663
 
10664
 
10665
 
10666 82 jeremybenn
striplib=
10667
old_striplib=
10668
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10669
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10670
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10671
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10672
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10673
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10674
$as_echo "yes" >&6; }
10675
else
10676
# FIXME - insert some real tests, host_os isn't really good enough
10677 19 jeremybenn
  case $host_os in
10678 82 jeremybenn
  darwin*)
10679
    if test -n "$STRIP" ; then
10680
      striplib="$STRIP -x"
10681
      old_striplib="$STRIP -S"
10682
      { $as_echo "$as_me:$LINENO: result: yes" >&5
10683
$as_echo "yes" >&6; }
10684 19 jeremybenn
    else
10685 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: no" >&5
10686
$as_echo "no" >&6; }
10687 19 jeremybenn
    fi
10688
    ;;
10689
  *)
10690 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: no" >&5
10691
$as_echo "no" >&6; }
10692 19 jeremybenn
    ;;
10693
  esac
10694
fi
10695
 
10696
 
10697
 
10698
 
10699
 
10700
 
10701
 
10702
 
10703
 
10704
 
10705
 
10706
 
10707 82 jeremybenn
  # Report which library types will actually be built
10708
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10709
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10710
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10711
$as_echo "$can_build_shared" >&6; }
10712 19 jeremybenn
 
10713 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10714
$as_echo_n "checking whether to build shared libraries... " >&6; }
10715
  test "$can_build_shared" = "no" && enable_shared=no
10716 19 jeremybenn
 
10717 82 jeremybenn
  # On AIX, shared libraries and static libraries use the same namespace, and
10718
  # are all built from PIC.
10719 19 jeremybenn
  case $host_os in
10720 82 jeremybenn
  aix3*)
10721 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10722 82 jeremybenn
    if test -n "$RANLIB"; then
10723
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10724
      postinstall_cmds='$RANLIB $lib'
10725 19 jeremybenn
    fi
10726
    ;;
10727
 
10728 82 jeremybenn
  aix[4-9]*)
10729
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10730
      test "$enable_shared" = yes && enable_static=no
10731 19 jeremybenn
    fi
10732
    ;;
10733
  esac
10734 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10735
$as_echo "$enable_shared" >&6; }
10736 19 jeremybenn
 
10737 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10738
$as_echo_n "checking whether to build static libraries... " >&6; }
10739
  # Make sure either enable_shared or enable_static is yes.
10740
  test "$enable_shared" = yes || enable_static=yes
10741
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10742
$as_echo "$enable_static" >&6; }
10743 19 jeremybenn
 
10744
 
10745
 
10746
 
10747
fi
10748
ac_ext=c
10749
ac_cpp='$CPP $CPPFLAGS'
10750
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10751
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10752
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10753
 
10754
CC="$lt_save_CC"
10755
 
10756
 
10757
 
10758
 
10759
 
10760
 
10761
 
10762
 
10763
 
10764
 
10765
 
10766
 
10767
 
10768 82 jeremybenn
        ac_config_commands="$ac_config_commands libtool"
10769 19 jeremybenn
 
10770
 
10771
 
10772
 
10773 82 jeremybenn
# Only expand once:
10774 19 jeremybenn
 
10775
 
10776 82 jeremybenn
am__api_version='1.11'
10777 19 jeremybenn
 
10778
# Find a good install program.  We prefer a C program (faster),
10779
# so one script is as good as another.  But avoid the broken or
10780
# incompatible versions:
10781
# SysV /etc/install, /usr/sbin/install
10782
# SunOS /usr/etc/install
10783
# IRIX /sbin/install
10784
# AIX /bin/install
10785
# AmigaOS /C/install, which installs bootblocks on floppy discs
10786
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10787
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10788
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10789
# OS/2's system install, which has a completely different semantic
10790
# ./install, which can be erroneously created by make from ./install.sh.
10791 82 jeremybenn
# Reject install programs that cannot install multiple files.
10792
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10793
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10794 19 jeremybenn
if test -z "$INSTALL"; then
10795
if test "${ac_cv_path_install+set}" = set; then
10796 82 jeremybenn
  $as_echo_n "(cached) " >&6
10797 19 jeremybenn
else
10798
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799
for as_dir in $PATH
10800
do
10801
  IFS=$as_save_IFS
10802
  test -z "$as_dir" && as_dir=.
10803
  # Account for people who put trailing slashes in PATH elements.
10804
case $as_dir/ in
10805
  ./ | .// | /cC/* | \
10806
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10807
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10808
  /usr/ucb/* ) ;;
10809
  *)
10810
    # OSF1 and SCO ODT 3.0 have their own names for install.
10811
    # Don't use installbsd from OSF since it installs stuff as root
10812
    # by default.
10813
    for ac_prog in ginstall scoinst install; do
10814
      for ac_exec_ext in '' $ac_executable_extensions; do
10815
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10816
          if test $ac_prog = install &&
10817
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10818
            # AIX install.  It has an incompatible calling convention.
10819
            :
10820
          elif test $ac_prog = install &&
10821
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10822
            # program-specific install script used by HP pwplus--don't use.
10823
            :
10824
          else
10825 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
10826
            echo one > conftest.one
10827
            echo two > conftest.two
10828
            mkdir conftest.dir
10829
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10830
              test -s conftest.one && test -s conftest.two &&
10831
              test -s conftest.dir/conftest.one &&
10832
              test -s conftest.dir/conftest.two
10833
            then
10834
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10835
              break 3
10836
            fi
10837 19 jeremybenn
          fi
10838
        fi
10839
      done
10840
    done
10841
    ;;
10842
esac
10843 82 jeremybenn
 
10844 19 jeremybenn
done
10845
IFS=$as_save_IFS
10846
 
10847 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
10848 19 jeremybenn
 
10849
fi
10850
  if test "${ac_cv_path_install+set}" = set; then
10851
    INSTALL=$ac_cv_path_install
10852
  else
10853
    # As a last resort, use the slow shell script.  Don't cache a
10854
    # value for INSTALL within a source directory, because that will
10855
    # break other packages using the cache if that directory is
10856
    # removed, or if the value is a relative name.
10857
    INSTALL=$ac_install_sh
10858
  fi
10859
fi
10860 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10861
$as_echo "$INSTALL" >&6; }
10862 19 jeremybenn
 
10863
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10864
# It thinks the first close brace ends the variable substitution.
10865
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10866
 
10867
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10868
 
10869
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10870
 
10871 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10872
$as_echo_n "checking whether build environment is sane... " >&6; }
10873 19 jeremybenn
# Just in case
10874
sleep 1
10875
echo timestamp > conftest.file
10876 82 jeremybenn
# Reject unsafe characters in $srcdir or the absolute working directory
10877
# name.  Accept space and tab only in the latter.
10878
am_lf='
10879
'
10880
case `pwd` in
10881
  *[\\\"\#\$\&\'\`$am_lf]*)
10882
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
10883
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
10884
   { (exit 1); exit 1; }; };;
10885
esac
10886
case $srcdir in
10887
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10888
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
10889
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
10890
   { (exit 1); exit 1; }; };;
10891
esac
10892
 
10893 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10894
# arguments.  Must try -L first in case configure is actually a
10895
# symlink; some systems play weird games with the mod time of symlinks
10896
# (eg FreeBSD returns the mod time of the symlink's containing
10897
# directory).
10898
if (
10899 82 jeremybenn
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10900 19 jeremybenn
   if test "$*" = "X"; then
10901
      # -L didn't work.
10902 82 jeremybenn
      set X `ls -t "$srcdir/configure" conftest.file`
10903 19 jeremybenn
   fi
10904
   rm -f conftest.file
10905
   if test "$*" != "X $srcdir/configure conftest.file" \
10906
      && test "$*" != "X conftest.file $srcdir/configure"; then
10907
 
10908
      # If neither matched, then we have a broken ls.  This can happen
10909
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10910
      # broken ls alias from the environment.  This has actually
10911
      # happened.  Such a system could not be considered "sane".
10912 82 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
10913 19 jeremybenn
alias in your environment" >&5
10914 82 jeremybenn
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
10915 19 jeremybenn
alias in your environment" >&2;}
10916
   { (exit 1); exit 1; }; }
10917
   fi
10918
 
10919
   test "$2" = conftest.file
10920
   )
10921
then
10922
   # Ok.
10923
   :
10924
else
10925 82 jeremybenn
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10926 19 jeremybenn
Check your system clock" >&5
10927 82 jeremybenn
$as_echo "$as_me: error: newly created file is older than distributed files!
10928 19 jeremybenn
Check your system clock" >&2;}
10929
   { (exit 1); exit 1; }; }
10930
fi
10931 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: yes" >&5
10932
$as_echo "yes" >&6; }
10933 19 jeremybenn
test "$program_prefix" != NONE &&
10934
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10935
# Use a double $ so make ignores it.
10936
test "$program_suffix" != NONE &&
10937
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10938 82 jeremybenn
# Double any \ or $.
10939 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10940 82 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10941
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10942 19 jeremybenn
 
10943
# expand $ac_aux_dir to an absolute path
10944
am_aux_dir=`cd $ac_aux_dir && pwd`
10945
 
10946 82 jeremybenn
if test x"${MISSING+set}" != xset; then
10947
  case $am_aux_dir in
10948
  *\ * | *\     *)
10949
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10950
  *)
10951
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10952
  esac
10953
fi
10954 19 jeremybenn
# Use eval to expand $SHELL
10955
if eval "$MISSING --run true"; then
10956
  am_missing_run="$MISSING --run "
10957
else
10958
  am_missing_run=
10959 82 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10960
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10961 19 jeremybenn
fi
10962
 
10963 82 jeremybenn
if test x"${install_sh}" != xset; then
10964
  case $am_aux_dir in
10965
  *\ * | *\     *)
10966
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10967
  *)
10968
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10969
  esac
10970
fi
10971
 
10972
# Installed binaries are usually stripped using `strip' when the user
10973
# run `make install-strip'.  However `strip' might not be the right
10974
# tool to use in cross-compilation environments, therefore Automake
10975
# will honor the `STRIP' environment variable to overrule this program.
10976
if test "$cross_compiling" != no; then
10977
  if test -n "$ac_tool_prefix"; then
10978
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10979
set dummy ${ac_tool_prefix}strip; ac_word=$2
10980
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10981
$as_echo_n "checking for $ac_word... " >&6; }
10982
if test "${ac_cv_prog_STRIP+set}" = set; then
10983
  $as_echo_n "(cached) " >&6
10984
else
10985
  if test -n "$STRIP"; then
10986
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10987
else
10988
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989
for as_dir in $PATH
10990
do
10991
  IFS=$as_save_IFS
10992
  test -z "$as_dir" && as_dir=.
10993
  for ac_exec_ext in '' $ac_executable_extensions; do
10994
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10995
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10996
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10997
    break 2
10998
  fi
10999
done
11000
done
11001
IFS=$as_save_IFS
11002
 
11003
fi
11004
fi
11005
STRIP=$ac_cv_prog_STRIP
11006
if test -n "$STRIP"; then
11007
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
11008
$as_echo "$STRIP" >&6; }
11009
else
11010
  { $as_echo "$as_me:$LINENO: result: no" >&5
11011
$as_echo "no" >&6; }
11012
fi
11013
 
11014
 
11015
fi
11016
if test -z "$ac_cv_prog_STRIP"; then
11017
  ac_ct_STRIP=$STRIP
11018
  # Extract the first word of "strip", so it can be a program name with args.
11019
set dummy strip; ac_word=$2
11020
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11021
$as_echo_n "checking for $ac_word... " >&6; }
11022
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11023
  $as_echo_n "(cached) " >&6
11024
else
11025
  if test -n "$ac_ct_STRIP"; then
11026
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11027
else
11028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029
for as_dir in $PATH
11030
do
11031
  IFS=$as_save_IFS
11032
  test -z "$as_dir" && as_dir=.
11033
  for ac_exec_ext in '' $ac_executable_extensions; do
11034
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11035
    ac_cv_prog_ac_ct_STRIP="strip"
11036
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11037
    break 2
11038
  fi
11039
done
11040
done
11041
IFS=$as_save_IFS
11042
 
11043
fi
11044
fi
11045
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11046
if test -n "$ac_ct_STRIP"; then
11047
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11048
$as_echo "$ac_ct_STRIP" >&6; }
11049
else
11050
  { $as_echo "$as_me:$LINENO: result: no" >&5
11051
$as_echo "no" >&6; }
11052
fi
11053
 
11054
  if test "x$ac_ct_STRIP" = x; then
11055
    STRIP=":"
11056
  else
11057
    case $cross_compiling:$ac_tool_warned in
11058
yes:)
11059
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11060
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11061
ac_tool_warned=yes ;;
11062
esac
11063
    STRIP=$ac_ct_STRIP
11064
  fi
11065
else
11066
  STRIP="$ac_cv_prog_STRIP"
11067
fi
11068
 
11069
fi
11070
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11071
 
11072
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
11073
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11074 19 jeremybenn
if test -z "$MKDIR_P"; then
11075
  if test "${ac_cv_path_mkdir+set}" = set; then
11076 82 jeremybenn
  $as_echo_n "(cached) " >&6
11077 19 jeremybenn
else
11078
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11080
do
11081
  IFS=$as_save_IFS
11082
  test -z "$as_dir" && as_dir=.
11083
  for ac_prog in mkdir gmkdir; do
11084
         for ac_exec_ext in '' $ac_executable_extensions; do
11085
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11086
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11087
             'mkdir (GNU coreutils) '* | \
11088
             'mkdir (coreutils) '* | \
11089
             'mkdir (fileutils) '4.1*)
11090
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11091
               break 3;;
11092
           esac
11093
         done
11094
       done
11095
done
11096
IFS=$as_save_IFS
11097
 
11098
fi
11099
 
11100
  if test "${ac_cv_path_mkdir+set}" = set; then
11101
    MKDIR_P="$ac_cv_path_mkdir -p"
11102
  else
11103
    # As a last resort, use the slow shell script.  Don't cache a
11104
    # value for MKDIR_P within a source directory, because that will
11105
    # break other packages using the cache if that directory is
11106
    # removed, or if the value is a relative name.
11107
    test -d ./--version && rmdir ./--version
11108
    MKDIR_P="$ac_install_sh -d"
11109
  fi
11110
fi
11111 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
11112
$as_echo "$MKDIR_P" >&6; }
11113 19 jeremybenn
 
11114
mkdir_p="$MKDIR_P"
11115
case $mkdir_p in
11116
  [\\/$]* | ?:[\\/]*) ;;
11117
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11118
esac
11119
 
11120
for ac_prog in gawk mawk nawk awk
11121
do
11122
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11123
set dummy $ac_prog; ac_word=$2
11124 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11125
$as_echo_n "checking for $ac_word... " >&6; }
11126 19 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then
11127 82 jeremybenn
  $as_echo_n "(cached) " >&6
11128 19 jeremybenn
else
11129
  if test -n "$AWK"; then
11130
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
11131
else
11132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11133
for as_dir in $PATH
11134
do
11135
  IFS=$as_save_IFS
11136
  test -z "$as_dir" && as_dir=.
11137
  for ac_exec_ext in '' $ac_executable_extensions; do
11138
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11139
    ac_cv_prog_AWK="$ac_prog"
11140 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11141 19 jeremybenn
    break 2
11142
  fi
11143
done
11144
done
11145
IFS=$as_save_IFS
11146
 
11147
fi
11148
fi
11149
AWK=$ac_cv_prog_AWK
11150
if test -n "$AWK"; then
11151 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11152
$as_echo "$AWK" >&6; }
11153 19 jeremybenn
else
11154 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11155
$as_echo "no" >&6; }
11156 19 jeremybenn
fi
11157
 
11158
 
11159
  test -n "$AWK" && break
11160
done
11161
 
11162 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11163
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11164
set x ${MAKE-make}
11165
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11166 19 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11167 82 jeremybenn
  $as_echo_n "(cached) " >&6
11168 19 jeremybenn
else
11169
  cat >conftest.make <<\_ACEOF
11170
SHELL = /bin/sh
11171
all:
11172
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11173
_ACEOF
11174
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11175
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11176
  *@@@%%%=?*=@@@%%%*)
11177
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11178
  *)
11179
    eval ac_cv_prog_make_${ac_make}_set=no;;
11180
esac
11181
rm -f conftest.make
11182
fi
11183
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11184 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
11185
$as_echo "yes" >&6; }
11186 19 jeremybenn
  SET_MAKE=
11187
else
11188 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11189
$as_echo "no" >&6; }
11190 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11191
fi
11192
 
11193
rm -rf .tst 2>/dev/null
11194
mkdir .tst 2>/dev/null
11195
if test -d .tst; then
11196
  am__leading_dot=.
11197
else
11198
  am__leading_dot=_
11199
fi
11200
rmdir .tst 2>/dev/null
11201
 
11202
DEPDIR="${am__leading_dot}deps"
11203
 
11204
ac_config_commands="$ac_config_commands depfiles"
11205
 
11206
 
11207
am_make=${MAKE-make}
11208
cat > confinc << 'END'
11209
am__doit:
11210 82 jeremybenn
        @echo this is the am__doit target
11211 19 jeremybenn
.PHONY: am__doit
11212
END
11213
# If we don't find an include directive, just comment out the code.
11214 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
11215
$as_echo_n "checking for style of include used by $am_make... " >&6; }
11216 19 jeremybenn
am__include="#"
11217
am__quote=
11218
_am_result=none
11219
# First try GNU make style include.
11220
echo "include confinc" > confmf
11221 82 jeremybenn
# Ignore all kinds of additional output from `make'.
11222
case `$am_make -s -f confmf 2> /dev/null` in #(
11223
*the\ am__doit\ target*)
11224
  am__include=include
11225
  am__quote=
11226
  _am_result=GNU
11227
  ;;
11228
esac
11229 19 jeremybenn
# Now try BSD make style include.
11230
if test "$am__include" = "#"; then
11231
   echo '.include "confinc"' > confmf
11232 82 jeremybenn
   case `$am_make -s -f confmf 2> /dev/null` in #(
11233
   *the\ am__doit\ target*)
11234
     am__include=.include
11235
     am__quote="\""
11236
     _am_result=BSD
11237
     ;;
11238
   esac
11239 19 jeremybenn
fi
11240
 
11241
 
11242 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
11243
$as_echo "$_am_result" >&6; }
11244 19 jeremybenn
rm -f confinc confmf
11245
 
11246
# Check whether --enable-dependency-tracking was given.
11247
if test "${enable_dependency_tracking+set}" = set; then
11248
  enableval=$enable_dependency_tracking;
11249
fi
11250
 
11251
if test "x$enable_dependency_tracking" != xno; then
11252
  am_depcomp="$ac_aux_dir/depcomp"
11253
  AMDEPBACKSLASH='\'
11254
fi
11255
 if test "x$enable_dependency_tracking" != xno; then
11256
  AMDEP_TRUE=
11257
  AMDEP_FALSE='#'
11258
else
11259
  AMDEP_TRUE='#'
11260
  AMDEP_FALSE=
11261
fi
11262
 
11263
 
11264
if test "`cd $srcdir && pwd`" != "`pwd`"; then
11265
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11266
  # is not polluted with repeated "-I."
11267
  am__isrc=' -I$(srcdir)'
11268
  # test to see if srcdir already configured
11269
  if test -f $srcdir/config.status; then
11270 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11271
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11272 19 jeremybenn
   { (exit 1); exit 1; }; }
11273
  fi
11274
fi
11275
 
11276
# test whether we have cygpath
11277
if test -z "$CYGPATH_W"; then
11278
  if (cygpath --version) >/dev/null 2>/dev/null; then
11279
    CYGPATH_W='cygpath -w'
11280
  else
11281
    CYGPATH_W=echo
11282
  fi
11283
fi
11284
 
11285
 
11286
# Define the identity of the package.
11287
 PACKAGE='or1ksim'
11288 93 jeremybenn
 VERSION='2010-04-28'
11289 19 jeremybenn
 
11290
 
11291
cat >>confdefs.h <<_ACEOF
11292
#define PACKAGE "$PACKAGE"
11293
_ACEOF
11294
 
11295
 
11296
cat >>confdefs.h <<_ACEOF
11297
#define VERSION "$VERSION"
11298
_ACEOF
11299
 
11300
# Some tools Automake needs.
11301
 
11302
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11303
 
11304
 
11305
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11306
 
11307
 
11308
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11309
 
11310
 
11311
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11312
 
11313
 
11314
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11315
 
11316
# We need awk for the "check" target.  The system "awk" is bad on
11317
# some platforms.
11318
# Always define AMTAR for backward compatibility.
11319
 
11320
AMTAR=${AMTAR-"${am_missing_run}tar"}
11321
 
11322
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11323
 
11324
 
11325
 
11326
 
11327
depcc="$CC"   am_compiler_list=
11328
 
11329 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11330
$as_echo_n "checking dependency style of $depcc... " >&6; }
11331 19 jeremybenn
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11332 82 jeremybenn
  $as_echo_n "(cached) " >&6
11333 19 jeremybenn
else
11334
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11335
  # We make a subdir and do the tests there.  Otherwise we can end up
11336
  # making bogus files that we don't know about and never remove.  For
11337
  # instance it was reported that on HP-UX the gcc test will end up
11338
  # making a dummy file named `D' -- because `-MD' means `put the output
11339
  # in D'.
11340
  mkdir conftest.dir
11341
  # Copy depcomp to subdir because otherwise we won't find it if we're
11342
  # using a relative directory.
11343
  cp "$am_depcomp" conftest.dir
11344
  cd conftest.dir
11345
  # We will build objects and dependencies in a subdirectory because
11346
  # it helps to detect inapplicable dependency modes.  For instance
11347
  # both Tru64's cc and ICC support -MD to output dependencies as a
11348
  # side effect of compilation, but ICC will put the dependencies in
11349
  # the current directory while Tru64 will put them in the object
11350
  # directory.
11351
  mkdir sub
11352
 
11353
  am_cv_CC_dependencies_compiler_type=none
11354
  if test "$am_compiler_list" = ""; then
11355
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11356
  fi
11357 82 jeremybenn
  am__universal=false
11358
  case " $depcc " in #(
11359
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11360
     esac
11361
 
11362 19 jeremybenn
  for depmode in $am_compiler_list; do
11363
    # Setup a source with many dependencies, because some compilers
11364
    # like to wrap large dependency lists on column 80 (with \), and
11365
    # we should not choose a depcomp mode which is confused by this.
11366
    #
11367
    # We need to recreate these files for each test, as the compiler may
11368
    # overwrite some of them when testing with obscure command lines.
11369
    # This happens at least with the AIX C compiler.
11370
    : > sub/conftest.c
11371
    for i in 1 2 3 4 5 6; do
11372
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11373
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11374
      # Solaris 8's {/usr,}/bin/sh.
11375
      touch sub/conftst$i.h
11376
    done
11377
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11378
 
11379 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11380
    # mode.  It turns out that the SunPro C++ compiler does not properly
11381
    # handle `-M -o', and we need to detect this.  Also, some Intel
11382
    # versions had trouble with output in subdirs
11383
    am__obj=sub/conftest.${OBJEXT-o}
11384
    am__minus_obj="-o $am__obj"
11385 19 jeremybenn
    case $depmode in
11386 82 jeremybenn
    gcc)
11387
      # This depmode causes a compiler race in universal mode.
11388
      test "$am__universal" = false || continue
11389
      ;;
11390 19 jeremybenn
    nosideeffect)
11391
      # after this tag, mechanisms are not by side-effect, so they'll
11392
      # only be used when explicitly requested
11393
      if test "x$enable_dependency_tracking" = xyes; then
11394
        continue
11395
      else
11396
        break
11397
      fi
11398
      ;;
11399 82 jeremybenn
    msvisualcpp | msvcmsys)
11400
      # This compiler won't grok `-c -o', but also, the minuso test has
11401
      # not run yet.  These depmodes are late enough in the game, and
11402
      # so weak that their functioning should not be impacted.
11403
      am__obj=conftest.${OBJEXT-o}
11404
      am__minus_obj=
11405
      ;;
11406 19 jeremybenn
    none) break ;;
11407
    esac
11408
    if depmode=$depmode \
11409 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11410 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11411 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11412 19 jeremybenn
         >/dev/null 2>conftest.err &&
11413
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11414
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11415 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11416 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11417
      # icc doesn't choke on unknown options, it will just issue warnings
11418
      # or remarks (even with -Werror).  So we grep stderr for any message
11419
      # that says an option was ignored or not supported.
11420
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11421
      #   icc: Command line warning: ignoring option '-M'; no argument required
11422
      # The diagnosis changed in icc 8.0:
11423
      #   icc: Command line remark: option '-MP' not supported
11424
      if (grep 'ignoring option' conftest.err ||
11425
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11426
        am_cv_CC_dependencies_compiler_type=$depmode
11427
        break
11428
      fi
11429
    fi
11430
  done
11431
 
11432
  cd ..
11433
  rm -rf conftest.dir
11434
else
11435
  am_cv_CC_dependencies_compiler_type=none
11436
fi
11437
 
11438
fi
11439 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11440
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11441 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11442
 
11443
 if
11444
  test "x$enable_dependency_tracking" != xno \
11445
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11446
  am__fastdepCC_TRUE=
11447
  am__fastdepCC_FALSE='#'
11448
else
11449
  am__fastdepCC_TRUE='#'
11450
  am__fastdepCC_FALSE=
11451
fi
11452
 
11453
 
11454
 
11455 91 jeremybenn
 
11456 82 jeremybenn
ac_config_headers="$ac_config_headers config.h"
11457
 
11458
 
11459
 
11460
 
11461
# make sure we are using a recent autoconf version
11462
 
11463
 
11464
# yuck.
11465
case "$target_cpu" in
11466
or32*)  CPU_ARCH=or32;
11467
        ARCH_ISA=OR32;
11468
 
11469
cat >>confdefs.h <<\_ACEOF
11470
#define OR32_TYPES 1
11471
_ACEOF
11472
;;
11473
dlx*)   CPU_ARCH=dlx;
11474
        ARCH_ISA=DLX;;
11475
*)      { $as_echo "$as_me:$LINENO: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
11476
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
11477
        CPU_ARCH=or32;
11478
        ARCH_ISA=OR32;
11479
 
11480
cat >>confdefs.h <<\_ACEOF
11481
#define OR32_TYPES 1
11482
_ACEOF
11483
;;
11484
esac
11485
 
11486
# determine endianism from target CPU name. If it has "little" in the name,
11487
# then its litte endian, otherwise its big endian (default for OR1K)
11488
case "$target_cpu" in
11489
*little*)
11490
cat >>confdefs.h <<\_ACEOF
11491
#define OR32_LITTLE_ENDIAN 1
11492
_ACEOF
11493
;;
11494
       *)
11495
cat >>confdefs.h <<\_ACEOF
11496
#define OR32_BIG_ENDIAN 1
11497
_ACEOF
11498
;;
11499
esac
11500
 
11501
 
11502
 
11503
# Set the CFLAGS we want
11504
CFLAGS="$CFLAGS -g -Wall -Werror -O2 -D$ARCH_ISA"
11505
 
11506
# By default we simply use the C compiler to build assembly code.
11507
 
11508
test "${CCAS+set}" = set || CCAS=$CC
11509
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11510
 
11511
 
11512
 
11513
depcc="$CCAS"   am_compiler_list=
11514
 
11515
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11516
$as_echo_n "checking dependency style of $depcc... " >&6; }
11517
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11518
  $as_echo_n "(cached) " >&6
11519 19 jeremybenn
else
11520
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11521
  # We make a subdir and do the tests there.  Otherwise we can end up
11522
  # making bogus files that we don't know about and never remove.  For
11523
  # instance it was reported that on HP-UX the gcc test will end up
11524
  # making a dummy file named `D' -- because `-MD' means `put the output
11525
  # in D'.
11526
  mkdir conftest.dir
11527
  # Copy depcomp to subdir because otherwise we won't find it if we're
11528
  # using a relative directory.
11529
  cp "$am_depcomp" conftest.dir
11530
  cd conftest.dir
11531
  # We will build objects and dependencies in a subdirectory because
11532
  # it helps to detect inapplicable dependency modes.  For instance
11533
  # both Tru64's cc and ICC support -MD to output dependencies as a
11534
  # side effect of compilation, but ICC will put the dependencies in
11535
  # the current directory while Tru64 will put them in the object
11536
  # directory.
11537
  mkdir sub
11538
 
11539 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11540 19 jeremybenn
  if test "$am_compiler_list" = ""; then
11541
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11542
  fi
11543 82 jeremybenn
  am__universal=false
11544
 
11545
 
11546 19 jeremybenn
  for depmode in $am_compiler_list; do
11547
    # Setup a source with many dependencies, because some compilers
11548
    # like to wrap large dependency lists on column 80 (with \), and
11549
    # we should not choose a depcomp mode which is confused by this.
11550
    #
11551
    # We need to recreate these files for each test, as the compiler may
11552
    # overwrite some of them when testing with obscure command lines.
11553
    # This happens at least with the AIX C compiler.
11554
    : > sub/conftest.c
11555
    for i in 1 2 3 4 5 6; do
11556
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11557
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11558
      # Solaris 8's {/usr,}/bin/sh.
11559
      touch sub/conftst$i.h
11560
    done
11561
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11562
 
11563 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11564
    # mode.  It turns out that the SunPro C++ compiler does not properly
11565
    # handle `-M -o', and we need to detect this.  Also, some Intel
11566
    # versions had trouble with output in subdirs
11567
    am__obj=sub/conftest.${OBJEXT-o}
11568
    am__minus_obj="-o $am__obj"
11569 19 jeremybenn
    case $depmode in
11570 82 jeremybenn
    gcc)
11571
      # This depmode causes a compiler race in universal mode.
11572
      test "$am__universal" = false || continue
11573
      ;;
11574 19 jeremybenn
    nosideeffect)
11575
      # after this tag, mechanisms are not by side-effect, so they'll
11576
      # only be used when explicitly requested
11577
      if test "x$enable_dependency_tracking" = xyes; then
11578
        continue
11579
      else
11580
        break
11581
      fi
11582
      ;;
11583 82 jeremybenn
    msvisualcpp | msvcmsys)
11584
      # This compiler won't grok `-c -o', but also, the minuso test has
11585
      # not run yet.  These depmodes are late enough in the game, and
11586
      # so weak that their functioning should not be impacted.
11587
      am__obj=conftest.${OBJEXT-o}
11588
      am__minus_obj=
11589
      ;;
11590 19 jeremybenn
    none) break ;;
11591
    esac
11592
    if depmode=$depmode \
11593 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11594 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11595 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11596 19 jeremybenn
         >/dev/null 2>conftest.err &&
11597
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11598
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11599 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11600 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11601
      # icc doesn't choke on unknown options, it will just issue warnings
11602
      # or remarks (even with -Werror).  So we grep stderr for any message
11603
      # that says an option was ignored or not supported.
11604
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11605
      #   icc: Command line warning: ignoring option '-M'; no argument required
11606
      # The diagnosis changed in icc 8.0:
11607
      #   icc: Command line remark: option '-MP' not supported
11608
      if (grep 'ignoring option' conftest.err ||
11609
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11610 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11611 19 jeremybenn
        break
11612
      fi
11613
    fi
11614
  done
11615
 
11616
  cd ..
11617
  rm -rf conftest.dir
11618
else
11619 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11620 19 jeremybenn
fi
11621
 
11622
fi
11623 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11624
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11625
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11626 19 jeremybenn
 
11627
 if
11628
  test "x$enable_dependency_tracking" != xno \
11629 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11630
  am__fastdepCCAS_TRUE=
11631
  am__fastdepCCAS_FALSE='#'
11632 19 jeremybenn
else
11633 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11634
  am__fastdepCCAS_FALSE=
11635 19 jeremybenn
fi
11636
 
11637
 
11638
 
11639
ac_ext=c
11640
ac_cpp='$CPP $CPPFLAGS'
11641
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11642
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11643
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11644
if test -n "$ac_tool_prefix"; then
11645
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11646
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11647 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11648
$as_echo_n "checking for $ac_word... " >&6; }
11649 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11650 82 jeremybenn
  $as_echo_n "(cached) " >&6
11651 19 jeremybenn
else
11652
  if test -n "$CC"; then
11653
  ac_cv_prog_CC="$CC" # Let the user override the test.
11654
else
11655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656
for as_dir in $PATH
11657
do
11658
  IFS=$as_save_IFS
11659
  test -z "$as_dir" && as_dir=.
11660
  for ac_exec_ext in '' $ac_executable_extensions; do
11661
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11662
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11663 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11664 19 jeremybenn
    break 2
11665
  fi
11666
done
11667
done
11668
IFS=$as_save_IFS
11669
 
11670
fi
11671
fi
11672
CC=$ac_cv_prog_CC
11673
if test -n "$CC"; then
11674 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11675
$as_echo "$CC" >&6; }
11676 19 jeremybenn
else
11677 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11678
$as_echo "no" >&6; }
11679 19 jeremybenn
fi
11680
 
11681
 
11682
fi
11683
if test -z "$ac_cv_prog_CC"; then
11684
  ac_ct_CC=$CC
11685
  # Extract the first word of "gcc", so it can be a program name with args.
11686
set dummy gcc; ac_word=$2
11687 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11688
$as_echo_n "checking for $ac_word... " >&6; }
11689 19 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11690 82 jeremybenn
  $as_echo_n "(cached) " >&6
11691 19 jeremybenn
else
11692
  if test -n "$ac_ct_CC"; then
11693
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11694
else
11695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696
for as_dir in $PATH
11697
do
11698
  IFS=$as_save_IFS
11699
  test -z "$as_dir" && as_dir=.
11700
  for ac_exec_ext in '' $ac_executable_extensions; do
11701
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11702
    ac_cv_prog_ac_ct_CC="gcc"
11703 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 19 jeremybenn
    break 2
11705
  fi
11706
done
11707
done
11708
IFS=$as_save_IFS
11709
 
11710
fi
11711
fi
11712
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11713
if test -n "$ac_ct_CC"; then
11714 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11715
$as_echo "$ac_ct_CC" >&6; }
11716 19 jeremybenn
else
11717 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11718
$as_echo "no" >&6; }
11719 19 jeremybenn
fi
11720
 
11721
  if test "x$ac_ct_CC" = x; then
11722
    CC=""
11723
  else
11724
    case $cross_compiling:$ac_tool_warned in
11725
yes:)
11726 82 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11727
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11728 19 jeremybenn
ac_tool_warned=yes ;;
11729
esac
11730
    CC=$ac_ct_CC
11731
  fi
11732
else
11733
  CC="$ac_cv_prog_CC"
11734
fi
11735
 
11736
if test -z "$CC"; then
11737
          if test -n "$ac_tool_prefix"; then
11738
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11739
set dummy ${ac_tool_prefix}cc; ac_word=$2
11740 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11741
$as_echo_n "checking for $ac_word... " >&6; }
11742 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11743 82 jeremybenn
  $as_echo_n "(cached) " >&6
11744 19 jeremybenn
else
11745
  if test -n "$CC"; then
11746
  ac_cv_prog_CC="$CC" # Let the user override the test.
11747
else
11748
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749
for as_dir in $PATH
11750
do
11751
  IFS=$as_save_IFS
11752
  test -z "$as_dir" && as_dir=.
11753
  for ac_exec_ext in '' $ac_executable_extensions; do
11754
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11755
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11756 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11757 19 jeremybenn
    break 2
11758
  fi
11759
done
11760
done
11761
IFS=$as_save_IFS
11762
 
11763
fi
11764
fi
11765
CC=$ac_cv_prog_CC
11766
if test -n "$CC"; then
11767 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11768
$as_echo "$CC" >&6; }
11769 19 jeremybenn
else
11770 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11771
$as_echo "no" >&6; }
11772 19 jeremybenn
fi
11773
 
11774
 
11775
  fi
11776
fi
11777
if test -z "$CC"; then
11778
  # Extract the first word of "cc", so it can be a program name with args.
11779
set dummy cc; ac_word=$2
11780 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11781
$as_echo_n "checking for $ac_word... " >&6; }
11782 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11783 82 jeremybenn
  $as_echo_n "(cached) " >&6
11784 19 jeremybenn
else
11785
  if test -n "$CC"; then
11786
  ac_cv_prog_CC="$CC" # Let the user override the test.
11787
else
11788
  ac_prog_rejected=no
11789
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790
for as_dir in $PATH
11791
do
11792
  IFS=$as_save_IFS
11793
  test -z "$as_dir" && as_dir=.
11794
  for ac_exec_ext in '' $ac_executable_extensions; do
11795
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11796
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11797
       ac_prog_rejected=yes
11798
       continue
11799
     fi
11800
    ac_cv_prog_CC="cc"
11801 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11802 19 jeremybenn
    break 2
11803
  fi
11804
done
11805
done
11806
IFS=$as_save_IFS
11807
 
11808
if test $ac_prog_rejected = yes; then
11809
  # We found a bogon in the path, so make sure we never use it.
11810
  set dummy $ac_cv_prog_CC
11811
  shift
11812
  if test $# != 0; then
11813
    # We chose a different compiler from the bogus one.
11814
    # However, it has the same basename, so the bogon will be chosen
11815
    # first if we set CC to just the basename; use the full file name.
11816
    shift
11817
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11818
  fi
11819
fi
11820
fi
11821
fi
11822
CC=$ac_cv_prog_CC
11823
if test -n "$CC"; then
11824 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11825
$as_echo "$CC" >&6; }
11826 19 jeremybenn
else
11827 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11828
$as_echo "no" >&6; }
11829 19 jeremybenn
fi
11830
 
11831
 
11832
fi
11833
if test -z "$CC"; then
11834
  if test -n "$ac_tool_prefix"; then
11835
  for ac_prog in cl.exe
11836
  do
11837
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11838
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11839 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11840
$as_echo_n "checking for $ac_word... " >&6; }
11841 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11842 82 jeremybenn
  $as_echo_n "(cached) " >&6
11843 19 jeremybenn
else
11844
  if test -n "$CC"; then
11845
  ac_cv_prog_CC="$CC" # Let the user override the test.
11846
else
11847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848
for as_dir in $PATH
11849
do
11850
  IFS=$as_save_IFS
11851
  test -z "$as_dir" && as_dir=.
11852
  for ac_exec_ext in '' $ac_executable_extensions; do
11853
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11854
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11855 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11856 19 jeremybenn
    break 2
11857
  fi
11858
done
11859
done
11860
IFS=$as_save_IFS
11861
 
11862
fi
11863
fi
11864
CC=$ac_cv_prog_CC
11865
if test -n "$CC"; then
11866 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11867
$as_echo "$CC" >&6; }
11868 19 jeremybenn
else
11869 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11870
$as_echo "no" >&6; }
11871 19 jeremybenn
fi
11872
 
11873
 
11874
    test -n "$CC" && break
11875
  done
11876
fi
11877
if test -z "$CC"; then
11878
  ac_ct_CC=$CC
11879
  for ac_prog in cl.exe
11880
do
11881
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11882
set dummy $ac_prog; ac_word=$2
11883 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11884
$as_echo_n "checking for $ac_word... " >&6; }
11885 19 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11886 82 jeremybenn
  $as_echo_n "(cached) " >&6
11887 19 jeremybenn
else
11888
  if test -n "$ac_ct_CC"; then
11889
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11890
else
11891
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892
for as_dir in $PATH
11893
do
11894
  IFS=$as_save_IFS
11895
  test -z "$as_dir" && as_dir=.
11896
  for ac_exec_ext in '' $ac_executable_extensions; do
11897
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11898
    ac_cv_prog_ac_ct_CC="$ac_prog"
11899 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 19 jeremybenn
    break 2
11901
  fi
11902
done
11903
done
11904
IFS=$as_save_IFS
11905
 
11906
fi
11907
fi
11908
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11909
if test -n "$ac_ct_CC"; then
11910 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11911
$as_echo "$ac_ct_CC" >&6; }
11912 19 jeremybenn
else
11913 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11914
$as_echo "no" >&6; }
11915 19 jeremybenn
fi
11916
 
11917
 
11918
  test -n "$ac_ct_CC" && break
11919
done
11920
 
11921
  if test "x$ac_ct_CC" = x; then
11922
    CC=""
11923
  else
11924
    case $cross_compiling:$ac_tool_warned in
11925
yes:)
11926 82 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11927
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11928 19 jeremybenn
ac_tool_warned=yes ;;
11929
esac
11930
    CC=$ac_ct_CC
11931
  fi
11932
fi
11933
 
11934
fi
11935
 
11936
 
11937 82 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11938
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11939
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11940 19 jeremybenn
See \`config.log' for more details." >&5
11941 82 jeremybenn
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11942 19 jeremybenn
See \`config.log' for more details." >&2;}
11943 82 jeremybenn
   { (exit 1); exit 1; }; }; }
11944 19 jeremybenn
 
11945
# Provide some information about the compiler.
11946 82 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11947
set X $ac_compile
11948
ac_compiler=$2
11949 19 jeremybenn
{ (ac_try="$ac_compiler --version >&5"
11950
case "(($ac_try" in
11951
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952
  *) ac_try_echo=$ac_try;;
11953
esac
11954 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11955
$as_echo "$ac_try_echo") >&5
11956 19 jeremybenn
  (eval "$ac_compiler --version >&5") 2>&5
11957
  ac_status=$?
11958 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 19 jeremybenn
  (exit $ac_status); }
11960
{ (ac_try="$ac_compiler -v >&5"
11961
case "(($ac_try" in
11962
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963
  *) ac_try_echo=$ac_try;;
11964
esac
11965 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11966
$as_echo "$ac_try_echo") >&5
11967 19 jeremybenn
  (eval "$ac_compiler -v >&5") 2>&5
11968
  ac_status=$?
11969 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 19 jeremybenn
  (exit $ac_status); }
11971
{ (ac_try="$ac_compiler -V >&5"
11972
case "(($ac_try" in
11973
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974
  *) ac_try_echo=$ac_try;;
11975
esac
11976 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11977
$as_echo "$ac_try_echo") >&5
11978 19 jeremybenn
  (eval "$ac_compiler -V >&5") 2>&5
11979
  ac_status=$?
11980 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 19 jeremybenn
  (exit $ac_status); }
11982
 
11983 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11984
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11985 19 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
11986 82 jeremybenn
  $as_echo_n "(cached) " >&6
11987 19 jeremybenn
else
11988
  cat >conftest.$ac_ext <<_ACEOF
11989
/* confdefs.h.  */
11990
_ACEOF
11991
cat confdefs.h >>conftest.$ac_ext
11992
cat >>conftest.$ac_ext <<_ACEOF
11993
/* end confdefs.h.  */
11994
 
11995
int
11996
main ()
11997
{
11998
#ifndef __GNUC__
11999
       choke me
12000
#endif
12001
 
12002
  ;
12003
  return 0;
12004
}
12005
_ACEOF
12006
rm -f conftest.$ac_objext
12007
if { (ac_try="$ac_compile"
12008
case "(($ac_try" in
12009
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010
  *) ac_try_echo=$ac_try;;
12011
esac
12012 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12013
$as_echo "$ac_try_echo") >&5
12014 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12015
  ac_status=$?
12016
  grep -v '^ *+' conftest.er1 >conftest.err
12017
  rm -f conftest.er1
12018
  cat conftest.err >&5
12019 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 19 jeremybenn
  (exit $ac_status); } && {
12021
         test -z "$ac_c_werror_flag" ||
12022
         test ! -s conftest.err
12023
       } && test -s conftest.$ac_objext; then
12024
  ac_compiler_gnu=yes
12025
else
12026 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12027 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12028
 
12029
        ac_compiler_gnu=no
12030
fi
12031
 
12032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033
ac_cv_c_compiler_gnu=$ac_compiler_gnu
12034
 
12035
fi
12036 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12037
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12038
if test $ac_compiler_gnu = yes; then
12039
  GCC=yes
12040
else
12041
  GCC=
12042
fi
12043 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
12044
ac_save_CFLAGS=$CFLAGS
12045 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12046
$as_echo_n "checking whether $CC accepts -g... " >&6; }
12047 19 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
12048 82 jeremybenn
  $as_echo_n "(cached) " >&6
12049 19 jeremybenn
else
12050
  ac_save_c_werror_flag=$ac_c_werror_flag
12051
   ac_c_werror_flag=yes
12052
   ac_cv_prog_cc_g=no
12053
   CFLAGS="-g"
12054
   cat >conftest.$ac_ext <<_ACEOF
12055
/* confdefs.h.  */
12056
_ACEOF
12057
cat confdefs.h >>conftest.$ac_ext
12058
cat >>conftest.$ac_ext <<_ACEOF
12059
/* end confdefs.h.  */
12060
 
12061
int
12062
main ()
12063
{
12064
 
12065
  ;
12066
  return 0;
12067
}
12068
_ACEOF
12069
rm -f conftest.$ac_objext
12070
if { (ac_try="$ac_compile"
12071
case "(($ac_try" in
12072
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073
  *) ac_try_echo=$ac_try;;
12074
esac
12075 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12076
$as_echo "$ac_try_echo") >&5
12077 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12078
  ac_status=$?
12079
  grep -v '^ *+' conftest.er1 >conftest.err
12080
  rm -f conftest.er1
12081
  cat conftest.err >&5
12082 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 19 jeremybenn
  (exit $ac_status); } && {
12084
         test -z "$ac_c_werror_flag" ||
12085
         test ! -s conftest.err
12086
       } && test -s conftest.$ac_objext; then
12087
  ac_cv_prog_cc_g=yes
12088
else
12089 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12090 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12091
 
12092
        CFLAGS=""
12093
      cat >conftest.$ac_ext <<_ACEOF
12094
/* confdefs.h.  */
12095
_ACEOF
12096
cat confdefs.h >>conftest.$ac_ext
12097
cat >>conftest.$ac_ext <<_ACEOF
12098
/* end confdefs.h.  */
12099
 
12100
int
12101
main ()
12102
{
12103
 
12104
  ;
12105
  return 0;
12106
}
12107
_ACEOF
12108
rm -f conftest.$ac_objext
12109
if { (ac_try="$ac_compile"
12110
case "(($ac_try" in
12111
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112
  *) ac_try_echo=$ac_try;;
12113
esac
12114 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12115
$as_echo "$ac_try_echo") >&5
12116 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12117
  ac_status=$?
12118
  grep -v '^ *+' conftest.er1 >conftest.err
12119
  rm -f conftest.er1
12120
  cat conftest.err >&5
12121 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 19 jeremybenn
  (exit $ac_status); } && {
12123
         test -z "$ac_c_werror_flag" ||
12124
         test ! -s conftest.err
12125
       } && test -s conftest.$ac_objext; then
12126
  :
12127
else
12128 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12129 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12130
 
12131
        ac_c_werror_flag=$ac_save_c_werror_flag
12132
         CFLAGS="-g"
12133
         cat >conftest.$ac_ext <<_ACEOF
12134
/* confdefs.h.  */
12135
_ACEOF
12136
cat confdefs.h >>conftest.$ac_ext
12137
cat >>conftest.$ac_ext <<_ACEOF
12138
/* end confdefs.h.  */
12139
 
12140
int
12141
main ()
12142
{
12143
 
12144
  ;
12145
  return 0;
12146
}
12147
_ACEOF
12148
rm -f conftest.$ac_objext
12149
if { (ac_try="$ac_compile"
12150
case "(($ac_try" in
12151
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152
  *) ac_try_echo=$ac_try;;
12153
esac
12154 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12155
$as_echo "$ac_try_echo") >&5
12156 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12157
  ac_status=$?
12158
  grep -v '^ *+' conftest.er1 >conftest.err
12159
  rm -f conftest.er1
12160
  cat conftest.err >&5
12161 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 19 jeremybenn
  (exit $ac_status); } && {
12163
         test -z "$ac_c_werror_flag" ||
12164
         test ! -s conftest.err
12165
       } && test -s conftest.$ac_objext; then
12166
  ac_cv_prog_cc_g=yes
12167
else
12168 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12169 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12170
 
12171
 
12172
fi
12173
 
12174
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12175
fi
12176
 
12177
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12178
fi
12179
 
12180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12181
   ac_c_werror_flag=$ac_save_c_werror_flag
12182
fi
12183 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12184
$as_echo "$ac_cv_prog_cc_g" >&6; }
12185 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
12186
  CFLAGS=$ac_save_CFLAGS
12187
elif test $ac_cv_prog_cc_g = yes; then
12188
  if test "$GCC" = yes; then
12189
    CFLAGS="-g -O2"
12190
  else
12191
    CFLAGS="-g"
12192
  fi
12193
else
12194
  if test "$GCC" = yes; then
12195
    CFLAGS="-O2"
12196
  else
12197
    CFLAGS=
12198
  fi
12199
fi
12200 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12201
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12202 19 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then
12203 82 jeremybenn
  $as_echo_n "(cached) " >&6
12204 19 jeremybenn
else
12205
  ac_cv_prog_cc_c89=no
12206
ac_save_CC=$CC
12207
cat >conftest.$ac_ext <<_ACEOF
12208
/* confdefs.h.  */
12209
_ACEOF
12210
cat confdefs.h >>conftest.$ac_ext
12211
cat >>conftest.$ac_ext <<_ACEOF
12212
/* end confdefs.h.  */
12213
#include 
12214
#include 
12215
#include 
12216
#include 
12217
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12218
struct buf { int x; };
12219
FILE * (*rcsopen) (struct buf *, struct stat *, int);
12220
static char *e (p, i)
12221
     char **p;
12222
     int i;
12223
{
12224
  return p[i];
12225
}
12226
static char *f (char * (*g) (char **, int), char **p, ...)
12227
{
12228
  char *s;
12229
  va_list v;
12230
  va_start (v,p);
12231
  s = g (p, va_arg (v,int));
12232
  va_end (v);
12233
  return s;
12234
}
12235
 
12236
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12237
   function prototypes and stuff, but not '\xHH' hex character constants.
12238
   These don't provoke an error unfortunately, instead are silently treated
12239
   as 'x'.  The following induces an error, until -std is added to get
12240
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12241
   array size at least.  It's necessary to write '\x00'==0 to get something
12242
   that's true only with -std.  */
12243
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12244
 
12245
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12246
   inside strings and character constants.  */
12247
#define FOO(x) 'x'
12248
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12249
 
12250
int test (int i, double x);
12251
struct s1 {int (*f) (int a);};
12252
struct s2 {int (*f) (double a);};
12253
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12254
int argc;
12255
char **argv;
12256
int
12257
main ()
12258
{
12259
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12260
  ;
12261
  return 0;
12262
}
12263
_ACEOF
12264
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12265
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12266
do
12267
  CC="$ac_save_CC $ac_arg"
12268
  rm -f conftest.$ac_objext
12269
if { (ac_try="$ac_compile"
12270
case "(($ac_try" in
12271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272
  *) ac_try_echo=$ac_try;;
12273
esac
12274 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12275
$as_echo "$ac_try_echo") >&5
12276 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12277
  ac_status=$?
12278
  grep -v '^ *+' conftest.er1 >conftest.err
12279
  rm -f conftest.er1
12280
  cat conftest.err >&5
12281 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 19 jeremybenn
  (exit $ac_status); } && {
12283
         test -z "$ac_c_werror_flag" ||
12284
         test ! -s conftest.err
12285
       } && test -s conftest.$ac_objext; then
12286
  ac_cv_prog_cc_c89=$ac_arg
12287
else
12288 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12289 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12290
 
12291
 
12292
fi
12293
 
12294
rm -f core conftest.err conftest.$ac_objext
12295
  test "x$ac_cv_prog_cc_c89" != "xno" && break
12296
done
12297
rm -f conftest.$ac_ext
12298
CC=$ac_save_CC
12299
 
12300
fi
12301
# AC_CACHE_VAL
12302
case "x$ac_cv_prog_cc_c89" in
12303
  x)
12304 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
12305
$as_echo "none needed" >&6; } ;;
12306 19 jeremybenn
  xno)
12307 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12308
$as_echo "unsupported" >&6; } ;;
12309 19 jeremybenn
  *)
12310
    CC="$CC $ac_cv_prog_cc_c89"
12311 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12312
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12313 19 jeremybenn
esac
12314
 
12315
 
12316
ac_ext=c
12317
ac_cpp='$CPP $CPPFLAGS'
12318
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12319
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12320
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12321
 
12322
if test "x$CC" != xcc; then
12323 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
12324
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12325 19 jeremybenn
else
12326 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
12327
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12328 19 jeremybenn
fi
12329 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
12330 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12331
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
12332 82 jeremybenn
  $as_echo_n "(cached) " >&6
12333 19 jeremybenn
else
12334
  cat >conftest.$ac_ext <<_ACEOF
12335
/* confdefs.h.  */
12336
_ACEOF
12337
cat confdefs.h >>conftest.$ac_ext
12338
cat >>conftest.$ac_ext <<_ACEOF
12339
/* end confdefs.h.  */
12340
 
12341
int
12342
main ()
12343
{
12344
 
12345
  ;
12346
  return 0;
12347
}
12348
_ACEOF
12349
# Make sure it works both with $CC and with simple cc.
12350
# We do the test twice because some compilers refuse to overwrite an
12351
# existing .o file with -o, though they will create one.
12352
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12353
rm -f conftest2.*
12354
if { (case "(($ac_try" in
12355
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356
  *) ac_try_echo=$ac_try;;
12357
esac
12358 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12359
$as_echo "$ac_try_echo") >&5
12360 19 jeremybenn
  (eval "$ac_try") 2>&5
12361
  ac_status=$?
12362 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 19 jeremybenn
  (exit $ac_status); } &&
12364
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
12365
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366
  *) ac_try_echo=$ac_try;;
12367
esac
12368 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12369
$as_echo "$ac_try_echo") >&5
12370 19 jeremybenn
  (eval "$ac_try") 2>&5
12371
  ac_status=$?
12372 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 19 jeremybenn
  (exit $ac_status); };
12374
then
12375
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12376
  if test "x$CC" != xcc; then
12377
    # Test first that cc exists at all.
12378
    if { ac_try='cc -c conftest.$ac_ext >&5'
12379
  { (case "(($ac_try" in
12380
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381
  *) ac_try_echo=$ac_try;;
12382
esac
12383 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12384
$as_echo "$ac_try_echo") >&5
12385 19 jeremybenn
  (eval "$ac_try") 2>&5
12386
  ac_status=$?
12387 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 19 jeremybenn
  (exit $ac_status); }; }; then
12389
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12390
      rm -f conftest2.*
12391
      if { (case "(($ac_try" in
12392
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393
  *) ac_try_echo=$ac_try;;
12394
esac
12395 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12396
$as_echo "$ac_try_echo") >&5
12397 19 jeremybenn
  (eval "$ac_try") 2>&5
12398
  ac_status=$?
12399 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 19 jeremybenn
  (exit $ac_status); } &&
12401
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
12402
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403
  *) ac_try_echo=$ac_try;;
12404
esac
12405 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12406
$as_echo "$ac_try_echo") >&5
12407 19 jeremybenn
  (eval "$ac_try") 2>&5
12408
  ac_status=$?
12409 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 19 jeremybenn
  (exit $ac_status); };
12411
      then
12412
        # cc works too.
12413
        :
12414
      else
12415
        # cc exists but doesn't like -o.
12416
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
12417
      fi
12418
    fi
12419
  fi
12420
else
12421
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12422
fi
12423
rm -f core conftest*
12424
 
12425
fi
12426
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12427 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12428
$as_echo "yes" >&6; }
12429 19 jeremybenn
else
12430 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12431
$as_echo "no" >&6; }
12432 19 jeremybenn
 
12433
cat >>confdefs.h <<\_ACEOF
12434
#define NO_MINUS_C_MINUS_O 1
12435
_ACEOF
12436
 
12437
fi
12438
 
12439
# FIXME: we rely on the cache variable name because
12440
# there is no other way.
12441
set dummy $CC
12442 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12443
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12444
if test "$am_t" != yes; then
12445 19 jeremybenn
   # Losing compiler, so override with the script.
12446
   # FIXME: It is wrong to rewrite CC.
12447
   # But if we don't then we get into trouble of one sort or another.
12448
   # A longer-term fix would be to have automake use am__CC in this case,
12449
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12450
   CC="$am_aux_dir/compile $CC"
12451
fi
12452
 
12453
 
12454
 
12455 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12456
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12457
set x ${MAKE-make}
12458
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12459 19 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
12460 82 jeremybenn
  $as_echo_n "(cached) " >&6
12461 19 jeremybenn
else
12462
  cat >conftest.make <<\_ACEOF
12463
SHELL = /bin/sh
12464
all:
12465
        @echo '@@@%%%=$(MAKE)=@@@%%%'
12466
_ACEOF
12467
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12468
case `${MAKE-make} -f conftest.make 2>/dev/null` in
12469
  *@@@%%%=?*=@@@%%%*)
12470
    eval ac_cv_prog_make_${ac_make}_set=yes;;
12471
  *)
12472
    eval ac_cv_prog_make_${ac_make}_set=no;;
12473
esac
12474
rm -f conftest.make
12475
fi
12476
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12477 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12478
$as_echo "yes" >&6; }
12479 19 jeremybenn
  SET_MAKE=
12480
else
12481 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12482
$as_echo "no" >&6; }
12483 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
12484
fi
12485
 
12486
 
12487
# Find a good install program.  We prefer a C program (faster),
12488
# so one script is as good as another.  But avoid the broken or
12489
# incompatible versions:
12490
# SysV /etc/install, /usr/sbin/install
12491
# SunOS /usr/etc/install
12492
# IRIX /sbin/install
12493
# AIX /bin/install
12494
# AmigaOS /C/install, which installs bootblocks on floppy discs
12495
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12496
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12497
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12498
# OS/2's system install, which has a completely different semantic
12499
# ./install, which can be erroneously created by make from ./install.sh.
12500 82 jeremybenn
# Reject install programs that cannot install multiple files.
12501
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12502
$as_echo_n "checking for a BSD-compatible install... " >&6; }
12503 19 jeremybenn
if test -z "$INSTALL"; then
12504
if test "${ac_cv_path_install+set}" = set; then
12505 82 jeremybenn
  $as_echo_n "(cached) " >&6
12506 19 jeremybenn
else
12507
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12508
for as_dir in $PATH
12509
do
12510
  IFS=$as_save_IFS
12511
  test -z "$as_dir" && as_dir=.
12512
  # Account for people who put trailing slashes in PATH elements.
12513
case $as_dir/ in
12514
  ./ | .// | /cC/* | \
12515
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12516
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12517
  /usr/ucb/* ) ;;
12518
  *)
12519
    # OSF1 and SCO ODT 3.0 have their own names for install.
12520
    # Don't use installbsd from OSF since it installs stuff as root
12521
    # by default.
12522
    for ac_prog in ginstall scoinst install; do
12523
      for ac_exec_ext in '' $ac_executable_extensions; do
12524
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12525
          if test $ac_prog = install &&
12526
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12527
            # AIX install.  It has an incompatible calling convention.
12528
            :
12529
          elif test $ac_prog = install &&
12530
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12531
            # program-specific install script used by HP pwplus--don't use.
12532
            :
12533
          else
12534 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
12535
            echo one > conftest.one
12536
            echo two > conftest.two
12537
            mkdir conftest.dir
12538
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12539
              test -s conftest.one && test -s conftest.two &&
12540
              test -s conftest.dir/conftest.one &&
12541
              test -s conftest.dir/conftest.two
12542
            then
12543
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12544
              break 3
12545
            fi
12546 19 jeremybenn
          fi
12547
        fi
12548
      done
12549
    done
12550
    ;;
12551
esac
12552 82 jeremybenn
 
12553 19 jeremybenn
done
12554
IFS=$as_save_IFS
12555
 
12556 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
12557 19 jeremybenn
 
12558
fi
12559
  if test "${ac_cv_path_install+set}" = set; then
12560
    INSTALL=$ac_cv_path_install
12561
  else
12562
    # As a last resort, use the slow shell script.  Don't cache a
12563
    # value for INSTALL within a source directory, because that will
12564
    # break other packages using the cache if that directory is
12565
    # removed, or if the value is a relative name.
12566
    INSTALL=$ac_install_sh
12567
  fi
12568
fi
12569 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12570
$as_echo "$INSTALL" >&6; }
12571 19 jeremybenn
 
12572
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12573
# It thinks the first close brace ends the variable substitution.
12574
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12575
 
12576
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12577
 
12578
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12579
 
12580
# Extract the first word of "ar", so it can be a program name with args.
12581
set dummy ar; ac_word=$2
12582 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12583
$as_echo_n "checking for $ac_word... " >&6; }
12584 19 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then
12585 82 jeremybenn
  $as_echo_n "(cached) " >&6
12586 19 jeremybenn
else
12587
  if test -n "$AR"; then
12588
  ac_cv_prog_AR="$AR" # Let the user override the test.
12589
else
12590
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12591
for as_dir in $PATH
12592
do
12593
  IFS=$as_save_IFS
12594
  test -z "$as_dir" && as_dir=.
12595
  for ac_exec_ext in '' $ac_executable_extensions; do
12596
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12597
    ac_cv_prog_AR="ar"
12598 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12599 19 jeremybenn
    break 2
12600
  fi
12601
done
12602
done
12603
IFS=$as_save_IFS
12604
 
12605
fi
12606
fi
12607
AR=$ac_cv_prog_AR
12608
if test -n "$AR"; then
12609 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
12610
$as_echo "$AR" >&6; }
12611 19 jeremybenn
else
12612 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12613
$as_echo "no" >&6; }
12614 19 jeremybenn
fi
12615
 
12616
 
12617
 
12618
# Set default for ARFLAGS, since autoconf does not have a macro for it.
12619
# This allows people to set it when running configure or make
12620
test -n "$ARFLAGS" || ARFLAGS="cr"
12621
 
12622 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12623
$as_echo_n "checking return type of signal handlers... " >&6; }
12624 19 jeremybenn
if test "${ac_cv_type_signal+set}" = set; then
12625 82 jeremybenn
  $as_echo_n "(cached) " >&6
12626 19 jeremybenn
else
12627
  cat >conftest.$ac_ext <<_ACEOF
12628
/* confdefs.h.  */
12629
_ACEOF
12630
cat confdefs.h >>conftest.$ac_ext
12631
cat >>conftest.$ac_ext <<_ACEOF
12632
/* end confdefs.h.  */
12633
#include 
12634
#include 
12635
 
12636
int
12637
main ()
12638
{
12639
return *(signal (0, 0)) (0) == 1;
12640
  ;
12641
  return 0;
12642
}
12643
_ACEOF
12644
rm -f conftest.$ac_objext
12645
if { (ac_try="$ac_compile"
12646
case "(($ac_try" in
12647
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648
  *) ac_try_echo=$ac_try;;
12649
esac
12650 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12651
$as_echo "$ac_try_echo") >&5
12652 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12653
  ac_status=$?
12654
  grep -v '^ *+' conftest.er1 >conftest.err
12655
  rm -f conftest.er1
12656
  cat conftest.err >&5
12657 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 19 jeremybenn
  (exit $ac_status); } && {
12659
         test -z "$ac_c_werror_flag" ||
12660
         test ! -s conftest.err
12661
       } && test -s conftest.$ac_objext; then
12662
  ac_cv_type_signal=int
12663
else
12664 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12665 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12666
 
12667
        ac_cv_type_signal=void
12668
fi
12669
 
12670
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12671
fi
12672 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12673
$as_echo "$ac_cv_type_signal" >&6; }
12674 19 jeremybenn
 
12675
cat >>confdefs.h <<_ACEOF
12676
#define RETSIGTYPE $ac_cv_type_signal
12677
_ACEOF
12678
 
12679
 
12680
 
12681
 
12682
 
12683
 
12684
 
12685
 
12686
 
12687
 
12688
 
12689
 
12690
 
12691
 
12692
 
12693
 
12694
 
12695 82 jeremybenn
 
12696
 
12697
 
12698
 
12699
 
12700
 
12701
 
12702
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h      \
12703
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
12704
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
12705
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h
12706
do
12707
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12708 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12709 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12710
$as_echo_n "checking for $ac_header... " >&6; }
12711
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12712
  $as_echo_n "(cached) " >&6
12713
fi
12714
ac_res=`eval 'as_val=${'$as_ac_Header'}
12715
                 $as_echo "$as_val"'`
12716
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12717
$as_echo "$ac_res" >&6; }
12718 19 jeremybenn
else
12719 82 jeremybenn
  # Is the header compilable?
12720
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12721
$as_echo_n "checking $ac_header usability... " >&6; }
12722
cat >conftest.$ac_ext <<_ACEOF
12723 19 jeremybenn
/* confdefs.h.  */
12724
_ACEOF
12725
cat confdefs.h >>conftest.$ac_ext
12726
cat >>conftest.$ac_ext <<_ACEOF
12727
/* end confdefs.h.  */
12728 82 jeremybenn
$ac_includes_default
12729
#include <$ac_header>
12730 19 jeremybenn
_ACEOF
12731
rm -f conftest.$ac_objext
12732
if { (ac_try="$ac_compile"
12733
case "(($ac_try" in
12734
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735
  *) ac_try_echo=$ac_try;;
12736
esac
12737 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12738
$as_echo "$ac_try_echo") >&5
12739 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12740
  ac_status=$?
12741
  grep -v '^ *+' conftest.er1 >conftest.err
12742
  rm -f conftest.er1
12743
  cat conftest.err >&5
12744 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 19 jeremybenn
  (exit $ac_status); } && {
12746
         test -z "$ac_c_werror_flag" ||
12747
         test ! -s conftest.err
12748
       } && test -s conftest.$ac_objext; then
12749 82 jeremybenn
  ac_header_compiler=yes
12750 19 jeremybenn
else
12751 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12752 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12753
 
12754 82 jeremybenn
        ac_header_compiler=no
12755 19 jeremybenn
fi
12756
 
12757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12758 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12759
$as_echo "$ac_header_compiler" >&6; }
12760 19 jeremybenn
 
12761 82 jeremybenn
# Is the header present?
12762
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12763
$as_echo_n "checking $ac_header presence... " >&6; }
12764 19 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12765
/* confdefs.h.  */
12766
_ACEOF
12767
cat confdefs.h >>conftest.$ac_ext
12768
cat >>conftest.$ac_ext <<_ACEOF
12769
/* end confdefs.h.  */
12770 82 jeremybenn
#include <$ac_header>
12771 19 jeremybenn
_ACEOF
12772 82 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
12773 19 jeremybenn
case "(($ac_try" in
12774
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775
  *) ac_try_echo=$ac_try;;
12776
esac
12777 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12778
$as_echo "$ac_try_echo") >&5
12779
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12780 19 jeremybenn
  ac_status=$?
12781
  grep -v '^ *+' conftest.er1 >conftest.err
12782
  rm -f conftest.er1
12783
  cat conftest.err >&5
12784 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785
  (exit $ac_status); } >/dev/null && {
12786
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12787 19 jeremybenn
         test ! -s conftest.err
12788 82 jeremybenn
       }; then
12789
  ac_header_preproc=yes
12790 19 jeremybenn
else
12791 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12792 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12793
 
12794 82 jeremybenn
  ac_header_preproc=no
12795 19 jeremybenn
fi
12796
 
12797 82 jeremybenn
rm -f conftest.err conftest.$ac_ext
12798
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12799
$as_echo "$ac_header_preproc" >&6; }
12800
 
12801
# So?  What about this header?
12802
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12803
  yes:no: )
12804
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12805
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12806
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12807
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12808
    ac_header_preproc=yes
12809
    ;;
12810
  no:yes:* )
12811
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12812
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12813
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12814
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12815
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12816
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12817
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12818
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12819
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12820
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12821
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12822
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12823
    ( cat <<\_ASBOX
12824
## ------------------------------------- ##
12825
## Report this to openrisc@opencores.org ##
12826
## ------------------------------------- ##
12827
_ASBOX
12828
     ) | sed "s/^/$as_me: WARNING:     /" >&2
12829
    ;;
12830
esac
12831
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12832
$as_echo_n "checking for $ac_header... " >&6; }
12833
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12834
  $as_echo_n "(cached) " >&6
12835 19 jeremybenn
else
12836 82 jeremybenn
  eval "$as_ac_Header=\$ac_header_preproc"
12837 19 jeremybenn
fi
12838 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12839
                 $as_echo "$as_val"'`
12840
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12841
$as_echo "$ac_res" >&6; }
12842 19 jeremybenn
 
12843
fi
12844 82 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
12845
                 $as_echo "$as_val"'`
12846
   if test "x$as_val" = x""yes; then
12847
  cat >>confdefs.h <<_ACEOF
12848
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12849 19 jeremybenn
_ACEOF
12850
 
12851
fi
12852
 
12853
done
12854
 
12855
 
12856
 
12857
 
12858
 
12859
 
12860
 
12861
 
12862
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
12863
do
12864 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12865
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12866
$as_echo_n "checking for $ac_func... " >&6; }
12867 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12868 82 jeremybenn
  $as_echo_n "(cached) " >&6
12869 19 jeremybenn
else
12870
  cat >conftest.$ac_ext <<_ACEOF
12871
/* confdefs.h.  */
12872
_ACEOF
12873
cat confdefs.h >>conftest.$ac_ext
12874
cat >>conftest.$ac_ext <<_ACEOF
12875
/* end confdefs.h.  */
12876
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12877
   For example, HP-UX 11i  declares gettimeofday.  */
12878
#define $ac_func innocuous_$ac_func
12879
 
12880
/* System header to define __stub macros and hopefully few prototypes,
12881
    which can conflict with char $ac_func (); below.
12882
    Prefer  to  if __STDC__ is defined, since
12883
     exists even on freestanding compilers.  */
12884
 
12885
#ifdef __STDC__
12886
# include 
12887
#else
12888
# include 
12889
#endif
12890
 
12891
#undef $ac_func
12892
 
12893
/* Override any GCC internal prototype to avoid an error.
12894
   Use char because int might match the return type of a GCC
12895
   builtin and then its argument prototype would still apply.  */
12896
#ifdef __cplusplus
12897
extern "C"
12898
#endif
12899
char $ac_func ();
12900
/* The GNU C library defines this for functions which it implements
12901
    to always fail with ENOSYS.  Some functions are actually named
12902
    something starting with __ and the normal name is an alias.  */
12903
#if defined __stub_$ac_func || defined __stub___$ac_func
12904
choke me
12905
#endif
12906
 
12907
int
12908
main ()
12909
{
12910
return $ac_func ();
12911
  ;
12912
  return 0;
12913
}
12914
_ACEOF
12915
rm -f conftest.$ac_objext conftest$ac_exeext
12916
if { (ac_try="$ac_link"
12917
case "(($ac_try" in
12918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919
  *) ac_try_echo=$ac_try;;
12920
esac
12921 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12922
$as_echo "$ac_try_echo") >&5
12923 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
12924
  ac_status=$?
12925
  grep -v '^ *+' conftest.er1 >conftest.err
12926
  rm -f conftest.er1
12927
  cat conftest.err >&5
12928 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 19 jeremybenn
  (exit $ac_status); } && {
12930
         test -z "$ac_c_werror_flag" ||
12931
         test ! -s conftest.err
12932 82 jeremybenn
       } && test -s conftest$ac_exeext && {
12933
         test "$cross_compiling" = yes ||
12934
         $as_test_x conftest$ac_exeext
12935
       }; then
12936 19 jeremybenn
  eval "$as_ac_var=yes"
12937
else
12938 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12939 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12940
 
12941
        eval "$as_ac_var=no"
12942
fi
12943
 
12944 82 jeremybenn
rm -rf conftest.dSYM
12945 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12946
      conftest$ac_exeext conftest.$ac_ext
12947
fi
12948 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
12949
                 $as_echo "$as_val"'`
12950
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12951
$as_echo "$ac_res" >&6; }
12952
as_val=`eval 'as_val=${'$as_ac_var'}
12953
                 $as_echo "$as_val"'`
12954
   if test "x$as_val" = x""yes; then
12955 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12956 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12957 19 jeremybenn
_ACEOF
12958
 
12959
fi
12960
done
12961
 
12962
 
12963
 
12964
 
12965
 
12966 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
12967 19 jeremybenn
do
12968 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12969
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12970
$as_echo_n "checking for $ac_func... " >&6; }
12971 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12972 82 jeremybenn
  $as_echo_n "(cached) " >&6
12973 19 jeremybenn
else
12974
  cat >conftest.$ac_ext <<_ACEOF
12975
/* confdefs.h.  */
12976
_ACEOF
12977
cat confdefs.h >>conftest.$ac_ext
12978
cat >>conftest.$ac_ext <<_ACEOF
12979
/* end confdefs.h.  */
12980
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12981
   For example, HP-UX 11i  declares gettimeofday.  */
12982
#define $ac_func innocuous_$ac_func
12983
 
12984
/* System header to define __stub macros and hopefully few prototypes,
12985
    which can conflict with char $ac_func (); below.
12986
    Prefer  to  if __STDC__ is defined, since
12987
     exists even on freestanding compilers.  */
12988
 
12989
#ifdef __STDC__
12990
# include 
12991
#else
12992
# include 
12993
#endif
12994
 
12995
#undef $ac_func
12996
 
12997
/* Override any GCC internal prototype to avoid an error.
12998
   Use char because int might match the return type of a GCC
12999
   builtin and then its argument prototype would still apply.  */
13000
#ifdef __cplusplus
13001
extern "C"
13002
#endif
13003
char $ac_func ();
13004
/* The GNU C library defines this for functions which it implements
13005
    to always fail with ENOSYS.  Some functions are actually named
13006
    something starting with __ and the normal name is an alias.  */
13007
#if defined __stub_$ac_func || defined __stub___$ac_func
13008
choke me
13009
#endif
13010
 
13011
int
13012
main ()
13013
{
13014
return $ac_func ();
13015
  ;
13016
  return 0;
13017
}
13018
_ACEOF
13019
rm -f conftest.$ac_objext conftest$ac_exeext
13020
if { (ac_try="$ac_link"
13021
case "(($ac_try" in
13022
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023
  *) ac_try_echo=$ac_try;;
13024
esac
13025 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13026
$as_echo "$ac_try_echo") >&5
13027 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
13028
  ac_status=$?
13029
  grep -v '^ *+' conftest.er1 >conftest.err
13030
  rm -f conftest.er1
13031
  cat conftest.err >&5
13032 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 19 jeremybenn
  (exit $ac_status); } && {
13034
         test -z "$ac_c_werror_flag" ||
13035
         test ! -s conftest.err
13036 82 jeremybenn
       } && test -s conftest$ac_exeext && {
13037
         test "$cross_compiling" = yes ||
13038
         $as_test_x conftest$ac_exeext
13039
       }; then
13040 19 jeremybenn
  eval "$as_ac_var=yes"
13041
else
13042 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13043 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13044
 
13045
        eval "$as_ac_var=no"
13046
fi
13047
 
13048 82 jeremybenn
rm -rf conftest.dSYM
13049 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13050
      conftest$ac_exeext conftest.$ac_ext
13051
fi
13052 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
13053
                 $as_echo "$as_val"'`
13054
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13055
$as_echo "$ac_res" >&6; }
13056
as_val=`eval 'as_val=${'$as_ac_var'}
13057
                 $as_echo "$as_val"'`
13058
   if test "x$as_val" = x""yes; then
13059 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13060 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13061 19 jeremybenn
_ACEOF
13062
 
13063
fi
13064
done
13065
 
13066
 
13067
for ac_func in basename
13068
do
13069 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13070
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13071
$as_echo_n "checking for $ac_func... " >&6; }
13072 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13073 82 jeremybenn
  $as_echo_n "(cached) " >&6
13074 19 jeremybenn
else
13075
  cat >conftest.$ac_ext <<_ACEOF
13076
/* confdefs.h.  */
13077
_ACEOF
13078
cat confdefs.h >>conftest.$ac_ext
13079
cat >>conftest.$ac_ext <<_ACEOF
13080
/* end confdefs.h.  */
13081
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
13082
   For example, HP-UX 11i  declares gettimeofday.  */
13083
#define $ac_func innocuous_$ac_func
13084
 
13085
/* System header to define __stub macros and hopefully few prototypes,
13086
    which can conflict with char $ac_func (); below.
13087
    Prefer  to  if __STDC__ is defined, since
13088
     exists even on freestanding compilers.  */
13089
 
13090
#ifdef __STDC__
13091
# include 
13092
#else
13093
# include 
13094
#endif
13095
 
13096
#undef $ac_func
13097
 
13098
/* Override any GCC internal prototype to avoid an error.
13099
   Use char because int might match the return type of a GCC
13100
   builtin and then its argument prototype would still apply.  */
13101
#ifdef __cplusplus
13102
extern "C"
13103
#endif
13104
char $ac_func ();
13105
/* The GNU C library defines this for functions which it implements
13106
    to always fail with ENOSYS.  Some functions are actually named
13107
    something starting with __ and the normal name is an alias.  */
13108
#if defined __stub_$ac_func || defined __stub___$ac_func
13109
choke me
13110
#endif
13111
 
13112
int
13113
main ()
13114
{
13115
return $ac_func ();
13116
  ;
13117
  return 0;
13118
}
13119
_ACEOF
13120
rm -f conftest.$ac_objext conftest$ac_exeext
13121
if { (ac_try="$ac_link"
13122
case "(($ac_try" in
13123
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124
  *) ac_try_echo=$ac_try;;
13125
esac
13126 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13127
$as_echo "$ac_try_echo") >&5
13128 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
13129
  ac_status=$?
13130
  grep -v '^ *+' conftest.er1 >conftest.err
13131
  rm -f conftest.er1
13132
  cat conftest.err >&5
13133 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 19 jeremybenn
  (exit $ac_status); } && {
13135
         test -z "$ac_c_werror_flag" ||
13136
         test ! -s conftest.err
13137 82 jeremybenn
       } && test -s conftest$ac_exeext && {
13138
         test "$cross_compiling" = yes ||
13139
         $as_test_x conftest$ac_exeext
13140
       }; then
13141 19 jeremybenn
  eval "$as_ac_var=yes"
13142
else
13143 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13144 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13145
 
13146
        eval "$as_ac_var=no"
13147
fi
13148
 
13149 82 jeremybenn
rm -rf conftest.dSYM
13150 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13151
      conftest$ac_exeext conftest.$ac_ext
13152
fi
13153 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
13154
                 $as_echo "$as_val"'`
13155
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13156
$as_echo "$ac_res" >&6; }
13157
as_val=`eval 'as_val=${'$as_ac_var'}
13158
                 $as_echo "$as_val"'`
13159
   if test "x$as_val" = x""yes; then
13160 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13161 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13162 19 jeremybenn
_ACEOF
13163
 
13164
fi
13165
done
13166
 
13167 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
13168
$as_echo_n "checking for working strcoll... " >&6; }
13169 19 jeremybenn
if test "${ac_cv_func_strcoll_works+set}" = set; then
13170 82 jeremybenn
  $as_echo_n "(cached) " >&6
13171 19 jeremybenn
else
13172
  if test "$cross_compiling" = yes; then
13173
  ac_cv_func_strcoll_works=no
13174
else
13175
  cat >conftest.$ac_ext <<_ACEOF
13176
/* confdefs.h.  */
13177
_ACEOF
13178
cat confdefs.h >>conftest.$ac_ext
13179
cat >>conftest.$ac_ext <<_ACEOF
13180
/* end confdefs.h.  */
13181
$ac_includes_default
13182
int
13183
main ()
13184
{
13185
return (strcoll ("abc", "def") >= 0 ||
13186
         strcoll ("ABC", "DEF") >= 0 ||
13187
         strcoll ("123", "456") >= 0)
13188
  ;
13189
  return 0;
13190
}
13191
_ACEOF
13192
rm -f conftest$ac_exeext
13193
if { (ac_try="$ac_link"
13194
case "(($ac_try" in
13195
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196
  *) ac_try_echo=$ac_try;;
13197
esac
13198 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13199
$as_echo "$ac_try_echo") >&5
13200 19 jeremybenn
  (eval "$ac_link") 2>&5
13201
  ac_status=$?
13202 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13204
  { (case "(($ac_try" in
13205
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206
  *) ac_try_echo=$ac_try;;
13207
esac
13208 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13209
$as_echo "$ac_try_echo") >&5
13210 19 jeremybenn
  (eval "$ac_try") 2>&5
13211
  ac_status=$?
13212 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 19 jeremybenn
  (exit $ac_status); }; }; then
13214
  ac_cv_func_strcoll_works=yes
13215
else
13216 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
13217
$as_echo "$as_me: failed program was:" >&5
13218 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13219
 
13220
( exit $ac_status )
13221
ac_cv_func_strcoll_works=no
13222
fi
13223 82 jeremybenn
rm -rf conftest.dSYM
13224 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13225
fi
13226
 
13227
 
13228
fi
13229 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13230
$as_echo "$ac_cv_func_strcoll_works" >&6; }
13231 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
13232
 
13233
cat >>confdefs.h <<\_ACEOF
13234
#define HAVE_STRCOLL 1
13235
_ACEOF
13236
 
13237
fi
13238
 
13239 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether I_PUSH is declared" >&5
13240
$as_echo_n "checking whether I_PUSH is declared... " >&6; }
13241
if test "${ac_cv_have_decl_I_PUSH+set}" = set; then
13242
  $as_echo_n "(cached) " >&6
13243 19 jeremybenn
else
13244
  cat >conftest.$ac_ext <<_ACEOF
13245
/* confdefs.h.  */
13246
_ACEOF
13247
cat confdefs.h >>conftest.$ac_ext
13248
cat >>conftest.$ac_ext <<_ACEOF
13249
/* end confdefs.h.  */
13250 82 jeremybenn
\
13251
               #include 
13252 19 jeremybenn
 
13253
int
13254
main ()
13255
{
13256 82 jeremybenn
#ifndef I_PUSH
13257
  (void) I_PUSH;
13258
#endif
13259 19 jeremybenn
 
13260
  ;
13261
  return 0;
13262
}
13263
_ACEOF
13264
rm -f conftest.$ac_objext
13265
if { (ac_try="$ac_compile"
13266
case "(($ac_try" in
13267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268
  *) ac_try_echo=$ac_try;;
13269
esac
13270 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13271
$as_echo "$ac_try_echo") >&5
13272 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13273
  ac_status=$?
13274
  grep -v '^ *+' conftest.er1 >conftest.err
13275
  rm -f conftest.er1
13276
  cat conftest.err >&5
13277 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 19 jeremybenn
  (exit $ac_status); } && {
13279
         test -z "$ac_c_werror_flag" ||
13280
         test ! -s conftest.err
13281
       } && test -s conftest.$ac_objext; then
13282 82 jeremybenn
  ac_cv_have_decl_I_PUSH=yes
13283 19 jeremybenn
else
13284 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13285 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13286
 
13287 82 jeremybenn
        ac_cv_have_decl_I_PUSH=no
13288 19 jeremybenn
fi
13289
 
13290
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13291 82 jeremybenn
fi
13292
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_I_PUSH" >&5
13293
$as_echo "$ac_cv_have_decl_I_PUSH" >&6; }
13294
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then
13295 19 jeremybenn
 
13296 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13297
#define HAVE_DECL_I_PUSH 1
13298 19 jeremybenn
_ACEOF
13299
 
13300 82 jeremybenn
 
13301 19 jeremybenn
else
13302 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
13303
#define HAVE_DECL_I_PUSH 0
13304 19 jeremybenn
_ACEOF
13305
 
13306
 
13307
fi
13308 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether rl_event_hook is declared" >&5
13309
$as_echo_n "checking whether rl_event_hook is declared... " >&6; }
13310
if test "${ac_cv_have_decl_rl_event_hook+set}" = set; then
13311
  $as_echo_n "(cached) " >&6
13312 19 jeremybenn
else
13313
  cat >conftest.$ac_ext <<_ACEOF
13314
/* confdefs.h.  */
13315
_ACEOF
13316
cat confdefs.h >>conftest.$ac_ext
13317
cat >>conftest.$ac_ext <<_ACEOF
13318
/* end confdefs.h.  */
13319 82 jeremybenn
\
13320
               #include 
13321 19 jeremybenn
 
13322
int
13323
main ()
13324
{
13325 82 jeremybenn
#ifndef rl_event_hook
13326
  (void) rl_event_hook;
13327
#endif
13328
 
13329
  ;
13330 19 jeremybenn
  return 0;
13331
}
13332
_ACEOF
13333 82 jeremybenn
rm -f conftest.$ac_objext
13334
if { (ac_try="$ac_compile"
13335 19 jeremybenn
case "(($ac_try" in
13336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337
  *) ac_try_echo=$ac_try;;
13338
esac
13339 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13340
$as_echo "$ac_try_echo") >&5
13341
  (eval "$ac_compile") 2>conftest.er1
13342 19 jeremybenn
  ac_status=$?
13343 82 jeremybenn
  grep -v '^ *+' conftest.er1 >conftest.err
13344
  rm -f conftest.er1
13345
  cat conftest.err >&5
13346
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347
  (exit $ac_status); } && {
13348
         test -z "$ac_c_werror_flag" ||
13349
         test ! -s conftest.err
13350
       } && test -s conftest.$ac_objext; then
13351
  ac_cv_have_decl_rl_event_hook=yes
13352 19 jeremybenn
else
13353 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13354 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13355
 
13356 82 jeremybenn
        ac_cv_have_decl_rl_event_hook=no
13357 19 jeremybenn
fi
13358
 
13359 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13360 19 jeremybenn
fi
13361 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_event_hook" >&5
13362
$as_echo "$ac_cv_have_decl_rl_event_hook" >&6; }
13363
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then
13364 19 jeremybenn
 
13365 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13366
#define HAVE_DECL_RL_EVENT_HOOK 1
13367 19 jeremybenn
_ACEOF
13368
 
13369
 
13370 82 jeremybenn
else
13371
  cat >>confdefs.h <<_ACEOF
13372
#define HAVE_DECL_RL_EVENT_HOOK 0
13373
_ACEOF
13374 19 jeremybenn
 
13375
 
13376 82 jeremybenn
fi
13377 19 jeremybenn
 
13378
 
13379
 
13380 82 jeremybenn
 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13381
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13382
if test "${ac_cv_c_bigendian+set}" = set; then
13383
  $as_echo_n "(cached) " >&6
13384 19 jeremybenn
else
13385 82 jeremybenn
  ac_cv_c_bigendian=unknown
13386
    # See if we're dealing with a universal compiler.
13387
    cat >conftest.$ac_ext <<_ACEOF
13388 19 jeremybenn
/* confdefs.h.  */
13389
_ACEOF
13390
cat confdefs.h >>conftest.$ac_ext
13391
cat >>conftest.$ac_ext <<_ACEOF
13392
/* end confdefs.h.  */
13393 82 jeremybenn
#ifndef __APPLE_CC__
13394
               not a universal capable compiler
13395
             #endif
13396
             typedef int dummy;
13397
 
13398 19 jeremybenn
_ACEOF
13399
rm -f conftest.$ac_objext
13400
if { (ac_try="$ac_compile"
13401
case "(($ac_try" in
13402
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403
  *) ac_try_echo=$ac_try;;
13404
esac
13405 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13406
$as_echo "$ac_try_echo") >&5
13407 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13408
  ac_status=$?
13409
  grep -v '^ *+' conftest.er1 >conftest.err
13410
  rm -f conftest.er1
13411
  cat conftest.err >&5
13412 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 19 jeremybenn
  (exit $ac_status); } && {
13414
         test -z "$ac_c_werror_flag" ||
13415
         test ! -s conftest.err
13416
       } && test -s conftest.$ac_objext; then
13417 82 jeremybenn
 
13418
        # Check for potential -arch flags.  It is not universal unless
13419
        # there are some -arch flags.  Note that *ppc* also matches
13420
        # ppc64.  This check is also rather less than ideal.
13421
        case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13422
          *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13423
        esac
13424 19 jeremybenn
else
13425 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13426 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13427
 
13428 82 jeremybenn
 
13429 19 jeremybenn
fi
13430
 
13431
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
13433
      # See if sys/param.h defines the BYTE_ORDER macro.
13434
      cat >conftest.$ac_ext <<_ACEOF
13435 19 jeremybenn
/* confdefs.h.  */
13436
_ACEOF
13437
cat confdefs.h >>conftest.$ac_ext
13438
cat >>conftest.$ac_ext <<_ACEOF
13439
/* end confdefs.h.  */
13440 82 jeremybenn
#include 
13441
             #include 
13442
 
13443
int
13444
main ()
13445
{
13446
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13447
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13448
                     && LITTLE_ENDIAN)
13449
              bogus endian macros
13450
             #endif
13451
 
13452
  ;
13453
  return 0;
13454
}
13455 19 jeremybenn
_ACEOF
13456 82 jeremybenn
rm -f conftest.$ac_objext
13457
if { (ac_try="$ac_compile"
13458 19 jeremybenn
case "(($ac_try" in
13459
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460
  *) ac_try_echo=$ac_try;;
13461
esac
13462 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13463
$as_echo "$ac_try_echo") >&5
13464
  (eval "$ac_compile") 2>conftest.er1
13465 19 jeremybenn
  ac_status=$?
13466
  grep -v '^ *+' conftest.er1 >conftest.err
13467
  rm -f conftest.er1
13468
  cat conftest.err >&5
13469 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470
  (exit $ac_status); } && {
13471
         test -z "$ac_c_werror_flag" ||
13472 19 jeremybenn
         test ! -s conftest.err
13473 82 jeremybenn
       } && test -s conftest.$ac_objext; then
13474
  # It does; now see whether it defined to BIG_ENDIAN or not.
13475
         cat >conftest.$ac_ext <<_ACEOF
13476 19 jeremybenn
/* confdefs.h.  */
13477
_ACEOF
13478
cat confdefs.h >>conftest.$ac_ext
13479
cat >>conftest.$ac_ext <<_ACEOF
13480
/* end confdefs.h.  */
13481 82 jeremybenn
#include 
13482
                #include 
13483
 
13484 19 jeremybenn
int
13485
main ()
13486
{
13487 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
13488
                 not big endian
13489
                #endif
13490 19 jeremybenn
 
13491
  ;
13492
  return 0;
13493
}
13494
_ACEOF
13495
rm -f conftest.$ac_objext
13496
if { (ac_try="$ac_compile"
13497
case "(($ac_try" in
13498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499
  *) ac_try_echo=$ac_try;;
13500
esac
13501 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13502
$as_echo "$ac_try_echo") >&5
13503 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13504
  ac_status=$?
13505
  grep -v '^ *+' conftest.er1 >conftest.err
13506
  rm -f conftest.er1
13507
  cat conftest.err >&5
13508 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 19 jeremybenn
  (exit $ac_status); } && {
13510
         test -z "$ac_c_werror_flag" ||
13511
         test ! -s conftest.err
13512
       } && test -s conftest.$ac_objext; then
13513 82 jeremybenn
  ac_cv_c_bigendian=yes
13514 19 jeremybenn
else
13515 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13516 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13517
 
13518 82 jeremybenn
        ac_cv_c_bigendian=no
13519 19 jeremybenn
fi
13520
 
13521
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522
else
13523 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13524
sed 's/^/| /' conftest.$ac_ext >&5
13525 19 jeremybenn
 
13526
 
13527
fi
13528
 
13529 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13530
    fi
13531
    if test $ac_cv_c_bigendian = unknown; then
13532
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13533
      cat >conftest.$ac_ext <<_ACEOF
13534 19 jeremybenn
/* confdefs.h.  */
13535
_ACEOF
13536
cat confdefs.h >>conftest.$ac_ext
13537
cat >>conftest.$ac_ext <<_ACEOF
13538
/* end confdefs.h.  */
13539 82 jeremybenn
#include 
13540 19 jeremybenn
 
13541
int
13542
main ()
13543
{
13544 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13545
              bogus endian macros
13546
             #endif
13547 19 jeremybenn
 
13548
  ;
13549
  return 0;
13550
}
13551
_ACEOF
13552
rm -f conftest.$ac_objext
13553
if { (ac_try="$ac_compile"
13554
case "(($ac_try" in
13555
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556
  *) ac_try_echo=$ac_try;;
13557
esac
13558 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13559
$as_echo "$ac_try_echo") >&5
13560 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13561
  ac_status=$?
13562
  grep -v '^ *+' conftest.er1 >conftest.err
13563
  rm -f conftest.er1
13564
  cat conftest.err >&5
13565 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 19 jeremybenn
  (exit $ac_status); } && {
13567
         test -z "$ac_c_werror_flag" ||
13568
         test ! -s conftest.err
13569
       } && test -s conftest.$ac_objext; then
13570 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
13571
         cat >conftest.$ac_ext <<_ACEOF
13572 19 jeremybenn
/* confdefs.h.  */
13573
_ACEOF
13574
cat confdefs.h >>conftest.$ac_ext
13575
cat >>conftest.$ac_ext <<_ACEOF
13576
/* end confdefs.h.  */
13577 82 jeremybenn
#include 
13578 19 jeremybenn
 
13579
int
13580
main ()
13581
{
13582 82 jeremybenn
#ifndef _BIG_ENDIAN
13583
                 not big endian
13584
                #endif
13585 19 jeremybenn
 
13586
  ;
13587
  return 0;
13588
}
13589
_ACEOF
13590
rm -f conftest.$ac_objext
13591
if { (ac_try="$ac_compile"
13592
case "(($ac_try" in
13593
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13594
  *) ac_try_echo=$ac_try;;
13595
esac
13596 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13597
$as_echo "$ac_try_echo") >&5
13598 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13599
  ac_status=$?
13600
  grep -v '^ *+' conftest.er1 >conftest.err
13601
  rm -f conftest.er1
13602
  cat conftest.err >&5
13603 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 19 jeremybenn
  (exit $ac_status); } && {
13605
         test -z "$ac_c_werror_flag" ||
13606
         test ! -s conftest.err
13607
       } && test -s conftest.$ac_objext; then
13608
  ac_cv_c_bigendian=yes
13609
else
13610 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13611 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13612
 
13613
        ac_cv_c_bigendian=no
13614
fi
13615
 
13616
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13617
else
13618 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13619 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13620
 
13621 82 jeremybenn
 
13622
fi
13623
 
13624
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13625
    fi
13626
    if test $ac_cv_c_bigendian = unknown; then
13627
      # Compile a test program.
13628
      if test "$cross_compiling" = yes; then
13629
  # Try to guess by grepping values from an object file.
13630
         cat >conftest.$ac_ext <<_ACEOF
13631 19 jeremybenn
/* confdefs.h.  */
13632
_ACEOF
13633
cat confdefs.h >>conftest.$ac_ext
13634
cat >>conftest.$ac_ext <<_ACEOF
13635
/* end confdefs.h.  */
13636 82 jeremybenn
short int ascii_mm[] =
13637
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13638
                short int ascii_ii[] =
13639
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13640
                int use_ascii (int i) {
13641
                  return ascii_mm[i] + ascii_ii[i];
13642
                }
13643
                short int ebcdic_ii[] =
13644
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13645
                short int ebcdic_mm[] =
13646
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13647
                int use_ebcdic (int i) {
13648
                  return ebcdic_mm[i] + ebcdic_ii[i];
13649
                }
13650
                extern int foo;
13651
 
13652 19 jeremybenn
int
13653
main ()
13654
{
13655 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
13656 19 jeremybenn
  ;
13657
  return 0;
13658
}
13659
_ACEOF
13660
rm -f conftest.$ac_objext
13661
if { (ac_try="$ac_compile"
13662
case "(($ac_try" in
13663
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664
  *) ac_try_echo=$ac_try;;
13665
esac
13666 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13667
$as_echo "$ac_try_echo") >&5
13668 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13669
  ac_status=$?
13670
  grep -v '^ *+' conftest.er1 >conftest.err
13671
  rm -f conftest.er1
13672
  cat conftest.err >&5
13673 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 19 jeremybenn
  (exit $ac_status); } && {
13675
         test -z "$ac_c_werror_flag" ||
13676
         test ! -s conftest.err
13677
       } && test -s conftest.$ac_objext; then
13678 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13679
              ac_cv_c_bigendian=yes
13680
            fi
13681
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13682
              if test "$ac_cv_c_bigendian" = unknown; then
13683
                ac_cv_c_bigendian=no
13684
              else
13685
                # finding both strings is unlikely to happen, but who knows?
13686
                ac_cv_c_bigendian=unknown
13687
              fi
13688
            fi
13689 19 jeremybenn
else
13690 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13691 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13692
 
13693
 
13694
fi
13695
 
13696
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13697
else
13698
  cat >conftest.$ac_ext <<_ACEOF
13699
/* confdefs.h.  */
13700
_ACEOF
13701
cat confdefs.h >>conftest.$ac_ext
13702
cat >>conftest.$ac_ext <<_ACEOF
13703
/* end confdefs.h.  */
13704
$ac_includes_default
13705
int
13706
main ()
13707
{
13708
 
13709 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
13710
             union
13711
             {
13712
               long int l;
13713
               char c[sizeof (long int)];
13714
             } u;
13715
             u.l = 1;
13716
             return u.c[sizeof (long int) - 1] == 1;
13717 19 jeremybenn
 
13718
  ;
13719
  return 0;
13720
}
13721
_ACEOF
13722
rm -f conftest$ac_exeext
13723
if { (ac_try="$ac_link"
13724
case "(($ac_try" in
13725
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726
  *) ac_try_echo=$ac_try;;
13727
esac
13728 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13729
$as_echo "$ac_try_echo") >&5
13730 19 jeremybenn
  (eval "$ac_link") 2>&5
13731
  ac_status=$?
13732 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13734
  { (case "(($ac_try" in
13735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736
  *) ac_try_echo=$ac_try;;
13737
esac
13738 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13739
$as_echo "$ac_try_echo") >&5
13740 19 jeremybenn
  (eval "$ac_try") 2>&5
13741
  ac_status=$?
13742 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 19 jeremybenn
  (exit $ac_status); }; }; then
13744
  ac_cv_c_bigendian=no
13745
else
13746 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
13747
$as_echo "$as_me: failed program was:" >&5
13748 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13749
 
13750
( exit $ac_status )
13751
ac_cv_c_bigendian=yes
13752
fi
13753 82 jeremybenn
rm -rf conftest.dSYM
13754 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13755
fi
13756
 
13757
 
13758 82 jeremybenn
    fi
13759 19 jeremybenn
fi
13760 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13761
$as_echo "$ac_cv_c_bigendian" >&6; }
13762
 case $ac_cv_c_bigendian in #(
13763
   yes)
13764
     cat >>confdefs.h <<\_ACEOF
13765
#define WORDS_BIGENDIAN 1
13766
_ACEOF
13767
;; #(
13768
   no)
13769
      ;; #(
13770
   universal)
13771 19 jeremybenn
 
13772 82 jeremybenn
cat >>confdefs.h <<\_ACEOF
13773
#define AC_APPLE_UNIVERSAL_BUILD 1
13774
_ACEOF
13775
 
13776
     ;; #(
13777
   *)
13778
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
13779
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13780
$as_echo "$as_me: error: unknown endianness
13781
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13782
   { (exit 1); exit 1; }; } ;;
13783
 esac
13784
 
13785
 
13786
# The test for strndup, strcasecmp and isblank fails on modern machines. I
13787
# think it's because GCC 4 does not like the way autoconf overrides the built
13788
# in type declaration. So we must check for them by steam.
13789
{ $as_echo "$as_me:$LINENO: checking for strndup" >&5
13790
$as_echo_n "checking for strndup... " >&6; }
13791
cat >conftest.$ac_ext <<_ACEOF
13792
/* confdefs.h.  */
13793
_ACEOF
13794
cat confdefs.h >>conftest.$ac_ext
13795
cat >>conftest.$ac_ext <<_ACEOF
13796
/* end confdefs.h.  */
13797
#ifdef HAVE_STRING_H
13798
                                  #include 
13799
                                  #else
13800
                                  char *strndup (const char *s,
13801
                                                 size_t      n);
13802
                                  #endif
13803
int
13804
main ()
13805
{
13806
\
13807
                                const char *s = "test";
13808
                                  char       *t;
13809
                                  t = strndup (s, 3);
13810
  ;
13811
  return 0;
13812
}
13813
_ACEOF
13814
rm -f conftest.$ac_objext conftest$ac_exeext
13815
if { (ac_try="$ac_link"
13816
case "(($ac_try" in
13817
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818
  *) ac_try_echo=$ac_try;;
13819
esac
13820
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13821
$as_echo "$ac_try_echo") >&5
13822
  (eval "$ac_link") 2>conftest.er1
13823
  ac_status=$?
13824
  grep -v '^ *+' conftest.er1 >conftest.err
13825
  rm -f conftest.er1
13826
  cat conftest.err >&5
13827
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828
  (exit $ac_status); } && {
13829
         test -z "$ac_c_werror_flag" ||
13830
         test ! -s conftest.err
13831
       } && test -s conftest$ac_exeext && {
13832
         test "$cross_compiling" = yes ||
13833
         $as_test_x conftest$ac_exeext
13834
       }; then
13835
  \
13836
 
13837
cat >>confdefs.h <<\_ACEOF
13838
#define HAVE_STRNDUP 1
13839
_ACEOF
13840
 \
13841
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13842
$as_echo "yes" >&6; }
13843
else
13844
  $as_echo "$as_me: failed program was:" >&5
13845
sed 's/^/| /' conftest.$ac_ext >&5
13846
 
13847
        { $as_echo "$as_me:$LINENO: result: no" >&5
13848
$as_echo "no" >&6; }
13849 19 jeremybenn
fi
13850
 
13851 82 jeremybenn
rm -rf conftest.dSYM
13852
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13853
      conftest$ac_exeext conftest.$ac_ext
13854
 
13855
{ $as_echo "$as_me:$LINENO: checking for strcasecmp" >&5
13856
$as_echo_n "checking for strcasecmp... " >&6; }
13857
cat >conftest.$ac_ext <<_ACEOF
13858
/* confdefs.h.  */
13859
_ACEOF
13860
cat confdefs.h >>conftest.$ac_ext
13861
cat >>conftest.$ac_ext <<_ACEOF
13862
/* end confdefs.h.  */
13863
#ifdef HAVE_STRINGS_H
13864
                                  #include 
13865
                                  #else
13866
                                  int strcasecmp (const char *s1,
13867
                                                  const char *s2);
13868
                                  #endif
13869
int
13870
main ()
13871
{
13872
\
13873
                                const char *s = "test";
13874
                                  const char *t = "TEST";
13875
                                  int         res;
13876
                                  res = strcasecmp (s, t);
13877
  ;
13878
  return 0;
13879
}
13880
_ACEOF
13881
rm -f conftest.$ac_objext conftest$ac_exeext
13882
if { (ac_try="$ac_link"
13883
case "(($ac_try" in
13884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885
  *) ac_try_echo=$ac_try;;
13886
esac
13887
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13888
$as_echo "$ac_try_echo") >&5
13889
  (eval "$ac_link") 2>conftest.er1
13890
  ac_status=$?
13891
  grep -v '^ *+' conftest.er1 >conftest.err
13892
  rm -f conftest.er1
13893
  cat conftest.err >&5
13894
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895
  (exit $ac_status); } && {
13896
         test -z "$ac_c_werror_flag" ||
13897
         test ! -s conftest.err
13898
       } && test -s conftest$ac_exeext && {
13899
         test "$cross_compiling" = yes ||
13900
         $as_test_x conftest$ac_exeext
13901
       }; then
13902
  \
13903
 
13904 19 jeremybenn
cat >>confdefs.h <<\_ACEOF
13905 82 jeremybenn
#define HAVE_STRCASECMP 1
13906 19 jeremybenn
_ACEOF
13907 82 jeremybenn
 \
13908
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13909
$as_echo "yes" >&6; }
13910
else
13911
  $as_echo "$as_me: failed program was:" >&5
13912
sed 's/^/| /' conftest.$ac_ext >&5
13913
 
13914
        { $as_echo "$as_me:$LINENO: result: no" >&5
13915
$as_echo "no" >&6; }
13916
fi
13917
 
13918
rm -rf conftest.dSYM
13919
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13920
      conftest$ac_exeext conftest.$ac_ext
13921
 
13922
{ $as_echo "$as_me:$LINENO: checking for isblank" >&5
13923
$as_echo_n "checking for isblank... " >&6; }
13924
cat >conftest.$ac_ext <<_ACEOF
13925
/* confdefs.h.  */
13926
_ACEOF
13927
cat confdefs.h >>conftest.$ac_ext
13928
cat >>conftest.$ac_ext <<_ACEOF
13929
/* end confdefs.h.  */
13930
#ifdef HAVE_CTYPE_H
13931
                                  #include 
13932
                                  #else
13933
                                  int isblank (int  c);
13934
                                  #endif
13935
int
13936
main ()
13937
{
13938
\
13939
                                return isblank ('x');
13940
  ;
13941
  return 0;
13942
}
13943
_ACEOF
13944
rm -f conftest.$ac_objext conftest$ac_exeext
13945
if { (ac_try="$ac_link"
13946
case "(($ac_try" in
13947
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948
  *) ac_try_echo=$ac_try;;
13949 19 jeremybenn
esac
13950 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13951
$as_echo "$ac_try_echo") >&5
13952
  (eval "$ac_link") 2>conftest.er1
13953
  ac_status=$?
13954
  grep -v '^ *+' conftest.er1 >conftest.err
13955
  rm -f conftest.er1
13956
  cat conftest.err >&5
13957
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958
  (exit $ac_status); } && {
13959
         test -z "$ac_c_werror_flag" ||
13960
         test ! -s conftest.err
13961
       } && test -s conftest$ac_exeext && {
13962
         test "$cross_compiling" = yes ||
13963
         $as_test_x conftest$ac_exeext
13964
       }; then
13965
  \
13966 19 jeremybenn
 
13967 82 jeremybenn
cat >>confdefs.h <<\_ACEOF
13968
#define HAVE_ISBLANK 1
13969
_ACEOF
13970
 \
13971
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13972
$as_echo "yes" >&6; }
13973
else
13974
  $as_echo "$as_me: failed program was:" >&5
13975
sed 's/^/| /' conftest.$ac_ext >&5
13976 19 jeremybenn
 
13977 82 jeremybenn
        { $as_echo "$as_me:$LINENO: result: no" >&5
13978
$as_echo "no" >&6; }
13979
fi
13980
 
13981
rm -rf conftest.dSYM
13982
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13983
      conftest$ac_exeext conftest.$ac_ext
13984
 
13985 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
13986 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13987
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13988 19 jeremybenn
if test "${ac_cv_c_const+set}" = set; then
13989 82 jeremybenn
  $as_echo_n "(cached) " >&6
13990 19 jeremybenn
else
13991
  cat >conftest.$ac_ext <<_ACEOF
13992
/* confdefs.h.  */
13993
_ACEOF
13994
cat confdefs.h >>conftest.$ac_ext
13995
cat >>conftest.$ac_ext <<_ACEOF
13996
/* end confdefs.h.  */
13997
 
13998
int
13999
main ()
14000
{
14001
/* FIXME: Include the comments suggested by Paul. */
14002
#ifndef __cplusplus
14003
  /* Ultrix mips cc rejects this.  */
14004
  typedef int charset[2];
14005
  const charset cs;
14006
  /* SunOS 4.1.1 cc rejects this.  */
14007
  char const *const *pcpcc;
14008
  char **ppc;
14009
  /* NEC SVR4.0.2 mips cc rejects this.  */
14010
  struct point {int x, y;};
14011
  static struct point const zero = {0,0};
14012
  /* AIX XL C 1.02.0.0 rejects this.
14013
     It does not let you subtract one const X* pointer from another in
14014
     an arm of an if-expression whose if-part is not a constant
14015
     expression */
14016
  const char *g = "string";
14017
  pcpcc = &g + (g ? g-g : 0);
14018
  /* HPUX 7.0 cc rejects these. */
14019
  ++pcpcc;
14020
  ppc = (char**) pcpcc;
14021
  pcpcc = (char const *const *) ppc;
14022
  { /* SCO 3.2v4 cc rejects this.  */
14023
    char *t;
14024
    char const *s = 0 ? (char *) 0 : (char const *) 0;
14025
 
14026
    *t++ = 0;
14027
    if (s) return 0;
14028
  }
14029
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14030
    int x[] = {25, 17};
14031
    const int *foo = &x[0];
14032
    ++foo;
14033
  }
14034
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14035
    typedef const int *iptr;
14036
    iptr p = 0;
14037
    ++p;
14038
  }
14039
  { /* AIX XL C 1.02.0.0 rejects this saying
14040
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14041
    struct s { int j; const int *ap[3]; };
14042
    struct s *b; b->j = 5;
14043
  }
14044
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14045
    const int foo = 10;
14046
    if (!foo) return 0;
14047
  }
14048
  return !cs[0] && !zero.x;
14049
#endif
14050
 
14051
  ;
14052
  return 0;
14053
}
14054
_ACEOF
14055
rm -f conftest.$ac_objext
14056
if { (ac_try="$ac_compile"
14057
case "(($ac_try" in
14058
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059
  *) ac_try_echo=$ac_try;;
14060
esac
14061 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14062
$as_echo "$ac_try_echo") >&5
14063 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
14064
  ac_status=$?
14065
  grep -v '^ *+' conftest.er1 >conftest.err
14066
  rm -f conftest.er1
14067
  cat conftest.err >&5
14068 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 19 jeremybenn
  (exit $ac_status); } && {
14070
         test -z "$ac_c_werror_flag" ||
14071
         test ! -s conftest.err
14072
       } && test -s conftest.$ac_objext; then
14073
  ac_cv_c_const=yes
14074
else
14075 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14076 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14077
 
14078
        ac_cv_c_const=no
14079
fi
14080
 
14081
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14082
fi
14083 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14084
$as_echo "$ac_cv_c_const" >&6; }
14085 19 jeremybenn
if test $ac_cv_c_const = no; then
14086
 
14087
cat >>confdefs.h <<\_ACEOF
14088 82 jeremybenn
#define const /**/
14089 19 jeremybenn
_ACEOF
14090
 
14091
fi
14092
 
14093 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
14094
$as_echo_n "checking for size_t... " >&6; }
14095 19 jeremybenn
if test "${ac_cv_type_size_t+set}" = set; then
14096 82 jeremybenn
  $as_echo_n "(cached) " >&6
14097 19 jeremybenn
else
14098 82 jeremybenn
  ac_cv_type_size_t=no
14099
cat >conftest.$ac_ext <<_ACEOF
14100
/* confdefs.h.  */
14101
_ACEOF
14102
cat confdefs.h >>conftest.$ac_ext
14103
cat >>conftest.$ac_ext <<_ACEOF
14104
/* end confdefs.h.  */
14105
$ac_includes_default
14106
int
14107
main ()
14108
{
14109
if (sizeof (size_t))
14110
       return 0;
14111
  ;
14112
  return 0;
14113
}
14114
_ACEOF
14115
rm -f conftest.$ac_objext
14116
if { (ac_try="$ac_compile"
14117
case "(($ac_try" in
14118
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119
  *) ac_try_echo=$ac_try;;
14120
esac
14121
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14122
$as_echo "$ac_try_echo") >&5
14123
  (eval "$ac_compile") 2>conftest.er1
14124
  ac_status=$?
14125
  grep -v '^ *+' conftest.er1 >conftest.err
14126
  rm -f conftest.er1
14127
  cat conftest.err >&5
14128
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129
  (exit $ac_status); } && {
14130
         test -z "$ac_c_werror_flag" ||
14131
         test ! -s conftest.err
14132
       } && test -s conftest.$ac_objext; then
14133 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14134
/* confdefs.h.  */
14135
_ACEOF
14136
cat confdefs.h >>conftest.$ac_ext
14137
cat >>conftest.$ac_ext <<_ACEOF
14138
/* end confdefs.h.  */
14139
$ac_includes_default
14140
int
14141
main ()
14142
{
14143 82 jeremybenn
if (sizeof ((size_t)))
14144
          return 0;
14145 19 jeremybenn
  ;
14146
  return 0;
14147
}
14148
_ACEOF
14149
rm -f conftest.$ac_objext
14150
if { (ac_try="$ac_compile"
14151
case "(($ac_try" in
14152
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153
  *) ac_try_echo=$ac_try;;
14154
esac
14155 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14156
$as_echo "$ac_try_echo") >&5
14157 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
14158
  ac_status=$?
14159
  grep -v '^ *+' conftest.er1 >conftest.err
14160
  rm -f conftest.er1
14161
  cat conftest.err >&5
14162 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 19 jeremybenn
  (exit $ac_status); } && {
14164
         test -z "$ac_c_werror_flag" ||
14165
         test ! -s conftest.err
14166
       } && test -s conftest.$ac_objext; then
14167 82 jeremybenn
  :
14168 19 jeremybenn
else
14169 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14170 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14171
 
14172 82 jeremybenn
        ac_cv_type_size_t=yes
14173 19 jeremybenn
fi
14174
 
14175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176 82 jeremybenn
else
14177
  $as_echo "$as_me: failed program was:" >&5
14178
sed 's/^/| /' conftest.$ac_ext >&5
14179
 
14180
 
14181 19 jeremybenn
fi
14182 82 jeremybenn
 
14183
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184
fi
14185
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14186
$as_echo "$ac_cv_type_size_t" >&6; }
14187
if test "x$ac_cv_type_size_t" = x""yes; then
14188 19 jeremybenn
  :
14189
else
14190
 
14191
cat >>confdefs.h <<_ACEOF
14192
#define size_t unsigned int
14193
_ACEOF
14194
 
14195
fi
14196
 
14197 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14198
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14199 19 jeremybenn
if test "${ac_cv_struct_tm+set}" = set; then
14200 82 jeremybenn
  $as_echo_n "(cached) " >&6
14201 19 jeremybenn
else
14202
  cat >conftest.$ac_ext <<_ACEOF
14203
/* confdefs.h.  */
14204
_ACEOF
14205
cat confdefs.h >>conftest.$ac_ext
14206
cat >>conftest.$ac_ext <<_ACEOF
14207
/* end confdefs.h.  */
14208
#include 
14209
#include 
14210
 
14211
int
14212
main ()
14213
{
14214
struct tm tm;
14215
                                     int *p = &tm.tm_sec;
14216 82 jeremybenn
                                     return !p;
14217 19 jeremybenn
  ;
14218
  return 0;
14219
}
14220
_ACEOF
14221
rm -f conftest.$ac_objext
14222
if { (ac_try="$ac_compile"
14223
case "(($ac_try" in
14224
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225
  *) ac_try_echo=$ac_try;;
14226
esac
14227 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14228
$as_echo "$ac_try_echo") >&5
14229 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
14230
  ac_status=$?
14231
  grep -v '^ *+' conftest.er1 >conftest.err
14232
  rm -f conftest.er1
14233
  cat conftest.err >&5
14234 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 19 jeremybenn
  (exit $ac_status); } && {
14236
         test -z "$ac_c_werror_flag" ||
14237
         test ! -s conftest.err
14238
       } && test -s conftest.$ac_objext; then
14239
  ac_cv_struct_tm=time.h
14240
else
14241 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14242 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14243
 
14244
        ac_cv_struct_tm=sys/time.h
14245
fi
14246
 
14247
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14248
fi
14249 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14250
$as_echo "$ac_cv_struct_tm" >&6; }
14251 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
14252
 
14253
cat >>confdefs.h <<\_ACEOF
14254
#define TM_IN_SYS_TIME 1
14255
_ACEOF
14256
 
14257
fi
14258
 
14259
 
14260
# Checks for library functions (for argtable2).
14261
 
14262
for ac_header in stdlib.h
14263
do
14264 82 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14265 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14266 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14267
$as_echo_n "checking for $ac_header... " >&6; }
14268 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14269 82 jeremybenn
  $as_echo_n "(cached) " >&6
14270 19 jeremybenn
fi
14271 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
14272
                 $as_echo "$as_val"'`
14273
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14274
$as_echo "$ac_res" >&6; }
14275 19 jeremybenn
else
14276
  # Is the header compilable?
14277 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14278
$as_echo_n "checking $ac_header usability... " >&6; }
14279 19 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14280
/* confdefs.h.  */
14281
_ACEOF
14282
cat confdefs.h >>conftest.$ac_ext
14283
cat >>conftest.$ac_ext <<_ACEOF
14284
/* end confdefs.h.  */
14285
$ac_includes_default
14286
#include <$ac_header>
14287
_ACEOF
14288
rm -f conftest.$ac_objext
14289
if { (ac_try="$ac_compile"
14290
case "(($ac_try" in
14291
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292
  *) ac_try_echo=$ac_try;;
14293
esac
14294 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14295
$as_echo "$ac_try_echo") >&5
14296 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
14297
  ac_status=$?
14298
  grep -v '^ *+' conftest.er1 >conftest.err
14299
  rm -f conftest.er1
14300
  cat conftest.err >&5
14301 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 19 jeremybenn
  (exit $ac_status); } && {
14303
         test -z "$ac_c_werror_flag" ||
14304
         test ! -s conftest.err
14305
       } && test -s conftest.$ac_objext; then
14306
  ac_header_compiler=yes
14307
else
14308 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14309 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14310
 
14311
        ac_header_compiler=no
14312
fi
14313
 
14314
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14316
$as_echo "$ac_header_compiler" >&6; }
14317 19 jeremybenn
 
14318
# Is the header present?
14319 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14320
$as_echo_n "checking $ac_header presence... " >&6; }
14321 19 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14322
/* confdefs.h.  */
14323
_ACEOF
14324
cat confdefs.h >>conftest.$ac_ext
14325
cat >>conftest.$ac_ext <<_ACEOF
14326
/* end confdefs.h.  */
14327
#include <$ac_header>
14328
_ACEOF
14329
if { (ac_try="$ac_cpp conftest.$ac_ext"
14330
case "(($ac_try" in
14331
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332
  *) ac_try_echo=$ac_try;;
14333
esac
14334 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14335
$as_echo "$ac_try_echo") >&5
14336 19 jeremybenn
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14337
  ac_status=$?
14338
  grep -v '^ *+' conftest.er1 >conftest.err
14339
  rm -f conftest.er1
14340
  cat conftest.err >&5
14341 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 19 jeremybenn
  (exit $ac_status); } >/dev/null && {
14343
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14344
         test ! -s conftest.err
14345
       }; then
14346
  ac_header_preproc=yes
14347
else
14348 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14349 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14350
 
14351
  ac_header_preproc=no
14352
fi
14353
 
14354
rm -f conftest.err conftest.$ac_ext
14355 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14356
$as_echo "$ac_header_preproc" >&6; }
14357 19 jeremybenn
 
14358
# So?  What about this header?
14359
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14360
  yes:no: )
14361 82 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14362
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14363
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14364
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14365 19 jeremybenn
    ac_header_preproc=yes
14366
    ;;
14367
  no:yes:* )
14368 82 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14369
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14370
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14371
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14372
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14373
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14374
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14375
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14376
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14377
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14378
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14379
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14380 19 jeremybenn
    ( cat <<\_ASBOX
14381
## ------------------------------------- ##
14382
## Report this to openrisc@opencores.org ##
14383
## ------------------------------------- ##
14384
_ASBOX
14385
     ) | sed "s/^/$as_me: WARNING:     /" >&2
14386
    ;;
14387
esac
14388 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14389
$as_echo_n "checking for $ac_header... " >&6; }
14390 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14391 82 jeremybenn
  $as_echo_n "(cached) " >&6
14392 19 jeremybenn
else
14393
  eval "$as_ac_Header=\$ac_header_preproc"
14394
fi
14395 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
14396
                 $as_echo "$as_val"'`
14397
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14398
$as_echo "$ac_res" >&6; }
14399 19 jeremybenn
 
14400
fi
14401 82 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
14402
                 $as_echo "$as_val"'`
14403
   if test "x$as_val" = x""yes; then
14404 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14405 82 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14406 19 jeremybenn
_ACEOF
14407
 
14408
fi
14409
 
14410
done
14411
 
14412 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14413
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14414 19 jeremybenn
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14415 82 jeremybenn
  $as_echo_n "(cached) " >&6
14416 19 jeremybenn
else
14417
  if test "$cross_compiling" = yes; then
14418
  ac_cv_func_malloc_0_nonnull=no
14419
else
14420
  cat >conftest.$ac_ext <<_ACEOF
14421
/* confdefs.h.  */
14422
_ACEOF
14423
cat confdefs.h >>conftest.$ac_ext
14424
cat >>conftest.$ac_ext <<_ACEOF
14425
/* end confdefs.h.  */
14426
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14427
# include 
14428
#else
14429
char *malloc ();
14430
#endif
14431
 
14432
int
14433
main ()
14434
{
14435
return ! malloc (0);
14436
  ;
14437
  return 0;
14438
}
14439
_ACEOF
14440
rm -f conftest$ac_exeext
14441
if { (ac_try="$ac_link"
14442
case "(($ac_try" in
14443
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444
  *) ac_try_echo=$ac_try;;
14445
esac
14446 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14447
$as_echo "$ac_try_echo") >&5
14448 19 jeremybenn
  (eval "$ac_link") 2>&5
14449
  ac_status=$?
14450 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14452
  { (case "(($ac_try" in
14453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454
  *) ac_try_echo=$ac_try;;
14455
esac
14456 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14457
$as_echo "$ac_try_echo") >&5
14458 19 jeremybenn
  (eval "$ac_try") 2>&5
14459
  ac_status=$?
14460 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 19 jeremybenn
  (exit $ac_status); }; }; then
14462
  ac_cv_func_malloc_0_nonnull=yes
14463
else
14464 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14465
$as_echo "$as_me: failed program was:" >&5
14466 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14467
 
14468
( exit $ac_status )
14469
ac_cv_func_malloc_0_nonnull=no
14470
fi
14471 82 jeremybenn
rm -rf conftest.dSYM
14472 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14473
fi
14474
 
14475
 
14476
fi
14477 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14478
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14479 19 jeremybenn
if test $ac_cv_func_malloc_0_nonnull = yes; then
14480
 
14481
cat >>confdefs.h <<\_ACEOF
14482
#define HAVE_MALLOC 1
14483
_ACEOF
14484
 
14485
else
14486
  cat >>confdefs.h <<\_ACEOF
14487
#define HAVE_MALLOC 0
14488
_ACEOF
14489
 
14490
   case " $LIBOBJS " in
14491
  *" malloc.$ac_objext "* ) ;;
14492
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14493
 ;;
14494
esac
14495
 
14496
 
14497
cat >>confdefs.h <<\_ACEOF
14498
#define malloc rpl_malloc
14499
_ACEOF
14500
 
14501
fi
14502
 
14503
 
14504
 
14505
 
14506
for ac_func in strftime
14507
do
14508 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14509
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14510
$as_echo_n "checking for $ac_func... " >&6; }
14511 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14512 82 jeremybenn
  $as_echo_n "(cached) " >&6
14513 19 jeremybenn
else
14514
  cat >conftest.$ac_ext <<_ACEOF
14515
/* confdefs.h.  */
14516
_ACEOF
14517
cat confdefs.h >>conftest.$ac_ext
14518
cat >>conftest.$ac_ext <<_ACEOF
14519
/* end confdefs.h.  */
14520
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14521
   For example, HP-UX 11i  declares gettimeofday.  */
14522
#define $ac_func innocuous_$ac_func
14523
 
14524
/* System header to define __stub macros and hopefully few prototypes,
14525
    which can conflict with char $ac_func (); below.
14526
    Prefer  to  if __STDC__ is defined, since
14527
     exists even on freestanding compilers.  */
14528
 
14529
#ifdef __STDC__
14530
# include 
14531
#else
14532
# include 
14533
#endif
14534
 
14535
#undef $ac_func
14536
 
14537
/* Override any GCC internal prototype to avoid an error.
14538
   Use char because int might match the return type of a GCC
14539
   builtin and then its argument prototype would still apply.  */
14540
#ifdef __cplusplus
14541
extern "C"
14542
#endif
14543
char $ac_func ();
14544
/* The GNU C library defines this for functions which it implements
14545
    to always fail with ENOSYS.  Some functions are actually named
14546
    something starting with __ and the normal name is an alias.  */
14547
#if defined __stub_$ac_func || defined __stub___$ac_func
14548
choke me
14549
#endif
14550
 
14551
int
14552
main ()
14553
{
14554
return $ac_func ();
14555
  ;
14556
  return 0;
14557
}
14558
_ACEOF
14559
rm -f conftest.$ac_objext conftest$ac_exeext
14560
if { (ac_try="$ac_link"
14561
case "(($ac_try" in
14562
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563
  *) ac_try_echo=$ac_try;;
14564
esac
14565 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14566
$as_echo "$ac_try_echo") >&5
14567 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14568
  ac_status=$?
14569
  grep -v '^ *+' conftest.er1 >conftest.err
14570
  rm -f conftest.er1
14571
  cat conftest.err >&5
14572 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 19 jeremybenn
  (exit $ac_status); } && {
14574
         test -z "$ac_c_werror_flag" ||
14575
         test ! -s conftest.err
14576 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14577
         test "$cross_compiling" = yes ||
14578
         $as_test_x conftest$ac_exeext
14579
       }; then
14580 19 jeremybenn
  eval "$as_ac_var=yes"
14581
else
14582 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14583 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14584
 
14585
        eval "$as_ac_var=no"
14586
fi
14587
 
14588 82 jeremybenn
rm -rf conftest.dSYM
14589 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14590
      conftest$ac_exeext conftest.$ac_ext
14591
fi
14592 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
14593
                 $as_echo "$as_val"'`
14594
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14595
$as_echo "$ac_res" >&6; }
14596
as_val=`eval 'as_val=${'$as_ac_var'}
14597
                 $as_echo "$as_val"'`
14598
   if test "x$as_val" = x""yes; then
14599 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14600 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14601 19 jeremybenn
_ACEOF
14602
 
14603
else
14604
  # strftime is in -lintl on SCO UNIX.
14605 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14606
$as_echo_n "checking for strftime in -lintl... " >&6; }
14607 19 jeremybenn
if test "${ac_cv_lib_intl_strftime+set}" = set; then
14608 82 jeremybenn
  $as_echo_n "(cached) " >&6
14609 19 jeremybenn
else
14610
  ac_check_lib_save_LIBS=$LIBS
14611
LIBS="-lintl  $LIBS"
14612
cat >conftest.$ac_ext <<_ACEOF
14613
/* confdefs.h.  */
14614
_ACEOF
14615
cat confdefs.h >>conftest.$ac_ext
14616
cat >>conftest.$ac_ext <<_ACEOF
14617
/* end confdefs.h.  */
14618
 
14619
/* Override any GCC internal prototype to avoid an error.
14620
   Use char because int might match the return type of a GCC
14621
   builtin and then its argument prototype would still apply.  */
14622
#ifdef __cplusplus
14623
extern "C"
14624
#endif
14625
char strftime ();
14626
int
14627
main ()
14628
{
14629
return strftime ();
14630
  ;
14631
  return 0;
14632
}
14633
_ACEOF
14634
rm -f conftest.$ac_objext conftest$ac_exeext
14635
if { (ac_try="$ac_link"
14636
case "(($ac_try" in
14637
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638
  *) ac_try_echo=$ac_try;;
14639
esac
14640 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14641
$as_echo "$ac_try_echo") >&5
14642 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14643
  ac_status=$?
14644
  grep -v '^ *+' conftest.er1 >conftest.err
14645
  rm -f conftest.er1
14646
  cat conftest.err >&5
14647 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 19 jeremybenn
  (exit $ac_status); } && {
14649
         test -z "$ac_c_werror_flag" ||
14650
         test ! -s conftest.err
14651 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14652
         test "$cross_compiling" = yes ||
14653
         $as_test_x conftest$ac_exeext
14654
       }; then
14655 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
14656
else
14657 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14658 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14659
 
14660
        ac_cv_lib_intl_strftime=no
14661
fi
14662
 
14663 82 jeremybenn
rm -rf conftest.dSYM
14664 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14665
      conftest$ac_exeext conftest.$ac_ext
14666
LIBS=$ac_check_lib_save_LIBS
14667
fi
14668 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14669
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
14670
if test "x$ac_cv_lib_intl_strftime" = x""yes; then
14671 19 jeremybenn
  cat >>confdefs.h <<\_ACEOF
14672
#define HAVE_STRFTIME 1
14673
_ACEOF
14674
 
14675
LIBS="-lintl $LIBS"
14676
fi
14677
 
14678
fi
14679
done
14680
 
14681 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
14682
$as_echo_n "checking for working strtod... " >&6; }
14683 19 jeremybenn
if test "${ac_cv_func_strtod+set}" = set; then
14684 82 jeremybenn
  $as_echo_n "(cached) " >&6
14685 19 jeremybenn
else
14686
  if test "$cross_compiling" = yes; then
14687
  ac_cv_func_strtod=no
14688
else
14689
  cat >conftest.$ac_ext <<_ACEOF
14690
/* confdefs.h.  */
14691
_ACEOF
14692
cat confdefs.h >>conftest.$ac_ext
14693
cat >>conftest.$ac_ext <<_ACEOF
14694
/* end confdefs.h.  */
14695
 
14696
$ac_includes_default
14697
#ifndef strtod
14698
double strtod ();
14699
#endif
14700
int
14701
main()
14702
{
14703
  {
14704
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
14705
    char *string = " +69";
14706
    char *term;
14707
    double value;
14708
    value = strtod (string, &term);
14709
    if (value != 69 || term != (string + 4))
14710
      return 1;
14711
  }
14712
 
14713
  {
14714
    /* Under Solaris 2.4, strtod returns the wrong value for the
14715
       terminating character under some conditions.  */
14716
    char *string = "NaN";
14717
    char *term;
14718
    strtod (string, &term);
14719
    if (term != string && *(term - 1) == 0)
14720
      return 1;
14721
  }
14722
  return 0;
14723
}
14724
 
14725
_ACEOF
14726
rm -f conftest$ac_exeext
14727
if { (ac_try="$ac_link"
14728
case "(($ac_try" in
14729
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730
  *) ac_try_echo=$ac_try;;
14731
esac
14732 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14733
$as_echo "$ac_try_echo") >&5
14734 19 jeremybenn
  (eval "$ac_link") 2>&5
14735
  ac_status=$?
14736 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14738
  { (case "(($ac_try" in
14739
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740
  *) ac_try_echo=$ac_try;;
14741
esac
14742 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14743
$as_echo "$ac_try_echo") >&5
14744 19 jeremybenn
  (eval "$ac_try") 2>&5
14745
  ac_status=$?
14746 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 19 jeremybenn
  (exit $ac_status); }; }; then
14748
  ac_cv_func_strtod=yes
14749
else
14750 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14751
$as_echo "$as_me: failed program was:" >&5
14752 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14753
 
14754
( exit $ac_status )
14755
ac_cv_func_strtod=no
14756
fi
14757 82 jeremybenn
rm -rf conftest.dSYM
14758 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14759
fi
14760
 
14761
 
14762
fi
14763 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14764
$as_echo "$ac_cv_func_strtod" >&6; }
14765 19 jeremybenn
if test $ac_cv_func_strtod = no; then
14766
  case " $LIBOBJS " in
14767
  *" strtod.$ac_objext "* ) ;;
14768
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14769
 ;;
14770
esac
14771
 
14772 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for pow" >&5
14773
$as_echo_n "checking for pow... " >&6; }
14774 19 jeremybenn
if test "${ac_cv_func_pow+set}" = set; then
14775 82 jeremybenn
  $as_echo_n "(cached) " >&6
14776 19 jeremybenn
else
14777
  cat >conftest.$ac_ext <<_ACEOF
14778
/* confdefs.h.  */
14779
_ACEOF
14780
cat confdefs.h >>conftest.$ac_ext
14781
cat >>conftest.$ac_ext <<_ACEOF
14782
/* end confdefs.h.  */
14783
/* Define pow to an innocuous variant, in case  declares pow.
14784
   For example, HP-UX 11i  declares gettimeofday.  */
14785
#define pow innocuous_pow
14786
 
14787
/* System header to define __stub macros and hopefully few prototypes,
14788
    which can conflict with char pow (); below.
14789
    Prefer  to  if __STDC__ is defined, since
14790
     exists even on freestanding compilers.  */
14791
 
14792
#ifdef __STDC__
14793
# include 
14794
#else
14795
# include 
14796
#endif
14797
 
14798
#undef pow
14799
 
14800
/* Override any GCC internal prototype to avoid an error.
14801
   Use char because int might match the return type of a GCC
14802
   builtin and then its argument prototype would still apply.  */
14803
#ifdef __cplusplus
14804
extern "C"
14805
#endif
14806
char pow ();
14807
/* The GNU C library defines this for functions which it implements
14808
    to always fail with ENOSYS.  Some functions are actually named
14809
    something starting with __ and the normal name is an alias.  */
14810
#if defined __stub_pow || defined __stub___pow
14811
choke me
14812
#endif
14813
 
14814
int
14815
main ()
14816
{
14817
return pow ();
14818
  ;
14819
  return 0;
14820
}
14821
_ACEOF
14822
rm -f conftest.$ac_objext conftest$ac_exeext
14823
if { (ac_try="$ac_link"
14824
case "(($ac_try" in
14825
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826
  *) ac_try_echo=$ac_try;;
14827
esac
14828 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14829
$as_echo "$ac_try_echo") >&5
14830 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14831
  ac_status=$?
14832
  grep -v '^ *+' conftest.er1 >conftest.err
14833
  rm -f conftest.er1
14834
  cat conftest.err >&5
14835 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 19 jeremybenn
  (exit $ac_status); } && {
14837
         test -z "$ac_c_werror_flag" ||
14838
         test ! -s conftest.err
14839 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14840
         test "$cross_compiling" = yes ||
14841
         $as_test_x conftest$ac_exeext
14842
       }; then
14843 19 jeremybenn
  ac_cv_func_pow=yes
14844
else
14845 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14846 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14847
 
14848
        ac_cv_func_pow=no
14849
fi
14850
 
14851 82 jeremybenn
rm -rf conftest.dSYM
14852 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14853
      conftest$ac_exeext conftest.$ac_ext
14854
fi
14855 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14856
$as_echo "$ac_cv_func_pow" >&6; }
14857 19 jeremybenn
 
14858
if test $ac_cv_func_pow = no; then
14859 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
14860
$as_echo_n "checking for pow in -lm... " >&6; }
14861 19 jeremybenn
if test "${ac_cv_lib_m_pow+set}" = set; then
14862 82 jeremybenn
  $as_echo_n "(cached) " >&6
14863 19 jeremybenn
else
14864
  ac_check_lib_save_LIBS=$LIBS
14865
LIBS="-lm  $LIBS"
14866
cat >conftest.$ac_ext <<_ACEOF
14867
/* confdefs.h.  */
14868
_ACEOF
14869
cat confdefs.h >>conftest.$ac_ext
14870
cat >>conftest.$ac_ext <<_ACEOF
14871
/* end confdefs.h.  */
14872
 
14873
/* Override any GCC internal prototype to avoid an error.
14874
   Use char because int might match the return type of a GCC
14875
   builtin and then its argument prototype would still apply.  */
14876
#ifdef __cplusplus
14877
extern "C"
14878
#endif
14879
char pow ();
14880
int
14881
main ()
14882
{
14883
return pow ();
14884
  ;
14885
  return 0;
14886
}
14887
_ACEOF
14888
rm -f conftest.$ac_objext conftest$ac_exeext
14889
if { (ac_try="$ac_link"
14890
case "(($ac_try" in
14891
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892
  *) ac_try_echo=$ac_try;;
14893
esac
14894 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14895
$as_echo "$ac_try_echo") >&5
14896 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14897
  ac_status=$?
14898
  grep -v '^ *+' conftest.er1 >conftest.err
14899
  rm -f conftest.er1
14900
  cat conftest.err >&5
14901 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 19 jeremybenn
  (exit $ac_status); } && {
14903
         test -z "$ac_c_werror_flag" ||
14904
         test ! -s conftest.err
14905 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14906
         test "$cross_compiling" = yes ||
14907
         $as_test_x conftest$ac_exeext
14908
       }; then
14909 19 jeremybenn
  ac_cv_lib_m_pow=yes
14910
else
14911 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14912 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14913
 
14914
        ac_cv_lib_m_pow=no
14915
fi
14916
 
14917 82 jeremybenn
rm -rf conftest.dSYM
14918 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14919
      conftest$ac_exeext conftest.$ac_ext
14920
LIBS=$ac_check_lib_save_LIBS
14921
fi
14922 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14923
$as_echo "$ac_cv_lib_m_pow" >&6; }
14924
if test "x$ac_cv_lib_m_pow" = x""yes; then
14925 19 jeremybenn
  POW_LIB=-lm
14926
else
14927 82 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14928
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14929 19 jeremybenn
fi
14930
 
14931
fi
14932
 
14933
fi
14934
 
14935
 
14936
 
14937
 
14938
 
14939
 
14940
for ac_func in bzero strchr strcspn strrchr strtol
14941
do
14942 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14943
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14944
$as_echo_n "checking for $ac_func... " >&6; }
14945 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14946 82 jeremybenn
  $as_echo_n "(cached) " >&6
14947 19 jeremybenn
else
14948
  cat >conftest.$ac_ext <<_ACEOF
14949
/* confdefs.h.  */
14950
_ACEOF
14951
cat confdefs.h >>conftest.$ac_ext
14952
cat >>conftest.$ac_ext <<_ACEOF
14953
/* end confdefs.h.  */
14954
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14955
   For example, HP-UX 11i  declares gettimeofday.  */
14956
#define $ac_func innocuous_$ac_func
14957
 
14958
/* System header to define __stub macros and hopefully few prototypes,
14959
    which can conflict with char $ac_func (); below.
14960
    Prefer  to  if __STDC__ is defined, since
14961
     exists even on freestanding compilers.  */
14962
 
14963
#ifdef __STDC__
14964
# include 
14965
#else
14966
# include 
14967
#endif
14968
 
14969
#undef $ac_func
14970
 
14971
/* Override any GCC internal prototype to avoid an error.
14972
   Use char because int might match the return type of a GCC
14973
   builtin and then its argument prototype would still apply.  */
14974
#ifdef __cplusplus
14975
extern "C"
14976
#endif
14977
char $ac_func ();
14978
/* The GNU C library defines this for functions which it implements
14979
    to always fail with ENOSYS.  Some functions are actually named
14980
    something starting with __ and the normal name is an alias.  */
14981
#if defined __stub_$ac_func || defined __stub___$ac_func
14982
choke me
14983
#endif
14984
 
14985
int
14986
main ()
14987
{
14988
return $ac_func ();
14989
  ;
14990
  return 0;
14991
}
14992
_ACEOF
14993
rm -f conftest.$ac_objext conftest$ac_exeext
14994
if { (ac_try="$ac_link"
14995
case "(($ac_try" in
14996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997
  *) ac_try_echo=$ac_try;;
14998
esac
14999 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15000
$as_echo "$ac_try_echo") >&5
15001 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
15002
  ac_status=$?
15003
  grep -v '^ *+' conftest.er1 >conftest.err
15004
  rm -f conftest.er1
15005
  cat conftest.err >&5
15006 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 19 jeremybenn
  (exit $ac_status); } && {
15008
         test -z "$ac_c_werror_flag" ||
15009
         test ! -s conftest.err
15010 82 jeremybenn
       } && test -s conftest$ac_exeext && {
15011
         test "$cross_compiling" = yes ||
15012
         $as_test_x conftest$ac_exeext
15013
       }; then
15014 19 jeremybenn
  eval "$as_ac_var=yes"
15015
else
15016 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15017 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15018
 
15019
        eval "$as_ac_var=no"
15020
fi
15021
 
15022 82 jeremybenn
rm -rf conftest.dSYM
15023 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15024
      conftest$ac_exeext conftest.$ac_ext
15025
fi
15026 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
15027
                 $as_echo "$as_val"'`
15028
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15029
$as_echo "$ac_res" >&6; }
15030
as_val=`eval 'as_val=${'$as_ac_var'}
15031
                 $as_echo "$as_val"'`
15032
   if test "x$as_val" = x""yes; then
15033 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
15034 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15035 19 jeremybenn
_ACEOF
15036
 
15037
fi
15038
done
15039
 
15040 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
15041
$as_echo_n "checking for getopt_long... " >&6; }
15042 19 jeremybenn
if test "${ac_cv_func_getopt_long+set}" = set; then
15043 82 jeremybenn
  $as_echo_n "(cached) " >&6
15044 19 jeremybenn
else
15045
  cat >conftest.$ac_ext <<_ACEOF
15046
/* confdefs.h.  */
15047
_ACEOF
15048
cat confdefs.h >>conftest.$ac_ext
15049
cat >>conftest.$ac_ext <<_ACEOF
15050
/* end confdefs.h.  */
15051
/* Define getopt_long to an innocuous variant, in case  declares getopt_long.
15052
   For example, HP-UX 11i  declares gettimeofday.  */
15053
#define getopt_long innocuous_getopt_long
15054
 
15055
/* System header to define __stub macros and hopefully few prototypes,
15056
    which can conflict with char getopt_long (); below.
15057
    Prefer  to  if __STDC__ is defined, since
15058
     exists even on freestanding compilers.  */
15059
 
15060
#ifdef __STDC__
15061
# include 
15062
#else
15063
# include 
15064
#endif
15065
 
15066
#undef getopt_long
15067
 
15068
/* Override any GCC internal prototype to avoid an error.
15069
   Use char because int might match the return type of a GCC
15070
   builtin and then its argument prototype would still apply.  */
15071
#ifdef __cplusplus
15072
extern "C"
15073
#endif
15074
char getopt_long ();
15075
/* The GNU C library defines this for functions which it implements
15076
    to always fail with ENOSYS.  Some functions are actually named
15077
    something starting with __ and the normal name is an alias.  */
15078
#if defined __stub_getopt_long || defined __stub___getopt_long
15079
choke me
15080
#endif
15081
 
15082
int
15083
main ()
15084
{
15085
return getopt_long ();
15086
  ;
15087
  return 0;
15088
}
15089
_ACEOF
15090
rm -f conftest.$ac_objext conftest$ac_exeext
15091
if { (ac_try="$ac_link"
15092
case "(($ac_try" in
15093
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094
  *) ac_try_echo=$ac_try;;
15095
esac
15096 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15097
$as_echo "$ac_try_echo") >&5
15098 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
15099
  ac_status=$?
15100
  grep -v '^ *+' conftest.er1 >conftest.err
15101
  rm -f conftest.er1
15102
  cat conftest.err >&5
15103 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 19 jeremybenn
  (exit $ac_status); } && {
15105
         test -z "$ac_c_werror_flag" ||
15106
         test ! -s conftest.err
15107 82 jeremybenn
       } && test -s conftest$ac_exeext && {
15108
         test "$cross_compiling" = yes ||
15109
         $as_test_x conftest$ac_exeext
15110
       }; then
15111 19 jeremybenn
  ac_cv_func_getopt_long=yes
15112
else
15113 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15114 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15115
 
15116
        ac_cv_func_getopt_long=no
15117
fi
15118
 
15119 82 jeremybenn
rm -rf conftest.dSYM
15120 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15121
      conftest$ac_exeext conftest.$ac_ext
15122
fi
15123 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
15124
$as_echo "$ac_cv_func_getopt_long" >&6; }
15125
if test "x$ac_cv_func_getopt_long" = x""yes; then
15126 19 jeremybenn
  SYS_GETOPTLONG=1
15127
else
15128
  SYS_GETOPTLONG=0
15129
fi
15130
 
15131 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for regcomp" >&5
15132
$as_echo_n "checking for regcomp... " >&6; }
15133 19 jeremybenn
if test "${ac_cv_func_regcomp+set}" = set; then
15134 82 jeremybenn
  $as_echo_n "(cached) " >&6
15135 19 jeremybenn
else
15136
  cat >conftest.$ac_ext <<_ACEOF
15137
/* confdefs.h.  */
15138
_ACEOF
15139
cat confdefs.h >>conftest.$ac_ext
15140
cat >>conftest.$ac_ext <<_ACEOF
15141
/* end confdefs.h.  */
15142
/* Define regcomp to an innocuous variant, in case  declares regcomp.
15143
   For example, HP-UX 11i  declares gettimeofday.  */
15144
#define regcomp innocuous_regcomp
15145
 
15146
/* System header to define __stub macros and hopefully few prototypes,
15147
    which can conflict with char regcomp (); below.
15148
    Prefer  to  if __STDC__ is defined, since
15149
     exists even on freestanding compilers.  */
15150
 
15151
#ifdef __STDC__
15152
# include 
15153
#else
15154
# include 
15155
#endif
15156
 
15157
#undef regcomp
15158
 
15159
/* Override any GCC internal prototype to avoid an error.
15160
   Use char because int might match the return type of a GCC
15161
   builtin and then its argument prototype would still apply.  */
15162
#ifdef __cplusplus
15163
extern "C"
15164
#endif
15165
char regcomp ();
15166
/* The GNU C library defines this for functions which it implements
15167
    to always fail with ENOSYS.  Some functions are actually named
15168
    something starting with __ and the normal name is an alias.  */
15169
#if defined __stub_regcomp || defined __stub___regcomp
15170
choke me
15171
#endif
15172
 
15173
int
15174
main ()
15175
{
15176
return regcomp ();
15177
  ;
15178
  return 0;
15179
}
15180
_ACEOF
15181
rm -f conftest.$ac_objext conftest$ac_exeext
15182
if { (ac_try="$ac_link"
15183
case "(($ac_try" in
15184
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15185
  *) ac_try_echo=$ac_try;;
15186
esac
15187 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15188
$as_echo "$ac_try_echo") >&5
15189 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
15190
  ac_status=$?
15191
  grep -v '^ *+' conftest.er1 >conftest.err
15192
  rm -f conftest.er1
15193
  cat conftest.err >&5
15194 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 19 jeremybenn
  (exit $ac_status); } && {
15196
         test -z "$ac_c_werror_flag" ||
15197
         test ! -s conftest.err
15198 82 jeremybenn
       } && test -s conftest$ac_exeext && {
15199
         test "$cross_compiling" = yes ||
15200
         $as_test_x conftest$ac_exeext
15201
       }; then
15202 19 jeremybenn
  ac_cv_func_regcomp=yes
15203
else
15204 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15205 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15206
 
15207
        ac_cv_func_regcomp=no
15208
fi
15209
 
15210 82 jeremybenn
rm -rf conftest.dSYM
15211 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15212
      conftest$ac_exeext conftest.$ac_ext
15213
fi
15214 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
15215
$as_echo "$ac_cv_func_regcomp" >&6; }
15216
if test "x$ac_cv_func_regcomp" = x""yes; then
15217 19 jeremybenn
  SYS_REGEX=1
15218
else
15219
  SYS_REGEX=0
15220
fi
15221
 
15222 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strptime" >&5
15223
$as_echo_n "checking for strptime... " >&6; }
15224 19 jeremybenn
if test "${ac_cv_func_strptime+set}" = set; then
15225 82 jeremybenn
  $as_echo_n "(cached) " >&6
15226 19 jeremybenn
else
15227
  cat >conftest.$ac_ext <<_ACEOF
15228
/* confdefs.h.  */
15229
_ACEOF
15230
cat confdefs.h >>conftest.$ac_ext
15231
cat >>conftest.$ac_ext <<_ACEOF
15232
/* end confdefs.h.  */
15233
/* Define strptime to an innocuous variant, in case  declares strptime.
15234
   For example, HP-UX 11i  declares gettimeofday.  */
15235
#define strptime innocuous_strptime
15236
 
15237
/* System header to define __stub macros and hopefully few prototypes,
15238
    which can conflict with char strptime (); below.
15239
    Prefer  to  if __STDC__ is defined, since
15240
     exists even on freestanding compilers.  */
15241
 
15242
#ifdef __STDC__
15243
# include 
15244
#else
15245
# include 
15246
#endif
15247
 
15248
#undef strptime
15249
 
15250
/* Override any GCC internal prototype to avoid an error.
15251
   Use char because int might match the return type of a GCC
15252
   builtin and then its argument prototype would still apply.  */
15253
#ifdef __cplusplus
15254
extern "C"
15255
#endif
15256
char strptime ();
15257
/* The GNU C library defines this for functions which it implements
15258
    to always fail with ENOSYS.  Some functions are actually named
15259
    something starting with __ and the normal name is an alias.  */
15260
#if defined __stub_strptime || defined __stub___strptime
15261
choke me
15262
#endif
15263
 
15264
int
15265
main ()
15266
{
15267
return strptime ();
15268
  ;
15269
  return 0;
15270
}
15271
_ACEOF
15272
rm -f conftest.$ac_objext conftest$ac_exeext
15273
if { (ac_try="$ac_link"
15274
case "(($ac_try" in
15275
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276
  *) ac_try_echo=$ac_try;;
15277
esac
15278 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15279
$as_echo "$ac_try_echo") >&5
15280 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
15281
  ac_status=$?
15282
  grep -v '^ *+' conftest.er1 >conftest.err
15283
  rm -f conftest.er1
15284
  cat conftest.err >&5
15285 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 19 jeremybenn
  (exit $ac_status); } && {
15287
         test -z "$ac_c_werror_flag" ||
15288
         test ! -s conftest.err
15289 82 jeremybenn
       } && test -s conftest$ac_exeext && {
15290
         test "$cross_compiling" = yes ||
15291
         $as_test_x conftest$ac_exeext
15292
       }; then
15293 19 jeremybenn
  ac_cv_func_strptime=yes
15294
else
15295 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15296 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15297
 
15298
        ac_cv_func_strptime=no
15299
fi
15300
 
15301 82 jeremybenn
rm -rf conftest.dSYM
15302 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15303
      conftest$ac_exeext conftest.$ac_ext
15304
fi
15305 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
15306
$as_echo "$ac_cv_func_strptime" >&6; }
15307
if test "x$ac_cv_func_strptime" = x""yes; then
15308 19 jeremybenn
  SYS_STRPTIME=1
15309
else
15310
  SYS_STRPTIME=0
15311
fi
15312
 
15313
 
15314
# Define automake conditionals (for argtable2)
15315
 if test "$SYS_GETOPTLONG" = "1"; then
15316
  USE_SYS_GETOPTLONG_TRUE=
15317
  USE_SYS_GETOPTLONG_FALSE='#'
15318
else
15319
  USE_SYS_GETOPTLONG_TRUE='#'
15320
  USE_SYS_GETOPTLONG_FALSE=
15321
fi
15322
 
15323
 if test "$SYS_REGEX" = "1"; then
15324
  USE_ARGREX_TRUE=
15325
  USE_ARGREX_FALSE='#'
15326
else
15327
  USE_ARGREX_TRUE='#'
15328
  USE_ARGREX_FALSE=
15329
fi
15330
 
15331
 if test "$SYS_STRPTIME" = "1"; then
15332
  USE_ARGDATE_TRUE=
15333
  USE_ARGDATE_FALSE='#'
15334
else
15335
  USE_ARGDATE_TRUE='#'
15336
  USE_ARGDATE_FALSE=
15337
fi
15338
 
15339
 
15340
# check for "long long" (added by Erez)
15341
cat >conftest.$ac_ext <<_ACEOF
15342
/* confdefs.h.  */
15343
_ACEOF
15344
cat confdefs.h >>conftest.$ac_ext
15345
cat >>conftest.$ac_ext <<_ACEOF
15346
/* end confdefs.h.  */
15347
 
15348
int
15349
main ()
15350
{
15351
long long ll; unsigned long long ull;
15352
  ;
15353
  return 0;
15354
}
15355
_ACEOF
15356
rm -f conftest.$ac_objext
15357
if { (ac_try="$ac_compile"
15358
case "(($ac_try" in
15359
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360
  *) ac_try_echo=$ac_try;;
15361
esac
15362 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15363
$as_echo "$ac_try_echo") >&5
15364 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15365
  ac_status=$?
15366
  grep -v '^ *+' conftest.er1 >conftest.err
15367
  rm -f conftest.er1
15368
  cat conftest.err >&5
15369 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 19 jeremybenn
  (exit $ac_status); } && {
15371
         test -z "$ac_c_werror_flag" ||
15372
         test ! -s conftest.err
15373
       } && test -s conftest.$ac_objext; then
15374
 
15375
cat >>confdefs.h <<\_ACEOF
15376
#define CC_HAS_LONG_LONG 1
15377
_ACEOF
15378
 
15379
else
15380 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15381 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15382
 
15383
 
15384
fi
15385
 
15386
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387
 
15388
# check for {u,}int{8,16,32}_t in inttypes.h.
15389 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
15390
$as_echo_n "checking for uint8_t... " >&6; }
15391 19 jeremybenn
if test "${ac_cv_type_uint8_t+set}" = set; then
15392 82 jeremybenn
  $as_echo_n "(cached) " >&6
15393 19 jeremybenn
else
15394 82 jeremybenn
  ac_cv_type_uint8_t=no
15395
cat >conftest.$ac_ext <<_ACEOF
15396
/* confdefs.h.  */
15397
_ACEOF
15398
cat confdefs.h >>conftest.$ac_ext
15399
cat >>conftest.$ac_ext <<_ACEOF
15400
/* end confdefs.h.  */
15401
#include 
15402
 
15403
int
15404
main ()
15405
{
15406
if (sizeof (uint8_t))
15407
       return 0;
15408
  ;
15409
  return 0;
15410
}
15411
_ACEOF
15412
rm -f conftest.$ac_objext
15413
if { (ac_try="$ac_compile"
15414
case "(($ac_try" in
15415
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416
  *) ac_try_echo=$ac_try;;
15417
esac
15418
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15419
$as_echo "$ac_try_echo") >&5
15420
  (eval "$ac_compile") 2>conftest.er1
15421
  ac_status=$?
15422
  grep -v '^ *+' conftest.er1 >conftest.err
15423
  rm -f conftest.er1
15424
  cat conftest.err >&5
15425
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426
  (exit $ac_status); } && {
15427
         test -z "$ac_c_werror_flag" ||
15428
         test ! -s conftest.err
15429
       } && test -s conftest.$ac_objext; then
15430 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15431
/* confdefs.h.  */
15432
_ACEOF
15433
cat confdefs.h >>conftest.$ac_ext
15434
cat >>conftest.$ac_ext <<_ACEOF
15435
/* end confdefs.h.  */
15436
#include 
15437
 
15438
int
15439
main ()
15440
{
15441 82 jeremybenn
if (sizeof ((uint8_t)))
15442
          return 0;
15443 19 jeremybenn
  ;
15444
  return 0;
15445
}
15446
_ACEOF
15447
rm -f conftest.$ac_objext
15448
if { (ac_try="$ac_compile"
15449
case "(($ac_try" in
15450
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451
  *) ac_try_echo=$ac_try;;
15452
esac
15453 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15454
$as_echo "$ac_try_echo") >&5
15455 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15456
  ac_status=$?
15457
  grep -v '^ *+' conftest.er1 >conftest.err
15458
  rm -f conftest.er1
15459
  cat conftest.err >&5
15460 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 19 jeremybenn
  (exit $ac_status); } && {
15462
         test -z "$ac_c_werror_flag" ||
15463
         test ! -s conftest.err
15464
       } && test -s conftest.$ac_objext; then
15465 82 jeremybenn
  :
15466 19 jeremybenn
else
15467 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15468 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15469
 
15470 82 jeremybenn
        ac_cv_type_uint8_t=yes
15471 19 jeremybenn
fi
15472
 
15473
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474 82 jeremybenn
else
15475
  $as_echo "$as_me: failed program was:" >&5
15476
sed 's/^/| /' conftest.$ac_ext >&5
15477
 
15478
 
15479 19 jeremybenn
fi
15480
 
15481 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15482
fi
15483
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
15484
$as_echo "$ac_cv_type_uint8_t" >&6; }
15485
if test "x$ac_cv_type_uint8_t" = x""yes; then
15486
 
15487 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15488
#define HAVE_UINT8_T 1
15489
_ACEOF
15490
 
15491
 
15492
fi
15493 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
15494
$as_echo_n "checking for uint16_t... " >&6; }
15495 19 jeremybenn
if test "${ac_cv_type_uint16_t+set}" = set; then
15496 82 jeremybenn
  $as_echo_n "(cached) " >&6
15497 19 jeremybenn
else
15498 82 jeremybenn
  ac_cv_type_uint16_t=no
15499
cat >conftest.$ac_ext <<_ACEOF
15500
/* confdefs.h.  */
15501
_ACEOF
15502
cat confdefs.h >>conftest.$ac_ext
15503
cat >>conftest.$ac_ext <<_ACEOF
15504
/* end confdefs.h.  */
15505
#include 
15506
 
15507
int
15508
main ()
15509
{
15510
if (sizeof (uint16_t))
15511
       return 0;
15512
  ;
15513
  return 0;
15514
}
15515
_ACEOF
15516
rm -f conftest.$ac_objext
15517
if { (ac_try="$ac_compile"
15518
case "(($ac_try" in
15519
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520
  *) ac_try_echo=$ac_try;;
15521
esac
15522
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15523
$as_echo "$ac_try_echo") >&5
15524
  (eval "$ac_compile") 2>conftest.er1
15525
  ac_status=$?
15526
  grep -v '^ *+' conftest.er1 >conftest.err
15527
  rm -f conftest.er1
15528
  cat conftest.err >&5
15529
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530
  (exit $ac_status); } && {
15531
         test -z "$ac_c_werror_flag" ||
15532
         test ! -s conftest.err
15533
       } && test -s conftest.$ac_objext; then
15534 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15535
/* confdefs.h.  */
15536
_ACEOF
15537
cat confdefs.h >>conftest.$ac_ext
15538
cat >>conftest.$ac_ext <<_ACEOF
15539
/* end confdefs.h.  */
15540
#include 
15541
 
15542
int
15543
main ()
15544
{
15545 82 jeremybenn
if (sizeof ((uint16_t)))
15546
          return 0;
15547 19 jeremybenn
  ;
15548
  return 0;
15549
}
15550
_ACEOF
15551
rm -f conftest.$ac_objext
15552
if { (ac_try="$ac_compile"
15553
case "(($ac_try" in
15554
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555
  *) ac_try_echo=$ac_try;;
15556
esac
15557 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15558
$as_echo "$ac_try_echo") >&5
15559 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15560
  ac_status=$?
15561
  grep -v '^ *+' conftest.er1 >conftest.err
15562
  rm -f conftest.er1
15563
  cat conftest.err >&5
15564 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 19 jeremybenn
  (exit $ac_status); } && {
15566
         test -z "$ac_c_werror_flag" ||
15567
         test ! -s conftest.err
15568
       } && test -s conftest.$ac_objext; then
15569 82 jeremybenn
  :
15570 19 jeremybenn
else
15571 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15572 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15573
 
15574 82 jeremybenn
        ac_cv_type_uint16_t=yes
15575 19 jeremybenn
fi
15576
 
15577
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15578 82 jeremybenn
else
15579
  $as_echo "$as_me: failed program was:" >&5
15580
sed 's/^/| /' conftest.$ac_ext >&5
15581
 
15582
 
15583 19 jeremybenn
fi
15584
 
15585 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586
fi
15587
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
15588
$as_echo "$ac_cv_type_uint16_t" >&6; }
15589
if test "x$ac_cv_type_uint16_t" = x""yes; then
15590
 
15591 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15592
#define HAVE_UINT16_T 1
15593
_ACEOF
15594
 
15595
 
15596
fi
15597 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
15598
$as_echo_n "checking for uint32_t... " >&6; }
15599 19 jeremybenn
if test "${ac_cv_type_uint32_t+set}" = set; then
15600 82 jeremybenn
  $as_echo_n "(cached) " >&6
15601 19 jeremybenn
else
15602 82 jeremybenn
  ac_cv_type_uint32_t=no
15603
cat >conftest.$ac_ext <<_ACEOF
15604
/* confdefs.h.  */
15605
_ACEOF
15606
cat confdefs.h >>conftest.$ac_ext
15607
cat >>conftest.$ac_ext <<_ACEOF
15608
/* end confdefs.h.  */
15609
#include 
15610
 
15611
int
15612
main ()
15613
{
15614
if (sizeof (uint32_t))
15615
       return 0;
15616
  ;
15617
  return 0;
15618
}
15619
_ACEOF
15620
rm -f conftest.$ac_objext
15621
if { (ac_try="$ac_compile"
15622
case "(($ac_try" in
15623
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624
  *) ac_try_echo=$ac_try;;
15625
esac
15626
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15627
$as_echo "$ac_try_echo") >&5
15628
  (eval "$ac_compile") 2>conftest.er1
15629
  ac_status=$?
15630
  grep -v '^ *+' conftest.er1 >conftest.err
15631
  rm -f conftest.er1
15632
  cat conftest.err >&5
15633
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634
  (exit $ac_status); } && {
15635
         test -z "$ac_c_werror_flag" ||
15636
         test ! -s conftest.err
15637
       } && test -s conftest.$ac_objext; then
15638 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15639
/* confdefs.h.  */
15640
_ACEOF
15641
cat confdefs.h >>conftest.$ac_ext
15642
cat >>conftest.$ac_ext <<_ACEOF
15643
/* end confdefs.h.  */
15644
#include 
15645
 
15646
int
15647
main ()
15648
{
15649 82 jeremybenn
if (sizeof ((uint32_t)))
15650
          return 0;
15651 19 jeremybenn
  ;
15652
  return 0;
15653
}
15654
_ACEOF
15655
rm -f conftest.$ac_objext
15656
if { (ac_try="$ac_compile"
15657
case "(($ac_try" in
15658
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659
  *) ac_try_echo=$ac_try;;
15660
esac
15661 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15662
$as_echo "$ac_try_echo") >&5
15663 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15664
  ac_status=$?
15665
  grep -v '^ *+' conftest.er1 >conftest.err
15666
  rm -f conftest.er1
15667
  cat conftest.err >&5
15668 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 19 jeremybenn
  (exit $ac_status); } && {
15670
         test -z "$ac_c_werror_flag" ||
15671
         test ! -s conftest.err
15672
       } && test -s conftest.$ac_objext; then
15673 82 jeremybenn
  :
15674 19 jeremybenn
else
15675 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15676 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15677
 
15678 82 jeremybenn
        ac_cv_type_uint32_t=yes
15679 19 jeremybenn
fi
15680
 
15681
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15682 82 jeremybenn
else
15683
  $as_echo "$as_me: failed program was:" >&5
15684
sed 's/^/| /' conftest.$ac_ext >&5
15685
 
15686
 
15687 19 jeremybenn
fi
15688
 
15689 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15690
fi
15691
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
15692
$as_echo "$ac_cv_type_uint32_t" >&6; }
15693
if test "x$ac_cv_type_uint32_t" = x""yes; then
15694
 
15695 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15696
#define HAVE_UINT32_T 1
15697
_ACEOF
15698
 
15699
 
15700
fi
15701
 
15702 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
15703
$as_echo_n "checking for int8_t... " >&6; }
15704 19 jeremybenn
if test "${ac_cv_type_int8_t+set}" = set; then
15705 82 jeremybenn
  $as_echo_n "(cached) " >&6
15706 19 jeremybenn
else
15707 82 jeremybenn
  ac_cv_type_int8_t=no
15708
cat >conftest.$ac_ext <<_ACEOF
15709
/* confdefs.h.  */
15710
_ACEOF
15711
cat confdefs.h >>conftest.$ac_ext
15712
cat >>conftest.$ac_ext <<_ACEOF
15713
/* end confdefs.h.  */
15714
#include 
15715
 
15716
int
15717
main ()
15718
{
15719
if (sizeof (int8_t))
15720
       return 0;
15721
  ;
15722
  return 0;
15723
}
15724
_ACEOF
15725
rm -f conftest.$ac_objext
15726
if { (ac_try="$ac_compile"
15727
case "(($ac_try" in
15728
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729
  *) ac_try_echo=$ac_try;;
15730
esac
15731
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15732
$as_echo "$ac_try_echo") >&5
15733
  (eval "$ac_compile") 2>conftest.er1
15734
  ac_status=$?
15735
  grep -v '^ *+' conftest.er1 >conftest.err
15736
  rm -f conftest.er1
15737
  cat conftest.err >&5
15738
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739
  (exit $ac_status); } && {
15740
         test -z "$ac_c_werror_flag" ||
15741
         test ! -s conftest.err
15742
       } && test -s conftest.$ac_objext; then
15743 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15744
/* confdefs.h.  */
15745
_ACEOF
15746
cat confdefs.h >>conftest.$ac_ext
15747
cat >>conftest.$ac_ext <<_ACEOF
15748
/* end confdefs.h.  */
15749
#include 
15750
 
15751
int
15752
main ()
15753
{
15754 82 jeremybenn
if (sizeof ((int8_t)))
15755
          return 0;
15756 19 jeremybenn
  ;
15757
  return 0;
15758
}
15759
_ACEOF
15760
rm -f conftest.$ac_objext
15761
if { (ac_try="$ac_compile"
15762
case "(($ac_try" in
15763
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764
  *) ac_try_echo=$ac_try;;
15765
esac
15766 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767
$as_echo "$ac_try_echo") >&5
15768 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15769
  ac_status=$?
15770
  grep -v '^ *+' conftest.er1 >conftest.err
15771
  rm -f conftest.er1
15772
  cat conftest.err >&5
15773 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 19 jeremybenn
  (exit $ac_status); } && {
15775
         test -z "$ac_c_werror_flag" ||
15776
         test ! -s conftest.err
15777
       } && test -s conftest.$ac_objext; then
15778 82 jeremybenn
  :
15779 19 jeremybenn
else
15780 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15781 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15782
 
15783 82 jeremybenn
        ac_cv_type_int8_t=yes
15784 19 jeremybenn
fi
15785
 
15786
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15787 82 jeremybenn
else
15788
  $as_echo "$as_me: failed program was:" >&5
15789
sed 's/^/| /' conftest.$ac_ext >&5
15790
 
15791
 
15792 19 jeremybenn
fi
15793
 
15794 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15795
fi
15796
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
15797
$as_echo "$ac_cv_type_int8_t" >&6; }
15798
if test "x$ac_cv_type_int8_t" = x""yes; then
15799
 
15800 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15801
#define HAVE_INT8_T 1
15802
_ACEOF
15803
 
15804
 
15805
fi
15806 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
15807
$as_echo_n "checking for int16_t... " >&6; }
15808 19 jeremybenn
if test "${ac_cv_type_int16_t+set}" = set; then
15809 82 jeremybenn
  $as_echo_n "(cached) " >&6
15810 19 jeremybenn
else
15811 82 jeremybenn
  ac_cv_type_int16_t=no
15812
cat >conftest.$ac_ext <<_ACEOF
15813
/* confdefs.h.  */
15814
_ACEOF
15815
cat confdefs.h >>conftest.$ac_ext
15816
cat >>conftest.$ac_ext <<_ACEOF
15817
/* end confdefs.h.  */
15818
#include 
15819
 
15820
int
15821
main ()
15822
{
15823
if (sizeof (int16_t))
15824
       return 0;
15825
  ;
15826
  return 0;
15827
}
15828
_ACEOF
15829
rm -f conftest.$ac_objext
15830
if { (ac_try="$ac_compile"
15831
case "(($ac_try" in
15832
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833
  *) ac_try_echo=$ac_try;;
15834
esac
15835
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15836
$as_echo "$ac_try_echo") >&5
15837
  (eval "$ac_compile") 2>conftest.er1
15838
  ac_status=$?
15839
  grep -v '^ *+' conftest.er1 >conftest.err
15840
  rm -f conftest.er1
15841
  cat conftest.err >&5
15842
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843
  (exit $ac_status); } && {
15844
         test -z "$ac_c_werror_flag" ||
15845
         test ! -s conftest.err
15846
       } && test -s conftest.$ac_objext; then
15847 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15848
/* confdefs.h.  */
15849
_ACEOF
15850
cat confdefs.h >>conftest.$ac_ext
15851
cat >>conftest.$ac_ext <<_ACEOF
15852
/* end confdefs.h.  */
15853
#include 
15854
 
15855
int
15856
main ()
15857
{
15858 82 jeremybenn
if (sizeof ((int16_t)))
15859
          return 0;
15860 19 jeremybenn
  ;
15861
  return 0;
15862
}
15863
_ACEOF
15864
rm -f conftest.$ac_objext
15865
if { (ac_try="$ac_compile"
15866
case "(($ac_try" in
15867
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868
  *) ac_try_echo=$ac_try;;
15869
esac
15870 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15871
$as_echo "$ac_try_echo") >&5
15872 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15873
  ac_status=$?
15874
  grep -v '^ *+' conftest.er1 >conftest.err
15875
  rm -f conftest.er1
15876
  cat conftest.err >&5
15877 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 19 jeremybenn
  (exit $ac_status); } && {
15879
         test -z "$ac_c_werror_flag" ||
15880
         test ! -s conftest.err
15881
       } && test -s conftest.$ac_objext; then
15882 82 jeremybenn
  :
15883 19 jeremybenn
else
15884 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15885 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15886
 
15887 82 jeremybenn
        ac_cv_type_int16_t=yes
15888 19 jeremybenn
fi
15889
 
15890
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15891 82 jeremybenn
else
15892
  $as_echo "$as_me: failed program was:" >&5
15893
sed 's/^/| /' conftest.$ac_ext >&5
15894
 
15895
 
15896 19 jeremybenn
fi
15897
 
15898 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899
fi
15900
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
15901
$as_echo "$ac_cv_type_int16_t" >&6; }
15902
if test "x$ac_cv_type_int16_t" = x""yes; then
15903
 
15904 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15905
#define HAVE_INT16_T 1
15906
_ACEOF
15907
 
15908
 
15909
fi
15910 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
15911
$as_echo_n "checking for int32_t... " >&6; }
15912 19 jeremybenn
if test "${ac_cv_type_int32_t+set}" = set; then
15913 82 jeremybenn
  $as_echo_n "(cached) " >&6
15914 19 jeremybenn
else
15915 82 jeremybenn
  ac_cv_type_int32_t=no
15916
cat >conftest.$ac_ext <<_ACEOF
15917 19 jeremybenn
/* confdefs.h.  */
15918
_ACEOF
15919
cat confdefs.h >>conftest.$ac_ext
15920
cat >>conftest.$ac_ext <<_ACEOF
15921
/* end confdefs.h.  */
15922
#include 
15923
 
15924
int
15925
main ()
15926
{
15927 82 jeremybenn
if (sizeof (int32_t))
15928
       return 0;
15929 19 jeremybenn
  ;
15930
  return 0;
15931
}
15932
_ACEOF
15933
rm -f conftest.$ac_objext
15934
if { (ac_try="$ac_compile"
15935
case "(($ac_try" in
15936
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937
  *) ac_try_echo=$ac_try;;
15938
esac
15939 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15940
$as_echo "$ac_try_echo") >&5
15941 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15942
  ac_status=$?
15943
  grep -v '^ *+' conftest.er1 >conftest.err
15944
  rm -f conftest.er1
15945
  cat conftest.err >&5
15946 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 19 jeremybenn
  (exit $ac_status); } && {
15948
         test -z "$ac_c_werror_flag" ||
15949
         test ! -s conftest.err
15950
       } && test -s conftest.$ac_objext; then
15951
  cat >conftest.$ac_ext <<_ACEOF
15952
/* confdefs.h.  */
15953
_ACEOF
15954
cat confdefs.h >>conftest.$ac_ext
15955
cat >>conftest.$ac_ext <<_ACEOF
15956
/* end confdefs.h.  */
15957 82 jeremybenn
#include 
15958
 
15959 19 jeremybenn
int
15960
main ()
15961
{
15962 82 jeremybenn
if (sizeof ((int32_t)))
15963
          return 0;
15964 19 jeremybenn
  ;
15965
  return 0;
15966
}
15967
_ACEOF
15968
rm -f conftest.$ac_objext
15969
if { (ac_try="$ac_compile"
15970
case "(($ac_try" in
15971
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15972
  *) ac_try_echo=$ac_try;;
15973
esac
15974 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15975
$as_echo "$ac_try_echo") >&5
15976 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15977
  ac_status=$?
15978
  grep -v '^ *+' conftest.er1 >conftest.err
15979
  rm -f conftest.er1
15980
  cat conftest.err >&5
15981 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 19 jeremybenn
  (exit $ac_status); } && {
15983
         test -z "$ac_c_werror_flag" ||
15984
         test ! -s conftest.err
15985
       } && test -s conftest.$ac_objext; then
15986 82 jeremybenn
  :
15987 19 jeremybenn
else
15988 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15989 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15990
 
15991 82 jeremybenn
        ac_cv_type_int32_t=yes
15992 19 jeremybenn
fi
15993
 
15994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995 82 jeremybenn
else
15996
  $as_echo "$as_me: failed program was:" >&5
15997
sed 's/^/| /' conftest.$ac_ext >&5
15998
 
15999
 
16000 19 jeremybenn
fi
16001
 
16002 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16003
fi
16004
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
16005
$as_echo "$ac_cv_type_int32_t" >&6; }
16006
if test "x$ac_cv_type_int32_t" = x""yes; then
16007
 
16008
cat >>confdefs.h <<_ACEOF
16009
#define HAVE_INT32_T 1
16010
_ACEOF
16011
 
16012
 
16013
fi
16014
 
16015
 
16016 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
16017
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16018
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16019
# This bug is HP SR number 8606223364.
16020 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of char" >&5
16021
$as_echo_n "checking size of char... " >&6; }
16022 19 jeremybenn
if test "${ac_cv_sizeof_char+set}" = set; then
16023 82 jeremybenn
  $as_echo_n "(cached) " >&6
16024 19 jeremybenn
else
16025
  if test "$cross_compiling" = yes; then
16026
  # Depending upon the size, compute the lo and hi bounds.
16027
cat >conftest.$ac_ext <<_ACEOF
16028
/* confdefs.h.  */
16029
_ACEOF
16030
cat confdefs.h >>conftest.$ac_ext
16031
cat >>conftest.$ac_ext <<_ACEOF
16032
/* end confdefs.h.  */
16033
$ac_includes_default
16034
int
16035
main ()
16036
{
16037 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
16038 19 jeremybenn
test_array [0] = 0
16039
 
16040
  ;
16041
  return 0;
16042
}
16043
_ACEOF
16044
rm -f conftest.$ac_objext
16045
if { (ac_try="$ac_compile"
16046
case "(($ac_try" in
16047
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048
  *) ac_try_echo=$ac_try;;
16049
esac
16050 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16051
$as_echo "$ac_try_echo") >&5
16052 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16053
  ac_status=$?
16054
  grep -v '^ *+' conftest.er1 >conftest.err
16055
  rm -f conftest.er1
16056
  cat conftest.err >&5
16057 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 19 jeremybenn
  (exit $ac_status); } && {
16059
         test -z "$ac_c_werror_flag" ||
16060
         test ! -s conftest.err
16061
       } && test -s conftest.$ac_objext; then
16062
  ac_lo=0 ac_mid=0
16063
  while :; do
16064
    cat >conftest.$ac_ext <<_ACEOF
16065
/* confdefs.h.  */
16066
_ACEOF
16067
cat confdefs.h >>conftest.$ac_ext
16068
cat >>conftest.$ac_ext <<_ACEOF
16069
/* end confdefs.h.  */
16070
$ac_includes_default
16071
int
16072
main ()
16073
{
16074 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
16075 19 jeremybenn
test_array [0] = 0
16076
 
16077
  ;
16078
  return 0;
16079
}
16080
_ACEOF
16081
rm -f conftest.$ac_objext
16082
if { (ac_try="$ac_compile"
16083
case "(($ac_try" in
16084
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085
  *) ac_try_echo=$ac_try;;
16086
esac
16087 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16088
$as_echo "$ac_try_echo") >&5
16089 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16090
  ac_status=$?
16091
  grep -v '^ *+' conftest.er1 >conftest.err
16092
  rm -f conftest.er1
16093
  cat conftest.err >&5
16094 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 19 jeremybenn
  (exit $ac_status); } && {
16096
         test -z "$ac_c_werror_flag" ||
16097
         test ! -s conftest.err
16098
       } && test -s conftest.$ac_objext; then
16099
  ac_hi=$ac_mid; break
16100
else
16101 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16102 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16103
 
16104
        ac_lo=`expr $ac_mid + 1`
16105
                        if test $ac_lo -le $ac_mid; then
16106
                          ac_lo= ac_hi=
16107
                          break
16108
                        fi
16109
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16110
fi
16111
 
16112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16113
  done
16114
else
16115 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16116 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16117
 
16118
        cat >conftest.$ac_ext <<_ACEOF
16119
/* confdefs.h.  */
16120
_ACEOF
16121
cat confdefs.h >>conftest.$ac_ext
16122
cat >>conftest.$ac_ext <<_ACEOF
16123
/* end confdefs.h.  */
16124
$ac_includes_default
16125
int
16126
main ()
16127
{
16128 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
16129 19 jeremybenn
test_array [0] = 0
16130
 
16131
  ;
16132
  return 0;
16133
}
16134
_ACEOF
16135
rm -f conftest.$ac_objext
16136
if { (ac_try="$ac_compile"
16137
case "(($ac_try" in
16138
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139
  *) ac_try_echo=$ac_try;;
16140
esac
16141 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16142
$as_echo "$ac_try_echo") >&5
16143 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16144
  ac_status=$?
16145
  grep -v '^ *+' conftest.er1 >conftest.err
16146
  rm -f conftest.er1
16147
  cat conftest.err >&5
16148 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 19 jeremybenn
  (exit $ac_status); } && {
16150
         test -z "$ac_c_werror_flag" ||
16151
         test ! -s conftest.err
16152
       } && test -s conftest.$ac_objext; then
16153
  ac_hi=-1 ac_mid=-1
16154
  while :; do
16155
    cat >conftest.$ac_ext <<_ACEOF
16156
/* confdefs.h.  */
16157
_ACEOF
16158
cat confdefs.h >>conftest.$ac_ext
16159
cat >>conftest.$ac_ext <<_ACEOF
16160
/* end confdefs.h.  */
16161
$ac_includes_default
16162
int
16163
main ()
16164
{
16165 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
16166 19 jeremybenn
test_array [0] = 0
16167
 
16168
  ;
16169
  return 0;
16170
}
16171
_ACEOF
16172
rm -f conftest.$ac_objext
16173
if { (ac_try="$ac_compile"
16174
case "(($ac_try" in
16175
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176
  *) ac_try_echo=$ac_try;;
16177
esac
16178 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16179
$as_echo "$ac_try_echo") >&5
16180 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16181
  ac_status=$?
16182
  grep -v '^ *+' conftest.er1 >conftest.err
16183
  rm -f conftest.er1
16184
  cat conftest.err >&5
16185 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 19 jeremybenn
  (exit $ac_status); } && {
16187
         test -z "$ac_c_werror_flag" ||
16188
         test ! -s conftest.err
16189
       } && test -s conftest.$ac_objext; then
16190
  ac_lo=$ac_mid; break
16191
else
16192 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16193 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16194
 
16195
        ac_hi=`expr '(' $ac_mid ')' - 1`
16196
                        if test $ac_mid -le $ac_hi; then
16197
                          ac_lo= ac_hi=
16198
                          break
16199
                        fi
16200
                        ac_mid=`expr 2 '*' $ac_mid`
16201
fi
16202
 
16203
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16204
  done
16205
else
16206 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16207 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16208
 
16209
        ac_lo= ac_hi=
16210
fi
16211
 
16212
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16213
fi
16214
 
16215
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16216
# Binary search between lo and hi bounds.
16217
while test "x$ac_lo" != "x$ac_hi"; do
16218
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16219
  cat >conftest.$ac_ext <<_ACEOF
16220
/* confdefs.h.  */
16221
_ACEOF
16222
cat confdefs.h >>conftest.$ac_ext
16223
cat >>conftest.$ac_ext <<_ACEOF
16224
/* end confdefs.h.  */
16225
$ac_includes_default
16226
int
16227
main ()
16228
{
16229 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
16230 19 jeremybenn
test_array [0] = 0
16231
 
16232
  ;
16233
  return 0;
16234
}
16235
_ACEOF
16236
rm -f conftest.$ac_objext
16237
if { (ac_try="$ac_compile"
16238
case "(($ac_try" in
16239
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240
  *) ac_try_echo=$ac_try;;
16241
esac
16242 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16243
$as_echo "$ac_try_echo") >&5
16244 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16245
  ac_status=$?
16246
  grep -v '^ *+' conftest.er1 >conftest.err
16247
  rm -f conftest.er1
16248
  cat conftest.err >&5
16249 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 19 jeremybenn
  (exit $ac_status); } && {
16251
         test -z "$ac_c_werror_flag" ||
16252
         test ! -s conftest.err
16253
       } && test -s conftest.$ac_objext; then
16254
  ac_hi=$ac_mid
16255
else
16256 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16257 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16258
 
16259
        ac_lo=`expr '(' $ac_mid ')' + 1`
16260
fi
16261
 
16262
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16263
done
16264
case $ac_lo in
16265
?*) ac_cv_sizeof_char=$ac_lo;;
16266
'') if test "$ac_cv_type_char" = yes; then
16267 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16268
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16269
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16270 19 jeremybenn
See \`config.log' for more details." >&5
16271 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (char)
16272 19 jeremybenn
See \`config.log' for more details." >&2;}
16273 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16274 19 jeremybenn
   else
16275
     ac_cv_sizeof_char=0
16276
   fi ;;
16277
esac
16278
else
16279
  cat >conftest.$ac_ext <<_ACEOF
16280
/* confdefs.h.  */
16281
_ACEOF
16282
cat confdefs.h >>conftest.$ac_ext
16283
cat >>conftest.$ac_ext <<_ACEOF
16284
/* end confdefs.h.  */
16285
$ac_includes_default
16286 82 jeremybenn
static long int longval () { return (long int) (sizeof (char)); }
16287
static unsigned long int ulongval () { return (long int) (sizeof (char)); }
16288 19 jeremybenn
#include 
16289
#include 
16290
int
16291
main ()
16292
{
16293
 
16294
  FILE *f = fopen ("conftest.val", "w");
16295
  if (! f)
16296
    return 1;
16297 82 jeremybenn
  if (((long int) (sizeof (char))) < 0)
16298 19 jeremybenn
    {
16299
      long int i = longval ();
16300 82 jeremybenn
      if (i != ((long int) (sizeof (char))))
16301 19 jeremybenn
        return 1;
16302 82 jeremybenn
      fprintf (f, "%ld", i);
16303 19 jeremybenn
    }
16304
  else
16305
    {
16306
      unsigned long int i = ulongval ();
16307 82 jeremybenn
      if (i != ((long int) (sizeof (char))))
16308 19 jeremybenn
        return 1;
16309 82 jeremybenn
      fprintf (f, "%lu", i);
16310 19 jeremybenn
    }
16311 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
16312
     on some platforms.  */
16313 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
16314
 
16315
  ;
16316
  return 0;
16317
}
16318
_ACEOF
16319
rm -f conftest$ac_exeext
16320
if { (ac_try="$ac_link"
16321
case "(($ac_try" in
16322
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323
  *) ac_try_echo=$ac_try;;
16324
esac
16325 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16326
$as_echo "$ac_try_echo") >&5
16327 19 jeremybenn
  (eval "$ac_link") 2>&5
16328
  ac_status=$?
16329 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16331
  { (case "(($ac_try" in
16332
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333
  *) ac_try_echo=$ac_try;;
16334
esac
16335 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16336
$as_echo "$ac_try_echo") >&5
16337 19 jeremybenn
  (eval "$ac_try") 2>&5
16338
  ac_status=$?
16339 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 19 jeremybenn
  (exit $ac_status); }; }; then
16341
  ac_cv_sizeof_char=`cat conftest.val`
16342
else
16343 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
16344
$as_echo "$as_me: failed program was:" >&5
16345 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16346
 
16347
( exit $ac_status )
16348
if test "$ac_cv_type_char" = yes; then
16349 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16350
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16351
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16352 19 jeremybenn
See \`config.log' for more details." >&5
16353 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (char)
16354 19 jeremybenn
See \`config.log' for more details." >&2;}
16355 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16356 19 jeremybenn
   else
16357
     ac_cv_sizeof_char=0
16358
   fi
16359
fi
16360 82 jeremybenn
rm -rf conftest.dSYM
16361 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16362
fi
16363
rm -f conftest.val
16364
fi
16365 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16366
$as_echo "$ac_cv_sizeof_char" >&6; }
16367 19 jeremybenn
 
16368
 
16369
 
16370
cat >>confdefs.h <<_ACEOF
16371
#define SIZEOF_CHAR $ac_cv_sizeof_char
16372
_ACEOF
16373
 
16374
 
16375
# The cast to long int works around a bug in the HP C Compiler
16376
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16377
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16378
# This bug is HP SR number 8606223364.
16379 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
16380
$as_echo_n "checking size of short... " >&6; }
16381 19 jeremybenn
if test "${ac_cv_sizeof_short+set}" = set; then
16382 82 jeremybenn
  $as_echo_n "(cached) " >&6
16383 19 jeremybenn
else
16384
  if test "$cross_compiling" = yes; then
16385
  # Depending upon the size, compute the lo and hi bounds.
16386
cat >conftest.$ac_ext <<_ACEOF
16387
/* confdefs.h.  */
16388
_ACEOF
16389
cat confdefs.h >>conftest.$ac_ext
16390
cat >>conftest.$ac_ext <<_ACEOF
16391
/* end confdefs.h.  */
16392
$ac_includes_default
16393
int
16394
main ()
16395
{
16396 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
16397 19 jeremybenn
test_array [0] = 0
16398
 
16399
  ;
16400
  return 0;
16401
}
16402
_ACEOF
16403
rm -f conftest.$ac_objext
16404
if { (ac_try="$ac_compile"
16405
case "(($ac_try" in
16406
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407
  *) ac_try_echo=$ac_try;;
16408
esac
16409 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16410
$as_echo "$ac_try_echo") >&5
16411 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16412
  ac_status=$?
16413
  grep -v '^ *+' conftest.er1 >conftest.err
16414
  rm -f conftest.er1
16415
  cat conftest.err >&5
16416 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 19 jeremybenn
  (exit $ac_status); } && {
16418
         test -z "$ac_c_werror_flag" ||
16419
         test ! -s conftest.err
16420
       } && test -s conftest.$ac_objext; then
16421
  ac_lo=0 ac_mid=0
16422
  while :; do
16423
    cat >conftest.$ac_ext <<_ACEOF
16424
/* confdefs.h.  */
16425
_ACEOF
16426
cat confdefs.h >>conftest.$ac_ext
16427
cat >>conftest.$ac_ext <<_ACEOF
16428
/* end confdefs.h.  */
16429
$ac_includes_default
16430
int
16431
main ()
16432
{
16433 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16434 19 jeremybenn
test_array [0] = 0
16435
 
16436
  ;
16437
  return 0;
16438
}
16439
_ACEOF
16440
rm -f conftest.$ac_objext
16441
if { (ac_try="$ac_compile"
16442
case "(($ac_try" in
16443
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444
  *) ac_try_echo=$ac_try;;
16445
esac
16446 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16447
$as_echo "$ac_try_echo") >&5
16448 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16449
  ac_status=$?
16450
  grep -v '^ *+' conftest.er1 >conftest.err
16451
  rm -f conftest.er1
16452
  cat conftest.err >&5
16453 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 19 jeremybenn
  (exit $ac_status); } && {
16455
         test -z "$ac_c_werror_flag" ||
16456
         test ! -s conftest.err
16457
       } && test -s conftest.$ac_objext; then
16458
  ac_hi=$ac_mid; break
16459
else
16460 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16461 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16462
 
16463
        ac_lo=`expr $ac_mid + 1`
16464
                        if test $ac_lo -le $ac_mid; then
16465
                          ac_lo= ac_hi=
16466
                          break
16467
                        fi
16468
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16469
fi
16470
 
16471
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16472
  done
16473
else
16474 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16475 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16476
 
16477
        cat >conftest.$ac_ext <<_ACEOF
16478
/* confdefs.h.  */
16479
_ACEOF
16480
cat confdefs.h >>conftest.$ac_ext
16481
cat >>conftest.$ac_ext <<_ACEOF
16482
/* end confdefs.h.  */
16483
$ac_includes_default
16484
int
16485
main ()
16486
{
16487 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
16488 19 jeremybenn
test_array [0] = 0
16489
 
16490
  ;
16491
  return 0;
16492
}
16493
_ACEOF
16494
rm -f conftest.$ac_objext
16495
if { (ac_try="$ac_compile"
16496
case "(($ac_try" in
16497
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498
  *) ac_try_echo=$ac_try;;
16499
esac
16500 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16501
$as_echo "$ac_try_echo") >&5
16502 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16503
  ac_status=$?
16504
  grep -v '^ *+' conftest.er1 >conftest.err
16505
  rm -f conftest.er1
16506
  cat conftest.err >&5
16507 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 19 jeremybenn
  (exit $ac_status); } && {
16509
         test -z "$ac_c_werror_flag" ||
16510
         test ! -s conftest.err
16511
       } && test -s conftest.$ac_objext; then
16512
  ac_hi=-1 ac_mid=-1
16513
  while :; do
16514
    cat >conftest.$ac_ext <<_ACEOF
16515
/* confdefs.h.  */
16516
_ACEOF
16517
cat confdefs.h >>conftest.$ac_ext
16518
cat >>conftest.$ac_ext <<_ACEOF
16519
/* end confdefs.h.  */
16520
$ac_includes_default
16521
int
16522
main ()
16523
{
16524 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
16525 19 jeremybenn
test_array [0] = 0
16526
 
16527
  ;
16528
  return 0;
16529
}
16530
_ACEOF
16531
rm -f conftest.$ac_objext
16532
if { (ac_try="$ac_compile"
16533
case "(($ac_try" in
16534
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535
  *) ac_try_echo=$ac_try;;
16536
esac
16537 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16538
$as_echo "$ac_try_echo") >&5
16539 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16540
  ac_status=$?
16541
  grep -v '^ *+' conftest.er1 >conftest.err
16542
  rm -f conftest.er1
16543
  cat conftest.err >&5
16544 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 19 jeremybenn
  (exit $ac_status); } && {
16546
         test -z "$ac_c_werror_flag" ||
16547
         test ! -s conftest.err
16548
       } && test -s conftest.$ac_objext; then
16549
  ac_lo=$ac_mid; break
16550
else
16551 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16552 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16553
 
16554
        ac_hi=`expr '(' $ac_mid ')' - 1`
16555
                        if test $ac_mid -le $ac_hi; then
16556
                          ac_lo= ac_hi=
16557
                          break
16558
                        fi
16559
                        ac_mid=`expr 2 '*' $ac_mid`
16560
fi
16561
 
16562
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16563
  done
16564
else
16565 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16566 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16567
 
16568
        ac_lo= ac_hi=
16569
fi
16570
 
16571
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16572
fi
16573
 
16574
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16575
# Binary search between lo and hi bounds.
16576
while test "x$ac_lo" != "x$ac_hi"; do
16577
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16578
  cat >conftest.$ac_ext <<_ACEOF
16579
/* confdefs.h.  */
16580
_ACEOF
16581
cat confdefs.h >>conftest.$ac_ext
16582
cat >>conftest.$ac_ext <<_ACEOF
16583
/* end confdefs.h.  */
16584
$ac_includes_default
16585
int
16586
main ()
16587
{
16588 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16589 19 jeremybenn
test_array [0] = 0
16590
 
16591
  ;
16592
  return 0;
16593
}
16594
_ACEOF
16595
rm -f conftest.$ac_objext
16596
if { (ac_try="$ac_compile"
16597
case "(($ac_try" in
16598
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599
  *) ac_try_echo=$ac_try;;
16600
esac
16601 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16602
$as_echo "$ac_try_echo") >&5
16603 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16604
  ac_status=$?
16605
  grep -v '^ *+' conftest.er1 >conftest.err
16606
  rm -f conftest.er1
16607
  cat conftest.err >&5
16608 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 19 jeremybenn
  (exit $ac_status); } && {
16610
         test -z "$ac_c_werror_flag" ||
16611
         test ! -s conftest.err
16612
       } && test -s conftest.$ac_objext; then
16613
  ac_hi=$ac_mid
16614
else
16615 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16616 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16617
 
16618
        ac_lo=`expr '(' $ac_mid ')' + 1`
16619
fi
16620
 
16621
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16622
done
16623
case $ac_lo in
16624
?*) ac_cv_sizeof_short=$ac_lo;;
16625
'') if test "$ac_cv_type_short" = yes; then
16626 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16627
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16628
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16629 19 jeremybenn
See \`config.log' for more details." >&5
16630 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (short)
16631 19 jeremybenn
See \`config.log' for more details." >&2;}
16632 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16633 19 jeremybenn
   else
16634
     ac_cv_sizeof_short=0
16635
   fi ;;
16636
esac
16637
else
16638
  cat >conftest.$ac_ext <<_ACEOF
16639
/* confdefs.h.  */
16640
_ACEOF
16641
cat confdefs.h >>conftest.$ac_ext
16642
cat >>conftest.$ac_ext <<_ACEOF
16643
/* end confdefs.h.  */
16644
$ac_includes_default
16645 82 jeremybenn
static long int longval () { return (long int) (sizeof (short)); }
16646
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
16647 19 jeremybenn
#include 
16648
#include 
16649
int
16650
main ()
16651
{
16652
 
16653
  FILE *f = fopen ("conftest.val", "w");
16654
  if (! f)
16655
    return 1;
16656 82 jeremybenn
  if (((long int) (sizeof (short))) < 0)
16657 19 jeremybenn
    {
16658
      long int i = longval ();
16659 82 jeremybenn
      if (i != ((long int) (sizeof (short))))
16660 19 jeremybenn
        return 1;
16661 82 jeremybenn
      fprintf (f, "%ld", i);
16662 19 jeremybenn
    }
16663
  else
16664
    {
16665
      unsigned long int i = ulongval ();
16666 82 jeremybenn
      if (i != ((long int) (sizeof (short))))
16667 19 jeremybenn
        return 1;
16668 82 jeremybenn
      fprintf (f, "%lu", i);
16669 19 jeremybenn
    }
16670 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
16671
     on some platforms.  */
16672 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
16673
 
16674
  ;
16675
  return 0;
16676
}
16677
_ACEOF
16678
rm -f conftest$ac_exeext
16679
if { (ac_try="$ac_link"
16680
case "(($ac_try" in
16681
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682
  *) ac_try_echo=$ac_try;;
16683
esac
16684 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16685
$as_echo "$ac_try_echo") >&5
16686 19 jeremybenn
  (eval "$ac_link") 2>&5
16687
  ac_status=$?
16688 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16690
  { (case "(($ac_try" in
16691
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692
  *) ac_try_echo=$ac_try;;
16693
esac
16694 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16695
$as_echo "$ac_try_echo") >&5
16696 19 jeremybenn
  (eval "$ac_try") 2>&5
16697
  ac_status=$?
16698 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 19 jeremybenn
  (exit $ac_status); }; }; then
16700
  ac_cv_sizeof_short=`cat conftest.val`
16701
else
16702 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
16703
$as_echo "$as_me: failed program was:" >&5
16704 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16705
 
16706
( exit $ac_status )
16707
if test "$ac_cv_type_short" = yes; then
16708 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16709
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16710
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16711 19 jeremybenn
See \`config.log' for more details." >&5
16712 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (short)
16713 19 jeremybenn
See \`config.log' for more details." >&2;}
16714 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16715 19 jeremybenn
   else
16716
     ac_cv_sizeof_short=0
16717
   fi
16718
fi
16719 82 jeremybenn
rm -rf conftest.dSYM
16720 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16721
fi
16722
rm -f conftest.val
16723
fi
16724 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16725
$as_echo "$ac_cv_sizeof_short" >&6; }
16726 19 jeremybenn
 
16727
 
16728
 
16729
cat >>confdefs.h <<_ACEOF
16730
#define SIZEOF_SHORT $ac_cv_sizeof_short
16731
_ACEOF
16732
 
16733
 
16734
# The cast to long int works around a bug in the HP C Compiler
16735
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16736
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16737
# This bug is HP SR number 8606223364.
16738 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
16739
$as_echo_n "checking size of int... " >&6; }
16740 19 jeremybenn
if test "${ac_cv_sizeof_int+set}" = set; then
16741 82 jeremybenn
  $as_echo_n "(cached) " >&6
16742 19 jeremybenn
else
16743
  if test "$cross_compiling" = yes; then
16744
  # Depending upon the size, compute the lo and hi bounds.
16745
cat >conftest.$ac_ext <<_ACEOF
16746
/* confdefs.h.  */
16747
_ACEOF
16748
cat confdefs.h >>conftest.$ac_ext
16749
cat >>conftest.$ac_ext <<_ACEOF
16750
/* end confdefs.h.  */
16751
$ac_includes_default
16752
int
16753
main ()
16754
{
16755 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
16756 19 jeremybenn
test_array [0] = 0
16757
 
16758
  ;
16759
  return 0;
16760
}
16761
_ACEOF
16762
rm -f conftest.$ac_objext
16763
if { (ac_try="$ac_compile"
16764
case "(($ac_try" in
16765
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766
  *) ac_try_echo=$ac_try;;
16767
esac
16768 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16769
$as_echo "$ac_try_echo") >&5
16770 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16771
  ac_status=$?
16772
  grep -v '^ *+' conftest.er1 >conftest.err
16773
  rm -f conftest.er1
16774
  cat conftest.err >&5
16775 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 19 jeremybenn
  (exit $ac_status); } && {
16777
         test -z "$ac_c_werror_flag" ||
16778
         test ! -s conftest.err
16779
       } && test -s conftest.$ac_objext; then
16780
  ac_lo=0 ac_mid=0
16781
  while :; do
16782
    cat >conftest.$ac_ext <<_ACEOF
16783
/* confdefs.h.  */
16784
_ACEOF
16785
cat confdefs.h >>conftest.$ac_ext
16786
cat >>conftest.$ac_ext <<_ACEOF
16787
/* end confdefs.h.  */
16788
$ac_includes_default
16789
int
16790
main ()
16791
{
16792 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16793 19 jeremybenn
test_array [0] = 0
16794
 
16795
  ;
16796
  return 0;
16797
}
16798
_ACEOF
16799
rm -f conftest.$ac_objext
16800
if { (ac_try="$ac_compile"
16801
case "(($ac_try" in
16802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803
  *) ac_try_echo=$ac_try;;
16804
esac
16805 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16806
$as_echo "$ac_try_echo") >&5
16807 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16808
  ac_status=$?
16809
  grep -v '^ *+' conftest.er1 >conftest.err
16810
  rm -f conftest.er1
16811
  cat conftest.err >&5
16812 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 19 jeremybenn
  (exit $ac_status); } && {
16814
         test -z "$ac_c_werror_flag" ||
16815
         test ! -s conftest.err
16816
       } && test -s conftest.$ac_objext; then
16817
  ac_hi=$ac_mid; break
16818
else
16819 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16820 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16821
 
16822
        ac_lo=`expr $ac_mid + 1`
16823
                        if test $ac_lo -le $ac_mid; then
16824
                          ac_lo= ac_hi=
16825
                          break
16826
                        fi
16827
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16828
fi
16829
 
16830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16831
  done
16832
else
16833 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16834 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16835
 
16836
        cat >conftest.$ac_ext <<_ACEOF
16837
/* confdefs.h.  */
16838
_ACEOF
16839
cat confdefs.h >>conftest.$ac_ext
16840
cat >>conftest.$ac_ext <<_ACEOF
16841
/* end confdefs.h.  */
16842
$ac_includes_default
16843
int
16844
main ()
16845
{
16846 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
16847 19 jeremybenn
test_array [0] = 0
16848
 
16849
  ;
16850
  return 0;
16851
}
16852
_ACEOF
16853
rm -f conftest.$ac_objext
16854
if { (ac_try="$ac_compile"
16855
case "(($ac_try" in
16856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857
  *) ac_try_echo=$ac_try;;
16858
esac
16859 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16860
$as_echo "$ac_try_echo") >&5
16861 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16862
  ac_status=$?
16863
  grep -v '^ *+' conftest.er1 >conftest.err
16864
  rm -f conftest.er1
16865
  cat conftest.err >&5
16866 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 19 jeremybenn
  (exit $ac_status); } && {
16868
         test -z "$ac_c_werror_flag" ||
16869
         test ! -s conftest.err
16870
       } && test -s conftest.$ac_objext; then
16871
  ac_hi=-1 ac_mid=-1
16872
  while :; do
16873
    cat >conftest.$ac_ext <<_ACEOF
16874
/* confdefs.h.  */
16875
_ACEOF
16876
cat confdefs.h >>conftest.$ac_ext
16877
cat >>conftest.$ac_ext <<_ACEOF
16878
/* end confdefs.h.  */
16879
$ac_includes_default
16880
int
16881
main ()
16882
{
16883 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
16884 19 jeremybenn
test_array [0] = 0
16885
 
16886
  ;
16887
  return 0;
16888
}
16889
_ACEOF
16890
rm -f conftest.$ac_objext
16891
if { (ac_try="$ac_compile"
16892
case "(($ac_try" in
16893
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894
  *) ac_try_echo=$ac_try;;
16895
esac
16896 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16897
$as_echo "$ac_try_echo") >&5
16898 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16899
  ac_status=$?
16900
  grep -v '^ *+' conftest.er1 >conftest.err
16901
  rm -f conftest.er1
16902
  cat conftest.err >&5
16903 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 19 jeremybenn
  (exit $ac_status); } && {
16905
         test -z "$ac_c_werror_flag" ||
16906
         test ! -s conftest.err
16907
       } && test -s conftest.$ac_objext; then
16908
  ac_lo=$ac_mid; break
16909
else
16910 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16911 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16912
 
16913
        ac_hi=`expr '(' $ac_mid ')' - 1`
16914
                        if test $ac_mid -le $ac_hi; then
16915
                          ac_lo= ac_hi=
16916
                          break
16917
                        fi
16918
                        ac_mid=`expr 2 '*' $ac_mid`
16919
fi
16920
 
16921
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922
  done
16923
else
16924 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16925 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16926
 
16927
        ac_lo= ac_hi=
16928
fi
16929
 
16930
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16931
fi
16932
 
16933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16934
# Binary search between lo and hi bounds.
16935
while test "x$ac_lo" != "x$ac_hi"; do
16936
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16937
  cat >conftest.$ac_ext <<_ACEOF
16938
/* confdefs.h.  */
16939
_ACEOF
16940
cat confdefs.h >>conftest.$ac_ext
16941
cat >>conftest.$ac_ext <<_ACEOF
16942
/* end confdefs.h.  */
16943
$ac_includes_default
16944
int
16945
main ()
16946
{
16947 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16948 19 jeremybenn
test_array [0] = 0
16949
 
16950
  ;
16951
  return 0;
16952
}
16953
_ACEOF
16954
rm -f conftest.$ac_objext
16955
if { (ac_try="$ac_compile"
16956
case "(($ac_try" in
16957
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958
  *) ac_try_echo=$ac_try;;
16959
esac
16960 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16961
$as_echo "$ac_try_echo") >&5
16962 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16963
  ac_status=$?
16964
  grep -v '^ *+' conftest.er1 >conftest.err
16965
  rm -f conftest.er1
16966
  cat conftest.err >&5
16967 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 19 jeremybenn
  (exit $ac_status); } && {
16969
         test -z "$ac_c_werror_flag" ||
16970
         test ! -s conftest.err
16971
       } && test -s conftest.$ac_objext; then
16972
  ac_hi=$ac_mid
16973
else
16974 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16975 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16976
 
16977
        ac_lo=`expr '(' $ac_mid ')' + 1`
16978
fi
16979
 
16980
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16981
done
16982
case $ac_lo in
16983
?*) ac_cv_sizeof_int=$ac_lo;;
16984
'') if test "$ac_cv_type_int" = yes; then
16985 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16986
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16987
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16988 19 jeremybenn
See \`config.log' for more details." >&5
16989 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (int)
16990 19 jeremybenn
See \`config.log' for more details." >&2;}
16991 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16992 19 jeremybenn
   else
16993
     ac_cv_sizeof_int=0
16994
   fi ;;
16995
esac
16996
else
16997
  cat >conftest.$ac_ext <<_ACEOF
16998
/* confdefs.h.  */
16999
_ACEOF
17000
cat confdefs.h >>conftest.$ac_ext
17001
cat >>conftest.$ac_ext <<_ACEOF
17002
/* end confdefs.h.  */
17003
$ac_includes_default
17004 82 jeremybenn
static long int longval () { return (long int) (sizeof (int)); }
17005
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
17006 19 jeremybenn
#include 
17007
#include 
17008
int
17009
main ()
17010
{
17011
 
17012
  FILE *f = fopen ("conftest.val", "w");
17013
  if (! f)
17014
    return 1;
17015 82 jeremybenn
  if (((long int) (sizeof (int))) < 0)
17016 19 jeremybenn
    {
17017
      long int i = longval ();
17018 82 jeremybenn
      if (i != ((long int) (sizeof (int))))
17019 19 jeremybenn
        return 1;
17020 82 jeremybenn
      fprintf (f, "%ld", i);
17021 19 jeremybenn
    }
17022
  else
17023
    {
17024
      unsigned long int i = ulongval ();
17025 82 jeremybenn
      if (i != ((long int) (sizeof (int))))
17026 19 jeremybenn
        return 1;
17027 82 jeremybenn
      fprintf (f, "%lu", i);
17028 19 jeremybenn
    }
17029 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
17030
     on some platforms.  */
17031 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
17032
 
17033
  ;
17034
  return 0;
17035
}
17036
_ACEOF
17037
rm -f conftest$ac_exeext
17038
if { (ac_try="$ac_link"
17039
case "(($ac_try" in
17040
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041
  *) ac_try_echo=$ac_try;;
17042
esac
17043 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17044
$as_echo "$ac_try_echo") >&5
17045 19 jeremybenn
  (eval "$ac_link") 2>&5
17046
  ac_status=$?
17047 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17049
  { (case "(($ac_try" in
17050
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051
  *) ac_try_echo=$ac_try;;
17052
esac
17053 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17054
$as_echo "$ac_try_echo") >&5
17055 19 jeremybenn
  (eval "$ac_try") 2>&5
17056
  ac_status=$?
17057 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 19 jeremybenn
  (exit $ac_status); }; }; then
17059
  ac_cv_sizeof_int=`cat conftest.val`
17060
else
17061 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
17062
$as_echo "$as_me: failed program was:" >&5
17063 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17064
 
17065
( exit $ac_status )
17066
if test "$ac_cv_type_int" = yes; then
17067 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17068
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17069
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
17070 19 jeremybenn
See \`config.log' for more details." >&5
17071 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (int)
17072 19 jeremybenn
See \`config.log' for more details." >&2;}
17073 82 jeremybenn
   { (exit 77); exit 77; }; }; }
17074 19 jeremybenn
   else
17075
     ac_cv_sizeof_int=0
17076
   fi
17077
fi
17078 82 jeremybenn
rm -rf conftest.dSYM
17079 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17080
fi
17081
rm -f conftest.val
17082
fi
17083 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17084
$as_echo "$ac_cv_sizeof_int" >&6; }
17085 19 jeremybenn
 
17086
 
17087
 
17088
cat >>confdefs.h <<_ACEOF
17089
#define SIZEOF_INT $ac_cv_sizeof_int
17090
_ACEOF
17091
 
17092
 
17093
# The cast to long int works around a bug in the HP C Compiler
17094
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17095
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17096
# This bug is HP SR number 8606223364.
17097 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
17098
$as_echo_n "checking size of long... " >&6; }
17099 19 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then
17100 82 jeremybenn
  $as_echo_n "(cached) " >&6
17101 19 jeremybenn
else
17102
  if test "$cross_compiling" = yes; then
17103
  # Depending upon the size, compute the lo and hi bounds.
17104
cat >conftest.$ac_ext <<_ACEOF
17105
/* confdefs.h.  */
17106
_ACEOF
17107
cat confdefs.h >>conftest.$ac_ext
17108
cat >>conftest.$ac_ext <<_ACEOF
17109
/* end confdefs.h.  */
17110
$ac_includes_default
17111
int
17112
main ()
17113
{
17114 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
17115 19 jeremybenn
test_array [0] = 0
17116
 
17117
  ;
17118
  return 0;
17119
}
17120
_ACEOF
17121
rm -f conftest.$ac_objext
17122
if { (ac_try="$ac_compile"
17123
case "(($ac_try" in
17124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125
  *) ac_try_echo=$ac_try;;
17126
esac
17127 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17128
$as_echo "$ac_try_echo") >&5
17129 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17130
  ac_status=$?
17131
  grep -v '^ *+' conftest.er1 >conftest.err
17132
  rm -f conftest.er1
17133
  cat conftest.err >&5
17134 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 19 jeremybenn
  (exit $ac_status); } && {
17136
         test -z "$ac_c_werror_flag" ||
17137
         test ! -s conftest.err
17138
       } && test -s conftest.$ac_objext; then
17139
  ac_lo=0 ac_mid=0
17140
  while :; do
17141
    cat >conftest.$ac_ext <<_ACEOF
17142
/* confdefs.h.  */
17143
_ACEOF
17144
cat confdefs.h >>conftest.$ac_ext
17145
cat >>conftest.$ac_ext <<_ACEOF
17146
/* end confdefs.h.  */
17147
$ac_includes_default
17148
int
17149
main ()
17150
{
17151 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
17152 19 jeremybenn
test_array [0] = 0
17153
 
17154
  ;
17155
  return 0;
17156
}
17157
_ACEOF
17158
rm -f conftest.$ac_objext
17159
if { (ac_try="$ac_compile"
17160
case "(($ac_try" in
17161
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162
  *) ac_try_echo=$ac_try;;
17163
esac
17164 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17165
$as_echo "$ac_try_echo") >&5
17166 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17167
  ac_status=$?
17168
  grep -v '^ *+' conftest.er1 >conftest.err
17169
  rm -f conftest.er1
17170
  cat conftest.err >&5
17171 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 19 jeremybenn
  (exit $ac_status); } && {
17173
         test -z "$ac_c_werror_flag" ||
17174
         test ! -s conftest.err
17175
       } && test -s conftest.$ac_objext; then
17176
  ac_hi=$ac_mid; break
17177
else
17178 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17179 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17180
 
17181
        ac_lo=`expr $ac_mid + 1`
17182
                        if test $ac_lo -le $ac_mid; then
17183
                          ac_lo= ac_hi=
17184
                          break
17185
                        fi
17186
                        ac_mid=`expr 2 '*' $ac_mid + 1`
17187
fi
17188
 
17189
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17190
  done
17191
else
17192 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17193 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17194
 
17195
        cat >conftest.$ac_ext <<_ACEOF
17196
/* confdefs.h.  */
17197
_ACEOF
17198
cat confdefs.h >>conftest.$ac_ext
17199
cat >>conftest.$ac_ext <<_ACEOF
17200
/* end confdefs.h.  */
17201
$ac_includes_default
17202
int
17203
main ()
17204
{
17205 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
17206 19 jeremybenn
test_array [0] = 0
17207
 
17208
  ;
17209
  return 0;
17210
}
17211
_ACEOF
17212
rm -f conftest.$ac_objext
17213
if { (ac_try="$ac_compile"
17214
case "(($ac_try" in
17215
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216
  *) ac_try_echo=$ac_try;;
17217
esac
17218 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17219
$as_echo "$ac_try_echo") >&5
17220 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17221
  ac_status=$?
17222
  grep -v '^ *+' conftest.er1 >conftest.err
17223
  rm -f conftest.er1
17224
  cat conftest.err >&5
17225 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 19 jeremybenn
  (exit $ac_status); } && {
17227
         test -z "$ac_c_werror_flag" ||
17228
         test ! -s conftest.err
17229
       } && test -s conftest.$ac_objext; then
17230
  ac_hi=-1 ac_mid=-1
17231
  while :; do
17232
    cat >conftest.$ac_ext <<_ACEOF
17233
/* confdefs.h.  */
17234
_ACEOF
17235
cat confdefs.h >>conftest.$ac_ext
17236
cat >>conftest.$ac_ext <<_ACEOF
17237
/* end confdefs.h.  */
17238
$ac_includes_default
17239
int
17240
main ()
17241
{
17242 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
17243 19 jeremybenn
test_array [0] = 0
17244
 
17245
  ;
17246
  return 0;
17247
}
17248
_ACEOF
17249
rm -f conftest.$ac_objext
17250
if { (ac_try="$ac_compile"
17251
case "(($ac_try" in
17252
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253
  *) ac_try_echo=$ac_try;;
17254
esac
17255 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17256
$as_echo "$ac_try_echo") >&5
17257 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17258
  ac_status=$?
17259
  grep -v '^ *+' conftest.er1 >conftest.err
17260
  rm -f conftest.er1
17261
  cat conftest.err >&5
17262 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 19 jeremybenn
  (exit $ac_status); } && {
17264
         test -z "$ac_c_werror_flag" ||
17265
         test ! -s conftest.err
17266
       } && test -s conftest.$ac_objext; then
17267
  ac_lo=$ac_mid; break
17268
else
17269 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17270 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17271
 
17272
        ac_hi=`expr '(' $ac_mid ')' - 1`
17273
                        if test $ac_mid -le $ac_hi; then
17274
                          ac_lo= ac_hi=
17275
                          break
17276
                        fi
17277
                        ac_mid=`expr 2 '*' $ac_mid`
17278
fi
17279
 
17280
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17281
  done
17282
else
17283 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17284 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17285
 
17286
        ac_lo= ac_hi=
17287
fi
17288
 
17289
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17290
fi
17291
 
17292
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17293
# Binary search between lo and hi bounds.
17294
while test "x$ac_lo" != "x$ac_hi"; do
17295
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17296
  cat >conftest.$ac_ext <<_ACEOF
17297
/* confdefs.h.  */
17298
_ACEOF
17299
cat confdefs.h >>conftest.$ac_ext
17300
cat >>conftest.$ac_ext <<_ACEOF
17301
/* end confdefs.h.  */
17302
$ac_includes_default
17303
int
17304
main ()
17305
{
17306 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
17307 19 jeremybenn
test_array [0] = 0
17308
 
17309
  ;
17310
  return 0;
17311
}
17312
_ACEOF
17313
rm -f conftest.$ac_objext
17314
if { (ac_try="$ac_compile"
17315
case "(($ac_try" in
17316
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317
  *) ac_try_echo=$ac_try;;
17318
esac
17319 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17320
$as_echo "$ac_try_echo") >&5
17321 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17322
  ac_status=$?
17323
  grep -v '^ *+' conftest.er1 >conftest.err
17324
  rm -f conftest.er1
17325
  cat conftest.err >&5
17326 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 19 jeremybenn
  (exit $ac_status); } && {
17328
         test -z "$ac_c_werror_flag" ||
17329
         test ! -s conftest.err
17330
       } && test -s conftest.$ac_objext; then
17331
  ac_hi=$ac_mid
17332
else
17333 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17334 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17335
 
17336
        ac_lo=`expr '(' $ac_mid ')' + 1`
17337
fi
17338
 
17339
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17340
done
17341
case $ac_lo in
17342
?*) ac_cv_sizeof_long=$ac_lo;;
17343
'') if test "$ac_cv_type_long" = yes; then
17344 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17345
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17346
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17347 19 jeremybenn
See \`config.log' for more details." >&5
17348 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (long)
17349 19 jeremybenn
See \`config.log' for more details." >&2;}
17350 82 jeremybenn
   { (exit 77); exit 77; }; }; }
17351 19 jeremybenn
   else
17352
     ac_cv_sizeof_long=0
17353
   fi ;;
17354
esac
17355
else
17356
  cat >conftest.$ac_ext <<_ACEOF
17357
/* confdefs.h.  */
17358
_ACEOF
17359
cat confdefs.h >>conftest.$ac_ext
17360
cat >>conftest.$ac_ext <<_ACEOF
17361
/* end confdefs.h.  */
17362
$ac_includes_default
17363 82 jeremybenn
static long int longval () { return (long int) (sizeof (long)); }
17364
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
17365 19 jeremybenn
#include 
17366
#include 
17367
int
17368
main ()
17369
{
17370
 
17371
  FILE *f = fopen ("conftest.val", "w");
17372
  if (! f)
17373
    return 1;
17374 82 jeremybenn
  if (((long int) (sizeof (long))) < 0)
17375 19 jeremybenn
    {
17376
      long int i = longval ();
17377 82 jeremybenn
      if (i != ((long int) (sizeof (long))))
17378 19 jeremybenn
        return 1;
17379 82 jeremybenn
      fprintf (f, "%ld", i);
17380 19 jeremybenn
    }
17381
  else
17382
    {
17383
      unsigned long int i = ulongval ();
17384 82 jeremybenn
      if (i != ((long int) (sizeof (long))))
17385 19 jeremybenn
        return 1;
17386 82 jeremybenn
      fprintf (f, "%lu", i);
17387 19 jeremybenn
    }
17388 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
17389
     on some platforms.  */
17390 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
17391
 
17392
  ;
17393
  return 0;
17394
}
17395
_ACEOF
17396
rm -f conftest$ac_exeext
17397
if { (ac_try="$ac_link"
17398
case "(($ac_try" in
17399
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400
  *) ac_try_echo=$ac_try;;
17401
esac
17402 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17403
$as_echo "$ac_try_echo") >&5
17404 19 jeremybenn
  (eval "$ac_link") 2>&5
17405
  ac_status=$?
17406 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17408
  { (case "(($ac_try" in
17409
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410
  *) ac_try_echo=$ac_try;;
17411
esac
17412 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17413
$as_echo "$ac_try_echo") >&5
17414 19 jeremybenn
  (eval "$ac_try") 2>&5
17415
  ac_status=$?
17416 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 19 jeremybenn
  (exit $ac_status); }; }; then
17418
  ac_cv_sizeof_long=`cat conftest.val`
17419
else
17420 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
17421
$as_echo "$as_me: failed program was:" >&5
17422 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17423
 
17424
( exit $ac_status )
17425
if test "$ac_cv_type_long" = yes; then
17426 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17427
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17428
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17429 19 jeremybenn
See \`config.log' for more details." >&5
17430 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (long)
17431 19 jeremybenn
See \`config.log' for more details." >&2;}
17432 82 jeremybenn
   { (exit 77); exit 77; }; }; }
17433 19 jeremybenn
   else
17434
     ac_cv_sizeof_long=0
17435
   fi
17436
fi
17437 82 jeremybenn
rm -rf conftest.dSYM
17438 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17439
fi
17440
rm -f conftest.val
17441
fi
17442 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17443
$as_echo "$ac_cv_sizeof_long" >&6; }
17444 19 jeremybenn
 
17445
 
17446
 
17447
cat >>confdefs.h <<_ACEOF
17448
#define SIZEOF_LONG $ac_cv_sizeof_long
17449
_ACEOF
17450
 
17451
 
17452
 
17453
#Check for compare function type for qsort (needed by some Linuxes)
17454 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for __compar_fn_t" >&5
17455
$as_echo_n "checking for __compar_fn_t... " >&6; }
17456 19 jeremybenn
if test "${ac_cv_type___compar_fn_t+set}" = set; then
17457 82 jeremybenn
  $as_echo_n "(cached) " >&6
17458 19 jeremybenn
else
17459 82 jeremybenn
  ac_cv_type___compar_fn_t=no
17460
cat >conftest.$ac_ext <<_ACEOF
17461
/* confdefs.h.  */
17462
_ACEOF
17463
cat confdefs.h >>conftest.$ac_ext
17464
cat >>conftest.$ac_ext <<_ACEOF
17465
/* end confdefs.h.  */
17466
$ac_includes_default
17467
int
17468
main ()
17469
{
17470
if (sizeof (__compar_fn_t))
17471
       return 0;
17472
  ;
17473
  return 0;
17474
}
17475
_ACEOF
17476
rm -f conftest.$ac_objext
17477
if { (ac_try="$ac_compile"
17478
case "(($ac_try" in
17479
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480
  *) ac_try_echo=$ac_try;;
17481
esac
17482
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17483
$as_echo "$ac_try_echo") >&5
17484
  (eval "$ac_compile") 2>conftest.er1
17485
  ac_status=$?
17486
  grep -v '^ *+' conftest.er1 >conftest.err
17487
  rm -f conftest.er1
17488
  cat conftest.err >&5
17489
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490
  (exit $ac_status); } && {
17491
         test -z "$ac_c_werror_flag" ||
17492
         test ! -s conftest.err
17493
       } && test -s conftest.$ac_objext; then
17494 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
17495
/* confdefs.h.  */
17496
_ACEOF
17497
cat confdefs.h >>conftest.$ac_ext
17498
cat >>conftest.$ac_ext <<_ACEOF
17499
/* end confdefs.h.  */
17500
$ac_includes_default
17501
int
17502
main ()
17503
{
17504 82 jeremybenn
if (sizeof ((__compar_fn_t)))
17505
          return 0;
17506 19 jeremybenn
  ;
17507
  return 0;
17508
}
17509
_ACEOF
17510
rm -f conftest.$ac_objext
17511
if { (ac_try="$ac_compile"
17512
case "(($ac_try" in
17513
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514
  *) ac_try_echo=$ac_try;;
17515
esac
17516 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17517
$as_echo "$ac_try_echo") >&5
17518 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17519
  ac_status=$?
17520
  grep -v '^ *+' conftest.er1 >conftest.err
17521
  rm -f conftest.er1
17522
  cat conftest.err >&5
17523 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 19 jeremybenn
  (exit $ac_status); } && {
17525
         test -z "$ac_c_werror_flag" ||
17526
         test ! -s conftest.err
17527
       } && test -s conftest.$ac_objext; then
17528 82 jeremybenn
  :
17529 19 jeremybenn
else
17530 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17531 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17532
 
17533 82 jeremybenn
        ac_cv_type___compar_fn_t=yes
17534 19 jeremybenn
fi
17535
 
17536
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17537 82 jeremybenn
else
17538
  $as_echo "$as_me: failed program was:" >&5
17539
sed 's/^/| /' conftest.$ac_ext >&5
17540
 
17541
 
17542 19 jeremybenn
fi
17543
 
17544 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17545
fi
17546
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type___compar_fn_t" >&5
17547
$as_echo "$ac_cv_type___compar_fn_t" >&6; }
17548
if test "x$ac_cv_type___compar_fn_t" = x""yes; then
17549
 
17550 19 jeremybenn
cat >>confdefs.h <<_ACEOF
17551
#define HAVE___COMPAR_FN_T 1
17552
_ACEOF
17553
 
17554
 
17555
fi
17556
 
17557
 
17558
# check for GNU readline
17559
 
17560 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
17561
$as_echo_n "checking for add_history in -lreadline... " >&6; }
17562 19 jeremybenn
if test "${ac_cv_lib_readline_add_history+set}" = set; then
17563 82 jeremybenn
  $as_echo_n "(cached) " >&6
17564 19 jeremybenn
else
17565
  ac_check_lib_save_LIBS=$LIBS
17566
LIBS="-lreadline  $LIBS"
17567
cat >conftest.$ac_ext <<_ACEOF
17568
/* confdefs.h.  */
17569
_ACEOF
17570
cat confdefs.h >>conftest.$ac_ext
17571
cat >>conftest.$ac_ext <<_ACEOF
17572
/* end confdefs.h.  */
17573
 
17574
/* Override any GCC internal prototype to avoid an error.
17575
   Use char because int might match the return type of a GCC
17576
   builtin and then its argument prototype would still apply.  */
17577
#ifdef __cplusplus
17578
extern "C"
17579
#endif
17580
char add_history ();
17581
int
17582
main ()
17583
{
17584
return add_history ();
17585
  ;
17586
  return 0;
17587
}
17588
_ACEOF
17589
rm -f conftest.$ac_objext conftest$ac_exeext
17590
if { (ac_try="$ac_link"
17591
case "(($ac_try" in
17592
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593
  *) ac_try_echo=$ac_try;;
17594
esac
17595 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17596
$as_echo "$ac_try_echo") >&5
17597 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
17598
  ac_status=$?
17599
  grep -v '^ *+' conftest.er1 >conftest.err
17600
  rm -f conftest.er1
17601
  cat conftest.err >&5
17602 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 19 jeremybenn
  (exit $ac_status); } && {
17604
         test -z "$ac_c_werror_flag" ||
17605
         test ! -s conftest.err
17606 82 jeremybenn
       } && test -s conftest$ac_exeext && {
17607
         test "$cross_compiling" = yes ||
17608
         $as_test_x conftest$ac_exeext
17609
       }; then
17610 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
17611
else
17612 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17613 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17614
 
17615
        ac_cv_lib_readline_add_history=no
17616
fi
17617
 
17618 82 jeremybenn
rm -rf conftest.dSYM
17619 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17620
      conftest$ac_exeext conftest.$ac_ext
17621
LIBS=$ac_check_lib_save_LIBS
17622
fi
17623 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
17624
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
17625
if test "x$ac_cv_lib_readline_add_history" = x""yes; then
17626 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
17627
#define HAVE_LIBREADLINE 1
17628
_ACEOF
17629
 
17630
  LIBS="-lreadline $LIBS"
17631
 
17632
fi
17633
 
17634
 
17635
# yuck
17636
case "$host_os" in
17637
aix*)   prefer_curses=yes ;;
17638
esac
17639
 
17640
case "$host_cpu" in
17641
*cray*) LOCAL_CFLAGS=-DCRAY ;;
17642
esac
17643
 
17644
case "$host_os" in
17645
isc*)   LOCAL_CFLAGS=-Disc386 ;;
17646
esac
17647
 
17648
case "$host_os" in
17649
solaris*) LIBS="-lsocket -lnsl" ;;
17650
esac
17651
 
17652
# define options
17653 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable profiling" >&5
17654
$as_echo_n "checking whether to enable profiling... " >&6; }
17655 19 jeremybenn
# Check whether --enable-profiling was given.
17656
if test "${enable_profiling+set}" = set; then
17657
  enableval=$enable_profiling;
17658
    case "$enableval" in
17659
        yes) profile="-pg" ;;
17660
    esac
17661
 
17662
fi
17663
 
17664 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
17665
$as_echo "${enable_profiling-no}" >&6; }
17666 19 jeremybenn
 
17667
execution="1"
17668
 
17669
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17670 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking which execution style to use" >&5
17671
$as_echo_n "checking which execution style to use... " >&6; }
17672 19 jeremybenn
# Check whether --enable-execution was given.
17673
if test "${enable_execution+set}" = set; then
17674
  enableval=$enable_execution;
17675
    case "$enableval" in
17676
    simple)
17677
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17678
      execution="0"
17679 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: simple" >&5
17680
$as_echo "simple" >&6; }
17681 19 jeremybenn
      ;;
17682
    complex)
17683
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17684
      execution="1"
17685 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17686
$as_echo "complex" >&6; }
17687 19 jeremybenn
      ;;
17688
    dynamic)
17689
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17690
      execution="2"
17691 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: dynamic" >&5
17692
$as_echo "dynamic" >&6; }
17693 19 jeremybenn
      ;;
17694
    *)
17695 82 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: \"excecution must one of simple/complex/dynamic\"" >&5
17696
$as_echo "$as_me: error: \"excecution must one of simple/complex/dynamic\"" >&2;}
17697 19 jeremybenn
   { (exit 1); exit 1; }; }
17698
      ;;
17699
    esac
17700
 
17701
else
17702
 
17703 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17704
$as_echo "complex" >&6; }
17705 19 jeremybenn
 
17706
fi
17707
 
17708
 
17709
eth_phy="0"
17710 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
17711
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
17712 19 jeremybenn
# Check whether --enable-ethphy was given.
17713
if test "${enable_ethphy+set}" = set; then
17714
  enableval=$enable_ethphy;
17715
    case "$enableval" in
17716
  no)  eth_phy="0" ;;
17717
        yes) eth_phy="1" ;;
17718
    esac
17719
 
17720
fi
17721
 
17722 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
17723
$as_echo "${enable_eth_phy-no}" >&6; }
17724 19 jeremybenn
 
17725
 
17726
raw_range_stats="0"
17727 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
17728
$as_echo_n "checking whether to use raw range stats... " >&6; }
17729 19 jeremybenn
# Check whether --enable-range_stats was given.
17730
if test "${enable_range_stats+set}" = set; then
17731
  enableval=$enable_range_stats;
17732
    case "$enableval" in
17733
  no)  raw_range_stats="0" ;;
17734
        yes) raw_range_stats="1" simple_execution="1" ;;
17735
    esac
17736
 
17737
fi
17738
 
17739 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
17740
$as_echo "${enable_range_stats-no}" >&6; }
17741 19 jeremybenn
 
17742
set_ov_flag="0"
17743 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether instructions set overflow flag" >&5
17744
$as_echo_n "checking whether instructions set overflow flag... " >&6; }
17745 19 jeremybenn
# Check whether --enable-ov_flag was given.
17746
if test "${enable_ov_flag+set}" = set; then
17747
  enableval=$enable_ov_flag;
17748
    case "$enableval" in
17749
    no)  set_ov_flag="0" ;;
17750
    yes) set_ov_flag="1" ;;
17751
    esac
17752
 
17753
fi
17754
 
17755 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_ov_flag-no}" >&5
17756
$as_echo "${enable_ov_flag-no}" >&6; }
17757 19 jeremybenn
 
17758
set_arith_flag="0"
17759 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether arithmethic instructions set flag" >&5
17760
$as_echo_n "checking whether arithmethic instructions set flag... " >&6; }
17761 19 jeremybenn
# Check whether --enable-arith_flag was given.
17762
if test "${enable_arith_flag+set}" = set; then
17763
  enableval=$enable_arith_flag;
17764
    case "$enableval" in
17765
  no)  set_arith_flag="0" ;;
17766
        yes) set_arith_flag="1" ;;
17767
    esac
17768
 
17769
fi
17770
 
17771 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_arith_flag-no}" >&5
17772
$as_echo "${enable_arith_flag-no}" >&6; }
17773 19 jeremybenn
 
17774
# check for --enable-debug argument (for argtable2)
17775
# Check whether --enable-debug was given.
17776
if test "${enable_debug+set}" = set; then
17777
  enableval=$enable_debug;
17778
       case $enableval in
17779
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
17780
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
17781
          *)   echo "illegal argument to --enable-debug" & exit 1;;
17782
       esac
17783
 
17784
else
17785
  DEBUGFLAGS="-DNDEBUG"
17786
 
17787
fi
17788
 
17789
 
17790
 
17791
 
17792
cat >>confdefs.h <<_ACEOF
17793
#define RAW_RANGE_STATS $raw_range_stats
17794
_ACEOF
17795
 
17796
 
17797
cat >>confdefs.h <<_ACEOF
17798
#define SET_OV_FLAG $set_ov_flag
17799
_ACEOF
17800
 
17801
 
17802
cat >>confdefs.h <<_ACEOF
17803
#define ARITH_SET_FLAG $set_arith_flag
17804
_ACEOF
17805
 
17806
 
17807
cat >>confdefs.h <<_ACEOF
17808
#define HAVE_ETH_PHY $eth_phy
17809
_ACEOF
17810
 
17811
 
17812
cat >>confdefs.h <<_ACEOF
17813
#define SIMPLE_EXECUTION $execution == 0
17814
_ACEOF
17815
 
17816
 
17817
cat >>confdefs.h <<_ACEOF
17818
#define COMPLEX_EXECUTION $execution == 1
17819
_ACEOF
17820
 
17821
 
17822
cat >>confdefs.h <<_ACEOF
17823
#define DYNAMIC_EXECUTION $execution == 2
17824
_ACEOF
17825
 
17826
 if test x$execution = x1; then
17827
  GENERATE_NEEDED_TRUE=
17828
  GENERATE_NEEDED_FALSE='#'
17829
else
17830
  GENERATE_NEEDED_TRUE='#'
17831
  GENERATE_NEEDED_FALSE=
17832
fi
17833
 
17834
 if test x$execution = x2; then
17835
  DYNAMIC_EXECUTION_TRUE=
17836
  DYNAMIC_EXECUTION_FALSE='#'
17837
else
17838
  DYNAMIC_EXECUTION_TRUE='#'
17839
  DYNAMIC_EXECUTION_FALSE=
17840
fi
17841
 
17842
 
17843
 
17844
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
17845
 
17846 90 jeremybenn
# Check for a DejaGNU global config file. If not set, then set it
17847
# ourselves. This stops runtest complaining
17848
if test x"$DEJAGNU" = x
17849
then
17850
  DEJAGNU="\$(top_srcdir)/testsuite/default-global-conf.exp"
17851
 
17852
fi
17853
 
17854 19 jeremybenn
BUILD_DIR=`pwd`
17855
 
17856
 
17857
 
17858
 
17859
 
17860
 
17861
 
17862
 
17863
 
17864
 
17865
 
17866
 
17867
 
17868
 
17869
 
17870
 
17871
 
17872
 
17873
cat >>confdefs.h <<\_ACEOF
17874
#define HAVE_EXECUTION 1
17875
_ACEOF
17876
 
17877
 
17878
# yuck
17879
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
17880
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
17881
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
17882
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
17883
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
17884
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
17885
 
17886
 
17887 93 jeremybenn
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile debug/Makefile doc/Makefile mmu/Makefile peripheral/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile port/Makefile support/Makefile testsuite/Makefile testsuite/config/Makefile testsuite/lib/Makefile testsuite/libsim.tests/Makefile testsuite/or1ksim.tests/Makefile testsuite/test-code/Makefile testsuite/test-code/lib-iftest/Makefile testsuite/test-code/lib-inttest/Makefile testsuite/test-code/lib-upcalls/Makefile tick/Makefile vapi/Makefile"
17888 19 jeremybenn
 
17889
 
17890
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
17891
case "$CPU_ARCH" in
17892
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
17893
;;
17894
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
17895
;;
17896
esac
17897
 
17898 82 jeremybenn
# Generate the output
17899
 
17900
 
17901 19 jeremybenn
cat >confcache <<\_ACEOF
17902
# This file is a shell script that caches the results of configure
17903
# tests run on this system so they can be shared between configure
17904
# scripts and configure runs, see configure's option --config-cache.
17905
# It is not useful on other systems.  If it contains results you don't
17906
# want to keep, you may remove or edit it.
17907
#
17908
# config.status only pays attention to the cache file if you give it
17909
# the --recheck option to rerun configure.
17910
#
17911
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17912
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17913
# following values.
17914
 
17915
_ACEOF
17916
 
17917
# The following way of writing the cache mishandles newlines in values,
17918
# but we know of no workaround that is simple, portable, and efficient.
17919
# So, we kill variables containing newlines.
17920
# Ultrix sh set writes to stderr and can't be redirected directly,
17921
# and sets the high bit in the cache file unless we assign to the vars.
17922
(
17923
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17924
    eval ac_val=\$$ac_var
17925
    case $ac_val in #(
17926
    *${as_nl}*)
17927
      case $ac_var in #(
17928 82 jeremybenn
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17929
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17930 19 jeremybenn
      esac
17931
      case $ac_var in #(
17932
      _ | IFS | as_nl) ;; #(
17933 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17934 19 jeremybenn
      *) $as_unset $ac_var ;;
17935
      esac ;;
17936
    esac
17937
  done
17938
 
17939
  (set) 2>&1 |
17940
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17941
    *${as_nl}ac_space=\ *)
17942
      # `set' does not quote correctly, so add quotes (double-quote
17943
      # substitution turns \\\\ into \\, and sed turns \\ into \).
17944
      sed -n \
17945
        "s/'/'\\\\''/g;
17946
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17947
      ;; #(
17948
    *)
17949
      # `set' quotes correctly as required by POSIX, so do not add quotes.
17950
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17951
      ;;
17952
    esac |
17953
    sort
17954
) |
17955
  sed '
17956
     /^ac_cv_env_/b end
17957
     t clear
17958
     :clear
17959
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17960
     t end
17961
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17962
     :end' >>confcache
17963
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17964
  if test -w "$cache_file"; then
17965
    test "x$cache_file" != "x/dev/null" &&
17966 82 jeremybenn
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17967
$as_echo "$as_me: updating cache $cache_file" >&6;}
17968 19 jeremybenn
    cat confcache >$cache_file
17969
  else
17970 82 jeremybenn
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17971
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17972 19 jeremybenn
  fi
17973
fi
17974
rm -f confcache
17975
 
17976
test "x$prefix" = xNONE && prefix=$ac_default_prefix
17977
# Let make expand exec_prefix.
17978
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17979
 
17980
DEFS=-DHAVE_CONFIG_H
17981
 
17982
ac_libobjs=
17983
ac_ltlibobjs=
17984
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17985
  # 1. Remove the extension, and $U if already installed.
17986
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17987 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17988 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17989
  #    will be set to the directory where LIBOBJS objects are built.
17990
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17991
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17992
done
17993
LIBOBJS=$ac_libobjs
17994
 
17995
LTLIBOBJS=$ac_ltlibobjs
17996
 
17997
 
17998
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17999 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18000 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
18001 82 jeremybenn
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18002 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
18003
   { (exit 1); exit 1; }; }
18004
fi
18005
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18006 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18007 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
18008 82 jeremybenn
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18009 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
18010
   { (exit 1); exit 1; }; }
18011
fi
18012 82 jeremybenn
 if test -n "$EXEEXT"; then
18013
  am__EXEEXT_TRUE=
18014
  am__EXEEXT_FALSE='#'
18015
else
18016
  am__EXEEXT_TRUE='#'
18017
  am__EXEEXT_FALSE=
18018
fi
18019
 
18020
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18021
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
18022 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
18023 82 jeremybenn
$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
18024 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
18025
   { (exit 1); exit 1; }; }
18026
fi
18027 82 jeremybenn
 
18028 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
18029 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
18030 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
18031 82 jeremybenn
$as_echo "$as_me: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
18032 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
18033
   { (exit 1); exit 1; }; }
18034
fi
18035
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
18036 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGREX\" was never defined.
18037 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
18038 82 jeremybenn
$as_echo "$as_me: error: conditional \"USE_ARGREX\" was never defined.
18039 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
18040
   { (exit 1); exit 1; }; }
18041
fi
18042
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
18043 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGDATE\" was never defined.
18044 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
18045 82 jeremybenn
$as_echo "$as_me: error: conditional \"USE_ARGDATE\" was never defined.
18046 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
18047
   { (exit 1); exit 1; }; }
18048
fi
18049
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
18050 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
18051 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
18052 82 jeremybenn
$as_echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
18053 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
18054
   { (exit 1); exit 1; }; }
18055
fi
18056
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
18057 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
18058 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
18059 82 jeremybenn
$as_echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
18060 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
18061
   { (exit 1); exit 1; }; }
18062
fi
18063
 
18064
: ${CONFIG_STATUS=./config.status}
18065 82 jeremybenn
ac_write_fail=0
18066 19 jeremybenn
ac_clean_files_save=$ac_clean_files
18067
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18068 82 jeremybenn
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18069
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18070
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18071 19 jeremybenn
#! $SHELL
18072
# Generated by $as_me.
18073
# Run this file to recreate the current configuration.
18074
# Compiler output produced by configure, useful for debugging
18075
# configure, is in config.log if it exists.
18076
 
18077
debug=false
18078
ac_cs_recheck=false
18079
ac_cs_silent=false
18080
SHELL=\${CONFIG_SHELL-$SHELL}
18081
_ACEOF
18082
 
18083 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18084 19 jeremybenn
## --------------------- ##
18085
## M4sh Initialization.  ##
18086
## --------------------- ##
18087
 
18088
# Be more Bourne compatible
18089
DUALCASE=1; export DUALCASE # for MKS sh
18090
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18091
  emulate sh
18092
  NULLCMD=:
18093 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18094 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
18095
  alias -g '${1+"$@"}'='"$@"'
18096
  setopt NO_GLOB_SUBST
18097
else
18098
  case `(set -o) 2>/dev/null` in
18099
  *posix*) set -o posix ;;
18100
esac
18101
 
18102
fi
18103
 
18104
 
18105
 
18106
 
18107
# PATH needs CR
18108
# Avoid depending upon Character Ranges.
18109
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18110
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18111
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18112
as_cr_digits='0123456789'
18113
as_cr_alnum=$as_cr_Letters$as_cr_digits
18114
 
18115 82 jeremybenn
as_nl='
18116
'
18117
export as_nl
18118
# Printing a long string crashes Solaris 7 /usr/bin/printf.
18119
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18120
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18121
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18122
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18123
  as_echo='printf %s\n'
18124
  as_echo_n='printf %s'
18125
else
18126
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18127
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18128
    as_echo_n='/usr/ucb/echo -n'
18129 19 jeremybenn
  else
18130 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18131
    as_echo_n_body='eval
18132
      arg=$1;
18133
      case $arg in
18134
      *"$as_nl"*)
18135
        expr "X$arg" : "X\\(.*\\)$as_nl";
18136
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18137
      esac;
18138
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18139
    '
18140
    export as_echo_n_body
18141
    as_echo_n='sh -c $as_echo_n_body as_echo'
18142 19 jeremybenn
  fi
18143 82 jeremybenn
  export as_echo_body
18144
  as_echo='sh -c $as_echo_body as_echo'
18145 19 jeremybenn
fi
18146
 
18147 82 jeremybenn
# The user is always right.
18148
if test "${PATH_SEPARATOR+set}" != set; then
18149
  PATH_SEPARATOR=:
18150
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18151
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18152
      PATH_SEPARATOR=';'
18153
  }
18154
fi
18155
 
18156 19 jeremybenn
# Support unset when possible.
18157
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18158
  as_unset=unset
18159
else
18160
  as_unset=false
18161
fi
18162
 
18163
 
18164
# IFS
18165
# We need space, tab and new line, in precisely that order.  Quoting is
18166
# there to prevent editors from complaining about space-tab.
18167
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18168
# splitting by setting IFS to empty value.)
18169
IFS=" ""        $as_nl"
18170
 
18171
# Find who we are.  Look in the path if we contain no directory separator.
18172
case $0 in
18173
  *[\\/]* ) as_myself=$0 ;;
18174
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18175
for as_dir in $PATH
18176
do
18177
  IFS=$as_save_IFS
18178
  test -z "$as_dir" && as_dir=.
18179
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18180
done
18181
IFS=$as_save_IFS
18182
 
18183
     ;;
18184
esac
18185
# We did not find ourselves, most probably we were run as `sh COMMAND'
18186
# in which case we are not to be found in the path.
18187
if test "x$as_myself" = x; then
18188
  as_myself=$0
18189
fi
18190
if test ! -f "$as_myself"; then
18191 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18192 19 jeremybenn
  { (exit 1); exit 1; }
18193
fi
18194
 
18195
# Work around bugs in pre-3.0 UWIN ksh.
18196
for as_var in ENV MAIL MAILPATH
18197
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18198
done
18199
PS1='$ '
18200
PS2='> '
18201
PS4='+ '
18202
 
18203
# NLS nuisances.
18204 82 jeremybenn
LC_ALL=C
18205
export LC_ALL
18206
LANGUAGE=C
18207
export LANGUAGE
18208 19 jeremybenn
 
18209
# Required to use basename.
18210
if expr a : '\(a\)' >/dev/null 2>&1 &&
18211
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18212
  as_expr=expr
18213
else
18214
  as_expr=false
18215
fi
18216
 
18217
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18218
  as_basename=basename
18219
else
18220
  as_basename=false
18221
fi
18222
 
18223
 
18224
# Name of the executable.
18225
as_me=`$as_basename -- "$0" ||
18226
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18227
         X"$0" : 'X\(//\)$' \| \
18228
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18229 82 jeremybenn
$as_echo X/"$0" |
18230 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
18231
            s//\1/
18232
            q
18233
          }
18234
          /^X\/\(\/\/\)$/{
18235
            s//\1/
18236
            q
18237
          }
18238
          /^X\/\(\/\).*/{
18239
            s//\1/
18240
            q
18241
          }
18242
          s/.*/./; q'`
18243
 
18244
# CDPATH.
18245
$as_unset CDPATH
18246
 
18247
 
18248
 
18249
  as_lineno_1=$LINENO
18250
  as_lineno_2=$LINENO
18251
  test "x$as_lineno_1" != "x$as_lineno_2" &&
18252
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18253
 
18254
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18255
  # uniformly replaced by the line number.  The first 'sed' inserts a
18256
  # line-number line after each line using $LINENO; the second 'sed'
18257
  # does the real work.  The second script uses 'N' to pair each
18258
  # line-number line with the line containing $LINENO, and appends
18259
  # trailing '-' during substitution so that $LINENO is not a special
18260
  # case at line end.
18261
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18262
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
18263
  # E. McMahon (1931-1989) for sed's syntax.  :-)
18264
  sed -n '
18265
    p
18266
    /[$]LINENO/=
18267
  ' <$as_myself |
18268
    sed '
18269
      s/[$]LINENO.*/&-/
18270
      t lineno
18271
      b
18272
      :lineno
18273
      N
18274
      :loop
18275
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18276
      t loop
18277
      s/-\n.*//
18278
    ' >$as_me.lineno &&
18279
  chmod +x "$as_me.lineno" ||
18280 82 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18281 19 jeremybenn
   { (exit 1); exit 1; }; }
18282
 
18283
  # Don't try to exec as it changes $[0], causing all sort of problems
18284
  # (the dirname of $[0] is not the place where we might find the
18285
  # original and so on.  Autoconf is especially sensitive to this).
18286
  . "./$as_me.lineno"
18287
  # Exit status is that of the last command.
18288
  exit
18289
}
18290
 
18291
 
18292
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18293
  as_dirname=dirname
18294
else
18295
  as_dirname=false
18296
fi
18297
 
18298
ECHO_C= ECHO_N= ECHO_T=
18299
case `echo -n x` in
18300
-n*)
18301
  case `echo 'x\c'` in
18302
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18303
  *)   ECHO_C='\c';;
18304
  esac;;
18305
*)
18306
  ECHO_N='-n';;
18307
esac
18308
if expr a : '\(a\)' >/dev/null 2>&1 &&
18309
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18310
  as_expr=expr
18311
else
18312
  as_expr=false
18313
fi
18314
 
18315
rm -f conf$$ conf$$.exe conf$$.file
18316
if test -d conf$$.dir; then
18317
  rm -f conf$$.dir/conf$$.file
18318
else
18319
  rm -f conf$$.dir
18320 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
18321 19 jeremybenn
fi
18322 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
18323
  if ln -s conf$$.file conf$$ 2>/dev/null; then
18324
    as_ln_s='ln -s'
18325
    # ... but there are two gotchas:
18326
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18327
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18328
    # In both cases, we have to default to `cp -p'.
18329
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18330
      as_ln_s='cp -p'
18331
  elif ln conf$$.file conf$$ 2>/dev/null; then
18332
    as_ln_s=ln
18333
  else
18334 19 jeremybenn
    as_ln_s='cp -p'
18335 82 jeremybenn
  fi
18336 19 jeremybenn
else
18337
  as_ln_s='cp -p'
18338
fi
18339
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18340
rmdir conf$$.dir 2>/dev/null
18341
 
18342
if mkdir -p . 2>/dev/null; then
18343
  as_mkdir_p=:
18344
else
18345
  test -d ./-p && rmdir ./-p
18346
  as_mkdir_p=false
18347
fi
18348
 
18349
if test -x / >/dev/null 2>&1; then
18350
  as_test_x='test -x'
18351
else
18352
  if ls -dL / >/dev/null 2>&1; then
18353
    as_ls_L_option=L
18354
  else
18355
    as_ls_L_option=
18356
  fi
18357
  as_test_x='
18358
    eval sh -c '\''
18359
      if test -d "$1"; then
18360 82 jeremybenn
        test -d "$1/.";
18361 19 jeremybenn
      else
18362
        case $1 in
18363 82 jeremybenn
        -*)set "./$1";;
18364 19 jeremybenn
        esac;
18365
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18366
        ???[sx]*):;;*)false;;esac;fi
18367
    '\'' sh
18368
  '
18369
fi
18370
as_executable_p=$as_test_x
18371
 
18372
# Sed expression to map a string onto a valid CPP name.
18373
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18374
 
18375
# Sed expression to map a string onto a valid variable name.
18376
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18377
 
18378
 
18379
exec 6>&1
18380
 
18381
# Save the log message, to keep $[0] and so on meaningful, and to
18382
# report actual input values of CONFIG_FILES etc. instead of their
18383
# values after options handling.
18384
ac_log="
18385 93 jeremybenn
This file was extended by or1ksim $as_me 2010-04-28, which was
18386 82 jeremybenn
generated by GNU Autoconf 2.63.  Invocation command line was
18387 19 jeremybenn
 
18388
  CONFIG_FILES    = $CONFIG_FILES
18389
  CONFIG_HEADERS  = $CONFIG_HEADERS
18390
  CONFIG_LINKS    = $CONFIG_LINKS
18391
  CONFIG_COMMANDS = $CONFIG_COMMANDS
18392
  $ $0 $@
18393
 
18394
on `(hostname || uname -n) 2>/dev/null | sed 1q`
18395
"
18396
 
18397
_ACEOF
18398
 
18399 82 jeremybenn
case $ac_config_files in *"
18400
"*) set x $ac_config_files; shift; ac_config_files=$*;;
18401
esac
18402
 
18403
case $ac_config_headers in *"
18404
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18405
esac
18406
 
18407
 
18408
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18409 19 jeremybenn
# Files that config.status was made for.
18410
config_files="$ac_config_files"
18411
config_headers="$ac_config_headers"
18412
config_commands="$ac_config_commands"
18413
 
18414
_ACEOF
18415
 
18416 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18417 19 jeremybenn
ac_cs_usage="\
18418
\`$as_me' instantiates files from templates according to the
18419
current configuration.
18420
 
18421 82 jeremybenn
Usage: $0 [OPTION]... [FILE]...
18422 19 jeremybenn
 
18423
  -h, --help       print this help, then exit
18424
  -V, --version    print version number and configuration settings, then exit
18425 82 jeremybenn
  -q, --quiet, --silent
18426
                   do not print progress messages
18427 19 jeremybenn
  -d, --debug      don't remove temporary files
18428
      --recheck    update $as_me by reconfiguring in the same conditions
18429 82 jeremybenn
      --file=FILE[:TEMPLATE]
18430
                   instantiate the configuration file FILE
18431
      --header=FILE[:TEMPLATE]
18432
                   instantiate the configuration header FILE
18433 19 jeremybenn
 
18434
Configuration files:
18435
$config_files
18436
 
18437
Configuration headers:
18438
$config_headers
18439
 
18440
Configuration commands:
18441
$config_commands
18442
 
18443
Report bugs to ."
18444
 
18445
_ACEOF
18446 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18447 19 jeremybenn
ac_cs_version="\\
18448 93 jeremybenn
or1ksim config.status 2010-04-28
18449 82 jeremybenn
configured by $0, generated by GNU Autoconf 2.63,
18450
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18451 19 jeremybenn
 
18452 82 jeremybenn
Copyright (C) 2008 Free Software Foundation, Inc.
18453 19 jeremybenn
This config.status script is free software; the Free Software Foundation
18454
gives unlimited permission to copy, distribute and modify it."
18455
 
18456
ac_pwd='$ac_pwd'
18457
srcdir='$srcdir'
18458
INSTALL='$INSTALL'
18459
MKDIR_P='$MKDIR_P'
18460 82 jeremybenn
AWK='$AWK'
18461
test -n "\$AWK" || AWK=awk
18462 19 jeremybenn
_ACEOF
18463
 
18464 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18465
# The default lists apply if the user does not specify any file.
18466 19 jeremybenn
ac_need_defaults=:
18467
while test $# != 0
18468
do
18469
  case $1 in
18470
  --*=*)
18471
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18472
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18473
    ac_shift=:
18474
    ;;
18475
  *)
18476
    ac_option=$1
18477
    ac_optarg=$2
18478
    ac_shift=shift
18479
    ;;
18480
  esac
18481
 
18482
  case $ac_option in
18483
  # Handling of the options.
18484
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18485
    ac_cs_recheck=: ;;
18486
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18487 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
18488 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
18489
    debug=: ;;
18490
  --file | --fil | --fi | --f )
18491
    $ac_shift
18492 82 jeremybenn
    case $ac_optarg in
18493
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18494
    esac
18495
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18496 19 jeremybenn
    ac_need_defaults=false;;
18497
  --header | --heade | --head | --hea )
18498
    $ac_shift
18499 82 jeremybenn
    case $ac_optarg in
18500
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18501
    esac
18502
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18503 19 jeremybenn
    ac_need_defaults=false;;
18504
  --he | --h)
18505
    # Conflict between --help and --header
18506 82 jeremybenn
    { $as_echo "$as_me: error: ambiguous option: $1
18507 19 jeremybenn
Try \`$0 --help' for more information." >&2
18508
   { (exit 1); exit 1; }; };;
18509
  --help | --hel | -h )
18510 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
18511 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18512
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18513
    ac_cs_silent=: ;;
18514
 
18515
  # This is an error.
18516 82 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $1
18517 19 jeremybenn
Try \`$0 --help' for more information." >&2
18518
   { (exit 1); exit 1; }; } ;;
18519
 
18520
  *) ac_config_targets="$ac_config_targets $1"
18521
     ac_need_defaults=false ;;
18522
 
18523
  esac
18524
  shift
18525
done
18526
 
18527
ac_configure_extra_args=
18528
 
18529
if $ac_cs_silent; then
18530
  exec 6>/dev/null
18531
  ac_configure_extra_args="$ac_configure_extra_args --silent"
18532
fi
18533
 
18534
_ACEOF
18535 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18536 19 jeremybenn
if \$ac_cs_recheck; then
18537 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18538
  shift
18539
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18540
  CONFIG_SHELL='$SHELL'
18541 19 jeremybenn
  export CONFIG_SHELL
18542 82 jeremybenn
  exec "\$@"
18543 19 jeremybenn
fi
18544
 
18545
_ACEOF
18546 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18547 19 jeremybenn
exec 5>>config.log
18548
{
18549
  echo
18550
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18551
## Running $as_me. ##
18552
_ASBOX
18553 82 jeremybenn
  $as_echo "$ac_log"
18554 19 jeremybenn
} >&5
18555
 
18556
_ACEOF
18557 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18558 19 jeremybenn
#
18559
# INIT-COMMANDS
18560
#
18561 82 jeremybenn
 
18562
 
18563
# The HP-UX ksh and POSIX shell print the target directory to stdout
18564
# if CDPATH is set.
18565
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18566
 
18567
sed_quote_subst='$sed_quote_subst'
18568
double_quote_subst='$double_quote_subst'
18569
delay_variable_subst='$delay_variable_subst'
18570
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18571
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18572
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18573
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18574
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18575
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18576
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18577
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18578
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18579
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18580
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18581
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18582
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18583
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18584
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18585
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18586
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18587
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18588
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18589
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18590
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18591
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18592
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18593
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18594
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18595
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18596
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18597
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18598
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18599
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18600
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18601
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18602
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18603
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18604
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18605
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18606
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18607
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18608
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18609
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18610
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18611
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18612
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18613
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18614
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"`'
18615
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"`'
18616
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18617
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18618
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18619
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18620
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18621
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18622
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18623
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18624
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18625
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18626
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18627
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18628
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18629
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18630
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18631
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18632
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18633
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18634
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18635
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18636
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18637
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18638
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18639
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18640
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18641
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18642
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18643
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18644
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18645
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18646
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18647
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18648
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18649
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18650
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18651
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18652
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18653
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18654
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18655
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18656
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18657
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18658
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18659
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18660
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18661
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18662
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18663
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18664
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18665
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18666
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18667
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18668
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18669
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18670
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18671
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18672
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18673
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18674
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18675
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18676
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18677
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18678
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18679
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18680
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18681
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18682
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18683
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18684
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18685
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18686
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18687
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18688
 
18689
LTCC='$LTCC'
18690
LTCFLAGS='$LTCFLAGS'
18691
compiler='$compiler_DEFAULT'
18692
 
18693
# Quote evaled strings.
18694
for var in SED \
18695
GREP \
18696
EGREP \
18697
FGREP \
18698
LD \
18699
NM \
18700
LN_S \
18701
lt_SP2NL \
18702
lt_NL2SP \
18703
reload_flag \
18704
OBJDUMP \
18705
deplibs_check_method \
18706
file_magic_cmd \
18707
AR \
18708
AR_FLAGS \
18709
STRIP \
18710
RANLIB \
18711
CC \
18712
CFLAGS \
18713
compiler \
18714
lt_cv_sys_global_symbol_pipe \
18715
lt_cv_sys_global_symbol_to_cdecl \
18716
lt_cv_sys_global_symbol_to_c_name_address \
18717
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18718
SHELL \
18719
ECHO \
18720
lt_prog_compiler_no_builtin_flag \
18721
lt_prog_compiler_wl \
18722
lt_prog_compiler_pic \
18723
lt_prog_compiler_static \
18724
lt_cv_prog_compiler_c_o \
18725
need_locks \
18726
DSYMUTIL \
18727
NMEDIT \
18728
LIPO \
18729
OTOOL \
18730
OTOOL64 \
18731
shrext_cmds \
18732
export_dynamic_flag_spec \
18733
whole_archive_flag_spec \
18734
compiler_needs_object \
18735
with_gnu_ld \
18736
allow_undefined_flag \
18737
no_undefined_flag \
18738
hardcode_libdir_flag_spec \
18739
hardcode_libdir_flag_spec_ld \
18740
hardcode_libdir_separator \
18741
fix_srcfile_path \
18742
exclude_expsyms \
18743
include_expsyms \
18744
file_list_spec \
18745
variables_saved_for_relink \
18746
libname_spec \
18747
library_names_spec \
18748
soname_spec \
18749
finish_eval \
18750
old_striplib \
18751
striplib; do
18752
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18753
    *[\\\\\\\`\\"\\\$]*)
18754
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18755
      ;;
18756
    *)
18757
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18758
      ;;
18759
    esac
18760
done
18761
 
18762
# Double-quote double-evaled strings.
18763
for var in reload_cmds \
18764
old_postinstall_cmds \
18765
old_postuninstall_cmds \
18766
old_archive_cmds \
18767
extract_expsyms_cmds \
18768
old_archive_from_new_cmds \
18769
old_archive_from_expsyms_cmds \
18770
archive_cmds \
18771
archive_expsym_cmds \
18772
module_cmds \
18773
module_expsym_cmds \
18774
export_symbols_cmds \
18775
prelink_cmds \
18776
postinstall_cmds \
18777
postuninstall_cmds \
18778
finish_cmds \
18779
sys_lib_search_path_spec \
18780
sys_lib_dlsearch_path_spec; do
18781
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18782
    *[\\\\\\\`\\"\\\$]*)
18783
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18784
      ;;
18785
    *)
18786
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18787
      ;;
18788
    esac
18789
done
18790
 
18791
# Fix-up fallback echo if it was mangled by the above quoting rules.
18792
case \$lt_ECHO in
18793
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18794
  ;;
18795
esac
18796
 
18797
ac_aux_dir='$ac_aux_dir'
18798
xsi_shell='$xsi_shell'
18799
lt_shell_append='$lt_shell_append'
18800
 
18801
# See if we are running on zsh, and set the options which allow our
18802
# commands through without removal of \ escapes INIT.
18803
if test -n "\${ZSH_VERSION+set}" ; then
18804
   setopt NO_GLOB_SUBST
18805
fi
18806
 
18807
 
18808
    PACKAGE='$PACKAGE'
18809
    VERSION='$VERSION'
18810
    TIMESTAMP='$TIMESTAMP'
18811
    RM='$RM'
18812
    ofile='$ofile'
18813
 
18814
 
18815
 
18816 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18817
 
18818
_ACEOF
18819
 
18820 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18821 19 jeremybenn
 
18822
# Handling of arguments.
18823
for ac_config_target in $ac_config_targets
18824
do
18825
  case $ac_config_target in
18826 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18827 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18828
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18829
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18830
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
18831
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
18832
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
18833
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
18834
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
18835
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
18836
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
18837
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
18838
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18839
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
18840
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
18841
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
18842
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
18843
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
18844 90 jeremybenn
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
18845
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
18846
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18847
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
18848
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
18849
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
18850
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
18851
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
18852
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
18853 93 jeremybenn
    "testsuite/test-code/lib-inttest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-inttest/Makefile" ;;
18854
    "testsuite/test-code/lib-upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-upcalls/Makefile" ;;
18855 90 jeremybenn
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
18856 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
18857
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
18858
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
18859
 
18860 82 jeremybenn
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18861
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18862 19 jeremybenn
   { (exit 1); exit 1; }; };;
18863
  esac
18864
done
18865
 
18866
 
18867
# If the user did not use the arguments to specify the items to instantiate,
18868
# then the envvar interface is used.  Set only those that are not.
18869
# We use the long form for the default assignment because of an extremely
18870
# bizarre bug on SunOS 4.1.3.
18871
if $ac_need_defaults; then
18872
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18873
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18874
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18875
fi
18876
 
18877
# Have a temporary directory for convenience.  Make it in the build tree
18878
# simply because there is no reason against having it here, and in addition,
18879
# creating and moving files from /tmp can sometimes cause problems.
18880
# Hook for its removal unless debugging.
18881
# Note that there is a small window in which the directory will not be cleaned:
18882
# after its creation but before its name has been assigned to `$tmp'.
18883
$debug ||
18884
{
18885
  tmp=
18886
  trap 'exit_status=$?
18887
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18888
' 0
18889
  trap '{ (exit 1); exit 1; }' 1 2 13 15
18890
}
18891
# Create a (secure) tmp directory for tmp files.
18892
 
18893
{
18894
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18895
  test -n "$tmp" && test -d "$tmp"
18896
}  ||
18897
{
18898
  tmp=./conf$$-$RANDOM
18899
  (umask 077 && mkdir "$tmp")
18900
} ||
18901
{
18902 82 jeremybenn
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
18903 19 jeremybenn
   { (exit 1); exit 1; }
18904
}
18905
 
18906 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
18907
# No need to generate them if there are no CONFIG_FILES.
18908
# This happens for instance with `./config.status config.h'.
18909 19 jeremybenn
if test -n "$CONFIG_FILES"; then
18910
 
18911 82 jeremybenn
 
18912
ac_cr='
'
18913
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
18914
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18915
  ac_cs_awk_cr='\\r'
18916
else
18917
  ac_cs_awk_cr=$ac_cr
18918
fi
18919
18920
 
18921
_ACEOF
18922 19 jeremybenn
18923
 
18924
 
18925 82 jeremybenn
  echo "cat >conf$$subs.awk <<_ACEOF" &&
18926
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18927
  echo "_ACEOF"
18928
} >conf$$subs.sh ||
18929
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18930
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18931
   { (exit 1); exit 1; }; }
18932
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18933
ac_delim='%!_!# '
18934 19 jeremybenn
for ac_last_try in false false false false false :; do
18935
  . ./conf$$subs.sh ||
18936 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18937
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18938
   { (exit 1); exit 1; }; }
18939
18940 19 jeremybenn
 
18941 82 jeremybenn
  if test $ac_delim_n = $ac_delim_num; then
18942
    break
18943 19 jeremybenn
  elif $ac_last_try; then
18944
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18945 82 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18946
   { (exit 1); exit 1; }; }
18947 19 jeremybenn
  else
18948
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18949
  fi
18950
done
18951
rm -f conf$$subs.sh
18952 82 jeremybenn
18953 19 jeremybenn
 
18954 82 jeremybenn
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18955
_ACEOF
18956 19 jeremybenn
sed -n '
18957 82 jeremybenn
h
18958
s/^/S["/; s/!.*/"]=/
18959
p
18960
g
18961
s/^[^!]*!//
18962
:repl
18963
t repl
18964
s/'"$ac_delim"'$//
18965
t delim
18966
:nl
18967
h
18968
s/\(.\{148\}\).*/\1/
18969
t more1
18970
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18971
p
18972
n
18973
b repl
18974
:more1
18975
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18976
p
18977
g
18978
s/.\{148\}//
18979
t nl
18980
:delim
18981
h
18982
s/\(.\{148\}\).*/\1/
18983
t more2
18984
s/["\\]/\\&/g; s/^/"/; s/$/"/
18985
p
18986
b
18987
:more2
18988
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18989
p
18990
g
18991
s/.\{148\}//
18992
t delim
18993
' 
18994
/^[^""]/{
18995
  N
18996
  s/\n//
18997
}
18998
' >>$CONFIG_STATUS || ac_write_fail=1
18999
rm -f conf$$subs.awk
19000
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19001
_ACAWK
19002
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19003
  for (key in S) S_is_set[key] = 1
19004
  FS = ""
19005
19006 19 jeremybenn
 
19007 82 jeremybenn
{
19008
  line = $ 0
19009
  nfields = split(line, field, "@")
19010
  substed = 0
19011
  len = length(field[1])
19012
  for (i = 2; i < nfields; i++) {
19013
    key = field[i]
19014
    keylen = length(key)
19015
    if (S_is_set[key]) {
19016
      value = S[key]
19017
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19018
      len += length(value) + length(field[++i])
19019
      substed = 1
19020
    } else
19021
      len += 1 + keylen
19022
  }
19023
19024 19 jeremybenn
 
19025 82 jeremybenn
}
19026
19027
 
19028
_ACEOF
19029 19 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19030 82 jeremybenn
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19031
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19032
else
19033
  cat
19034
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19035
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19036
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
19037
   { (exit 1); exit 1; }; }
19038 19 jeremybenn
_ACEOF
19039
19040
 
19041
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19042
# trailing colons and then remove the whole line if VPATH becomes empty
19043
# (actually we leave an empty line to preserve line numbers).
19044
if test "x$srcdir" = x.; then
19045
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
19046
s/:*\$(srcdir):*/:/
19047
s/:*\${srcdir}:*/:/
19048
s/:*@srcdir@:*/:/
19049
s/^\([^=]*=[     ]*\):*/\1/
19050
s/:*$//
19051
s/^[^=]*=[       ]*$//
19052
}'
19053
fi
19054
19055
 
19056 82 jeremybenn
fi # test -n "$CONFIG_FILES"
19057 19 jeremybenn
19058
 
19059 82 jeremybenn
# No need to generate them if there are no CONFIG_HEADERS.
19060
# This happens for instance with `./config.status Makefile'.
19061
if test -n "$CONFIG_HEADERS"; then
19062
cat >"$tmp/defines.awk" <<\_ACAWK ||
19063
BEGIN {
19064
_ACEOF
19065
19066 19 jeremybenn
 
19067 82 jeremybenn
# here-document in config.status, that substitutes the proper values into
19068
# config.h.in to produce config.h.
19069
19070
 
19071
# handling of long lines.
19072
ac_delim='%!_!# '
19073
for ac_last_try in false false :; do
19074
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19075
  if test -z "$ac_t"; then
19076
    break
19077
  elif $ac_last_try; then
19078
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19079
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19080
   { (exit 1); exit 1; }; }
19081
  else
19082
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19083
  fi
19084
done
19085
19086
 
19087
# likewise P contains macro parameters if any.  Preserve backslash
19088
# newline sequences.
19089
19090
 
19091
sed -n '
19092
s/.\{148\}/&'"$ac_delim"'/g
19093
t rset
19094
:rset
19095
s/^[     ]*#[    ]*define[       ][      ]*/ /
19096
t def
19097
d
19098
:def
19099
s/\\$//
19100
t bsnl
19101
s/["\\]/\\&/g
19102
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19103
D["\1"]=" \3"/p
19104
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19105
d
19106
:bsnl
19107
s/["\\]/\\&/g
19108
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19109
D["\1"]=" \3\\\\\\n"\\/p
19110
t cont
19111
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19112
t cont
19113
d
19114
:cont
19115
n
19116
s/.\{148\}/&'"$ac_delim"'/g
19117
t clear
19118
:clear
19119
s/\\$//
19120
t bsnlc
19121
s/["\\]/\\&/g; s/^/"/; s/$/"/p
19122
d
19123
:bsnlc
19124
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19125
b cont
19126
' 
19127
s/'"$ac_delim"'/"\\\
19128
"/g' >>$CONFIG_STATUS || ac_write_fail=1
19129
19130
 
19131
  for (key in D) D_is_set[key] = 1
19132
  FS = ""
19133
}
19134
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19135
  line = \$ 0
19136
  split(line, arg, " ")
19137
  if (arg[1] == "#") {
19138
    defundef = arg[2]
19139
    mac1 = arg[3]
19140
  } else {
19141
    defundef = substr(arg[1], 2)
19142
    mac1 = arg[2]
19143
  }
19144
  split(mac1, mac2, "(") #)
19145
  macro = mac2[1]
19146
  prefix = substr(line, 1, index(line, defundef) - 1)
19147
  if (D_is_set[macro]) {
19148
    # Preserve the white space surrounding the "#".
19149
    print prefix "define", macro P[macro] D[macro]
19150
    next
19151
  } else {
19152
    # Replace #undef with comments.  This is necessary, for example,
19153
    # in the case of _POSIX_SOURCE, which is predefined and required
19154
    # on some systems where configure will not decide to define it.
19155
    if (defundef == "undef") {
19156
      print "/*", prefix defundef, macro, "*/"
19157
      next
19158
    }
19159
  }
19160
}
19161
{ print }
19162
_ACAWK
19163
_ACEOF
19164
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19165
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19166
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19167
   { (exit 1); exit 1; }; }
19168
fi # test -n "$CONFIG_HEADERS"
19169
19170
 
19171
 
19172
shift
19173
for ac_tag
19174
do
19175 19 jeremybenn
  case $ac_tag in
19176
  :[FHLC]) ac_mode=$ac_tag; continue;;
19177
  esac
19178
  case $ac_mode$ac_tag in
19179
  :[FHL]*:*);;
19180
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19181 82 jeremybenn
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19182
   { (exit 1); exit 1; }; };;
19183 19 jeremybenn
  :[FH]-) ac_tag=-:-;;
19184
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19185
  esac
19186
  ac_save_IFS=$IFS
19187
  IFS=:
19188
  set x $ac_tag
19189
  IFS=$ac_save_IFS
19190
  shift
19191
  ac_file=$1
19192
  shift
19193
19194
 
19195
  :L) ac_source=$1;;
19196
  :[FH])
19197
    ac_file_inputs=
19198
    for ac_f
19199
    do
19200
      case $ac_f in
19201
      -) ac_f="$tmp/stdin";;
19202
      *) # Look for the file first in the build tree, then in the source tree
19203
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
19204
         # because $ac_f cannot contain `:'.
19205
         test -f "$ac_f" ||
19206
           case $ac_f in
19207
           [\\/$]*) false;;
19208
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19209
           esac ||
19210
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19211 82 jeremybenn
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19212
   { (exit 1); exit 1; }; };;
19213 19 jeremybenn
      esac
19214
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19215 82 jeremybenn
      ac_file_inputs="$ac_file_inputs '$ac_f'"
19216
    done
19217 19 jeremybenn
19218
 
19219
    # use $as_me), people would be surprised to read:
19220
    #    /* config.h.  Generated by config.status.  */
19221
    configure_input='Generated from '`
19222 82 jeremybenn
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19223
        `' by configure.'
19224
    if test x"$ac_file" != x-; then
19225 19 jeremybenn
      configure_input="$ac_file.  $configure_input"
19226
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19227 82 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
19228
    fi
19229 19 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
19230 82 jeremybenn
    case $configure_input in #(
19231
    *\&* | *\|* | *\\* )
19232
       ac_sed_conf_input=`$as_echo "$configure_input" |
19233
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19234
    *) ac_sed_conf_input=$configure_input;;
19235
    esac
19236
19237 19 jeremybenn
 
19238
    *:-:* | *:-) cat >"$tmp/stdin" \
19239 82 jeremybenn
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19240
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19241
   { (exit 1); exit 1; }; } ;;
19242
    esac
19243 19 jeremybenn
    ;;
19244
  esac
19245
19246
 
19247
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19248
         X"$ac_file" : 'X\(//\)[^/]' \| \
19249
         X"$ac_file" : 'X\(//\)$' \| \
19250
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19251
$as_echo X"$ac_file" |
19252 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19253 19 jeremybenn
            s//\1/
19254
            q
19255
          }
19256
          /^X\(\/\/\)[^/].*/{
19257
            s//\1/
19258
            q
19259
          }
19260
          /^X\(\/\/\)$/{
19261
            s//\1/
19262
            q
19263
          }
19264
          /^X\(\/\).*/{
19265
            s//\1/
19266
            q
19267
          }
19268
          s/.*/./; q'`
19269
  { as_dir="$ac_dir"
19270
  case $as_dir in #(
19271
  -*) as_dir=./$as_dir;;
19272
  esac
19273
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19274
    as_dirs=
19275
    while :; do
19276
      case $as_dir in #(
19277
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19278 82 jeremybenn
      *) as_qdir=$as_dir;;
19279 19 jeremybenn
      esac
19280
      as_dirs="'$as_qdir' $as_dirs"
19281
      as_dir=`$as_dirname -- "$as_dir" ||
19282
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19283
         X"$as_dir" : 'X\(//\)[^/]' \| \
19284
         X"$as_dir" : 'X\(//\)$' \| \
19285
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19286
$as_echo X"$as_dir" |
19287 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19288 19 jeremybenn
            s//\1/
19289
            q
19290
          }
19291
          /^X\(\/\/\)[^/].*/{
19292
            s//\1/
19293
            q
19294
          }
19295
          /^X\(\/\/\)$/{
19296
            s//\1/
19297
            q
19298
          }
19299
          /^X\(\/\).*/{
19300
            s//\1/
19301
            q
19302
          }
19303
          s/.*/./; q'`
19304
      test -d "$as_dir" && break
19305
    done
19306
    test -z "$as_dirs" || eval "mkdir $as_dirs"
19307
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19308 82 jeremybenn
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19309
   { (exit 1); exit 1; }; }; }
19310 19 jeremybenn
  ac_builddir=.
19311
19312
 
19313
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19314
*)
19315
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19316 82 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
19317 19 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19318 82 jeremybenn
  case $ac_top_builddir_sub in
19319 19 jeremybenn
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19320
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19321
  esac ;;
19322
esac
19323
ac_abs_top_builddir=$ac_pwd
19324
ac_abs_builddir=$ac_pwd$ac_dir_suffix
19325
# for backward compatibility:
19326
ac_top_builddir=$ac_top_build_prefix
19327
19328
 
19329
  .)  # We are building in place.
19330
    ac_srcdir=.
19331
    ac_top_srcdir=$ac_top_builddir_sub
19332
    ac_abs_top_srcdir=$ac_pwd ;;
19333
  [\\/]* | ?:[\\/]* )  # Absolute name.
19334
    ac_srcdir=$srcdir$ac_dir_suffix;
19335
    ac_top_srcdir=$srcdir
19336
    ac_abs_top_srcdir=$srcdir ;;
19337
  *) # Relative name.
19338
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19339
    ac_top_srcdir=$ac_top_build_prefix$srcdir
19340
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19341
esac
19342
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19343
19344
 
19345
 
19346
  :F)
19347
  #
19348
  # CONFIG_FILE
19349
  #
19350
19351
 
19352
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19353
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19354
  esac
19355
  ac_MKDIR_P=$MKDIR_P
19356
  case $MKDIR_P in
19357
  [\\/$]* | ?:[\\/]* ) ;;
19358
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19359
  esac
19360
_ACEOF
19361
19362
 
19363 82 jeremybenn
# If the template does not know about datarootdir, expand it.
19364 19 jeremybenn
# FIXME: This hack should be removed a few years after 2.60.
19365
ac_datarootdir_hack=; ac_datarootdir_seen=
19366
19367
 
19368 82 jeremybenn
/datarootdir/ {
19369
  p
19370 19 jeremybenn
  q
19371
}
19372
/@datadir@/p
19373
/@docdir@/p
19374
/@infodir@/p
19375
/@localedir@/p
19376
/@mandir@/p
19377
'
19378 82 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19379
*datarootdir*) ac_datarootdir_seen=yes;;
19380 19 jeremybenn
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19381
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19382 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19383
_ACEOF
19384 19 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19385 82 jeremybenn
  ac_datarootdir_hack='
19386 19 jeremybenn
  s&@datadir@&$datadir&g
19387
  s&@docdir@&$docdir&g
19388
  s&@infodir@&$infodir&g
19389
  s&@localedir@&$localedir&g
19390
  s&@mandir@&$mandir&g
19391
    s&\\\${datarootdir}&$datarootdir&g' ;;
19392
esac
19393
_ACEOF
19394
19395
 
19396
# Shell code in configure.ac might set extrasub.
19397
# FIXME: do we really want to maintain this feature?
19398
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19399 82 jeremybenn
ac_sed_extra="$ac_vpsub
19400
$extrasub
19401 19 jeremybenn
_ACEOF
19402
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19403 82 jeremybenn
:t
19404 19 jeremybenn
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19405
s|@configure_input@|$ac_sed_conf_input|;t t
19406 82 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
19407 19 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
19408 82 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
19409 19 jeremybenn
s&@abs_srcdir@&$ac_abs_srcdir&;t t
19410
s&@top_srcdir@&$ac_top_srcdir&;t t
19411
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19412
s&@builddir@&$ac_builddir&;t t
19413
s&@abs_builddir@&$ac_abs_builddir&;t t
19414
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19415
s&@INSTALL@&$ac_INSTALL&;t t
19416
s&@MKDIR_P@&$ac_MKDIR_P&;t t
19417
$ac_datarootdir_hack
19418
"
19419 82 jeremybenn
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19420
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19421
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19422
   { (exit 1); exit 1; }; }
19423
19424 19 jeremybenn
 
19425
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19426
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19427
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19428 82 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
19429 19 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19430 82 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
19431 19 jeremybenn
19432
 
19433
  case $ac_file in
19434
  -) cat "$tmp/out" && rm -f "$tmp/out";;
19435 82 jeremybenn
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19436
  esac \
19437
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19438
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19439
   { (exit 1); exit 1; }; }
19440
 ;;
19441 19 jeremybenn
  :H)
19442
  #
19443
  # CONFIG_HEADER
19444
  #
19445
  if test x"$ac_file" != x-; then
19446
    {
19447 82 jeremybenn
      $as_echo "/* $configure_input  */" \
19448
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19449
    } >"$tmp/config.h" \
19450
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19451
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19452
   { (exit 1); exit 1; }; }
19453
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19454
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19455
$as_echo "$as_me: $ac_file is unchanged" >&6;}
19456
    else
19457 19 jeremybenn
      rm -f "$ac_file"
19458 82 jeremybenn
      mv "$tmp/config.h" "$ac_file" \
19459
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19460
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19461
   { (exit 1); exit 1; }; }
19462
    fi
19463 19 jeremybenn
  else
19464
    $as_echo "/* $configure_input  */" \
19465 82 jeremybenn
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19466
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19467
$as_echo "$as_me: error: could not create -" >&2;}
19468
   { (exit 1); exit 1; }; }
19469
  fi
19470 19 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
19471 82 jeremybenn
_am_arg="$ac_file"
19472
_am_stamp_count=1
19473 19 jeremybenn
for _am_header in $config_headers :; do
19474
  case $_am_header in
19475
    $_am_arg | $_am_arg:* )
19476
      break ;;
19477
    * )
19478
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19479
  esac
19480
done
19481
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19482
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19483
         X"$_am_arg" : 'X\(//\)[^/]' \| \
19484
         X"$_am_arg" : 'X\(//\)$' \| \
19485
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19486
$as_echo X"$_am_arg" |
19487 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19488 19 jeremybenn
            s//\1/
19489
            q
19490
          }
19491
          /^X\(\/\/\)[^/].*/{
19492
            s//\1/
19493
            q
19494
          }
19495
          /^X\(\/\/\)$/{
19496
            s//\1/
19497
            q
19498
          }
19499
          /^X\(\/\).*/{
19500
            s//\1/
19501
            q
19502
          }
19503
          s/.*/./; q'`/stamp-h$_am_stamp_count
19504
 ;;
19505
19506
 
19507 82 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
19508
 ;;
19509 19 jeremybenn
  esac
19510
19511
 
19512
 
19513
    "libtool":C)
19514 82 jeremybenn
19515
 
19516
    # commands through without removal of \ escapes.
19517
    if test -n "${ZSH_VERSION+set}" ; then
19518
      setopt NO_GLOB_SUBST
19519
    fi
19520
19521
 
19522
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19523
    $RM "$cfgfile"
19524
19525
 
19526
#! $SHELL
19527
19528
 
19529
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19530
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19531
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19532
#
19533
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19534
#                 2006, 2007, 2008 Free Software Foundation, Inc.
19535
#   Written by Gordon Matzigkeit, 1996
19536
#
19537
#   This file is part of GNU Libtool.
19538
#
19539
# GNU Libtool is free software; you can redistribute it and/or
19540
# modify it under the terms of the GNU General Public License as
19541
# published by the Free Software Foundation; either version 2 of
19542
# the License, or (at your option) any later version.
19543
#
19544
# As a special exception to the GNU General Public License,
19545
# if you distribute this file as part of a program or library that
19546
# is built using GNU Libtool, you may include this file under the
19547
# same distribution terms that you use for the rest of that program.
19548
#
19549
# GNU Libtool is distributed in the hope that it will be useful,
19550
# but WITHOUT ANY WARRANTY; without even the implied warranty of
19551
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19552
# GNU General Public License for more details.
19553
#
19554
# You should have received a copy of the GNU General Public License
19555
# along with GNU Libtool; see the file COPYING.  If not, a copy
19556
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19557
# obtained by writing to the Free Software Foundation, Inc.,
19558
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19559
19560
 
19561
 
19562
available_tags=""
19563
19564
 
19565
19566
 
19567
macro_version=$macro_version
19568
macro_revision=$macro_revision
19569
19570
 
19571
build_libtool_libs=$enable_shared
19572
19573
 
19574
build_old_libs=$enable_static
19575
19576
 
19577
pic_mode=$pic_mode
19578
19579
 
19580
fast_install=$enable_fast_install
19581
19582
 
19583
host_alias=$host_alias
19584
host=$host
19585
host_os=$host_os
19586
19587
 
19588
build_alias=$build_alias
19589
build=$build
19590
build_os=$build_os
19591
19592
 
19593
SED=$lt_SED
19594
19595
 
19596
Xsed="\$SED -e 1s/^X//"
19597
19598
 
19599
GREP=$lt_GREP
19600
19601
 
19602
EGREP=$lt_EGREP
19603
19604
 
19605
FGREP=$lt_FGREP
19606
19607
 
19608
NM=$lt_NM
19609
19610
 
19611
LN_S=$lt_LN_S
19612
19613
 
19614
max_cmd_len=$max_cmd_len
19615
19616
 
19617
objext=$ac_objext
19618
19619
 
19620
exeext=$exeext
19621
19622
 
19623
lt_unset=$lt_unset
19624
19625
 
19626
SP2NL=$lt_lt_SP2NL
19627
19628
 
19629
NL2SP=$lt_lt_NL2SP
19630
19631
 
19632
reload_flag=$lt_reload_flag
19633
reload_cmds=$lt_reload_cmds
19634
19635
 
19636
OBJDUMP=$lt_OBJDUMP
19637
19638
 
19639
deplibs_check_method=$lt_deplibs_check_method
19640
19641
 
19642
file_magic_cmd=$lt_file_magic_cmd
19643
19644
 
19645
AR=$lt_AR
19646
AR_FLAGS=$lt_AR_FLAGS
19647
19648
 
19649
STRIP=$lt_STRIP
19650
19651
 
19652
RANLIB=$lt_RANLIB
19653
old_postinstall_cmds=$lt_old_postinstall_cmds
19654
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19655
19656
 
19657
LTCC=$lt_CC
19658
19659
 
19660
LTCFLAGS=$lt_CFLAGS
19661
19662
 
19663
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19664
19665
 
19666
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19667
19668
 
19669
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19670
19671
 
19672
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19673
19674
 
19675
objdir=$objdir
19676
19677
 
19678
SHELL=$lt_SHELL
19679
19680
 
19681
ECHO=$lt_ECHO
19682
19683
 
19684
MAGIC_CMD=$MAGIC_CMD
19685
19686
 
19687
need_locks=$lt_need_locks
19688
19689
 
19690
DSYMUTIL=$lt_DSYMUTIL
19691
19692
 
19693
NMEDIT=$lt_NMEDIT
19694
19695
 
19696
LIPO=$lt_LIPO
19697
19698
 
19699
OTOOL=$lt_OTOOL
19700
19701
 
19702
OTOOL64=$lt_OTOOL64
19703
19704
 
19705
libext=$libext
19706
19707
 
19708
shrext_cmds=$lt_shrext_cmds
19709
19710
 
19711
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19712
19713
 
19714
# restored at link time.
19715
variables_saved_for_relink=$lt_variables_saved_for_relink
19716
19717
 
19718
need_lib_prefix=$need_lib_prefix
19719
19720
 
19721
need_version=$need_version
19722
19723
 
19724
version_type=$version_type
19725
19726
 
19727
runpath_var=$runpath_var
19728
19729
 
19730
shlibpath_var=$shlibpath_var
19731
19732
 
19733
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19734
19735
 
19736
libname_spec=$lt_libname_spec
19737
19738
 
19739
# The last name is the one that the linker finds with -lNAME
19740
library_names_spec=$lt_library_names_spec
19741
19742
 
19743
soname_spec=$lt_soname_spec
19744
19745
 
19746
postinstall_cmds=$lt_postinstall_cmds
19747
19748
 
19749
postuninstall_cmds=$lt_postuninstall_cmds
19750
19751
 
19752
finish_cmds=$lt_finish_cmds
19753
19754
 
19755
# not shown.
19756
finish_eval=$lt_finish_eval
19757
19758
 
19759
hardcode_into_libs=$hardcode_into_libs
19760
19761
 
19762
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19763
19764
 
19765
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19766
19767
 
19768
dlopen_support=$enable_dlopen
19769
19770
 
19771
dlopen_self=$enable_dlopen_self
19772
19773
 
19774
dlopen_self_static=$enable_dlopen_self_static
19775
19776
 
19777
old_striplib=$lt_old_striplib
19778
striplib=$lt_striplib
19779
19780
 
19781
 
19782
LD=$lt_LD
19783
19784
 
19785
old_archive_cmds=$lt_old_archive_cmds
19786
19787
 
19788
CC=$lt_compiler
19789
19790
 
19791
with_gcc=$GCC
19792
19793
 
19794
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19795
19796
 
19797
wl=$lt_lt_prog_compiler_wl
19798
19799
 
19800
pic_flag=$lt_lt_prog_compiler_pic
19801
19802
 
19803
link_static_flag=$lt_lt_prog_compiler_static
19804
19805
 
19806
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19807
19808
 
19809
build_libtool_need_lc=$archive_cmds_need_lc
19810
19811
 
19812
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19813
19814
 
19815
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19816
19817
 
19818
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19819
19820
 
19821
compiler_needs_object=$lt_compiler_needs_object
19822
19823
 
19824
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19825
19826
 
19827
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19828
19829
 
19830
archive_cmds=$lt_archive_cmds
19831
archive_expsym_cmds=$lt_archive_expsym_cmds
19832
19833
 
19834
# a shared archive.
19835
module_cmds=$lt_module_cmds
19836
module_expsym_cmds=$lt_module_expsym_cmds
19837
19838
 
19839
with_gnu_ld=$lt_with_gnu_ld
19840
19841
 
19842
allow_undefined_flag=$lt_allow_undefined_flag
19843
19844
 
19845
no_undefined_flag=$lt_no_undefined_flag
19846
19847
 
19848
# This must work even if \$libdir does not exist
19849
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19850
19851
 
19852
# during linking.  This must work even if \$libdir does not exist.
19853
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19854
19855
 
19856
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19857
19858
 
19859
# DIR into the resulting binary.
19860
hardcode_direct=$hardcode_direct
19861
19862
 
19863
# DIR into the resulting binary and the resulting library dependency is
19864
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19865
# library is relocated.
19866
hardcode_direct_absolute=$hardcode_direct_absolute
19867
19868
 
19869
# into the resulting binary.
19870
hardcode_minus_L=$hardcode_minus_L
19871
19872
 
19873
# into the resulting binary.
19874
hardcode_shlibpath_var=$hardcode_shlibpath_var
19875
19876
 
19877
# into the library and all subsequent libraries and executables linked
19878
# against it.
19879
hardcode_automatic=$hardcode_automatic
19880
19881
 
19882
# to runtime path list.
19883
inherit_rpath=$inherit_rpath
19884
19885
 
19886
link_all_deplibs=$link_all_deplibs
19887
19888
 
19889
fix_srcfile_path=$lt_fix_srcfile_path
19890
19891
 
19892
always_export_symbols=$always_export_symbols
19893
19894
 
19895
export_symbols_cmds=$lt_export_symbols_cmds
19896
19897
 
19898
exclude_expsyms=$lt_exclude_expsyms
19899
19900
 
19901
include_expsyms=$lt_include_expsyms
19902
19903
 
19904
prelink_cmds=$lt_prelink_cmds
19905
19906
 
19907
file_list_spec=$lt_file_list_spec
19908
19909
 
19910
hardcode_action=$hardcode_action
19911
19912
 
19913
19914
 
19915
19916
 
19917
  aix3*)
19918
    cat <<\_LT_EOF >> "$cfgfile"
19919
# AIX sometimes has problems with the GCC collect2 program.  For some
19920
# reason, if we set the COLLECT_NAMES environment variable, the problems
19921
# vanish in a puff of smoke.
19922
if test "X${COLLECT_NAMES+set}" != Xset; then
19923
  COLLECT_NAMES=
19924
  export COLLECT_NAMES
19925
fi
19926
_LT_EOF
19927
    ;;
19928
  esac
19929
19930
 
19931
 
19932
19933
 
19934
 
19935
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19936
  # text mode, it properly converts lines to CR/LF.  This bash problem
19937
  # is reportedly fixed, but why not run on old versions too?
19938
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19939
    || (rm -f "$cfgfile"; exit 1)
19940
19941
 
19942
  yes)
19943
    cat << \_LT_EOF >> "$cfgfile"
19944
19945
 
19946
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19947
# otherwise set result to NONDIR_REPLACEMENT.
19948
func_dirname ()
19949
{
19950
  case ${1} in
19951
    */*) func_dirname_result="${1%/*}${2}" ;;
19952
    *  ) func_dirname_result="${3}" ;;
19953
  esac
19954
}
19955
19956
 
19957
func_basename ()
19958
{
19959
  func_basename_result="${1##*/}"
19960
}
19961
19962
 
19963
# perform func_basename and func_dirname in a single function
19964
# call:
19965
#   dirname:  Compute the dirname of FILE.  If nonempty,
19966
#             add APPEND to the result, otherwise set result
19967
#             to NONDIR_REPLACEMENT.
19968
#             value returned in "$func_dirname_result"
19969
#   basename: Compute filename of FILE.
19970
#             value retuned in "$func_basename_result"
19971
# Implementation must be kept synchronized with func_dirname
19972
# and func_basename. For efficiency, we do not delegate to
19973
# those functions but instead duplicate the functionality here.
19974
func_dirname_and_basename ()
19975
{
19976
  case ${1} in
19977
    */*) func_dirname_result="${1%/*}${2}" ;;
19978
    *  ) func_dirname_result="${3}" ;;
19979
  esac
19980
  func_basename_result="${1##*/}"
19981
}
19982
19983
 
19984
# strip PREFIX and SUFFIX off of NAME.
19985
# PREFIX and SUFFIX must not contain globbing or regex special
19986
# characters, hashes, percent signs, but SUFFIX may contain a leading
19987
# dot (in which case that matches only a dot).
19988
func_stripname ()
19989
{
19990
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19991
  # positional parameters, so assign one to ordinary parameter first.
19992
  func_stripname_result=${3}
19993
  func_stripname_result=${func_stripname_result#"${1}"}
19994
  func_stripname_result=${func_stripname_result%"${2}"}
19995
}
19996
19997
 
19998
func_opt_split ()
19999
{
20000
  func_opt_split_opt=${1%%=*}
20001
  func_opt_split_arg=${1#*=}
20002
}
20003
20004
 
20005
func_lo2o ()
20006
{
20007
  case ${1} in
20008
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20009
    *)    func_lo2o_result=${1} ;;
20010
  esac
20011
}
20012
20013
 
20014
func_xform ()
20015
{
20016
  func_xform_result=${1%.*}.lo
20017
}
20018
20019
 
20020
func_arith ()
20021
{
20022
  func_arith_result=$(( $* ))
20023
}
20024
20025
 
20026
# STRING may not start with a hyphen.
20027
func_len ()
20028
{
20029
  func_len_result=${#1}
20030
}
20031
20032
 
20033
    ;;
20034
  *) # Bourne compatible functions.
20035
    cat << \_LT_EOF >> "$cfgfile"
20036
20037
 
20038
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20039
# otherwise set result to NONDIR_REPLACEMENT.
20040
func_dirname ()
20041
{
20042
  # Extract subdirectory from the argument.
20043
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20044
  if test "X$func_dirname_result" = "X${1}"; then
20045
    func_dirname_result="${3}"
20046
  else
20047
    func_dirname_result="$func_dirname_result${2}"
20048
  fi
20049
}
20050
20051
 
20052
func_basename ()
20053
{
20054
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20055
}
20056
20057
 
20058
 
20059
# strip PREFIX and SUFFIX off of NAME.
20060
# PREFIX and SUFFIX must not contain globbing or regex special
20061
# characters, hashes, percent signs, but SUFFIX may contain a leading
20062
# dot (in which case that matches only a dot).
20063
# func_strip_suffix prefix name
20064
func_stripname ()
20065
{
20066
  case ${2} in
20067
    .*) func_stripname_result=`$ECHO "X${3}" \
20068
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20069
    *)  func_stripname_result=`$ECHO "X${3}" \
20070
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20071
  esac
20072
}
20073
20074
 
20075
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20076
my_sed_long_arg='1s/^-[^=]*=//'
20077
20078
 
20079
func_opt_split ()
20080
{
20081
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20082
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20083
}
20084
20085
 
20086
func_lo2o ()
20087
{
20088
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20089
}
20090
20091
 
20092
func_xform ()
20093
{
20094
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20095
}
20096
20097
 
20098
func_arith ()
20099
{
20100
  func_arith_result=`expr "$@"`
20101
}
20102
20103
 
20104
# STRING may not start with a hyphen.
20105
func_len ()
20106
{
20107
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20108
}
20109
20110
 
20111
esac
20112
20113
 
20114
  yes)
20115
    cat << \_LT_EOF >> "$cfgfile"
20116
20117
 
20118
# Append VALUE to the end of shell variable VAR.
20119
func_append ()
20120
{
20121
  eval "$1+=\$2"
20122
}
20123
_LT_EOF
20124
    ;;
20125
  *)
20126
    cat << \_LT_EOF >> "$cfgfile"
20127
20128
 
20129
# Append VALUE to the end of shell variable VAR.
20130
func_append ()
20131
{
20132
  eval "$1=\$$1\$2"
20133
}
20134
20135
 
20136
    ;;
20137
  esac
20138
20139
 
20140
 
20141
    || (rm -f "$cfgfile"; exit 1)
20142
20143
 
20144
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20145
  chmod +x "$ofile"
20146
20147
 
20148
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20149
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20150
  # are listed without --file.  Let's play safe and only enable the eval
20151
  # if we detect the quoting.
20152
  case $CONFIG_FILES in
20153
  *\'*) eval set x "$CONFIG_FILES" ;;
20154
  *)   set x $CONFIG_FILES ;;
20155
  esac
20156
  shift
20157
  for mf
20158
  do
20159
    # Strip MF so we end up with the name of the file.
20160
    mf=`echo "$mf" | sed -e 's/:.*$//'`
20161
    # Check whether this is an Automake generated Makefile or not.
20162
    # We used to match only the files named `Makefile.in', but
20163
    # some people rename them; so instead we look at the file content.
20164
    # Grep'ing the first line is not enough: some people post-process
20165
    # each Makefile.in and add a new line on top of each file to say so.
20166
    # Grep'ing the whole file is not good either: AIX grep has a line
20167
    # limit of 2048, but all sed's we know have understand at least 4000.
20168
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20169
      dirpart=`$as_dirname -- "$mf" ||
20170
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20171 19 jeremybenn
         X"$mf" : 'X\(//\)[^/]' \| \
20172
         X"$mf" : 'X\(//\)$' \| \
20173
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20174
$as_echo X"$mf" |
20175 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20176 19 jeremybenn
            s//\1/
20177
            q
20178
          }
20179
          /^X\(\/\/\)[^/].*/{
20180
            s//\1/
20181
            q
20182
          }
20183
          /^X\(\/\/\)$/{
20184
            s//\1/
20185
            q
20186
          }
20187
          /^X\(\/\).*/{
20188
            s//\1/
20189
            q
20190
          }
20191
          s/.*/./; q'`
20192
    else
20193 82 jeremybenn
      continue
20194
    fi
20195
    # Extract the definition of DEPDIR, am__include, and am__quote
20196
    # from the Makefile without running `make'.
20197
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20198
    test -z "$DEPDIR" && continue
20199
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20200
    test -z "am__include" && continue
20201
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20202
    # When using ansi2knr, U may be empty or an underscore; expand it
20203
    U=`sed -n 's/^U = //p' < "$mf"`
20204
    # Find all dependency output files, they are included files with
20205
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20206
    # simplest approach to changing $(DEPDIR) to its actual value in the
20207
    # expansion.
20208
    for file in `sed -n "
20209
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20210
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20211
      # Make sure the directory exists.
20212
      test -f "$dirpart/$file" && continue
20213
      fdir=`$as_dirname -- "$file" ||
20214
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20215 19 jeremybenn
         X"$file" : 'X\(//\)[^/]' \| \
20216
         X"$file" : 'X\(//\)$' \| \
20217
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20218
$as_echo X"$file" |
20219 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20220 19 jeremybenn
            s//\1/
20221
            q
20222
          }
20223
          /^X\(\/\/\)[^/].*/{
20224
            s//\1/
20225
            q
20226
          }
20227
          /^X\(\/\/\)$/{
20228
            s//\1/
20229
            q
20230
          }
20231
          /^X\(\/\).*/{
20232
            s//\1/
20233
            q
20234
          }
20235
          s/.*/./; q'`
20236
      { as_dir=$dirpart/$fdir
20237 82 jeremybenn
  case $as_dir in #(
20238 19 jeremybenn
  -*) as_dir=./$as_dir;;
20239
  esac
20240
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20241
    as_dirs=
20242
    while :; do
20243
      case $as_dir in #(
20244
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20245 82 jeremybenn
      *) as_qdir=$as_dir;;
20246 19 jeremybenn
      esac
20247
      as_dirs="'$as_qdir' $as_dirs"
20248
      as_dir=`$as_dirname -- "$as_dir" ||
20249
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20250
         X"$as_dir" : 'X\(//\)[^/]' \| \
20251
         X"$as_dir" : 'X\(//\)$' \| \
20252
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20253
$as_echo X"$as_dir" |
20254 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20255 19 jeremybenn
            s//\1/
20256
            q
20257
          }
20258
          /^X\(\/\/\)[^/].*/{
20259
            s//\1/
20260
            q
20261
          }
20262
          /^X\(\/\/\)$/{
20263
            s//\1/
20264
            q
20265
          }
20266
          /^X\(\/\).*/{
20267
            s//\1/
20268
            q
20269
          }
20270
          s/.*/./; q'`
20271
      test -d "$as_dir" && break
20272
    done
20273
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20274
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20275 82 jeremybenn
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20276
   { (exit 1); exit 1; }; }; }
20277 19 jeremybenn
      # echo "creating $dirpart/$file"
20278 82 jeremybenn
      echo '# dummy' > "$dirpart/$file"
20279
    done
20280
  done
20281 19 jeremybenn
}
20282 82 jeremybenn
 ;;
20283 19 jeremybenn
20284
 
20285
done # for ac_tag
20286
20287
 
20288
 
20289
_ACEOF
20290
chmod +x $CONFIG_STATUS
20291
ac_clean_files=$ac_clean_files_save
20292
20293
 
20294 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20295
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20296
   { (exit 1); exit 1; }; }
20297
20298 19 jeremybenn
 
20299 82 jeremybenn
 
20300 19 jeremybenn
# config.status does its own redirection, appending to config.log.
20301
# Unfortunately, on DOS this fails, as config.log is still kept open
20302
# by configure, so config.status won't be able to write to it; its
20303
# output is simply discarded.  So we exec the FD to /dev/null,
20304
# effectively closing config.log, so it can be properly (re)opened and
20305
# appended to by config.status.  When coming back to configure, we
20306
# need to make the FD available again.
20307
if test "$no_create" != yes; then
20308
  ac_cs_success=:
20309
  ac_config_status_args=
20310
  test "$silent" = yes &&
20311
    ac_config_status_args="$ac_config_status_args --quiet"
20312
  exec 5>/dev/null
20313
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20314
  exec 5>>config.log
20315
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20316
  # would make configure fail if this is the last instruction.
20317
  $ac_cs_success || { (exit 1); exit 1; }
20318
fi
20319
20320
 
20321 82 jeremybenn
# CONFIG_SUBDIRS section.
20322
#
20323
if test "$no_recursion" != yes; then
20324
20325
 
20326
  # so they do not pile up.
20327
  ac_sub_configure_args=
20328
  ac_prev=
20329
  eval "set x $ac_configure_args"
20330
  shift
20331
  for ac_arg
20332
  do
20333
    if test -n "$ac_prev"; then
20334
      ac_prev=
20335
      continue
20336
    fi
20337
    case $ac_arg in
20338
    -cache-file | --cache-file | --cache-fil | --cache-fi \
20339
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20340
      ac_prev=cache_file ;;
20341
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20342
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20343
    | --c=*)
20344
      ;;
20345
    --config-cache | -C)
20346
      ;;
20347
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20348
      ac_prev=srcdir ;;
20349
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20350
      ;;
20351
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20352
      ac_prev=prefix ;;
20353
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20354
      ;;
20355
    --disable-option-checking)
20356
      ;;
20357
    *)
20358
      case $ac_arg in
20359
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20360
      esac
20361
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20362
    esac
20363
  done
20364
20365
 
20366
  # in subdir configurations.
20367
  ac_arg="--prefix=$prefix"
20368
  case $ac_arg in
20369
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20370
  esac
20371
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20372
20373
 
20374
  if test "$silent" = yes; then
20375
    ac_sub_configure_args="--silent $ac_sub_configure_args"
20376
  fi
20377
20378
 
20379
  # different subdirs can have different --enable and --with options.
20380
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
20381
20382
 
20383
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20384
20385
 
20386
    # parts of a large source tree are present.
20387
    test -d "$srcdir/$ac_dir" || continue
20388
20389
 
20390
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
20391
    $as_echo "$ac_msg" >&6
20392
    { as_dir="$ac_dir"
20393
  case $as_dir in #(
20394
  -*) as_dir=./$as_dir;;
20395
  esac
20396
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20397
    as_dirs=
20398
    while :; do
20399
      case $as_dir in #(
20400
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20401
      *) as_qdir=$as_dir;;
20402
      esac
20403
      as_dirs="'$as_qdir' $as_dirs"
20404
      as_dir=`$as_dirname -- "$as_dir" ||
20405
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20406
         X"$as_dir" : 'X\(//\)[^/]' \| \
20407
         X"$as_dir" : 'X\(//\)$' \| \
20408
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20409
$as_echo X"$as_dir" |
20410
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20411
            s//\1/
20412
            q
20413
          }
20414
          /^X\(\/\/\)[^/].*/{
20415
            s//\1/
20416
            q
20417
          }
20418
          /^X\(\/\/\)$/{
20419
            s//\1/
20420
            q
20421
          }
20422
          /^X\(\/\).*/{
20423
            s//\1/
20424
            q
20425
          }
20426
          s/.*/./; q'`
20427
      test -d "$as_dir" && break
20428
    done
20429
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20430
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20431
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20432
   { (exit 1); exit 1; }; }; }
20433
    ac_builddir=.
20434
20435
 
20436
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20437
*)
20438
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20439
  # A ".." for each directory in $ac_dir_suffix.
20440
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20441
  case $ac_top_builddir_sub in
20442
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20443
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20444
  esac ;;
20445
esac
20446
ac_abs_top_builddir=$ac_pwd
20447
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20448
# for backward compatibility:
20449
ac_top_builddir=$ac_top_build_prefix
20450
20451
 
20452
  .)  # We are building in place.
20453
    ac_srcdir=.
20454
    ac_top_srcdir=$ac_top_builddir_sub
20455
    ac_abs_top_srcdir=$ac_pwd ;;
20456
  [\\/]* | ?:[\\/]* )  # Absolute name.
20457
    ac_srcdir=$srcdir$ac_dir_suffix;
20458
    ac_top_srcdir=$srcdir
20459
    ac_abs_top_srcdir=$srcdir ;;
20460
  *) # Relative name.
20461
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20462
    ac_top_srcdir=$ac_top_build_prefix$srcdir
20463
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20464
esac
20465
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20466
20467
 
20468
 
20469
20470
 
20471
    if test -f "$ac_srcdir/configure.gnu"; then
20472
      ac_sub_configure=$ac_srcdir/configure.gnu
20473
    elif test -f "$ac_srcdir/configure"; then
20474
      ac_sub_configure=$ac_srcdir/configure
20475
    elif test -f "$ac_srcdir/configure.in"; then
20476
      # This should be Cygnus configure.
20477
      ac_sub_configure=$ac_aux_dir/configure
20478
    else
20479
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20480
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20481
      ac_sub_configure=
20482
    fi
20483
20484
 
20485
    if test -n "$ac_sub_configure"; then
20486
      # Make the cache file name correct relative to the subdirectory.
20487
      case $cache_file in
20488
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20489
      *) # Relative name.
20490
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20491
      esac
20492
20493
 
20494
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20495
      # The eval makes quoting arguments work.
20496
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20497
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20498
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20499
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20500
   { (exit 1); exit 1; }; }
20501
    fi
20502
20503
 
20504
  done
20505
fi
20506
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20507
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20508
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20509
fi
20510
20511
 

powered by: WebSVN 2.1.0

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