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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [testsuite/] [test-code-or1k/] [configure] - Blame information for rev 90

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

Line No. Rev Author Line
1 90 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63 for or1ksim-testsuite 0.4.0rc1.
4
#
5
# Report bugs to .
6
#
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization.  ##
13
## --------------------- ##
14
 
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
  emulate sh
19
  NULLCMD=:
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in
26
  *posix*) set -o posix ;;
27
esac
28
 
29
fi
30
 
31
 
32
 
33
 
34
# PATH needs CR
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
41
 
42
as_nl='
43
'
44
export as_nl
45
# Printing a long string crashes Solaris 7 /usr/bin/printf.
46
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50
  as_echo='printf %s\n'
51
  as_echo_n='printf %s'
52
else
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
    as_echo_n='/usr/ucb/echo -n'
56
  else
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
    as_echo_n_body='eval
59
      arg=$1;
60
      case $arg in
61
      *"$as_nl"*)
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
      esac;
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
    '
67
    export as_echo_n_body
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
69
  fi
70
  export as_echo_body
71
  as_echo='sh -c $as_echo_body as_echo'
72
fi
73
 
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
76
  PATH_SEPARATOR=:
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79
      PATH_SEPARATOR=';'
80
  }
81
fi
82
 
83
# Support unset when possible.
84
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85
  as_unset=unset
86
else
87
  as_unset=false
88
fi
89
 
90
 
91
# IFS
92
# We need space, tab and new line, in precisely that order.  Quoting is
93
# there to prevent editors from complaining about space-tab.
94
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95
# splitting by setting IFS to empty value.)
96
IFS=" ""        $as_nl"
97
 
98
# Find who we are.  Look in the path if we contain no directory separator.
99
case $0 in
100
  *[\\/]* ) as_myself=$0 ;;
101
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102
for as_dir in $PATH
103
do
104
  IFS=$as_save_IFS
105
  test -z "$as_dir" && as_dir=.
106
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107
done
108
IFS=$as_save_IFS
109
 
110
     ;;
111
esac
112
# We did not find ourselves, most probably we were run as `sh COMMAND'
113
# in which case we are not to be found in the path.
114
if test "x$as_myself" = x; then
115
  as_myself=$0
116
fi
117
if test ! -f "$as_myself"; then
118
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119
  { (exit 1); exit 1; }
120
fi
121
 
122
# Work around bugs in pre-3.0 UWIN ksh.
123
for as_var in ENV MAIL MAILPATH
124
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125
done
126
PS1='$ '
127
PS2='> '
128
PS4='+ '
129
 
130
# NLS nuisances.
131
LC_ALL=C
132
export LC_ALL
133
LANGUAGE=C
134
export LANGUAGE
135
 
136
# Required to use basename.
137
if expr a : '\(a\)' >/dev/null 2>&1 &&
138
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139
  as_expr=expr
140
else
141
  as_expr=false
142
fi
143
 
144
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145
  as_basename=basename
146
else
147
  as_basename=false
148
fi
149
 
150
 
151
# Name of the executable.
152
as_me=`$as_basename -- "$0" ||
153
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154
         X"$0" : 'X\(//\)$' \| \
155
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156
$as_echo X/"$0" |
157
    sed '/^.*\/\([^/][^/]*\)\/*$/{
158
            s//\1/
159
            q
160
          }
161
          /^X\/\(\/\/\)$/{
162
            s//\1/
163
            q
164
          }
165
          /^X\/\(\/\).*/{
166
            s//\1/
167
            q
168
          }
169
          s/.*/./; q'`
170
 
171
# CDPATH.
172
$as_unset CDPATH
173
 
174
 
175
if test "x$CONFIG_SHELL" = x; then
176
  if (eval ":") 2>/dev/null; then
177
  as_have_required=yes
178
else
179
  as_have_required=no
180
fi
181
 
182
  if test $as_have_required = yes &&     (eval ":
183
(as_func_return () {
184
  (exit \$1)
185
}
186
as_func_success () {
187
  as_func_return 0
188
}
189
as_func_failure () {
190
  as_func_return 1
191
}
192
as_func_ret_success () {
193
  return 0
194
}
195
as_func_ret_failure () {
196
  return 1
197
}
198
 
199
exitcode=0
200
if as_func_success; then
201
  :
202
else
203
  exitcode=1
204
  echo as_func_success failed.
205
fi
206
 
207
if as_func_failure; then
208
  exitcode=1
209
  echo as_func_failure succeeded.
210
fi
211
 
212
if as_func_ret_success; then
213
  :
214
else
215
  exitcode=1
216
  echo as_func_ret_success failed.
217
fi
218
 
219
if as_func_ret_failure; then
220
  exitcode=1
221
  echo as_func_ret_failure succeeded.
222
fi
223
 
224
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225
  :
226
else
227
  exitcode=1
228
  echo positional parameters were not saved.
229
fi
230
 
231
test \$exitcode = 0) || { (exit 1); exit 1; }
232
 
233
(
234
  as_lineno_1=\$LINENO
235
  as_lineno_2=\$LINENO
236
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238
") 2> /dev/null; then
239
  :
240
else
241
  as_candidate_shells=
242
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244
do
245
  IFS=$as_save_IFS
246
  test -z "$as_dir" && as_dir=.
247
  case $as_dir in
248
         /*)
249
           for as_base in sh bash ksh sh5; do
250
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251
           done;;
252
       esac
253
done
254
IFS=$as_save_IFS
255
 
256
 
257
      for as_shell in $as_candidate_shells $SHELL; do
258
         # Try only shells that exist, to save several forks.
259
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260
                { ("$as_shell") 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
  emulate sh
263
  NULLCMD=:
264
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265
  # is contrary to our usage.  Disable this feature.
266
  alias -g '${1+"$@"}'='"$@"'
267
  setopt NO_GLOB_SUBST
268
else
269
  case `(set -o) 2>/dev/null` in
270
  *posix*) set -o posix ;;
271
esac
272
 
273
fi
274
 
275
 
276
:
277
_ASEOF
278
}; then
279
  CONFIG_SHELL=$as_shell
280
               as_have_required=yes
281
               if { "$as_shell" 2> /dev/null <<\_ASEOF
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
  emulate sh
284
  NULLCMD=:
285
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286
  # is contrary to our usage.  Disable this feature.
287
  alias -g '${1+"$@"}'='"$@"'
288
  setopt NO_GLOB_SUBST
289
else
290
  case `(set -o) 2>/dev/null` in
291
  *posix*) set -o posix ;;
292
esac
293
 
294
fi
295
 
296
 
297
:
298
(as_func_return () {
299
  (exit $1)
300
}
301
as_func_success () {
302
  as_func_return 0
303
}
304
as_func_failure () {
305
  as_func_return 1
306
}
307
as_func_ret_success () {
308
  return 0
309
}
310
as_func_ret_failure () {
311
  return 1
312
}
313
 
314
exitcode=0
315
if as_func_success; then
316
  :
317
else
318
  exitcode=1
319
  echo as_func_success failed.
320
fi
321
 
322
if as_func_failure; then
323
  exitcode=1
324
  echo as_func_failure succeeded.
325
fi
326
 
327
if as_func_ret_success; then
328
  :
329
else
330
  exitcode=1
331
  echo as_func_ret_success failed.
332
fi
333
 
334
if as_func_ret_failure; then
335
  exitcode=1
336
  echo as_func_ret_failure succeeded.
337
fi
338
 
339
if ( set x; as_func_ret_success y && test x = "$1" ); then
340
  :
341
else
342
  exitcode=1
343
  echo positional parameters were not saved.
344
fi
345
 
346
test $exitcode = 0) || { (exit 1); exit 1; }
347
 
348
(
349
  as_lineno_1=$LINENO
350
  as_lineno_2=$LINENO
351
  test "x$as_lineno_1" != "x$as_lineno_2" &&
352
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
 
354
_ASEOF
355
}; then
356
  break
357
fi
358
 
359
fi
360
 
361
      done
362
 
363
      if test "x$CONFIG_SHELL" != x; then
364
  for as_var in BASH_ENV ENV
365
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366
        done
367
        export CONFIG_SHELL
368
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369
fi
370
 
371
 
372
    if test $as_have_required = no; then
373
  echo This script requires a shell more modern than all the
374
      echo shells that I found on your system.  Please install a
375
      echo modern shell, or manually run the script under such a
376
      echo shell if you do have one.
377
      { (exit 1); exit 1; }
378
fi
379
 
380
 
381
fi
382
 
383
fi
384
 
385
 
386
 
387
(eval "as_func_return () {
388
  (exit \$1)
389
}
390
as_func_success () {
391
  as_func_return 0
392
}
393
as_func_failure () {
394
  as_func_return 1
395
}
396
as_func_ret_success () {
397
  return 0
398
}
399
as_func_ret_failure () {
400
  return 1
401
}
402
 
403
exitcode=0
404
if as_func_success; then
405
  :
406
else
407
  exitcode=1
408
  echo as_func_success failed.
409
fi
410
 
411
if as_func_failure; then
412
  exitcode=1
413
  echo as_func_failure succeeded.
414
fi
415
 
416
if as_func_ret_success; then
417
  :
418
else
419
  exitcode=1
420
  echo as_func_ret_success failed.
421
fi
422
 
423
if as_func_ret_failure; then
424
  exitcode=1
425
  echo as_func_ret_failure succeeded.
426
fi
427
 
428
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429
  :
430
else
431
  exitcode=1
432
  echo positional parameters were not saved.
433
fi
434
 
435
test \$exitcode = 0") || {
436
  echo No shell found that supports shell functions.
437
  echo Please tell bug-autoconf@gnu.org about your system,
438
  echo including any error possibly output before this message.
439
  echo This can help us improve future autoconf versions.
440
  echo Configuration will now proceed without shell functions.
441
}
442
 
443
 
444
 
445
  as_lineno_1=$LINENO
446
  as_lineno_2=$LINENO
447
  test "x$as_lineno_1" != "x$as_lineno_2" &&
448
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
 
450
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451
  # uniformly replaced by the line number.  The first 'sed' inserts a
452
  # line-number line after each line using $LINENO; the second 'sed'
453
  # does the real work.  The second script uses 'N' to pair each
454
  # line-number line with the line containing $LINENO, and appends
455
  # trailing '-' during substitution so that $LINENO is not a special
456
  # case at line end.
457
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459
  # E. McMahon (1931-1989) for sed's syntax.  :-)
460
  sed -n '
461
    p
462
    /[$]LINENO/=
463
  ' <$as_myself |
464
    sed '
465
      s/[$]LINENO.*/&-/
466
      t lineno
467
      b
468
      :lineno
469
      N
470
      :loop
471
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472
      t loop
473
      s/-\n.*//
474
    ' >$as_me.lineno &&
475
  chmod +x "$as_me.lineno" ||
476
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477
   { (exit 1); exit 1; }; }
478
 
479
  # Don't try to exec as it changes $[0], causing all sort of problems
480
  # (the dirname of $[0] is not the place where we might find the
481
  # original and so on.  Autoconf is especially sensitive to this).
482
  . "./$as_me.lineno"
483
  # Exit status is that of the last command.
484
  exit
485
}
486
 
487
 
488
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489
  as_dirname=dirname
490
else
491
  as_dirname=false
492
fi
493
 
494
ECHO_C= ECHO_N= ECHO_T=
495
case `echo -n x` in
496
-n*)
497
  case `echo 'x\c'` in
498
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499
  *)   ECHO_C='\c';;
500
  esac;;
501
*)
502
  ECHO_N='-n';;
503
esac
504
if expr a : '\(a\)' >/dev/null 2>&1 &&
505
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506
  as_expr=expr
507
else
508
  as_expr=false
509
fi
510
 
511
rm -f conf$$ conf$$.exe conf$$.file
512
if test -d conf$$.dir; then
513
  rm -f conf$$.dir/conf$$.file
514
else
515
  rm -f conf$$.dir
516
  mkdir conf$$.dir 2>/dev/null
517
fi
518
if (echo >conf$$.file) 2>/dev/null; then
519
  if ln -s conf$$.file conf$$ 2>/dev/null; then
520
    as_ln_s='ln -s'
521
    # ... but there are two gotchas:
522
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524
    # In both cases, we have to default to `cp -p'.
525
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526
      as_ln_s='cp -p'
527
  elif ln conf$$.file conf$$ 2>/dev/null; then
528
    as_ln_s=ln
529
  else
530
    as_ln_s='cp -p'
531
  fi
532
else
533
  as_ln_s='cp -p'
534
fi
535
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536
rmdir conf$$.dir 2>/dev/null
537
 
538
if mkdir -p . 2>/dev/null; then
539
  as_mkdir_p=:
540
else
541
  test -d ./-p && rmdir ./-p
542
  as_mkdir_p=false
543
fi
544
 
545
if test -x / >/dev/null 2>&1; then
546
  as_test_x='test -x'
547
else
548
  if ls -dL / >/dev/null 2>&1; then
549
    as_ls_L_option=L
550
  else
551
    as_ls_L_option=
552
  fi
553
  as_test_x='
554
    eval sh -c '\''
555
      if test -d "$1"; then
556
        test -d "$1/.";
557
      else
558
        case $1 in
559
        -*)set "./$1";;
560
        esac;
561
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562
        ???[sx]*):;;*)false;;esac;fi
563
    '\'' sh
564
  '
565
fi
566
as_executable_p=$as_test_x
567
 
568
# Sed expression to map a string onto a valid CPP name.
569
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
 
571
# Sed expression to map a string onto a valid variable name.
572
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
 
574
 
575
 
576
 
577
# Check that we are running under the correct shell.
578
SHELL=${CONFIG_SHELL-/bin/sh}
579
 
580
case X$lt_ECHO in
581
X*--fallback-echo)
582
  # Remove one level of quotation (which was required for Make).
583
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584
  ;;
585
esac
586
 
587
ECHO=${lt_ECHO-echo}
588
if test "X$1" = X--no-reexec; then
589
  # Discard the --no-reexec flag, and continue.
590
  shift
591
elif test "X$1" = X--fallback-echo; then
592
  # Avoid inline document here, it may be left over
593
  :
594
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595
  # Yippee, $ECHO works!
596
  :
597
else
598
  # Restart under the correct shell.
599
  exec $SHELL "$0" --no-reexec ${1+"$@"}
600
fi
601
 
602
if test "X$1" = X--fallback-echo; then
603
  # used as fallback echo
604
  shift
605
  cat <<_LT_EOF
606
$*
607
_LT_EOF
608
  exit 0
609
fi
610
 
611
# The HP-UX ksh and POSIX shell print the target directory to stdout
612
# if CDPATH is set.
613
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
 
615
if test -z "$lt_ECHO"; then
616
  if test "X${echo_test_string+set}" != Xset; then
617
    # find a string as large as possible, as long as the shell can cope with it
618
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622
      then
623
        break
624
      fi
625
    done
626
  fi
627
 
628
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630
     test "X$echo_testing_string" = "X$echo_test_string"; then
631
    :
632
  else
633
    # The Solaris, AIX, and Digital Unix default echo programs unquote
634
    # backslashes.  This makes it impossible to quote backslashes using
635
    #   echo "$something" | sed 's/\\/\\\\/g'
636
    #
637
    # So, first we look for a working echo in the user's PATH.
638
 
639
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640
    for dir in $PATH /usr/ucb; do
641
      IFS="$lt_save_ifs"
642
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645
         test "X$echo_testing_string" = "X$echo_test_string"; then
646
        ECHO="$dir/echo"
647
        break
648
      fi
649
    done
650
    IFS="$lt_save_ifs"
651
 
652
    if test "X$ECHO" = Xecho; then
653
      # We didn't find a better echo, so look for alternatives.
654
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656
         test "X$echo_testing_string" = "X$echo_test_string"; then
657
        # This shell has a builtin print -r that does the trick.
658
        ECHO='print -r'
659
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660
           test "X$CONFIG_SHELL" != X/bin/ksh; then
661
        # If we have ksh, try running configure again with it.
662
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663
        export ORIGINAL_CONFIG_SHELL
664
        CONFIG_SHELL=/bin/ksh
665
        export CONFIG_SHELL
666
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667
      else
668
        # Try using printf.
669
        ECHO='printf %s\n'
670
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672
           test "X$echo_testing_string" = "X$echo_test_string"; then
673
          # Cool, printf works
674
          :
675
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676
             test "X$echo_testing_string" = 'X\t' &&
677
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678
             test "X$echo_testing_string" = "X$echo_test_string"; then
679
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680
          export CONFIG_SHELL
681
          SHELL="$CONFIG_SHELL"
682
          export SHELL
683
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
684
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685
             test "X$echo_testing_string" = 'X\t' &&
686
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687
             test "X$echo_testing_string" = "X$echo_test_string"; then
688
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
689
        else
690
          # maybe with a smaller string...
691
          prev=:
692
 
693
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695
            then
696
              break
697
            fi
698
            prev="$cmd"
699
          done
700
 
701
          if test "$prev" != 'sed 50q "$0"'; then
702
            echo_test_string=`eval $prev`
703
            export echo_test_string
704
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705
          else
706
            # Oops.  We lost completely, so just stick with echo.
707
            ECHO=echo
708
          fi
709
        fi
710
      fi
711
    fi
712
  fi
713
fi
714
 
715
# Copy echo and quote the copy suitably for passing to libtool from
716
# the Makefile, instead of quoting the original, which is used later.
717
lt_ECHO=$ECHO
718
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720
fi
721
 
722
 
723
 
724
 
725
exec 7<&0 &1
726
 
727
# Name of the host.
728
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729
# so uname gets run too.
730
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
 
732
#
733
# Initializations.
734
#
735
ac_default_prefix=/usr/local
736
ac_clean_files=
737
ac_config_libobj_dir=.
738
LIBOBJS=
739
cross_compiling=no
740
subdirs=
741
MFLAGS=
742
MAKEFLAGS=
743
SHELL=${CONFIG_SHELL-/bin/sh}
744
 
745
# Identity of this package.
746
PACKAGE_NAME='or1ksim-testsuite'
747
PACKAGE_TARNAME='or1ksim-testsuite'
748
PACKAGE_VERSION='0.4.0rc1'
749
PACKAGE_STRING='or1ksim-testsuite 0.4.0rc1'
750
PACKAGE_BUGREPORT='openrisc@opencores.org'
751
 
752
# Factoring default headers for most tests.
753
ac_includes_default="\
754
#include 
755
#ifdef HAVE_SYS_TYPES_H
756
# include 
757
#endif
758
#ifdef HAVE_SYS_STAT_H
759
# include 
760
#endif
761
#ifdef STDC_HEADERS
762
# include 
763
# include 
764
#else
765
# ifdef HAVE_STDLIB_H
766
#  include 
767
# endif
768
#endif
769
#ifdef HAVE_STRING_H
770
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771
#  include 
772
# endif
773
# include 
774
#endif
775
#ifdef HAVE_STRINGS_H
776
# include 
777
#endif
778
#ifdef HAVE_INTTYPES_H
779
# include 
780
#endif
781
#ifdef HAVE_STDINT_H
782
# include 
783
#endif
784
#ifdef HAVE_UNISTD_H
785
# include 
786
#endif"
787
 
788
ac_subst_vars='am__EXEEXT_FALSE
789
am__EXEEXT_TRUE
790
LTLIBOBJS
791
LIBOBJS
792
am__fastdepCCAS_FALSE
793
am__fastdepCCAS_TRUE
794
CCASDEPMODE
795
CCASFLAGS
796
CCAS
797
SIM
798
BUILD_ALL_TESTS_FALSE
799
BUILD_ALL_TESTS_TRUE
800
am__fastdepCC_FALSE
801
am__fastdepCC_TRUE
802
CCDEPMODE
803
AMDEPBACKSLASH
804
AMDEP_FALSE
805
AMDEP_TRUE
806
am__quote
807
am__include
808
DEPDIR
809
am__untar
810
am__tar
811
AMTAR
812
am__leading_dot
813
SET_MAKE
814
AWK
815
mkdir_p
816
MKDIR_P
817
INSTALL_STRIP_PROGRAM
818
install_sh
819
MAKEINFO
820
AUTOHEADER
821
AUTOMAKE
822
AUTOCONF
823
ACLOCAL
824
VERSION
825
PACKAGE
826
CYGPATH_W
827
am__isrc
828
INSTALL_DATA
829
INSTALL_SCRIPT
830
INSTALL_PROGRAM
831
CPP
832
OTOOL64
833
OTOOL
834
LIPO
835
NMEDIT
836
DSYMUTIL
837
lt_ECHO
838
RANLIB
839
STRIP
840
AR
841
OBJDUMP
842
LN_S
843
NM
844
ac_ct_DUMPBIN
845
DUMPBIN
846
LD
847
FGREP
848
EGREP
849
GREP
850
SED
851
OBJEXT
852
EXEEXT
853
ac_ct_CC
854
CPPFLAGS
855
LDFLAGS
856
CFLAGS
857
CC
858
host_os
859
host_vendor
860
host_cpu
861
host
862
build_os
863
build_vendor
864
build_cpu
865
build
866
LIBTOOL
867
target_alias
868
host_alias
869
build_alias
870
LIBS
871
ECHO_T
872
ECHO_N
873
ECHO_C
874
DEFS
875
mandir
876
localedir
877
libdir
878
psdir
879
pdfdir
880
dvidir
881
htmldir
882
infodir
883
docdir
884
oldincludedir
885
includedir
886
localstatedir
887
sharedstatedir
888
sysconfdir
889
datadir
890
datarootdir
891
libexecdir
892
sbindir
893
bindir
894
program_transform_name
895
prefix
896
exec_prefix
897
PACKAGE_BUGREPORT
898
PACKAGE_STRING
899
PACKAGE_VERSION
900
PACKAGE_TARNAME
901
PACKAGE_NAME
902
PATH_SEPARATOR
903
SHELL'
904
ac_subst_files=''
905
ac_user_opts='
906
enable_option_checking
907
enable_shared
908
enable_static
909
with_pic
910
enable_fast_install
911
with_gnu_ld
912
enable_libtool_lock
913
enable_dependency_tracking
914
enable_all_tests
915
enable_opt
916
'
917
      ac_precious_vars='build_alias
918
host_alias
919
target_alias
920
CC
921
CFLAGS
922
LDFLAGS
923
LIBS
924
CPPFLAGS
925
CPP
926
CCAS
927
CCASFLAGS'
928
 
929
 
930
# Initialize some variables set by options.
931
ac_init_help=
932
ac_init_version=false
933
ac_unrecognized_opts=
934
ac_unrecognized_sep=
935
# The variables have the same names as the options, with
936
# dashes changed to underlines.
937
cache_file=/dev/null
938
exec_prefix=NONE
939
no_create=
940
no_recursion=
941
prefix=NONE
942
program_prefix=NONE
943
program_suffix=NONE
944
program_transform_name=s,x,x,
945
silent=
946
site=
947
srcdir=
948
verbose=
949
x_includes=NONE
950
x_libraries=NONE
951
 
952
# Installation directory options.
953
# These are left unexpanded so users can "make install exec_prefix=/foo"
954
# and all the variables that are supposed to be based on exec_prefix
955
# by default will actually change.
956
# Use braces instead of parens because sh, perl, etc. also accept them.
957
# (The list follows the same order as the GNU Coding Standards.)
958
bindir='${exec_prefix}/bin'
959
sbindir='${exec_prefix}/sbin'
960
libexecdir='${exec_prefix}/libexec'
961
datarootdir='${prefix}/share'
962
datadir='${datarootdir}'
963
sysconfdir='${prefix}/etc'
964
sharedstatedir='${prefix}/com'
965
localstatedir='${prefix}/var'
966
includedir='${prefix}/include'
967
oldincludedir='/usr/include'
968
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
969
infodir='${datarootdir}/info'
970
htmldir='${docdir}'
971
dvidir='${docdir}'
972
pdfdir='${docdir}'
973
psdir='${docdir}'
974
libdir='${exec_prefix}/lib'
975
localedir='${datarootdir}/locale'
976
mandir='${datarootdir}/man'
977
 
978
ac_prev=
979
ac_dashdash=
980
for ac_option
981
do
982
  # If the previous option needs an argument, assign it.
983
  if test -n "$ac_prev"; then
984
    eval $ac_prev=\$ac_option
985
    ac_prev=
986
    continue
987
  fi
988
 
989
  case $ac_option in
990
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991
  *)    ac_optarg=yes ;;
992
  esac
993
 
994
  # Accept the important Cygnus configure options, so we can diagnose typos.
995
 
996
  case $ac_dashdash$ac_option in
997
  --)
998
    ac_dashdash=yes ;;
999
 
1000
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1001
    ac_prev=bindir ;;
1002
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1003
    bindir=$ac_optarg ;;
1004
 
1005
  -build | --build | --buil | --bui | --bu)
1006
    ac_prev=build_alias ;;
1007
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1008
    build_alias=$ac_optarg ;;
1009
 
1010
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1011
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1012
    ac_prev=cache_file ;;
1013
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1014
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1015
    cache_file=$ac_optarg ;;
1016
 
1017
  --config-cache | -C)
1018
    cache_file=config.cache ;;
1019
 
1020
  -datadir | --datadir | --datadi | --datad)
1021
    ac_prev=datadir ;;
1022
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1023
    datadir=$ac_optarg ;;
1024
 
1025
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1026
  | --dataroo | --dataro | --datar)
1027
    ac_prev=datarootdir ;;
1028
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1029
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1030
    datarootdir=$ac_optarg ;;
1031
 
1032
  -disable-* | --disable-*)
1033
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1034
    # Reject names that are not valid shell variable names.
1035
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1037
   { (exit 1); exit 1; }; }
1038
    ac_useropt_orig=$ac_useropt
1039
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040
    case $ac_user_opts in
1041
      *"
1042
"enable_$ac_useropt"
1043
"*) ;;
1044
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1045
         ac_unrecognized_sep=', ';;
1046
    esac
1047
    eval enable_$ac_useropt=no ;;
1048
 
1049
  -docdir | --docdir | --docdi | --doc | --do)
1050
    ac_prev=docdir ;;
1051
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1052
    docdir=$ac_optarg ;;
1053
 
1054
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1055
    ac_prev=dvidir ;;
1056
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1057
    dvidir=$ac_optarg ;;
1058
 
1059
  -enable-* | --enable-*)
1060
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1061
    # Reject names that are not valid shell variable names.
1062
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1064
   { (exit 1); exit 1; }; }
1065
    ac_useropt_orig=$ac_useropt
1066
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067
    case $ac_user_opts in
1068
      *"
1069
"enable_$ac_useropt"
1070
"*) ;;
1071
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1072
         ac_unrecognized_sep=', ';;
1073
    esac
1074
    eval enable_$ac_useropt=\$ac_optarg ;;
1075
 
1076
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078
  | --exec | --exe | --ex)
1079
    ac_prev=exec_prefix ;;
1080
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082
  | --exec=* | --exe=* | --ex=*)
1083
    exec_prefix=$ac_optarg ;;
1084
 
1085
  -gas | --gas | --ga | --g)
1086
    # Obsolete; use --with-gas.
1087
    with_gas=yes ;;
1088
 
1089
  -help | --help | --hel | --he | -h)
1090
    ac_init_help=long ;;
1091
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092
    ac_init_help=recursive ;;
1093
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094
    ac_init_help=short ;;
1095
 
1096
  -host | --host | --hos | --ho)
1097
    ac_prev=host_alias ;;
1098
  -host=* | --host=* | --hos=* | --ho=*)
1099
    host_alias=$ac_optarg ;;
1100
 
1101
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102
    ac_prev=htmldir ;;
1103
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104
  | --ht=*)
1105
    htmldir=$ac_optarg ;;
1106
 
1107
  -includedir | --includedir | --includedi | --included | --include \
1108
  | --includ | --inclu | --incl | --inc)
1109
    ac_prev=includedir ;;
1110
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1112
    includedir=$ac_optarg ;;
1113
 
1114
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1115
    ac_prev=infodir ;;
1116
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1117
    infodir=$ac_optarg ;;
1118
 
1119
  -libdir | --libdir | --libdi | --libd)
1120
    ac_prev=libdir ;;
1121
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1122
    libdir=$ac_optarg ;;
1123
 
1124
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125
  | --libexe | --libex | --libe)
1126
    ac_prev=libexecdir ;;
1127
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128
  | --libexe=* | --libex=* | --libe=*)
1129
    libexecdir=$ac_optarg ;;
1130
 
1131
  -localedir | --localedir | --localedi | --localed | --locale)
1132
    ac_prev=localedir ;;
1133
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134
    localedir=$ac_optarg ;;
1135
 
1136
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1137
  | --localstate | --localstat | --localsta | --localst | --locals)
1138
    ac_prev=localstatedir ;;
1139
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1140
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1141
    localstatedir=$ac_optarg ;;
1142
 
1143
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144
    ac_prev=mandir ;;
1145
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1146
    mandir=$ac_optarg ;;
1147
 
1148
  -nfp | --nfp | --nf)
1149
    # Obsolete; use --without-fp.
1150
    with_fp=no ;;
1151
 
1152
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1153
  | --no-cr | --no-c | -n)
1154
    no_create=yes ;;
1155
 
1156
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1158
    no_recursion=yes ;;
1159
 
1160
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162
  | --oldin | --oldi | --old | --ol | --o)
1163
    ac_prev=oldincludedir ;;
1164
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1167
    oldincludedir=$ac_optarg ;;
1168
 
1169
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170
    ac_prev=prefix ;;
1171
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1172
    prefix=$ac_optarg ;;
1173
 
1174
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175
  | --program-pre | --program-pr | --program-p)
1176
    ac_prev=program_prefix ;;
1177
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1179
    program_prefix=$ac_optarg ;;
1180
 
1181
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182
  | --program-suf | --program-su | --program-s)
1183
    ac_prev=program_suffix ;;
1184
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1186
    program_suffix=$ac_optarg ;;
1187
 
1188
  -program-transform-name | --program-transform-name \
1189
  | --program-transform-nam | --program-transform-na \
1190
  | --program-transform-n | --program-transform- \
1191
  | --program-transform | --program-transfor \
1192
  | --program-transfo | --program-transf \
1193
  | --program-trans | --program-tran \
1194
  | --progr-tra | --program-tr | --program-t)
1195
    ac_prev=program_transform_name ;;
1196
  -program-transform-name=* | --program-transform-name=* \
1197
  | --program-transform-nam=* | --program-transform-na=* \
1198
  | --program-transform-n=* | --program-transform-=* \
1199
  | --program-transform=* | --program-transfor=* \
1200
  | --program-transfo=* | --program-transf=* \
1201
  | --program-trans=* | --program-tran=* \
1202
  | --progr-tra=* | --program-tr=* | --program-t=*)
1203
    program_transform_name=$ac_optarg ;;
1204
 
1205
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206
    ac_prev=pdfdir ;;
1207
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208
    pdfdir=$ac_optarg ;;
1209
 
1210
  -psdir | --psdir | --psdi | --psd | --ps)
1211
    ac_prev=psdir ;;
1212
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1213
    psdir=$ac_optarg ;;
1214
 
1215
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216
  | -silent | --silent | --silen | --sile | --sil)
1217
    silent=yes ;;
1218
 
1219
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220
    ac_prev=sbindir ;;
1221
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222
  | --sbi=* | --sb=*)
1223
    sbindir=$ac_optarg ;;
1224
 
1225
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227
  | --sharedst | --shareds | --shared | --share | --shar \
1228
  | --sha | --sh)
1229
    ac_prev=sharedstatedir ;;
1230
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233
  | --sha=* | --sh=*)
1234
    sharedstatedir=$ac_optarg ;;
1235
 
1236
  -site | --site | --sit)
1237
    ac_prev=site ;;
1238
  -site=* | --site=* | --sit=*)
1239
    site=$ac_optarg ;;
1240
 
1241
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242
    ac_prev=srcdir ;;
1243
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244
    srcdir=$ac_optarg ;;
1245
 
1246
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247
  | --syscon | --sysco | --sysc | --sys | --sy)
1248
    ac_prev=sysconfdir ;;
1249
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251
    sysconfdir=$ac_optarg ;;
1252
 
1253
  -target | --target | --targe | --targ | --tar | --ta | --t)
1254
    ac_prev=target_alias ;;
1255
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256
    target_alias=$ac_optarg ;;
1257
 
1258
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259
    verbose=yes ;;
1260
 
1261
  -version | --version | --versio | --versi | --vers | -V)
1262
    ac_init_version=: ;;
1263
 
1264
  -with-* | --with-*)
1265
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266
    # Reject names that are not valid shell variable names.
1267
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1269
   { (exit 1); exit 1; }; }
1270
    ac_useropt_orig=$ac_useropt
1271
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272
    case $ac_user_opts in
1273
      *"
1274
"with_$ac_useropt"
1275
"*) ;;
1276
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1277
         ac_unrecognized_sep=', ';;
1278
    esac
1279
    eval with_$ac_useropt=\$ac_optarg ;;
1280
 
1281
  -without-* | --without-*)
1282
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283
    # Reject names that are not valid shell variable names.
1284
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1286
   { (exit 1); exit 1; }; }
1287
    ac_useropt_orig=$ac_useropt
1288
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289
    case $ac_user_opts in
1290
      *"
1291
"with_$ac_useropt"
1292
"*) ;;
1293
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294
         ac_unrecognized_sep=', ';;
1295
    esac
1296
    eval with_$ac_useropt=no ;;
1297
 
1298
  --x)
1299
    # Obsolete; use --with-x.
1300
    with_x=yes ;;
1301
 
1302
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303
  | --x-incl | --x-inc | --x-in | --x-i)
1304
    ac_prev=x_includes ;;
1305
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307
    x_includes=$ac_optarg ;;
1308
 
1309
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311
    ac_prev=x_libraries ;;
1312
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314
    x_libraries=$ac_optarg ;;
1315
 
1316
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1317
Try \`$0 --help' for more information." >&2
1318
   { (exit 1); exit 1; }; }
1319
    ;;
1320
 
1321
  *=*)
1322
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1323
    # Reject names that are not valid shell variable names.
1324
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1325
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1326
   { (exit 1); exit 1; }; }
1327
    eval $ac_envvar=\$ac_optarg
1328
    export $ac_envvar ;;
1329
 
1330
  *)
1331
    # FIXME: should be removed in autoconf 3.0.
1332
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1336
    ;;
1337
 
1338
  esac
1339
done
1340
 
1341
if test -n "$ac_prev"; then
1342
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1344
   { (exit 1); exit 1; }; }
1345
fi
1346
 
1347
if test -n "$ac_unrecognized_opts"; then
1348
  case $enable_option_checking in
1349
    no) ;;
1350
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1351
   { (exit 1); exit 1; }; } ;;
1352
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1353
  esac
1354
fi
1355
 
1356
# Check all directory arguments for consistency.
1357
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358
                datadir sysconfdir sharedstatedir localstatedir includedir \
1359
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360
                libdir localedir mandir
1361
do
1362
  eval ac_val=\$$ac_var
1363
  # Remove trailing slashes.
1364
  case $ac_val in
1365
    */ )
1366
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1367
      eval $ac_var=\$ac_val;;
1368
  esac
1369
  # Be sure to have absolute directory names.
1370
  case $ac_val in
1371
    [\\/$]* | ?:[\\/]* )  continue;;
1372
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1373
  esac
1374
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1375
   { (exit 1); exit 1; }; }
1376
done
1377
 
1378
# There might be people who depend on the old broken behavior: `$host'
1379
# used to hold the argument of --host etc.
1380
# FIXME: To remove some day.
1381
build=$build_alias
1382
host=$host_alias
1383
target=$target_alias
1384
 
1385
# FIXME: To remove some day.
1386
if test "x$host_alias" != x; then
1387
  if test "x$build_alias" = x; then
1388
    cross_compiling=maybe
1389
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390
    If a cross compiler is detected then cross compile mode will be used." >&2
1391
  elif test "x$build_alias" != "x$host_alias"; then
1392
    cross_compiling=yes
1393
  fi
1394
fi
1395
 
1396
ac_tool_prefix=
1397
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398
 
1399
test "$silent" = yes && exec 6>/dev/null
1400
 
1401
 
1402
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403
ac_ls_di=`ls -di .` &&
1404
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1406
   { (exit 1); exit 1; }; }
1407
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1408
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1409
   { (exit 1); exit 1; }; }
1410
 
1411
 
1412
# Find the source files, if location was not specified.
1413
if test -z "$srcdir"; then
1414
  ac_srcdir_defaulted=yes
1415
  # Try the directory containing this script, then the parent directory.
1416
  ac_confdir=`$as_dirname -- "$as_myself" ||
1417
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1418
         X"$as_myself" : 'X\(//\)[^/]' \| \
1419
         X"$as_myself" : 'X\(//\)$' \| \
1420
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1421
$as_echo X"$as_myself" |
1422
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423
            s//\1/
1424
            q
1425
          }
1426
          /^X\(\/\/\)[^/].*/{
1427
            s//\1/
1428
            q
1429
          }
1430
          /^X\(\/\/\)$/{
1431
            s//\1/
1432
            q
1433
          }
1434
          /^X\(\/\).*/{
1435
            s//\1/
1436
            q
1437
          }
1438
          s/.*/./; q'`
1439
  srcdir=$ac_confdir
1440
  if test ! -r "$srcdir/$ac_unique_file"; then
1441
    srcdir=..
1442
  fi
1443
else
1444
  ac_srcdir_defaulted=no
1445
fi
1446
if test ! -r "$srcdir/$ac_unique_file"; then
1447
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1448
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1449
   { (exit 1); exit 1; }; }
1450
fi
1451
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452
ac_abs_confdir=`(
1453
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1454
   { (exit 1); exit 1; }; }
1455
        pwd)`
1456
# When building in place, set srcdir=.
1457
if test "$ac_abs_confdir" = "$ac_pwd"; then
1458
  srcdir=.
1459
fi
1460
# Remove unnecessary trailing slashes from srcdir.
1461
# Double slashes in file names in object file debugging info
1462
# mess up M-x gdb in Emacs.
1463
case $srcdir in
1464
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465
esac
1466
for ac_var in $ac_precious_vars; do
1467
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468
  eval ac_env_${ac_var}_value=\$${ac_var}
1469
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471
done
1472
 
1473
#
1474
# Report the --help message.
1475
#
1476
if test "$ac_init_help" = "long"; then
1477
  # Omit some internal or obsolete options to make the list less imposing.
1478
  # This message is too long to be a string in the A/UX 3.1 sh.
1479
  cat <<_ACEOF
1480
\`configure' configures or1ksim-testsuite 0.4.0rc1 to adapt to many kinds of systems.
1481
 
1482
Usage: $0 [OPTION]... [VAR=VALUE]...
1483
 
1484
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485
VAR=VALUE.  See below for descriptions of some of the useful variables.
1486
 
1487
Defaults for the options are specified in brackets.
1488
 
1489
Configuration:
1490
  -h, --help              display this help and exit
1491
      --help=short        display options specific to this package
1492
      --help=recursive    display the short help of all the included packages
1493
  -V, --version           display version information and exit
1494
  -q, --quiet, --silent   do not print \`checking...' messages
1495
      --cache-file=FILE   cache test results in FILE [disabled]
1496
  -C, --config-cache      alias for \`--cache-file=config.cache'
1497
  -n, --no-create         do not create output files
1498
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1499
 
1500
Installation directories:
1501
  --prefix=PREFIX         install architecture-independent files in PREFIX
1502
                          [$ac_default_prefix]
1503
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1504
                          [PREFIX]
1505
 
1506
By default, \`make install' will install all the files in
1507
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1508
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509
for instance \`--prefix=\$HOME'.
1510
 
1511
For better control, use the options below.
1512
 
1513
Fine tuning of the installation directories:
1514
  --bindir=DIR            user executables [EPREFIX/bin]
1515
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1516
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1517
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1518
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1519
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1520
  --libdir=DIR            object code libraries [EPREFIX/lib]
1521
  --includedir=DIR        C header files [PREFIX/include]
1522
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1523
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1524
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1525
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1526
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1527
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1528
  --docdir=DIR            documentation root
1529
                          [DATAROOTDIR/doc/or1ksim-testsuite]
1530
  --htmldir=DIR           html documentation [DOCDIR]
1531
  --dvidir=DIR            dvi documentation [DOCDIR]
1532
  --pdfdir=DIR            pdf documentation [DOCDIR]
1533
  --psdir=DIR             ps documentation [DOCDIR]
1534
_ACEOF
1535
 
1536
  cat <<\_ACEOF
1537
 
1538
Program names:
1539
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1540
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1541
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1542
 
1543
System types:
1544
  --build=BUILD     configure for building on BUILD [guessed]
1545
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1546
_ACEOF
1547
fi
1548
 
1549
if test -n "$ac_init_help"; then
1550
  case $ac_init_help in
1551
     short | recursive ) echo "Configuration of or1ksim-testsuite 0.4.0rc1:";;
1552
   esac
1553
  cat <<\_ACEOF
1554
 
1555
Optional Features:
1556
  --disable-option-checking  ignore unrecognized --enable/--with options
1557
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1558
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1559
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1560
  --enable-static[=PKGS]  build static libraries [default=yes]
1561
  --enable-fast-install[=PKGS]
1562
                          optimize for fast installation [default=yes]
1563
  --disable-libtool-lock  avoid locking (might break parallel builds)
1564
  --disable-dependency-tracking  speeds up one-time build
1565
  --enable-dependency-tracking   do not reject slow dependency extractors
1566
  --enable-all-tests      enable all tests, including those which do not
1567
                          compile
1568
  --enable-check-opt      enable optimizations
1569
  --enable-check-opt=level     same as gcc -O switch
1570
 
1571
Optional Packages:
1572
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1573
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1574
  --with-pic              try to use only PIC/non-PIC objects [default=use
1575
                          both]
1576
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1577
 
1578
Some influential environment variables:
1579
  CC          C compiler command
1580
  CFLAGS      C compiler flags
1581
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1582
              nonstandard directory 
1583
  LIBS        libraries to pass to the linker, e.g. -l
1584
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1585
              you have headers in a nonstandard directory 
1586
  CPP         C preprocessor
1587
  CCAS        assembler compiler command (defaults to CC)
1588
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1589
 
1590
Use these variables to override the choices made by `configure' or to help
1591
it to find libraries and programs with nonstandard names/locations.
1592
 
1593
Report bugs to .
1594
_ACEOF
1595
ac_status=$?
1596
fi
1597
 
1598
if test "$ac_init_help" = "recursive"; then
1599
  # If there are subdirs, report their specific --help.
1600
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1601
    test -d "$ac_dir" ||
1602
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1603
      continue
1604
    ac_builddir=.
1605
 
1606
case "$ac_dir" in
1607
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608
*)
1609
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1610
  # A ".." for each directory in $ac_dir_suffix.
1611
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1612
  case $ac_top_builddir_sub in
1613
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1615
  esac ;;
1616
esac
1617
ac_abs_top_builddir=$ac_pwd
1618
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1619
# for backward compatibility:
1620
ac_top_builddir=$ac_top_build_prefix
1621
 
1622
case $srcdir in
1623
  .)  # We are building in place.
1624
    ac_srcdir=.
1625
    ac_top_srcdir=$ac_top_builddir_sub
1626
    ac_abs_top_srcdir=$ac_pwd ;;
1627
  [\\/]* | ?:[\\/]* )  # Absolute name.
1628
    ac_srcdir=$srcdir$ac_dir_suffix;
1629
    ac_top_srcdir=$srcdir
1630
    ac_abs_top_srcdir=$srcdir ;;
1631
  *) # Relative name.
1632
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1633
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1634
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1635
esac
1636
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637
 
1638
    cd "$ac_dir" || { ac_status=$?; continue; }
1639
    # Check for guested configure.
1640
    if test -f "$ac_srcdir/configure.gnu"; then
1641
      echo &&
1642
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1643
    elif test -f "$ac_srcdir/configure"; then
1644
      echo &&
1645
      $SHELL "$ac_srcdir/configure" --help=recursive
1646
    else
1647
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1648
    fi || ac_status=$?
1649
    cd "$ac_pwd" || { ac_status=$?; break; }
1650
  done
1651
fi
1652
 
1653
test -n "$ac_init_help" && exit $ac_status
1654
if $ac_init_version; then
1655
  cat <<\_ACEOF
1656
or1ksim-testsuite configure 0.4.0rc1
1657
generated by GNU Autoconf 2.63
1658
 
1659
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1660
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1661
This configure script is free software; the Free Software Foundation
1662
gives unlimited permission to copy, distribute and modify it.
1663
_ACEOF
1664
  exit
1665
fi
1666
cat >config.log <<_ACEOF
1667
This file contains any messages produced by compilers while
1668
running configure, to aid debugging if configure makes a mistake.
1669
 
1670
It was created by or1ksim-testsuite $as_me 0.4.0rc1, which was
1671
generated by GNU Autoconf 2.63.  Invocation command line was
1672
 
1673
  $ $0 $@
1674
 
1675
_ACEOF
1676
exec 5>>config.log
1677
{
1678
cat <<_ASUNAME
1679
## --------- ##
1680
## Platform. ##
1681
## --------- ##
1682
 
1683
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1684
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1685
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1686
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1687
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1688
 
1689
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1690
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1691
 
1692
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1693
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1694
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1695
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1696
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1697
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1698
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1699
 
1700
_ASUNAME
1701
 
1702
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703
for as_dir in $PATH
1704
do
1705
  IFS=$as_save_IFS
1706
  test -z "$as_dir" && as_dir=.
1707
  $as_echo "PATH: $as_dir"
1708
done
1709
IFS=$as_save_IFS
1710
 
1711
} >&5
1712
 
1713
cat >&5 <<_ACEOF
1714
 
1715
 
1716
## ----------- ##
1717
## Core tests. ##
1718
## ----------- ##
1719
 
1720
_ACEOF
1721
 
1722
 
1723
# Keep a trace of the command line.
1724
# Strip out --no-create and --no-recursion so they do not pile up.
1725
# Strip out --silent because we don't want to record it for future runs.
1726
# Also quote any args containing shell meta-characters.
1727
# Make two passes to allow for proper duplicate-argument suppression.
1728
ac_configure_args=
1729
ac_configure_args0=
1730
ac_configure_args1=
1731
ac_must_keep_next=false
1732
for ac_pass in 1 2
1733
do
1734
  for ac_arg
1735
  do
1736
    case $ac_arg in
1737
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1738
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1739
    | -silent | --silent | --silen | --sile | --sil)
1740
      continue ;;
1741
    *\'*)
1742
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1743
    esac
1744
    case $ac_pass in
1745
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1746
    2)
1747
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1748
      if test $ac_must_keep_next = true; then
1749
        ac_must_keep_next=false # Got value, back to normal.
1750
      else
1751
        case $ac_arg in
1752
          *=* | --config-cache | -C | -disable-* | --disable-* \
1753
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1754
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1755
          | -with-* | --with-* | -without-* | --without-* | --x)
1756
            case "$ac_configure_args0 " in
1757
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1758
            esac
1759
            ;;
1760
          -* ) ac_must_keep_next=true ;;
1761
        esac
1762
      fi
1763
      ac_configure_args="$ac_configure_args '$ac_arg'"
1764
      ;;
1765
    esac
1766
  done
1767
done
1768
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1769
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1770
 
1771
# When interrupted or exit'd, cleanup temporary files, and complete
1772
# config.log.  We remove comments because anyway the quotes in there
1773
# would cause problems or look ugly.
1774
# WARNING: Use '\'' to represent an apostrophe within the trap.
1775
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1776
trap 'exit_status=$?
1777
  # Save into config.log some information that might help in debugging.
1778
  {
1779
    echo
1780
 
1781
    cat <<\_ASBOX
1782
## ---------------- ##
1783
## Cache variables. ##
1784
## ---------------- ##
1785
_ASBOX
1786
    echo
1787
    # The following way of writing the cache mishandles newlines in values,
1788
(
1789
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1790
    eval ac_val=\$$ac_var
1791
    case $ac_val in #(
1792
    *${as_nl}*)
1793
      case $ac_var in #(
1794
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1795
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1796
      esac
1797
      case $ac_var in #(
1798
      _ | IFS | as_nl) ;; #(
1799
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1800
      *) $as_unset $ac_var ;;
1801
      esac ;;
1802
    esac
1803
  done
1804
  (set) 2>&1 |
1805
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1806
    *${as_nl}ac_space=\ *)
1807
      sed -n \
1808
        "s/'\''/'\''\\\\'\'''\''/g;
1809
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1810
      ;; #(
1811
    *)
1812
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1813
      ;;
1814
    esac |
1815
    sort
1816
)
1817
    echo
1818
 
1819
    cat <<\_ASBOX
1820
## ----------------- ##
1821
## Output variables. ##
1822
## ----------------- ##
1823
_ASBOX
1824
    echo
1825
    for ac_var in $ac_subst_vars
1826
    do
1827
      eval ac_val=\$$ac_var
1828
      case $ac_val in
1829
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830
      esac
1831
      $as_echo "$ac_var='\''$ac_val'\''"
1832
    done | sort
1833
    echo
1834
 
1835
    if test -n "$ac_subst_files"; then
1836
      cat <<\_ASBOX
1837
## ------------------- ##
1838
## File substitutions. ##
1839
## ------------------- ##
1840
_ASBOX
1841
      echo
1842
      for ac_var in $ac_subst_files
1843
      do
1844
        eval ac_val=\$$ac_var
1845
        case $ac_val in
1846
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847
        esac
1848
        $as_echo "$ac_var='\''$ac_val'\''"
1849
      done | sort
1850
      echo
1851
    fi
1852
 
1853
    if test -s confdefs.h; then
1854
      cat <<\_ASBOX
1855
## ----------- ##
1856
## confdefs.h. ##
1857
## ----------- ##
1858
_ASBOX
1859
      echo
1860
      cat confdefs.h
1861
      echo
1862
    fi
1863
    test "$ac_signal" != 0 &&
1864
      $as_echo "$as_me: caught signal $ac_signal"
1865
    $as_echo "$as_me: exit $exit_status"
1866
  } >&5
1867
  rm -f core *.core core.conftest.* &&
1868
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1869
    exit $exit_status
1870
' 0
1871
for ac_signal in 1 2 13 15; do
1872
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1873
done
1874
ac_signal=0
1875
 
1876
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1877
rm -f -r conftest* confdefs.h
1878
 
1879
# Predefined preprocessor variables.
1880
 
1881
cat >>confdefs.h <<_ACEOF
1882
#define PACKAGE_NAME "$PACKAGE_NAME"
1883
_ACEOF
1884
 
1885
 
1886
cat >>confdefs.h <<_ACEOF
1887
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1888
_ACEOF
1889
 
1890
 
1891
cat >>confdefs.h <<_ACEOF
1892
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1893
_ACEOF
1894
 
1895
 
1896
cat >>confdefs.h <<_ACEOF
1897
#define PACKAGE_STRING "$PACKAGE_STRING"
1898
_ACEOF
1899
 
1900
 
1901
cat >>confdefs.h <<_ACEOF
1902
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1903
_ACEOF
1904
 
1905
 
1906
# Let the site file select an alternate cache file if it wants to.
1907
# Prefer an explicitly selected file to automatically selected ones.
1908
ac_site_file1=NONE
1909
ac_site_file2=NONE
1910
if test -n "$CONFIG_SITE"; then
1911
  ac_site_file1=$CONFIG_SITE
1912
elif test "x$prefix" != xNONE; then
1913
  ac_site_file1=$prefix/share/config.site
1914
  ac_site_file2=$prefix/etc/config.site
1915
else
1916
  ac_site_file1=$ac_default_prefix/share/config.site
1917
  ac_site_file2=$ac_default_prefix/etc/config.site
1918
fi
1919
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1920
do
1921
  test "x$ac_site_file" = xNONE && continue
1922
  if test -r "$ac_site_file"; then
1923
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1924
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1925
    sed 's/^/| /' "$ac_site_file" >&5
1926
    . "$ac_site_file"
1927
  fi
1928
done
1929
 
1930
if test -r "$cache_file"; then
1931
  # Some versions of bash will fail to source /dev/null (special
1932
  # files actually), so we avoid doing that.
1933
  if test -f "$cache_file"; then
1934
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1935
$as_echo "$as_me: loading cache $cache_file" >&6;}
1936
    case $cache_file in
1937
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1938
      *)                      . "./$cache_file";;
1939
    esac
1940
  fi
1941
else
1942
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1943
$as_echo "$as_me: creating cache $cache_file" >&6;}
1944
  >$cache_file
1945
fi
1946
 
1947
# Check that the precious variables saved in the cache have kept the same
1948
# value.
1949
ac_cache_corrupted=false
1950
for ac_var in $ac_precious_vars; do
1951
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952
  eval ac_new_set=\$ac_env_${ac_var}_set
1953
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954
  eval ac_new_val=\$ac_env_${ac_var}_value
1955
  case $ac_old_set,$ac_new_set in
1956
    set,)
1957
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959
      ac_cache_corrupted=: ;;
1960
    ,set)
1961
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963
      ac_cache_corrupted=: ;;
1964
    ,);;
1965
    *)
1966
      if test "x$ac_old_val" != "x$ac_new_val"; then
1967
        # differences in whitespace do not lead to failure.
1968
        ac_old_val_w=`echo x $ac_old_val`
1969
        ac_new_val_w=`echo x $ac_new_val`
1970
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1971
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973
          ac_cache_corrupted=:
1974
        else
1975
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1976
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1977
          eval $ac_var=\$ac_old_val
1978
        fi
1979
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1980
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1981
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1982
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1983
      fi;;
1984
  esac
1985
  # Pass precious variables to config.status.
1986
  if test "$ac_new_set" = set; then
1987
    case $ac_new_val in
1988
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1989
    *) ac_arg=$ac_var=$ac_new_val ;;
1990
    esac
1991
    case " $ac_configure_args " in
1992
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1993
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1994
    esac
1995
  fi
1996
done
1997
if $ac_cache_corrupted; then
1998
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1999
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2000
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2001
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2002
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2003
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2004
   { (exit 1); exit 1; }; }
2005
fi
2006
 
2007
 
2008
 
2009
 
2010
 
2011
 
2012
 
2013
 
2014
 
2015
 
2016
 
2017
 
2018
 
2019
 
2020
 
2021
 
2022
 
2023
 
2024
 
2025
 
2026
 
2027
 
2028
 
2029
 
2030
 
2031
ac_ext=c
2032
ac_cpp='$CPP $CPPFLAGS'
2033
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036
 
2037
 
2038
 
2039
 
2040
case `pwd` in
2041
  *\ * | *\     *)
2042
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2043
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2044
esac
2045
 
2046
 
2047
 
2048
macro_version='2.2.6b'
2049
macro_revision='1.3017'
2050
 
2051
 
2052
 
2053
 
2054
 
2055
 
2056
 
2057
 
2058
 
2059
 
2060
 
2061
 
2062
 
2063
ltmain="$ac_aux_dir/ltmain.sh"
2064
 
2065
ac_aux_dir=
2066
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2067
  if test -f "$ac_dir/install-sh"; then
2068
    ac_aux_dir=$ac_dir
2069
    ac_install_sh="$ac_aux_dir/install-sh -c"
2070
    break
2071
  elif test -f "$ac_dir/install.sh"; then
2072
    ac_aux_dir=$ac_dir
2073
    ac_install_sh="$ac_aux_dir/install.sh -c"
2074
    break
2075
  elif test -f "$ac_dir/shtool"; then
2076
    ac_aux_dir=$ac_dir
2077
    ac_install_sh="$ac_aux_dir/shtool install -c"
2078
    break
2079
  fi
2080
done
2081
if test -z "$ac_aux_dir"; then
2082
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2083
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2084
   { (exit 1); exit 1; }; }
2085
fi
2086
 
2087
# These three variables are undocumented and unsupported,
2088
# and are intended to be withdrawn in a future Autoconf release.
2089
# They can cause serious problems if a builder's source tree is in a directory
2090
# whose full name contains unusual characters.
2091
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2092
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2093
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2094
 
2095
 
2096
# Make sure we can run config.sub.
2097
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2098
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2099
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2100
   { (exit 1); exit 1; }; }
2101
 
2102
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2103
$as_echo_n "checking build system type... " >&6; }
2104
if test "${ac_cv_build+set}" = set; then
2105
  $as_echo_n "(cached) " >&6
2106
else
2107
  ac_build_alias=$build_alias
2108
test "x$ac_build_alias" = x &&
2109
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2110
test "x$ac_build_alias" = x &&
2111
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2112
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2113
   { (exit 1); exit 1; }; }
2114
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2115
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2116
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2117
   { (exit 1); exit 1; }; }
2118
 
2119
fi
2120
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2121
$as_echo "$ac_cv_build" >&6; }
2122
case $ac_cv_build in
2123
*-*-*) ;;
2124
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2125
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2126
   { (exit 1); exit 1; }; };;
2127
esac
2128
build=$ac_cv_build
2129
ac_save_IFS=$IFS; IFS='-'
2130
set x $ac_cv_build
2131
shift
2132
build_cpu=$1
2133
build_vendor=$2
2134
shift; shift
2135
# Remember, the first character of IFS is used to create $*,
2136
# except with old shells:
2137
build_os=$*
2138
IFS=$ac_save_IFS
2139
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2140
 
2141
 
2142
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2143
$as_echo_n "checking host system type... " >&6; }
2144
if test "${ac_cv_host+set}" = set; then
2145
  $as_echo_n "(cached) " >&6
2146
else
2147
  if test "x$host_alias" = x; then
2148
  ac_cv_host=$ac_cv_build
2149
else
2150
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2151
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2152
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2153
   { (exit 1); exit 1; }; }
2154
fi
2155
 
2156
fi
2157
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2158
$as_echo "$ac_cv_host" >&6; }
2159
case $ac_cv_host in
2160
*-*-*) ;;
2161
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2162
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2163
   { (exit 1); exit 1; }; };;
2164
esac
2165
host=$ac_cv_host
2166
ac_save_IFS=$IFS; IFS='-'
2167
set x $ac_cv_host
2168
shift
2169
host_cpu=$1
2170
host_vendor=$2
2171
shift; shift
2172
# Remember, the first character of IFS is used to create $*,
2173
# except with old shells:
2174
host_os=$*
2175
IFS=$ac_save_IFS
2176
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2177
 
2178
 
2179
ac_ext=c
2180
ac_cpp='$CPP $CPPFLAGS'
2181
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2182
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2183
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2184
if test -n "$ac_tool_prefix"; then
2185
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2186
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2187
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2188
$as_echo_n "checking for $ac_word... " >&6; }
2189
if test "${ac_cv_prog_CC+set}" = set; then
2190
  $as_echo_n "(cached) " >&6
2191
else
2192
  if test -n "$CC"; then
2193
  ac_cv_prog_CC="$CC" # Let the user override the test.
2194
else
2195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196
for as_dir in $PATH
2197
do
2198
  IFS=$as_save_IFS
2199
  test -z "$as_dir" && as_dir=.
2200
  for ac_exec_ext in '' $ac_executable_extensions; do
2201
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2202
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2203
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204
    break 2
2205
  fi
2206
done
2207
done
2208
IFS=$as_save_IFS
2209
 
2210
fi
2211
fi
2212
CC=$ac_cv_prog_CC
2213
if test -n "$CC"; then
2214
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2215
$as_echo "$CC" >&6; }
2216
else
2217
  { $as_echo "$as_me:$LINENO: result: no" >&5
2218
$as_echo "no" >&6; }
2219
fi
2220
 
2221
 
2222
fi
2223
if test -z "$ac_cv_prog_CC"; then
2224
  ac_ct_CC=$CC
2225
  # Extract the first word of "gcc", so it can be a program name with args.
2226
set dummy gcc; ac_word=$2
2227
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2228
$as_echo_n "checking for $ac_word... " >&6; }
2229
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2230
  $as_echo_n "(cached) " >&6
2231
else
2232
  if test -n "$ac_ct_CC"; then
2233
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234
else
2235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236
for as_dir in $PATH
2237
do
2238
  IFS=$as_save_IFS
2239
  test -z "$as_dir" && as_dir=.
2240
  for ac_exec_ext in '' $ac_executable_extensions; do
2241
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2242
    ac_cv_prog_ac_ct_CC="gcc"
2243
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244
    break 2
2245
  fi
2246
done
2247
done
2248
IFS=$as_save_IFS
2249
 
2250
fi
2251
fi
2252
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2253
if test -n "$ac_ct_CC"; then
2254
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2255
$as_echo "$ac_ct_CC" >&6; }
2256
else
2257
  { $as_echo "$as_me:$LINENO: result: no" >&5
2258
$as_echo "no" >&6; }
2259
fi
2260
 
2261
  if test "x$ac_ct_CC" = x; then
2262
    CC=""
2263
  else
2264
    case $cross_compiling:$ac_tool_warned in
2265
yes:)
2266
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2267
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2268
ac_tool_warned=yes ;;
2269
esac
2270
    CC=$ac_ct_CC
2271
  fi
2272
else
2273
  CC="$ac_cv_prog_CC"
2274
fi
2275
 
2276
if test -z "$CC"; then
2277
          if test -n "$ac_tool_prefix"; then
2278
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2279
set dummy ${ac_tool_prefix}cc; ac_word=$2
2280
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2281
$as_echo_n "checking for $ac_word... " >&6; }
2282
if test "${ac_cv_prog_CC+set}" = set; then
2283
  $as_echo_n "(cached) " >&6
2284
else
2285
  if test -n "$CC"; then
2286
  ac_cv_prog_CC="$CC" # Let the user override the test.
2287
else
2288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289
for as_dir in $PATH
2290
do
2291
  IFS=$as_save_IFS
2292
  test -z "$as_dir" && as_dir=.
2293
  for ac_exec_ext in '' $ac_executable_extensions; do
2294
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2296
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297
    break 2
2298
  fi
2299
done
2300
done
2301
IFS=$as_save_IFS
2302
 
2303
fi
2304
fi
2305
CC=$ac_cv_prog_CC
2306
if test -n "$CC"; then
2307
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2308
$as_echo "$CC" >&6; }
2309
else
2310
  { $as_echo "$as_me:$LINENO: result: no" >&5
2311
$as_echo "no" >&6; }
2312
fi
2313
 
2314
 
2315
  fi
2316
fi
2317
if test -z "$CC"; then
2318
  # Extract the first word of "cc", so it can be a program name with args.
2319
set dummy cc; ac_word=$2
2320
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2321
$as_echo_n "checking for $ac_word... " >&6; }
2322
if test "${ac_cv_prog_CC+set}" = set; then
2323
  $as_echo_n "(cached) " >&6
2324
else
2325
  if test -n "$CC"; then
2326
  ac_cv_prog_CC="$CC" # Let the user override the test.
2327
else
2328
  ac_prog_rejected=no
2329
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330
for as_dir in $PATH
2331
do
2332
  IFS=$as_save_IFS
2333
  test -z "$as_dir" && as_dir=.
2334
  for ac_exec_ext in '' $ac_executable_extensions; do
2335
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2337
       ac_prog_rejected=yes
2338
       continue
2339
     fi
2340
    ac_cv_prog_CC="cc"
2341
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342
    break 2
2343
  fi
2344
done
2345
done
2346
IFS=$as_save_IFS
2347
 
2348
if test $ac_prog_rejected = yes; then
2349
  # We found a bogon in the path, so make sure we never use it.
2350
  set dummy $ac_cv_prog_CC
2351
  shift
2352
  if test $# != 0; then
2353
    # We chose a different compiler from the bogus one.
2354
    # However, it has the same basename, so the bogon will be chosen
2355
    # first if we set CC to just the basename; use the full file name.
2356
    shift
2357
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2358
  fi
2359
fi
2360
fi
2361
fi
2362
CC=$ac_cv_prog_CC
2363
if test -n "$CC"; then
2364
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2365
$as_echo "$CC" >&6; }
2366
else
2367
  { $as_echo "$as_me:$LINENO: result: no" >&5
2368
$as_echo "no" >&6; }
2369
fi
2370
 
2371
 
2372
fi
2373
if test -z "$CC"; then
2374
  if test -n "$ac_tool_prefix"; then
2375
  for ac_prog in cl.exe
2376
  do
2377
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2378
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2379
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2380
$as_echo_n "checking for $ac_word... " >&6; }
2381
if test "${ac_cv_prog_CC+set}" = set; then
2382
  $as_echo_n "(cached) " >&6
2383
else
2384
  if test -n "$CC"; then
2385
  ac_cv_prog_CC="$CC" # Let the user override the test.
2386
else
2387
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388
for as_dir in $PATH
2389
do
2390
  IFS=$as_save_IFS
2391
  test -z "$as_dir" && as_dir=.
2392
  for ac_exec_ext in '' $ac_executable_extensions; do
2393
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2395
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396
    break 2
2397
  fi
2398
done
2399
done
2400
IFS=$as_save_IFS
2401
 
2402
fi
2403
fi
2404
CC=$ac_cv_prog_CC
2405
if test -n "$CC"; then
2406
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2407
$as_echo "$CC" >&6; }
2408
else
2409
  { $as_echo "$as_me:$LINENO: result: no" >&5
2410
$as_echo "no" >&6; }
2411
fi
2412
 
2413
 
2414
    test -n "$CC" && break
2415
  done
2416
fi
2417
if test -z "$CC"; then
2418
  ac_ct_CC=$CC
2419
  for ac_prog in cl.exe
2420
do
2421
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2422
set dummy $ac_prog; ac_word=$2
2423
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2424
$as_echo_n "checking for $ac_word... " >&6; }
2425
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2426
  $as_echo_n "(cached) " >&6
2427
else
2428
  if test -n "$ac_ct_CC"; then
2429
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2430
else
2431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432
for as_dir in $PATH
2433
do
2434
  IFS=$as_save_IFS
2435
  test -z "$as_dir" && as_dir=.
2436
  for ac_exec_ext in '' $ac_executable_extensions; do
2437
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438
    ac_cv_prog_ac_ct_CC="$ac_prog"
2439
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440
    break 2
2441
  fi
2442
done
2443
done
2444
IFS=$as_save_IFS
2445
 
2446
fi
2447
fi
2448
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2449
if test -n "$ac_ct_CC"; then
2450
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2451
$as_echo "$ac_ct_CC" >&6; }
2452
else
2453
  { $as_echo "$as_me:$LINENO: result: no" >&5
2454
$as_echo "no" >&6; }
2455
fi
2456
 
2457
 
2458
  test -n "$ac_ct_CC" && break
2459
done
2460
 
2461
  if test "x$ac_ct_CC" = x; then
2462
    CC=""
2463
  else
2464
    case $cross_compiling:$ac_tool_warned in
2465
yes:)
2466
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2467
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2468
ac_tool_warned=yes ;;
2469
esac
2470
    CC=$ac_ct_CC
2471
  fi
2472
fi
2473
 
2474
fi
2475
 
2476
 
2477
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2478
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2479
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2480
See \`config.log' for more details." >&5
2481
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2482
See \`config.log' for more details." >&2;}
2483
   { (exit 1); exit 1; }; }; }
2484
 
2485
# Provide some information about the compiler.
2486
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2487
set X $ac_compile
2488
ac_compiler=$2
2489
{ (ac_try="$ac_compiler --version >&5"
2490
case "(($ac_try" in
2491
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492
  *) ac_try_echo=$ac_try;;
2493
esac
2494
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2495
$as_echo "$ac_try_echo") >&5
2496
  (eval "$ac_compiler --version >&5") 2>&5
2497
  ac_status=$?
2498
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499
  (exit $ac_status); }
2500
{ (ac_try="$ac_compiler -v >&5"
2501
case "(($ac_try" in
2502
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503
  *) ac_try_echo=$ac_try;;
2504
esac
2505
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2506
$as_echo "$ac_try_echo") >&5
2507
  (eval "$ac_compiler -v >&5") 2>&5
2508
  ac_status=$?
2509
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510
  (exit $ac_status); }
2511
{ (ac_try="$ac_compiler -V >&5"
2512
case "(($ac_try" in
2513
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514
  *) ac_try_echo=$ac_try;;
2515
esac
2516
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2517
$as_echo "$ac_try_echo") >&5
2518
  (eval "$ac_compiler -V >&5") 2>&5
2519
  ac_status=$?
2520
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521
  (exit $ac_status); }
2522
 
2523
cat >conftest.$ac_ext <<_ACEOF
2524
/* confdefs.h.  */
2525
_ACEOF
2526
cat confdefs.h >>conftest.$ac_ext
2527
cat >>conftest.$ac_ext <<_ACEOF
2528
/* end confdefs.h.  */
2529
 
2530
int
2531
main ()
2532
{
2533
 
2534
  ;
2535
  return 0;
2536
}
2537
_ACEOF
2538
ac_clean_files_save=$ac_clean_files
2539
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2540
# Try to create an executable without -o first, disregard a.out.
2541
# It will help us diagnose broken compilers, and finding out an intuition
2542
# of exeext.
2543
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2544
$as_echo_n "checking for C compiler default output file name... " >&6; }
2545
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2546
 
2547
# The possible output files:
2548
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2549
 
2550
ac_rmfiles=
2551
for ac_file in $ac_files
2552
do
2553
  case $ac_file in
2554
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2555
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2556
  esac
2557
done
2558
rm -f $ac_rmfiles
2559
 
2560
if { (ac_try="$ac_link_default"
2561
case "(($ac_try" in
2562
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563
  *) ac_try_echo=$ac_try;;
2564
esac
2565
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2566
$as_echo "$ac_try_echo") >&5
2567
  (eval "$ac_link_default") 2>&5
2568
  ac_status=$?
2569
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570
  (exit $ac_status); }; then
2571
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2572
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2573
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2574
# so that the user can short-circuit this test for compilers unknown to
2575
# Autoconf.
2576
for ac_file in $ac_files ''
2577
do
2578
  test -f "$ac_file" || continue
2579
  case $ac_file in
2580
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2581
        ;;
2582
    [ab].out )
2583
        # We found the default executable, but exeext='' is most
2584
        # certainly right.
2585
        break;;
2586
    *.* )
2587
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2588
        then :; else
2589
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2590
        fi
2591
        # We set ac_cv_exeext here because the later test for it is not
2592
        # safe: cross compilers may not add the suffix if given an `-o'
2593
        # argument, so we may need to know it at that point already.
2594
        # Even if this section looks crufty: it has the advantage of
2595
        # actually working.
2596
        break;;
2597
    * )
2598
        break;;
2599
  esac
2600
done
2601
test "$ac_cv_exeext" = no && ac_cv_exeext=
2602
 
2603
else
2604
  ac_file=''
2605
fi
2606
 
2607
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2608
$as_echo "$ac_file" >&6; }
2609
if test -z "$ac_file"; then
2610
  $as_echo "$as_me: failed program was:" >&5
2611
sed 's/^/| /' conftest.$ac_ext >&5
2612
 
2613
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2614
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2616
See \`config.log' for more details." >&5
2617
$as_echo "$as_me: error: C compiler cannot create executables
2618
See \`config.log' for more details." >&2;}
2619
   { (exit 77); exit 77; }; }; }
2620
fi
2621
 
2622
ac_exeext=$ac_cv_exeext
2623
 
2624
# Check that the compiler produces executables we can run.  If not, either
2625
# the compiler is broken, or we cross compile.
2626
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2627
$as_echo_n "checking whether the C compiler works... " >&6; }
2628
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2629
# If not cross compiling, check that we can run a simple program.
2630
if test "$cross_compiling" != yes; then
2631
  if { ac_try='./$ac_file'
2632
  { (case "(($ac_try" in
2633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634
  *) ac_try_echo=$ac_try;;
2635
esac
2636
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2637
$as_echo "$ac_try_echo") >&5
2638
  (eval "$ac_try") 2>&5
2639
  ac_status=$?
2640
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641
  (exit $ac_status); }; }; then
2642
    cross_compiling=no
2643
  else
2644
    if test "$cross_compiling" = maybe; then
2645
        cross_compiling=yes
2646
    else
2647
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2648
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2649
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2650
If you meant to cross compile, use \`--host'.
2651
See \`config.log' for more details." >&5
2652
$as_echo "$as_me: error: cannot run C compiled programs.
2653
If you meant to cross compile, use \`--host'.
2654
See \`config.log' for more details." >&2;}
2655
   { (exit 1); exit 1; }; }; }
2656
    fi
2657
  fi
2658
fi
2659
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2660
$as_echo "yes" >&6; }
2661
 
2662
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2663
ac_clean_files=$ac_clean_files_save
2664
# Check that the compiler produces executables we can run.  If not, either
2665
# the compiler is broken, or we cross compile.
2666
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2667
$as_echo_n "checking whether we are cross compiling... " >&6; }
2668
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2669
$as_echo "$cross_compiling" >&6; }
2670
 
2671
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2672
$as_echo_n "checking for suffix of executables... " >&6; }
2673
if { (ac_try="$ac_link"
2674
case "(($ac_try" in
2675
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676
  *) ac_try_echo=$ac_try;;
2677
esac
2678
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2679
$as_echo "$ac_try_echo") >&5
2680
  (eval "$ac_link") 2>&5
2681
  ac_status=$?
2682
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683
  (exit $ac_status); }; then
2684
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2685
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2686
# work properly (i.e., refer to `conftest.exe'), while it won't with
2687
# `rm'.
2688
for ac_file in conftest.exe conftest conftest.*; do
2689
  test -f "$ac_file" || continue
2690
  case $ac_file in
2691
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2692
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2693
          break;;
2694
    * ) break;;
2695
  esac
2696
done
2697
else
2698
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2699
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2700
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2701
See \`config.log' for more details." >&5
2702
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2703
See \`config.log' for more details." >&2;}
2704
   { (exit 1); exit 1; }; }; }
2705
fi
2706
 
2707
rm -f conftest$ac_cv_exeext
2708
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2709
$as_echo "$ac_cv_exeext" >&6; }
2710
 
2711
rm -f conftest.$ac_ext
2712
EXEEXT=$ac_cv_exeext
2713
ac_exeext=$EXEEXT
2714
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2715
$as_echo_n "checking for suffix of object files... " >&6; }
2716
if test "${ac_cv_objext+set}" = set; then
2717
  $as_echo_n "(cached) " >&6
2718
else
2719
  cat >conftest.$ac_ext <<_ACEOF
2720
/* confdefs.h.  */
2721
_ACEOF
2722
cat confdefs.h >>conftest.$ac_ext
2723
cat >>conftest.$ac_ext <<_ACEOF
2724
/* end confdefs.h.  */
2725
 
2726
int
2727
main ()
2728
{
2729
 
2730
  ;
2731
  return 0;
2732
}
2733
_ACEOF
2734
rm -f conftest.o conftest.obj
2735
if { (ac_try="$ac_compile"
2736
case "(($ac_try" in
2737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738
  *) ac_try_echo=$ac_try;;
2739
esac
2740
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2741
$as_echo "$ac_try_echo") >&5
2742
  (eval "$ac_compile") 2>&5
2743
  ac_status=$?
2744
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745
  (exit $ac_status); }; then
2746
  for ac_file in conftest.o conftest.obj conftest.*; do
2747
  test -f "$ac_file" || continue;
2748
  case $ac_file in
2749
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2750
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2751
       break;;
2752
  esac
2753
done
2754
else
2755
  $as_echo "$as_me: failed program was:" >&5
2756
sed 's/^/| /' conftest.$ac_ext >&5
2757
 
2758
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2759
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2760
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2761
See \`config.log' for more details." >&5
2762
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2763
See \`config.log' for more details." >&2;}
2764
   { (exit 1); exit 1; }; }; }
2765
fi
2766
 
2767
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2768
fi
2769
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2770
$as_echo "$ac_cv_objext" >&6; }
2771
OBJEXT=$ac_cv_objext
2772
ac_objext=$OBJEXT
2773
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2774
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2775
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2776
  $as_echo_n "(cached) " >&6
2777
else
2778
  cat >conftest.$ac_ext <<_ACEOF
2779
/* confdefs.h.  */
2780
_ACEOF
2781
cat confdefs.h >>conftest.$ac_ext
2782
cat >>conftest.$ac_ext <<_ACEOF
2783
/* end confdefs.h.  */
2784
 
2785
int
2786
main ()
2787
{
2788
#ifndef __GNUC__
2789
       choke me
2790
#endif
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
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2803
$as_echo "$ac_try_echo") >&5
2804
  (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
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810
  (exit $ac_status); } && {
2811
         test -z "$ac_c_werror_flag" ||
2812
         test ! -s conftest.err
2813
       } && test -s conftest.$ac_objext; then
2814
  ac_compiler_gnu=yes
2815
else
2816
  $as_echo "$as_me: failed program was:" >&5
2817
sed 's/^/| /' conftest.$ac_ext >&5
2818
 
2819
        ac_compiler_gnu=no
2820
fi
2821
 
2822
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2823
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2824
 
2825
fi
2826
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2827
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2828
if test $ac_compiler_gnu = yes; then
2829
  GCC=yes
2830
else
2831
  GCC=
2832
fi
2833
ac_test_CFLAGS=${CFLAGS+set}
2834
ac_save_CFLAGS=$CFLAGS
2835
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2836
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2837
if test "${ac_cv_prog_cc_g+set}" = set; then
2838
  $as_echo_n "(cached) " >&6
2839
else
2840
  ac_save_c_werror_flag=$ac_c_werror_flag
2841
   ac_c_werror_flag=yes
2842
   ac_cv_prog_cc_g=no
2843
   CFLAGS="-g"
2844
   cat >conftest.$ac_ext <<_ACEOF
2845
/* confdefs.h.  */
2846
_ACEOF
2847
cat confdefs.h >>conftest.$ac_ext
2848
cat >>conftest.$ac_ext <<_ACEOF
2849
/* end confdefs.h.  */
2850
 
2851
int
2852
main ()
2853
{
2854
 
2855
  ;
2856
  return 0;
2857
}
2858
_ACEOF
2859
rm -f conftest.$ac_objext
2860
if { (ac_try="$ac_compile"
2861
case "(($ac_try" in
2862
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863
  *) ac_try_echo=$ac_try;;
2864
esac
2865
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2866
$as_echo "$ac_try_echo") >&5
2867
  (eval "$ac_compile") 2>conftest.er1
2868
  ac_status=$?
2869
  grep -v '^ *+' conftest.er1 >conftest.err
2870
  rm -f conftest.er1
2871
  cat conftest.err >&5
2872
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873
  (exit $ac_status); } && {
2874
         test -z "$ac_c_werror_flag" ||
2875
         test ! -s conftest.err
2876
       } && test -s conftest.$ac_objext; then
2877
  ac_cv_prog_cc_g=yes
2878
else
2879
  $as_echo "$as_me: failed program was:" >&5
2880
sed 's/^/| /' conftest.$ac_ext >&5
2881
 
2882
        CFLAGS=""
2883
      cat >conftest.$ac_ext <<_ACEOF
2884
/* confdefs.h.  */
2885
_ACEOF
2886
cat confdefs.h >>conftest.$ac_ext
2887
cat >>conftest.$ac_ext <<_ACEOF
2888
/* end confdefs.h.  */
2889
 
2890
int
2891
main ()
2892
{
2893
 
2894
  ;
2895
  return 0;
2896
}
2897
_ACEOF
2898
rm -f conftest.$ac_objext
2899
if { (ac_try="$ac_compile"
2900
case "(($ac_try" in
2901
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902
  *) ac_try_echo=$ac_try;;
2903
esac
2904
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2905
$as_echo "$ac_try_echo") >&5
2906
  (eval "$ac_compile") 2>conftest.er1
2907
  ac_status=$?
2908
  grep -v '^ *+' conftest.er1 >conftest.err
2909
  rm -f conftest.er1
2910
  cat conftest.err >&5
2911
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912
  (exit $ac_status); } && {
2913
         test -z "$ac_c_werror_flag" ||
2914
         test ! -s conftest.err
2915
       } && test -s conftest.$ac_objext; then
2916
  :
2917
else
2918
  $as_echo "$as_me: failed program was:" >&5
2919
sed 's/^/| /' conftest.$ac_ext >&5
2920
 
2921
        ac_c_werror_flag=$ac_save_c_werror_flag
2922
         CFLAGS="-g"
2923
         cat >conftest.$ac_ext <<_ACEOF
2924
/* confdefs.h.  */
2925
_ACEOF
2926
cat confdefs.h >>conftest.$ac_ext
2927
cat >>conftest.$ac_ext <<_ACEOF
2928
/* end confdefs.h.  */
2929
 
2930
int
2931
main ()
2932
{
2933
 
2934
  ;
2935
  return 0;
2936
}
2937
_ACEOF
2938
rm -f conftest.$ac_objext
2939
if { (ac_try="$ac_compile"
2940
case "(($ac_try" in
2941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942
  *) ac_try_echo=$ac_try;;
2943
esac
2944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2945
$as_echo "$ac_try_echo") >&5
2946
  (eval "$ac_compile") 2>conftest.er1
2947
  ac_status=$?
2948
  grep -v '^ *+' conftest.er1 >conftest.err
2949
  rm -f conftest.er1
2950
  cat conftest.err >&5
2951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952
  (exit $ac_status); } && {
2953
         test -z "$ac_c_werror_flag" ||
2954
         test ! -s conftest.err
2955
       } && test -s conftest.$ac_objext; then
2956
  ac_cv_prog_cc_g=yes
2957
else
2958
  $as_echo "$as_me: failed program was:" >&5
2959
sed 's/^/| /' conftest.$ac_ext >&5
2960
 
2961
 
2962
fi
2963
 
2964
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965
fi
2966
 
2967
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968
fi
2969
 
2970
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971
   ac_c_werror_flag=$ac_save_c_werror_flag
2972
fi
2973
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2974
$as_echo "$ac_cv_prog_cc_g" >&6; }
2975
if test "$ac_test_CFLAGS" = set; then
2976
  CFLAGS=$ac_save_CFLAGS
2977
elif test $ac_cv_prog_cc_g = yes; then
2978
  if test "$GCC" = yes; then
2979
    CFLAGS="-g -O2"
2980
  else
2981
    CFLAGS="-g"
2982
  fi
2983
else
2984
  if test "$GCC" = yes; then
2985
    CFLAGS="-O2"
2986
  else
2987
    CFLAGS=
2988
  fi
2989
fi
2990
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2991
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2992
if test "${ac_cv_prog_cc_c89+set}" = set; then
2993
  $as_echo_n "(cached) " >&6
2994
else
2995
  ac_cv_prog_cc_c89=no
2996
ac_save_CC=$CC
2997
cat >conftest.$ac_ext <<_ACEOF
2998
/* confdefs.h.  */
2999
_ACEOF
3000
cat confdefs.h >>conftest.$ac_ext
3001
cat >>conftest.$ac_ext <<_ACEOF
3002
/* end confdefs.h.  */
3003
#include 
3004
#include 
3005
#include 
3006
#include 
3007
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3008
struct buf { int x; };
3009
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3010
static char *e (p, i)
3011
     char **p;
3012
     int i;
3013
{
3014
  return p[i];
3015
}
3016
static char *f (char * (*g) (char **, int), char **p, ...)
3017
{
3018
  char *s;
3019
  va_list v;
3020
  va_start (v,p);
3021
  s = g (p, va_arg (v,int));
3022
  va_end (v);
3023
  return s;
3024
}
3025
 
3026
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3027
   function prototypes and stuff, but not '\xHH' hex character constants.
3028
   These don't provoke an error unfortunately, instead are silently treated
3029
   as 'x'.  The following induces an error, until -std is added to get
3030
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3031
   array size at least.  It's necessary to write '\x00'==0 to get something
3032
   that's true only with -std.  */
3033
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3034
 
3035
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3036
   inside strings and character constants.  */
3037
#define FOO(x) 'x'
3038
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3039
 
3040
int test (int i, double x);
3041
struct s1 {int (*f) (int a);};
3042
struct s2 {int (*f) (double a);};
3043
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3044
int argc;
3045
char **argv;
3046
int
3047
main ()
3048
{
3049
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3050
  ;
3051
  return 0;
3052
}
3053
_ACEOF
3054
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3055
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3056
do
3057
  CC="$ac_save_CC $ac_arg"
3058
  rm -f conftest.$ac_objext
3059
if { (ac_try="$ac_compile"
3060
case "(($ac_try" in
3061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062
  *) ac_try_echo=$ac_try;;
3063
esac
3064
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3065
$as_echo "$ac_try_echo") >&5
3066
  (eval "$ac_compile") 2>conftest.er1
3067
  ac_status=$?
3068
  grep -v '^ *+' conftest.er1 >conftest.err
3069
  rm -f conftest.er1
3070
  cat conftest.err >&5
3071
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072
  (exit $ac_status); } && {
3073
         test -z "$ac_c_werror_flag" ||
3074
         test ! -s conftest.err
3075
       } && test -s conftest.$ac_objext; then
3076
  ac_cv_prog_cc_c89=$ac_arg
3077
else
3078
  $as_echo "$as_me: failed program was:" >&5
3079
sed 's/^/| /' conftest.$ac_ext >&5
3080
 
3081
 
3082
fi
3083
 
3084
rm -f core conftest.err conftest.$ac_objext
3085
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3086
done
3087
rm -f conftest.$ac_ext
3088
CC=$ac_save_CC
3089
 
3090
fi
3091
# AC_CACHE_VAL
3092
case "x$ac_cv_prog_cc_c89" in
3093
  x)
3094
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3095
$as_echo "none needed" >&6; } ;;
3096
  xno)
3097
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3098
$as_echo "unsupported" >&6; } ;;
3099
  *)
3100
    CC="$CC $ac_cv_prog_cc_c89"
3101
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3102
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3103
esac
3104
 
3105
 
3106
ac_ext=c
3107
ac_cpp='$CPP $CPPFLAGS'
3108
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111
 
3112
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3113
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3114
if test "${ac_cv_path_SED+set}" = set; then
3115
  $as_echo_n "(cached) " >&6
3116
else
3117
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3118
     for ac_i in 1 2 3 4 5 6 7; do
3119
       ac_script="$ac_script$as_nl$ac_script"
3120
     done
3121
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3122
     $as_unset ac_script || ac_script=
3123
     if test -z "$SED"; then
3124
  ac_path_SED_found=false
3125
  # Loop through the user's path and test for each of PROGNAME-LIST
3126
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127
for as_dir in $PATH
3128
do
3129
  IFS=$as_save_IFS
3130
  test -z "$as_dir" && as_dir=.
3131
  for ac_prog in sed gsed; do
3132
    for ac_exec_ext in '' $ac_executable_extensions; do
3133
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3134
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3135
# Check for GNU ac_path_SED and select it if it is found.
3136
  # Check for GNU $ac_path_SED
3137
case `"$ac_path_SED" --version 2>&1` in
3138
*GNU*)
3139
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3140
*)
3141
  ac_count=0
3142
  $as_echo_n 0123456789 >"conftest.in"
3143
  while :
3144
  do
3145
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3146
    mv "conftest.tmp" "conftest.in"
3147
    cp "conftest.in" "conftest.nl"
3148
    $as_echo '' >> "conftest.nl"
3149
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3150
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3151
    ac_count=`expr $ac_count + 1`
3152
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3153
      # Best one so far, save it but keep looking for a better one
3154
      ac_cv_path_SED="$ac_path_SED"
3155
      ac_path_SED_max=$ac_count
3156
    fi
3157
    # 10*(2^10) chars as input seems more than enough
3158
    test $ac_count -gt 10 && break
3159
  done
3160
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3161
esac
3162
 
3163
      $ac_path_SED_found && break 3
3164
    done
3165
  done
3166
done
3167
IFS=$as_save_IFS
3168
  if test -z "$ac_cv_path_SED"; then
3169
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3170
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3171
   { (exit 1); exit 1; }; }
3172
  fi
3173
else
3174
  ac_cv_path_SED=$SED
3175
fi
3176
 
3177
fi
3178
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3179
$as_echo "$ac_cv_path_SED" >&6; }
3180
 SED="$ac_cv_path_SED"
3181
  rm -f conftest.sed
3182
 
3183
test -z "$SED" && SED=sed
3184
Xsed="$SED -e 1s/^X//"
3185
 
3186
 
3187
 
3188
 
3189
 
3190
 
3191
 
3192
 
3193
 
3194
 
3195
 
3196
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3197
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3198
if test "${ac_cv_path_GREP+set}" = set; then
3199
  $as_echo_n "(cached) " >&6
3200
else
3201
  if test -z "$GREP"; then
3202
  ac_path_GREP_found=false
3203
  # Loop through the user's path and test for each of PROGNAME-LIST
3204
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3206
do
3207
  IFS=$as_save_IFS
3208
  test -z "$as_dir" && as_dir=.
3209
  for ac_prog in grep ggrep; do
3210
    for ac_exec_ext in '' $ac_executable_extensions; do
3211
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3212
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3213
# Check for GNU ac_path_GREP and select it if it is found.
3214
  # Check for GNU $ac_path_GREP
3215
case `"$ac_path_GREP" --version 2>&1` in
3216
*GNU*)
3217
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3218
*)
3219
  ac_count=0
3220
  $as_echo_n 0123456789 >"conftest.in"
3221
  while :
3222
  do
3223
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3224
    mv "conftest.tmp" "conftest.in"
3225
    cp "conftest.in" "conftest.nl"
3226
    $as_echo 'GREP' >> "conftest.nl"
3227
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3228
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3229
    ac_count=`expr $ac_count + 1`
3230
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3231
      # Best one so far, save it but keep looking for a better one
3232
      ac_cv_path_GREP="$ac_path_GREP"
3233
      ac_path_GREP_max=$ac_count
3234
    fi
3235
    # 10*(2^10) chars as input seems more than enough
3236
    test $ac_count -gt 10 && break
3237
  done
3238
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3239
esac
3240
 
3241
      $ac_path_GREP_found && break 3
3242
    done
3243
  done
3244
done
3245
IFS=$as_save_IFS
3246
  if test -z "$ac_cv_path_GREP"; then
3247
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3248
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3249
   { (exit 1); exit 1; }; }
3250
  fi
3251
else
3252
  ac_cv_path_GREP=$GREP
3253
fi
3254
 
3255
fi
3256
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3257
$as_echo "$ac_cv_path_GREP" >&6; }
3258
 GREP="$ac_cv_path_GREP"
3259
 
3260
 
3261
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3262
$as_echo_n "checking for egrep... " >&6; }
3263
if test "${ac_cv_path_EGREP+set}" = set; then
3264
  $as_echo_n "(cached) " >&6
3265
else
3266
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3267
   then ac_cv_path_EGREP="$GREP -E"
3268
   else
3269
     if test -z "$EGREP"; then
3270
  ac_path_EGREP_found=false
3271
  # Loop through the user's path and test for each of PROGNAME-LIST
3272
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3274
do
3275
  IFS=$as_save_IFS
3276
  test -z "$as_dir" && as_dir=.
3277
  for ac_prog in egrep; do
3278
    for ac_exec_ext in '' $ac_executable_extensions; do
3279
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3280
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3281
# Check for GNU ac_path_EGREP and select it if it is found.
3282
  # Check for GNU $ac_path_EGREP
3283
case `"$ac_path_EGREP" --version 2>&1` in
3284
*GNU*)
3285
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3286
*)
3287
  ac_count=0
3288
  $as_echo_n 0123456789 >"conftest.in"
3289
  while :
3290
  do
3291
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3292
    mv "conftest.tmp" "conftest.in"
3293
    cp "conftest.in" "conftest.nl"
3294
    $as_echo 'EGREP' >> "conftest.nl"
3295
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3296
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3297
    ac_count=`expr $ac_count + 1`
3298
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3299
      # Best one so far, save it but keep looking for a better one
3300
      ac_cv_path_EGREP="$ac_path_EGREP"
3301
      ac_path_EGREP_max=$ac_count
3302
    fi
3303
    # 10*(2^10) chars as input seems more than enough
3304
    test $ac_count -gt 10 && break
3305
  done
3306
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3307
esac
3308
 
3309
      $ac_path_EGREP_found && break 3
3310
    done
3311
  done
3312
done
3313
IFS=$as_save_IFS
3314
  if test -z "$ac_cv_path_EGREP"; then
3315
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3316
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3317
   { (exit 1); exit 1; }; }
3318
  fi
3319
else
3320
  ac_cv_path_EGREP=$EGREP
3321
fi
3322
 
3323
   fi
3324
fi
3325
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3326
$as_echo "$ac_cv_path_EGREP" >&6; }
3327
 EGREP="$ac_cv_path_EGREP"
3328
 
3329
 
3330
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3331
$as_echo_n "checking for fgrep... " >&6; }
3332
if test "${ac_cv_path_FGREP+set}" = set; then
3333
  $as_echo_n "(cached) " >&6
3334
else
3335
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3336
   then ac_cv_path_FGREP="$GREP -F"
3337
   else
3338
     if test -z "$FGREP"; then
3339
  ac_path_FGREP_found=false
3340
  # Loop through the user's path and test for each of PROGNAME-LIST
3341
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3343
do
3344
  IFS=$as_save_IFS
3345
  test -z "$as_dir" && as_dir=.
3346
  for ac_prog in fgrep; do
3347
    for ac_exec_ext in '' $ac_executable_extensions; do
3348
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3349
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3350
# Check for GNU ac_path_FGREP and select it if it is found.
3351
  # Check for GNU $ac_path_FGREP
3352
case `"$ac_path_FGREP" --version 2>&1` in
3353
*GNU*)
3354
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3355
*)
3356
  ac_count=0
3357
  $as_echo_n 0123456789 >"conftest.in"
3358
  while :
3359
  do
3360
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3361
    mv "conftest.tmp" "conftest.in"
3362
    cp "conftest.in" "conftest.nl"
3363
    $as_echo 'FGREP' >> "conftest.nl"
3364
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3365
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3366
    ac_count=`expr $ac_count + 1`
3367
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3368
      # Best one so far, save it but keep looking for a better one
3369
      ac_cv_path_FGREP="$ac_path_FGREP"
3370
      ac_path_FGREP_max=$ac_count
3371
    fi
3372
    # 10*(2^10) chars as input seems more than enough
3373
    test $ac_count -gt 10 && break
3374
  done
3375
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3376
esac
3377
 
3378
      $ac_path_FGREP_found && break 3
3379
    done
3380
  done
3381
done
3382
IFS=$as_save_IFS
3383
  if test -z "$ac_cv_path_FGREP"; then
3384
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3385
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3386
   { (exit 1); exit 1; }; }
3387
  fi
3388
else
3389
  ac_cv_path_FGREP=$FGREP
3390
fi
3391
 
3392
   fi
3393
fi
3394
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3395
$as_echo "$ac_cv_path_FGREP" >&6; }
3396
 FGREP="$ac_cv_path_FGREP"
3397
 
3398
 
3399
test -z "$GREP" && GREP=grep
3400
 
3401
 
3402
 
3403
 
3404
 
3405
 
3406
 
3407
 
3408
 
3409
 
3410
 
3411
 
3412
 
3413
 
3414
 
3415
 
3416
 
3417
 
3418
 
3419
# Check whether --with-gnu-ld was given.
3420
if test "${with_gnu_ld+set}" = set; then
3421
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3422
else
3423
  with_gnu_ld=no
3424
fi
3425
 
3426
ac_prog=ld
3427
if test "$GCC" = yes; then
3428
  # Check if gcc -print-prog-name=ld gives a path.
3429
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3430
$as_echo_n "checking for ld used by $CC... " >&6; }
3431
  case $host in
3432
  *-*-mingw*)
3433
    # gcc leaves a trailing carriage return which upsets mingw
3434
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3435
  *)
3436
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3437
  esac
3438
  case $ac_prog in
3439
    # Accept absolute paths.
3440
    [\\/]* | ?:[\\/]*)
3441
      re_direlt='/[^/][^/]*/\.\./'
3442
      # Canonicalize the pathname of ld
3443
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3444
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3445
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3446
      done
3447
      test -z "$LD" && LD="$ac_prog"
3448
      ;;
3449
  "")
3450
    # If it fails, then pretend we aren't using GCC.
3451
    ac_prog=ld
3452
    ;;
3453
  *)
3454
    # If it is relative, then search for the first ld in PATH.
3455
    with_gnu_ld=unknown
3456
    ;;
3457
  esac
3458
elif test "$with_gnu_ld" = yes; then
3459
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3460
$as_echo_n "checking for GNU ld... " >&6; }
3461
else
3462
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3463
$as_echo_n "checking for non-GNU ld... " >&6; }
3464
fi
3465
if test "${lt_cv_path_LD+set}" = set; then
3466
  $as_echo_n "(cached) " >&6
3467
else
3468
  if test -z "$LD"; then
3469
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3470
  for ac_dir in $PATH; do
3471
    IFS="$lt_save_ifs"
3472
    test -z "$ac_dir" && ac_dir=.
3473
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3474
      lt_cv_path_LD="$ac_dir/$ac_prog"
3475
      # Check to see if the program is GNU ld.  I'd rather use --version,
3476
      # but apparently some variants of GNU ld only accept -v.
3477
      # Break only if it was the GNU/non-GNU ld that we prefer.
3478
      case `"$lt_cv_path_LD" -v 2>&1 
3479
      *GNU* | *'with BFD'*)
3480
        test "$with_gnu_ld" != no && break
3481
        ;;
3482
      *)
3483
        test "$with_gnu_ld" != yes && break
3484
        ;;
3485
      esac
3486
    fi
3487
  done
3488
  IFS="$lt_save_ifs"
3489
else
3490
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3491
fi
3492
fi
3493
 
3494
LD="$lt_cv_path_LD"
3495
if test -n "$LD"; then
3496
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
3497
$as_echo "$LD" >&6; }
3498
else
3499
  { $as_echo "$as_me:$LINENO: result: no" >&5
3500
$as_echo "no" >&6; }
3501
fi
3502
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3503
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3504
   { (exit 1); exit 1; }; }
3505
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3506
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3507
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3508
  $as_echo_n "(cached) " >&6
3509
else
3510
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3511
case `$LD -v 2>&1 
3512
*GNU* | *'with BFD'*)
3513
  lt_cv_prog_gnu_ld=yes
3514
  ;;
3515
*)
3516
  lt_cv_prog_gnu_ld=no
3517
  ;;
3518
esac
3519
fi
3520
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3521
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3522
with_gnu_ld=$lt_cv_prog_gnu_ld
3523
 
3524
 
3525
 
3526
 
3527
 
3528
 
3529
 
3530
 
3531
 
3532
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3533
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3534
if test "${lt_cv_path_NM+set}" = set; then
3535
  $as_echo_n "(cached) " >&6
3536
else
3537
  if test -n "$NM"; then
3538
  # Let the user override the test.
3539
  lt_cv_path_NM="$NM"
3540
else
3541
  lt_nm_to_check="${ac_tool_prefix}nm"
3542
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3543
    lt_nm_to_check="$lt_nm_to_check nm"
3544
  fi
3545
  for lt_tmp_nm in $lt_nm_to_check; do
3546
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3547
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3548
      IFS="$lt_save_ifs"
3549
      test -z "$ac_dir" && ac_dir=.
3550
      tmp_nm="$ac_dir/$lt_tmp_nm"
3551
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3552
        # Check to see if the nm accepts a BSD-compat flag.
3553
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3554
        #   nm: unknown option "B" ignored
3555
        # Tru64's nm complains that /dev/null is an invalid object file
3556
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3557
        */dev/null* | *'Invalid file or object type'*)
3558
          lt_cv_path_NM="$tmp_nm -B"
3559
          break
3560
          ;;
3561
        *)
3562
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3563
          */dev/null*)
3564
            lt_cv_path_NM="$tmp_nm -p"
3565
            break
3566
            ;;
3567
          *)
3568
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3569
            continue # so that we can try to find one that supports BSD flags
3570
            ;;
3571
          esac
3572
          ;;
3573
        esac
3574
      fi
3575
    done
3576
    IFS="$lt_save_ifs"
3577
  done
3578
  : ${lt_cv_path_NM=no}
3579
fi
3580
fi
3581
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3582
$as_echo "$lt_cv_path_NM" >&6; }
3583
if test "$lt_cv_path_NM" != "no"; then
3584
  NM="$lt_cv_path_NM"
3585
else
3586
  # Didn't find any BSD compatible name lister, look for dumpbin.
3587
  if test -n "$ac_tool_prefix"; then
3588
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3589
  do
3590
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3591
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3592
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3593
$as_echo_n "checking for $ac_word... " >&6; }
3594
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3595
  $as_echo_n "(cached) " >&6
3596
else
3597
  if test -n "$DUMPBIN"; then
3598
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3599
else
3600
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601
for as_dir in $PATH
3602
do
3603
  IFS=$as_save_IFS
3604
  test -z "$as_dir" && as_dir=.
3605
  for ac_exec_ext in '' $ac_executable_extensions; do
3606
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3608
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609
    break 2
3610
  fi
3611
done
3612
done
3613
IFS=$as_save_IFS
3614
 
3615
fi
3616
fi
3617
DUMPBIN=$ac_cv_prog_DUMPBIN
3618
if test -n "$DUMPBIN"; then
3619
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3620
$as_echo "$DUMPBIN" >&6; }
3621
else
3622
  { $as_echo "$as_me:$LINENO: result: no" >&5
3623
$as_echo "no" >&6; }
3624
fi
3625
 
3626
 
3627
    test -n "$DUMPBIN" && break
3628
  done
3629
fi
3630
if test -z "$DUMPBIN"; then
3631
  ac_ct_DUMPBIN=$DUMPBIN
3632
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3633
do
3634
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3635
set dummy $ac_prog; ac_word=$2
3636
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3637
$as_echo_n "checking for $ac_word... " >&6; }
3638
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3639
  $as_echo_n "(cached) " >&6
3640
else
3641
  if test -n "$ac_ct_DUMPBIN"; then
3642
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3643
else
3644
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645
for as_dir in $PATH
3646
do
3647
  IFS=$as_save_IFS
3648
  test -z "$as_dir" && as_dir=.
3649
  for ac_exec_ext in '' $ac_executable_extensions; do
3650
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3651
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3652
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3653
    break 2
3654
  fi
3655
done
3656
done
3657
IFS=$as_save_IFS
3658
 
3659
fi
3660
fi
3661
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3662
if test -n "$ac_ct_DUMPBIN"; then
3663
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3664
$as_echo "$ac_ct_DUMPBIN" >&6; }
3665
else
3666
  { $as_echo "$as_me:$LINENO: result: no" >&5
3667
$as_echo "no" >&6; }
3668
fi
3669
 
3670
 
3671
  test -n "$ac_ct_DUMPBIN" && break
3672
done
3673
 
3674
  if test "x$ac_ct_DUMPBIN" = x; then
3675
    DUMPBIN=":"
3676
  else
3677
    case $cross_compiling:$ac_tool_warned in
3678
yes:)
3679
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3680
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3681
ac_tool_warned=yes ;;
3682
esac
3683
    DUMPBIN=$ac_ct_DUMPBIN
3684
  fi
3685
fi
3686
 
3687
 
3688
  if test "$DUMPBIN" != ":"; then
3689
    NM="$DUMPBIN"
3690
  fi
3691
fi
3692
test -z "$NM" && NM=nm
3693
 
3694
 
3695
 
3696
 
3697
 
3698
 
3699
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3700
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3701
if test "${lt_cv_nm_interface+set}" = set; then
3702
  $as_echo_n "(cached) " >&6
3703
else
3704
  lt_cv_nm_interface="BSD nm"
3705
  echo "int some_variable = 0;" > conftest.$ac_ext
3706
  (eval echo "\"\$as_me:3706: $ac_compile\"" >&5)
3707
  (eval "$ac_compile" 2>conftest.err)
3708
  cat conftest.err >&5
3709
  (eval echo "\"\$as_me:3709: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3710
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3711
  cat conftest.err >&5
3712
  (eval echo "\"\$as_me:3712: output\"" >&5)
3713
  cat conftest.out >&5
3714
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3715
    lt_cv_nm_interface="MS dumpbin"
3716
  fi
3717
  rm -f conftest*
3718
fi
3719
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3720
$as_echo "$lt_cv_nm_interface" >&6; }
3721
 
3722
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3723
$as_echo_n "checking whether ln -s works... " >&6; }
3724
LN_S=$as_ln_s
3725
if test "$LN_S" = "ln -s"; then
3726
  { $as_echo "$as_me:$LINENO: result: yes" >&5
3727
$as_echo "yes" >&6; }
3728
else
3729
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3730
$as_echo "no, using $LN_S" >&6; }
3731
fi
3732
 
3733
# find the maximum length of command line arguments
3734
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3735
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3736
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3737
  $as_echo_n "(cached) " >&6
3738
else
3739
    i=0
3740
  teststring="ABCD"
3741
 
3742
  case $build_os in
3743
  msdosdjgpp*)
3744
    # On DJGPP, this test can blow up pretty badly due to problems in libc
3745
    # (any single argument exceeding 2000 bytes causes a buffer overrun
3746
    # during glob expansion).  Even if it were fixed, the result of this
3747
    # check would be larger than it should be.
3748
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3749
    ;;
3750
 
3751
  gnu*)
3752
    # Under GNU Hurd, this test is not required because there is
3753
    # no limit to the length of command line arguments.
3754
    # Libtool will interpret -1 as no limit whatsoever
3755
    lt_cv_sys_max_cmd_len=-1;
3756
    ;;
3757
 
3758
  cygwin* | mingw* | cegcc*)
3759
    # On Win9x/ME, this test blows up -- it succeeds, but takes
3760
    # about 5 minutes as the teststring grows exponentially.
3761
    # Worse, since 9x/ME are not pre-emptively multitasking,
3762
    # you end up with a "frozen" computer, even though with patience
3763
    # the test eventually succeeds (with a max line length of 256k).
3764
    # Instead, let's just punt: use the minimum linelength reported by
3765
    # all of the supported platforms: 8192 (on NT/2K/XP).
3766
    lt_cv_sys_max_cmd_len=8192;
3767
    ;;
3768
 
3769
  amigaos*)
3770
    # On AmigaOS with pdksh, this test takes hours, literally.
3771
    # So we just punt and use a minimum line length of 8192.
3772
    lt_cv_sys_max_cmd_len=8192;
3773
    ;;
3774
 
3775
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3776
    # This has been around since 386BSD, at least.  Likely further.
3777
    if test -x /sbin/sysctl; then
3778
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3779
    elif test -x /usr/sbin/sysctl; then
3780
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3781
    else
3782
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3783
    fi
3784
    # And add a safety zone
3785
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3786
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3787
    ;;
3788
 
3789
  interix*)
3790
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3791
    lt_cv_sys_max_cmd_len=196608
3792
    ;;
3793
 
3794
  osf*)
3795
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3796
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3797
    # nice to cause kernel panics so lets avoid the loop below.
3798
    # First set a reasonable default.
3799
    lt_cv_sys_max_cmd_len=16384
3800
    #
3801
    if test -x /sbin/sysconfig; then
3802
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3803
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3804
      esac
3805
    fi
3806
    ;;
3807
  sco3.2v5*)
3808
    lt_cv_sys_max_cmd_len=102400
3809
    ;;
3810
  sysv5* | sco5v6* | sysv4.2uw2*)
3811
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3812
    if test -n "$kargmax"; then
3813
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3814
    else
3815
      lt_cv_sys_max_cmd_len=32768
3816
    fi
3817
    ;;
3818
  *)
3819
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3820
    if test -n "$lt_cv_sys_max_cmd_len"; then
3821
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3822
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3823
    else
3824
      # Make teststring a little bigger before we do anything with it.
3825
      # a 1K string should be a reasonable start.
3826
      for i in 1 2 3 4 5 6 7 8 ; do
3827
        teststring=$teststring$teststring
3828
      done
3829
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3830
      # If test is not a shell built-in, we'll probably end up computing a
3831
      # maximum length that is only half of the actual maximum length, but
3832
      # we can't tell.
3833
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3834
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3835
              test $i != 17 # 1/2 MB should be enough
3836
      do
3837
        i=`expr $i + 1`
3838
        teststring=$teststring$teststring
3839
      done
3840
      # Only check the string length outside the loop.
3841
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3842
      teststring=
3843
      # Add a significant safety factor because C++ compilers can tack on
3844
      # massive amounts of additional arguments before passing them to the
3845
      # linker.  It appears as though 1/2 is a usable value.
3846
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3847
    fi
3848
    ;;
3849
  esac
3850
 
3851
fi
3852
 
3853
if test -n $lt_cv_sys_max_cmd_len ; then
3854
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3855
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3856
else
3857
  { $as_echo "$as_me:$LINENO: result: none" >&5
3858
$as_echo "none" >&6; }
3859
fi
3860
max_cmd_len=$lt_cv_sys_max_cmd_len
3861
 
3862
 
3863
 
3864
 
3865
 
3866
 
3867
: ${CP="cp -f"}
3868
: ${MV="mv -f"}
3869
: ${RM="rm -f"}
3870
 
3871
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3872
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3873
# Try some XSI features
3874
xsi_shell=no
3875
( _lt_dummy="a/b/c"
3876
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3877
      = c,a/b,, \
3878
    && eval 'test $(( 1 + 1 )) -eq 2 \
3879
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3880
  && xsi_shell=yes
3881
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3882
$as_echo "$xsi_shell" >&6; }
3883
 
3884
 
3885
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3886
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3887
lt_shell_append=no
3888
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3889
    >/dev/null 2>&1 \
3890
  && lt_shell_append=yes
3891
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3892
$as_echo "$lt_shell_append" >&6; }
3893
 
3894
 
3895
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3896
  lt_unset=unset
3897
else
3898
  lt_unset=false
3899
fi
3900
 
3901
 
3902
 
3903
 
3904
 
3905
# test EBCDIC or ASCII
3906
case `echo X|tr X '\101'` in
3907
 A) # ASCII based system
3908
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3909
  lt_SP2NL='tr \040 \012'
3910
  lt_NL2SP='tr \015\012 \040\040'
3911
  ;;
3912
 *) # EBCDIC based system
3913
  lt_SP2NL='tr \100 \n'
3914
  lt_NL2SP='tr \r\n \100\100'
3915
  ;;
3916
esac
3917
 
3918
 
3919
 
3920
 
3921
 
3922
 
3923
 
3924
 
3925
 
3926
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3927
$as_echo_n "checking for $LD option to reload object files... " >&6; }
3928
if test "${lt_cv_ld_reload_flag+set}" = set; then
3929
  $as_echo_n "(cached) " >&6
3930
else
3931
  lt_cv_ld_reload_flag='-r'
3932
fi
3933
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3934
$as_echo "$lt_cv_ld_reload_flag" >&6; }
3935
reload_flag=$lt_cv_ld_reload_flag
3936
case $reload_flag in
3937
"" | " "*) ;;
3938
*) reload_flag=" $reload_flag" ;;
3939
esac
3940
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3941
case $host_os in
3942
  darwin*)
3943
    if test "$GCC" = yes; then
3944
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3945
    else
3946
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3947
    fi
3948
    ;;
3949
esac
3950
 
3951
 
3952
 
3953
 
3954
 
3955
 
3956
 
3957
 
3958
 
3959
if test -n "$ac_tool_prefix"; then
3960
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3961
set dummy ${ac_tool_prefix}objdump; ac_word=$2
3962
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3963
$as_echo_n "checking for $ac_word... " >&6; }
3964
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3965
  $as_echo_n "(cached) " >&6
3966
else
3967
  if test -n "$OBJDUMP"; then
3968
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3969
else
3970
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971
for as_dir in $PATH
3972
do
3973
  IFS=$as_save_IFS
3974
  test -z "$as_dir" && as_dir=.
3975
  for ac_exec_ext in '' $ac_executable_extensions; do
3976
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3977
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3978
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979
    break 2
3980
  fi
3981
done
3982
done
3983
IFS=$as_save_IFS
3984
 
3985
fi
3986
fi
3987
OBJDUMP=$ac_cv_prog_OBJDUMP
3988
if test -n "$OBJDUMP"; then
3989
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3990
$as_echo "$OBJDUMP" >&6; }
3991
else
3992
  { $as_echo "$as_me:$LINENO: result: no" >&5
3993
$as_echo "no" >&6; }
3994
fi
3995
 
3996
 
3997
fi
3998
if test -z "$ac_cv_prog_OBJDUMP"; then
3999
  ac_ct_OBJDUMP=$OBJDUMP
4000
  # Extract the first word of "objdump", so it can be a program name with args.
4001
set dummy objdump; ac_word=$2
4002
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4003
$as_echo_n "checking for $ac_word... " >&6; }
4004
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4005
  $as_echo_n "(cached) " >&6
4006
else
4007
  if test -n "$ac_ct_OBJDUMP"; then
4008
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4009
else
4010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011
for as_dir in $PATH
4012
do
4013
  IFS=$as_save_IFS
4014
  test -z "$as_dir" && as_dir=.
4015
  for ac_exec_ext in '' $ac_executable_extensions; do
4016
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4017
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4018
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019
    break 2
4020
  fi
4021
done
4022
done
4023
IFS=$as_save_IFS
4024
 
4025
fi
4026
fi
4027
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4028
if test -n "$ac_ct_OBJDUMP"; then
4029
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4030
$as_echo "$ac_ct_OBJDUMP" >&6; }
4031
else
4032
  { $as_echo "$as_me:$LINENO: result: no" >&5
4033
$as_echo "no" >&6; }
4034
fi
4035
 
4036
  if test "x$ac_ct_OBJDUMP" = x; then
4037
    OBJDUMP="false"
4038
  else
4039
    case $cross_compiling:$ac_tool_warned in
4040
yes:)
4041
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4042
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4043
ac_tool_warned=yes ;;
4044
esac
4045
    OBJDUMP=$ac_ct_OBJDUMP
4046
  fi
4047
else
4048
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4049
fi
4050
 
4051
test -z "$OBJDUMP" && OBJDUMP=objdump
4052
 
4053
 
4054
 
4055
 
4056
 
4057
 
4058
 
4059
 
4060
 
4061
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4062
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4063
if test "${lt_cv_deplibs_check_method+set}" = set; then
4064
  $as_echo_n "(cached) " >&6
4065
else
4066
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4067
lt_cv_file_magic_test_file=
4068
lt_cv_deplibs_check_method='unknown'
4069
# Need to set the preceding variable on all platforms that support
4070
# interlibrary dependencies.
4071
# 'none' -- dependencies not supported.
4072
# `unknown' -- same as none, but documents that we really don't know.
4073
# 'pass_all' -- all dependencies passed with no checks.
4074
# 'test_compile' -- check by making test program.
4075
# 'file_magic [[regex]]' -- check by looking for files in library path
4076
# which responds to the $file_magic_cmd with a given extended regex.
4077
# If you have `file' or equivalent on your system and you're not sure
4078
# whether `pass_all' will *always* work, you probably want this one.
4079
 
4080
case $host_os in
4081
aix[4-9]*)
4082
  lt_cv_deplibs_check_method=pass_all
4083
  ;;
4084
 
4085
beos*)
4086
  lt_cv_deplibs_check_method=pass_all
4087
  ;;
4088
 
4089
bsdi[45]*)
4090
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4091
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4092
  lt_cv_file_magic_test_file=/shlib/libc.so
4093
  ;;
4094
 
4095
cygwin*)
4096
  # func_win32_libid is a shell function defined in ltmain.sh
4097
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4098
  lt_cv_file_magic_cmd='func_win32_libid'
4099
  ;;
4100
 
4101
mingw* | pw32*)
4102
  # Base MSYS/MinGW do not provide the 'file' command needed by
4103
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4104
  # unless we find 'file', for example because we are cross-compiling.
4105
  if ( file / ) >/dev/null 2>&1; then
4106
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4107
    lt_cv_file_magic_cmd='func_win32_libid'
4108
  else
4109
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4110
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4111
  fi
4112
  ;;
4113
 
4114
cegcc)
4115
  # use the weaker test based on 'objdump'. See mingw*.
4116
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4117
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4118
  ;;
4119
 
4120
darwin* | rhapsody*)
4121
  lt_cv_deplibs_check_method=pass_all
4122
  ;;
4123
 
4124
freebsd* | dragonfly*)
4125
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4126
    case $host_cpu in
4127
    i*86 )
4128
      # Not sure whether the presence of OpenBSD here was a mistake.
4129
      # Let's accept both of them until this is cleared up.
4130
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4131
      lt_cv_file_magic_cmd=/usr/bin/file
4132
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4133
      ;;
4134
    esac
4135
  else
4136
    lt_cv_deplibs_check_method=pass_all
4137
  fi
4138
  ;;
4139
 
4140
gnu*)
4141
  lt_cv_deplibs_check_method=pass_all
4142
  ;;
4143
 
4144
hpux10.20* | hpux11*)
4145
  lt_cv_file_magic_cmd=/usr/bin/file
4146
  case $host_cpu in
4147
  ia64*)
4148
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4149
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4150
    ;;
4151
  hppa*64*)
4152
    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]'
4153
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4154
    ;;
4155
  *)
4156
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4157
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4158
    ;;
4159
  esac
4160
  ;;
4161
 
4162
interix[3-9]*)
4163
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4164
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4165
  ;;
4166
 
4167
irix5* | irix6* | nonstopux*)
4168
  case $LD in
4169
  *-32|*"-32 ") libmagic=32-bit;;
4170
  *-n32|*"-n32 ") libmagic=N32;;
4171
  *-64|*"-64 ") libmagic=64-bit;;
4172
  *) libmagic=never-match;;
4173
  esac
4174
  lt_cv_deplibs_check_method=pass_all
4175
  ;;
4176
 
4177
# This must be Linux ELF.
4178
linux* | k*bsd*-gnu)
4179
  lt_cv_deplibs_check_method=pass_all
4180
  ;;
4181
 
4182
netbsd*)
4183
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4184
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4185
  else
4186
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4187
  fi
4188
  ;;
4189
 
4190
newos6*)
4191
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4192
  lt_cv_file_magic_cmd=/usr/bin/file
4193
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4194
  ;;
4195
 
4196
*nto* | *qnx*)
4197
  lt_cv_deplibs_check_method=pass_all
4198
  ;;
4199
 
4200
openbsd*)
4201
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4202
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4203
  else
4204
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4205
  fi
4206
  ;;
4207
 
4208
osf3* | osf4* | osf5*)
4209
  lt_cv_deplibs_check_method=pass_all
4210
  ;;
4211
 
4212
rdos*)
4213
  lt_cv_deplibs_check_method=pass_all
4214
  ;;
4215
 
4216
solaris*)
4217
  lt_cv_deplibs_check_method=pass_all
4218
  ;;
4219
 
4220
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4221
  lt_cv_deplibs_check_method=pass_all
4222
  ;;
4223
 
4224
sysv4 | sysv4.3*)
4225
  case $host_vendor in
4226
  motorola)
4227
    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]'
4228
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4229
    ;;
4230
  ncr)
4231
    lt_cv_deplibs_check_method=pass_all
4232
    ;;
4233
  sequent)
4234
    lt_cv_file_magic_cmd='/bin/file'
4235
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4236
    ;;
4237
  sni)
4238
    lt_cv_file_magic_cmd='/bin/file'
4239
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4240
    lt_cv_file_magic_test_file=/lib/libc.so
4241
    ;;
4242
  siemens)
4243
    lt_cv_deplibs_check_method=pass_all
4244
    ;;
4245
  pc)
4246
    lt_cv_deplibs_check_method=pass_all
4247
    ;;
4248
  esac
4249
  ;;
4250
 
4251
tpf*)
4252
  lt_cv_deplibs_check_method=pass_all
4253
  ;;
4254
esac
4255
 
4256
fi
4257
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4258
$as_echo "$lt_cv_deplibs_check_method" >&6; }
4259
file_magic_cmd=$lt_cv_file_magic_cmd
4260
deplibs_check_method=$lt_cv_deplibs_check_method
4261
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4262
 
4263
 
4264
 
4265
 
4266
 
4267
 
4268
 
4269
 
4270
 
4271
 
4272
 
4273
 
4274
if test -n "$ac_tool_prefix"; then
4275
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4276
set dummy ${ac_tool_prefix}ar; ac_word=$2
4277
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4278
$as_echo_n "checking for $ac_word... " >&6; }
4279
if test "${ac_cv_prog_AR+set}" = set; then
4280
  $as_echo_n "(cached) " >&6
4281
else
4282
  if test -n "$AR"; then
4283
  ac_cv_prog_AR="$AR" # Let the user override the test.
4284
else
4285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286
for as_dir in $PATH
4287
do
4288
  IFS=$as_save_IFS
4289
  test -z "$as_dir" && as_dir=.
4290
  for ac_exec_ext in '' $ac_executable_extensions; do
4291
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4292
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4293
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294
    break 2
4295
  fi
4296
done
4297
done
4298
IFS=$as_save_IFS
4299
 
4300
fi
4301
fi
4302
AR=$ac_cv_prog_AR
4303
if test -n "$AR"; then
4304
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
4305
$as_echo "$AR" >&6; }
4306
else
4307
  { $as_echo "$as_me:$LINENO: result: no" >&5
4308
$as_echo "no" >&6; }
4309
fi
4310
 
4311
 
4312
fi
4313
if test -z "$ac_cv_prog_AR"; then
4314
  ac_ct_AR=$AR
4315
  # Extract the first word of "ar", so it can be a program name with args.
4316
set dummy ar; ac_word=$2
4317
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4318
$as_echo_n "checking for $ac_word... " >&6; }
4319
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4320
  $as_echo_n "(cached) " >&6
4321
else
4322
  if test -n "$ac_ct_AR"; then
4323
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4324
else
4325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326
for as_dir in $PATH
4327
do
4328
  IFS=$as_save_IFS
4329
  test -z "$as_dir" && as_dir=.
4330
  for ac_exec_ext in '' $ac_executable_extensions; do
4331
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332
    ac_cv_prog_ac_ct_AR="ar"
4333
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334
    break 2
4335
  fi
4336
done
4337
done
4338
IFS=$as_save_IFS
4339
 
4340
fi
4341
fi
4342
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4343
if test -n "$ac_ct_AR"; then
4344
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4345
$as_echo "$ac_ct_AR" >&6; }
4346
else
4347
  { $as_echo "$as_me:$LINENO: result: no" >&5
4348
$as_echo "no" >&6; }
4349
fi
4350
 
4351
  if test "x$ac_ct_AR" = x; then
4352
    AR="false"
4353
  else
4354
    case $cross_compiling:$ac_tool_warned in
4355
yes:)
4356
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4357
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4358
ac_tool_warned=yes ;;
4359
esac
4360
    AR=$ac_ct_AR
4361
  fi
4362
else
4363
  AR="$ac_cv_prog_AR"
4364
fi
4365
 
4366
test -z "$AR" && AR=ar
4367
test -z "$AR_FLAGS" && AR_FLAGS=cru
4368
 
4369
 
4370
 
4371
 
4372
 
4373
 
4374
 
4375
 
4376
 
4377
 
4378
 
4379
if test -n "$ac_tool_prefix"; then
4380
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4381
set dummy ${ac_tool_prefix}strip; ac_word=$2
4382
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4383
$as_echo_n "checking for $ac_word... " >&6; }
4384
if test "${ac_cv_prog_STRIP+set}" = set; then
4385
  $as_echo_n "(cached) " >&6
4386
else
4387
  if test -n "$STRIP"; then
4388
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4389
else
4390
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391
for as_dir in $PATH
4392
do
4393
  IFS=$as_save_IFS
4394
  test -z "$as_dir" && as_dir=.
4395
  for ac_exec_ext in '' $ac_executable_extensions; do
4396
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4398
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399
    break 2
4400
  fi
4401
done
4402
done
4403
IFS=$as_save_IFS
4404
 
4405
fi
4406
fi
4407
STRIP=$ac_cv_prog_STRIP
4408
if test -n "$STRIP"; then
4409
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4410
$as_echo "$STRIP" >&6; }
4411
else
4412
  { $as_echo "$as_me:$LINENO: result: no" >&5
4413
$as_echo "no" >&6; }
4414
fi
4415
 
4416
 
4417
fi
4418
if test -z "$ac_cv_prog_STRIP"; then
4419
  ac_ct_STRIP=$STRIP
4420
  # Extract the first word of "strip", so it can be a program name with args.
4421
set dummy strip; ac_word=$2
4422
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4423
$as_echo_n "checking for $ac_word... " >&6; }
4424
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4425
  $as_echo_n "(cached) " >&6
4426
else
4427
  if test -n "$ac_ct_STRIP"; then
4428
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4429
else
4430
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431
for as_dir in $PATH
4432
do
4433
  IFS=$as_save_IFS
4434
  test -z "$as_dir" && as_dir=.
4435
  for ac_exec_ext in '' $ac_executable_extensions; do
4436
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4437
    ac_cv_prog_ac_ct_STRIP="strip"
4438
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439
    break 2
4440
  fi
4441
done
4442
done
4443
IFS=$as_save_IFS
4444
 
4445
fi
4446
fi
4447
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4448
if test -n "$ac_ct_STRIP"; then
4449
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4450
$as_echo "$ac_ct_STRIP" >&6; }
4451
else
4452
  { $as_echo "$as_me:$LINENO: result: no" >&5
4453
$as_echo "no" >&6; }
4454
fi
4455
 
4456
  if test "x$ac_ct_STRIP" = x; then
4457
    STRIP=":"
4458
  else
4459
    case $cross_compiling:$ac_tool_warned in
4460
yes:)
4461
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4462
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463
ac_tool_warned=yes ;;
4464
esac
4465
    STRIP=$ac_ct_STRIP
4466
  fi
4467
else
4468
  STRIP="$ac_cv_prog_STRIP"
4469
fi
4470
 
4471
test -z "$STRIP" && STRIP=:
4472
 
4473
 
4474
 
4475
 
4476
 
4477
 
4478
if test -n "$ac_tool_prefix"; then
4479
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4480
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4481
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4482
$as_echo_n "checking for $ac_word... " >&6; }
4483
if test "${ac_cv_prog_RANLIB+set}" = set; then
4484
  $as_echo_n "(cached) " >&6
4485
else
4486
  if test -n "$RANLIB"; then
4487
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4488
else
4489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490
for as_dir in $PATH
4491
do
4492
  IFS=$as_save_IFS
4493
  test -z "$as_dir" && as_dir=.
4494
  for ac_exec_ext in '' $ac_executable_extensions; do
4495
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4497
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498
    break 2
4499
  fi
4500
done
4501
done
4502
IFS=$as_save_IFS
4503
 
4504
fi
4505
fi
4506
RANLIB=$ac_cv_prog_RANLIB
4507
if test -n "$RANLIB"; then
4508
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4509
$as_echo "$RANLIB" >&6; }
4510
else
4511
  { $as_echo "$as_me:$LINENO: result: no" >&5
4512
$as_echo "no" >&6; }
4513
fi
4514
 
4515
 
4516
fi
4517
if test -z "$ac_cv_prog_RANLIB"; then
4518
  ac_ct_RANLIB=$RANLIB
4519
  # Extract the first word of "ranlib", so it can be a program name with args.
4520
set dummy ranlib; ac_word=$2
4521
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4522
$as_echo_n "checking for $ac_word... " >&6; }
4523
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4524
  $as_echo_n "(cached) " >&6
4525
else
4526
  if test -n "$ac_ct_RANLIB"; then
4527
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4528
else
4529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530
for as_dir in $PATH
4531
do
4532
  IFS=$as_save_IFS
4533
  test -z "$as_dir" && as_dir=.
4534
  for ac_exec_ext in '' $ac_executable_extensions; do
4535
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4537
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538
    break 2
4539
  fi
4540
done
4541
done
4542
IFS=$as_save_IFS
4543
 
4544
fi
4545
fi
4546
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4547
if test -n "$ac_ct_RANLIB"; then
4548
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4549
$as_echo "$ac_ct_RANLIB" >&6; }
4550
else
4551
  { $as_echo "$as_me:$LINENO: result: no" >&5
4552
$as_echo "no" >&6; }
4553
fi
4554
 
4555
  if test "x$ac_ct_RANLIB" = x; then
4556
    RANLIB=":"
4557
  else
4558
    case $cross_compiling:$ac_tool_warned in
4559
yes:)
4560
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4561
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4562
ac_tool_warned=yes ;;
4563
esac
4564
    RANLIB=$ac_ct_RANLIB
4565
  fi
4566
else
4567
  RANLIB="$ac_cv_prog_RANLIB"
4568
fi
4569
 
4570
test -z "$RANLIB" && RANLIB=:
4571
 
4572
 
4573
 
4574
 
4575
 
4576
 
4577
# Determine commands to create old-style static archives.
4578
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4579
old_postinstall_cmds='chmod 644 $oldlib'
4580
old_postuninstall_cmds=
4581
 
4582
if test -n "$RANLIB"; then
4583
  case $host_os in
4584
  openbsd*)
4585
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4586
    ;;
4587
  *)
4588
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4589
    ;;
4590
  esac
4591
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4592
fi
4593
 
4594
 
4595
 
4596
 
4597
 
4598
 
4599
 
4600
 
4601
 
4602
 
4603
 
4604
 
4605
 
4606
 
4607
 
4608
 
4609
 
4610
 
4611
 
4612
 
4613
 
4614
 
4615
 
4616
 
4617
 
4618
 
4619
 
4620
 
4621
 
4622
 
4623
 
4624
 
4625
 
4626
 
4627
# If no C compiler was specified, use CC.
4628
LTCC=${LTCC-"$CC"}
4629
 
4630
# If no C compiler flags were specified, use CFLAGS.
4631
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4632
 
4633
# Allow CC to be a program name with arguments.
4634
compiler=$CC
4635
 
4636
 
4637
# Check for command to grab the raw symbol name followed by C symbol from nm.
4638
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4639
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4640
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4641
  $as_echo_n "(cached) " >&6
4642
else
4643
 
4644
# These are sane defaults that work on at least a few old systems.
4645
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4646
 
4647
# Character class describing NM global symbol codes.
4648
symcode='[BCDEGRST]'
4649
 
4650
# Regexp to match symbols that can be accessed directly from C.
4651
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4652
 
4653
# Define system-specific variables.
4654
case $host_os in
4655
aix*)
4656
  symcode='[BCDT]'
4657
  ;;
4658
cygwin* | mingw* | pw32* | cegcc*)
4659
  symcode='[ABCDGISTW]'
4660
  ;;
4661
hpux*)
4662
  if test "$host_cpu" = ia64; then
4663
    symcode='[ABCDEGRST]'
4664
  fi
4665
  ;;
4666
irix* | nonstopux*)
4667
  symcode='[BCDEGRST]'
4668
  ;;
4669
osf*)
4670
  symcode='[BCDEGQRST]'
4671
  ;;
4672
solaris*)
4673
  symcode='[BDRT]'
4674
  ;;
4675
sco3.2v5*)
4676
  symcode='[DT]'
4677
  ;;
4678
sysv4.2uw2*)
4679
  symcode='[DT]'
4680
  ;;
4681
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4682
  symcode='[ABDT]'
4683
  ;;
4684
sysv4)
4685
  symcode='[DFNSTU]'
4686
  ;;
4687
esac
4688
 
4689
# If we're using GNU nm, then use its standard symbol codes.
4690
case `$NM -V 2>&1` in
4691
*GNU* | *'with BFD'*)
4692
  symcode='[ABCDGIRSTW]' ;;
4693
esac
4694
 
4695
# Transform an extracted symbol line into a proper C declaration.
4696
# Some systems (esp. on ia64) link data and code symbols differently,
4697
# so use this general approach.
4698
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4699
 
4700
# Transform an extracted symbol line into symbol name and symbol address
4701
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4702
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'"
4703
 
4704
# Handle CRLF in mingw tool chain
4705
opt_cr=
4706
case $build_os in
4707
mingw*)
4708
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4709
  ;;
4710
esac
4711
 
4712
# Try without a prefix underscore, then with it.
4713
for ac_symprfx in "" "_"; do
4714
 
4715
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4716
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4717
 
4718
  # Write the raw and C identifiers.
4719
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4720
    # Fake it for dumpbin and say T for any non-static function
4721
    # and D for any global variable.
4722
    # Also find C++ and __fastcall symbols from MSVC++,
4723
    # which start with @ or ?.
4724
    lt_cv_sys_global_symbol_pipe="$AWK '"\
4725
"     {last_section=section; section=\$ 3};"\
4726
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4727
"     \$ 0!~/External *\|/{next};"\
4728
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4729
"     {if(hide[section]) next};"\
4730
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4731
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4732
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4733
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4734
"     ' prfx=^$ac_symprfx"
4735
  else
4736
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4737
  fi
4738
 
4739
  # Check to see that the pipe works correctly.
4740
  pipe_works=no
4741
 
4742
  rm -f conftest*
4743
  cat > conftest.$ac_ext <<_LT_EOF
4744
#ifdef __cplusplus
4745
extern "C" {
4746
#endif
4747
char nm_test_var;
4748
void nm_test_func(void);
4749
void nm_test_func(void){}
4750
#ifdef __cplusplus
4751
}
4752
#endif
4753
int main(){nm_test_var='a';nm_test_func();return(0);}
4754
_LT_EOF
4755
 
4756
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757
  (eval $ac_compile) 2>&5
4758
  ac_status=$?
4759
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760
  (exit $ac_status); }; then
4761
    # Now try to grab the symbols.
4762
    nlist=conftest.nm
4763
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4764
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4765
  ac_status=$?
4766
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767
  (exit $ac_status); } && test -s "$nlist"; then
4768
      # Try sorting and uniquifying the output.
4769
      if sort "$nlist" | uniq > "$nlist"T; then
4770
        mv -f "$nlist"T "$nlist"
4771
      else
4772
        rm -f "$nlist"T
4773
      fi
4774
 
4775
      # Make sure that we snagged all the symbols we need.
4776
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4777
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4778
          cat <<_LT_EOF > conftest.$ac_ext
4779
#ifdef __cplusplus
4780
extern "C" {
4781
#endif
4782
 
4783
_LT_EOF
4784
          # Now generate the symbol file.
4785
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4786
 
4787
          cat <<_LT_EOF >> conftest.$ac_ext
4788
 
4789
/* The mapping between symbol names and symbols.  */
4790
const struct {
4791
  const char *name;
4792
  void       *address;
4793
}
4794
lt__PROGRAM__LTX_preloaded_symbols[] =
4795
{
4796
  { "@PROGRAM@", (void *) 0 },
4797
_LT_EOF
4798
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4799
          cat <<\_LT_EOF >> conftest.$ac_ext
4800
  {0, (void *) 0}
4801
};
4802
 
4803
/* This works around a problem in FreeBSD linker */
4804
#ifdef FREEBSD_WORKAROUND
4805
static const void *lt_preloaded_setup() {
4806
  return lt__PROGRAM__LTX_preloaded_symbols;
4807
}
4808
#endif
4809
 
4810
#ifdef __cplusplus
4811
}
4812
#endif
4813
_LT_EOF
4814
          # Now try linking the two files.
4815
          mv conftest.$ac_objext conftstm.$ac_objext
4816
          lt_save_LIBS="$LIBS"
4817
          lt_save_CFLAGS="$CFLAGS"
4818
          LIBS="conftstm.$ac_objext"
4819
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4820
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4821
  (eval $ac_link) 2>&5
4822
  ac_status=$?
4823
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
4825
            pipe_works=yes
4826
          fi
4827
          LIBS="$lt_save_LIBS"
4828
          CFLAGS="$lt_save_CFLAGS"
4829
        else
4830
          echo "cannot find nm_test_func in $nlist" >&5
4831
        fi
4832
      else
4833
        echo "cannot find nm_test_var in $nlist" >&5
4834
      fi
4835
    else
4836
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4837
    fi
4838
  else
4839
    echo "$progname: failed program was:" >&5
4840
    cat conftest.$ac_ext >&5
4841
  fi
4842
  rm -rf conftest* conftst*
4843
 
4844
  # Do not use the global_symbol_pipe unless it works.
4845
  if test "$pipe_works" = yes; then
4846
    break
4847
  else
4848
    lt_cv_sys_global_symbol_pipe=
4849
  fi
4850
done
4851
 
4852
fi
4853
 
4854
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4855
  lt_cv_sys_global_symbol_to_cdecl=
4856
fi
4857
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4858
  { $as_echo "$as_me:$LINENO: result: failed" >&5
4859
$as_echo "failed" >&6; }
4860
else
4861
  { $as_echo "$as_me:$LINENO: result: ok" >&5
4862
$as_echo "ok" >&6; }
4863
fi
4864
 
4865
 
4866
 
4867
 
4868
 
4869
 
4870
 
4871
 
4872
 
4873
 
4874
 
4875
 
4876
 
4877
 
4878
 
4879
 
4880
 
4881
 
4882
 
4883
 
4884
 
4885
 
4886
 
4887
# Check whether --enable-libtool-lock was given.
4888
if test "${enable_libtool_lock+set}" = set; then
4889
  enableval=$enable_libtool_lock;
4890
fi
4891
 
4892
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4893
 
4894
# Some flags need to be propagated to the compiler or linker for good
4895
# libtool support.
4896
case $host in
4897
ia64-*-hpux*)
4898
  # Find out which ABI we are using.
4899
  echo 'int i;' > conftest.$ac_ext
4900
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4901
  (eval $ac_compile) 2>&5
4902
  ac_status=$?
4903
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904
  (exit $ac_status); }; then
4905
    case `/usr/bin/file conftest.$ac_objext` in
4906
      *ELF-32*)
4907
        HPUX_IA64_MODE="32"
4908
        ;;
4909
      *ELF-64*)
4910
        HPUX_IA64_MODE="64"
4911
        ;;
4912
    esac
4913
  fi
4914
  rm -rf conftest*
4915
  ;;
4916
*-*-irix6*)
4917
  # Find out which ABI we are using.
4918
  echo '#line 4918 "configure"' > conftest.$ac_ext
4919
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920
  (eval $ac_compile) 2>&5
4921
  ac_status=$?
4922
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923
  (exit $ac_status); }; then
4924
    if test "$lt_cv_prog_gnu_ld" = yes; then
4925
      case `/usr/bin/file conftest.$ac_objext` in
4926
        *32-bit*)
4927
          LD="${LD-ld} -melf32bsmip"
4928
          ;;
4929
        *N32*)
4930
          LD="${LD-ld} -melf32bmipn32"
4931
          ;;
4932
        *64-bit*)
4933
          LD="${LD-ld} -melf64bmip"
4934
        ;;
4935
      esac
4936
    else
4937
      case `/usr/bin/file conftest.$ac_objext` in
4938
        *32-bit*)
4939
          LD="${LD-ld} -32"
4940
          ;;
4941
        *N32*)
4942
          LD="${LD-ld} -n32"
4943
          ;;
4944
        *64-bit*)
4945
          LD="${LD-ld} -64"
4946
          ;;
4947
      esac
4948
    fi
4949
  fi
4950
  rm -rf conftest*
4951
  ;;
4952
 
4953
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4954
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4955
  # Find out which ABI we are using.
4956
  echo 'int i;' > conftest.$ac_ext
4957
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958
  (eval $ac_compile) 2>&5
4959
  ac_status=$?
4960
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961
  (exit $ac_status); }; then
4962
    case `/usr/bin/file conftest.o` in
4963
      *32-bit*)
4964
        case $host in
4965
          x86_64-*kfreebsd*-gnu)
4966
            LD="${LD-ld} -m elf_i386_fbsd"
4967
            ;;
4968
          x86_64-*linux*)
4969
            LD="${LD-ld} -m elf_i386"
4970
            ;;
4971
          ppc64-*linux*|powerpc64-*linux*)
4972
            LD="${LD-ld} -m elf32ppclinux"
4973
            ;;
4974
          s390x-*linux*)
4975
            LD="${LD-ld} -m elf_s390"
4976
            ;;
4977
          sparc64-*linux*)
4978
            LD="${LD-ld} -m elf32_sparc"
4979
            ;;
4980
        esac
4981
        ;;
4982
      *64-bit*)
4983
        case $host in
4984
          x86_64-*kfreebsd*-gnu)
4985
            LD="${LD-ld} -m elf_x86_64_fbsd"
4986
            ;;
4987
          x86_64-*linux*)
4988
            LD="${LD-ld} -m elf_x86_64"
4989
            ;;
4990
          ppc*-*linux*|powerpc*-*linux*)
4991
            LD="${LD-ld} -m elf64ppc"
4992
            ;;
4993
          s390*-*linux*|s390*-*tpf*)
4994
            LD="${LD-ld} -m elf64_s390"
4995
            ;;
4996
          sparc*-*linux*)
4997
            LD="${LD-ld} -m elf64_sparc"
4998
            ;;
4999
        esac
5000
        ;;
5001
    esac
5002
  fi
5003
  rm -rf conftest*
5004
  ;;
5005
 
5006
*-*-sco3.2v5*)
5007
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5008
  SAVE_CFLAGS="$CFLAGS"
5009
  CFLAGS="$CFLAGS -belf"
5010
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5011
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5012
if test "${lt_cv_cc_needs_belf+set}" = set; then
5013
  $as_echo_n "(cached) " >&6
5014
else
5015
  ac_ext=c
5016
ac_cpp='$CPP $CPPFLAGS'
5017
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020
 
5021
     cat >conftest.$ac_ext <<_ACEOF
5022
/* confdefs.h.  */
5023
_ACEOF
5024
cat confdefs.h >>conftest.$ac_ext
5025
cat >>conftest.$ac_ext <<_ACEOF
5026
/* end confdefs.h.  */
5027
 
5028
int
5029
main ()
5030
{
5031
 
5032
  ;
5033
  return 0;
5034
}
5035
_ACEOF
5036
rm -f conftest.$ac_objext conftest$ac_exeext
5037
if { (ac_try="$ac_link"
5038
case "(($ac_try" in
5039
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040
  *) ac_try_echo=$ac_try;;
5041
esac
5042
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5043
$as_echo "$ac_try_echo") >&5
5044
  (eval "$ac_link") 2>conftest.er1
5045
  ac_status=$?
5046
  grep -v '^ *+' conftest.er1 >conftest.err
5047
  rm -f conftest.er1
5048
  cat conftest.err >&5
5049
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050
  (exit $ac_status); } && {
5051
         test -z "$ac_c_werror_flag" ||
5052
         test ! -s conftest.err
5053
       } && test -s conftest$ac_exeext && {
5054
         test "$cross_compiling" = yes ||
5055
         $as_test_x conftest$ac_exeext
5056
       }; then
5057
  lt_cv_cc_needs_belf=yes
5058
else
5059
  $as_echo "$as_me: failed program was:" >&5
5060
sed 's/^/| /' conftest.$ac_ext >&5
5061
 
5062
        lt_cv_cc_needs_belf=no
5063
fi
5064
 
5065
rm -rf conftest.dSYM
5066
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5067
      conftest$ac_exeext conftest.$ac_ext
5068
     ac_ext=c
5069
ac_cpp='$CPP $CPPFLAGS'
5070
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073
 
5074
fi
5075
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5076
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5077
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5078
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5079
    CFLAGS="$SAVE_CFLAGS"
5080
  fi
5081
  ;;
5082
sparc*-*solaris*)
5083
  # Find out which ABI we are using.
5084
  echo 'int i;' > conftest.$ac_ext
5085
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086
  (eval $ac_compile) 2>&5
5087
  ac_status=$?
5088
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089
  (exit $ac_status); }; then
5090
    case `/usr/bin/file conftest.o` in
5091
    *64-bit*)
5092
      case $lt_cv_prog_gnu_ld in
5093
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5094
      *)
5095
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5096
          LD="${LD-ld} -64"
5097
        fi
5098
        ;;
5099
      esac
5100
      ;;
5101
    esac
5102
  fi
5103
  rm -rf conftest*
5104
  ;;
5105
esac
5106
 
5107
need_locks="$enable_libtool_lock"
5108
 
5109
 
5110
  case $host_os in
5111
    rhapsody* | darwin*)
5112
    if test -n "$ac_tool_prefix"; then
5113
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5114
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5115
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5116
$as_echo_n "checking for $ac_word... " >&6; }
5117
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5118
  $as_echo_n "(cached) " >&6
5119
else
5120
  if test -n "$DSYMUTIL"; then
5121
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5122
else
5123
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124
for as_dir in $PATH
5125
do
5126
  IFS=$as_save_IFS
5127
  test -z "$as_dir" && as_dir=.
5128
  for ac_exec_ext in '' $ac_executable_extensions; do
5129
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5131
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132
    break 2
5133
  fi
5134
done
5135
done
5136
IFS=$as_save_IFS
5137
 
5138
fi
5139
fi
5140
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5141
if test -n "$DSYMUTIL"; then
5142
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5143
$as_echo "$DSYMUTIL" >&6; }
5144
else
5145
  { $as_echo "$as_me:$LINENO: result: no" >&5
5146
$as_echo "no" >&6; }
5147
fi
5148
 
5149
 
5150
fi
5151
if test -z "$ac_cv_prog_DSYMUTIL"; then
5152
  ac_ct_DSYMUTIL=$DSYMUTIL
5153
  # Extract the first word of "dsymutil", so it can be a program name with args.
5154
set dummy dsymutil; ac_word=$2
5155
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5156
$as_echo_n "checking for $ac_word... " >&6; }
5157
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5158
  $as_echo_n "(cached) " >&6
5159
else
5160
  if test -n "$ac_ct_DSYMUTIL"; then
5161
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5162
else
5163
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164
for as_dir in $PATH
5165
do
5166
  IFS=$as_save_IFS
5167
  test -z "$as_dir" && as_dir=.
5168
  for ac_exec_ext in '' $ac_executable_extensions; do
5169
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5171
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172
    break 2
5173
  fi
5174
done
5175
done
5176
IFS=$as_save_IFS
5177
 
5178
fi
5179
fi
5180
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5181
if test -n "$ac_ct_DSYMUTIL"; then
5182
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5183
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5184
else
5185
  { $as_echo "$as_me:$LINENO: result: no" >&5
5186
$as_echo "no" >&6; }
5187
fi
5188
 
5189
  if test "x$ac_ct_DSYMUTIL" = x; then
5190
    DSYMUTIL=":"
5191
  else
5192
    case $cross_compiling:$ac_tool_warned in
5193
yes:)
5194
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5195
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5196
ac_tool_warned=yes ;;
5197
esac
5198
    DSYMUTIL=$ac_ct_DSYMUTIL
5199
  fi
5200
else
5201
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5202
fi
5203
 
5204
    if test -n "$ac_tool_prefix"; then
5205
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5206
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5207
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5208
$as_echo_n "checking for $ac_word... " >&6; }
5209
if test "${ac_cv_prog_NMEDIT+set}" = set; then
5210
  $as_echo_n "(cached) " >&6
5211
else
5212
  if test -n "$NMEDIT"; then
5213
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5214
else
5215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216
for as_dir in $PATH
5217
do
5218
  IFS=$as_save_IFS
5219
  test -z "$as_dir" && as_dir=.
5220
  for ac_exec_ext in '' $ac_executable_extensions; do
5221
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5223
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224
    break 2
5225
  fi
5226
done
5227
done
5228
IFS=$as_save_IFS
5229
 
5230
fi
5231
fi
5232
NMEDIT=$ac_cv_prog_NMEDIT
5233
if test -n "$NMEDIT"; then
5234
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5235
$as_echo "$NMEDIT" >&6; }
5236
else
5237
  { $as_echo "$as_me:$LINENO: result: no" >&5
5238
$as_echo "no" >&6; }
5239
fi
5240
 
5241
 
5242
fi
5243
if test -z "$ac_cv_prog_NMEDIT"; then
5244
  ac_ct_NMEDIT=$NMEDIT
5245
  # Extract the first word of "nmedit", so it can be a program name with args.
5246
set dummy nmedit; ac_word=$2
5247
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5248
$as_echo_n "checking for $ac_word... " >&6; }
5249
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5250
  $as_echo_n "(cached) " >&6
5251
else
5252
  if test -n "$ac_ct_NMEDIT"; then
5253
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5254
else
5255
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256
for as_dir in $PATH
5257
do
5258
  IFS=$as_save_IFS
5259
  test -z "$as_dir" && as_dir=.
5260
  for ac_exec_ext in '' $ac_executable_extensions; do
5261
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5263
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264
    break 2
5265
  fi
5266
done
5267
done
5268
IFS=$as_save_IFS
5269
 
5270
fi
5271
fi
5272
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5273
if test -n "$ac_ct_NMEDIT"; then
5274
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5275
$as_echo "$ac_ct_NMEDIT" >&6; }
5276
else
5277
  { $as_echo "$as_me:$LINENO: result: no" >&5
5278
$as_echo "no" >&6; }
5279
fi
5280
 
5281
  if test "x$ac_ct_NMEDIT" = x; then
5282
    NMEDIT=":"
5283
  else
5284
    case $cross_compiling:$ac_tool_warned in
5285
yes:)
5286
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5287
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5288
ac_tool_warned=yes ;;
5289
esac
5290
    NMEDIT=$ac_ct_NMEDIT
5291
  fi
5292
else
5293
  NMEDIT="$ac_cv_prog_NMEDIT"
5294
fi
5295
 
5296
    if test -n "$ac_tool_prefix"; then
5297
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5298
set dummy ${ac_tool_prefix}lipo; ac_word=$2
5299
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5300
$as_echo_n "checking for $ac_word... " >&6; }
5301
if test "${ac_cv_prog_LIPO+set}" = set; then
5302
  $as_echo_n "(cached) " >&6
5303
else
5304
  if test -n "$LIPO"; then
5305
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5306
else
5307
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308
for as_dir in $PATH
5309
do
5310
  IFS=$as_save_IFS
5311
  test -z "$as_dir" && as_dir=.
5312
  for ac_exec_ext in '' $ac_executable_extensions; do
5313
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5315
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316
    break 2
5317
  fi
5318
done
5319
done
5320
IFS=$as_save_IFS
5321
 
5322
fi
5323
fi
5324
LIPO=$ac_cv_prog_LIPO
5325
if test -n "$LIPO"; then
5326
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5327
$as_echo "$LIPO" >&6; }
5328
else
5329
  { $as_echo "$as_me:$LINENO: result: no" >&5
5330
$as_echo "no" >&6; }
5331
fi
5332
 
5333
 
5334
fi
5335
if test -z "$ac_cv_prog_LIPO"; then
5336
  ac_ct_LIPO=$LIPO
5337
  # Extract the first word of "lipo", so it can be a program name with args.
5338
set dummy lipo; ac_word=$2
5339
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5340
$as_echo_n "checking for $ac_word... " >&6; }
5341
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5342
  $as_echo_n "(cached) " >&6
5343
else
5344
  if test -n "$ac_ct_LIPO"; then
5345
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5346
else
5347
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348
for as_dir in $PATH
5349
do
5350
  IFS=$as_save_IFS
5351
  test -z "$as_dir" && as_dir=.
5352
  for ac_exec_ext in '' $ac_executable_extensions; do
5353
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354
    ac_cv_prog_ac_ct_LIPO="lipo"
5355
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356
    break 2
5357
  fi
5358
done
5359
done
5360
IFS=$as_save_IFS
5361
 
5362
fi
5363
fi
5364
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5365
if test -n "$ac_ct_LIPO"; then
5366
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5367
$as_echo "$ac_ct_LIPO" >&6; }
5368
else
5369
  { $as_echo "$as_me:$LINENO: result: no" >&5
5370
$as_echo "no" >&6; }
5371
fi
5372
 
5373
  if test "x$ac_ct_LIPO" = x; then
5374
    LIPO=":"
5375
  else
5376
    case $cross_compiling:$ac_tool_warned in
5377
yes:)
5378
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5379
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5380
ac_tool_warned=yes ;;
5381
esac
5382
    LIPO=$ac_ct_LIPO
5383
  fi
5384
else
5385
  LIPO="$ac_cv_prog_LIPO"
5386
fi
5387
 
5388
    if test -n "$ac_tool_prefix"; then
5389
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5390
set dummy ${ac_tool_prefix}otool; ac_word=$2
5391
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5392
$as_echo_n "checking for $ac_word... " >&6; }
5393
if test "${ac_cv_prog_OTOOL+set}" = set; then
5394
  $as_echo_n "(cached) " >&6
5395
else
5396
  if test -n "$OTOOL"; then
5397
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5398
else
5399
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400
for as_dir in $PATH
5401
do
5402
  IFS=$as_save_IFS
5403
  test -z "$as_dir" && as_dir=.
5404
  for ac_exec_ext in '' $ac_executable_extensions; do
5405
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5407
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408
    break 2
5409
  fi
5410
done
5411
done
5412
IFS=$as_save_IFS
5413
 
5414
fi
5415
fi
5416
OTOOL=$ac_cv_prog_OTOOL
5417
if test -n "$OTOOL"; then
5418
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5419
$as_echo "$OTOOL" >&6; }
5420
else
5421
  { $as_echo "$as_me:$LINENO: result: no" >&5
5422
$as_echo "no" >&6; }
5423
fi
5424
 
5425
 
5426
fi
5427
if test -z "$ac_cv_prog_OTOOL"; then
5428
  ac_ct_OTOOL=$OTOOL
5429
  # Extract the first word of "otool", so it can be a program name with args.
5430
set dummy otool; ac_word=$2
5431
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5432
$as_echo_n "checking for $ac_word... " >&6; }
5433
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5434
  $as_echo_n "(cached) " >&6
5435
else
5436
  if test -n "$ac_ct_OTOOL"; then
5437
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5438
else
5439
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440
for as_dir in $PATH
5441
do
5442
  IFS=$as_save_IFS
5443
  test -z "$as_dir" && as_dir=.
5444
  for ac_exec_ext in '' $ac_executable_extensions; do
5445
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446
    ac_cv_prog_ac_ct_OTOOL="otool"
5447
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5448
    break 2
5449
  fi
5450
done
5451
done
5452
IFS=$as_save_IFS
5453
 
5454
fi
5455
fi
5456
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5457
if test -n "$ac_ct_OTOOL"; then
5458
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5459
$as_echo "$ac_ct_OTOOL" >&6; }
5460
else
5461
  { $as_echo "$as_me:$LINENO: result: no" >&5
5462
$as_echo "no" >&6; }
5463
fi
5464
 
5465
  if test "x$ac_ct_OTOOL" = x; then
5466
    OTOOL=":"
5467
  else
5468
    case $cross_compiling:$ac_tool_warned in
5469
yes:)
5470
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5471
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5472
ac_tool_warned=yes ;;
5473
esac
5474
    OTOOL=$ac_ct_OTOOL
5475
  fi
5476
else
5477
  OTOOL="$ac_cv_prog_OTOOL"
5478
fi
5479
 
5480
    if test -n "$ac_tool_prefix"; then
5481
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5482
set dummy ${ac_tool_prefix}otool64; ac_word=$2
5483
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5484
$as_echo_n "checking for $ac_word... " >&6; }
5485
if test "${ac_cv_prog_OTOOL64+set}" = set; then
5486
  $as_echo_n "(cached) " >&6
5487
else
5488
  if test -n "$OTOOL64"; then
5489
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5490
else
5491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492
for as_dir in $PATH
5493
do
5494
  IFS=$as_save_IFS
5495
  test -z "$as_dir" && as_dir=.
5496
  for ac_exec_ext in '' $ac_executable_extensions; do
5497
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5499
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5500
    break 2
5501
  fi
5502
done
5503
done
5504
IFS=$as_save_IFS
5505
 
5506
fi
5507
fi
5508
OTOOL64=$ac_cv_prog_OTOOL64
5509
if test -n "$OTOOL64"; then
5510
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5511
$as_echo "$OTOOL64" >&6; }
5512
else
5513
  { $as_echo "$as_me:$LINENO: result: no" >&5
5514
$as_echo "no" >&6; }
5515
fi
5516
 
5517
 
5518
fi
5519
if test -z "$ac_cv_prog_OTOOL64"; then
5520
  ac_ct_OTOOL64=$OTOOL64
5521
  # Extract the first word of "otool64", so it can be a program name with args.
5522
set dummy otool64; ac_word=$2
5523
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5524
$as_echo_n "checking for $ac_word... " >&6; }
5525
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5526
  $as_echo_n "(cached) " >&6
5527
else
5528
  if test -n "$ac_ct_OTOOL64"; then
5529
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5530
else
5531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532
for as_dir in $PATH
5533
do
5534
  IFS=$as_save_IFS
5535
  test -z "$as_dir" && as_dir=.
5536
  for ac_exec_ext in '' $ac_executable_extensions; do
5537
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538
    ac_cv_prog_ac_ct_OTOOL64="otool64"
5539
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540
    break 2
5541
  fi
5542
done
5543
done
5544
IFS=$as_save_IFS
5545
 
5546
fi
5547
fi
5548
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5549
if test -n "$ac_ct_OTOOL64"; then
5550
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5551
$as_echo "$ac_ct_OTOOL64" >&6; }
5552
else
5553
  { $as_echo "$as_me:$LINENO: result: no" >&5
5554
$as_echo "no" >&6; }
5555
fi
5556
 
5557
  if test "x$ac_ct_OTOOL64" = x; then
5558
    OTOOL64=":"
5559
  else
5560
    case $cross_compiling:$ac_tool_warned in
5561
yes:)
5562
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5563
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5564
ac_tool_warned=yes ;;
5565
esac
5566
    OTOOL64=$ac_ct_OTOOL64
5567
  fi
5568
else
5569
  OTOOL64="$ac_cv_prog_OTOOL64"
5570
fi
5571
 
5572
 
5573
 
5574
 
5575
 
5576
 
5577
 
5578
 
5579
 
5580
 
5581
 
5582
 
5583
 
5584
 
5585
 
5586
 
5587
 
5588
 
5589
 
5590
 
5591
 
5592
 
5593
 
5594
 
5595
 
5596
 
5597
 
5598
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5599
$as_echo_n "checking for -single_module linker flag... " >&6; }
5600
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5601
  $as_echo_n "(cached) " >&6
5602
else
5603
  lt_cv_apple_cc_single_mod=no
5604
      if test -z "${LT_MULTI_MODULE}"; then
5605
        # By default we will add the -single_module flag. You can override
5606
        # by either setting the environment variable LT_MULTI_MODULE
5607
        # non-empty at configure time, or by adding -multi_module to the
5608
        # link flags.
5609
        rm -rf libconftest.dylib*
5610
        echo "int foo(void){return 1;}" > conftest.c
5611
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5612
-dynamiclib -Wl,-single_module conftest.c" >&5
5613
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5614
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5615
        _lt_result=$?
5616
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5617
          lt_cv_apple_cc_single_mod=yes
5618
        else
5619
          cat conftest.err >&5
5620
        fi
5621
        rm -rf libconftest.dylib*
5622
        rm -f conftest.*
5623
      fi
5624
fi
5625
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5626
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5627
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5628
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5629
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5630
  $as_echo_n "(cached) " >&6
5631
else
5632
  lt_cv_ld_exported_symbols_list=no
5633
      save_LDFLAGS=$LDFLAGS
5634
      echo "_main" > conftest.sym
5635
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5636
      cat >conftest.$ac_ext <<_ACEOF
5637
/* confdefs.h.  */
5638
_ACEOF
5639
cat confdefs.h >>conftest.$ac_ext
5640
cat >>conftest.$ac_ext <<_ACEOF
5641
/* end confdefs.h.  */
5642
 
5643
int
5644
main ()
5645
{
5646
 
5647
  ;
5648
  return 0;
5649
}
5650
_ACEOF
5651
rm -f conftest.$ac_objext conftest$ac_exeext
5652
if { (ac_try="$ac_link"
5653
case "(($ac_try" in
5654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655
  *) ac_try_echo=$ac_try;;
5656
esac
5657
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5658
$as_echo "$ac_try_echo") >&5
5659
  (eval "$ac_link") 2>conftest.er1
5660
  ac_status=$?
5661
  grep -v '^ *+' conftest.er1 >conftest.err
5662
  rm -f conftest.er1
5663
  cat conftest.err >&5
5664
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665
  (exit $ac_status); } && {
5666
         test -z "$ac_c_werror_flag" ||
5667
         test ! -s conftest.err
5668
       } && test -s conftest$ac_exeext && {
5669
         test "$cross_compiling" = yes ||
5670
         $as_test_x conftest$ac_exeext
5671
       }; then
5672
  lt_cv_ld_exported_symbols_list=yes
5673
else
5674
  $as_echo "$as_me: failed program was:" >&5
5675
sed 's/^/| /' conftest.$ac_ext >&5
5676
 
5677
        lt_cv_ld_exported_symbols_list=no
5678
fi
5679
 
5680
rm -rf conftest.dSYM
5681
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5682
      conftest$ac_exeext conftest.$ac_ext
5683
        LDFLAGS="$save_LDFLAGS"
5684
 
5685
fi
5686
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5687
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5688
    case $host_os in
5689
    rhapsody* | darwin1.[012])
5690
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5691
    darwin1.*)
5692
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5693
    darwin*) # darwin 5.x on
5694
      # if running on 10.5 or later, the deployment target defaults
5695
      # to the OS version, if on x86, and 10.4, the deployment
5696
      # target defaults to 10.4. Don't you love it?
5697
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5698
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5699
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5700
        10.[012]*)
5701
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5702
        10.*)
5703
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5704
      esac
5705
    ;;
5706
  esac
5707
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5708
      _lt_dar_single_mod='$single_module'
5709
    fi
5710
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5711
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5712
    else
5713
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5714
    fi
5715
    if test "$DSYMUTIL" != ":"; then
5716
      _lt_dsymutil='~$DSYMUTIL $lib || :'
5717
    else
5718
      _lt_dsymutil=
5719
    fi
5720
    ;;
5721
  esac
5722
 
5723
ac_ext=c
5724
ac_cpp='$CPP $CPPFLAGS'
5725
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5726
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5727
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5728
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5729
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5730
# On Suns, sometimes $CPP names a directory.
5731
if test -n "$CPP" && test -d "$CPP"; then
5732
  CPP=
5733
fi
5734
if test -z "$CPP"; then
5735
  if test "${ac_cv_prog_CPP+set}" = set; then
5736
  $as_echo_n "(cached) " >&6
5737
else
5738
      # Double quotes because CPP needs to be expanded
5739
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5740
    do
5741
      ac_preproc_ok=false
5742
for ac_c_preproc_warn_flag in '' yes
5743
do
5744
  # Use a header file that comes with gcc, so configuring glibc
5745
  # with a fresh cross-compiler works.
5746
  # Prefer  to  if __STDC__ is defined, since
5747
  #  exists even on freestanding compilers.
5748
  # On the NeXT, cc -E runs the code through the compiler's parser,
5749
  # not just through cpp. "Syntax error" is here to catch this case.
5750
  cat >conftest.$ac_ext <<_ACEOF
5751
/* confdefs.h.  */
5752
_ACEOF
5753
cat confdefs.h >>conftest.$ac_ext
5754
cat >>conftest.$ac_ext <<_ACEOF
5755
/* end confdefs.h.  */
5756
#ifdef __STDC__
5757
# include 
5758
#else
5759
# include 
5760
#endif
5761
                     Syntax error
5762
_ACEOF
5763
if { (ac_try="$ac_cpp conftest.$ac_ext"
5764
case "(($ac_try" in
5765
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766
  *) ac_try_echo=$ac_try;;
5767
esac
5768
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5769
$as_echo "$ac_try_echo") >&5
5770
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5771
  ac_status=$?
5772
  grep -v '^ *+' conftest.er1 >conftest.err
5773
  rm -f conftest.er1
5774
  cat conftest.err >&5
5775
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776
  (exit $ac_status); } >/dev/null && {
5777
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5778
         test ! -s conftest.err
5779
       }; then
5780
  :
5781
else
5782
  $as_echo "$as_me: failed program was:" >&5
5783
sed 's/^/| /' conftest.$ac_ext >&5
5784
 
5785
  # Broken: fails on valid input.
5786
continue
5787
fi
5788
 
5789
rm -f conftest.err conftest.$ac_ext
5790
 
5791
  # OK, works on sane cases.  Now check whether nonexistent headers
5792
  # can be detected and how.
5793
  cat >conftest.$ac_ext <<_ACEOF
5794
/* confdefs.h.  */
5795
_ACEOF
5796
cat confdefs.h >>conftest.$ac_ext
5797
cat >>conftest.$ac_ext <<_ACEOF
5798
/* end confdefs.h.  */
5799
#include 
5800
_ACEOF
5801
if { (ac_try="$ac_cpp conftest.$ac_ext"
5802
case "(($ac_try" in
5803
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804
  *) ac_try_echo=$ac_try;;
5805
esac
5806
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5807
$as_echo "$ac_try_echo") >&5
5808
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5809
  ac_status=$?
5810
  grep -v '^ *+' conftest.er1 >conftest.err
5811
  rm -f conftest.er1
5812
  cat conftest.err >&5
5813
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814
  (exit $ac_status); } >/dev/null && {
5815
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5816
         test ! -s conftest.err
5817
       }; then
5818
  # Broken: success on invalid input.
5819
continue
5820
else
5821
  $as_echo "$as_me: failed program was:" >&5
5822
sed 's/^/| /' conftest.$ac_ext >&5
5823
 
5824
  # Passes both tests.
5825
ac_preproc_ok=:
5826
break
5827
fi
5828
 
5829
rm -f conftest.err conftest.$ac_ext
5830
 
5831
done
5832
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5833
rm -f conftest.err conftest.$ac_ext
5834
if $ac_preproc_ok; then
5835
  break
5836
fi
5837
 
5838
    done
5839
    ac_cv_prog_CPP=$CPP
5840
 
5841
fi
5842
  CPP=$ac_cv_prog_CPP
5843
else
5844
  ac_cv_prog_CPP=$CPP
5845
fi
5846
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5847
$as_echo "$CPP" >&6; }
5848
ac_preproc_ok=false
5849
for ac_c_preproc_warn_flag in '' yes
5850
do
5851
  # Use a header file that comes with gcc, so configuring glibc
5852
  # with a fresh cross-compiler works.
5853
  # Prefer  to  if __STDC__ is defined, since
5854
  #  exists even on freestanding compilers.
5855
  # On the NeXT, cc -E runs the code through the compiler's parser,
5856
  # not just through cpp. "Syntax error" is here to catch this case.
5857
  cat >conftest.$ac_ext <<_ACEOF
5858
/* confdefs.h.  */
5859
_ACEOF
5860
cat confdefs.h >>conftest.$ac_ext
5861
cat >>conftest.$ac_ext <<_ACEOF
5862
/* end confdefs.h.  */
5863
#ifdef __STDC__
5864
# include 
5865
#else
5866
# include 
5867
#endif
5868
                     Syntax error
5869
_ACEOF
5870
if { (ac_try="$ac_cpp conftest.$ac_ext"
5871
case "(($ac_try" in
5872
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873
  *) ac_try_echo=$ac_try;;
5874
esac
5875
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5876
$as_echo "$ac_try_echo") >&5
5877
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5878
  ac_status=$?
5879
  grep -v '^ *+' conftest.er1 >conftest.err
5880
  rm -f conftest.er1
5881
  cat conftest.err >&5
5882
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883
  (exit $ac_status); } >/dev/null && {
5884
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5885
         test ! -s conftest.err
5886
       }; then
5887
  :
5888
else
5889
  $as_echo "$as_me: failed program was:" >&5
5890
sed 's/^/| /' conftest.$ac_ext >&5
5891
 
5892
  # Broken: fails on valid input.
5893
continue
5894
fi
5895
 
5896
rm -f conftest.err conftest.$ac_ext
5897
 
5898
  # OK, works on sane cases.  Now check whether nonexistent headers
5899
  # can be detected and how.
5900
  cat >conftest.$ac_ext <<_ACEOF
5901
/* confdefs.h.  */
5902
_ACEOF
5903
cat confdefs.h >>conftest.$ac_ext
5904
cat >>conftest.$ac_ext <<_ACEOF
5905
/* end confdefs.h.  */
5906
#include 
5907
_ACEOF
5908
if { (ac_try="$ac_cpp conftest.$ac_ext"
5909
case "(($ac_try" in
5910
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911
  *) ac_try_echo=$ac_try;;
5912
esac
5913
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5914
$as_echo "$ac_try_echo") >&5
5915
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5916
  ac_status=$?
5917
  grep -v '^ *+' conftest.er1 >conftest.err
5918
  rm -f conftest.er1
5919
  cat conftest.err >&5
5920
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921
  (exit $ac_status); } >/dev/null && {
5922
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5923
         test ! -s conftest.err
5924
       }; then
5925
  # Broken: success on invalid input.
5926
continue
5927
else
5928
  $as_echo "$as_me: failed program was:" >&5
5929
sed 's/^/| /' conftest.$ac_ext >&5
5930
 
5931
  # Passes both tests.
5932
ac_preproc_ok=:
5933
break
5934
fi
5935
 
5936
rm -f conftest.err conftest.$ac_ext
5937
 
5938
done
5939
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940
rm -f conftest.err conftest.$ac_ext
5941
if $ac_preproc_ok; then
5942
  :
5943
else
5944
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5945
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5946
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5947
See \`config.log' for more details." >&5
5948
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5949
See \`config.log' for more details." >&2;}
5950
   { (exit 1); exit 1; }; }; }
5951
fi
5952
 
5953
ac_ext=c
5954
ac_cpp='$CPP $CPPFLAGS'
5955
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5956
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5958
 
5959
 
5960
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5961
$as_echo_n "checking for ANSI C header files... " >&6; }
5962
if test "${ac_cv_header_stdc+set}" = set; then
5963
  $as_echo_n "(cached) " >&6
5964
else
5965
  cat >conftest.$ac_ext <<_ACEOF
5966
/* confdefs.h.  */
5967
_ACEOF
5968
cat confdefs.h >>conftest.$ac_ext
5969
cat >>conftest.$ac_ext <<_ACEOF
5970
/* end confdefs.h.  */
5971
#include 
5972
#include 
5973
#include 
5974
#include 
5975
 
5976
int
5977
main ()
5978
{
5979
 
5980
  ;
5981
  return 0;
5982
}
5983
_ACEOF
5984
rm -f conftest.$ac_objext
5985
if { (ac_try="$ac_compile"
5986
case "(($ac_try" in
5987
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988
  *) ac_try_echo=$ac_try;;
5989
esac
5990
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5991
$as_echo "$ac_try_echo") >&5
5992
  (eval "$ac_compile") 2>conftest.er1
5993
  ac_status=$?
5994
  grep -v '^ *+' conftest.er1 >conftest.err
5995
  rm -f conftest.er1
5996
  cat conftest.err >&5
5997
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998
  (exit $ac_status); } && {
5999
         test -z "$ac_c_werror_flag" ||
6000
         test ! -s conftest.err
6001
       } && test -s conftest.$ac_objext; then
6002
  ac_cv_header_stdc=yes
6003
else
6004
  $as_echo "$as_me: failed program was:" >&5
6005
sed 's/^/| /' conftest.$ac_ext >&5
6006
 
6007
        ac_cv_header_stdc=no
6008
fi
6009
 
6010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011
 
6012
if test $ac_cv_header_stdc = yes; then
6013
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6014
  cat >conftest.$ac_ext <<_ACEOF
6015
/* confdefs.h.  */
6016
_ACEOF
6017
cat confdefs.h >>conftest.$ac_ext
6018
cat >>conftest.$ac_ext <<_ACEOF
6019
/* end confdefs.h.  */
6020
#include 
6021
 
6022
_ACEOF
6023
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6024
  $EGREP "memchr" >/dev/null 2>&1; then
6025
  :
6026
else
6027
  ac_cv_header_stdc=no
6028
fi
6029
rm -f conftest*
6030
 
6031
fi
6032
 
6033
if test $ac_cv_header_stdc = yes; then
6034
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6035
  cat >conftest.$ac_ext <<_ACEOF
6036
/* confdefs.h.  */
6037
_ACEOF
6038
cat confdefs.h >>conftest.$ac_ext
6039
cat >>conftest.$ac_ext <<_ACEOF
6040
/* end confdefs.h.  */
6041
#include 
6042
 
6043
_ACEOF
6044
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6045
  $EGREP "free" >/dev/null 2>&1; then
6046
  :
6047
else
6048
  ac_cv_header_stdc=no
6049
fi
6050
rm -f conftest*
6051
 
6052
fi
6053
 
6054
if test $ac_cv_header_stdc = yes; then
6055
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6056
  if test "$cross_compiling" = yes; then
6057
  :
6058
else
6059
  cat >conftest.$ac_ext <<_ACEOF
6060
/* confdefs.h.  */
6061
_ACEOF
6062
cat confdefs.h >>conftest.$ac_ext
6063
cat >>conftest.$ac_ext <<_ACEOF
6064
/* end confdefs.h.  */
6065
#include 
6066
#include 
6067
#if ((' ' & 0x0FF) == 0x020)
6068
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6069
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6070
#else
6071
# define ISLOWER(c) \
6072
                   (('a' <= (c) && (c) <= 'i') \
6073
                     || ('j' <= (c) && (c) <= 'r') \
6074
                     || ('s' <= (c) && (c) <= 'z'))
6075
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6076
#endif
6077
 
6078
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6079
int
6080
main ()
6081
{
6082
  int i;
6083
  for (i = 0; i < 256; i++)
6084
    if (XOR (islower (i), ISLOWER (i))
6085
        || toupper (i) != TOUPPER (i))
6086
      return 2;
6087
  return 0;
6088
}
6089
_ACEOF
6090
rm -f conftest$ac_exeext
6091
if { (ac_try="$ac_link"
6092
case "(($ac_try" in
6093
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094
  *) ac_try_echo=$ac_try;;
6095
esac
6096
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6097
$as_echo "$ac_try_echo") >&5
6098
  (eval "$ac_link") 2>&5
6099
  ac_status=$?
6100
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6102
  { (case "(($ac_try" in
6103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104
  *) ac_try_echo=$ac_try;;
6105
esac
6106
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6107
$as_echo "$ac_try_echo") >&5
6108
  (eval "$ac_try") 2>&5
6109
  ac_status=$?
6110
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111
  (exit $ac_status); }; }; then
6112
  :
6113
else
6114
  $as_echo "$as_me: program exited with status $ac_status" >&5
6115
$as_echo "$as_me: failed program was:" >&5
6116
sed 's/^/| /' conftest.$ac_ext >&5
6117
 
6118
( exit $ac_status )
6119
ac_cv_header_stdc=no
6120
fi
6121
rm -rf conftest.dSYM
6122
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6123
fi
6124
 
6125
 
6126
fi
6127
fi
6128
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6129
$as_echo "$ac_cv_header_stdc" >&6; }
6130
if test $ac_cv_header_stdc = yes; then
6131
 
6132
cat >>confdefs.h <<\_ACEOF
6133
#define STDC_HEADERS 1
6134
_ACEOF
6135
 
6136
fi
6137
 
6138
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6139
 
6140
 
6141
 
6142
 
6143
 
6144
 
6145
 
6146
 
6147
 
6148
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6149
                  inttypes.h stdint.h unistd.h
6150
do
6151
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6152
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6153
$as_echo_n "checking for $ac_header... " >&6; }
6154
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6155
  $as_echo_n "(cached) " >&6
6156
else
6157
  cat >conftest.$ac_ext <<_ACEOF
6158
/* confdefs.h.  */
6159
_ACEOF
6160
cat confdefs.h >>conftest.$ac_ext
6161
cat >>conftest.$ac_ext <<_ACEOF
6162
/* end confdefs.h.  */
6163
$ac_includes_default
6164
 
6165
#include <$ac_header>
6166
_ACEOF
6167
rm -f conftest.$ac_objext
6168
if { (ac_try="$ac_compile"
6169
case "(($ac_try" in
6170
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171
  *) ac_try_echo=$ac_try;;
6172
esac
6173
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6174
$as_echo "$ac_try_echo") >&5
6175
  (eval "$ac_compile") 2>conftest.er1
6176
  ac_status=$?
6177
  grep -v '^ *+' conftest.er1 >conftest.err
6178
  rm -f conftest.er1
6179
  cat conftest.err >&5
6180
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181
  (exit $ac_status); } && {
6182
         test -z "$ac_c_werror_flag" ||
6183
         test ! -s conftest.err
6184
       } && test -s conftest.$ac_objext; then
6185
  eval "$as_ac_Header=yes"
6186
else
6187
  $as_echo "$as_me: failed program was:" >&5
6188
sed 's/^/| /' conftest.$ac_ext >&5
6189
 
6190
        eval "$as_ac_Header=no"
6191
fi
6192
 
6193
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194
fi
6195
ac_res=`eval 'as_val=${'$as_ac_Header'}
6196
                 $as_echo "$as_val"'`
6197
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6198
$as_echo "$ac_res" >&6; }
6199
as_val=`eval 'as_val=${'$as_ac_Header'}
6200
                 $as_echo "$as_val"'`
6201
   if test "x$as_val" = x""yes; then
6202
  cat >>confdefs.h <<_ACEOF
6203
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6204
_ACEOF
6205
 
6206
fi
6207
 
6208
done
6209
 
6210
 
6211
 
6212
for ac_header in dlfcn.h
6213
do
6214
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6215
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6216
$as_echo_n "checking for $ac_header... " >&6; }
6217
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6218
  $as_echo_n "(cached) " >&6
6219
else
6220
  cat >conftest.$ac_ext <<_ACEOF
6221
/* confdefs.h.  */
6222
_ACEOF
6223
cat confdefs.h >>conftest.$ac_ext
6224
cat >>conftest.$ac_ext <<_ACEOF
6225
/* end confdefs.h.  */
6226
$ac_includes_default
6227
 
6228
#include <$ac_header>
6229
_ACEOF
6230
rm -f conftest.$ac_objext
6231
if { (ac_try="$ac_compile"
6232
case "(($ac_try" in
6233
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234
  *) ac_try_echo=$ac_try;;
6235
esac
6236
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6237
$as_echo "$ac_try_echo") >&5
6238
  (eval "$ac_compile") 2>conftest.er1
6239
  ac_status=$?
6240
  grep -v '^ *+' conftest.er1 >conftest.err
6241
  rm -f conftest.er1
6242
  cat conftest.err >&5
6243
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244
  (exit $ac_status); } && {
6245
         test -z "$ac_c_werror_flag" ||
6246
         test ! -s conftest.err
6247
       } && test -s conftest.$ac_objext; then
6248
  eval "$as_ac_Header=yes"
6249
else
6250
  $as_echo "$as_me: failed program was:" >&5
6251
sed 's/^/| /' conftest.$ac_ext >&5
6252
 
6253
        eval "$as_ac_Header=no"
6254
fi
6255
 
6256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257
fi
6258
ac_res=`eval 'as_val=${'$as_ac_Header'}
6259
                 $as_echo "$as_val"'`
6260
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6261
$as_echo "$ac_res" >&6; }
6262
as_val=`eval 'as_val=${'$as_ac_Header'}
6263
                 $as_echo "$as_val"'`
6264
   if test "x$as_val" = x""yes; then
6265
  cat >>confdefs.h <<_ACEOF
6266
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267
_ACEOF
6268
 
6269
fi
6270
 
6271
done
6272
 
6273
 
6274
 
6275
# Set options
6276
 
6277
 
6278
 
6279
        enable_dlopen=no
6280
 
6281
 
6282
  enable_win32_dll=no
6283
 
6284
 
6285
            # Check whether --enable-shared was given.
6286
if test "${enable_shared+set}" = set; then
6287
  enableval=$enable_shared; p=${PACKAGE-default}
6288
    case $enableval in
6289
    yes) enable_shared=yes ;;
6290
    no) enable_shared=no ;;
6291
    *)
6292
      enable_shared=no
6293
      # Look at the argument we got.  We use all the common list separators.
6294
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6295
      for pkg in $enableval; do
6296
        IFS="$lt_save_ifs"
6297
        if test "X$pkg" = "X$p"; then
6298
          enable_shared=yes
6299
        fi
6300
      done
6301
      IFS="$lt_save_ifs"
6302
      ;;
6303
    esac
6304
else
6305
  enable_shared=yes
6306
fi
6307
 
6308
 
6309
 
6310
 
6311
 
6312
 
6313
 
6314
 
6315
 
6316
  # Check whether --enable-static was given.
6317
if test "${enable_static+set}" = set; then
6318
  enableval=$enable_static; p=${PACKAGE-default}
6319
    case $enableval in
6320
    yes) enable_static=yes ;;
6321
    no) enable_static=no ;;
6322
    *)
6323
     enable_static=no
6324
      # Look at the argument we got.  We use all the common list separators.
6325
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6326
      for pkg in $enableval; do
6327
        IFS="$lt_save_ifs"
6328
        if test "X$pkg" = "X$p"; then
6329
          enable_static=yes
6330
        fi
6331
      done
6332
      IFS="$lt_save_ifs"
6333
      ;;
6334
    esac
6335
else
6336
  enable_static=yes
6337
fi
6338
 
6339
 
6340
 
6341
 
6342
 
6343
 
6344
 
6345
 
6346
 
6347
 
6348
# Check whether --with-pic was given.
6349
if test "${with_pic+set}" = set; then
6350
  withval=$with_pic; pic_mode="$withval"
6351
else
6352
  pic_mode=default
6353
fi
6354
 
6355
 
6356
test -z "$pic_mode" && pic_mode=default
6357
 
6358
 
6359
 
6360
 
6361
 
6362
 
6363
 
6364
  # Check whether --enable-fast-install was given.
6365
if test "${enable_fast_install+set}" = set; then
6366
  enableval=$enable_fast_install; p=${PACKAGE-default}
6367
    case $enableval in
6368
    yes) enable_fast_install=yes ;;
6369
    no) enable_fast_install=no ;;
6370
    *)
6371
      enable_fast_install=no
6372
      # Look at the argument we got.  We use all the common list separators.
6373
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6374
      for pkg in $enableval; do
6375
        IFS="$lt_save_ifs"
6376
        if test "X$pkg" = "X$p"; then
6377
          enable_fast_install=yes
6378
        fi
6379
      done
6380
      IFS="$lt_save_ifs"
6381
      ;;
6382
    esac
6383
else
6384
  enable_fast_install=yes
6385
fi
6386
 
6387
 
6388
 
6389
 
6390
 
6391
 
6392
 
6393
 
6394
 
6395
 
6396
 
6397
# This can be used to rebuild libtool when needed
6398
LIBTOOL_DEPS="$ltmain"
6399
 
6400
# Always use our own libtool.
6401
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6402
 
6403
 
6404
 
6405
 
6406
 
6407
 
6408
 
6409
 
6410
 
6411
 
6412
 
6413
 
6414
 
6415
 
6416
 
6417
 
6418
 
6419
 
6420
 
6421
 
6422
 
6423
 
6424
 
6425
 
6426
 
6427
test -z "$LN_S" && LN_S="ln -s"
6428
 
6429
 
6430
 
6431
 
6432
 
6433
 
6434
 
6435
 
6436
 
6437
 
6438
 
6439
 
6440
 
6441
 
6442
if test -n "${ZSH_VERSION+set}" ; then
6443
   setopt NO_GLOB_SUBST
6444
fi
6445
 
6446
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6447
$as_echo_n "checking for objdir... " >&6; }
6448
if test "${lt_cv_objdir+set}" = set; then
6449
  $as_echo_n "(cached) " >&6
6450
else
6451
  rm -f .libs 2>/dev/null
6452
mkdir .libs 2>/dev/null
6453
if test -d .libs; then
6454
  lt_cv_objdir=.libs
6455
else
6456
  # MS-DOS does not allow filenames that begin with a dot.
6457
  lt_cv_objdir=_libs
6458
fi
6459
rmdir .libs 2>/dev/null
6460
fi
6461
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6462
$as_echo "$lt_cv_objdir" >&6; }
6463
objdir=$lt_cv_objdir
6464
 
6465
 
6466
 
6467
 
6468
 
6469
cat >>confdefs.h <<_ACEOF
6470
#define LT_OBJDIR "$lt_cv_objdir/"
6471
_ACEOF
6472
 
6473
 
6474
 
6475
 
6476
 
6477
 
6478
 
6479
 
6480
 
6481
 
6482
 
6483
 
6484
 
6485
 
6486
 
6487
 
6488
 
6489
case $host_os in
6490
aix3*)
6491
  # AIX sometimes has problems with the GCC collect2 program.  For some
6492
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6493
  # vanish in a puff of smoke.
6494
  if test "X${COLLECT_NAMES+set}" != Xset; then
6495
    COLLECT_NAMES=
6496
    export COLLECT_NAMES
6497
  fi
6498
  ;;
6499
esac
6500
 
6501
# Sed substitution that helps us do robust quoting.  It backslashifies
6502
# metacharacters that are still active within double-quoted strings.
6503
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6504
 
6505
# Same as above, but do not quote variable references.
6506
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6507
 
6508
# Sed substitution to delay expansion of an escaped shell variable in a
6509
# double_quote_subst'ed string.
6510
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6511
 
6512
# Sed substitution to delay expansion of an escaped single quote.
6513
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6514
 
6515
# Sed substitution to avoid accidental globbing in evaled expressions
6516
no_glob_subst='s/\*/\\\*/g'
6517
 
6518
# Global variables:
6519
ofile=libtool
6520
can_build_shared=yes
6521
 
6522
# All known linkers require a `.a' archive for static linking (except MSVC,
6523
# which needs '.lib').
6524
libext=a
6525
 
6526
with_gnu_ld="$lt_cv_prog_gnu_ld"
6527
 
6528
old_CC="$CC"
6529
old_CFLAGS="$CFLAGS"
6530
 
6531
# Set sane defaults for various variables
6532
test -z "$CC" && CC=cc
6533
test -z "$LTCC" && LTCC=$CC
6534
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6535
test -z "$LD" && LD=ld
6536
test -z "$ac_objext" && ac_objext=o
6537
 
6538
for cc_temp in $compiler""; do
6539
  case $cc_temp in
6540
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6541
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6542
    \-*) ;;
6543
    *) break;;
6544
  esac
6545
done
6546
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6547
 
6548
 
6549
# Only perform the check for file, if the check method requires it
6550
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6551
case $deplibs_check_method in
6552
file_magic*)
6553
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6554
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6555
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6556
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6557
  $as_echo_n "(cached) " >&6
6558
else
6559
  case $MAGIC_CMD in
6560
[\\/*] |  ?:[\\/]*)
6561
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6562
  ;;
6563
*)
6564
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6565
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6566
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6567
  for ac_dir in $ac_dummy; do
6568
    IFS="$lt_save_ifs"
6569
    test -z "$ac_dir" && ac_dir=.
6570
    if test -f $ac_dir/${ac_tool_prefix}file; then
6571
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6572
      if test -n "$file_magic_test_file"; then
6573
        case $deplibs_check_method in
6574
        "file_magic "*)
6575
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6576
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6577
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6578
            $EGREP "$file_magic_regex" > /dev/null; then
6579
            :
6580
          else
6581
            cat <<_LT_EOF 1>&2
6582
 
6583
*** Warning: the command libtool uses to detect shared libraries,
6584
*** $file_magic_cmd, produces output that libtool cannot recognize.
6585
*** The result is that libtool may fail to recognize shared libraries
6586
*** as such.  This will affect the creation of libtool libraries that
6587
*** depend on shared libraries, but programs linked with such libtool
6588
*** libraries will work regardless of this problem.  Nevertheless, you
6589
*** may want to report the problem to your system manager and/or to
6590
*** bug-libtool@gnu.org
6591
 
6592
_LT_EOF
6593
          fi ;;
6594
        esac
6595
      fi
6596
      break
6597
    fi
6598
  done
6599
  IFS="$lt_save_ifs"
6600
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6601
  ;;
6602
esac
6603
fi
6604
 
6605
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6606
if test -n "$MAGIC_CMD"; then
6607
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6608
$as_echo "$MAGIC_CMD" >&6; }
6609
else
6610
  { $as_echo "$as_me:$LINENO: result: no" >&5
6611
$as_echo "no" >&6; }
6612
fi
6613
 
6614
 
6615
 
6616
 
6617
 
6618
if test -z "$lt_cv_path_MAGIC_CMD"; then
6619
  if test -n "$ac_tool_prefix"; then
6620
    { $as_echo "$as_me:$LINENO: checking for file" >&5
6621
$as_echo_n "checking for file... " >&6; }
6622
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6623
  $as_echo_n "(cached) " >&6
6624
else
6625
  case $MAGIC_CMD in
6626
[\\/*] |  ?:[\\/]*)
6627
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6628
  ;;
6629
*)
6630
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6631
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6632
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6633
  for ac_dir in $ac_dummy; do
6634
    IFS="$lt_save_ifs"
6635
    test -z "$ac_dir" && ac_dir=.
6636
    if test -f $ac_dir/file; then
6637
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6638
      if test -n "$file_magic_test_file"; then
6639
        case $deplibs_check_method in
6640
        "file_magic "*)
6641
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6642
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6643
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6644
            $EGREP "$file_magic_regex" > /dev/null; then
6645
            :
6646
          else
6647
            cat <<_LT_EOF 1>&2
6648
 
6649
*** Warning: the command libtool uses to detect shared libraries,
6650
*** $file_magic_cmd, produces output that libtool cannot recognize.
6651
*** The result is that libtool may fail to recognize shared libraries
6652
*** as such.  This will affect the creation of libtool libraries that
6653
*** depend on shared libraries, but programs linked with such libtool
6654
*** libraries will work regardless of this problem.  Nevertheless, you
6655
*** may want to report the problem to your system manager and/or to
6656
*** bug-libtool@gnu.org
6657
 
6658
_LT_EOF
6659
          fi ;;
6660
        esac
6661
      fi
6662
      break
6663
    fi
6664
  done
6665
  IFS="$lt_save_ifs"
6666
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6667
  ;;
6668
esac
6669
fi
6670
 
6671
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6672
if test -n "$MAGIC_CMD"; then
6673
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6674
$as_echo "$MAGIC_CMD" >&6; }
6675
else
6676
  { $as_echo "$as_me:$LINENO: result: no" >&5
6677
$as_echo "no" >&6; }
6678
fi
6679
 
6680
 
6681
  else
6682
    MAGIC_CMD=:
6683
  fi
6684
fi
6685
 
6686
  fi
6687
  ;;
6688
esac
6689
 
6690
# Use C for the default configuration in the libtool script
6691
 
6692
lt_save_CC="$CC"
6693
ac_ext=c
6694
ac_cpp='$CPP $CPPFLAGS'
6695
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6696
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6697
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6698
 
6699
 
6700
# Source file extension for C test sources.
6701
ac_ext=c
6702
 
6703
# Object file extension for compiled C test sources.
6704
objext=o
6705
objext=$objext
6706
 
6707
# Code to be used in simple compile tests
6708
lt_simple_compile_test_code="int some_variable = 0;"
6709
 
6710
# Code to be used in simple link tests
6711
lt_simple_link_test_code='int main(){return(0);}'
6712
 
6713
 
6714
 
6715
 
6716
 
6717
 
6718
 
6719
# If no C compiler was specified, use CC.
6720
LTCC=${LTCC-"$CC"}
6721
 
6722
# If no C compiler flags were specified, use CFLAGS.
6723
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6724
 
6725
# Allow CC to be a program name with arguments.
6726
compiler=$CC
6727
 
6728
# Save the default compiler, since it gets overwritten when the other
6729
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6730
compiler_DEFAULT=$CC
6731
 
6732
# save warnings/boilerplate of simple test code
6733
ac_outfile=conftest.$ac_objext
6734
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6735
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6736
_lt_compiler_boilerplate=`cat conftest.err`
6737
$RM conftest*
6738
 
6739
ac_outfile=conftest.$ac_objext
6740
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6741
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6742
_lt_linker_boilerplate=`cat conftest.err`
6743
$RM -r conftest*
6744
 
6745
 
6746
## CAVEAT EMPTOR:
6747
## There is no encapsulation within the following macros, do not change
6748
## the running order or otherwise move them around unless you know exactly
6749
## what you are doing...
6750
if test -n "$compiler"; then
6751
 
6752
lt_prog_compiler_no_builtin_flag=
6753
 
6754
if test "$GCC" = yes; then
6755
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6756
 
6757
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6758
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6759
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6760
  $as_echo_n "(cached) " >&6
6761
else
6762
  lt_cv_prog_compiler_rtti_exceptions=no
6763
   ac_outfile=conftest.$ac_objext
6764
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6765
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6766
   # Insert the option either (1) after the last *FLAGS variable, or
6767
   # (2) before a word containing "conftest.", or (3) at the end.
6768
   # Note that $ac_compile itself does not contain backslashes and begins
6769
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6770
   # The option is referenced via a variable to avoid confusing sed.
6771
   lt_compile=`echo "$ac_compile" | $SED \
6772
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6773
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6774
   -e 's:$: $lt_compiler_flag:'`
6775
   (eval echo "\"\$as_me:6775: $lt_compile\"" >&5)
6776
   (eval "$lt_compile" 2>conftest.err)
6777
   ac_status=$?
6778
   cat conftest.err >&5
6779
   echo "$as_me:6779: \$? = $ac_status" >&5
6780
   if (exit $ac_status) && test -s "$ac_outfile"; then
6781
     # The compiler can only warn and ignore the option if not recognized
6782
     # So say no if there are warnings other than the usual output.
6783
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6784
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6785
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6786
       lt_cv_prog_compiler_rtti_exceptions=yes
6787
     fi
6788
   fi
6789
   $RM conftest*
6790
 
6791
fi
6792
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6793
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6794
 
6795
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6796
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6797
else
6798
    :
6799
fi
6800
 
6801
fi
6802
 
6803
 
6804
 
6805
 
6806
 
6807
 
6808
  lt_prog_compiler_wl=
6809
lt_prog_compiler_pic=
6810
lt_prog_compiler_static=
6811
 
6812
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6813
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6814
 
6815
  if test "$GCC" = yes; then
6816
    lt_prog_compiler_wl='-Wl,'
6817
    lt_prog_compiler_static='-static'
6818
 
6819
    case $host_os in
6820
      aix*)
6821
      # All AIX code is PIC.
6822
      if test "$host_cpu" = ia64; then
6823
        # AIX 5 now supports IA64 processor
6824
        lt_prog_compiler_static='-Bstatic'
6825
      fi
6826
      ;;
6827
 
6828
    amigaos*)
6829
      case $host_cpu in
6830
      powerpc)
6831
            # see comment about AmigaOS4 .so support
6832
            lt_prog_compiler_pic='-fPIC'
6833
        ;;
6834
      m68k)
6835
            # FIXME: we need at least 68020 code to build shared libraries, but
6836
            # adding the `-m68020' flag to GCC prevents building anything better,
6837
            # like `-m68040'.
6838
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6839
        ;;
6840
      esac
6841
      ;;
6842
 
6843
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6844
      # PIC is the default for these OSes.
6845
      ;;
6846
 
6847
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6848
      # This hack is so that the source file can tell whether it is being
6849
      # built for inclusion in a dll (and should export symbols for example).
6850
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6851
      # (--disable-auto-import) libraries
6852
      lt_prog_compiler_pic='-DDLL_EXPORT'
6853
      ;;
6854
 
6855
    darwin* | rhapsody*)
6856
      # PIC is the default on this platform
6857
      # Common symbols not allowed in MH_DYLIB files
6858
      lt_prog_compiler_pic='-fno-common'
6859
      ;;
6860
 
6861
    hpux*)
6862
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6863
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6864
      # sets the default TLS model and affects inlining.
6865
      case $host_cpu in
6866
      hppa*64*)
6867
        # +Z the default
6868
        ;;
6869
      *)
6870
        lt_prog_compiler_pic='-fPIC'
6871
        ;;
6872
      esac
6873
      ;;
6874
 
6875
    interix[3-9]*)
6876
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6877
      # Instead, we relocate shared libraries at runtime.
6878
      ;;
6879
 
6880
    msdosdjgpp*)
6881
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6882
      # on systems that don't support them.
6883
      lt_prog_compiler_can_build_shared=no
6884
      enable_shared=no
6885
      ;;
6886
 
6887
    *nto* | *qnx*)
6888
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6889
      # it will coredump.
6890
      lt_prog_compiler_pic='-fPIC -shared'
6891
      ;;
6892
 
6893
    sysv4*MP*)
6894
      if test -d /usr/nec; then
6895
        lt_prog_compiler_pic=-Kconform_pic
6896
      fi
6897
      ;;
6898
 
6899
    *)
6900
      lt_prog_compiler_pic='-fPIC'
6901
      ;;
6902
    esac
6903
  else
6904
    # PORTME Check for flag to pass linker flags through the system compiler.
6905
    case $host_os in
6906
    aix*)
6907
      lt_prog_compiler_wl='-Wl,'
6908
      if test "$host_cpu" = ia64; then
6909
        # AIX 5 now supports IA64 processor
6910
        lt_prog_compiler_static='-Bstatic'
6911
      else
6912
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6913
      fi
6914
      ;;
6915
 
6916
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6917
      # This hack is so that the source file can tell whether it is being
6918
      # built for inclusion in a dll (and should export symbols for example).
6919
      lt_prog_compiler_pic='-DDLL_EXPORT'
6920
      ;;
6921
 
6922
    hpux9* | hpux10* | hpux11*)
6923
      lt_prog_compiler_wl='-Wl,'
6924
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6925
      # not for PA HP-UX.
6926
      case $host_cpu in
6927
      hppa*64*|ia64*)
6928
        # +Z the default
6929
        ;;
6930
      *)
6931
        lt_prog_compiler_pic='+Z'
6932
        ;;
6933
      esac
6934
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6935
      lt_prog_compiler_static='${wl}-a ${wl}archive'
6936
      ;;
6937
 
6938
    irix5* | irix6* | nonstopux*)
6939
      lt_prog_compiler_wl='-Wl,'
6940
      # PIC (with -KPIC) is the default.
6941
      lt_prog_compiler_static='-non_shared'
6942
      ;;
6943
 
6944
    linux* | k*bsd*-gnu)
6945
      case $cc_basename in
6946
      # old Intel for x86_64 which still supported -KPIC.
6947
      ecc*)
6948
        lt_prog_compiler_wl='-Wl,'
6949
        lt_prog_compiler_pic='-KPIC'
6950
        lt_prog_compiler_static='-static'
6951
        ;;
6952
      # icc used to be incompatible with GCC.
6953
      # ICC 10 doesn't accept -KPIC any more.
6954
      icc* | ifort*)
6955
        lt_prog_compiler_wl='-Wl,'
6956
        lt_prog_compiler_pic='-fPIC'
6957
        lt_prog_compiler_static='-static'
6958
        ;;
6959
      # Lahey Fortran 8.1.
6960
      lf95*)
6961
        lt_prog_compiler_wl='-Wl,'
6962
        lt_prog_compiler_pic='--shared'
6963
        lt_prog_compiler_static='--static'
6964
        ;;
6965
      pgcc* | pgf77* | pgf90* | pgf95*)
6966
        # Portland Group compilers (*not* the Pentium gcc compiler,
6967
        # which looks to be a dead project)
6968
        lt_prog_compiler_wl='-Wl,'
6969
        lt_prog_compiler_pic='-fpic'
6970
        lt_prog_compiler_static='-Bstatic'
6971
        ;;
6972
      ccc*)
6973
        lt_prog_compiler_wl='-Wl,'
6974
        # All Alpha code is PIC.
6975
        lt_prog_compiler_static='-non_shared'
6976
        ;;
6977
      xl*)
6978
        # IBM XL C 8.0/Fortran 10.1 on PPC
6979
        lt_prog_compiler_wl='-Wl,'
6980
        lt_prog_compiler_pic='-qpic'
6981
        lt_prog_compiler_static='-qstaticlink'
6982
        ;;
6983
      *)
6984
        case `$CC -V 2>&1 | sed 5q` in
6985
        *Sun\ C*)
6986
          # Sun C 5.9
6987
          lt_prog_compiler_pic='-KPIC'
6988
          lt_prog_compiler_static='-Bstatic'
6989
          lt_prog_compiler_wl='-Wl,'
6990
          ;;
6991
        *Sun\ F*)
6992
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6993
          lt_prog_compiler_pic='-KPIC'
6994
          lt_prog_compiler_static='-Bstatic'
6995
          lt_prog_compiler_wl=''
6996
          ;;
6997
        esac
6998
        ;;
6999
      esac
7000
      ;;
7001
 
7002
    newsos6)
7003
      lt_prog_compiler_pic='-KPIC'
7004
      lt_prog_compiler_static='-Bstatic'
7005
      ;;
7006
 
7007
    *nto* | *qnx*)
7008
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7009
      # it will coredump.
7010
      lt_prog_compiler_pic='-fPIC -shared'
7011
      ;;
7012
 
7013
    osf3* | osf4* | osf5*)
7014
      lt_prog_compiler_wl='-Wl,'
7015
      # All OSF/1 code is PIC.
7016
      lt_prog_compiler_static='-non_shared'
7017
      ;;
7018
 
7019
    rdos*)
7020
      lt_prog_compiler_static='-non_shared'
7021
      ;;
7022
 
7023
    solaris*)
7024
      lt_prog_compiler_pic='-KPIC'
7025
      lt_prog_compiler_static='-Bstatic'
7026
      case $cc_basename in
7027
      f77* | f90* | f95*)
7028
        lt_prog_compiler_wl='-Qoption ld ';;
7029
      *)
7030
        lt_prog_compiler_wl='-Wl,';;
7031
      esac
7032
      ;;
7033
 
7034
    sunos4*)
7035
      lt_prog_compiler_wl='-Qoption ld '
7036
      lt_prog_compiler_pic='-PIC'
7037
      lt_prog_compiler_static='-Bstatic'
7038
      ;;
7039
 
7040
    sysv4 | sysv4.2uw2* | sysv4.3*)
7041
      lt_prog_compiler_wl='-Wl,'
7042
      lt_prog_compiler_pic='-KPIC'
7043
      lt_prog_compiler_static='-Bstatic'
7044
      ;;
7045
 
7046
    sysv4*MP*)
7047
      if test -d /usr/nec ;then
7048
        lt_prog_compiler_pic='-Kconform_pic'
7049
        lt_prog_compiler_static='-Bstatic'
7050
      fi
7051
      ;;
7052
 
7053
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7054
      lt_prog_compiler_wl='-Wl,'
7055
      lt_prog_compiler_pic='-KPIC'
7056
      lt_prog_compiler_static='-Bstatic'
7057
      ;;
7058
 
7059
    unicos*)
7060
      lt_prog_compiler_wl='-Wl,'
7061
      lt_prog_compiler_can_build_shared=no
7062
      ;;
7063
 
7064
    uts4*)
7065
      lt_prog_compiler_pic='-pic'
7066
      lt_prog_compiler_static='-Bstatic'
7067
      ;;
7068
 
7069
    *)
7070
      lt_prog_compiler_can_build_shared=no
7071
      ;;
7072
    esac
7073
  fi
7074
 
7075
case $host_os in
7076
  # For platforms which do not support PIC, -DPIC is meaningless:
7077
  *djgpp*)
7078
    lt_prog_compiler_pic=
7079
    ;;
7080
  *)
7081
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7082
    ;;
7083
esac
7084
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7085
$as_echo "$lt_prog_compiler_pic" >&6; }
7086
 
7087
 
7088
 
7089
 
7090
 
7091
 
7092
#
7093
# Check to make sure the PIC flag actually works.
7094
#
7095
if test -n "$lt_prog_compiler_pic"; then
7096
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7097
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7098
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7099
  $as_echo_n "(cached) " >&6
7100
else
7101
  lt_cv_prog_compiler_pic_works=no
7102
   ac_outfile=conftest.$ac_objext
7103
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7104
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7105
   # Insert the option either (1) after the last *FLAGS variable, or
7106
   # (2) before a word containing "conftest.", or (3) at the end.
7107
   # Note that $ac_compile itself does not contain backslashes and begins
7108
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7109
   # The option is referenced via a variable to avoid confusing sed.
7110
   lt_compile=`echo "$ac_compile" | $SED \
7111
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7112
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7113
   -e 's:$: $lt_compiler_flag:'`
7114
   (eval echo "\"\$as_me:7114: $lt_compile\"" >&5)
7115
   (eval "$lt_compile" 2>conftest.err)
7116
   ac_status=$?
7117
   cat conftest.err >&5
7118
   echo "$as_me:7118: \$? = $ac_status" >&5
7119
   if (exit $ac_status) && test -s "$ac_outfile"; then
7120
     # The compiler can only warn and ignore the option if not recognized
7121
     # So say no if there are warnings other than the usual output.
7122
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7123
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7124
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7125
       lt_cv_prog_compiler_pic_works=yes
7126
     fi
7127
   fi
7128
   $RM conftest*
7129
 
7130
fi
7131
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7132
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7133
 
7134
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7135
    case $lt_prog_compiler_pic in
7136
     "" | " "*) ;;
7137
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7138
     esac
7139
else
7140
    lt_prog_compiler_pic=
7141
     lt_prog_compiler_can_build_shared=no
7142
fi
7143
 
7144
fi
7145
 
7146
 
7147
 
7148
 
7149
 
7150
 
7151
#
7152
# Check to make sure the static flag actually works.
7153
#
7154
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7155
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7156
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7157
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7158
  $as_echo_n "(cached) " >&6
7159
else
7160
  lt_cv_prog_compiler_static_works=no
7161
   save_LDFLAGS="$LDFLAGS"
7162
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7163
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7164
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7165
     # The linker can only warn and ignore the option if not recognized
7166
     # So say no if there are warnings
7167
     if test -s conftest.err; then
7168
       # Append any errors to the config.log.
7169
       cat conftest.err 1>&5
7170
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7171
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7172
       if diff conftest.exp conftest.er2 >/dev/null; then
7173
         lt_cv_prog_compiler_static_works=yes
7174
       fi
7175
     else
7176
       lt_cv_prog_compiler_static_works=yes
7177
     fi
7178
   fi
7179
   $RM -r conftest*
7180
   LDFLAGS="$save_LDFLAGS"
7181
 
7182
fi
7183
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7184
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7185
 
7186
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7187
    :
7188
else
7189
    lt_prog_compiler_static=
7190
fi
7191
 
7192
 
7193
 
7194
 
7195
 
7196
 
7197
 
7198
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7199
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7200
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7201
  $as_echo_n "(cached) " >&6
7202
else
7203
  lt_cv_prog_compiler_c_o=no
7204
   $RM -r conftest 2>/dev/null
7205
   mkdir conftest
7206
   cd conftest
7207
   mkdir out
7208
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7209
 
7210
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7211
   # Insert the option either (1) after the last *FLAGS variable, or
7212
   # (2) before a word containing "conftest.", or (3) at the end.
7213
   # Note that $ac_compile itself does not contain backslashes and begins
7214
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7215
   lt_compile=`echo "$ac_compile" | $SED \
7216
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7217
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7218
   -e 's:$: $lt_compiler_flag:'`
7219
   (eval echo "\"\$as_me:7219: $lt_compile\"" >&5)
7220
   (eval "$lt_compile" 2>out/conftest.err)
7221
   ac_status=$?
7222
   cat out/conftest.err >&5
7223
   echo "$as_me:7223: \$? = $ac_status" >&5
7224
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7225
   then
7226
     # The compiler can only warn and ignore the option if not recognized
7227
     # So say no if there are warnings
7228
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7229
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7230
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7231
       lt_cv_prog_compiler_c_o=yes
7232
     fi
7233
   fi
7234
   chmod u+w . 2>&5
7235
   $RM conftest*
7236
   # SGI C++ compiler will create directory out/ii_files/ for
7237
   # template instantiation
7238
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7239
   $RM out/* && rmdir out
7240
   cd ..
7241
   $RM -r conftest
7242
   $RM conftest*
7243
 
7244
fi
7245
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7246
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7247
 
7248
 
7249
 
7250
 
7251
 
7252
 
7253
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7254
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7255
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7256
  $as_echo_n "(cached) " >&6
7257
else
7258
  lt_cv_prog_compiler_c_o=no
7259
   $RM -r conftest 2>/dev/null
7260
   mkdir conftest
7261
   cd conftest
7262
   mkdir out
7263
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7264
 
7265
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7266
   # Insert the option either (1) after the last *FLAGS variable, or
7267
   # (2) before a word containing "conftest.", or (3) at the end.
7268
   # Note that $ac_compile itself does not contain backslashes and begins
7269
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7270
   lt_compile=`echo "$ac_compile" | $SED \
7271
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7272
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7273
   -e 's:$: $lt_compiler_flag:'`
7274
   (eval echo "\"\$as_me:7274: $lt_compile\"" >&5)
7275
   (eval "$lt_compile" 2>out/conftest.err)
7276
   ac_status=$?
7277
   cat out/conftest.err >&5
7278
   echo "$as_me:7278: \$? = $ac_status" >&5
7279
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7280
   then
7281
     # The compiler can only warn and ignore the option if not recognized
7282
     # So say no if there are warnings
7283
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7284
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7285
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7286
       lt_cv_prog_compiler_c_o=yes
7287
     fi
7288
   fi
7289
   chmod u+w . 2>&5
7290
   $RM conftest*
7291
   # SGI C++ compiler will create directory out/ii_files/ for
7292
   # template instantiation
7293
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7294
   $RM out/* && rmdir out
7295
   cd ..
7296
   $RM -r conftest
7297
   $RM conftest*
7298
 
7299
fi
7300
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7301
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7302
 
7303
 
7304
 
7305
 
7306
hard_links="nottested"
7307
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7308
  # do not overwrite the value of need_locks provided by the user
7309
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7310
$as_echo_n "checking if we can lock with hard links... " >&6; }
7311
  hard_links=yes
7312
  $RM conftest*
7313
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7314
  touch conftest.a
7315
  ln conftest.a conftest.b 2>&5 || hard_links=no
7316
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7317
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7318
$as_echo "$hard_links" >&6; }
7319
  if test "$hard_links" = no; then
7320
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7321
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7322
    need_locks=warn
7323
  fi
7324
else
7325
  need_locks=no
7326
fi
7327
 
7328
 
7329
 
7330
 
7331
 
7332
 
7333
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7334
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7335
 
7336
  runpath_var=
7337
  allow_undefined_flag=
7338
  always_export_symbols=no
7339
  archive_cmds=
7340
  archive_expsym_cmds=
7341
  compiler_needs_object=no
7342
  enable_shared_with_static_runtimes=no
7343
  export_dynamic_flag_spec=
7344
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7345
  hardcode_automatic=no
7346
  hardcode_direct=no
7347
  hardcode_direct_absolute=no
7348
  hardcode_libdir_flag_spec=
7349
  hardcode_libdir_flag_spec_ld=
7350
  hardcode_libdir_separator=
7351
  hardcode_minus_L=no
7352
  hardcode_shlibpath_var=unsupported
7353
  inherit_rpath=no
7354
  link_all_deplibs=unknown
7355
  module_cmds=
7356
  module_expsym_cmds=
7357
  old_archive_from_new_cmds=
7358
  old_archive_from_expsyms_cmds=
7359
  thread_safe_flag_spec=
7360
  whole_archive_flag_spec=
7361
  # include_expsyms should be a list of space-separated symbols to be *always*
7362
  # included in the symbol list
7363
  include_expsyms=
7364
  # exclude_expsyms can be an extended regexp of symbols to exclude
7365
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7366
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7367
  # as well as any symbol that contains `d'.
7368
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7369
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7370
  # platforms (ab)use it in PIC code, but their linkers get confused if
7371
  # the symbol is explicitly referenced.  Since portable code cannot
7372
  # rely on this symbol name, it's probably fine to never include it in
7373
  # preloaded symbol tables.
7374
  # Exclude shared library initialization/finalization symbols.
7375
  extract_expsyms_cmds=
7376
 
7377
  case $host_os in
7378
  cygwin* | mingw* | pw32* | cegcc*)
7379
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7380
    # When not using gcc, we currently assume that we are using
7381
    # Microsoft Visual C++.
7382
    if test "$GCC" != yes; then
7383
      with_gnu_ld=no
7384
    fi
7385
    ;;
7386
  interix*)
7387
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7388
    with_gnu_ld=yes
7389
    ;;
7390
  openbsd*)
7391
    with_gnu_ld=no
7392
    ;;
7393
  esac
7394
 
7395
  ld_shlibs=yes
7396
  if test "$with_gnu_ld" = yes; then
7397
    # If archive_cmds runs LD, not CC, wlarc should be empty
7398
    wlarc='${wl}'
7399
 
7400
    # Set some defaults for GNU ld with shared library support. These
7401
    # are reset later if shared libraries are not supported. Putting them
7402
    # here allows them to be overridden if necessary.
7403
    runpath_var=LD_RUN_PATH
7404
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7405
    export_dynamic_flag_spec='${wl}--export-dynamic'
7406
    # ancient GNU ld didn't support --whole-archive et. al.
7407
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7408
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7409
    else
7410
      whole_archive_flag_spec=
7411
    fi
7412
    supports_anon_versioning=no
7413
    case `$LD -v 2>&1` in
7414
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7415
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7416
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7417
      *\ 2.11.*) ;; # other 2.11 versions
7418
      *) supports_anon_versioning=yes ;;
7419
    esac
7420
 
7421
    # See if GNU ld supports shared libraries.
7422
    case $host_os in
7423
    aix[3-9]*)
7424
      # On AIX/PPC, the GNU linker is very broken
7425
      if test "$host_cpu" != ia64; then
7426
        ld_shlibs=no
7427
        cat <<_LT_EOF 1>&2
7428
 
7429
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7430
*** to be unable to reliably create shared libraries on AIX.
7431
*** Therefore, libtool is disabling shared libraries support.  If you
7432
*** really care for shared libraries, you may want to modify your PATH
7433
*** so that a non-GNU linker is found, and then restart.
7434
 
7435
_LT_EOF
7436
      fi
7437
      ;;
7438
 
7439
    amigaos*)
7440
      case $host_cpu in
7441
      powerpc)
7442
            # see comment about AmigaOS4 .so support
7443
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7444
            archive_expsym_cmds=''
7445
        ;;
7446
      m68k)
7447
            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)'
7448
            hardcode_libdir_flag_spec='-L$libdir'
7449
            hardcode_minus_L=yes
7450
        ;;
7451
      esac
7452
      ;;
7453
 
7454
    beos*)
7455
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7456
        allow_undefined_flag=unsupported
7457
        # Joseph Beckenbach  says some releases of gcc
7458
        # support --undefined.  This deserves some investigation.  FIXME
7459
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7460
      else
7461
        ld_shlibs=no
7462
      fi
7463
      ;;
7464
 
7465
    cygwin* | mingw* | pw32* | cegcc*)
7466
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7467
      # as there is no search path for DLLs.
7468
      hardcode_libdir_flag_spec='-L$libdir'
7469
      allow_undefined_flag=unsupported
7470
      always_export_symbols=no
7471
      enable_shared_with_static_runtimes=yes
7472
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7473
 
7474
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7475
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7476
        # If the export-symbols file already is a .def file (1st line
7477
        # is EXPORTS), use it as is; otherwise, prepend...
7478
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7479
          cp $export_symbols $output_objdir/$soname.def;
7480
        else
7481
          echo EXPORTS > $output_objdir/$soname.def;
7482
          cat $export_symbols >> $output_objdir/$soname.def;
7483
        fi~
7484
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7485
      else
7486
        ld_shlibs=no
7487
      fi
7488
      ;;
7489
 
7490
    interix[3-9]*)
7491
      hardcode_direct=no
7492
      hardcode_shlibpath_var=no
7493
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7494
      export_dynamic_flag_spec='${wl}-E'
7495
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7496
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7497
      # default) and relocated if they conflict, which is a slow very memory
7498
      # consuming and fragmenting process.  To avoid this, we pick a random,
7499
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7500
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7501
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7502
      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'
7503
      ;;
7504
 
7505
    gnu* | linux* | tpf* | k*bsd*-gnu)
7506
      tmp_diet=no
7507
      if test "$host_os" = linux-dietlibc; then
7508
        case $cc_basename in
7509
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7510
        esac
7511
      fi
7512
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7513
         && test "$tmp_diet" = no
7514
      then
7515
        tmp_addflag=
7516
        tmp_sharedflag='-shared'
7517
        case $cc_basename,$host_cpu in
7518
        pgcc*)                          # Portland Group C compiler
7519
          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'
7520
          tmp_addflag=' $pic_flag'
7521
          ;;
7522
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7523
          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'
7524
          tmp_addflag=' $pic_flag -Mnomain' ;;
7525
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7526
          tmp_addflag=' -i_dynamic' ;;
7527
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7528
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7529
        ifc* | ifort*)                  # Intel Fortran compiler
7530
          tmp_addflag=' -nofor_main' ;;
7531
        lf95*)                          # Lahey Fortran 8.1
7532
          whole_archive_flag_spec=
7533
          tmp_sharedflag='--shared' ;;
7534
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7535
          tmp_sharedflag='-qmkshrobj'
7536
          tmp_addflag= ;;
7537
        esac
7538
        case `$CC -V 2>&1 | sed 5q` in
7539
        *Sun\ C*)                       # Sun C 5.9
7540
          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'
7541
          compiler_needs_object=yes
7542
          tmp_sharedflag='-G' ;;
7543
        *Sun\ F*)                       # Sun Fortran 8.3
7544
          tmp_sharedflag='-G' ;;
7545
        esac
7546
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7547
 
7548
        if test "x$supports_anon_versioning" = xyes; then
7549
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7550
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7551
            echo "local: *; };" >> $output_objdir/$libname.ver~
7552
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7553
        fi
7554
 
7555
        case $cc_basename in
7556
        xlf*)
7557
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7558
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7559
          hardcode_libdir_flag_spec=
7560
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7561
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7562
          if test "x$supports_anon_versioning" = xyes; then
7563
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7564
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7565
              echo "local: *; };" >> $output_objdir/$libname.ver~
7566
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7567
          fi
7568
          ;;
7569
        esac
7570
      else
7571
        ld_shlibs=no
7572
      fi
7573
      ;;
7574
 
7575
    netbsd*)
7576
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7577
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7578
        wlarc=
7579
      else
7580
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7581
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7582
      fi
7583
      ;;
7584
 
7585
    solaris*)
7586
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7587
        ld_shlibs=no
7588
        cat <<_LT_EOF 1>&2
7589
 
7590
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7591
*** create shared libraries on Solaris systems.  Therefore, libtool
7592
*** is disabling shared libraries support.  We urge you to upgrade GNU
7593
*** binutils to release 2.9.1 or newer.  Another option is to modify
7594
*** your PATH or compiler configuration so that the native linker is
7595
*** used, and then restart.
7596
 
7597
_LT_EOF
7598
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7599
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7600
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7601
      else
7602
        ld_shlibs=no
7603
      fi
7604
      ;;
7605
 
7606
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7607
      case `$LD -v 2>&1` in
7608
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7609
        ld_shlibs=no
7610
        cat <<_LT_EOF 1>&2
7611
 
7612
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7613
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7614
*** is disabling shared libraries support.  We urge you to upgrade GNU
7615
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7616
*** your PATH or compiler configuration so that the native linker is
7617
*** used, and then restart.
7618
 
7619
_LT_EOF
7620
        ;;
7621
        *)
7622
          # For security reasons, it is highly recommended that you always
7623
          # use absolute paths for naming shared libraries, and exclude the
7624
          # DT_RUNPATH tag from executables and libraries.  But doing so
7625
          # requires that you compile everything twice, which is a pain.
7626
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7627
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7628
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7629
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7630
          else
7631
            ld_shlibs=no
7632
          fi
7633
        ;;
7634
      esac
7635
      ;;
7636
 
7637
    sunos4*)
7638
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7639
      wlarc=
7640
      hardcode_direct=yes
7641
      hardcode_shlibpath_var=no
7642
      ;;
7643
 
7644
    *)
7645
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7646
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7647
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7648
      else
7649
        ld_shlibs=no
7650
      fi
7651
      ;;
7652
    esac
7653
 
7654
    if test "$ld_shlibs" = no; then
7655
      runpath_var=
7656
      hardcode_libdir_flag_spec=
7657
      export_dynamic_flag_spec=
7658
      whole_archive_flag_spec=
7659
    fi
7660
  else
7661
    # PORTME fill in a description of your system's linker (not GNU ld)
7662
    case $host_os in
7663
    aix3*)
7664
      allow_undefined_flag=unsupported
7665
      always_export_symbols=yes
7666
      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'
7667
      # Note: this linker hardcodes the directories in LIBPATH if there
7668
      # are no directories specified by -L.
7669
      hardcode_minus_L=yes
7670
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7671
        # Neither direct hardcoding nor static linking is supported with a
7672
        # broken collect2.
7673
        hardcode_direct=unsupported
7674
      fi
7675
      ;;
7676
 
7677
    aix[4-9]*)
7678
      if test "$host_cpu" = ia64; then
7679
        # On IA64, the linker does run time linking by default, so we don't
7680
        # have to do anything special.
7681
        aix_use_runtimelinking=no
7682
        exp_sym_flag='-Bexport'
7683
        no_entry_flag=""
7684
      else
7685
        # If we're using GNU nm, then we don't want the "-C" option.
7686
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7687
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7688
          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'
7689
        else
7690
          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'
7691
        fi
7692
        aix_use_runtimelinking=no
7693
 
7694
        # Test if we are trying to use run time linking or normal
7695
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7696
        # need to do runtime linking.
7697
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7698
          for ld_flag in $LDFLAGS; do
7699
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7700
            aix_use_runtimelinking=yes
7701
            break
7702
          fi
7703
          done
7704
          ;;
7705
        esac
7706
 
7707
        exp_sym_flag='-bexport'
7708
        no_entry_flag='-bnoentry'
7709
      fi
7710
 
7711
      # When large executables or shared objects are built, AIX ld can
7712
      # have problems creating the table of contents.  If linking a library
7713
      # or program results in "error TOC overflow" add -mminimal-toc to
7714
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7715
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7716
 
7717
      archive_cmds=''
7718
      hardcode_direct=yes
7719
      hardcode_direct_absolute=yes
7720
      hardcode_libdir_separator=':'
7721
      link_all_deplibs=yes
7722
      file_list_spec='${wl}-f,'
7723
 
7724
      if test "$GCC" = yes; then
7725
        case $host_os in aix4.[012]|aix4.[012].*)
7726
        # We only want to do this on AIX 4.2 and lower, the check
7727
        # below for broken collect2 doesn't work under 4.3+
7728
          collect2name=`${CC} -print-prog-name=collect2`
7729
          if test -f "$collect2name" &&
7730
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7731
          then
7732
          # We have reworked collect2
7733
          :
7734
          else
7735
          # We have old collect2
7736
          hardcode_direct=unsupported
7737
          # It fails to find uninstalled libraries when the uninstalled
7738
          # path is not listed in the libpath.  Setting hardcode_minus_L
7739
          # to unsupported forces relinking
7740
          hardcode_minus_L=yes
7741
          hardcode_libdir_flag_spec='-L$libdir'
7742
          hardcode_libdir_separator=
7743
          fi
7744
          ;;
7745
        esac
7746
        shared_flag='-shared'
7747
        if test "$aix_use_runtimelinking" = yes; then
7748
          shared_flag="$shared_flag "'${wl}-G'
7749
        fi
7750
      else
7751
        # not using gcc
7752
        if test "$host_cpu" = ia64; then
7753
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7754
        # chokes on -Wl,-G. The following line is correct:
7755
          shared_flag='-G'
7756
        else
7757
          if test "$aix_use_runtimelinking" = yes; then
7758
            shared_flag='${wl}-G'
7759
          else
7760
            shared_flag='${wl}-bM:SRE'
7761
          fi
7762
        fi
7763
      fi
7764
 
7765
      export_dynamic_flag_spec='${wl}-bexpall'
7766
      # It seems that -bexpall does not export symbols beginning with
7767
      # underscore (_), so it is better to generate a list of symbols to export.
7768
      always_export_symbols=yes
7769
      if test "$aix_use_runtimelinking" = yes; then
7770
        # Warning - without using the other runtime loading flags (-brtl),
7771
        # -berok will link without error, but may produce a broken library.
7772
        allow_undefined_flag='-berok'
7773
        # Determine the default libpath from the value encoded in an
7774
        # empty executable.
7775
        cat >conftest.$ac_ext <<_ACEOF
7776
/* confdefs.h.  */
7777
_ACEOF
7778
cat confdefs.h >>conftest.$ac_ext
7779
cat >>conftest.$ac_ext <<_ACEOF
7780
/* end confdefs.h.  */
7781
 
7782
int
7783
main ()
7784
{
7785
 
7786
  ;
7787
  return 0;
7788
}
7789
_ACEOF
7790
rm -f conftest.$ac_objext conftest$ac_exeext
7791
if { (ac_try="$ac_link"
7792
case "(($ac_try" in
7793
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794
  *) ac_try_echo=$ac_try;;
7795
esac
7796
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7797
$as_echo "$ac_try_echo") >&5
7798
  (eval "$ac_link") 2>conftest.er1
7799
  ac_status=$?
7800
  grep -v '^ *+' conftest.er1 >conftest.err
7801
  rm -f conftest.er1
7802
  cat conftest.err >&5
7803
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804
  (exit $ac_status); } && {
7805
         test -z "$ac_c_werror_flag" ||
7806
         test ! -s conftest.err
7807
       } && test -s conftest$ac_exeext && {
7808
         test "$cross_compiling" = yes ||
7809
         $as_test_x conftest$ac_exeext
7810
       }; then
7811
 
7812
lt_aix_libpath_sed='
7813
    /Import File Strings/,/^$/ {
7814
        /^0/ {
7815
            s/^0  *\(.*\)$/\1/
7816
            p
7817
        }
7818
    }'
7819
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7820
# Check for a 64-bit object if we didn't find anything.
7821
if test -z "$aix_libpath"; then
7822
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7823
fi
7824
else
7825
  $as_echo "$as_me: failed program was:" >&5
7826
sed 's/^/| /' conftest.$ac_ext >&5
7827
 
7828
 
7829
fi
7830
 
7831
rm -rf conftest.dSYM
7832
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7833
      conftest$ac_exeext conftest.$ac_ext
7834
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7835
 
7836
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7837
        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"
7838
      else
7839
        if test "$host_cpu" = ia64; then
7840
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7841
          allow_undefined_flag="-z nodefs"
7842
          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"
7843
        else
7844
         # Determine the default libpath from the value encoded in an
7845
         # empty executable.
7846
         cat >conftest.$ac_ext <<_ACEOF
7847
/* confdefs.h.  */
7848
_ACEOF
7849
cat confdefs.h >>conftest.$ac_ext
7850
cat >>conftest.$ac_ext <<_ACEOF
7851
/* end confdefs.h.  */
7852
 
7853
int
7854
main ()
7855
{
7856
 
7857
  ;
7858
  return 0;
7859
}
7860
_ACEOF
7861
rm -f conftest.$ac_objext conftest$ac_exeext
7862
if { (ac_try="$ac_link"
7863
case "(($ac_try" in
7864
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865
  *) ac_try_echo=$ac_try;;
7866
esac
7867
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7868
$as_echo "$ac_try_echo") >&5
7869
  (eval "$ac_link") 2>conftest.er1
7870
  ac_status=$?
7871
  grep -v '^ *+' conftest.er1 >conftest.err
7872
  rm -f conftest.er1
7873
  cat conftest.err >&5
7874
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875
  (exit $ac_status); } && {
7876
         test -z "$ac_c_werror_flag" ||
7877
         test ! -s conftest.err
7878
       } && test -s conftest$ac_exeext && {
7879
         test "$cross_compiling" = yes ||
7880
         $as_test_x conftest$ac_exeext
7881
       }; then
7882
 
7883
lt_aix_libpath_sed='
7884
    /Import File Strings/,/^$/ {
7885
        /^0/ {
7886
            s/^0  *\(.*\)$/\1/
7887
            p
7888
        }
7889
    }'
7890
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7891
# Check for a 64-bit object if we didn't find anything.
7892
if test -z "$aix_libpath"; then
7893
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7894
fi
7895
else
7896
  $as_echo "$as_me: failed program was:" >&5
7897
sed 's/^/| /' conftest.$ac_ext >&5
7898
 
7899
 
7900
fi
7901
 
7902
rm -rf conftest.dSYM
7903
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7904
      conftest$ac_exeext conftest.$ac_ext
7905
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7906
 
7907
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7908
          # Warning - without using the other run time loading flags,
7909
          # -berok will link without error, but may produce a broken library.
7910
          no_undefined_flag=' ${wl}-bernotok'
7911
          allow_undefined_flag=' ${wl}-berok'
7912
          # Exported symbols can be pulled into shared objects from archives
7913
          whole_archive_flag_spec='$convenience'
7914
          archive_cmds_need_lc=yes
7915
          # This is similar to how AIX traditionally builds its shared libraries.
7916
          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'
7917
        fi
7918
      fi
7919
      ;;
7920
 
7921
    amigaos*)
7922
      case $host_cpu in
7923
      powerpc)
7924
            # see comment about AmigaOS4 .so support
7925
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7926
            archive_expsym_cmds=''
7927
        ;;
7928
      m68k)
7929
            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)'
7930
            hardcode_libdir_flag_spec='-L$libdir'
7931
            hardcode_minus_L=yes
7932
        ;;
7933
      esac
7934
      ;;
7935
 
7936
    bsdi[45]*)
7937
      export_dynamic_flag_spec=-rdynamic
7938
      ;;
7939
 
7940
    cygwin* | mingw* | pw32* | cegcc*)
7941
      # When not using gcc, we currently assume that we are using
7942
      # Microsoft Visual C++.
7943
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7944
      # no search path for DLLs.
7945
      hardcode_libdir_flag_spec=' '
7946
      allow_undefined_flag=unsupported
7947
      # Tell ltmain to make .lib files, not .a files.
7948
      libext=lib
7949
      # Tell ltmain to make .dll files, not .so files.
7950
      shrext_cmds=".dll"
7951
      # FIXME: Setting linknames here is a bad hack.
7952
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7953
      # The linker will automatically build a .lib file if we build a DLL.
7954
      old_archive_from_new_cmds='true'
7955
      # FIXME: Should let the user specify the lib program.
7956
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7957
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7958
      enable_shared_with_static_runtimes=yes
7959
      ;;
7960
 
7961
    darwin* | rhapsody*)
7962
 
7963
 
7964
  archive_cmds_need_lc=no
7965
  hardcode_direct=no
7966
  hardcode_automatic=yes
7967
  hardcode_shlibpath_var=unsupported
7968
  whole_archive_flag_spec=''
7969
  link_all_deplibs=yes
7970
  allow_undefined_flag="$_lt_dar_allow_undefined"
7971
  case $cc_basename in
7972
     ifort*) _lt_dar_can_shared=yes ;;
7973
     *) _lt_dar_can_shared=$GCC ;;
7974
  esac
7975
  if test "$_lt_dar_can_shared" = "yes"; then
7976
    output_verbose_link_cmd=echo
7977
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7978
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7979
    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}"
7980
    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}"
7981
 
7982
  else
7983
  ld_shlibs=no
7984
  fi
7985
 
7986
      ;;
7987
 
7988
    dgux*)
7989
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7990
      hardcode_libdir_flag_spec='-L$libdir'
7991
      hardcode_shlibpath_var=no
7992
      ;;
7993
 
7994
    freebsd1*)
7995
      ld_shlibs=no
7996
      ;;
7997
 
7998
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7999
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8000
    # does not break anything, and helps significantly (at the cost of a little
8001
    # extra space).
8002
    freebsd2.2*)
8003
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8004
      hardcode_libdir_flag_spec='-R$libdir'
8005
      hardcode_direct=yes
8006
      hardcode_shlibpath_var=no
8007
      ;;
8008
 
8009
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8010
    freebsd2*)
8011
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8012
      hardcode_direct=yes
8013
      hardcode_minus_L=yes
8014
      hardcode_shlibpath_var=no
8015
      ;;
8016
 
8017
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8018
    freebsd* | dragonfly*)
8019
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8020
      hardcode_libdir_flag_spec='-R$libdir'
8021
      hardcode_direct=yes
8022
      hardcode_shlibpath_var=no
8023
      ;;
8024
 
8025
    hpux9*)
8026
      if test "$GCC" = yes; then
8027
        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'
8028
      else
8029
        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'
8030
      fi
8031
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8032
      hardcode_libdir_separator=:
8033
      hardcode_direct=yes
8034
 
8035
      # hardcode_minus_L: Not really in the search PATH,
8036
      # but as the default location of the library.
8037
      hardcode_minus_L=yes
8038
      export_dynamic_flag_spec='${wl}-E'
8039
      ;;
8040
 
8041
    hpux10*)
8042
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8043
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8044
      else
8045
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8046
      fi
8047
      if test "$with_gnu_ld" = no; then
8048
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8049
        hardcode_libdir_flag_spec_ld='+b $libdir'
8050
        hardcode_libdir_separator=:
8051
        hardcode_direct=yes
8052
        hardcode_direct_absolute=yes
8053
        export_dynamic_flag_spec='${wl}-E'
8054
        # hardcode_minus_L: Not really in the search PATH,
8055
        # but as the default location of the library.
8056
        hardcode_minus_L=yes
8057
      fi
8058
      ;;
8059
 
8060
    hpux11*)
8061
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8062
        case $host_cpu in
8063
        hppa*64*)
8064
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8065
          ;;
8066
        ia64*)
8067
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8068
          ;;
8069
        *)
8070
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8071
          ;;
8072
        esac
8073
      else
8074
        case $host_cpu in
8075
        hppa*64*)
8076
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8077
          ;;
8078
        ia64*)
8079
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8080
          ;;
8081
        *)
8082
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8083
          ;;
8084
        esac
8085
      fi
8086
      if test "$with_gnu_ld" = no; then
8087
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8088
        hardcode_libdir_separator=:
8089
 
8090
        case $host_cpu in
8091
        hppa*64*|ia64*)
8092
          hardcode_direct=no
8093
          hardcode_shlibpath_var=no
8094
          ;;
8095
        *)
8096
          hardcode_direct=yes
8097
          hardcode_direct_absolute=yes
8098
          export_dynamic_flag_spec='${wl}-E'
8099
 
8100
          # hardcode_minus_L: Not really in the search PATH,
8101
          # but as the default location of the library.
8102
          hardcode_minus_L=yes
8103
          ;;
8104
        esac
8105
      fi
8106
      ;;
8107
 
8108
    irix5* | irix6* | nonstopux*)
8109
      if test "$GCC" = yes; then
8110
        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'
8111
        # Try to use the -exported_symbol ld option, if it does not
8112
        # work, assume that -exports_file does not work either and
8113
        # implicitly export all symbols.
8114
        save_LDFLAGS="$LDFLAGS"
8115
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8116
        cat >conftest.$ac_ext <<_ACEOF
8117
int foo(void) {}
8118
_ACEOF
8119
rm -f conftest.$ac_objext conftest$ac_exeext
8120
if { (ac_try="$ac_link"
8121
case "(($ac_try" in
8122
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123
  *) ac_try_echo=$ac_try;;
8124
esac
8125
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8126
$as_echo "$ac_try_echo") >&5
8127
  (eval "$ac_link") 2>conftest.er1
8128
  ac_status=$?
8129
  grep -v '^ *+' conftest.er1 >conftest.err
8130
  rm -f conftest.er1
8131
  cat conftest.err >&5
8132
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133
  (exit $ac_status); } && {
8134
         test -z "$ac_c_werror_flag" ||
8135
         test ! -s conftest.err
8136
       } && test -s conftest$ac_exeext && {
8137
         test "$cross_compiling" = yes ||
8138
         $as_test_x conftest$ac_exeext
8139
       }; then
8140
  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'
8141
 
8142
else
8143
  $as_echo "$as_me: failed program was:" >&5
8144
sed 's/^/| /' conftest.$ac_ext >&5
8145
 
8146
 
8147
fi
8148
 
8149
rm -rf conftest.dSYM
8150
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8151
      conftest$ac_exeext conftest.$ac_ext
8152
        LDFLAGS="$save_LDFLAGS"
8153
      else
8154
        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'
8155
        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'
8156
      fi
8157
      archive_cmds_need_lc='no'
8158
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8159
      hardcode_libdir_separator=:
8160
      inherit_rpath=yes
8161
      link_all_deplibs=yes
8162
      ;;
8163
 
8164
    netbsd*)
8165
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8166
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8167
      else
8168
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8169
      fi
8170
      hardcode_libdir_flag_spec='-R$libdir'
8171
      hardcode_direct=yes
8172
      hardcode_shlibpath_var=no
8173
      ;;
8174
 
8175
    newsos6)
8176
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8177
      hardcode_direct=yes
8178
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8179
      hardcode_libdir_separator=:
8180
      hardcode_shlibpath_var=no
8181
      ;;
8182
 
8183
    *nto* | *qnx*)
8184
      ;;
8185
 
8186
    openbsd*)
8187
      if test -f /usr/libexec/ld.so; then
8188
        hardcode_direct=yes
8189
        hardcode_shlibpath_var=no
8190
        hardcode_direct_absolute=yes
8191
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8192
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8193
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8194
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8195
          export_dynamic_flag_spec='${wl}-E'
8196
        else
8197
          case $host_os in
8198
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8199
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8200
             hardcode_libdir_flag_spec='-R$libdir'
8201
             ;;
8202
           *)
8203
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8204
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8205
             ;;
8206
          esac
8207
        fi
8208
      else
8209
        ld_shlibs=no
8210
      fi
8211
      ;;
8212
 
8213
    os2*)
8214
      hardcode_libdir_flag_spec='-L$libdir'
8215
      hardcode_minus_L=yes
8216
      allow_undefined_flag=unsupported
8217
      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'
8218
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8219
      ;;
8220
 
8221
    osf3*)
8222
      if test "$GCC" = yes; then
8223
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8224
        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'
8225
      else
8226
        allow_undefined_flag=' -expect_unresolved \*'
8227
        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'
8228
      fi
8229
      archive_cmds_need_lc='no'
8230
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8231
      hardcode_libdir_separator=:
8232
      ;;
8233
 
8234
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8235
      if test "$GCC" = yes; then
8236
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8237
        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'
8238
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8239
      else
8240
        allow_undefined_flag=' -expect_unresolved \*'
8241
        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'
8242
        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~
8243
        $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'
8244
 
8245
        # Both c and cxx compiler support -rpath directly
8246
        hardcode_libdir_flag_spec='-rpath $libdir'
8247
      fi
8248
      archive_cmds_need_lc='no'
8249
      hardcode_libdir_separator=:
8250
      ;;
8251
 
8252
    solaris*)
8253
      no_undefined_flag=' -z defs'
8254
      if test "$GCC" = yes; then
8255
        wlarc='${wl}'
8256
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8257
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8258
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8259
      else
8260
        case `$CC -V 2>&1` in
8261
        *"Compilers 5.0"*)
8262
          wlarc=''
8263
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8264
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8265
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8266
          ;;
8267
        *)
8268
          wlarc='${wl}'
8269
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8270
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8271
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8272
          ;;
8273
        esac
8274
      fi
8275
      hardcode_libdir_flag_spec='-R$libdir'
8276
      hardcode_shlibpath_var=no
8277
      case $host_os in
8278
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8279
      *)
8280
        # The compiler driver will combine and reorder linker options,
8281
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8282
        # but is careful enough not to reorder.
8283
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8284
        if test "$GCC" = yes; then
8285
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8286
        else
8287
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8288
        fi
8289
        ;;
8290
      esac
8291
      link_all_deplibs=yes
8292
      ;;
8293
 
8294
    sunos4*)
8295
      if test "x$host_vendor" = xsequent; then
8296
        # Use $CC to link under sequent, because it throws in some extra .o
8297
        # files that make .init and .fini sections work.
8298
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8299
      else
8300
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8301
      fi
8302
      hardcode_libdir_flag_spec='-L$libdir'
8303
      hardcode_direct=yes
8304
      hardcode_minus_L=yes
8305
      hardcode_shlibpath_var=no
8306
      ;;
8307
 
8308
    sysv4)
8309
      case $host_vendor in
8310
        sni)
8311
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8312
          hardcode_direct=yes # is this really true???
8313
        ;;
8314
        siemens)
8315
          ## LD is ld it makes a PLAMLIB
8316
          ## CC just makes a GrossModule.
8317
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8318
          reload_cmds='$CC -r -o $output$reload_objs'
8319
          hardcode_direct=no
8320
        ;;
8321
        motorola)
8322
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8323
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8324
        ;;
8325
      esac
8326
      runpath_var='LD_RUN_PATH'
8327
      hardcode_shlibpath_var=no
8328
      ;;
8329
 
8330
    sysv4.3*)
8331
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8332
      hardcode_shlibpath_var=no
8333
      export_dynamic_flag_spec='-Bexport'
8334
      ;;
8335
 
8336
    sysv4*MP*)
8337
      if test -d /usr/nec; then
8338
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8339
        hardcode_shlibpath_var=no
8340
        runpath_var=LD_RUN_PATH
8341
        hardcode_runpath_var=yes
8342
        ld_shlibs=yes
8343
      fi
8344
      ;;
8345
 
8346
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8347
      no_undefined_flag='${wl}-z,text'
8348
      archive_cmds_need_lc=no
8349
      hardcode_shlibpath_var=no
8350
      runpath_var='LD_RUN_PATH'
8351
 
8352
      if test "$GCC" = yes; then
8353
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8354
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8355
      else
8356
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8357
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8358
      fi
8359
      ;;
8360
 
8361
    sysv5* | sco3.2v5* | sco5v6*)
8362
      # Note: We can NOT use -z defs as we might desire, because we do not
8363
      # link with -lc, and that would cause any symbols used from libc to
8364
      # always be unresolved, which means just about no library would
8365
      # ever link correctly.  If we're not using GNU ld we use -z text
8366
      # though, which does catch some bad symbols but isn't as heavy-handed
8367
      # as -z defs.
8368
      no_undefined_flag='${wl}-z,text'
8369
      allow_undefined_flag='${wl}-z,nodefs'
8370
      archive_cmds_need_lc=no
8371
      hardcode_shlibpath_var=no
8372
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8373
      hardcode_libdir_separator=':'
8374
      link_all_deplibs=yes
8375
      export_dynamic_flag_spec='${wl}-Bexport'
8376
      runpath_var='LD_RUN_PATH'
8377
 
8378
      if test "$GCC" = yes; then
8379
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8380
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8381
      else
8382
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8383
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8384
      fi
8385
      ;;
8386
 
8387
    uts4*)
8388
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8389
      hardcode_libdir_flag_spec='-L$libdir'
8390
      hardcode_shlibpath_var=no
8391
      ;;
8392
 
8393
    *)
8394
      ld_shlibs=no
8395
      ;;
8396
    esac
8397
 
8398
    if test x$host_vendor = xsni; then
8399
      case $host in
8400
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8401
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8402
        ;;
8403
      esac
8404
    fi
8405
  fi
8406
 
8407
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8408
$as_echo "$ld_shlibs" >&6; }
8409
test "$ld_shlibs" = no && can_build_shared=no
8410
 
8411
with_gnu_ld=$with_gnu_ld
8412
 
8413
 
8414
 
8415
 
8416
 
8417
 
8418
 
8419
 
8420
 
8421
 
8422
 
8423
 
8424
 
8425
 
8426
 
8427
#
8428
# Do we need to explicitly link libc?
8429
#
8430
case "x$archive_cmds_need_lc" in
8431
x|xyes)
8432
  # Assume -lc should be added
8433
  archive_cmds_need_lc=yes
8434
 
8435
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8436
    case $archive_cmds in
8437
    *'~'*)
8438
      # FIXME: we may have to deal with multi-command sequences.
8439
      ;;
8440
    '$CC '*)
8441
      # Test whether the compiler implicitly links with -lc since on some
8442
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8443
      # to ld, don't add -lc before -lgcc.
8444
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8445
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8446
      $RM conftest*
8447
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8448
 
8449
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8450
  (eval $ac_compile) 2>&5
8451
  ac_status=$?
8452
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453
  (exit $ac_status); } 2>conftest.err; then
8454
        soname=conftest
8455
        lib=conftest
8456
        libobjs=conftest.$ac_objext
8457
        deplibs=
8458
        wl=$lt_prog_compiler_wl
8459
        pic_flag=$lt_prog_compiler_pic
8460
        compiler_flags=-v
8461
        linker_flags=-v
8462
        verstring=
8463
        output_objdir=.
8464
        libname=conftest
8465
        lt_save_allow_undefined_flag=$allow_undefined_flag
8466
        allow_undefined_flag=
8467
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8468
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8469
  ac_status=$?
8470
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471
  (exit $ac_status); }
8472
        then
8473
          archive_cmds_need_lc=no
8474
        else
8475
          archive_cmds_need_lc=yes
8476
        fi
8477
        allow_undefined_flag=$lt_save_allow_undefined_flag
8478
      else
8479
        cat conftest.err 1>&5
8480
      fi
8481
      $RM conftest*
8482
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8483
$as_echo "$archive_cmds_need_lc" >&6; }
8484
      ;;
8485
    esac
8486
  fi
8487
  ;;
8488
esac
8489
 
8490
 
8491
 
8492
 
8493
 
8494
 
8495
 
8496
 
8497
 
8498
 
8499
 
8500
 
8501
 
8502
 
8503
 
8504
 
8505
 
8506
 
8507
 
8508
 
8509
 
8510
 
8511
 
8512
 
8513
 
8514
 
8515
 
8516
 
8517
 
8518
 
8519
 
8520
 
8521
 
8522
 
8523
 
8524
 
8525
 
8526
 
8527
 
8528
 
8529
 
8530
 
8531
 
8532
 
8533
 
8534
 
8535
 
8536
 
8537
 
8538
 
8539
 
8540
 
8541
 
8542
 
8543
 
8544
 
8545
 
8546
 
8547
 
8548
 
8549
 
8550
 
8551
 
8552
 
8553
 
8554
 
8555
 
8556
 
8557
 
8558
 
8559
 
8560
 
8561
 
8562
 
8563
 
8564
 
8565
 
8566
 
8567
 
8568
 
8569
 
8570
 
8571
 
8572
 
8573
 
8574
 
8575
 
8576
 
8577
 
8578
 
8579
 
8580
 
8581
 
8582
 
8583
 
8584
 
8585
 
8586
 
8587
 
8588
 
8589
 
8590
 
8591
 
8592
 
8593
 
8594
 
8595
 
8596
 
8597
 
8598
 
8599
 
8600
 
8601
 
8602
 
8603
 
8604
 
8605
 
8606
 
8607
 
8608
 
8609
 
8610
 
8611
 
8612
 
8613
 
8614
 
8615
 
8616
 
8617
 
8618
 
8619
 
8620
 
8621
 
8622
 
8623
 
8624
 
8625
 
8626
 
8627
 
8628
 
8629
 
8630
 
8631
 
8632
 
8633
 
8634
 
8635
 
8636
 
8637
 
8638
 
8639
 
8640
 
8641
 
8642
 
8643
 
8644
 
8645
 
8646
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8647
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8648
 
8649
if test "$GCC" = yes; then
8650
  case $host_os in
8651
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8652
    *) lt_awk_arg="/^libraries:/" ;;
8653
  esac
8654
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8655
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8656
    # if the path contains ";" then we assume it to be the separator
8657
    # otherwise default to the standard path separator (i.e. ":") - it is
8658
    # assumed that no part of a normal pathname contains ";" but that should
8659
    # okay in the real world where ";" in dirpaths is itself problematic.
8660
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8661
  else
8662
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8663
  fi
8664
  # Ok, now we have the path, separated by spaces, we can step through it
8665
  # and add multilib dir if necessary.
8666
  lt_tmp_lt_search_path_spec=
8667
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8668
  for lt_sys_path in $lt_search_path_spec; do
8669
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8670
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8671
    else
8672
      test -d "$lt_sys_path" && \
8673
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8674
    fi
8675
  done
8676
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8677
BEGIN {RS=" "; FS="/|\n";} {
8678
  lt_foo="";
8679
  lt_count=0;
8680
  for (lt_i = NF; lt_i > 0; lt_i--) {
8681
    if ($lt_i != "" && $lt_i != ".") {
8682
      if ($lt_i == "..") {
8683
        lt_count++;
8684
      } else {
8685
        if (lt_count == 0) {
8686
          lt_foo="/" $lt_i lt_foo;
8687
        } else {
8688
          lt_count--;
8689
        }
8690
      }
8691
    }
8692
  }
8693
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8694
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8695
}'`
8696
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8697
else
8698
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8699
fi
8700
library_names_spec=
8701
libname_spec='lib$name'
8702
soname_spec=
8703
shrext_cmds=".so"
8704
postinstall_cmds=
8705
postuninstall_cmds=
8706
finish_cmds=
8707
finish_eval=
8708
shlibpath_var=
8709
shlibpath_overrides_runpath=unknown
8710
version_type=none
8711
dynamic_linker="$host_os ld.so"
8712
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8713
need_lib_prefix=unknown
8714
hardcode_into_libs=no
8715
 
8716
# when you set need_version to no, make sure it does not cause -set_version
8717
# flags to be left without arguments
8718
need_version=unknown
8719
 
8720
case $host_os in
8721
aix3*)
8722
  version_type=linux
8723
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8724
  shlibpath_var=LIBPATH
8725
 
8726
  # AIX 3 has no versioning support, so we append a major version to the name.
8727
  soname_spec='${libname}${release}${shared_ext}$major'
8728
  ;;
8729
 
8730
aix[4-9]*)
8731
  version_type=linux
8732
  need_lib_prefix=no
8733
  need_version=no
8734
  hardcode_into_libs=yes
8735
  if test "$host_cpu" = ia64; then
8736
    # AIX 5 supports IA64
8737
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8738
    shlibpath_var=LD_LIBRARY_PATH
8739
  else
8740
    # With GCC up to 2.95.x, collect2 would create an import file
8741
    # for dependence libraries.  The import file would start with
8742
    # the line `#! .'.  This would cause the generated library to
8743
    # depend on `.', always an invalid library.  This was fixed in
8744
    # development snapshots of GCC prior to 3.0.
8745
    case $host_os in
8746
      aix4 | aix4.[01] | aix4.[01].*)
8747
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8748
           echo ' yes '
8749
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8750
        :
8751
      else
8752
        can_build_shared=no
8753
      fi
8754
      ;;
8755
    esac
8756
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8757
    # soname into executable. Probably we can add versioning support to
8758
    # collect2, so additional links can be useful in future.
8759
    if test "$aix_use_runtimelinking" = yes; then
8760
      # If using run time linking (on AIX 4.2 or later) use lib.so
8761
      # instead of lib.a to let people know that these are not
8762
      # typical AIX shared libraries.
8763
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8764
    else
8765
      # We preserve .a as extension for shared libraries through AIX4.2
8766
      # and later when we are not doing run time linking.
8767
      library_names_spec='${libname}${release}.a $libname.a'
8768
      soname_spec='${libname}${release}${shared_ext}$major'
8769
    fi
8770
    shlibpath_var=LIBPATH
8771
  fi
8772
  ;;
8773
 
8774
amigaos*)
8775
  case $host_cpu in
8776
  powerpc)
8777
    # Since July 2007 AmigaOS4 officially supports .so libraries.
8778
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8779
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8780
    ;;
8781
  m68k)
8782
    library_names_spec='$libname.ixlibrary $libname.a'
8783
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8784
    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'
8785
    ;;
8786
  esac
8787
  ;;
8788
 
8789
beos*)
8790
  library_names_spec='${libname}${shared_ext}'
8791
  dynamic_linker="$host_os ld.so"
8792
  shlibpath_var=LIBRARY_PATH
8793
  ;;
8794
 
8795
bsdi[45]*)
8796
  version_type=linux
8797
  need_version=no
8798
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8799
  soname_spec='${libname}${release}${shared_ext}$major'
8800
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8801
  shlibpath_var=LD_LIBRARY_PATH
8802
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8803
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8804
  # the default ld.so.conf also contains /usr/contrib/lib and
8805
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8806
  # libtool to hard-code these into programs
8807
  ;;
8808
 
8809
cygwin* | mingw* | pw32* | cegcc*)
8810
  version_type=windows
8811
  shrext_cmds=".dll"
8812
  need_version=no
8813
  need_lib_prefix=no
8814
 
8815
  case $GCC,$host_os in
8816
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8817
    library_names_spec='$libname.dll.a'
8818
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8819
    postinstall_cmds='base_file=`basename \${file}`~
8820
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8821
      dldir=$destdir/`dirname \$dlpath`~
8822
      test -d \$dldir || mkdir -p \$dldir~
8823
      $install_prog $dir/$dlname \$dldir/$dlname~
8824
      chmod a+x \$dldir/$dlname~
8825
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8826
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8827
      fi'
8828
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8829
      dlpath=$dir/\$dldll~
8830
       $RM \$dlpath'
8831
    shlibpath_overrides_runpath=yes
8832
 
8833
    case $host_os in
8834
    cygwin*)
8835
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8836
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8837
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8838
      ;;
8839
    mingw* | cegcc*)
8840
      # MinGW DLLs use traditional 'lib' prefix
8841
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8842
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8843
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8844
        # It is most probably a Windows format PATH printed by
8845
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8846
        # path with ; separators, and with drive letters. We can handle the
8847
        # drive letters (cygwin fileutils understands them), so leave them,
8848
        # especially as we might pass files found there to a mingw objdump,
8849
        # which wouldn't understand a cygwinified path. Ahh.
8850
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8851
      else
8852
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8853
      fi
8854
      ;;
8855
    pw32*)
8856
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8857
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8858
      ;;
8859
    esac
8860
    ;;
8861
 
8862
  *)
8863
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8864
    ;;
8865
  esac
8866
  dynamic_linker='Win32 ld.exe'
8867
  # FIXME: first we should search . and the directory the executable is in
8868
  shlibpath_var=PATH
8869
  ;;
8870
 
8871
darwin* | rhapsody*)
8872
  dynamic_linker="$host_os dyld"
8873
  version_type=darwin
8874
  need_lib_prefix=no
8875
  need_version=no
8876
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8877
  soname_spec='${libname}${release}${major}$shared_ext'
8878
  shlibpath_overrides_runpath=yes
8879
  shlibpath_var=DYLD_LIBRARY_PATH
8880
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8881
 
8882
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8883
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8884
  ;;
8885
 
8886
dgux*)
8887
  version_type=linux
8888
  need_lib_prefix=no
8889
  need_version=no
8890
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8891
  soname_spec='${libname}${release}${shared_ext}$major'
8892
  shlibpath_var=LD_LIBRARY_PATH
8893
  ;;
8894
 
8895
freebsd1*)
8896
  dynamic_linker=no
8897
  ;;
8898
 
8899
freebsd* | dragonfly*)
8900
  # DragonFly does not have aout.  When/if they implement a new
8901
  # versioning mechanism, adjust this.
8902
  if test -x /usr/bin/objformat; then
8903
    objformat=`/usr/bin/objformat`
8904
  else
8905
    case $host_os in
8906
    freebsd[123]*) objformat=aout ;;
8907
    *) objformat=elf ;;
8908
    esac
8909
  fi
8910
  version_type=freebsd-$objformat
8911
  case $version_type in
8912
    freebsd-elf*)
8913
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8914
      need_version=no
8915
      need_lib_prefix=no
8916
      ;;
8917
    freebsd-*)
8918
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8919
      need_version=yes
8920
      ;;
8921
  esac
8922
  shlibpath_var=LD_LIBRARY_PATH
8923
  case $host_os in
8924
  freebsd2*)
8925
    shlibpath_overrides_runpath=yes
8926
    ;;
8927
  freebsd3.[01]* | freebsdelf3.[01]*)
8928
    shlibpath_overrides_runpath=yes
8929
    hardcode_into_libs=yes
8930
    ;;
8931
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8932
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8933
    shlibpath_overrides_runpath=no
8934
    hardcode_into_libs=yes
8935
    ;;
8936
  *) # from 4.6 on, and DragonFly
8937
    shlibpath_overrides_runpath=yes
8938
    hardcode_into_libs=yes
8939
    ;;
8940
  esac
8941
  ;;
8942
 
8943
gnu*)
8944
  version_type=linux
8945
  need_lib_prefix=no
8946
  need_version=no
8947
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8948
  soname_spec='${libname}${release}${shared_ext}$major'
8949
  shlibpath_var=LD_LIBRARY_PATH
8950
  hardcode_into_libs=yes
8951
  ;;
8952
 
8953
hpux9* | hpux10* | hpux11*)
8954
  # Give a soname corresponding to the major version so that dld.sl refuses to
8955
  # link against other versions.
8956
  version_type=sunos
8957
  need_lib_prefix=no
8958
  need_version=no
8959
  case $host_cpu in
8960
  ia64*)
8961
    shrext_cmds='.so'
8962
    hardcode_into_libs=yes
8963
    dynamic_linker="$host_os dld.so"
8964
    shlibpath_var=LD_LIBRARY_PATH
8965
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8966
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967
    soname_spec='${libname}${release}${shared_ext}$major'
8968
    if test "X$HPUX_IA64_MODE" = X32; then
8969
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8970
    else
8971
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8972
    fi
8973
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8974
    ;;
8975
  hppa*64*)
8976
    shrext_cmds='.sl'
8977
    hardcode_into_libs=yes
8978
    dynamic_linker="$host_os dld.sl"
8979
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8980
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8981
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982
    soname_spec='${libname}${release}${shared_ext}$major'
8983
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8984
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8985
    ;;
8986
  *)
8987
    shrext_cmds='.sl'
8988
    dynamic_linker="$host_os dld.sl"
8989
    shlibpath_var=SHLIB_PATH
8990
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8991
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992
    soname_spec='${libname}${release}${shared_ext}$major'
8993
    ;;
8994
  esac
8995
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8996
  postinstall_cmds='chmod 555 $lib'
8997
  ;;
8998
 
8999
interix[3-9]*)
9000
  version_type=linux
9001
  need_lib_prefix=no
9002
  need_version=no
9003
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9004
  soname_spec='${libname}${release}${shared_ext}$major'
9005
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9006
  shlibpath_var=LD_LIBRARY_PATH
9007
  shlibpath_overrides_runpath=no
9008
  hardcode_into_libs=yes
9009
  ;;
9010
 
9011
irix5* | irix6* | nonstopux*)
9012
  case $host_os in
9013
    nonstopux*) version_type=nonstopux ;;
9014
    *)
9015
        if test "$lt_cv_prog_gnu_ld" = yes; then
9016
                version_type=linux
9017
        else
9018
                version_type=irix
9019
        fi ;;
9020
  esac
9021
  need_lib_prefix=no
9022
  need_version=no
9023
  soname_spec='${libname}${release}${shared_ext}$major'
9024
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9025
  case $host_os in
9026
  irix5* | nonstopux*)
9027
    libsuff= shlibsuff=
9028
    ;;
9029
  *)
9030
    case $LD in # libtool.m4 will add one of these switches to LD
9031
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9032
      libsuff= shlibsuff= libmagic=32-bit;;
9033
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9034
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9035
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9036
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9037
    *) libsuff= shlibsuff= libmagic=never-match;;
9038
    esac
9039
    ;;
9040
  esac
9041
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9042
  shlibpath_overrides_runpath=no
9043
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9044
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9045
  hardcode_into_libs=yes
9046
  ;;
9047
 
9048
# No shared lib support for Linux oldld, aout, or coff.
9049
linux*oldld* | linux*aout* | linux*coff*)
9050
  dynamic_linker=no
9051
  ;;
9052
 
9053
# This must be Linux ELF.
9054
linux* | k*bsd*-gnu)
9055
  version_type=linux
9056
  need_lib_prefix=no
9057
  need_version=no
9058
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059
  soname_spec='${libname}${release}${shared_ext}$major'
9060
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9061
  shlibpath_var=LD_LIBRARY_PATH
9062
  shlibpath_overrides_runpath=no
9063
  # Some binutils ld are patched to set DT_RUNPATH
9064
  save_LDFLAGS=$LDFLAGS
9065
  save_libdir=$libdir
9066
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9067
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9068
  cat >conftest.$ac_ext <<_ACEOF
9069
/* confdefs.h.  */
9070
_ACEOF
9071
cat confdefs.h >>conftest.$ac_ext
9072
cat >>conftest.$ac_ext <<_ACEOF
9073
/* end confdefs.h.  */
9074
 
9075
int
9076
main ()
9077
{
9078
 
9079
  ;
9080
  return 0;
9081
}
9082
_ACEOF
9083
rm -f conftest.$ac_objext conftest$ac_exeext
9084
if { (ac_try="$ac_link"
9085
case "(($ac_try" in
9086
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9087
  *) ac_try_echo=$ac_try;;
9088
esac
9089
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9090
$as_echo "$ac_try_echo") >&5
9091
  (eval "$ac_link") 2>conftest.er1
9092
  ac_status=$?
9093
  grep -v '^ *+' conftest.er1 >conftest.err
9094
  rm -f conftest.er1
9095
  cat conftest.err >&5
9096
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097
  (exit $ac_status); } && {
9098
         test -z "$ac_c_werror_flag" ||
9099
         test ! -s conftest.err
9100
       } && test -s conftest$ac_exeext && {
9101
         test "$cross_compiling" = yes ||
9102
         $as_test_x conftest$ac_exeext
9103
       }; then
9104
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9105
  shlibpath_overrides_runpath=yes
9106
fi
9107
 
9108
else
9109
  $as_echo "$as_me: failed program was:" >&5
9110
sed 's/^/| /' conftest.$ac_ext >&5
9111
 
9112
 
9113
fi
9114
 
9115
rm -rf conftest.dSYM
9116
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9117
      conftest$ac_exeext conftest.$ac_ext
9118
  LDFLAGS=$save_LDFLAGS
9119
  libdir=$save_libdir
9120
 
9121
  # This implies no fast_install, which is unacceptable.
9122
  # Some rework will be needed to allow for fast_install
9123
  # before this can be enabled.
9124
  hardcode_into_libs=yes
9125
 
9126
  # Add ABI-specific directories to the system library path.
9127
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9128
 
9129
  # Append ld.so.conf contents to the search path
9130
  if test -f /etc/ld.so.conf; then
9131
    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' ' '`
9132
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9133
  fi
9134
 
9135
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9136
  # powerpc, because MkLinux only supported shared libraries with the
9137
  # GNU dynamic linker.  Since this was broken with cross compilers,
9138
  # most powerpc-linux boxes support dynamic linking these days and
9139
  # people can always --disable-shared, the test was removed, and we
9140
  # assume the GNU/Linux dynamic linker is in use.
9141
  dynamic_linker='GNU/Linux ld.so'
9142
  ;;
9143
 
9144
netbsd*)
9145
  version_type=sunos
9146
  need_lib_prefix=no
9147
  need_version=no
9148
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9149
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9150
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9151
    dynamic_linker='NetBSD (a.out) ld.so'
9152
  else
9153
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9154
    soname_spec='${libname}${release}${shared_ext}$major'
9155
    dynamic_linker='NetBSD ld.elf_so'
9156
  fi
9157
  shlibpath_var=LD_LIBRARY_PATH
9158
  shlibpath_overrides_runpath=yes
9159
  hardcode_into_libs=yes
9160
  ;;
9161
 
9162
newsos6)
9163
  version_type=linux
9164
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165
  shlibpath_var=LD_LIBRARY_PATH
9166
  shlibpath_overrides_runpath=yes
9167
  ;;
9168
 
9169
*nto* | *qnx*)
9170
  version_type=qnx
9171
  need_lib_prefix=no
9172
  need_version=no
9173
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174
  soname_spec='${libname}${release}${shared_ext}$major'
9175
  shlibpath_var=LD_LIBRARY_PATH
9176
  shlibpath_overrides_runpath=no
9177
  hardcode_into_libs=yes
9178
  dynamic_linker='ldqnx.so'
9179
  ;;
9180
 
9181
openbsd*)
9182
  version_type=sunos
9183
  sys_lib_dlsearch_path_spec="/usr/lib"
9184
  need_lib_prefix=no
9185
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9186
  case $host_os in
9187
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9188
    *)                          need_version=no  ;;
9189
  esac
9190
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9191
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9192
  shlibpath_var=LD_LIBRARY_PATH
9193
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9194
    case $host_os in
9195
      openbsd2.[89] | openbsd2.[89].*)
9196
        shlibpath_overrides_runpath=no
9197
        ;;
9198
      *)
9199
        shlibpath_overrides_runpath=yes
9200
        ;;
9201
      esac
9202
  else
9203
    shlibpath_overrides_runpath=yes
9204
  fi
9205
  ;;
9206
 
9207
os2*)
9208
  libname_spec='$name'
9209
  shrext_cmds=".dll"
9210
  need_lib_prefix=no
9211
  library_names_spec='$libname${shared_ext} $libname.a'
9212
  dynamic_linker='OS/2 ld.exe'
9213
  shlibpath_var=LIBPATH
9214
  ;;
9215
 
9216
osf3* | osf4* | osf5*)
9217
  version_type=osf
9218
  need_lib_prefix=no
9219
  need_version=no
9220
  soname_spec='${libname}${release}${shared_ext}$major'
9221
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222
  shlibpath_var=LD_LIBRARY_PATH
9223
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9224
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9225
  ;;
9226
 
9227
rdos*)
9228
  dynamic_linker=no
9229
  ;;
9230
 
9231
solaris*)
9232
  version_type=linux
9233
  need_lib_prefix=no
9234
  need_version=no
9235
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236
  soname_spec='${libname}${release}${shared_ext}$major'
9237
  shlibpath_var=LD_LIBRARY_PATH
9238
  shlibpath_overrides_runpath=yes
9239
  hardcode_into_libs=yes
9240
  # ldd complains unless libraries are executable
9241
  postinstall_cmds='chmod +x $lib'
9242
  ;;
9243
 
9244
sunos4*)
9245
  version_type=sunos
9246
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9247
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9248
  shlibpath_var=LD_LIBRARY_PATH
9249
  shlibpath_overrides_runpath=yes
9250
  if test "$with_gnu_ld" = yes; then
9251
    need_lib_prefix=no
9252
  fi
9253
  need_version=yes
9254
  ;;
9255
 
9256
sysv4 | sysv4.3*)
9257
  version_type=linux
9258
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259
  soname_spec='${libname}${release}${shared_ext}$major'
9260
  shlibpath_var=LD_LIBRARY_PATH
9261
  case $host_vendor in
9262
    sni)
9263
      shlibpath_overrides_runpath=no
9264
      need_lib_prefix=no
9265
      runpath_var=LD_RUN_PATH
9266
      ;;
9267
    siemens)
9268
      need_lib_prefix=no
9269
      ;;
9270
    motorola)
9271
      need_lib_prefix=no
9272
      need_version=no
9273
      shlibpath_overrides_runpath=no
9274
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9275
      ;;
9276
  esac
9277
  ;;
9278
 
9279
sysv4*MP*)
9280
  if test -d /usr/nec ;then
9281
    version_type=linux
9282
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9283
    soname_spec='$libname${shared_ext}.$major'
9284
    shlibpath_var=LD_LIBRARY_PATH
9285
  fi
9286
  ;;
9287
 
9288
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9289
  version_type=freebsd-elf
9290
  need_lib_prefix=no
9291
  need_version=no
9292
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9293
  soname_spec='${libname}${release}${shared_ext}$major'
9294
  shlibpath_var=LD_LIBRARY_PATH
9295
  shlibpath_overrides_runpath=yes
9296
  hardcode_into_libs=yes
9297
  if test "$with_gnu_ld" = yes; then
9298
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9299
  else
9300
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9301
    case $host_os in
9302
      sco3.2v5*)
9303
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9304
        ;;
9305
    esac
9306
  fi
9307
  sys_lib_dlsearch_path_spec='/usr/lib'
9308
  ;;
9309
 
9310
tpf*)
9311
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9312
  version_type=linux
9313
  need_lib_prefix=no
9314
  need_version=no
9315
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316
  shlibpath_var=LD_LIBRARY_PATH
9317
  shlibpath_overrides_runpath=no
9318
  hardcode_into_libs=yes
9319
  ;;
9320
 
9321
uts4*)
9322
  version_type=linux
9323
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9324
  soname_spec='${libname}${release}${shared_ext}$major'
9325
  shlibpath_var=LD_LIBRARY_PATH
9326
  ;;
9327
 
9328
*)
9329
  dynamic_linker=no
9330
  ;;
9331
esac
9332
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9333
$as_echo "$dynamic_linker" >&6; }
9334
test "$dynamic_linker" = no && can_build_shared=no
9335
 
9336
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9337
if test "$GCC" = yes; then
9338
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9339
fi
9340
 
9341
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9342
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9343
fi
9344
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9345
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9346
fi
9347
 
9348
 
9349
 
9350
 
9351
 
9352
 
9353
 
9354
 
9355
 
9356
 
9357
 
9358
 
9359
 
9360
 
9361
 
9362
 
9363
 
9364
 
9365
 
9366
 
9367
 
9368
 
9369
 
9370
 
9371
 
9372
 
9373
 
9374
 
9375
 
9376
 
9377
 
9378
 
9379
 
9380
 
9381
 
9382
 
9383
 
9384
 
9385
 
9386
 
9387
 
9388
 
9389
 
9390
 
9391
 
9392
 
9393
 
9394
 
9395
 
9396
 
9397
 
9398
 
9399
 
9400
 
9401
 
9402
 
9403
 
9404
 
9405
 
9406
 
9407
 
9408
 
9409
 
9410
 
9411
 
9412
 
9413
 
9414
 
9415
 
9416
 
9417
 
9418
 
9419
 
9420
 
9421
 
9422
 
9423
 
9424
 
9425
 
9426
 
9427
 
9428
 
9429
 
9430
 
9431
 
9432
 
9433
 
9434
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9435
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9436
hardcode_action=
9437
if test -n "$hardcode_libdir_flag_spec" ||
9438
   test -n "$runpath_var" ||
9439
   test "X$hardcode_automatic" = "Xyes" ; then
9440
 
9441
  # We can hardcode non-existent directories.
9442
  if test "$hardcode_direct" != no &&
9443
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9444
     # have to relink, otherwise we might link with an installed library
9445
     # when we should be linking with a yet-to-be-installed one
9446
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9447
     test "$hardcode_minus_L" != no; then
9448
    # Linking always hardcodes the temporary library directory.
9449
    hardcode_action=relink
9450
  else
9451
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9452
    hardcode_action=immediate
9453
  fi
9454
else
9455
  # We cannot hardcode anything, or else we can only hardcode existing
9456
  # directories.
9457
  hardcode_action=unsupported
9458
fi
9459
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9460
$as_echo "$hardcode_action" >&6; }
9461
 
9462
if test "$hardcode_action" = relink ||
9463
   test "$inherit_rpath" = yes; then
9464
  # Fast installation is not supported
9465
  enable_fast_install=no
9466
elif test "$shlibpath_overrides_runpath" = yes ||
9467
     test "$enable_shared" = no; then
9468
  # Fast installation is not necessary
9469
  enable_fast_install=needless
9470
fi
9471
 
9472
 
9473
 
9474
 
9475
 
9476
 
9477
  if test "x$enable_dlopen" != xyes; then
9478
  enable_dlopen=unknown
9479
  enable_dlopen_self=unknown
9480
  enable_dlopen_self_static=unknown
9481
else
9482
  lt_cv_dlopen=no
9483
  lt_cv_dlopen_libs=
9484
 
9485
  case $host_os in
9486
  beos*)
9487
    lt_cv_dlopen="load_add_on"
9488
    lt_cv_dlopen_libs=
9489
    lt_cv_dlopen_self=yes
9490
    ;;
9491
 
9492
  mingw* | pw32* | cegcc*)
9493
    lt_cv_dlopen="LoadLibrary"
9494
    lt_cv_dlopen_libs=
9495
    ;;
9496
 
9497
  cygwin*)
9498
    lt_cv_dlopen="dlopen"
9499
    lt_cv_dlopen_libs=
9500
    ;;
9501
 
9502
  darwin*)
9503
  # if libdl is installed we need to link against it
9504
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9505
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9506
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9507
  $as_echo_n "(cached) " >&6
9508
else
9509
  ac_check_lib_save_LIBS=$LIBS
9510
LIBS="-ldl  $LIBS"
9511
cat >conftest.$ac_ext <<_ACEOF
9512
/* confdefs.h.  */
9513
_ACEOF
9514
cat confdefs.h >>conftest.$ac_ext
9515
cat >>conftest.$ac_ext <<_ACEOF
9516
/* end confdefs.h.  */
9517
 
9518
/* Override any GCC internal prototype to avoid an error.
9519
   Use char because int might match the return type of a GCC
9520
   builtin and then its argument prototype would still apply.  */
9521
#ifdef __cplusplus
9522
extern "C"
9523
#endif
9524
char dlopen ();
9525
int
9526
main ()
9527
{
9528
return dlopen ();
9529
  ;
9530
  return 0;
9531
}
9532
_ACEOF
9533
rm -f conftest.$ac_objext conftest$ac_exeext
9534
if { (ac_try="$ac_link"
9535
case "(($ac_try" in
9536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537
  *) ac_try_echo=$ac_try;;
9538
esac
9539
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9540
$as_echo "$ac_try_echo") >&5
9541
  (eval "$ac_link") 2>conftest.er1
9542
  ac_status=$?
9543
  grep -v '^ *+' conftest.er1 >conftest.err
9544
  rm -f conftest.er1
9545
  cat conftest.err >&5
9546
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547
  (exit $ac_status); } && {
9548
         test -z "$ac_c_werror_flag" ||
9549
         test ! -s conftest.err
9550
       } && test -s conftest$ac_exeext && {
9551
         test "$cross_compiling" = yes ||
9552
         $as_test_x conftest$ac_exeext
9553
       }; then
9554
  ac_cv_lib_dl_dlopen=yes
9555
else
9556
  $as_echo "$as_me: failed program was:" >&5
9557
sed 's/^/| /' conftest.$ac_ext >&5
9558
 
9559
        ac_cv_lib_dl_dlopen=no
9560
fi
9561
 
9562
rm -rf conftest.dSYM
9563
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9564
      conftest$ac_exeext conftest.$ac_ext
9565
LIBS=$ac_check_lib_save_LIBS
9566
fi
9567
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9568
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9569
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9570
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9571
else
9572
 
9573
    lt_cv_dlopen="dyld"
9574
    lt_cv_dlopen_libs=
9575
    lt_cv_dlopen_self=yes
9576
 
9577
fi
9578
 
9579
    ;;
9580
 
9581
  *)
9582
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9583
$as_echo_n "checking for shl_load... " >&6; }
9584
if test "${ac_cv_func_shl_load+set}" = set; then
9585
  $as_echo_n "(cached) " >&6
9586
else
9587
  cat >conftest.$ac_ext <<_ACEOF
9588
/* confdefs.h.  */
9589
_ACEOF
9590
cat confdefs.h >>conftest.$ac_ext
9591
cat >>conftest.$ac_ext <<_ACEOF
9592
/* end confdefs.h.  */
9593
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9594
   For example, HP-UX 11i  declares gettimeofday.  */
9595
#define shl_load innocuous_shl_load
9596
 
9597
/* System header to define __stub macros and hopefully few prototypes,
9598
    which can conflict with char shl_load (); below.
9599
    Prefer  to  if __STDC__ is defined, since
9600
     exists even on freestanding compilers.  */
9601
 
9602
#ifdef __STDC__
9603
# include 
9604
#else
9605
# include 
9606
#endif
9607
 
9608
#undef shl_load
9609
 
9610
/* Override any GCC internal prototype to avoid an error.
9611
   Use char because int might match the return type of a GCC
9612
   builtin and then its argument prototype would still apply.  */
9613
#ifdef __cplusplus
9614
extern "C"
9615
#endif
9616
char shl_load ();
9617
/* The GNU C library defines this for functions which it implements
9618
    to always fail with ENOSYS.  Some functions are actually named
9619
    something starting with __ and the normal name is an alias.  */
9620
#if defined __stub_shl_load || defined __stub___shl_load
9621
choke me
9622
#endif
9623
 
9624
int
9625
main ()
9626
{
9627
return shl_load ();
9628
  ;
9629
  return 0;
9630
}
9631
_ACEOF
9632
rm -f conftest.$ac_objext conftest$ac_exeext
9633
if { (ac_try="$ac_link"
9634
case "(($ac_try" in
9635
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636
  *) ac_try_echo=$ac_try;;
9637
esac
9638
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9639
$as_echo "$ac_try_echo") >&5
9640
  (eval "$ac_link") 2>conftest.er1
9641
  ac_status=$?
9642
  grep -v '^ *+' conftest.er1 >conftest.err
9643
  rm -f conftest.er1
9644
  cat conftest.err >&5
9645
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646
  (exit $ac_status); } && {
9647
         test -z "$ac_c_werror_flag" ||
9648
         test ! -s conftest.err
9649
       } && test -s conftest$ac_exeext && {
9650
         test "$cross_compiling" = yes ||
9651
         $as_test_x conftest$ac_exeext
9652
       }; then
9653
  ac_cv_func_shl_load=yes
9654
else
9655
  $as_echo "$as_me: failed program was:" >&5
9656
sed 's/^/| /' conftest.$ac_ext >&5
9657
 
9658
        ac_cv_func_shl_load=no
9659
fi
9660
 
9661
rm -rf conftest.dSYM
9662
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9663
      conftest$ac_exeext conftest.$ac_ext
9664
fi
9665
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9666
$as_echo "$ac_cv_func_shl_load" >&6; }
9667
if test "x$ac_cv_func_shl_load" = x""yes; then
9668
  lt_cv_dlopen="shl_load"
9669
else
9670
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9671
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9672
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9673
  $as_echo_n "(cached) " >&6
9674
else
9675
  ac_check_lib_save_LIBS=$LIBS
9676
LIBS="-ldld  $LIBS"
9677
cat >conftest.$ac_ext <<_ACEOF
9678
/* confdefs.h.  */
9679
_ACEOF
9680
cat confdefs.h >>conftest.$ac_ext
9681
cat >>conftest.$ac_ext <<_ACEOF
9682
/* end confdefs.h.  */
9683
 
9684
/* Override any GCC internal prototype to avoid an error.
9685
   Use char because int might match the return type of a GCC
9686
   builtin and then its argument prototype would still apply.  */
9687
#ifdef __cplusplus
9688
extern "C"
9689
#endif
9690
char shl_load ();
9691
int
9692
main ()
9693
{
9694
return shl_load ();
9695
  ;
9696
  return 0;
9697
}
9698
_ACEOF
9699
rm -f conftest.$ac_objext conftest$ac_exeext
9700
if { (ac_try="$ac_link"
9701
case "(($ac_try" in
9702
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703
  *) ac_try_echo=$ac_try;;
9704
esac
9705
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9706
$as_echo "$ac_try_echo") >&5
9707
  (eval "$ac_link") 2>conftest.er1
9708
  ac_status=$?
9709
  grep -v '^ *+' conftest.er1 >conftest.err
9710
  rm -f conftest.er1
9711
  cat conftest.err >&5
9712
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713
  (exit $ac_status); } && {
9714
         test -z "$ac_c_werror_flag" ||
9715
         test ! -s conftest.err
9716
       } && test -s conftest$ac_exeext && {
9717
         test "$cross_compiling" = yes ||
9718
         $as_test_x conftest$ac_exeext
9719
       }; then
9720
  ac_cv_lib_dld_shl_load=yes
9721
else
9722
  $as_echo "$as_me: failed program was:" >&5
9723
sed 's/^/| /' conftest.$ac_ext >&5
9724
 
9725
        ac_cv_lib_dld_shl_load=no
9726
fi
9727
 
9728
rm -rf conftest.dSYM
9729
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9730
      conftest$ac_exeext conftest.$ac_ext
9731
LIBS=$ac_check_lib_save_LIBS
9732
fi
9733
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9734
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9735
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9736
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9737
else
9738
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9739
$as_echo_n "checking for dlopen... " >&6; }
9740
if test "${ac_cv_func_dlopen+set}" = set; then
9741
  $as_echo_n "(cached) " >&6
9742
else
9743
  cat >conftest.$ac_ext <<_ACEOF
9744
/* confdefs.h.  */
9745
_ACEOF
9746
cat confdefs.h >>conftest.$ac_ext
9747
cat >>conftest.$ac_ext <<_ACEOF
9748
/* end confdefs.h.  */
9749
/* Define dlopen to an innocuous variant, in case  declares dlopen.
9750
   For example, HP-UX 11i  declares gettimeofday.  */
9751
#define dlopen innocuous_dlopen
9752
 
9753
/* System header to define __stub macros and hopefully few prototypes,
9754
    which can conflict with char dlopen (); below.
9755
    Prefer  to  if __STDC__ is defined, since
9756
     exists even on freestanding compilers.  */
9757
 
9758
#ifdef __STDC__
9759
# include 
9760
#else
9761
# include 
9762
#endif
9763
 
9764
#undef dlopen
9765
 
9766
/* Override any GCC internal prototype to avoid an error.
9767
   Use char because int might match the return type of a GCC
9768
   builtin and then its argument prototype would still apply.  */
9769
#ifdef __cplusplus
9770
extern "C"
9771
#endif
9772
char dlopen ();
9773
/* The GNU C library defines this for functions which it implements
9774
    to always fail with ENOSYS.  Some functions are actually named
9775
    something starting with __ and the normal name is an alias.  */
9776
#if defined __stub_dlopen || defined __stub___dlopen
9777
choke me
9778
#endif
9779
 
9780
int
9781
main ()
9782
{
9783
return dlopen ();
9784
  ;
9785
  return 0;
9786
}
9787
_ACEOF
9788
rm -f conftest.$ac_objext conftest$ac_exeext
9789
if { (ac_try="$ac_link"
9790
case "(($ac_try" in
9791
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792
  *) ac_try_echo=$ac_try;;
9793
esac
9794
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9795
$as_echo "$ac_try_echo") >&5
9796
  (eval "$ac_link") 2>conftest.er1
9797
  ac_status=$?
9798
  grep -v '^ *+' conftest.er1 >conftest.err
9799
  rm -f conftest.er1
9800
  cat conftest.err >&5
9801
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802
  (exit $ac_status); } && {
9803
         test -z "$ac_c_werror_flag" ||
9804
         test ! -s conftest.err
9805
       } && test -s conftest$ac_exeext && {
9806
         test "$cross_compiling" = yes ||
9807
         $as_test_x conftest$ac_exeext
9808
       }; then
9809
  ac_cv_func_dlopen=yes
9810
else
9811
  $as_echo "$as_me: failed program was:" >&5
9812
sed 's/^/| /' conftest.$ac_ext >&5
9813
 
9814
        ac_cv_func_dlopen=no
9815
fi
9816
 
9817
rm -rf conftest.dSYM
9818
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9819
      conftest$ac_exeext conftest.$ac_ext
9820
fi
9821
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9822
$as_echo "$ac_cv_func_dlopen" >&6; }
9823
if test "x$ac_cv_func_dlopen" = x""yes; then
9824
  lt_cv_dlopen="dlopen"
9825
else
9826
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9827
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9828
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9829
  $as_echo_n "(cached) " >&6
9830
else
9831
  ac_check_lib_save_LIBS=$LIBS
9832
LIBS="-ldl  $LIBS"
9833
cat >conftest.$ac_ext <<_ACEOF
9834
/* confdefs.h.  */
9835
_ACEOF
9836
cat confdefs.h >>conftest.$ac_ext
9837
cat >>conftest.$ac_ext <<_ACEOF
9838
/* end confdefs.h.  */
9839
 
9840
/* Override any GCC internal prototype to avoid an error.
9841
   Use char because int might match the return type of a GCC
9842
   builtin and then its argument prototype would still apply.  */
9843
#ifdef __cplusplus
9844
extern "C"
9845
#endif
9846
char dlopen ();
9847
int
9848
main ()
9849
{
9850
return dlopen ();
9851
  ;
9852
  return 0;
9853
}
9854
_ACEOF
9855
rm -f conftest.$ac_objext conftest$ac_exeext
9856
if { (ac_try="$ac_link"
9857
case "(($ac_try" in
9858
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859
  *) ac_try_echo=$ac_try;;
9860
esac
9861
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9862
$as_echo "$ac_try_echo") >&5
9863
  (eval "$ac_link") 2>conftest.er1
9864
  ac_status=$?
9865
  grep -v '^ *+' conftest.er1 >conftest.err
9866
  rm -f conftest.er1
9867
  cat conftest.err >&5
9868
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869
  (exit $ac_status); } && {
9870
         test -z "$ac_c_werror_flag" ||
9871
         test ! -s conftest.err
9872
       } && test -s conftest$ac_exeext && {
9873
         test "$cross_compiling" = yes ||
9874
         $as_test_x conftest$ac_exeext
9875
       }; then
9876
  ac_cv_lib_dl_dlopen=yes
9877
else
9878
  $as_echo "$as_me: failed program was:" >&5
9879
sed 's/^/| /' conftest.$ac_ext >&5
9880
 
9881
        ac_cv_lib_dl_dlopen=no
9882
fi
9883
 
9884
rm -rf conftest.dSYM
9885
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9886
      conftest$ac_exeext conftest.$ac_ext
9887
LIBS=$ac_check_lib_save_LIBS
9888
fi
9889
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9890
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9891
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9892
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9893
else
9894
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9895
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9896
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9897
  $as_echo_n "(cached) " >&6
9898
else
9899
  ac_check_lib_save_LIBS=$LIBS
9900
LIBS="-lsvld  $LIBS"
9901
cat >conftest.$ac_ext <<_ACEOF
9902
/* confdefs.h.  */
9903
_ACEOF
9904
cat confdefs.h >>conftest.$ac_ext
9905
cat >>conftest.$ac_ext <<_ACEOF
9906
/* end confdefs.h.  */
9907
 
9908
/* Override any GCC internal prototype to avoid an error.
9909
   Use char because int might match the return type of a GCC
9910
   builtin and then its argument prototype would still apply.  */
9911
#ifdef __cplusplus
9912
extern "C"
9913
#endif
9914
char dlopen ();
9915
int
9916
main ()
9917
{
9918
return dlopen ();
9919
  ;
9920
  return 0;
9921
}
9922
_ACEOF
9923
rm -f conftest.$ac_objext conftest$ac_exeext
9924
if { (ac_try="$ac_link"
9925
case "(($ac_try" in
9926
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927
  *) ac_try_echo=$ac_try;;
9928
esac
9929
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9930
$as_echo "$ac_try_echo") >&5
9931
  (eval "$ac_link") 2>conftest.er1
9932
  ac_status=$?
9933
  grep -v '^ *+' conftest.er1 >conftest.err
9934
  rm -f conftest.er1
9935
  cat conftest.err >&5
9936
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937
  (exit $ac_status); } && {
9938
         test -z "$ac_c_werror_flag" ||
9939
         test ! -s conftest.err
9940
       } && test -s conftest$ac_exeext && {
9941
         test "$cross_compiling" = yes ||
9942
         $as_test_x conftest$ac_exeext
9943
       }; then
9944
  ac_cv_lib_svld_dlopen=yes
9945
else
9946
  $as_echo "$as_me: failed program was:" >&5
9947
sed 's/^/| /' conftest.$ac_ext >&5
9948
 
9949
        ac_cv_lib_svld_dlopen=no
9950
fi
9951
 
9952
rm -rf conftest.dSYM
9953
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9954
      conftest$ac_exeext conftest.$ac_ext
9955
LIBS=$ac_check_lib_save_LIBS
9956
fi
9957
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9958
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9959
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
9960
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9961
else
9962
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9963
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9964
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9965
  $as_echo_n "(cached) " >&6
9966
else
9967
  ac_check_lib_save_LIBS=$LIBS
9968
LIBS="-ldld  $LIBS"
9969
cat >conftest.$ac_ext <<_ACEOF
9970
/* confdefs.h.  */
9971
_ACEOF
9972
cat confdefs.h >>conftest.$ac_ext
9973
cat >>conftest.$ac_ext <<_ACEOF
9974
/* end confdefs.h.  */
9975
 
9976
/* Override any GCC internal prototype to avoid an error.
9977
   Use char because int might match the return type of a GCC
9978
   builtin and then its argument prototype would still apply.  */
9979
#ifdef __cplusplus
9980
extern "C"
9981
#endif
9982
char dld_link ();
9983
int
9984
main ()
9985
{
9986
return dld_link ();
9987
  ;
9988
  return 0;
9989
}
9990
_ACEOF
9991
rm -f conftest.$ac_objext conftest$ac_exeext
9992
if { (ac_try="$ac_link"
9993
case "(($ac_try" in
9994
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995
  *) ac_try_echo=$ac_try;;
9996
esac
9997
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9998
$as_echo "$ac_try_echo") >&5
9999
  (eval "$ac_link") 2>conftest.er1
10000
  ac_status=$?
10001
  grep -v '^ *+' conftest.er1 >conftest.err
10002
  rm -f conftest.er1
10003
  cat conftest.err >&5
10004
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005
  (exit $ac_status); } && {
10006
         test -z "$ac_c_werror_flag" ||
10007
         test ! -s conftest.err
10008
       } && test -s conftest$ac_exeext && {
10009
         test "$cross_compiling" = yes ||
10010
         $as_test_x conftest$ac_exeext
10011
       }; then
10012
  ac_cv_lib_dld_dld_link=yes
10013
else
10014
  $as_echo "$as_me: failed program was:" >&5
10015
sed 's/^/| /' conftest.$ac_ext >&5
10016
 
10017
        ac_cv_lib_dld_dld_link=no
10018
fi
10019
 
10020
rm -rf conftest.dSYM
10021
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10022
      conftest$ac_exeext conftest.$ac_ext
10023
LIBS=$ac_check_lib_save_LIBS
10024
fi
10025
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10026
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10027
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10028
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10029
fi
10030
 
10031
 
10032
fi
10033
 
10034
 
10035
fi
10036
 
10037
 
10038
fi
10039
 
10040
 
10041
fi
10042
 
10043
 
10044
fi
10045
 
10046
    ;;
10047
  esac
10048
 
10049
  if test "x$lt_cv_dlopen" != xno; then
10050
    enable_dlopen=yes
10051
  else
10052
    enable_dlopen=no
10053
  fi
10054
 
10055
  case $lt_cv_dlopen in
10056
  dlopen)
10057
    save_CPPFLAGS="$CPPFLAGS"
10058
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10059
 
10060
    save_LDFLAGS="$LDFLAGS"
10061
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10062
 
10063
    save_LIBS="$LIBS"
10064
    LIBS="$lt_cv_dlopen_libs $LIBS"
10065
 
10066
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10067
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10068
if test "${lt_cv_dlopen_self+set}" = set; then
10069
  $as_echo_n "(cached) " >&6
10070
else
10071
          if test "$cross_compiling" = yes; then :
10072
  lt_cv_dlopen_self=cross
10073
else
10074
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10075
  lt_status=$lt_dlunknown
10076
  cat > conftest.$ac_ext <<_LT_EOF
10077
#line 10077 "configure"
10078
#include "confdefs.h"
10079
 
10080
#if HAVE_DLFCN_H
10081
#include 
10082
#endif
10083
 
10084
#include 
10085
 
10086
#ifdef RTLD_GLOBAL
10087
#  define LT_DLGLOBAL           RTLD_GLOBAL
10088
#else
10089
#  ifdef DL_GLOBAL
10090
#    define LT_DLGLOBAL         DL_GLOBAL
10091
#  else
10092
#    define LT_DLGLOBAL         0
10093
#  endif
10094
#endif
10095
 
10096
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10097
   find out it does not work in some platform. */
10098
#ifndef LT_DLLAZY_OR_NOW
10099
#  ifdef RTLD_LAZY
10100
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10101
#  else
10102
#    ifdef DL_LAZY
10103
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10104
#    else
10105
#      ifdef RTLD_NOW
10106
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10107
#      else
10108
#        ifdef DL_NOW
10109
#          define LT_DLLAZY_OR_NOW      DL_NOW
10110
#        else
10111
#          define LT_DLLAZY_OR_NOW      0
10112
#        endif
10113
#      endif
10114
#    endif
10115
#  endif
10116
#endif
10117
 
10118
void fnord() { int i=42;}
10119
int main ()
10120
{
10121
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10122
  int status = $lt_dlunknown;
10123
 
10124
  if (self)
10125
    {
10126
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10127
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10128
      /* dlclose (self); */
10129
    }
10130
  else
10131
    puts (dlerror ());
10132
 
10133
  return status;
10134
}
10135
_LT_EOF
10136
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10137
  (eval $ac_link) 2>&5
10138
  ac_status=$?
10139
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10141
    (./conftest; exit; ) >&5 2>/dev/null
10142
    lt_status=$?
10143
    case x$lt_status in
10144
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10145
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10146
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10147
    esac
10148
  else :
10149
    # compilation failed
10150
    lt_cv_dlopen_self=no
10151
  fi
10152
fi
10153
rm -fr conftest*
10154
 
10155
 
10156
fi
10157
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10158
$as_echo "$lt_cv_dlopen_self" >&6; }
10159
 
10160
    if test "x$lt_cv_dlopen_self" = xyes; then
10161
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10162
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10163
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10164
if test "${lt_cv_dlopen_self_static+set}" = set; then
10165
  $as_echo_n "(cached) " >&6
10166
else
10167
          if test "$cross_compiling" = yes; then :
10168
  lt_cv_dlopen_self_static=cross
10169
else
10170
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10171
  lt_status=$lt_dlunknown
10172
  cat > conftest.$ac_ext <<_LT_EOF
10173
#line 10173 "configure"
10174
#include "confdefs.h"
10175
 
10176
#if HAVE_DLFCN_H
10177
#include 
10178
#endif
10179
 
10180
#include 
10181
 
10182
#ifdef RTLD_GLOBAL
10183
#  define LT_DLGLOBAL           RTLD_GLOBAL
10184
#else
10185
#  ifdef DL_GLOBAL
10186
#    define LT_DLGLOBAL         DL_GLOBAL
10187
#  else
10188
#    define LT_DLGLOBAL         0
10189
#  endif
10190
#endif
10191
 
10192
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10193
   find out it does not work in some platform. */
10194
#ifndef LT_DLLAZY_OR_NOW
10195
#  ifdef RTLD_LAZY
10196
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10197
#  else
10198
#    ifdef DL_LAZY
10199
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10200
#    else
10201
#      ifdef RTLD_NOW
10202
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10203
#      else
10204
#        ifdef DL_NOW
10205
#          define LT_DLLAZY_OR_NOW      DL_NOW
10206
#        else
10207
#          define LT_DLLAZY_OR_NOW      0
10208
#        endif
10209
#      endif
10210
#    endif
10211
#  endif
10212
#endif
10213
 
10214
void fnord() { int i=42;}
10215
int main ()
10216
{
10217
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10218
  int status = $lt_dlunknown;
10219
 
10220
  if (self)
10221
    {
10222
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10223
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10224
      /* dlclose (self); */
10225
    }
10226
  else
10227
    puts (dlerror ());
10228
 
10229
  return status;
10230
}
10231
_LT_EOF
10232
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10233
  (eval $ac_link) 2>&5
10234
  ac_status=$?
10235
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10237
    (./conftest; exit; ) >&5 2>/dev/null
10238
    lt_status=$?
10239
    case x$lt_status in
10240
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10241
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10242
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10243
    esac
10244
  else :
10245
    # compilation failed
10246
    lt_cv_dlopen_self_static=no
10247
  fi
10248
fi
10249
rm -fr conftest*
10250
 
10251
 
10252
fi
10253
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10254
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10255
    fi
10256
 
10257
    CPPFLAGS="$save_CPPFLAGS"
10258
    LDFLAGS="$save_LDFLAGS"
10259
    LIBS="$save_LIBS"
10260
    ;;
10261
  esac
10262
 
10263
  case $lt_cv_dlopen_self in
10264
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10265
  *) enable_dlopen_self=unknown ;;
10266
  esac
10267
 
10268
  case $lt_cv_dlopen_self_static in
10269
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10270
  *) enable_dlopen_self_static=unknown ;;
10271
  esac
10272
fi
10273
 
10274
 
10275
 
10276
 
10277
 
10278
 
10279
 
10280
 
10281
 
10282
 
10283
 
10284
 
10285
 
10286
 
10287
 
10288
 
10289
 
10290
striplib=
10291
old_striplib=
10292
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10293
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10294
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10295
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10296
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10297
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10298
$as_echo "yes" >&6; }
10299
else
10300
# FIXME - insert some real tests, host_os isn't really good enough
10301
  case $host_os in
10302
  darwin*)
10303
    if test -n "$STRIP" ; then
10304
      striplib="$STRIP -x"
10305
      old_striplib="$STRIP -S"
10306
      { $as_echo "$as_me:$LINENO: result: yes" >&5
10307
$as_echo "yes" >&6; }
10308
    else
10309
      { $as_echo "$as_me:$LINENO: result: no" >&5
10310
$as_echo "no" >&6; }
10311
    fi
10312
    ;;
10313
  *)
10314
    { $as_echo "$as_me:$LINENO: result: no" >&5
10315
$as_echo "no" >&6; }
10316
    ;;
10317
  esac
10318
fi
10319
 
10320
 
10321
 
10322
 
10323
 
10324
 
10325
 
10326
 
10327
 
10328
 
10329
 
10330
 
10331
  # Report which library types will actually be built
10332
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10333
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10334
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10335
$as_echo "$can_build_shared" >&6; }
10336
 
10337
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10338
$as_echo_n "checking whether to build shared libraries... " >&6; }
10339
  test "$can_build_shared" = "no" && enable_shared=no
10340
 
10341
  # On AIX, shared libraries and static libraries use the same namespace, and
10342
  # are all built from PIC.
10343
  case $host_os in
10344
  aix3*)
10345
    test "$enable_shared" = yes && enable_static=no
10346
    if test -n "$RANLIB"; then
10347
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10348
      postinstall_cmds='$RANLIB $lib'
10349
    fi
10350
    ;;
10351
 
10352
  aix[4-9]*)
10353
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10354
      test "$enable_shared" = yes && enable_static=no
10355
    fi
10356
    ;;
10357
  esac
10358
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10359
$as_echo "$enable_shared" >&6; }
10360
 
10361
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10362
$as_echo_n "checking whether to build static libraries... " >&6; }
10363
  # Make sure either enable_shared or enable_static is yes.
10364
  test "$enable_shared" = yes || enable_static=yes
10365
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10366
$as_echo "$enable_static" >&6; }
10367
 
10368
 
10369
 
10370
 
10371
fi
10372
ac_ext=c
10373
ac_cpp='$CPP $CPPFLAGS'
10374
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10375
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10376
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10377
 
10378
CC="$lt_save_CC"
10379
 
10380
 
10381
 
10382
 
10383
 
10384
 
10385
 
10386
 
10387
 
10388
 
10389
 
10390
 
10391
 
10392
        ac_config_commands="$ac_config_commands libtool"
10393
 
10394
 
10395
 
10396
 
10397
# Only expand once:
10398
 
10399
 
10400
am__api_version='1.11'
10401
 
10402
# Find a good install program.  We prefer a C program (faster),
10403
# so one script is as good as another.  But avoid the broken or
10404
# incompatible versions:
10405
# SysV /etc/install, /usr/sbin/install
10406
# SunOS /usr/etc/install
10407
# IRIX /sbin/install
10408
# AIX /bin/install
10409
# AmigaOS /C/install, which installs bootblocks on floppy discs
10410
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10411
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10412
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10413
# OS/2's system install, which has a completely different semantic
10414
# ./install, which can be erroneously created by make from ./install.sh.
10415
# Reject install programs that cannot install multiple files.
10416
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10417
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10418
if test -z "$INSTALL"; then
10419
if test "${ac_cv_path_install+set}" = set; then
10420
  $as_echo_n "(cached) " >&6
10421
else
10422
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423
for as_dir in $PATH
10424
do
10425
  IFS=$as_save_IFS
10426
  test -z "$as_dir" && as_dir=.
10427
  # Account for people who put trailing slashes in PATH elements.
10428
case $as_dir/ in
10429
  ./ | .// | /cC/* | \
10430
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10431
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10432
  /usr/ucb/* ) ;;
10433
  *)
10434
    # OSF1 and SCO ODT 3.0 have their own names for install.
10435
    # Don't use installbsd from OSF since it installs stuff as root
10436
    # by default.
10437
    for ac_prog in ginstall scoinst install; do
10438
      for ac_exec_ext in '' $ac_executable_extensions; do
10439
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10440
          if test $ac_prog = install &&
10441
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10442
            # AIX install.  It has an incompatible calling convention.
10443
            :
10444
          elif test $ac_prog = install &&
10445
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10446
            # program-specific install script used by HP pwplus--don't use.
10447
            :
10448
          else
10449
            rm -rf conftest.one conftest.two conftest.dir
10450
            echo one > conftest.one
10451
            echo two > conftest.two
10452
            mkdir conftest.dir
10453
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10454
              test -s conftest.one && test -s conftest.two &&
10455
              test -s conftest.dir/conftest.one &&
10456
              test -s conftest.dir/conftest.two
10457
            then
10458
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10459
              break 3
10460
            fi
10461
          fi
10462
        fi
10463
      done
10464
    done
10465
    ;;
10466
esac
10467
 
10468
done
10469
IFS=$as_save_IFS
10470
 
10471
rm -rf conftest.one conftest.two conftest.dir
10472
 
10473
fi
10474
  if test "${ac_cv_path_install+set}" = set; then
10475
    INSTALL=$ac_cv_path_install
10476
  else
10477
    # As a last resort, use the slow shell script.  Don't cache a
10478
    # value for INSTALL within a source directory, because that will
10479
    # break other packages using the cache if that directory is
10480
    # removed, or if the value is a relative name.
10481
    INSTALL=$ac_install_sh
10482
  fi
10483
fi
10484
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10485
$as_echo "$INSTALL" >&6; }
10486
 
10487
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10488
# It thinks the first close brace ends the variable substitution.
10489
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10490
 
10491
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10492
 
10493
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10494
 
10495
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10496
$as_echo_n "checking whether build environment is sane... " >&6; }
10497
# Just in case
10498
sleep 1
10499
echo timestamp > conftest.file
10500
# Reject unsafe characters in $srcdir or the absolute working directory
10501
# name.  Accept space and tab only in the latter.
10502
am_lf='
10503
'
10504
case `pwd` in
10505
  *[\\\"\#\$\&\'\`$am_lf]*)
10506
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
10507
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
10508
   { (exit 1); exit 1; }; };;
10509
esac
10510
case $srcdir in
10511
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10512
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
10513
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
10514
   { (exit 1); exit 1; }; };;
10515
esac
10516
 
10517
# Do `set' in a subshell so we don't clobber the current shell's
10518
# arguments.  Must try -L first in case configure is actually a
10519
# symlink; some systems play weird games with the mod time of symlinks
10520
# (eg FreeBSD returns the mod time of the symlink's containing
10521
# directory).
10522
if (
10523
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10524
   if test "$*" = "X"; then
10525
      # -L didn't work.
10526
      set X `ls -t "$srcdir/configure" conftest.file`
10527
   fi
10528
   rm -f conftest.file
10529
   if test "$*" != "X $srcdir/configure conftest.file" \
10530
      && test "$*" != "X conftest.file $srcdir/configure"; then
10531
 
10532
      # If neither matched, then we have a broken ls.  This can happen
10533
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10534
      # broken ls alias from the environment.  This has actually
10535
      # happened.  Such a system could not be considered "sane".
10536
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
10537
alias in your environment" >&5
10538
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
10539
alias in your environment" >&2;}
10540
   { (exit 1); exit 1; }; }
10541
   fi
10542
 
10543
   test "$2" = conftest.file
10544
   )
10545
then
10546
   # Ok.
10547
   :
10548
else
10549
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10550
Check your system clock" >&5
10551
$as_echo "$as_me: error: newly created file is older than distributed files!
10552
Check your system clock" >&2;}
10553
   { (exit 1); exit 1; }; }
10554
fi
10555
{ $as_echo "$as_me:$LINENO: result: yes" >&5
10556
$as_echo "yes" >&6; }
10557
test "$program_prefix" != NONE &&
10558
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10559
# Use a double $ so make ignores it.
10560
test "$program_suffix" != NONE &&
10561
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10562
# Double any \ or $.
10563
# By default was `s,x,x', remove it if useless.
10564
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10565
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10566
 
10567
# expand $ac_aux_dir to an absolute path
10568
am_aux_dir=`cd $ac_aux_dir && pwd`
10569
 
10570
if test x"${MISSING+set}" != xset; then
10571
  case $am_aux_dir in
10572
  *\ * | *\     *)
10573
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10574
  *)
10575
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10576
  esac
10577
fi
10578
# Use eval to expand $SHELL
10579
if eval "$MISSING --run true"; then
10580
  am_missing_run="$MISSING --run "
10581
else
10582
  am_missing_run=
10583
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10584
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10585
fi
10586
 
10587
if test x"${install_sh}" != xset; then
10588
  case $am_aux_dir in
10589
  *\ * | *\     *)
10590
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10591
  *)
10592
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10593
  esac
10594
fi
10595
 
10596
# Installed binaries are usually stripped using `strip' when the user
10597
# run `make install-strip'.  However `strip' might not be the right
10598
# tool to use in cross-compilation environments, therefore Automake
10599
# will honor the `STRIP' environment variable to overrule this program.
10600
if test "$cross_compiling" != no; then
10601
  if test -n "$ac_tool_prefix"; then
10602
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10603
set dummy ${ac_tool_prefix}strip; ac_word=$2
10604
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10605
$as_echo_n "checking for $ac_word... " >&6; }
10606
if test "${ac_cv_prog_STRIP+set}" = set; then
10607
  $as_echo_n "(cached) " >&6
10608
else
10609
  if test -n "$STRIP"; then
10610
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10611
else
10612
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613
for as_dir in $PATH
10614
do
10615
  IFS=$as_save_IFS
10616
  test -z "$as_dir" && as_dir=.
10617
  for ac_exec_ext in '' $ac_executable_extensions; do
10618
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10619
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10620
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10621
    break 2
10622
  fi
10623
done
10624
done
10625
IFS=$as_save_IFS
10626
 
10627
fi
10628
fi
10629
STRIP=$ac_cv_prog_STRIP
10630
if test -n "$STRIP"; then
10631
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
10632
$as_echo "$STRIP" >&6; }
10633
else
10634
  { $as_echo "$as_me:$LINENO: result: no" >&5
10635
$as_echo "no" >&6; }
10636
fi
10637
 
10638
 
10639
fi
10640
if test -z "$ac_cv_prog_STRIP"; then
10641
  ac_ct_STRIP=$STRIP
10642
  # Extract the first word of "strip", so it can be a program name with args.
10643
set dummy strip; ac_word=$2
10644
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10645
$as_echo_n "checking for $ac_word... " >&6; }
10646
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10647
  $as_echo_n "(cached) " >&6
10648
else
10649
  if test -n "$ac_ct_STRIP"; then
10650
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10651
else
10652
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10653
for as_dir in $PATH
10654
do
10655
  IFS=$as_save_IFS
10656
  test -z "$as_dir" && as_dir=.
10657
  for ac_exec_ext in '' $ac_executable_extensions; do
10658
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10659
    ac_cv_prog_ac_ct_STRIP="strip"
10660
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10661
    break 2
10662
  fi
10663
done
10664
done
10665
IFS=$as_save_IFS
10666
 
10667
fi
10668
fi
10669
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10670
if test -n "$ac_ct_STRIP"; then
10671
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10672
$as_echo "$ac_ct_STRIP" >&6; }
10673
else
10674
  { $as_echo "$as_me:$LINENO: result: no" >&5
10675
$as_echo "no" >&6; }
10676
fi
10677
 
10678
  if test "x$ac_ct_STRIP" = x; then
10679
    STRIP=":"
10680
  else
10681
    case $cross_compiling:$ac_tool_warned in
10682
yes:)
10683
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10684
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10685
ac_tool_warned=yes ;;
10686
esac
10687
    STRIP=$ac_ct_STRIP
10688
  fi
10689
else
10690
  STRIP="$ac_cv_prog_STRIP"
10691
fi
10692
 
10693
fi
10694
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10695
 
10696
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
10697
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10698
if test -z "$MKDIR_P"; then
10699
  if test "${ac_cv_path_mkdir+set}" = set; then
10700
  $as_echo_n "(cached) " >&6
10701
else
10702
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10704
do
10705
  IFS=$as_save_IFS
10706
  test -z "$as_dir" && as_dir=.
10707
  for ac_prog in mkdir gmkdir; do
10708
         for ac_exec_ext in '' $ac_executable_extensions; do
10709
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10710
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10711
             'mkdir (GNU coreutils) '* | \
10712
             'mkdir (coreutils) '* | \
10713
             'mkdir (fileutils) '4.1*)
10714
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10715
               break 3;;
10716
           esac
10717
         done
10718
       done
10719
done
10720
IFS=$as_save_IFS
10721
 
10722
fi
10723
 
10724
  if test "${ac_cv_path_mkdir+set}" = set; then
10725
    MKDIR_P="$ac_cv_path_mkdir -p"
10726
  else
10727
    # As a last resort, use the slow shell script.  Don't cache a
10728
    # value for MKDIR_P within a source directory, because that will
10729
    # break other packages using the cache if that directory is
10730
    # removed, or if the value is a relative name.
10731
    test -d ./--version && rmdir ./--version
10732
    MKDIR_P="$ac_install_sh -d"
10733
  fi
10734
fi
10735
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
10736
$as_echo "$MKDIR_P" >&6; }
10737
 
10738
mkdir_p="$MKDIR_P"
10739
case $mkdir_p in
10740
  [\\/$]* | ?:[\\/]*) ;;
10741
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10742
esac
10743
 
10744
for ac_prog in gawk mawk nawk awk
10745
do
10746
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10747
set dummy $ac_prog; ac_word=$2
10748
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10749
$as_echo_n "checking for $ac_word... " >&6; }
10750
if test "${ac_cv_prog_AWK+set}" = set; then
10751
  $as_echo_n "(cached) " >&6
10752
else
10753
  if test -n "$AWK"; then
10754
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10755
else
10756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757
for as_dir in $PATH
10758
do
10759
  IFS=$as_save_IFS
10760
  test -z "$as_dir" && as_dir=.
10761
  for ac_exec_ext in '' $ac_executable_extensions; do
10762
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10763
    ac_cv_prog_AWK="$ac_prog"
10764
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10765
    break 2
10766
  fi
10767
done
10768
done
10769
IFS=$as_save_IFS
10770
 
10771
fi
10772
fi
10773
AWK=$ac_cv_prog_AWK
10774
if test -n "$AWK"; then
10775
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10776
$as_echo "$AWK" >&6; }
10777
else
10778
  { $as_echo "$as_me:$LINENO: result: no" >&5
10779
$as_echo "no" >&6; }
10780
fi
10781
 
10782
 
10783
  test -n "$AWK" && break
10784
done
10785
 
10786
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10787
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10788
set x ${MAKE-make}
10789
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10790
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10791
  $as_echo_n "(cached) " >&6
10792
else
10793
  cat >conftest.make <<\_ACEOF
10794
SHELL = /bin/sh
10795
all:
10796
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10797
_ACEOF
10798
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10799
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10800
  *@@@%%%=?*=@@@%%%*)
10801
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10802
  *)
10803
    eval ac_cv_prog_make_${ac_make}_set=no;;
10804
esac
10805
rm -f conftest.make
10806
fi
10807
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10808
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10809
$as_echo "yes" >&6; }
10810
  SET_MAKE=
10811
else
10812
  { $as_echo "$as_me:$LINENO: result: no" >&5
10813
$as_echo "no" >&6; }
10814
  SET_MAKE="MAKE=${MAKE-make}"
10815
fi
10816
 
10817
rm -rf .tst 2>/dev/null
10818
mkdir .tst 2>/dev/null
10819
if test -d .tst; then
10820
  am__leading_dot=.
10821
else
10822
  am__leading_dot=_
10823
fi
10824
rmdir .tst 2>/dev/null
10825
 
10826
DEPDIR="${am__leading_dot}deps"
10827
 
10828
ac_config_commands="$ac_config_commands depfiles"
10829
 
10830
 
10831
am_make=${MAKE-make}
10832
cat > confinc << 'END'
10833
am__doit:
10834
        @echo this is the am__doit target
10835
.PHONY: am__doit
10836
END
10837
# If we don't find an include directive, just comment out the code.
10838
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
10839
$as_echo_n "checking for style of include used by $am_make... " >&6; }
10840
am__include="#"
10841
am__quote=
10842
_am_result=none
10843
# First try GNU make style include.
10844
echo "include confinc" > confmf
10845
# Ignore all kinds of additional output from `make'.
10846
case `$am_make -s -f confmf 2> /dev/null` in #(
10847
*the\ am__doit\ target*)
10848
  am__include=include
10849
  am__quote=
10850
  _am_result=GNU
10851
  ;;
10852
esac
10853
# Now try BSD make style include.
10854
if test "$am__include" = "#"; then
10855
   echo '.include "confinc"' > confmf
10856
   case `$am_make -s -f confmf 2> /dev/null` in #(
10857
   *the\ am__doit\ target*)
10858
     am__include=.include
10859
     am__quote="\""
10860
     _am_result=BSD
10861
     ;;
10862
   esac
10863
fi
10864
 
10865
 
10866
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
10867
$as_echo "$_am_result" >&6; }
10868
rm -f confinc confmf
10869
 
10870
# Check whether --enable-dependency-tracking was given.
10871
if test "${enable_dependency_tracking+set}" = set; then
10872
  enableval=$enable_dependency_tracking;
10873
fi
10874
 
10875
if test "x$enable_dependency_tracking" != xno; then
10876
  am_depcomp="$ac_aux_dir/depcomp"
10877
  AMDEPBACKSLASH='\'
10878
fi
10879
 if test "x$enable_dependency_tracking" != xno; then
10880
  AMDEP_TRUE=
10881
  AMDEP_FALSE='#'
10882
else
10883
  AMDEP_TRUE='#'
10884
  AMDEP_FALSE=
10885
fi
10886
 
10887
 
10888
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10889
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10890
  # is not polluted with repeated "-I."
10891
  am__isrc=' -I$(srcdir)'
10892
  # test to see if srcdir already configured
10893
  if test -f $srcdir/config.status; then
10894
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
10895
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
10896
   { (exit 1); exit 1; }; }
10897
  fi
10898
fi
10899
 
10900
# test whether we have cygpath
10901
if test -z "$CYGPATH_W"; then
10902
  if (cygpath --version) >/dev/null 2>/dev/null; then
10903
    CYGPATH_W='cygpath -w'
10904
  else
10905
    CYGPATH_W=echo
10906
  fi
10907
fi
10908
 
10909
 
10910
# Define the identity of the package.
10911
 PACKAGE='or1ksim-testsuite'
10912
 VERSION='0.4.0rc1'
10913
 
10914
 
10915
cat >>confdefs.h <<_ACEOF
10916
#define PACKAGE "$PACKAGE"
10917
_ACEOF
10918
 
10919
 
10920
cat >>confdefs.h <<_ACEOF
10921
#define VERSION "$VERSION"
10922
_ACEOF
10923
 
10924
# Some tools Automake needs.
10925
 
10926
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10927
 
10928
 
10929
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10930
 
10931
 
10932
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10933
 
10934
 
10935
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10936
 
10937
 
10938
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10939
 
10940
# We need awk for the "check" target.  The system "awk" is bad on
10941
# some platforms.
10942
# Always define AMTAR for backward compatibility.
10943
 
10944
AMTAR=${AMTAR-"${am_missing_run}tar"}
10945
 
10946
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
10947
 
10948
 
10949
 
10950
 
10951
depcc="$CC"   am_compiler_list=
10952
 
10953
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10954
$as_echo_n "checking dependency style of $depcc... " >&6; }
10955
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
10956
  $as_echo_n "(cached) " >&6
10957
else
10958
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10959
  # We make a subdir and do the tests there.  Otherwise we can end up
10960
  # making bogus files that we don't know about and never remove.  For
10961
  # instance it was reported that on HP-UX the gcc test will end up
10962
  # making a dummy file named `D' -- because `-MD' means `put the output
10963
  # in D'.
10964
  mkdir conftest.dir
10965
  # Copy depcomp to subdir because otherwise we won't find it if we're
10966
  # using a relative directory.
10967
  cp "$am_depcomp" conftest.dir
10968
  cd conftest.dir
10969
  # We will build objects and dependencies in a subdirectory because
10970
  # it helps to detect inapplicable dependency modes.  For instance
10971
  # both Tru64's cc and ICC support -MD to output dependencies as a
10972
  # side effect of compilation, but ICC will put the dependencies in
10973
  # the current directory while Tru64 will put them in the object
10974
  # directory.
10975
  mkdir sub
10976
 
10977
  am_cv_CC_dependencies_compiler_type=none
10978
  if test "$am_compiler_list" = ""; then
10979
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10980
  fi
10981
  am__universal=false
10982
  case " $depcc " in #(
10983
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10984
     esac
10985
 
10986
  for depmode in $am_compiler_list; do
10987
    # Setup a source with many dependencies, because some compilers
10988
    # like to wrap large dependency lists on column 80 (with \), and
10989
    # we should not choose a depcomp mode which is confused by this.
10990
    #
10991
    # We need to recreate these files for each test, as the compiler may
10992
    # overwrite some of them when testing with obscure command lines.
10993
    # This happens at least with the AIX C compiler.
10994
    : > sub/conftest.c
10995
    for i in 1 2 3 4 5 6; do
10996
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10997
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10998
      # Solaris 8's {/usr,}/bin/sh.
10999
      touch sub/conftst$i.h
11000
    done
11001
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11002
 
11003
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11004
    # mode.  It turns out that the SunPro C++ compiler does not properly
11005
    # handle `-M -o', and we need to detect this.  Also, some Intel
11006
    # versions had trouble with output in subdirs
11007
    am__obj=sub/conftest.${OBJEXT-o}
11008
    am__minus_obj="-o $am__obj"
11009
    case $depmode in
11010
    gcc)
11011
      # This depmode causes a compiler race in universal mode.
11012
      test "$am__universal" = false || continue
11013
      ;;
11014
    nosideeffect)
11015
      # after this tag, mechanisms are not by side-effect, so they'll
11016
      # only be used when explicitly requested
11017
      if test "x$enable_dependency_tracking" = xyes; then
11018
        continue
11019
      else
11020
        break
11021
      fi
11022
      ;;
11023
    msvisualcpp | msvcmsys)
11024
      # This compiler won't grok `-c -o', but also, the minuso test has
11025
      # not run yet.  These depmodes are late enough in the game, and
11026
      # so weak that their functioning should not be impacted.
11027
      am__obj=conftest.${OBJEXT-o}
11028
      am__minus_obj=
11029
      ;;
11030
    none) break ;;
11031
    esac
11032
    if depmode=$depmode \
11033
       source=sub/conftest.c object=$am__obj \
11034
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11035
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11036
         >/dev/null 2>conftest.err &&
11037
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11038
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11039
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11040
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11041
      # icc doesn't choke on unknown options, it will just issue warnings
11042
      # or remarks (even with -Werror).  So we grep stderr for any message
11043
      # that says an option was ignored or not supported.
11044
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11045
      #   icc: Command line warning: ignoring option '-M'; no argument required
11046
      # The diagnosis changed in icc 8.0:
11047
      #   icc: Command line remark: option '-MP' not supported
11048
      if (grep 'ignoring option' conftest.err ||
11049
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11050
        am_cv_CC_dependencies_compiler_type=$depmode
11051
        break
11052
      fi
11053
    fi
11054
  done
11055
 
11056
  cd ..
11057
  rm -rf conftest.dir
11058
else
11059
  am_cv_CC_dependencies_compiler_type=none
11060
fi
11061
 
11062
fi
11063
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11064
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11065
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11066
 
11067
 if
11068
  test "x$enable_dependency_tracking" != xno \
11069
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11070
  am__fastdepCC_TRUE=
11071
  am__fastdepCC_FALSE='#'
11072
else
11073
  am__fastdepCC_TRUE='#'
11074
  am__fastdepCC_FALSE=
11075
fi
11076
 
11077
 
11078
 
11079
ac_config_headers="$ac_config_headers config.h"
11080
 
11081
 
11082
# make sure we are using a recent autoconf version
11083
 
11084
 
11085
# check for --enable-all-tests argument, in which case we attempt to build all
11086
# tests, even those that do not compile properly.
11087
# Check whether --enable-all-tests was given.
11088
if test "${enable_all_tests+set}" = set; then
11089
  enableval=$enable_all_tests; all_tests=true all_tests=false
11090
fi
11091
 
11092
 if test x$all_tests = xtrue; then
11093
  BUILD_ALL_TESTS_TRUE=
11094
  BUILD_ALL_TESTS_FALSE='#'
11095
else
11096
  BUILD_ALL_TESTS_TRUE='#'
11097
  BUILD_ALL_TESTS_FALSE=
11098
fi
11099
 
11100
 
11101
# Sort out the tools. Using the target tool chain here, not native. Note that
11102
# AC_CHECK_PROGS will not override an already set variable, so we must
11103
# explicitly unset them first.
11104
unset CC
11105
unset RANLIB
11106
unset LD
11107
unset SIM
11108
for ac_prog in $target_alias-gcc
11109
do
11110
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11111
set dummy $ac_prog; ac_word=$2
11112
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11113
$as_echo_n "checking for $ac_word... " >&6; }
11114
if test "${ac_cv_prog_CC+set}" = set; then
11115
  $as_echo_n "(cached) " >&6
11116
else
11117
  if test -n "$CC"; then
11118
  ac_cv_prog_CC="$CC" # Let the user override the test.
11119
else
11120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11121
for as_dir in $PATH
11122
do
11123
  IFS=$as_save_IFS
11124
  test -z "$as_dir" && as_dir=.
11125
  for ac_exec_ext in '' $ac_executable_extensions; do
11126
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11127
    ac_cv_prog_CC="$ac_prog"
11128
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11129
    break 2
11130
  fi
11131
done
11132
done
11133
IFS=$as_save_IFS
11134
 
11135
fi
11136
fi
11137
CC=$ac_cv_prog_CC
11138
if test -n "$CC"; then
11139
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11140
$as_echo "$CC" >&6; }
11141
else
11142
  { $as_echo "$as_me:$LINENO: result: no" >&5
11143
$as_echo "no" >&6; }
11144
fi
11145
 
11146
 
11147
  test -n "$CC" && break
11148
done
11149
 
11150
for ac_prog in $target_alias-ranlib
11151
do
11152
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11153
set dummy $ac_prog; ac_word=$2
11154
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11155
$as_echo_n "checking for $ac_word... " >&6; }
11156
if test "${ac_cv_prog_RANLIB+set}" = set; then
11157
  $as_echo_n "(cached) " >&6
11158
else
11159
  if test -n "$RANLIB"; then
11160
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11161
else
11162
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163
for as_dir in $PATH
11164
do
11165
  IFS=$as_save_IFS
11166
  test -z "$as_dir" && as_dir=.
11167
  for ac_exec_ext in '' $ac_executable_extensions; do
11168
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11169
    ac_cv_prog_RANLIB="$ac_prog"
11170
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11171
    break 2
11172
  fi
11173
done
11174
done
11175
IFS=$as_save_IFS
11176
 
11177
fi
11178
fi
11179
RANLIB=$ac_cv_prog_RANLIB
11180
if test -n "$RANLIB"; then
11181
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
11182
$as_echo "$RANLIB" >&6; }
11183
else
11184
  { $as_echo "$as_me:$LINENO: result: no" >&5
11185
$as_echo "no" >&6; }
11186
fi
11187
 
11188
 
11189
  test -n "$RANLIB" && break
11190
done
11191
 
11192
for ac_prog in $target_alias-ld
11193
do
11194
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11195
set dummy $ac_prog; ac_word=$2
11196
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11197
$as_echo_n "checking for $ac_word... " >&6; }
11198
if test "${ac_cv_prog_LD+set}" = set; then
11199
  $as_echo_n "(cached) " >&6
11200
else
11201
  if test -n "$LD"; then
11202
  ac_cv_prog_LD="$LD" # Let the user override the test.
11203
else
11204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205
for as_dir in $PATH
11206
do
11207
  IFS=$as_save_IFS
11208
  test -z "$as_dir" && as_dir=.
11209
  for ac_exec_ext in '' $ac_executable_extensions; do
11210
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11211
    ac_cv_prog_LD="$ac_prog"
11212
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11213
    break 2
11214
  fi
11215
done
11216
done
11217
IFS=$as_save_IFS
11218
 
11219
fi
11220
fi
11221
LD=$ac_cv_prog_LD
11222
if test -n "$LD"; then
11223
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11224
$as_echo "$LD" >&6; }
11225
else
11226
  { $as_echo "$as_me:$LINENO: result: no" >&5
11227
$as_echo "no" >&6; }
11228
fi
11229
 
11230
 
11231
  test -n "$LD" && break
11232
done
11233
 
11234
for ac_prog in $target_alias-sim
11235
do
11236
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11237
set dummy $ac_prog; ac_word=$2
11238
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11239
$as_echo_n "checking for $ac_word... " >&6; }
11240
if test "${ac_cv_prog_SIM+set}" = set; then
11241
  $as_echo_n "(cached) " >&6
11242
else
11243
  if test -n "$SIM"; then
11244
  ac_cv_prog_SIM="$SIM" # Let the user override the test.
11245
else
11246
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247
for as_dir in $PATH
11248
do
11249
  IFS=$as_save_IFS
11250
  test -z "$as_dir" && as_dir=.
11251
  for ac_exec_ext in '' $ac_executable_extensions; do
11252
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11253
    ac_cv_prog_SIM="$ac_prog"
11254
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11255
    break 2
11256
  fi
11257
done
11258
done
11259
IFS=$as_save_IFS
11260
 
11261
fi
11262
fi
11263
SIM=$ac_cv_prog_SIM
11264
if test -n "$SIM"; then
11265
  { $as_echo "$as_me:$LINENO: result: $SIM" >&5
11266
$as_echo "$SIM" >&6; }
11267
else
11268
  { $as_echo "$as_me:$LINENO: result: no" >&5
11269
$as_echo "no" >&6; }
11270
fi
11271
 
11272
 
11273
  test -n "$SIM" && break
11274
done
11275
 
11276
 
11277
 
11278
 
11279
 
11280
 
11281
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11282
$as_echo_n "checking for ANSI C header files... " >&6; }
11283
if test "${ac_cv_header_stdc+set}" = set; then
11284
  $as_echo_n "(cached) " >&6
11285
else
11286
  cat >conftest.$ac_ext <<_ACEOF
11287
/* confdefs.h.  */
11288
_ACEOF
11289
cat confdefs.h >>conftest.$ac_ext
11290
cat >>conftest.$ac_ext <<_ACEOF
11291
/* end confdefs.h.  */
11292
#include 
11293
#include 
11294
#include 
11295
#include 
11296
 
11297
int
11298
main ()
11299
{
11300
 
11301
  ;
11302
  return 0;
11303
}
11304
_ACEOF
11305
rm -f conftest.$ac_objext
11306
if { (ac_try="$ac_compile"
11307
case "(($ac_try" in
11308
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309
  *) ac_try_echo=$ac_try;;
11310
esac
11311
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11312
$as_echo "$ac_try_echo") >&5
11313
  (eval "$ac_compile") 2>conftest.er1
11314
  ac_status=$?
11315
  grep -v '^ *+' conftest.er1 >conftest.err
11316
  rm -f conftest.er1
11317
  cat conftest.err >&5
11318
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319
  (exit $ac_status); } && {
11320
         test -z "$ac_c_werror_flag" ||
11321
         test ! -s conftest.err
11322
       } && test -s conftest.$ac_objext; then
11323
  ac_cv_header_stdc=yes
11324
else
11325
  $as_echo "$as_me: failed program was:" >&5
11326
sed 's/^/| /' conftest.$ac_ext >&5
11327
 
11328
        ac_cv_header_stdc=no
11329
fi
11330
 
11331
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11332
 
11333
if test $ac_cv_header_stdc = yes; then
11334
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11335
  cat >conftest.$ac_ext <<_ACEOF
11336
/* confdefs.h.  */
11337
_ACEOF
11338
cat confdefs.h >>conftest.$ac_ext
11339
cat >>conftest.$ac_ext <<_ACEOF
11340
/* end confdefs.h.  */
11341
#include 
11342
 
11343
_ACEOF
11344
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11345
  $EGREP "memchr" >/dev/null 2>&1; then
11346
  :
11347
else
11348
  ac_cv_header_stdc=no
11349
fi
11350
rm -f conftest*
11351
 
11352
fi
11353
 
11354
if test $ac_cv_header_stdc = yes; then
11355
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11356
  cat >conftest.$ac_ext <<_ACEOF
11357
/* confdefs.h.  */
11358
_ACEOF
11359
cat confdefs.h >>conftest.$ac_ext
11360
cat >>conftest.$ac_ext <<_ACEOF
11361
/* end confdefs.h.  */
11362
#include 
11363
 
11364
_ACEOF
11365
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11366
  $EGREP "free" >/dev/null 2>&1; then
11367
  :
11368
else
11369
  ac_cv_header_stdc=no
11370
fi
11371
rm -f conftest*
11372
 
11373
fi
11374
 
11375
if test $ac_cv_header_stdc = yes; then
11376
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11377
  if test "$cross_compiling" = yes; then
11378
  :
11379
else
11380
  cat >conftest.$ac_ext <<_ACEOF
11381
/* confdefs.h.  */
11382
_ACEOF
11383
cat confdefs.h >>conftest.$ac_ext
11384
cat >>conftest.$ac_ext <<_ACEOF
11385
/* end confdefs.h.  */
11386
#include 
11387
#include 
11388
#if ((' ' & 0x0FF) == 0x020)
11389
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11390
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11391
#else
11392
# define ISLOWER(c) \
11393
                   (('a' <= (c) && (c) <= 'i') \
11394
                     || ('j' <= (c) && (c) <= 'r') \
11395
                     || ('s' <= (c) && (c) <= 'z'))
11396
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11397
#endif
11398
 
11399
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11400
int
11401
main ()
11402
{
11403
  int i;
11404
  for (i = 0; i < 256; i++)
11405
    if (XOR (islower (i), ISLOWER (i))
11406
        || toupper (i) != TOUPPER (i))
11407
      return 2;
11408
  return 0;
11409
}
11410
_ACEOF
11411
rm -f conftest$ac_exeext
11412
if { (ac_try="$ac_link"
11413
case "(($ac_try" in
11414
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415
  *) ac_try_echo=$ac_try;;
11416
esac
11417
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11418
$as_echo "$ac_try_echo") >&5
11419
  (eval "$ac_link") 2>&5
11420
  ac_status=$?
11421
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11423
  { (case "(($ac_try" in
11424
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425
  *) ac_try_echo=$ac_try;;
11426
esac
11427
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11428
$as_echo "$ac_try_echo") >&5
11429
  (eval "$ac_try") 2>&5
11430
  ac_status=$?
11431
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432
  (exit $ac_status); }; }; then
11433
  :
11434
else
11435
  $as_echo "$as_me: program exited with status $ac_status" >&5
11436
$as_echo "$as_me: failed program was:" >&5
11437
sed 's/^/| /' conftest.$ac_ext >&5
11438
 
11439
( exit $ac_status )
11440
ac_cv_header_stdc=no
11441
fi
11442
rm -rf conftest.dSYM
11443
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11444
fi
11445
 
11446
 
11447
fi
11448
fi
11449
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11450
$as_echo "$ac_cv_header_stdc" >&6; }
11451
if test $ac_cv_header_stdc = yes; then
11452
 
11453
cat >>confdefs.h <<\_ACEOF
11454
#define STDC_HEADERS 1
11455
_ACEOF
11456
 
11457
fi
11458
 
11459
 
11460
# We need assembler, installer and per target C flags
11461
 
11462
# By default we simply use the C compiler to build assembly code.
11463
 
11464
test "${CCAS+set}" = set || CCAS=$CC
11465
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11466
 
11467
 
11468
 
11469
depcc="$CCAS"   am_compiler_list=
11470
 
11471
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11472
$as_echo_n "checking dependency style of $depcc... " >&6; }
11473
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11474
  $as_echo_n "(cached) " >&6
11475
else
11476
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11477
  # We make a subdir and do the tests there.  Otherwise we can end up
11478
  # making bogus files that we don't know about and never remove.  For
11479
  # instance it was reported that on HP-UX the gcc test will end up
11480
  # making a dummy file named `D' -- because `-MD' means `put the output
11481
  # in D'.
11482
  mkdir conftest.dir
11483
  # Copy depcomp to subdir because otherwise we won't find it if we're
11484
  # using a relative directory.
11485
  cp "$am_depcomp" conftest.dir
11486
  cd conftest.dir
11487
  # We will build objects and dependencies in a subdirectory because
11488
  # it helps to detect inapplicable dependency modes.  For instance
11489
  # both Tru64's cc and ICC support -MD to output dependencies as a
11490
  # side effect of compilation, but ICC will put the dependencies in
11491
  # the current directory while Tru64 will put them in the object
11492
  # directory.
11493
  mkdir sub
11494
 
11495
  am_cv_CCAS_dependencies_compiler_type=none
11496
  if test "$am_compiler_list" = ""; then
11497
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11498
  fi
11499
  am__universal=false
11500
 
11501
 
11502
  for depmode in $am_compiler_list; do
11503
    # Setup a source with many dependencies, because some compilers
11504
    # like to wrap large dependency lists on column 80 (with \), and
11505
    # we should not choose a depcomp mode which is confused by this.
11506
    #
11507
    # We need to recreate these files for each test, as the compiler may
11508
    # overwrite some of them when testing with obscure command lines.
11509
    # This happens at least with the AIX C compiler.
11510
    : > sub/conftest.c
11511
    for i in 1 2 3 4 5 6; do
11512
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11513
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11514
      # Solaris 8's {/usr,}/bin/sh.
11515
      touch sub/conftst$i.h
11516
    done
11517
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11518
 
11519
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11520
    # mode.  It turns out that the SunPro C++ compiler does not properly
11521
    # handle `-M -o', and we need to detect this.  Also, some Intel
11522
    # versions had trouble with output in subdirs
11523
    am__obj=sub/conftest.${OBJEXT-o}
11524
    am__minus_obj="-o $am__obj"
11525
    case $depmode in
11526
    gcc)
11527
      # This depmode causes a compiler race in universal mode.
11528
      test "$am__universal" = false || continue
11529
      ;;
11530
    nosideeffect)
11531
      # after this tag, mechanisms are not by side-effect, so they'll
11532
      # only be used when explicitly requested
11533
      if test "x$enable_dependency_tracking" = xyes; then
11534
        continue
11535
      else
11536
        break
11537
      fi
11538
      ;;
11539
    msvisualcpp | msvcmsys)
11540
      # This compiler won't grok `-c -o', but also, the minuso test has
11541
      # not run yet.  These depmodes are late enough in the game, and
11542
      # so weak that their functioning should not be impacted.
11543
      am__obj=conftest.${OBJEXT-o}
11544
      am__minus_obj=
11545
      ;;
11546
    none) break ;;
11547
    esac
11548
    if depmode=$depmode \
11549
       source=sub/conftest.c object=$am__obj \
11550
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11551
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11552
         >/dev/null 2>conftest.err &&
11553
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11554
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11555
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11556
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11557
      # icc doesn't choke on unknown options, it will just issue warnings
11558
      # or remarks (even with -Werror).  So we grep stderr for any message
11559
      # that says an option was ignored or not supported.
11560
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11561
      #   icc: Command line warning: ignoring option '-M'; no argument required
11562
      # The diagnosis changed in icc 8.0:
11563
      #   icc: Command line remark: option '-MP' not supported
11564
      if (grep 'ignoring option' conftest.err ||
11565
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11566
        am_cv_CCAS_dependencies_compiler_type=$depmode
11567
        break
11568
      fi
11569
    fi
11570
  done
11571
 
11572
  cd ..
11573
  rm -rf conftest.dir
11574
else
11575
  am_cv_CCAS_dependencies_compiler_type=none
11576
fi
11577
 
11578
fi
11579
{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11580
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11581
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11582
 
11583
 if
11584
  test "x$enable_dependency_tracking" != xno \
11585
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11586
  am__fastdepCCAS_TRUE=
11587
  am__fastdepCCAS_FALSE='#'
11588
else
11589
  am__fastdepCCAS_TRUE='#'
11590
  am__fastdepCCAS_FALSE=
11591
fi
11592
 
11593
 
11594
if test "x$CC" != xcc; then
11595
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
11596
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11597
else
11598
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
11599
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11600
fi
11601
set dummy $CC; ac_cc=`$as_echo "$2" |
11602
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11603
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
11604
  $as_echo_n "(cached) " >&6
11605
else
11606
  cat >conftest.$ac_ext <<_ACEOF
11607
/* confdefs.h.  */
11608
_ACEOF
11609
cat confdefs.h >>conftest.$ac_ext
11610
cat >>conftest.$ac_ext <<_ACEOF
11611
/* end confdefs.h.  */
11612
 
11613
int
11614
main ()
11615
{
11616
 
11617
  ;
11618
  return 0;
11619
}
11620
_ACEOF
11621
# Make sure it works both with $CC and with simple cc.
11622
# We do the test twice because some compilers refuse to overwrite an
11623
# existing .o file with -o, though they will create one.
11624
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11625
rm -f conftest2.*
11626
if { (case "(($ac_try" in
11627
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628
  *) ac_try_echo=$ac_try;;
11629
esac
11630
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11631
$as_echo "$ac_try_echo") >&5
11632
  (eval "$ac_try") 2>&5
11633
  ac_status=$?
11634
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635
  (exit $ac_status); } &&
11636
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
11637
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638
  *) ac_try_echo=$ac_try;;
11639
esac
11640
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11641
$as_echo "$ac_try_echo") >&5
11642
  (eval "$ac_try") 2>&5
11643
  ac_status=$?
11644
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645
  (exit $ac_status); };
11646
then
11647
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11648
  if test "x$CC" != xcc; then
11649
    # Test first that cc exists at all.
11650
    if { ac_try='cc -c conftest.$ac_ext >&5'
11651
  { (case "(($ac_try" in
11652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653
  *) ac_try_echo=$ac_try;;
11654
esac
11655
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11656
$as_echo "$ac_try_echo") >&5
11657
  (eval "$ac_try") 2>&5
11658
  ac_status=$?
11659
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660
  (exit $ac_status); }; }; then
11661
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11662
      rm -f conftest2.*
11663
      if { (case "(($ac_try" in
11664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665
  *) ac_try_echo=$ac_try;;
11666
esac
11667
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11668
$as_echo "$ac_try_echo") >&5
11669
  (eval "$ac_try") 2>&5
11670
  ac_status=$?
11671
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672
  (exit $ac_status); } &&
11673
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
11674
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675
  *) ac_try_echo=$ac_try;;
11676
esac
11677
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11678
$as_echo "$ac_try_echo") >&5
11679
  (eval "$ac_try") 2>&5
11680
  ac_status=$?
11681
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682
  (exit $ac_status); };
11683
      then
11684
        # cc works too.
11685
        :
11686
      else
11687
        # cc exists but doesn't like -o.
11688
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
11689
      fi
11690
    fi
11691
  fi
11692
else
11693
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11694
fi
11695
rm -f core conftest*
11696
 
11697
fi
11698
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11699
  { $as_echo "$as_me:$LINENO: result: yes" >&5
11700
$as_echo "yes" >&6; }
11701
else
11702
  { $as_echo "$as_me:$LINENO: result: no" >&5
11703
$as_echo "no" >&6; }
11704
 
11705
cat >>confdefs.h <<\_ACEOF
11706
#define NO_MINUS_C_MINUS_O 1
11707
_ACEOF
11708
 
11709
fi
11710
 
11711
# FIXME: we rely on the cache variable name because
11712
# there is no other way.
11713
set dummy $CC
11714
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11715
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11716
if test "$am_t" != yes; then
11717
   # Losing compiler, so override with the script.
11718
   # FIXME: It is wrong to rewrite CC.
11719
   # But if we don't then we get into trouble of one sort or another.
11720
   # A longer-term fix would be to have automake use am__CC in this case,
11721
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11722
   CC="$am_aux_dir/compile $CC"
11723
fi
11724
 
11725
 
11726
# Find a good install program.  We prefer a C program (faster),
11727
# so one script is as good as another.  But avoid the broken or
11728
# incompatible versions:
11729
# SysV /etc/install, /usr/sbin/install
11730
# SunOS /usr/etc/install
11731
# IRIX /sbin/install
11732
# AIX /bin/install
11733
# AmigaOS /C/install, which installs bootblocks on floppy discs
11734
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11735
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11736
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11737
# OS/2's system install, which has a completely different semantic
11738
# ./install, which can be erroneously created by make from ./install.sh.
11739
# Reject install programs that cannot install multiple files.
11740
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11741
$as_echo_n "checking for a BSD-compatible install... " >&6; }
11742
if test -z "$INSTALL"; then
11743
if test "${ac_cv_path_install+set}" = set; then
11744
  $as_echo_n "(cached) " >&6
11745
else
11746
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747
for as_dir in $PATH
11748
do
11749
  IFS=$as_save_IFS
11750
  test -z "$as_dir" && as_dir=.
11751
  # Account for people who put trailing slashes in PATH elements.
11752
case $as_dir/ in
11753
  ./ | .// | /cC/* | \
11754
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11755
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11756
  /usr/ucb/* ) ;;
11757
  *)
11758
    # OSF1 and SCO ODT 3.0 have their own names for install.
11759
    # Don't use installbsd from OSF since it installs stuff as root
11760
    # by default.
11761
    for ac_prog in ginstall scoinst install; do
11762
      for ac_exec_ext in '' $ac_executable_extensions; do
11763
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11764
          if test $ac_prog = install &&
11765
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11766
            # AIX install.  It has an incompatible calling convention.
11767
            :
11768
          elif test $ac_prog = install &&
11769
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11770
            # program-specific install script used by HP pwplus--don't use.
11771
            :
11772
          else
11773
            rm -rf conftest.one conftest.two conftest.dir
11774
            echo one > conftest.one
11775
            echo two > conftest.two
11776
            mkdir conftest.dir
11777
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11778
              test -s conftest.one && test -s conftest.two &&
11779
              test -s conftest.dir/conftest.one &&
11780
              test -s conftest.dir/conftest.two
11781
            then
11782
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11783
              break 3
11784
            fi
11785
          fi
11786
        fi
11787
      done
11788
    done
11789
    ;;
11790
esac
11791
 
11792
done
11793
IFS=$as_save_IFS
11794
 
11795
rm -rf conftest.one conftest.two conftest.dir
11796
 
11797
fi
11798
  if test "${ac_cv_path_install+set}" = set; then
11799
    INSTALL=$ac_cv_path_install
11800
  else
11801
    # As a last resort, use the slow shell script.  Don't cache a
11802
    # value for INSTALL within a source directory, because that will
11803
    # break other packages using the cache if that directory is
11804
    # removed, or if the value is a relative name.
11805
    INSTALL=$ac_install_sh
11806
  fi
11807
fi
11808
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
11809
$as_echo "$INSTALL" >&6; }
11810
 
11811
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11812
# It thinks the first close brace ends the variable substitution.
11813
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11814
 
11815
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11816
 
11817
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11818
 
11819
 
11820
# Specify our baseline CFLAGS
11821
CPPFLAGS="-I\${top_srcdir}/support -I\${top_srcdir}/mc-common"
11822
CFLAGS="-Wall -Werror -g -nostdlib -mhard-div -mhard-mul"
11823
 
11824
# Flag to specify whether we want optimization when checking
11825
{ $as_echo "$as_me:$LINENO: checking whether to enable optimizations when checking" >&5
11826
$as_echo_n "checking whether to enable optimizations when checking... " >&6; }
11827
# Check whether --enable-opt was given.
11828
if test "${enable_opt+set}" = set; then
11829
  enableval=$enable_opt;
11830
    case "$enableval" in
11831
        yes)
11832
            CFLAGS="$CFLAGS -O"
11833
            ;;
11834
        *)
11835
            CFLAGS="$CFLAGS -O$enableval"
11836
            ;;
11837
    esac
11838
 
11839
fi
11840
 
11841
{ $as_echo "$as_me:$LINENO: result: ${enable_check_opt-default}" >&5
11842
$as_echo "${enable_check_opt-default}" >&6; }
11843
 
11844
 
11845
 
11846
 
11847
# This is GNU compliant source and uses GNU libraries
11848
 
11849
cat >>confdefs.h <<\_ACEOF
11850
#define _GNU_SOURCE 1
11851
_ACEOF
11852
 
11853
 
11854
# Check for functions doesn't work, since we can't execute code. Define some
11855
# we know are definitely there in OR1K GCC. This is all to allow reused
11856
# headers from the main code body (for the memory controller tests
11857
# principally) to work.
11858
 
11859
cat >>confdefs.h <<\_ACEOF
11860
#define HAVE_STRNDUP /**/
11861
_ACEOF
11862
 
11863
 
11864
cat >>confdefs.h <<\_ACEOF
11865
#define HAVE_ISBLANK /**/
11866
_ACEOF
11867
 
11868
 
11869
# Check for headers
11870
 
11871
 
11872
for ac_header in sys/types.h inttypes.h
11873
do
11874
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11875
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11876
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11877
$as_echo_n "checking for $ac_header... " >&6; }
11878
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11879
  $as_echo_n "(cached) " >&6
11880
fi
11881
ac_res=`eval 'as_val=${'$as_ac_Header'}
11882
                 $as_echo "$as_val"'`
11883
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11884
$as_echo "$ac_res" >&6; }
11885
else
11886
  # Is the header compilable?
11887
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11888
$as_echo_n "checking $ac_header usability... " >&6; }
11889
cat >conftest.$ac_ext <<_ACEOF
11890
/* confdefs.h.  */
11891
_ACEOF
11892
cat confdefs.h >>conftest.$ac_ext
11893
cat >>conftest.$ac_ext <<_ACEOF
11894
/* end confdefs.h.  */
11895
$ac_includes_default
11896
#include <$ac_header>
11897
_ACEOF
11898
rm -f conftest.$ac_objext
11899
if { (ac_try="$ac_compile"
11900
case "(($ac_try" in
11901
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902
  *) ac_try_echo=$ac_try;;
11903
esac
11904
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11905
$as_echo "$ac_try_echo") >&5
11906
  (eval "$ac_compile") 2>conftest.er1
11907
  ac_status=$?
11908
  grep -v '^ *+' conftest.er1 >conftest.err
11909
  rm -f conftest.er1
11910
  cat conftest.err >&5
11911
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912
  (exit $ac_status); } && {
11913
         test -z "$ac_c_werror_flag" ||
11914
         test ! -s conftest.err
11915
       } && test -s conftest.$ac_objext; then
11916
  ac_header_compiler=yes
11917
else
11918
  $as_echo "$as_me: failed program was:" >&5
11919
sed 's/^/| /' conftest.$ac_ext >&5
11920
 
11921
        ac_header_compiler=no
11922
fi
11923
 
11924
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11925
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11926
$as_echo "$ac_header_compiler" >&6; }
11927
 
11928
# Is the header present?
11929
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11930
$as_echo_n "checking $ac_header presence... " >&6; }
11931
cat >conftest.$ac_ext <<_ACEOF
11932
/* confdefs.h.  */
11933
_ACEOF
11934
cat confdefs.h >>conftest.$ac_ext
11935
cat >>conftest.$ac_ext <<_ACEOF
11936
/* end confdefs.h.  */
11937
#include <$ac_header>
11938
_ACEOF
11939
if { (ac_try="$ac_cpp conftest.$ac_ext"
11940
case "(($ac_try" in
11941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942
  *) ac_try_echo=$ac_try;;
11943
esac
11944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11945
$as_echo "$ac_try_echo") >&5
11946
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11947
  ac_status=$?
11948
  grep -v '^ *+' conftest.er1 >conftest.err
11949
  rm -f conftest.er1
11950
  cat conftest.err >&5
11951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952
  (exit $ac_status); } >/dev/null && {
11953
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11954
         test ! -s conftest.err
11955
       }; then
11956
  ac_header_preproc=yes
11957
else
11958
  $as_echo "$as_me: failed program was:" >&5
11959
sed 's/^/| /' conftest.$ac_ext >&5
11960
 
11961
  ac_header_preproc=no
11962
fi
11963
 
11964
rm -f conftest.err conftest.$ac_ext
11965
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11966
$as_echo "$ac_header_preproc" >&6; }
11967
 
11968
# So?  What about this header?
11969
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11970
  yes:no: )
11971
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11972
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11973
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11974
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11975
    ac_header_preproc=yes
11976
    ;;
11977
  no:yes:* )
11978
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11979
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11980
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11981
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11982
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11983
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11984
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11985
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11986
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11987
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11988
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11989
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11990
    ( cat <<\_ASBOX
11991
## ------------------------------------- ##
11992
## Report this to openrisc@opencores.org ##
11993
## ------------------------------------- ##
11994
_ASBOX
11995
     ) | sed "s/^/$as_me: WARNING:     /" >&2
11996
    ;;
11997
esac
11998
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11999
$as_echo_n "checking for $ac_header... " >&6; }
12000
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12001
  $as_echo_n "(cached) " >&6
12002
else
12003
  eval "$as_ac_Header=\$ac_header_preproc"
12004
fi
12005
ac_res=`eval 'as_val=${'$as_ac_Header'}
12006
                 $as_echo "$as_val"'`
12007
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12008
$as_echo "$ac_res" >&6; }
12009
 
12010
fi
12011
as_val=`eval 'as_val=${'$as_ac_Header'}
12012
                 $as_echo "$as_val"'`
12013
   if test "x$as_val" = x""yes; then
12014
  cat >>confdefs.h <<_ACEOF
12015
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12016
_ACEOF
12017
 
12018
fi
12019
 
12020
done
12021
 
12022
 
12023
# check for types and sizes
12024
{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
12025
$as_echo_n "checking for uint8_t... " >&6; }
12026
if test "${ac_cv_type_uint8_t+set}" = set; then
12027
  $as_echo_n "(cached) " >&6
12028
else
12029
  ac_cv_type_uint8_t=no
12030
cat >conftest.$ac_ext <<_ACEOF
12031
/* confdefs.h.  */
12032
_ACEOF
12033
cat confdefs.h >>conftest.$ac_ext
12034
cat >>conftest.$ac_ext <<_ACEOF
12035
/* end confdefs.h.  */
12036
#include 
12037
 
12038
int
12039
main ()
12040
{
12041
if (sizeof (uint8_t))
12042
       return 0;
12043
  ;
12044
  return 0;
12045
}
12046
_ACEOF
12047
rm -f conftest.$ac_objext
12048
if { (ac_try="$ac_compile"
12049
case "(($ac_try" in
12050
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051
  *) ac_try_echo=$ac_try;;
12052
esac
12053
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12054
$as_echo "$ac_try_echo") >&5
12055
  (eval "$ac_compile") 2>conftest.er1
12056
  ac_status=$?
12057
  grep -v '^ *+' conftest.er1 >conftest.err
12058
  rm -f conftest.er1
12059
  cat conftest.err >&5
12060
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061
  (exit $ac_status); } && {
12062
         test -z "$ac_c_werror_flag" ||
12063
         test ! -s conftest.err
12064
       } && test -s conftest.$ac_objext; then
12065
  cat >conftest.$ac_ext <<_ACEOF
12066
/* confdefs.h.  */
12067
_ACEOF
12068
cat confdefs.h >>conftest.$ac_ext
12069
cat >>conftest.$ac_ext <<_ACEOF
12070
/* end confdefs.h.  */
12071
#include 
12072
 
12073
int
12074
main ()
12075
{
12076
if (sizeof ((uint8_t)))
12077
          return 0;
12078
  ;
12079
  return 0;
12080
}
12081
_ACEOF
12082
rm -f conftest.$ac_objext
12083
if { (ac_try="$ac_compile"
12084
case "(($ac_try" in
12085
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086
  *) ac_try_echo=$ac_try;;
12087
esac
12088
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12089
$as_echo "$ac_try_echo") >&5
12090
  (eval "$ac_compile") 2>conftest.er1
12091
  ac_status=$?
12092
  grep -v '^ *+' conftest.er1 >conftest.err
12093
  rm -f conftest.er1
12094
  cat conftest.err >&5
12095
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096
  (exit $ac_status); } && {
12097
         test -z "$ac_c_werror_flag" ||
12098
         test ! -s conftest.err
12099
       } && test -s conftest.$ac_objext; then
12100
  :
12101
else
12102
  $as_echo "$as_me: failed program was:" >&5
12103
sed 's/^/| /' conftest.$ac_ext >&5
12104
 
12105
        ac_cv_type_uint8_t=yes
12106
fi
12107
 
12108
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12109
else
12110
  $as_echo "$as_me: failed program was:" >&5
12111
sed 's/^/| /' conftest.$ac_ext >&5
12112
 
12113
 
12114
fi
12115
 
12116
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117
fi
12118
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
12119
$as_echo "$ac_cv_type_uint8_t" >&6; }
12120
if test "x$ac_cv_type_uint8_t" = x""yes; then
12121
 
12122
cat >>confdefs.h <<_ACEOF
12123
#define HAVE_UINT8_T 1
12124
_ACEOF
12125
 
12126
 
12127
fi
12128
{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
12129
$as_echo_n "checking for uint16_t... " >&6; }
12130
if test "${ac_cv_type_uint16_t+set}" = set; then
12131
  $as_echo_n "(cached) " >&6
12132
else
12133
  ac_cv_type_uint16_t=no
12134
cat >conftest.$ac_ext <<_ACEOF
12135
/* confdefs.h.  */
12136
_ACEOF
12137
cat confdefs.h >>conftest.$ac_ext
12138
cat >>conftest.$ac_ext <<_ACEOF
12139
/* end confdefs.h.  */
12140
#include 
12141
 
12142
int
12143
main ()
12144
{
12145
if (sizeof (uint16_t))
12146
       return 0;
12147
  ;
12148
  return 0;
12149
}
12150
_ACEOF
12151
rm -f conftest.$ac_objext
12152
if { (ac_try="$ac_compile"
12153
case "(($ac_try" in
12154
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155
  *) ac_try_echo=$ac_try;;
12156
esac
12157
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12158
$as_echo "$ac_try_echo") >&5
12159
  (eval "$ac_compile") 2>conftest.er1
12160
  ac_status=$?
12161
  grep -v '^ *+' conftest.er1 >conftest.err
12162
  rm -f conftest.er1
12163
  cat conftest.err >&5
12164
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165
  (exit $ac_status); } && {
12166
         test -z "$ac_c_werror_flag" ||
12167
         test ! -s conftest.err
12168
       } && test -s conftest.$ac_objext; then
12169
  cat >conftest.$ac_ext <<_ACEOF
12170
/* confdefs.h.  */
12171
_ACEOF
12172
cat confdefs.h >>conftest.$ac_ext
12173
cat >>conftest.$ac_ext <<_ACEOF
12174
/* end confdefs.h.  */
12175
#include 
12176
 
12177
int
12178
main ()
12179
{
12180
if (sizeof ((uint16_t)))
12181
          return 0;
12182
  ;
12183
  return 0;
12184
}
12185
_ACEOF
12186
rm -f conftest.$ac_objext
12187
if { (ac_try="$ac_compile"
12188
case "(($ac_try" in
12189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190
  *) ac_try_echo=$ac_try;;
12191
esac
12192
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12193
$as_echo "$ac_try_echo") >&5
12194
  (eval "$ac_compile") 2>conftest.er1
12195
  ac_status=$?
12196
  grep -v '^ *+' conftest.er1 >conftest.err
12197
  rm -f conftest.er1
12198
  cat conftest.err >&5
12199
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200
  (exit $ac_status); } && {
12201
         test -z "$ac_c_werror_flag" ||
12202
         test ! -s conftest.err
12203
       } && test -s conftest.$ac_objext; then
12204
  :
12205
else
12206
  $as_echo "$as_me: failed program was:" >&5
12207
sed 's/^/| /' conftest.$ac_ext >&5
12208
 
12209
        ac_cv_type_uint16_t=yes
12210
fi
12211
 
12212
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12213
else
12214
  $as_echo "$as_me: failed program was:" >&5
12215
sed 's/^/| /' conftest.$ac_ext >&5
12216
 
12217
 
12218
fi
12219
 
12220
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221
fi
12222
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
12223
$as_echo "$ac_cv_type_uint16_t" >&6; }
12224
if test "x$ac_cv_type_uint16_t" = x""yes; then
12225
 
12226
cat >>confdefs.h <<_ACEOF
12227
#define HAVE_UINT16_T 1
12228
_ACEOF
12229
 
12230
 
12231
fi
12232
{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
12233
$as_echo_n "checking for uint32_t... " >&6; }
12234
if test "${ac_cv_type_uint32_t+set}" = set; then
12235
  $as_echo_n "(cached) " >&6
12236
else
12237
  ac_cv_type_uint32_t=no
12238
cat >conftest.$ac_ext <<_ACEOF
12239
/* confdefs.h.  */
12240
_ACEOF
12241
cat confdefs.h >>conftest.$ac_ext
12242
cat >>conftest.$ac_ext <<_ACEOF
12243
/* end confdefs.h.  */
12244
#include 
12245
 
12246
int
12247
main ()
12248
{
12249
if (sizeof (uint32_t))
12250
       return 0;
12251
  ;
12252
  return 0;
12253
}
12254
_ACEOF
12255
rm -f conftest.$ac_objext
12256
if { (ac_try="$ac_compile"
12257
case "(($ac_try" in
12258
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259
  *) ac_try_echo=$ac_try;;
12260
esac
12261
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12262
$as_echo "$ac_try_echo") >&5
12263
  (eval "$ac_compile") 2>conftest.er1
12264
  ac_status=$?
12265
  grep -v '^ *+' conftest.er1 >conftest.err
12266
  rm -f conftest.er1
12267
  cat conftest.err >&5
12268
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269
  (exit $ac_status); } && {
12270
         test -z "$ac_c_werror_flag" ||
12271
         test ! -s conftest.err
12272
       } && test -s conftest.$ac_objext; then
12273
  cat >conftest.$ac_ext <<_ACEOF
12274
/* confdefs.h.  */
12275
_ACEOF
12276
cat confdefs.h >>conftest.$ac_ext
12277
cat >>conftest.$ac_ext <<_ACEOF
12278
/* end confdefs.h.  */
12279
#include 
12280
 
12281
int
12282
main ()
12283
{
12284
if (sizeof ((uint32_t)))
12285
          return 0;
12286
  ;
12287
  return 0;
12288
}
12289
_ACEOF
12290
rm -f conftest.$ac_objext
12291
if { (ac_try="$ac_compile"
12292
case "(($ac_try" in
12293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294
  *) ac_try_echo=$ac_try;;
12295
esac
12296
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12297
$as_echo "$ac_try_echo") >&5
12298
  (eval "$ac_compile") 2>conftest.er1
12299
  ac_status=$?
12300
  grep -v '^ *+' conftest.er1 >conftest.err
12301
  rm -f conftest.er1
12302
  cat conftest.err >&5
12303
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304
  (exit $ac_status); } && {
12305
         test -z "$ac_c_werror_flag" ||
12306
         test ! -s conftest.err
12307
       } && test -s conftest.$ac_objext; then
12308
  :
12309
else
12310
  $as_echo "$as_me: failed program was:" >&5
12311
sed 's/^/| /' conftest.$ac_ext >&5
12312
 
12313
        ac_cv_type_uint32_t=yes
12314
fi
12315
 
12316
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12317
else
12318
  $as_echo "$as_me: failed program was:" >&5
12319
sed 's/^/| /' conftest.$ac_ext >&5
12320
 
12321
 
12322
fi
12323
 
12324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12325
fi
12326
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
12327
$as_echo "$ac_cv_type_uint32_t" >&6; }
12328
if test "x$ac_cv_type_uint32_t" = x""yes; then
12329
 
12330
cat >>confdefs.h <<_ACEOF
12331
#define HAVE_UINT32_T 1
12332
_ACEOF
12333
 
12334
 
12335
fi
12336
 
12337
{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
12338
$as_echo_n "checking for int8_t... " >&6; }
12339
if test "${ac_cv_type_int8_t+set}" = set; then
12340
  $as_echo_n "(cached) " >&6
12341
else
12342
  ac_cv_type_int8_t=no
12343
cat >conftest.$ac_ext <<_ACEOF
12344
/* confdefs.h.  */
12345
_ACEOF
12346
cat confdefs.h >>conftest.$ac_ext
12347
cat >>conftest.$ac_ext <<_ACEOF
12348
/* end confdefs.h.  */
12349
#include 
12350
 
12351
int
12352
main ()
12353
{
12354
if (sizeof (int8_t))
12355
       return 0;
12356
  ;
12357
  return 0;
12358
}
12359
_ACEOF
12360
rm -f conftest.$ac_objext
12361
if { (ac_try="$ac_compile"
12362
case "(($ac_try" in
12363
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364
  *) ac_try_echo=$ac_try;;
12365
esac
12366
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12367
$as_echo "$ac_try_echo") >&5
12368
  (eval "$ac_compile") 2>conftest.er1
12369
  ac_status=$?
12370
  grep -v '^ *+' conftest.er1 >conftest.err
12371
  rm -f conftest.er1
12372
  cat conftest.err >&5
12373
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374
  (exit $ac_status); } && {
12375
         test -z "$ac_c_werror_flag" ||
12376
         test ! -s conftest.err
12377
       } && test -s conftest.$ac_objext; then
12378
  cat >conftest.$ac_ext <<_ACEOF
12379
/* confdefs.h.  */
12380
_ACEOF
12381
cat confdefs.h >>conftest.$ac_ext
12382
cat >>conftest.$ac_ext <<_ACEOF
12383
/* end confdefs.h.  */
12384
#include 
12385
 
12386
int
12387
main ()
12388
{
12389
if (sizeof ((int8_t)))
12390
          return 0;
12391
  ;
12392
  return 0;
12393
}
12394
_ACEOF
12395
rm -f conftest.$ac_objext
12396
if { (ac_try="$ac_compile"
12397
case "(($ac_try" in
12398
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399
  *) ac_try_echo=$ac_try;;
12400
esac
12401
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12402
$as_echo "$ac_try_echo") >&5
12403
  (eval "$ac_compile") 2>conftest.er1
12404
  ac_status=$?
12405
  grep -v '^ *+' conftest.er1 >conftest.err
12406
  rm -f conftest.er1
12407
  cat conftest.err >&5
12408
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409
  (exit $ac_status); } && {
12410
         test -z "$ac_c_werror_flag" ||
12411
         test ! -s conftest.err
12412
       } && test -s conftest.$ac_objext; then
12413
  :
12414
else
12415
  $as_echo "$as_me: failed program was:" >&5
12416
sed 's/^/| /' conftest.$ac_ext >&5
12417
 
12418
        ac_cv_type_int8_t=yes
12419
fi
12420
 
12421
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422
else
12423
  $as_echo "$as_me: failed program was:" >&5
12424
sed 's/^/| /' conftest.$ac_ext >&5
12425
 
12426
 
12427
fi
12428
 
12429
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430
fi
12431
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
12432
$as_echo "$ac_cv_type_int8_t" >&6; }
12433
if test "x$ac_cv_type_int8_t" = x""yes; then
12434
 
12435
cat >>confdefs.h <<_ACEOF
12436
#define HAVE_INT8_T 1
12437
_ACEOF
12438
 
12439
 
12440
fi
12441
{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
12442
$as_echo_n "checking for int16_t... " >&6; }
12443
if test "${ac_cv_type_int16_t+set}" = set; then
12444
  $as_echo_n "(cached) " >&6
12445
else
12446
  ac_cv_type_int16_t=no
12447
cat >conftest.$ac_ext <<_ACEOF
12448
/* confdefs.h.  */
12449
_ACEOF
12450
cat confdefs.h >>conftest.$ac_ext
12451
cat >>conftest.$ac_ext <<_ACEOF
12452
/* end confdefs.h.  */
12453
#include 
12454
 
12455
int
12456
main ()
12457
{
12458
if (sizeof (int16_t))
12459
       return 0;
12460
  ;
12461
  return 0;
12462
}
12463
_ACEOF
12464
rm -f conftest.$ac_objext
12465
if { (ac_try="$ac_compile"
12466
case "(($ac_try" in
12467
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468
  *) ac_try_echo=$ac_try;;
12469
esac
12470
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12471
$as_echo "$ac_try_echo") >&5
12472
  (eval "$ac_compile") 2>conftest.er1
12473
  ac_status=$?
12474
  grep -v '^ *+' conftest.er1 >conftest.err
12475
  rm -f conftest.er1
12476
  cat conftest.err >&5
12477
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478
  (exit $ac_status); } && {
12479
         test -z "$ac_c_werror_flag" ||
12480
         test ! -s conftest.err
12481
       } && test -s conftest.$ac_objext; then
12482
  cat >conftest.$ac_ext <<_ACEOF
12483
/* confdefs.h.  */
12484
_ACEOF
12485
cat confdefs.h >>conftest.$ac_ext
12486
cat >>conftest.$ac_ext <<_ACEOF
12487
/* end confdefs.h.  */
12488
#include 
12489
 
12490
int
12491
main ()
12492
{
12493
if (sizeof ((int16_t)))
12494
          return 0;
12495
  ;
12496
  return 0;
12497
}
12498
_ACEOF
12499
rm -f conftest.$ac_objext
12500
if { (ac_try="$ac_compile"
12501
case "(($ac_try" in
12502
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503
  *) ac_try_echo=$ac_try;;
12504
esac
12505
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12506
$as_echo "$ac_try_echo") >&5
12507
  (eval "$ac_compile") 2>conftest.er1
12508
  ac_status=$?
12509
  grep -v '^ *+' conftest.er1 >conftest.err
12510
  rm -f conftest.er1
12511
  cat conftest.err >&5
12512
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513
  (exit $ac_status); } && {
12514
         test -z "$ac_c_werror_flag" ||
12515
         test ! -s conftest.err
12516
       } && test -s conftest.$ac_objext; then
12517
  :
12518
else
12519
  $as_echo "$as_me: failed program was:" >&5
12520
sed 's/^/| /' conftest.$ac_ext >&5
12521
 
12522
        ac_cv_type_int16_t=yes
12523
fi
12524
 
12525
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526
else
12527
  $as_echo "$as_me: failed program was:" >&5
12528
sed 's/^/| /' conftest.$ac_ext >&5
12529
 
12530
 
12531
fi
12532
 
12533
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534
fi
12535
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
12536
$as_echo "$ac_cv_type_int16_t" >&6; }
12537
if test "x$ac_cv_type_int16_t" = x""yes; then
12538
 
12539
cat >>confdefs.h <<_ACEOF
12540
#define HAVE_INT16_T 1
12541
_ACEOF
12542
 
12543
 
12544
fi
12545
{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
12546
$as_echo_n "checking for int32_t... " >&6; }
12547
if test "${ac_cv_type_int32_t+set}" = set; then
12548
  $as_echo_n "(cached) " >&6
12549
else
12550
  ac_cv_type_int32_t=no
12551
cat >conftest.$ac_ext <<_ACEOF
12552
/* confdefs.h.  */
12553
_ACEOF
12554
cat confdefs.h >>conftest.$ac_ext
12555
cat >>conftest.$ac_ext <<_ACEOF
12556
/* end confdefs.h.  */
12557
#include 
12558
 
12559
int
12560
main ()
12561
{
12562
if (sizeof (int32_t))
12563
       return 0;
12564
  ;
12565
  return 0;
12566
}
12567
_ACEOF
12568
rm -f conftest.$ac_objext
12569
if { (ac_try="$ac_compile"
12570
case "(($ac_try" in
12571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572
  *) ac_try_echo=$ac_try;;
12573
esac
12574
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12575
$as_echo "$ac_try_echo") >&5
12576
  (eval "$ac_compile") 2>conftest.er1
12577
  ac_status=$?
12578
  grep -v '^ *+' conftest.er1 >conftest.err
12579
  rm -f conftest.er1
12580
  cat conftest.err >&5
12581
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582
  (exit $ac_status); } && {
12583
         test -z "$ac_c_werror_flag" ||
12584
         test ! -s conftest.err
12585
       } && test -s conftest.$ac_objext; then
12586
  cat >conftest.$ac_ext <<_ACEOF
12587
/* confdefs.h.  */
12588
_ACEOF
12589
cat confdefs.h >>conftest.$ac_ext
12590
cat >>conftest.$ac_ext <<_ACEOF
12591
/* end confdefs.h.  */
12592
#include 
12593
 
12594
int
12595
main ()
12596
{
12597
if (sizeof ((int32_t)))
12598
          return 0;
12599
  ;
12600
  return 0;
12601
}
12602
_ACEOF
12603
rm -f conftest.$ac_objext
12604
if { (ac_try="$ac_compile"
12605
case "(($ac_try" in
12606
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607
  *) ac_try_echo=$ac_try;;
12608
esac
12609
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12610
$as_echo "$ac_try_echo") >&5
12611
  (eval "$ac_compile") 2>conftest.er1
12612
  ac_status=$?
12613
  grep -v '^ *+' conftest.er1 >conftest.err
12614
  rm -f conftest.er1
12615
  cat conftest.err >&5
12616
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617
  (exit $ac_status); } && {
12618
         test -z "$ac_c_werror_flag" ||
12619
         test ! -s conftest.err
12620
       } && test -s conftest.$ac_objext; then
12621
  :
12622
else
12623
  $as_echo "$as_me: failed program was:" >&5
12624
sed 's/^/| /' conftest.$ac_ext >&5
12625
 
12626
        ac_cv_type_int32_t=yes
12627
fi
12628
 
12629
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630
else
12631
  $as_echo "$as_me: failed program was:" >&5
12632
sed 's/^/| /' conftest.$ac_ext >&5
12633
 
12634
 
12635
fi
12636
 
12637
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638
fi
12639
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
12640
$as_echo "$ac_cv_type_int32_t" >&6; }
12641
if test "x$ac_cv_type_int32_t" = x""yes; then
12642
 
12643
cat >>confdefs.h <<_ACEOF
12644
#define HAVE_INT32_T 1
12645
_ACEOF
12646
 
12647
 
12648
fi
12649
 
12650
 
12651
# Checking sizeof doesn't really work, since it needs to run compiled code. So
12652
# we do it by hand.
12653
 
12654
cat >>confdefs.h <<\_ACEOF
12655
#define SIZEOF_CHAR 1
12656
_ACEOF
12657
 
12658
 
12659
cat >>confdefs.h <<\_ACEOF
12660
#define SIZEOF_SHORT 2
12661
_ACEOF
12662
 
12663
 
12664
cat >>confdefs.h <<\_ACEOF
12665
#define SIZEOF_INT 4
12666
_ACEOF
12667
 
12668
 
12669
cat >>confdefs.h <<\_ACEOF
12670
#define SIZEOF_LONG 4
12671
_ACEOF
12672
 
12673
 
12674
ac_config_files="$ac_config_files Makefile acv-gpio/Makefile acv-uart/Makefile basic/Makefile cache/Makefile cbasic/Makefile cfg/Makefile dhry/Makefile dmatest/Makefile eth/Makefile except/Makefile except-test/Makefile exit/Makefile ext/Makefile fbtest/Makefile functest/Makefile flag/Makefile int-test/Makefile inst-set-test/Makefile kbdtest/Makefile local-global/Makefile loop/Makefile mc-async/Makefile mc-dram/Makefile mc-ssram/Makefile mc-sync/Makefile mc-common/Makefile mem-test/Makefile mmu/Makefile mul/Makefile mycompress/Makefile support/Makefile tick/Makefile uos/Makefile"
12675
 
12676
 
12677
cat >confcache <<\_ACEOF
12678
# This file is a shell script that caches the results of configure
12679
# tests run on this system so they can be shared between configure
12680
# scripts and configure runs, see configure's option --config-cache.
12681
# It is not useful on other systems.  If it contains results you don't
12682
# want to keep, you may remove or edit it.
12683
#
12684
# config.status only pays attention to the cache file if you give it
12685
# the --recheck option to rerun configure.
12686
#
12687
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12688
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12689
# following values.
12690
 
12691
_ACEOF
12692
 
12693
# The following way of writing the cache mishandles newlines in values,
12694
# but we know of no workaround that is simple, portable, and efficient.
12695
# So, we kill variables containing newlines.
12696
# Ultrix sh set writes to stderr and can't be redirected directly,
12697
# and sets the high bit in the cache file unless we assign to the vars.
12698
(
12699
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12700
    eval ac_val=\$$ac_var
12701
    case $ac_val in #(
12702
    *${as_nl}*)
12703
      case $ac_var in #(
12704
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12705
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12706
      esac
12707
      case $ac_var in #(
12708
      _ | IFS | as_nl) ;; #(
12709
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12710
      *) $as_unset $ac_var ;;
12711
      esac ;;
12712
    esac
12713
  done
12714
 
12715
  (set) 2>&1 |
12716
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12717
    *${as_nl}ac_space=\ *)
12718
      # `set' does not quote correctly, so add quotes (double-quote
12719
      # substitution turns \\\\ into \\, and sed turns \\ into \).
12720
      sed -n \
12721
        "s/'/'\\\\''/g;
12722
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12723
      ;; #(
12724
    *)
12725
      # `set' quotes correctly as required by POSIX, so do not add quotes.
12726
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12727
      ;;
12728
    esac |
12729
    sort
12730
) |
12731
  sed '
12732
     /^ac_cv_env_/b end
12733
     t clear
12734
     :clear
12735
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12736
     t end
12737
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12738
     :end' >>confcache
12739
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12740
  if test -w "$cache_file"; then
12741
    test "x$cache_file" != "x/dev/null" &&
12742
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12743
$as_echo "$as_me: updating cache $cache_file" >&6;}
12744
    cat confcache >$cache_file
12745
  else
12746
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12747
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12748
  fi
12749
fi
12750
rm -f confcache
12751
 
12752
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12753
# Let make expand exec_prefix.
12754
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12755
 
12756
DEFS=-DHAVE_CONFIG_H
12757
 
12758
ac_libobjs=
12759
ac_ltlibobjs=
12760
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12761
  # 1. Remove the extension, and $U if already installed.
12762
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12763
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12764
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12765
  #    will be set to the directory where LIBOBJS objects are built.
12766
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12767
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12768
done
12769
LIBOBJS=$ac_libobjs
12770
 
12771
LTLIBOBJS=$ac_ltlibobjs
12772
 
12773
 
12774
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12775
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12776
Usually this means the macro was only invoked conditionally." >&5
12777
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12778
Usually this means the macro was only invoked conditionally." >&2;}
12779
   { (exit 1); exit 1; }; }
12780
fi
12781
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12782
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12783
Usually this means the macro was only invoked conditionally." >&5
12784
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12785
Usually this means the macro was only invoked conditionally." >&2;}
12786
   { (exit 1); exit 1; }; }
12787
fi
12788
 if test -n "$EXEEXT"; then
12789
  am__EXEEXT_TRUE=
12790
  am__EXEEXT_FALSE='#'
12791
else
12792
  am__EXEEXT_TRUE='#'
12793
  am__EXEEXT_FALSE=
12794
fi
12795
 
12796
if test -z "${BUILD_ALL_TESTS_TRUE}" && test -z "${BUILD_ALL_TESTS_FALSE}"; then
12797
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ALL_TESTS\" was never defined.
12798
Usually this means the macro was only invoked conditionally." >&5
12799
$as_echo "$as_me: error: conditional \"BUILD_ALL_TESTS\" was never defined.
12800
Usually this means the macro was only invoked conditionally." >&2;}
12801
   { (exit 1); exit 1; }; }
12802
fi
12803
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12804
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
12805
Usually this means the macro was only invoked conditionally." >&5
12806
$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
12807
Usually this means the macro was only invoked conditionally." >&2;}
12808
   { (exit 1); exit 1; }; }
12809
fi
12810
 
12811
: ${CONFIG_STATUS=./config.status}
12812
ac_write_fail=0
12813
ac_clean_files_save=$ac_clean_files
12814
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12815
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12816
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12817
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12818
#! $SHELL
12819
# Generated by $as_me.
12820
# Run this file to recreate the current configuration.
12821
# Compiler output produced by configure, useful for debugging
12822
# configure, is in config.log if it exists.
12823
 
12824
debug=false
12825
ac_cs_recheck=false
12826
ac_cs_silent=false
12827
SHELL=\${CONFIG_SHELL-$SHELL}
12828
_ACEOF
12829
 
12830
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12831
## --------------------- ##
12832
## M4sh Initialization.  ##
12833
## --------------------- ##
12834
 
12835
# Be more Bourne compatible
12836
DUALCASE=1; export DUALCASE # for MKS sh
12837
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12838
  emulate sh
12839
  NULLCMD=:
12840
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12841
  # is contrary to our usage.  Disable this feature.
12842
  alias -g '${1+"$@"}'='"$@"'
12843
  setopt NO_GLOB_SUBST
12844
else
12845
  case `(set -o) 2>/dev/null` in
12846
  *posix*) set -o posix ;;
12847
esac
12848
 
12849
fi
12850
 
12851
 
12852
 
12853
 
12854
# PATH needs CR
12855
# Avoid depending upon Character Ranges.
12856
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12857
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12858
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12859
as_cr_digits='0123456789'
12860
as_cr_alnum=$as_cr_Letters$as_cr_digits
12861
 
12862
as_nl='
12863
'
12864
export as_nl
12865
# Printing a long string crashes Solaris 7 /usr/bin/printf.
12866
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12867
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12868
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12869
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12870
  as_echo='printf %s\n'
12871
  as_echo_n='printf %s'
12872
else
12873
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12874
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12875
    as_echo_n='/usr/ucb/echo -n'
12876
  else
12877
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12878
    as_echo_n_body='eval
12879
      arg=$1;
12880
      case $arg in
12881
      *"$as_nl"*)
12882
        expr "X$arg" : "X\\(.*\\)$as_nl";
12883
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12884
      esac;
12885
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12886
    '
12887
    export as_echo_n_body
12888
    as_echo_n='sh -c $as_echo_n_body as_echo'
12889
  fi
12890
  export as_echo_body
12891
  as_echo='sh -c $as_echo_body as_echo'
12892
fi
12893
 
12894
# The user is always right.
12895
if test "${PATH_SEPARATOR+set}" != set; then
12896
  PATH_SEPARATOR=:
12897
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12898
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12899
      PATH_SEPARATOR=';'
12900
  }
12901
fi
12902
 
12903
# Support unset when possible.
12904
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12905
  as_unset=unset
12906
else
12907
  as_unset=false
12908
fi
12909
 
12910
 
12911
# IFS
12912
# We need space, tab and new line, in precisely that order.  Quoting is
12913
# there to prevent editors from complaining about space-tab.
12914
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12915
# splitting by setting IFS to empty value.)
12916
IFS=" ""        $as_nl"
12917
 
12918
# Find who we are.  Look in the path if we contain no directory separator.
12919
case $0 in
12920
  *[\\/]* ) as_myself=$0 ;;
12921
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12922
for as_dir in $PATH
12923
do
12924
  IFS=$as_save_IFS
12925
  test -z "$as_dir" && as_dir=.
12926
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12927
done
12928
IFS=$as_save_IFS
12929
 
12930
     ;;
12931
esac
12932
# We did not find ourselves, most probably we were run as `sh COMMAND'
12933
# in which case we are not to be found in the path.
12934
if test "x$as_myself" = x; then
12935
  as_myself=$0
12936
fi
12937
if test ! -f "$as_myself"; then
12938
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12939
  { (exit 1); exit 1; }
12940
fi
12941
 
12942
# Work around bugs in pre-3.0 UWIN ksh.
12943
for as_var in ENV MAIL MAILPATH
12944
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12945
done
12946
PS1='$ '
12947
PS2='> '
12948
PS4='+ '
12949
 
12950
# NLS nuisances.
12951
LC_ALL=C
12952
export LC_ALL
12953
LANGUAGE=C
12954
export LANGUAGE
12955
 
12956
# Required to use basename.
12957
if expr a : '\(a\)' >/dev/null 2>&1 &&
12958
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12959
  as_expr=expr
12960
else
12961
  as_expr=false
12962
fi
12963
 
12964
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12965
  as_basename=basename
12966
else
12967
  as_basename=false
12968
fi
12969
 
12970
 
12971
# Name of the executable.
12972
as_me=`$as_basename -- "$0" ||
12973
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12974
         X"$0" : 'X\(//\)$' \| \
12975
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12976
$as_echo X/"$0" |
12977
    sed '/^.*\/\([^/][^/]*\)\/*$/{
12978
            s//\1/
12979
            q
12980
          }
12981
          /^X\/\(\/\/\)$/{
12982
            s//\1/
12983
            q
12984
          }
12985
          /^X\/\(\/\).*/{
12986
            s//\1/
12987
            q
12988
          }
12989
          s/.*/./; q'`
12990
 
12991
# CDPATH.
12992
$as_unset CDPATH
12993
 
12994
 
12995
 
12996
  as_lineno_1=$LINENO
12997
  as_lineno_2=$LINENO
12998
  test "x$as_lineno_1" != "x$as_lineno_2" &&
12999
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13000
 
13001
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13002
  # uniformly replaced by the line number.  The first 'sed' inserts a
13003
  # line-number line after each line using $LINENO; the second 'sed'
13004
  # does the real work.  The second script uses 'N' to pair each
13005
  # line-number line with the line containing $LINENO, and appends
13006
  # trailing '-' during substitution so that $LINENO is not a special
13007
  # case at line end.
13008
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13009
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13010
  # E. McMahon (1931-1989) for sed's syntax.  :-)
13011
  sed -n '
13012
    p
13013
    /[$]LINENO/=
13014
  ' <$as_myself |
13015
    sed '
13016
      s/[$]LINENO.*/&-/
13017
      t lineno
13018
      b
13019
      :lineno
13020
      N
13021
      :loop
13022
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13023
      t loop
13024
      s/-\n.*//
13025
    ' >$as_me.lineno &&
13026
  chmod +x "$as_me.lineno" ||
13027
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13028
   { (exit 1); exit 1; }; }
13029
 
13030
  # Don't try to exec as it changes $[0], causing all sort of problems
13031
  # (the dirname of $[0] is not the place where we might find the
13032
  # original and so on.  Autoconf is especially sensitive to this).
13033
  . "./$as_me.lineno"
13034
  # Exit status is that of the last command.
13035
  exit
13036
}
13037
 
13038
 
13039
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13040
  as_dirname=dirname
13041
else
13042
  as_dirname=false
13043
fi
13044
 
13045
ECHO_C= ECHO_N= ECHO_T=
13046
case `echo -n x` in
13047
-n*)
13048
  case `echo 'x\c'` in
13049
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13050
  *)   ECHO_C='\c';;
13051
  esac;;
13052
*)
13053
  ECHO_N='-n';;
13054
esac
13055
if expr a : '\(a\)' >/dev/null 2>&1 &&
13056
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13057
  as_expr=expr
13058
else
13059
  as_expr=false
13060
fi
13061
 
13062
rm -f conf$$ conf$$.exe conf$$.file
13063
if test -d conf$$.dir; then
13064
  rm -f conf$$.dir/conf$$.file
13065
else
13066
  rm -f conf$$.dir
13067
  mkdir conf$$.dir 2>/dev/null
13068
fi
13069
if (echo >conf$$.file) 2>/dev/null; then
13070
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13071
    as_ln_s='ln -s'
13072
    # ... but there are two gotchas:
13073
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13074
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13075
    # In both cases, we have to default to `cp -p'.
13076
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13077
      as_ln_s='cp -p'
13078
  elif ln conf$$.file conf$$ 2>/dev/null; then
13079
    as_ln_s=ln
13080
  else
13081
    as_ln_s='cp -p'
13082
  fi
13083
else
13084
  as_ln_s='cp -p'
13085
fi
13086
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13087
rmdir conf$$.dir 2>/dev/null
13088
 
13089
if mkdir -p . 2>/dev/null; then
13090
  as_mkdir_p=:
13091
else
13092
  test -d ./-p && rmdir ./-p
13093
  as_mkdir_p=false
13094
fi
13095
 
13096
if test -x / >/dev/null 2>&1; then
13097
  as_test_x='test -x'
13098
else
13099
  if ls -dL / >/dev/null 2>&1; then
13100
    as_ls_L_option=L
13101
  else
13102
    as_ls_L_option=
13103
  fi
13104
  as_test_x='
13105
    eval sh -c '\''
13106
      if test -d "$1"; then
13107
        test -d "$1/.";
13108
      else
13109
        case $1 in
13110
        -*)set "./$1";;
13111
        esac;
13112
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13113
        ???[sx]*):;;*)false;;esac;fi
13114
    '\'' sh
13115
  '
13116
fi
13117
as_executable_p=$as_test_x
13118
 
13119
# Sed expression to map a string onto a valid CPP name.
13120
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13121
 
13122
# Sed expression to map a string onto a valid variable name.
13123
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13124
 
13125
 
13126
exec 6>&1
13127
 
13128
# Save the log message, to keep $[0] and so on meaningful, and to
13129
# report actual input values of CONFIG_FILES etc. instead of their
13130
# values after options handling.
13131
ac_log="
13132
This file was extended by or1ksim-testsuite $as_me 0.4.0rc1, which was
13133
generated by GNU Autoconf 2.63.  Invocation command line was
13134
 
13135
  CONFIG_FILES    = $CONFIG_FILES
13136
  CONFIG_HEADERS  = $CONFIG_HEADERS
13137
  CONFIG_LINKS    = $CONFIG_LINKS
13138
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13139
  $ $0 $@
13140
 
13141
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13142
"
13143
 
13144
_ACEOF
13145
 
13146
case $ac_config_files in *"
13147
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13148
esac
13149
 
13150
case $ac_config_headers in *"
13151
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13152
esac
13153
 
13154
 
13155
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13156
# Files that config.status was made for.
13157
config_files="$ac_config_files"
13158
config_headers="$ac_config_headers"
13159
config_commands="$ac_config_commands"
13160
 
13161
_ACEOF
13162
 
13163
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13164
ac_cs_usage="\
13165
\`$as_me' instantiates files from templates according to the
13166
current configuration.
13167
 
13168
Usage: $0 [OPTION]... [FILE]...
13169
 
13170
  -h, --help       print this help, then exit
13171
  -V, --version    print version number and configuration settings, then exit
13172
  -q, --quiet, --silent
13173
                   do not print progress messages
13174
  -d, --debug      don't remove temporary files
13175
      --recheck    update $as_me by reconfiguring in the same conditions
13176
      --file=FILE[:TEMPLATE]
13177
                   instantiate the configuration file FILE
13178
      --header=FILE[:TEMPLATE]
13179
                   instantiate the configuration header FILE
13180
 
13181
Configuration files:
13182
$config_files
13183
 
13184
Configuration headers:
13185
$config_headers
13186
 
13187
Configuration commands:
13188
$config_commands
13189
 
13190
Report bugs to ."
13191
 
13192
_ACEOF
13193
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13194
ac_cs_version="\\
13195
or1ksim-testsuite config.status 0.4.0rc1
13196
configured by $0, generated by GNU Autoconf 2.63,
13197
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13198
 
13199
Copyright (C) 2008 Free Software Foundation, Inc.
13200
This config.status script is free software; the Free Software Foundation
13201
gives unlimited permission to copy, distribute and modify it."
13202
 
13203
ac_pwd='$ac_pwd'
13204
srcdir='$srcdir'
13205
INSTALL='$INSTALL'
13206
MKDIR_P='$MKDIR_P'
13207
AWK='$AWK'
13208
test -n "\$AWK" || AWK=awk
13209
_ACEOF
13210
 
13211
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13212
# The default lists apply if the user does not specify any file.
13213
ac_need_defaults=:
13214
while test $# != 0
13215
do
13216
  case $1 in
13217
  --*=*)
13218
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13219
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13220
    ac_shift=:
13221
    ;;
13222
  *)
13223
    ac_option=$1
13224
    ac_optarg=$2
13225
    ac_shift=shift
13226
    ;;
13227
  esac
13228
 
13229
  case $ac_option in
13230
  # Handling of the options.
13231
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13232
    ac_cs_recheck=: ;;
13233
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13234
    $as_echo "$ac_cs_version"; exit ;;
13235
  --debug | --debu | --deb | --de | --d | -d )
13236
    debug=: ;;
13237
  --file | --fil | --fi | --f )
13238
    $ac_shift
13239
    case $ac_optarg in
13240
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13241
    esac
13242
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13243
    ac_need_defaults=false;;
13244
  --header | --heade | --head | --hea )
13245
    $ac_shift
13246
    case $ac_optarg in
13247
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13248
    esac
13249
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13250
    ac_need_defaults=false;;
13251
  --he | --h)
13252
    # Conflict between --help and --header
13253
    { $as_echo "$as_me: error: ambiguous option: $1
13254
Try \`$0 --help' for more information." >&2
13255
   { (exit 1); exit 1; }; };;
13256
  --help | --hel | -h )
13257
    $as_echo "$ac_cs_usage"; exit ;;
13258
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13259
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13260
    ac_cs_silent=: ;;
13261
 
13262
  # This is an error.
13263
  -*) { $as_echo "$as_me: error: unrecognized option: $1
13264
Try \`$0 --help' for more information." >&2
13265
   { (exit 1); exit 1; }; } ;;
13266
 
13267
  *) ac_config_targets="$ac_config_targets $1"
13268
     ac_need_defaults=false ;;
13269
 
13270
  esac
13271
  shift
13272
done
13273
 
13274
ac_configure_extra_args=
13275
 
13276
if $ac_cs_silent; then
13277
  exec 6>/dev/null
13278
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13279
fi
13280
 
13281
_ACEOF
13282
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13283
if \$ac_cs_recheck; then
13284
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13285
  shift
13286
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13287
  CONFIG_SHELL='$SHELL'
13288
  export CONFIG_SHELL
13289
  exec "\$@"
13290
fi
13291
 
13292
_ACEOF
13293
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13294
exec 5>>config.log
13295
{
13296
  echo
13297
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13298
## Running $as_me. ##
13299
_ASBOX
13300
  $as_echo "$ac_log"
13301
} >&5
13302
 
13303
_ACEOF
13304
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13305
#
13306
# INIT-COMMANDS
13307
#
13308
 
13309
 
13310
# The HP-UX ksh and POSIX shell print the target directory to stdout
13311
# if CDPATH is set.
13312
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13313
 
13314
sed_quote_subst='$sed_quote_subst'
13315
double_quote_subst='$double_quote_subst'
13316
delay_variable_subst='$delay_variable_subst'
13317
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13318
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13319
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13320
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13321
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13322
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13323
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13324
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13325
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13326
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13327
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13328
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13329
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13330
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13331
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13332
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13333
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13334
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13335
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13336
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13337
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13338
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13339
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13340
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13341
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13342
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13343
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13344
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13345
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13346
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13347
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13348
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13349
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13350
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13351
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13352
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13353
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13354
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13355
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13356
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13357
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13358
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13359
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13360
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13361
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"`'
13362
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"`'
13363
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13364
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13365
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13366
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13367
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13368
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13369
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13370
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13371
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13372
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13373
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13374
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13375
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13376
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13377
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13378
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13379
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13380
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13381
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13382
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13383
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13384
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13385
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13386
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13387
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13388
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13389
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13390
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13391
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13392
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13393
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13394
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13395
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13396
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13397
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13398
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13399
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13400
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13401
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13402
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13403
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13404
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13405
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13406
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13407
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13408
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13409
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13410
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13411
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13412
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13413
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13414
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13415
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13416
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13417
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13418
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13419
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13420
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13421
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13422
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13423
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13424
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13425
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13426
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13427
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13428
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13429
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13430
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13431
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13432
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13433
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13434
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13435
 
13436
LTCC='$LTCC'
13437
LTCFLAGS='$LTCFLAGS'
13438
compiler='$compiler_DEFAULT'
13439
 
13440
# Quote evaled strings.
13441
for var in SED \
13442
GREP \
13443
EGREP \
13444
FGREP \
13445
LD \
13446
NM \
13447
LN_S \
13448
lt_SP2NL \
13449
lt_NL2SP \
13450
reload_flag \
13451
OBJDUMP \
13452
deplibs_check_method \
13453
file_magic_cmd \
13454
AR \
13455
AR_FLAGS \
13456
STRIP \
13457
RANLIB \
13458
CC \
13459
CFLAGS \
13460
compiler \
13461
lt_cv_sys_global_symbol_pipe \
13462
lt_cv_sys_global_symbol_to_cdecl \
13463
lt_cv_sys_global_symbol_to_c_name_address \
13464
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13465
SHELL \
13466
ECHO \
13467
lt_prog_compiler_no_builtin_flag \
13468
lt_prog_compiler_wl \
13469
lt_prog_compiler_pic \
13470
lt_prog_compiler_static \
13471
lt_cv_prog_compiler_c_o \
13472
need_locks \
13473
DSYMUTIL \
13474
NMEDIT \
13475
LIPO \
13476
OTOOL \
13477
OTOOL64 \
13478
shrext_cmds \
13479
export_dynamic_flag_spec \
13480
whole_archive_flag_spec \
13481
compiler_needs_object \
13482
with_gnu_ld \
13483
allow_undefined_flag \
13484
no_undefined_flag \
13485
hardcode_libdir_flag_spec \
13486
hardcode_libdir_flag_spec_ld \
13487
hardcode_libdir_separator \
13488
fix_srcfile_path \
13489
exclude_expsyms \
13490
include_expsyms \
13491
file_list_spec \
13492
variables_saved_for_relink \
13493
libname_spec \
13494
library_names_spec \
13495
soname_spec \
13496
finish_eval \
13497
old_striplib \
13498
striplib; do
13499
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13500
    *[\\\\\\\`\\"\\\$]*)
13501
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13502
      ;;
13503
    *)
13504
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13505
      ;;
13506
    esac
13507
done
13508
 
13509
# Double-quote double-evaled strings.
13510
for var in reload_cmds \
13511
old_postinstall_cmds \
13512
old_postuninstall_cmds \
13513
old_archive_cmds \
13514
extract_expsyms_cmds \
13515
old_archive_from_new_cmds \
13516
old_archive_from_expsyms_cmds \
13517
archive_cmds \
13518
archive_expsym_cmds \
13519
module_cmds \
13520
module_expsym_cmds \
13521
export_symbols_cmds \
13522
prelink_cmds \
13523
postinstall_cmds \
13524
postuninstall_cmds \
13525
finish_cmds \
13526
sys_lib_search_path_spec \
13527
sys_lib_dlsearch_path_spec; do
13528
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13529
    *[\\\\\\\`\\"\\\$]*)
13530
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13531
      ;;
13532
    *)
13533
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13534
      ;;
13535
    esac
13536
done
13537
 
13538
# Fix-up fallback echo if it was mangled by the above quoting rules.
13539
case \$lt_ECHO in
13540
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13541
  ;;
13542
esac
13543
 
13544
ac_aux_dir='$ac_aux_dir'
13545
xsi_shell='$xsi_shell'
13546
lt_shell_append='$lt_shell_append'
13547
 
13548
# See if we are running on zsh, and set the options which allow our
13549
# commands through without removal of \ escapes INIT.
13550
if test -n "\${ZSH_VERSION+set}" ; then
13551
   setopt NO_GLOB_SUBST
13552
fi
13553
 
13554
 
13555
    PACKAGE='$PACKAGE'
13556
    VERSION='$VERSION'
13557
    TIMESTAMP='$TIMESTAMP'
13558
    RM='$RM'
13559
    ofile='$ofile'
13560
 
13561
 
13562
 
13563
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13564
 
13565
_ACEOF
13566
 
13567
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13568
 
13569
# Handling of arguments.
13570
for ac_config_target in $ac_config_targets
13571
do
13572
  case $ac_config_target in
13573
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13574
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13575
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13576
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13577
    "acv-gpio/Makefile") CONFIG_FILES="$CONFIG_FILES acv-gpio/Makefile" ;;
13578
    "acv-uart/Makefile") CONFIG_FILES="$CONFIG_FILES acv-uart/Makefile" ;;
13579
    "basic/Makefile") CONFIG_FILES="$CONFIG_FILES basic/Makefile" ;;
13580
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
13581
    "cbasic/Makefile") CONFIG_FILES="$CONFIG_FILES cbasic/Makefile" ;;
13582
    "cfg/Makefile") CONFIG_FILES="$CONFIG_FILES cfg/Makefile" ;;
13583
    "dhry/Makefile") CONFIG_FILES="$CONFIG_FILES dhry/Makefile" ;;
13584
    "dmatest/Makefile") CONFIG_FILES="$CONFIG_FILES dmatest/Makefile" ;;
13585
    "eth/Makefile") CONFIG_FILES="$CONFIG_FILES eth/Makefile" ;;
13586
    "except/Makefile") CONFIG_FILES="$CONFIG_FILES except/Makefile" ;;
13587
    "except-test/Makefile") CONFIG_FILES="$CONFIG_FILES except-test/Makefile" ;;
13588
    "exit/Makefile") CONFIG_FILES="$CONFIG_FILES exit/Makefile" ;;
13589
    "ext/Makefile") CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;;
13590
    "fbtest/Makefile") CONFIG_FILES="$CONFIG_FILES fbtest/Makefile" ;;
13591
    "functest/Makefile") CONFIG_FILES="$CONFIG_FILES functest/Makefile" ;;
13592
    "flag/Makefile") CONFIG_FILES="$CONFIG_FILES flag/Makefile" ;;
13593
    "int-test/Makefile") CONFIG_FILES="$CONFIG_FILES int-test/Makefile" ;;
13594
    "inst-set-test/Makefile") CONFIG_FILES="$CONFIG_FILES inst-set-test/Makefile" ;;
13595
    "kbdtest/Makefile") CONFIG_FILES="$CONFIG_FILES kbdtest/Makefile" ;;
13596
    "local-global/Makefile") CONFIG_FILES="$CONFIG_FILES local-global/Makefile" ;;
13597
    "loop/Makefile") CONFIG_FILES="$CONFIG_FILES loop/Makefile" ;;
13598
    "mc-async/Makefile") CONFIG_FILES="$CONFIG_FILES mc-async/Makefile" ;;
13599
    "mc-dram/Makefile") CONFIG_FILES="$CONFIG_FILES mc-dram/Makefile" ;;
13600
    "mc-ssram/Makefile") CONFIG_FILES="$CONFIG_FILES mc-ssram/Makefile" ;;
13601
    "mc-sync/Makefile") CONFIG_FILES="$CONFIG_FILES mc-sync/Makefile" ;;
13602
    "mc-common/Makefile") CONFIG_FILES="$CONFIG_FILES mc-common/Makefile" ;;
13603
    "mem-test/Makefile") CONFIG_FILES="$CONFIG_FILES mem-test/Makefile" ;;
13604
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
13605
    "mul/Makefile") CONFIG_FILES="$CONFIG_FILES mul/Makefile" ;;
13606
    "mycompress/Makefile") CONFIG_FILES="$CONFIG_FILES mycompress/Makefile" ;;
13607
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
13608
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
13609
    "uos/Makefile") CONFIG_FILES="$CONFIG_FILES uos/Makefile" ;;
13610
 
13611
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13612
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13613
   { (exit 1); exit 1; }; };;
13614
  esac
13615
done
13616
 
13617
 
13618
# If the user did not use the arguments to specify the items to instantiate,
13619
# then the envvar interface is used.  Set only those that are not.
13620
# We use the long form for the default assignment because of an extremely
13621
# bizarre bug on SunOS 4.1.3.
13622
if $ac_need_defaults; then
13623
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13624
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13625
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13626
fi
13627
 
13628
# Have a temporary directory for convenience.  Make it in the build tree
13629
# simply because there is no reason against having it here, and in addition,
13630
# creating and moving files from /tmp can sometimes cause problems.
13631
# Hook for its removal unless debugging.
13632
# Note that there is a small window in which the directory will not be cleaned:
13633
# after its creation but before its name has been assigned to `$tmp'.
13634
$debug ||
13635
{
13636
  tmp=
13637
  trap 'exit_status=$?
13638
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13639
' 0
13640
  trap '{ (exit 1); exit 1; }' 1 2 13 15
13641
}
13642
# Create a (secure) tmp directory for tmp files.
13643
 
13644
{
13645
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13646
  test -n "$tmp" && test -d "$tmp"
13647
}  ||
13648
{
13649
  tmp=./conf$$-$RANDOM
13650
  (umask 077 && mkdir "$tmp")
13651
} ||
13652
{
13653
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
13654
   { (exit 1); exit 1; }
13655
}
13656
 
13657
# Set up the scripts for CONFIG_FILES section.
13658
# No need to generate them if there are no CONFIG_FILES.
13659
# This happens for instance with `./config.status config.h'.
13660
if test -n "$CONFIG_FILES"; then
13661
 
13662
 
13663
ac_cr='
'
13664
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
13665
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13666
  ac_cs_awk_cr='\\r'
13667
else
13668
  ac_cs_awk_cr=$ac_cr
13669
fi
13670
13671
 
13672
_ACEOF
13673
13674
 
13675
 
13676
  echo "cat >conf$$subs.awk <<_ACEOF" &&
13677
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13678
  echo "_ACEOF"
13679
} >conf$$subs.sh ||
13680
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13681
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13682
   { (exit 1); exit 1; }; }
13683
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13684
ac_delim='%!_!# '
13685
for ac_last_try in false false false false false :; do
13686
  . ./conf$$subs.sh ||
13687
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13688
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13689
   { (exit 1); exit 1; }; }
13690
13691
 
13692
  if test $ac_delim_n = $ac_delim_num; then
13693
    break
13694
  elif $ac_last_try; then
13695
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13696
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13697
   { (exit 1); exit 1; }; }
13698
  else
13699
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13700
  fi
13701
done
13702
rm -f conf$$subs.sh
13703
13704
 
13705
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13706
_ACEOF
13707
sed -n '
13708
h
13709
s/^/S["/; s/!.*/"]=/
13710
p
13711
g
13712
s/^[^!]*!//
13713
:repl
13714
t repl
13715
s/'"$ac_delim"'$//
13716
t delim
13717
:nl
13718
h
13719
s/\(.\{148\}\).*/\1/
13720
t more1
13721
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13722
p
13723
n
13724
b repl
13725
:more1
13726
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13727
p
13728
g
13729
s/.\{148\}//
13730
t nl
13731
:delim
13732
h
13733
s/\(.\{148\}\).*/\1/
13734
t more2
13735
s/["\\]/\\&/g; s/^/"/; s/$/"/
13736
p
13737
b
13738
:more2
13739
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13740
p
13741
g
13742
s/.\{148\}//
13743
t delim
13744
' 
13745
/^[^""]/{
13746
  N
13747
  s/\n//
13748
}
13749
' >>$CONFIG_STATUS || ac_write_fail=1
13750
rm -f conf$$subs.awk
13751
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13752
_ACAWK
13753
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13754
  for (key in S) S_is_set[key] = 1
13755
  FS = ""
13756
13757
 
13758
{
13759
  line = $ 0
13760
  nfields = split(line, field, "@")
13761
  substed = 0
13762
  len = length(field[1])
13763
  for (i = 2; i < nfields; i++) {
13764
    key = field[i]
13765
    keylen = length(key)
13766
    if (S_is_set[key]) {
13767
      value = S[key]
13768
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13769
      len += length(value) + length(field[++i])
13770
      substed = 1
13771
    } else
13772
      len += 1 + keylen
13773
  }
13774
13775
 
13776
}
13777
13778
 
13779
_ACEOF
13780
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13781
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13782
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13783
else
13784
  cat
13785
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13786
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13787
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13788
   { (exit 1); exit 1; }; }
13789
_ACEOF
13790
13791
 
13792
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13793
# trailing colons and then remove the whole line if VPATH becomes empty
13794
# (actually we leave an empty line to preserve line numbers).
13795
if test "x$srcdir" = x.; then
13796
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
13797
s/:*\$(srcdir):*/:/
13798
s/:*\${srcdir}:*/:/
13799
s/:*@srcdir@:*/:/
13800
s/^\([^=]*=[     ]*\):*/\1/
13801
s/:*$//
13802
s/^[^=]*=[       ]*$//
13803
}'
13804
fi
13805
13806
 
13807
fi # test -n "$CONFIG_FILES"
13808
13809
 
13810
# No need to generate them if there are no CONFIG_HEADERS.
13811
# This happens for instance with `./config.status Makefile'.
13812
if test -n "$CONFIG_HEADERS"; then
13813
cat >"$tmp/defines.awk" <<\_ACAWK ||
13814
BEGIN {
13815
_ACEOF
13816
13817
 
13818
# here-document in config.status, that substitutes the proper values into
13819
# config.h.in to produce config.h.
13820
13821
 
13822
# handling of long lines.
13823
ac_delim='%!_!# '
13824
for ac_last_try in false false :; do
13825
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13826
  if test -z "$ac_t"; then
13827
    break
13828
  elif $ac_last_try; then
13829
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13830
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13831
   { (exit 1); exit 1; }; }
13832
  else
13833
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13834
  fi
13835
done
13836
13837
 
13838
# likewise P contains macro parameters if any.  Preserve backslash
13839
# newline sequences.
13840
13841
 
13842
sed -n '
13843
s/.\{148\}/&'"$ac_delim"'/g
13844
t rset
13845
:rset
13846
s/^[     ]*#[    ]*define[       ][      ]*/ /
13847
t def
13848
d
13849
:def
13850
s/\\$//
13851
t bsnl
13852
s/["\\]/\\&/g
13853
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13854
D["\1"]=" \3"/p
13855
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13856
d
13857
:bsnl
13858
s/["\\]/\\&/g
13859
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13860
D["\1"]=" \3\\\\\\n"\\/p
13861
t cont
13862
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13863
t cont
13864
d
13865
:cont
13866
n
13867
s/.\{148\}/&'"$ac_delim"'/g
13868
t clear
13869
:clear
13870
s/\\$//
13871
t bsnlc
13872
s/["\\]/\\&/g; s/^/"/; s/$/"/p
13873
d
13874
:bsnlc
13875
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13876
b cont
13877
' 
13878
s/'"$ac_delim"'/"\\\
13879
"/g' >>$CONFIG_STATUS || ac_write_fail=1
13880
13881
 
13882
  for (key in D) D_is_set[key] = 1
13883
  FS = ""
13884
}
13885
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13886
  line = \$ 0
13887
  split(line, arg, " ")
13888
  if (arg[1] == "#") {
13889
    defundef = arg[2]
13890
    mac1 = arg[3]
13891
  } else {
13892
    defundef = substr(arg[1], 2)
13893
    mac1 = arg[2]
13894
  }
13895
  split(mac1, mac2, "(") #)
13896
  macro = mac2[1]
13897
  prefix = substr(line, 1, index(line, defundef) - 1)
13898
  if (D_is_set[macro]) {
13899
    # Preserve the white space surrounding the "#".
13900
    print prefix "define", macro P[macro] D[macro]
13901
    next
13902
  } else {
13903
    # Replace #undef with comments.  This is necessary, for example,
13904
    # in the case of _POSIX_SOURCE, which is predefined and required
13905
    # on some systems where configure will not decide to define it.
13906
    if (defundef == "undef") {
13907
      print "/*", prefix defundef, macro, "*/"
13908
      next
13909
    }
13910
  }
13911
}
13912
{ print }
13913
_ACAWK
13914
_ACEOF
13915
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13916
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13917
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13918
   { (exit 1); exit 1; }; }
13919
fi # test -n "$CONFIG_HEADERS"
13920
13921
 
13922
 
13923
shift
13924
for ac_tag
13925
do
13926
  case $ac_tag in
13927
  :[FHLC]) ac_mode=$ac_tag; continue;;
13928
  esac
13929
  case $ac_mode$ac_tag in
13930
  :[FHL]*:*);;
13931
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13932
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13933
   { (exit 1); exit 1; }; };;
13934
  :[FH]-) ac_tag=-:-;;
13935
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13936
  esac
13937
  ac_save_IFS=$IFS
13938
  IFS=:
13939
  set x $ac_tag
13940
  IFS=$ac_save_IFS
13941
  shift
13942
  ac_file=$1
13943
  shift
13944
13945
 
13946
  :L) ac_source=$1;;
13947
  :[FH])
13948
    ac_file_inputs=
13949
    for ac_f
13950
    do
13951
      case $ac_f in
13952
      -) ac_f="$tmp/stdin";;
13953
      *) # Look for the file first in the build tree, then in the source tree
13954
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
13955
         # because $ac_f cannot contain `:'.
13956
         test -f "$ac_f" ||
13957
           case $ac_f in
13958
           [\\/$]*) false;;
13959
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13960
           esac ||
13961
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13962
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13963
   { (exit 1); exit 1; }; };;
13964
      esac
13965
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13966
      ac_file_inputs="$ac_file_inputs '$ac_f'"
13967
    done
13968
13969
 
13970
    # use $as_me), people would be surprised to read:
13971
    #    /* config.h.  Generated by config.status.  */
13972
    configure_input='Generated from '`
13973
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13974
        `' by configure.'
13975
    if test x"$ac_file" != x-; then
13976
      configure_input="$ac_file.  $configure_input"
13977
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13978
$as_echo "$as_me: creating $ac_file" >&6;}
13979
    fi
13980
    # Neutralize special characters interpreted by sed in replacement strings.
13981
    case $configure_input in #(
13982
    *\&* | *\|* | *\\* )
13983
       ac_sed_conf_input=`$as_echo "$configure_input" |
13984
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13985
    *) ac_sed_conf_input=$configure_input;;
13986
    esac
13987
13988
 
13989
    *:-:* | *:-) cat >"$tmp/stdin" \
13990
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13991
$as_echo "$as_me: error: could not create $ac_file" >&2;}
13992
   { (exit 1); exit 1; }; } ;;
13993
    esac
13994
    ;;
13995
  esac
13996
13997
 
13998
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13999
         X"$ac_file" : 'X\(//\)[^/]' \| \
14000
         X"$ac_file" : 'X\(//\)$' \| \
14001
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14002
$as_echo X"$ac_file" |
14003
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14004
            s//\1/
14005
            q
14006
          }
14007
          /^X\(\/\/\)[^/].*/{
14008
            s//\1/
14009
            q
14010
          }
14011
          /^X\(\/\/\)$/{
14012
            s//\1/
14013
            q
14014
          }
14015
          /^X\(\/\).*/{
14016
            s//\1/
14017
            q
14018
          }
14019
          s/.*/./; q'`
14020
  { as_dir="$ac_dir"
14021
  case $as_dir in #(
14022
  -*) as_dir=./$as_dir;;
14023
  esac
14024
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14025
    as_dirs=
14026
    while :; do
14027
      case $as_dir in #(
14028
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14029
      *) as_qdir=$as_dir;;
14030
      esac
14031
      as_dirs="'$as_qdir' $as_dirs"
14032
      as_dir=`$as_dirname -- "$as_dir" ||
14033
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14034
         X"$as_dir" : 'X\(//\)[^/]' \| \
14035
         X"$as_dir" : 'X\(//\)$' \| \
14036
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14037
$as_echo X"$as_dir" |
14038
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14039
            s//\1/
14040
            q
14041
          }
14042
          /^X\(\/\/\)[^/].*/{
14043
            s//\1/
14044
            q
14045
          }
14046
          /^X\(\/\/\)$/{
14047
            s//\1/
14048
            q
14049
          }
14050
          /^X\(\/\).*/{
14051
            s//\1/
14052
            q
14053
          }
14054
          s/.*/./; q'`
14055
      test -d "$as_dir" && break
14056
    done
14057
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14058
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14059
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14060
   { (exit 1); exit 1; }; }; }
14061
  ac_builddir=.
14062
14063
 
14064
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14065
*)
14066
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14067
  # A ".." for each directory in $ac_dir_suffix.
14068
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14069
  case $ac_top_builddir_sub in
14070
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14071
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14072
  esac ;;
14073
esac
14074
ac_abs_top_builddir=$ac_pwd
14075
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14076
# for backward compatibility:
14077
ac_top_builddir=$ac_top_build_prefix
14078
14079
 
14080
  .)  # We are building in place.
14081
    ac_srcdir=.
14082
    ac_top_srcdir=$ac_top_builddir_sub
14083
    ac_abs_top_srcdir=$ac_pwd ;;
14084
  [\\/]* | ?:[\\/]* )  # Absolute name.
14085
    ac_srcdir=$srcdir$ac_dir_suffix;
14086
    ac_top_srcdir=$srcdir
14087
    ac_abs_top_srcdir=$srcdir ;;
14088
  *) # Relative name.
14089
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14090
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14091
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14092
esac
14093
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14094
14095
 
14096
 
14097
  :F)
14098
  #
14099
  # CONFIG_FILE
14100
  #
14101
14102
 
14103
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14104
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14105
  esac
14106
  ac_MKDIR_P=$MKDIR_P
14107
  case $MKDIR_P in
14108
  [\\/$]* | ?:[\\/]* ) ;;
14109
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14110
  esac
14111
_ACEOF
14112
14113
 
14114
# If the template does not know about datarootdir, expand it.
14115
# FIXME: This hack should be removed a few years after 2.60.
14116
ac_datarootdir_hack=; ac_datarootdir_seen=
14117
14118
 
14119
/datarootdir/ {
14120
  p
14121
  q
14122
}
14123
/@datadir@/p
14124
/@docdir@/p
14125
/@infodir@/p
14126
/@localedir@/p
14127
/@mandir@/p
14128
'
14129
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14130
*datarootdir*) ac_datarootdir_seen=yes;;
14131
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14132
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14133
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14134
_ACEOF
14135
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14136
  ac_datarootdir_hack='
14137
  s&@datadir@&$datadir&g
14138
  s&@docdir@&$docdir&g
14139
  s&@infodir@&$infodir&g
14140
  s&@localedir@&$localedir&g
14141
  s&@mandir@&$mandir&g
14142
    s&\\\${datarootdir}&$datarootdir&g' ;;
14143
esac
14144
_ACEOF
14145
14146
 
14147
# Shell code in configure.ac might set extrasub.
14148
# FIXME: do we really want to maintain this feature?
14149
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14150
ac_sed_extra="$ac_vpsub
14151
$extrasub
14152
_ACEOF
14153
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14154
:t
14155
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14156
s|@configure_input@|$ac_sed_conf_input|;t t
14157
s&@top_builddir@&$ac_top_builddir_sub&;t t
14158
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14159
s&@srcdir@&$ac_srcdir&;t t
14160
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14161
s&@top_srcdir@&$ac_top_srcdir&;t t
14162
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14163
s&@builddir@&$ac_builddir&;t t
14164
s&@abs_builddir@&$ac_abs_builddir&;t t
14165
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14166
s&@INSTALL@&$ac_INSTALL&;t t
14167
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14168
$ac_datarootdir_hack
14169
"
14170
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14171
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14172
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14173
   { (exit 1); exit 1; }; }
14174
14175
 
14176
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14177
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14178
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14179
which seems to be undefined.  Please make sure it is defined." >&5
14180
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14181
which seems to be undefined.  Please make sure it is defined." >&2;}
14182
14183
 
14184
  case $ac_file in
14185
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14186
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14187
  esac \
14188
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14189
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14190
   { (exit 1); exit 1; }; }
14191
 ;;
14192
  :H)
14193
  #
14194
  # CONFIG_HEADER
14195
  #
14196
  if test x"$ac_file" != x-; then
14197
    {
14198
      $as_echo "/* $configure_input  */" \
14199
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14200
    } >"$tmp/config.h" \
14201
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14202
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14203
   { (exit 1); exit 1; }; }
14204
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14205
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14206
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14207
    else
14208
      rm -f "$ac_file"
14209
      mv "$tmp/config.h" "$ac_file" \
14210
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14211
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14212
   { (exit 1); exit 1; }; }
14213
    fi
14214
  else
14215
    $as_echo "/* $configure_input  */" \
14216
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14217
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14218
$as_echo "$as_me: error: could not create -" >&2;}
14219
   { (exit 1); exit 1; }; }
14220
  fi
14221
# Compute "$ac_file"'s index in $config_headers.
14222
_am_arg="$ac_file"
14223
_am_stamp_count=1
14224
for _am_header in $config_headers :; do
14225
  case $_am_header in
14226
    $_am_arg | $_am_arg:* )
14227
      break ;;
14228
    * )
14229
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14230
  esac
14231
done
14232
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14233
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14234
         X"$_am_arg" : 'X\(//\)[^/]' \| \
14235
         X"$_am_arg" : 'X\(//\)$' \| \
14236
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14237
$as_echo X"$_am_arg" |
14238
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14239
            s//\1/
14240
            q
14241
          }
14242
          /^X\(\/\/\)[^/].*/{
14243
            s//\1/
14244
            q
14245
          }
14246
          /^X\(\/\/\)$/{
14247
            s//\1/
14248
            q
14249
          }
14250
          /^X\(\/\).*/{
14251
            s//\1/
14252
            q
14253
          }
14254
          s/.*/./; q'`/stamp-h$_am_stamp_count
14255
 ;;
14256
14257
 
14258
$as_echo "$as_me: executing $ac_file commands" >&6;}
14259
 ;;
14260
  esac
14261
14262
 
14263
 
14264
    "libtool":C)
14265
14266
 
14267
    # commands through without removal of \ escapes.
14268
    if test -n "${ZSH_VERSION+set}" ; then
14269
      setopt NO_GLOB_SUBST
14270
    fi
14271
14272
 
14273
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14274
    $RM "$cfgfile"
14275
14276
 
14277
#! $SHELL
14278
14279
 
14280
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14281
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14282
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14283
#
14284
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14285
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14286
#   Written by Gordon Matzigkeit, 1996
14287
#
14288
#   This file is part of GNU Libtool.
14289
#
14290
# GNU Libtool is free software; you can redistribute it and/or
14291
# modify it under the terms of the GNU General Public License as
14292
# published by the Free Software Foundation; either version 2 of
14293
# the License, or (at your option) any later version.
14294
#
14295
# As a special exception to the GNU General Public License,
14296
# if you distribute this file as part of a program or library that
14297
# is built using GNU Libtool, you may include this file under the
14298
# same distribution terms that you use for the rest of that program.
14299
#
14300
# GNU Libtool is distributed in the hope that it will be useful,
14301
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14302
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14303
# GNU General Public License for more details.
14304
#
14305
# You should have received a copy of the GNU General Public License
14306
# along with GNU Libtool; see the file COPYING.  If not, a copy
14307
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14308
# obtained by writing to the Free Software Foundation, Inc.,
14309
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14310
14311
 
14312
 
14313
available_tags=""
14314
14315
 
14316
14317
 
14318
macro_version=$macro_version
14319
macro_revision=$macro_revision
14320
14321
 
14322
build_libtool_libs=$enable_shared
14323
14324
 
14325
build_old_libs=$enable_static
14326
14327
 
14328
pic_mode=$pic_mode
14329
14330
 
14331
fast_install=$enable_fast_install
14332
14333
 
14334
host_alias=$host_alias
14335
host=$host
14336
host_os=$host_os
14337
14338
 
14339
build_alias=$build_alias
14340
build=$build
14341
build_os=$build_os
14342
14343
 
14344
SED=$lt_SED
14345
14346
 
14347
Xsed="\$SED -e 1s/^X//"
14348
14349
 
14350
GREP=$lt_GREP
14351
14352
 
14353
EGREP=$lt_EGREP
14354
14355
 
14356
FGREP=$lt_FGREP
14357
14358
 
14359
NM=$lt_NM
14360
14361
 
14362
LN_S=$lt_LN_S
14363
14364
 
14365
max_cmd_len=$max_cmd_len
14366
14367
 
14368
objext=$ac_objext
14369
14370
 
14371
exeext=$exeext
14372
14373
 
14374
lt_unset=$lt_unset
14375
14376
 
14377
SP2NL=$lt_lt_SP2NL
14378
14379
 
14380
NL2SP=$lt_lt_NL2SP
14381
14382
 
14383
reload_flag=$lt_reload_flag
14384
reload_cmds=$lt_reload_cmds
14385
14386
 
14387
OBJDUMP=$lt_OBJDUMP
14388
14389
 
14390
deplibs_check_method=$lt_deplibs_check_method
14391
14392
 
14393
file_magic_cmd=$lt_file_magic_cmd
14394
14395
 
14396
AR=$lt_AR
14397
AR_FLAGS=$lt_AR_FLAGS
14398
14399
 
14400
STRIP=$lt_STRIP
14401
14402
 
14403
RANLIB=$lt_RANLIB
14404
old_postinstall_cmds=$lt_old_postinstall_cmds
14405
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14406
14407
 
14408
LTCC=$lt_CC
14409
14410
 
14411
LTCFLAGS=$lt_CFLAGS
14412
14413
 
14414
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14415
14416
 
14417
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14418
14419
 
14420
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14421
14422
 
14423
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14424
14425
 
14426
objdir=$objdir
14427
14428
 
14429
SHELL=$lt_SHELL
14430
14431
 
14432
ECHO=$lt_ECHO
14433
14434
 
14435
MAGIC_CMD=$MAGIC_CMD
14436
14437
 
14438
need_locks=$lt_need_locks
14439
14440
 
14441
DSYMUTIL=$lt_DSYMUTIL
14442
14443
 
14444
NMEDIT=$lt_NMEDIT
14445
14446
 
14447
LIPO=$lt_LIPO
14448
14449
 
14450
OTOOL=$lt_OTOOL
14451
14452
 
14453
OTOOL64=$lt_OTOOL64
14454
14455
 
14456
libext=$libext
14457
14458
 
14459
shrext_cmds=$lt_shrext_cmds
14460
14461
 
14462
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14463
14464
 
14465
# restored at link time.
14466
variables_saved_for_relink=$lt_variables_saved_for_relink
14467
14468
 
14469
need_lib_prefix=$need_lib_prefix
14470
14471
 
14472
need_version=$need_version
14473
14474
 
14475
version_type=$version_type
14476
14477
 
14478
runpath_var=$runpath_var
14479
14480
 
14481
shlibpath_var=$shlibpath_var
14482
14483
 
14484
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14485
14486
 
14487
libname_spec=$lt_libname_spec
14488
14489
 
14490
# The last name is the one that the linker finds with -lNAME
14491
library_names_spec=$lt_library_names_spec
14492
14493
 
14494
soname_spec=$lt_soname_spec
14495
14496
 
14497
postinstall_cmds=$lt_postinstall_cmds
14498
14499
 
14500
postuninstall_cmds=$lt_postuninstall_cmds
14501
14502
 
14503
finish_cmds=$lt_finish_cmds
14504
14505
 
14506
# not shown.
14507
finish_eval=$lt_finish_eval
14508
14509
 
14510
hardcode_into_libs=$hardcode_into_libs
14511
14512
 
14513
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14514
14515
 
14516
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14517
14518
 
14519
dlopen_support=$enable_dlopen
14520
14521
 
14522
dlopen_self=$enable_dlopen_self
14523
14524
 
14525
dlopen_self_static=$enable_dlopen_self_static
14526
14527
 
14528
old_striplib=$lt_old_striplib
14529
striplib=$lt_striplib
14530
14531
 
14532
 
14533
LD=$lt_LD
14534
14535
 
14536
old_archive_cmds=$lt_old_archive_cmds
14537
14538
 
14539
CC=$lt_compiler
14540
14541
 
14542
with_gcc=$GCC
14543
14544
 
14545
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14546
14547
 
14548
wl=$lt_lt_prog_compiler_wl
14549
14550
 
14551
pic_flag=$lt_lt_prog_compiler_pic
14552
14553
 
14554
link_static_flag=$lt_lt_prog_compiler_static
14555
14556
 
14557
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14558
14559
 
14560
build_libtool_need_lc=$archive_cmds_need_lc
14561
14562
 
14563
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14564
14565
 
14566
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14567
14568
 
14569
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14570
14571
 
14572
compiler_needs_object=$lt_compiler_needs_object
14573
14574
 
14575
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14576
14577
 
14578
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14579
14580
 
14581
archive_cmds=$lt_archive_cmds
14582
archive_expsym_cmds=$lt_archive_expsym_cmds
14583
14584
 
14585
# a shared archive.
14586
module_cmds=$lt_module_cmds
14587
module_expsym_cmds=$lt_module_expsym_cmds
14588
14589
 
14590
with_gnu_ld=$lt_with_gnu_ld
14591
14592
 
14593
allow_undefined_flag=$lt_allow_undefined_flag
14594
14595
 
14596
no_undefined_flag=$lt_no_undefined_flag
14597
14598
 
14599
# This must work even if \$libdir does not exist
14600
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14601
14602
 
14603
# during linking.  This must work even if \$libdir does not exist.
14604
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14605
14606
 
14607
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14608
14609
 
14610
# DIR into the resulting binary.
14611
hardcode_direct=$hardcode_direct
14612
14613
 
14614
# DIR into the resulting binary and the resulting library dependency is
14615
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14616
# library is relocated.
14617
hardcode_direct_absolute=$hardcode_direct_absolute
14618
14619
 
14620
# into the resulting binary.
14621
hardcode_minus_L=$hardcode_minus_L
14622
14623
 
14624
# into the resulting binary.
14625
hardcode_shlibpath_var=$hardcode_shlibpath_var
14626
14627
 
14628
# into the library and all subsequent libraries and executables linked
14629
# against it.
14630
hardcode_automatic=$hardcode_automatic
14631
14632
 
14633
# to runtime path list.
14634
inherit_rpath=$inherit_rpath
14635
14636
 
14637
link_all_deplibs=$link_all_deplibs
14638
14639
 
14640
fix_srcfile_path=$lt_fix_srcfile_path
14641
14642
 
14643
always_export_symbols=$always_export_symbols
14644
14645
 
14646
export_symbols_cmds=$lt_export_symbols_cmds
14647
14648
 
14649
exclude_expsyms=$lt_exclude_expsyms
14650
14651
 
14652
include_expsyms=$lt_include_expsyms
14653
14654
 
14655
prelink_cmds=$lt_prelink_cmds
14656
14657
 
14658
file_list_spec=$lt_file_list_spec
14659
14660
 
14661
hardcode_action=$hardcode_action
14662
14663
 
14664
14665
 
14666
14667
 
14668
  aix3*)
14669
    cat <<\_LT_EOF >> "$cfgfile"
14670
# AIX sometimes has problems with the GCC collect2 program.  For some
14671
# reason, if we set the COLLECT_NAMES environment variable, the problems
14672
# vanish in a puff of smoke.
14673
if test "X${COLLECT_NAMES+set}" != Xset; then
14674
  COLLECT_NAMES=
14675
  export COLLECT_NAMES
14676
fi
14677
_LT_EOF
14678
    ;;
14679
  esac
14680
14681
 
14682
 
14683
14684
 
14685
 
14686
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14687
  # text mode, it properly converts lines to CR/LF.  This bash problem
14688
  # is reportedly fixed, but why not run on old versions too?
14689
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14690
    || (rm -f "$cfgfile"; exit 1)
14691
14692
 
14693
  yes)
14694
    cat << \_LT_EOF >> "$cfgfile"
14695
14696
 
14697
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14698
# otherwise set result to NONDIR_REPLACEMENT.
14699
func_dirname ()
14700
{
14701
  case ${1} in
14702
    */*) func_dirname_result="${1%/*}${2}" ;;
14703
    *  ) func_dirname_result="${3}" ;;
14704
  esac
14705
}
14706
14707
 
14708
func_basename ()
14709
{
14710
  func_basename_result="${1##*/}"
14711
}
14712
14713
 
14714
# perform func_basename and func_dirname in a single function
14715
# call:
14716
#   dirname:  Compute the dirname of FILE.  If nonempty,
14717
#             add APPEND to the result, otherwise set result
14718
#             to NONDIR_REPLACEMENT.
14719
#             value returned in "$func_dirname_result"
14720
#   basename: Compute filename of FILE.
14721
#             value retuned in "$func_basename_result"
14722
# Implementation must be kept synchronized with func_dirname
14723
# and func_basename. For efficiency, we do not delegate to
14724
# those functions but instead duplicate the functionality here.
14725
func_dirname_and_basename ()
14726
{
14727
  case ${1} in
14728
    */*) func_dirname_result="${1%/*}${2}" ;;
14729
    *  ) func_dirname_result="${3}" ;;
14730
  esac
14731
  func_basename_result="${1##*/}"
14732
}
14733
14734
 
14735
# strip PREFIX and SUFFIX off of NAME.
14736
# PREFIX and SUFFIX must not contain globbing or regex special
14737
# characters, hashes, percent signs, but SUFFIX may contain a leading
14738
# dot (in which case that matches only a dot).
14739
func_stripname ()
14740
{
14741
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14742
  # positional parameters, so assign one to ordinary parameter first.
14743
  func_stripname_result=${3}
14744
  func_stripname_result=${func_stripname_result#"${1}"}
14745
  func_stripname_result=${func_stripname_result%"${2}"}
14746
}
14747
14748
 
14749
func_opt_split ()
14750
{
14751
  func_opt_split_opt=${1%%=*}
14752
  func_opt_split_arg=${1#*=}
14753
}
14754
14755
 
14756
func_lo2o ()
14757
{
14758
  case ${1} in
14759
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14760
    *)    func_lo2o_result=${1} ;;
14761
  esac
14762
}
14763
14764
 
14765
func_xform ()
14766
{
14767
  func_xform_result=${1%.*}.lo
14768
}
14769
14770
 
14771
func_arith ()
14772
{
14773
  func_arith_result=$(( $* ))
14774
}
14775
14776
 
14777
# STRING may not start with a hyphen.
14778
func_len ()
14779
{
14780
  func_len_result=${#1}
14781
}
14782
14783
 
14784
    ;;
14785
  *) # Bourne compatible functions.
14786
    cat << \_LT_EOF >> "$cfgfile"
14787
14788
 
14789
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14790
# otherwise set result to NONDIR_REPLACEMENT.
14791
func_dirname ()
14792
{
14793
  # Extract subdirectory from the argument.
14794
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14795
  if test "X$func_dirname_result" = "X${1}"; then
14796
    func_dirname_result="${3}"
14797
  else
14798
    func_dirname_result="$func_dirname_result${2}"
14799
  fi
14800
}
14801
14802
 
14803
func_basename ()
14804
{
14805
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14806
}
14807
14808
 
14809
 
14810
# strip PREFIX and SUFFIX off of NAME.
14811
# PREFIX and SUFFIX must not contain globbing or regex special
14812
# characters, hashes, percent signs, but SUFFIX may contain a leading
14813
# dot (in which case that matches only a dot).
14814
# func_strip_suffix prefix name
14815
func_stripname ()
14816
{
14817
  case ${2} in
14818
    .*) func_stripname_result=`$ECHO "X${3}" \
14819
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14820
    *)  func_stripname_result=`$ECHO "X${3}" \
14821
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14822
  esac
14823
}
14824
14825
 
14826
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14827
my_sed_long_arg='1s/^-[^=]*=//'
14828
14829
 
14830
func_opt_split ()
14831
{
14832
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14833
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14834
}
14835
14836
 
14837
func_lo2o ()
14838
{
14839
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14840
}
14841
14842
 
14843
func_xform ()
14844
{
14845
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14846
}
14847
14848
 
14849
func_arith ()
14850
{
14851
  func_arith_result=`expr "$@"`
14852
}
14853
14854
 
14855
# STRING may not start with a hyphen.
14856
func_len ()
14857
{
14858
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14859
}
14860
14861
 
14862
esac
14863
14864
 
14865
  yes)
14866
    cat << \_LT_EOF >> "$cfgfile"
14867
14868
 
14869
# Append VALUE to the end of shell variable VAR.
14870
func_append ()
14871
{
14872
  eval "$1+=\$2"
14873
}
14874
_LT_EOF
14875
    ;;
14876
  *)
14877
    cat << \_LT_EOF >> "$cfgfile"
14878
14879
 
14880
# Append VALUE to the end of shell variable VAR.
14881
func_append ()
14882
{
14883
  eval "$1=\$$1\$2"
14884
}
14885
14886
 
14887
    ;;
14888
  esac
14889
14890
 
14891
 
14892
    || (rm -f "$cfgfile"; exit 1)
14893
14894
 
14895
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14896
  chmod +x "$ofile"
14897
14898
 
14899
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14900
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14901
  # are listed without --file.  Let's play safe and only enable the eval
14902
  # if we detect the quoting.
14903
  case $CONFIG_FILES in
14904
  *\'*) eval set x "$CONFIG_FILES" ;;
14905
  *)   set x $CONFIG_FILES ;;
14906
  esac
14907
  shift
14908
  for mf
14909
  do
14910
    # Strip MF so we end up with the name of the file.
14911
    mf=`echo "$mf" | sed -e 's/:.*$//'`
14912
    # Check whether this is an Automake generated Makefile or not.
14913
    # We used to match only the files named `Makefile.in', but
14914
    # some people rename them; so instead we look at the file content.
14915
    # Grep'ing the first line is not enough: some people post-process
14916
    # each Makefile.in and add a new line on top of each file to say so.
14917
    # Grep'ing the whole file is not good either: AIX grep has a line
14918
    # limit of 2048, but all sed's we know have understand at least 4000.
14919
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14920
      dirpart=`$as_dirname -- "$mf" ||
14921
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14922
         X"$mf" : 'X\(//\)[^/]' \| \
14923
         X"$mf" : 'X\(//\)$' \| \
14924
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14925
$as_echo X"$mf" |
14926
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14927
            s//\1/
14928
            q
14929
          }
14930
          /^X\(\/\/\)[^/].*/{
14931
            s//\1/
14932
            q
14933
          }
14934
          /^X\(\/\/\)$/{
14935
            s//\1/
14936
            q
14937
          }
14938
          /^X\(\/\).*/{
14939
            s//\1/
14940
            q
14941
          }
14942
          s/.*/./; q'`
14943
    else
14944
      continue
14945
    fi
14946
    # Extract the definition of DEPDIR, am__include, and am__quote
14947
    # from the Makefile without running `make'.
14948
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14949
    test -z "$DEPDIR" && continue
14950
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14951
    test -z "am__include" && continue
14952
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14953
    # When using ansi2knr, U may be empty or an underscore; expand it
14954
    U=`sed -n 's/^U = //p' < "$mf"`
14955
    # Find all dependency output files, they are included files with
14956
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14957
    # simplest approach to changing $(DEPDIR) to its actual value in the
14958
    # expansion.
14959
    for file in `sed -n "
14960
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14961
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14962
      # Make sure the directory exists.
14963
      test -f "$dirpart/$file" && continue
14964
      fdir=`$as_dirname -- "$file" ||
14965
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14966
         X"$file" : 'X\(//\)[^/]' \| \
14967
         X"$file" : 'X\(//\)$' \| \
14968
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14969
$as_echo X"$file" |
14970
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14971
            s//\1/
14972
            q
14973
          }
14974
          /^X\(\/\/\)[^/].*/{
14975
            s//\1/
14976
            q
14977
          }
14978
          /^X\(\/\/\)$/{
14979
            s//\1/
14980
            q
14981
          }
14982
          /^X\(\/\).*/{
14983
            s//\1/
14984
            q
14985
          }
14986
          s/.*/./; q'`
14987
      { as_dir=$dirpart/$fdir
14988
  case $as_dir in #(
14989
  -*) as_dir=./$as_dir;;
14990
  esac
14991
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14992
    as_dirs=
14993
    while :; do
14994
      case $as_dir in #(
14995
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14996
      *) as_qdir=$as_dir;;
14997
      esac
14998
      as_dirs="'$as_qdir' $as_dirs"
14999
      as_dir=`$as_dirname -- "$as_dir" ||
15000
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15001
         X"$as_dir" : 'X\(//\)[^/]' \| \
15002
         X"$as_dir" : 'X\(//\)$' \| \
15003
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15004
$as_echo X"$as_dir" |
15005
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15006
            s//\1/
15007
            q
15008
          }
15009
          /^X\(\/\/\)[^/].*/{
15010
            s//\1/
15011
            q
15012
          }
15013
          /^X\(\/\/\)$/{
15014
            s//\1/
15015
            q
15016
          }
15017
          /^X\(\/\).*/{
15018
            s//\1/
15019
            q
15020
          }
15021
          s/.*/./; q'`
15022
      test -d "$as_dir" && break
15023
    done
15024
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15025
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15026
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15027
   { (exit 1); exit 1; }; }; }
15028
      # echo "creating $dirpart/$file"
15029
      echo '# dummy' > "$dirpart/$file"
15030
    done
15031
  done
15032
}
15033
 ;;
15034
15035
 
15036
done # for ac_tag
15037
15038
 
15039
 
15040
_ACEOF
15041
chmod +x $CONFIG_STATUS
15042
ac_clean_files=$ac_clean_files_save
15043
15044
 
15045
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15046
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15047
   { (exit 1); exit 1; }; }
15048
15049
 
15050
 
15051
# config.status does its own redirection, appending to config.log.
15052
# Unfortunately, on DOS this fails, as config.log is still kept open
15053
# by configure, so config.status won't be able to write to it; its
15054
# output is simply discarded.  So we exec the FD to /dev/null,
15055
# effectively closing config.log, so it can be properly (re)opened and
15056
# appended to by config.status.  When coming back to configure, we
15057
# need to make the FD available again.
15058
if test "$no_create" != yes; then
15059
  ac_cs_success=:
15060
  ac_config_status_args=
15061
  test "$silent" = yes &&
15062
    ac_config_status_args="$ac_config_status_args --quiet"
15063
  exec 5>/dev/null
15064
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15065
  exec 5>>config.log
15066
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15067
  # would make configure fail if this is the last instruction.
15068
  $ac_cs_success || { (exit 1); exit 1; }
15069
fi
15070
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15071
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15072
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15073
fi
15074
15075
 

powered by: WebSVN 2.1.0

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