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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [machine/] [configure] - Blame information for rev 207

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63 for newlib 1.18.0.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization.  ##
11
## --------------------- ##
12
 
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
  emulate sh
17
  NULLCMD=:
18
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19
  # is contrary to our usage.  Disable this feature.
20
  alias -g '${1+"$@"}'='"$@"'
21
  setopt NO_GLOB_SUBST
22
else
23
  case `(set -o) 2>/dev/null` in
24
  *posix*) set -o posix ;;
25
esac
26
 
27
fi
28
 
29
 
30
 
31
 
32
# PATH needs CR
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
39
 
40
as_nl='
41
'
42
export as_nl
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in
59
      *"$as_nl"*)
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81
# Support unset when possible.
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83
  as_unset=unset
84
else
85
  as_unset=false
86
fi
87
 
88
 
89
# IFS
90
# We need space, tab and new line, in precisely that order.  Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
94
IFS=" ""        $as_nl"
95
 
96
# Find who we are.  Look in the path if we contain no directory separator.
97
case $0 in
98
  *[\\/]* ) as_myself=$0 ;;
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
for as_dir in $PATH
101
do
102
  IFS=$as_save_IFS
103
  test -z "$as_dir" && as_dir=.
104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
done
106
IFS=$as_save_IFS
107
 
108
     ;;
109
esac
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
113
  as_myself=$0
114
fi
115
if test ! -f "$as_myself"; then
116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
  { (exit 1); exit 1; }
118
fi
119
 
120
# Work around bugs in pre-3.0 UWIN ksh.
121
for as_var in ENV MAIL MAILPATH
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
 
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133
 
134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137
  as_expr=expr
138
else
139
  as_expr=false
140
fi
141
 
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143
  as_basename=basename
144
else
145
  as_basename=false
146
fi
147
 
148
 
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
         X"$0" : 'X\(//\)$' \| \
153
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154
$as_echo X/"$0" |
155
    sed '/^.*\/\([^/][^/]*\)\/*$/{
156
            s//\1/
157
            q
158
          }
159
          /^X\/\(\/\/\)$/{
160
            s//\1/
161
            q
162
          }
163
          /^X\/\(\/\).*/{
164
            s//\1/
165
            q
166
          }
167
          s/.*/./; q'`
168
 
169
# CDPATH.
170
$as_unset CDPATH
171
 
172
 
173
if test "x$CONFIG_SHELL" = x; then
174
  if (eval ":") 2>/dev/null; then
175
  as_have_required=yes
176
else
177
  as_have_required=no
178
fi
179
 
180
  if test $as_have_required = yes &&     (eval ":
181
(as_func_return () {
182
  (exit \$1)
183
}
184
as_func_success () {
185
  as_func_return 0
186
}
187
as_func_failure () {
188
  as_func_return 1
189
}
190
as_func_ret_success () {
191
  return 0
192
}
193
as_func_ret_failure () {
194
  return 1
195
}
196
 
197
exitcode=0
198
if as_func_success; then
199
  :
200
else
201
  exitcode=1
202
  echo as_func_success failed.
203
fi
204
 
205
if as_func_failure; then
206
  exitcode=1
207
  echo as_func_failure succeeded.
208
fi
209
 
210
if as_func_ret_success; then
211
  :
212
else
213
  exitcode=1
214
  echo as_func_ret_success failed.
215
fi
216
 
217
if as_func_ret_failure; then
218
  exitcode=1
219
  echo as_func_ret_failure succeeded.
220
fi
221
 
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223
  :
224
else
225
  exitcode=1
226
  echo positional parameters were not saved.
227
fi
228
 
229
test \$exitcode = 0) || { (exit 1); exit 1; }
230
 
231
(
232
  as_lineno_1=\$LINENO
233
  as_lineno_2=\$LINENO
234
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
237
  :
238
else
239
  as_candidate_shells=
240
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242
do
243
  IFS=$as_save_IFS
244
  test -z "$as_dir" && as_dir=.
245
  case $as_dir in
246
         /*)
247
           for as_base in sh bash ksh sh5; do
248
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249
           done;;
250
       esac
251
done
252
IFS=$as_save_IFS
253
 
254
 
255
      for as_shell in $as_candidate_shells $SHELL; do
256
         # Try only shells that exist, to save several forks.
257
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
                { ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
  emulate sh
261
  NULLCMD=:
262
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
  # is contrary to our usage.  Disable this feature.
264
  alias -g '${1+"$@"}'='"$@"'
265
  setopt NO_GLOB_SUBST
266
else
267
  case `(set -o) 2>/dev/null` in
268
  *posix*) set -o posix ;;
269
esac
270
 
271
fi
272
 
273
 
274
:
275
_ASEOF
276
}; then
277
  CONFIG_SHELL=$as_shell
278
               as_have_required=yes
279
               if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281
  emulate sh
282
  NULLCMD=:
283
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
  # is contrary to our usage.  Disable this feature.
285
  alias -g '${1+"$@"}'='"$@"'
286
  setopt NO_GLOB_SUBST
287
else
288
  case `(set -o) 2>/dev/null` in
289
  *posix*) set -o posix ;;
290
esac
291
 
292
fi
293
 
294
 
295
:
296
(as_func_return () {
297
  (exit $1)
298
}
299
as_func_success () {
300
  as_func_return 0
301
}
302
as_func_failure () {
303
  as_func_return 1
304
}
305
as_func_ret_success () {
306
  return 0
307
}
308
as_func_ret_failure () {
309
  return 1
310
}
311
 
312
exitcode=0
313
if as_func_success; then
314
  :
315
else
316
  exitcode=1
317
  echo as_func_success failed.
318
fi
319
 
320
if as_func_failure; then
321
  exitcode=1
322
  echo as_func_failure succeeded.
323
fi
324
 
325
if as_func_ret_success; then
326
  :
327
else
328
  exitcode=1
329
  echo as_func_ret_success failed.
330
fi
331
 
332
if as_func_ret_failure; then
333
  exitcode=1
334
  echo as_func_ret_failure succeeded.
335
fi
336
 
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
338
  :
339
else
340
  exitcode=1
341
  echo positional parameters were not saved.
342
fi
343
 
344
test $exitcode = 0) || { (exit 1); exit 1; }
345
 
346
(
347
  as_lineno_1=$LINENO
348
  as_lineno_2=$LINENO
349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
350
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
 
352
_ASEOF
353
}; then
354
  break
355
fi
356
 
357
fi
358
 
359
      done
360
 
361
      if test "x$CONFIG_SHELL" != x; then
362
  for as_var in BASH_ENV ENV
363
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364
        done
365
        export CONFIG_SHELL
366
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367
fi
368
 
369
 
370
    if test $as_have_required = no; then
371
  echo This script requires a shell more modern than all the
372
      echo shells that I found on your system.  Please install a
373
      echo modern shell, or manually run the script under such a
374
      echo shell if you do have one.
375
      { (exit 1); exit 1; }
376
fi
377
 
378
 
379
fi
380
 
381
fi
382
 
383
 
384
 
385
(eval "as_func_return () {
386
  (exit \$1)
387
}
388
as_func_success () {
389
  as_func_return 0
390
}
391
as_func_failure () {
392
  as_func_return 1
393
}
394
as_func_ret_success () {
395
  return 0
396
}
397
as_func_ret_failure () {
398
  return 1
399
}
400
 
401
exitcode=0
402
if as_func_success; then
403
  :
404
else
405
  exitcode=1
406
  echo as_func_success failed.
407
fi
408
 
409
if as_func_failure; then
410
  exitcode=1
411
  echo as_func_failure succeeded.
412
fi
413
 
414
if as_func_ret_success; then
415
  :
416
else
417
  exitcode=1
418
  echo as_func_ret_success failed.
419
fi
420
 
421
if as_func_ret_failure; then
422
  exitcode=1
423
  echo as_func_ret_failure succeeded.
424
fi
425
 
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427
  :
428
else
429
  exitcode=1
430
  echo positional parameters were not saved.
431
fi
432
 
433
test \$exitcode = 0") || {
434
  echo No shell found that supports shell functions.
435
  echo Please tell bug-autoconf@gnu.org about your system,
436
  echo including any error possibly output before this message.
437
  echo This can help us improve future autoconf versions.
438
  echo Configuration will now proceed without shell functions.
439
}
440
 
441
 
442
 
443
  as_lineno_1=$LINENO
444
  as_lineno_2=$LINENO
445
  test "x$as_lineno_1" != "x$as_lineno_2" &&
446
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
 
448
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
  # uniformly replaced by the line number.  The first 'sed' inserts a
450
  # line-number line after each line using $LINENO; the second 'sed'
451
  # does the real work.  The second script uses 'N' to pair each
452
  # line-number line with the line containing $LINENO, and appends
453
  # trailing '-' during substitution so that $LINENO is not a special
454
  # case at line end.
455
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457
  # E. McMahon (1931-1989) for sed's syntax.  :-)
458
  sed -n '
459
    p
460
    /[$]LINENO/=
461
  ' <$as_myself |
462
    sed '
463
      s/[$]LINENO.*/&-/
464
      t lineno
465
      b
466
      :lineno
467
      N
468
      :loop
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470
      t loop
471
      s/-\n.*//
472
    ' >$as_me.lineno &&
473
  chmod +x "$as_me.lineno" ||
474
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475
   { (exit 1); exit 1; }; }
476
 
477
  # Don't try to exec as it changes $[0], causing all sort of problems
478
  # (the dirname of $[0] is not the place where we might find the
479
  # original and so on.  Autoconf is especially sensitive to this).
480
  . "./$as_me.lineno"
481
  # Exit status is that of the last command.
482
  exit
483
}
484
 
485
 
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487
  as_dirname=dirname
488
else
489
  as_dirname=false
490
fi
491
 
492
ECHO_C= ECHO_N= ECHO_T=
493
case `echo -n x` in
494
-n*)
495
  case `echo 'x\c'` in
496
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497
  *)   ECHO_C='\c';;
498
  esac;;
499
*)
500
  ECHO_N='-n';;
501
esac
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504
  as_expr=expr
505
else
506
  as_expr=false
507
fi
508
 
509
rm -f conf$$ conf$$.exe conf$$.file
510
if test -d conf$$.dir; then
511
  rm -f conf$$.dir/conf$$.file
512
else
513
  rm -f conf$$.dir
514
  mkdir conf$$.dir 2>/dev/null
515
fi
516
if (echo >conf$$.file) 2>/dev/null; then
517
  if ln -s conf$$.file conf$$ 2>/dev/null; then
518
    as_ln_s='ln -s'
519
    # ... but there are two gotchas:
520
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522
    # In both cases, we have to default to `cp -p'.
523
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524
      as_ln_s='cp -p'
525
  elif ln conf$$.file conf$$ 2>/dev/null; then
526
    as_ln_s=ln
527
  else
528
    as_ln_s='cp -p'
529
  fi
530
else
531
  as_ln_s='cp -p'
532
fi
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534
rmdir conf$$.dir 2>/dev/null
535
 
536
if mkdir -p . 2>/dev/null; then
537
  as_mkdir_p=:
538
else
539
  test -d ./-p && rmdir ./-p
540
  as_mkdir_p=false
541
fi
542
 
543
if test -x / >/dev/null 2>&1; then
544
  as_test_x='test -x'
545
else
546
  if ls -dL / >/dev/null 2>&1; then
547
    as_ls_L_option=L
548
  else
549
    as_ls_L_option=
550
  fi
551
  as_test_x='
552
    eval sh -c '\''
553
      if test -d "$1"; then
554
        test -d "$1/.";
555
      else
556
        case $1 in
557
        -*)set "./$1";;
558
        esac;
559
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560
        ???[sx]*):;;*)false;;esac;fi
561
    '\'' sh
562
  '
563
fi
564
as_executable_p=$as_test_x
565
 
566
# Sed expression to map a string onto a valid CPP name.
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
 
569
# Sed expression to map a string onto a valid variable name.
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
 
572
 
573
 
574
 
575
# Check that we are running under the correct shell.
576
SHELL=${CONFIG_SHELL-/bin/sh}
577
 
578
case X$lt_ECHO in
579
X*--fallback-echo)
580
  # Remove one level of quotation (which was required for Make).
581
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582
  ;;
583
esac
584
 
585
ECHO=${lt_ECHO-echo}
586
if test "X$1" = X--no-reexec; then
587
  # Discard the --no-reexec flag, and continue.
588
  shift
589
elif test "X$1" = X--fallback-echo; then
590
  # Avoid inline document here, it may be left over
591
  :
592
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593
  # Yippee, $ECHO works!
594
  :
595
else
596
  # Restart under the correct shell.
597
  exec $SHELL "$0" --no-reexec ${1+"$@"}
598
fi
599
 
600
if test "X$1" = X--fallback-echo; then
601
  # used as fallback echo
602
  shift
603
  cat <<_LT_EOF
604
$*
605
_LT_EOF
606
  exit 0
607
fi
608
 
609
# The HP-UX ksh and POSIX shell print the target directory to stdout
610
# if CDPATH is set.
611
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
 
613
if test -z "$lt_ECHO"; then
614
  if test "X${echo_test_string+set}" != Xset; then
615
    # find a string as large as possible, as long as the shell can cope with it
616
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620
      then
621
        break
622
      fi
623
    done
624
  fi
625
 
626
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
     test "X$echo_testing_string" = "X$echo_test_string"; then
629
    :
630
  else
631
    # The Solaris, AIX, and Digital Unix default echo programs unquote
632
    # backslashes.  This makes it impossible to quote backslashes using
633
    #   echo "$something" | sed 's/\\/\\\\/g'
634
    #
635
    # So, first we look for a working echo in the user's PATH.
636
 
637
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638
    for dir in $PATH /usr/ucb; do
639
      IFS="$lt_save_ifs"
640
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643
         test "X$echo_testing_string" = "X$echo_test_string"; then
644
        ECHO="$dir/echo"
645
        break
646
      fi
647
    done
648
    IFS="$lt_save_ifs"
649
 
650
    if test "X$ECHO" = Xecho; then
651
      # We didn't find a better echo, so look for alternatives.
652
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654
         test "X$echo_testing_string" = "X$echo_test_string"; then
655
        # This shell has a builtin print -r that does the trick.
656
        ECHO='print -r'
657
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658
           test "X$CONFIG_SHELL" != X/bin/ksh; then
659
        # If we have ksh, try running configure again with it.
660
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661
        export ORIGINAL_CONFIG_SHELL
662
        CONFIG_SHELL=/bin/ksh
663
        export CONFIG_SHELL
664
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665
      else
666
        # Try using printf.
667
        ECHO='printf %s\n'
668
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670
           test "X$echo_testing_string" = "X$echo_test_string"; then
671
          # Cool, printf works
672
          :
673
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674
             test "X$echo_testing_string" = 'X\t' &&
675
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676
             test "X$echo_testing_string" = "X$echo_test_string"; then
677
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678
          export CONFIG_SHELL
679
          SHELL="$CONFIG_SHELL"
680
          export SHELL
681
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
682
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683
             test "X$echo_testing_string" = 'X\t' &&
684
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685
             test "X$echo_testing_string" = "X$echo_test_string"; then
686
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
687
        else
688
          # maybe with a smaller string...
689
          prev=:
690
 
691
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693
            then
694
              break
695
            fi
696
            prev="$cmd"
697
          done
698
 
699
          if test "$prev" != 'sed 50q "$0"'; then
700
            echo_test_string=`eval $prev`
701
            export echo_test_string
702
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703
          else
704
            # Oops.  We lost completely, so just stick with echo.
705
            ECHO=echo
706
          fi
707
        fi
708
      fi
709
    fi
710
  fi
711
fi
712
 
713
# Copy echo and quote the copy suitably for passing to libtool from
714
# the Makefile, instead of quoting the original, which is used later.
715
lt_ECHO=$ECHO
716
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718
fi
719
 
720
 
721
 
722
 
723
exec 7<&0 &1
724
 
725
# Name of the host.
726
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727
# so uname gets run too.
728
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
 
730
#
731
# Initializations.
732
#
733
ac_default_prefix=/usr/local
734
ac_clean_files=
735
ac_config_libobj_dir=.
736
LIBOBJS=
737
cross_compiling=no
738
subdirs=
739
MFLAGS=
740
MAKEFLAGS=
741
SHELL=${CONFIG_SHELL-/bin/sh}
742
 
743
# Identity of this package.
744
PACKAGE_NAME='newlib'
745
PACKAGE_TARNAME='newlib'
746
PACKAGE_VERSION='1.18.0'
747
PACKAGE_STRING='newlib 1.18.0'
748
PACKAGE_BUGREPORT=''
749
 
750
ac_unique_file="d10v"
751
# Factoring default headers for most tests.
752
ac_includes_default="\
753
#include 
754
#ifdef HAVE_SYS_TYPES_H
755
# include 
756
#endif
757
#ifdef HAVE_SYS_STAT_H
758
# include 
759
#endif
760
#ifdef STDC_HEADERS
761
# include 
762
# include 
763
#else
764
# ifdef HAVE_STDLIB_H
765
#  include 
766
# endif
767
#endif
768
#ifdef HAVE_STRING_H
769
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770
#  include 
771
# endif
772
# include 
773
#endif
774
#ifdef HAVE_STRINGS_H
775
# include 
776
#endif
777
#ifdef HAVE_INTTYPES_H
778
# include 
779
#endif
780
#ifdef HAVE_STDINT_H
781
# include 
782
#endif
783
#ifdef HAVE_UNISTD_H
784
# include 
785
#endif"
786
 
787
enable_option_checking=no
788
ac_subst_vars='am__EXEEXT_FALSE
789
am__EXEEXT_TRUE
790
LTLIBOBJS
791
LIBOBJS
792
HAVE_MACHINE_DIR_FALSE
793
HAVE_MACHINE_DIR_TRUE
794
subdirs
795
CPP
796
OTOOL64
797
OTOOL
798
LIPO
799
NMEDIT
800
DSYMUTIL
801
lt_ECHO
802
LN_S
803
NM
804
ac_ct_DUMPBIN
805
DUMPBIN
806
LD
807
FGREP
808
EGREP
809
GREP
810
EXEEXT
811
ac_ct_CC
812
CPPFLAGS
813
CFLAGS
814
LIBTOOL
815
OBJDUMP
816
DLLTOOL
817
SED
818
sys_dir
819
machine_dir
820
libm_machine_dir
821
lpfx
822
aext
823
oext
824
OBJEXT
825
USE_LIBTOOL_FALSE
826
USE_LIBTOOL_TRUE
827
ELIX_LEVEL_4_FALSE
828
ELIX_LEVEL_4_TRUE
829
ELIX_LEVEL_3_FALSE
830
ELIX_LEVEL_3_TRUE
831
ELIX_LEVEL_2_FALSE
832
ELIX_LEVEL_2_TRUE
833
ELIX_LEVEL_1_FALSE
834
ELIX_LEVEL_1_TRUE
835
ELIX_LEVEL_0_FALSE
836
ELIX_LEVEL_0_TRUE
837
LDFLAGS
838
NEWLIB_CFLAGS
839
CCASFLAGS
840
CCAS
841
MAINT
842
MAINTAINER_MODE_FALSE
843
MAINTAINER_MODE_TRUE
844
READELF
845
RANLIB
846
AR
847
AS
848
am__fastdepCC_FALSE
849
am__fastdepCC_TRUE
850
CCDEPMODE
851
AMDEPBACKSLASH
852
AMDEP_FALSE
853
AMDEP_TRUE
854
am__quote
855
am__include
856
DEPDIR
857
CC
858
am__untar
859
am__tar
860
AMTAR
861
am__leading_dot
862
SET_MAKE
863
AWK
864
mkdir_p
865
MKDIR_P
866
INSTALL_STRIP_PROGRAM
867
STRIP
868
install_sh
869
MAKEINFO
870
AUTOHEADER
871
AUTOMAKE
872
AUTOCONF
873
ACLOCAL
874
VERSION
875
PACKAGE
876
CYGPATH_W
877
am__isrc
878
INSTALL_DATA
879
INSTALL_SCRIPT
880
INSTALL_PROGRAM
881
host_os
882
host_vendor
883
host_cpu
884
host
885
build_os
886
build_vendor
887
build_cpu
888
build
889
newlib_basedir
890
MAY_SUPPLY_SYSCALLS_FALSE
891
MAY_SUPPLY_SYSCALLS_TRUE
892
target_alias
893
host_alias
894
build_alias
895
LIBS
896
ECHO_T
897
ECHO_N
898
ECHO_C
899
DEFS
900
mandir
901
localedir
902
libdir
903
psdir
904
pdfdir
905
dvidir
906
htmldir
907
infodir
908
docdir
909
oldincludedir
910
includedir
911
localstatedir
912
sharedstatedir
913
sysconfdir
914
datadir
915
datarootdir
916
libexecdir
917
sbindir
918
bindir
919
program_transform_name
920
prefix
921
exec_prefix
922
PACKAGE_BUGREPORT
923
PACKAGE_STRING
924
PACKAGE_VERSION
925
PACKAGE_TARNAME
926
PACKAGE_NAME
927
PATH_SEPARATOR
928
SHELL'
929
ac_subst_files=''
930
ac_user_opts='
931
enable_option_checking
932
enable_multilib
933
enable_target_optspace
934
enable_malloc_debugging
935
enable_newlib_multithread
936
enable_newlib_iconv
937
enable_newlib_elix_level
938
enable_newlib_io_float
939
enable_newlib_supplied_syscalls
940
enable_dependency_tracking
941
enable_maintainer_mode
942
enable_shared
943
enable_static
944
with_pic
945
enable_fast_install
946
with_gnu_ld
947
enable_libtool_lock
948
'
949
      ac_precious_vars='build_alias
950
host_alias
951
target_alias
952
CCAS
953
CCASFLAGS
954
CC
955
CFLAGS
956
LDFLAGS
957
LIBS
958
CPPFLAGS
959
CPP'
960
ac_subdirs_all='a29k
961
arm
962
bfin
963
cris
964
crx
965
d10v
966
d30v
967
fr30
968
frv
969
h8300
970
h8500
971
hppa
972
i386
973
i960
974
iq2000
975
lm32
976
m32c
977
m32r
978
m68hc11
979
m68k
980
m88k
981
mep
982
microblaze
983
mips
984
mn10200
985
mn10300
986
moxie
987
mt
988
necv70
989
or32
990
powerpc
991
rx
992
sh
993
sparc
994
spu
995
tic4x
996
tic80
997
v850
998
w65
999
x86_64
1000
xc16x
1001
xscale
1002
xstormy16
1003
z8k'
1004
 
1005
# Initialize some variables set by options.
1006
ac_init_help=
1007
ac_init_version=false
1008
ac_unrecognized_opts=
1009
ac_unrecognized_sep=
1010
# The variables have the same names as the options, with
1011
# dashes changed to underlines.
1012
cache_file=/dev/null
1013
exec_prefix=NONE
1014
no_create=
1015
no_recursion=
1016
prefix=NONE
1017
program_prefix=NONE
1018
program_suffix=NONE
1019
program_transform_name=s,x,x,
1020
silent=
1021
site=
1022
srcdir=
1023
verbose=
1024
x_includes=NONE
1025
x_libraries=NONE
1026
 
1027
# Installation directory options.
1028
# These are left unexpanded so users can "make install exec_prefix=/foo"
1029
# and all the variables that are supposed to be based on exec_prefix
1030
# by default will actually change.
1031
# Use braces instead of parens because sh, perl, etc. also accept them.
1032
# (The list follows the same order as the GNU Coding Standards.)
1033
bindir='${exec_prefix}/bin'
1034
sbindir='${exec_prefix}/sbin'
1035
libexecdir='${exec_prefix}/libexec'
1036
datarootdir='${prefix}/share'
1037
datadir='${datarootdir}'
1038
sysconfdir='${prefix}/etc'
1039
sharedstatedir='${prefix}/com'
1040
localstatedir='${prefix}/var'
1041
includedir='${prefix}/include'
1042
oldincludedir='/usr/include'
1043
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1044
infodir='${datarootdir}/info'
1045
htmldir='${docdir}'
1046
dvidir='${docdir}'
1047
pdfdir='${docdir}'
1048
psdir='${docdir}'
1049
libdir='${exec_prefix}/lib'
1050
localedir='${datarootdir}/locale'
1051
mandir='${datarootdir}/man'
1052
 
1053
ac_prev=
1054
ac_dashdash=
1055
for ac_option
1056
do
1057
  # If the previous option needs an argument, assign it.
1058
  if test -n "$ac_prev"; then
1059
    eval $ac_prev=\$ac_option
1060
    ac_prev=
1061
    continue
1062
  fi
1063
 
1064
  case $ac_option in
1065
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1066
  *)    ac_optarg=yes ;;
1067
  esac
1068
 
1069
  # Accept the important Cygnus configure options, so we can diagnose typos.
1070
 
1071
  case $ac_dashdash$ac_option in
1072
  --)
1073
    ac_dashdash=yes ;;
1074
 
1075
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1076
    ac_prev=bindir ;;
1077
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1078
    bindir=$ac_optarg ;;
1079
 
1080
  -build | --build | --buil | --bui | --bu)
1081
    ac_prev=build_alias ;;
1082
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1083
    build_alias=$ac_optarg ;;
1084
 
1085
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1086
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1087
    ac_prev=cache_file ;;
1088
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1089
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1090
    cache_file=$ac_optarg ;;
1091
 
1092
  --config-cache | -C)
1093
    cache_file=config.cache ;;
1094
 
1095
  -datadir | --datadir | --datadi | --datad)
1096
    ac_prev=datadir ;;
1097
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1098
    datadir=$ac_optarg ;;
1099
 
1100
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1101
  | --dataroo | --dataro | --datar)
1102
    ac_prev=datarootdir ;;
1103
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1104
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1105
    datarootdir=$ac_optarg ;;
1106
 
1107
  -disable-* | --disable-*)
1108
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1109
    # Reject names that are not valid shell variable names.
1110
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1112
   { (exit 1); exit 1; }; }
1113
    ac_useropt_orig=$ac_useropt
1114
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115
    case $ac_user_opts in
1116
      *"
1117
"enable_$ac_useropt"
1118
"*) ;;
1119
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1120
         ac_unrecognized_sep=', ';;
1121
    esac
1122
    eval enable_$ac_useropt=no ;;
1123
 
1124
  -docdir | --docdir | --docdi | --doc | --do)
1125
    ac_prev=docdir ;;
1126
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1127
    docdir=$ac_optarg ;;
1128
 
1129
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1130
    ac_prev=dvidir ;;
1131
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1132
    dvidir=$ac_optarg ;;
1133
 
1134
  -enable-* | --enable-*)
1135
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1136
    # Reject names that are not valid shell variable names.
1137
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1139
   { (exit 1); exit 1; }; }
1140
    ac_useropt_orig=$ac_useropt
1141
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142
    case $ac_user_opts in
1143
      *"
1144
"enable_$ac_useropt"
1145
"*) ;;
1146
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1147
         ac_unrecognized_sep=', ';;
1148
    esac
1149
    eval enable_$ac_useropt=\$ac_optarg ;;
1150
 
1151
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1152
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1153
  | --exec | --exe | --ex)
1154
    ac_prev=exec_prefix ;;
1155
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1156
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1157
  | --exec=* | --exe=* | --ex=*)
1158
    exec_prefix=$ac_optarg ;;
1159
 
1160
  -gas | --gas | --ga | --g)
1161
    # Obsolete; use --with-gas.
1162
    with_gas=yes ;;
1163
 
1164
  -help | --help | --hel | --he | -h)
1165
    ac_init_help=long ;;
1166
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1167
    ac_init_help=recursive ;;
1168
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1169
    ac_init_help=short ;;
1170
 
1171
  -host | --host | --hos | --ho)
1172
    ac_prev=host_alias ;;
1173
  -host=* | --host=* | --hos=* | --ho=*)
1174
    host_alias=$ac_optarg ;;
1175
 
1176
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1177
    ac_prev=htmldir ;;
1178
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1179
  | --ht=*)
1180
    htmldir=$ac_optarg ;;
1181
 
1182
  -includedir | --includedir | --includedi | --included | --include \
1183
  | --includ | --inclu | --incl | --inc)
1184
    ac_prev=includedir ;;
1185
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1186
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1187
    includedir=$ac_optarg ;;
1188
 
1189
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1190
    ac_prev=infodir ;;
1191
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1192
    infodir=$ac_optarg ;;
1193
 
1194
  -libdir | --libdir | --libdi | --libd)
1195
    ac_prev=libdir ;;
1196
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1197
    libdir=$ac_optarg ;;
1198
 
1199
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1200
  | --libexe | --libex | --libe)
1201
    ac_prev=libexecdir ;;
1202
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1203
  | --libexe=* | --libex=* | --libe=*)
1204
    libexecdir=$ac_optarg ;;
1205
 
1206
  -localedir | --localedir | --localedi | --localed | --locale)
1207
    ac_prev=localedir ;;
1208
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1209
    localedir=$ac_optarg ;;
1210
 
1211
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1212
  | --localstate | --localstat | --localsta | --localst | --locals)
1213
    ac_prev=localstatedir ;;
1214
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1215
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1216
    localstatedir=$ac_optarg ;;
1217
 
1218
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1219
    ac_prev=mandir ;;
1220
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1221
    mandir=$ac_optarg ;;
1222
 
1223
  -nfp | --nfp | --nf)
1224
    # Obsolete; use --without-fp.
1225
    with_fp=no ;;
1226
 
1227
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1228
  | --no-cr | --no-c | -n)
1229
    no_create=yes ;;
1230
 
1231
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1232
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1233
    no_recursion=yes ;;
1234
 
1235
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1236
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1237
  | --oldin | --oldi | --old | --ol | --o)
1238
    ac_prev=oldincludedir ;;
1239
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1240
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1241
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1242
    oldincludedir=$ac_optarg ;;
1243
 
1244
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1245
    ac_prev=prefix ;;
1246
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1247
    prefix=$ac_optarg ;;
1248
 
1249
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1250
  | --program-pre | --program-pr | --program-p)
1251
    ac_prev=program_prefix ;;
1252
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1253
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1254
    program_prefix=$ac_optarg ;;
1255
 
1256
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1257
  | --program-suf | --program-su | --program-s)
1258
    ac_prev=program_suffix ;;
1259
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1260
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1261
    program_suffix=$ac_optarg ;;
1262
 
1263
  -program-transform-name | --program-transform-name \
1264
  | --program-transform-nam | --program-transform-na \
1265
  | --program-transform-n | --program-transform- \
1266
  | --program-transform | --program-transfor \
1267
  | --program-transfo | --program-transf \
1268
  | --program-trans | --program-tran \
1269
  | --progr-tra | --program-tr | --program-t)
1270
    ac_prev=program_transform_name ;;
1271
  -program-transform-name=* | --program-transform-name=* \
1272
  | --program-transform-nam=* | --program-transform-na=* \
1273
  | --program-transform-n=* | --program-transform-=* \
1274
  | --program-transform=* | --program-transfor=* \
1275
  | --program-transfo=* | --program-transf=* \
1276
  | --program-trans=* | --program-tran=* \
1277
  | --progr-tra=* | --program-tr=* | --program-t=*)
1278
    program_transform_name=$ac_optarg ;;
1279
 
1280
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1281
    ac_prev=pdfdir ;;
1282
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1283
    pdfdir=$ac_optarg ;;
1284
 
1285
  -psdir | --psdir | --psdi | --psd | --ps)
1286
    ac_prev=psdir ;;
1287
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1288
    psdir=$ac_optarg ;;
1289
 
1290
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291
  | -silent | --silent | --silen | --sile | --sil)
1292
    silent=yes ;;
1293
 
1294
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1295
    ac_prev=sbindir ;;
1296
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1297
  | --sbi=* | --sb=*)
1298
    sbindir=$ac_optarg ;;
1299
 
1300
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1301
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1302
  | --sharedst | --shareds | --shared | --share | --shar \
1303
  | --sha | --sh)
1304
    ac_prev=sharedstatedir ;;
1305
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1306
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1307
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1308
  | --sha=* | --sh=*)
1309
    sharedstatedir=$ac_optarg ;;
1310
 
1311
  -site | --site | --sit)
1312
    ac_prev=site ;;
1313
  -site=* | --site=* | --sit=*)
1314
    site=$ac_optarg ;;
1315
 
1316
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1317
    ac_prev=srcdir ;;
1318
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1319
    srcdir=$ac_optarg ;;
1320
 
1321
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1322
  | --syscon | --sysco | --sysc | --sys | --sy)
1323
    ac_prev=sysconfdir ;;
1324
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1325
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1326
    sysconfdir=$ac_optarg ;;
1327
 
1328
  -target | --target | --targe | --targ | --tar | --ta | --t)
1329
    ac_prev=target_alias ;;
1330
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1331
    target_alias=$ac_optarg ;;
1332
 
1333
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1334
    verbose=yes ;;
1335
 
1336
  -version | --version | --versio | --versi | --vers | -V)
1337
    ac_init_version=: ;;
1338
 
1339
  -with-* | --with-*)
1340
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1341
    # Reject names that are not valid shell variable names.
1342
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1343
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1344
   { (exit 1); exit 1; }; }
1345
    ac_useropt_orig=$ac_useropt
1346
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347
    case $ac_user_opts in
1348
      *"
1349
"with_$ac_useropt"
1350
"*) ;;
1351
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1352
         ac_unrecognized_sep=', ';;
1353
    esac
1354
    eval with_$ac_useropt=\$ac_optarg ;;
1355
 
1356
  -without-* | --without-*)
1357
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1358
    # Reject names that are not valid shell variable names.
1359
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1361
   { (exit 1); exit 1; }; }
1362
    ac_useropt_orig=$ac_useropt
1363
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364
    case $ac_user_opts in
1365
      *"
1366
"with_$ac_useropt"
1367
"*) ;;
1368
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1369
         ac_unrecognized_sep=', ';;
1370
    esac
1371
    eval with_$ac_useropt=no ;;
1372
 
1373
  --x)
1374
    # Obsolete; use --with-x.
1375
    with_x=yes ;;
1376
 
1377
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1378
  | --x-incl | --x-inc | --x-in | --x-i)
1379
    ac_prev=x_includes ;;
1380
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1381
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1382
    x_includes=$ac_optarg ;;
1383
 
1384
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1385
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1386
    ac_prev=x_libraries ;;
1387
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1388
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1389
    x_libraries=$ac_optarg ;;
1390
 
1391
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1392
Try \`$0 --help' for more information." >&2
1393
   { (exit 1); exit 1; }; }
1394
    ;;
1395
 
1396
  *=*)
1397
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1398
    # Reject names that are not valid shell variable names.
1399
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1400
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1401
   { (exit 1); exit 1; }; }
1402
    eval $ac_envvar=\$ac_optarg
1403
    export $ac_envvar ;;
1404
 
1405
  *)
1406
    # FIXME: should be removed in autoconf 3.0.
1407
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1408
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1409
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1410
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1411
    ;;
1412
 
1413
  esac
1414
done
1415
 
1416
if test -n "$ac_prev"; then
1417
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1418
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1419
   { (exit 1); exit 1; }; }
1420
fi
1421
 
1422
if test -n "$ac_unrecognized_opts"; then
1423
  case $enable_option_checking in
1424
    no) ;;
1425
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1426
   { (exit 1); exit 1; }; } ;;
1427
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1428
  esac
1429
fi
1430
 
1431
# Check all directory arguments for consistency.
1432
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1433
                datadir sysconfdir sharedstatedir localstatedir includedir \
1434
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1435
                libdir localedir mandir
1436
do
1437
  eval ac_val=\$$ac_var
1438
  # Remove trailing slashes.
1439
  case $ac_val in
1440
    */ )
1441
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1442
      eval $ac_var=\$ac_val;;
1443
  esac
1444
  # Be sure to have absolute directory names.
1445
  case $ac_val in
1446
    [\\/$]* | ?:[\\/]* )  continue;;
1447
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1448
  esac
1449
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1450
   { (exit 1); exit 1; }; }
1451
done
1452
 
1453
# There might be people who depend on the old broken behavior: `$host'
1454
# used to hold the argument of --host etc.
1455
# FIXME: To remove some day.
1456
build=$build_alias
1457
host=$host_alias
1458
target=$target_alias
1459
 
1460
# FIXME: To remove some day.
1461
if test "x$host_alias" != x; then
1462
  if test "x$build_alias" = x; then
1463
    cross_compiling=maybe
1464
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1465
    If a cross compiler is detected then cross compile mode will be used." >&2
1466
  elif test "x$build_alias" != "x$host_alias"; then
1467
    cross_compiling=yes
1468
  fi
1469
fi
1470
 
1471
ac_tool_prefix=
1472
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1473
 
1474
test "$silent" = yes && exec 6>/dev/null
1475
 
1476
 
1477
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1478
ac_ls_di=`ls -di .` &&
1479
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1480
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1481
   { (exit 1); exit 1; }; }
1482
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1483
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1484
   { (exit 1); exit 1; }; }
1485
 
1486
 
1487
# Find the source files, if location was not specified.
1488
if test -z "$srcdir"; then
1489
  ac_srcdir_defaulted=yes
1490
  # Try the directory containing this script, then the parent directory.
1491
  ac_confdir=`$as_dirname -- "$as_myself" ||
1492
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1493
         X"$as_myself" : 'X\(//\)[^/]' \| \
1494
         X"$as_myself" : 'X\(//\)$' \| \
1495
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1496
$as_echo X"$as_myself" |
1497
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1498
            s//\1/
1499
            q
1500
          }
1501
          /^X\(\/\/\)[^/].*/{
1502
            s//\1/
1503
            q
1504
          }
1505
          /^X\(\/\/\)$/{
1506
            s//\1/
1507
            q
1508
          }
1509
          /^X\(\/\).*/{
1510
            s//\1/
1511
            q
1512
          }
1513
          s/.*/./; q'`
1514
  srcdir=$ac_confdir
1515
  if test ! -r "$srcdir/$ac_unique_file"; then
1516
    srcdir=..
1517
  fi
1518
else
1519
  ac_srcdir_defaulted=no
1520
fi
1521
if test ! -r "$srcdir/$ac_unique_file"; then
1522
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1523
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1524
   { (exit 1); exit 1; }; }
1525
fi
1526
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1527
ac_abs_confdir=`(
1528
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1529
   { (exit 1); exit 1; }; }
1530
        pwd)`
1531
# When building in place, set srcdir=.
1532
if test "$ac_abs_confdir" = "$ac_pwd"; then
1533
  srcdir=.
1534
fi
1535
# Remove unnecessary trailing slashes from srcdir.
1536
# Double slashes in file names in object file debugging info
1537
# mess up M-x gdb in Emacs.
1538
case $srcdir in
1539
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1540
esac
1541
for ac_var in $ac_precious_vars; do
1542
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1543
  eval ac_env_${ac_var}_value=\$${ac_var}
1544
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1545
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1546
done
1547
 
1548
#
1549
# Report the --help message.
1550
#
1551
if test "$ac_init_help" = "long"; then
1552
  # Omit some internal or obsolete options to make the list less imposing.
1553
  # This message is too long to be a string in the A/UX 3.1 sh.
1554
  cat <<_ACEOF
1555
\`configure' configures newlib 1.18.0 to adapt to many kinds of systems.
1556
 
1557
Usage: $0 [OPTION]... [VAR=VALUE]...
1558
 
1559
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1560
VAR=VALUE.  See below for descriptions of some of the useful variables.
1561
 
1562
Defaults for the options are specified in brackets.
1563
 
1564
Configuration:
1565
  -h, --help              display this help and exit
1566
      --help=short        display options specific to this package
1567
      --help=recursive    display the short help of all the included packages
1568
  -V, --version           display version information and exit
1569
  -q, --quiet, --silent   do not print \`checking...' messages
1570
      --cache-file=FILE   cache test results in FILE [disabled]
1571
  -C, --config-cache      alias for \`--cache-file=config.cache'
1572
  -n, --no-create         do not create output files
1573
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1574
 
1575
Installation directories:
1576
  --prefix=PREFIX         install architecture-independent files in PREFIX
1577
                          [$ac_default_prefix]
1578
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1579
                          [PREFIX]
1580
 
1581
By default, \`make install' will install all the files in
1582
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1583
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1584
for instance \`--prefix=\$HOME'.
1585
 
1586
For better control, use the options below.
1587
 
1588
Fine tuning of the installation directories:
1589
  --bindir=DIR            user executables [EPREFIX/bin]
1590
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1591
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1592
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1593
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1594
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1595
  --libdir=DIR            object code libraries [EPREFIX/lib]
1596
  --includedir=DIR        C header files [PREFIX/include]
1597
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1598
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1599
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1600
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1601
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1602
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1603
  --docdir=DIR            documentation root [DATAROOTDIR/doc/newlib]
1604
  --htmldir=DIR           html documentation [DOCDIR]
1605
  --dvidir=DIR            dvi documentation [DOCDIR]
1606
  --pdfdir=DIR            pdf documentation [DOCDIR]
1607
  --psdir=DIR             ps documentation [DOCDIR]
1608
_ACEOF
1609
 
1610
  cat <<\_ACEOF
1611
 
1612
Program names:
1613
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1614
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1615
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1616
 
1617
System types:
1618
  --build=BUILD     configure for building on BUILD [guessed]
1619
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1620
_ACEOF
1621
fi
1622
 
1623
if test -n "$ac_init_help"; then
1624
  case $ac_init_help in
1625
     short | recursive ) echo "Configuration of newlib 1.18.0:";;
1626
   esac
1627
  cat <<\_ACEOF
1628
 
1629
Optional Features:
1630
  --disable-option-checking  ignore unrecognized --enable/--with options
1631
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1632
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1633
  --enable-multilib         build many library versions (default)
1634
  --enable-target-optspace  optimize for space
1635
  --enable-malloc-debugging indicate malloc debugging requested
1636
  --enable-newlib-multithread        enable support for multiple threads
1637
  --enable-newlib-iconv     enable iconv library support
1638
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1639
  --disable-newlib-io-float disable printf/scanf family float support
1640
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1641
  --disable-dependency-tracking  speeds up one-time build
1642
  --enable-dependency-tracking   do not reject slow dependency extractors
1643
  --enable-maintainer-mode  enable make rules and dependencies not useful
1644
                          (and sometimes confusing) to the casual installer
1645
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1646
  --enable-static[=PKGS]  build static libraries [default=yes]
1647
  --enable-fast-install[=PKGS]
1648
                          optimize for fast installation [default=yes]
1649
  --disable-libtool-lock  avoid locking (might break parallel builds)
1650
 
1651
Optional Packages:
1652
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1653
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1654
  --with-pic              try to use only PIC/non-PIC objects [default=use
1655
                          both]
1656
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1657
 
1658
Some influential environment variables:
1659
  CCAS        assembler compiler command (defaults to CC)
1660
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1661
  CC          C compiler command
1662
  CFLAGS      C compiler flags
1663
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1664
              nonstandard directory 
1665
  LIBS        libraries to pass to the linker, e.g. -l
1666
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1667
              you have headers in a nonstandard directory 
1668
  CPP         C preprocessor
1669
 
1670
Use these variables to override the choices made by `configure' or to help
1671
it to find libraries and programs with nonstandard names/locations.
1672
 
1673
_ACEOF
1674
ac_status=$?
1675
fi
1676
 
1677
if test "$ac_init_help" = "recursive"; then
1678
  # If there are subdirs, report their specific --help.
1679
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1680
    test -d "$ac_dir" ||
1681
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1682
      continue
1683
    ac_builddir=.
1684
 
1685
case "$ac_dir" in
1686
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1687
*)
1688
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1689
  # A ".." for each directory in $ac_dir_suffix.
1690
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1691
  case $ac_top_builddir_sub in
1692
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1694
  esac ;;
1695
esac
1696
ac_abs_top_builddir=$ac_pwd
1697
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1698
# for backward compatibility:
1699
ac_top_builddir=$ac_top_build_prefix
1700
 
1701
case $srcdir in
1702
  .)  # We are building in place.
1703
    ac_srcdir=.
1704
    ac_top_srcdir=$ac_top_builddir_sub
1705
    ac_abs_top_srcdir=$ac_pwd ;;
1706
  [\\/]* | ?:[\\/]* )  # Absolute name.
1707
    ac_srcdir=$srcdir$ac_dir_suffix;
1708
    ac_top_srcdir=$srcdir
1709
    ac_abs_top_srcdir=$srcdir ;;
1710
  *) # Relative name.
1711
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1712
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1713
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1714
esac
1715
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1716
 
1717
    cd "$ac_dir" || { ac_status=$?; continue; }
1718
    # Check for guested configure.
1719
    if test -f "$ac_srcdir/configure.gnu"; then
1720
      echo &&
1721
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1722
    elif test -f "$ac_srcdir/configure"; then
1723
      echo &&
1724
      $SHELL "$ac_srcdir/configure" --help=recursive
1725
    else
1726
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1727
    fi || ac_status=$?
1728
    cd "$ac_pwd" || { ac_status=$?; break; }
1729
  done
1730
fi
1731
 
1732
test -n "$ac_init_help" && exit $ac_status
1733
if $ac_init_version; then
1734
  cat <<\_ACEOF
1735
newlib configure 1.18.0
1736
generated by GNU Autoconf 2.63
1737
 
1738
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1739
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1740
This configure script is free software; the Free Software Foundation
1741
gives unlimited permission to copy, distribute and modify it.
1742
_ACEOF
1743
  exit
1744
fi
1745
cat >config.log <<_ACEOF
1746
This file contains any messages produced by compilers while
1747
running configure, to aid debugging if configure makes a mistake.
1748
 
1749
It was created by newlib $as_me 1.18.0, which was
1750
generated by GNU Autoconf 2.63.  Invocation command line was
1751
 
1752
  $ $0 $@
1753
 
1754
_ACEOF
1755
exec 5>>config.log
1756
{
1757
cat <<_ASUNAME
1758
## --------- ##
1759
## Platform. ##
1760
## --------- ##
1761
 
1762
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1763
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1764
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1765
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1766
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1767
 
1768
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1769
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1770
 
1771
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1772
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1773
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1774
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1775
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1776
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1777
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1778
 
1779
_ASUNAME
1780
 
1781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782
for as_dir in $PATH
1783
do
1784
  IFS=$as_save_IFS
1785
  test -z "$as_dir" && as_dir=.
1786
  $as_echo "PATH: $as_dir"
1787
done
1788
IFS=$as_save_IFS
1789
 
1790
} >&5
1791
 
1792
cat >&5 <<_ACEOF
1793
 
1794
 
1795
## ----------- ##
1796
## Core tests. ##
1797
## ----------- ##
1798
 
1799
_ACEOF
1800
 
1801
 
1802
# Keep a trace of the command line.
1803
# Strip out --no-create and --no-recursion so they do not pile up.
1804
# Strip out --silent because we don't want to record it for future runs.
1805
# Also quote any args containing shell meta-characters.
1806
# Make two passes to allow for proper duplicate-argument suppression.
1807
ac_configure_args=
1808
ac_configure_args0=
1809
ac_configure_args1=
1810
ac_must_keep_next=false
1811
for ac_pass in 1 2
1812
do
1813
  for ac_arg
1814
  do
1815
    case $ac_arg in
1816
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1817
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1818
    | -silent | --silent | --silen | --sile | --sil)
1819
      continue ;;
1820
    *\'*)
1821
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1822
    esac
1823
    case $ac_pass in
1824
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1825
    2)
1826
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1827
      if test $ac_must_keep_next = true; then
1828
        ac_must_keep_next=false # Got value, back to normal.
1829
      else
1830
        case $ac_arg in
1831
          *=* | --config-cache | -C | -disable-* | --disable-* \
1832
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1833
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1834
          | -with-* | --with-* | -without-* | --without-* | --x)
1835
            case "$ac_configure_args0 " in
1836
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1837
            esac
1838
            ;;
1839
          -* ) ac_must_keep_next=true ;;
1840
        esac
1841
      fi
1842
      ac_configure_args="$ac_configure_args '$ac_arg'"
1843
      ;;
1844
    esac
1845
  done
1846
done
1847
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1848
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1849
 
1850
# When interrupted or exit'd, cleanup temporary files, and complete
1851
# config.log.  We remove comments because anyway the quotes in there
1852
# would cause problems or look ugly.
1853
# WARNING: Use '\'' to represent an apostrophe within the trap.
1854
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1855
trap 'exit_status=$?
1856
  # Save into config.log some information that might help in debugging.
1857
  {
1858
    echo
1859
 
1860
    cat <<\_ASBOX
1861
## ---------------- ##
1862
## Cache variables. ##
1863
## ---------------- ##
1864
_ASBOX
1865
    echo
1866
    # The following way of writing the cache mishandles newlines in values,
1867
(
1868
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1869
    eval ac_val=\$$ac_var
1870
    case $ac_val in #(
1871
    *${as_nl}*)
1872
      case $ac_var in #(
1873
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1874
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1875
      esac
1876
      case $ac_var in #(
1877
      _ | IFS | as_nl) ;; #(
1878
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1879
      *) $as_unset $ac_var ;;
1880
      esac ;;
1881
    esac
1882
  done
1883
  (set) 2>&1 |
1884
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1885
    *${as_nl}ac_space=\ *)
1886
      sed -n \
1887
        "s/'\''/'\''\\\\'\'''\''/g;
1888
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1889
      ;; #(
1890
    *)
1891
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1892
      ;;
1893
    esac |
1894
    sort
1895
)
1896
    echo
1897
 
1898
    cat <<\_ASBOX
1899
## ----------------- ##
1900
## Output variables. ##
1901
## ----------------- ##
1902
_ASBOX
1903
    echo
1904
    for ac_var in $ac_subst_vars
1905
    do
1906
      eval ac_val=\$$ac_var
1907
      case $ac_val in
1908
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1909
      esac
1910
      $as_echo "$ac_var='\''$ac_val'\''"
1911
    done | sort
1912
    echo
1913
 
1914
    if test -n "$ac_subst_files"; then
1915
      cat <<\_ASBOX
1916
## ------------------- ##
1917
## File substitutions. ##
1918
## ------------------- ##
1919
_ASBOX
1920
      echo
1921
      for ac_var in $ac_subst_files
1922
      do
1923
        eval ac_val=\$$ac_var
1924
        case $ac_val in
1925
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1926
        esac
1927
        $as_echo "$ac_var='\''$ac_val'\''"
1928
      done | sort
1929
      echo
1930
    fi
1931
 
1932
    if test -s confdefs.h; then
1933
      cat <<\_ASBOX
1934
## ----------- ##
1935
## confdefs.h. ##
1936
## ----------- ##
1937
_ASBOX
1938
      echo
1939
      cat confdefs.h
1940
      echo
1941
    fi
1942
    test "$ac_signal" != 0 &&
1943
      $as_echo "$as_me: caught signal $ac_signal"
1944
    $as_echo "$as_me: exit $exit_status"
1945
  } >&5
1946
  rm -f core *.core core.conftest.* &&
1947
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1948
    exit $exit_status
1949
' 0
1950
for ac_signal in 1 2 13 15; do
1951
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1952
done
1953
ac_signal=0
1954
 
1955
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1956
rm -f -r conftest* confdefs.h
1957
 
1958
# Predefined preprocessor variables.
1959
 
1960
cat >>confdefs.h <<_ACEOF
1961
#define PACKAGE_NAME "$PACKAGE_NAME"
1962
_ACEOF
1963
 
1964
 
1965
cat >>confdefs.h <<_ACEOF
1966
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1967
_ACEOF
1968
 
1969
 
1970
cat >>confdefs.h <<_ACEOF
1971
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1972
_ACEOF
1973
 
1974
 
1975
cat >>confdefs.h <<_ACEOF
1976
#define PACKAGE_STRING "$PACKAGE_STRING"
1977
_ACEOF
1978
 
1979
 
1980
cat >>confdefs.h <<_ACEOF
1981
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1982
_ACEOF
1983
 
1984
 
1985
# Let the site file select an alternate cache file if it wants to.
1986
# Prefer an explicitly selected file to automatically selected ones.
1987
ac_site_file1=NONE
1988
ac_site_file2=NONE
1989
if test -n "$CONFIG_SITE"; then
1990
  ac_site_file1=$CONFIG_SITE
1991
elif test "x$prefix" != xNONE; then
1992
  ac_site_file1=$prefix/share/config.site
1993
  ac_site_file2=$prefix/etc/config.site
1994
else
1995
  ac_site_file1=$ac_default_prefix/share/config.site
1996
  ac_site_file2=$ac_default_prefix/etc/config.site
1997
fi
1998
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1999
do
2000
  test "x$ac_site_file" = xNONE && continue
2001
  if test -r "$ac_site_file"; then
2002
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2003
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2004
    sed 's/^/| /' "$ac_site_file" >&5
2005
    . "$ac_site_file"
2006
  fi
2007
done
2008
 
2009
if test -r "$cache_file"; then
2010
  # Some versions of bash will fail to source /dev/null (special
2011
  # files actually), so we avoid doing that.
2012
  if test -f "$cache_file"; then
2013
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2014
$as_echo "$as_me: loading cache $cache_file" >&6;}
2015
    case $cache_file in
2016
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2017
      *)                      . "./$cache_file";;
2018
    esac
2019
  fi
2020
else
2021
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2022
$as_echo "$as_me: creating cache $cache_file" >&6;}
2023
  >$cache_file
2024
fi
2025
 
2026
# Check that the precious variables saved in the cache have kept the same
2027
# value.
2028
ac_cache_corrupted=false
2029
for ac_var in $ac_precious_vars; do
2030
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2031
  eval ac_new_set=\$ac_env_${ac_var}_set
2032
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2033
  eval ac_new_val=\$ac_env_${ac_var}_value
2034
  case $ac_old_set,$ac_new_set in
2035
    set,)
2036
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2037
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2038
      ac_cache_corrupted=: ;;
2039
    ,set)
2040
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2041
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2042
      ac_cache_corrupted=: ;;
2043
    ,);;
2044
    *)
2045
      if test "x$ac_old_val" != "x$ac_new_val"; then
2046
        # differences in whitespace do not lead to failure.
2047
        ac_old_val_w=`echo x $ac_old_val`
2048
        ac_new_val_w=`echo x $ac_new_val`
2049
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2050
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2051
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2052
          ac_cache_corrupted=:
2053
        else
2054
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2055
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2056
          eval $ac_var=\$ac_old_val
2057
        fi
2058
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2059
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2060
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2061
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2062
      fi;;
2063
  esac
2064
  # Pass precious variables to config.status.
2065
  if test "$ac_new_set" = set; then
2066
    case $ac_new_val in
2067
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2068
    *) ac_arg=$ac_var=$ac_new_val ;;
2069
    esac
2070
    case " $ac_configure_args " in
2071
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2072
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2073
    esac
2074
  fi
2075
done
2076
if $ac_cache_corrupted; then
2077
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2078
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2079
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2080
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2081
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2082
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2083
   { (exit 1); exit 1; }; }
2084
fi
2085
 
2086
 
2087
 
2088
 
2089
 
2090
 
2091
 
2092
 
2093
 
2094
 
2095
 
2096
 
2097
 
2098
 
2099
 
2100
 
2101
 
2102
 
2103
 
2104
 
2105
 
2106
 
2107
 
2108
 
2109
 
2110
ac_ext=c
2111
ac_cpp='$CPP $CPPFLAGS'
2112
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2113
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2114
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2115
 
2116
 
2117
 
2118
 
2119
ac_aux_dir=
2120
for ac_dir in ../../.. "$srcdir"/../../..; do
2121
  if test -f "$ac_dir/install-sh"; then
2122
    ac_aux_dir=$ac_dir
2123
    ac_install_sh="$ac_aux_dir/install-sh -c"
2124
    break
2125
  elif test -f "$ac_dir/install.sh"; then
2126
    ac_aux_dir=$ac_dir
2127
    ac_install_sh="$ac_aux_dir/install.sh -c"
2128
    break
2129
  elif test -f "$ac_dir/shtool"; then
2130
    ac_aux_dir=$ac_dir
2131
    ac_install_sh="$ac_aux_dir/shtool install -c"
2132
    break
2133
  fi
2134
done
2135
if test -z "$ac_aux_dir"; then
2136
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../.. \"$srcdir\"/../../.." >&5
2137
$as_echo "$as_me: error: cannot find install-sh or install.sh in ../../.. \"$srcdir\"/../../.." >&2;}
2138
   { (exit 1); exit 1; }; }
2139
fi
2140
 
2141
# These three variables are undocumented and unsupported,
2142
# and are intended to be withdrawn in a future Autoconf release.
2143
# They can cause serious problems if a builder's source tree is in a directory
2144
# whose full name contains unusual characters.
2145
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2146
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2147
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2148
 
2149
 
2150
 
2151
 
2152
# Make sure we can run config.sub.
2153
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2154
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2155
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2156
   { (exit 1); exit 1; }; }
2157
 
2158
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2159
$as_echo_n "checking build system type... " >&6; }
2160
if test "${ac_cv_build+set}" = set; then
2161
  $as_echo_n "(cached) " >&6
2162
else
2163
  ac_build_alias=$build_alias
2164
test "x$ac_build_alias" = x &&
2165
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2166
test "x$ac_build_alias" = x &&
2167
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2168
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2169
   { (exit 1); exit 1; }; }
2170
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2171
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2172
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2173
   { (exit 1); exit 1; }; }
2174
 
2175
fi
2176
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2177
$as_echo "$ac_cv_build" >&6; }
2178
case $ac_cv_build in
2179
*-*-*) ;;
2180
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2181
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2182
   { (exit 1); exit 1; }; };;
2183
esac
2184
build=$ac_cv_build
2185
ac_save_IFS=$IFS; IFS='-'
2186
set x $ac_cv_build
2187
shift
2188
build_cpu=$1
2189
build_vendor=$2
2190
shift; shift
2191
# Remember, the first character of IFS is used to create $*,
2192
# except with old shells:
2193
build_os=$*
2194
IFS=$ac_save_IFS
2195
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2196
 
2197
 
2198
am__api_version='1.11'
2199
 
2200
# Find a good install program.  We prefer a C program (faster),
2201
# so one script is as good as another.  But avoid the broken or
2202
# incompatible versions:
2203
# SysV /etc/install, /usr/sbin/install
2204
# SunOS /usr/etc/install
2205
# IRIX /sbin/install
2206
# AIX /bin/install
2207
# AmigaOS /C/install, which installs bootblocks on floppy discs
2208
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2209
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2210
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2211
# OS/2's system install, which has a completely different semantic
2212
# ./install, which can be erroneously created by make from ./install.sh.
2213
# Reject install programs that cannot install multiple files.
2214
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2215
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2216
if test -z "$INSTALL"; then
2217
if test "${ac_cv_path_install+set}" = set; then
2218
  $as_echo_n "(cached) " >&6
2219
else
2220
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221
for as_dir in $PATH
2222
do
2223
  IFS=$as_save_IFS
2224
  test -z "$as_dir" && as_dir=.
2225
  # Account for people who put trailing slashes in PATH elements.
2226
case $as_dir/ in
2227
  ./ | .// | /cC/* | \
2228
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2229
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2230
  /usr/ucb/* ) ;;
2231
  *)
2232
    # OSF1 and SCO ODT 3.0 have their own names for install.
2233
    # Don't use installbsd from OSF since it installs stuff as root
2234
    # by default.
2235
    for ac_prog in ginstall scoinst install; do
2236
      for ac_exec_ext in '' $ac_executable_extensions; do
2237
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2238
          if test $ac_prog = install &&
2239
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2240
            # AIX install.  It has an incompatible calling convention.
2241
            :
2242
          elif test $ac_prog = install &&
2243
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2244
            # program-specific install script used by HP pwplus--don't use.
2245
            :
2246
          else
2247
            rm -rf conftest.one conftest.two conftest.dir
2248
            echo one > conftest.one
2249
            echo two > conftest.two
2250
            mkdir conftest.dir
2251
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2252
              test -s conftest.one && test -s conftest.two &&
2253
              test -s conftest.dir/conftest.one &&
2254
              test -s conftest.dir/conftest.two
2255
            then
2256
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2257
              break 3
2258
            fi
2259
          fi
2260
        fi
2261
      done
2262
    done
2263
    ;;
2264
esac
2265
 
2266
done
2267
IFS=$as_save_IFS
2268
 
2269
rm -rf conftest.one conftest.two conftest.dir
2270
 
2271
fi
2272
  if test "${ac_cv_path_install+set}" = set; then
2273
    INSTALL=$ac_cv_path_install
2274
  else
2275
    # As a last resort, use the slow shell script.  Don't cache a
2276
    # value for INSTALL within a source directory, because that will
2277
    # break other packages using the cache if that directory is
2278
    # removed, or if the value is a relative name.
2279
    INSTALL=$ac_install_sh
2280
  fi
2281
fi
2282
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2283
$as_echo "$INSTALL" >&6; }
2284
 
2285
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2286
# It thinks the first close brace ends the variable substitution.
2287
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2288
 
2289
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2290
 
2291
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2292
 
2293
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2294
$as_echo_n "checking whether build environment is sane... " >&6; }
2295
# Just in case
2296
sleep 1
2297
echo timestamp > conftest.file
2298
# Reject unsafe characters in $srcdir or the absolute working directory
2299
# name.  Accept space and tab only in the latter.
2300
am_lf='
2301
'
2302
case `pwd` in
2303
  *[\\\"\#\$\&\'\`$am_lf]*)
2304
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2305
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2306
   { (exit 1); exit 1; }; };;
2307
esac
2308
case $srcdir in
2309
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2310
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2311
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2312
   { (exit 1); exit 1; }; };;
2313
esac
2314
 
2315
# Do `set' in a subshell so we don't clobber the current shell's
2316
# arguments.  Must try -L first in case configure is actually a
2317
# symlink; some systems play weird games with the mod time of symlinks
2318
# (eg FreeBSD returns the mod time of the symlink's containing
2319
# directory).
2320
if (
2321
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2322
   if test "$*" = "X"; then
2323
      # -L didn't work.
2324
      set X `ls -t "$srcdir/configure" conftest.file`
2325
   fi
2326
   rm -f conftest.file
2327
   if test "$*" != "X $srcdir/configure conftest.file" \
2328
      && test "$*" != "X conftest.file $srcdir/configure"; then
2329
 
2330
      # If neither matched, then we have a broken ls.  This can happen
2331
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2332
      # broken ls alias from the environment.  This has actually
2333
      # happened.  Such a system could not be considered "sane".
2334
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2335
alias in your environment" >&5
2336
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2337
alias in your environment" >&2;}
2338
   { (exit 1); exit 1; }; }
2339
   fi
2340
 
2341
   test "$2" = conftest.file
2342
   )
2343
then
2344
   # Ok.
2345
   :
2346
else
2347
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2348
Check your system clock" >&5
2349
$as_echo "$as_me: error: newly created file is older than distributed files!
2350
Check your system clock" >&2;}
2351
   { (exit 1); exit 1; }; }
2352
fi
2353
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2354
$as_echo "yes" >&6; }
2355
test "$program_prefix" != NONE &&
2356
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2357
# Use a double $ so make ignores it.
2358
test "$program_suffix" != NONE &&
2359
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2360
# Double any \ or $.
2361
# By default was `s,x,x', remove it if useless.
2362
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2363
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2364
 
2365
# expand $ac_aux_dir to an absolute path
2366
am_aux_dir=`cd $ac_aux_dir && pwd`
2367
 
2368
if test x"${MISSING+set}" != xset; then
2369
  case $am_aux_dir in
2370
  *\ * | *\     *)
2371
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2372
  *)
2373
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2374
  esac
2375
fi
2376
# Use eval to expand $SHELL
2377
if eval "$MISSING --run true"; then
2378
  am_missing_run="$MISSING --run "
2379
else
2380
  am_missing_run=
2381
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2382
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2383
fi
2384
 
2385
if test x"${install_sh}" != xset; then
2386
  case $am_aux_dir in
2387
  *\ * | *\     *)
2388
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2389
  *)
2390
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2391
  esac
2392
fi
2393
 
2394
# Installed binaries are usually stripped using `strip' when the user
2395
# run `make install-strip'.  However `strip' might not be the right
2396
# tool to use in cross-compilation environments, therefore Automake
2397
# will honor the `STRIP' environment variable to overrule this program.
2398
if test "$cross_compiling" != no; then
2399
  if test -n "$ac_tool_prefix"; then
2400
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2401
set dummy ${ac_tool_prefix}strip; ac_word=$2
2402
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2403
$as_echo_n "checking for $ac_word... " >&6; }
2404
if test "${ac_cv_prog_STRIP+set}" = set; then
2405
  $as_echo_n "(cached) " >&6
2406
else
2407
  if test -n "$STRIP"; then
2408
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2409
else
2410
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411
for as_dir in $PATH
2412
do
2413
  IFS=$as_save_IFS
2414
  test -z "$as_dir" && as_dir=.
2415
  for ac_exec_ext in '' $ac_executable_extensions; do
2416
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2417
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2418
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419
    break 2
2420
  fi
2421
done
2422
done
2423
IFS=$as_save_IFS
2424
 
2425
fi
2426
fi
2427
STRIP=$ac_cv_prog_STRIP
2428
if test -n "$STRIP"; then
2429
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2430
$as_echo "$STRIP" >&6; }
2431
else
2432
  { $as_echo "$as_me:$LINENO: result: no" >&5
2433
$as_echo "no" >&6; }
2434
fi
2435
 
2436
 
2437
fi
2438
if test -z "$ac_cv_prog_STRIP"; then
2439
  ac_ct_STRIP=$STRIP
2440
  # Extract the first word of "strip", so it can be a program name with args.
2441
set dummy strip; ac_word=$2
2442
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2443
$as_echo_n "checking for $ac_word... " >&6; }
2444
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2445
  $as_echo_n "(cached) " >&6
2446
else
2447
  if test -n "$ac_ct_STRIP"; then
2448
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2449
else
2450
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451
for as_dir in $PATH
2452
do
2453
  IFS=$as_save_IFS
2454
  test -z "$as_dir" && as_dir=.
2455
  for ac_exec_ext in '' $ac_executable_extensions; do
2456
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2457
    ac_cv_prog_ac_ct_STRIP="strip"
2458
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459
    break 2
2460
  fi
2461
done
2462
done
2463
IFS=$as_save_IFS
2464
 
2465
fi
2466
fi
2467
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2468
if test -n "$ac_ct_STRIP"; then
2469
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2470
$as_echo "$ac_ct_STRIP" >&6; }
2471
else
2472
  { $as_echo "$as_me:$LINENO: result: no" >&5
2473
$as_echo "no" >&6; }
2474
fi
2475
 
2476
  if test "x$ac_ct_STRIP" = x; then
2477
    STRIP=":"
2478
  else
2479
    case $cross_compiling:$ac_tool_warned in
2480
yes:)
2481
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2482
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2483
ac_tool_warned=yes ;;
2484
esac
2485
    STRIP=$ac_ct_STRIP
2486
  fi
2487
else
2488
  STRIP="$ac_cv_prog_STRIP"
2489
fi
2490
 
2491
fi
2492
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2493
 
2494
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2495
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2496
if test -z "$MKDIR_P"; then
2497
  if test "${ac_cv_path_mkdir+set}" = set; then
2498
  $as_echo_n "(cached) " >&6
2499
else
2500
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2502
do
2503
  IFS=$as_save_IFS
2504
  test -z "$as_dir" && as_dir=.
2505
  for ac_prog in mkdir gmkdir; do
2506
         for ac_exec_ext in '' $ac_executable_extensions; do
2507
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2508
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2509
             'mkdir (GNU coreutils) '* | \
2510
             'mkdir (coreutils) '* | \
2511
             'mkdir (fileutils) '4.1*)
2512
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2513
               break 3;;
2514
           esac
2515
         done
2516
       done
2517
done
2518
IFS=$as_save_IFS
2519
 
2520
fi
2521
 
2522
  if test "${ac_cv_path_mkdir+set}" = set; then
2523
    MKDIR_P="$ac_cv_path_mkdir -p"
2524
  else
2525
    # As a last resort, use the slow shell script.  Don't cache a
2526
    # value for MKDIR_P within a source directory, because that will
2527
    # break other packages using the cache if that directory is
2528
    # removed, or if the value is a relative name.
2529
    test -d ./--version && rmdir ./--version
2530
    MKDIR_P="$ac_install_sh -d"
2531
  fi
2532
fi
2533
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2534
$as_echo "$MKDIR_P" >&6; }
2535
 
2536
mkdir_p="$MKDIR_P"
2537
case $mkdir_p in
2538
  [\\/$]* | ?:[\\/]*) ;;
2539
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2540
esac
2541
 
2542
for ac_prog in gawk mawk nawk awk
2543
do
2544
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2545
set dummy $ac_prog; ac_word=$2
2546
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2547
$as_echo_n "checking for $ac_word... " >&6; }
2548
if test "${ac_cv_prog_AWK+set}" = set; then
2549
  $as_echo_n "(cached) " >&6
2550
else
2551
  if test -n "$AWK"; then
2552
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2553
else
2554
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555
for as_dir in $PATH
2556
do
2557
  IFS=$as_save_IFS
2558
  test -z "$as_dir" && as_dir=.
2559
  for ac_exec_ext in '' $ac_executable_extensions; do
2560
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561
    ac_cv_prog_AWK="$ac_prog"
2562
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563
    break 2
2564
  fi
2565
done
2566
done
2567
IFS=$as_save_IFS
2568
 
2569
fi
2570
fi
2571
AWK=$ac_cv_prog_AWK
2572
if test -n "$AWK"; then
2573
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2574
$as_echo "$AWK" >&6; }
2575
else
2576
  { $as_echo "$as_me:$LINENO: result: no" >&5
2577
$as_echo "no" >&6; }
2578
fi
2579
 
2580
 
2581
  test -n "$AWK" && break
2582
done
2583
 
2584
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2585
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2586
set x ${MAKE-make}
2587
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2588
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2589
  $as_echo_n "(cached) " >&6
2590
else
2591
  cat >conftest.make <<\_ACEOF
2592
SHELL = /bin/sh
2593
all:
2594
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2595
_ACEOF
2596
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2597
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2598
  *@@@%%%=?*=@@@%%%*)
2599
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2600
  *)
2601
    eval ac_cv_prog_make_${ac_make}_set=no;;
2602
esac
2603
rm -f conftest.make
2604
fi
2605
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2606
  { $as_echo "$as_me:$LINENO: result: yes" >&5
2607
$as_echo "yes" >&6; }
2608
  SET_MAKE=
2609
else
2610
  { $as_echo "$as_me:$LINENO: result: no" >&5
2611
$as_echo "no" >&6; }
2612
  SET_MAKE="MAKE=${MAKE-make}"
2613
fi
2614
 
2615
rm -rf .tst 2>/dev/null
2616
mkdir .tst 2>/dev/null
2617
if test -d .tst; then
2618
  am__leading_dot=.
2619
else
2620
  am__leading_dot=_
2621
fi
2622
rmdir .tst 2>/dev/null
2623
 
2624
DEPDIR="${am__leading_dot}deps"
2625
 
2626
ac_config_commands="$ac_config_commands depfiles"
2627
 
2628
 
2629
am_make=${MAKE-make}
2630
cat > confinc << 'END'
2631
am__doit:
2632
        @echo this is the am__doit target
2633
.PHONY: am__doit
2634
END
2635
# If we don't find an include directive, just comment out the code.
2636
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2637
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2638
am__include="#"
2639
am__quote=
2640
_am_result=none
2641
# First try GNU make style include.
2642
echo "include confinc" > confmf
2643
# Ignore all kinds of additional output from `make'.
2644
case `$am_make -s -f confmf 2> /dev/null` in #(
2645
*the\ am__doit\ target*)
2646
  am__include=include
2647
  am__quote=
2648
  _am_result=GNU
2649
  ;;
2650
esac
2651
# Now try BSD make style include.
2652
if test "$am__include" = "#"; then
2653
   echo '.include "confinc"' > confmf
2654
   case `$am_make -s -f confmf 2> /dev/null` in #(
2655
   *the\ am__doit\ target*)
2656
     am__include=.include
2657
     am__quote="\""
2658
     _am_result=BSD
2659
     ;;
2660
   esac
2661
fi
2662
 
2663
 
2664
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2665
$as_echo "$_am_result" >&6; }
2666
rm -f confinc confmf
2667
 
2668
# Check whether --enable-dependency-tracking was given.
2669
if test "${enable_dependency_tracking+set}" = set; then
2670
  enableval=$enable_dependency_tracking;
2671
fi
2672
 
2673
if test "x$enable_dependency_tracking" != xno; then
2674
  am_depcomp="$ac_aux_dir/depcomp"
2675
  AMDEPBACKSLASH='\'
2676
fi
2677
 if test "x$enable_dependency_tracking" != xno; then
2678
  AMDEP_TRUE=
2679
  AMDEP_FALSE='#'
2680
else
2681
  AMDEP_TRUE='#'
2682
  AMDEP_FALSE=
2683
fi
2684
 
2685
 
2686
 
2687
# Check whether --enable-multilib was given.
2688
if test "${enable_multilib+set}" = set; then
2689
  enableval=$enable_multilib; case "${enableval}" in
2690
  yes) multilib=yes ;;
2691
  no)  multilib=no ;;
2692
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2693
$as_echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2694
   { (exit 1); exit 1; }; } ;;
2695
 esac
2696
else
2697
  multilib=yes
2698
fi
2699
 
2700
# Check whether --enable-target-optspace was given.
2701
if test "${enable_target_optspace+set}" = set; then
2702
  enableval=$enable_target_optspace; case "${enableval}" in
2703
  yes) target_optspace=yes ;;
2704
  no)  target_optspace=no ;;
2705
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2706
$as_echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2707
   { (exit 1); exit 1; }; } ;;
2708
 esac
2709
else
2710
  target_optspace=
2711
fi
2712
 
2713
# Check whether --enable-malloc-debugging was given.
2714
if test "${enable_malloc_debugging+set}" = set; then
2715
  enableval=$enable_malloc_debugging; case "${enableval}" in
2716
  yes) malloc_debugging=yes ;;
2717
  no)  malloc_debugging=no ;;
2718
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2719
$as_echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2720
   { (exit 1); exit 1; }; } ;;
2721
 esac
2722
else
2723
  malloc_debugging=
2724
fi
2725
 
2726
# Check whether --enable-newlib-multithread was given.
2727
if test "${enable_newlib_multithread+set}" = set; then
2728
  enableval=$enable_newlib_multithread; case "${enableval}" in
2729
  yes) newlib_multithread=yes ;;
2730
  no)  newlib_multithread=no ;;
2731
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2732
$as_echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2733
   { (exit 1); exit 1; }; } ;;
2734
 esac
2735
else
2736
  newlib_multithread=yes
2737
fi
2738
 
2739
# Check whether --enable-newlib-iconv was given.
2740
if test "${enable_newlib_iconv+set}" = set; then
2741
  enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2742
   case "${enableval}" in
2743
     yes) newlib_iconv=yes ;;
2744
     no)  newlib_iconv=no ;;
2745
     *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2746
$as_echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2747
   { (exit 1); exit 1; }; } ;;
2748
   esac
2749
 fi
2750
else
2751
  newlib_iconv=${newlib_iconv}
2752
fi
2753
 
2754
# Check whether --enable-newlib-elix-level was given.
2755
if test "${enable_newlib_elix_level+set}" = set; then
2756
  enableval=$enable_newlib_elix_level; case "${enableval}" in
2757
  0)   newlib_elix_level=0 ;;
2758
  1)   newlib_elix_level=1 ;;
2759
  2)   newlib_elix_level=2 ;;
2760
  3)   newlib_elix_level=3 ;;
2761
  4)   newlib_elix_level=4 ;;
2762
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2763
$as_echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2764
   { (exit 1); exit 1; }; } ;;
2765
 esac
2766
else
2767
  newlib_elix_level=0
2768
fi
2769
 
2770
# Check whether --enable-newlib-io-float was given.
2771
if test "${enable_newlib_io_float+set}" = set; then
2772
  enableval=$enable_newlib_io_float; case "${enableval}" in
2773
  yes) newlib_io_float=yes ;;
2774
  no)  newlib_io_float=no ;;
2775
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2776
$as_echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2777
   { (exit 1); exit 1; }; } ;;
2778
 esac
2779
else
2780
  newlib_io_float=yes
2781
fi
2782
 
2783
# Check whether --enable-newlib-supplied-syscalls was given.
2784
if test "${enable_newlib_supplied_syscalls+set}" = set; then
2785
  enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2786
  yes) newlib_may_supply_syscalls=yes ;;
2787
  no)  newlib_may_supply_syscalls=no ;;
2788
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2789
$as_echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2790
   { (exit 1); exit 1; }; } ;;
2791
 esac
2792
else
2793
  newlib_may_supply_syscalls=yes
2794
fi
2795
 
2796
 if test x${newlib_may_supply_syscalls} = xyes; then
2797
  MAY_SUPPLY_SYSCALLS_TRUE=
2798
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2799
else
2800
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2801
  MAY_SUPPLY_SYSCALLS_FALSE=
2802
fi
2803
 
2804
 
2805
 
2806
test -z "${with_target_subdir}" && with_target_subdir=.
2807
 
2808
if test "${srcdir}" = "."; then
2809
  if test "${with_target_subdir}" != "."; then
2810
    newlib_basedir="${srcdir}/${with_multisrctop}../../.."
2811
  else
2812
    newlib_basedir="${srcdir}/${with_multisrctop}../.."
2813
  fi
2814
else
2815
  newlib_basedir="${srcdir}/../.."
2816
fi
2817
 
2818
 
2819
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2820
$as_echo_n "checking host system type... " >&6; }
2821
if test "${ac_cv_host+set}" = set; then
2822
  $as_echo_n "(cached) " >&6
2823
else
2824
  if test "x$host_alias" = x; then
2825
  ac_cv_host=$ac_cv_build
2826
else
2827
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2828
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2829
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2830
   { (exit 1); exit 1; }; }
2831
fi
2832
 
2833
fi
2834
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2835
$as_echo "$ac_cv_host" >&6; }
2836
case $ac_cv_host in
2837
*-*-*) ;;
2838
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2839
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2840
   { (exit 1); exit 1; }; };;
2841
esac
2842
host=$ac_cv_host
2843
ac_save_IFS=$IFS; IFS='-'
2844
set x $ac_cv_host
2845
shift
2846
host_cpu=$1
2847
host_vendor=$2
2848
shift; shift
2849
# Remember, the first character of IFS is used to create $*,
2850
# except with old shells:
2851
host_os=$*
2852
IFS=$ac_save_IFS
2853
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2854
 
2855
 
2856
 
2857
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2858
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2859
  # is not polluted with repeated "-I."
2860
  am__isrc=' -I$(srcdir)'
2861
  # test to see if srcdir already configured
2862
  if test -f $srcdir/config.status; then
2863
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2864
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2865
   { (exit 1); exit 1; }; }
2866
  fi
2867
fi
2868
 
2869
# test whether we have cygpath
2870
if test -z "$CYGPATH_W"; then
2871
  if (cygpath --version) >/dev/null 2>/dev/null; then
2872
    CYGPATH_W='cygpath -w'
2873
  else
2874
    CYGPATH_W=echo
2875
  fi
2876
fi
2877
 
2878
 
2879
# Define the identity of the package.
2880
 PACKAGE='newlib'
2881
 VERSION='1.18.0'
2882
 
2883
 
2884
# Some tools Automake needs.
2885
 
2886
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2887
 
2888
 
2889
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2890
 
2891
 
2892
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2893
 
2894
 
2895
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2896
 
2897
 
2898
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2899
 
2900
# We need awk for the "check" target.  The system "awk" is bad on
2901
# some platforms.
2902
# Always define AMTAR for backward compatibility.
2903
 
2904
AMTAR=${AMTAR-"${am_missing_run}tar"}
2905
 
2906
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2907
 
2908
 
2909
 
2910
 
2911
 
2912
 
2913
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2914
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2915
# are probably using a cross compiler, which will not be able to fully
2916
# link an executable.  This should really be fixed in autoconf
2917
# itself.
2918
 
2919
 
2920
 
2921
 
2922
 
2923
 
2924
 
2925
# Extract the first word of "gcc", so it can be a program name with args.
2926
set dummy gcc; ac_word=$2
2927
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2928
$as_echo_n "checking for $ac_word... " >&6; }
2929
if test "${ac_cv_prog_CC+set}" = set; then
2930
  $as_echo_n "(cached) " >&6
2931
else
2932
  if test -n "$CC"; then
2933
  ac_cv_prog_CC="$CC" # Let the user override the test.
2934
else
2935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936
for as_dir in $PATH
2937
do
2938
  IFS=$as_save_IFS
2939
  test -z "$as_dir" && as_dir=.
2940
  for ac_exec_ext in '' $ac_executable_extensions; do
2941
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942
    ac_cv_prog_CC="gcc"
2943
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944
    break 2
2945
  fi
2946
done
2947
done
2948
IFS=$as_save_IFS
2949
 
2950
fi
2951
fi
2952
CC=$ac_cv_prog_CC
2953
if test -n "$CC"; then
2954
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2955
$as_echo "$CC" >&6; }
2956
else
2957
  { $as_echo "$as_me:$LINENO: result: no" >&5
2958
$as_echo "no" >&6; }
2959
fi
2960
 
2961
 
2962
 
2963
depcc="$CC"   am_compiler_list=
2964
 
2965
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2966
$as_echo_n "checking dependency style of $depcc... " >&6; }
2967
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2968
  $as_echo_n "(cached) " >&6
2969
else
2970
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2971
  # We make a subdir and do the tests there.  Otherwise we can end up
2972
  # making bogus files that we don't know about and never remove.  For
2973
  # instance it was reported that on HP-UX the gcc test will end up
2974
  # making a dummy file named `D' -- because `-MD' means `put the output
2975
  # in D'.
2976
  mkdir conftest.dir
2977
  # Copy depcomp to subdir because otherwise we won't find it if we're
2978
  # using a relative directory.
2979
  cp "$am_depcomp" conftest.dir
2980
  cd conftest.dir
2981
  # We will build objects and dependencies in a subdirectory because
2982
  # it helps to detect inapplicable dependency modes.  For instance
2983
  # both Tru64's cc and ICC support -MD to output dependencies as a
2984
  # side effect of compilation, but ICC will put the dependencies in
2985
  # the current directory while Tru64 will put them in the object
2986
  # directory.
2987
  mkdir sub
2988
 
2989
  am_cv_CC_dependencies_compiler_type=none
2990
  if test "$am_compiler_list" = ""; then
2991
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2992
  fi
2993
  am__universal=false
2994
  case " $depcc " in #(
2995
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
2996
     esac
2997
 
2998
  for depmode in $am_compiler_list; do
2999
    # Setup a source with many dependencies, because some compilers
3000
    # like to wrap large dependency lists on column 80 (with \), and
3001
    # we should not choose a depcomp mode which is confused by this.
3002
    #
3003
    # We need to recreate these files for each test, as the compiler may
3004
    # overwrite some of them when testing with obscure command lines.
3005
    # This happens at least with the AIX C compiler.
3006
    : > sub/conftest.c
3007
    for i in 1 2 3 4 5 6; do
3008
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3009
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3010
      # Solaris 8's {/usr,}/bin/sh.
3011
      touch sub/conftst$i.h
3012
    done
3013
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3014
 
3015
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3016
    # mode.  It turns out that the SunPro C++ compiler does not properly
3017
    # handle `-M -o', and we need to detect this.  Also, some Intel
3018
    # versions had trouble with output in subdirs
3019
    am__obj=sub/conftest.${OBJEXT-o}
3020
    am__minus_obj="-o $am__obj"
3021
    case $depmode in
3022
    gcc)
3023
      # This depmode causes a compiler race in universal mode.
3024
      test "$am__universal" = false || continue
3025
      ;;
3026
    nosideeffect)
3027
      # after this tag, mechanisms are not by side-effect, so they'll
3028
      # only be used when explicitly requested
3029
      if test "x$enable_dependency_tracking" = xyes; then
3030
        continue
3031
      else
3032
        break
3033
      fi
3034
      ;;
3035
    msvisualcpp | msvcmsys)
3036
      # This compiler won't grok `-c -o', but also, the minuso test has
3037
      # not run yet.  These depmodes are late enough in the game, and
3038
      # so weak that their functioning should not be impacted.
3039
      am__obj=conftest.${OBJEXT-o}
3040
      am__minus_obj=
3041
      ;;
3042
    none) break ;;
3043
    esac
3044
    if depmode=$depmode \
3045
       source=sub/conftest.c object=$am__obj \
3046
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3047
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3048
         >/dev/null 2>conftest.err &&
3049
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3050
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3051
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3052
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3053
      # icc doesn't choke on unknown options, it will just issue warnings
3054
      # or remarks (even with -Werror).  So we grep stderr for any message
3055
      # that says an option was ignored or not supported.
3056
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3057
      #   icc: Command line warning: ignoring option '-M'; no argument required
3058
      # The diagnosis changed in icc 8.0:
3059
      #   icc: Command line remark: option '-MP' not supported
3060
      if (grep 'ignoring option' conftest.err ||
3061
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3062
        am_cv_CC_dependencies_compiler_type=$depmode
3063
        break
3064
      fi
3065
    fi
3066
  done
3067
 
3068
  cd ..
3069
  rm -rf conftest.dir
3070
else
3071
  am_cv_CC_dependencies_compiler_type=none
3072
fi
3073
 
3074
fi
3075
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3076
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3077
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3078
 
3079
 if
3080
  test "x$enable_dependency_tracking" != xno \
3081
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3082
  am__fastdepCC_TRUE=
3083
  am__fastdepCC_FALSE='#'
3084
else
3085
  am__fastdepCC_TRUE='#'
3086
  am__fastdepCC_FALSE=
3087
fi
3088
 
3089
 
3090
if test -z "$CC"; then
3091
  # Extract the first word of "cc", so it can be a program name with args.
3092
set dummy cc; ac_word=$2
3093
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3094
$as_echo_n "checking for $ac_word... " >&6; }
3095
if test "${ac_cv_prog_CC+set}" = set; then
3096
  $as_echo_n "(cached) " >&6
3097
else
3098
  if test -n "$CC"; then
3099
  ac_cv_prog_CC="$CC" # Let the user override the test.
3100
else
3101
  ac_prog_rejected=no
3102
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103
for as_dir in $PATH
3104
do
3105
  IFS=$as_save_IFS
3106
  test -z "$as_dir" && as_dir=.
3107
  for ac_exec_ext in '' $ac_executable_extensions; do
3108
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3110
       ac_prog_rejected=yes
3111
       continue
3112
     fi
3113
    ac_cv_prog_CC="cc"
3114
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115
    break 2
3116
  fi
3117
done
3118
done
3119
IFS=$as_save_IFS
3120
 
3121
if test $ac_prog_rejected = yes; then
3122
  # We found a bogon in the path, so make sure we never use it.
3123
  set dummy $ac_cv_prog_CC
3124
  shift
3125
  if test $# != 0; then
3126
    # We chose a different compiler from the bogus one.
3127
    # However, it has the same basename, so the bogon will be chosen
3128
    # first if we set CC to just the basename; use the full file name.
3129
    shift
3130
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3131
  fi
3132
fi
3133
fi
3134
fi
3135
CC=$ac_cv_prog_CC
3136
if test -n "$CC"; then
3137
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3138
$as_echo "$CC" >&6; }
3139
else
3140
  { $as_echo "$as_me:$LINENO: result: no" >&5
3141
$as_echo "no" >&6; }
3142
fi
3143
 
3144
 
3145
  test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3146
$as_echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3147
   { (exit 1); exit 1; }; }
3148
fi
3149
 
3150
{ $as_echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
3151
$as_echo_n "checking whether we are using GNU C... " >&6; }
3152
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3153
  $as_echo_n "(cached) " >&6
3154
else
3155
  cat > conftest.c <
3156
#ifdef __GNUC__
3157
  yes;
3158
#endif
3159
EOF
3160
if { ac_try='${CC-cc} -E conftest.c'
3161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162
  (eval $ac_try) 2>&5
3163
  ac_status=$?
3164
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3166
  ac_cv_c_compiler_gnu=yes
3167
else
3168
  ac_cv_c_compiler_gnu=no
3169
fi
3170
fi
3171
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3172
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3173
 
3174
if test $ac_cv_c_compiler_gnu = yes; then
3175
  GCC=yes
3176
  ac_test_CFLAGS="${CFLAGS+set}"
3177
  ac_save_CFLAGS="$CFLAGS"
3178
  ac_test_CFLAGS=${CFLAGS+set}
3179
ac_save_CFLAGS=$CFLAGS
3180
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3181
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3182
if test "${ac_cv_prog_cc_g+set}" = set; then
3183
  $as_echo_n "(cached) " >&6
3184
else
3185
  ac_save_c_werror_flag=$ac_c_werror_flag
3186
   ac_c_werror_flag=yes
3187
   ac_cv_prog_cc_g=no
3188
   CFLAGS="-g"
3189
   cat >conftest.$ac_ext <<_ACEOF
3190
/* confdefs.h.  */
3191
_ACEOF
3192
cat confdefs.h >>conftest.$ac_ext
3193
cat >>conftest.$ac_ext <<_ACEOF
3194
/* end confdefs.h.  */
3195
 
3196
int
3197
main ()
3198
{
3199
 
3200
  ;
3201
  return 0;
3202
}
3203
_ACEOF
3204
rm -f conftest.$ac_objext
3205
if { (ac_try="$ac_compile"
3206
case "(($ac_try" in
3207
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208
  *) ac_try_echo=$ac_try;;
3209
esac
3210
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3211
$as_echo "$ac_try_echo") >&5
3212
  (eval "$ac_compile") 2>conftest.er1
3213
  ac_status=$?
3214
  grep -v '^ *+' conftest.er1 >conftest.err
3215
  rm -f conftest.er1
3216
  cat conftest.err >&5
3217
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218
  (exit $ac_status); } && {
3219
         test -z "$ac_c_werror_flag" ||
3220
         test ! -s conftest.err
3221
       } && test -s conftest.$ac_objext; then
3222
  ac_cv_prog_cc_g=yes
3223
else
3224
  $as_echo "$as_me: failed program was:" >&5
3225
sed 's/^/| /' conftest.$ac_ext >&5
3226
 
3227
        CFLAGS=""
3228
      cat >conftest.$ac_ext <<_ACEOF
3229
/* confdefs.h.  */
3230
_ACEOF
3231
cat confdefs.h >>conftest.$ac_ext
3232
cat >>conftest.$ac_ext <<_ACEOF
3233
/* end confdefs.h.  */
3234
 
3235
int
3236
main ()
3237
{
3238
 
3239
  ;
3240
  return 0;
3241
}
3242
_ACEOF
3243
rm -f conftest.$ac_objext
3244
if { (ac_try="$ac_compile"
3245
case "(($ac_try" in
3246
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247
  *) ac_try_echo=$ac_try;;
3248
esac
3249
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3250
$as_echo "$ac_try_echo") >&5
3251
  (eval "$ac_compile") 2>conftest.er1
3252
  ac_status=$?
3253
  grep -v '^ *+' conftest.er1 >conftest.err
3254
  rm -f conftest.er1
3255
  cat conftest.err >&5
3256
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257
  (exit $ac_status); } && {
3258
         test -z "$ac_c_werror_flag" ||
3259
         test ! -s conftest.err
3260
       } && test -s conftest.$ac_objext; then
3261
  :
3262
else
3263
  $as_echo "$as_me: failed program was:" >&5
3264
sed 's/^/| /' conftest.$ac_ext >&5
3265
 
3266
        ac_c_werror_flag=$ac_save_c_werror_flag
3267
         CFLAGS="-g"
3268
         cat >conftest.$ac_ext <<_ACEOF
3269
/* confdefs.h.  */
3270
_ACEOF
3271
cat confdefs.h >>conftest.$ac_ext
3272
cat >>conftest.$ac_ext <<_ACEOF
3273
/* end confdefs.h.  */
3274
 
3275
int
3276
main ()
3277
{
3278
 
3279
  ;
3280
  return 0;
3281
}
3282
_ACEOF
3283
rm -f conftest.$ac_objext
3284
if { (ac_try="$ac_compile"
3285
case "(($ac_try" in
3286
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287
  *) ac_try_echo=$ac_try;;
3288
esac
3289
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3290
$as_echo "$ac_try_echo") >&5
3291
  (eval "$ac_compile") 2>conftest.er1
3292
  ac_status=$?
3293
  grep -v '^ *+' conftest.er1 >conftest.err
3294
  rm -f conftest.er1
3295
  cat conftest.err >&5
3296
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297
  (exit $ac_status); } && {
3298
         test -z "$ac_c_werror_flag" ||
3299
         test ! -s conftest.err
3300
       } && test -s conftest.$ac_objext; then
3301
  ac_cv_prog_cc_g=yes
3302
else
3303
  $as_echo "$as_me: failed program was:" >&5
3304
sed 's/^/| /' conftest.$ac_ext >&5
3305
 
3306
 
3307
fi
3308
 
3309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310
fi
3311
 
3312
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313
fi
3314
 
3315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3316
   ac_c_werror_flag=$ac_save_c_werror_flag
3317
fi
3318
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3319
$as_echo "$ac_cv_prog_cc_g" >&6; }
3320
if test "$ac_test_CFLAGS" = set; then
3321
  CFLAGS=$ac_save_CFLAGS
3322
elif test $ac_cv_prog_cc_g = yes; then
3323
  if test "$GCC" = yes; then
3324
    CFLAGS="-g -O2"
3325
  else
3326
    CFLAGS="-g"
3327
  fi
3328
else
3329
  if test "$GCC" = yes; then
3330
    CFLAGS="-O2"
3331
  else
3332
    CFLAGS=
3333
  fi
3334
fi
3335
  if test "$ac_test_CFLAGS" = set; then
3336
    CFLAGS="$ac_save_CFLAGS"
3337
  elif test $ac_cv_prog_cc_g = yes; then
3338
    CFLAGS="-g -O2"
3339
  else
3340
    CFLAGS="-O2"
3341
  fi
3342
else
3343
  GCC=
3344
  test "${CFLAGS+set}" = set || CFLAGS="-g"
3345
fi
3346
 
3347
 
3348
if test -n "$ac_tool_prefix"; then
3349
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3350
set dummy ${ac_tool_prefix}as; ac_word=$2
3351
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3352
$as_echo_n "checking for $ac_word... " >&6; }
3353
if test "${ac_cv_prog_AS+set}" = set; then
3354
  $as_echo_n "(cached) " >&6
3355
else
3356
  if test -n "$AS"; then
3357
  ac_cv_prog_AS="$AS" # Let the user override the test.
3358
else
3359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360
for as_dir in $PATH
3361
do
3362
  IFS=$as_save_IFS
3363
  test -z "$as_dir" && as_dir=.
3364
  for ac_exec_ext in '' $ac_executable_extensions; do
3365
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366
    ac_cv_prog_AS="${ac_tool_prefix}as"
3367
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368
    break 2
3369
  fi
3370
done
3371
done
3372
IFS=$as_save_IFS
3373
 
3374
fi
3375
fi
3376
AS=$ac_cv_prog_AS
3377
if test -n "$AS"; then
3378
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
3379
$as_echo "$AS" >&6; }
3380
else
3381
  { $as_echo "$as_me:$LINENO: result: no" >&5
3382
$as_echo "no" >&6; }
3383
fi
3384
 
3385
 
3386
fi
3387
if test -z "$ac_cv_prog_AS"; then
3388
  ac_ct_AS=$AS
3389
  # Extract the first word of "as", so it can be a program name with args.
3390
set dummy as; ac_word=$2
3391
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3392
$as_echo_n "checking for $ac_word... " >&6; }
3393
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3394
  $as_echo_n "(cached) " >&6
3395
else
3396
  if test -n "$ac_ct_AS"; then
3397
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3398
else
3399
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400
for as_dir in $PATH
3401
do
3402
  IFS=$as_save_IFS
3403
  test -z "$as_dir" && as_dir=.
3404
  for ac_exec_ext in '' $ac_executable_extensions; do
3405
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3406
    ac_cv_prog_ac_ct_AS="as"
3407
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3408
    break 2
3409
  fi
3410
done
3411
done
3412
IFS=$as_save_IFS
3413
 
3414
fi
3415
fi
3416
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3417
if test -n "$ac_ct_AS"; then
3418
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3419
$as_echo "$ac_ct_AS" >&6; }
3420
else
3421
  { $as_echo "$as_me:$LINENO: result: no" >&5
3422
$as_echo "no" >&6; }
3423
fi
3424
 
3425
  if test "x$ac_ct_AS" = x; then
3426
    AS=""
3427
  else
3428
    case $cross_compiling:$ac_tool_warned in
3429
yes:)
3430
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3431
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3432
ac_tool_warned=yes ;;
3433
esac
3434
    AS=$ac_ct_AS
3435
  fi
3436
else
3437
  AS="$ac_cv_prog_AS"
3438
fi
3439
 
3440
if test -n "$ac_tool_prefix"; then
3441
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3442
set dummy ${ac_tool_prefix}ar; ac_word=$2
3443
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3444
$as_echo_n "checking for $ac_word... " >&6; }
3445
if test "${ac_cv_prog_AR+set}" = set; then
3446
  $as_echo_n "(cached) " >&6
3447
else
3448
  if test -n "$AR"; then
3449
  ac_cv_prog_AR="$AR" # Let the user override the test.
3450
else
3451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452
for as_dir in $PATH
3453
do
3454
  IFS=$as_save_IFS
3455
  test -z "$as_dir" && as_dir=.
3456
  for ac_exec_ext in '' $ac_executable_extensions; do
3457
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458
    ac_cv_prog_AR="${ac_tool_prefix}ar"
3459
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460
    break 2
3461
  fi
3462
done
3463
done
3464
IFS=$as_save_IFS
3465
 
3466
fi
3467
fi
3468
AR=$ac_cv_prog_AR
3469
if test -n "$AR"; then
3470
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
3471
$as_echo "$AR" >&6; }
3472
else
3473
  { $as_echo "$as_me:$LINENO: result: no" >&5
3474
$as_echo "no" >&6; }
3475
fi
3476
 
3477
 
3478
fi
3479
if test -z "$ac_cv_prog_AR"; then
3480
  ac_ct_AR=$AR
3481
  # Extract the first word of "ar", so it can be a program name with args.
3482
set dummy ar; ac_word=$2
3483
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3484
$as_echo_n "checking for $ac_word... " >&6; }
3485
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3486
  $as_echo_n "(cached) " >&6
3487
else
3488
  if test -n "$ac_ct_AR"; then
3489
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3490
else
3491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492
for as_dir in $PATH
3493
do
3494
  IFS=$as_save_IFS
3495
  test -z "$as_dir" && as_dir=.
3496
  for ac_exec_ext in '' $ac_executable_extensions; do
3497
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498
    ac_cv_prog_ac_ct_AR="ar"
3499
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500
    break 2
3501
  fi
3502
done
3503
done
3504
IFS=$as_save_IFS
3505
 
3506
fi
3507
fi
3508
ac_ct_AR=$ac_cv_prog_ac_ct_AR
3509
if test -n "$ac_ct_AR"; then
3510
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3511
$as_echo "$ac_ct_AR" >&6; }
3512
else
3513
  { $as_echo "$as_me:$LINENO: result: no" >&5
3514
$as_echo "no" >&6; }
3515
fi
3516
 
3517
  if test "x$ac_ct_AR" = x; then
3518
    AR=""
3519
  else
3520
    case $cross_compiling:$ac_tool_warned in
3521
yes:)
3522
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3523
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3524
ac_tool_warned=yes ;;
3525
esac
3526
    AR=$ac_ct_AR
3527
  fi
3528
else
3529
  AR="$ac_cv_prog_AR"
3530
fi
3531
 
3532
if test -n "$ac_tool_prefix"; then
3533
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3534
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3535
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3536
$as_echo_n "checking for $ac_word... " >&6; }
3537
if test "${ac_cv_prog_RANLIB+set}" = set; then
3538
  $as_echo_n "(cached) " >&6
3539
else
3540
  if test -n "$RANLIB"; then
3541
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3542
else
3543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544
for as_dir in $PATH
3545
do
3546
  IFS=$as_save_IFS
3547
  test -z "$as_dir" && as_dir=.
3548
  for ac_exec_ext in '' $ac_executable_extensions; do
3549
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3551
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3552
    break 2
3553
  fi
3554
done
3555
done
3556
IFS=$as_save_IFS
3557
 
3558
fi
3559
fi
3560
RANLIB=$ac_cv_prog_RANLIB
3561
if test -n "$RANLIB"; then
3562
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3563
$as_echo "$RANLIB" >&6; }
3564
else
3565
  { $as_echo "$as_me:$LINENO: result: no" >&5
3566
$as_echo "no" >&6; }
3567
fi
3568
 
3569
 
3570
fi
3571
if test -z "$ac_cv_prog_RANLIB"; then
3572
  ac_ct_RANLIB=$RANLIB
3573
  # Extract the first word of "ranlib", so it can be a program name with args.
3574
set dummy ranlib; ac_word=$2
3575
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3576
$as_echo_n "checking for $ac_word... " >&6; }
3577
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3578
  $as_echo_n "(cached) " >&6
3579
else
3580
  if test -n "$ac_ct_RANLIB"; then
3581
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3582
else
3583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584
for as_dir in $PATH
3585
do
3586
  IFS=$as_save_IFS
3587
  test -z "$as_dir" && as_dir=.
3588
  for ac_exec_ext in '' $ac_executable_extensions; do
3589
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3591
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3592
    break 2
3593
  fi
3594
done
3595
done
3596
IFS=$as_save_IFS
3597
 
3598
fi
3599
fi
3600
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3601
if test -n "$ac_ct_RANLIB"; then
3602
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3603
$as_echo "$ac_ct_RANLIB" >&6; }
3604
else
3605
  { $as_echo "$as_me:$LINENO: result: no" >&5
3606
$as_echo "no" >&6; }
3607
fi
3608
 
3609
  if test "x$ac_ct_RANLIB" = x; then
3610
    RANLIB=":"
3611
  else
3612
    case $cross_compiling:$ac_tool_warned in
3613
yes:)
3614
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3615
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3616
ac_tool_warned=yes ;;
3617
esac
3618
    RANLIB=$ac_ct_RANLIB
3619
  fi
3620
else
3621
  RANLIB="$ac_cv_prog_RANLIB"
3622
fi
3623
 
3624
if test -n "$ac_tool_prefix"; then
3625
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3626
set dummy ${ac_tool_prefix}readelf; ac_word=$2
3627
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3628
$as_echo_n "checking for $ac_word... " >&6; }
3629
if test "${ac_cv_prog_READELF+set}" = set; then
3630
  $as_echo_n "(cached) " >&6
3631
else
3632
  if test -n "$READELF"; then
3633
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
3634
else
3635
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636
for as_dir in $PATH
3637
do
3638
  IFS=$as_save_IFS
3639
  test -z "$as_dir" && as_dir=.
3640
  for ac_exec_ext in '' $ac_executable_extensions; do
3641
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3643
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644
    break 2
3645
  fi
3646
done
3647
done
3648
IFS=$as_save_IFS
3649
 
3650
fi
3651
fi
3652
READELF=$ac_cv_prog_READELF
3653
if test -n "$READELF"; then
3654
  { $as_echo "$as_me:$LINENO: result: $READELF" >&5
3655
$as_echo "$READELF" >&6; }
3656
else
3657
  { $as_echo "$as_me:$LINENO: result: no" >&5
3658
$as_echo "no" >&6; }
3659
fi
3660
 
3661
 
3662
fi
3663
if test -z "$ac_cv_prog_READELF"; then
3664
  ac_ct_READELF=$READELF
3665
  # Extract the first word of "readelf", so it can be a program name with args.
3666
set dummy readelf; ac_word=$2
3667
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3668
$as_echo_n "checking for $ac_word... " >&6; }
3669
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
3670
  $as_echo_n "(cached) " >&6
3671
else
3672
  if test -n "$ac_ct_READELF"; then
3673
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3674
else
3675
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676
for as_dir in $PATH
3677
do
3678
  IFS=$as_save_IFS
3679
  test -z "$as_dir" && as_dir=.
3680
  for ac_exec_ext in '' $ac_executable_extensions; do
3681
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3682
    ac_cv_prog_ac_ct_READELF="readelf"
3683
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684
    break 2
3685
  fi
3686
done
3687
done
3688
IFS=$as_save_IFS
3689
 
3690
fi
3691
fi
3692
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3693
if test -n "$ac_ct_READELF"; then
3694
  { $as_echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
3695
$as_echo "$ac_ct_READELF" >&6; }
3696
else
3697
  { $as_echo "$as_me:$LINENO: result: no" >&5
3698
$as_echo "no" >&6; }
3699
fi
3700
 
3701
  if test "x$ac_ct_READELF" = x; then
3702
    READELF=":"
3703
  else
3704
    case $cross_compiling:$ac_tool_warned in
3705
yes:)
3706
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3707
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3708
ac_tool_warned=yes ;;
3709
esac
3710
    READELF=$ac_ct_READELF
3711
  fi
3712
else
3713
  READELF="$ac_cv_prog_READELF"
3714
fi
3715
 
3716
 
3717
# Find a good install program.  We prefer a C program (faster),
3718
# so one script is as good as another.  But avoid the broken or
3719
# incompatible versions:
3720
# SysV /etc/install, /usr/sbin/install
3721
# SunOS /usr/etc/install
3722
# IRIX /sbin/install
3723
# AIX /bin/install
3724
# AmigaOS /C/install, which installs bootblocks on floppy discs
3725
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3726
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3727
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3728
# OS/2's system install, which has a completely different semantic
3729
# ./install, which can be erroneously created by make from ./install.sh.
3730
# Reject install programs that cannot install multiple files.
3731
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3732
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3733
if test -z "$INSTALL"; then
3734
if test "${ac_cv_path_install+set}" = set; then
3735
  $as_echo_n "(cached) " >&6
3736
else
3737
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738
for as_dir in $PATH
3739
do
3740
  IFS=$as_save_IFS
3741
  test -z "$as_dir" && as_dir=.
3742
  # Account for people who put trailing slashes in PATH elements.
3743
case $as_dir/ in
3744
  ./ | .// | /cC/* | \
3745
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3746
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3747
  /usr/ucb/* ) ;;
3748
  *)
3749
    # OSF1 and SCO ODT 3.0 have their own names for install.
3750
    # Don't use installbsd from OSF since it installs stuff as root
3751
    # by default.
3752
    for ac_prog in ginstall scoinst install; do
3753
      for ac_exec_ext in '' $ac_executable_extensions; do
3754
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3755
          if test $ac_prog = install &&
3756
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3757
            # AIX install.  It has an incompatible calling convention.
3758
            :
3759
          elif test $ac_prog = install &&
3760
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3761
            # program-specific install script used by HP pwplus--don't use.
3762
            :
3763
          else
3764
            rm -rf conftest.one conftest.two conftest.dir
3765
            echo one > conftest.one
3766
            echo two > conftest.two
3767
            mkdir conftest.dir
3768
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3769
              test -s conftest.one && test -s conftest.two &&
3770
              test -s conftest.dir/conftest.one &&
3771
              test -s conftest.dir/conftest.two
3772
            then
3773
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3774
              break 3
3775
            fi
3776
          fi
3777
        fi
3778
      done
3779
    done
3780
    ;;
3781
esac
3782
 
3783
done
3784
IFS=$as_save_IFS
3785
 
3786
rm -rf conftest.one conftest.two conftest.dir
3787
 
3788
fi
3789
  if test "${ac_cv_path_install+set}" = set; then
3790
    INSTALL=$ac_cv_path_install
3791
  else
3792
    # As a last resort, use the slow shell script.  Don't cache a
3793
    # value for INSTALL within a source directory, because that will
3794
    # break other packages using the cache if that directory is
3795
    # removed, or if the value is a relative name.
3796
    INSTALL=$ac_install_sh
3797
  fi
3798
fi
3799
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3800
$as_echo "$INSTALL" >&6; }
3801
 
3802
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3803
# It thinks the first close brace ends the variable substitution.
3804
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3805
 
3806
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3807
 
3808
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3809
 
3810
 
3811
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
3812
ac_given_INSTALL=$INSTALL
3813
 
3814
 
3815
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3816
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3817
    # Check whether --enable-maintainer-mode was given.
3818
if test "${enable_maintainer_mode+set}" = set; then
3819
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3820
else
3821
  USE_MAINTAINER_MODE=no
3822
fi
3823
 
3824
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3825
$as_echo "$USE_MAINTAINER_MODE" >&6; }
3826
   if test $USE_MAINTAINER_MODE = yes; then
3827
  MAINTAINER_MODE_TRUE=
3828
  MAINTAINER_MODE_FALSE='#'
3829
else
3830
  MAINTAINER_MODE_TRUE='#'
3831
  MAINTAINER_MODE_FALSE=
3832
fi
3833
 
3834
  MAINT=$MAINTAINER_MODE_TRUE
3835
 
3836
 
3837
# By default we simply use the C compiler to build assembly code.
3838
 
3839
test "${CCAS+set}" = set || CCAS=$CC
3840
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3841
 
3842
 
3843
 
3844
 
3845
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
3846
# at least currently, we never actually build a program, so we never
3847
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
3848
# fails, because we are probably configuring with a cross compiler
3849
# which can't create executables.  So we include AC_EXEEXT to keep
3850
# automake happy, but we don't execute it, since we don't care about
3851
# the result.
3852
if false; then
3853
 
3854
  dummy_var=1
3855
fi
3856
 
3857
. ${newlib_basedir}/configure.host
3858
 
3859
newlib_cflags="${newlib_cflags} -fno-builtin"
3860
 
3861
NEWLIB_CFLAGS=${newlib_cflags}
3862
 
3863
 
3864
LDFLAGS=${ldflags}
3865
 
3866
 
3867
 if test x${newlib_elix_level} = x0; then
3868
  ELIX_LEVEL_0_TRUE=
3869
  ELIX_LEVEL_0_FALSE='#'
3870
else
3871
  ELIX_LEVEL_0_TRUE='#'
3872
  ELIX_LEVEL_0_FALSE=
3873
fi
3874
 
3875
 if test x${newlib_elix_level} = x1; then
3876
  ELIX_LEVEL_1_TRUE=
3877
  ELIX_LEVEL_1_FALSE='#'
3878
else
3879
  ELIX_LEVEL_1_TRUE='#'
3880
  ELIX_LEVEL_1_FALSE=
3881
fi
3882
 
3883
 if test x${newlib_elix_level} = x2; then
3884
  ELIX_LEVEL_2_TRUE=
3885
  ELIX_LEVEL_2_FALSE='#'
3886
else
3887
  ELIX_LEVEL_2_TRUE='#'
3888
  ELIX_LEVEL_2_FALSE=
3889
fi
3890
 
3891
 if test x${newlib_elix_level} = x3; then
3892
  ELIX_LEVEL_3_TRUE=
3893
  ELIX_LEVEL_3_FALSE='#'
3894
else
3895
  ELIX_LEVEL_3_TRUE='#'
3896
  ELIX_LEVEL_3_FALSE=
3897
fi
3898
 
3899
 if test x${newlib_elix_level} = x4; then
3900
  ELIX_LEVEL_4_TRUE=
3901
  ELIX_LEVEL_4_FALSE='#'
3902
else
3903
  ELIX_LEVEL_4_TRUE='#'
3904
  ELIX_LEVEL_4_FALSE=
3905
fi
3906
 
3907
 
3908
 if test x${use_libtool} = xyes; then
3909
  USE_LIBTOOL_TRUE=
3910
  USE_LIBTOOL_FALSE='#'
3911
else
3912
  USE_LIBTOOL_TRUE='#'
3913
  USE_LIBTOOL_FALSE=
3914
fi
3915
 
3916
 
3917
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3918
# use oext, which is set in configure.host based on the target platform.
3919
OBJEXT=${oext}
3920
 
3921
 
3922
 
3923
 
3924
 
3925
 
3926
 
3927
 
3928
 
3929
 
3930
 
3931
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3932
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3933
if test "${ac_cv_path_SED+set}" = set; then
3934
  $as_echo_n "(cached) " >&6
3935
else
3936
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3937
     for ac_i in 1 2 3 4 5 6 7; do
3938
       ac_script="$ac_script$as_nl$ac_script"
3939
     done
3940
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3941
     $as_unset ac_script || ac_script=
3942
     if test -z "$SED"; then
3943
  ac_path_SED_found=false
3944
  # Loop through the user's path and test for each of PROGNAME-LIST
3945
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946
for as_dir in $PATH
3947
do
3948
  IFS=$as_save_IFS
3949
  test -z "$as_dir" && as_dir=.
3950
  for ac_prog in sed gsed; do
3951
    for ac_exec_ext in '' $ac_executable_extensions; do
3952
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3953
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3954
# Check for GNU ac_path_SED and select it if it is found.
3955
  # Check for GNU $ac_path_SED
3956
case `"$ac_path_SED" --version 2>&1` in
3957
*GNU*)
3958
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3959
*)
3960
  ac_count=0
3961
  $as_echo_n 0123456789 >"conftest.in"
3962
  while :
3963
  do
3964
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3965
    mv "conftest.tmp" "conftest.in"
3966
    cp "conftest.in" "conftest.nl"
3967
    $as_echo '' >> "conftest.nl"
3968
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3969
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3970
    ac_count=`expr $ac_count + 1`
3971
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3972
      # Best one so far, save it but keep looking for a better one
3973
      ac_cv_path_SED="$ac_path_SED"
3974
      ac_path_SED_max=$ac_count
3975
    fi
3976
    # 10*(2^10) chars as input seems more than enough
3977
    test $ac_count -gt 10 && break
3978
  done
3979
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3980
esac
3981
 
3982
      $ac_path_SED_found && break 3
3983
    done
3984
  done
3985
done
3986
IFS=$as_save_IFS
3987
  if test -z "$ac_cv_path_SED"; then
3988
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3989
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3990
   { (exit 1); exit 1; }; }
3991
  fi
3992
else
3993
  ac_cv_path_SED=$SED
3994
fi
3995
 
3996
fi
3997
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3998
$as_echo "$ac_cv_path_SED" >&6; }
3999
 SED="$ac_cv_path_SED"
4000
  rm -f conftest.sed
4001
 
4002
test -z "$SED" && SED=sed
4003
Xsed="$SED -e 1s/^X//"
4004
 
4005
 
4006
 
4007
 
4008
 
4009
 
4010
 
4011
 
4012
 
4013
 
4014
 
4015
if test "${use_libtool}" = "yes"; then
4016
enable_win32_dll=yes
4017
 
4018
case $host in
4019
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4020
  if test -n "$ac_tool_prefix"; then
4021
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4022
set dummy ${ac_tool_prefix}as; ac_word=$2
4023
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4024
$as_echo_n "checking for $ac_word... " >&6; }
4025
if test "${ac_cv_prog_AS+set}" = set; then
4026
  $as_echo_n "(cached) " >&6
4027
else
4028
  if test -n "$AS"; then
4029
  ac_cv_prog_AS="$AS" # Let the user override the test.
4030
else
4031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032
for as_dir in $PATH
4033
do
4034
  IFS=$as_save_IFS
4035
  test -z "$as_dir" && as_dir=.
4036
  for ac_exec_ext in '' $ac_executable_extensions; do
4037
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038
    ac_cv_prog_AS="${ac_tool_prefix}as"
4039
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4040
    break 2
4041
  fi
4042
done
4043
done
4044
IFS=$as_save_IFS
4045
 
4046
fi
4047
fi
4048
AS=$ac_cv_prog_AS
4049
if test -n "$AS"; then
4050
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
4051
$as_echo "$AS" >&6; }
4052
else
4053
  { $as_echo "$as_me:$LINENO: result: no" >&5
4054
$as_echo "no" >&6; }
4055
fi
4056
 
4057
 
4058
fi
4059
if test -z "$ac_cv_prog_AS"; then
4060
  ac_ct_AS=$AS
4061
  # Extract the first word of "as", so it can be a program name with args.
4062
set dummy as; ac_word=$2
4063
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4064
$as_echo_n "checking for $ac_word... " >&6; }
4065
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4066
  $as_echo_n "(cached) " >&6
4067
else
4068
  if test -n "$ac_ct_AS"; then
4069
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4070
else
4071
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072
for as_dir in $PATH
4073
do
4074
  IFS=$as_save_IFS
4075
  test -z "$as_dir" && as_dir=.
4076
  for ac_exec_ext in '' $ac_executable_extensions; do
4077
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4078
    ac_cv_prog_ac_ct_AS="as"
4079
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080
    break 2
4081
  fi
4082
done
4083
done
4084
IFS=$as_save_IFS
4085
 
4086
fi
4087
fi
4088
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4089
if test -n "$ac_ct_AS"; then
4090
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4091
$as_echo "$ac_ct_AS" >&6; }
4092
else
4093
  { $as_echo "$as_me:$LINENO: result: no" >&5
4094
$as_echo "no" >&6; }
4095
fi
4096
 
4097
  if test "x$ac_ct_AS" = x; then
4098
    AS="false"
4099
  else
4100
    case $cross_compiling:$ac_tool_warned in
4101
yes:)
4102
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4103
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4104
ac_tool_warned=yes ;;
4105
esac
4106
    AS=$ac_ct_AS
4107
  fi
4108
else
4109
  AS="$ac_cv_prog_AS"
4110
fi
4111
 
4112
  if test -n "$ac_tool_prefix"; then
4113
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4114
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4115
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4116
$as_echo_n "checking for $ac_word... " >&6; }
4117
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4118
  $as_echo_n "(cached) " >&6
4119
else
4120
  if test -n "$DLLTOOL"; then
4121
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4122
else
4123
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124
for as_dir in $PATH
4125
do
4126
  IFS=$as_save_IFS
4127
  test -z "$as_dir" && as_dir=.
4128
  for ac_exec_ext in '' $ac_executable_extensions; do
4129
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4130
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4131
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132
    break 2
4133
  fi
4134
done
4135
done
4136
IFS=$as_save_IFS
4137
 
4138
fi
4139
fi
4140
DLLTOOL=$ac_cv_prog_DLLTOOL
4141
if test -n "$DLLTOOL"; then
4142
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4143
$as_echo "$DLLTOOL" >&6; }
4144
else
4145
  { $as_echo "$as_me:$LINENO: result: no" >&5
4146
$as_echo "no" >&6; }
4147
fi
4148
 
4149
 
4150
fi
4151
if test -z "$ac_cv_prog_DLLTOOL"; then
4152
  ac_ct_DLLTOOL=$DLLTOOL
4153
  # Extract the first word of "dlltool", so it can be a program name with args.
4154
set dummy dlltool; ac_word=$2
4155
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4156
$as_echo_n "checking for $ac_word... " >&6; }
4157
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4158
  $as_echo_n "(cached) " >&6
4159
else
4160
  if test -n "$ac_ct_DLLTOOL"; then
4161
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4162
else
4163
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164
for as_dir in $PATH
4165
do
4166
  IFS=$as_save_IFS
4167
  test -z "$as_dir" && as_dir=.
4168
  for ac_exec_ext in '' $ac_executable_extensions; do
4169
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4170
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4171
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172
    break 2
4173
  fi
4174
done
4175
done
4176
IFS=$as_save_IFS
4177
 
4178
fi
4179
fi
4180
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4181
if test -n "$ac_ct_DLLTOOL"; then
4182
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4183
$as_echo "$ac_ct_DLLTOOL" >&6; }
4184
else
4185
  { $as_echo "$as_me:$LINENO: result: no" >&5
4186
$as_echo "no" >&6; }
4187
fi
4188
 
4189
  if test "x$ac_ct_DLLTOOL" = x; then
4190
    DLLTOOL="false"
4191
  else
4192
    case $cross_compiling:$ac_tool_warned in
4193
yes:)
4194
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4195
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4196
ac_tool_warned=yes ;;
4197
esac
4198
    DLLTOOL=$ac_ct_DLLTOOL
4199
  fi
4200
else
4201
  DLLTOOL="$ac_cv_prog_DLLTOOL"
4202
fi
4203
 
4204
  if test -n "$ac_tool_prefix"; then
4205
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4206
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4207
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4208
$as_echo_n "checking for $ac_word... " >&6; }
4209
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4210
  $as_echo_n "(cached) " >&6
4211
else
4212
  if test -n "$OBJDUMP"; then
4213
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4214
else
4215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216
for as_dir in $PATH
4217
do
4218
  IFS=$as_save_IFS
4219
  test -z "$as_dir" && as_dir=.
4220
  for ac_exec_ext in '' $ac_executable_extensions; do
4221
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4223
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224
    break 2
4225
  fi
4226
done
4227
done
4228
IFS=$as_save_IFS
4229
 
4230
fi
4231
fi
4232
OBJDUMP=$ac_cv_prog_OBJDUMP
4233
if test -n "$OBJDUMP"; then
4234
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4235
$as_echo "$OBJDUMP" >&6; }
4236
else
4237
  { $as_echo "$as_me:$LINENO: result: no" >&5
4238
$as_echo "no" >&6; }
4239
fi
4240
 
4241
 
4242
fi
4243
if test -z "$ac_cv_prog_OBJDUMP"; then
4244
  ac_ct_OBJDUMP=$OBJDUMP
4245
  # Extract the first word of "objdump", so it can be a program name with args.
4246
set dummy objdump; ac_word=$2
4247
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4248
$as_echo_n "checking for $ac_word... " >&6; }
4249
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4250
  $as_echo_n "(cached) " >&6
4251
else
4252
  if test -n "$ac_ct_OBJDUMP"; then
4253
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4254
else
4255
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256
for as_dir in $PATH
4257
do
4258
  IFS=$as_save_IFS
4259
  test -z "$as_dir" && as_dir=.
4260
  for ac_exec_ext in '' $ac_executable_extensions; do
4261
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4262
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4263
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4264
    break 2
4265
  fi
4266
done
4267
done
4268
IFS=$as_save_IFS
4269
 
4270
fi
4271
fi
4272
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4273
if test -n "$ac_ct_OBJDUMP"; then
4274
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4275
$as_echo "$ac_ct_OBJDUMP" >&6; }
4276
else
4277
  { $as_echo "$as_me:$LINENO: result: no" >&5
4278
$as_echo "no" >&6; }
4279
fi
4280
 
4281
  if test "x$ac_ct_OBJDUMP" = x; then
4282
    OBJDUMP="false"
4283
  else
4284
    case $cross_compiling:$ac_tool_warned in
4285
yes:)
4286
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4287
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4288
ac_tool_warned=yes ;;
4289
esac
4290
    OBJDUMP=$ac_ct_OBJDUMP
4291
  fi
4292
else
4293
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4294
fi
4295
 
4296
  ;;
4297
esac
4298
 
4299
test -z "$AS" && AS=as
4300
 
4301
 
4302
 
4303
 
4304
 
4305
test -z "$DLLTOOL" && DLLTOOL=dlltool
4306
 
4307
 
4308
 
4309
 
4310
 
4311
test -z "$OBJDUMP" && OBJDUMP=objdump
4312
 
4313
 
4314
 
4315
 
4316
 
4317
 
4318
 
4319
case `pwd` in
4320
  *\ * | *\     *)
4321
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4322
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4323
esac
4324
 
4325
 
4326
 
4327
macro_version='2.2.6'
4328
macro_revision='1.3012'
4329
 
4330
 
4331
 
4332
 
4333
 
4334
 
4335
 
4336
 
4337
 
4338
 
4339
 
4340
 
4341
 
4342
ltmain="$ac_aux_dir/ltmain.sh"
4343
 
4344
ac_ext=c
4345
ac_cpp='$CPP $CPPFLAGS'
4346
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349
if test -n "$ac_tool_prefix"; then
4350
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4351
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4352
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4353
$as_echo_n "checking for $ac_word... " >&6; }
4354
if test "${ac_cv_prog_CC+set}" = set; then
4355
  $as_echo_n "(cached) " >&6
4356
else
4357
  if test -n "$CC"; then
4358
  ac_cv_prog_CC="$CC" # Let the user override the test.
4359
else
4360
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361
for as_dir in $PATH
4362
do
4363
  IFS=$as_save_IFS
4364
  test -z "$as_dir" && as_dir=.
4365
  for ac_exec_ext in '' $ac_executable_extensions; do
4366
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4368
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369
    break 2
4370
  fi
4371
done
4372
done
4373
IFS=$as_save_IFS
4374
 
4375
fi
4376
fi
4377
CC=$ac_cv_prog_CC
4378
if test -n "$CC"; then
4379
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4380
$as_echo "$CC" >&6; }
4381
else
4382
  { $as_echo "$as_me:$LINENO: result: no" >&5
4383
$as_echo "no" >&6; }
4384
fi
4385
 
4386
 
4387
fi
4388
if test -z "$ac_cv_prog_CC"; then
4389
  ac_ct_CC=$CC
4390
  # Extract the first word of "gcc", so it can be a program name with args.
4391
set dummy gcc; ac_word=$2
4392
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4393
$as_echo_n "checking for $ac_word... " >&6; }
4394
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4395
  $as_echo_n "(cached) " >&6
4396
else
4397
  if test -n "$ac_ct_CC"; then
4398
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4399
else
4400
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401
for as_dir in $PATH
4402
do
4403
  IFS=$as_save_IFS
4404
  test -z "$as_dir" && as_dir=.
4405
  for ac_exec_ext in '' $ac_executable_extensions; do
4406
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4407
    ac_cv_prog_ac_ct_CC="gcc"
4408
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409
    break 2
4410
  fi
4411
done
4412
done
4413
IFS=$as_save_IFS
4414
 
4415
fi
4416
fi
4417
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4418
if test -n "$ac_ct_CC"; then
4419
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4420
$as_echo "$ac_ct_CC" >&6; }
4421
else
4422
  { $as_echo "$as_me:$LINENO: result: no" >&5
4423
$as_echo "no" >&6; }
4424
fi
4425
 
4426
  if test "x$ac_ct_CC" = x; then
4427
    CC=""
4428
  else
4429
    case $cross_compiling:$ac_tool_warned in
4430
yes:)
4431
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4432
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4433
ac_tool_warned=yes ;;
4434
esac
4435
    CC=$ac_ct_CC
4436
  fi
4437
else
4438
  CC="$ac_cv_prog_CC"
4439
fi
4440
 
4441
if test -z "$CC"; then
4442
          if test -n "$ac_tool_prefix"; then
4443
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4444
set dummy ${ac_tool_prefix}cc; ac_word=$2
4445
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4446
$as_echo_n "checking for $ac_word... " >&6; }
4447
if test "${ac_cv_prog_CC+set}" = set; then
4448
  $as_echo_n "(cached) " >&6
4449
else
4450
  if test -n "$CC"; then
4451
  ac_cv_prog_CC="$CC" # Let the user override the test.
4452
else
4453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454
for as_dir in $PATH
4455
do
4456
  IFS=$as_save_IFS
4457
  test -z "$as_dir" && as_dir=.
4458
  for ac_exec_ext in '' $ac_executable_extensions; do
4459
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4461
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462
    break 2
4463
  fi
4464
done
4465
done
4466
IFS=$as_save_IFS
4467
 
4468
fi
4469
fi
4470
CC=$ac_cv_prog_CC
4471
if test -n "$CC"; then
4472
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4473
$as_echo "$CC" >&6; }
4474
else
4475
  { $as_echo "$as_me:$LINENO: result: no" >&5
4476
$as_echo "no" >&6; }
4477
fi
4478
 
4479
 
4480
  fi
4481
fi
4482
if test -z "$CC"; then
4483
  # Extract the first word of "cc", so it can be a program name with args.
4484
set dummy cc; ac_word=$2
4485
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4486
$as_echo_n "checking for $ac_word... " >&6; }
4487
if test "${ac_cv_prog_CC+set}" = set; then
4488
  $as_echo_n "(cached) " >&6
4489
else
4490
  if test -n "$CC"; then
4491
  ac_cv_prog_CC="$CC" # Let the user override the test.
4492
else
4493
  ac_prog_rejected=no
4494
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495
for as_dir in $PATH
4496
do
4497
  IFS=$as_save_IFS
4498
  test -z "$as_dir" && as_dir=.
4499
  for ac_exec_ext in '' $ac_executable_extensions; do
4500
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4501
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4502
       ac_prog_rejected=yes
4503
       continue
4504
     fi
4505
    ac_cv_prog_CC="cc"
4506
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507
    break 2
4508
  fi
4509
done
4510
done
4511
IFS=$as_save_IFS
4512
 
4513
if test $ac_prog_rejected = yes; then
4514
  # We found a bogon in the path, so make sure we never use it.
4515
  set dummy $ac_cv_prog_CC
4516
  shift
4517
  if test $# != 0; then
4518
    # We chose a different compiler from the bogus one.
4519
    # However, it has the same basename, so the bogon will be chosen
4520
    # first if we set CC to just the basename; use the full file name.
4521
    shift
4522
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4523
  fi
4524
fi
4525
fi
4526
fi
4527
CC=$ac_cv_prog_CC
4528
if test -n "$CC"; then
4529
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4530
$as_echo "$CC" >&6; }
4531
else
4532
  { $as_echo "$as_me:$LINENO: result: no" >&5
4533
$as_echo "no" >&6; }
4534
fi
4535
 
4536
 
4537
fi
4538
if test -z "$CC"; then
4539
  if test -n "$ac_tool_prefix"; then
4540
  for ac_prog in cl.exe
4541
  do
4542
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4543
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4544
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4545
$as_echo_n "checking for $ac_word... " >&6; }
4546
if test "${ac_cv_prog_CC+set}" = set; then
4547
  $as_echo_n "(cached) " >&6
4548
else
4549
  if test -n "$CC"; then
4550
  ac_cv_prog_CC="$CC" # Let the user override the test.
4551
else
4552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553
for as_dir in $PATH
4554
do
4555
  IFS=$as_save_IFS
4556
  test -z "$as_dir" && as_dir=.
4557
  for ac_exec_ext in '' $ac_executable_extensions; do
4558
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4560
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561
    break 2
4562
  fi
4563
done
4564
done
4565
IFS=$as_save_IFS
4566
 
4567
fi
4568
fi
4569
CC=$ac_cv_prog_CC
4570
if test -n "$CC"; then
4571
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4572
$as_echo "$CC" >&6; }
4573
else
4574
  { $as_echo "$as_me:$LINENO: result: no" >&5
4575
$as_echo "no" >&6; }
4576
fi
4577
 
4578
 
4579
    test -n "$CC" && break
4580
  done
4581
fi
4582
if test -z "$CC"; then
4583
  ac_ct_CC=$CC
4584
  for ac_prog in cl.exe
4585
do
4586
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4587
set dummy $ac_prog; ac_word=$2
4588
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4589
$as_echo_n "checking for $ac_word... " >&6; }
4590
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4591
  $as_echo_n "(cached) " >&6
4592
else
4593
  if test -n "$ac_ct_CC"; then
4594
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4595
else
4596
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597
for as_dir in $PATH
4598
do
4599
  IFS=$as_save_IFS
4600
  test -z "$as_dir" && as_dir=.
4601
  for ac_exec_ext in '' $ac_executable_extensions; do
4602
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4603
    ac_cv_prog_ac_ct_CC="$ac_prog"
4604
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605
    break 2
4606
  fi
4607
done
4608
done
4609
IFS=$as_save_IFS
4610
 
4611
fi
4612
fi
4613
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4614
if test -n "$ac_ct_CC"; then
4615
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4616
$as_echo "$ac_ct_CC" >&6; }
4617
else
4618
  { $as_echo "$as_me:$LINENO: result: no" >&5
4619
$as_echo "no" >&6; }
4620
fi
4621
 
4622
 
4623
  test -n "$ac_ct_CC" && break
4624
done
4625
 
4626
  if test "x$ac_ct_CC" = x; then
4627
    CC=""
4628
  else
4629
    case $cross_compiling:$ac_tool_warned in
4630
yes:)
4631
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4632
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4633
ac_tool_warned=yes ;;
4634
esac
4635
    CC=$ac_ct_CC
4636
  fi
4637
fi
4638
 
4639
fi
4640
 
4641
 
4642
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4643
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4644
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4645
See \`config.log' for more details." >&5
4646
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4647
See \`config.log' for more details." >&2;}
4648
   { (exit 1); exit 1; }; }; }
4649
 
4650
# Provide some information about the compiler.
4651
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4652
set X $ac_compile
4653
ac_compiler=$2
4654
{ (ac_try="$ac_compiler --version >&5"
4655
case "(($ac_try" in
4656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657
  *) ac_try_echo=$ac_try;;
4658
esac
4659
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4660
$as_echo "$ac_try_echo") >&5
4661
  (eval "$ac_compiler --version >&5") 2>&5
4662
  ac_status=$?
4663
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664
  (exit $ac_status); }
4665
{ (ac_try="$ac_compiler -v >&5"
4666
case "(($ac_try" in
4667
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668
  *) ac_try_echo=$ac_try;;
4669
esac
4670
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4671
$as_echo "$ac_try_echo") >&5
4672
  (eval "$ac_compiler -v >&5") 2>&5
4673
  ac_status=$?
4674
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675
  (exit $ac_status); }
4676
{ (ac_try="$ac_compiler -V >&5"
4677
case "(($ac_try" in
4678
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679
  *) ac_try_echo=$ac_try;;
4680
esac
4681
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682
$as_echo "$ac_try_echo") >&5
4683
  (eval "$ac_compiler -V >&5") 2>&5
4684
  ac_status=$?
4685
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686
  (exit $ac_status); }
4687
 
4688
cat >conftest.$ac_ext <<_ACEOF
4689
/* confdefs.h.  */
4690
_ACEOF
4691
cat confdefs.h >>conftest.$ac_ext
4692
cat >>conftest.$ac_ext <<_ACEOF
4693
/* end confdefs.h.  */
4694
 
4695
int
4696
main ()
4697
{
4698
 
4699
  ;
4700
  return 0;
4701
}
4702
_ACEOF
4703
ac_clean_files_save=$ac_clean_files
4704
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4705
# Try to create an executable without -o first, disregard a.out.
4706
# It will help us diagnose broken compilers, and finding out an intuition
4707
# of exeext.
4708
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4709
$as_echo_n "checking for C compiler default output file name... " >&6; }
4710
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4711
 
4712
# The possible output files:
4713
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4714
 
4715
ac_rmfiles=
4716
for ac_file in $ac_files
4717
do
4718
  case $ac_file in
4719
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4720
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4721
  esac
4722
done
4723
rm -f $ac_rmfiles
4724
 
4725
if { (ac_try="$ac_link_default"
4726
case "(($ac_try" in
4727
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728
  *) ac_try_echo=$ac_try;;
4729
esac
4730
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4731
$as_echo "$ac_try_echo") >&5
4732
  (eval "$ac_link_default") 2>&5
4733
  ac_status=$?
4734
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735
  (exit $ac_status); }; then
4736
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4737
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4738
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4739
# so that the user can short-circuit this test for compilers unknown to
4740
# Autoconf.
4741
for ac_file in $ac_files ''
4742
do
4743
  test -f "$ac_file" || continue
4744
  case $ac_file in
4745
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4746
        ;;
4747
    [ab].out )
4748
        # We found the default executable, but exeext='' is most
4749
        # certainly right.
4750
        break;;
4751
    *.* )
4752
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4753
        then :; else
4754
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4755
        fi
4756
        # We set ac_cv_exeext here because the later test for it is not
4757
        # safe: cross compilers may not add the suffix if given an `-o'
4758
        # argument, so we may need to know it at that point already.
4759
        # Even if this section looks crufty: it has the advantage of
4760
        # actually working.
4761
        break;;
4762
    * )
4763
        break;;
4764
  esac
4765
done
4766
test "$ac_cv_exeext" = no && ac_cv_exeext=
4767
 
4768
else
4769
  ac_file=''
4770
fi
4771
 
4772
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4773
$as_echo "$ac_file" >&6; }
4774
if test -z "$ac_file"; then
4775
  $as_echo "$as_me: failed program was:" >&5
4776
sed 's/^/| /' conftest.$ac_ext >&5
4777
 
4778
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4779
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4780
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4781
See \`config.log' for more details." >&5
4782
$as_echo "$as_me: error: C compiler cannot create executables
4783
See \`config.log' for more details." >&2;}
4784
   { (exit 77); exit 77; }; }; }
4785
fi
4786
 
4787
ac_exeext=$ac_cv_exeext
4788
 
4789
# Check that the compiler produces executables we can run.  If not, either
4790
# the compiler is broken, or we cross compile.
4791
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4792
$as_echo_n "checking whether the C compiler works... " >&6; }
4793
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4794
# If not cross compiling, check that we can run a simple program.
4795
if test "$cross_compiling" != yes; then
4796
  if { ac_try='./$ac_file'
4797
  { (case "(($ac_try" in
4798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799
  *) ac_try_echo=$ac_try;;
4800
esac
4801
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4802
$as_echo "$ac_try_echo") >&5
4803
  (eval "$ac_try") 2>&5
4804
  ac_status=$?
4805
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806
  (exit $ac_status); }; }; then
4807
    cross_compiling=no
4808
  else
4809
    if test "$cross_compiling" = maybe; then
4810
        cross_compiling=yes
4811
    else
4812
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4813
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4814
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4815
If you meant to cross compile, use \`--host'.
4816
See \`config.log' for more details." >&5
4817
$as_echo "$as_me: error: cannot run C compiled programs.
4818
If you meant to cross compile, use \`--host'.
4819
See \`config.log' for more details." >&2;}
4820
   { (exit 1); exit 1; }; }; }
4821
    fi
4822
  fi
4823
fi
4824
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4825
$as_echo "yes" >&6; }
4826
 
4827
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4828
ac_clean_files=$ac_clean_files_save
4829
# Check that the compiler produces executables we can run.  If not, either
4830
# the compiler is broken, or we cross compile.
4831
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4832
$as_echo_n "checking whether we are cross compiling... " >&6; }
4833
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4834
$as_echo "$cross_compiling" >&6; }
4835
 
4836
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4837
$as_echo_n "checking for suffix of executables... " >&6; }
4838
if { (ac_try="$ac_link"
4839
case "(($ac_try" in
4840
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841
  *) ac_try_echo=$ac_try;;
4842
esac
4843
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4844
$as_echo "$ac_try_echo") >&5
4845
  (eval "$ac_link") 2>&5
4846
  ac_status=$?
4847
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848
  (exit $ac_status); }; then
4849
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4850
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4851
# work properly (i.e., refer to `conftest.exe'), while it won't with
4852
# `rm'.
4853
for ac_file in conftest.exe conftest conftest.*; do
4854
  test -f "$ac_file" || continue
4855
  case $ac_file in
4856
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4857
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4858
          break;;
4859
    * ) break;;
4860
  esac
4861
done
4862
else
4863
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4864
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4865
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4866
See \`config.log' for more details." >&5
4867
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4868
See \`config.log' for more details." >&2;}
4869
   { (exit 1); exit 1; }; }; }
4870
fi
4871
 
4872
rm -f conftest$ac_cv_exeext
4873
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4874
$as_echo "$ac_cv_exeext" >&6; }
4875
 
4876
rm -f conftest.$ac_ext
4877
EXEEXT=$ac_cv_exeext
4878
ac_exeext=$EXEEXT
4879
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4880
$as_echo_n "checking for suffix of object files... " >&6; }
4881
if test "${ac_cv_objext+set}" = set; then
4882
  $as_echo_n "(cached) " >&6
4883
else
4884
  cat >conftest.$ac_ext <<_ACEOF
4885
/* confdefs.h.  */
4886
_ACEOF
4887
cat confdefs.h >>conftest.$ac_ext
4888
cat >>conftest.$ac_ext <<_ACEOF
4889
/* end confdefs.h.  */
4890
 
4891
int
4892
main ()
4893
{
4894
 
4895
  ;
4896
  return 0;
4897
}
4898
_ACEOF
4899
rm -f conftest.o conftest.obj
4900
if { (ac_try="$ac_compile"
4901
case "(($ac_try" in
4902
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903
  *) ac_try_echo=$ac_try;;
4904
esac
4905
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4906
$as_echo "$ac_try_echo") >&5
4907
  (eval "$ac_compile") 2>&5
4908
  ac_status=$?
4909
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910
  (exit $ac_status); }; then
4911
  for ac_file in conftest.o conftest.obj conftest.*; do
4912
  test -f "$ac_file" || continue;
4913
  case $ac_file in
4914
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4915
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4916
       break;;
4917
  esac
4918
done
4919
else
4920
  $as_echo "$as_me: failed program was:" >&5
4921
sed 's/^/| /' conftest.$ac_ext >&5
4922
 
4923
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4924
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4925
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4926
See \`config.log' for more details." >&5
4927
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4928
See \`config.log' for more details." >&2;}
4929
   { (exit 1); exit 1; }; }; }
4930
fi
4931
 
4932
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4933
fi
4934
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4935
$as_echo "$ac_cv_objext" >&6; }
4936
OBJEXT=$ac_cv_objext
4937
ac_objext=$OBJEXT
4938
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4939
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4940
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4941
  $as_echo_n "(cached) " >&6
4942
else
4943
  cat >conftest.$ac_ext <<_ACEOF
4944
/* confdefs.h.  */
4945
_ACEOF
4946
cat confdefs.h >>conftest.$ac_ext
4947
cat >>conftest.$ac_ext <<_ACEOF
4948
/* end confdefs.h.  */
4949
 
4950
int
4951
main ()
4952
{
4953
#ifndef __GNUC__
4954
       choke me
4955
#endif
4956
 
4957
  ;
4958
  return 0;
4959
}
4960
_ACEOF
4961
rm -f conftest.$ac_objext
4962
if { (ac_try="$ac_compile"
4963
case "(($ac_try" in
4964
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965
  *) ac_try_echo=$ac_try;;
4966
esac
4967
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4968
$as_echo "$ac_try_echo") >&5
4969
  (eval "$ac_compile") 2>conftest.er1
4970
  ac_status=$?
4971
  grep -v '^ *+' conftest.er1 >conftest.err
4972
  rm -f conftest.er1
4973
  cat conftest.err >&5
4974
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975
  (exit $ac_status); } && {
4976
         test -z "$ac_c_werror_flag" ||
4977
         test ! -s conftest.err
4978
       } && test -s conftest.$ac_objext; then
4979
  ac_compiler_gnu=yes
4980
else
4981
  $as_echo "$as_me: failed program was:" >&5
4982
sed 's/^/| /' conftest.$ac_ext >&5
4983
 
4984
        ac_compiler_gnu=no
4985
fi
4986
 
4987
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4989
 
4990
fi
4991
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4992
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4993
if test $ac_compiler_gnu = yes; then
4994
  GCC=yes
4995
else
4996
  GCC=
4997
fi
4998
ac_test_CFLAGS=${CFLAGS+set}
4999
ac_save_CFLAGS=$CFLAGS
5000
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5001
$as_echo_n "checking whether $CC accepts -g... " >&6; }
5002
if test "${ac_cv_prog_cc_g+set}" = set; then
5003
  $as_echo_n "(cached) " >&6
5004
else
5005
  ac_save_c_werror_flag=$ac_c_werror_flag
5006
   ac_c_werror_flag=yes
5007
   ac_cv_prog_cc_g=no
5008
   CFLAGS="-g"
5009
   cat >conftest.$ac_ext <<_ACEOF
5010
/* confdefs.h.  */
5011
_ACEOF
5012
cat confdefs.h >>conftest.$ac_ext
5013
cat >>conftest.$ac_ext <<_ACEOF
5014
/* end confdefs.h.  */
5015
 
5016
int
5017
main ()
5018
{
5019
 
5020
  ;
5021
  return 0;
5022
}
5023
_ACEOF
5024
rm -f conftest.$ac_objext
5025
if { (ac_try="$ac_compile"
5026
case "(($ac_try" in
5027
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028
  *) ac_try_echo=$ac_try;;
5029
esac
5030
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5031
$as_echo "$ac_try_echo") >&5
5032
  (eval "$ac_compile") 2>conftest.er1
5033
  ac_status=$?
5034
  grep -v '^ *+' conftest.er1 >conftest.err
5035
  rm -f conftest.er1
5036
  cat conftest.err >&5
5037
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038
  (exit $ac_status); } && {
5039
         test -z "$ac_c_werror_flag" ||
5040
         test ! -s conftest.err
5041
       } && test -s conftest.$ac_objext; then
5042
  ac_cv_prog_cc_g=yes
5043
else
5044
  $as_echo "$as_me: failed program was:" >&5
5045
sed 's/^/| /' conftest.$ac_ext >&5
5046
 
5047
        CFLAGS=""
5048
      cat >conftest.$ac_ext <<_ACEOF
5049
/* confdefs.h.  */
5050
_ACEOF
5051
cat confdefs.h >>conftest.$ac_ext
5052
cat >>conftest.$ac_ext <<_ACEOF
5053
/* end confdefs.h.  */
5054
 
5055
int
5056
main ()
5057
{
5058
 
5059
  ;
5060
  return 0;
5061
}
5062
_ACEOF
5063
rm -f conftest.$ac_objext
5064
if { (ac_try="$ac_compile"
5065
case "(($ac_try" in
5066
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067
  *) ac_try_echo=$ac_try;;
5068
esac
5069
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5070
$as_echo "$ac_try_echo") >&5
5071
  (eval "$ac_compile") 2>conftest.er1
5072
  ac_status=$?
5073
  grep -v '^ *+' conftest.er1 >conftest.err
5074
  rm -f conftest.er1
5075
  cat conftest.err >&5
5076
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077
  (exit $ac_status); } && {
5078
         test -z "$ac_c_werror_flag" ||
5079
         test ! -s conftest.err
5080
       } && test -s conftest.$ac_objext; then
5081
  :
5082
else
5083
  $as_echo "$as_me: failed program was:" >&5
5084
sed 's/^/| /' conftest.$ac_ext >&5
5085
 
5086
        ac_c_werror_flag=$ac_save_c_werror_flag
5087
         CFLAGS="-g"
5088
         cat >conftest.$ac_ext <<_ACEOF
5089
/* confdefs.h.  */
5090
_ACEOF
5091
cat confdefs.h >>conftest.$ac_ext
5092
cat >>conftest.$ac_ext <<_ACEOF
5093
/* end confdefs.h.  */
5094
 
5095
int
5096
main ()
5097
{
5098
 
5099
  ;
5100
  return 0;
5101
}
5102
_ACEOF
5103
rm -f conftest.$ac_objext
5104
if { (ac_try="$ac_compile"
5105
case "(($ac_try" in
5106
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107
  *) ac_try_echo=$ac_try;;
5108
esac
5109
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5110
$as_echo "$ac_try_echo") >&5
5111
  (eval "$ac_compile") 2>conftest.er1
5112
  ac_status=$?
5113
  grep -v '^ *+' conftest.er1 >conftest.err
5114
  rm -f conftest.er1
5115
  cat conftest.err >&5
5116
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117
  (exit $ac_status); } && {
5118
         test -z "$ac_c_werror_flag" ||
5119
         test ! -s conftest.err
5120
       } && test -s conftest.$ac_objext; then
5121
  ac_cv_prog_cc_g=yes
5122
else
5123
  $as_echo "$as_me: failed program was:" >&5
5124
sed 's/^/| /' conftest.$ac_ext >&5
5125
 
5126
 
5127
fi
5128
 
5129
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130
fi
5131
 
5132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133
fi
5134
 
5135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136
   ac_c_werror_flag=$ac_save_c_werror_flag
5137
fi
5138
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5139
$as_echo "$ac_cv_prog_cc_g" >&6; }
5140
if test "$ac_test_CFLAGS" = set; then
5141
  CFLAGS=$ac_save_CFLAGS
5142
elif test $ac_cv_prog_cc_g = yes; then
5143
  if test "$GCC" = yes; then
5144
    CFLAGS="-g -O2"
5145
  else
5146
    CFLAGS="-g"
5147
  fi
5148
else
5149
  if test "$GCC" = yes; then
5150
    CFLAGS="-O2"
5151
  else
5152
    CFLAGS=
5153
  fi
5154
fi
5155
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5156
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5157
if test "${ac_cv_prog_cc_c89+set}" = set; then
5158
  $as_echo_n "(cached) " >&6
5159
else
5160
  ac_cv_prog_cc_c89=no
5161
ac_save_CC=$CC
5162
cat >conftest.$ac_ext <<_ACEOF
5163
/* confdefs.h.  */
5164
_ACEOF
5165
cat confdefs.h >>conftest.$ac_ext
5166
cat >>conftest.$ac_ext <<_ACEOF
5167
/* end confdefs.h.  */
5168
#include 
5169
#include 
5170
#include 
5171
#include 
5172
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5173
struct buf { int x; };
5174
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5175
static char *e (p, i)
5176
     char **p;
5177
     int i;
5178
{
5179
  return p[i];
5180
}
5181
static char *f (char * (*g) (char **, int), char **p, ...)
5182
{
5183
  char *s;
5184
  va_list v;
5185
  va_start (v,p);
5186
  s = g (p, va_arg (v,int));
5187
  va_end (v);
5188
  return s;
5189
}
5190
 
5191
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5192
   function prototypes and stuff, but not '\xHH' hex character constants.
5193
   These don't provoke an error unfortunately, instead are silently treated
5194
   as 'x'.  The following induces an error, until -std is added to get
5195
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5196
   array size at least.  It's necessary to write '\x00'==0 to get something
5197
   that's true only with -std.  */
5198
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5199
 
5200
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5201
   inside strings and character constants.  */
5202
#define FOO(x) 'x'
5203
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5204
 
5205
int test (int i, double x);
5206
struct s1 {int (*f) (int a);};
5207
struct s2 {int (*f) (double a);};
5208
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5209
int argc;
5210
char **argv;
5211
int
5212
main ()
5213
{
5214
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5215
  ;
5216
  return 0;
5217
}
5218
_ACEOF
5219
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5220
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5221
do
5222
  CC="$ac_save_CC $ac_arg"
5223
  rm -f conftest.$ac_objext
5224
if { (ac_try="$ac_compile"
5225
case "(($ac_try" in
5226
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227
  *) ac_try_echo=$ac_try;;
5228
esac
5229
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5230
$as_echo "$ac_try_echo") >&5
5231
  (eval "$ac_compile") 2>conftest.er1
5232
  ac_status=$?
5233
  grep -v '^ *+' conftest.er1 >conftest.err
5234
  rm -f conftest.er1
5235
  cat conftest.err >&5
5236
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237
  (exit $ac_status); } && {
5238
         test -z "$ac_c_werror_flag" ||
5239
         test ! -s conftest.err
5240
       } && test -s conftest.$ac_objext; then
5241
  ac_cv_prog_cc_c89=$ac_arg
5242
else
5243
  $as_echo "$as_me: failed program was:" >&5
5244
sed 's/^/| /' conftest.$ac_ext >&5
5245
 
5246
 
5247
fi
5248
 
5249
rm -f core conftest.err conftest.$ac_objext
5250
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5251
done
5252
rm -f conftest.$ac_ext
5253
CC=$ac_save_CC
5254
 
5255
fi
5256
# AC_CACHE_VAL
5257
case "x$ac_cv_prog_cc_c89" in
5258
  x)
5259
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5260
$as_echo "none needed" >&6; } ;;
5261
  xno)
5262
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5263
$as_echo "unsupported" >&6; } ;;
5264
  *)
5265
    CC="$CC $ac_cv_prog_cc_c89"
5266
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5267
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5268
esac
5269
 
5270
 
5271
ac_ext=c
5272
ac_cpp='$CPP $CPPFLAGS'
5273
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5274
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5275
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5276
 
5277
depcc="$CC"   am_compiler_list=
5278
 
5279
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5280
$as_echo_n "checking dependency style of $depcc... " >&6; }
5281
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5282
  $as_echo_n "(cached) " >&6
5283
else
5284
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5285
  # We make a subdir and do the tests there.  Otherwise we can end up
5286
  # making bogus files that we don't know about and never remove.  For
5287
  # instance it was reported that on HP-UX the gcc test will end up
5288
  # making a dummy file named `D' -- because `-MD' means `put the output
5289
  # in D'.
5290
  mkdir conftest.dir
5291
  # Copy depcomp to subdir because otherwise we won't find it if we're
5292
  # using a relative directory.
5293
  cp "$am_depcomp" conftest.dir
5294
  cd conftest.dir
5295
  # We will build objects and dependencies in a subdirectory because
5296
  # it helps to detect inapplicable dependency modes.  For instance
5297
  # both Tru64's cc and ICC support -MD to output dependencies as a
5298
  # side effect of compilation, but ICC will put the dependencies in
5299
  # the current directory while Tru64 will put them in the object
5300
  # directory.
5301
  mkdir sub
5302
 
5303
  am_cv_CC_dependencies_compiler_type=none
5304
  if test "$am_compiler_list" = ""; then
5305
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5306
  fi
5307
  am__universal=false
5308
  case " $depcc " in #(
5309
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5310
     esac
5311
 
5312
  for depmode in $am_compiler_list; do
5313
    # Setup a source with many dependencies, because some compilers
5314
    # like to wrap large dependency lists on column 80 (with \), and
5315
    # we should not choose a depcomp mode which is confused by this.
5316
    #
5317
    # We need to recreate these files for each test, as the compiler may
5318
    # overwrite some of them when testing with obscure command lines.
5319
    # This happens at least with the AIX C compiler.
5320
    : > sub/conftest.c
5321
    for i in 1 2 3 4 5 6; do
5322
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5323
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5324
      # Solaris 8's {/usr,}/bin/sh.
5325
      touch sub/conftst$i.h
5326
    done
5327
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5328
 
5329
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5330
    # mode.  It turns out that the SunPro C++ compiler does not properly
5331
    # handle `-M -o', and we need to detect this.  Also, some Intel
5332
    # versions had trouble with output in subdirs
5333
    am__obj=sub/conftest.${OBJEXT-o}
5334
    am__minus_obj="-o $am__obj"
5335
    case $depmode in
5336
    gcc)
5337
      # This depmode causes a compiler race in universal mode.
5338
      test "$am__universal" = false || continue
5339
      ;;
5340
    nosideeffect)
5341
      # after this tag, mechanisms are not by side-effect, so they'll
5342
      # only be used when explicitly requested
5343
      if test "x$enable_dependency_tracking" = xyes; then
5344
        continue
5345
      else
5346
        break
5347
      fi
5348
      ;;
5349
    msvisualcpp | msvcmsys)
5350
      # This compiler won't grok `-c -o', but also, the minuso test has
5351
      # not run yet.  These depmodes are late enough in the game, and
5352
      # so weak that their functioning should not be impacted.
5353
      am__obj=conftest.${OBJEXT-o}
5354
      am__minus_obj=
5355
      ;;
5356
    none) break ;;
5357
    esac
5358
    if depmode=$depmode \
5359
       source=sub/conftest.c object=$am__obj \
5360
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5361
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5362
         >/dev/null 2>conftest.err &&
5363
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5364
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5365
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5366
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5367
      # icc doesn't choke on unknown options, it will just issue warnings
5368
      # or remarks (even with -Werror).  So we grep stderr for any message
5369
      # that says an option was ignored or not supported.
5370
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5371
      #   icc: Command line warning: ignoring option '-M'; no argument required
5372
      # The diagnosis changed in icc 8.0:
5373
      #   icc: Command line remark: option '-MP' not supported
5374
      if (grep 'ignoring option' conftest.err ||
5375
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5376
        am_cv_CC_dependencies_compiler_type=$depmode
5377
        break
5378
      fi
5379
    fi
5380
  done
5381
 
5382
  cd ..
5383
  rm -rf conftest.dir
5384
else
5385
  am_cv_CC_dependencies_compiler_type=none
5386
fi
5387
 
5388
fi
5389
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5390
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5391
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5392
 
5393
 if
5394
  test "x$enable_dependency_tracking" != xno \
5395
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5396
  am__fastdepCC_TRUE=
5397
  am__fastdepCC_FALSE='#'
5398
else
5399
  am__fastdepCC_TRUE='#'
5400
  am__fastdepCC_FALSE=
5401
fi
5402
 
5403
 
5404
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5405
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5406
if test "${ac_cv_path_GREP+set}" = set; then
5407
  $as_echo_n "(cached) " >&6
5408
else
5409
  if test -z "$GREP"; then
5410
  ac_path_GREP_found=false
5411
  # Loop through the user's path and test for each of PROGNAME-LIST
5412
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5414
do
5415
  IFS=$as_save_IFS
5416
  test -z "$as_dir" && as_dir=.
5417
  for ac_prog in grep ggrep; do
5418
    for ac_exec_ext in '' $ac_executable_extensions; do
5419
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5420
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5421
# Check for GNU ac_path_GREP and select it if it is found.
5422
  # Check for GNU $ac_path_GREP
5423
case `"$ac_path_GREP" --version 2>&1` in
5424
*GNU*)
5425
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5426
*)
5427
  ac_count=0
5428
  $as_echo_n 0123456789 >"conftest.in"
5429
  while :
5430
  do
5431
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5432
    mv "conftest.tmp" "conftest.in"
5433
    cp "conftest.in" "conftest.nl"
5434
    $as_echo 'GREP' >> "conftest.nl"
5435
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5436
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5437
    ac_count=`expr $ac_count + 1`
5438
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5439
      # Best one so far, save it but keep looking for a better one
5440
      ac_cv_path_GREP="$ac_path_GREP"
5441
      ac_path_GREP_max=$ac_count
5442
    fi
5443
    # 10*(2^10) chars as input seems more than enough
5444
    test $ac_count -gt 10 && break
5445
  done
5446
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5447
esac
5448
 
5449
      $ac_path_GREP_found && break 3
5450
    done
5451
  done
5452
done
5453
IFS=$as_save_IFS
5454
  if test -z "$ac_cv_path_GREP"; then
5455
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5456
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5457
   { (exit 1); exit 1; }; }
5458
  fi
5459
else
5460
  ac_cv_path_GREP=$GREP
5461
fi
5462
 
5463
fi
5464
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5465
$as_echo "$ac_cv_path_GREP" >&6; }
5466
 GREP="$ac_cv_path_GREP"
5467
 
5468
 
5469
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5470
$as_echo_n "checking for egrep... " >&6; }
5471
if test "${ac_cv_path_EGREP+set}" = set; then
5472
  $as_echo_n "(cached) " >&6
5473
else
5474
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5475
   then ac_cv_path_EGREP="$GREP -E"
5476
   else
5477
     if test -z "$EGREP"; then
5478
  ac_path_EGREP_found=false
5479
  # Loop through the user's path and test for each of PROGNAME-LIST
5480
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5482
do
5483
  IFS=$as_save_IFS
5484
  test -z "$as_dir" && as_dir=.
5485
  for ac_prog in egrep; do
5486
    for ac_exec_ext in '' $ac_executable_extensions; do
5487
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5488
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5489
# Check for GNU ac_path_EGREP and select it if it is found.
5490
  # Check for GNU $ac_path_EGREP
5491
case `"$ac_path_EGREP" --version 2>&1` in
5492
*GNU*)
5493
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5494
*)
5495
  ac_count=0
5496
  $as_echo_n 0123456789 >"conftest.in"
5497
  while :
5498
  do
5499
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5500
    mv "conftest.tmp" "conftest.in"
5501
    cp "conftest.in" "conftest.nl"
5502
    $as_echo 'EGREP' >> "conftest.nl"
5503
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5504
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5505
    ac_count=`expr $ac_count + 1`
5506
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5507
      # Best one so far, save it but keep looking for a better one
5508
      ac_cv_path_EGREP="$ac_path_EGREP"
5509
      ac_path_EGREP_max=$ac_count
5510
    fi
5511
    # 10*(2^10) chars as input seems more than enough
5512
    test $ac_count -gt 10 && break
5513
  done
5514
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5515
esac
5516
 
5517
      $ac_path_EGREP_found && break 3
5518
    done
5519
  done
5520
done
5521
IFS=$as_save_IFS
5522
  if test -z "$ac_cv_path_EGREP"; then
5523
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5524
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5525
   { (exit 1); exit 1; }; }
5526
  fi
5527
else
5528
  ac_cv_path_EGREP=$EGREP
5529
fi
5530
 
5531
   fi
5532
fi
5533
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5534
$as_echo "$ac_cv_path_EGREP" >&6; }
5535
 EGREP="$ac_cv_path_EGREP"
5536
 
5537
 
5538
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5539
$as_echo_n "checking for fgrep... " >&6; }
5540
if test "${ac_cv_path_FGREP+set}" = set; then
5541
  $as_echo_n "(cached) " >&6
5542
else
5543
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5544
   then ac_cv_path_FGREP="$GREP -F"
5545
   else
5546
     if test -z "$FGREP"; then
5547
  ac_path_FGREP_found=false
5548
  # Loop through the user's path and test for each of PROGNAME-LIST
5549
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5551
do
5552
  IFS=$as_save_IFS
5553
  test -z "$as_dir" && as_dir=.
5554
  for ac_prog in fgrep; do
5555
    for ac_exec_ext in '' $ac_executable_extensions; do
5556
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5557
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5558
# Check for GNU ac_path_FGREP and select it if it is found.
5559
  # Check for GNU $ac_path_FGREP
5560
case `"$ac_path_FGREP" --version 2>&1` in
5561
*GNU*)
5562
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5563
*)
5564
  ac_count=0
5565
  $as_echo_n 0123456789 >"conftest.in"
5566
  while :
5567
  do
5568
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5569
    mv "conftest.tmp" "conftest.in"
5570
    cp "conftest.in" "conftest.nl"
5571
    $as_echo 'FGREP' >> "conftest.nl"
5572
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5573
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5574
    ac_count=`expr $ac_count + 1`
5575
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5576
      # Best one so far, save it but keep looking for a better one
5577
      ac_cv_path_FGREP="$ac_path_FGREP"
5578
      ac_path_FGREP_max=$ac_count
5579
    fi
5580
    # 10*(2^10) chars as input seems more than enough
5581
    test $ac_count -gt 10 && break
5582
  done
5583
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5584
esac
5585
 
5586
      $ac_path_FGREP_found && break 3
5587
    done
5588
  done
5589
done
5590
IFS=$as_save_IFS
5591
  if test -z "$ac_cv_path_FGREP"; then
5592
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5593
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5594
   { (exit 1); exit 1; }; }
5595
  fi
5596
else
5597
  ac_cv_path_FGREP=$FGREP
5598
fi
5599
 
5600
   fi
5601
fi
5602
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5603
$as_echo "$ac_cv_path_FGREP" >&6; }
5604
 FGREP="$ac_cv_path_FGREP"
5605
 
5606
 
5607
test -z "$GREP" && GREP=grep
5608
 
5609
 
5610
 
5611
 
5612
 
5613
 
5614
 
5615
 
5616
 
5617
 
5618
 
5619
 
5620
 
5621
 
5622
 
5623
 
5624
 
5625
 
5626
 
5627
# Check whether --with-gnu-ld was given.
5628
if test "${with_gnu_ld+set}" = set; then
5629
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5630
else
5631
  with_gnu_ld=no
5632
fi
5633
 
5634
ac_prog=ld
5635
if test "$GCC" = yes; then
5636
  # Check if gcc -print-prog-name=ld gives a path.
5637
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5638
$as_echo_n "checking for ld used by $CC... " >&6; }
5639
  case $host in
5640
  *-*-mingw*)
5641
    # gcc leaves a trailing carriage return which upsets mingw
5642
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5643
  *)
5644
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5645
  esac
5646
  case $ac_prog in
5647
    # Accept absolute paths.
5648
    [\\/]* | ?:[\\/]*)
5649
      re_direlt='/[^/][^/]*/\.\./'
5650
      # Canonicalize the pathname of ld
5651
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5652
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5653
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5654
      done
5655
      test -z "$LD" && LD="$ac_prog"
5656
      ;;
5657
  "")
5658
    # If it fails, then pretend we aren't using GCC.
5659
    ac_prog=ld
5660
    ;;
5661
  *)
5662
    # If it is relative, then search for the first ld in PATH.
5663
    with_gnu_ld=unknown
5664
    ;;
5665
  esac
5666
elif test "$with_gnu_ld" = yes; then
5667
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5668
$as_echo_n "checking for GNU ld... " >&6; }
5669
else
5670
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5671
$as_echo_n "checking for non-GNU ld... " >&6; }
5672
fi
5673
if test "${lt_cv_path_LD+set}" = set; then
5674
  $as_echo_n "(cached) " >&6
5675
else
5676
  if test -z "$LD"; then
5677
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5678
  for ac_dir in $PATH; do
5679
    IFS="$lt_save_ifs"
5680
    test -z "$ac_dir" && ac_dir=.
5681
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5682
      lt_cv_path_LD="$ac_dir/$ac_prog"
5683
      # Check to see if the program is GNU ld.  I'd rather use --version,
5684
      # but apparently some variants of GNU ld only accept -v.
5685
      # Break only if it was the GNU/non-GNU ld that we prefer.
5686
      case `"$lt_cv_path_LD" -v 2>&1 
5687
      *GNU* | *'with BFD'*)
5688
        test "$with_gnu_ld" != no && break
5689
        ;;
5690
      *)
5691
        test "$with_gnu_ld" != yes && break
5692
        ;;
5693
      esac
5694
    fi
5695
  done
5696
  IFS="$lt_save_ifs"
5697
else
5698
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5699
fi
5700
fi
5701
 
5702
LD="$lt_cv_path_LD"
5703
if test -n "$LD"; then
5704
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5705
$as_echo "$LD" >&6; }
5706
else
5707
  { $as_echo "$as_me:$LINENO: result: no" >&5
5708
$as_echo "no" >&6; }
5709
fi
5710
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5711
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5712
   { (exit 1); exit 1; }; }
5713
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5714
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5715
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5716
  $as_echo_n "(cached) " >&6
5717
else
5718
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5719
case `$LD -v 2>&1 
5720
*GNU* | *'with BFD'*)
5721
  lt_cv_prog_gnu_ld=yes
5722
  ;;
5723
*)
5724
  lt_cv_prog_gnu_ld=no
5725
  ;;
5726
esac
5727
fi
5728
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5729
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5730
with_gnu_ld=$lt_cv_prog_gnu_ld
5731
 
5732
 
5733
 
5734
 
5735
 
5736
 
5737
 
5738
 
5739
 
5740
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5741
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5742
if test "${lt_cv_path_NM+set}" = set; then
5743
  $as_echo_n "(cached) " >&6
5744
else
5745
  if test -n "$NM"; then
5746
  # Let the user override the test.
5747
  lt_cv_path_NM="$NM"
5748
else
5749
  lt_nm_to_check="${ac_tool_prefix}nm"
5750
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5751
    lt_nm_to_check="$lt_nm_to_check nm"
5752
  fi
5753
  for lt_tmp_nm in $lt_nm_to_check; do
5754
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5755
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5756
      IFS="$lt_save_ifs"
5757
      test -z "$ac_dir" && ac_dir=.
5758
      tmp_nm="$ac_dir/$lt_tmp_nm"
5759
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5760
        # Check to see if the nm accepts a BSD-compat flag.
5761
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5762
        #   nm: unknown option "B" ignored
5763
        # Tru64's nm complains that /dev/null is an invalid object file
5764
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5765
        */dev/null* | *'Invalid file or object type'*)
5766
          lt_cv_path_NM="$tmp_nm -B"
5767
          break
5768
          ;;
5769
        *)
5770
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5771
          */dev/null*)
5772
            lt_cv_path_NM="$tmp_nm -p"
5773
            break
5774
            ;;
5775
          *)
5776
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5777
            continue # so that we can try to find one that supports BSD flags
5778
            ;;
5779
          esac
5780
          ;;
5781
        esac
5782
      fi
5783
    done
5784
    IFS="$lt_save_ifs"
5785
  done
5786
  : ${lt_cv_path_NM=no}
5787
fi
5788
fi
5789
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5790
$as_echo "$lt_cv_path_NM" >&6; }
5791
if test "$lt_cv_path_NM" != "no"; then
5792
  NM="$lt_cv_path_NM"
5793
else
5794
  # Didn't find any BSD compatible name lister, look for dumpbin.
5795
  if test -n "$ac_tool_prefix"; then
5796
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5797
  do
5798
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5799
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5800
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5801
$as_echo_n "checking for $ac_word... " >&6; }
5802
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5803
  $as_echo_n "(cached) " >&6
5804
else
5805
  if test -n "$DUMPBIN"; then
5806
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5807
else
5808
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809
for as_dir in $PATH
5810
do
5811
  IFS=$as_save_IFS
5812
  test -z "$as_dir" && as_dir=.
5813
  for ac_exec_ext in '' $ac_executable_extensions; do
5814
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5816
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5817
    break 2
5818
  fi
5819
done
5820
done
5821
IFS=$as_save_IFS
5822
 
5823
fi
5824
fi
5825
DUMPBIN=$ac_cv_prog_DUMPBIN
5826
if test -n "$DUMPBIN"; then
5827
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5828
$as_echo "$DUMPBIN" >&6; }
5829
else
5830
  { $as_echo "$as_me:$LINENO: result: no" >&5
5831
$as_echo "no" >&6; }
5832
fi
5833
 
5834
 
5835
    test -n "$DUMPBIN" && break
5836
  done
5837
fi
5838
if test -z "$DUMPBIN"; then
5839
  ac_ct_DUMPBIN=$DUMPBIN
5840
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5841
do
5842
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5843
set dummy $ac_prog; ac_word=$2
5844
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5845
$as_echo_n "checking for $ac_word... " >&6; }
5846
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5847
  $as_echo_n "(cached) " >&6
5848
else
5849
  if test -n "$ac_ct_DUMPBIN"; then
5850
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5851
else
5852
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853
for as_dir in $PATH
5854
do
5855
  IFS=$as_save_IFS
5856
  test -z "$as_dir" && as_dir=.
5857
  for ac_exec_ext in '' $ac_executable_extensions; do
5858
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5859
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5860
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861
    break 2
5862
  fi
5863
done
5864
done
5865
IFS=$as_save_IFS
5866
 
5867
fi
5868
fi
5869
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5870
if test -n "$ac_ct_DUMPBIN"; then
5871
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5872
$as_echo "$ac_ct_DUMPBIN" >&6; }
5873
else
5874
  { $as_echo "$as_me:$LINENO: result: no" >&5
5875
$as_echo "no" >&6; }
5876
fi
5877
 
5878
 
5879
  test -n "$ac_ct_DUMPBIN" && break
5880
done
5881
 
5882
  if test "x$ac_ct_DUMPBIN" = x; then
5883
    DUMPBIN=":"
5884
  else
5885
    case $cross_compiling:$ac_tool_warned in
5886
yes:)
5887
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5888
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5889
ac_tool_warned=yes ;;
5890
esac
5891
    DUMPBIN=$ac_ct_DUMPBIN
5892
  fi
5893
fi
5894
 
5895
 
5896
  if test "$DUMPBIN" != ":"; then
5897
    NM="$DUMPBIN"
5898
  fi
5899
fi
5900
test -z "$NM" && NM=nm
5901
 
5902
 
5903
 
5904
 
5905
 
5906
 
5907
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5908
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5909
if test "${lt_cv_nm_interface+set}" = set; then
5910
  $as_echo_n "(cached) " >&6
5911
else
5912
  lt_cv_nm_interface="BSD nm"
5913
  echo "int some_variable = 0;" > conftest.$ac_ext
5914
  (eval echo "\"\$as_me:5914: $ac_compile\"" >&5)
5915
  (eval "$ac_compile" 2>conftest.err)
5916
  cat conftest.err >&5
5917
  (eval echo "\"\$as_me:5917: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5918
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5919
  cat conftest.err >&5
5920
  (eval echo "\"\$as_me:5920: output\"" >&5)
5921
  cat conftest.out >&5
5922
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5923
    lt_cv_nm_interface="MS dumpbin"
5924
  fi
5925
  rm -f conftest*
5926
fi
5927
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5928
$as_echo "$lt_cv_nm_interface" >&6; }
5929
 
5930
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5931
$as_echo_n "checking whether ln -s works... " >&6; }
5932
LN_S=$as_ln_s
5933
if test "$LN_S" = "ln -s"; then
5934
  { $as_echo "$as_me:$LINENO: result: yes" >&5
5935
$as_echo "yes" >&6; }
5936
else
5937
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5938
$as_echo "no, using $LN_S" >&6; }
5939
fi
5940
 
5941
# find the maximum length of command line arguments
5942
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5943
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5944
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5945
  $as_echo_n "(cached) " >&6
5946
else
5947
    i=0
5948
  teststring="ABCD"
5949
 
5950
  case $build_os in
5951
  msdosdjgpp*)
5952
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5953
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5954
    # during glob expansion).  Even if it were fixed, the result of this
5955
    # check would be larger than it should be.
5956
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5957
    ;;
5958
 
5959
  gnu*)
5960
    # Under GNU Hurd, this test is not required because there is
5961
    # no limit to the length of command line arguments.
5962
    # Libtool will interpret -1 as no limit whatsoever
5963
    lt_cv_sys_max_cmd_len=-1;
5964
    ;;
5965
 
5966
  cygwin* | mingw* | cegcc*)
5967
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5968
    # about 5 minutes as the teststring grows exponentially.
5969
    # Worse, since 9x/ME are not pre-emptively multitasking,
5970
    # you end up with a "frozen" computer, even though with patience
5971
    # the test eventually succeeds (with a max line length of 256k).
5972
    # Instead, let's just punt: use the minimum linelength reported by
5973
    # all of the supported platforms: 8192 (on NT/2K/XP).
5974
    lt_cv_sys_max_cmd_len=8192;
5975
    ;;
5976
 
5977
  amigaos*)
5978
    # On AmigaOS with pdksh, this test takes hours, literally.
5979
    # So we just punt and use a minimum line length of 8192.
5980
    lt_cv_sys_max_cmd_len=8192;
5981
    ;;
5982
 
5983
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5984
    # This has been around since 386BSD, at least.  Likely further.
5985
    if test -x /sbin/sysctl; then
5986
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5987
    elif test -x /usr/sbin/sysctl; then
5988
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5989
    else
5990
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5991
    fi
5992
    # And add a safety zone
5993
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5994
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5995
    ;;
5996
 
5997
  interix*)
5998
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5999
    lt_cv_sys_max_cmd_len=196608
6000
    ;;
6001
 
6002
  osf*)
6003
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6004
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6005
    # nice to cause kernel panics so lets avoid the loop below.
6006
    # First set a reasonable default.
6007
    lt_cv_sys_max_cmd_len=16384
6008
    #
6009
    if test -x /sbin/sysconfig; then
6010
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6011
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6012
      esac
6013
    fi
6014
    ;;
6015
  sco3.2v5*)
6016
    lt_cv_sys_max_cmd_len=102400
6017
    ;;
6018
  sysv5* | sco5v6* | sysv4.2uw2*)
6019
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6020
    if test -n "$kargmax"; then
6021
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6022
    else
6023
      lt_cv_sys_max_cmd_len=32768
6024
    fi
6025
    ;;
6026
  *)
6027
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6028
    if test -n "$lt_cv_sys_max_cmd_len"; then
6029
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6030
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6031
    else
6032
      # Make teststring a little bigger before we do anything with it.
6033
      # a 1K string should be a reasonable start.
6034
      for i in 1 2 3 4 5 6 7 8 ; do
6035
        teststring=$teststring$teststring
6036
      done
6037
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6038
      # If test is not a shell built-in, we'll probably end up computing a
6039
      # maximum length that is only half of the actual maximum length, but
6040
      # we can't tell.
6041
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6042
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6043
              test $i != 17 # 1/2 MB should be enough
6044
      do
6045
        i=`expr $i + 1`
6046
        teststring=$teststring$teststring
6047
      done
6048
      # Only check the string length outside the loop.
6049
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6050
      teststring=
6051
      # Add a significant safety factor because C++ compilers can tack on
6052
      # massive amounts of additional arguments before passing them to the
6053
      # linker.  It appears as though 1/2 is a usable value.
6054
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6055
    fi
6056
    ;;
6057
  esac
6058
 
6059
fi
6060
 
6061
if test -n $lt_cv_sys_max_cmd_len ; then
6062
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6063
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6064
else
6065
  { $as_echo "$as_me:$LINENO: result: none" >&5
6066
$as_echo "none" >&6; }
6067
fi
6068
max_cmd_len=$lt_cv_sys_max_cmd_len
6069
 
6070
 
6071
 
6072
 
6073
 
6074
 
6075
: ${CP="cp -f"}
6076
: ${MV="mv -f"}
6077
: ${RM="rm -f"}
6078
 
6079
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6080
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6081
# Try some XSI features
6082
xsi_shell=no
6083
( _lt_dummy="a/b/c"
6084
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6085
      = c,a/b,, \
6086
    && eval 'test $(( 1 + 1 )) -eq 2 \
6087
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6088
  && xsi_shell=yes
6089
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6090
$as_echo "$xsi_shell" >&6; }
6091
 
6092
 
6093
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6094
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6095
lt_shell_append=no
6096
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6097
    >/dev/null 2>&1 \
6098
  && lt_shell_append=yes
6099
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6100
$as_echo "$lt_shell_append" >&6; }
6101
 
6102
 
6103
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6104
  lt_unset=unset
6105
else
6106
  lt_unset=false
6107
fi
6108
 
6109
 
6110
 
6111
 
6112
 
6113
# test EBCDIC or ASCII
6114
case `echo X|tr X '\101'` in
6115
 A) # ASCII based system
6116
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6117
  lt_SP2NL='tr \040 \012'
6118
  lt_NL2SP='tr \015\012 \040\040'
6119
  ;;
6120
 *) # EBCDIC based system
6121
  lt_SP2NL='tr \100 \n'
6122
  lt_NL2SP='tr \r\n \100\100'
6123
  ;;
6124
esac
6125
 
6126
 
6127
 
6128
 
6129
 
6130
 
6131
 
6132
 
6133
 
6134
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6135
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6136
if test "${lt_cv_ld_reload_flag+set}" = set; then
6137
  $as_echo_n "(cached) " >&6
6138
else
6139
  lt_cv_ld_reload_flag='-r'
6140
fi
6141
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6142
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6143
reload_flag=$lt_cv_ld_reload_flag
6144
case $reload_flag in
6145
"" | " "*) ;;
6146
*) reload_flag=" $reload_flag" ;;
6147
esac
6148
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6149
case $host_os in
6150
  darwin*)
6151
    if test "$GCC" = yes; then
6152
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6153
    else
6154
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6155
    fi
6156
    ;;
6157
esac
6158
 
6159
 
6160
 
6161
 
6162
 
6163
 
6164
 
6165
 
6166
 
6167
if test -n "$ac_tool_prefix"; then
6168
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6169
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6170
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6171
$as_echo_n "checking for $ac_word... " >&6; }
6172
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6173
  $as_echo_n "(cached) " >&6
6174
else
6175
  if test -n "$OBJDUMP"; then
6176
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6177
else
6178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179
for as_dir in $PATH
6180
do
6181
  IFS=$as_save_IFS
6182
  test -z "$as_dir" && as_dir=.
6183
  for ac_exec_ext in '' $ac_executable_extensions; do
6184
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6186
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187
    break 2
6188
  fi
6189
done
6190
done
6191
IFS=$as_save_IFS
6192
 
6193
fi
6194
fi
6195
OBJDUMP=$ac_cv_prog_OBJDUMP
6196
if test -n "$OBJDUMP"; then
6197
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6198
$as_echo "$OBJDUMP" >&6; }
6199
else
6200
  { $as_echo "$as_me:$LINENO: result: no" >&5
6201
$as_echo "no" >&6; }
6202
fi
6203
 
6204
 
6205
fi
6206
if test -z "$ac_cv_prog_OBJDUMP"; then
6207
  ac_ct_OBJDUMP=$OBJDUMP
6208
  # Extract the first word of "objdump", so it can be a program name with args.
6209
set dummy objdump; ac_word=$2
6210
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6211
$as_echo_n "checking for $ac_word... " >&6; }
6212
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6213
  $as_echo_n "(cached) " >&6
6214
else
6215
  if test -n "$ac_ct_OBJDUMP"; then
6216
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6217
else
6218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219
for as_dir in $PATH
6220
do
6221
  IFS=$as_save_IFS
6222
  test -z "$as_dir" && as_dir=.
6223
  for ac_exec_ext in '' $ac_executable_extensions; do
6224
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6226
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227
    break 2
6228
  fi
6229
done
6230
done
6231
IFS=$as_save_IFS
6232
 
6233
fi
6234
fi
6235
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6236
if test -n "$ac_ct_OBJDUMP"; then
6237
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6238
$as_echo "$ac_ct_OBJDUMP" >&6; }
6239
else
6240
  { $as_echo "$as_me:$LINENO: result: no" >&5
6241
$as_echo "no" >&6; }
6242
fi
6243
 
6244
  if test "x$ac_ct_OBJDUMP" = x; then
6245
    OBJDUMP="false"
6246
  else
6247
    case $cross_compiling:$ac_tool_warned in
6248
yes:)
6249
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6250
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251
ac_tool_warned=yes ;;
6252
esac
6253
    OBJDUMP=$ac_ct_OBJDUMP
6254
  fi
6255
else
6256
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6257
fi
6258
 
6259
test -z "$OBJDUMP" && OBJDUMP=objdump
6260
 
6261
 
6262
 
6263
 
6264
 
6265
 
6266
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6267
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6268
if test "${lt_cv_deplibs_check_method+set}" = set; then
6269
  $as_echo_n "(cached) " >&6
6270
else
6271
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6272
lt_cv_file_magic_test_file=
6273
lt_cv_deplibs_check_method='unknown'
6274
# Need to set the preceding variable on all platforms that support
6275
# interlibrary dependencies.
6276
# 'none' -- dependencies not supported.
6277
# `unknown' -- same as none, but documents that we really don't know.
6278
# 'pass_all' -- all dependencies passed with no checks.
6279
# 'test_compile' -- check by making test program.
6280
# 'file_magic [[regex]]' -- check by looking for files in library path
6281
# which responds to the $file_magic_cmd with a given extended regex.
6282
# If you have `file' or equivalent on your system and you're not sure
6283
# whether `pass_all' will *always* work, you probably want this one.
6284
 
6285
case $host_os in
6286
aix[4-9]*)
6287
  lt_cv_deplibs_check_method=pass_all
6288
  ;;
6289
 
6290
beos*)
6291
  lt_cv_deplibs_check_method=pass_all
6292
  ;;
6293
 
6294
bsdi[45]*)
6295
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6296
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6297
  lt_cv_file_magic_test_file=/shlib/libc.so
6298
  ;;
6299
 
6300
cygwin*)
6301
  # func_win32_libid is a shell function defined in ltmain.sh
6302
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6303
  lt_cv_file_magic_cmd='func_win32_libid'
6304
  ;;
6305
 
6306
mingw* | pw32*)
6307
  # Base MSYS/MinGW do not provide the 'file' command needed by
6308
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6309
  # unless we find 'file', for example because we are cross-compiling.
6310
  if ( file / ) >/dev/null 2>&1; then
6311
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6312
    lt_cv_file_magic_cmd='func_win32_libid'
6313
  else
6314
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6315
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6316
  fi
6317
  ;;
6318
 
6319
cegcc)
6320
  # use the weaker test based on 'objdump'. See mingw*.
6321
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6322
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6323
  ;;
6324
 
6325
darwin* | rhapsody*)
6326
  lt_cv_deplibs_check_method=pass_all
6327
  ;;
6328
 
6329
freebsd* | dragonfly*)
6330
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6331
    case $host_cpu in
6332
    i*86 )
6333
      # Not sure whether the presence of OpenBSD here was a mistake.
6334
      # Let's accept both of them until this is cleared up.
6335
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6336
      lt_cv_file_magic_cmd=/usr/bin/file
6337
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6338
      ;;
6339
    esac
6340
  else
6341
    lt_cv_deplibs_check_method=pass_all
6342
  fi
6343
  ;;
6344
 
6345
gnu*)
6346
  lt_cv_deplibs_check_method=pass_all
6347
  ;;
6348
 
6349
hpux10.20* | hpux11*)
6350
  lt_cv_file_magic_cmd=/usr/bin/file
6351
  case $host_cpu in
6352
  ia64*)
6353
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6354
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6355
    ;;
6356
  hppa*64*)
6357
    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]'
6358
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6359
    ;;
6360
  *)
6361
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6362
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6363
    ;;
6364
  esac
6365
  ;;
6366
 
6367
interix[3-9]*)
6368
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6369
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6370
  ;;
6371
 
6372
irix5* | irix6* | nonstopux*)
6373
  case $LD in
6374
  *-32|*"-32 ") libmagic=32-bit;;
6375
  *-n32|*"-n32 ") libmagic=N32;;
6376
  *-64|*"-64 ") libmagic=64-bit;;
6377
  *) libmagic=never-match;;
6378
  esac
6379
  lt_cv_deplibs_check_method=pass_all
6380
  ;;
6381
 
6382
# This must be Linux ELF.
6383
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6384
  lt_cv_deplibs_check_method=pass_all
6385
  ;;
6386
 
6387
netbsd*)
6388
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6389
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6390
  else
6391
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6392
  fi
6393
  ;;
6394
 
6395
newos6*)
6396
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6397
  lt_cv_file_magic_cmd=/usr/bin/file
6398
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6399
  ;;
6400
 
6401
*nto* | *qnx*)
6402
  lt_cv_deplibs_check_method=pass_all
6403
  ;;
6404
 
6405
openbsd*)
6406
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6407
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6408
  else
6409
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6410
  fi
6411
  ;;
6412
 
6413
osf3* | osf4* | osf5*)
6414
  lt_cv_deplibs_check_method=pass_all
6415
  ;;
6416
 
6417
rdos*)
6418
  lt_cv_deplibs_check_method=pass_all
6419
  ;;
6420
 
6421
solaris*)
6422
  lt_cv_deplibs_check_method=pass_all
6423
  ;;
6424
 
6425
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6426
  lt_cv_deplibs_check_method=pass_all
6427
  ;;
6428
 
6429
sysv4 | sysv4.3*)
6430
  case $host_vendor in
6431
  motorola)
6432
    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]'
6433
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6434
    ;;
6435
  ncr)
6436
    lt_cv_deplibs_check_method=pass_all
6437
    ;;
6438
  sequent)
6439
    lt_cv_file_magic_cmd='/bin/file'
6440
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6441
    ;;
6442
  sni)
6443
    lt_cv_file_magic_cmd='/bin/file'
6444
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6445
    lt_cv_file_magic_test_file=/lib/libc.so
6446
    ;;
6447
  siemens)
6448
    lt_cv_deplibs_check_method=pass_all
6449
    ;;
6450
  pc)
6451
    lt_cv_deplibs_check_method=pass_all
6452
    ;;
6453
  esac
6454
  ;;
6455
 
6456
tpf*)
6457
  lt_cv_deplibs_check_method=pass_all
6458
  ;;
6459
esac
6460
 
6461
fi
6462
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6463
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6464
file_magic_cmd=$lt_cv_file_magic_cmd
6465
deplibs_check_method=$lt_cv_deplibs_check_method
6466
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6467
 
6468
 
6469
 
6470
 
6471
 
6472
 
6473
 
6474
 
6475
 
6476
 
6477
 
6478
 
6479
if test -n "$ac_tool_prefix"; then
6480
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6481
set dummy ${ac_tool_prefix}ar; ac_word=$2
6482
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6483
$as_echo_n "checking for $ac_word... " >&6; }
6484
if test "${ac_cv_prog_AR+set}" = set; then
6485
  $as_echo_n "(cached) " >&6
6486
else
6487
  if test -n "$AR"; then
6488
  ac_cv_prog_AR="$AR" # Let the user override the test.
6489
else
6490
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491
for as_dir in $PATH
6492
do
6493
  IFS=$as_save_IFS
6494
  test -z "$as_dir" && as_dir=.
6495
  for ac_exec_ext in '' $ac_executable_extensions; do
6496
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6498
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499
    break 2
6500
  fi
6501
done
6502
done
6503
IFS=$as_save_IFS
6504
 
6505
fi
6506
fi
6507
AR=$ac_cv_prog_AR
6508
if test -n "$AR"; then
6509
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6510
$as_echo "$AR" >&6; }
6511
else
6512
  { $as_echo "$as_me:$LINENO: result: no" >&5
6513
$as_echo "no" >&6; }
6514
fi
6515
 
6516
 
6517
fi
6518
if test -z "$ac_cv_prog_AR"; then
6519
  ac_ct_AR=$AR
6520
  # Extract the first word of "ar", so it can be a program name with args.
6521
set dummy ar; ac_word=$2
6522
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6523
$as_echo_n "checking for $ac_word... " >&6; }
6524
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6525
  $as_echo_n "(cached) " >&6
6526
else
6527
  if test -n "$ac_ct_AR"; then
6528
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6529
else
6530
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531
for as_dir in $PATH
6532
do
6533
  IFS=$as_save_IFS
6534
  test -z "$as_dir" && as_dir=.
6535
  for ac_exec_ext in '' $ac_executable_extensions; do
6536
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537
    ac_cv_prog_ac_ct_AR="ar"
6538
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539
    break 2
6540
  fi
6541
done
6542
done
6543
IFS=$as_save_IFS
6544
 
6545
fi
6546
fi
6547
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6548
if test -n "$ac_ct_AR"; then
6549
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6550
$as_echo "$ac_ct_AR" >&6; }
6551
else
6552
  { $as_echo "$as_me:$LINENO: result: no" >&5
6553
$as_echo "no" >&6; }
6554
fi
6555
 
6556
  if test "x$ac_ct_AR" = x; then
6557
    AR="false"
6558
  else
6559
    case $cross_compiling:$ac_tool_warned in
6560
yes:)
6561
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6562
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6563
ac_tool_warned=yes ;;
6564
esac
6565
    AR=$ac_ct_AR
6566
  fi
6567
else
6568
  AR="$ac_cv_prog_AR"
6569
fi
6570
 
6571
test -z "$AR" && AR=ar
6572
test -z "$AR_FLAGS" && AR_FLAGS=cru
6573
 
6574
 
6575
 
6576
 
6577
 
6578
 
6579
 
6580
 
6581
 
6582
 
6583
 
6584
if test -n "$ac_tool_prefix"; then
6585
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6586
set dummy ${ac_tool_prefix}strip; ac_word=$2
6587
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6588
$as_echo_n "checking for $ac_word... " >&6; }
6589
if test "${ac_cv_prog_STRIP+set}" = set; then
6590
  $as_echo_n "(cached) " >&6
6591
else
6592
  if test -n "$STRIP"; then
6593
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6594
else
6595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596
for as_dir in $PATH
6597
do
6598
  IFS=$as_save_IFS
6599
  test -z "$as_dir" && as_dir=.
6600
  for ac_exec_ext in '' $ac_executable_extensions; do
6601
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6603
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604
    break 2
6605
  fi
6606
done
6607
done
6608
IFS=$as_save_IFS
6609
 
6610
fi
6611
fi
6612
STRIP=$ac_cv_prog_STRIP
6613
if test -n "$STRIP"; then
6614
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6615
$as_echo "$STRIP" >&6; }
6616
else
6617
  { $as_echo "$as_me:$LINENO: result: no" >&5
6618
$as_echo "no" >&6; }
6619
fi
6620
 
6621
 
6622
fi
6623
if test -z "$ac_cv_prog_STRIP"; then
6624
  ac_ct_STRIP=$STRIP
6625
  # Extract the first word of "strip", so it can be a program name with args.
6626
set dummy strip; ac_word=$2
6627
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6628
$as_echo_n "checking for $ac_word... " >&6; }
6629
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6630
  $as_echo_n "(cached) " >&6
6631
else
6632
  if test -n "$ac_ct_STRIP"; then
6633
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6634
else
6635
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636
for as_dir in $PATH
6637
do
6638
  IFS=$as_save_IFS
6639
  test -z "$as_dir" && as_dir=.
6640
  for ac_exec_ext in '' $ac_executable_extensions; do
6641
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642
    ac_cv_prog_ac_ct_STRIP="strip"
6643
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644
    break 2
6645
  fi
6646
done
6647
done
6648
IFS=$as_save_IFS
6649
 
6650
fi
6651
fi
6652
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6653
if test -n "$ac_ct_STRIP"; then
6654
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6655
$as_echo "$ac_ct_STRIP" >&6; }
6656
else
6657
  { $as_echo "$as_me:$LINENO: result: no" >&5
6658
$as_echo "no" >&6; }
6659
fi
6660
 
6661
  if test "x$ac_ct_STRIP" = x; then
6662
    STRIP=":"
6663
  else
6664
    case $cross_compiling:$ac_tool_warned in
6665
yes:)
6666
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6667
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668
ac_tool_warned=yes ;;
6669
esac
6670
    STRIP=$ac_ct_STRIP
6671
  fi
6672
else
6673
  STRIP="$ac_cv_prog_STRIP"
6674
fi
6675
 
6676
test -z "$STRIP" && STRIP=:
6677
 
6678
 
6679
 
6680
 
6681
 
6682
 
6683
if test -n "$ac_tool_prefix"; then
6684
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6685
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6686
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6687
$as_echo_n "checking for $ac_word... " >&6; }
6688
if test "${ac_cv_prog_RANLIB+set}" = set; then
6689
  $as_echo_n "(cached) " >&6
6690
else
6691
  if test -n "$RANLIB"; then
6692
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6693
else
6694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695
for as_dir in $PATH
6696
do
6697
  IFS=$as_save_IFS
6698
  test -z "$as_dir" && as_dir=.
6699
  for ac_exec_ext in '' $ac_executable_extensions; do
6700
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6701
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6702
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703
    break 2
6704
  fi
6705
done
6706
done
6707
IFS=$as_save_IFS
6708
 
6709
fi
6710
fi
6711
RANLIB=$ac_cv_prog_RANLIB
6712
if test -n "$RANLIB"; then
6713
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6714
$as_echo "$RANLIB" >&6; }
6715
else
6716
  { $as_echo "$as_me:$LINENO: result: no" >&5
6717
$as_echo "no" >&6; }
6718
fi
6719
 
6720
 
6721
fi
6722
if test -z "$ac_cv_prog_RANLIB"; then
6723
  ac_ct_RANLIB=$RANLIB
6724
  # Extract the first word of "ranlib", so it can be a program name with args.
6725
set dummy ranlib; ac_word=$2
6726
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6727
$as_echo_n "checking for $ac_word... " >&6; }
6728
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6729
  $as_echo_n "(cached) " >&6
6730
else
6731
  if test -n "$ac_ct_RANLIB"; then
6732
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6733
else
6734
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735
for as_dir in $PATH
6736
do
6737
  IFS=$as_save_IFS
6738
  test -z "$as_dir" && as_dir=.
6739
  for ac_exec_ext in '' $ac_executable_extensions; do
6740
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6742
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743
    break 2
6744
  fi
6745
done
6746
done
6747
IFS=$as_save_IFS
6748
 
6749
fi
6750
fi
6751
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6752
if test -n "$ac_ct_RANLIB"; then
6753
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6754
$as_echo "$ac_ct_RANLIB" >&6; }
6755
else
6756
  { $as_echo "$as_me:$LINENO: result: no" >&5
6757
$as_echo "no" >&6; }
6758
fi
6759
 
6760
  if test "x$ac_ct_RANLIB" = x; then
6761
    RANLIB=":"
6762
  else
6763
    case $cross_compiling:$ac_tool_warned in
6764
yes:)
6765
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6766
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6767
ac_tool_warned=yes ;;
6768
esac
6769
    RANLIB=$ac_ct_RANLIB
6770
  fi
6771
else
6772
  RANLIB="$ac_cv_prog_RANLIB"
6773
fi
6774
 
6775
test -z "$RANLIB" && RANLIB=:
6776
 
6777
 
6778
 
6779
 
6780
 
6781
 
6782
# Determine commands to create old-style static archives.
6783
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6784
old_postinstall_cmds='chmod 644 $oldlib'
6785
old_postuninstall_cmds=
6786
 
6787
if test -n "$RANLIB"; then
6788
  case $host_os in
6789
  openbsd*)
6790
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6791
    ;;
6792
  *)
6793
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6794
    ;;
6795
  esac
6796
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6797
fi
6798
 
6799
 
6800
 
6801
 
6802
 
6803
 
6804
 
6805
 
6806
 
6807
 
6808
 
6809
 
6810
 
6811
 
6812
 
6813
 
6814
 
6815
 
6816
 
6817
 
6818
 
6819
 
6820
 
6821
 
6822
 
6823
 
6824
 
6825
 
6826
 
6827
 
6828
 
6829
 
6830
 
6831
 
6832
# If no C compiler was specified, use CC.
6833
LTCC=${LTCC-"$CC"}
6834
 
6835
# If no C compiler flags were specified, use CFLAGS.
6836
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6837
 
6838
# Allow CC to be a program name with arguments.
6839
compiler=$CC
6840
 
6841
 
6842
# Check for command to grab the raw symbol name followed by C symbol from nm.
6843
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6844
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6845
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6846
  $as_echo_n "(cached) " >&6
6847
else
6848
 
6849
# These are sane defaults that work on at least a few old systems.
6850
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6851
 
6852
# Character class describing NM global symbol codes.
6853
symcode='[BCDEGRST]'
6854
 
6855
# Regexp to match symbols that can be accessed directly from C.
6856
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6857
 
6858
# Define system-specific variables.
6859
case $host_os in
6860
aix*)
6861
  symcode='[BCDT]'
6862
  ;;
6863
cygwin* | mingw* | pw32* | cegcc*)
6864
  symcode='[ABCDGISTW]'
6865
  ;;
6866
hpux*)
6867
  if test "$host_cpu" = ia64; then
6868
    symcode='[ABCDEGRST]'
6869
  fi
6870
  ;;
6871
irix* | nonstopux*)
6872
  symcode='[BCDEGRST]'
6873
  ;;
6874
osf*)
6875
  symcode='[BCDEGQRST]'
6876
  ;;
6877
solaris*)
6878
  symcode='[BDRT]'
6879
  ;;
6880
sco3.2v5*)
6881
  symcode='[DT]'
6882
  ;;
6883
sysv4.2uw2*)
6884
  symcode='[DT]'
6885
  ;;
6886
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6887
  symcode='[ABDT]'
6888
  ;;
6889
sysv4)
6890
  symcode='[DFNSTU]'
6891
  ;;
6892
esac
6893
 
6894
# If we're using GNU nm, then use its standard symbol codes.
6895
case `$NM -V 2>&1` in
6896
*GNU* | *'with BFD'*)
6897
  symcode='[ABCDGIRSTW]' ;;
6898
esac
6899
 
6900
# Transform an extracted symbol line into a proper C declaration.
6901
# Some systems (esp. on ia64) link data and code symbols differently,
6902
# so use this general approach.
6903
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6904
 
6905
# Transform an extracted symbol line into symbol name and symbol address
6906
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6907
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'"
6908
 
6909
# Handle CRLF in mingw tool chain
6910
opt_cr=
6911
case $build_os in
6912
mingw*)
6913
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6914
  ;;
6915
esac
6916
 
6917
# Try without a prefix underscore, then with it.
6918
for ac_symprfx in "" "_"; do
6919
 
6920
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6921
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6922
 
6923
  # Write the raw and C identifiers.
6924
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6925
    # Fake it for dumpbin and say T for any non-static function
6926
    # and D for any global variable.
6927
    # Also find C++ and __fastcall symbols from MSVC++,
6928
    # which start with @ or ?.
6929
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6930
"     {last_section=section; section=\$ 3};"\
6931
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6932
"     \$ 0!~/External *\|/{next};"\
6933
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6934
"     {if(hide[section]) next};"\
6935
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6936
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6937
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6938
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6939
"     ' prfx=^$ac_symprfx"
6940
  else
6941
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6942
  fi
6943
 
6944
  # Check to see that the pipe works correctly.
6945
  pipe_works=no
6946
 
6947
  rm -f conftest*
6948
  cat > conftest.$ac_ext <<_LT_EOF
6949
#ifdef __cplusplus
6950
extern "C" {
6951
#endif
6952
char nm_test_var;
6953
void nm_test_func(void);
6954
void nm_test_func(void){}
6955
#ifdef __cplusplus
6956
}
6957
#endif
6958
int main(){nm_test_var='a';nm_test_func();return(0);}
6959
_LT_EOF
6960
 
6961
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962
  (eval $ac_compile) 2>&5
6963
  ac_status=$?
6964
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965
  (exit $ac_status); }; then
6966
    # Now try to grab the symbols.
6967
    nlist=conftest.nm
6968
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6969
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6970
  ac_status=$?
6971
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972
  (exit $ac_status); } && test -s "$nlist"; then
6973
      # Try sorting and uniquifying the output.
6974
      if sort "$nlist" | uniq > "$nlist"T; then
6975
        mv -f "$nlist"T "$nlist"
6976
      else
6977
        rm -f "$nlist"T
6978
      fi
6979
 
6980
      # Make sure that we snagged all the symbols we need.
6981
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6982
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6983
          cat <<_LT_EOF > conftest.$ac_ext
6984
#ifdef __cplusplus
6985
extern "C" {
6986
#endif
6987
 
6988
_LT_EOF
6989
          # Now generate the symbol file.
6990
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6991
 
6992
          cat <<_LT_EOF >> conftest.$ac_ext
6993
 
6994
/* The mapping between symbol names and symbols.  */
6995
const struct {
6996
  const char *name;
6997
  void       *address;
6998
}
6999
lt__PROGRAM__LTX_preloaded_symbols[] =
7000
{
7001
  { "@PROGRAM@", (void *) 0 },
7002
_LT_EOF
7003
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7004
          cat <<\_LT_EOF >> conftest.$ac_ext
7005
  {0, (void *) 0}
7006
};
7007
 
7008
/* This works around a problem in FreeBSD linker */
7009
#ifdef FREEBSD_WORKAROUND
7010
static const void *lt_preloaded_setup() {
7011
  return lt__PROGRAM__LTX_preloaded_symbols;
7012
}
7013
#endif
7014
 
7015
#ifdef __cplusplus
7016
}
7017
#endif
7018
_LT_EOF
7019
          # Now try linking the two files.
7020
          mv conftest.$ac_objext conftstm.$ac_objext
7021
          lt_save_LIBS="$LIBS"
7022
          lt_save_CFLAGS="$CFLAGS"
7023
          LIBS="conftstm.$ac_objext"
7024
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7025
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7026
  (eval $ac_link) 2>&5
7027
  ac_status=$?
7028
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7030
            pipe_works=yes
7031
          fi
7032
          LIBS="$lt_save_LIBS"
7033
          CFLAGS="$lt_save_CFLAGS"
7034
        else
7035
          echo "cannot find nm_test_func in $nlist" >&5
7036
        fi
7037
      else
7038
        echo "cannot find nm_test_var in $nlist" >&5
7039
      fi
7040
    else
7041
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7042
    fi
7043
  else
7044
    echo "$progname: failed program was:" >&5
7045
    cat conftest.$ac_ext >&5
7046
  fi
7047
  rm -rf conftest* conftst*
7048
 
7049
  # Do not use the global_symbol_pipe unless it works.
7050
  if test "$pipe_works" = yes; then
7051
    break
7052
  else
7053
    lt_cv_sys_global_symbol_pipe=
7054
  fi
7055
done
7056
 
7057
fi
7058
 
7059
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7060
  lt_cv_sys_global_symbol_to_cdecl=
7061
fi
7062
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7063
  { $as_echo "$as_me:$LINENO: result: failed" >&5
7064
$as_echo "failed" >&6; }
7065
else
7066
  { $as_echo "$as_me:$LINENO: result: ok" >&5
7067
$as_echo "ok" >&6; }
7068
fi
7069
 
7070
 
7071
 
7072
 
7073
 
7074
 
7075
 
7076
 
7077
 
7078
 
7079
 
7080
 
7081
 
7082
 
7083
 
7084
 
7085
 
7086
 
7087
 
7088
 
7089
 
7090
 
7091
 
7092
# Check whether --enable-libtool-lock was given.
7093
if test "${enable_libtool_lock+set}" = set; then
7094
  enableval=$enable_libtool_lock;
7095
fi
7096
 
7097
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7098
 
7099
# Some flags need to be propagated to the compiler or linker for good
7100
# libtool support.
7101
case $host in
7102
ia64-*-hpux*)
7103
  # Find out which ABI we are using.
7104
  echo 'int i;' > conftest.$ac_ext
7105
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7106
  (eval $ac_compile) 2>&5
7107
  ac_status=$?
7108
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109
  (exit $ac_status); }; then
7110
    case `/usr/bin/file conftest.$ac_objext` in
7111
      *ELF-32*)
7112
        HPUX_IA64_MODE="32"
7113
        ;;
7114
      *ELF-64*)
7115
        HPUX_IA64_MODE="64"
7116
        ;;
7117
    esac
7118
  fi
7119
  rm -rf conftest*
7120
  ;;
7121
*-*-irix6*)
7122
  # Find out which ABI we are using.
7123
  echo '#line 7123 "configure"' > conftest.$ac_ext
7124
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7125
  (eval $ac_compile) 2>&5
7126
  ac_status=$?
7127
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128
  (exit $ac_status); }; then
7129
    if test "$lt_cv_prog_gnu_ld" = yes; then
7130
      case `/usr/bin/file conftest.$ac_objext` in
7131
        *32-bit*)
7132
          LD="${LD-ld} -melf32bsmip"
7133
          ;;
7134
        *N32*)
7135
          LD="${LD-ld} -melf32bmipn32"
7136
          ;;
7137
        *64-bit*)
7138
          LD="${LD-ld} -melf64bmip"
7139
        ;;
7140
      esac
7141
    else
7142
      case `/usr/bin/file conftest.$ac_objext` in
7143
        *32-bit*)
7144
          LD="${LD-ld} -32"
7145
          ;;
7146
        *N32*)
7147
          LD="${LD-ld} -n32"
7148
          ;;
7149
        *64-bit*)
7150
          LD="${LD-ld} -64"
7151
          ;;
7152
      esac
7153
    fi
7154
  fi
7155
  rm -rf conftest*
7156
  ;;
7157
 
7158
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7159
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7160
  # Find out which ABI we are using.
7161
  echo 'int i;' > conftest.$ac_ext
7162
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163
  (eval $ac_compile) 2>&5
7164
  ac_status=$?
7165
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166
  (exit $ac_status); }; then
7167
    case `/usr/bin/file conftest.o` in
7168
      *32-bit*)
7169
        case $host in
7170
          x86_64-*kfreebsd*-gnu)
7171
            LD="${LD-ld} -m elf_i386_fbsd"
7172
            ;;
7173
          x86_64-*linux*)
7174
            LD="${LD-ld} -m elf_i386"
7175
            ;;
7176
          ppc64-*linux*|powerpc64-*linux*)
7177
            LD="${LD-ld} -m elf32ppclinux"
7178
            ;;
7179
          s390x-*linux*)
7180
            LD="${LD-ld} -m elf_s390"
7181
            ;;
7182
          sparc64-*linux*)
7183
            LD="${LD-ld} -m elf32_sparc"
7184
            ;;
7185
        esac
7186
        ;;
7187
      *64-bit*)
7188
        case $host in
7189
          x86_64-*kfreebsd*-gnu)
7190
            LD="${LD-ld} -m elf_x86_64_fbsd"
7191
            ;;
7192
          x86_64-*linux*)
7193
            LD="${LD-ld} -m elf_x86_64"
7194
            ;;
7195
          ppc*-*linux*|powerpc*-*linux*)
7196
            LD="${LD-ld} -m elf64ppc"
7197
            ;;
7198
          s390*-*linux*|s390*-*tpf*)
7199
            LD="${LD-ld} -m elf64_s390"
7200
            ;;
7201
          sparc*-*linux*)
7202
            LD="${LD-ld} -m elf64_sparc"
7203
            ;;
7204
        esac
7205
        ;;
7206
    esac
7207
  fi
7208
  rm -rf conftest*
7209
  ;;
7210
 
7211
*-*-sco3.2v5*)
7212
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7213
  SAVE_CFLAGS="$CFLAGS"
7214
  CFLAGS="$CFLAGS -belf"
7215
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7216
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7217
if test "${lt_cv_cc_needs_belf+set}" = set; then
7218
  $as_echo_n "(cached) " >&6
7219
else
7220
  ac_ext=c
7221
ac_cpp='$CPP $CPPFLAGS'
7222
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7223
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7224
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7225
 
7226
     cat >conftest.$ac_ext <<_ACEOF
7227
/* confdefs.h.  */
7228
_ACEOF
7229
cat confdefs.h >>conftest.$ac_ext
7230
cat >>conftest.$ac_ext <<_ACEOF
7231
/* end confdefs.h.  */
7232
 
7233
int
7234
main ()
7235
{
7236
 
7237
  ;
7238
  return 0;
7239
}
7240
_ACEOF
7241
rm -f conftest.$ac_objext conftest$ac_exeext
7242
if { (ac_try="$ac_link"
7243
case "(($ac_try" in
7244
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245
  *) ac_try_echo=$ac_try;;
7246
esac
7247
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7248
$as_echo "$ac_try_echo") >&5
7249
  (eval "$ac_link") 2>conftest.er1
7250
  ac_status=$?
7251
  grep -v '^ *+' conftest.er1 >conftest.err
7252
  rm -f conftest.er1
7253
  cat conftest.err >&5
7254
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255
  (exit $ac_status); } && {
7256
         test -z "$ac_c_werror_flag" ||
7257
         test ! -s conftest.err
7258
       } && test -s conftest$ac_exeext && {
7259
         test "$cross_compiling" = yes ||
7260
         $as_test_x conftest$ac_exeext
7261
       }; then
7262
  lt_cv_cc_needs_belf=yes
7263
else
7264
  $as_echo "$as_me: failed program was:" >&5
7265
sed 's/^/| /' conftest.$ac_ext >&5
7266
 
7267
        lt_cv_cc_needs_belf=no
7268
fi
7269
 
7270
rm -rf conftest.dSYM
7271
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7272
      conftest$ac_exeext conftest.$ac_ext
7273
     ac_ext=c
7274
ac_cpp='$CPP $CPPFLAGS'
7275
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7276
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7277
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7278
 
7279
fi
7280
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7281
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7282
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7283
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7284
    CFLAGS="$SAVE_CFLAGS"
7285
  fi
7286
  ;;
7287
sparc*-*solaris*)
7288
  # Find out which ABI we are using.
7289
  echo 'int i;' > conftest.$ac_ext
7290
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7291
  (eval $ac_compile) 2>&5
7292
  ac_status=$?
7293
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294
  (exit $ac_status); }; then
7295
    case `/usr/bin/file conftest.o` in
7296
    *64-bit*)
7297
      case $lt_cv_prog_gnu_ld in
7298
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7299
      *)
7300
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7301
          LD="${LD-ld} -64"
7302
        fi
7303
        ;;
7304
      esac
7305
      ;;
7306
    esac
7307
  fi
7308
  rm -rf conftest*
7309
  ;;
7310
esac
7311
 
7312
need_locks="$enable_libtool_lock"
7313
 
7314
 
7315
  case $host_os in
7316
    rhapsody* | darwin*)
7317
    if test -n "$ac_tool_prefix"; then
7318
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7319
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7320
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7321
$as_echo_n "checking for $ac_word... " >&6; }
7322
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7323
  $as_echo_n "(cached) " >&6
7324
else
7325
  if test -n "$DSYMUTIL"; then
7326
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7327
else
7328
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329
for as_dir in $PATH
7330
do
7331
  IFS=$as_save_IFS
7332
  test -z "$as_dir" && as_dir=.
7333
  for ac_exec_ext in '' $ac_executable_extensions; do
7334
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7336
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337
    break 2
7338
  fi
7339
done
7340
done
7341
IFS=$as_save_IFS
7342
 
7343
fi
7344
fi
7345
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7346
if test -n "$DSYMUTIL"; then
7347
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7348
$as_echo "$DSYMUTIL" >&6; }
7349
else
7350
  { $as_echo "$as_me:$LINENO: result: no" >&5
7351
$as_echo "no" >&6; }
7352
fi
7353
 
7354
 
7355
fi
7356
if test -z "$ac_cv_prog_DSYMUTIL"; then
7357
  ac_ct_DSYMUTIL=$DSYMUTIL
7358
  # Extract the first word of "dsymutil", so it can be a program name with args.
7359
set dummy dsymutil; ac_word=$2
7360
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7361
$as_echo_n "checking for $ac_word... " >&6; }
7362
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7363
  $as_echo_n "(cached) " >&6
7364
else
7365
  if test -n "$ac_ct_DSYMUTIL"; then
7366
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7367
else
7368
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369
for as_dir in $PATH
7370
do
7371
  IFS=$as_save_IFS
7372
  test -z "$as_dir" && as_dir=.
7373
  for ac_exec_ext in '' $ac_executable_extensions; do
7374
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7375
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7376
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377
    break 2
7378
  fi
7379
done
7380
done
7381
IFS=$as_save_IFS
7382
 
7383
fi
7384
fi
7385
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7386
if test -n "$ac_ct_DSYMUTIL"; then
7387
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7388
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7389
else
7390
  { $as_echo "$as_me:$LINENO: result: no" >&5
7391
$as_echo "no" >&6; }
7392
fi
7393
 
7394
  if test "x$ac_ct_DSYMUTIL" = x; then
7395
    DSYMUTIL=":"
7396
  else
7397
    case $cross_compiling:$ac_tool_warned in
7398
yes:)
7399
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7400
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7401
ac_tool_warned=yes ;;
7402
esac
7403
    DSYMUTIL=$ac_ct_DSYMUTIL
7404
  fi
7405
else
7406
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7407
fi
7408
 
7409
    if test -n "$ac_tool_prefix"; then
7410
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7411
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7412
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7413
$as_echo_n "checking for $ac_word... " >&6; }
7414
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7415
  $as_echo_n "(cached) " >&6
7416
else
7417
  if test -n "$NMEDIT"; then
7418
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7419
else
7420
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421
for as_dir in $PATH
7422
do
7423
  IFS=$as_save_IFS
7424
  test -z "$as_dir" && as_dir=.
7425
  for ac_exec_ext in '' $ac_executable_extensions; do
7426
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7428
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429
    break 2
7430
  fi
7431
done
7432
done
7433
IFS=$as_save_IFS
7434
 
7435
fi
7436
fi
7437
NMEDIT=$ac_cv_prog_NMEDIT
7438
if test -n "$NMEDIT"; then
7439
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7440
$as_echo "$NMEDIT" >&6; }
7441
else
7442
  { $as_echo "$as_me:$LINENO: result: no" >&5
7443
$as_echo "no" >&6; }
7444
fi
7445
 
7446
 
7447
fi
7448
if test -z "$ac_cv_prog_NMEDIT"; then
7449
  ac_ct_NMEDIT=$NMEDIT
7450
  # Extract the first word of "nmedit", so it can be a program name with args.
7451
set dummy nmedit; ac_word=$2
7452
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7453
$as_echo_n "checking for $ac_word... " >&6; }
7454
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7455
  $as_echo_n "(cached) " >&6
7456
else
7457
  if test -n "$ac_ct_NMEDIT"; then
7458
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7459
else
7460
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461
for as_dir in $PATH
7462
do
7463
  IFS=$as_save_IFS
7464
  test -z "$as_dir" && as_dir=.
7465
  for ac_exec_ext in '' $ac_executable_extensions; do
7466
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7467
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7468
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7469
    break 2
7470
  fi
7471
done
7472
done
7473
IFS=$as_save_IFS
7474
 
7475
fi
7476
fi
7477
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7478
if test -n "$ac_ct_NMEDIT"; then
7479
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7480
$as_echo "$ac_ct_NMEDIT" >&6; }
7481
else
7482
  { $as_echo "$as_me:$LINENO: result: no" >&5
7483
$as_echo "no" >&6; }
7484
fi
7485
 
7486
  if test "x$ac_ct_NMEDIT" = x; then
7487
    NMEDIT=":"
7488
  else
7489
    case $cross_compiling:$ac_tool_warned in
7490
yes:)
7491
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7492
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7493
ac_tool_warned=yes ;;
7494
esac
7495
    NMEDIT=$ac_ct_NMEDIT
7496
  fi
7497
else
7498
  NMEDIT="$ac_cv_prog_NMEDIT"
7499
fi
7500
 
7501
    if test -n "$ac_tool_prefix"; then
7502
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7503
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7504
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7505
$as_echo_n "checking for $ac_word... " >&6; }
7506
if test "${ac_cv_prog_LIPO+set}" = set; then
7507
  $as_echo_n "(cached) " >&6
7508
else
7509
  if test -n "$LIPO"; then
7510
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7511
else
7512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513
for as_dir in $PATH
7514
do
7515
  IFS=$as_save_IFS
7516
  test -z "$as_dir" && as_dir=.
7517
  for ac_exec_ext in '' $ac_executable_extensions; do
7518
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7520
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521
    break 2
7522
  fi
7523
done
7524
done
7525
IFS=$as_save_IFS
7526
 
7527
fi
7528
fi
7529
LIPO=$ac_cv_prog_LIPO
7530
if test -n "$LIPO"; then
7531
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7532
$as_echo "$LIPO" >&6; }
7533
else
7534
  { $as_echo "$as_me:$LINENO: result: no" >&5
7535
$as_echo "no" >&6; }
7536
fi
7537
 
7538
 
7539
fi
7540
if test -z "$ac_cv_prog_LIPO"; then
7541
  ac_ct_LIPO=$LIPO
7542
  # Extract the first word of "lipo", so it can be a program name with args.
7543
set dummy lipo; ac_word=$2
7544
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7545
$as_echo_n "checking for $ac_word... " >&6; }
7546
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7547
  $as_echo_n "(cached) " >&6
7548
else
7549
  if test -n "$ac_ct_LIPO"; then
7550
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7551
else
7552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553
for as_dir in $PATH
7554
do
7555
  IFS=$as_save_IFS
7556
  test -z "$as_dir" && as_dir=.
7557
  for ac_exec_ext in '' $ac_executable_extensions; do
7558
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7559
    ac_cv_prog_ac_ct_LIPO="lipo"
7560
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561
    break 2
7562
  fi
7563
done
7564
done
7565
IFS=$as_save_IFS
7566
 
7567
fi
7568
fi
7569
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7570
if test -n "$ac_ct_LIPO"; then
7571
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7572
$as_echo "$ac_ct_LIPO" >&6; }
7573
else
7574
  { $as_echo "$as_me:$LINENO: result: no" >&5
7575
$as_echo "no" >&6; }
7576
fi
7577
 
7578
  if test "x$ac_ct_LIPO" = x; then
7579
    LIPO=":"
7580
  else
7581
    case $cross_compiling:$ac_tool_warned in
7582
yes:)
7583
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7584
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7585
ac_tool_warned=yes ;;
7586
esac
7587
    LIPO=$ac_ct_LIPO
7588
  fi
7589
else
7590
  LIPO="$ac_cv_prog_LIPO"
7591
fi
7592
 
7593
    if test -n "$ac_tool_prefix"; then
7594
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7595
set dummy ${ac_tool_prefix}otool; ac_word=$2
7596
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7597
$as_echo_n "checking for $ac_word... " >&6; }
7598
if test "${ac_cv_prog_OTOOL+set}" = set; then
7599
  $as_echo_n "(cached) " >&6
7600
else
7601
  if test -n "$OTOOL"; then
7602
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7603
else
7604
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605
for as_dir in $PATH
7606
do
7607
  IFS=$as_save_IFS
7608
  test -z "$as_dir" && as_dir=.
7609
  for ac_exec_ext in '' $ac_executable_extensions; do
7610
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7611
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7612
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613
    break 2
7614
  fi
7615
done
7616
done
7617
IFS=$as_save_IFS
7618
 
7619
fi
7620
fi
7621
OTOOL=$ac_cv_prog_OTOOL
7622
if test -n "$OTOOL"; then
7623
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7624
$as_echo "$OTOOL" >&6; }
7625
else
7626
  { $as_echo "$as_me:$LINENO: result: no" >&5
7627
$as_echo "no" >&6; }
7628
fi
7629
 
7630
 
7631
fi
7632
if test -z "$ac_cv_prog_OTOOL"; then
7633
  ac_ct_OTOOL=$OTOOL
7634
  # Extract the first word of "otool", so it can be a program name with args.
7635
set dummy otool; ac_word=$2
7636
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7637
$as_echo_n "checking for $ac_word... " >&6; }
7638
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7639
  $as_echo_n "(cached) " >&6
7640
else
7641
  if test -n "$ac_ct_OTOOL"; then
7642
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7643
else
7644
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645
for as_dir in $PATH
7646
do
7647
  IFS=$as_save_IFS
7648
  test -z "$as_dir" && as_dir=.
7649
  for ac_exec_ext in '' $ac_executable_extensions; do
7650
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651
    ac_cv_prog_ac_ct_OTOOL="otool"
7652
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653
    break 2
7654
  fi
7655
done
7656
done
7657
IFS=$as_save_IFS
7658
 
7659
fi
7660
fi
7661
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7662
if test -n "$ac_ct_OTOOL"; then
7663
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7664
$as_echo "$ac_ct_OTOOL" >&6; }
7665
else
7666
  { $as_echo "$as_me:$LINENO: result: no" >&5
7667
$as_echo "no" >&6; }
7668
fi
7669
 
7670
  if test "x$ac_ct_OTOOL" = x; then
7671
    OTOOL=":"
7672
  else
7673
    case $cross_compiling:$ac_tool_warned in
7674
yes:)
7675
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7676
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7677
ac_tool_warned=yes ;;
7678
esac
7679
    OTOOL=$ac_ct_OTOOL
7680
  fi
7681
else
7682
  OTOOL="$ac_cv_prog_OTOOL"
7683
fi
7684
 
7685
    if test -n "$ac_tool_prefix"; then
7686
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7687
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7688
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7689
$as_echo_n "checking for $ac_word... " >&6; }
7690
if test "${ac_cv_prog_OTOOL64+set}" = set; then
7691
  $as_echo_n "(cached) " >&6
7692
else
7693
  if test -n "$OTOOL64"; then
7694
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7695
else
7696
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697
for as_dir in $PATH
7698
do
7699
  IFS=$as_save_IFS
7700
  test -z "$as_dir" && as_dir=.
7701
  for ac_exec_ext in '' $ac_executable_extensions; do
7702
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7703
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7704
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7705
    break 2
7706
  fi
7707
done
7708
done
7709
IFS=$as_save_IFS
7710
 
7711
fi
7712
fi
7713
OTOOL64=$ac_cv_prog_OTOOL64
7714
if test -n "$OTOOL64"; then
7715
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7716
$as_echo "$OTOOL64" >&6; }
7717
else
7718
  { $as_echo "$as_me:$LINENO: result: no" >&5
7719
$as_echo "no" >&6; }
7720
fi
7721
 
7722
 
7723
fi
7724
if test -z "$ac_cv_prog_OTOOL64"; then
7725
  ac_ct_OTOOL64=$OTOOL64
7726
  # Extract the first word of "otool64", so it can be a program name with args.
7727
set dummy otool64; ac_word=$2
7728
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7729
$as_echo_n "checking for $ac_word... " >&6; }
7730
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7731
  $as_echo_n "(cached) " >&6
7732
else
7733
  if test -n "$ac_ct_OTOOL64"; then
7734
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7735
else
7736
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737
for as_dir in $PATH
7738
do
7739
  IFS=$as_save_IFS
7740
  test -z "$as_dir" && as_dir=.
7741
  for ac_exec_ext in '' $ac_executable_extensions; do
7742
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7743
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7744
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745
    break 2
7746
  fi
7747
done
7748
done
7749
IFS=$as_save_IFS
7750
 
7751
fi
7752
fi
7753
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7754
if test -n "$ac_ct_OTOOL64"; then
7755
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7756
$as_echo "$ac_ct_OTOOL64" >&6; }
7757
else
7758
  { $as_echo "$as_me:$LINENO: result: no" >&5
7759
$as_echo "no" >&6; }
7760
fi
7761
 
7762
  if test "x$ac_ct_OTOOL64" = x; then
7763
    OTOOL64=":"
7764
  else
7765
    case $cross_compiling:$ac_tool_warned in
7766
yes:)
7767
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7768
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7769
ac_tool_warned=yes ;;
7770
esac
7771
    OTOOL64=$ac_ct_OTOOL64
7772
  fi
7773
else
7774
  OTOOL64="$ac_cv_prog_OTOOL64"
7775
fi
7776
 
7777
 
7778
 
7779
 
7780
 
7781
 
7782
 
7783
 
7784
 
7785
 
7786
 
7787
 
7788
 
7789
 
7790
 
7791
 
7792
 
7793
 
7794
 
7795
 
7796
 
7797
 
7798
 
7799
 
7800
 
7801
 
7802
 
7803
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7804
$as_echo_n "checking for -single_module linker flag... " >&6; }
7805
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7806
  $as_echo_n "(cached) " >&6
7807
else
7808
  lt_cv_apple_cc_single_mod=no
7809
      if test -z "${LT_MULTI_MODULE}"; then
7810
        # By default we will add the -single_module flag. You can override
7811
        # by either setting the environment variable LT_MULTI_MODULE
7812
        # non-empty at configure time, or by adding -multi_module to the
7813
        # link flags.
7814
        rm -rf libconftest.dylib*
7815
        echo "int foo(void){return 1;}" > conftest.c
7816
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7817
-dynamiclib -Wl,-single_module conftest.c" >&5
7818
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7819
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7820
        _lt_result=$?
7821
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7822
          lt_cv_apple_cc_single_mod=yes
7823
        else
7824
          cat conftest.err >&5
7825
        fi
7826
        rm -rf libconftest.dylib*
7827
        rm -f conftest.*
7828
      fi
7829
fi
7830
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7831
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7832
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7833
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7834
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7835
  $as_echo_n "(cached) " >&6
7836
else
7837
  lt_cv_ld_exported_symbols_list=no
7838
      save_LDFLAGS=$LDFLAGS
7839
      echo "_main" > conftest.sym
7840
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7841
      cat >conftest.$ac_ext <<_ACEOF
7842
/* confdefs.h.  */
7843
_ACEOF
7844
cat confdefs.h >>conftest.$ac_ext
7845
cat >>conftest.$ac_ext <<_ACEOF
7846
/* end confdefs.h.  */
7847
 
7848
int
7849
main ()
7850
{
7851
 
7852
  ;
7853
  return 0;
7854
}
7855
_ACEOF
7856
rm -f conftest.$ac_objext conftest$ac_exeext
7857
if { (ac_try="$ac_link"
7858
case "(($ac_try" in
7859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860
  *) ac_try_echo=$ac_try;;
7861
esac
7862
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7863
$as_echo "$ac_try_echo") >&5
7864
  (eval "$ac_link") 2>conftest.er1
7865
  ac_status=$?
7866
  grep -v '^ *+' conftest.er1 >conftest.err
7867
  rm -f conftest.er1
7868
  cat conftest.err >&5
7869
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870
  (exit $ac_status); } && {
7871
         test -z "$ac_c_werror_flag" ||
7872
         test ! -s conftest.err
7873
       } && test -s conftest$ac_exeext && {
7874
         test "$cross_compiling" = yes ||
7875
         $as_test_x conftest$ac_exeext
7876
       }; then
7877
  lt_cv_ld_exported_symbols_list=yes
7878
else
7879
  $as_echo "$as_me: failed program was:" >&5
7880
sed 's/^/| /' conftest.$ac_ext >&5
7881
 
7882
        lt_cv_ld_exported_symbols_list=no
7883
fi
7884
 
7885
rm -rf conftest.dSYM
7886
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7887
      conftest$ac_exeext conftest.$ac_ext
7888
        LDFLAGS="$save_LDFLAGS"
7889
 
7890
fi
7891
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7892
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7893
    case $host_os in
7894
    rhapsody* | darwin1.[012])
7895
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7896
    darwin1.*)
7897
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7898
    darwin*) # darwin 5.x on
7899
      # if running on 10.5 or later, the deployment target defaults
7900
      # to the OS version, if on x86, and 10.4, the deployment
7901
      # target defaults to 10.4. Don't you love it?
7902
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7903
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7904
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7905
        10.[012]*)
7906
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7907
        10.*)
7908
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7909
      esac
7910
    ;;
7911
  esac
7912
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7913
      _lt_dar_single_mod='$single_module'
7914
    fi
7915
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7916
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7917
    else
7918
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7919
    fi
7920
    if test "$DSYMUTIL" != ":"; then
7921
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7922
    else
7923
      _lt_dsymutil=
7924
    fi
7925
    ;;
7926
  esac
7927
 
7928
ac_ext=c
7929
ac_cpp='$CPP $CPPFLAGS'
7930
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7933
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7934
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7935
# On Suns, sometimes $CPP names a directory.
7936
if test -n "$CPP" && test -d "$CPP"; then
7937
  CPP=
7938
fi
7939
if test -z "$CPP"; then
7940
  if test "${ac_cv_prog_CPP+set}" = set; then
7941
  $as_echo_n "(cached) " >&6
7942
else
7943
      # Double quotes because CPP needs to be expanded
7944
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7945
    do
7946
      ac_preproc_ok=false
7947
for ac_c_preproc_warn_flag in '' yes
7948
do
7949
  # Use a header file that comes with gcc, so configuring glibc
7950
  # with a fresh cross-compiler works.
7951
  # Prefer  to  if __STDC__ is defined, since
7952
  #  exists even on freestanding compilers.
7953
  # On the NeXT, cc -E runs the code through the compiler's parser,
7954
  # not just through cpp. "Syntax error" is here to catch this case.
7955
  cat >conftest.$ac_ext <<_ACEOF
7956
/* confdefs.h.  */
7957
_ACEOF
7958
cat confdefs.h >>conftest.$ac_ext
7959
cat >>conftest.$ac_ext <<_ACEOF
7960
/* end confdefs.h.  */
7961
#ifdef __STDC__
7962
# include 
7963
#else
7964
# include 
7965
#endif
7966
                     Syntax error
7967
_ACEOF
7968
if { (ac_try="$ac_cpp conftest.$ac_ext"
7969
case "(($ac_try" in
7970
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971
  *) ac_try_echo=$ac_try;;
7972
esac
7973
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7974
$as_echo "$ac_try_echo") >&5
7975
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7976
  ac_status=$?
7977
  grep -v '^ *+' conftest.er1 >conftest.err
7978
  rm -f conftest.er1
7979
  cat conftest.err >&5
7980
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981
  (exit $ac_status); } >/dev/null && {
7982
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7983
         test ! -s conftest.err
7984
       }; then
7985
  :
7986
else
7987
  $as_echo "$as_me: failed program was:" >&5
7988
sed 's/^/| /' conftest.$ac_ext >&5
7989
 
7990
  # Broken: fails on valid input.
7991
continue
7992
fi
7993
 
7994
rm -f conftest.err conftest.$ac_ext
7995
 
7996
  # OK, works on sane cases.  Now check whether nonexistent headers
7997
  # can be detected and how.
7998
  cat >conftest.$ac_ext <<_ACEOF
7999
/* confdefs.h.  */
8000
_ACEOF
8001
cat confdefs.h >>conftest.$ac_ext
8002
cat >>conftest.$ac_ext <<_ACEOF
8003
/* end confdefs.h.  */
8004
#include 
8005
_ACEOF
8006
if { (ac_try="$ac_cpp conftest.$ac_ext"
8007
case "(($ac_try" in
8008
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009
  *) ac_try_echo=$ac_try;;
8010
esac
8011
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8012
$as_echo "$ac_try_echo") >&5
8013
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8014
  ac_status=$?
8015
  grep -v '^ *+' conftest.er1 >conftest.err
8016
  rm -f conftest.er1
8017
  cat conftest.err >&5
8018
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019
  (exit $ac_status); } >/dev/null && {
8020
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8021
         test ! -s conftest.err
8022
       }; then
8023
  # Broken: success on invalid input.
8024
continue
8025
else
8026
  $as_echo "$as_me: failed program was:" >&5
8027
sed 's/^/| /' conftest.$ac_ext >&5
8028
 
8029
  # Passes both tests.
8030
ac_preproc_ok=:
8031
break
8032
fi
8033
 
8034
rm -f conftest.err conftest.$ac_ext
8035
 
8036
done
8037
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8038
rm -f conftest.err conftest.$ac_ext
8039
if $ac_preproc_ok; then
8040
  break
8041
fi
8042
 
8043
    done
8044
    ac_cv_prog_CPP=$CPP
8045
 
8046
fi
8047
  CPP=$ac_cv_prog_CPP
8048
else
8049
  ac_cv_prog_CPP=$CPP
8050
fi
8051
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
8052
$as_echo "$CPP" >&6; }
8053
ac_preproc_ok=false
8054
for ac_c_preproc_warn_flag in '' yes
8055
do
8056
  # Use a header file that comes with gcc, so configuring glibc
8057
  # with a fresh cross-compiler works.
8058
  # Prefer  to  if __STDC__ is defined, since
8059
  #  exists even on freestanding compilers.
8060
  # On the NeXT, cc -E runs the code through the compiler's parser,
8061
  # not just through cpp. "Syntax error" is here to catch this case.
8062
  cat >conftest.$ac_ext <<_ACEOF
8063
/* confdefs.h.  */
8064
_ACEOF
8065
cat confdefs.h >>conftest.$ac_ext
8066
cat >>conftest.$ac_ext <<_ACEOF
8067
/* end confdefs.h.  */
8068
#ifdef __STDC__
8069
# include 
8070
#else
8071
# include 
8072
#endif
8073
                     Syntax error
8074
_ACEOF
8075
if { (ac_try="$ac_cpp conftest.$ac_ext"
8076
case "(($ac_try" in
8077
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078
  *) ac_try_echo=$ac_try;;
8079
esac
8080
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8081
$as_echo "$ac_try_echo") >&5
8082
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8083
  ac_status=$?
8084
  grep -v '^ *+' conftest.er1 >conftest.err
8085
  rm -f conftest.er1
8086
  cat conftest.err >&5
8087
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088
  (exit $ac_status); } >/dev/null && {
8089
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8090
         test ! -s conftest.err
8091
       }; then
8092
  :
8093
else
8094
  $as_echo "$as_me: failed program was:" >&5
8095
sed 's/^/| /' conftest.$ac_ext >&5
8096
 
8097
  # Broken: fails on valid input.
8098
continue
8099
fi
8100
 
8101
rm -f conftest.err conftest.$ac_ext
8102
 
8103
  # OK, works on sane cases.  Now check whether nonexistent headers
8104
  # can be detected and how.
8105
  cat >conftest.$ac_ext <<_ACEOF
8106
/* confdefs.h.  */
8107
_ACEOF
8108
cat confdefs.h >>conftest.$ac_ext
8109
cat >>conftest.$ac_ext <<_ACEOF
8110
/* end confdefs.h.  */
8111
#include 
8112
_ACEOF
8113
if { (ac_try="$ac_cpp conftest.$ac_ext"
8114
case "(($ac_try" in
8115
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116
  *) ac_try_echo=$ac_try;;
8117
esac
8118
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8119
$as_echo "$ac_try_echo") >&5
8120
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8121
  ac_status=$?
8122
  grep -v '^ *+' conftest.er1 >conftest.err
8123
  rm -f conftest.er1
8124
  cat conftest.err >&5
8125
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126
  (exit $ac_status); } >/dev/null && {
8127
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8128
         test ! -s conftest.err
8129
       }; then
8130
  # Broken: success on invalid input.
8131
continue
8132
else
8133
  $as_echo "$as_me: failed program was:" >&5
8134
sed 's/^/| /' conftest.$ac_ext >&5
8135
 
8136
  # Passes both tests.
8137
ac_preproc_ok=:
8138
break
8139
fi
8140
 
8141
rm -f conftest.err conftest.$ac_ext
8142
 
8143
done
8144
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8145
rm -f conftest.err conftest.$ac_ext
8146
if $ac_preproc_ok; then
8147
  :
8148
else
8149
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8150
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8151
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8152
See \`config.log' for more details." >&5
8153
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8154
See \`config.log' for more details." >&2;}
8155
   { (exit 1); exit 1; }; }; }
8156
fi
8157
 
8158
ac_ext=c
8159
ac_cpp='$CPP $CPPFLAGS'
8160
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8161
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8162
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8163
 
8164
 
8165
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8166
$as_echo_n "checking for ANSI C header files... " >&6; }
8167
if test "${ac_cv_header_stdc+set}" = set; then
8168
  $as_echo_n "(cached) " >&6
8169
else
8170
  cat >conftest.$ac_ext <<_ACEOF
8171
/* confdefs.h.  */
8172
_ACEOF
8173
cat confdefs.h >>conftest.$ac_ext
8174
cat >>conftest.$ac_ext <<_ACEOF
8175
/* end confdefs.h.  */
8176
#include 
8177
#include 
8178
#include 
8179
#include 
8180
 
8181
int
8182
main ()
8183
{
8184
 
8185
  ;
8186
  return 0;
8187
}
8188
_ACEOF
8189
rm -f conftest.$ac_objext
8190
if { (ac_try="$ac_compile"
8191
case "(($ac_try" in
8192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193
  *) ac_try_echo=$ac_try;;
8194
esac
8195
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8196
$as_echo "$ac_try_echo") >&5
8197
  (eval "$ac_compile") 2>conftest.er1
8198
  ac_status=$?
8199
  grep -v '^ *+' conftest.er1 >conftest.err
8200
  rm -f conftest.er1
8201
  cat conftest.err >&5
8202
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203
  (exit $ac_status); } && {
8204
         test -z "$ac_c_werror_flag" ||
8205
         test ! -s conftest.err
8206
       } && test -s conftest.$ac_objext; then
8207
  ac_cv_header_stdc=yes
8208
else
8209
  $as_echo "$as_me: failed program was:" >&5
8210
sed 's/^/| /' conftest.$ac_ext >&5
8211
 
8212
        ac_cv_header_stdc=no
8213
fi
8214
 
8215
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216
 
8217
if test $ac_cv_header_stdc = yes; then
8218
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8219
  cat >conftest.$ac_ext <<_ACEOF
8220
/* confdefs.h.  */
8221
_ACEOF
8222
cat confdefs.h >>conftest.$ac_ext
8223
cat >>conftest.$ac_ext <<_ACEOF
8224
/* end confdefs.h.  */
8225
#include 
8226
 
8227
_ACEOF
8228
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8229
  $EGREP "memchr" >/dev/null 2>&1; then
8230
  :
8231
else
8232
  ac_cv_header_stdc=no
8233
fi
8234
rm -f conftest*
8235
 
8236
fi
8237
 
8238
if test $ac_cv_header_stdc = yes; then
8239
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8240
  cat >conftest.$ac_ext <<_ACEOF
8241
/* confdefs.h.  */
8242
_ACEOF
8243
cat confdefs.h >>conftest.$ac_ext
8244
cat >>conftest.$ac_ext <<_ACEOF
8245
/* end confdefs.h.  */
8246
#include 
8247
 
8248
_ACEOF
8249
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8250
  $EGREP "free" >/dev/null 2>&1; then
8251
  :
8252
else
8253
  ac_cv_header_stdc=no
8254
fi
8255
rm -f conftest*
8256
 
8257
fi
8258
 
8259
if test $ac_cv_header_stdc = yes; then
8260
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8261
  if test "$cross_compiling" = yes; then
8262
  :
8263
else
8264
  cat >conftest.$ac_ext <<_ACEOF
8265
/* confdefs.h.  */
8266
_ACEOF
8267
cat confdefs.h >>conftest.$ac_ext
8268
cat >>conftest.$ac_ext <<_ACEOF
8269
/* end confdefs.h.  */
8270
#include 
8271
#include 
8272
#if ((' ' & 0x0FF) == 0x020)
8273
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8274
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8275
#else
8276
# define ISLOWER(c) \
8277
                   (('a' <= (c) && (c) <= 'i') \
8278
                     || ('j' <= (c) && (c) <= 'r') \
8279
                     || ('s' <= (c) && (c) <= 'z'))
8280
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8281
#endif
8282
 
8283
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8284
int
8285
main ()
8286
{
8287
  int i;
8288
  for (i = 0; i < 256; i++)
8289
    if (XOR (islower (i), ISLOWER (i))
8290
        || toupper (i) != TOUPPER (i))
8291
      return 2;
8292
  return 0;
8293
}
8294
_ACEOF
8295
rm -f conftest$ac_exeext
8296
if { (ac_try="$ac_link"
8297
case "(($ac_try" in
8298
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299
  *) ac_try_echo=$ac_try;;
8300
esac
8301
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8302
$as_echo "$ac_try_echo") >&5
8303
  (eval "$ac_link") 2>&5
8304
  ac_status=$?
8305
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8307
  { (case "(($ac_try" in
8308
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309
  *) ac_try_echo=$ac_try;;
8310
esac
8311
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8312
$as_echo "$ac_try_echo") >&5
8313
  (eval "$ac_try") 2>&5
8314
  ac_status=$?
8315
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316
  (exit $ac_status); }; }; then
8317
  :
8318
else
8319
  $as_echo "$as_me: program exited with status $ac_status" >&5
8320
$as_echo "$as_me: failed program was:" >&5
8321
sed 's/^/| /' conftest.$ac_ext >&5
8322
 
8323
( exit $ac_status )
8324
ac_cv_header_stdc=no
8325
fi
8326
rm -rf conftest.dSYM
8327
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8328
fi
8329
 
8330
 
8331
fi
8332
fi
8333
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8334
$as_echo "$ac_cv_header_stdc" >&6; }
8335
if test $ac_cv_header_stdc = yes; then
8336
 
8337
cat >>confdefs.h <<\_ACEOF
8338
#define STDC_HEADERS 1
8339
_ACEOF
8340
 
8341
fi
8342
 
8343
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8344
 
8345
 
8346
 
8347
 
8348
 
8349
 
8350
 
8351
 
8352
 
8353
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8354
                  inttypes.h stdint.h unistd.h
8355
do
8356
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8357
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8358
$as_echo_n "checking for $ac_header... " >&6; }
8359
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8360
  $as_echo_n "(cached) " >&6
8361
else
8362
  cat >conftest.$ac_ext <<_ACEOF
8363
/* confdefs.h.  */
8364
_ACEOF
8365
cat confdefs.h >>conftest.$ac_ext
8366
cat >>conftest.$ac_ext <<_ACEOF
8367
/* end confdefs.h.  */
8368
$ac_includes_default
8369
 
8370
#include <$ac_header>
8371
_ACEOF
8372
rm -f conftest.$ac_objext
8373
if { (ac_try="$ac_compile"
8374
case "(($ac_try" in
8375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376
  *) ac_try_echo=$ac_try;;
8377
esac
8378
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8379
$as_echo "$ac_try_echo") >&5
8380
  (eval "$ac_compile") 2>conftest.er1
8381
  ac_status=$?
8382
  grep -v '^ *+' conftest.er1 >conftest.err
8383
  rm -f conftest.er1
8384
  cat conftest.err >&5
8385
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386
  (exit $ac_status); } && {
8387
         test -z "$ac_c_werror_flag" ||
8388
         test ! -s conftest.err
8389
       } && test -s conftest.$ac_objext; then
8390
  eval "$as_ac_Header=yes"
8391
else
8392
  $as_echo "$as_me: failed program was:" >&5
8393
sed 's/^/| /' conftest.$ac_ext >&5
8394
 
8395
        eval "$as_ac_Header=no"
8396
fi
8397
 
8398
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399
fi
8400
ac_res=`eval 'as_val=${'$as_ac_Header'}
8401
                 $as_echo "$as_val"'`
8402
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8403
$as_echo "$ac_res" >&6; }
8404
as_val=`eval 'as_val=${'$as_ac_Header'}
8405
                 $as_echo "$as_val"'`
8406
   if test "x$as_val" = x""yes; then
8407
  cat >>confdefs.h <<_ACEOF
8408
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8409
_ACEOF
8410
 
8411
fi
8412
 
8413
done
8414
 
8415
 
8416
 
8417
for ac_header in dlfcn.h
8418
do
8419
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8420
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8421
$as_echo_n "checking for $ac_header... " >&6; }
8422
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8423
  $as_echo_n "(cached) " >&6
8424
else
8425
  cat >conftest.$ac_ext <<_ACEOF
8426
/* confdefs.h.  */
8427
_ACEOF
8428
cat confdefs.h >>conftest.$ac_ext
8429
cat >>conftest.$ac_ext <<_ACEOF
8430
/* end confdefs.h.  */
8431
$ac_includes_default
8432
 
8433
#include <$ac_header>
8434
_ACEOF
8435
rm -f conftest.$ac_objext
8436
if { (ac_try="$ac_compile"
8437
case "(($ac_try" in
8438
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439
  *) ac_try_echo=$ac_try;;
8440
esac
8441
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8442
$as_echo "$ac_try_echo") >&5
8443
  (eval "$ac_compile") 2>conftest.er1
8444
  ac_status=$?
8445
  grep -v '^ *+' conftest.er1 >conftest.err
8446
  rm -f conftest.er1
8447
  cat conftest.err >&5
8448
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449
  (exit $ac_status); } && {
8450
         test -z "$ac_c_werror_flag" ||
8451
         test ! -s conftest.err
8452
       } && test -s conftest.$ac_objext; then
8453
  eval "$as_ac_Header=yes"
8454
else
8455
  $as_echo "$as_me: failed program was:" >&5
8456
sed 's/^/| /' conftest.$ac_ext >&5
8457
 
8458
        eval "$as_ac_Header=no"
8459
fi
8460
 
8461
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462
fi
8463
ac_res=`eval 'as_val=${'$as_ac_Header'}
8464
                 $as_echo "$as_val"'`
8465
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8466
$as_echo "$ac_res" >&6; }
8467
as_val=`eval 'as_val=${'$as_ac_Header'}
8468
                 $as_echo "$as_val"'`
8469
   if test "x$as_val" = x""yes; then
8470
  cat >>confdefs.h <<_ACEOF
8471
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8472
_ACEOF
8473
 
8474
fi
8475
 
8476
done
8477
 
8478
 
8479
 
8480
# Set options
8481
 
8482
 
8483
 
8484
        enable_dlopen=no
8485
 
8486
 
8487
 
8488
            # Check whether --enable-shared was given.
8489
if test "${enable_shared+set}" = set; then
8490
  enableval=$enable_shared; p=${PACKAGE-default}
8491
    case $enableval in
8492
    yes) enable_shared=yes ;;
8493
    no) enable_shared=no ;;
8494
    *)
8495
      enable_shared=no
8496
      # Look at the argument we got.  We use all the common list separators.
8497
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8498
      for pkg in $enableval; do
8499
        IFS="$lt_save_ifs"
8500
        if test "X$pkg" = "X$p"; then
8501
          enable_shared=yes
8502
        fi
8503
      done
8504
      IFS="$lt_save_ifs"
8505
      ;;
8506
    esac
8507
else
8508
  enable_shared=yes
8509
fi
8510
 
8511
 
8512
 
8513
 
8514
 
8515
 
8516
 
8517
 
8518
 
8519
  # Check whether --enable-static was given.
8520
if test "${enable_static+set}" = set; then
8521
  enableval=$enable_static; p=${PACKAGE-default}
8522
    case $enableval in
8523
    yes) enable_static=yes ;;
8524
    no) enable_static=no ;;
8525
    *)
8526
     enable_static=no
8527
      # Look at the argument we got.  We use all the common list separators.
8528
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8529
      for pkg in $enableval; do
8530
        IFS="$lt_save_ifs"
8531
        if test "X$pkg" = "X$p"; then
8532
          enable_static=yes
8533
        fi
8534
      done
8535
      IFS="$lt_save_ifs"
8536
      ;;
8537
    esac
8538
else
8539
  enable_static=yes
8540
fi
8541
 
8542
 
8543
 
8544
 
8545
 
8546
 
8547
 
8548
 
8549
 
8550
 
8551
# Check whether --with-pic was given.
8552
if test "${with_pic+set}" = set; then
8553
  withval=$with_pic; pic_mode="$withval"
8554
else
8555
  pic_mode=default
8556
fi
8557
 
8558
 
8559
test -z "$pic_mode" && pic_mode=default
8560
 
8561
 
8562
 
8563
 
8564
 
8565
 
8566
 
8567
  # Check whether --enable-fast-install was given.
8568
if test "${enable_fast_install+set}" = set; then
8569
  enableval=$enable_fast_install; p=${PACKAGE-default}
8570
    case $enableval in
8571
    yes) enable_fast_install=yes ;;
8572
    no) enable_fast_install=no ;;
8573
    *)
8574
      enable_fast_install=no
8575
      # Look at the argument we got.  We use all the common list separators.
8576
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8577
      for pkg in $enableval; do
8578
        IFS="$lt_save_ifs"
8579
        if test "X$pkg" = "X$p"; then
8580
          enable_fast_install=yes
8581
        fi
8582
      done
8583
      IFS="$lt_save_ifs"
8584
      ;;
8585
    esac
8586
else
8587
  enable_fast_install=yes
8588
fi
8589
 
8590
 
8591
 
8592
 
8593
 
8594
 
8595
 
8596
 
8597
 
8598
 
8599
 
8600
# This can be used to rebuild libtool when needed
8601
LIBTOOL_DEPS="$ltmain"
8602
 
8603
# Always use our own libtool.
8604
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
test -z "$LN_S" && LN_S="ln -s"
8631
 
8632
 
8633
 
8634
 
8635
 
8636
 
8637
 
8638
 
8639
 
8640
 
8641
 
8642
 
8643
 
8644
 
8645
if test -n "${ZSH_VERSION+set}" ; then
8646
   setopt NO_GLOB_SUBST
8647
fi
8648
 
8649
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8650
$as_echo_n "checking for objdir... " >&6; }
8651
if test "${lt_cv_objdir+set}" = set; then
8652
  $as_echo_n "(cached) " >&6
8653
else
8654
  rm -f .libs 2>/dev/null
8655
mkdir .libs 2>/dev/null
8656
if test -d .libs; then
8657
  lt_cv_objdir=.libs
8658
else
8659
  # MS-DOS does not allow filenames that begin with a dot.
8660
  lt_cv_objdir=_libs
8661
fi
8662
rmdir .libs 2>/dev/null
8663
fi
8664
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8665
$as_echo "$lt_cv_objdir" >&6; }
8666
objdir=$lt_cv_objdir
8667
 
8668
 
8669
 
8670
 
8671
 
8672
cat >>confdefs.h <<_ACEOF
8673
#define LT_OBJDIR "$lt_cv_objdir/"
8674
_ACEOF
8675
 
8676
 
8677
 
8678
 
8679
 
8680
 
8681
 
8682
 
8683
 
8684
 
8685
 
8686
 
8687
 
8688
 
8689
 
8690
 
8691
 
8692
case $host_os in
8693
aix3*)
8694
  # AIX sometimes has problems with the GCC collect2 program.  For some
8695
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8696
  # vanish in a puff of smoke.
8697
  if test "X${COLLECT_NAMES+set}" != Xset; then
8698
    COLLECT_NAMES=
8699
    export COLLECT_NAMES
8700
  fi
8701
  ;;
8702
esac
8703
 
8704
# Sed substitution that helps us do robust quoting.  It backslashifies
8705
# metacharacters that are still active within double-quoted strings.
8706
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8707
 
8708
# Same as above, but do not quote variable references.
8709
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8710
 
8711
# Sed substitution to delay expansion of an escaped shell variable in a
8712
# double_quote_subst'ed string.
8713
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8714
 
8715
# Sed substitution to delay expansion of an escaped single quote.
8716
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8717
 
8718
# Sed substitution to avoid accidental globbing in evaled expressions
8719
no_glob_subst='s/\*/\\\*/g'
8720
 
8721
# Global variables:
8722
ofile=libtool
8723
can_build_shared=yes
8724
 
8725
# All known linkers require a `.a' archive for static linking (except MSVC,
8726
# which needs '.lib').
8727
libext=a
8728
 
8729
with_gnu_ld="$lt_cv_prog_gnu_ld"
8730
 
8731
old_CC="$CC"
8732
old_CFLAGS="$CFLAGS"
8733
 
8734
# Set sane defaults for various variables
8735
test -z "$CC" && CC=cc
8736
test -z "$LTCC" && LTCC=$CC
8737
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8738
test -z "$LD" && LD=ld
8739
test -z "$ac_objext" && ac_objext=o
8740
 
8741
for cc_temp in $compiler""; do
8742
  case $cc_temp in
8743
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8744
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8745
    \-*) ;;
8746
    *) break;;
8747
  esac
8748
done
8749
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8750
 
8751
 
8752
# Only perform the check for file, if the check method requires it
8753
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8754
case $deplibs_check_method in
8755
file_magic*)
8756
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8757
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8758
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8759
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8760
  $as_echo_n "(cached) " >&6
8761
else
8762
  case $MAGIC_CMD in
8763
[\\/*] |  ?:[\\/]*)
8764
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8765
  ;;
8766
*)
8767
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8768
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8769
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8770
  for ac_dir in $ac_dummy; do
8771
    IFS="$lt_save_ifs"
8772
    test -z "$ac_dir" && ac_dir=.
8773
    if test -f $ac_dir/${ac_tool_prefix}file; then
8774
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8775
      if test -n "$file_magic_test_file"; then
8776
        case $deplibs_check_method in
8777
        "file_magic "*)
8778
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8779
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8780
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8781
            $EGREP "$file_magic_regex" > /dev/null; then
8782
            :
8783
          else
8784
            cat <<_LT_EOF 1>&2
8785
 
8786
*** Warning: the command libtool uses to detect shared libraries,
8787
*** $file_magic_cmd, produces output that libtool cannot recognize.
8788
*** The result is that libtool may fail to recognize shared libraries
8789
*** as such.  This will affect the creation of libtool libraries that
8790
*** depend on shared libraries, but programs linked with such libtool
8791
*** libraries will work regardless of this problem.  Nevertheless, you
8792
*** may want to report the problem to your system manager and/or to
8793
*** bug-libtool@gnu.org
8794
 
8795
_LT_EOF
8796
          fi ;;
8797
        esac
8798
      fi
8799
      break
8800
    fi
8801
  done
8802
  IFS="$lt_save_ifs"
8803
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8804
  ;;
8805
esac
8806
fi
8807
 
8808
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8809
if test -n "$MAGIC_CMD"; then
8810
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8811
$as_echo "$MAGIC_CMD" >&6; }
8812
else
8813
  { $as_echo "$as_me:$LINENO: result: no" >&5
8814
$as_echo "no" >&6; }
8815
fi
8816
 
8817
 
8818
 
8819
 
8820
 
8821
if test -z "$lt_cv_path_MAGIC_CMD"; then
8822
  if test -n "$ac_tool_prefix"; then
8823
    { $as_echo "$as_me:$LINENO: checking for file" >&5
8824
$as_echo_n "checking for file... " >&6; }
8825
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8826
  $as_echo_n "(cached) " >&6
8827
else
8828
  case $MAGIC_CMD in
8829
[\\/*] |  ?:[\\/]*)
8830
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8831
  ;;
8832
*)
8833
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8834
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8835
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8836
  for ac_dir in $ac_dummy; do
8837
    IFS="$lt_save_ifs"
8838
    test -z "$ac_dir" && ac_dir=.
8839
    if test -f $ac_dir/file; then
8840
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8841
      if test -n "$file_magic_test_file"; then
8842
        case $deplibs_check_method in
8843
        "file_magic "*)
8844
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8845
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8846
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8847
            $EGREP "$file_magic_regex" > /dev/null; then
8848
            :
8849
          else
8850
            cat <<_LT_EOF 1>&2
8851
 
8852
*** Warning: the command libtool uses to detect shared libraries,
8853
*** $file_magic_cmd, produces output that libtool cannot recognize.
8854
*** The result is that libtool may fail to recognize shared libraries
8855
*** as such.  This will affect the creation of libtool libraries that
8856
*** depend on shared libraries, but programs linked with such libtool
8857
*** libraries will work regardless of this problem.  Nevertheless, you
8858
*** may want to report the problem to your system manager and/or to
8859
*** bug-libtool@gnu.org
8860
 
8861
_LT_EOF
8862
          fi ;;
8863
        esac
8864
      fi
8865
      break
8866
    fi
8867
  done
8868
  IFS="$lt_save_ifs"
8869
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8870
  ;;
8871
esac
8872
fi
8873
 
8874
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8875
if test -n "$MAGIC_CMD"; then
8876
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8877
$as_echo "$MAGIC_CMD" >&6; }
8878
else
8879
  { $as_echo "$as_me:$LINENO: result: no" >&5
8880
$as_echo "no" >&6; }
8881
fi
8882
 
8883
 
8884
  else
8885
    MAGIC_CMD=:
8886
  fi
8887
fi
8888
 
8889
  fi
8890
  ;;
8891
esac
8892
 
8893
# Use C for the default configuration in the libtool script
8894
 
8895
lt_save_CC="$CC"
8896
ac_ext=c
8897
ac_cpp='$CPP $CPPFLAGS'
8898
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8899
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8900
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8901
 
8902
 
8903
# Source file extension for C test sources.
8904
ac_ext=c
8905
 
8906
# Object file extension for compiled C test sources.
8907
objext=o
8908
objext=$objext
8909
 
8910
# Code to be used in simple compile tests
8911
lt_simple_compile_test_code="int some_variable = 0;"
8912
 
8913
# Code to be used in simple link tests
8914
lt_simple_link_test_code='int main(){return(0);}'
8915
 
8916
 
8917
 
8918
 
8919
 
8920
 
8921
 
8922
# If no C compiler was specified, use CC.
8923
LTCC=${LTCC-"$CC"}
8924
 
8925
# If no C compiler flags were specified, use CFLAGS.
8926
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8927
 
8928
# Allow CC to be a program name with arguments.
8929
compiler=$CC
8930
 
8931
# Save the default compiler, since it gets overwritten when the other
8932
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8933
compiler_DEFAULT=$CC
8934
 
8935
# save warnings/boilerplate of simple test code
8936
ac_outfile=conftest.$ac_objext
8937
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8938
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8939
_lt_compiler_boilerplate=`cat conftest.err`
8940
$RM conftest*
8941
 
8942
ac_outfile=conftest.$ac_objext
8943
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8944
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8945
_lt_linker_boilerplate=`cat conftest.err`
8946
$RM -r conftest*
8947
 
8948
 
8949
## CAVEAT EMPTOR:
8950
## There is no encapsulation within the following macros, do not change
8951
## the running order or otherwise move them around unless you know exactly
8952
## what you are doing...
8953
if test -n "$compiler"; then
8954
 
8955
lt_prog_compiler_no_builtin_flag=
8956
 
8957
if test "$GCC" = yes; then
8958
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8959
 
8960
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8961
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8962
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8963
  $as_echo_n "(cached) " >&6
8964
else
8965
  lt_cv_prog_compiler_rtti_exceptions=no
8966
   ac_outfile=conftest.$ac_objext
8967
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8968
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8969
   # Insert the option either (1) after the last *FLAGS variable, or
8970
   # (2) before a word containing "conftest.", or (3) at the end.
8971
   # Note that $ac_compile itself does not contain backslashes and begins
8972
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8973
   # The option is referenced via a variable to avoid confusing sed.
8974
   lt_compile=`echo "$ac_compile" | $SED \
8975
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8976
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8977
   -e 's:$: $lt_compiler_flag:'`
8978
   (eval echo "\"\$as_me:8978: $lt_compile\"" >&5)
8979
   (eval "$lt_compile" 2>conftest.err)
8980
   ac_status=$?
8981
   cat conftest.err >&5
8982
   echo "$as_me:8982: \$? = $ac_status" >&5
8983
   if (exit $ac_status) && test -s "$ac_outfile"; then
8984
     # The compiler can only warn and ignore the option if not recognized
8985
     # So say no if there are warnings other than the usual output.
8986
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8987
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8988
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8989
       lt_cv_prog_compiler_rtti_exceptions=yes
8990
     fi
8991
   fi
8992
   $RM conftest*
8993
 
8994
fi
8995
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8996
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8997
 
8998
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8999
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9000
else
9001
    :
9002
fi
9003
 
9004
fi
9005
 
9006
 
9007
 
9008
 
9009
 
9010
 
9011
  lt_prog_compiler_wl=
9012
lt_prog_compiler_pic=
9013
lt_prog_compiler_static=
9014
 
9015
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9016
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9017
 
9018
  if test "$GCC" = yes; then
9019
    lt_prog_compiler_wl='-Wl,'
9020
    lt_prog_compiler_static='-static'
9021
 
9022
    case $host_os in
9023
      aix*)
9024
      # All AIX code is PIC.
9025
      if test "$host_cpu" = ia64; then
9026
        # AIX 5 now supports IA64 processor
9027
        lt_prog_compiler_static='-Bstatic'
9028
      fi
9029
      ;;
9030
 
9031
    amigaos*)
9032
      case $host_cpu in
9033
      powerpc)
9034
            # see comment about AmigaOS4 .so support
9035
            lt_prog_compiler_pic='-fPIC'
9036
        ;;
9037
      m68k)
9038
            # FIXME: we need at least 68020 code to build shared libraries, but
9039
            # adding the `-m68020' flag to GCC prevents building anything better,
9040
            # like `-m68040'.
9041
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9042
        ;;
9043
      esac
9044
      ;;
9045
 
9046
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9047
      # PIC is the default for these OSes.
9048
      ;;
9049
 
9050
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9051
      # This hack is so that the source file can tell whether it is being
9052
      # built for inclusion in a dll (and should export symbols for example).
9053
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9054
      # (--disable-auto-import) libraries
9055
      lt_prog_compiler_pic='-DDLL_EXPORT'
9056
      ;;
9057
 
9058
    darwin* | rhapsody*)
9059
      # PIC is the default on this platform
9060
      # Common symbols not allowed in MH_DYLIB files
9061
      lt_prog_compiler_pic='-fno-common'
9062
      ;;
9063
 
9064
    hpux*)
9065
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9066
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9067
      # sets the default TLS model and affects inlining.
9068
      case $host_cpu in
9069
      hppa*64*)
9070
        # +Z the default
9071
        ;;
9072
      *)
9073
        lt_prog_compiler_pic='-fPIC'
9074
        ;;
9075
      esac
9076
      ;;
9077
 
9078
    interix[3-9]*)
9079
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9080
      # Instead, we relocate shared libraries at runtime.
9081
      ;;
9082
 
9083
    msdosdjgpp*)
9084
      # Just because we use GCC doesn't mean we suddenly get shared libraries
9085
      # on systems that don't support them.
9086
      lt_prog_compiler_can_build_shared=no
9087
      enable_shared=no
9088
      ;;
9089
 
9090
    *nto* | *qnx*)
9091
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9092
      # it will coredump.
9093
      lt_prog_compiler_pic='-fPIC -shared'
9094
      ;;
9095
 
9096
    sysv4*MP*)
9097
      if test -d /usr/nec; then
9098
        lt_prog_compiler_pic=-Kconform_pic
9099
      fi
9100
      ;;
9101
 
9102
    *)
9103
      lt_prog_compiler_pic='-fPIC'
9104
      ;;
9105
    esac
9106
  else
9107
    # PORTME Check for flag to pass linker flags through the system compiler.
9108
    case $host_os in
9109
    aix*)
9110
      lt_prog_compiler_wl='-Wl,'
9111
      if test "$host_cpu" = ia64; then
9112
        # AIX 5 now supports IA64 processor
9113
        lt_prog_compiler_static='-Bstatic'
9114
      else
9115
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9116
      fi
9117
      ;;
9118
 
9119
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9120
      # This hack is so that the source file can tell whether it is being
9121
      # built for inclusion in a dll (and should export symbols for example).
9122
      lt_prog_compiler_pic='-DDLL_EXPORT'
9123
      ;;
9124
 
9125
    hpux9* | hpux10* | hpux11*)
9126
      lt_prog_compiler_wl='-Wl,'
9127
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9128
      # not for PA HP-UX.
9129
      case $host_cpu in
9130
      hppa*64*|ia64*)
9131
        # +Z the default
9132
        ;;
9133
      *)
9134
        lt_prog_compiler_pic='+Z'
9135
        ;;
9136
      esac
9137
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9138
      lt_prog_compiler_static='${wl}-a ${wl}archive'
9139
      ;;
9140
 
9141
    irix5* | irix6* | nonstopux*)
9142
      lt_prog_compiler_wl='-Wl,'
9143
      # PIC (with -KPIC) is the default.
9144
      lt_prog_compiler_static='-non_shared'
9145
      ;;
9146
 
9147
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9148
      case $cc_basename in
9149
      # old Intel for x86_64 which still supported -KPIC.
9150
      ecc*)
9151
        lt_prog_compiler_wl='-Wl,'
9152
        lt_prog_compiler_pic='-KPIC'
9153
        lt_prog_compiler_static='-static'
9154
        ;;
9155
      # icc used to be incompatible with GCC.
9156
      # ICC 10 doesn't accept -KPIC any more.
9157
      icc* | ifort*)
9158
        lt_prog_compiler_wl='-Wl,'
9159
        lt_prog_compiler_pic='-fPIC'
9160
        lt_prog_compiler_static='-static'
9161
        ;;
9162
      # Lahey Fortran 8.1.
9163
      lf95*)
9164
        lt_prog_compiler_wl='-Wl,'
9165
        lt_prog_compiler_pic='--shared'
9166
        lt_prog_compiler_static='--static'
9167
        ;;
9168
      pgcc* | pgf77* | pgf90* | pgf95*)
9169
        # Portland Group compilers (*not* the Pentium gcc compiler,
9170
        # which looks to be a dead project)
9171
        lt_prog_compiler_wl='-Wl,'
9172
        lt_prog_compiler_pic='-fpic'
9173
        lt_prog_compiler_static='-Bstatic'
9174
        ;;
9175
      ccc*)
9176
        lt_prog_compiler_wl='-Wl,'
9177
        # All Alpha code is PIC.
9178
        lt_prog_compiler_static='-non_shared'
9179
        ;;
9180
      xl*)
9181
        # IBM XL C 8.0/Fortran 10.1 on PPC
9182
        lt_prog_compiler_wl='-Wl,'
9183
        lt_prog_compiler_pic='-qpic'
9184
        lt_prog_compiler_static='-qstaticlink'
9185
        ;;
9186
      *)
9187
        case `$CC -V 2>&1 | sed 5q` in
9188
        *Sun\ C*)
9189
          # Sun C 5.9
9190
          lt_prog_compiler_pic='-KPIC'
9191
          lt_prog_compiler_static='-Bstatic'
9192
          lt_prog_compiler_wl='-Wl,'
9193
          ;;
9194
        *Sun\ F*)
9195
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9196
          lt_prog_compiler_pic='-KPIC'
9197
          lt_prog_compiler_static='-Bstatic'
9198
          lt_prog_compiler_wl=''
9199
          ;;
9200
        esac
9201
        ;;
9202
      esac
9203
      ;;
9204
 
9205
    newsos6)
9206
      lt_prog_compiler_pic='-KPIC'
9207
      lt_prog_compiler_static='-Bstatic'
9208
      ;;
9209
 
9210
    *nto* | *qnx*)
9211
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9212
      # it will coredump.
9213
      lt_prog_compiler_pic='-fPIC -shared'
9214
      ;;
9215
 
9216
    osf3* | osf4* | osf5*)
9217
      lt_prog_compiler_wl='-Wl,'
9218
      # All OSF/1 code is PIC.
9219
      lt_prog_compiler_static='-non_shared'
9220
      ;;
9221
 
9222
    rdos*)
9223
      lt_prog_compiler_static='-non_shared'
9224
      ;;
9225
 
9226
    solaris*)
9227
      lt_prog_compiler_pic='-KPIC'
9228
      lt_prog_compiler_static='-Bstatic'
9229
      case $cc_basename in
9230
      f77* | f90* | f95*)
9231
        lt_prog_compiler_wl='-Qoption ld ';;
9232
      *)
9233
        lt_prog_compiler_wl='-Wl,';;
9234
      esac
9235
      ;;
9236
 
9237
    sunos4*)
9238
      lt_prog_compiler_wl='-Qoption ld '
9239
      lt_prog_compiler_pic='-PIC'
9240
      lt_prog_compiler_static='-Bstatic'
9241
      ;;
9242
 
9243
    sysv4 | sysv4.2uw2* | sysv4.3*)
9244
      lt_prog_compiler_wl='-Wl,'
9245
      lt_prog_compiler_pic='-KPIC'
9246
      lt_prog_compiler_static='-Bstatic'
9247
      ;;
9248
 
9249
    sysv4*MP*)
9250
      if test -d /usr/nec ;then
9251
        lt_prog_compiler_pic='-Kconform_pic'
9252
        lt_prog_compiler_static='-Bstatic'
9253
      fi
9254
      ;;
9255
 
9256
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9257
      lt_prog_compiler_wl='-Wl,'
9258
      lt_prog_compiler_pic='-KPIC'
9259
      lt_prog_compiler_static='-Bstatic'
9260
      ;;
9261
 
9262
    unicos*)
9263
      lt_prog_compiler_wl='-Wl,'
9264
      lt_prog_compiler_can_build_shared=no
9265
      ;;
9266
 
9267
    uts4*)
9268
      lt_prog_compiler_pic='-pic'
9269
      lt_prog_compiler_static='-Bstatic'
9270
      ;;
9271
 
9272
    *)
9273
      lt_prog_compiler_can_build_shared=no
9274
      ;;
9275
    esac
9276
  fi
9277
 
9278
case $host_os in
9279
  # For platforms which do not support PIC, -DPIC is meaningless:
9280
  *djgpp*)
9281
    lt_prog_compiler_pic=
9282
    ;;
9283
  *)
9284
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9285
    ;;
9286
esac
9287
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9288
$as_echo "$lt_prog_compiler_pic" >&6; }
9289
 
9290
 
9291
 
9292
 
9293
 
9294
 
9295
#
9296
# Check to make sure the PIC flag actually works.
9297
#
9298
if test -n "$lt_prog_compiler_pic"; then
9299
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9300
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9301
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9302
  $as_echo_n "(cached) " >&6
9303
else
9304
  lt_cv_prog_compiler_pic_works=no
9305
   ac_outfile=conftest.$ac_objext
9306
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9307
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9308
   # Insert the option either (1) after the last *FLAGS variable, or
9309
   # (2) before a word containing "conftest.", or (3) at the end.
9310
   # Note that $ac_compile itself does not contain backslashes and begins
9311
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9312
   # The option is referenced via a variable to avoid confusing sed.
9313
   lt_compile=`echo "$ac_compile" | $SED \
9314
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9315
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9316
   -e 's:$: $lt_compiler_flag:'`
9317
   (eval echo "\"\$as_me:9317: $lt_compile\"" >&5)
9318
   (eval "$lt_compile" 2>conftest.err)
9319
   ac_status=$?
9320
   cat conftest.err >&5
9321
   echo "$as_me:9321: \$? = $ac_status" >&5
9322
   if (exit $ac_status) && test -s "$ac_outfile"; then
9323
     # The compiler can only warn and ignore the option if not recognized
9324
     # So say no if there are warnings other than the usual output.
9325
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9326
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9327
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9328
       lt_cv_prog_compiler_pic_works=yes
9329
     fi
9330
   fi
9331
   $RM conftest*
9332
 
9333
fi
9334
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9335
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9336
 
9337
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9338
    case $lt_prog_compiler_pic in
9339
     "" | " "*) ;;
9340
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9341
     esac
9342
else
9343
    lt_prog_compiler_pic=
9344
     lt_prog_compiler_can_build_shared=no
9345
fi
9346
 
9347
fi
9348
 
9349
 
9350
 
9351
 
9352
 
9353
 
9354
#
9355
# Check to make sure the static flag actually works.
9356
#
9357
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9358
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9359
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9360
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9361
  $as_echo_n "(cached) " >&6
9362
else
9363
  lt_cv_prog_compiler_static_works=no
9364
   save_LDFLAGS="$LDFLAGS"
9365
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9366
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9367
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9368
     # The linker can only warn and ignore the option if not recognized
9369
     # So say no if there are warnings
9370
     if test -s conftest.err; then
9371
       # Append any errors to the config.log.
9372
       cat conftest.err 1>&5
9373
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9374
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9375
       if diff conftest.exp conftest.er2 >/dev/null; then
9376
         lt_cv_prog_compiler_static_works=yes
9377
       fi
9378
     else
9379
       lt_cv_prog_compiler_static_works=yes
9380
     fi
9381
   fi
9382
   $RM -r conftest*
9383
   LDFLAGS="$save_LDFLAGS"
9384
 
9385
fi
9386
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9387
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9388
 
9389
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9390
    :
9391
else
9392
    lt_prog_compiler_static=
9393
fi
9394
 
9395
 
9396
 
9397
 
9398
 
9399
 
9400
 
9401
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9402
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9403
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9404
  $as_echo_n "(cached) " >&6
9405
else
9406
  lt_cv_prog_compiler_c_o=no
9407
   $RM -r conftest 2>/dev/null
9408
   mkdir conftest
9409
   cd conftest
9410
   mkdir out
9411
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9412
 
9413
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9414
   # Insert the option either (1) after the last *FLAGS variable, or
9415
   # (2) before a word containing "conftest.", or (3) at the end.
9416
   # Note that $ac_compile itself does not contain backslashes and begins
9417
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9418
   lt_compile=`echo "$ac_compile" | $SED \
9419
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9420
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9421
   -e 's:$: $lt_compiler_flag:'`
9422
   (eval echo "\"\$as_me:9422: $lt_compile\"" >&5)
9423
   (eval "$lt_compile" 2>out/conftest.err)
9424
   ac_status=$?
9425
   cat out/conftest.err >&5
9426
   echo "$as_me:9426: \$? = $ac_status" >&5
9427
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9428
   then
9429
     # The compiler can only warn and ignore the option if not recognized
9430
     # So say no if there are warnings
9431
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9432
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9433
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9434
       lt_cv_prog_compiler_c_o=yes
9435
     fi
9436
   fi
9437
   chmod u+w . 2>&5
9438
   $RM conftest*
9439
   # SGI C++ compiler will create directory out/ii_files/ for
9440
   # template instantiation
9441
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9442
   $RM out/* && rmdir out
9443
   cd ..
9444
   $RM -r conftest
9445
   $RM conftest*
9446
 
9447
fi
9448
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9449
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9450
 
9451
 
9452
 
9453
 
9454
 
9455
 
9456
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9457
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9458
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9459
  $as_echo_n "(cached) " >&6
9460
else
9461
  lt_cv_prog_compiler_c_o=no
9462
   $RM -r conftest 2>/dev/null
9463
   mkdir conftest
9464
   cd conftest
9465
   mkdir out
9466
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9467
 
9468
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9469
   # Insert the option either (1) after the last *FLAGS variable, or
9470
   # (2) before a word containing "conftest.", or (3) at the end.
9471
   # Note that $ac_compile itself does not contain backslashes and begins
9472
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9473
   lt_compile=`echo "$ac_compile" | $SED \
9474
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9475
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9476
   -e 's:$: $lt_compiler_flag:'`
9477
   (eval echo "\"\$as_me:9477: $lt_compile\"" >&5)
9478
   (eval "$lt_compile" 2>out/conftest.err)
9479
   ac_status=$?
9480
   cat out/conftest.err >&5
9481
   echo "$as_me:9481: \$? = $ac_status" >&5
9482
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9483
   then
9484
     # The compiler can only warn and ignore the option if not recognized
9485
     # So say no if there are warnings
9486
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9487
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9488
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9489
       lt_cv_prog_compiler_c_o=yes
9490
     fi
9491
   fi
9492
   chmod u+w . 2>&5
9493
   $RM conftest*
9494
   # SGI C++ compiler will create directory out/ii_files/ for
9495
   # template instantiation
9496
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9497
   $RM out/* && rmdir out
9498
   cd ..
9499
   $RM -r conftest
9500
   $RM conftest*
9501
 
9502
fi
9503
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9504
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9505
 
9506
 
9507
 
9508
 
9509
hard_links="nottested"
9510
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9511
  # do not overwrite the value of need_locks provided by the user
9512
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9513
$as_echo_n "checking if we can lock with hard links... " >&6; }
9514
  hard_links=yes
9515
  $RM conftest*
9516
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9517
  touch conftest.a
9518
  ln conftest.a conftest.b 2>&5 || hard_links=no
9519
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9520
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9521
$as_echo "$hard_links" >&6; }
9522
  if test "$hard_links" = no; then
9523
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9524
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9525
    need_locks=warn
9526
  fi
9527
else
9528
  need_locks=no
9529
fi
9530
 
9531
 
9532
 
9533
 
9534
 
9535
 
9536
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9537
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9538
 
9539
  runpath_var=
9540
  allow_undefined_flag=
9541
  always_export_symbols=no
9542
  archive_cmds=
9543
  archive_expsym_cmds=
9544
  compiler_needs_object=no
9545
  enable_shared_with_static_runtimes=no
9546
  export_dynamic_flag_spec=
9547
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9548
  hardcode_automatic=no
9549
  hardcode_direct=no
9550
  hardcode_direct_absolute=no
9551
  hardcode_libdir_flag_spec=
9552
  hardcode_libdir_flag_spec_ld=
9553
  hardcode_libdir_separator=
9554
  hardcode_minus_L=no
9555
  hardcode_shlibpath_var=unsupported
9556
  inherit_rpath=no
9557
  link_all_deplibs=unknown
9558
  module_cmds=
9559
  module_expsym_cmds=
9560
  old_archive_from_new_cmds=
9561
  old_archive_from_expsyms_cmds=
9562
  thread_safe_flag_spec=
9563
  whole_archive_flag_spec=
9564
  # include_expsyms should be a list of space-separated symbols to be *always*
9565
  # included in the symbol list
9566
  include_expsyms=
9567
  # exclude_expsyms can be an extended regexp of symbols to exclude
9568
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9569
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9570
  # as well as any symbol that contains `d'.
9571
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9572
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9573
  # platforms (ab)use it in PIC code, but their linkers get confused if
9574
  # the symbol is explicitly referenced.  Since portable code cannot
9575
  # rely on this symbol name, it's probably fine to never include it in
9576
  # preloaded symbol tables.
9577
  # Exclude shared library initialization/finalization symbols.
9578
  extract_expsyms_cmds=
9579
 
9580
  case $host_os in
9581
  cygwin* | mingw* | pw32* | cegcc*)
9582
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9583
    # When not using gcc, we currently assume that we are using
9584
    # Microsoft Visual C++.
9585
    if test "$GCC" != yes; then
9586
      with_gnu_ld=no
9587
    fi
9588
    ;;
9589
  interix*)
9590
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9591
    with_gnu_ld=yes
9592
    ;;
9593
  openbsd*)
9594
    with_gnu_ld=no
9595
    ;;
9596
  esac
9597
 
9598
  ld_shlibs=yes
9599
  if test "$with_gnu_ld" = yes; then
9600
    # If archive_cmds runs LD, not CC, wlarc should be empty
9601
    wlarc='${wl}'
9602
 
9603
    # Set some defaults for GNU ld with shared library support. These
9604
    # are reset later if shared libraries are not supported. Putting them
9605
    # here allows them to be overridden if necessary.
9606
    runpath_var=LD_RUN_PATH
9607
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9608
    export_dynamic_flag_spec='${wl}--export-dynamic'
9609
    # ancient GNU ld didn't support --whole-archive et. al.
9610
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9611
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9612
    else
9613
      whole_archive_flag_spec=
9614
    fi
9615
    supports_anon_versioning=no
9616
    case `$LD -v 2>&1` in
9617
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9618
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9619
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9620
      *\ 2.11.*) ;; # other 2.11 versions
9621
      *) supports_anon_versioning=yes ;;
9622
    esac
9623
 
9624
    # See if GNU ld supports shared libraries.
9625
    case $host_os in
9626
    aix[3-9]*)
9627
      # On AIX/PPC, the GNU linker is very broken
9628
      if test "$host_cpu" != ia64; then
9629
        ld_shlibs=no
9630
        cat <<_LT_EOF 1>&2
9631
 
9632
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9633
*** to be unable to reliably create shared libraries on AIX.
9634
*** Therefore, libtool is disabling shared libraries support.  If you
9635
*** really care for shared libraries, you may want to modify your PATH
9636
*** so that a non-GNU linker is found, and then restart.
9637
 
9638
_LT_EOF
9639
      fi
9640
      ;;
9641
 
9642
    amigaos*)
9643
      case $host_cpu in
9644
      powerpc)
9645
            # see comment about AmigaOS4 .so support
9646
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9647
            archive_expsym_cmds=''
9648
        ;;
9649
      m68k)
9650
            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)'
9651
            hardcode_libdir_flag_spec='-L$libdir'
9652
            hardcode_minus_L=yes
9653
        ;;
9654
      esac
9655
      ;;
9656
 
9657
    beos*)
9658
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9659
        allow_undefined_flag=unsupported
9660
        # Joseph Beckenbach  says some releases of gcc
9661
        # support --undefined.  This deserves some investigation.  FIXME
9662
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9663
      else
9664
        ld_shlibs=no
9665
      fi
9666
      ;;
9667
 
9668
    cygwin* | mingw* | pw32* | cegcc*)
9669
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9670
      # as there is no search path for DLLs.
9671
      hardcode_libdir_flag_spec='-L$libdir'
9672
      allow_undefined_flag=unsupported
9673
      always_export_symbols=no
9674
      enable_shared_with_static_runtimes=yes
9675
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9676
 
9677
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9678
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9679
        # If the export-symbols file already is a .def file (1st line
9680
        # is EXPORTS), use it as is; otherwise, prepend...
9681
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9682
          cp $export_symbols $output_objdir/$soname.def;
9683
        else
9684
          echo EXPORTS > $output_objdir/$soname.def;
9685
          cat $export_symbols >> $output_objdir/$soname.def;
9686
        fi~
9687
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9688
      else
9689
        ld_shlibs=no
9690
      fi
9691
      ;;
9692
 
9693
    interix[3-9]*)
9694
      hardcode_direct=no
9695
      hardcode_shlibpath_var=no
9696
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9697
      export_dynamic_flag_spec='${wl}-E'
9698
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9699
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9700
      # default) and relocated if they conflict, which is a slow very memory
9701
      # consuming and fragmenting process.  To avoid this, we pick a random,
9702
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9703
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9704
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9705
      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'
9706
      ;;
9707
 
9708
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9709
      tmp_diet=no
9710
      if test "$host_os" = linux-dietlibc; then
9711
        case $cc_basename in
9712
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9713
        esac
9714
      fi
9715
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9716
         && test "$tmp_diet" = no
9717
      then
9718
        tmp_addflag=
9719
        tmp_sharedflag='-shared'
9720
        case $cc_basename,$host_cpu in
9721
        pgcc*)                          # Portland Group C compiler
9722
          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'
9723
          tmp_addflag=' $pic_flag'
9724
          ;;
9725
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9726
          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'
9727
          tmp_addflag=' $pic_flag -Mnomain' ;;
9728
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9729
          tmp_addflag=' -i_dynamic' ;;
9730
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9731
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9732
        ifc* | ifort*)                  # Intel Fortran compiler
9733
          tmp_addflag=' -nofor_main' ;;
9734
        lf95*)                          # Lahey Fortran 8.1
9735
          whole_archive_flag_spec=
9736
          tmp_sharedflag='--shared' ;;
9737
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9738
          tmp_sharedflag='-qmkshrobj'
9739
          tmp_addflag= ;;
9740
        esac
9741
        case `$CC -V 2>&1 | sed 5q` in
9742
        *Sun\ C*)                       # Sun C 5.9
9743
          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'
9744
          compiler_needs_object=yes
9745
          tmp_sharedflag='-G' ;;
9746
        *Sun\ F*)                       # Sun Fortran 8.3
9747
          tmp_sharedflag='-G' ;;
9748
        esac
9749
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9750
 
9751
        if test "x$supports_anon_versioning" = xyes; then
9752
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9753
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9754
            echo "local: *; };" >> $output_objdir/$libname.ver~
9755
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9756
        fi
9757
 
9758
        case $cc_basename in
9759
        xlf*)
9760
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9761
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9762
          hardcode_libdir_flag_spec=
9763
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9764
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9765
          if test "x$supports_anon_versioning" = xyes; then
9766
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9767
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9768
              echo "local: *; };" >> $output_objdir/$libname.ver~
9769
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9770
          fi
9771
          ;;
9772
        esac
9773
      else
9774
        ld_shlibs=no
9775
      fi
9776
      ;;
9777
 
9778
    netbsd*)
9779
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9780
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9781
        wlarc=
9782
      else
9783
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9784
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9785
      fi
9786
      ;;
9787
 
9788
    solaris*)
9789
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9790
        ld_shlibs=no
9791
        cat <<_LT_EOF 1>&2
9792
 
9793
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9794
*** create shared libraries on Solaris systems.  Therefore, libtool
9795
*** is disabling shared libraries support.  We urge you to upgrade GNU
9796
*** binutils to release 2.9.1 or newer.  Another option is to modify
9797
*** your PATH or compiler configuration so that the native linker is
9798
*** used, and then restart.
9799
 
9800
_LT_EOF
9801
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9802
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9803
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9804
      else
9805
        ld_shlibs=no
9806
      fi
9807
      ;;
9808
 
9809
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9810
      case `$LD -v 2>&1` in
9811
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9812
        ld_shlibs=no
9813
        cat <<_LT_EOF 1>&2
9814
 
9815
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9816
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9817
*** is disabling shared libraries support.  We urge you to upgrade GNU
9818
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9819
*** your PATH or compiler configuration so that the native linker is
9820
*** used, and then restart.
9821
 
9822
_LT_EOF
9823
        ;;
9824
        *)
9825
          # For security reasons, it is highly recommended that you always
9826
          # use absolute paths for naming shared libraries, and exclude the
9827
          # DT_RUNPATH tag from executables and libraries.  But doing so
9828
          # requires that you compile everything twice, which is a pain.
9829
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9830
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9831
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9832
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9833
          else
9834
            ld_shlibs=no
9835
          fi
9836
        ;;
9837
      esac
9838
      ;;
9839
 
9840
    sunos4*)
9841
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9842
      wlarc=
9843
      hardcode_direct=yes
9844
      hardcode_shlibpath_var=no
9845
      ;;
9846
 
9847
    *)
9848
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9849
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9850
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9851
      else
9852
        ld_shlibs=no
9853
      fi
9854
      ;;
9855
    esac
9856
 
9857
    if test "$ld_shlibs" = no; then
9858
      runpath_var=
9859
      hardcode_libdir_flag_spec=
9860
      export_dynamic_flag_spec=
9861
      whole_archive_flag_spec=
9862
    fi
9863
  else
9864
    # PORTME fill in a description of your system's linker (not GNU ld)
9865
    case $host_os in
9866
    aix3*)
9867
      allow_undefined_flag=unsupported
9868
      always_export_symbols=yes
9869
      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'
9870
      # Note: this linker hardcodes the directories in LIBPATH if there
9871
      # are no directories specified by -L.
9872
      hardcode_minus_L=yes
9873
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9874
        # Neither direct hardcoding nor static linking is supported with a
9875
        # broken collect2.
9876
        hardcode_direct=unsupported
9877
      fi
9878
      ;;
9879
 
9880
    aix[4-9]*)
9881
      if test "$host_cpu" = ia64; then
9882
        # On IA64, the linker does run time linking by default, so we don't
9883
        # have to do anything special.
9884
        aix_use_runtimelinking=no
9885
        exp_sym_flag='-Bexport'
9886
        no_entry_flag=""
9887
      else
9888
        # If we're using GNU nm, then we don't want the "-C" option.
9889
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9890
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9891
          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'
9892
        else
9893
          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'
9894
        fi
9895
        aix_use_runtimelinking=no
9896
 
9897
        # Test if we are trying to use run time linking or normal
9898
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9899
        # need to do runtime linking.
9900
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9901
          for ld_flag in $LDFLAGS; do
9902
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9903
            aix_use_runtimelinking=yes
9904
            break
9905
          fi
9906
          done
9907
          ;;
9908
        esac
9909
 
9910
        exp_sym_flag='-bexport'
9911
        no_entry_flag='-bnoentry'
9912
      fi
9913
 
9914
      # When large executables or shared objects are built, AIX ld can
9915
      # have problems creating the table of contents.  If linking a library
9916
      # or program results in "error TOC overflow" add -mminimal-toc to
9917
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9918
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9919
 
9920
      archive_cmds=''
9921
      hardcode_direct=yes
9922
      hardcode_direct_absolute=yes
9923
      hardcode_libdir_separator=':'
9924
      link_all_deplibs=yes
9925
      file_list_spec='${wl}-f,'
9926
 
9927
      if test "$GCC" = yes; then
9928
        case $host_os in aix4.[012]|aix4.[012].*)
9929
        # We only want to do this on AIX 4.2 and lower, the check
9930
        # below for broken collect2 doesn't work under 4.3+
9931
          collect2name=`${CC} -print-prog-name=collect2`
9932
          if test -f "$collect2name" &&
9933
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9934
          then
9935
          # We have reworked collect2
9936
          :
9937
          else
9938
          # We have old collect2
9939
          hardcode_direct=unsupported
9940
          # It fails to find uninstalled libraries when the uninstalled
9941
          # path is not listed in the libpath.  Setting hardcode_minus_L
9942
          # to unsupported forces relinking
9943
          hardcode_minus_L=yes
9944
          hardcode_libdir_flag_spec='-L$libdir'
9945
          hardcode_libdir_separator=
9946
          fi
9947
          ;;
9948
        esac
9949
        shared_flag='-shared'
9950
        if test "$aix_use_runtimelinking" = yes; then
9951
          shared_flag="$shared_flag "'${wl}-G'
9952
        fi
9953
      else
9954
        # not using gcc
9955
        if test "$host_cpu" = ia64; then
9956
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9957
        # chokes on -Wl,-G. The following line is correct:
9958
          shared_flag='-G'
9959
        else
9960
          if test "$aix_use_runtimelinking" = yes; then
9961
            shared_flag='${wl}-G'
9962
          else
9963
            shared_flag='${wl}-bM:SRE'
9964
          fi
9965
        fi
9966
      fi
9967
 
9968
      export_dynamic_flag_spec='${wl}-bexpall'
9969
      # It seems that -bexpall does not export symbols beginning with
9970
      # underscore (_), so it is better to generate a list of symbols to export.
9971
      always_export_symbols=yes
9972
      if test "$aix_use_runtimelinking" = yes; then
9973
        # Warning - without using the other runtime loading flags (-brtl),
9974
        # -berok will link without error, but may produce a broken library.
9975
        allow_undefined_flag='-berok'
9976
        # Determine the default libpath from the value encoded in an
9977
        # empty executable.
9978
        cat >conftest.$ac_ext <<_ACEOF
9979
/* confdefs.h.  */
9980
_ACEOF
9981
cat confdefs.h >>conftest.$ac_ext
9982
cat >>conftest.$ac_ext <<_ACEOF
9983
/* end confdefs.h.  */
9984
 
9985
int
9986
main ()
9987
{
9988
 
9989
  ;
9990
  return 0;
9991
}
9992
_ACEOF
9993
rm -f conftest.$ac_objext conftest$ac_exeext
9994
if { (ac_try="$ac_link"
9995
case "(($ac_try" in
9996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997
  *) ac_try_echo=$ac_try;;
9998
esac
9999
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10000
$as_echo "$ac_try_echo") >&5
10001
  (eval "$ac_link") 2>conftest.er1
10002
  ac_status=$?
10003
  grep -v '^ *+' conftest.er1 >conftest.err
10004
  rm -f conftest.er1
10005
  cat conftest.err >&5
10006
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007
  (exit $ac_status); } && {
10008
         test -z "$ac_c_werror_flag" ||
10009
         test ! -s conftest.err
10010
       } && test -s conftest$ac_exeext && {
10011
         test "$cross_compiling" = yes ||
10012
         $as_test_x conftest$ac_exeext
10013
       }; then
10014
 
10015
lt_aix_libpath_sed='
10016
    /Import File Strings/,/^$/ {
10017
        /^0/ {
10018
            s/^0  *\(.*\)$/\1/
10019
            p
10020
        }
10021
    }'
10022
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10023
# Check for a 64-bit object if we didn't find anything.
10024
if test -z "$aix_libpath"; then
10025
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10026
fi
10027
else
10028
  $as_echo "$as_me: failed program was:" >&5
10029
sed 's/^/| /' conftest.$ac_ext >&5
10030
 
10031
 
10032
fi
10033
 
10034
rm -rf conftest.dSYM
10035
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10036
      conftest$ac_exeext conftest.$ac_ext
10037
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10038
 
10039
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10040
        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"
10041
      else
10042
        if test "$host_cpu" = ia64; then
10043
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10044
          allow_undefined_flag="-z nodefs"
10045
          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"
10046
        else
10047
         # Determine the default libpath from the value encoded in an
10048
         # empty executable.
10049
         cat >conftest.$ac_ext <<_ACEOF
10050
/* confdefs.h.  */
10051
_ACEOF
10052
cat confdefs.h >>conftest.$ac_ext
10053
cat >>conftest.$ac_ext <<_ACEOF
10054
/* end confdefs.h.  */
10055
 
10056
int
10057
main ()
10058
{
10059
 
10060
  ;
10061
  return 0;
10062
}
10063
_ACEOF
10064
rm -f conftest.$ac_objext conftest$ac_exeext
10065
if { (ac_try="$ac_link"
10066
case "(($ac_try" in
10067
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068
  *) ac_try_echo=$ac_try;;
10069
esac
10070
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10071
$as_echo "$ac_try_echo") >&5
10072
  (eval "$ac_link") 2>conftest.er1
10073
  ac_status=$?
10074
  grep -v '^ *+' conftest.er1 >conftest.err
10075
  rm -f conftest.er1
10076
  cat conftest.err >&5
10077
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078
  (exit $ac_status); } && {
10079
         test -z "$ac_c_werror_flag" ||
10080
         test ! -s conftest.err
10081
       } && test -s conftest$ac_exeext && {
10082
         test "$cross_compiling" = yes ||
10083
         $as_test_x conftest$ac_exeext
10084
       }; then
10085
 
10086
lt_aix_libpath_sed='
10087
    /Import File Strings/,/^$/ {
10088
        /^0/ {
10089
            s/^0  *\(.*\)$/\1/
10090
            p
10091
        }
10092
    }'
10093
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10094
# Check for a 64-bit object if we didn't find anything.
10095
if test -z "$aix_libpath"; then
10096
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10097
fi
10098
else
10099
  $as_echo "$as_me: failed program was:" >&5
10100
sed 's/^/| /' conftest.$ac_ext >&5
10101
 
10102
 
10103
fi
10104
 
10105
rm -rf conftest.dSYM
10106
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10107
      conftest$ac_exeext conftest.$ac_ext
10108
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10109
 
10110
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10111
          # Warning - without using the other run time loading flags,
10112
          # -berok will link without error, but may produce a broken library.
10113
          no_undefined_flag=' ${wl}-bernotok'
10114
          allow_undefined_flag=' ${wl}-berok'
10115
          # Exported symbols can be pulled into shared objects from archives
10116
          whole_archive_flag_spec='$convenience'
10117
          archive_cmds_need_lc=yes
10118
          # This is similar to how AIX traditionally builds its shared libraries.
10119
          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'
10120
        fi
10121
      fi
10122
      ;;
10123
 
10124
    amigaos*)
10125
      case $host_cpu in
10126
      powerpc)
10127
            # see comment about AmigaOS4 .so support
10128
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10129
            archive_expsym_cmds=''
10130
        ;;
10131
      m68k)
10132
            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)'
10133
            hardcode_libdir_flag_spec='-L$libdir'
10134
            hardcode_minus_L=yes
10135
        ;;
10136
      esac
10137
      ;;
10138
 
10139
    bsdi[45]*)
10140
      export_dynamic_flag_spec=-rdynamic
10141
      ;;
10142
 
10143
    cygwin* | mingw* | pw32* | cegcc*)
10144
      # When not using gcc, we currently assume that we are using
10145
      # Microsoft Visual C++.
10146
      # hardcode_libdir_flag_spec is actually meaningless, as there is
10147
      # no search path for DLLs.
10148
      hardcode_libdir_flag_spec=' '
10149
      allow_undefined_flag=unsupported
10150
      # Tell ltmain to make .lib files, not .a files.
10151
      libext=lib
10152
      # Tell ltmain to make .dll files, not .so files.
10153
      shrext_cmds=".dll"
10154
      # FIXME: Setting linknames here is a bad hack.
10155
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10156
      # The linker will automatically build a .lib file if we build a DLL.
10157
      old_archive_from_new_cmds='true'
10158
      # FIXME: Should let the user specify the lib program.
10159
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10160
      fix_srcfile_path='`cygpath -w "$srcfile"`'
10161
      enable_shared_with_static_runtimes=yes
10162
      ;;
10163
 
10164
    darwin* | rhapsody*)
10165
 
10166
 
10167
  archive_cmds_need_lc=no
10168
  hardcode_direct=no
10169
  hardcode_automatic=yes
10170
  hardcode_shlibpath_var=unsupported
10171
  whole_archive_flag_spec=''
10172
  link_all_deplibs=yes
10173
  allow_undefined_flag="$_lt_dar_allow_undefined"
10174
  case $cc_basename in
10175
     ifort*) _lt_dar_can_shared=yes ;;
10176
     *) _lt_dar_can_shared=$GCC ;;
10177
  esac
10178
  if test "$_lt_dar_can_shared" = "yes"; then
10179
    output_verbose_link_cmd=echo
10180
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10181
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10182
    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}"
10183
    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}"
10184
 
10185
  else
10186
  ld_shlibs=no
10187
  fi
10188
 
10189
      ;;
10190
 
10191
    dgux*)
10192
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193
      hardcode_libdir_flag_spec='-L$libdir'
10194
      hardcode_shlibpath_var=no
10195
      ;;
10196
 
10197
    freebsd1*)
10198
      ld_shlibs=no
10199
      ;;
10200
 
10201
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10202
    # support.  Future versions do this automatically, but an explicit c++rt0.o
10203
    # does not break anything, and helps significantly (at the cost of a little
10204
    # extra space).
10205
    freebsd2.2*)
10206
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10207
      hardcode_libdir_flag_spec='-R$libdir'
10208
      hardcode_direct=yes
10209
      hardcode_shlibpath_var=no
10210
      ;;
10211
 
10212
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10213
    freebsd2*)
10214
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10215
      hardcode_direct=yes
10216
      hardcode_minus_L=yes
10217
      hardcode_shlibpath_var=no
10218
      ;;
10219
 
10220
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10221
    freebsd* | dragonfly*)
10222
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10223
      hardcode_libdir_flag_spec='-R$libdir'
10224
      hardcode_direct=yes
10225
      hardcode_shlibpath_var=no
10226
      ;;
10227
 
10228
    hpux9*)
10229
      if test "$GCC" = yes; then
10230
        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'
10231
      else
10232
        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'
10233
      fi
10234
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10235
      hardcode_libdir_separator=:
10236
      hardcode_direct=yes
10237
 
10238
      # hardcode_minus_L: Not really in the search PATH,
10239
      # but as the default location of the library.
10240
      hardcode_minus_L=yes
10241
      export_dynamic_flag_spec='${wl}-E'
10242
      ;;
10243
 
10244
    hpux10*)
10245
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10246
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10247
      else
10248
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10249
      fi
10250
      if test "$with_gnu_ld" = no; then
10251
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10252
        hardcode_libdir_flag_spec_ld='+b $libdir'
10253
        hardcode_libdir_separator=:
10254
        hardcode_direct=yes
10255
        hardcode_direct_absolute=yes
10256
        export_dynamic_flag_spec='${wl}-E'
10257
        # hardcode_minus_L: Not really in the search PATH,
10258
        # but as the default location of the library.
10259
        hardcode_minus_L=yes
10260
      fi
10261
      ;;
10262
 
10263
    hpux11*)
10264
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10265
        case $host_cpu in
10266
        hppa*64*)
10267
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10268
          ;;
10269
        ia64*)
10270
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10271
          ;;
10272
        *)
10273
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10274
          ;;
10275
        esac
10276
      else
10277
        case $host_cpu in
10278
        hppa*64*)
10279
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10280
          ;;
10281
        ia64*)
10282
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10283
          ;;
10284
        *)
10285
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10286
          ;;
10287
        esac
10288
      fi
10289
      if test "$with_gnu_ld" = no; then
10290
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10291
        hardcode_libdir_separator=:
10292
 
10293
        case $host_cpu in
10294
        hppa*64*|ia64*)
10295
          hardcode_direct=no
10296
          hardcode_shlibpath_var=no
10297
          ;;
10298
        *)
10299
          hardcode_direct=yes
10300
          hardcode_direct_absolute=yes
10301
          export_dynamic_flag_spec='${wl}-E'
10302
 
10303
          # hardcode_minus_L: Not really in the search PATH,
10304
          # but as the default location of the library.
10305
          hardcode_minus_L=yes
10306
          ;;
10307
        esac
10308
      fi
10309
      ;;
10310
 
10311
    irix5* | irix6* | nonstopux*)
10312
      if test "$GCC" = yes; then
10313
        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'
10314
        # Try to use the -exported_symbol ld option, if it does not
10315
        # work, assume that -exports_file does not work either and
10316
        # implicitly export all symbols.
10317
        save_LDFLAGS="$LDFLAGS"
10318
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10319
        cat >conftest.$ac_ext <<_ACEOF
10320
int foo(void) {}
10321
_ACEOF
10322
rm -f conftest.$ac_objext conftest$ac_exeext
10323
if { (ac_try="$ac_link"
10324
case "(($ac_try" in
10325
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326
  *) ac_try_echo=$ac_try;;
10327
esac
10328
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10329
$as_echo "$ac_try_echo") >&5
10330
  (eval "$ac_link") 2>conftest.er1
10331
  ac_status=$?
10332
  grep -v '^ *+' conftest.er1 >conftest.err
10333
  rm -f conftest.er1
10334
  cat conftest.err >&5
10335
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336
  (exit $ac_status); } && {
10337
         test -z "$ac_c_werror_flag" ||
10338
         test ! -s conftest.err
10339
       } && test -s conftest$ac_exeext && {
10340
         test "$cross_compiling" = yes ||
10341
         $as_test_x conftest$ac_exeext
10342
       }; then
10343
  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'
10344
 
10345
else
10346
  $as_echo "$as_me: failed program was:" >&5
10347
sed 's/^/| /' conftest.$ac_ext >&5
10348
 
10349
 
10350
fi
10351
 
10352
rm -rf conftest.dSYM
10353
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10354
      conftest$ac_exeext conftest.$ac_ext
10355
        LDFLAGS="$save_LDFLAGS"
10356
      else
10357
        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'
10358
        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'
10359
      fi
10360
      archive_cmds_need_lc='no'
10361
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10362
      hardcode_libdir_separator=:
10363
      inherit_rpath=yes
10364
      link_all_deplibs=yes
10365
      ;;
10366
 
10367
    netbsd*)
10368
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10369
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10370
      else
10371
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10372
      fi
10373
      hardcode_libdir_flag_spec='-R$libdir'
10374
      hardcode_direct=yes
10375
      hardcode_shlibpath_var=no
10376
      ;;
10377
 
10378
    newsos6)
10379
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380
      hardcode_direct=yes
10381
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10382
      hardcode_libdir_separator=:
10383
      hardcode_shlibpath_var=no
10384
      ;;
10385
 
10386
    *nto* | *qnx*)
10387
      ;;
10388
 
10389
    openbsd*)
10390
      if test -f /usr/libexec/ld.so; then
10391
        hardcode_direct=yes
10392
        hardcode_shlibpath_var=no
10393
        hardcode_direct_absolute=yes
10394
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10395
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10396
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10397
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10398
          export_dynamic_flag_spec='${wl}-E'
10399
        else
10400
          case $host_os in
10401
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10402
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10403
             hardcode_libdir_flag_spec='-R$libdir'
10404
             ;;
10405
           *)
10406
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10407
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10408
             ;;
10409
          esac
10410
        fi
10411
      else
10412
        ld_shlibs=no
10413
      fi
10414
      ;;
10415
 
10416
    os2*)
10417
      hardcode_libdir_flag_spec='-L$libdir'
10418
      hardcode_minus_L=yes
10419
      allow_undefined_flag=unsupported
10420
      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'
10421
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10422
      ;;
10423
 
10424
    osf3*)
10425
      if test "$GCC" = yes; then
10426
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10427
        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'
10428
      else
10429
        allow_undefined_flag=' -expect_unresolved \*'
10430
        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'
10431
      fi
10432
      archive_cmds_need_lc='no'
10433
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10434
      hardcode_libdir_separator=:
10435
      ;;
10436
 
10437
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10438
      if test "$GCC" = yes; then
10439
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10440
        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'
10441
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10442
      else
10443
        allow_undefined_flag=' -expect_unresolved \*'
10444
        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'
10445
        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~
10446
        $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'
10447
 
10448
        # Both c and cxx compiler support -rpath directly
10449
        hardcode_libdir_flag_spec='-rpath $libdir'
10450
      fi
10451
      archive_cmds_need_lc='no'
10452
      hardcode_libdir_separator=:
10453
      ;;
10454
 
10455
    solaris*)
10456
      no_undefined_flag=' -z defs'
10457
      if test "$GCC" = yes; then
10458
        wlarc='${wl}'
10459
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10460
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10461
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10462
      else
10463
        case `$CC -V 2>&1` in
10464
        *"Compilers 5.0"*)
10465
          wlarc=''
10466
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10467
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10468
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10469
          ;;
10470
        *)
10471
          wlarc='${wl}'
10472
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10473
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10474
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10475
          ;;
10476
        esac
10477
      fi
10478
      hardcode_libdir_flag_spec='-R$libdir'
10479
      hardcode_shlibpath_var=no
10480
      case $host_os in
10481
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10482
      *)
10483
        # The compiler driver will combine and reorder linker options,
10484
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10485
        # but is careful enough not to reorder.
10486
        # Supported since Solaris 2.6 (maybe 2.5.1?)
10487
        if test "$GCC" = yes; then
10488
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10489
        else
10490
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10491
        fi
10492
        ;;
10493
      esac
10494
      link_all_deplibs=yes
10495
      ;;
10496
 
10497
    sunos4*)
10498
      if test "x$host_vendor" = xsequent; then
10499
        # Use $CC to link under sequent, because it throws in some extra .o
10500
        # files that make .init and .fini sections work.
10501
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10502
      else
10503
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10504
      fi
10505
      hardcode_libdir_flag_spec='-L$libdir'
10506
      hardcode_direct=yes
10507
      hardcode_minus_L=yes
10508
      hardcode_shlibpath_var=no
10509
      ;;
10510
 
10511
    sysv4)
10512
      case $host_vendor in
10513
        sni)
10514
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10515
          hardcode_direct=yes # is this really true???
10516
        ;;
10517
        siemens)
10518
          ## LD is ld it makes a PLAMLIB
10519
          ## CC just makes a GrossModule.
10520
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10521
          reload_cmds='$CC -r -o $output$reload_objs'
10522
          hardcode_direct=no
10523
        ;;
10524
        motorola)
10525
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10526
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10527
        ;;
10528
      esac
10529
      runpath_var='LD_RUN_PATH'
10530
      hardcode_shlibpath_var=no
10531
      ;;
10532
 
10533
    sysv4.3*)
10534
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535
      hardcode_shlibpath_var=no
10536
      export_dynamic_flag_spec='-Bexport'
10537
      ;;
10538
 
10539
    sysv4*MP*)
10540
      if test -d /usr/nec; then
10541
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10542
        hardcode_shlibpath_var=no
10543
        runpath_var=LD_RUN_PATH
10544
        hardcode_runpath_var=yes
10545
        ld_shlibs=yes
10546
      fi
10547
      ;;
10548
 
10549
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10550
      no_undefined_flag='${wl}-z,text'
10551
      archive_cmds_need_lc=no
10552
      hardcode_shlibpath_var=no
10553
      runpath_var='LD_RUN_PATH'
10554
 
10555
      if test "$GCC" = yes; then
10556
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10557
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10558
      else
10559
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10560
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10561
      fi
10562
      ;;
10563
 
10564
    sysv5* | sco3.2v5* | sco5v6*)
10565
      # Note: We can NOT use -z defs as we might desire, because we do not
10566
      # link with -lc, and that would cause any symbols used from libc to
10567
      # always be unresolved, which means just about no library would
10568
      # ever link correctly.  If we're not using GNU ld we use -z text
10569
      # though, which does catch some bad symbols but isn't as heavy-handed
10570
      # as -z defs.
10571
      no_undefined_flag='${wl}-z,text'
10572
      allow_undefined_flag='${wl}-z,nodefs'
10573
      archive_cmds_need_lc=no
10574
      hardcode_shlibpath_var=no
10575
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10576
      hardcode_libdir_separator=':'
10577
      link_all_deplibs=yes
10578
      export_dynamic_flag_spec='${wl}-Bexport'
10579
      runpath_var='LD_RUN_PATH'
10580
 
10581
      if test "$GCC" = yes; then
10582
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10583
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10584
      else
10585
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10587
      fi
10588
      ;;
10589
 
10590
    uts4*)
10591
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10592
      hardcode_libdir_flag_spec='-L$libdir'
10593
      hardcode_shlibpath_var=no
10594
      ;;
10595
 
10596
    *)
10597
      ld_shlibs=no
10598
      ;;
10599
    esac
10600
 
10601
    if test x$host_vendor = xsni; then
10602
      case $host in
10603
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10604
        export_dynamic_flag_spec='${wl}-Blargedynsym'
10605
        ;;
10606
      esac
10607
    fi
10608
  fi
10609
 
10610
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10611
$as_echo "$ld_shlibs" >&6; }
10612
test "$ld_shlibs" = no && can_build_shared=no
10613
 
10614
with_gnu_ld=$with_gnu_ld
10615
 
10616
 
10617
 
10618
 
10619
 
10620
 
10621
 
10622
 
10623
 
10624
 
10625
 
10626
 
10627
 
10628
 
10629
 
10630
#
10631
# Do we need to explicitly link libc?
10632
#
10633
case "x$archive_cmds_need_lc" in
10634
x|xyes)
10635
  # Assume -lc should be added
10636
  archive_cmds_need_lc=yes
10637
 
10638
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10639
    case $archive_cmds in
10640
    *'~'*)
10641
      # FIXME: we may have to deal with multi-command sequences.
10642
      ;;
10643
    '$CC '*)
10644
      # Test whether the compiler implicitly links with -lc since on some
10645
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10646
      # to ld, don't add -lc before -lgcc.
10647
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10648
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10649
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10650
  $as_echo_n "(cached) " >&6
10651
else
10652
  $RM conftest*
10653
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10654
 
10655
        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10656
  (eval $ac_compile) 2>&5
10657
  ac_status=$?
10658
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659
  (exit $ac_status); } 2>conftest.err; then
10660
          soname=conftest
10661
          lib=conftest
10662
          libobjs=conftest.$ac_objext
10663
          deplibs=
10664
          wl=$lt_prog_compiler_wl
10665
          pic_flag=$lt_prog_compiler_pic
10666
          compiler_flags=-v
10667
          linker_flags=-v
10668
          verstring=
10669
          output_objdir=.
10670
          libname=conftest
10671
          lt_save_allow_undefined_flag=$allow_undefined_flag
10672
          allow_undefined_flag=
10673
          if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10674
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10675
  ac_status=$?
10676
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677
  (exit $ac_status); }
10678
          then
10679
            lt_cv_archive_cmds_need_lc=no
10680
          else
10681
            lt_cv_archive_cmds_need_lc=yes
10682
          fi
10683
          allow_undefined_flag=$lt_save_allow_undefined_flag
10684
        else
10685
          cat conftest.err 1>&5
10686
        fi
10687
        $RM conftest*
10688
 
10689
fi
10690
{ $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10691
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10692
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10693
      ;;
10694
    esac
10695
  fi
10696
  ;;
10697
esac
10698
 
10699
 
10700
 
10701
 
10702
 
10703
 
10704
 
10705
 
10706
 
10707
 
10708
 
10709
 
10710
 
10711
 
10712
 
10713
 
10714
 
10715
 
10716
 
10717
 
10718
 
10719
 
10720
 
10721
 
10722
 
10723
 
10724
 
10725
 
10726
 
10727
 
10728
 
10729
 
10730
 
10731
 
10732
 
10733
 
10734
 
10735
 
10736
 
10737
 
10738
 
10739
 
10740
 
10741
 
10742
 
10743
 
10744
 
10745
 
10746
 
10747
 
10748
 
10749
 
10750
 
10751
 
10752
 
10753
 
10754
 
10755
 
10756
 
10757
 
10758
 
10759
 
10760
 
10761
 
10762
 
10763
 
10764
 
10765
 
10766
 
10767
 
10768
 
10769
 
10770
 
10771
 
10772
 
10773
 
10774
 
10775
 
10776
 
10777
 
10778
 
10779
 
10780
 
10781
 
10782
 
10783
 
10784
 
10785
 
10786
 
10787
 
10788
 
10789
 
10790
 
10791
 
10792
 
10793
 
10794
 
10795
 
10796
 
10797
 
10798
 
10799
 
10800
 
10801
 
10802
 
10803
 
10804
 
10805
 
10806
 
10807
 
10808
 
10809
 
10810
 
10811
 
10812
 
10813
 
10814
 
10815
 
10816
 
10817
 
10818
 
10819
 
10820
 
10821
 
10822
 
10823
 
10824
 
10825
 
10826
 
10827
 
10828
 
10829
 
10830
 
10831
 
10832
 
10833
 
10834
 
10835
 
10836
 
10837
 
10838
 
10839
 
10840
 
10841
 
10842
 
10843
 
10844
 
10845
 
10846
 
10847
 
10848
 
10849
 
10850
 
10851
 
10852
 
10853
 
10854
 
10855
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10856
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10857
 
10858
if test "$GCC" = yes; then
10859
  case $host_os in
10860
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10861
    *) lt_awk_arg="/^libraries:/" ;;
10862
  esac
10863
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10864
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10865
    # if the path contains ";" then we assume it to be the separator
10866
    # otherwise default to the standard path separator (i.e. ":") - it is
10867
    # assumed that no part of a normal pathname contains ";" but that should
10868
    # okay in the real world where ";" in dirpaths is itself problematic.
10869
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10870
  else
10871
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10872
  fi
10873
  # Ok, now we have the path, separated by spaces, we can step through it
10874
  # and add multilib dir if necessary.
10875
  lt_tmp_lt_search_path_spec=
10876
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10877
  for lt_sys_path in $lt_search_path_spec; do
10878
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10879
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10880
    else
10881
      test -d "$lt_sys_path" && \
10882
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10883
    fi
10884
  done
10885
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10886
BEGIN {RS=" "; FS="/|\n";} {
10887
  lt_foo="";
10888
  lt_count=0;
10889
  for (lt_i = NF; lt_i > 0; lt_i--) {
10890
    if ($lt_i != "" && $lt_i != ".") {
10891
      if ($lt_i == "..") {
10892
        lt_count++;
10893
      } else {
10894
        if (lt_count == 0) {
10895
          lt_foo="/" $lt_i lt_foo;
10896
        } else {
10897
          lt_count--;
10898
        }
10899
      }
10900
    }
10901
  }
10902
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10903
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10904
}'`
10905
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10906
else
10907
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10908
fi
10909
library_names_spec=
10910
libname_spec='lib$name'
10911
soname_spec=
10912
shrext_cmds=".so"
10913
postinstall_cmds=
10914
postuninstall_cmds=
10915
finish_cmds=
10916
finish_eval=
10917
shlibpath_var=
10918
shlibpath_overrides_runpath=unknown
10919
version_type=none
10920
dynamic_linker="$host_os ld.so"
10921
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10922
need_lib_prefix=unknown
10923
hardcode_into_libs=no
10924
 
10925
# when you set need_version to no, make sure it does not cause -set_version
10926
# flags to be left without arguments
10927
need_version=unknown
10928
 
10929
case $host_os in
10930
aix3*)
10931
  version_type=linux
10932
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10933
  shlibpath_var=LIBPATH
10934
 
10935
  # AIX 3 has no versioning support, so we append a major version to the name.
10936
  soname_spec='${libname}${release}${shared_ext}$major'
10937
  ;;
10938
 
10939
aix[4-9]*)
10940
  version_type=linux
10941
  need_lib_prefix=no
10942
  need_version=no
10943
  hardcode_into_libs=yes
10944
  if test "$host_cpu" = ia64; then
10945
    # AIX 5 supports IA64
10946
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10947
    shlibpath_var=LD_LIBRARY_PATH
10948
  else
10949
    # With GCC up to 2.95.x, collect2 would create an import file
10950
    # for dependence libraries.  The import file would start with
10951
    # the line `#! .'.  This would cause the generated library to
10952
    # depend on `.', always an invalid library.  This was fixed in
10953
    # development snapshots of GCC prior to 3.0.
10954
    case $host_os in
10955
      aix4 | aix4.[01] | aix4.[01].*)
10956
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10957
           echo ' yes '
10958
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10959
        :
10960
      else
10961
        can_build_shared=no
10962
      fi
10963
      ;;
10964
    esac
10965
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10966
    # soname into executable. Probably we can add versioning support to
10967
    # collect2, so additional links can be useful in future.
10968
    if test "$aix_use_runtimelinking" = yes; then
10969
      # If using run time linking (on AIX 4.2 or later) use lib.so
10970
      # instead of lib.a to let people know that these are not
10971
      # typical AIX shared libraries.
10972
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973
    else
10974
      # We preserve .a as extension for shared libraries through AIX4.2
10975
      # and later when we are not doing run time linking.
10976
      library_names_spec='${libname}${release}.a $libname.a'
10977
      soname_spec='${libname}${release}${shared_ext}$major'
10978
    fi
10979
    shlibpath_var=LIBPATH
10980
  fi
10981
  ;;
10982
 
10983
amigaos*)
10984
  case $host_cpu in
10985
  powerpc)
10986
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10987
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10988
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989
    ;;
10990
  m68k)
10991
    library_names_spec='$libname.ixlibrary $libname.a'
10992
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10993
    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'
10994
    ;;
10995
  esac
10996
  ;;
10997
 
10998
beos*)
10999
  library_names_spec='${libname}${shared_ext}'
11000
  dynamic_linker="$host_os ld.so"
11001
  shlibpath_var=LIBRARY_PATH
11002
  ;;
11003
 
11004
bsdi[45]*)
11005
  version_type=linux
11006
  need_version=no
11007
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008
  soname_spec='${libname}${release}${shared_ext}$major'
11009
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11010
  shlibpath_var=LD_LIBRARY_PATH
11011
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11012
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11013
  # the default ld.so.conf also contains /usr/contrib/lib and
11014
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11015
  # libtool to hard-code these into programs
11016
  ;;
11017
 
11018
cygwin* | mingw* | pw32* | cegcc*)
11019
  version_type=windows
11020
  shrext_cmds=".dll"
11021
  need_version=no
11022
  need_lib_prefix=no
11023
 
11024
  case $GCC,$host_os in
11025
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11026
    library_names_spec='$libname.dll.a'
11027
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11028
    postinstall_cmds='base_file=`basename \${file}`~
11029
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11030
      dldir=$destdir/`dirname \$dlpath`~
11031
      test -d \$dldir || mkdir -p \$dldir~
11032
      $install_prog $dir/$dlname \$dldir/$dlname~
11033
      chmod a+x \$dldir/$dlname~
11034
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11035
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11036
      fi'
11037
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11038
      dlpath=$dir/\$dldll~
11039
       $RM \$dlpath'
11040
    shlibpath_overrides_runpath=yes
11041
 
11042
    case $host_os in
11043
    cygwin*)
11044
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11045
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11046
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11047
      ;;
11048
    mingw* | cegcc*)
11049
      # MinGW DLLs use traditional 'lib' prefix
11050
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11051
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11052
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11053
        # It is most probably a Windows format PATH printed by
11054
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11055
        # path with ; separators, and with drive letters. We can handle the
11056
        # drive letters (cygwin fileutils understands them), so leave them,
11057
        # especially as we might pass files found there to a mingw objdump,
11058
        # which wouldn't understand a cygwinified path. Ahh.
11059
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11060
      else
11061
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11062
      fi
11063
      ;;
11064
    pw32*)
11065
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11066
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11067
      ;;
11068
    esac
11069
    ;;
11070
 
11071
  *)
11072
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11073
    ;;
11074
  esac
11075
  dynamic_linker='Win32 ld.exe'
11076
  # FIXME: first we should search . and the directory the executable is in
11077
  shlibpath_var=PATH
11078
  ;;
11079
 
11080
darwin* | rhapsody*)
11081
  dynamic_linker="$host_os dyld"
11082
  version_type=darwin
11083
  need_lib_prefix=no
11084
  need_version=no
11085
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11086
  soname_spec='${libname}${release}${major}$shared_ext'
11087
  shlibpath_overrides_runpath=yes
11088
  shlibpath_var=DYLD_LIBRARY_PATH
11089
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11090
 
11091
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11092
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11093
  ;;
11094
 
11095
dgux*)
11096
  version_type=linux
11097
  need_lib_prefix=no
11098
  need_version=no
11099
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11100
  soname_spec='${libname}${release}${shared_ext}$major'
11101
  shlibpath_var=LD_LIBRARY_PATH
11102
  ;;
11103
 
11104
freebsd1*)
11105
  dynamic_linker=no
11106
  ;;
11107
 
11108
freebsd* | dragonfly*)
11109
  # DragonFly does not have aout.  When/if they implement a new
11110
  # versioning mechanism, adjust this.
11111
  if test -x /usr/bin/objformat; then
11112
    objformat=`/usr/bin/objformat`
11113
  else
11114
    case $host_os in
11115
    freebsd[123]*) objformat=aout ;;
11116
    *) objformat=elf ;;
11117
    esac
11118
  fi
11119
  version_type=freebsd-$objformat
11120
  case $version_type in
11121
    freebsd-elf*)
11122
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11123
      need_version=no
11124
      need_lib_prefix=no
11125
      ;;
11126
    freebsd-*)
11127
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11128
      need_version=yes
11129
      ;;
11130
  esac
11131
  shlibpath_var=LD_LIBRARY_PATH
11132
  case $host_os in
11133
  freebsd2*)
11134
    shlibpath_overrides_runpath=yes
11135
    ;;
11136
  freebsd3.[01]* | freebsdelf3.[01]*)
11137
    shlibpath_overrides_runpath=yes
11138
    hardcode_into_libs=yes
11139
    ;;
11140
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11141
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11142
    shlibpath_overrides_runpath=no
11143
    hardcode_into_libs=yes
11144
    ;;
11145
  *) # from 4.6 on, and DragonFly
11146
    shlibpath_overrides_runpath=yes
11147
    hardcode_into_libs=yes
11148
    ;;
11149
  esac
11150
  ;;
11151
 
11152
gnu*)
11153
  version_type=linux
11154
  need_lib_prefix=no
11155
  need_version=no
11156
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11157
  soname_spec='${libname}${release}${shared_ext}$major'
11158
  shlibpath_var=LD_LIBRARY_PATH
11159
  hardcode_into_libs=yes
11160
  ;;
11161
 
11162
hpux9* | hpux10* | hpux11*)
11163
  # Give a soname corresponding to the major version so that dld.sl refuses to
11164
  # link against other versions.
11165
  version_type=sunos
11166
  need_lib_prefix=no
11167
  need_version=no
11168
  case $host_cpu in
11169
  ia64*)
11170
    shrext_cmds='.so'
11171
    hardcode_into_libs=yes
11172
    dynamic_linker="$host_os dld.so"
11173
    shlibpath_var=LD_LIBRARY_PATH
11174
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11175
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176
    soname_spec='${libname}${release}${shared_ext}$major'
11177
    if test "X$HPUX_IA64_MODE" = X32; then
11178
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11179
    else
11180
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11181
    fi
11182
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11183
    ;;
11184
  hppa*64*)
11185
    shrext_cmds='.sl'
11186
    hardcode_into_libs=yes
11187
    dynamic_linker="$host_os dld.sl"
11188
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11189
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11190
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191
    soname_spec='${libname}${release}${shared_ext}$major'
11192
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11193
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11194
    ;;
11195
  *)
11196
    shrext_cmds='.sl'
11197
    dynamic_linker="$host_os dld.sl"
11198
    shlibpath_var=SHLIB_PATH
11199
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11200
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201
    soname_spec='${libname}${release}${shared_ext}$major'
11202
    ;;
11203
  esac
11204
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11205
  postinstall_cmds='chmod 555 $lib'
11206
  ;;
11207
 
11208
interix[3-9]*)
11209
  version_type=linux
11210
  need_lib_prefix=no
11211
  need_version=no
11212
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11213
  soname_spec='${libname}${release}${shared_ext}$major'
11214
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11215
  shlibpath_var=LD_LIBRARY_PATH
11216
  shlibpath_overrides_runpath=no
11217
  hardcode_into_libs=yes
11218
  ;;
11219
 
11220
irix5* | irix6* | nonstopux*)
11221
  case $host_os in
11222
    nonstopux*) version_type=nonstopux ;;
11223
    *)
11224
        if test "$lt_cv_prog_gnu_ld" = yes; then
11225
                version_type=linux
11226
        else
11227
                version_type=irix
11228
        fi ;;
11229
  esac
11230
  need_lib_prefix=no
11231
  need_version=no
11232
  soname_spec='${libname}${release}${shared_ext}$major'
11233
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11234
  case $host_os in
11235
  irix5* | nonstopux*)
11236
    libsuff= shlibsuff=
11237
    ;;
11238
  *)
11239
    case $LD in # libtool.m4 will add one of these switches to LD
11240
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11241
      libsuff= shlibsuff= libmagic=32-bit;;
11242
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11243
      libsuff=32 shlibsuff=N32 libmagic=N32;;
11244
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11245
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11246
    *) libsuff= shlibsuff= libmagic=never-match;;
11247
    esac
11248
    ;;
11249
  esac
11250
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11251
  shlibpath_overrides_runpath=no
11252
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11253
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11254
  hardcode_into_libs=yes
11255
  ;;
11256
 
11257
# No shared lib support for Linux oldld, aout, or coff.
11258
linux*oldld* | linux*aout* | linux*coff*)
11259
  dynamic_linker=no
11260
  ;;
11261
 
11262
# This must be Linux ELF.
11263
linux* | k*bsd*-gnu | kopensolaris*-gnu)
11264
  version_type=linux
11265
  need_lib_prefix=no
11266
  need_version=no
11267
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11268
  soname_spec='${libname}${release}${shared_ext}$major'
11269
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11270
  shlibpath_var=LD_LIBRARY_PATH
11271
  shlibpath_overrides_runpath=no
11272
 
11273
  # Some binutils ld are patched to set DT_RUNPATH
11274
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11275
  $as_echo_n "(cached) " >&6
11276
else
11277
  lt_cv_shlibpath_overrides_runpath=no
11278
    save_LDFLAGS=$LDFLAGS
11279
    save_libdir=$libdir
11280
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11281
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11282
    cat >conftest.$ac_ext <<_ACEOF
11283
/* confdefs.h.  */
11284
_ACEOF
11285
cat confdefs.h >>conftest.$ac_ext
11286
cat >>conftest.$ac_ext <<_ACEOF
11287
/* end confdefs.h.  */
11288
 
11289
int
11290
main ()
11291
{
11292
 
11293
  ;
11294
  return 0;
11295
}
11296
_ACEOF
11297
rm -f conftest.$ac_objext conftest$ac_exeext
11298
if { (ac_try="$ac_link"
11299
case "(($ac_try" in
11300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301
  *) ac_try_echo=$ac_try;;
11302
esac
11303
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11304
$as_echo "$ac_try_echo") >&5
11305
  (eval "$ac_link") 2>conftest.er1
11306
  ac_status=$?
11307
  grep -v '^ *+' conftest.er1 >conftest.err
11308
  rm -f conftest.er1
11309
  cat conftest.err >&5
11310
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311
  (exit $ac_status); } && {
11312
         test -z "$ac_c_werror_flag" ||
11313
         test ! -s conftest.err
11314
       } && test -s conftest$ac_exeext && {
11315
         test "$cross_compiling" = yes ||
11316
         $as_test_x conftest$ac_exeext
11317
       }; then
11318
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11319
  lt_cv_shlibpath_overrides_runpath=yes
11320
fi
11321
 
11322
else
11323
  $as_echo "$as_me: failed program was:" >&5
11324
sed 's/^/| /' conftest.$ac_ext >&5
11325
 
11326
 
11327
fi
11328
 
11329
rm -rf conftest.dSYM
11330
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11331
      conftest$ac_exeext conftest.$ac_ext
11332
    LDFLAGS=$save_LDFLAGS
11333
    libdir=$save_libdir
11334
 
11335
fi
11336
 
11337
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11338
 
11339
  # This implies no fast_install, which is unacceptable.
11340
  # Some rework will be needed to allow for fast_install
11341
  # before this can be enabled.
11342
  hardcode_into_libs=yes
11343
 
11344
  # Append ld.so.conf contents to the search path
11345
  if test -f /etc/ld.so.conf; then
11346
    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' ' '`
11347
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11348
  fi
11349
 
11350
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11351
  # powerpc, because MkLinux only supported shared libraries with the
11352
  # GNU dynamic linker.  Since this was broken with cross compilers,
11353
  # most powerpc-linux boxes support dynamic linking these days and
11354
  # people can always --disable-shared, the test was removed, and we
11355
  # assume the GNU/Linux dynamic linker is in use.
11356
  dynamic_linker='GNU/Linux ld.so'
11357
  ;;
11358
 
11359
netbsd*)
11360
  version_type=sunos
11361
  need_lib_prefix=no
11362
  need_version=no
11363
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11364
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11365
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11366
    dynamic_linker='NetBSD (a.out) ld.so'
11367
  else
11368
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11369
    soname_spec='${libname}${release}${shared_ext}$major'
11370
    dynamic_linker='NetBSD ld.elf_so'
11371
  fi
11372
  shlibpath_var=LD_LIBRARY_PATH
11373
  shlibpath_overrides_runpath=yes
11374
  hardcode_into_libs=yes
11375
  ;;
11376
 
11377
newsos6)
11378
  version_type=linux
11379
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380
  shlibpath_var=LD_LIBRARY_PATH
11381
  shlibpath_overrides_runpath=yes
11382
  ;;
11383
 
11384
*nto* | *qnx*)
11385
  version_type=qnx
11386
  need_lib_prefix=no
11387
  need_version=no
11388
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389
  soname_spec='${libname}${release}${shared_ext}$major'
11390
  shlibpath_var=LD_LIBRARY_PATH
11391
  shlibpath_overrides_runpath=no
11392
  hardcode_into_libs=yes
11393
  dynamic_linker='ldqnx.so'
11394
  ;;
11395
 
11396
openbsd*)
11397
  version_type=sunos
11398
  sys_lib_dlsearch_path_spec="/usr/lib"
11399
  need_lib_prefix=no
11400
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11401
  case $host_os in
11402
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11403
    *)                          need_version=no  ;;
11404
  esac
11405
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11406
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11407
  shlibpath_var=LD_LIBRARY_PATH
11408
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11409
    case $host_os in
11410
      openbsd2.[89] | openbsd2.[89].*)
11411
        shlibpath_overrides_runpath=no
11412
        ;;
11413
      *)
11414
        shlibpath_overrides_runpath=yes
11415
        ;;
11416
      esac
11417
  else
11418
    shlibpath_overrides_runpath=yes
11419
  fi
11420
  ;;
11421
 
11422
os2*)
11423
  libname_spec='$name'
11424
  shrext_cmds=".dll"
11425
  need_lib_prefix=no
11426
  library_names_spec='$libname${shared_ext} $libname.a'
11427
  dynamic_linker='OS/2 ld.exe'
11428
  shlibpath_var=LIBPATH
11429
  ;;
11430
 
11431
osf3* | osf4* | osf5*)
11432
  version_type=osf
11433
  need_lib_prefix=no
11434
  need_version=no
11435
  soname_spec='${libname}${release}${shared_ext}$major'
11436
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11437
  shlibpath_var=LD_LIBRARY_PATH
11438
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11439
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11440
  ;;
11441
 
11442
rdos*)
11443
  dynamic_linker=no
11444
  ;;
11445
 
11446
solaris*)
11447
  version_type=linux
11448
  need_lib_prefix=no
11449
  need_version=no
11450
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451
  soname_spec='${libname}${release}${shared_ext}$major'
11452
  shlibpath_var=LD_LIBRARY_PATH
11453
  shlibpath_overrides_runpath=yes
11454
  hardcode_into_libs=yes
11455
  # ldd complains unless libraries are executable
11456
  postinstall_cmds='chmod +x $lib'
11457
  ;;
11458
 
11459
sunos4*)
11460
  version_type=sunos
11461
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11462
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11463
  shlibpath_var=LD_LIBRARY_PATH
11464
  shlibpath_overrides_runpath=yes
11465
  if test "$with_gnu_ld" = yes; then
11466
    need_lib_prefix=no
11467
  fi
11468
  need_version=yes
11469
  ;;
11470
 
11471
sysv4 | sysv4.3*)
11472
  version_type=linux
11473
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11474
  soname_spec='${libname}${release}${shared_ext}$major'
11475
  shlibpath_var=LD_LIBRARY_PATH
11476
  case $host_vendor in
11477
    sni)
11478
      shlibpath_overrides_runpath=no
11479
      need_lib_prefix=no
11480
      runpath_var=LD_RUN_PATH
11481
      ;;
11482
    siemens)
11483
      need_lib_prefix=no
11484
      ;;
11485
    motorola)
11486
      need_lib_prefix=no
11487
      need_version=no
11488
      shlibpath_overrides_runpath=no
11489
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11490
      ;;
11491
  esac
11492
  ;;
11493
 
11494
sysv4*MP*)
11495
  if test -d /usr/nec ;then
11496
    version_type=linux
11497
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11498
    soname_spec='$libname${shared_ext}.$major'
11499
    shlibpath_var=LD_LIBRARY_PATH
11500
  fi
11501
  ;;
11502
 
11503
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11504
  version_type=freebsd-elf
11505
  need_lib_prefix=no
11506
  need_version=no
11507
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11508
  soname_spec='${libname}${release}${shared_ext}$major'
11509
  shlibpath_var=LD_LIBRARY_PATH
11510
  shlibpath_overrides_runpath=yes
11511
  hardcode_into_libs=yes
11512
  if test "$with_gnu_ld" = yes; then
11513
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11514
  else
11515
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11516
    case $host_os in
11517
      sco3.2v5*)
11518
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11519
        ;;
11520
    esac
11521
  fi
11522
  sys_lib_dlsearch_path_spec='/usr/lib'
11523
  ;;
11524
 
11525
tpf*)
11526
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11527
  version_type=linux
11528
  need_lib_prefix=no
11529
  need_version=no
11530
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11531
  shlibpath_var=LD_LIBRARY_PATH
11532
  shlibpath_overrides_runpath=no
11533
  hardcode_into_libs=yes
11534
  ;;
11535
 
11536
uts4*)
11537
  version_type=linux
11538
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539
  soname_spec='${libname}${release}${shared_ext}$major'
11540
  shlibpath_var=LD_LIBRARY_PATH
11541
  ;;
11542
 
11543
*)
11544
  dynamic_linker=no
11545
  ;;
11546
esac
11547
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11548
$as_echo "$dynamic_linker" >&6; }
11549
test "$dynamic_linker" = no && can_build_shared=no
11550
 
11551
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11552
if test "$GCC" = yes; then
11553
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11554
fi
11555
 
11556
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11557
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11558
fi
11559
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11560
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11561
fi
11562
 
11563
 
11564
 
11565
 
11566
 
11567
 
11568
 
11569
 
11570
 
11571
 
11572
 
11573
 
11574
 
11575
 
11576
 
11577
 
11578
 
11579
 
11580
 
11581
 
11582
 
11583
 
11584
 
11585
 
11586
 
11587
 
11588
 
11589
 
11590
 
11591
 
11592
 
11593
 
11594
 
11595
 
11596
 
11597
 
11598
 
11599
 
11600
 
11601
 
11602
 
11603
 
11604
 
11605
 
11606
 
11607
 
11608
 
11609
 
11610
 
11611
 
11612
 
11613
 
11614
 
11615
 
11616
 
11617
 
11618
 
11619
 
11620
 
11621
 
11622
 
11623
 
11624
 
11625
 
11626
 
11627
 
11628
 
11629
 
11630
 
11631
 
11632
 
11633
 
11634
 
11635
 
11636
 
11637
 
11638
 
11639
 
11640
 
11641
 
11642
 
11643
 
11644
 
11645
 
11646
 
11647
 
11648
 
11649
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11650
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11651
hardcode_action=
11652
if test -n "$hardcode_libdir_flag_spec" ||
11653
   test -n "$runpath_var" ||
11654
   test "X$hardcode_automatic" = "Xyes" ; then
11655
 
11656
  # We can hardcode non-existent directories.
11657
  if test "$hardcode_direct" != no &&
11658
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11659
     # have to relink, otherwise we might link with an installed library
11660
     # when we should be linking with a yet-to-be-installed one
11661
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11662
     test "$hardcode_minus_L" != no; then
11663
    # Linking always hardcodes the temporary library directory.
11664
    hardcode_action=relink
11665
  else
11666
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11667
    hardcode_action=immediate
11668
  fi
11669
else
11670
  # We cannot hardcode anything, or else we can only hardcode existing
11671
  # directories.
11672
  hardcode_action=unsupported
11673
fi
11674
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11675
$as_echo "$hardcode_action" >&6; }
11676
 
11677
if test "$hardcode_action" = relink ||
11678
   test "$inherit_rpath" = yes; then
11679
  # Fast installation is not supported
11680
  enable_fast_install=no
11681
elif test "$shlibpath_overrides_runpath" = yes ||
11682
     test "$enable_shared" = no; then
11683
  # Fast installation is not necessary
11684
  enable_fast_install=needless
11685
fi
11686
 
11687
 
11688
 
11689
 
11690
 
11691
 
11692
  if test "x$enable_dlopen" != xyes; then
11693
  enable_dlopen=unknown
11694
  enable_dlopen_self=unknown
11695
  enable_dlopen_self_static=unknown
11696
else
11697
  lt_cv_dlopen=no
11698
  lt_cv_dlopen_libs=
11699
 
11700
  case $host_os in
11701
  beos*)
11702
    lt_cv_dlopen="load_add_on"
11703
    lt_cv_dlopen_libs=
11704
    lt_cv_dlopen_self=yes
11705
    ;;
11706
 
11707
  mingw* | pw32* | cegcc*)
11708
    lt_cv_dlopen="LoadLibrary"
11709
    lt_cv_dlopen_libs=
11710
    ;;
11711
 
11712
  cygwin*)
11713
    lt_cv_dlopen="dlopen"
11714
    lt_cv_dlopen_libs=
11715
    ;;
11716
 
11717
  darwin*)
11718
  # if libdl is installed we need to link against it
11719
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11720
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11721
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11722
  $as_echo_n "(cached) " >&6
11723
else
11724
  ac_check_lib_save_LIBS=$LIBS
11725
LIBS="-ldl  $LIBS"
11726
cat >conftest.$ac_ext <<_ACEOF
11727
/* confdefs.h.  */
11728
_ACEOF
11729
cat confdefs.h >>conftest.$ac_ext
11730
cat >>conftest.$ac_ext <<_ACEOF
11731
/* end confdefs.h.  */
11732
 
11733
/* Override any GCC internal prototype to avoid an error.
11734
   Use char because int might match the return type of a GCC
11735
   builtin and then its argument prototype would still apply.  */
11736
#ifdef __cplusplus
11737
extern "C"
11738
#endif
11739
char dlopen ();
11740
int
11741
main ()
11742
{
11743
return dlopen ();
11744
  ;
11745
  return 0;
11746
}
11747
_ACEOF
11748
rm -f conftest.$ac_objext conftest$ac_exeext
11749
if { (ac_try="$ac_link"
11750
case "(($ac_try" in
11751
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752
  *) ac_try_echo=$ac_try;;
11753
esac
11754
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11755
$as_echo "$ac_try_echo") >&5
11756
  (eval "$ac_link") 2>conftest.er1
11757
  ac_status=$?
11758
  grep -v '^ *+' conftest.er1 >conftest.err
11759
  rm -f conftest.er1
11760
  cat conftest.err >&5
11761
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762
  (exit $ac_status); } && {
11763
         test -z "$ac_c_werror_flag" ||
11764
         test ! -s conftest.err
11765
       } && test -s conftest$ac_exeext && {
11766
         test "$cross_compiling" = yes ||
11767
         $as_test_x conftest$ac_exeext
11768
       }; then
11769
  ac_cv_lib_dl_dlopen=yes
11770
else
11771
  $as_echo "$as_me: failed program was:" >&5
11772
sed 's/^/| /' conftest.$ac_ext >&5
11773
 
11774
        ac_cv_lib_dl_dlopen=no
11775
fi
11776
 
11777
rm -rf conftest.dSYM
11778
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11779
      conftest$ac_exeext conftest.$ac_ext
11780
LIBS=$ac_check_lib_save_LIBS
11781
fi
11782
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11783
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11784
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11785
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11786
else
11787
 
11788
    lt_cv_dlopen="dyld"
11789
    lt_cv_dlopen_libs=
11790
    lt_cv_dlopen_self=yes
11791
 
11792
fi
11793
 
11794
    ;;
11795
 
11796
  *)
11797
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11798
$as_echo_n "checking for shl_load... " >&6; }
11799
if test "${ac_cv_func_shl_load+set}" = set; then
11800
  $as_echo_n "(cached) " >&6
11801
else
11802
  cat >conftest.$ac_ext <<_ACEOF
11803
/* confdefs.h.  */
11804
_ACEOF
11805
cat confdefs.h >>conftest.$ac_ext
11806
cat >>conftest.$ac_ext <<_ACEOF
11807
/* end confdefs.h.  */
11808
/* Define shl_load to an innocuous variant, in case  declares shl_load.
11809
   For example, HP-UX 11i  declares gettimeofday.  */
11810
#define shl_load innocuous_shl_load
11811
 
11812
/* System header to define __stub macros and hopefully few prototypes,
11813
    which can conflict with char shl_load (); below.
11814
    Prefer  to  if __STDC__ is defined, since
11815
     exists even on freestanding compilers.  */
11816
 
11817
#ifdef __STDC__
11818
# include 
11819
#else
11820
# include 
11821
#endif
11822
 
11823
#undef shl_load
11824
 
11825
/* Override any GCC internal prototype to avoid an error.
11826
   Use char because int might match the return type of a GCC
11827
   builtin and then its argument prototype would still apply.  */
11828
#ifdef __cplusplus
11829
extern "C"
11830
#endif
11831
char shl_load ();
11832
/* The GNU C library defines this for functions which it implements
11833
    to always fail with ENOSYS.  Some functions are actually named
11834
    something starting with __ and the normal name is an alias.  */
11835
#if defined __stub_shl_load || defined __stub___shl_load
11836
choke me
11837
#endif
11838
 
11839
int
11840
main ()
11841
{
11842
return shl_load ();
11843
  ;
11844
  return 0;
11845
}
11846
_ACEOF
11847
rm -f conftest.$ac_objext conftest$ac_exeext
11848
if { (ac_try="$ac_link"
11849
case "(($ac_try" in
11850
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851
  *) ac_try_echo=$ac_try;;
11852
esac
11853
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11854
$as_echo "$ac_try_echo") >&5
11855
  (eval "$ac_link") 2>conftest.er1
11856
  ac_status=$?
11857
  grep -v '^ *+' conftest.er1 >conftest.err
11858
  rm -f conftest.er1
11859
  cat conftest.err >&5
11860
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861
  (exit $ac_status); } && {
11862
         test -z "$ac_c_werror_flag" ||
11863
         test ! -s conftest.err
11864
       } && test -s conftest$ac_exeext && {
11865
         test "$cross_compiling" = yes ||
11866
         $as_test_x conftest$ac_exeext
11867
       }; then
11868
  ac_cv_func_shl_load=yes
11869
else
11870
  $as_echo "$as_me: failed program was:" >&5
11871
sed 's/^/| /' conftest.$ac_ext >&5
11872
 
11873
        ac_cv_func_shl_load=no
11874
fi
11875
 
11876
rm -rf conftest.dSYM
11877
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11878
      conftest$ac_exeext conftest.$ac_ext
11879
fi
11880
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11881
$as_echo "$ac_cv_func_shl_load" >&6; }
11882
if test "x$ac_cv_func_shl_load" = x""yes; then
11883
  lt_cv_dlopen="shl_load"
11884
else
11885
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11886
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11887
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11888
  $as_echo_n "(cached) " >&6
11889
else
11890
  ac_check_lib_save_LIBS=$LIBS
11891
LIBS="-ldld  $LIBS"
11892
cat >conftest.$ac_ext <<_ACEOF
11893
/* confdefs.h.  */
11894
_ACEOF
11895
cat confdefs.h >>conftest.$ac_ext
11896
cat >>conftest.$ac_ext <<_ACEOF
11897
/* end confdefs.h.  */
11898
 
11899
/* Override any GCC internal prototype to avoid an error.
11900
   Use char because int might match the return type of a GCC
11901
   builtin and then its argument prototype would still apply.  */
11902
#ifdef __cplusplus
11903
extern "C"
11904
#endif
11905
char shl_load ();
11906
int
11907
main ()
11908
{
11909
return shl_load ();
11910
  ;
11911
  return 0;
11912
}
11913
_ACEOF
11914
rm -f conftest.$ac_objext conftest$ac_exeext
11915
if { (ac_try="$ac_link"
11916
case "(($ac_try" in
11917
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918
  *) ac_try_echo=$ac_try;;
11919
esac
11920
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11921
$as_echo "$ac_try_echo") >&5
11922
  (eval "$ac_link") 2>conftest.er1
11923
  ac_status=$?
11924
  grep -v '^ *+' conftest.er1 >conftest.err
11925
  rm -f conftest.er1
11926
  cat conftest.err >&5
11927
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928
  (exit $ac_status); } && {
11929
         test -z "$ac_c_werror_flag" ||
11930
         test ! -s conftest.err
11931
       } && test -s conftest$ac_exeext && {
11932
         test "$cross_compiling" = yes ||
11933
         $as_test_x conftest$ac_exeext
11934
       }; then
11935
  ac_cv_lib_dld_shl_load=yes
11936
else
11937
  $as_echo "$as_me: failed program was:" >&5
11938
sed 's/^/| /' conftest.$ac_ext >&5
11939
 
11940
        ac_cv_lib_dld_shl_load=no
11941
fi
11942
 
11943
rm -rf conftest.dSYM
11944
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11945
      conftest$ac_exeext conftest.$ac_ext
11946
LIBS=$ac_check_lib_save_LIBS
11947
fi
11948
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11949
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11950
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11951
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11952
else
11953
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11954
$as_echo_n "checking for dlopen... " >&6; }
11955
if test "${ac_cv_func_dlopen+set}" = set; then
11956
  $as_echo_n "(cached) " >&6
11957
else
11958
  cat >conftest.$ac_ext <<_ACEOF
11959
/* confdefs.h.  */
11960
_ACEOF
11961
cat confdefs.h >>conftest.$ac_ext
11962
cat >>conftest.$ac_ext <<_ACEOF
11963
/* end confdefs.h.  */
11964
/* Define dlopen to an innocuous variant, in case  declares dlopen.
11965
   For example, HP-UX 11i  declares gettimeofday.  */
11966
#define dlopen innocuous_dlopen
11967
 
11968
/* System header to define __stub macros and hopefully few prototypes,
11969
    which can conflict with char dlopen (); below.
11970
    Prefer  to  if __STDC__ is defined, since
11971
     exists even on freestanding compilers.  */
11972
 
11973
#ifdef __STDC__
11974
# include 
11975
#else
11976
# include 
11977
#endif
11978
 
11979
#undef dlopen
11980
 
11981
/* Override any GCC internal prototype to avoid an error.
11982
   Use char because int might match the return type of a GCC
11983
   builtin and then its argument prototype would still apply.  */
11984
#ifdef __cplusplus
11985
extern "C"
11986
#endif
11987
char dlopen ();
11988
/* The GNU C library defines this for functions which it implements
11989
    to always fail with ENOSYS.  Some functions are actually named
11990
    something starting with __ and the normal name is an alias.  */
11991
#if defined __stub_dlopen || defined __stub___dlopen
11992
choke me
11993
#endif
11994
 
11995
int
11996
main ()
11997
{
11998
return dlopen ();
11999
  ;
12000
  return 0;
12001
}
12002
_ACEOF
12003
rm -f conftest.$ac_objext conftest$ac_exeext
12004
if { (ac_try="$ac_link"
12005
case "(($ac_try" in
12006
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007
  *) ac_try_echo=$ac_try;;
12008
esac
12009
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12010
$as_echo "$ac_try_echo") >&5
12011
  (eval "$ac_link") 2>conftest.er1
12012
  ac_status=$?
12013
  grep -v '^ *+' conftest.er1 >conftest.err
12014
  rm -f conftest.er1
12015
  cat conftest.err >&5
12016
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017
  (exit $ac_status); } && {
12018
         test -z "$ac_c_werror_flag" ||
12019
         test ! -s conftest.err
12020
       } && test -s conftest$ac_exeext && {
12021
         test "$cross_compiling" = yes ||
12022
         $as_test_x conftest$ac_exeext
12023
       }; then
12024
  ac_cv_func_dlopen=yes
12025
else
12026
  $as_echo "$as_me: failed program was:" >&5
12027
sed 's/^/| /' conftest.$ac_ext >&5
12028
 
12029
        ac_cv_func_dlopen=no
12030
fi
12031
 
12032
rm -rf conftest.dSYM
12033
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12034
      conftest$ac_exeext conftest.$ac_ext
12035
fi
12036
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12037
$as_echo "$ac_cv_func_dlopen" >&6; }
12038
if test "x$ac_cv_func_dlopen" = x""yes; then
12039
  lt_cv_dlopen="dlopen"
12040
else
12041
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12042
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12043
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12044
  $as_echo_n "(cached) " >&6
12045
else
12046
  ac_check_lib_save_LIBS=$LIBS
12047
LIBS="-ldl  $LIBS"
12048
cat >conftest.$ac_ext <<_ACEOF
12049
/* confdefs.h.  */
12050
_ACEOF
12051
cat confdefs.h >>conftest.$ac_ext
12052
cat >>conftest.$ac_ext <<_ACEOF
12053
/* end confdefs.h.  */
12054
 
12055
/* Override any GCC internal prototype to avoid an error.
12056
   Use char because int might match the return type of a GCC
12057
   builtin and then its argument prototype would still apply.  */
12058
#ifdef __cplusplus
12059
extern "C"
12060
#endif
12061
char dlopen ();
12062
int
12063
main ()
12064
{
12065
return dlopen ();
12066
  ;
12067
  return 0;
12068
}
12069
_ACEOF
12070
rm -f conftest.$ac_objext conftest$ac_exeext
12071
if { (ac_try="$ac_link"
12072
case "(($ac_try" in
12073
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074
  *) ac_try_echo=$ac_try;;
12075
esac
12076
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12077
$as_echo "$ac_try_echo") >&5
12078
  (eval "$ac_link") 2>conftest.er1
12079
  ac_status=$?
12080
  grep -v '^ *+' conftest.er1 >conftest.err
12081
  rm -f conftest.er1
12082
  cat conftest.err >&5
12083
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084
  (exit $ac_status); } && {
12085
         test -z "$ac_c_werror_flag" ||
12086
         test ! -s conftest.err
12087
       } && test -s conftest$ac_exeext && {
12088
         test "$cross_compiling" = yes ||
12089
         $as_test_x conftest$ac_exeext
12090
       }; then
12091
  ac_cv_lib_dl_dlopen=yes
12092
else
12093
  $as_echo "$as_me: failed program was:" >&5
12094
sed 's/^/| /' conftest.$ac_ext >&5
12095
 
12096
        ac_cv_lib_dl_dlopen=no
12097
fi
12098
 
12099
rm -rf conftest.dSYM
12100
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12101
      conftest$ac_exeext conftest.$ac_ext
12102
LIBS=$ac_check_lib_save_LIBS
12103
fi
12104
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12105
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12106
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12107
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12108
else
12109
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12110
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12111
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12112
  $as_echo_n "(cached) " >&6
12113
else
12114
  ac_check_lib_save_LIBS=$LIBS
12115
LIBS="-lsvld  $LIBS"
12116
cat >conftest.$ac_ext <<_ACEOF
12117
/* confdefs.h.  */
12118
_ACEOF
12119
cat confdefs.h >>conftest.$ac_ext
12120
cat >>conftest.$ac_ext <<_ACEOF
12121
/* end confdefs.h.  */
12122
 
12123
/* Override any GCC internal prototype to avoid an error.
12124
   Use char because int might match the return type of a GCC
12125
   builtin and then its argument prototype would still apply.  */
12126
#ifdef __cplusplus
12127
extern "C"
12128
#endif
12129
char dlopen ();
12130
int
12131
main ()
12132
{
12133
return dlopen ();
12134
  ;
12135
  return 0;
12136
}
12137
_ACEOF
12138
rm -f conftest.$ac_objext conftest$ac_exeext
12139
if { (ac_try="$ac_link"
12140
case "(($ac_try" in
12141
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12142
  *) ac_try_echo=$ac_try;;
12143
esac
12144
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12145
$as_echo "$ac_try_echo") >&5
12146
  (eval "$ac_link") 2>conftest.er1
12147
  ac_status=$?
12148
  grep -v '^ *+' conftest.er1 >conftest.err
12149
  rm -f conftest.er1
12150
  cat conftest.err >&5
12151
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152
  (exit $ac_status); } && {
12153
         test -z "$ac_c_werror_flag" ||
12154
         test ! -s conftest.err
12155
       } && test -s conftest$ac_exeext && {
12156
         test "$cross_compiling" = yes ||
12157
         $as_test_x conftest$ac_exeext
12158
       }; then
12159
  ac_cv_lib_svld_dlopen=yes
12160
else
12161
  $as_echo "$as_me: failed program was:" >&5
12162
sed 's/^/| /' conftest.$ac_ext >&5
12163
 
12164
        ac_cv_lib_svld_dlopen=no
12165
fi
12166
 
12167
rm -rf conftest.dSYM
12168
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12169
      conftest$ac_exeext conftest.$ac_ext
12170
LIBS=$ac_check_lib_save_LIBS
12171
fi
12172
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12173
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12174
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12175
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12176
else
12177
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12178
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12179
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12180
  $as_echo_n "(cached) " >&6
12181
else
12182
  ac_check_lib_save_LIBS=$LIBS
12183
LIBS="-ldld  $LIBS"
12184
cat >conftest.$ac_ext <<_ACEOF
12185
/* confdefs.h.  */
12186
_ACEOF
12187
cat confdefs.h >>conftest.$ac_ext
12188
cat >>conftest.$ac_ext <<_ACEOF
12189
/* end confdefs.h.  */
12190
 
12191
/* Override any GCC internal prototype to avoid an error.
12192
   Use char because int might match the return type of a GCC
12193
   builtin and then its argument prototype would still apply.  */
12194
#ifdef __cplusplus
12195
extern "C"
12196
#endif
12197
char dld_link ();
12198
int
12199
main ()
12200
{
12201
return dld_link ();
12202
  ;
12203
  return 0;
12204
}
12205
_ACEOF
12206
rm -f conftest.$ac_objext conftest$ac_exeext
12207
if { (ac_try="$ac_link"
12208
case "(($ac_try" in
12209
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210
  *) ac_try_echo=$ac_try;;
12211
esac
12212
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12213
$as_echo "$ac_try_echo") >&5
12214
  (eval "$ac_link") 2>conftest.er1
12215
  ac_status=$?
12216
  grep -v '^ *+' conftest.er1 >conftest.err
12217
  rm -f conftest.er1
12218
  cat conftest.err >&5
12219
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220
  (exit $ac_status); } && {
12221
         test -z "$ac_c_werror_flag" ||
12222
         test ! -s conftest.err
12223
       } && test -s conftest$ac_exeext && {
12224
         test "$cross_compiling" = yes ||
12225
         $as_test_x conftest$ac_exeext
12226
       }; then
12227
  ac_cv_lib_dld_dld_link=yes
12228
else
12229
  $as_echo "$as_me: failed program was:" >&5
12230
sed 's/^/| /' conftest.$ac_ext >&5
12231
 
12232
        ac_cv_lib_dld_dld_link=no
12233
fi
12234
 
12235
rm -rf conftest.dSYM
12236
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12237
      conftest$ac_exeext conftest.$ac_ext
12238
LIBS=$ac_check_lib_save_LIBS
12239
fi
12240
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12241
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12242
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12243
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12244
fi
12245
 
12246
 
12247
fi
12248
 
12249
 
12250
fi
12251
 
12252
 
12253
fi
12254
 
12255
 
12256
fi
12257
 
12258
 
12259
fi
12260
 
12261
    ;;
12262
  esac
12263
 
12264
  if test "x$lt_cv_dlopen" != xno; then
12265
    enable_dlopen=yes
12266
  else
12267
    enable_dlopen=no
12268
  fi
12269
 
12270
  case $lt_cv_dlopen in
12271
  dlopen)
12272
    save_CPPFLAGS="$CPPFLAGS"
12273
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12274
 
12275
    save_LDFLAGS="$LDFLAGS"
12276
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12277
 
12278
    save_LIBS="$LIBS"
12279
    LIBS="$lt_cv_dlopen_libs $LIBS"
12280
 
12281
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12282
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12283
if test "${lt_cv_dlopen_self+set}" = set; then
12284
  $as_echo_n "(cached) " >&6
12285
else
12286
          if test "$cross_compiling" = yes; then :
12287
  lt_cv_dlopen_self=cross
12288
else
12289
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12290
  lt_status=$lt_dlunknown
12291
  cat > conftest.$ac_ext <<_LT_EOF
12292
#line 12292 "configure"
12293
#include "confdefs.h"
12294
 
12295
#if HAVE_DLFCN_H
12296
#include 
12297
#endif
12298
 
12299
#include 
12300
 
12301
#ifdef RTLD_GLOBAL
12302
#  define LT_DLGLOBAL           RTLD_GLOBAL
12303
#else
12304
#  ifdef DL_GLOBAL
12305
#    define LT_DLGLOBAL         DL_GLOBAL
12306
#  else
12307
#    define LT_DLGLOBAL         0
12308
#  endif
12309
#endif
12310
 
12311
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12312
   find out it does not work in some platform. */
12313
#ifndef LT_DLLAZY_OR_NOW
12314
#  ifdef RTLD_LAZY
12315
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12316
#  else
12317
#    ifdef DL_LAZY
12318
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12319
#    else
12320
#      ifdef RTLD_NOW
12321
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12322
#      else
12323
#        ifdef DL_NOW
12324
#          define LT_DLLAZY_OR_NOW      DL_NOW
12325
#        else
12326
#          define LT_DLLAZY_OR_NOW      0
12327
#        endif
12328
#      endif
12329
#    endif
12330
#  endif
12331
#endif
12332
 
12333
void fnord() { int i=42;}
12334
int main ()
12335
{
12336
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12337
  int status = $lt_dlunknown;
12338
 
12339
  if (self)
12340
    {
12341
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12342
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12343
      /* dlclose (self); */
12344
    }
12345
  else
12346
    puts (dlerror ());
12347
 
12348
  return status;
12349
}
12350
_LT_EOF
12351
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12352
  (eval $ac_link) 2>&5
12353
  ac_status=$?
12354
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12356
    (./conftest; exit; ) >&5 2>/dev/null
12357
    lt_status=$?
12358
    case x$lt_status in
12359
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12360
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12361
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12362
    esac
12363
  else :
12364
    # compilation failed
12365
    lt_cv_dlopen_self=no
12366
  fi
12367
fi
12368
rm -fr conftest*
12369
 
12370
 
12371
fi
12372
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12373
$as_echo "$lt_cv_dlopen_self" >&6; }
12374
 
12375
    if test "x$lt_cv_dlopen_self" = xyes; then
12376
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12377
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12378
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12379
if test "${lt_cv_dlopen_self_static+set}" = set; then
12380
  $as_echo_n "(cached) " >&6
12381
else
12382
          if test "$cross_compiling" = yes; then :
12383
  lt_cv_dlopen_self_static=cross
12384
else
12385
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12386
  lt_status=$lt_dlunknown
12387
  cat > conftest.$ac_ext <<_LT_EOF
12388
#line 12388 "configure"
12389
#include "confdefs.h"
12390
 
12391
#if HAVE_DLFCN_H
12392
#include 
12393
#endif
12394
 
12395
#include 
12396
 
12397
#ifdef RTLD_GLOBAL
12398
#  define LT_DLGLOBAL           RTLD_GLOBAL
12399
#else
12400
#  ifdef DL_GLOBAL
12401
#    define LT_DLGLOBAL         DL_GLOBAL
12402
#  else
12403
#    define LT_DLGLOBAL         0
12404
#  endif
12405
#endif
12406
 
12407
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12408
   find out it does not work in some platform. */
12409
#ifndef LT_DLLAZY_OR_NOW
12410
#  ifdef RTLD_LAZY
12411
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12412
#  else
12413
#    ifdef DL_LAZY
12414
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12415
#    else
12416
#      ifdef RTLD_NOW
12417
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12418
#      else
12419
#        ifdef DL_NOW
12420
#          define LT_DLLAZY_OR_NOW      DL_NOW
12421
#        else
12422
#          define LT_DLLAZY_OR_NOW      0
12423
#        endif
12424
#      endif
12425
#    endif
12426
#  endif
12427
#endif
12428
 
12429
void fnord() { int i=42;}
12430
int main ()
12431
{
12432
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12433
  int status = $lt_dlunknown;
12434
 
12435
  if (self)
12436
    {
12437
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12438
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12439
      /* dlclose (self); */
12440
    }
12441
  else
12442
    puts (dlerror ());
12443
 
12444
  return status;
12445
}
12446
_LT_EOF
12447
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12448
  (eval $ac_link) 2>&5
12449
  ac_status=$?
12450
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12452
    (./conftest; exit; ) >&5 2>/dev/null
12453
    lt_status=$?
12454
    case x$lt_status in
12455
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12456
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12457
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12458
    esac
12459
  else :
12460
    # compilation failed
12461
    lt_cv_dlopen_self_static=no
12462
  fi
12463
fi
12464
rm -fr conftest*
12465
 
12466
 
12467
fi
12468
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12469
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12470
    fi
12471
 
12472
    CPPFLAGS="$save_CPPFLAGS"
12473
    LDFLAGS="$save_LDFLAGS"
12474
    LIBS="$save_LIBS"
12475
    ;;
12476
  esac
12477
 
12478
  case $lt_cv_dlopen_self in
12479
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12480
  *) enable_dlopen_self=unknown ;;
12481
  esac
12482
 
12483
  case $lt_cv_dlopen_self_static in
12484
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12485
  *) enable_dlopen_self_static=unknown ;;
12486
  esac
12487
fi
12488
 
12489
 
12490
 
12491
 
12492
 
12493
 
12494
 
12495
 
12496
 
12497
 
12498
 
12499
 
12500
 
12501
 
12502
 
12503
 
12504
 
12505
striplib=
12506
old_striplib=
12507
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12508
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12509
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12510
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12511
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12512
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12513
$as_echo "yes" >&6; }
12514
else
12515
# FIXME - insert some real tests, host_os isn't really good enough
12516
  case $host_os in
12517
  darwin*)
12518
    if test -n "$STRIP" ; then
12519
      striplib="$STRIP -x"
12520
      old_striplib="$STRIP -S"
12521
      { $as_echo "$as_me:$LINENO: result: yes" >&5
12522
$as_echo "yes" >&6; }
12523
    else
12524
      { $as_echo "$as_me:$LINENO: result: no" >&5
12525
$as_echo "no" >&6; }
12526
    fi
12527
    ;;
12528
  *)
12529
    { $as_echo "$as_me:$LINENO: result: no" >&5
12530
$as_echo "no" >&6; }
12531
    ;;
12532
  esac
12533
fi
12534
 
12535
 
12536
 
12537
 
12538
 
12539
 
12540
 
12541
 
12542
 
12543
 
12544
 
12545
 
12546
  # Report which library types will actually be built
12547
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12548
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12549
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12550
$as_echo "$can_build_shared" >&6; }
12551
 
12552
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12553
$as_echo_n "checking whether to build shared libraries... " >&6; }
12554
  test "$can_build_shared" = "no" && enable_shared=no
12555
 
12556
  # On AIX, shared libraries and static libraries use the same namespace, and
12557
  # are all built from PIC.
12558
  case $host_os in
12559
  aix3*)
12560
    test "$enable_shared" = yes && enable_static=no
12561
    if test -n "$RANLIB"; then
12562
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12563
      postinstall_cmds='$RANLIB $lib'
12564
    fi
12565
    ;;
12566
 
12567
  aix[4-9]*)
12568
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12569
      test "$enable_shared" = yes && enable_static=no
12570
    fi
12571
    ;;
12572
  esac
12573
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12574
$as_echo "$enable_shared" >&6; }
12575
 
12576
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12577
$as_echo_n "checking whether to build static libraries... " >&6; }
12578
  # Make sure either enable_shared or enable_static is yes.
12579
  test "$enable_shared" = yes || enable_static=yes
12580
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12581
$as_echo "$enable_static" >&6; }
12582
 
12583
 
12584
 
12585
 
12586
fi
12587
ac_ext=c
12588
ac_cpp='$CPP $CPPFLAGS'
12589
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12590
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12591
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12592
 
12593
CC="$lt_save_CC"
12594
 
12595
 
12596
 
12597
 
12598
 
12599
 
12600
 
12601
 
12602
 
12603
 
12604
 
12605
 
12606
 
12607
        ac_config_commands="$ac_config_commands libtool"
12608
 
12609
 
12610
 
12611
 
12612
# Only expand once:
12613
 
12614
 
12615
fi
12616
 
12617
if test -n "${machine_dir}"; then
12618
  case ${machine_dir} in
12619
        a29k)
12620
 
12621
subdirs="$subdirs a29k"
12622
 ;;
12623
        arm) subdirs="$subdirs arm"
12624
 ;;
12625
        bfin) subdirs="$subdirs bfin"
12626
 ;;
12627
        cris) subdirs="$subdirs cris"
12628
 ;;
12629
        crx) subdirs="$subdirs crx"
12630
 ;;
12631
        d10v) subdirs="$subdirs d10v"
12632
 ;;
12633
        d30v) subdirs="$subdirs d30v"
12634
 ;;
12635
        fr30) subdirs="$subdirs fr30"
12636
 ;;
12637
        frv) subdirs="$subdirs frv"
12638
 ;;
12639
        h8300) subdirs="$subdirs h8300"
12640
 ;;
12641
        h8500) subdirs="$subdirs h8500"
12642
 ;;
12643
        hppa) subdirs="$subdirs hppa"
12644
 ;;
12645
        i386) subdirs="$subdirs i386"
12646
 ;;
12647
        i960) subdirs="$subdirs i960"
12648
 ;;
12649
        iq2000) subdirs="$subdirs iq2000"
12650
 ;;
12651
        lm32) subdirs="$subdirs lm32"
12652
 ;;
12653
        m32c) subdirs="$subdirs m32c"
12654
 ;;
12655
        m32r) subdirs="$subdirs m32r"
12656
 ;;
12657
        m68hc11) subdirs="$subdirs m68hc11"
12658
 ;;
12659
        m68k) subdirs="$subdirs m68k"
12660
 ;;
12661
        m88k) subdirs="$subdirs m88k"
12662
 ;;
12663
        mep ) subdirs="$subdirs mep"
12664
 ;;
12665
        microblaze ) subdirs="$subdirs microblaze"
12666
 ;;
12667
        mips) subdirs="$subdirs mips"
12668
 ;;
12669
        mn10200) subdirs="$subdirs mn10200"
12670
 ;;
12671
        mn10300) subdirs="$subdirs mn10300"
12672
 ;;
12673
        moxie) subdirs="$subdirs moxie"
12674
 ;;
12675
        mt) subdirs="$subdirs mt"
12676
 ;;
12677
        necv70) subdirs="$subdirs necv70"
12678
 ;;
12679
        or32) subdirs="$subdirs or32"
12680
 ;;
12681
        powerpc) subdirs="$subdirs powerpc"
12682
 ;;
12683
        rx) subdirs="$subdirs rx"
12684
 ;;
12685
        sh) subdirs="$subdirs sh"
12686
 ;;
12687
        sparc) subdirs="$subdirs sparc"
12688
 ;;
12689
        spu) subdirs="$subdirs spu"
12690
 ;;
12691
        tic4x) subdirs="$subdirs tic4x"
12692
 ;;
12693
        tic80) subdirs="$subdirs tic80"
12694
 ;;
12695
        v850) subdirs="$subdirs v850"
12696
 ;;
12697
        w65) subdirs="$subdirs w65"
12698
 ;;
12699
        x86_64) subdirs="$subdirs x86_64"
12700
 ;;
12701
        xc16x) subdirs="$subdirs xc16x"
12702
 ;;
12703
        xscale) subdirs="$subdirs xscale"
12704
 ;;
12705
        xstormy16) subdirs="$subdirs xstormy16"
12706
 ;;
12707
        z8k) subdirs="$subdirs z8k"
12708
 ;;
12709
  esac;
12710
fi
12711
 
12712
 if test x${machine_dir} != x; then
12713
  HAVE_MACHINE_DIR_TRUE=
12714
  HAVE_MACHINE_DIR_FALSE='#'
12715
else
12716
  HAVE_MACHINE_DIR_TRUE='#'
12717
  HAVE_MACHINE_DIR_FALSE=
12718
fi
12719
 
12720
 
12721
ac_config_files="$ac_config_files Makefile"
12722
 
12723
cat >confcache <<\_ACEOF
12724
# This file is a shell script that caches the results of configure
12725
# tests run on this system so they can be shared between configure
12726
# scripts and configure runs, see configure's option --config-cache.
12727
# It is not useful on other systems.  If it contains results you don't
12728
# want to keep, you may remove or edit it.
12729
#
12730
# config.status only pays attention to the cache file if you give it
12731
# the --recheck option to rerun configure.
12732
#
12733
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12734
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12735
# following values.
12736
 
12737
_ACEOF
12738
 
12739
# The following way of writing the cache mishandles newlines in values,
12740
# but we know of no workaround that is simple, portable, and efficient.
12741
# So, we kill variables containing newlines.
12742
# Ultrix sh set writes to stderr and can't be redirected directly,
12743
# and sets the high bit in the cache file unless we assign to the vars.
12744
(
12745
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12746
    eval ac_val=\$$ac_var
12747
    case $ac_val in #(
12748
    *${as_nl}*)
12749
      case $ac_var in #(
12750
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12751
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12752
      esac
12753
      case $ac_var in #(
12754
      _ | IFS | as_nl) ;; #(
12755
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12756
      *) $as_unset $ac_var ;;
12757
      esac ;;
12758
    esac
12759
  done
12760
 
12761
  (set) 2>&1 |
12762
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12763
    *${as_nl}ac_space=\ *)
12764
      # `set' does not quote correctly, so add quotes (double-quote
12765
      # substitution turns \\\\ into \\, and sed turns \\ into \).
12766
      sed -n \
12767
        "s/'/'\\\\''/g;
12768
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12769
      ;; #(
12770
    *)
12771
      # `set' quotes correctly as required by POSIX, so do not add quotes.
12772
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12773
      ;;
12774
    esac |
12775
    sort
12776
) |
12777
  sed '
12778
     /^ac_cv_env_/b end
12779
     t clear
12780
     :clear
12781
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12782
     t end
12783
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12784
     :end' >>confcache
12785
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12786
  if test -w "$cache_file"; then
12787
    test "x$cache_file" != "x/dev/null" &&
12788
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12789
$as_echo "$as_me: updating cache $cache_file" >&6;}
12790
    cat confcache >$cache_file
12791
  else
12792
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12793
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12794
  fi
12795
fi
12796
rm -f confcache
12797
 
12798
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12799
# Let make expand exec_prefix.
12800
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12801
 
12802
# Transform confdefs.h into DEFS.
12803
# Protect against shell expansion while executing Makefile rules.
12804
# Protect against Makefile macro expansion.
12805
#
12806
# If the first sed substitution is executed (which looks for macros that
12807
# take arguments), then branch to the quote section.  Otherwise,
12808
# look for a macro that doesn't take arguments.
12809
ac_script='
12810
:mline
12811
/\\$/{
12812
 N
12813
 s,\\\n,,
12814
 b mline
12815
}
12816
t clear
12817
:clear
12818
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12819
t quote
12820
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12821
t quote
12822
b any
12823
:quote
12824
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12825
s/\[/\\&/g
12826
s/\]/\\&/g
12827
s/\$/$$/g
12828
H
12829
:any
12830
${
12831
        g
12832
        s/^\n//
12833
        s/\n/ /g
12834
        p
12835
}
12836
'
12837
DEFS=`sed -n "$ac_script" confdefs.h`
12838
 
12839
 
12840
ac_libobjs=
12841
ac_ltlibobjs=
12842
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12843
  # 1. Remove the extension, and $U if already installed.
12844
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12845
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12846
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12847
  #    will be set to the directory where LIBOBJS objects are built.
12848
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12849
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12850
done
12851
LIBOBJS=$ac_libobjs
12852
 
12853
LTLIBOBJS=$ac_ltlibobjs
12854
 
12855
 
12856
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12857
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12858
Usually this means the macro was only invoked conditionally." >&5
12859
$as_echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12860
Usually this means the macro was only invoked conditionally." >&2;}
12861
   { (exit 1); exit 1; }; }
12862
fi
12863
 if test -n "$EXEEXT"; then
12864
  am__EXEEXT_TRUE=
12865
  am__EXEEXT_FALSE='#'
12866
else
12867
  am__EXEEXT_TRUE='#'
12868
  am__EXEEXT_FALSE=
12869
fi
12870
 
12871
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12872
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12873
Usually this means the macro was only invoked conditionally." >&5
12874
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12875
Usually this means the macro was only invoked conditionally." >&2;}
12876
   { (exit 1); exit 1; }; }
12877
fi
12878
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12879
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12880
Usually this means the macro was only invoked conditionally." >&5
12881
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12882
Usually this means the macro was only invoked conditionally." >&2;}
12883
   { (exit 1); exit 1; }; }
12884
fi
12885
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12886
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12887
Usually this means the macro was only invoked conditionally." >&5
12888
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12889
Usually this means the macro was only invoked conditionally." >&2;}
12890
   { (exit 1); exit 1; }; }
12891
fi
12892
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12893
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
12894
Usually this means the macro was only invoked conditionally." >&5
12895
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
12896
Usually this means the macro was only invoked conditionally." >&2;}
12897
   { (exit 1); exit 1; }; }
12898
fi
12899
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12900
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
12901
Usually this means the macro was only invoked conditionally." >&5
12902
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
12903
Usually this means the macro was only invoked conditionally." >&2;}
12904
   { (exit 1); exit 1; }; }
12905
fi
12906
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12907
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
12908
Usually this means the macro was only invoked conditionally." >&5
12909
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
12910
Usually this means the macro was only invoked conditionally." >&2;}
12911
   { (exit 1); exit 1; }; }
12912
fi
12913
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12914
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
12915
Usually this means the macro was only invoked conditionally." >&5
12916
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
12917
Usually this means the macro was only invoked conditionally." >&2;}
12918
   { (exit 1); exit 1; }; }
12919
fi
12920
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12921
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
12922
Usually this means the macro was only invoked conditionally." >&5
12923
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
12924
Usually this means the macro was only invoked conditionally." >&2;}
12925
   { (exit 1); exit 1; }; }
12926
fi
12927
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12928
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
12929
Usually this means the macro was only invoked conditionally." >&5
12930
$as_echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
12931
Usually this means the macro was only invoked conditionally." >&2;}
12932
   { (exit 1); exit 1; }; }
12933
fi
12934
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12935
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12936
Usually this means the macro was only invoked conditionally." >&5
12937
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12938
Usually this means the macro was only invoked conditionally." >&2;}
12939
   { (exit 1); exit 1; }; }
12940
fi
12941
if test -z "${HAVE_MACHINE_DIR_TRUE}" && test -z "${HAVE_MACHINE_DIR_FALSE}"; then
12942
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MACHINE_DIR\" was never defined.
12943
Usually this means the macro was only invoked conditionally." >&5
12944
$as_echo "$as_me: error: conditional \"HAVE_MACHINE_DIR\" was never defined.
12945
Usually this means the macro was only invoked conditionally." >&2;}
12946
   { (exit 1); exit 1; }; }
12947
fi
12948
 
12949
: ${CONFIG_STATUS=./config.status}
12950
ac_write_fail=0
12951
ac_clean_files_save=$ac_clean_files
12952
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12953
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12954
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12955
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12956
#! $SHELL
12957
# Generated by $as_me.
12958
# Run this file to recreate the current configuration.
12959
# Compiler output produced by configure, useful for debugging
12960
# configure, is in config.log if it exists.
12961
 
12962
debug=false
12963
ac_cs_recheck=false
12964
ac_cs_silent=false
12965
SHELL=\${CONFIG_SHELL-$SHELL}
12966
_ACEOF
12967
 
12968
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12969
## --------------------- ##
12970
## M4sh Initialization.  ##
12971
## --------------------- ##
12972
 
12973
# Be more Bourne compatible
12974
DUALCASE=1; export DUALCASE # for MKS sh
12975
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12976
  emulate sh
12977
  NULLCMD=:
12978
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12979
  # is contrary to our usage.  Disable this feature.
12980
  alias -g '${1+"$@"}'='"$@"'
12981
  setopt NO_GLOB_SUBST
12982
else
12983
  case `(set -o) 2>/dev/null` in
12984
  *posix*) set -o posix ;;
12985
esac
12986
 
12987
fi
12988
 
12989
 
12990
 
12991
 
12992
# PATH needs CR
12993
# Avoid depending upon Character Ranges.
12994
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12995
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12996
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12997
as_cr_digits='0123456789'
12998
as_cr_alnum=$as_cr_Letters$as_cr_digits
12999
 
13000
as_nl='
13001
'
13002
export as_nl
13003
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13004
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13005
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13006
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13007
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13008
  as_echo='printf %s\n'
13009
  as_echo_n='printf %s'
13010
else
13011
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13012
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13013
    as_echo_n='/usr/ucb/echo -n'
13014
  else
13015
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13016
    as_echo_n_body='eval
13017
      arg=$1;
13018
      case $arg in
13019
      *"$as_nl"*)
13020
        expr "X$arg" : "X\\(.*\\)$as_nl";
13021
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13022
      esac;
13023
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13024
    '
13025
    export as_echo_n_body
13026
    as_echo_n='sh -c $as_echo_n_body as_echo'
13027
  fi
13028
  export as_echo_body
13029
  as_echo='sh -c $as_echo_body as_echo'
13030
fi
13031
 
13032
# The user is always right.
13033
if test "${PATH_SEPARATOR+set}" != set; then
13034
  PATH_SEPARATOR=:
13035
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13036
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13037
      PATH_SEPARATOR=';'
13038
  }
13039
fi
13040
 
13041
# Support unset when possible.
13042
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13043
  as_unset=unset
13044
else
13045
  as_unset=false
13046
fi
13047
 
13048
 
13049
# IFS
13050
# We need space, tab and new line, in precisely that order.  Quoting is
13051
# there to prevent editors from complaining about space-tab.
13052
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13053
# splitting by setting IFS to empty value.)
13054
IFS=" ""        $as_nl"
13055
 
13056
# Find who we are.  Look in the path if we contain no directory separator.
13057
case $0 in
13058
  *[\\/]* ) as_myself=$0 ;;
13059
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060
for as_dir in $PATH
13061
do
13062
  IFS=$as_save_IFS
13063
  test -z "$as_dir" && as_dir=.
13064
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13065
done
13066
IFS=$as_save_IFS
13067
 
13068
     ;;
13069
esac
13070
# We did not find ourselves, most probably we were run as `sh COMMAND'
13071
# in which case we are not to be found in the path.
13072
if test "x$as_myself" = x; then
13073
  as_myself=$0
13074
fi
13075
if test ! -f "$as_myself"; then
13076
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13077
  { (exit 1); exit 1; }
13078
fi
13079
 
13080
# Work around bugs in pre-3.0 UWIN ksh.
13081
for as_var in ENV MAIL MAILPATH
13082
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13083
done
13084
PS1='$ '
13085
PS2='> '
13086
PS4='+ '
13087
 
13088
# NLS nuisances.
13089
LC_ALL=C
13090
export LC_ALL
13091
LANGUAGE=C
13092
export LANGUAGE
13093
 
13094
# Required to use basename.
13095
if expr a : '\(a\)' >/dev/null 2>&1 &&
13096
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13097
  as_expr=expr
13098
else
13099
  as_expr=false
13100
fi
13101
 
13102
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13103
  as_basename=basename
13104
else
13105
  as_basename=false
13106
fi
13107
 
13108
 
13109
# Name of the executable.
13110
as_me=`$as_basename -- "$0" ||
13111
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13112
         X"$0" : 'X\(//\)$' \| \
13113
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13114
$as_echo X/"$0" |
13115
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13116
            s//\1/
13117
            q
13118
          }
13119
          /^X\/\(\/\/\)$/{
13120
            s//\1/
13121
            q
13122
          }
13123
          /^X\/\(\/\).*/{
13124
            s//\1/
13125
            q
13126
          }
13127
          s/.*/./; q'`
13128
 
13129
# CDPATH.
13130
$as_unset CDPATH
13131
 
13132
 
13133
 
13134
  as_lineno_1=$LINENO
13135
  as_lineno_2=$LINENO
13136
  test "x$as_lineno_1" != "x$as_lineno_2" &&
13137
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13138
 
13139
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13140
  # uniformly replaced by the line number.  The first 'sed' inserts a
13141
  # line-number line after each line using $LINENO; the second 'sed'
13142
  # does the real work.  The second script uses 'N' to pair each
13143
  # line-number line with the line containing $LINENO, and appends
13144
  # trailing '-' during substitution so that $LINENO is not a special
13145
  # case at line end.
13146
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13147
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13148
  # E. McMahon (1931-1989) for sed's syntax.  :-)
13149
  sed -n '
13150
    p
13151
    /[$]LINENO/=
13152
  ' <$as_myself |
13153
    sed '
13154
      s/[$]LINENO.*/&-/
13155
      t lineno
13156
      b
13157
      :lineno
13158
      N
13159
      :loop
13160
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13161
      t loop
13162
      s/-\n.*//
13163
    ' >$as_me.lineno &&
13164
  chmod +x "$as_me.lineno" ||
13165
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13166
   { (exit 1); exit 1; }; }
13167
 
13168
  # Don't try to exec as it changes $[0], causing all sort of problems
13169
  # (the dirname of $[0] is not the place where we might find the
13170
  # original and so on.  Autoconf is especially sensitive to this).
13171
  . "./$as_me.lineno"
13172
  # Exit status is that of the last command.
13173
  exit
13174
}
13175
 
13176
 
13177
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13178
  as_dirname=dirname
13179
else
13180
  as_dirname=false
13181
fi
13182
 
13183
ECHO_C= ECHO_N= ECHO_T=
13184
case `echo -n x` in
13185
-n*)
13186
  case `echo 'x\c'` in
13187
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13188
  *)   ECHO_C='\c';;
13189
  esac;;
13190
*)
13191
  ECHO_N='-n';;
13192
esac
13193
if expr a : '\(a\)' >/dev/null 2>&1 &&
13194
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13195
  as_expr=expr
13196
else
13197
  as_expr=false
13198
fi
13199
 
13200
rm -f conf$$ conf$$.exe conf$$.file
13201
if test -d conf$$.dir; then
13202
  rm -f conf$$.dir/conf$$.file
13203
else
13204
  rm -f conf$$.dir
13205
  mkdir conf$$.dir 2>/dev/null
13206
fi
13207
if (echo >conf$$.file) 2>/dev/null; then
13208
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13209
    as_ln_s='ln -s'
13210
    # ... but there are two gotchas:
13211
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13212
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13213
    # In both cases, we have to default to `cp -p'.
13214
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13215
      as_ln_s='cp -p'
13216
  elif ln conf$$.file conf$$ 2>/dev/null; then
13217
    as_ln_s=ln
13218
  else
13219
    as_ln_s='cp -p'
13220
  fi
13221
else
13222
  as_ln_s='cp -p'
13223
fi
13224
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13225
rmdir conf$$.dir 2>/dev/null
13226
 
13227
if mkdir -p . 2>/dev/null; then
13228
  as_mkdir_p=:
13229
else
13230
  test -d ./-p && rmdir ./-p
13231
  as_mkdir_p=false
13232
fi
13233
 
13234
if test -x / >/dev/null 2>&1; then
13235
  as_test_x='test -x'
13236
else
13237
  if ls -dL / >/dev/null 2>&1; then
13238
    as_ls_L_option=L
13239
  else
13240
    as_ls_L_option=
13241
  fi
13242
  as_test_x='
13243
    eval sh -c '\''
13244
      if test -d "$1"; then
13245
        test -d "$1/.";
13246
      else
13247
        case $1 in
13248
        -*)set "./$1";;
13249
        esac;
13250
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13251
        ???[sx]*):;;*)false;;esac;fi
13252
    '\'' sh
13253
  '
13254
fi
13255
as_executable_p=$as_test_x
13256
 
13257
# Sed expression to map a string onto a valid CPP name.
13258
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13259
 
13260
# Sed expression to map a string onto a valid variable name.
13261
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13262
 
13263
 
13264
exec 6>&1
13265
 
13266
# Save the log message, to keep $[0] and so on meaningful, and to
13267
# report actual input values of CONFIG_FILES etc. instead of their
13268
# values after options handling.
13269
ac_log="
13270
This file was extended by newlib $as_me 1.18.0, which was
13271
generated by GNU Autoconf 2.63.  Invocation command line was
13272
 
13273
  CONFIG_FILES    = $CONFIG_FILES
13274
  CONFIG_HEADERS  = $CONFIG_HEADERS
13275
  CONFIG_LINKS    = $CONFIG_LINKS
13276
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13277
  $ $0 $@
13278
 
13279
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13280
"
13281
 
13282
_ACEOF
13283
 
13284
case $ac_config_files in *"
13285
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13286
esac
13287
 
13288
 
13289
 
13290
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13291
# Files that config.status was made for.
13292
config_files="$ac_config_files"
13293
config_commands="$ac_config_commands"
13294
 
13295
_ACEOF
13296
 
13297
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13298
ac_cs_usage="\
13299
\`$as_me' instantiates files from templates according to the
13300
current configuration.
13301
 
13302
Usage: $0 [OPTION]... [FILE]...
13303
 
13304
  -h, --help       print this help, then exit
13305
  -V, --version    print version number and configuration settings, then exit
13306
  -q, --quiet, --silent
13307
                   do not print progress messages
13308
  -d, --debug      don't remove temporary files
13309
      --recheck    update $as_me by reconfiguring in the same conditions
13310
      --file=FILE[:TEMPLATE]
13311
                   instantiate the configuration file FILE
13312
 
13313
Configuration files:
13314
$config_files
13315
 
13316
Configuration commands:
13317
$config_commands
13318
 
13319
Report bugs to ."
13320
 
13321
_ACEOF
13322
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13323
ac_cs_version="\\
13324
newlib config.status 1.18.0
13325
configured by $0, generated by GNU Autoconf 2.63,
13326
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13327
 
13328
Copyright (C) 2008 Free Software Foundation, Inc.
13329
This config.status script is free software; the Free Software Foundation
13330
gives unlimited permission to copy, distribute and modify it."
13331
 
13332
ac_pwd='$ac_pwd'
13333
srcdir='$srcdir'
13334
INSTALL='$INSTALL'
13335
MKDIR_P='$MKDIR_P'
13336
AWK='$AWK'
13337
test -n "\$AWK" || AWK=awk
13338
_ACEOF
13339
 
13340
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13341
# The default lists apply if the user does not specify any file.
13342
ac_need_defaults=:
13343
while test $# != 0
13344
do
13345
  case $1 in
13346
  --*=*)
13347
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13348
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13349
    ac_shift=:
13350
    ;;
13351
  *)
13352
    ac_option=$1
13353
    ac_optarg=$2
13354
    ac_shift=shift
13355
    ;;
13356
  esac
13357
 
13358
  case $ac_option in
13359
  # Handling of the options.
13360
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13361
    ac_cs_recheck=: ;;
13362
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13363
    $as_echo "$ac_cs_version"; exit ;;
13364
  --debug | --debu | --deb | --de | --d | -d )
13365
    debug=: ;;
13366
  --file | --fil | --fi | --f )
13367
    $ac_shift
13368
    case $ac_optarg in
13369
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13370
    esac
13371
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13372
    ac_need_defaults=false;;
13373
  --he | --h |  --help | --hel | -h )
13374
    $as_echo "$ac_cs_usage"; exit ;;
13375
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13376
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13377
    ac_cs_silent=: ;;
13378
 
13379
  # This is an error.
13380
  -*) { $as_echo "$as_me: error: unrecognized option: $1
13381
Try \`$0 --help' for more information." >&2
13382
   { (exit 1); exit 1; }; } ;;
13383
 
13384
  *) ac_config_targets="$ac_config_targets $1"
13385
     ac_need_defaults=false ;;
13386
 
13387
  esac
13388
  shift
13389
done
13390
 
13391
ac_configure_extra_args=
13392
 
13393
if $ac_cs_silent; then
13394
  exec 6>/dev/null
13395
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13396
fi
13397
 
13398
_ACEOF
13399
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13400
if \$ac_cs_recheck; then
13401
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13402
  shift
13403
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13404
  CONFIG_SHELL='$SHELL'
13405
  export CONFIG_SHELL
13406
  exec "\$@"
13407
fi
13408
 
13409
_ACEOF
13410
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13411
exec 5>>config.log
13412
{
13413
  echo
13414
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13415
## Running $as_me. ##
13416
_ASBOX
13417
  $as_echo "$ac_log"
13418
} >&5
13419
 
13420
_ACEOF
13421
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13422
#
13423
# INIT-COMMANDS
13424
#
13425
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13426
 
13427
 
13428
# The HP-UX ksh and POSIX shell print the target directory to stdout
13429
# if CDPATH is set.
13430
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13431
 
13432
sed_quote_subst='$sed_quote_subst'
13433
double_quote_subst='$double_quote_subst'
13434
delay_variable_subst='$delay_variable_subst'
13435
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13436
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13437
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13438
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13439
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13440
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13441
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13442
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13443
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13444
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13445
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13446
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13447
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13448
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13449
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13450
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13451
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13452
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13453
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13454
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13455
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13456
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13457
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13458
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13459
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13460
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13461
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13462
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13463
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13464
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13465
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13466
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13467
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13468
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13469
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13470
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13471
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13472
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13473
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13474
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13475
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13476
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13477
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13478
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13479
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13480
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13481
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"`'
13482
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"`'
13483
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13484
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13485
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13486
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13487
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13488
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13489
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13490
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13491
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13492
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13493
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13494
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13495
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13496
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13497
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13498
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13499
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13500
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13501
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13502
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13503
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13504
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13505
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13506
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13507
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13508
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13509
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13510
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13511
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13512
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13513
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13514
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13515
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13516
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13517
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13518
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13519
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13520
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13521
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13522
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13523
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13524
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13525
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13526
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13527
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13528
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13529
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13530
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13531
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13532
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13533
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13534
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13535
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13536
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13537
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13538
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13539
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13540
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13541
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13542
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13543
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13544
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13545
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13546
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13547
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13548
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13549
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13550
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13551
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13552
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13553
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13554
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13555
 
13556
LTCC='$LTCC'
13557
LTCFLAGS='$LTCFLAGS'
13558
compiler='$compiler_DEFAULT'
13559
 
13560
# Quote evaled strings.
13561
for var in SED \
13562
GREP \
13563
EGREP \
13564
FGREP \
13565
LD \
13566
NM \
13567
LN_S \
13568
lt_SP2NL \
13569
lt_NL2SP \
13570
reload_flag \
13571
deplibs_check_method \
13572
file_magic_cmd \
13573
AR \
13574
AR_FLAGS \
13575
STRIP \
13576
RANLIB \
13577
CC \
13578
CFLAGS \
13579
compiler \
13580
lt_cv_sys_global_symbol_pipe \
13581
lt_cv_sys_global_symbol_to_cdecl \
13582
lt_cv_sys_global_symbol_to_c_name_address \
13583
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13584
SHELL \
13585
ECHO \
13586
lt_prog_compiler_no_builtin_flag \
13587
lt_prog_compiler_wl \
13588
lt_prog_compiler_pic \
13589
lt_prog_compiler_static \
13590
lt_cv_prog_compiler_c_o \
13591
need_locks \
13592
DSYMUTIL \
13593
NMEDIT \
13594
LIPO \
13595
OTOOL \
13596
OTOOL64 \
13597
shrext_cmds \
13598
export_dynamic_flag_spec \
13599
whole_archive_flag_spec \
13600
compiler_needs_object \
13601
with_gnu_ld \
13602
allow_undefined_flag \
13603
no_undefined_flag \
13604
hardcode_libdir_flag_spec \
13605
hardcode_libdir_flag_spec_ld \
13606
hardcode_libdir_separator \
13607
fix_srcfile_path \
13608
exclude_expsyms \
13609
include_expsyms \
13610
file_list_spec \
13611
variables_saved_for_relink \
13612
libname_spec \
13613
library_names_spec \
13614
soname_spec \
13615
finish_eval \
13616
old_striplib \
13617
striplib; do
13618
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13619
    *[\\\\\\\`\\"\\\$]*)
13620
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13621
      ;;
13622
    *)
13623
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13624
      ;;
13625
    esac
13626
done
13627
 
13628
# Double-quote double-evaled strings.
13629
for var in reload_cmds \
13630
old_postinstall_cmds \
13631
old_postuninstall_cmds \
13632
old_archive_cmds \
13633
extract_expsyms_cmds \
13634
old_archive_from_new_cmds \
13635
old_archive_from_expsyms_cmds \
13636
archive_cmds \
13637
archive_expsym_cmds \
13638
module_cmds \
13639
module_expsym_cmds \
13640
export_symbols_cmds \
13641
prelink_cmds \
13642
postinstall_cmds \
13643
postuninstall_cmds \
13644
finish_cmds \
13645
sys_lib_search_path_spec \
13646
sys_lib_dlsearch_path_spec; do
13647
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13648
    *[\\\\\\\`\\"\\\$]*)
13649
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13650
      ;;
13651
    *)
13652
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13653
      ;;
13654
    esac
13655
done
13656
 
13657
# Fix-up fallback echo if it was mangled by the above quoting rules.
13658
case \$lt_ECHO in
13659
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13660
  ;;
13661
esac
13662
 
13663
ac_aux_dir='$ac_aux_dir'
13664
xsi_shell='$xsi_shell'
13665
lt_shell_append='$lt_shell_append'
13666
 
13667
# See if we are running on zsh, and set the options which allow our
13668
# commands through without removal of \ escapes INIT.
13669
if test -n "\${ZSH_VERSION+set}" ; then
13670
   setopt NO_GLOB_SUBST
13671
fi
13672
 
13673
 
13674
    PACKAGE='$PACKAGE'
13675
    VERSION='$VERSION'
13676
    TIMESTAMP='$TIMESTAMP'
13677
    RM='$RM'
13678
    ofile='$ofile'
13679
 
13680
 
13681
 
13682
 
13683
_ACEOF
13684
 
13685
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13686
 
13687
# Handling of arguments.
13688
for ac_config_target in $ac_config_targets
13689
do
13690
  case $ac_config_target in
13691
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13692
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13693
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13694
 
13695
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13696
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13697
   { (exit 1); exit 1; }; };;
13698
  esac
13699
done
13700
 
13701
 
13702
# If the user did not use the arguments to specify the items to instantiate,
13703
# then the envvar interface is used.  Set only those that are not.
13704
# We use the long form for the default assignment because of an extremely
13705
# bizarre bug on SunOS 4.1.3.
13706
if $ac_need_defaults; then
13707
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13708
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13709
fi
13710
 
13711
# Have a temporary directory for convenience.  Make it in the build tree
13712
# simply because there is no reason against having it here, and in addition,
13713
# creating and moving files from /tmp can sometimes cause problems.
13714
# Hook for its removal unless debugging.
13715
# Note that there is a small window in which the directory will not be cleaned:
13716
# after its creation but before its name has been assigned to `$tmp'.
13717
$debug ||
13718
{
13719
  tmp=
13720
  trap 'exit_status=$?
13721
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13722
' 0
13723
  trap '{ (exit 1); exit 1; }' 1 2 13 15
13724
}
13725
# Create a (secure) tmp directory for tmp files.
13726
 
13727
{
13728
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13729
  test -n "$tmp" && test -d "$tmp"
13730
}  ||
13731
{
13732
  tmp=./conf$$-$RANDOM
13733
  (umask 077 && mkdir "$tmp")
13734
} ||
13735
{
13736
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
13737
   { (exit 1); exit 1; }
13738
}
13739
 
13740
# Set up the scripts for CONFIG_FILES section.
13741
# No need to generate them if there are no CONFIG_FILES.
13742
# This happens for instance with `./config.status config.h'.
13743
if test -n "$CONFIG_FILES"; then
13744
 
13745
 
13746
ac_cr='
'
13747
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
13748
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13749
  ac_cs_awk_cr='\\r'
13750
else
13751
  ac_cs_awk_cr=$ac_cr
13752
fi
13753
13754
 
13755
_ACEOF
13756
13757
 
13758
 
13759
  echo "cat >conf$$subs.awk <<_ACEOF" &&
13760
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13761
  echo "_ACEOF"
13762
} >conf$$subs.sh ||
13763
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13764
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13765
   { (exit 1); exit 1; }; }
13766
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13767
ac_delim='%!_!# '
13768
for ac_last_try in false false false false false :; do
13769
  . ./conf$$subs.sh ||
13770
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13771
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13772
   { (exit 1); exit 1; }; }
13773
13774
 
13775
  if test $ac_delim_n = $ac_delim_num; then
13776
    break
13777
  elif $ac_last_try; then
13778
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13779
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13780
   { (exit 1); exit 1; }; }
13781
  else
13782
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13783
  fi
13784
done
13785
rm -f conf$$subs.sh
13786
13787
 
13788
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13789
_ACEOF
13790
sed -n '
13791
h
13792
s/^/S["/; s/!.*/"]=/
13793
p
13794
g
13795
s/^[^!]*!//
13796
:repl
13797
t repl
13798
s/'"$ac_delim"'$//
13799
t delim
13800
:nl
13801
h
13802
s/\(.\{148\}\).*/\1/
13803
t more1
13804
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13805
p
13806
n
13807
b repl
13808
:more1
13809
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13810
p
13811
g
13812
s/.\{148\}//
13813
t nl
13814
:delim
13815
h
13816
s/\(.\{148\}\).*/\1/
13817
t more2
13818
s/["\\]/\\&/g; s/^/"/; s/$/"/
13819
p
13820
b
13821
:more2
13822
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13823
p
13824
g
13825
s/.\{148\}//
13826
t delim
13827
' 
13828
/^[^""]/{
13829
  N
13830
  s/\n//
13831
}
13832
' >>$CONFIG_STATUS || ac_write_fail=1
13833
rm -f conf$$subs.awk
13834
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13835
_ACAWK
13836
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13837
  for (key in S) S_is_set[key] = 1
13838
  FS = ""
13839
13840
 
13841
{
13842
  line = $ 0
13843
  nfields = split(line, field, "@")
13844
  substed = 0
13845
  len = length(field[1])
13846
  for (i = 2; i < nfields; i++) {
13847
    key = field[i]
13848
    keylen = length(key)
13849
    if (S_is_set[key]) {
13850
      value = S[key]
13851
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13852
      len += length(value) + length(field[++i])
13853
      substed = 1
13854
    } else
13855
      len += 1 + keylen
13856
  }
13857
13858
 
13859
}
13860
13861
 
13862
_ACEOF
13863
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13864
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13865
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13866
else
13867
  cat
13868
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13869
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13870
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13871
   { (exit 1); exit 1; }; }
13872
_ACEOF
13873
13874
 
13875
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13876
# trailing colons and then remove the whole line if VPATH becomes empty
13877
# (actually we leave an empty line to preserve line numbers).
13878
if test "x$srcdir" = x.; then
13879
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
13880
s/:*\$(srcdir):*/:/
13881
s/:*\${srcdir}:*/:/
13882
s/:*@srcdir@:*/:/
13883
s/^\([^=]*=[     ]*\):*/\1/
13884
s/:*$//
13885
s/^[^=]*=[       ]*$//
13886
}'
13887
fi
13888
13889
 
13890
fi # test -n "$CONFIG_FILES"
13891
13892
 
13893
 
13894
shift
13895
for ac_tag
13896
do
13897
  case $ac_tag in
13898
  :[FHLC]) ac_mode=$ac_tag; continue;;
13899
  esac
13900
  case $ac_mode$ac_tag in
13901
  :[FHL]*:*);;
13902
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13903
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13904
   { (exit 1); exit 1; }; };;
13905
  :[FH]-) ac_tag=-:-;;
13906
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13907
  esac
13908
  ac_save_IFS=$IFS
13909
  IFS=:
13910
  set x $ac_tag
13911
  IFS=$ac_save_IFS
13912
  shift
13913
  ac_file=$1
13914
  shift
13915
13916
 
13917
  :L) ac_source=$1;;
13918
  :[FH])
13919
    ac_file_inputs=
13920
    for ac_f
13921
    do
13922
      case $ac_f in
13923
      -) ac_f="$tmp/stdin";;
13924
      *) # Look for the file first in the build tree, then in the source tree
13925
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
13926
         # because $ac_f cannot contain `:'.
13927
         test -f "$ac_f" ||
13928
           case $ac_f in
13929
           [\\/$]*) false;;
13930
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13931
           esac ||
13932
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13933
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13934
   { (exit 1); exit 1; }; };;
13935
      esac
13936
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13937
      ac_file_inputs="$ac_file_inputs '$ac_f'"
13938
    done
13939
13940
 
13941
    # use $as_me), people would be surprised to read:
13942
    #    /* config.h.  Generated by config.status.  */
13943
    configure_input='Generated from '`
13944
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13945
        `' by configure.'
13946
    if test x"$ac_file" != x-; then
13947
      configure_input="$ac_file.  $configure_input"
13948
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13949
$as_echo "$as_me: creating $ac_file" >&6;}
13950
    fi
13951
    # Neutralize special characters interpreted by sed in replacement strings.
13952
    case $configure_input in #(
13953
    *\&* | *\|* | *\\* )
13954
       ac_sed_conf_input=`$as_echo "$configure_input" |
13955
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13956
    *) ac_sed_conf_input=$configure_input;;
13957
    esac
13958
13959
 
13960
    *:-:* | *:-) cat >"$tmp/stdin" \
13961
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13962
$as_echo "$as_me: error: could not create $ac_file" >&2;}
13963
   { (exit 1); exit 1; }; } ;;
13964
    esac
13965
    ;;
13966
  esac
13967
13968
 
13969
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13970
         X"$ac_file" : 'X\(//\)[^/]' \| \
13971
         X"$ac_file" : 'X\(//\)$' \| \
13972
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13973
$as_echo X"$ac_file" |
13974
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13975
            s//\1/
13976
            q
13977
          }
13978
          /^X\(\/\/\)[^/].*/{
13979
            s//\1/
13980
            q
13981
          }
13982
          /^X\(\/\/\)$/{
13983
            s//\1/
13984
            q
13985
          }
13986
          /^X\(\/\).*/{
13987
            s//\1/
13988
            q
13989
          }
13990
          s/.*/./; q'`
13991
  { as_dir="$ac_dir"
13992
  case $as_dir in #(
13993
  -*) as_dir=./$as_dir;;
13994
  esac
13995
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13996
    as_dirs=
13997
    while :; do
13998
      case $as_dir in #(
13999
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14000
      *) as_qdir=$as_dir;;
14001
      esac
14002
      as_dirs="'$as_qdir' $as_dirs"
14003
      as_dir=`$as_dirname -- "$as_dir" ||
14004
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14005
         X"$as_dir" : 'X\(//\)[^/]' \| \
14006
         X"$as_dir" : 'X\(//\)$' \| \
14007
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14008
$as_echo X"$as_dir" |
14009
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14010
            s//\1/
14011
            q
14012
          }
14013
          /^X\(\/\/\)[^/].*/{
14014
            s//\1/
14015
            q
14016
          }
14017
          /^X\(\/\/\)$/{
14018
            s//\1/
14019
            q
14020
          }
14021
          /^X\(\/\).*/{
14022
            s//\1/
14023
            q
14024
          }
14025
          s/.*/./; q'`
14026
      test -d "$as_dir" && break
14027
    done
14028
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14029
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14030
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14031
   { (exit 1); exit 1; }; }; }
14032
  ac_builddir=.
14033
14034
 
14035
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14036
*)
14037
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14038
  # A ".." for each directory in $ac_dir_suffix.
14039
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14040
  case $ac_top_builddir_sub in
14041
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14042
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14043
  esac ;;
14044
esac
14045
ac_abs_top_builddir=$ac_pwd
14046
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14047
# for backward compatibility:
14048
ac_top_builddir=$ac_top_build_prefix
14049
14050
 
14051
  .)  # We are building in place.
14052
    ac_srcdir=.
14053
    ac_top_srcdir=$ac_top_builddir_sub
14054
    ac_abs_top_srcdir=$ac_pwd ;;
14055
  [\\/]* | ?:[\\/]* )  # Absolute name.
14056
    ac_srcdir=$srcdir$ac_dir_suffix;
14057
    ac_top_srcdir=$srcdir
14058
    ac_abs_top_srcdir=$srcdir ;;
14059
  *) # Relative name.
14060
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14061
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14062
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14063
esac
14064
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14065
14066
 
14067
 
14068
  :F)
14069
  #
14070
  # CONFIG_FILE
14071
  #
14072
14073
 
14074
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14075
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14076
  esac
14077
  ac_MKDIR_P=$MKDIR_P
14078
  case $MKDIR_P in
14079
  [\\/$]* | ?:[\\/]* ) ;;
14080
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14081
  esac
14082
_ACEOF
14083
14084
 
14085
# If the template does not know about datarootdir, expand it.
14086
# FIXME: This hack should be removed a few years after 2.60.
14087
ac_datarootdir_hack=; ac_datarootdir_seen=
14088
14089
 
14090
/datarootdir/ {
14091
  p
14092
  q
14093
}
14094
/@datadir@/p
14095
/@docdir@/p
14096
/@infodir@/p
14097
/@localedir@/p
14098
/@mandir@/p
14099
'
14100
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14101
*datarootdir*) ac_datarootdir_seen=yes;;
14102
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14103
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14104
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14105
_ACEOF
14106
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14107
  ac_datarootdir_hack='
14108
  s&@datadir@&$datadir&g
14109
  s&@docdir@&$docdir&g
14110
  s&@infodir@&$infodir&g
14111
  s&@localedir@&$localedir&g
14112
  s&@mandir@&$mandir&g
14113
    s&\\\${datarootdir}&$datarootdir&g' ;;
14114
esac
14115
_ACEOF
14116
14117
 
14118
# Shell code in configure.ac might set extrasub.
14119
# FIXME: do we really want to maintain this feature?
14120
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14121
ac_sed_extra="$ac_vpsub
14122
$extrasub
14123
_ACEOF
14124
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14125
:t
14126
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14127
s|@configure_input@|$ac_sed_conf_input|;t t
14128
s&@top_builddir@&$ac_top_builddir_sub&;t t
14129
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14130
s&@srcdir@&$ac_srcdir&;t t
14131
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14132
s&@top_srcdir@&$ac_top_srcdir&;t t
14133
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14134
s&@builddir@&$ac_builddir&;t t
14135
s&@abs_builddir@&$ac_abs_builddir&;t t
14136
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14137
s&@INSTALL@&$ac_INSTALL&;t t
14138
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14139
$ac_datarootdir_hack
14140
"
14141
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14142
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14143
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14144
   { (exit 1); exit 1; }; }
14145
14146
 
14147
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14148
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14149
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14150
which seems to be undefined.  Please make sure it is defined." >&5
14151
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14152
which seems to be undefined.  Please make sure it is defined." >&2;}
14153
14154
 
14155
  case $ac_file in
14156
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14157
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14158
  esac \
14159
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14160
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14161
   { (exit 1); exit 1; }; }
14162
 ;;
14163
14164
 
14165
 
14166
$as_echo "$as_me: executing $ac_file commands" >&6;}
14167
 ;;
14168
  esac
14169
14170
 
14171
 
14172
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14173
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14174
  # are listed without --file.  Let's play safe and only enable the eval
14175
  # if we detect the quoting.
14176
  case $CONFIG_FILES in
14177
  *\'*) eval set x "$CONFIG_FILES" ;;
14178
  *)   set x $CONFIG_FILES ;;
14179
  esac
14180
  shift
14181
  for mf
14182
  do
14183
    # Strip MF so we end up with the name of the file.
14184
    mf=`echo "$mf" | sed -e 's/:.*$//'`
14185
    # Check whether this is an Automake generated Makefile or not.
14186
    # We used to match only the files named `Makefile.in', but
14187
    # some people rename them; so instead we look at the file content.
14188
    # Grep'ing the first line is not enough: some people post-process
14189
    # each Makefile.in and add a new line on top of each file to say so.
14190
    # Grep'ing the whole file is not good either: AIX grep has a line
14191
    # limit of 2048, but all sed's we know have understand at least 4000.
14192
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14193
      dirpart=`$as_dirname -- "$mf" ||
14194
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14195
         X"$mf" : 'X\(//\)[^/]' \| \
14196
         X"$mf" : 'X\(//\)$' \| \
14197
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14198
$as_echo X"$mf" |
14199
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14200
            s//\1/
14201
            q
14202
          }
14203
          /^X\(\/\/\)[^/].*/{
14204
            s//\1/
14205
            q
14206
          }
14207
          /^X\(\/\/\)$/{
14208
            s//\1/
14209
            q
14210
          }
14211
          /^X\(\/\).*/{
14212
            s//\1/
14213
            q
14214
          }
14215
          s/.*/./; q'`
14216
    else
14217
      continue
14218
    fi
14219
    # Extract the definition of DEPDIR, am__include, and am__quote
14220
    # from the Makefile without running `make'.
14221
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14222
    test -z "$DEPDIR" && continue
14223
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14224
    test -z "am__include" && continue
14225
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14226
    # When using ansi2knr, U may be empty or an underscore; expand it
14227
    U=`sed -n 's/^U = //p' < "$mf"`
14228
    # Find all dependency output files, they are included files with
14229
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14230
    # simplest approach to changing $(DEPDIR) to its actual value in the
14231
    # expansion.
14232
    for file in `sed -n "
14233
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14234
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14235
      # Make sure the directory exists.
14236
      test -f "$dirpart/$file" && continue
14237
      fdir=`$as_dirname -- "$file" ||
14238
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14239
         X"$file" : 'X\(//\)[^/]' \| \
14240
         X"$file" : 'X\(//\)$' \| \
14241
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14242
$as_echo X"$file" |
14243
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14244
            s//\1/
14245
            q
14246
          }
14247
          /^X\(\/\/\)[^/].*/{
14248
            s//\1/
14249
            q
14250
          }
14251
          /^X\(\/\/\)$/{
14252
            s//\1/
14253
            q
14254
          }
14255
          /^X\(\/\).*/{
14256
            s//\1/
14257
            q
14258
          }
14259
          s/.*/./; q'`
14260
      { as_dir=$dirpart/$fdir
14261
  case $as_dir in #(
14262
  -*) as_dir=./$as_dir;;
14263
  esac
14264
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14265
    as_dirs=
14266
    while :; do
14267
      case $as_dir in #(
14268
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14269
      *) as_qdir=$as_dir;;
14270
      esac
14271
      as_dirs="'$as_qdir' $as_dirs"
14272
      as_dir=`$as_dirname -- "$as_dir" ||
14273
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14274
         X"$as_dir" : 'X\(//\)[^/]' \| \
14275
         X"$as_dir" : 'X\(//\)$' \| \
14276
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14277
$as_echo X"$as_dir" |
14278
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14279
            s//\1/
14280
            q
14281
          }
14282
          /^X\(\/\/\)[^/].*/{
14283
            s//\1/
14284
            q
14285
          }
14286
          /^X\(\/\/\)$/{
14287
            s//\1/
14288
            q
14289
          }
14290
          /^X\(\/\).*/{
14291
            s//\1/
14292
            q
14293
          }
14294
          s/.*/./; q'`
14295
      test -d "$as_dir" && break
14296
    done
14297
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14298
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14299
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14300
   { (exit 1); exit 1; }; }; }
14301
      # echo "creating $dirpart/$file"
14302
      echo '# dummy' > "$dirpart/$file"
14303
    done
14304
  done
14305
}
14306
 ;;
14307
    "libtool":C)
14308
14309
 
14310
    # commands through without removal of \ escapes.
14311
    if test -n "${ZSH_VERSION+set}" ; then
14312
      setopt NO_GLOB_SUBST
14313
    fi
14314
14315
 
14316
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14317
    $RM "$cfgfile"
14318
14319
 
14320
#! $SHELL
14321
14322
 
14323
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14324
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14325
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14326
#
14327
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14328
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14329
#   Written by Gordon Matzigkeit, 1996
14330
#
14331
#   This file is part of GNU Libtool.
14332
#
14333
# GNU Libtool is free software; you can redistribute it and/or
14334
# modify it under the terms of the GNU General Public License as
14335
# published by the Free Software Foundation; either version 2 of
14336
# the License, or (at your option) any later version.
14337
#
14338
# As a special exception to the GNU General Public License,
14339
# if you distribute this file as part of a program or library that
14340
# is built using GNU Libtool, you may include this file under the
14341
# same distribution terms that you use for the rest of that program.
14342
#
14343
# GNU Libtool is distributed in the hope that it will be useful,
14344
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14345
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14346
# GNU General Public License for more details.
14347
#
14348
# You should have received a copy of the GNU General Public License
14349
# along with GNU Libtool; see the file COPYING.  If not, a copy
14350
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14351
# obtained by writing to the Free Software Foundation, Inc.,
14352
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14353
14354
 
14355
 
14356
available_tags=""
14357
14358
 
14359
14360
 
14361
SED=$lt_SED
14362
14363
 
14364
Xsed="\$SED -e 1s/^X//"
14365
14366
 
14367
AS=$AS
14368
14369
 
14370
DLLTOOL=$DLLTOOL
14371
14372
 
14373
OBJDUMP=$OBJDUMP
14374
14375
 
14376
macro_version=$macro_version
14377
macro_revision=$macro_revision
14378
14379
 
14380
build_libtool_libs=$enable_shared
14381
14382
 
14383
build_old_libs=$enable_static
14384
14385
 
14386
pic_mode=$pic_mode
14387
14388
 
14389
fast_install=$enable_fast_install
14390
14391
 
14392
host_alias=$host_alias
14393
host=$host
14394
host_os=$host_os
14395
14396
 
14397
build_alias=$build_alias
14398
build=$build
14399
build_os=$build_os
14400
14401
 
14402
GREP=$lt_GREP
14403
14404
 
14405
EGREP=$lt_EGREP
14406
14407
 
14408
FGREP=$lt_FGREP
14409
14410
 
14411
NM=$lt_NM
14412
14413
 
14414
LN_S=$lt_LN_S
14415
14416
 
14417
max_cmd_len=$max_cmd_len
14418
14419
 
14420
objext=$ac_objext
14421
14422
 
14423
exeext=$exeext
14424
14425
 
14426
lt_unset=$lt_unset
14427
14428
 
14429
SP2NL=$lt_lt_SP2NL
14430
14431
 
14432
NL2SP=$lt_lt_NL2SP
14433
14434
 
14435
reload_flag=$lt_reload_flag
14436
reload_cmds=$lt_reload_cmds
14437
14438
 
14439
deplibs_check_method=$lt_deplibs_check_method
14440
14441
 
14442
file_magic_cmd=$lt_file_magic_cmd
14443
14444
 
14445
AR=$lt_AR
14446
AR_FLAGS=$lt_AR_FLAGS
14447
14448
 
14449
STRIP=$lt_STRIP
14450
14451
 
14452
RANLIB=$lt_RANLIB
14453
old_postinstall_cmds=$lt_old_postinstall_cmds
14454
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14455
14456
 
14457
LTCC=$lt_CC
14458
14459
 
14460
LTCFLAGS=$lt_CFLAGS
14461
14462
 
14463
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14464
14465
 
14466
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14467
14468
 
14469
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14470
14471
 
14472
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14473
14474
 
14475
objdir=$objdir
14476
14477
 
14478
SHELL=$lt_SHELL
14479
14480
 
14481
ECHO=$lt_ECHO
14482
14483
 
14484
MAGIC_CMD=$MAGIC_CMD
14485
14486
 
14487
need_locks=$lt_need_locks
14488
14489
 
14490
DSYMUTIL=$lt_DSYMUTIL
14491
14492
 
14493
NMEDIT=$lt_NMEDIT
14494
14495
 
14496
LIPO=$lt_LIPO
14497
14498
 
14499
OTOOL=$lt_OTOOL
14500
14501
 
14502
OTOOL64=$lt_OTOOL64
14503
14504
 
14505
libext=$libext
14506
14507
 
14508
shrext_cmds=$lt_shrext_cmds
14509
14510
 
14511
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14512
14513
 
14514
# restored at link time.
14515
variables_saved_for_relink=$lt_variables_saved_for_relink
14516
14517
 
14518
need_lib_prefix=$need_lib_prefix
14519
14520
 
14521
need_version=$need_version
14522
14523
 
14524
version_type=$version_type
14525
14526
 
14527
runpath_var=$runpath_var
14528
14529
 
14530
shlibpath_var=$shlibpath_var
14531
14532
 
14533
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14534
14535
 
14536
libname_spec=$lt_libname_spec
14537
14538
 
14539
# The last name is the one that the linker finds with -lNAME
14540
library_names_spec=$lt_library_names_spec
14541
14542
 
14543
soname_spec=$lt_soname_spec
14544
14545
 
14546
postinstall_cmds=$lt_postinstall_cmds
14547
14548
 
14549
postuninstall_cmds=$lt_postuninstall_cmds
14550
14551
 
14552
finish_cmds=$lt_finish_cmds
14553
14554
 
14555
# not shown.
14556
finish_eval=$lt_finish_eval
14557
14558
 
14559
hardcode_into_libs=$hardcode_into_libs
14560
14561
 
14562
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14563
14564
 
14565
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14566
14567
 
14568
dlopen_support=$enable_dlopen
14569
14570
 
14571
dlopen_self=$enable_dlopen_self
14572
14573
 
14574
dlopen_self_static=$enable_dlopen_self_static
14575
14576
 
14577
old_striplib=$lt_old_striplib
14578
striplib=$lt_striplib
14579
14580
 
14581
 
14582
LD=$lt_LD
14583
14584
 
14585
old_archive_cmds=$lt_old_archive_cmds
14586
14587
 
14588
CC=$lt_compiler
14589
14590
 
14591
with_gcc=$GCC
14592
14593
 
14594
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14595
14596
 
14597
wl=$lt_lt_prog_compiler_wl
14598
14599
 
14600
pic_flag=$lt_lt_prog_compiler_pic
14601
14602
 
14603
link_static_flag=$lt_lt_prog_compiler_static
14604
14605
 
14606
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14607
14608
 
14609
build_libtool_need_lc=$archive_cmds_need_lc
14610
14611
 
14612
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14613
14614
 
14615
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14616
14617
 
14618
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14619
14620
 
14621
compiler_needs_object=$lt_compiler_needs_object
14622
14623
 
14624
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14625
14626
 
14627
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14628
14629
 
14630
archive_cmds=$lt_archive_cmds
14631
archive_expsym_cmds=$lt_archive_expsym_cmds
14632
14633
 
14634
# a shared archive.
14635
module_cmds=$lt_module_cmds
14636
module_expsym_cmds=$lt_module_expsym_cmds
14637
14638
 
14639
with_gnu_ld=$lt_with_gnu_ld
14640
14641
 
14642
allow_undefined_flag=$lt_allow_undefined_flag
14643
14644
 
14645
no_undefined_flag=$lt_no_undefined_flag
14646
14647
 
14648
# This must work even if \$libdir does not exist
14649
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14650
14651
 
14652
# during linking.  This must work even if \$libdir does not exist.
14653
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14654
14655
 
14656
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14657
14658
 
14659
# DIR into the resulting binary.
14660
hardcode_direct=$hardcode_direct
14661
14662
 
14663
# DIR into the resulting binary and the resulting library dependency is
14664
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14665
# library is relocated.
14666
hardcode_direct_absolute=$hardcode_direct_absolute
14667
14668
 
14669
# into the resulting binary.
14670
hardcode_minus_L=$hardcode_minus_L
14671
14672
 
14673
# into the resulting binary.
14674
hardcode_shlibpath_var=$hardcode_shlibpath_var
14675
14676
 
14677
# into the library and all subsequent libraries and executables linked
14678
# against it.
14679
hardcode_automatic=$hardcode_automatic
14680
14681
 
14682
# to runtime path list.
14683
inherit_rpath=$inherit_rpath
14684
14685
 
14686
link_all_deplibs=$link_all_deplibs
14687
14688
 
14689
fix_srcfile_path=$lt_fix_srcfile_path
14690
14691
 
14692
always_export_symbols=$always_export_symbols
14693
14694
 
14695
export_symbols_cmds=$lt_export_symbols_cmds
14696
14697
 
14698
exclude_expsyms=$lt_exclude_expsyms
14699
14700
 
14701
include_expsyms=$lt_include_expsyms
14702
14703
 
14704
prelink_cmds=$lt_prelink_cmds
14705
14706
 
14707
file_list_spec=$lt_file_list_spec
14708
14709
 
14710
hardcode_action=$hardcode_action
14711
14712
 
14713
14714
 
14715
14716
 
14717
  aix3*)
14718
    cat <<\_LT_EOF >> "$cfgfile"
14719
# AIX sometimes has problems with the GCC collect2 program.  For some
14720
# reason, if we set the COLLECT_NAMES environment variable, the problems
14721
# vanish in a puff of smoke.
14722
if test "X${COLLECT_NAMES+set}" != Xset; then
14723
  COLLECT_NAMES=
14724
  export COLLECT_NAMES
14725
fi
14726
_LT_EOF
14727
    ;;
14728
  esac
14729
14730
 
14731
 
14732
14733
 
14734
 
14735
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14736
  # text mode, it properly converts lines to CR/LF.  This bash problem
14737
  # is reportedly fixed, but why not run on old versions too?
14738
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14739
    || (rm -f "$cfgfile"; exit 1)
14740
14741
 
14742
  yes)
14743
    cat << \_LT_EOF >> "$cfgfile"
14744
14745
 
14746
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14747
# otherwise set result to NONDIR_REPLACEMENT.
14748
func_dirname ()
14749
{
14750
  case ${1} in
14751
    */*) func_dirname_result="${1%/*}${2}" ;;
14752
    *  ) func_dirname_result="${3}" ;;
14753
  esac
14754
}
14755
14756
 
14757
func_basename ()
14758
{
14759
  func_basename_result="${1##*/}"
14760
}
14761
14762
 
14763
# perform func_basename and func_dirname in a single function
14764
# call:
14765
#   dirname:  Compute the dirname of FILE.  If nonempty,
14766
#             add APPEND to the result, otherwise set result
14767
#             to NONDIR_REPLACEMENT.
14768
#             value returned in "$func_dirname_result"
14769
#   basename: Compute filename of FILE.
14770
#             value retuned in "$func_basename_result"
14771
# Implementation must be kept synchronized with func_dirname
14772
# and func_basename. For efficiency, we do not delegate to
14773
# those functions but instead duplicate the functionality here.
14774
func_dirname_and_basename ()
14775
{
14776
  case ${1} in
14777
    */*) func_dirname_result="${1%/*}${2}" ;;
14778
    *  ) func_dirname_result="${3}" ;;
14779
  esac
14780
  func_basename_result="${1##*/}"
14781
}
14782
14783
 
14784
# strip PREFIX and SUFFIX off of NAME.
14785
# PREFIX and SUFFIX must not contain globbing or regex special
14786
# characters, hashes, percent signs, but SUFFIX may contain a leading
14787
# dot (in which case that matches only a dot).
14788
func_stripname ()
14789
{
14790
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14791
  # positional parameters, so assign one to ordinary parameter first.
14792
  func_stripname_result=${3}
14793
  func_stripname_result=${func_stripname_result#"${1}"}
14794
  func_stripname_result=${func_stripname_result%"${2}"}
14795
}
14796
14797
 
14798
func_opt_split ()
14799
{
14800
  func_opt_split_opt=${1%%=*}
14801
  func_opt_split_arg=${1#*=}
14802
}
14803
14804
 
14805
func_lo2o ()
14806
{
14807
  case ${1} in
14808
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14809
    *)    func_lo2o_result=${1} ;;
14810
  esac
14811
}
14812
14813
 
14814
func_xform ()
14815
{
14816
  func_xform_result=${1%.*}.lo
14817
}
14818
14819
 
14820
func_arith ()
14821
{
14822
  func_arith_result=$(( $* ))
14823
}
14824
14825
 
14826
# STRING may not start with a hyphen.
14827
func_len ()
14828
{
14829
  func_len_result=${#1}
14830
}
14831
14832
 
14833
    ;;
14834
  *) # Bourne compatible functions.
14835
    cat << \_LT_EOF >> "$cfgfile"
14836
14837
 
14838
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14839
# otherwise set result to NONDIR_REPLACEMENT.
14840
func_dirname ()
14841
{
14842
  # Extract subdirectory from the argument.
14843
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14844
  if test "X$func_dirname_result" = "X${1}"; then
14845
    func_dirname_result="${3}"
14846
  else
14847
    func_dirname_result="$func_dirname_result${2}"
14848
  fi
14849
}
14850
14851
 
14852
func_basename ()
14853
{
14854
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14855
}
14856
14857
 
14858
 
14859
# strip PREFIX and SUFFIX off of NAME.
14860
# PREFIX and SUFFIX must not contain globbing or regex special
14861
# characters, hashes, percent signs, but SUFFIX may contain a leading
14862
# dot (in which case that matches only a dot).
14863
# func_strip_suffix prefix name
14864
func_stripname ()
14865
{
14866
  case ${2} in
14867
    .*) func_stripname_result=`$ECHO "X${3}" \
14868
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14869
    *)  func_stripname_result=`$ECHO "X${3}" \
14870
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14871
  esac
14872
}
14873
14874
 
14875
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14876
my_sed_long_arg='1s/^-[^=]*=//'
14877
14878
 
14879
func_opt_split ()
14880
{
14881
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14882
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14883
}
14884
14885
 
14886
func_lo2o ()
14887
{
14888
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14889
}
14890
14891
 
14892
func_xform ()
14893
{
14894
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14895
}
14896
14897
 
14898
func_arith ()
14899
{
14900
  func_arith_result=`expr "$@"`
14901
}
14902
14903
 
14904
# STRING may not start with a hyphen.
14905
func_len ()
14906
{
14907
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14908
}
14909
14910
 
14911
esac
14912
14913
 
14914
  yes)
14915
    cat << \_LT_EOF >> "$cfgfile"
14916
14917
 
14918
# Append VALUE to the end of shell variable VAR.
14919
func_append ()
14920
{
14921
  eval "$1+=\$2"
14922
}
14923
_LT_EOF
14924
    ;;
14925
  *)
14926
    cat << \_LT_EOF >> "$cfgfile"
14927
14928
 
14929
# Append VALUE to the end of shell variable VAR.
14930
func_append ()
14931
{
14932
  eval "$1=\$$1\$2"
14933
}
14934
14935
 
14936
    ;;
14937
  esac
14938
14939
 
14940
 
14941
    || (rm -f "$cfgfile"; exit 1)
14942
14943
 
14944
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14945
  chmod +x "$ofile"
14946
14947
 
14948
14949
 
14950
done # for ac_tag
14951
14952
 
14953
 
14954
_ACEOF
14955
chmod +x $CONFIG_STATUS
14956
ac_clean_files=$ac_clean_files_save
14957
14958
 
14959
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14960
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14961
   { (exit 1); exit 1; }; }
14962
14963
 
14964
 
14965
# config.status does its own redirection, appending to config.log.
14966
# Unfortunately, on DOS this fails, as config.log is still kept open
14967
# by configure, so config.status won't be able to write to it; its
14968
# output is simply discarded.  So we exec the FD to /dev/null,
14969
# effectively closing config.log, so it can be properly (re)opened and
14970
# appended to by config.status.  When coming back to configure, we
14971
# need to make the FD available again.
14972
if test "$no_create" != yes; then
14973
  ac_cs_success=:
14974
  ac_config_status_args=
14975
  test "$silent" = yes &&
14976
    ac_config_status_args="$ac_config_status_args --quiet"
14977
  exec 5>/dev/null
14978
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14979
  exec 5>>config.log
14980
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14981
  # would make configure fail if this is the last instruction.
14982
  $ac_cs_success || { (exit 1); exit 1; }
14983
fi
14984
14985
 
14986
# CONFIG_SUBDIRS section.
14987
#
14988
if test "$no_recursion" != yes; then
14989
14990
 
14991
  # so they do not pile up.
14992
  ac_sub_configure_args=
14993
  ac_prev=
14994
  eval "set x $ac_configure_args"
14995
  shift
14996
  for ac_arg
14997
  do
14998
    if test -n "$ac_prev"; then
14999
      ac_prev=
15000
      continue
15001
    fi
15002
    case $ac_arg in
15003
    -cache-file | --cache-file | --cache-fil | --cache-fi \
15004
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15005
      ac_prev=cache_file ;;
15006
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15007
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15008
    | --c=*)
15009
      ;;
15010
    --config-cache | -C)
15011
      ;;
15012
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15013
      ac_prev=srcdir ;;
15014
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15015
      ;;
15016
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15017
      ac_prev=prefix ;;
15018
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15019
      ;;
15020
    --disable-option-checking)
15021
      ;;
15022
    *)
15023
      case $ac_arg in
15024
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15025
      esac
15026
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
15027
    esac
15028
  done
15029
15030
 
15031
  # in subdir configurations.
15032
  ac_arg="--prefix=$prefix"
15033
  case $ac_arg in
15034
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15035
  esac
15036
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15037
15038
 
15039
  if test "$silent" = yes; then
15040
    ac_sub_configure_args="--silent $ac_sub_configure_args"
15041
  fi
15042
15043
 
15044
  # different subdirs can have different --enable and --with options.
15045
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15046
15047
 
15048
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15049
15050
 
15051
    # parts of a large source tree are present.
15052
    test -d "$srcdir/$ac_dir" || continue
15053
15054
 
15055
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
15056
    $as_echo "$ac_msg" >&6
15057
    { as_dir="$ac_dir"
15058
  case $as_dir in #(
15059
  -*) as_dir=./$as_dir;;
15060
  esac
15061
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15062
    as_dirs=
15063
    while :; do
15064
      case $as_dir in #(
15065
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15066
      *) as_qdir=$as_dir;;
15067
      esac
15068
      as_dirs="'$as_qdir' $as_dirs"
15069
      as_dir=`$as_dirname -- "$as_dir" ||
15070
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15071
         X"$as_dir" : 'X\(//\)[^/]' \| \
15072
         X"$as_dir" : 'X\(//\)$' \| \
15073
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15074
$as_echo X"$as_dir" |
15075
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15076
            s//\1/
15077
            q
15078
          }
15079
          /^X\(\/\/\)[^/].*/{
15080
            s//\1/
15081
            q
15082
          }
15083
          /^X\(\/\/\)$/{
15084
            s//\1/
15085
            q
15086
          }
15087
          /^X\(\/\).*/{
15088
            s//\1/
15089
            q
15090
          }
15091
          s/.*/./; q'`
15092
      test -d "$as_dir" && break
15093
    done
15094
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15095
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15096
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15097
   { (exit 1); exit 1; }; }; }
15098
    ac_builddir=.
15099
15100
 
15101
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15102
*)
15103
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15104
  # A ".." for each directory in $ac_dir_suffix.
15105
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15106
  case $ac_top_builddir_sub in
15107
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15108
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15109
  esac ;;
15110
esac
15111
ac_abs_top_builddir=$ac_pwd
15112
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15113
# for backward compatibility:
15114
ac_top_builddir=$ac_top_build_prefix
15115
15116
 
15117
  .)  # We are building in place.
15118
    ac_srcdir=.
15119
    ac_top_srcdir=$ac_top_builddir_sub
15120
    ac_abs_top_srcdir=$ac_pwd ;;
15121
  [\\/]* | ?:[\\/]* )  # Absolute name.
15122
    ac_srcdir=$srcdir$ac_dir_suffix;
15123
    ac_top_srcdir=$srcdir
15124
    ac_abs_top_srcdir=$srcdir ;;
15125
  *) # Relative name.
15126
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15127
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15128
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15129
esac
15130
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15131
15132
 
15133
 
15134
15135
 
15136
    if test -f "$ac_srcdir/configure.gnu"; then
15137
      ac_sub_configure=$ac_srcdir/configure.gnu
15138
    elif test -f "$ac_srcdir/configure"; then
15139
      ac_sub_configure=$ac_srcdir/configure
15140
    elif test -f "$ac_srcdir/configure.in"; then
15141
      # This should be Cygnus configure.
15142
      ac_sub_configure=$ac_aux_dir/configure
15143
    else
15144
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15145
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15146
      ac_sub_configure=
15147
    fi
15148
15149
 
15150
    if test -n "$ac_sub_configure"; then
15151
      # Make the cache file name correct relative to the subdirectory.
15152
      case $cache_file in
15153
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15154
      *) # Relative name.
15155
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15156
      esac
15157
15158
 
15159
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15160
      # The eval makes quoting arguments work.
15161
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15162
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15163
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15164
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15165
   { (exit 1); exit 1; }; }
15166
    fi
15167
15168
 
15169
  done
15170
fi
15171
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15172
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15173
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15174
fi
15175
15176
 

powered by: WebSVN 2.1.0

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