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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc2/] [newlib/] [configure] - Blame information for rev 207

Go to most recent revision | 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="libc"
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_LONG_DOUBLE_FALSE
793
HAVE_LONG_DOUBLE_TRUE
794
libc_cv_initfinit_array
795
CC_FOR_BUILD
796
STDIO64_OBJECTLIST
797
UNIX_OBJECTLIST
798
SYSCALL_OBJECTLIST
799
SIGNAL_OBJECTLIST
800
POSIX_OBJECTLIST
801
SYS_MACH_OBJECTLIST
802
SYS_OBJECTLIST
803
MACHINE_OBJECTLIST
804
LIBM_MACHINE_OBJECTLIST
805
CRT1_DIR
806
CRT1
807
CRT0_DIR
808
CRT0
809
EXTRA_DIRS
810
HAVE_DOC_FALSE
811
HAVE_DOC_TRUE
812
subdirs
813
CC_FOR_NEWLIB
814
NEWLIB_HW_FP_FALSE
815
NEWLIB_HW_FP_TRUE
816
CPP
817
OTOOL64
818
OTOOL
819
LIPO
820
NMEDIT
821
DSYMUTIL
822
lt_ECHO
823
LN_S
824
NM
825
ac_ct_DUMPBIN
826
DUMPBIN
827
LD
828
FGREP
829
EGREP
830
GREP
831
EXEEXT
832
ac_ct_CC
833
CPPFLAGS
834
CFLAGS
835
LIBTOOL
836
OBJDUMP
837
DLLTOOL
838
SED
839
sys_dir
840
machine_dir
841
libm_machine_dir
842
lpfx
843
aext
844
oext
845
OBJEXT
846
USE_LIBTOOL_FALSE
847
USE_LIBTOOL_TRUE
848
ELIX_LEVEL_4_FALSE
849
ELIX_LEVEL_4_TRUE
850
ELIX_LEVEL_3_FALSE
851
ELIX_LEVEL_3_TRUE
852
ELIX_LEVEL_2_FALSE
853
ELIX_LEVEL_2_TRUE
854
ELIX_LEVEL_1_FALSE
855
ELIX_LEVEL_1_TRUE
856
ELIX_LEVEL_0_FALSE
857
ELIX_LEVEL_0_TRUE
858
LDFLAGS
859
NEWLIB_CFLAGS
860
CCASFLAGS
861
CCAS
862
MAINT
863
MAINTAINER_MODE_FALSE
864
MAINTAINER_MODE_TRUE
865
READELF
866
RANLIB
867
AR
868
AS
869
am__fastdepCC_FALSE
870
am__fastdepCC_TRUE
871
CCDEPMODE
872
AMDEPBACKSLASH
873
AMDEP_FALSE
874
AMDEP_TRUE
875
am__quote
876
am__include
877
DEPDIR
878
CC
879
am__untar
880
am__tar
881
AMTAR
882
am__leading_dot
883
SET_MAKE
884
AWK
885
mkdir_p
886
MKDIR_P
887
INSTALL_STRIP_PROGRAM
888
STRIP
889
install_sh
890
MAKEINFO
891
AUTOHEADER
892
AUTOMAKE
893
AUTOCONF
894
ACLOCAL
895
VERSION
896
PACKAGE
897
CYGPATH_W
898
am__isrc
899
INSTALL_DATA
900
INSTALL_SCRIPT
901
INSTALL_PROGRAM
902
host_os
903
host_vendor
904
host_cpu
905
host
906
build_os
907
build_vendor
908
build_cpu
909
build
910
newlib_basedir
911
MAY_SUPPLY_SYSCALLS_FALSE
912
MAY_SUPPLY_SYSCALLS_TRUE
913
target_alias
914
host_alias
915
build_alias
916
LIBS
917
ECHO_T
918
ECHO_N
919
ECHO_C
920
DEFS
921
mandir
922
localedir
923
libdir
924
psdir
925
pdfdir
926
dvidir
927
htmldir
928
infodir
929
docdir
930
oldincludedir
931
includedir
932
localstatedir
933
sharedstatedir
934
sysconfdir
935
datadir
936
datarootdir
937
libexecdir
938
sbindir
939
bindir
940
program_transform_name
941
prefix
942
exec_prefix
943
PACKAGE_BUGREPORT
944
PACKAGE_STRING
945
PACKAGE_VERSION
946
PACKAGE_TARNAME
947
PACKAGE_NAME
948
PATH_SEPARATOR
949
SHELL'
950
ac_subst_files=''
951
ac_user_opts='
952
enable_option_checking
953
enable_newlib_io_pos_args
954
enable_newlib_io_c99_formats
955
enable_newlib_io_long_long
956
enable_newlib_io_long_double
957
enable_newlib_mb
958
enable_newlib_iconv_encodings
959
enable_newlib_iconv_from_encodings
960
enable_newlib_iconv_to_encodings
961
enable_newlib_iconv_external_ccs
962
enable_newlib_atexit_dynamic_alloc
963
enable_newlib_reent_small
964
enable_multilib
965
enable_target_optspace
966
enable_malloc_debugging
967
enable_newlib_multithread
968
enable_newlib_iconv
969
enable_newlib_elix_level
970
enable_newlib_io_float
971
enable_newlib_supplied_syscalls
972
enable_dependency_tracking
973
enable_maintainer_mode
974
enable_shared
975
enable_static
976
with_pic
977
enable_fast_install
978
with_gnu_ld
979
enable_libtool_lock
980
enable_newlib_hw_fp
981
'
982
      ac_precious_vars='build_alias
983
host_alias
984
target_alias
985
CCAS
986
CCASFLAGS
987
CC
988
CFLAGS
989
LDFLAGS
990
LIBS
991
CPPFLAGS
992
CPP'
993
ac_subdirs_all='libc
994
libm
995
doc
996
iconvdata'
997
 
998
# Initialize some variables set by options.
999
ac_init_help=
1000
ac_init_version=false
1001
ac_unrecognized_opts=
1002
ac_unrecognized_sep=
1003
# The variables have the same names as the options, with
1004
# dashes changed to underlines.
1005
cache_file=/dev/null
1006
exec_prefix=NONE
1007
no_create=
1008
no_recursion=
1009
prefix=NONE
1010
program_prefix=NONE
1011
program_suffix=NONE
1012
program_transform_name=s,x,x,
1013
silent=
1014
site=
1015
srcdir=
1016
verbose=
1017
x_includes=NONE
1018
x_libraries=NONE
1019
 
1020
# Installation directory options.
1021
# These are left unexpanded so users can "make install exec_prefix=/foo"
1022
# and all the variables that are supposed to be based on exec_prefix
1023
# by default will actually change.
1024
# Use braces instead of parens because sh, perl, etc. also accept them.
1025
# (The list follows the same order as the GNU Coding Standards.)
1026
bindir='${exec_prefix}/bin'
1027
sbindir='${exec_prefix}/sbin'
1028
libexecdir='${exec_prefix}/libexec'
1029
datarootdir='${prefix}/share'
1030
datadir='${datarootdir}'
1031
sysconfdir='${prefix}/etc'
1032
sharedstatedir='${prefix}/com'
1033
localstatedir='${prefix}/var'
1034
includedir='${prefix}/include'
1035
oldincludedir='/usr/include'
1036
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1037
infodir='${datarootdir}/info'
1038
htmldir='${docdir}'
1039
dvidir='${docdir}'
1040
pdfdir='${docdir}'
1041
psdir='${docdir}'
1042
libdir='${exec_prefix}/lib'
1043
localedir='${datarootdir}/locale'
1044
mandir='${datarootdir}/man'
1045
 
1046
ac_prev=
1047
ac_dashdash=
1048
for ac_option
1049
do
1050
  # If the previous option needs an argument, assign it.
1051
  if test -n "$ac_prev"; then
1052
    eval $ac_prev=\$ac_option
1053
    ac_prev=
1054
    continue
1055
  fi
1056
 
1057
  case $ac_option in
1058
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1059
  *)    ac_optarg=yes ;;
1060
  esac
1061
 
1062
  # Accept the important Cygnus configure options, so we can diagnose typos.
1063
 
1064
  case $ac_dashdash$ac_option in
1065
  --)
1066
    ac_dashdash=yes ;;
1067
 
1068
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1069
    ac_prev=bindir ;;
1070
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1071
    bindir=$ac_optarg ;;
1072
 
1073
  -build | --build | --buil | --bui | --bu)
1074
    ac_prev=build_alias ;;
1075
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1076
    build_alias=$ac_optarg ;;
1077
 
1078
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1079
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1080
    ac_prev=cache_file ;;
1081
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1082
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1083
    cache_file=$ac_optarg ;;
1084
 
1085
  --config-cache | -C)
1086
    cache_file=config.cache ;;
1087
 
1088
  -datadir | --datadir | --datadi | --datad)
1089
    ac_prev=datadir ;;
1090
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1091
    datadir=$ac_optarg ;;
1092
 
1093
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1094
  | --dataroo | --dataro | --datar)
1095
    ac_prev=datarootdir ;;
1096
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1097
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1098
    datarootdir=$ac_optarg ;;
1099
 
1100
  -disable-* | --disable-*)
1101
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1102
    # Reject names that are not valid shell variable names.
1103
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1105
   { (exit 1); exit 1; }; }
1106
    ac_useropt_orig=$ac_useropt
1107
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108
    case $ac_user_opts in
1109
      *"
1110
"enable_$ac_useropt"
1111
"*) ;;
1112
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1113
         ac_unrecognized_sep=', ';;
1114
    esac
1115
    eval enable_$ac_useropt=no ;;
1116
 
1117
  -docdir | --docdir | --docdi | --doc | --do)
1118
    ac_prev=docdir ;;
1119
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1120
    docdir=$ac_optarg ;;
1121
 
1122
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1123
    ac_prev=dvidir ;;
1124
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1125
    dvidir=$ac_optarg ;;
1126
 
1127
  -enable-* | --enable-*)
1128
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1129
    # Reject names that are not valid shell variable names.
1130
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1132
   { (exit 1); exit 1; }; }
1133
    ac_useropt_orig=$ac_useropt
1134
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135
    case $ac_user_opts in
1136
      *"
1137
"enable_$ac_useropt"
1138
"*) ;;
1139
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1140
         ac_unrecognized_sep=', ';;
1141
    esac
1142
    eval enable_$ac_useropt=\$ac_optarg ;;
1143
 
1144
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1145
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1146
  | --exec | --exe | --ex)
1147
    ac_prev=exec_prefix ;;
1148
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1149
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1150
  | --exec=* | --exe=* | --ex=*)
1151
    exec_prefix=$ac_optarg ;;
1152
 
1153
  -gas | --gas | --ga | --g)
1154
    # Obsolete; use --with-gas.
1155
    with_gas=yes ;;
1156
 
1157
  -help | --help | --hel | --he | -h)
1158
    ac_init_help=long ;;
1159
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1160
    ac_init_help=recursive ;;
1161
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1162
    ac_init_help=short ;;
1163
 
1164
  -host | --host | --hos | --ho)
1165
    ac_prev=host_alias ;;
1166
  -host=* | --host=* | --hos=* | --ho=*)
1167
    host_alias=$ac_optarg ;;
1168
 
1169
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1170
    ac_prev=htmldir ;;
1171
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1172
  | --ht=*)
1173
    htmldir=$ac_optarg ;;
1174
 
1175
  -includedir | --includedir | --includedi | --included | --include \
1176
  | --includ | --inclu | --incl | --inc)
1177
    ac_prev=includedir ;;
1178
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1179
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1180
    includedir=$ac_optarg ;;
1181
 
1182
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1183
    ac_prev=infodir ;;
1184
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1185
    infodir=$ac_optarg ;;
1186
 
1187
  -libdir | --libdir | --libdi | --libd)
1188
    ac_prev=libdir ;;
1189
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1190
    libdir=$ac_optarg ;;
1191
 
1192
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1193
  | --libexe | --libex | --libe)
1194
    ac_prev=libexecdir ;;
1195
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1196
  | --libexe=* | --libex=* | --libe=*)
1197
    libexecdir=$ac_optarg ;;
1198
 
1199
  -localedir | --localedir | --localedi | --localed | --locale)
1200
    ac_prev=localedir ;;
1201
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1202
    localedir=$ac_optarg ;;
1203
 
1204
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1205
  | --localstate | --localstat | --localsta | --localst | --locals)
1206
    ac_prev=localstatedir ;;
1207
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1208
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1209
    localstatedir=$ac_optarg ;;
1210
 
1211
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1212
    ac_prev=mandir ;;
1213
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1214
    mandir=$ac_optarg ;;
1215
 
1216
  -nfp | --nfp | --nf)
1217
    # Obsolete; use --without-fp.
1218
    with_fp=no ;;
1219
 
1220
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1221
  | --no-cr | --no-c | -n)
1222
    no_create=yes ;;
1223
 
1224
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1225
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1226
    no_recursion=yes ;;
1227
 
1228
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1229
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1230
  | --oldin | --oldi | --old | --ol | --o)
1231
    ac_prev=oldincludedir ;;
1232
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1233
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1234
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1235
    oldincludedir=$ac_optarg ;;
1236
 
1237
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1238
    ac_prev=prefix ;;
1239
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1240
    prefix=$ac_optarg ;;
1241
 
1242
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1243
  | --program-pre | --program-pr | --program-p)
1244
    ac_prev=program_prefix ;;
1245
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1246
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1247
    program_prefix=$ac_optarg ;;
1248
 
1249
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1250
  | --program-suf | --program-su | --program-s)
1251
    ac_prev=program_suffix ;;
1252
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1253
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1254
    program_suffix=$ac_optarg ;;
1255
 
1256
  -program-transform-name | --program-transform-name \
1257
  | --program-transform-nam | --program-transform-na \
1258
  | --program-transform-n | --program-transform- \
1259
  | --program-transform | --program-transfor \
1260
  | --program-transfo | --program-transf \
1261
  | --program-trans | --program-tran \
1262
  | --progr-tra | --program-tr | --program-t)
1263
    ac_prev=program_transform_name ;;
1264
  -program-transform-name=* | --program-transform-name=* \
1265
  | --program-transform-nam=* | --program-transform-na=* \
1266
  | --program-transform-n=* | --program-transform-=* \
1267
  | --program-transform=* | --program-transfor=* \
1268
  | --program-transfo=* | --program-transf=* \
1269
  | --program-trans=* | --program-tran=* \
1270
  | --progr-tra=* | --program-tr=* | --program-t=*)
1271
    program_transform_name=$ac_optarg ;;
1272
 
1273
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1274
    ac_prev=pdfdir ;;
1275
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1276
    pdfdir=$ac_optarg ;;
1277
 
1278
  -psdir | --psdir | --psdi | --psd | --ps)
1279
    ac_prev=psdir ;;
1280
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1281
    psdir=$ac_optarg ;;
1282
 
1283
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284
  | -silent | --silent | --silen | --sile | --sil)
1285
    silent=yes ;;
1286
 
1287
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1288
    ac_prev=sbindir ;;
1289
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1290
  | --sbi=* | --sb=*)
1291
    sbindir=$ac_optarg ;;
1292
 
1293
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1294
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1295
  | --sharedst | --shareds | --shared | --share | --shar \
1296
  | --sha | --sh)
1297
    ac_prev=sharedstatedir ;;
1298
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1299
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1300
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1301
  | --sha=* | --sh=*)
1302
    sharedstatedir=$ac_optarg ;;
1303
 
1304
  -site | --site | --sit)
1305
    ac_prev=site ;;
1306
  -site=* | --site=* | --sit=*)
1307
    site=$ac_optarg ;;
1308
 
1309
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1310
    ac_prev=srcdir ;;
1311
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1312
    srcdir=$ac_optarg ;;
1313
 
1314
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1315
  | --syscon | --sysco | --sysc | --sys | --sy)
1316
    ac_prev=sysconfdir ;;
1317
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1318
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1319
    sysconfdir=$ac_optarg ;;
1320
 
1321
  -target | --target | --targe | --targ | --tar | --ta | --t)
1322
    ac_prev=target_alias ;;
1323
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1324
    target_alias=$ac_optarg ;;
1325
 
1326
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1327
    verbose=yes ;;
1328
 
1329
  -version | --version | --versio | --versi | --vers | -V)
1330
    ac_init_version=: ;;
1331
 
1332
  -with-* | --with-*)
1333
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1334
    # Reject names that are not valid shell variable names.
1335
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1336
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1337
   { (exit 1); exit 1; }; }
1338
    ac_useropt_orig=$ac_useropt
1339
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340
    case $ac_user_opts in
1341
      *"
1342
"with_$ac_useropt"
1343
"*) ;;
1344
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1345
         ac_unrecognized_sep=', ';;
1346
    esac
1347
    eval with_$ac_useropt=\$ac_optarg ;;
1348
 
1349
  -without-* | --without-*)
1350
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1351
    # Reject names that are not valid shell variable names.
1352
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1354
   { (exit 1); exit 1; }; }
1355
    ac_useropt_orig=$ac_useropt
1356
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357
    case $ac_user_opts in
1358
      *"
1359
"with_$ac_useropt"
1360
"*) ;;
1361
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1362
         ac_unrecognized_sep=', ';;
1363
    esac
1364
    eval with_$ac_useropt=no ;;
1365
 
1366
  --x)
1367
    # Obsolete; use --with-x.
1368
    with_x=yes ;;
1369
 
1370
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1371
  | --x-incl | --x-inc | --x-in | --x-i)
1372
    ac_prev=x_includes ;;
1373
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1374
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1375
    x_includes=$ac_optarg ;;
1376
 
1377
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1378
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1379
    ac_prev=x_libraries ;;
1380
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1381
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1382
    x_libraries=$ac_optarg ;;
1383
 
1384
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1385
Try \`$0 --help' for more information." >&2
1386
   { (exit 1); exit 1; }; }
1387
    ;;
1388
 
1389
  *=*)
1390
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391
    # Reject names that are not valid shell variable names.
1392
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1393
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1394
   { (exit 1); exit 1; }; }
1395
    eval $ac_envvar=\$ac_optarg
1396
    export $ac_envvar ;;
1397
 
1398
  *)
1399
    # FIXME: should be removed in autoconf 3.0.
1400
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1401
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1402
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1403
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1404
    ;;
1405
 
1406
  esac
1407
done
1408
 
1409
if test -n "$ac_prev"; then
1410
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1411
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1412
   { (exit 1); exit 1; }; }
1413
fi
1414
 
1415
if test -n "$ac_unrecognized_opts"; then
1416
  case $enable_option_checking in
1417
    no) ;;
1418
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1419
   { (exit 1); exit 1; }; } ;;
1420
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1421
  esac
1422
fi
1423
 
1424
# Check all directory arguments for consistency.
1425
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1426
                datadir sysconfdir sharedstatedir localstatedir includedir \
1427
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1428
                libdir localedir mandir
1429
do
1430
  eval ac_val=\$$ac_var
1431
  # Remove trailing slashes.
1432
  case $ac_val in
1433
    */ )
1434
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1435
      eval $ac_var=\$ac_val;;
1436
  esac
1437
  # Be sure to have absolute directory names.
1438
  case $ac_val in
1439
    [\\/$]* | ?:[\\/]* )  continue;;
1440
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1441
  esac
1442
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1443
   { (exit 1); exit 1; }; }
1444
done
1445
 
1446
# There might be people who depend on the old broken behavior: `$host'
1447
# used to hold the argument of --host etc.
1448
# FIXME: To remove some day.
1449
build=$build_alias
1450
host=$host_alias
1451
target=$target_alias
1452
 
1453
# FIXME: To remove some day.
1454
if test "x$host_alias" != x; then
1455
  if test "x$build_alias" = x; then
1456
    cross_compiling=maybe
1457
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1458
    If a cross compiler is detected then cross compile mode will be used." >&2
1459
  elif test "x$build_alias" != "x$host_alias"; then
1460
    cross_compiling=yes
1461
  fi
1462
fi
1463
 
1464
ac_tool_prefix=
1465
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1466
 
1467
test "$silent" = yes && exec 6>/dev/null
1468
 
1469
 
1470
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1471
ac_ls_di=`ls -di .` &&
1472
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1473
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1474
   { (exit 1); exit 1; }; }
1475
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1476
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1477
   { (exit 1); exit 1; }; }
1478
 
1479
 
1480
# Find the source files, if location was not specified.
1481
if test -z "$srcdir"; then
1482
  ac_srcdir_defaulted=yes
1483
  # Try the directory containing this script, then the parent directory.
1484
  ac_confdir=`$as_dirname -- "$as_myself" ||
1485
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1486
         X"$as_myself" : 'X\(//\)[^/]' \| \
1487
         X"$as_myself" : 'X\(//\)$' \| \
1488
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1489
$as_echo X"$as_myself" |
1490
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1491
            s//\1/
1492
            q
1493
          }
1494
          /^X\(\/\/\)[^/].*/{
1495
            s//\1/
1496
            q
1497
          }
1498
          /^X\(\/\/\)$/{
1499
            s//\1/
1500
            q
1501
          }
1502
          /^X\(\/\).*/{
1503
            s//\1/
1504
            q
1505
          }
1506
          s/.*/./; q'`
1507
  srcdir=$ac_confdir
1508
  if test ! -r "$srcdir/$ac_unique_file"; then
1509
    srcdir=..
1510
  fi
1511
else
1512
  ac_srcdir_defaulted=no
1513
fi
1514
if test ! -r "$srcdir/$ac_unique_file"; then
1515
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1516
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1517
   { (exit 1); exit 1; }; }
1518
fi
1519
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1520
ac_abs_confdir=`(
1521
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1522
   { (exit 1); exit 1; }; }
1523
        pwd)`
1524
# When building in place, set srcdir=.
1525
if test "$ac_abs_confdir" = "$ac_pwd"; then
1526
  srcdir=.
1527
fi
1528
# Remove unnecessary trailing slashes from srcdir.
1529
# Double slashes in file names in object file debugging info
1530
# mess up M-x gdb in Emacs.
1531
case $srcdir in
1532
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1533
esac
1534
for ac_var in $ac_precious_vars; do
1535
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1536
  eval ac_env_${ac_var}_value=\$${ac_var}
1537
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1538
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1539
done
1540
 
1541
#
1542
# Report the --help message.
1543
#
1544
if test "$ac_init_help" = "long"; then
1545
  # Omit some internal or obsolete options to make the list less imposing.
1546
  # This message is too long to be a string in the A/UX 3.1 sh.
1547
  cat <<_ACEOF
1548
\`configure' configures newlib 1.18.0 to adapt to many kinds of systems.
1549
 
1550
Usage: $0 [OPTION]... [VAR=VALUE]...
1551
 
1552
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1553
VAR=VALUE.  See below for descriptions of some of the useful variables.
1554
 
1555
Defaults for the options are specified in brackets.
1556
 
1557
Configuration:
1558
  -h, --help              display this help and exit
1559
      --help=short        display options specific to this package
1560
      --help=recursive    display the short help of all the included packages
1561
  -V, --version           display version information and exit
1562
  -q, --quiet, --silent   do not print \`checking...' messages
1563
      --cache-file=FILE   cache test results in FILE [disabled]
1564
  -C, --config-cache      alias for \`--cache-file=config.cache'
1565
  -n, --no-create         do not create output files
1566
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1567
 
1568
Installation directories:
1569
  --prefix=PREFIX         install architecture-independent files in PREFIX
1570
                          [$ac_default_prefix]
1571
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1572
                          [PREFIX]
1573
 
1574
By default, \`make install' will install all the files in
1575
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1576
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1577
for instance \`--prefix=\$HOME'.
1578
 
1579
For better control, use the options below.
1580
 
1581
Fine tuning of the installation directories:
1582
  --bindir=DIR            user executables [EPREFIX/bin]
1583
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1584
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1585
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1586
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1587
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1588
  --libdir=DIR            object code libraries [EPREFIX/lib]
1589
  --includedir=DIR        C header files [PREFIX/include]
1590
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1591
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1592
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1593
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1594
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1595
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1596
  --docdir=DIR            documentation root [DATAROOTDIR/doc/newlib]
1597
  --htmldir=DIR           html documentation [DOCDIR]
1598
  --dvidir=DIR            dvi documentation [DOCDIR]
1599
  --pdfdir=DIR            pdf documentation [DOCDIR]
1600
  --psdir=DIR             ps documentation [DOCDIR]
1601
_ACEOF
1602
 
1603
  cat <<\_ACEOF
1604
 
1605
Program names:
1606
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1607
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1608
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1609
 
1610
System types:
1611
  --build=BUILD     configure for building on BUILD [guessed]
1612
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1613
_ACEOF
1614
fi
1615
 
1616
if test -n "$ac_init_help"; then
1617
  case $ac_init_help in
1618
     short | recursive ) echo "Configuration of newlib 1.18.0:";;
1619
   esac
1620
  cat <<\_ACEOF
1621
 
1622
Optional Features:
1623
  --disable-option-checking  ignore unrecognized --enable/--with options
1624
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1625
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1626
  --enable-newlib-io-pos-args enable printf-family positional arg support
1627
  --enable-newlib-io-c99-formats   enable C99 support in IO functions like printf/scanf
1628
  --enable-newlib-io-long-long   enable long long type support in IO functions like printf/scanf
1629
  --enable-newlib-io-long-double   enable long double type support in IO functions printf/scanf
1630
  --enable-newlib-mb        enable multibyte support
1631
  --enable-newlib-iconv-encodings   enable specific comma-separated list of bidirectional iconv encodings to be built-in
1632
  --enable-newlib-iconv-from-encodings   enable specific comma-separated list of \"from\" iconv encodings to be built-in
1633
  --enable-newlib-iconv-to-encodings   enable specific comma-separated list of \"to\" iconv encodings to be built-in
1634
  --enable-newlib-iconv-external-ccs     enable capabilities to load external CCS files for iconv
1635
  --disable-newlib-atexit-alloc    disable dynamic allocation of atexit entries
1636
  --enable-newlib-reent-small   enable small reentrant struct support
1637
  --enable-multilib         build many library versions (default)
1638
  --enable-target-optspace  optimize for space
1639
  --enable-malloc-debugging indicate malloc debugging requested
1640
  --enable-newlib-multithread        enable support for multiple threads
1641
  --enable-newlib-iconv     enable iconv library support
1642
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1643
  --disable-newlib-io-float disable printf/scanf family float support
1644
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1645
  --disable-dependency-tracking  speeds up one-time build
1646
  --enable-dependency-tracking   do not reject slow dependency extractors
1647
  --enable-maintainer-mode  enable make rules and dependencies not useful
1648
                          (and sometimes confusing) to the casual installer
1649
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1650
  --enable-static[=PKGS]  build static libraries [default=yes]
1651
  --enable-fast-install[=PKGS]
1652
                          optimize for fast installation [default=yes]
1653
  --disable-libtool-lock  avoid locking (might break parallel builds)
1654
  --enable-newlib-hw-fp    Turn on hardware floating point math
1655
 
1656
Optional Packages:
1657
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1658
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1659
  --with-pic              try to use only PIC/non-PIC objects [default=use
1660
                          both]
1661
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1662
 
1663
Some influential environment variables:
1664
  CCAS        assembler compiler command (defaults to CC)
1665
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1666
  CC          C compiler command
1667
  CFLAGS      C compiler flags
1668
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1669
              nonstandard directory 
1670
  LIBS        libraries to pass to the linker, e.g. -l
1671
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1672
              you have headers in a nonstandard directory 
1673
  CPP         C preprocessor
1674
 
1675
Use these variables to override the choices made by `configure' or to help
1676
it to find libraries and programs with nonstandard names/locations.
1677
 
1678
_ACEOF
1679
ac_status=$?
1680
fi
1681
 
1682
if test "$ac_init_help" = "recursive"; then
1683
  # If there are subdirs, report their specific --help.
1684
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1685
    test -d "$ac_dir" ||
1686
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1687
      continue
1688
    ac_builddir=.
1689
 
1690
case "$ac_dir" in
1691
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692
*)
1693
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1694
  # A ".." for each directory in $ac_dir_suffix.
1695
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1696
  case $ac_top_builddir_sub in
1697
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1699
  esac ;;
1700
esac
1701
ac_abs_top_builddir=$ac_pwd
1702
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1703
# for backward compatibility:
1704
ac_top_builddir=$ac_top_build_prefix
1705
 
1706
case $srcdir in
1707
  .)  # We are building in place.
1708
    ac_srcdir=.
1709
    ac_top_srcdir=$ac_top_builddir_sub
1710
    ac_abs_top_srcdir=$ac_pwd ;;
1711
  [\\/]* | ?:[\\/]* )  # Absolute name.
1712
    ac_srcdir=$srcdir$ac_dir_suffix;
1713
    ac_top_srcdir=$srcdir
1714
    ac_abs_top_srcdir=$srcdir ;;
1715
  *) # Relative name.
1716
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1717
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1718
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1719
esac
1720
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1721
 
1722
    cd "$ac_dir" || { ac_status=$?; continue; }
1723
    # Check for guested configure.
1724
    if test -f "$ac_srcdir/configure.gnu"; then
1725
      echo &&
1726
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1727
    elif test -f "$ac_srcdir/configure"; then
1728
      echo &&
1729
      $SHELL "$ac_srcdir/configure" --help=recursive
1730
    else
1731
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1732
    fi || ac_status=$?
1733
    cd "$ac_pwd" || { ac_status=$?; break; }
1734
  done
1735
fi
1736
 
1737
test -n "$ac_init_help" && exit $ac_status
1738
if $ac_init_version; then
1739
  cat <<\_ACEOF
1740
newlib configure 1.18.0
1741
generated by GNU Autoconf 2.63
1742
 
1743
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1744
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1745
This configure script is free software; the Free Software Foundation
1746
gives unlimited permission to copy, distribute and modify it.
1747
_ACEOF
1748
  exit
1749
fi
1750
cat >config.log <<_ACEOF
1751
This file contains any messages produced by compilers while
1752
running configure, to aid debugging if configure makes a mistake.
1753
 
1754
It was created by newlib $as_me 1.18.0, which was
1755
generated by GNU Autoconf 2.63.  Invocation command line was
1756
 
1757
  $ $0 $@
1758
 
1759
_ACEOF
1760
exec 5>>config.log
1761
{
1762
cat <<_ASUNAME
1763
## --------- ##
1764
## Platform. ##
1765
## --------- ##
1766
 
1767
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1768
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1769
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1770
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1771
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1772
 
1773
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1774
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1775
 
1776
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1777
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1778
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1779
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1780
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1781
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1782
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1783
 
1784
_ASUNAME
1785
 
1786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787
for as_dir in $PATH
1788
do
1789
  IFS=$as_save_IFS
1790
  test -z "$as_dir" && as_dir=.
1791
  $as_echo "PATH: $as_dir"
1792
done
1793
IFS=$as_save_IFS
1794
 
1795
} >&5
1796
 
1797
cat >&5 <<_ACEOF
1798
 
1799
 
1800
## ----------- ##
1801
## Core tests. ##
1802
## ----------- ##
1803
 
1804
_ACEOF
1805
 
1806
 
1807
# Keep a trace of the command line.
1808
# Strip out --no-create and --no-recursion so they do not pile up.
1809
# Strip out --silent because we don't want to record it for future runs.
1810
# Also quote any args containing shell meta-characters.
1811
# Make two passes to allow for proper duplicate-argument suppression.
1812
ac_configure_args=
1813
ac_configure_args0=
1814
ac_configure_args1=
1815
ac_must_keep_next=false
1816
for ac_pass in 1 2
1817
do
1818
  for ac_arg
1819
  do
1820
    case $ac_arg in
1821
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1822
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1823
    | -silent | --silent | --silen | --sile | --sil)
1824
      continue ;;
1825
    *\'*)
1826
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1827
    esac
1828
    case $ac_pass in
1829
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1830
    2)
1831
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1832
      if test $ac_must_keep_next = true; then
1833
        ac_must_keep_next=false # Got value, back to normal.
1834
      else
1835
        case $ac_arg in
1836
          *=* | --config-cache | -C | -disable-* | --disable-* \
1837
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1838
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1839
          | -with-* | --with-* | -without-* | --without-* | --x)
1840
            case "$ac_configure_args0 " in
1841
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1842
            esac
1843
            ;;
1844
          -* ) ac_must_keep_next=true ;;
1845
        esac
1846
      fi
1847
      ac_configure_args="$ac_configure_args '$ac_arg'"
1848
      ;;
1849
    esac
1850
  done
1851
done
1852
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1853
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1854
 
1855
# When interrupted or exit'd, cleanup temporary files, and complete
1856
# config.log.  We remove comments because anyway the quotes in there
1857
# would cause problems or look ugly.
1858
# WARNING: Use '\'' to represent an apostrophe within the trap.
1859
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1860
trap 'exit_status=$?
1861
  # Save into config.log some information that might help in debugging.
1862
  {
1863
    echo
1864
 
1865
    cat <<\_ASBOX
1866
## ---------------- ##
1867
## Cache variables. ##
1868
## ---------------- ##
1869
_ASBOX
1870
    echo
1871
    # The following way of writing the cache mishandles newlines in values,
1872
(
1873
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1874
    eval ac_val=\$$ac_var
1875
    case $ac_val in #(
1876
    *${as_nl}*)
1877
      case $ac_var in #(
1878
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1879
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1880
      esac
1881
      case $ac_var in #(
1882
      _ | IFS | as_nl) ;; #(
1883
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1884
      *) $as_unset $ac_var ;;
1885
      esac ;;
1886
    esac
1887
  done
1888
  (set) 2>&1 |
1889
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1890
    *${as_nl}ac_space=\ *)
1891
      sed -n \
1892
        "s/'\''/'\''\\\\'\'''\''/g;
1893
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1894
      ;; #(
1895
    *)
1896
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1897
      ;;
1898
    esac |
1899
    sort
1900
)
1901
    echo
1902
 
1903
    cat <<\_ASBOX
1904
## ----------------- ##
1905
## Output variables. ##
1906
## ----------------- ##
1907
_ASBOX
1908
    echo
1909
    for ac_var in $ac_subst_vars
1910
    do
1911
      eval ac_val=\$$ac_var
1912
      case $ac_val in
1913
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914
      esac
1915
      $as_echo "$ac_var='\''$ac_val'\''"
1916
    done | sort
1917
    echo
1918
 
1919
    if test -n "$ac_subst_files"; then
1920
      cat <<\_ASBOX
1921
## ------------------- ##
1922
## File substitutions. ##
1923
## ------------------- ##
1924
_ASBOX
1925
      echo
1926
      for ac_var in $ac_subst_files
1927
      do
1928
        eval ac_val=\$$ac_var
1929
        case $ac_val in
1930
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1931
        esac
1932
        $as_echo "$ac_var='\''$ac_val'\''"
1933
      done | sort
1934
      echo
1935
    fi
1936
 
1937
    if test -s confdefs.h; then
1938
      cat <<\_ASBOX
1939
## ----------- ##
1940
## confdefs.h. ##
1941
## ----------- ##
1942
_ASBOX
1943
      echo
1944
      cat confdefs.h
1945
      echo
1946
    fi
1947
    test "$ac_signal" != 0 &&
1948
      $as_echo "$as_me: caught signal $ac_signal"
1949
    $as_echo "$as_me: exit $exit_status"
1950
  } >&5
1951
  rm -f core *.core core.conftest.* &&
1952
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1953
    exit $exit_status
1954
' 0
1955
for ac_signal in 1 2 13 15; do
1956
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1957
done
1958
ac_signal=0
1959
 
1960
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1961
rm -f -r conftest* confdefs.h
1962
 
1963
# Predefined preprocessor variables.
1964
 
1965
cat >>confdefs.h <<_ACEOF
1966
#define PACKAGE_NAME "$PACKAGE_NAME"
1967
_ACEOF
1968
 
1969
 
1970
cat >>confdefs.h <<_ACEOF
1971
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1972
_ACEOF
1973
 
1974
 
1975
cat >>confdefs.h <<_ACEOF
1976
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1977
_ACEOF
1978
 
1979
 
1980
cat >>confdefs.h <<_ACEOF
1981
#define PACKAGE_STRING "$PACKAGE_STRING"
1982
_ACEOF
1983
 
1984
 
1985
cat >>confdefs.h <<_ACEOF
1986
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1987
_ACEOF
1988
 
1989
 
1990
# Let the site file select an alternate cache file if it wants to.
1991
# Prefer an explicitly selected file to automatically selected ones.
1992
ac_site_file1=NONE
1993
ac_site_file2=NONE
1994
if test -n "$CONFIG_SITE"; then
1995
  ac_site_file1=$CONFIG_SITE
1996
elif test "x$prefix" != xNONE; then
1997
  ac_site_file1=$prefix/share/config.site
1998
  ac_site_file2=$prefix/etc/config.site
1999
else
2000
  ac_site_file1=$ac_default_prefix/share/config.site
2001
  ac_site_file2=$ac_default_prefix/etc/config.site
2002
fi
2003
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2004
do
2005
  test "x$ac_site_file" = xNONE && continue
2006
  if test -r "$ac_site_file"; then
2007
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2008
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2009
    sed 's/^/| /' "$ac_site_file" >&5
2010
    . "$ac_site_file"
2011
  fi
2012
done
2013
 
2014
if test -r "$cache_file"; then
2015
  # Some versions of bash will fail to source /dev/null (special
2016
  # files actually), so we avoid doing that.
2017
  if test -f "$cache_file"; then
2018
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2019
$as_echo "$as_me: loading cache $cache_file" >&6;}
2020
    case $cache_file in
2021
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2022
      *)                      . "./$cache_file";;
2023
    esac
2024
  fi
2025
else
2026
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2027
$as_echo "$as_me: creating cache $cache_file" >&6;}
2028
  >$cache_file
2029
fi
2030
 
2031
# Check that the precious variables saved in the cache have kept the same
2032
# value.
2033
ac_cache_corrupted=false
2034
for ac_var in $ac_precious_vars; do
2035
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2036
  eval ac_new_set=\$ac_env_${ac_var}_set
2037
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2038
  eval ac_new_val=\$ac_env_${ac_var}_value
2039
  case $ac_old_set,$ac_new_set in
2040
    set,)
2041
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2042
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2043
      ac_cache_corrupted=: ;;
2044
    ,set)
2045
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2046
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2047
      ac_cache_corrupted=: ;;
2048
    ,);;
2049
    *)
2050
      if test "x$ac_old_val" != "x$ac_new_val"; then
2051
        # differences in whitespace do not lead to failure.
2052
        ac_old_val_w=`echo x $ac_old_val`
2053
        ac_new_val_w=`echo x $ac_new_val`
2054
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2055
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2056
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2057
          ac_cache_corrupted=:
2058
        else
2059
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2060
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2061
          eval $ac_var=\$ac_old_val
2062
        fi
2063
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2064
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2065
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2066
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2067
      fi;;
2068
  esac
2069
  # Pass precious variables to config.status.
2070
  if test "$ac_new_set" = set; then
2071
    case $ac_new_val in
2072
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2073
    *) ac_arg=$ac_var=$ac_new_val ;;
2074
    esac
2075
    case " $ac_configure_args " in
2076
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2077
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2078
    esac
2079
  fi
2080
done
2081
if $ac_cache_corrupted; then
2082
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2083
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2084
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2085
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2086
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2087
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2088
   { (exit 1); exit 1; }; }
2089
fi
2090
 
2091
 
2092
 
2093
 
2094
 
2095
 
2096
 
2097
 
2098
 
2099
 
2100
 
2101
 
2102
 
2103
 
2104
 
2105
 
2106
 
2107
 
2108
 
2109
 
2110
 
2111
 
2112
 
2113
 
2114
 
2115
ac_ext=c
2116
ac_cpp='$CPP $CPPFLAGS'
2117
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2118
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2119
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2120
 
2121
 
2122
 
2123
ac_config_headers="$ac_config_headers newlib.h:newlib.hin"
2124
 
2125
 
2126
ac_aux_dir=
2127
for ac_dir in .. "$srcdir"/..; do
2128
  if test -f "$ac_dir/install-sh"; then
2129
    ac_aux_dir=$ac_dir
2130
    ac_install_sh="$ac_aux_dir/install-sh -c"
2131
    break
2132
  elif test -f "$ac_dir/install.sh"; then
2133
    ac_aux_dir=$ac_dir
2134
    ac_install_sh="$ac_aux_dir/install.sh -c"
2135
    break
2136
  elif test -f "$ac_dir/shtool"; then
2137
    ac_aux_dir=$ac_dir
2138
    ac_install_sh="$ac_aux_dir/shtool install -c"
2139
    break
2140
  fi
2141
done
2142
if test -z "$ac_aux_dir"; then
2143
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. \"$srcdir\"/.." >&5
2144
$as_echo "$as_me: error: cannot find install-sh or install.sh in .. \"$srcdir\"/.." >&2;}
2145
   { (exit 1); exit 1; }; }
2146
fi
2147
 
2148
# These three variables are undocumented and unsupported,
2149
# and are intended to be withdrawn in a future Autoconf release.
2150
# They can cause serious problems if a builder's source tree is in a directory
2151
# whose full name contains unusual characters.
2152
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2153
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2154
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2155
 
2156
 
2157
 
2158
# Check whether --enable-newlib-io-pos-args was given.
2159
if test "${enable_newlib_io_pos_args+set}" = set; then
2160
  enableval=$enable_newlib_io_pos_args; case "${enableval}" in
2161
  yes) newlib_io_pos_args=yes ;;
2162
  no)  newlib_io_pos_args=no ;;
2163
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-pos-args option" >&5
2164
$as_echo "$as_me: error: bad value ${enableval} for newlib-io-pos-args option" >&2;}
2165
   { (exit 1); exit 1; }; } ;;
2166
 esac
2167
else
2168
  newlib_io_pos_args=
2169
fi
2170
 
2171
# Check whether --enable-newlib-io-c99-formats was given.
2172
if test "${enable_newlib_io_c99_formats+set}" = set; then
2173
  enableval=$enable_newlib_io_c99_formats; case "${enableval}" in
2174
  yes) newlib_io_c99_formats=yes;;
2175
  no)  newlib_io_c99_formats=no ;;
2176
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-c99-formats option" >&5
2177
$as_echo "$as_me: error: bad value ${enableval} for newlib-io-c99-formats option" >&2;}
2178
   { (exit 1); exit 1; }; } ;;
2179
 esac
2180
else
2181
  newlib_io_c99_formats=
2182
fi
2183
 
2184
# Check whether --enable-newlib-io-long-long was given.
2185
if test "${enable_newlib_io_long_long+set}" = set; then
2186
  enableval=$enable_newlib_io_long_long; case "${enableval}" in
2187
  yes) newlib_io_long_long=yes;;
2188
  no)  newlib_io_long_long=no ;;
2189
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-long-long option" >&5
2190
$as_echo "$as_me: error: bad value ${enableval} for newlib-io-long-long option" >&2;}
2191
   { (exit 1); exit 1; }; } ;;
2192
 esac
2193
else
2194
  newlib_io_long_long=
2195
fi
2196
 
2197
# Check whether --enable-newlib-io-long-double was given.
2198
if test "${enable_newlib_io_long_double+set}" = set; then
2199
  enableval=$enable_newlib_io_long_double; case "${enableval}" in
2200
  yes) newlib_io_long_double=yes;;
2201
  no)  newlib_io_long_double=no ;;
2202
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-long-double option" >&5
2203
$as_echo "$as_me: error: bad value ${enableval} for newlib-io-long-double option" >&2;}
2204
   { (exit 1); exit 1; }; } ;;
2205
 esac
2206
else
2207
  newlib_io_long_double=
2208
fi
2209
 
2210
# Check whether --enable-newlib-mb was given.
2211
if test "${enable_newlib_mb+set}" = set; then
2212
  enableval=$enable_newlib_mb; case "${enableval}" in
2213
  yes) newlib_mb=yes;;
2214
  no)  newlib_mb=no ;;
2215
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-mb option" >&5
2216
$as_echo "$as_me: error: bad value ${enableval} for newlib-mb option" >&2;}
2217
   { (exit 1); exit 1; }; } ;;
2218
 esac
2219
else
2220
  newlib_mb=
2221
fi
2222
 
2223
# Check whether --enable-newlib-iconv-encodings was given.
2224
if test "${enable_newlib_iconv_encodings+set}" = set; then
2225
  enableval=$enable_newlib_iconv_encodings; if test x${enableval} = x; then
2226
   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-encodings option - use comma-separated encodings list" >&5
2227
$as_echo "$as_me: error: bad value ${enableval} for newlib-iconv-encodings option - use comma-separated encodings list" >&2;}
2228
   { (exit 1); exit 1; }; }
2229
 fi
2230
 iconv_encodings=${enableval}
2231
 
2232
else
2233
  iconv_encodings=
2234
fi
2235
 
2236
# Check whether --enable-newlib-iconv-from-encodings was given.
2237
if test "${enable_newlib_iconv_from_encodings+set}" = set; then
2238
  enableval=$enable_newlib_iconv_from_encodings; if test x${enableval} = x; then
2239
   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-from-encodings option - use comma-separated encodings list" >&5
2240
$as_echo "$as_me: error: bad value ${enableval} for newlib-iconv-from-encodings option - use comma-separated encodings list" >&2;}
2241
   { (exit 1); exit 1; }; }
2242
 fi
2243
 iconv_from_encodings=${enableval}
2244
 
2245
else
2246
  iconv_from_encodings=
2247
fi
2248
 
2249
# Check whether --enable-newlib-iconv-to-encodings was given.
2250
if test "${enable_newlib_iconv_to_encodings+set}" = set; then
2251
  enableval=$enable_newlib_iconv_to_encodings; if test x${enableval} = x; then
2252
   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-to-encodings option - use comma-separated encodings list" >&5
2253
$as_echo "$as_me: error: bad value ${enableval} for newlib-iconv-to-encodings option - use comma-separated encodings list" >&2;}
2254
   { (exit 1); exit 1; }; }
2255
 fi
2256
 iconv_to_encodings=${enableval}
2257
 
2258
else
2259
  iconv_to_encodings=
2260
fi
2261
 
2262
# Check whether --enable-newlib-iconv-external-ccs was given.
2263
if test "${enable_newlib_iconv_external_ccs+set}" = set; then
2264
  enableval=$enable_newlib_iconv_external_ccs; if test "${newlib_iconv_external_ccs+set}" != set; then
2265
   case "${enableval}" in
2266
     yes) newlib_iconv_external_ccs=yes ;;
2267
     no)  newlib_iconv_external_ccs=no ;;
2268
     *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-external-ccs option" >&5
2269
$as_echo "$as_me: error: bad value ${enableval} for newlib-iconv-external-ccs option" >&2;}
2270
   { (exit 1); exit 1; }; } ;;
2271
   esac
2272
 fi
2273
else
2274
  newlib_iconv_external_ccs=${newlib_iconv_external_ccs}
2275
fi
2276
 
2277
# Check whether --enable-newlib-atexit-dynamic-alloc was given.
2278
if test "${enable_newlib_atexit_dynamic_alloc+set}" = set; then
2279
  enableval=$enable_newlib_atexit_dynamic_alloc; if test "${newlib_atexit_dynamic_alloc+set}" != set; then
2280
  case "${enableval}" in
2281
    yes) newlib_atexit_dynamic_alloc=yes ;;
2282
    no)  newlib_atexit_dynamic_alloc=no  ;;
2283
    *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-atexit-dynamic-alloc option" >&5
2284
$as_echo "$as_me: error: bad value ${enableval} for newlib-atexit-dynamic-alloc option" >&2;}
2285
   { (exit 1); exit 1; }; } ;;
2286
  esac
2287
 fi
2288
else
2289
  newlib_atexit_dynamic_alloc=${newlib_atexit_dynamic_alloc}
2290
fi
2291
 
2292
# Check whether --enable-newlib-reent-small was given.
2293
if test "${enable_newlib_reent_small+set}" = set; then
2294
  enableval=$enable_newlib_reent_small; case "${enableval}" in
2295
  yes) newlib_reent_small=yes;;
2296
  no)  newlib_reent_small=no ;;
2297
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-reent-small option" >&5
2298
$as_echo "$as_me: error: bad value ${enableval} for newlib-reent-small option" >&2;}
2299
   { (exit 1); exit 1; }; } ;;
2300
 esac
2301
else
2302
  newlib_reent_small=
2303
fi
2304
 
2305
 
2306
# Make sure we can run config.sub.
2307
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2308
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2309
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2310
   { (exit 1); exit 1; }; }
2311
 
2312
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2313
$as_echo_n "checking build system type... " >&6; }
2314
if test "${ac_cv_build+set}" = set; then
2315
  $as_echo_n "(cached) " >&6
2316
else
2317
  ac_build_alias=$build_alias
2318
test "x$ac_build_alias" = x &&
2319
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2320
test "x$ac_build_alias" = x &&
2321
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2322
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2323
   { (exit 1); exit 1; }; }
2324
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2325
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2326
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2327
   { (exit 1); exit 1; }; }
2328
 
2329
fi
2330
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2331
$as_echo "$ac_cv_build" >&6; }
2332
case $ac_cv_build in
2333
*-*-*) ;;
2334
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2335
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2336
   { (exit 1); exit 1; }; };;
2337
esac
2338
build=$ac_cv_build
2339
ac_save_IFS=$IFS; IFS='-'
2340
set x $ac_cv_build
2341
shift
2342
build_cpu=$1
2343
build_vendor=$2
2344
shift; shift
2345
# Remember, the first character of IFS is used to create $*,
2346
# except with old shells:
2347
build_os=$*
2348
IFS=$ac_save_IFS
2349
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2350
 
2351
 
2352
am__api_version='1.11'
2353
 
2354
# Find a good install program.  We prefer a C program (faster),
2355
# so one script is as good as another.  But avoid the broken or
2356
# incompatible versions:
2357
# SysV /etc/install, /usr/sbin/install
2358
# SunOS /usr/etc/install
2359
# IRIX /sbin/install
2360
# AIX /bin/install
2361
# AmigaOS /C/install, which installs bootblocks on floppy discs
2362
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2363
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2364
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2365
# OS/2's system install, which has a completely different semantic
2366
# ./install, which can be erroneously created by make from ./install.sh.
2367
# Reject install programs that cannot install multiple files.
2368
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2369
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2370
if test -z "$INSTALL"; then
2371
if test "${ac_cv_path_install+set}" = set; then
2372
  $as_echo_n "(cached) " >&6
2373
else
2374
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375
for as_dir in $PATH
2376
do
2377
  IFS=$as_save_IFS
2378
  test -z "$as_dir" && as_dir=.
2379
  # Account for people who put trailing slashes in PATH elements.
2380
case $as_dir/ in
2381
  ./ | .// | /cC/* | \
2382
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2383
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2384
  /usr/ucb/* ) ;;
2385
  *)
2386
    # OSF1 and SCO ODT 3.0 have their own names for install.
2387
    # Don't use installbsd from OSF since it installs stuff as root
2388
    # by default.
2389
    for ac_prog in ginstall scoinst install; do
2390
      for ac_exec_ext in '' $ac_executable_extensions; do
2391
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2392
          if test $ac_prog = install &&
2393
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2394
            # AIX install.  It has an incompatible calling convention.
2395
            :
2396
          elif test $ac_prog = install &&
2397
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2398
            # program-specific install script used by HP pwplus--don't use.
2399
            :
2400
          else
2401
            rm -rf conftest.one conftest.two conftest.dir
2402
            echo one > conftest.one
2403
            echo two > conftest.two
2404
            mkdir conftest.dir
2405
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2406
              test -s conftest.one && test -s conftest.two &&
2407
              test -s conftest.dir/conftest.one &&
2408
              test -s conftest.dir/conftest.two
2409
            then
2410
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2411
              break 3
2412
            fi
2413
          fi
2414
        fi
2415
      done
2416
    done
2417
    ;;
2418
esac
2419
 
2420
done
2421
IFS=$as_save_IFS
2422
 
2423
rm -rf conftest.one conftest.two conftest.dir
2424
 
2425
fi
2426
  if test "${ac_cv_path_install+set}" = set; then
2427
    INSTALL=$ac_cv_path_install
2428
  else
2429
    # As a last resort, use the slow shell script.  Don't cache a
2430
    # value for INSTALL within a source directory, because that will
2431
    # break other packages using the cache if that directory is
2432
    # removed, or if the value is a relative name.
2433
    INSTALL=$ac_install_sh
2434
  fi
2435
fi
2436
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2437
$as_echo "$INSTALL" >&6; }
2438
 
2439
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2440
# It thinks the first close brace ends the variable substitution.
2441
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2442
 
2443
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2444
 
2445
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2446
 
2447
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2448
$as_echo_n "checking whether build environment is sane... " >&6; }
2449
# Just in case
2450
sleep 1
2451
echo timestamp > conftest.file
2452
# Reject unsafe characters in $srcdir or the absolute working directory
2453
# name.  Accept space and tab only in the latter.
2454
am_lf='
2455
'
2456
case `pwd` in
2457
  *[\\\"\#\$\&\'\`$am_lf]*)
2458
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2459
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2460
   { (exit 1); exit 1; }; };;
2461
esac
2462
case $srcdir in
2463
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2464
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2465
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2466
   { (exit 1); exit 1; }; };;
2467
esac
2468
 
2469
# Do `set' in a subshell so we don't clobber the current shell's
2470
# arguments.  Must try -L first in case configure is actually a
2471
# symlink; some systems play weird games with the mod time of symlinks
2472
# (eg FreeBSD returns the mod time of the symlink's containing
2473
# directory).
2474
if (
2475
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2476
   if test "$*" = "X"; then
2477
      # -L didn't work.
2478
      set X `ls -t "$srcdir/configure" conftest.file`
2479
   fi
2480
   rm -f conftest.file
2481
   if test "$*" != "X $srcdir/configure conftest.file" \
2482
      && test "$*" != "X conftest.file $srcdir/configure"; then
2483
 
2484
      # If neither matched, then we have a broken ls.  This can happen
2485
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2486
      # broken ls alias from the environment.  This has actually
2487
      # happened.  Such a system could not be considered "sane".
2488
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2489
alias in your environment" >&5
2490
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2491
alias in your environment" >&2;}
2492
   { (exit 1); exit 1; }; }
2493
   fi
2494
 
2495
   test "$2" = conftest.file
2496
   )
2497
then
2498
   # Ok.
2499
   :
2500
else
2501
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2502
Check your system clock" >&5
2503
$as_echo "$as_me: error: newly created file is older than distributed files!
2504
Check your system clock" >&2;}
2505
   { (exit 1); exit 1; }; }
2506
fi
2507
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2508
$as_echo "yes" >&6; }
2509
test "$program_prefix" != NONE &&
2510
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2511
# Use a double $ so make ignores it.
2512
test "$program_suffix" != NONE &&
2513
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2514
# Double any \ or $.
2515
# By default was `s,x,x', remove it if useless.
2516
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2517
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2518
 
2519
# expand $ac_aux_dir to an absolute path
2520
am_aux_dir=`cd $ac_aux_dir && pwd`
2521
 
2522
if test x"${MISSING+set}" != xset; then
2523
  case $am_aux_dir in
2524
  *\ * | *\     *)
2525
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2526
  *)
2527
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2528
  esac
2529
fi
2530
# Use eval to expand $SHELL
2531
if eval "$MISSING --run true"; then
2532
  am_missing_run="$MISSING --run "
2533
else
2534
  am_missing_run=
2535
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2536
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2537
fi
2538
 
2539
if test x"${install_sh}" != xset; then
2540
  case $am_aux_dir in
2541
  *\ * | *\     *)
2542
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2543
  *)
2544
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2545
  esac
2546
fi
2547
 
2548
# Installed binaries are usually stripped using `strip' when the user
2549
# run `make install-strip'.  However `strip' might not be the right
2550
# tool to use in cross-compilation environments, therefore Automake
2551
# will honor the `STRIP' environment variable to overrule this program.
2552
if test "$cross_compiling" != no; then
2553
  if test -n "$ac_tool_prefix"; then
2554
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2555
set dummy ${ac_tool_prefix}strip; ac_word=$2
2556
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2557
$as_echo_n "checking for $ac_word... " >&6; }
2558
if test "${ac_cv_prog_STRIP+set}" = set; then
2559
  $as_echo_n "(cached) " >&6
2560
else
2561
  if test -n "$STRIP"; then
2562
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2563
else
2564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565
for as_dir in $PATH
2566
do
2567
  IFS=$as_save_IFS
2568
  test -z "$as_dir" && as_dir=.
2569
  for ac_exec_ext in '' $ac_executable_extensions; do
2570
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2572
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573
    break 2
2574
  fi
2575
done
2576
done
2577
IFS=$as_save_IFS
2578
 
2579
fi
2580
fi
2581
STRIP=$ac_cv_prog_STRIP
2582
if test -n "$STRIP"; then
2583
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2584
$as_echo "$STRIP" >&6; }
2585
else
2586
  { $as_echo "$as_me:$LINENO: result: no" >&5
2587
$as_echo "no" >&6; }
2588
fi
2589
 
2590
 
2591
fi
2592
if test -z "$ac_cv_prog_STRIP"; then
2593
  ac_ct_STRIP=$STRIP
2594
  # Extract the first word of "strip", so it can be a program name with args.
2595
set dummy strip; ac_word=$2
2596
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2597
$as_echo_n "checking for $ac_word... " >&6; }
2598
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2599
  $as_echo_n "(cached) " >&6
2600
else
2601
  if test -n "$ac_ct_STRIP"; then
2602
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2603
else
2604
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605
for as_dir in $PATH
2606
do
2607
  IFS=$as_save_IFS
2608
  test -z "$as_dir" && as_dir=.
2609
  for ac_exec_ext in '' $ac_executable_extensions; do
2610
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611
    ac_cv_prog_ac_ct_STRIP="strip"
2612
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613
    break 2
2614
  fi
2615
done
2616
done
2617
IFS=$as_save_IFS
2618
 
2619
fi
2620
fi
2621
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2622
if test -n "$ac_ct_STRIP"; then
2623
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2624
$as_echo "$ac_ct_STRIP" >&6; }
2625
else
2626
  { $as_echo "$as_me:$LINENO: result: no" >&5
2627
$as_echo "no" >&6; }
2628
fi
2629
 
2630
  if test "x$ac_ct_STRIP" = x; then
2631
    STRIP=":"
2632
  else
2633
    case $cross_compiling:$ac_tool_warned in
2634
yes:)
2635
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2636
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2637
ac_tool_warned=yes ;;
2638
esac
2639
    STRIP=$ac_ct_STRIP
2640
  fi
2641
else
2642
  STRIP="$ac_cv_prog_STRIP"
2643
fi
2644
 
2645
fi
2646
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2647
 
2648
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2649
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2650
if test -z "$MKDIR_P"; then
2651
  if test "${ac_cv_path_mkdir+set}" = set; then
2652
  $as_echo_n "(cached) " >&6
2653
else
2654
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2656
do
2657
  IFS=$as_save_IFS
2658
  test -z "$as_dir" && as_dir=.
2659
  for ac_prog in mkdir gmkdir; do
2660
         for ac_exec_ext in '' $ac_executable_extensions; do
2661
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2662
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2663
             'mkdir (GNU coreutils) '* | \
2664
             'mkdir (coreutils) '* | \
2665
             'mkdir (fileutils) '4.1*)
2666
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2667
               break 3;;
2668
           esac
2669
         done
2670
       done
2671
done
2672
IFS=$as_save_IFS
2673
 
2674
fi
2675
 
2676
  if test "${ac_cv_path_mkdir+set}" = set; then
2677
    MKDIR_P="$ac_cv_path_mkdir -p"
2678
  else
2679
    # As a last resort, use the slow shell script.  Don't cache a
2680
    # value for MKDIR_P within a source directory, because that will
2681
    # break other packages using the cache if that directory is
2682
    # removed, or if the value is a relative name.
2683
    test -d ./--version && rmdir ./--version
2684
    MKDIR_P="$ac_install_sh -d"
2685
  fi
2686
fi
2687
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2688
$as_echo "$MKDIR_P" >&6; }
2689
 
2690
mkdir_p="$MKDIR_P"
2691
case $mkdir_p in
2692
  [\\/$]* | ?:[\\/]*) ;;
2693
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2694
esac
2695
 
2696
for ac_prog in gawk mawk nawk awk
2697
do
2698
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2699
set dummy $ac_prog; ac_word=$2
2700
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2701
$as_echo_n "checking for $ac_word... " >&6; }
2702
if test "${ac_cv_prog_AWK+set}" = set; then
2703
  $as_echo_n "(cached) " >&6
2704
else
2705
  if test -n "$AWK"; then
2706
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2707
else
2708
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709
for as_dir in $PATH
2710
do
2711
  IFS=$as_save_IFS
2712
  test -z "$as_dir" && as_dir=.
2713
  for ac_exec_ext in '' $ac_executable_extensions; do
2714
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715
    ac_cv_prog_AWK="$ac_prog"
2716
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717
    break 2
2718
  fi
2719
done
2720
done
2721
IFS=$as_save_IFS
2722
 
2723
fi
2724
fi
2725
AWK=$ac_cv_prog_AWK
2726
if test -n "$AWK"; then
2727
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2728
$as_echo "$AWK" >&6; }
2729
else
2730
  { $as_echo "$as_me:$LINENO: result: no" >&5
2731
$as_echo "no" >&6; }
2732
fi
2733
 
2734
 
2735
  test -n "$AWK" && break
2736
done
2737
 
2738
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2739
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2740
set x ${MAKE-make}
2741
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2742
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2743
  $as_echo_n "(cached) " >&6
2744
else
2745
  cat >conftest.make <<\_ACEOF
2746
SHELL = /bin/sh
2747
all:
2748
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2749
_ACEOF
2750
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2751
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2752
  *@@@%%%=?*=@@@%%%*)
2753
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2754
  *)
2755
    eval ac_cv_prog_make_${ac_make}_set=no;;
2756
esac
2757
rm -f conftest.make
2758
fi
2759
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2760
  { $as_echo "$as_me:$LINENO: result: yes" >&5
2761
$as_echo "yes" >&6; }
2762
  SET_MAKE=
2763
else
2764
  { $as_echo "$as_me:$LINENO: result: no" >&5
2765
$as_echo "no" >&6; }
2766
  SET_MAKE="MAKE=${MAKE-make}"
2767
fi
2768
 
2769
rm -rf .tst 2>/dev/null
2770
mkdir .tst 2>/dev/null
2771
if test -d .tst; then
2772
  am__leading_dot=.
2773
else
2774
  am__leading_dot=_
2775
fi
2776
rmdir .tst 2>/dev/null
2777
 
2778
DEPDIR="${am__leading_dot}deps"
2779
 
2780
ac_config_commands="$ac_config_commands depfiles"
2781
 
2782
 
2783
am_make=${MAKE-make}
2784
cat > confinc << 'END'
2785
am__doit:
2786
        @echo this is the am__doit target
2787
.PHONY: am__doit
2788
END
2789
# If we don't find an include directive, just comment out the code.
2790
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2791
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2792
am__include="#"
2793
am__quote=
2794
_am_result=none
2795
# First try GNU make style include.
2796
echo "include confinc" > confmf
2797
# Ignore all kinds of additional output from `make'.
2798
case `$am_make -s -f confmf 2> /dev/null` in #(
2799
*the\ am__doit\ target*)
2800
  am__include=include
2801
  am__quote=
2802
  _am_result=GNU
2803
  ;;
2804
esac
2805
# Now try BSD make style include.
2806
if test "$am__include" = "#"; then
2807
   echo '.include "confinc"' > confmf
2808
   case `$am_make -s -f confmf 2> /dev/null` in #(
2809
   *the\ am__doit\ target*)
2810
     am__include=.include
2811
     am__quote="\""
2812
     _am_result=BSD
2813
     ;;
2814
   esac
2815
fi
2816
 
2817
 
2818
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2819
$as_echo "$_am_result" >&6; }
2820
rm -f confinc confmf
2821
 
2822
# Check whether --enable-dependency-tracking was given.
2823
if test "${enable_dependency_tracking+set}" = set; then
2824
  enableval=$enable_dependency_tracking;
2825
fi
2826
 
2827
if test "x$enable_dependency_tracking" != xno; then
2828
  am_depcomp="$ac_aux_dir/depcomp"
2829
  AMDEPBACKSLASH='\'
2830
fi
2831
 if test "x$enable_dependency_tracking" != xno; then
2832
  AMDEP_TRUE=
2833
  AMDEP_FALSE='#'
2834
else
2835
  AMDEP_TRUE='#'
2836
  AMDEP_FALSE=
2837
fi
2838
 
2839
 
2840
 
2841
# Check whether --enable-multilib was given.
2842
if test "${enable_multilib+set}" = set; then
2843
  enableval=$enable_multilib; case "${enableval}" in
2844
  yes) multilib=yes ;;
2845
  no)  multilib=no ;;
2846
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2847
$as_echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2848
   { (exit 1); exit 1; }; } ;;
2849
 esac
2850
else
2851
  multilib=yes
2852
fi
2853
 
2854
# Check whether --enable-target-optspace was given.
2855
if test "${enable_target_optspace+set}" = set; then
2856
  enableval=$enable_target_optspace; case "${enableval}" in
2857
  yes) target_optspace=yes ;;
2858
  no)  target_optspace=no ;;
2859
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2860
$as_echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2861
   { (exit 1); exit 1; }; } ;;
2862
 esac
2863
else
2864
  target_optspace=
2865
fi
2866
 
2867
# Check whether --enable-malloc-debugging was given.
2868
if test "${enable_malloc_debugging+set}" = set; then
2869
  enableval=$enable_malloc_debugging; case "${enableval}" in
2870
  yes) malloc_debugging=yes ;;
2871
  no)  malloc_debugging=no ;;
2872
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2873
$as_echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2874
   { (exit 1); exit 1; }; } ;;
2875
 esac
2876
else
2877
  malloc_debugging=
2878
fi
2879
 
2880
# Check whether --enable-newlib-multithread was given.
2881
if test "${enable_newlib_multithread+set}" = set; then
2882
  enableval=$enable_newlib_multithread; case "${enableval}" in
2883
  yes) newlib_multithread=yes ;;
2884
  no)  newlib_multithread=no ;;
2885
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2886
$as_echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2887
   { (exit 1); exit 1; }; } ;;
2888
 esac
2889
else
2890
  newlib_multithread=yes
2891
fi
2892
 
2893
# Check whether --enable-newlib-iconv was given.
2894
if test "${enable_newlib_iconv+set}" = set; then
2895
  enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2896
   case "${enableval}" in
2897
     yes) newlib_iconv=yes ;;
2898
     no)  newlib_iconv=no ;;
2899
     *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2900
$as_echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2901
   { (exit 1); exit 1; }; } ;;
2902
   esac
2903
 fi
2904
else
2905
  newlib_iconv=${newlib_iconv}
2906
fi
2907
 
2908
# Check whether --enable-newlib-elix-level was given.
2909
if test "${enable_newlib_elix_level+set}" = set; then
2910
  enableval=$enable_newlib_elix_level; case "${enableval}" in
2911
  0)   newlib_elix_level=0 ;;
2912
  1)   newlib_elix_level=1 ;;
2913
  2)   newlib_elix_level=2 ;;
2914
  3)   newlib_elix_level=3 ;;
2915
  4)   newlib_elix_level=4 ;;
2916
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2917
$as_echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2918
   { (exit 1); exit 1; }; } ;;
2919
 esac
2920
else
2921
  newlib_elix_level=0
2922
fi
2923
 
2924
# Check whether --enable-newlib-io-float was given.
2925
if test "${enable_newlib_io_float+set}" = set; then
2926
  enableval=$enable_newlib_io_float; case "${enableval}" in
2927
  yes) newlib_io_float=yes ;;
2928
  no)  newlib_io_float=no ;;
2929
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2930
$as_echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2931
   { (exit 1); exit 1; }; } ;;
2932
 esac
2933
else
2934
  newlib_io_float=yes
2935
fi
2936
 
2937
# Check whether --enable-newlib-supplied-syscalls was given.
2938
if test "${enable_newlib_supplied_syscalls+set}" = set; then
2939
  enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2940
  yes) newlib_may_supply_syscalls=yes ;;
2941
  no)  newlib_may_supply_syscalls=no ;;
2942
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2943
$as_echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2944
   { (exit 1); exit 1; }; } ;;
2945
 esac
2946
else
2947
  newlib_may_supply_syscalls=yes
2948
fi
2949
 
2950
 if test x${newlib_may_supply_syscalls} = xyes; then
2951
  MAY_SUPPLY_SYSCALLS_TRUE=
2952
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2953
else
2954
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2955
  MAY_SUPPLY_SYSCALLS_FALSE=
2956
fi
2957
 
2958
 
2959
 
2960
test -z "${with_target_subdir}" && with_target_subdir=.
2961
 
2962
if test "${srcdir}" = "."; then
2963
  if test "${with_target_subdir}" != "."; then
2964
    newlib_basedir="${srcdir}/${with_multisrctop}../."
2965
  else
2966
    newlib_basedir="${srcdir}/${with_multisrctop}."
2967
  fi
2968
else
2969
  newlib_basedir="${srcdir}/."
2970
fi
2971
 
2972
 
2973
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2974
$as_echo_n "checking host system type... " >&6; }
2975
if test "${ac_cv_host+set}" = set; then
2976
  $as_echo_n "(cached) " >&6
2977
else
2978
  if test "x$host_alias" = x; then
2979
  ac_cv_host=$ac_cv_build
2980
else
2981
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2982
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2983
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2984
   { (exit 1); exit 1; }; }
2985
fi
2986
 
2987
fi
2988
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2989
$as_echo "$ac_cv_host" >&6; }
2990
case $ac_cv_host in
2991
*-*-*) ;;
2992
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2993
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2994
   { (exit 1); exit 1; }; };;
2995
esac
2996
host=$ac_cv_host
2997
ac_save_IFS=$IFS; IFS='-'
2998
set x $ac_cv_host
2999
shift
3000
host_cpu=$1
3001
host_vendor=$2
3002
shift; shift
3003
# Remember, the first character of IFS is used to create $*,
3004
# except with old shells:
3005
host_os=$*
3006
IFS=$ac_save_IFS
3007
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3008
 
3009
 
3010
 
3011
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3012
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3013
  # is not polluted with repeated "-I."
3014
  am__isrc=' -I$(srcdir)'
3015
  # test to see if srcdir already configured
3016
  if test -f $srcdir/config.status; then
3017
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3018
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3019
   { (exit 1); exit 1; }; }
3020
  fi
3021
fi
3022
 
3023
# test whether we have cygpath
3024
if test -z "$CYGPATH_W"; then
3025
  if (cygpath --version) >/dev/null 2>/dev/null; then
3026
    CYGPATH_W='cygpath -w'
3027
  else
3028
    CYGPATH_W=echo
3029
  fi
3030
fi
3031
 
3032
 
3033
# Define the identity of the package.
3034
 PACKAGE='newlib'
3035
 VERSION='1.18.0'
3036
 
3037
 
3038
# Some tools Automake needs.
3039
 
3040
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3041
 
3042
 
3043
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3044
 
3045
 
3046
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3047
 
3048
 
3049
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3050
 
3051
 
3052
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3053
 
3054
# We need awk for the "check" target.  The system "awk" is bad on
3055
# some platforms.
3056
# Always define AMTAR for backward compatibility.
3057
 
3058
AMTAR=${AMTAR-"${am_missing_run}tar"}
3059
 
3060
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3061
 
3062
 
3063
 
3064
 
3065
 
3066
 
3067
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
3068
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
3069
# are probably using a cross compiler, which will not be able to fully
3070
# link an executable.  This should really be fixed in autoconf
3071
# itself.
3072
 
3073
 
3074
 
3075
 
3076
 
3077
 
3078
 
3079
# Extract the first word of "gcc", so it can be a program name with args.
3080
set dummy gcc; ac_word=$2
3081
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3082
$as_echo_n "checking for $ac_word... " >&6; }
3083
if test "${ac_cv_prog_CC+set}" = set; then
3084
  $as_echo_n "(cached) " >&6
3085
else
3086
  if test -n "$CC"; then
3087
  ac_cv_prog_CC="$CC" # Let the user override the test.
3088
else
3089
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090
for as_dir in $PATH
3091
do
3092
  IFS=$as_save_IFS
3093
  test -z "$as_dir" && as_dir=.
3094
  for ac_exec_ext in '' $ac_executable_extensions; do
3095
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096
    ac_cv_prog_CC="gcc"
3097
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098
    break 2
3099
  fi
3100
done
3101
done
3102
IFS=$as_save_IFS
3103
 
3104
fi
3105
fi
3106
CC=$ac_cv_prog_CC
3107
if test -n "$CC"; then
3108
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3109
$as_echo "$CC" >&6; }
3110
else
3111
  { $as_echo "$as_me:$LINENO: result: no" >&5
3112
$as_echo "no" >&6; }
3113
fi
3114
 
3115
 
3116
 
3117
depcc="$CC"   am_compiler_list=
3118
 
3119
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3120
$as_echo_n "checking dependency style of $depcc... " >&6; }
3121
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3122
  $as_echo_n "(cached) " >&6
3123
else
3124
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3125
  # We make a subdir and do the tests there.  Otherwise we can end up
3126
  # making bogus files that we don't know about and never remove.  For
3127
  # instance it was reported that on HP-UX the gcc test will end up
3128
  # making a dummy file named `D' -- because `-MD' means `put the output
3129
  # in D'.
3130
  mkdir conftest.dir
3131
  # Copy depcomp to subdir because otherwise we won't find it if we're
3132
  # using a relative directory.
3133
  cp "$am_depcomp" conftest.dir
3134
  cd conftest.dir
3135
  # We will build objects and dependencies in a subdirectory because
3136
  # it helps to detect inapplicable dependency modes.  For instance
3137
  # both Tru64's cc and ICC support -MD to output dependencies as a
3138
  # side effect of compilation, but ICC will put the dependencies in
3139
  # the current directory while Tru64 will put them in the object
3140
  # directory.
3141
  mkdir sub
3142
 
3143
  am_cv_CC_dependencies_compiler_type=none
3144
  if test "$am_compiler_list" = ""; then
3145
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3146
  fi
3147
  am__universal=false
3148
  case " $depcc " in #(
3149
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3150
     esac
3151
 
3152
  for depmode in $am_compiler_list; do
3153
    # Setup a source with many dependencies, because some compilers
3154
    # like to wrap large dependency lists on column 80 (with \), and
3155
    # we should not choose a depcomp mode which is confused by this.
3156
    #
3157
    # We need to recreate these files for each test, as the compiler may
3158
    # overwrite some of them when testing with obscure command lines.
3159
    # This happens at least with the AIX C compiler.
3160
    : > sub/conftest.c
3161
    for i in 1 2 3 4 5 6; do
3162
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3163
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3164
      # Solaris 8's {/usr,}/bin/sh.
3165
      touch sub/conftst$i.h
3166
    done
3167
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3168
 
3169
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3170
    # mode.  It turns out that the SunPro C++ compiler does not properly
3171
    # handle `-M -o', and we need to detect this.  Also, some Intel
3172
    # versions had trouble with output in subdirs
3173
    am__obj=sub/conftest.${OBJEXT-o}
3174
    am__minus_obj="-o $am__obj"
3175
    case $depmode in
3176
    gcc)
3177
      # This depmode causes a compiler race in universal mode.
3178
      test "$am__universal" = false || continue
3179
      ;;
3180
    nosideeffect)
3181
      # after this tag, mechanisms are not by side-effect, so they'll
3182
      # only be used when explicitly requested
3183
      if test "x$enable_dependency_tracking" = xyes; then
3184
        continue
3185
      else
3186
        break
3187
      fi
3188
      ;;
3189
    msvisualcpp | msvcmsys)
3190
      # This compiler won't grok `-c -o', but also, the minuso test has
3191
      # not run yet.  These depmodes are late enough in the game, and
3192
      # so weak that their functioning should not be impacted.
3193
      am__obj=conftest.${OBJEXT-o}
3194
      am__minus_obj=
3195
      ;;
3196
    none) break ;;
3197
    esac
3198
    if depmode=$depmode \
3199
       source=sub/conftest.c object=$am__obj \
3200
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3201
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3202
         >/dev/null 2>conftest.err &&
3203
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3204
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3205
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3206
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3207
      # icc doesn't choke on unknown options, it will just issue warnings
3208
      # or remarks (even with -Werror).  So we grep stderr for any message
3209
      # that says an option was ignored or not supported.
3210
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3211
      #   icc: Command line warning: ignoring option '-M'; no argument required
3212
      # The diagnosis changed in icc 8.0:
3213
      #   icc: Command line remark: option '-MP' not supported
3214
      if (grep 'ignoring option' conftest.err ||
3215
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3216
        am_cv_CC_dependencies_compiler_type=$depmode
3217
        break
3218
      fi
3219
    fi
3220
  done
3221
 
3222
  cd ..
3223
  rm -rf conftest.dir
3224
else
3225
  am_cv_CC_dependencies_compiler_type=none
3226
fi
3227
 
3228
fi
3229
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3230
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3231
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3232
 
3233
 if
3234
  test "x$enable_dependency_tracking" != xno \
3235
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3236
  am__fastdepCC_TRUE=
3237
  am__fastdepCC_FALSE='#'
3238
else
3239
  am__fastdepCC_TRUE='#'
3240
  am__fastdepCC_FALSE=
3241
fi
3242
 
3243
 
3244
if test -z "$CC"; then
3245
  # Extract the first word of "cc", so it can be a program name with args.
3246
set dummy cc; ac_word=$2
3247
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3248
$as_echo_n "checking for $ac_word... " >&6; }
3249
if test "${ac_cv_prog_CC+set}" = set; then
3250
  $as_echo_n "(cached) " >&6
3251
else
3252
  if test -n "$CC"; then
3253
  ac_cv_prog_CC="$CC" # Let the user override the test.
3254
else
3255
  ac_prog_rejected=no
3256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257
for as_dir in $PATH
3258
do
3259
  IFS=$as_save_IFS
3260
  test -z "$as_dir" && as_dir=.
3261
  for ac_exec_ext in '' $ac_executable_extensions; do
3262
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3263
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3264
       ac_prog_rejected=yes
3265
       continue
3266
     fi
3267
    ac_cv_prog_CC="cc"
3268
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269
    break 2
3270
  fi
3271
done
3272
done
3273
IFS=$as_save_IFS
3274
 
3275
if test $ac_prog_rejected = yes; then
3276
  # We found a bogon in the path, so make sure we never use it.
3277
  set dummy $ac_cv_prog_CC
3278
  shift
3279
  if test $# != 0; then
3280
    # We chose a different compiler from the bogus one.
3281
    # However, it has the same basename, so the bogon will be chosen
3282
    # first if we set CC to just the basename; use the full file name.
3283
    shift
3284
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3285
  fi
3286
fi
3287
fi
3288
fi
3289
CC=$ac_cv_prog_CC
3290
if test -n "$CC"; then
3291
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3292
$as_echo "$CC" >&6; }
3293
else
3294
  { $as_echo "$as_me:$LINENO: result: no" >&5
3295
$as_echo "no" >&6; }
3296
fi
3297
 
3298
 
3299
  test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3300
$as_echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3301
   { (exit 1); exit 1; }; }
3302
fi
3303
 
3304
{ $as_echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
3305
$as_echo_n "checking whether we are using GNU C... " >&6; }
3306
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3307
  $as_echo_n "(cached) " >&6
3308
else
3309
  cat > conftest.c <
3310
#ifdef __GNUC__
3311
  yes;
3312
#endif
3313
EOF
3314
if { ac_try='${CC-cc} -E conftest.c'
3315
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316
  (eval $ac_try) 2>&5
3317
  ac_status=$?
3318
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3320
  ac_cv_c_compiler_gnu=yes
3321
else
3322
  ac_cv_c_compiler_gnu=no
3323
fi
3324
fi
3325
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3326
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3327
 
3328
if test $ac_cv_c_compiler_gnu = yes; then
3329
  GCC=yes
3330
  ac_test_CFLAGS="${CFLAGS+set}"
3331
  ac_save_CFLAGS="$CFLAGS"
3332
  ac_test_CFLAGS=${CFLAGS+set}
3333
ac_save_CFLAGS=$CFLAGS
3334
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3335
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3336
if test "${ac_cv_prog_cc_g+set}" = set; then
3337
  $as_echo_n "(cached) " >&6
3338
else
3339
  ac_save_c_werror_flag=$ac_c_werror_flag
3340
   ac_c_werror_flag=yes
3341
   ac_cv_prog_cc_g=no
3342
   CFLAGS="-g"
3343
   cat >conftest.$ac_ext <<_ACEOF
3344
/* confdefs.h.  */
3345
_ACEOF
3346
cat confdefs.h >>conftest.$ac_ext
3347
cat >>conftest.$ac_ext <<_ACEOF
3348
/* end confdefs.h.  */
3349
 
3350
int
3351
main ()
3352
{
3353
 
3354
  ;
3355
  return 0;
3356
}
3357
_ACEOF
3358
rm -f conftest.$ac_objext
3359
if { (ac_try="$ac_compile"
3360
case "(($ac_try" in
3361
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362
  *) ac_try_echo=$ac_try;;
3363
esac
3364
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3365
$as_echo "$ac_try_echo") >&5
3366
  (eval "$ac_compile") 2>conftest.er1
3367
  ac_status=$?
3368
  grep -v '^ *+' conftest.er1 >conftest.err
3369
  rm -f conftest.er1
3370
  cat conftest.err >&5
3371
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372
  (exit $ac_status); } && {
3373
         test -z "$ac_c_werror_flag" ||
3374
         test ! -s conftest.err
3375
       } && test -s conftest.$ac_objext; then
3376
  ac_cv_prog_cc_g=yes
3377
else
3378
  $as_echo "$as_me: failed program was:" >&5
3379
sed 's/^/| /' conftest.$ac_ext >&5
3380
 
3381
        CFLAGS=""
3382
      cat >conftest.$ac_ext <<_ACEOF
3383
/* confdefs.h.  */
3384
_ACEOF
3385
cat confdefs.h >>conftest.$ac_ext
3386
cat >>conftest.$ac_ext <<_ACEOF
3387
/* end confdefs.h.  */
3388
 
3389
int
3390
main ()
3391
{
3392
 
3393
  ;
3394
  return 0;
3395
}
3396
_ACEOF
3397
rm -f conftest.$ac_objext
3398
if { (ac_try="$ac_compile"
3399
case "(($ac_try" in
3400
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401
  *) ac_try_echo=$ac_try;;
3402
esac
3403
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3404
$as_echo "$ac_try_echo") >&5
3405
  (eval "$ac_compile") 2>conftest.er1
3406
  ac_status=$?
3407
  grep -v '^ *+' conftest.er1 >conftest.err
3408
  rm -f conftest.er1
3409
  cat conftest.err >&5
3410
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411
  (exit $ac_status); } && {
3412
         test -z "$ac_c_werror_flag" ||
3413
         test ! -s conftest.err
3414
       } && test -s conftest.$ac_objext; then
3415
  :
3416
else
3417
  $as_echo "$as_me: failed program was:" >&5
3418
sed 's/^/| /' conftest.$ac_ext >&5
3419
 
3420
        ac_c_werror_flag=$ac_save_c_werror_flag
3421
         CFLAGS="-g"
3422
         cat >conftest.$ac_ext <<_ACEOF
3423
/* confdefs.h.  */
3424
_ACEOF
3425
cat confdefs.h >>conftest.$ac_ext
3426
cat >>conftest.$ac_ext <<_ACEOF
3427
/* end confdefs.h.  */
3428
 
3429
int
3430
main ()
3431
{
3432
 
3433
  ;
3434
  return 0;
3435
}
3436
_ACEOF
3437
rm -f conftest.$ac_objext
3438
if { (ac_try="$ac_compile"
3439
case "(($ac_try" in
3440
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441
  *) ac_try_echo=$ac_try;;
3442
esac
3443
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3444
$as_echo "$ac_try_echo") >&5
3445
  (eval "$ac_compile") 2>conftest.er1
3446
  ac_status=$?
3447
  grep -v '^ *+' conftest.er1 >conftest.err
3448
  rm -f conftest.er1
3449
  cat conftest.err >&5
3450
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451
  (exit $ac_status); } && {
3452
         test -z "$ac_c_werror_flag" ||
3453
         test ! -s conftest.err
3454
       } && test -s conftest.$ac_objext; then
3455
  ac_cv_prog_cc_g=yes
3456
else
3457
  $as_echo "$as_me: failed program was:" >&5
3458
sed 's/^/| /' conftest.$ac_ext >&5
3459
 
3460
 
3461
fi
3462
 
3463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464
fi
3465
 
3466
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467
fi
3468
 
3469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470
   ac_c_werror_flag=$ac_save_c_werror_flag
3471
fi
3472
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3473
$as_echo "$ac_cv_prog_cc_g" >&6; }
3474
if test "$ac_test_CFLAGS" = set; then
3475
  CFLAGS=$ac_save_CFLAGS
3476
elif test $ac_cv_prog_cc_g = yes; then
3477
  if test "$GCC" = yes; then
3478
    CFLAGS="-g -O2"
3479
  else
3480
    CFLAGS="-g"
3481
  fi
3482
else
3483
  if test "$GCC" = yes; then
3484
    CFLAGS="-O2"
3485
  else
3486
    CFLAGS=
3487
  fi
3488
fi
3489
  if test "$ac_test_CFLAGS" = set; then
3490
    CFLAGS="$ac_save_CFLAGS"
3491
  elif test $ac_cv_prog_cc_g = yes; then
3492
    CFLAGS="-g -O2"
3493
  else
3494
    CFLAGS="-O2"
3495
  fi
3496
else
3497
  GCC=
3498
  test "${CFLAGS+set}" = set || CFLAGS="-g"
3499
fi
3500
 
3501
 
3502
if test -n "$ac_tool_prefix"; then
3503
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3504
set dummy ${ac_tool_prefix}as; ac_word=$2
3505
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3506
$as_echo_n "checking for $ac_word... " >&6; }
3507
if test "${ac_cv_prog_AS+set}" = set; then
3508
  $as_echo_n "(cached) " >&6
3509
else
3510
  if test -n "$AS"; then
3511
  ac_cv_prog_AS="$AS" # Let the user override the test.
3512
else
3513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514
for as_dir in $PATH
3515
do
3516
  IFS=$as_save_IFS
3517
  test -z "$as_dir" && as_dir=.
3518
  for ac_exec_ext in '' $ac_executable_extensions; do
3519
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520
    ac_cv_prog_AS="${ac_tool_prefix}as"
3521
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3522
    break 2
3523
  fi
3524
done
3525
done
3526
IFS=$as_save_IFS
3527
 
3528
fi
3529
fi
3530
AS=$ac_cv_prog_AS
3531
if test -n "$AS"; then
3532
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
3533
$as_echo "$AS" >&6; }
3534
else
3535
  { $as_echo "$as_me:$LINENO: result: no" >&5
3536
$as_echo "no" >&6; }
3537
fi
3538
 
3539
 
3540
fi
3541
if test -z "$ac_cv_prog_AS"; then
3542
  ac_ct_AS=$AS
3543
  # Extract the first word of "as", so it can be a program name with args.
3544
set dummy as; ac_word=$2
3545
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3546
$as_echo_n "checking for $ac_word... " >&6; }
3547
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3548
  $as_echo_n "(cached) " >&6
3549
else
3550
  if test -n "$ac_ct_AS"; then
3551
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3552
else
3553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554
for as_dir in $PATH
3555
do
3556
  IFS=$as_save_IFS
3557
  test -z "$as_dir" && as_dir=.
3558
  for ac_exec_ext in '' $ac_executable_extensions; do
3559
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560
    ac_cv_prog_ac_ct_AS="as"
3561
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562
    break 2
3563
  fi
3564
done
3565
done
3566
IFS=$as_save_IFS
3567
 
3568
fi
3569
fi
3570
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3571
if test -n "$ac_ct_AS"; then
3572
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3573
$as_echo "$ac_ct_AS" >&6; }
3574
else
3575
  { $as_echo "$as_me:$LINENO: result: no" >&5
3576
$as_echo "no" >&6; }
3577
fi
3578
 
3579
  if test "x$ac_ct_AS" = x; then
3580
    AS=""
3581
  else
3582
    case $cross_compiling:$ac_tool_warned in
3583
yes:)
3584
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3585
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586
ac_tool_warned=yes ;;
3587
esac
3588
    AS=$ac_ct_AS
3589
  fi
3590
else
3591
  AS="$ac_cv_prog_AS"
3592
fi
3593
 
3594
if test -n "$ac_tool_prefix"; then
3595
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3596
set dummy ${ac_tool_prefix}ar; ac_word=$2
3597
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3598
$as_echo_n "checking for $ac_word... " >&6; }
3599
if test "${ac_cv_prog_AR+set}" = set; then
3600
  $as_echo_n "(cached) " >&6
3601
else
3602
  if test -n "$AR"; then
3603
  ac_cv_prog_AR="$AR" # Let the user override the test.
3604
else
3605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606
for as_dir in $PATH
3607
do
3608
  IFS=$as_save_IFS
3609
  test -z "$as_dir" && as_dir=.
3610
  for ac_exec_ext in '' $ac_executable_extensions; do
3611
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3612
    ac_cv_prog_AR="${ac_tool_prefix}ar"
3613
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3614
    break 2
3615
  fi
3616
done
3617
done
3618
IFS=$as_save_IFS
3619
 
3620
fi
3621
fi
3622
AR=$ac_cv_prog_AR
3623
if test -n "$AR"; then
3624
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
3625
$as_echo "$AR" >&6; }
3626
else
3627
  { $as_echo "$as_me:$LINENO: result: no" >&5
3628
$as_echo "no" >&6; }
3629
fi
3630
 
3631
 
3632
fi
3633
if test -z "$ac_cv_prog_AR"; then
3634
  ac_ct_AR=$AR
3635
  # Extract the first word of "ar", so it can be a program name with args.
3636
set dummy ar; ac_word=$2
3637
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3638
$as_echo_n "checking for $ac_word... " >&6; }
3639
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3640
  $as_echo_n "(cached) " >&6
3641
else
3642
  if test -n "$ac_ct_AR"; then
3643
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3644
else
3645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646
for as_dir in $PATH
3647
do
3648
  IFS=$as_save_IFS
3649
  test -z "$as_dir" && as_dir=.
3650
  for ac_exec_ext in '' $ac_executable_extensions; do
3651
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652
    ac_cv_prog_ac_ct_AR="ar"
3653
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654
    break 2
3655
  fi
3656
done
3657
done
3658
IFS=$as_save_IFS
3659
 
3660
fi
3661
fi
3662
ac_ct_AR=$ac_cv_prog_ac_ct_AR
3663
if test -n "$ac_ct_AR"; then
3664
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3665
$as_echo "$ac_ct_AR" >&6; }
3666
else
3667
  { $as_echo "$as_me:$LINENO: result: no" >&5
3668
$as_echo "no" >&6; }
3669
fi
3670
 
3671
  if test "x$ac_ct_AR" = x; then
3672
    AR=""
3673
  else
3674
    case $cross_compiling:$ac_tool_warned in
3675
yes:)
3676
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3677
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3678
ac_tool_warned=yes ;;
3679
esac
3680
    AR=$ac_ct_AR
3681
  fi
3682
else
3683
  AR="$ac_cv_prog_AR"
3684
fi
3685
 
3686
if test -n "$ac_tool_prefix"; then
3687
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3688
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3689
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3690
$as_echo_n "checking for $ac_word... " >&6; }
3691
if test "${ac_cv_prog_RANLIB+set}" = set; then
3692
  $as_echo_n "(cached) " >&6
3693
else
3694
  if test -n "$RANLIB"; then
3695
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3696
else
3697
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698
for as_dir in $PATH
3699
do
3700
  IFS=$as_save_IFS
3701
  test -z "$as_dir" && as_dir=.
3702
  for ac_exec_ext in '' $ac_executable_extensions; do
3703
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3705
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706
    break 2
3707
  fi
3708
done
3709
done
3710
IFS=$as_save_IFS
3711
 
3712
fi
3713
fi
3714
RANLIB=$ac_cv_prog_RANLIB
3715
if test -n "$RANLIB"; then
3716
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3717
$as_echo "$RANLIB" >&6; }
3718
else
3719
  { $as_echo "$as_me:$LINENO: result: no" >&5
3720
$as_echo "no" >&6; }
3721
fi
3722
 
3723
 
3724
fi
3725
if test -z "$ac_cv_prog_RANLIB"; then
3726
  ac_ct_RANLIB=$RANLIB
3727
  # Extract the first word of "ranlib", so it can be a program name with args.
3728
set dummy ranlib; ac_word=$2
3729
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3730
$as_echo_n "checking for $ac_word... " >&6; }
3731
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3732
  $as_echo_n "(cached) " >&6
3733
else
3734
  if test -n "$ac_ct_RANLIB"; then
3735
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
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
  for ac_exec_ext in '' $ac_executable_extensions; do
3743
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3744
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3745
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746
    break 2
3747
  fi
3748
done
3749
done
3750
IFS=$as_save_IFS
3751
 
3752
fi
3753
fi
3754
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3755
if test -n "$ac_ct_RANLIB"; then
3756
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3757
$as_echo "$ac_ct_RANLIB" >&6; }
3758
else
3759
  { $as_echo "$as_me:$LINENO: result: no" >&5
3760
$as_echo "no" >&6; }
3761
fi
3762
 
3763
  if test "x$ac_ct_RANLIB" = x; then
3764
    RANLIB=":"
3765
  else
3766
    case $cross_compiling:$ac_tool_warned in
3767
yes:)
3768
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3769
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3770
ac_tool_warned=yes ;;
3771
esac
3772
    RANLIB=$ac_ct_RANLIB
3773
  fi
3774
else
3775
  RANLIB="$ac_cv_prog_RANLIB"
3776
fi
3777
 
3778
if test -n "$ac_tool_prefix"; then
3779
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3780
set dummy ${ac_tool_prefix}readelf; ac_word=$2
3781
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3782
$as_echo_n "checking for $ac_word... " >&6; }
3783
if test "${ac_cv_prog_READELF+set}" = set; then
3784
  $as_echo_n "(cached) " >&6
3785
else
3786
  if test -n "$READELF"; then
3787
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
3788
else
3789
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790
for as_dir in $PATH
3791
do
3792
  IFS=$as_save_IFS
3793
  test -z "$as_dir" && as_dir=.
3794
  for ac_exec_ext in '' $ac_executable_extensions; do
3795
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3796
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3797
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3798
    break 2
3799
  fi
3800
done
3801
done
3802
IFS=$as_save_IFS
3803
 
3804
fi
3805
fi
3806
READELF=$ac_cv_prog_READELF
3807
if test -n "$READELF"; then
3808
  { $as_echo "$as_me:$LINENO: result: $READELF" >&5
3809
$as_echo "$READELF" >&6; }
3810
else
3811
  { $as_echo "$as_me:$LINENO: result: no" >&5
3812
$as_echo "no" >&6; }
3813
fi
3814
 
3815
 
3816
fi
3817
if test -z "$ac_cv_prog_READELF"; then
3818
  ac_ct_READELF=$READELF
3819
  # Extract the first word of "readelf", so it can be a program name with args.
3820
set dummy readelf; ac_word=$2
3821
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3822
$as_echo_n "checking for $ac_word... " >&6; }
3823
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
3824
  $as_echo_n "(cached) " >&6
3825
else
3826
  if test -n "$ac_ct_READELF"; then
3827
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3828
else
3829
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830
for as_dir in $PATH
3831
do
3832
  IFS=$as_save_IFS
3833
  test -z "$as_dir" && as_dir=.
3834
  for ac_exec_ext in '' $ac_executable_extensions; do
3835
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3836
    ac_cv_prog_ac_ct_READELF="readelf"
3837
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3838
    break 2
3839
  fi
3840
done
3841
done
3842
IFS=$as_save_IFS
3843
 
3844
fi
3845
fi
3846
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3847
if test -n "$ac_ct_READELF"; then
3848
  { $as_echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
3849
$as_echo "$ac_ct_READELF" >&6; }
3850
else
3851
  { $as_echo "$as_me:$LINENO: result: no" >&5
3852
$as_echo "no" >&6; }
3853
fi
3854
 
3855
  if test "x$ac_ct_READELF" = x; then
3856
    READELF=":"
3857
  else
3858
    case $cross_compiling:$ac_tool_warned in
3859
yes:)
3860
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3861
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3862
ac_tool_warned=yes ;;
3863
esac
3864
    READELF=$ac_ct_READELF
3865
  fi
3866
else
3867
  READELF="$ac_cv_prog_READELF"
3868
fi
3869
 
3870
 
3871
# Find a good install program.  We prefer a C program (faster),
3872
# so one script is as good as another.  But avoid the broken or
3873
# incompatible versions:
3874
# SysV /etc/install, /usr/sbin/install
3875
# SunOS /usr/etc/install
3876
# IRIX /sbin/install
3877
# AIX /bin/install
3878
# AmigaOS /C/install, which installs bootblocks on floppy discs
3879
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3880
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3881
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3882
# OS/2's system install, which has a completely different semantic
3883
# ./install, which can be erroneously created by make from ./install.sh.
3884
# Reject install programs that cannot install multiple files.
3885
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3886
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3887
if test -z "$INSTALL"; then
3888
if test "${ac_cv_path_install+set}" = set; then
3889
  $as_echo_n "(cached) " >&6
3890
else
3891
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892
for as_dir in $PATH
3893
do
3894
  IFS=$as_save_IFS
3895
  test -z "$as_dir" && as_dir=.
3896
  # Account for people who put trailing slashes in PATH elements.
3897
case $as_dir/ in
3898
  ./ | .// | /cC/* | \
3899
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3900
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3901
  /usr/ucb/* ) ;;
3902
  *)
3903
    # OSF1 and SCO ODT 3.0 have their own names for install.
3904
    # Don't use installbsd from OSF since it installs stuff as root
3905
    # by default.
3906
    for ac_prog in ginstall scoinst install; do
3907
      for ac_exec_ext in '' $ac_executable_extensions; do
3908
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3909
          if test $ac_prog = install &&
3910
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3911
            # AIX install.  It has an incompatible calling convention.
3912
            :
3913
          elif test $ac_prog = install &&
3914
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3915
            # program-specific install script used by HP pwplus--don't use.
3916
            :
3917
          else
3918
            rm -rf conftest.one conftest.two conftest.dir
3919
            echo one > conftest.one
3920
            echo two > conftest.two
3921
            mkdir conftest.dir
3922
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3923
              test -s conftest.one && test -s conftest.two &&
3924
              test -s conftest.dir/conftest.one &&
3925
              test -s conftest.dir/conftest.two
3926
            then
3927
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3928
              break 3
3929
            fi
3930
          fi
3931
        fi
3932
      done
3933
    done
3934
    ;;
3935
esac
3936
 
3937
done
3938
IFS=$as_save_IFS
3939
 
3940
rm -rf conftest.one conftest.two conftest.dir
3941
 
3942
fi
3943
  if test "${ac_cv_path_install+set}" = set; then
3944
    INSTALL=$ac_cv_path_install
3945
  else
3946
    # As a last resort, use the slow shell script.  Don't cache a
3947
    # value for INSTALL within a source directory, because that will
3948
    # break other packages using the cache if that directory is
3949
    # removed, or if the value is a relative name.
3950
    INSTALL=$ac_install_sh
3951
  fi
3952
fi
3953
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3954
$as_echo "$INSTALL" >&6; }
3955
 
3956
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3957
# It thinks the first close brace ends the variable substitution.
3958
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3959
 
3960
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3961
 
3962
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3963
 
3964
 
3965
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
3966
ac_given_INSTALL=$INSTALL
3967
 
3968
 
3969
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3970
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3971
    # Check whether --enable-maintainer-mode was given.
3972
if test "${enable_maintainer_mode+set}" = set; then
3973
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3974
else
3975
  USE_MAINTAINER_MODE=no
3976
fi
3977
 
3978
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3979
$as_echo "$USE_MAINTAINER_MODE" >&6; }
3980
   if test $USE_MAINTAINER_MODE = yes; then
3981
  MAINTAINER_MODE_TRUE=
3982
  MAINTAINER_MODE_FALSE='#'
3983
else
3984
  MAINTAINER_MODE_TRUE='#'
3985
  MAINTAINER_MODE_FALSE=
3986
fi
3987
 
3988
  MAINT=$MAINTAINER_MODE_TRUE
3989
 
3990
 
3991
# By default we simply use the C compiler to build assembly code.
3992
 
3993
test "${CCAS+set}" = set || CCAS=$CC
3994
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3995
 
3996
 
3997
 
3998
 
3999
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
4000
# at least currently, we never actually build a program, so we never
4001
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
4002
# fails, because we are probably configuring with a cross compiler
4003
# which can't create executables.  So we include AC_EXEEXT to keep
4004
# automake happy, but we don't execute it, since we don't care about
4005
# the result.
4006
if false; then
4007
 
4008
  dummy_var=1
4009
fi
4010
 
4011
. ${newlib_basedir}/configure.host
4012
 
4013
newlib_cflags="${newlib_cflags} -fno-builtin"
4014
 
4015
NEWLIB_CFLAGS=${newlib_cflags}
4016
 
4017
 
4018
LDFLAGS=${ldflags}
4019
 
4020
 
4021
 if test x${newlib_elix_level} = x0; then
4022
  ELIX_LEVEL_0_TRUE=
4023
  ELIX_LEVEL_0_FALSE='#'
4024
else
4025
  ELIX_LEVEL_0_TRUE='#'
4026
  ELIX_LEVEL_0_FALSE=
4027
fi
4028
 
4029
 if test x${newlib_elix_level} = x1; then
4030
  ELIX_LEVEL_1_TRUE=
4031
  ELIX_LEVEL_1_FALSE='#'
4032
else
4033
  ELIX_LEVEL_1_TRUE='#'
4034
  ELIX_LEVEL_1_FALSE=
4035
fi
4036
 
4037
 if test x${newlib_elix_level} = x2; then
4038
  ELIX_LEVEL_2_TRUE=
4039
  ELIX_LEVEL_2_FALSE='#'
4040
else
4041
  ELIX_LEVEL_2_TRUE='#'
4042
  ELIX_LEVEL_2_FALSE=
4043
fi
4044
 
4045
 if test x${newlib_elix_level} = x3; then
4046
  ELIX_LEVEL_3_TRUE=
4047
  ELIX_LEVEL_3_FALSE='#'
4048
else
4049
  ELIX_LEVEL_3_TRUE='#'
4050
  ELIX_LEVEL_3_FALSE=
4051
fi
4052
 
4053
 if test x${newlib_elix_level} = x4; then
4054
  ELIX_LEVEL_4_TRUE=
4055
  ELIX_LEVEL_4_FALSE='#'
4056
else
4057
  ELIX_LEVEL_4_TRUE='#'
4058
  ELIX_LEVEL_4_FALSE=
4059
fi
4060
 
4061
 
4062
 if test x${use_libtool} = xyes; then
4063
  USE_LIBTOOL_TRUE=
4064
  USE_LIBTOOL_FALSE='#'
4065
else
4066
  USE_LIBTOOL_TRUE='#'
4067
  USE_LIBTOOL_FALSE=
4068
fi
4069
 
4070
 
4071
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
4072
# use oext, which is set in configure.host based on the target platform.
4073
OBJEXT=${oext}
4074
 
4075
 
4076
 
4077
 
4078
 
4079
 
4080
 
4081
 
4082
 
4083
 
4084
 
4085
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4086
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4087
if test "${ac_cv_path_SED+set}" = set; then
4088
  $as_echo_n "(cached) " >&6
4089
else
4090
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4091
     for ac_i in 1 2 3 4 5 6 7; do
4092
       ac_script="$ac_script$as_nl$ac_script"
4093
     done
4094
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4095
     $as_unset ac_script || ac_script=
4096
     if test -z "$SED"; then
4097
  ac_path_SED_found=false
4098
  # Loop through the user's path and test for each of PROGNAME-LIST
4099
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100
for as_dir in $PATH
4101
do
4102
  IFS=$as_save_IFS
4103
  test -z "$as_dir" && as_dir=.
4104
  for ac_prog in sed gsed; do
4105
    for ac_exec_ext in '' $ac_executable_extensions; do
4106
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4107
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4108
# Check for GNU ac_path_SED and select it if it is found.
4109
  # Check for GNU $ac_path_SED
4110
case `"$ac_path_SED" --version 2>&1` in
4111
*GNU*)
4112
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4113
*)
4114
  ac_count=0
4115
  $as_echo_n 0123456789 >"conftest.in"
4116
  while :
4117
  do
4118
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4119
    mv "conftest.tmp" "conftest.in"
4120
    cp "conftest.in" "conftest.nl"
4121
    $as_echo '' >> "conftest.nl"
4122
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124
    ac_count=`expr $ac_count + 1`
4125
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4126
      # Best one so far, save it but keep looking for a better one
4127
      ac_cv_path_SED="$ac_path_SED"
4128
      ac_path_SED_max=$ac_count
4129
    fi
4130
    # 10*(2^10) chars as input seems more than enough
4131
    test $ac_count -gt 10 && break
4132
  done
4133
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134
esac
4135
 
4136
      $ac_path_SED_found && break 3
4137
    done
4138
  done
4139
done
4140
IFS=$as_save_IFS
4141
  if test -z "$ac_cv_path_SED"; then
4142
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4143
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4144
   { (exit 1); exit 1; }; }
4145
  fi
4146
else
4147
  ac_cv_path_SED=$SED
4148
fi
4149
 
4150
fi
4151
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4152
$as_echo "$ac_cv_path_SED" >&6; }
4153
 SED="$ac_cv_path_SED"
4154
  rm -f conftest.sed
4155
 
4156
test -z "$SED" && SED=sed
4157
Xsed="$SED -e 1s/^X//"
4158
 
4159
 
4160
 
4161
 
4162
 
4163
 
4164
 
4165
 
4166
 
4167
 
4168
 
4169
for ac_prog in gawk mawk nawk awk
4170
do
4171
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4172
set dummy $ac_prog; ac_word=$2
4173
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4174
$as_echo_n "checking for $ac_word... " >&6; }
4175
if test "${ac_cv_prog_AWK+set}" = set; then
4176
  $as_echo_n "(cached) " >&6
4177
else
4178
  if test -n "$AWK"; then
4179
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4180
else
4181
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182
for as_dir in $PATH
4183
do
4184
  IFS=$as_save_IFS
4185
  test -z "$as_dir" && as_dir=.
4186
  for ac_exec_ext in '' $ac_executable_extensions; do
4187
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4188
    ac_cv_prog_AWK="$ac_prog"
4189
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190
    break 2
4191
  fi
4192
done
4193
done
4194
IFS=$as_save_IFS
4195
 
4196
fi
4197
fi
4198
AWK=$ac_cv_prog_AWK
4199
if test -n "$AWK"; then
4200
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4201
$as_echo "$AWK" >&6; }
4202
else
4203
  { $as_echo "$as_me:$LINENO: result: no" >&5
4204
$as_echo "no" >&6; }
4205
fi
4206
 
4207
 
4208
  test -n "$AWK" && break
4209
done
4210
 
4211
if test "${use_libtool}" = "yes"; then
4212
enable_win32_dll=yes
4213
 
4214
case $host in
4215
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4216
  if test -n "$ac_tool_prefix"; then
4217
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4218
set dummy ${ac_tool_prefix}as; ac_word=$2
4219
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4220
$as_echo_n "checking for $ac_word... " >&6; }
4221
if test "${ac_cv_prog_AS+set}" = set; then
4222
  $as_echo_n "(cached) " >&6
4223
else
4224
  if test -n "$AS"; then
4225
  ac_cv_prog_AS="$AS" # Let the user override the test.
4226
else
4227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228
for as_dir in $PATH
4229
do
4230
  IFS=$as_save_IFS
4231
  test -z "$as_dir" && as_dir=.
4232
  for ac_exec_ext in '' $ac_executable_extensions; do
4233
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4234
    ac_cv_prog_AS="${ac_tool_prefix}as"
4235
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4236
    break 2
4237
  fi
4238
done
4239
done
4240
IFS=$as_save_IFS
4241
 
4242
fi
4243
fi
4244
AS=$ac_cv_prog_AS
4245
if test -n "$AS"; then
4246
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
4247
$as_echo "$AS" >&6; }
4248
else
4249
  { $as_echo "$as_me:$LINENO: result: no" >&5
4250
$as_echo "no" >&6; }
4251
fi
4252
 
4253
 
4254
fi
4255
if test -z "$ac_cv_prog_AS"; then
4256
  ac_ct_AS=$AS
4257
  # Extract the first word of "as", so it can be a program name with args.
4258
set dummy as; ac_word=$2
4259
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4260
$as_echo_n "checking for $ac_word... " >&6; }
4261
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4262
  $as_echo_n "(cached) " >&6
4263
else
4264
  if test -n "$ac_ct_AS"; then
4265
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4266
else
4267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268
for as_dir in $PATH
4269
do
4270
  IFS=$as_save_IFS
4271
  test -z "$as_dir" && as_dir=.
4272
  for ac_exec_ext in '' $ac_executable_extensions; do
4273
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4274
    ac_cv_prog_ac_ct_AS="as"
4275
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276
    break 2
4277
  fi
4278
done
4279
done
4280
IFS=$as_save_IFS
4281
 
4282
fi
4283
fi
4284
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4285
if test -n "$ac_ct_AS"; then
4286
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4287
$as_echo "$ac_ct_AS" >&6; }
4288
else
4289
  { $as_echo "$as_me:$LINENO: result: no" >&5
4290
$as_echo "no" >&6; }
4291
fi
4292
 
4293
  if test "x$ac_ct_AS" = x; then
4294
    AS="false"
4295
  else
4296
    case $cross_compiling:$ac_tool_warned in
4297
yes:)
4298
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4299
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4300
ac_tool_warned=yes ;;
4301
esac
4302
    AS=$ac_ct_AS
4303
  fi
4304
else
4305
  AS="$ac_cv_prog_AS"
4306
fi
4307
 
4308
  if test -n "$ac_tool_prefix"; then
4309
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4310
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4311
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4312
$as_echo_n "checking for $ac_word... " >&6; }
4313
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4314
  $as_echo_n "(cached) " >&6
4315
else
4316
  if test -n "$DLLTOOL"; then
4317
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4318
else
4319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320
for as_dir in $PATH
4321
do
4322
  IFS=$as_save_IFS
4323
  test -z "$as_dir" && as_dir=.
4324
  for ac_exec_ext in '' $ac_executable_extensions; do
4325
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4327
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328
    break 2
4329
  fi
4330
done
4331
done
4332
IFS=$as_save_IFS
4333
 
4334
fi
4335
fi
4336
DLLTOOL=$ac_cv_prog_DLLTOOL
4337
if test -n "$DLLTOOL"; then
4338
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4339
$as_echo "$DLLTOOL" >&6; }
4340
else
4341
  { $as_echo "$as_me:$LINENO: result: no" >&5
4342
$as_echo "no" >&6; }
4343
fi
4344
 
4345
 
4346
fi
4347
if test -z "$ac_cv_prog_DLLTOOL"; then
4348
  ac_ct_DLLTOOL=$DLLTOOL
4349
  # Extract the first word of "dlltool", so it can be a program name with args.
4350
set dummy dlltool; ac_word=$2
4351
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4352
$as_echo_n "checking for $ac_word... " >&6; }
4353
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4354
  $as_echo_n "(cached) " >&6
4355
else
4356
  if test -n "$ac_ct_DLLTOOL"; then
4357
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4358
else
4359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360
for as_dir in $PATH
4361
do
4362
  IFS=$as_save_IFS
4363
  test -z "$as_dir" && as_dir=.
4364
  for ac_exec_ext in '' $ac_executable_extensions; do
4365
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4367
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368
    break 2
4369
  fi
4370
done
4371
done
4372
IFS=$as_save_IFS
4373
 
4374
fi
4375
fi
4376
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4377
if test -n "$ac_ct_DLLTOOL"; then
4378
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4379
$as_echo "$ac_ct_DLLTOOL" >&6; }
4380
else
4381
  { $as_echo "$as_me:$LINENO: result: no" >&5
4382
$as_echo "no" >&6; }
4383
fi
4384
 
4385
  if test "x$ac_ct_DLLTOOL" = x; then
4386
    DLLTOOL="false"
4387
  else
4388
    case $cross_compiling:$ac_tool_warned in
4389
yes:)
4390
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4391
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4392
ac_tool_warned=yes ;;
4393
esac
4394
    DLLTOOL=$ac_ct_DLLTOOL
4395
  fi
4396
else
4397
  DLLTOOL="$ac_cv_prog_DLLTOOL"
4398
fi
4399
 
4400
  if test -n "$ac_tool_prefix"; then
4401
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4402
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4403
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4404
$as_echo_n "checking for $ac_word... " >&6; }
4405
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4406
  $as_echo_n "(cached) " >&6
4407
else
4408
  if test -n "$OBJDUMP"; then
4409
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4410
else
4411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412
for as_dir in $PATH
4413
do
4414
  IFS=$as_save_IFS
4415
  test -z "$as_dir" && as_dir=.
4416
  for ac_exec_ext in '' $ac_executable_extensions; do
4417
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4419
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420
    break 2
4421
  fi
4422
done
4423
done
4424
IFS=$as_save_IFS
4425
 
4426
fi
4427
fi
4428
OBJDUMP=$ac_cv_prog_OBJDUMP
4429
if test -n "$OBJDUMP"; then
4430
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4431
$as_echo "$OBJDUMP" >&6; }
4432
else
4433
  { $as_echo "$as_me:$LINENO: result: no" >&5
4434
$as_echo "no" >&6; }
4435
fi
4436
 
4437
 
4438
fi
4439
if test -z "$ac_cv_prog_OBJDUMP"; then
4440
  ac_ct_OBJDUMP=$OBJDUMP
4441
  # Extract the first word of "objdump", so it can be a program name with args.
4442
set dummy objdump; ac_word=$2
4443
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4444
$as_echo_n "checking for $ac_word... " >&6; }
4445
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4446
  $as_echo_n "(cached) " >&6
4447
else
4448
  if test -n "$ac_ct_OBJDUMP"; then
4449
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4450
else
4451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452
for as_dir in $PATH
4453
do
4454
  IFS=$as_save_IFS
4455
  test -z "$as_dir" && as_dir=.
4456
  for ac_exec_ext in '' $ac_executable_extensions; do
4457
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4459
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460
    break 2
4461
  fi
4462
done
4463
done
4464
IFS=$as_save_IFS
4465
 
4466
fi
4467
fi
4468
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4469
if test -n "$ac_ct_OBJDUMP"; then
4470
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4471
$as_echo "$ac_ct_OBJDUMP" >&6; }
4472
else
4473
  { $as_echo "$as_me:$LINENO: result: no" >&5
4474
$as_echo "no" >&6; }
4475
fi
4476
 
4477
  if test "x$ac_ct_OBJDUMP" = x; then
4478
    OBJDUMP="false"
4479
  else
4480
    case $cross_compiling:$ac_tool_warned in
4481
yes:)
4482
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4483
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484
ac_tool_warned=yes ;;
4485
esac
4486
    OBJDUMP=$ac_ct_OBJDUMP
4487
  fi
4488
else
4489
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4490
fi
4491
 
4492
  ;;
4493
esac
4494
 
4495
test -z "$AS" && AS=as
4496
 
4497
 
4498
 
4499
 
4500
 
4501
test -z "$DLLTOOL" && DLLTOOL=dlltool
4502
 
4503
 
4504
 
4505
 
4506
 
4507
test -z "$OBJDUMP" && OBJDUMP=objdump
4508
 
4509
 
4510
 
4511
 
4512
 
4513
 
4514
 
4515
case `pwd` in
4516
  *\ * | *\     *)
4517
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4518
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4519
esac
4520
 
4521
 
4522
 
4523
macro_version='2.2.6'
4524
macro_revision='1.3012'
4525
 
4526
 
4527
 
4528
 
4529
 
4530
 
4531
 
4532
 
4533
 
4534
 
4535
 
4536
 
4537
 
4538
ltmain="$ac_aux_dir/ltmain.sh"
4539
 
4540
ac_ext=c
4541
ac_cpp='$CPP $CPPFLAGS'
4542
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
if test -n "$ac_tool_prefix"; then
4546
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4547
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4548
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4549
$as_echo_n "checking for $ac_word... " >&6; }
4550
if test "${ac_cv_prog_CC+set}" = set; then
4551
  $as_echo_n "(cached) " >&6
4552
else
4553
  if test -n "$CC"; then
4554
  ac_cv_prog_CC="$CC" # Let the user override the test.
4555
else
4556
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557
for as_dir in $PATH
4558
do
4559
  IFS=$as_save_IFS
4560
  test -z "$as_dir" && as_dir=.
4561
  for ac_exec_ext in '' $ac_executable_extensions; do
4562
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4563
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4564
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565
    break 2
4566
  fi
4567
done
4568
done
4569
IFS=$as_save_IFS
4570
 
4571
fi
4572
fi
4573
CC=$ac_cv_prog_CC
4574
if test -n "$CC"; then
4575
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4576
$as_echo "$CC" >&6; }
4577
else
4578
  { $as_echo "$as_me:$LINENO: result: no" >&5
4579
$as_echo "no" >&6; }
4580
fi
4581
 
4582
 
4583
fi
4584
if test -z "$ac_cv_prog_CC"; then
4585
  ac_ct_CC=$CC
4586
  # Extract the first word of "gcc", so it can be a program name with args.
4587
set dummy gcc; 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="gcc"
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
  if test "x$ac_ct_CC" = x; then
4623
    CC=""
4624
  else
4625
    case $cross_compiling:$ac_tool_warned in
4626
yes:)
4627
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4628
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4629
ac_tool_warned=yes ;;
4630
esac
4631
    CC=$ac_ct_CC
4632
  fi
4633
else
4634
  CC="$ac_cv_prog_CC"
4635
fi
4636
 
4637
if test -z "$CC"; then
4638
          if test -n "$ac_tool_prefix"; then
4639
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4640
set dummy ${ac_tool_prefix}cc; ac_word=$2
4641
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4642
$as_echo_n "checking for $ac_word... " >&6; }
4643
if test "${ac_cv_prog_CC+set}" = set; then
4644
  $as_echo_n "(cached) " >&6
4645
else
4646
  if test -n "$CC"; then
4647
  ac_cv_prog_CC="$CC" # Let the user override the test.
4648
else
4649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650
for as_dir in $PATH
4651
do
4652
  IFS=$as_save_IFS
4653
  test -z "$as_dir" && as_dir=.
4654
  for ac_exec_ext in '' $ac_executable_extensions; do
4655
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4657
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658
    break 2
4659
  fi
4660
done
4661
done
4662
IFS=$as_save_IFS
4663
 
4664
fi
4665
fi
4666
CC=$ac_cv_prog_CC
4667
if test -n "$CC"; then
4668
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4669
$as_echo "$CC" >&6; }
4670
else
4671
  { $as_echo "$as_me:$LINENO: result: no" >&5
4672
$as_echo "no" >&6; }
4673
fi
4674
 
4675
 
4676
  fi
4677
fi
4678
if test -z "$CC"; then
4679
  # Extract the first word of "cc", so it can be a program name with args.
4680
set dummy cc; ac_word=$2
4681
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4682
$as_echo_n "checking for $ac_word... " >&6; }
4683
if test "${ac_cv_prog_CC+set}" = set; then
4684
  $as_echo_n "(cached) " >&6
4685
else
4686
  if test -n "$CC"; then
4687
  ac_cv_prog_CC="$CC" # Let the user override the test.
4688
else
4689
  ac_prog_rejected=no
4690
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691
for as_dir in $PATH
4692
do
4693
  IFS=$as_save_IFS
4694
  test -z "$as_dir" && as_dir=.
4695
  for ac_exec_ext in '' $ac_executable_extensions; do
4696
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4698
       ac_prog_rejected=yes
4699
       continue
4700
     fi
4701
    ac_cv_prog_CC="cc"
4702
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703
    break 2
4704
  fi
4705
done
4706
done
4707
IFS=$as_save_IFS
4708
 
4709
if test $ac_prog_rejected = yes; then
4710
  # We found a bogon in the path, so make sure we never use it.
4711
  set dummy $ac_cv_prog_CC
4712
  shift
4713
  if test $# != 0; then
4714
    # We chose a different compiler from the bogus one.
4715
    # However, it has the same basename, so the bogon will be chosen
4716
    # first if we set CC to just the basename; use the full file name.
4717
    shift
4718
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4719
  fi
4720
fi
4721
fi
4722
fi
4723
CC=$ac_cv_prog_CC
4724
if test -n "$CC"; then
4725
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4726
$as_echo "$CC" >&6; }
4727
else
4728
  { $as_echo "$as_me:$LINENO: result: no" >&5
4729
$as_echo "no" >&6; }
4730
fi
4731
 
4732
 
4733
fi
4734
if test -z "$CC"; then
4735
  if test -n "$ac_tool_prefix"; then
4736
  for ac_prog in cl.exe
4737
  do
4738
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4739
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4740
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4741
$as_echo_n "checking for $ac_word... " >&6; }
4742
if test "${ac_cv_prog_CC+set}" = set; then
4743
  $as_echo_n "(cached) " >&6
4744
else
4745
  if test -n "$CC"; then
4746
  ac_cv_prog_CC="$CC" # Let the user override the test.
4747
else
4748
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749
for as_dir in $PATH
4750
do
4751
  IFS=$as_save_IFS
4752
  test -z "$as_dir" && as_dir=.
4753
  for ac_exec_ext in '' $ac_executable_extensions; do
4754
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4756
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757
    break 2
4758
  fi
4759
done
4760
done
4761
IFS=$as_save_IFS
4762
 
4763
fi
4764
fi
4765
CC=$ac_cv_prog_CC
4766
if test -n "$CC"; then
4767
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4768
$as_echo "$CC" >&6; }
4769
else
4770
  { $as_echo "$as_me:$LINENO: result: no" >&5
4771
$as_echo "no" >&6; }
4772
fi
4773
 
4774
 
4775
    test -n "$CC" && break
4776
  done
4777
fi
4778
if test -z "$CC"; then
4779
  ac_ct_CC=$CC
4780
  for ac_prog in cl.exe
4781
do
4782
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4783
set dummy $ac_prog; ac_word=$2
4784
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4785
$as_echo_n "checking for $ac_word... " >&6; }
4786
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4787
  $as_echo_n "(cached) " >&6
4788
else
4789
  if test -n "$ac_ct_CC"; then
4790
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4791
else
4792
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793
for as_dir in $PATH
4794
do
4795
  IFS=$as_save_IFS
4796
  test -z "$as_dir" && as_dir=.
4797
  for ac_exec_ext in '' $ac_executable_extensions; do
4798
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799
    ac_cv_prog_ac_ct_CC="$ac_prog"
4800
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801
    break 2
4802
  fi
4803
done
4804
done
4805
IFS=$as_save_IFS
4806
 
4807
fi
4808
fi
4809
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4810
if test -n "$ac_ct_CC"; then
4811
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4812
$as_echo "$ac_ct_CC" >&6; }
4813
else
4814
  { $as_echo "$as_me:$LINENO: result: no" >&5
4815
$as_echo "no" >&6; }
4816
fi
4817
 
4818
 
4819
  test -n "$ac_ct_CC" && break
4820
done
4821
 
4822
  if test "x$ac_ct_CC" = x; then
4823
    CC=""
4824
  else
4825
    case $cross_compiling:$ac_tool_warned in
4826
yes:)
4827
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4828
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4829
ac_tool_warned=yes ;;
4830
esac
4831
    CC=$ac_ct_CC
4832
  fi
4833
fi
4834
 
4835
fi
4836
 
4837
 
4838
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4839
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4840
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4841
See \`config.log' for more details." >&5
4842
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4843
See \`config.log' for more details." >&2;}
4844
   { (exit 1); exit 1; }; }; }
4845
 
4846
# Provide some information about the compiler.
4847
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4848
set X $ac_compile
4849
ac_compiler=$2
4850
{ (ac_try="$ac_compiler --version >&5"
4851
case "(($ac_try" in
4852
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853
  *) ac_try_echo=$ac_try;;
4854
esac
4855
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856
$as_echo "$ac_try_echo") >&5
4857
  (eval "$ac_compiler --version >&5") 2>&5
4858
  ac_status=$?
4859
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860
  (exit $ac_status); }
4861
{ (ac_try="$ac_compiler -v >&5"
4862
case "(($ac_try" in
4863
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864
  *) ac_try_echo=$ac_try;;
4865
esac
4866
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4867
$as_echo "$ac_try_echo") >&5
4868
  (eval "$ac_compiler -v >&5") 2>&5
4869
  ac_status=$?
4870
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871
  (exit $ac_status); }
4872
{ (ac_try="$ac_compiler -V >&5"
4873
case "(($ac_try" in
4874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875
  *) ac_try_echo=$ac_try;;
4876
esac
4877
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4878
$as_echo "$ac_try_echo") >&5
4879
  (eval "$ac_compiler -V >&5") 2>&5
4880
  ac_status=$?
4881
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882
  (exit $ac_status); }
4883
 
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
ac_clean_files_save=$ac_clean_files
4900
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4901
# Try to create an executable without -o first, disregard a.out.
4902
# It will help us diagnose broken compilers, and finding out an intuition
4903
# of exeext.
4904
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4905
$as_echo_n "checking for C compiler default output file name... " >&6; }
4906
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4907
 
4908
# The possible output files:
4909
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4910
 
4911
ac_rmfiles=
4912
for ac_file in $ac_files
4913
do
4914
  case $ac_file in
4915
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4916
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4917
  esac
4918
done
4919
rm -f $ac_rmfiles
4920
 
4921
if { (ac_try="$ac_link_default"
4922
case "(($ac_try" in
4923
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924
  *) ac_try_echo=$ac_try;;
4925
esac
4926
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4927
$as_echo "$ac_try_echo") >&5
4928
  (eval "$ac_link_default") 2>&5
4929
  ac_status=$?
4930
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931
  (exit $ac_status); }; then
4932
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4933
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4934
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4935
# so that the user can short-circuit this test for compilers unknown to
4936
# Autoconf.
4937
for ac_file in $ac_files ''
4938
do
4939
  test -f "$ac_file" || continue
4940
  case $ac_file in
4941
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4942
        ;;
4943
    [ab].out )
4944
        # We found the default executable, but exeext='' is most
4945
        # certainly right.
4946
        break;;
4947
    *.* )
4948
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4949
        then :; else
4950
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4951
        fi
4952
        # We set ac_cv_exeext here because the later test for it is not
4953
        # safe: cross compilers may not add the suffix if given an `-o'
4954
        # argument, so we may need to know it at that point already.
4955
        # Even if this section looks crufty: it has the advantage of
4956
        # actually working.
4957
        break;;
4958
    * )
4959
        break;;
4960
  esac
4961
done
4962
test "$ac_cv_exeext" = no && ac_cv_exeext=
4963
 
4964
else
4965
  ac_file=''
4966
fi
4967
 
4968
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4969
$as_echo "$ac_file" >&6; }
4970
if test -z "$ac_file"; then
4971
  $as_echo "$as_me: failed program was:" >&5
4972
sed 's/^/| /' conftest.$ac_ext >&5
4973
 
4974
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4975
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4976
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4977
See \`config.log' for more details." >&5
4978
$as_echo "$as_me: error: C compiler cannot create executables
4979
See \`config.log' for more details." >&2;}
4980
   { (exit 77); exit 77; }; }; }
4981
fi
4982
 
4983
ac_exeext=$ac_cv_exeext
4984
 
4985
# Check that the compiler produces executables we can run.  If not, either
4986
# the compiler is broken, or we cross compile.
4987
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4988
$as_echo_n "checking whether the C compiler works... " >&6; }
4989
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4990
# If not cross compiling, check that we can run a simple program.
4991
if test "$cross_compiling" != yes; then
4992
  if { ac_try='./$ac_file'
4993
  { (case "(($ac_try" in
4994
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995
  *) ac_try_echo=$ac_try;;
4996
esac
4997
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4998
$as_echo "$ac_try_echo") >&5
4999
  (eval "$ac_try") 2>&5
5000
  ac_status=$?
5001
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002
  (exit $ac_status); }; }; then
5003
    cross_compiling=no
5004
  else
5005
    if test "$cross_compiling" = maybe; then
5006
        cross_compiling=yes
5007
    else
5008
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5009
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5010
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
5011
If you meant to cross compile, use \`--host'.
5012
See \`config.log' for more details." >&5
5013
$as_echo "$as_me: error: cannot run C compiled programs.
5014
If you meant to cross compile, use \`--host'.
5015
See \`config.log' for more details." >&2;}
5016
   { (exit 1); exit 1; }; }; }
5017
    fi
5018
  fi
5019
fi
5020
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5021
$as_echo "yes" >&6; }
5022
 
5023
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5024
ac_clean_files=$ac_clean_files_save
5025
# Check that the compiler produces executables we can run.  If not, either
5026
# the compiler is broken, or we cross compile.
5027
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5028
$as_echo_n "checking whether we are cross compiling... " >&6; }
5029
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
5030
$as_echo "$cross_compiling" >&6; }
5031
 
5032
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
5033
$as_echo_n "checking for suffix of executables... " >&6; }
5034
if { (ac_try="$ac_link"
5035
case "(($ac_try" in
5036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037
  *) ac_try_echo=$ac_try;;
5038
esac
5039
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5040
$as_echo "$ac_try_echo") >&5
5041
  (eval "$ac_link") 2>&5
5042
  ac_status=$?
5043
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044
  (exit $ac_status); }; then
5045
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5046
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5047
# work properly (i.e., refer to `conftest.exe'), while it won't with
5048
# `rm'.
5049
for ac_file in conftest.exe conftest conftest.*; do
5050
  test -f "$ac_file" || continue
5051
  case $ac_file in
5052
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5053
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5054
          break;;
5055
    * ) break;;
5056
  esac
5057
done
5058
else
5059
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5060
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5061
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5062
See \`config.log' for more details." >&5
5063
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5064
See \`config.log' for more details." >&2;}
5065
   { (exit 1); exit 1; }; }; }
5066
fi
5067
 
5068
rm -f conftest$ac_cv_exeext
5069
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5070
$as_echo "$ac_cv_exeext" >&6; }
5071
 
5072
rm -f conftest.$ac_ext
5073
EXEEXT=$ac_cv_exeext
5074
ac_exeext=$EXEEXT
5075
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
5076
$as_echo_n "checking for suffix of object files... " >&6; }
5077
if test "${ac_cv_objext+set}" = set; then
5078
  $as_echo_n "(cached) " >&6
5079
else
5080
  cat >conftest.$ac_ext <<_ACEOF
5081
/* confdefs.h.  */
5082
_ACEOF
5083
cat confdefs.h >>conftest.$ac_ext
5084
cat >>conftest.$ac_ext <<_ACEOF
5085
/* end confdefs.h.  */
5086
 
5087
int
5088
main ()
5089
{
5090
 
5091
  ;
5092
  return 0;
5093
}
5094
_ACEOF
5095
rm -f conftest.o conftest.obj
5096
if { (ac_try="$ac_compile"
5097
case "(($ac_try" in
5098
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099
  *) ac_try_echo=$ac_try;;
5100
esac
5101
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5102
$as_echo "$ac_try_echo") >&5
5103
  (eval "$ac_compile") 2>&5
5104
  ac_status=$?
5105
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106
  (exit $ac_status); }; then
5107
  for ac_file in conftest.o conftest.obj conftest.*; do
5108
  test -f "$ac_file" || continue;
5109
  case $ac_file in
5110
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5111
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5112
       break;;
5113
  esac
5114
done
5115
else
5116
  $as_echo "$as_me: failed program was:" >&5
5117
sed 's/^/| /' conftest.$ac_ext >&5
5118
 
5119
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5120
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5121
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5122
See \`config.log' for more details." >&5
5123
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
5124
See \`config.log' for more details." >&2;}
5125
   { (exit 1); exit 1; }; }; }
5126
fi
5127
 
5128
rm -f conftest.$ac_cv_objext conftest.$ac_ext
5129
fi
5130
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5131
$as_echo "$ac_cv_objext" >&6; }
5132
OBJEXT=$ac_cv_objext
5133
ac_objext=$OBJEXT
5134
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5135
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5136
if test "${ac_cv_c_compiler_gnu+set}" = set; then
5137
  $as_echo_n "(cached) " >&6
5138
else
5139
  cat >conftest.$ac_ext <<_ACEOF
5140
/* confdefs.h.  */
5141
_ACEOF
5142
cat confdefs.h >>conftest.$ac_ext
5143
cat >>conftest.$ac_ext <<_ACEOF
5144
/* end confdefs.h.  */
5145
 
5146
int
5147
main ()
5148
{
5149
#ifndef __GNUC__
5150
       choke me
5151
#endif
5152
 
5153
  ;
5154
  return 0;
5155
}
5156
_ACEOF
5157
rm -f conftest.$ac_objext
5158
if { (ac_try="$ac_compile"
5159
case "(($ac_try" in
5160
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161
  *) ac_try_echo=$ac_try;;
5162
esac
5163
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5164
$as_echo "$ac_try_echo") >&5
5165
  (eval "$ac_compile") 2>conftest.er1
5166
  ac_status=$?
5167
  grep -v '^ *+' conftest.er1 >conftest.err
5168
  rm -f conftest.er1
5169
  cat conftest.err >&5
5170
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171
  (exit $ac_status); } && {
5172
         test -z "$ac_c_werror_flag" ||
5173
         test ! -s conftest.err
5174
       } && test -s conftest.$ac_objext; then
5175
  ac_compiler_gnu=yes
5176
else
5177
  $as_echo "$as_me: failed program was:" >&5
5178
sed 's/^/| /' conftest.$ac_ext >&5
5179
 
5180
        ac_compiler_gnu=no
5181
fi
5182
 
5183
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184
ac_cv_c_compiler_gnu=$ac_compiler_gnu
5185
 
5186
fi
5187
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5188
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5189
if test $ac_compiler_gnu = yes; then
5190
  GCC=yes
5191
else
5192
  GCC=
5193
fi
5194
ac_test_CFLAGS=${CFLAGS+set}
5195
ac_save_CFLAGS=$CFLAGS
5196
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5197
$as_echo_n "checking whether $CC accepts -g... " >&6; }
5198
if test "${ac_cv_prog_cc_g+set}" = set; then
5199
  $as_echo_n "(cached) " >&6
5200
else
5201
  ac_save_c_werror_flag=$ac_c_werror_flag
5202
   ac_c_werror_flag=yes
5203
   ac_cv_prog_cc_g=no
5204
   CFLAGS="-g"
5205
   cat >conftest.$ac_ext <<_ACEOF
5206
/* confdefs.h.  */
5207
_ACEOF
5208
cat confdefs.h >>conftest.$ac_ext
5209
cat >>conftest.$ac_ext <<_ACEOF
5210
/* end confdefs.h.  */
5211
 
5212
int
5213
main ()
5214
{
5215
 
5216
  ;
5217
  return 0;
5218
}
5219
_ACEOF
5220
rm -f conftest.$ac_objext
5221
if { (ac_try="$ac_compile"
5222
case "(($ac_try" in
5223
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224
  *) ac_try_echo=$ac_try;;
5225
esac
5226
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5227
$as_echo "$ac_try_echo") >&5
5228
  (eval "$ac_compile") 2>conftest.er1
5229
  ac_status=$?
5230
  grep -v '^ *+' conftest.er1 >conftest.err
5231
  rm -f conftest.er1
5232
  cat conftest.err >&5
5233
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234
  (exit $ac_status); } && {
5235
         test -z "$ac_c_werror_flag" ||
5236
         test ! -s conftest.err
5237
       } && test -s conftest.$ac_objext; then
5238
  ac_cv_prog_cc_g=yes
5239
else
5240
  $as_echo "$as_me: failed program was:" >&5
5241
sed 's/^/| /' conftest.$ac_ext >&5
5242
 
5243
        CFLAGS=""
5244
      cat >conftest.$ac_ext <<_ACEOF
5245
/* confdefs.h.  */
5246
_ACEOF
5247
cat confdefs.h >>conftest.$ac_ext
5248
cat >>conftest.$ac_ext <<_ACEOF
5249
/* end confdefs.h.  */
5250
 
5251
int
5252
main ()
5253
{
5254
 
5255
  ;
5256
  return 0;
5257
}
5258
_ACEOF
5259
rm -f conftest.$ac_objext
5260
if { (ac_try="$ac_compile"
5261
case "(($ac_try" in
5262
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263
  *) ac_try_echo=$ac_try;;
5264
esac
5265
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5266
$as_echo "$ac_try_echo") >&5
5267
  (eval "$ac_compile") 2>conftest.er1
5268
  ac_status=$?
5269
  grep -v '^ *+' conftest.er1 >conftest.err
5270
  rm -f conftest.er1
5271
  cat conftest.err >&5
5272
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273
  (exit $ac_status); } && {
5274
         test -z "$ac_c_werror_flag" ||
5275
         test ! -s conftest.err
5276
       } && test -s conftest.$ac_objext; then
5277
  :
5278
else
5279
  $as_echo "$as_me: failed program was:" >&5
5280
sed 's/^/| /' conftest.$ac_ext >&5
5281
 
5282
        ac_c_werror_flag=$ac_save_c_werror_flag
5283
         CFLAGS="-g"
5284
         cat >conftest.$ac_ext <<_ACEOF
5285
/* confdefs.h.  */
5286
_ACEOF
5287
cat confdefs.h >>conftest.$ac_ext
5288
cat >>conftest.$ac_ext <<_ACEOF
5289
/* end confdefs.h.  */
5290
 
5291
int
5292
main ()
5293
{
5294
 
5295
  ;
5296
  return 0;
5297
}
5298
_ACEOF
5299
rm -f conftest.$ac_objext
5300
if { (ac_try="$ac_compile"
5301
case "(($ac_try" in
5302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303
  *) ac_try_echo=$ac_try;;
5304
esac
5305
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5306
$as_echo "$ac_try_echo") >&5
5307
  (eval "$ac_compile") 2>conftest.er1
5308
  ac_status=$?
5309
  grep -v '^ *+' conftest.er1 >conftest.err
5310
  rm -f conftest.er1
5311
  cat conftest.err >&5
5312
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313
  (exit $ac_status); } && {
5314
         test -z "$ac_c_werror_flag" ||
5315
         test ! -s conftest.err
5316
       } && test -s conftest.$ac_objext; then
5317
  ac_cv_prog_cc_g=yes
5318
else
5319
  $as_echo "$as_me: failed program was:" >&5
5320
sed 's/^/| /' conftest.$ac_ext >&5
5321
 
5322
 
5323
fi
5324
 
5325
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326
fi
5327
 
5328
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329
fi
5330
 
5331
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332
   ac_c_werror_flag=$ac_save_c_werror_flag
5333
fi
5334
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5335
$as_echo "$ac_cv_prog_cc_g" >&6; }
5336
if test "$ac_test_CFLAGS" = set; then
5337
  CFLAGS=$ac_save_CFLAGS
5338
elif test $ac_cv_prog_cc_g = yes; then
5339
  if test "$GCC" = yes; then
5340
    CFLAGS="-g -O2"
5341
  else
5342
    CFLAGS="-g"
5343
  fi
5344
else
5345
  if test "$GCC" = yes; then
5346
    CFLAGS="-O2"
5347
  else
5348
    CFLAGS=
5349
  fi
5350
fi
5351
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5352
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5353
if test "${ac_cv_prog_cc_c89+set}" = set; then
5354
  $as_echo_n "(cached) " >&6
5355
else
5356
  ac_cv_prog_cc_c89=no
5357
ac_save_CC=$CC
5358
cat >conftest.$ac_ext <<_ACEOF
5359
/* confdefs.h.  */
5360
_ACEOF
5361
cat confdefs.h >>conftest.$ac_ext
5362
cat >>conftest.$ac_ext <<_ACEOF
5363
/* end confdefs.h.  */
5364
#include 
5365
#include 
5366
#include 
5367
#include 
5368
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5369
struct buf { int x; };
5370
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5371
static char *e (p, i)
5372
     char **p;
5373
     int i;
5374
{
5375
  return p[i];
5376
}
5377
static char *f (char * (*g) (char **, int), char **p, ...)
5378
{
5379
  char *s;
5380
  va_list v;
5381
  va_start (v,p);
5382
  s = g (p, va_arg (v,int));
5383
  va_end (v);
5384
  return s;
5385
}
5386
 
5387
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5388
   function prototypes and stuff, but not '\xHH' hex character constants.
5389
   These don't provoke an error unfortunately, instead are silently treated
5390
   as 'x'.  The following induces an error, until -std is added to get
5391
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5392
   array size at least.  It's necessary to write '\x00'==0 to get something
5393
   that's true only with -std.  */
5394
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5395
 
5396
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5397
   inside strings and character constants.  */
5398
#define FOO(x) 'x'
5399
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5400
 
5401
int test (int i, double x);
5402
struct s1 {int (*f) (int a);};
5403
struct s2 {int (*f) (double a);};
5404
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5405
int argc;
5406
char **argv;
5407
int
5408
main ()
5409
{
5410
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5411
  ;
5412
  return 0;
5413
}
5414
_ACEOF
5415
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5416
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5417
do
5418
  CC="$ac_save_CC $ac_arg"
5419
  rm -f conftest.$ac_objext
5420
if { (ac_try="$ac_compile"
5421
case "(($ac_try" in
5422
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5423
  *) ac_try_echo=$ac_try;;
5424
esac
5425
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5426
$as_echo "$ac_try_echo") >&5
5427
  (eval "$ac_compile") 2>conftest.er1
5428
  ac_status=$?
5429
  grep -v '^ *+' conftest.er1 >conftest.err
5430
  rm -f conftest.er1
5431
  cat conftest.err >&5
5432
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433
  (exit $ac_status); } && {
5434
         test -z "$ac_c_werror_flag" ||
5435
         test ! -s conftest.err
5436
       } && test -s conftest.$ac_objext; then
5437
  ac_cv_prog_cc_c89=$ac_arg
5438
else
5439
  $as_echo "$as_me: failed program was:" >&5
5440
sed 's/^/| /' conftest.$ac_ext >&5
5441
 
5442
 
5443
fi
5444
 
5445
rm -f core conftest.err conftest.$ac_objext
5446
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5447
done
5448
rm -f conftest.$ac_ext
5449
CC=$ac_save_CC
5450
 
5451
fi
5452
# AC_CACHE_VAL
5453
case "x$ac_cv_prog_cc_c89" in
5454
  x)
5455
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5456
$as_echo "none needed" >&6; } ;;
5457
  xno)
5458
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5459
$as_echo "unsupported" >&6; } ;;
5460
  *)
5461
    CC="$CC $ac_cv_prog_cc_c89"
5462
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5463
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5464
esac
5465
 
5466
 
5467
ac_ext=c
5468
ac_cpp='$CPP $CPPFLAGS'
5469
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5472
 
5473
depcc="$CC"   am_compiler_list=
5474
 
5475
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5476
$as_echo_n "checking dependency style of $depcc... " >&6; }
5477
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5478
  $as_echo_n "(cached) " >&6
5479
else
5480
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5481
  # We make a subdir and do the tests there.  Otherwise we can end up
5482
  # making bogus files that we don't know about and never remove.  For
5483
  # instance it was reported that on HP-UX the gcc test will end up
5484
  # making a dummy file named `D' -- because `-MD' means `put the output
5485
  # in D'.
5486
  mkdir conftest.dir
5487
  # Copy depcomp to subdir because otherwise we won't find it if we're
5488
  # using a relative directory.
5489
  cp "$am_depcomp" conftest.dir
5490
  cd conftest.dir
5491
  # We will build objects and dependencies in a subdirectory because
5492
  # it helps to detect inapplicable dependency modes.  For instance
5493
  # both Tru64's cc and ICC support -MD to output dependencies as a
5494
  # side effect of compilation, but ICC will put the dependencies in
5495
  # the current directory while Tru64 will put them in the object
5496
  # directory.
5497
  mkdir sub
5498
 
5499
  am_cv_CC_dependencies_compiler_type=none
5500
  if test "$am_compiler_list" = ""; then
5501
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5502
  fi
5503
  am__universal=false
5504
  case " $depcc " in #(
5505
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5506
     esac
5507
 
5508
  for depmode in $am_compiler_list; do
5509
    # Setup a source with many dependencies, because some compilers
5510
    # like to wrap large dependency lists on column 80 (with \), and
5511
    # we should not choose a depcomp mode which is confused by this.
5512
    #
5513
    # We need to recreate these files for each test, as the compiler may
5514
    # overwrite some of them when testing with obscure command lines.
5515
    # This happens at least with the AIX C compiler.
5516
    : > sub/conftest.c
5517
    for i in 1 2 3 4 5 6; do
5518
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5519
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5520
      # Solaris 8's {/usr,}/bin/sh.
5521
      touch sub/conftst$i.h
5522
    done
5523
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5524
 
5525
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5526
    # mode.  It turns out that the SunPro C++ compiler does not properly
5527
    # handle `-M -o', and we need to detect this.  Also, some Intel
5528
    # versions had trouble with output in subdirs
5529
    am__obj=sub/conftest.${OBJEXT-o}
5530
    am__minus_obj="-o $am__obj"
5531
    case $depmode in
5532
    gcc)
5533
      # This depmode causes a compiler race in universal mode.
5534
      test "$am__universal" = false || continue
5535
      ;;
5536
    nosideeffect)
5537
      # after this tag, mechanisms are not by side-effect, so they'll
5538
      # only be used when explicitly requested
5539
      if test "x$enable_dependency_tracking" = xyes; then
5540
        continue
5541
      else
5542
        break
5543
      fi
5544
      ;;
5545
    msvisualcpp | msvcmsys)
5546
      # This compiler won't grok `-c -o', but also, the minuso test has
5547
      # not run yet.  These depmodes are late enough in the game, and
5548
      # so weak that their functioning should not be impacted.
5549
      am__obj=conftest.${OBJEXT-o}
5550
      am__minus_obj=
5551
      ;;
5552
    none) break ;;
5553
    esac
5554
    if depmode=$depmode \
5555
       source=sub/conftest.c object=$am__obj \
5556
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5557
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5558
         >/dev/null 2>conftest.err &&
5559
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5560
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5561
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5562
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5563
      # icc doesn't choke on unknown options, it will just issue warnings
5564
      # or remarks (even with -Werror).  So we grep stderr for any message
5565
      # that says an option was ignored or not supported.
5566
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5567
      #   icc: Command line warning: ignoring option '-M'; no argument required
5568
      # The diagnosis changed in icc 8.0:
5569
      #   icc: Command line remark: option '-MP' not supported
5570
      if (grep 'ignoring option' conftest.err ||
5571
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5572
        am_cv_CC_dependencies_compiler_type=$depmode
5573
        break
5574
      fi
5575
    fi
5576
  done
5577
 
5578
  cd ..
5579
  rm -rf conftest.dir
5580
else
5581
  am_cv_CC_dependencies_compiler_type=none
5582
fi
5583
 
5584
fi
5585
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5586
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5587
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5588
 
5589
 if
5590
  test "x$enable_dependency_tracking" != xno \
5591
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5592
  am__fastdepCC_TRUE=
5593
  am__fastdepCC_FALSE='#'
5594
else
5595
  am__fastdepCC_TRUE='#'
5596
  am__fastdepCC_FALSE=
5597
fi
5598
 
5599
 
5600
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5601
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5602
if test "${ac_cv_path_GREP+set}" = set; then
5603
  $as_echo_n "(cached) " >&6
5604
else
5605
  if test -z "$GREP"; then
5606
  ac_path_GREP_found=false
5607
  # Loop through the user's path and test for each of PROGNAME-LIST
5608
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5610
do
5611
  IFS=$as_save_IFS
5612
  test -z "$as_dir" && as_dir=.
5613
  for ac_prog in grep ggrep; do
5614
    for ac_exec_ext in '' $ac_executable_extensions; do
5615
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5616
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5617
# Check for GNU ac_path_GREP and select it if it is found.
5618
  # Check for GNU $ac_path_GREP
5619
case `"$ac_path_GREP" --version 2>&1` in
5620
*GNU*)
5621
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5622
*)
5623
  ac_count=0
5624
  $as_echo_n 0123456789 >"conftest.in"
5625
  while :
5626
  do
5627
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5628
    mv "conftest.tmp" "conftest.in"
5629
    cp "conftest.in" "conftest.nl"
5630
    $as_echo 'GREP' >> "conftest.nl"
5631
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5632
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5633
    ac_count=`expr $ac_count + 1`
5634
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5635
      # Best one so far, save it but keep looking for a better one
5636
      ac_cv_path_GREP="$ac_path_GREP"
5637
      ac_path_GREP_max=$ac_count
5638
    fi
5639
    # 10*(2^10) chars as input seems more than enough
5640
    test $ac_count -gt 10 && break
5641
  done
5642
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5643
esac
5644
 
5645
      $ac_path_GREP_found && break 3
5646
    done
5647
  done
5648
done
5649
IFS=$as_save_IFS
5650
  if test -z "$ac_cv_path_GREP"; then
5651
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5652
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5653
   { (exit 1); exit 1; }; }
5654
  fi
5655
else
5656
  ac_cv_path_GREP=$GREP
5657
fi
5658
 
5659
fi
5660
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5661
$as_echo "$ac_cv_path_GREP" >&6; }
5662
 GREP="$ac_cv_path_GREP"
5663
 
5664
 
5665
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5666
$as_echo_n "checking for egrep... " >&6; }
5667
if test "${ac_cv_path_EGREP+set}" = set; then
5668
  $as_echo_n "(cached) " >&6
5669
else
5670
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5671
   then ac_cv_path_EGREP="$GREP -E"
5672
   else
5673
     if test -z "$EGREP"; then
5674
  ac_path_EGREP_found=false
5675
  # Loop through the user's path and test for each of PROGNAME-LIST
5676
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5678
do
5679
  IFS=$as_save_IFS
5680
  test -z "$as_dir" && as_dir=.
5681
  for ac_prog in egrep; do
5682
    for ac_exec_ext in '' $ac_executable_extensions; do
5683
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5684
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5685
# Check for GNU ac_path_EGREP and select it if it is found.
5686
  # Check for GNU $ac_path_EGREP
5687
case `"$ac_path_EGREP" --version 2>&1` in
5688
*GNU*)
5689
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5690
*)
5691
  ac_count=0
5692
  $as_echo_n 0123456789 >"conftest.in"
5693
  while :
5694
  do
5695
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5696
    mv "conftest.tmp" "conftest.in"
5697
    cp "conftest.in" "conftest.nl"
5698
    $as_echo 'EGREP' >> "conftest.nl"
5699
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5700
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5701
    ac_count=`expr $ac_count + 1`
5702
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5703
      # Best one so far, save it but keep looking for a better one
5704
      ac_cv_path_EGREP="$ac_path_EGREP"
5705
      ac_path_EGREP_max=$ac_count
5706
    fi
5707
    # 10*(2^10) chars as input seems more than enough
5708
    test $ac_count -gt 10 && break
5709
  done
5710
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5711
esac
5712
 
5713
      $ac_path_EGREP_found && break 3
5714
    done
5715
  done
5716
done
5717
IFS=$as_save_IFS
5718
  if test -z "$ac_cv_path_EGREP"; then
5719
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5720
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5721
   { (exit 1); exit 1; }; }
5722
  fi
5723
else
5724
  ac_cv_path_EGREP=$EGREP
5725
fi
5726
 
5727
   fi
5728
fi
5729
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5730
$as_echo "$ac_cv_path_EGREP" >&6; }
5731
 EGREP="$ac_cv_path_EGREP"
5732
 
5733
 
5734
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5735
$as_echo_n "checking for fgrep... " >&6; }
5736
if test "${ac_cv_path_FGREP+set}" = set; then
5737
  $as_echo_n "(cached) " >&6
5738
else
5739
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5740
   then ac_cv_path_FGREP="$GREP -F"
5741
   else
5742
     if test -z "$FGREP"; then
5743
  ac_path_FGREP_found=false
5744
  # Loop through the user's path and test for each of PROGNAME-LIST
5745
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5747
do
5748
  IFS=$as_save_IFS
5749
  test -z "$as_dir" && as_dir=.
5750
  for ac_prog in fgrep; do
5751
    for ac_exec_ext in '' $ac_executable_extensions; do
5752
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5753
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5754
# Check for GNU ac_path_FGREP and select it if it is found.
5755
  # Check for GNU $ac_path_FGREP
5756
case `"$ac_path_FGREP" --version 2>&1` in
5757
*GNU*)
5758
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5759
*)
5760
  ac_count=0
5761
  $as_echo_n 0123456789 >"conftest.in"
5762
  while :
5763
  do
5764
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5765
    mv "conftest.tmp" "conftest.in"
5766
    cp "conftest.in" "conftest.nl"
5767
    $as_echo 'FGREP' >> "conftest.nl"
5768
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5769
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5770
    ac_count=`expr $ac_count + 1`
5771
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5772
      # Best one so far, save it but keep looking for a better one
5773
      ac_cv_path_FGREP="$ac_path_FGREP"
5774
      ac_path_FGREP_max=$ac_count
5775
    fi
5776
    # 10*(2^10) chars as input seems more than enough
5777
    test $ac_count -gt 10 && break
5778
  done
5779
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5780
esac
5781
 
5782
      $ac_path_FGREP_found && break 3
5783
    done
5784
  done
5785
done
5786
IFS=$as_save_IFS
5787
  if test -z "$ac_cv_path_FGREP"; then
5788
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5789
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5790
   { (exit 1); exit 1; }; }
5791
  fi
5792
else
5793
  ac_cv_path_FGREP=$FGREP
5794
fi
5795
 
5796
   fi
5797
fi
5798
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5799
$as_echo "$ac_cv_path_FGREP" >&6; }
5800
 FGREP="$ac_cv_path_FGREP"
5801
 
5802
 
5803
test -z "$GREP" && GREP=grep
5804
 
5805
 
5806
 
5807
 
5808
 
5809
 
5810
 
5811
 
5812
 
5813
 
5814
 
5815
 
5816
 
5817
 
5818
 
5819
 
5820
 
5821
 
5822
 
5823
# Check whether --with-gnu-ld was given.
5824
if test "${with_gnu_ld+set}" = set; then
5825
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5826
else
5827
  with_gnu_ld=no
5828
fi
5829
 
5830
ac_prog=ld
5831
if test "$GCC" = yes; then
5832
  # Check if gcc -print-prog-name=ld gives a path.
5833
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5834
$as_echo_n "checking for ld used by $CC... " >&6; }
5835
  case $host in
5836
  *-*-mingw*)
5837
    # gcc leaves a trailing carriage return which upsets mingw
5838
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5839
  *)
5840
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5841
  esac
5842
  case $ac_prog in
5843
    # Accept absolute paths.
5844
    [\\/]* | ?:[\\/]*)
5845
      re_direlt='/[^/][^/]*/\.\./'
5846
      # Canonicalize the pathname of ld
5847
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5848
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5849
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5850
      done
5851
      test -z "$LD" && LD="$ac_prog"
5852
      ;;
5853
  "")
5854
    # If it fails, then pretend we aren't using GCC.
5855
    ac_prog=ld
5856
    ;;
5857
  *)
5858
    # If it is relative, then search for the first ld in PATH.
5859
    with_gnu_ld=unknown
5860
    ;;
5861
  esac
5862
elif test "$with_gnu_ld" = yes; then
5863
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5864
$as_echo_n "checking for GNU ld... " >&6; }
5865
else
5866
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5867
$as_echo_n "checking for non-GNU ld... " >&6; }
5868
fi
5869
if test "${lt_cv_path_LD+set}" = set; then
5870
  $as_echo_n "(cached) " >&6
5871
else
5872
  if test -z "$LD"; then
5873
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5874
  for ac_dir in $PATH; do
5875
    IFS="$lt_save_ifs"
5876
    test -z "$ac_dir" && ac_dir=.
5877
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5878
      lt_cv_path_LD="$ac_dir/$ac_prog"
5879
      # Check to see if the program is GNU ld.  I'd rather use --version,
5880
      # but apparently some variants of GNU ld only accept -v.
5881
      # Break only if it was the GNU/non-GNU ld that we prefer.
5882
      case `"$lt_cv_path_LD" -v 2>&1 
5883
      *GNU* | *'with BFD'*)
5884
        test "$with_gnu_ld" != no && break
5885
        ;;
5886
      *)
5887
        test "$with_gnu_ld" != yes && break
5888
        ;;
5889
      esac
5890
    fi
5891
  done
5892
  IFS="$lt_save_ifs"
5893
else
5894
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5895
fi
5896
fi
5897
 
5898
LD="$lt_cv_path_LD"
5899
if test -n "$LD"; then
5900
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5901
$as_echo "$LD" >&6; }
5902
else
5903
  { $as_echo "$as_me:$LINENO: result: no" >&5
5904
$as_echo "no" >&6; }
5905
fi
5906
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5907
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5908
   { (exit 1); exit 1; }; }
5909
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5910
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5911
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5912
  $as_echo_n "(cached) " >&6
5913
else
5914
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5915
case `$LD -v 2>&1 
5916
*GNU* | *'with BFD'*)
5917
  lt_cv_prog_gnu_ld=yes
5918
  ;;
5919
*)
5920
  lt_cv_prog_gnu_ld=no
5921
  ;;
5922
esac
5923
fi
5924
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5925
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5926
with_gnu_ld=$lt_cv_prog_gnu_ld
5927
 
5928
 
5929
 
5930
 
5931
 
5932
 
5933
 
5934
 
5935
 
5936
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5937
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5938
if test "${lt_cv_path_NM+set}" = set; then
5939
  $as_echo_n "(cached) " >&6
5940
else
5941
  if test -n "$NM"; then
5942
  # Let the user override the test.
5943
  lt_cv_path_NM="$NM"
5944
else
5945
  lt_nm_to_check="${ac_tool_prefix}nm"
5946
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5947
    lt_nm_to_check="$lt_nm_to_check nm"
5948
  fi
5949
  for lt_tmp_nm in $lt_nm_to_check; do
5950
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5951
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5952
      IFS="$lt_save_ifs"
5953
      test -z "$ac_dir" && ac_dir=.
5954
      tmp_nm="$ac_dir/$lt_tmp_nm"
5955
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5956
        # Check to see if the nm accepts a BSD-compat flag.
5957
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5958
        #   nm: unknown option "B" ignored
5959
        # Tru64's nm complains that /dev/null is an invalid object file
5960
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5961
        */dev/null* | *'Invalid file or object type'*)
5962
          lt_cv_path_NM="$tmp_nm -B"
5963
          break
5964
          ;;
5965
        *)
5966
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5967
          */dev/null*)
5968
            lt_cv_path_NM="$tmp_nm -p"
5969
            break
5970
            ;;
5971
          *)
5972
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5973
            continue # so that we can try to find one that supports BSD flags
5974
            ;;
5975
          esac
5976
          ;;
5977
        esac
5978
      fi
5979
    done
5980
    IFS="$lt_save_ifs"
5981
  done
5982
  : ${lt_cv_path_NM=no}
5983
fi
5984
fi
5985
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5986
$as_echo "$lt_cv_path_NM" >&6; }
5987
if test "$lt_cv_path_NM" != "no"; then
5988
  NM="$lt_cv_path_NM"
5989
else
5990
  # Didn't find any BSD compatible name lister, look for dumpbin.
5991
  if test -n "$ac_tool_prefix"; then
5992
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5993
  do
5994
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5995
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5996
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5997
$as_echo_n "checking for $ac_word... " >&6; }
5998
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5999
  $as_echo_n "(cached) " >&6
6000
else
6001
  if test -n "$DUMPBIN"; then
6002
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6003
else
6004
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005
for as_dir in $PATH
6006
do
6007
  IFS=$as_save_IFS
6008
  test -z "$as_dir" && as_dir=.
6009
  for ac_exec_ext in '' $ac_executable_extensions; do
6010
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6012
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013
    break 2
6014
  fi
6015
done
6016
done
6017
IFS=$as_save_IFS
6018
 
6019
fi
6020
fi
6021
DUMPBIN=$ac_cv_prog_DUMPBIN
6022
if test -n "$DUMPBIN"; then
6023
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6024
$as_echo "$DUMPBIN" >&6; }
6025
else
6026
  { $as_echo "$as_me:$LINENO: result: no" >&5
6027
$as_echo "no" >&6; }
6028
fi
6029
 
6030
 
6031
    test -n "$DUMPBIN" && break
6032
  done
6033
fi
6034
if test -z "$DUMPBIN"; then
6035
  ac_ct_DUMPBIN=$DUMPBIN
6036
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6037
do
6038
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6039
set dummy $ac_prog; ac_word=$2
6040
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6041
$as_echo_n "checking for $ac_word... " >&6; }
6042
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6043
  $as_echo_n "(cached) " >&6
6044
else
6045
  if test -n "$ac_ct_DUMPBIN"; then
6046
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6047
else
6048
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049
for as_dir in $PATH
6050
do
6051
  IFS=$as_save_IFS
6052
  test -z "$as_dir" && as_dir=.
6053
  for ac_exec_ext in '' $ac_executable_extensions; do
6054
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6056
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057
    break 2
6058
  fi
6059
done
6060
done
6061
IFS=$as_save_IFS
6062
 
6063
fi
6064
fi
6065
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6066
if test -n "$ac_ct_DUMPBIN"; then
6067
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6068
$as_echo "$ac_ct_DUMPBIN" >&6; }
6069
else
6070
  { $as_echo "$as_me:$LINENO: result: no" >&5
6071
$as_echo "no" >&6; }
6072
fi
6073
 
6074
 
6075
  test -n "$ac_ct_DUMPBIN" && break
6076
done
6077
 
6078
  if test "x$ac_ct_DUMPBIN" = x; then
6079
    DUMPBIN=":"
6080
  else
6081
    case $cross_compiling:$ac_tool_warned in
6082
yes:)
6083
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6084
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085
ac_tool_warned=yes ;;
6086
esac
6087
    DUMPBIN=$ac_ct_DUMPBIN
6088
  fi
6089
fi
6090
 
6091
 
6092
  if test "$DUMPBIN" != ":"; then
6093
    NM="$DUMPBIN"
6094
  fi
6095
fi
6096
test -z "$NM" && NM=nm
6097
 
6098
 
6099
 
6100
 
6101
 
6102
 
6103
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6104
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6105
if test "${lt_cv_nm_interface+set}" = set; then
6106
  $as_echo_n "(cached) " >&6
6107
else
6108
  lt_cv_nm_interface="BSD nm"
6109
  echo "int some_variable = 0;" > conftest.$ac_ext
6110
  (eval echo "\"\$as_me:6110: $ac_compile\"" >&5)
6111
  (eval "$ac_compile" 2>conftest.err)
6112
  cat conftest.err >&5
6113
  (eval echo "\"\$as_me:6113: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6114
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6115
  cat conftest.err >&5
6116
  (eval echo "\"\$as_me:6116: output\"" >&5)
6117
  cat conftest.out >&5
6118
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6119
    lt_cv_nm_interface="MS dumpbin"
6120
  fi
6121
  rm -f conftest*
6122
fi
6123
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6124
$as_echo "$lt_cv_nm_interface" >&6; }
6125
 
6126
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6127
$as_echo_n "checking whether ln -s works... " >&6; }
6128
LN_S=$as_ln_s
6129
if test "$LN_S" = "ln -s"; then
6130
  { $as_echo "$as_me:$LINENO: result: yes" >&5
6131
$as_echo "yes" >&6; }
6132
else
6133
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6134
$as_echo "no, using $LN_S" >&6; }
6135
fi
6136
 
6137
# find the maximum length of command line arguments
6138
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6139
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6140
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6141
  $as_echo_n "(cached) " >&6
6142
else
6143
    i=0
6144
  teststring="ABCD"
6145
 
6146
  case $build_os in
6147
  msdosdjgpp*)
6148
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6149
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6150
    # during glob expansion).  Even if it were fixed, the result of this
6151
    # check would be larger than it should be.
6152
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6153
    ;;
6154
 
6155
  gnu*)
6156
    # Under GNU Hurd, this test is not required because there is
6157
    # no limit to the length of command line arguments.
6158
    # Libtool will interpret -1 as no limit whatsoever
6159
    lt_cv_sys_max_cmd_len=-1;
6160
    ;;
6161
 
6162
  cygwin* | mingw* | cegcc*)
6163
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6164
    # about 5 minutes as the teststring grows exponentially.
6165
    # Worse, since 9x/ME are not pre-emptively multitasking,
6166
    # you end up with a "frozen" computer, even though with patience
6167
    # the test eventually succeeds (with a max line length of 256k).
6168
    # Instead, let's just punt: use the minimum linelength reported by
6169
    # all of the supported platforms: 8192 (on NT/2K/XP).
6170
    lt_cv_sys_max_cmd_len=8192;
6171
    ;;
6172
 
6173
  amigaos*)
6174
    # On AmigaOS with pdksh, this test takes hours, literally.
6175
    # So we just punt and use a minimum line length of 8192.
6176
    lt_cv_sys_max_cmd_len=8192;
6177
    ;;
6178
 
6179
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6180
    # This has been around since 386BSD, at least.  Likely further.
6181
    if test -x /sbin/sysctl; then
6182
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6183
    elif test -x /usr/sbin/sysctl; then
6184
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6185
    else
6186
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6187
    fi
6188
    # And add a safety zone
6189
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6190
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6191
    ;;
6192
 
6193
  interix*)
6194
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6195
    lt_cv_sys_max_cmd_len=196608
6196
    ;;
6197
 
6198
  osf*)
6199
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6200
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6201
    # nice to cause kernel panics so lets avoid the loop below.
6202
    # First set a reasonable default.
6203
    lt_cv_sys_max_cmd_len=16384
6204
    #
6205
    if test -x /sbin/sysconfig; then
6206
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6207
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6208
      esac
6209
    fi
6210
    ;;
6211
  sco3.2v5*)
6212
    lt_cv_sys_max_cmd_len=102400
6213
    ;;
6214
  sysv5* | sco5v6* | sysv4.2uw2*)
6215
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6216
    if test -n "$kargmax"; then
6217
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6218
    else
6219
      lt_cv_sys_max_cmd_len=32768
6220
    fi
6221
    ;;
6222
  *)
6223
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6224
    if test -n "$lt_cv_sys_max_cmd_len"; then
6225
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6226
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6227
    else
6228
      # Make teststring a little bigger before we do anything with it.
6229
      # a 1K string should be a reasonable start.
6230
      for i in 1 2 3 4 5 6 7 8 ; do
6231
        teststring=$teststring$teststring
6232
      done
6233
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6234
      # If test is not a shell built-in, we'll probably end up computing a
6235
      # maximum length that is only half of the actual maximum length, but
6236
      # we can't tell.
6237
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6238
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6239
              test $i != 17 # 1/2 MB should be enough
6240
      do
6241
        i=`expr $i + 1`
6242
        teststring=$teststring$teststring
6243
      done
6244
      # Only check the string length outside the loop.
6245
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6246
      teststring=
6247
      # Add a significant safety factor because C++ compilers can tack on
6248
      # massive amounts of additional arguments before passing them to the
6249
      # linker.  It appears as though 1/2 is a usable value.
6250
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6251
    fi
6252
    ;;
6253
  esac
6254
 
6255
fi
6256
 
6257
if test -n $lt_cv_sys_max_cmd_len ; then
6258
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6259
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6260
else
6261
  { $as_echo "$as_me:$LINENO: result: none" >&5
6262
$as_echo "none" >&6; }
6263
fi
6264
max_cmd_len=$lt_cv_sys_max_cmd_len
6265
 
6266
 
6267
 
6268
 
6269
 
6270
 
6271
: ${CP="cp -f"}
6272
: ${MV="mv -f"}
6273
: ${RM="rm -f"}
6274
 
6275
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6276
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6277
# Try some XSI features
6278
xsi_shell=no
6279
( _lt_dummy="a/b/c"
6280
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6281
      = c,a/b,, \
6282
    && eval 'test $(( 1 + 1 )) -eq 2 \
6283
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6284
  && xsi_shell=yes
6285
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6286
$as_echo "$xsi_shell" >&6; }
6287
 
6288
 
6289
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6290
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6291
lt_shell_append=no
6292
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6293
    >/dev/null 2>&1 \
6294
  && lt_shell_append=yes
6295
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6296
$as_echo "$lt_shell_append" >&6; }
6297
 
6298
 
6299
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6300
  lt_unset=unset
6301
else
6302
  lt_unset=false
6303
fi
6304
 
6305
 
6306
 
6307
 
6308
 
6309
# test EBCDIC or ASCII
6310
case `echo X|tr X '\101'` in
6311
 A) # ASCII based system
6312
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6313
  lt_SP2NL='tr \040 \012'
6314
  lt_NL2SP='tr \015\012 \040\040'
6315
  ;;
6316
 *) # EBCDIC based system
6317
  lt_SP2NL='tr \100 \n'
6318
  lt_NL2SP='tr \r\n \100\100'
6319
  ;;
6320
esac
6321
 
6322
 
6323
 
6324
 
6325
 
6326
 
6327
 
6328
 
6329
 
6330
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6331
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6332
if test "${lt_cv_ld_reload_flag+set}" = set; then
6333
  $as_echo_n "(cached) " >&6
6334
else
6335
  lt_cv_ld_reload_flag='-r'
6336
fi
6337
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6338
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6339
reload_flag=$lt_cv_ld_reload_flag
6340
case $reload_flag in
6341
"" | " "*) ;;
6342
*) reload_flag=" $reload_flag" ;;
6343
esac
6344
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6345
case $host_os in
6346
  darwin*)
6347
    if test "$GCC" = yes; then
6348
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6349
    else
6350
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6351
    fi
6352
    ;;
6353
esac
6354
 
6355
 
6356
 
6357
 
6358
 
6359
 
6360
 
6361
 
6362
 
6363
if test -n "$ac_tool_prefix"; then
6364
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6365
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6366
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6367
$as_echo_n "checking for $ac_word... " >&6; }
6368
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6369
  $as_echo_n "(cached) " >&6
6370
else
6371
  if test -n "$OBJDUMP"; then
6372
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6373
else
6374
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375
for as_dir in $PATH
6376
do
6377
  IFS=$as_save_IFS
6378
  test -z "$as_dir" && as_dir=.
6379
  for ac_exec_ext in '' $ac_executable_extensions; do
6380
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6382
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383
    break 2
6384
  fi
6385
done
6386
done
6387
IFS=$as_save_IFS
6388
 
6389
fi
6390
fi
6391
OBJDUMP=$ac_cv_prog_OBJDUMP
6392
if test -n "$OBJDUMP"; then
6393
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6394
$as_echo "$OBJDUMP" >&6; }
6395
else
6396
  { $as_echo "$as_me:$LINENO: result: no" >&5
6397
$as_echo "no" >&6; }
6398
fi
6399
 
6400
 
6401
fi
6402
if test -z "$ac_cv_prog_OBJDUMP"; then
6403
  ac_ct_OBJDUMP=$OBJDUMP
6404
  # Extract the first word of "objdump", so it can be a program name with args.
6405
set dummy objdump; ac_word=$2
6406
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6407
$as_echo_n "checking for $ac_word... " >&6; }
6408
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6409
  $as_echo_n "(cached) " >&6
6410
else
6411
  if test -n "$ac_ct_OBJDUMP"; then
6412
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6413
else
6414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415
for as_dir in $PATH
6416
do
6417
  IFS=$as_save_IFS
6418
  test -z "$as_dir" && as_dir=.
6419
  for ac_exec_ext in '' $ac_executable_extensions; do
6420
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6422
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423
    break 2
6424
  fi
6425
done
6426
done
6427
IFS=$as_save_IFS
6428
 
6429
fi
6430
fi
6431
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6432
if test -n "$ac_ct_OBJDUMP"; then
6433
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6434
$as_echo "$ac_ct_OBJDUMP" >&6; }
6435
else
6436
  { $as_echo "$as_me:$LINENO: result: no" >&5
6437
$as_echo "no" >&6; }
6438
fi
6439
 
6440
  if test "x$ac_ct_OBJDUMP" = x; then
6441
    OBJDUMP="false"
6442
  else
6443
    case $cross_compiling:$ac_tool_warned in
6444
yes:)
6445
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6446
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447
ac_tool_warned=yes ;;
6448
esac
6449
    OBJDUMP=$ac_ct_OBJDUMP
6450
  fi
6451
else
6452
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6453
fi
6454
 
6455
test -z "$OBJDUMP" && OBJDUMP=objdump
6456
 
6457
 
6458
 
6459
 
6460
 
6461
 
6462
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6463
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6464
if test "${lt_cv_deplibs_check_method+set}" = set; then
6465
  $as_echo_n "(cached) " >&6
6466
else
6467
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6468
lt_cv_file_magic_test_file=
6469
lt_cv_deplibs_check_method='unknown'
6470
# Need to set the preceding variable on all platforms that support
6471
# interlibrary dependencies.
6472
# 'none' -- dependencies not supported.
6473
# `unknown' -- same as none, but documents that we really don't know.
6474
# 'pass_all' -- all dependencies passed with no checks.
6475
# 'test_compile' -- check by making test program.
6476
# 'file_magic [[regex]]' -- check by looking for files in library path
6477
# which responds to the $file_magic_cmd with a given extended regex.
6478
# If you have `file' or equivalent on your system and you're not sure
6479
# whether `pass_all' will *always* work, you probably want this one.
6480
 
6481
case $host_os in
6482
aix[4-9]*)
6483
  lt_cv_deplibs_check_method=pass_all
6484
  ;;
6485
 
6486
beos*)
6487
  lt_cv_deplibs_check_method=pass_all
6488
  ;;
6489
 
6490
bsdi[45]*)
6491
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6492
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6493
  lt_cv_file_magic_test_file=/shlib/libc.so
6494
  ;;
6495
 
6496
cygwin*)
6497
  # func_win32_libid is a shell function defined in ltmain.sh
6498
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6499
  lt_cv_file_magic_cmd='func_win32_libid'
6500
  ;;
6501
 
6502
mingw* | pw32*)
6503
  # Base MSYS/MinGW do not provide the 'file' command needed by
6504
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6505
  # unless we find 'file', for example because we are cross-compiling.
6506
  if ( file / ) >/dev/null 2>&1; then
6507
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6508
    lt_cv_file_magic_cmd='func_win32_libid'
6509
  else
6510
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6511
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6512
  fi
6513
  ;;
6514
 
6515
cegcc)
6516
  # use the weaker test based on 'objdump'. See mingw*.
6517
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6518
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6519
  ;;
6520
 
6521
darwin* | rhapsody*)
6522
  lt_cv_deplibs_check_method=pass_all
6523
  ;;
6524
 
6525
freebsd* | dragonfly*)
6526
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6527
    case $host_cpu in
6528
    i*86 )
6529
      # Not sure whether the presence of OpenBSD here was a mistake.
6530
      # Let's accept both of them until this is cleared up.
6531
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6532
      lt_cv_file_magic_cmd=/usr/bin/file
6533
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6534
      ;;
6535
    esac
6536
  else
6537
    lt_cv_deplibs_check_method=pass_all
6538
  fi
6539
  ;;
6540
 
6541
gnu*)
6542
  lt_cv_deplibs_check_method=pass_all
6543
  ;;
6544
 
6545
hpux10.20* | hpux11*)
6546
  lt_cv_file_magic_cmd=/usr/bin/file
6547
  case $host_cpu in
6548
  ia64*)
6549
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6550
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6551
    ;;
6552
  hppa*64*)
6553
    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]'
6554
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6555
    ;;
6556
  *)
6557
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6558
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6559
    ;;
6560
  esac
6561
  ;;
6562
 
6563
interix[3-9]*)
6564
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6565
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6566
  ;;
6567
 
6568
irix5* | irix6* | nonstopux*)
6569
  case $LD in
6570
  *-32|*"-32 ") libmagic=32-bit;;
6571
  *-n32|*"-n32 ") libmagic=N32;;
6572
  *-64|*"-64 ") libmagic=64-bit;;
6573
  *) libmagic=never-match;;
6574
  esac
6575
  lt_cv_deplibs_check_method=pass_all
6576
  ;;
6577
 
6578
# This must be Linux ELF.
6579
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6580
  lt_cv_deplibs_check_method=pass_all
6581
  ;;
6582
 
6583
netbsd*)
6584
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6585
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6586
  else
6587
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6588
  fi
6589
  ;;
6590
 
6591
newos6*)
6592
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6593
  lt_cv_file_magic_cmd=/usr/bin/file
6594
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6595
  ;;
6596
 
6597
*nto* | *qnx*)
6598
  lt_cv_deplibs_check_method=pass_all
6599
  ;;
6600
 
6601
openbsd*)
6602
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6603
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6604
  else
6605
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6606
  fi
6607
  ;;
6608
 
6609
osf3* | osf4* | osf5*)
6610
  lt_cv_deplibs_check_method=pass_all
6611
  ;;
6612
 
6613
rdos*)
6614
  lt_cv_deplibs_check_method=pass_all
6615
  ;;
6616
 
6617
solaris*)
6618
  lt_cv_deplibs_check_method=pass_all
6619
  ;;
6620
 
6621
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6622
  lt_cv_deplibs_check_method=pass_all
6623
  ;;
6624
 
6625
sysv4 | sysv4.3*)
6626
  case $host_vendor in
6627
  motorola)
6628
    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]'
6629
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6630
    ;;
6631
  ncr)
6632
    lt_cv_deplibs_check_method=pass_all
6633
    ;;
6634
  sequent)
6635
    lt_cv_file_magic_cmd='/bin/file'
6636
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6637
    ;;
6638
  sni)
6639
    lt_cv_file_magic_cmd='/bin/file'
6640
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6641
    lt_cv_file_magic_test_file=/lib/libc.so
6642
    ;;
6643
  siemens)
6644
    lt_cv_deplibs_check_method=pass_all
6645
    ;;
6646
  pc)
6647
    lt_cv_deplibs_check_method=pass_all
6648
    ;;
6649
  esac
6650
  ;;
6651
 
6652
tpf*)
6653
  lt_cv_deplibs_check_method=pass_all
6654
  ;;
6655
esac
6656
 
6657
fi
6658
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6659
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6660
file_magic_cmd=$lt_cv_file_magic_cmd
6661
deplibs_check_method=$lt_cv_deplibs_check_method
6662
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6663
 
6664
 
6665
 
6666
 
6667
 
6668
 
6669
 
6670
 
6671
 
6672
 
6673
 
6674
 
6675
if test -n "$ac_tool_prefix"; then
6676
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6677
set dummy ${ac_tool_prefix}ar; ac_word=$2
6678
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6679
$as_echo_n "checking for $ac_word... " >&6; }
6680
if test "${ac_cv_prog_AR+set}" = set; then
6681
  $as_echo_n "(cached) " >&6
6682
else
6683
  if test -n "$AR"; then
6684
  ac_cv_prog_AR="$AR" # Let the user override the test.
6685
else
6686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687
for as_dir in $PATH
6688
do
6689
  IFS=$as_save_IFS
6690
  test -z "$as_dir" && as_dir=.
6691
  for ac_exec_ext in '' $ac_executable_extensions; do
6692
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6694
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695
    break 2
6696
  fi
6697
done
6698
done
6699
IFS=$as_save_IFS
6700
 
6701
fi
6702
fi
6703
AR=$ac_cv_prog_AR
6704
if test -n "$AR"; then
6705
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6706
$as_echo "$AR" >&6; }
6707
else
6708
  { $as_echo "$as_me:$LINENO: result: no" >&5
6709
$as_echo "no" >&6; }
6710
fi
6711
 
6712
 
6713
fi
6714
if test -z "$ac_cv_prog_AR"; then
6715
  ac_ct_AR=$AR
6716
  # Extract the first word of "ar", so it can be a program name with args.
6717
set dummy ar; ac_word=$2
6718
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6719
$as_echo_n "checking for $ac_word... " >&6; }
6720
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6721
  $as_echo_n "(cached) " >&6
6722
else
6723
  if test -n "$ac_ct_AR"; then
6724
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6725
else
6726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727
for as_dir in $PATH
6728
do
6729
  IFS=$as_save_IFS
6730
  test -z "$as_dir" && as_dir=.
6731
  for ac_exec_ext in '' $ac_executable_extensions; do
6732
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733
    ac_cv_prog_ac_ct_AR="ar"
6734
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735
    break 2
6736
  fi
6737
done
6738
done
6739
IFS=$as_save_IFS
6740
 
6741
fi
6742
fi
6743
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6744
if test -n "$ac_ct_AR"; then
6745
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6746
$as_echo "$ac_ct_AR" >&6; }
6747
else
6748
  { $as_echo "$as_me:$LINENO: result: no" >&5
6749
$as_echo "no" >&6; }
6750
fi
6751
 
6752
  if test "x$ac_ct_AR" = x; then
6753
    AR="false"
6754
  else
6755
    case $cross_compiling:$ac_tool_warned in
6756
yes:)
6757
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6758
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759
ac_tool_warned=yes ;;
6760
esac
6761
    AR=$ac_ct_AR
6762
  fi
6763
else
6764
  AR="$ac_cv_prog_AR"
6765
fi
6766
 
6767
test -z "$AR" && AR=ar
6768
test -z "$AR_FLAGS" && AR_FLAGS=cru
6769
 
6770
 
6771
 
6772
 
6773
 
6774
 
6775
 
6776
 
6777
 
6778
 
6779
 
6780
if test -n "$ac_tool_prefix"; then
6781
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6782
set dummy ${ac_tool_prefix}strip; ac_word=$2
6783
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6784
$as_echo_n "checking for $ac_word... " >&6; }
6785
if test "${ac_cv_prog_STRIP+set}" = set; then
6786
  $as_echo_n "(cached) " >&6
6787
else
6788
  if test -n "$STRIP"; then
6789
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6790
else
6791
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792
for as_dir in $PATH
6793
do
6794
  IFS=$as_save_IFS
6795
  test -z "$as_dir" && as_dir=.
6796
  for ac_exec_ext in '' $ac_executable_extensions; do
6797
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6799
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800
    break 2
6801
  fi
6802
done
6803
done
6804
IFS=$as_save_IFS
6805
 
6806
fi
6807
fi
6808
STRIP=$ac_cv_prog_STRIP
6809
if test -n "$STRIP"; then
6810
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6811
$as_echo "$STRIP" >&6; }
6812
else
6813
  { $as_echo "$as_me:$LINENO: result: no" >&5
6814
$as_echo "no" >&6; }
6815
fi
6816
 
6817
 
6818
fi
6819
if test -z "$ac_cv_prog_STRIP"; then
6820
  ac_ct_STRIP=$STRIP
6821
  # Extract the first word of "strip", so it can be a program name with args.
6822
set dummy strip; ac_word=$2
6823
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6824
$as_echo_n "checking for $ac_word... " >&6; }
6825
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6826
  $as_echo_n "(cached) " >&6
6827
else
6828
  if test -n "$ac_ct_STRIP"; then
6829
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6830
else
6831
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832
for as_dir in $PATH
6833
do
6834
  IFS=$as_save_IFS
6835
  test -z "$as_dir" && as_dir=.
6836
  for ac_exec_ext in '' $ac_executable_extensions; do
6837
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838
    ac_cv_prog_ac_ct_STRIP="strip"
6839
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840
    break 2
6841
  fi
6842
done
6843
done
6844
IFS=$as_save_IFS
6845
 
6846
fi
6847
fi
6848
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6849
if test -n "$ac_ct_STRIP"; then
6850
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6851
$as_echo "$ac_ct_STRIP" >&6; }
6852
else
6853
  { $as_echo "$as_me:$LINENO: result: no" >&5
6854
$as_echo "no" >&6; }
6855
fi
6856
 
6857
  if test "x$ac_ct_STRIP" = x; then
6858
    STRIP=":"
6859
  else
6860
    case $cross_compiling:$ac_tool_warned in
6861
yes:)
6862
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6863
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864
ac_tool_warned=yes ;;
6865
esac
6866
    STRIP=$ac_ct_STRIP
6867
  fi
6868
else
6869
  STRIP="$ac_cv_prog_STRIP"
6870
fi
6871
 
6872
test -z "$STRIP" && STRIP=:
6873
 
6874
 
6875
 
6876
 
6877
 
6878
 
6879
if test -n "$ac_tool_prefix"; then
6880
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6881
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6882
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6883
$as_echo_n "checking for $ac_word... " >&6; }
6884
if test "${ac_cv_prog_RANLIB+set}" = set; then
6885
  $as_echo_n "(cached) " >&6
6886
else
6887
  if test -n "$RANLIB"; then
6888
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6889
else
6890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891
for as_dir in $PATH
6892
do
6893
  IFS=$as_save_IFS
6894
  test -z "$as_dir" && as_dir=.
6895
  for ac_exec_ext in '' $ac_executable_extensions; do
6896
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6898
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899
    break 2
6900
  fi
6901
done
6902
done
6903
IFS=$as_save_IFS
6904
 
6905
fi
6906
fi
6907
RANLIB=$ac_cv_prog_RANLIB
6908
if test -n "$RANLIB"; then
6909
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6910
$as_echo "$RANLIB" >&6; }
6911
else
6912
  { $as_echo "$as_me:$LINENO: result: no" >&5
6913
$as_echo "no" >&6; }
6914
fi
6915
 
6916
 
6917
fi
6918
if test -z "$ac_cv_prog_RANLIB"; then
6919
  ac_ct_RANLIB=$RANLIB
6920
  # Extract the first word of "ranlib", so it can be a program name with args.
6921
set dummy ranlib; ac_word=$2
6922
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6923
$as_echo_n "checking for $ac_word... " >&6; }
6924
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6925
  $as_echo_n "(cached) " >&6
6926
else
6927
  if test -n "$ac_ct_RANLIB"; then
6928
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6929
else
6930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931
for as_dir in $PATH
6932
do
6933
  IFS=$as_save_IFS
6934
  test -z "$as_dir" && as_dir=.
6935
  for ac_exec_ext in '' $ac_executable_extensions; do
6936
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6938
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939
    break 2
6940
  fi
6941
done
6942
done
6943
IFS=$as_save_IFS
6944
 
6945
fi
6946
fi
6947
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6948
if test -n "$ac_ct_RANLIB"; then
6949
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6950
$as_echo "$ac_ct_RANLIB" >&6; }
6951
else
6952
  { $as_echo "$as_me:$LINENO: result: no" >&5
6953
$as_echo "no" >&6; }
6954
fi
6955
 
6956
  if test "x$ac_ct_RANLIB" = x; then
6957
    RANLIB=":"
6958
  else
6959
    case $cross_compiling:$ac_tool_warned in
6960
yes:)
6961
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6962
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6963
ac_tool_warned=yes ;;
6964
esac
6965
    RANLIB=$ac_ct_RANLIB
6966
  fi
6967
else
6968
  RANLIB="$ac_cv_prog_RANLIB"
6969
fi
6970
 
6971
test -z "$RANLIB" && RANLIB=:
6972
 
6973
 
6974
 
6975
 
6976
 
6977
 
6978
# Determine commands to create old-style static archives.
6979
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6980
old_postinstall_cmds='chmod 644 $oldlib'
6981
old_postuninstall_cmds=
6982
 
6983
if test -n "$RANLIB"; then
6984
  case $host_os in
6985
  openbsd*)
6986
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6987
    ;;
6988
  *)
6989
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6990
    ;;
6991
  esac
6992
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6993
fi
6994
 
6995
 
6996
 
6997
 
6998
 
6999
 
7000
 
7001
 
7002
 
7003
 
7004
 
7005
 
7006
 
7007
 
7008
 
7009
 
7010
 
7011
 
7012
 
7013
 
7014
 
7015
 
7016
 
7017
 
7018
 
7019
 
7020
 
7021
 
7022
 
7023
 
7024
 
7025
 
7026
 
7027
 
7028
# If no C compiler was specified, use CC.
7029
LTCC=${LTCC-"$CC"}
7030
 
7031
# If no C compiler flags were specified, use CFLAGS.
7032
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7033
 
7034
# Allow CC to be a program name with arguments.
7035
compiler=$CC
7036
 
7037
 
7038
# Check for command to grab the raw symbol name followed by C symbol from nm.
7039
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7040
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7041
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7042
  $as_echo_n "(cached) " >&6
7043
else
7044
 
7045
# These are sane defaults that work on at least a few old systems.
7046
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7047
 
7048
# Character class describing NM global symbol codes.
7049
symcode='[BCDEGRST]'
7050
 
7051
# Regexp to match symbols that can be accessed directly from C.
7052
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7053
 
7054
# Define system-specific variables.
7055
case $host_os in
7056
aix*)
7057
  symcode='[BCDT]'
7058
  ;;
7059
cygwin* | mingw* | pw32* | cegcc*)
7060
  symcode='[ABCDGISTW]'
7061
  ;;
7062
hpux*)
7063
  if test "$host_cpu" = ia64; then
7064
    symcode='[ABCDEGRST]'
7065
  fi
7066
  ;;
7067
irix* | nonstopux*)
7068
  symcode='[BCDEGRST]'
7069
  ;;
7070
osf*)
7071
  symcode='[BCDEGQRST]'
7072
  ;;
7073
solaris*)
7074
  symcode='[BDRT]'
7075
  ;;
7076
sco3.2v5*)
7077
  symcode='[DT]'
7078
  ;;
7079
sysv4.2uw2*)
7080
  symcode='[DT]'
7081
  ;;
7082
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7083
  symcode='[ABDT]'
7084
  ;;
7085
sysv4)
7086
  symcode='[DFNSTU]'
7087
  ;;
7088
esac
7089
 
7090
# If we're using GNU nm, then use its standard symbol codes.
7091
case `$NM -V 2>&1` in
7092
*GNU* | *'with BFD'*)
7093
  symcode='[ABCDGIRSTW]' ;;
7094
esac
7095
 
7096
# Transform an extracted symbol line into a proper C declaration.
7097
# Some systems (esp. on ia64) link data and code symbols differently,
7098
# so use this general approach.
7099
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7100
 
7101
# Transform an extracted symbol line into symbol name and symbol address
7102
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7103
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'"
7104
 
7105
# Handle CRLF in mingw tool chain
7106
opt_cr=
7107
case $build_os in
7108
mingw*)
7109
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7110
  ;;
7111
esac
7112
 
7113
# Try without a prefix underscore, then with it.
7114
for ac_symprfx in "" "_"; do
7115
 
7116
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7117
  symxfrm="\\1 $ac_symprfx\\2 \\2"
7118
 
7119
  # Write the raw and C identifiers.
7120
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7121
    # Fake it for dumpbin and say T for any non-static function
7122
    # and D for any global variable.
7123
    # Also find C++ and __fastcall symbols from MSVC++,
7124
    # which start with @ or ?.
7125
    lt_cv_sys_global_symbol_pipe="$AWK '"\
7126
"     {last_section=section; section=\$ 3};"\
7127
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7128
"     \$ 0!~/External *\|/{next};"\
7129
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7130
"     {if(hide[section]) next};"\
7131
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7132
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7133
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7134
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7135
"     ' prfx=^$ac_symprfx"
7136
  else
7137
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7138
  fi
7139
 
7140
  # Check to see that the pipe works correctly.
7141
  pipe_works=no
7142
 
7143
  rm -f conftest*
7144
  cat > conftest.$ac_ext <<_LT_EOF
7145
#ifdef __cplusplus
7146
extern "C" {
7147
#endif
7148
char nm_test_var;
7149
void nm_test_func(void);
7150
void nm_test_func(void){}
7151
#ifdef __cplusplus
7152
}
7153
#endif
7154
int main(){nm_test_var='a';nm_test_func();return(0);}
7155
_LT_EOF
7156
 
7157
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158
  (eval $ac_compile) 2>&5
7159
  ac_status=$?
7160
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161
  (exit $ac_status); }; then
7162
    # Now try to grab the symbols.
7163
    nlist=conftest.nm
7164
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7165
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7166
  ac_status=$?
7167
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168
  (exit $ac_status); } && test -s "$nlist"; then
7169
      # Try sorting and uniquifying the output.
7170
      if sort "$nlist" | uniq > "$nlist"T; then
7171
        mv -f "$nlist"T "$nlist"
7172
      else
7173
        rm -f "$nlist"T
7174
      fi
7175
 
7176
      # Make sure that we snagged all the symbols we need.
7177
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7178
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7179
          cat <<_LT_EOF > conftest.$ac_ext
7180
#ifdef __cplusplus
7181
extern "C" {
7182
#endif
7183
 
7184
_LT_EOF
7185
          # Now generate the symbol file.
7186
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7187
 
7188
          cat <<_LT_EOF >> conftest.$ac_ext
7189
 
7190
/* The mapping between symbol names and symbols.  */
7191
const struct {
7192
  const char *name;
7193
  void       *address;
7194
}
7195
lt__PROGRAM__LTX_preloaded_symbols[] =
7196
{
7197
  { "@PROGRAM@", (void *) 0 },
7198
_LT_EOF
7199
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7200
          cat <<\_LT_EOF >> conftest.$ac_ext
7201
  {0, (void *) 0}
7202
};
7203
 
7204
/* This works around a problem in FreeBSD linker */
7205
#ifdef FREEBSD_WORKAROUND
7206
static const void *lt_preloaded_setup() {
7207
  return lt__PROGRAM__LTX_preloaded_symbols;
7208
}
7209
#endif
7210
 
7211
#ifdef __cplusplus
7212
}
7213
#endif
7214
_LT_EOF
7215
          # Now try linking the two files.
7216
          mv conftest.$ac_objext conftstm.$ac_objext
7217
          lt_save_LIBS="$LIBS"
7218
          lt_save_CFLAGS="$CFLAGS"
7219
          LIBS="conftstm.$ac_objext"
7220
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7221
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7222
  (eval $ac_link) 2>&5
7223
  ac_status=$?
7224
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7226
            pipe_works=yes
7227
          fi
7228
          LIBS="$lt_save_LIBS"
7229
          CFLAGS="$lt_save_CFLAGS"
7230
        else
7231
          echo "cannot find nm_test_func in $nlist" >&5
7232
        fi
7233
      else
7234
        echo "cannot find nm_test_var in $nlist" >&5
7235
      fi
7236
    else
7237
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7238
    fi
7239
  else
7240
    echo "$progname: failed program was:" >&5
7241
    cat conftest.$ac_ext >&5
7242
  fi
7243
  rm -rf conftest* conftst*
7244
 
7245
  # Do not use the global_symbol_pipe unless it works.
7246
  if test "$pipe_works" = yes; then
7247
    break
7248
  else
7249
    lt_cv_sys_global_symbol_pipe=
7250
  fi
7251
done
7252
 
7253
fi
7254
 
7255
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7256
  lt_cv_sys_global_symbol_to_cdecl=
7257
fi
7258
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7259
  { $as_echo "$as_me:$LINENO: result: failed" >&5
7260
$as_echo "failed" >&6; }
7261
else
7262
  { $as_echo "$as_me:$LINENO: result: ok" >&5
7263
$as_echo "ok" >&6; }
7264
fi
7265
 
7266
 
7267
 
7268
 
7269
 
7270
 
7271
 
7272
 
7273
 
7274
 
7275
 
7276
 
7277
 
7278
 
7279
 
7280
 
7281
 
7282
 
7283
 
7284
 
7285
 
7286
 
7287
 
7288
# Check whether --enable-libtool-lock was given.
7289
if test "${enable_libtool_lock+set}" = set; then
7290
  enableval=$enable_libtool_lock;
7291
fi
7292
 
7293
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7294
 
7295
# Some flags need to be propagated to the compiler or linker for good
7296
# libtool support.
7297
case $host in
7298
ia64-*-hpux*)
7299
  # Find out which ABI we are using.
7300
  echo 'int i;' > conftest.$ac_ext
7301
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7302
  (eval $ac_compile) 2>&5
7303
  ac_status=$?
7304
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305
  (exit $ac_status); }; then
7306
    case `/usr/bin/file conftest.$ac_objext` in
7307
      *ELF-32*)
7308
        HPUX_IA64_MODE="32"
7309
        ;;
7310
      *ELF-64*)
7311
        HPUX_IA64_MODE="64"
7312
        ;;
7313
    esac
7314
  fi
7315
  rm -rf conftest*
7316
  ;;
7317
*-*-irix6*)
7318
  # Find out which ABI we are using.
7319
  echo '#line 7319 "configure"' > conftest.$ac_ext
7320
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321
  (eval $ac_compile) 2>&5
7322
  ac_status=$?
7323
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324
  (exit $ac_status); }; then
7325
    if test "$lt_cv_prog_gnu_ld" = yes; then
7326
      case `/usr/bin/file conftest.$ac_objext` in
7327
        *32-bit*)
7328
          LD="${LD-ld} -melf32bsmip"
7329
          ;;
7330
        *N32*)
7331
          LD="${LD-ld} -melf32bmipn32"
7332
          ;;
7333
        *64-bit*)
7334
          LD="${LD-ld} -melf64bmip"
7335
        ;;
7336
      esac
7337
    else
7338
      case `/usr/bin/file conftest.$ac_objext` in
7339
        *32-bit*)
7340
          LD="${LD-ld} -32"
7341
          ;;
7342
        *N32*)
7343
          LD="${LD-ld} -n32"
7344
          ;;
7345
        *64-bit*)
7346
          LD="${LD-ld} -64"
7347
          ;;
7348
      esac
7349
    fi
7350
  fi
7351
  rm -rf conftest*
7352
  ;;
7353
 
7354
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7355
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7356
  # Find out which ABI we are using.
7357
  echo 'int i;' > conftest.$ac_ext
7358
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7359
  (eval $ac_compile) 2>&5
7360
  ac_status=$?
7361
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362
  (exit $ac_status); }; then
7363
    case `/usr/bin/file conftest.o` in
7364
      *32-bit*)
7365
        case $host in
7366
          x86_64-*kfreebsd*-gnu)
7367
            LD="${LD-ld} -m elf_i386_fbsd"
7368
            ;;
7369
          x86_64-*linux*)
7370
            LD="${LD-ld} -m elf_i386"
7371
            ;;
7372
          ppc64-*linux*|powerpc64-*linux*)
7373
            LD="${LD-ld} -m elf32ppclinux"
7374
            ;;
7375
          s390x-*linux*)
7376
            LD="${LD-ld} -m elf_s390"
7377
            ;;
7378
          sparc64-*linux*)
7379
            LD="${LD-ld} -m elf32_sparc"
7380
            ;;
7381
        esac
7382
        ;;
7383
      *64-bit*)
7384
        case $host in
7385
          x86_64-*kfreebsd*-gnu)
7386
            LD="${LD-ld} -m elf_x86_64_fbsd"
7387
            ;;
7388
          x86_64-*linux*)
7389
            LD="${LD-ld} -m elf_x86_64"
7390
            ;;
7391
          ppc*-*linux*|powerpc*-*linux*)
7392
            LD="${LD-ld} -m elf64ppc"
7393
            ;;
7394
          s390*-*linux*|s390*-*tpf*)
7395
            LD="${LD-ld} -m elf64_s390"
7396
            ;;
7397
          sparc*-*linux*)
7398
            LD="${LD-ld} -m elf64_sparc"
7399
            ;;
7400
        esac
7401
        ;;
7402
    esac
7403
  fi
7404
  rm -rf conftest*
7405
  ;;
7406
 
7407
*-*-sco3.2v5*)
7408
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7409
  SAVE_CFLAGS="$CFLAGS"
7410
  CFLAGS="$CFLAGS -belf"
7411
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7412
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7413
if test "${lt_cv_cc_needs_belf+set}" = set; then
7414
  $as_echo_n "(cached) " >&6
7415
else
7416
  ac_ext=c
7417
ac_cpp='$CPP $CPPFLAGS'
7418
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7419
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7420
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7421
 
7422
     cat >conftest.$ac_ext <<_ACEOF
7423
/* confdefs.h.  */
7424
_ACEOF
7425
cat confdefs.h >>conftest.$ac_ext
7426
cat >>conftest.$ac_ext <<_ACEOF
7427
/* end confdefs.h.  */
7428
 
7429
int
7430
main ()
7431
{
7432
 
7433
  ;
7434
  return 0;
7435
}
7436
_ACEOF
7437
rm -f conftest.$ac_objext conftest$ac_exeext
7438
if { (ac_try="$ac_link"
7439
case "(($ac_try" in
7440
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7441
  *) ac_try_echo=$ac_try;;
7442
esac
7443
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7444
$as_echo "$ac_try_echo") >&5
7445
  (eval "$ac_link") 2>conftest.er1
7446
  ac_status=$?
7447
  grep -v '^ *+' conftest.er1 >conftest.err
7448
  rm -f conftest.er1
7449
  cat conftest.err >&5
7450
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451
  (exit $ac_status); } && {
7452
         test -z "$ac_c_werror_flag" ||
7453
         test ! -s conftest.err
7454
       } && test -s conftest$ac_exeext && {
7455
         test "$cross_compiling" = yes ||
7456
         $as_test_x conftest$ac_exeext
7457
       }; then
7458
  lt_cv_cc_needs_belf=yes
7459
else
7460
  $as_echo "$as_me: failed program was:" >&5
7461
sed 's/^/| /' conftest.$ac_ext >&5
7462
 
7463
        lt_cv_cc_needs_belf=no
7464
fi
7465
 
7466
rm -rf conftest.dSYM
7467
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7468
      conftest$ac_exeext conftest.$ac_ext
7469
     ac_ext=c
7470
ac_cpp='$CPP $CPPFLAGS'
7471
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7472
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7473
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7474
 
7475
fi
7476
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7477
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7478
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7479
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7480
    CFLAGS="$SAVE_CFLAGS"
7481
  fi
7482
  ;;
7483
sparc*-*solaris*)
7484
  # Find out which ABI we are using.
7485
  echo 'int i;' > conftest.$ac_ext
7486
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7487
  (eval $ac_compile) 2>&5
7488
  ac_status=$?
7489
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490
  (exit $ac_status); }; then
7491
    case `/usr/bin/file conftest.o` in
7492
    *64-bit*)
7493
      case $lt_cv_prog_gnu_ld in
7494
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7495
      *)
7496
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7497
          LD="${LD-ld} -64"
7498
        fi
7499
        ;;
7500
      esac
7501
      ;;
7502
    esac
7503
  fi
7504
  rm -rf conftest*
7505
  ;;
7506
esac
7507
 
7508
need_locks="$enable_libtool_lock"
7509
 
7510
 
7511
  case $host_os in
7512
    rhapsody* | darwin*)
7513
    if test -n "$ac_tool_prefix"; then
7514
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7515
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7516
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7517
$as_echo_n "checking for $ac_word... " >&6; }
7518
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7519
  $as_echo_n "(cached) " >&6
7520
else
7521
  if test -n "$DSYMUTIL"; then
7522
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7523
else
7524
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525
for as_dir in $PATH
7526
do
7527
  IFS=$as_save_IFS
7528
  test -z "$as_dir" && as_dir=.
7529
  for ac_exec_ext in '' $ac_executable_extensions; do
7530
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7532
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533
    break 2
7534
  fi
7535
done
7536
done
7537
IFS=$as_save_IFS
7538
 
7539
fi
7540
fi
7541
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7542
if test -n "$DSYMUTIL"; then
7543
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7544
$as_echo "$DSYMUTIL" >&6; }
7545
else
7546
  { $as_echo "$as_me:$LINENO: result: no" >&5
7547
$as_echo "no" >&6; }
7548
fi
7549
 
7550
 
7551
fi
7552
if test -z "$ac_cv_prog_DSYMUTIL"; then
7553
  ac_ct_DSYMUTIL=$DSYMUTIL
7554
  # Extract the first word of "dsymutil", so it can be a program name with args.
7555
set dummy dsymutil; ac_word=$2
7556
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7557
$as_echo_n "checking for $ac_word... " >&6; }
7558
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7559
  $as_echo_n "(cached) " >&6
7560
else
7561
  if test -n "$ac_ct_DSYMUTIL"; then
7562
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7563
else
7564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565
for as_dir in $PATH
7566
do
7567
  IFS=$as_save_IFS
7568
  test -z "$as_dir" && as_dir=.
7569
  for ac_exec_ext in '' $ac_executable_extensions; do
7570
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7572
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573
    break 2
7574
  fi
7575
done
7576
done
7577
IFS=$as_save_IFS
7578
 
7579
fi
7580
fi
7581
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7582
if test -n "$ac_ct_DSYMUTIL"; then
7583
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7584
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7585
else
7586
  { $as_echo "$as_me:$LINENO: result: no" >&5
7587
$as_echo "no" >&6; }
7588
fi
7589
 
7590
  if test "x$ac_ct_DSYMUTIL" = x; then
7591
    DSYMUTIL=":"
7592
  else
7593
    case $cross_compiling:$ac_tool_warned in
7594
yes:)
7595
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7596
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597
ac_tool_warned=yes ;;
7598
esac
7599
    DSYMUTIL=$ac_ct_DSYMUTIL
7600
  fi
7601
else
7602
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7603
fi
7604
 
7605
    if test -n "$ac_tool_prefix"; then
7606
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7607
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7608
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7609
$as_echo_n "checking for $ac_word... " >&6; }
7610
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7611
  $as_echo_n "(cached) " >&6
7612
else
7613
  if test -n "$NMEDIT"; then
7614
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7615
else
7616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617
for as_dir in $PATH
7618
do
7619
  IFS=$as_save_IFS
7620
  test -z "$as_dir" && as_dir=.
7621
  for ac_exec_ext in '' $ac_executable_extensions; do
7622
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7623
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7624
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7625
    break 2
7626
  fi
7627
done
7628
done
7629
IFS=$as_save_IFS
7630
 
7631
fi
7632
fi
7633
NMEDIT=$ac_cv_prog_NMEDIT
7634
if test -n "$NMEDIT"; then
7635
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7636
$as_echo "$NMEDIT" >&6; }
7637
else
7638
  { $as_echo "$as_me:$LINENO: result: no" >&5
7639
$as_echo "no" >&6; }
7640
fi
7641
 
7642
 
7643
fi
7644
if test -z "$ac_cv_prog_NMEDIT"; then
7645
  ac_ct_NMEDIT=$NMEDIT
7646
  # Extract the first word of "nmedit", so it can be a program name with args.
7647
set dummy nmedit; ac_word=$2
7648
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7649
$as_echo_n "checking for $ac_word... " >&6; }
7650
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7651
  $as_echo_n "(cached) " >&6
7652
else
7653
  if test -n "$ac_ct_NMEDIT"; then
7654
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7655
else
7656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657
for as_dir in $PATH
7658
do
7659
  IFS=$as_save_IFS
7660
  test -z "$as_dir" && as_dir=.
7661
  for ac_exec_ext in '' $ac_executable_extensions; do
7662
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7663
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7664
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7665
    break 2
7666
  fi
7667
done
7668
done
7669
IFS=$as_save_IFS
7670
 
7671
fi
7672
fi
7673
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7674
if test -n "$ac_ct_NMEDIT"; then
7675
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7676
$as_echo "$ac_ct_NMEDIT" >&6; }
7677
else
7678
  { $as_echo "$as_me:$LINENO: result: no" >&5
7679
$as_echo "no" >&6; }
7680
fi
7681
 
7682
  if test "x$ac_ct_NMEDIT" = x; then
7683
    NMEDIT=":"
7684
  else
7685
    case $cross_compiling:$ac_tool_warned in
7686
yes:)
7687
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7688
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7689
ac_tool_warned=yes ;;
7690
esac
7691
    NMEDIT=$ac_ct_NMEDIT
7692
  fi
7693
else
7694
  NMEDIT="$ac_cv_prog_NMEDIT"
7695
fi
7696
 
7697
    if test -n "$ac_tool_prefix"; then
7698
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7699
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7700
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7701
$as_echo_n "checking for $ac_word... " >&6; }
7702
if test "${ac_cv_prog_LIPO+set}" = set; then
7703
  $as_echo_n "(cached) " >&6
7704
else
7705
  if test -n "$LIPO"; then
7706
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7707
else
7708
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709
for as_dir in $PATH
7710
do
7711
  IFS=$as_save_IFS
7712
  test -z "$as_dir" && as_dir=.
7713
  for ac_exec_ext in '' $ac_executable_extensions; do
7714
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7716
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717
    break 2
7718
  fi
7719
done
7720
done
7721
IFS=$as_save_IFS
7722
 
7723
fi
7724
fi
7725
LIPO=$ac_cv_prog_LIPO
7726
if test -n "$LIPO"; then
7727
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7728
$as_echo "$LIPO" >&6; }
7729
else
7730
  { $as_echo "$as_me:$LINENO: result: no" >&5
7731
$as_echo "no" >&6; }
7732
fi
7733
 
7734
 
7735
fi
7736
if test -z "$ac_cv_prog_LIPO"; then
7737
  ac_ct_LIPO=$LIPO
7738
  # Extract the first word of "lipo", so it can be a program name with args.
7739
set dummy lipo; ac_word=$2
7740
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7741
$as_echo_n "checking for $ac_word... " >&6; }
7742
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7743
  $as_echo_n "(cached) " >&6
7744
else
7745
  if test -n "$ac_ct_LIPO"; then
7746
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7747
else
7748
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749
for as_dir in $PATH
7750
do
7751
  IFS=$as_save_IFS
7752
  test -z "$as_dir" && as_dir=.
7753
  for ac_exec_ext in '' $ac_executable_extensions; do
7754
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755
    ac_cv_prog_ac_ct_LIPO="lipo"
7756
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757
    break 2
7758
  fi
7759
done
7760
done
7761
IFS=$as_save_IFS
7762
 
7763
fi
7764
fi
7765
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7766
if test -n "$ac_ct_LIPO"; then
7767
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7768
$as_echo "$ac_ct_LIPO" >&6; }
7769
else
7770
  { $as_echo "$as_me:$LINENO: result: no" >&5
7771
$as_echo "no" >&6; }
7772
fi
7773
 
7774
  if test "x$ac_ct_LIPO" = x; then
7775
    LIPO=":"
7776
  else
7777
    case $cross_compiling:$ac_tool_warned in
7778
yes:)
7779
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7780
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7781
ac_tool_warned=yes ;;
7782
esac
7783
    LIPO=$ac_ct_LIPO
7784
  fi
7785
else
7786
  LIPO="$ac_cv_prog_LIPO"
7787
fi
7788
 
7789
    if test -n "$ac_tool_prefix"; then
7790
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7791
set dummy ${ac_tool_prefix}otool; ac_word=$2
7792
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7793
$as_echo_n "checking for $ac_word... " >&6; }
7794
if test "${ac_cv_prog_OTOOL+set}" = set; then
7795
  $as_echo_n "(cached) " >&6
7796
else
7797
  if test -n "$OTOOL"; then
7798
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7799
else
7800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801
for as_dir in $PATH
7802
do
7803
  IFS=$as_save_IFS
7804
  test -z "$as_dir" && as_dir=.
7805
  for ac_exec_ext in '' $ac_executable_extensions; do
7806
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7808
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809
    break 2
7810
  fi
7811
done
7812
done
7813
IFS=$as_save_IFS
7814
 
7815
fi
7816
fi
7817
OTOOL=$ac_cv_prog_OTOOL
7818
if test -n "$OTOOL"; then
7819
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7820
$as_echo "$OTOOL" >&6; }
7821
else
7822
  { $as_echo "$as_me:$LINENO: result: no" >&5
7823
$as_echo "no" >&6; }
7824
fi
7825
 
7826
 
7827
fi
7828
if test -z "$ac_cv_prog_OTOOL"; then
7829
  ac_ct_OTOOL=$OTOOL
7830
  # Extract the first word of "otool", so it can be a program name with args.
7831
set dummy otool; ac_word=$2
7832
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7833
$as_echo_n "checking for $ac_word... " >&6; }
7834
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7835
  $as_echo_n "(cached) " >&6
7836
else
7837
  if test -n "$ac_ct_OTOOL"; then
7838
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7839
else
7840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841
for as_dir in $PATH
7842
do
7843
  IFS=$as_save_IFS
7844
  test -z "$as_dir" && as_dir=.
7845
  for ac_exec_ext in '' $ac_executable_extensions; do
7846
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7847
    ac_cv_prog_ac_ct_OTOOL="otool"
7848
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7849
    break 2
7850
  fi
7851
done
7852
done
7853
IFS=$as_save_IFS
7854
 
7855
fi
7856
fi
7857
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7858
if test -n "$ac_ct_OTOOL"; then
7859
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7860
$as_echo "$ac_ct_OTOOL" >&6; }
7861
else
7862
  { $as_echo "$as_me:$LINENO: result: no" >&5
7863
$as_echo "no" >&6; }
7864
fi
7865
 
7866
  if test "x$ac_ct_OTOOL" = x; then
7867
    OTOOL=":"
7868
  else
7869
    case $cross_compiling:$ac_tool_warned in
7870
yes:)
7871
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7872
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7873
ac_tool_warned=yes ;;
7874
esac
7875
    OTOOL=$ac_ct_OTOOL
7876
  fi
7877
else
7878
  OTOOL="$ac_cv_prog_OTOOL"
7879
fi
7880
 
7881
    if test -n "$ac_tool_prefix"; then
7882
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7883
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7884
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7885
$as_echo_n "checking for $ac_word... " >&6; }
7886
if test "${ac_cv_prog_OTOOL64+set}" = set; then
7887
  $as_echo_n "(cached) " >&6
7888
else
7889
  if test -n "$OTOOL64"; then
7890
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7891
else
7892
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893
for as_dir in $PATH
7894
do
7895
  IFS=$as_save_IFS
7896
  test -z "$as_dir" && as_dir=.
7897
  for ac_exec_ext in '' $ac_executable_extensions; do
7898
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7900
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7901
    break 2
7902
  fi
7903
done
7904
done
7905
IFS=$as_save_IFS
7906
 
7907
fi
7908
fi
7909
OTOOL64=$ac_cv_prog_OTOOL64
7910
if test -n "$OTOOL64"; then
7911
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7912
$as_echo "$OTOOL64" >&6; }
7913
else
7914
  { $as_echo "$as_me:$LINENO: result: no" >&5
7915
$as_echo "no" >&6; }
7916
fi
7917
 
7918
 
7919
fi
7920
if test -z "$ac_cv_prog_OTOOL64"; then
7921
  ac_ct_OTOOL64=$OTOOL64
7922
  # Extract the first word of "otool64", so it can be a program name with args.
7923
set dummy otool64; ac_word=$2
7924
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7925
$as_echo_n "checking for $ac_word... " >&6; }
7926
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7927
  $as_echo_n "(cached) " >&6
7928
else
7929
  if test -n "$ac_ct_OTOOL64"; then
7930
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7931
else
7932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933
for as_dir in $PATH
7934
do
7935
  IFS=$as_save_IFS
7936
  test -z "$as_dir" && as_dir=.
7937
  for ac_exec_ext in '' $ac_executable_extensions; do
7938
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7940
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7941
    break 2
7942
  fi
7943
done
7944
done
7945
IFS=$as_save_IFS
7946
 
7947
fi
7948
fi
7949
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7950
if test -n "$ac_ct_OTOOL64"; then
7951
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7952
$as_echo "$ac_ct_OTOOL64" >&6; }
7953
else
7954
  { $as_echo "$as_me:$LINENO: result: no" >&5
7955
$as_echo "no" >&6; }
7956
fi
7957
 
7958
  if test "x$ac_ct_OTOOL64" = x; then
7959
    OTOOL64=":"
7960
  else
7961
    case $cross_compiling:$ac_tool_warned in
7962
yes:)
7963
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7964
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7965
ac_tool_warned=yes ;;
7966
esac
7967
    OTOOL64=$ac_ct_OTOOL64
7968
  fi
7969
else
7970
  OTOOL64="$ac_cv_prog_OTOOL64"
7971
fi
7972
 
7973
 
7974
 
7975
 
7976
 
7977
 
7978
 
7979
 
7980
 
7981
 
7982
 
7983
 
7984
 
7985
 
7986
 
7987
 
7988
 
7989
 
7990
 
7991
 
7992
 
7993
 
7994
 
7995
 
7996
 
7997
 
7998
 
7999
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8000
$as_echo_n "checking for -single_module linker flag... " >&6; }
8001
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8002
  $as_echo_n "(cached) " >&6
8003
else
8004
  lt_cv_apple_cc_single_mod=no
8005
      if test -z "${LT_MULTI_MODULE}"; then
8006
        # By default we will add the -single_module flag. You can override
8007
        # by either setting the environment variable LT_MULTI_MODULE
8008
        # non-empty at configure time, or by adding -multi_module to the
8009
        # link flags.
8010
        rm -rf libconftest.dylib*
8011
        echo "int foo(void){return 1;}" > conftest.c
8012
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8013
-dynamiclib -Wl,-single_module conftest.c" >&5
8014
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8015
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8016
        _lt_result=$?
8017
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8018
          lt_cv_apple_cc_single_mod=yes
8019
        else
8020
          cat conftest.err >&5
8021
        fi
8022
        rm -rf libconftest.dylib*
8023
        rm -f conftest.*
8024
      fi
8025
fi
8026
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8027
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8028
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8029
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8030
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8031
  $as_echo_n "(cached) " >&6
8032
else
8033
  lt_cv_ld_exported_symbols_list=no
8034
      save_LDFLAGS=$LDFLAGS
8035
      echo "_main" > conftest.sym
8036
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8037
      cat >conftest.$ac_ext <<_ACEOF
8038
/* confdefs.h.  */
8039
_ACEOF
8040
cat confdefs.h >>conftest.$ac_ext
8041
cat >>conftest.$ac_ext <<_ACEOF
8042
/* end confdefs.h.  */
8043
 
8044
int
8045
main ()
8046
{
8047
 
8048
  ;
8049
  return 0;
8050
}
8051
_ACEOF
8052
rm -f conftest.$ac_objext conftest$ac_exeext
8053
if { (ac_try="$ac_link"
8054
case "(($ac_try" in
8055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056
  *) ac_try_echo=$ac_try;;
8057
esac
8058
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8059
$as_echo "$ac_try_echo") >&5
8060
  (eval "$ac_link") 2>conftest.er1
8061
  ac_status=$?
8062
  grep -v '^ *+' conftest.er1 >conftest.err
8063
  rm -f conftest.er1
8064
  cat conftest.err >&5
8065
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066
  (exit $ac_status); } && {
8067
         test -z "$ac_c_werror_flag" ||
8068
         test ! -s conftest.err
8069
       } && test -s conftest$ac_exeext && {
8070
         test "$cross_compiling" = yes ||
8071
         $as_test_x conftest$ac_exeext
8072
       }; then
8073
  lt_cv_ld_exported_symbols_list=yes
8074
else
8075
  $as_echo "$as_me: failed program was:" >&5
8076
sed 's/^/| /' conftest.$ac_ext >&5
8077
 
8078
        lt_cv_ld_exported_symbols_list=no
8079
fi
8080
 
8081
rm -rf conftest.dSYM
8082
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8083
      conftest$ac_exeext conftest.$ac_ext
8084
        LDFLAGS="$save_LDFLAGS"
8085
 
8086
fi
8087
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8088
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8089
    case $host_os in
8090
    rhapsody* | darwin1.[012])
8091
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8092
    darwin1.*)
8093
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8094
    darwin*) # darwin 5.x on
8095
      # if running on 10.5 or later, the deployment target defaults
8096
      # to the OS version, if on x86, and 10.4, the deployment
8097
      # target defaults to 10.4. Don't you love it?
8098
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8099
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8100
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8101
        10.[012]*)
8102
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8103
        10.*)
8104
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8105
      esac
8106
    ;;
8107
  esac
8108
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8109
      _lt_dar_single_mod='$single_module'
8110
    fi
8111
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8112
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8113
    else
8114
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8115
    fi
8116
    if test "$DSYMUTIL" != ":"; then
8117
      _lt_dsymutil='~$DSYMUTIL $lib || :'
8118
    else
8119
      _lt_dsymutil=
8120
    fi
8121
    ;;
8122
  esac
8123
 
8124
ac_ext=c
8125
ac_cpp='$CPP $CPPFLAGS'
8126
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8127
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8128
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8129
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
8130
$as_echo_n "checking how to run the C preprocessor... " >&6; }
8131
# On Suns, sometimes $CPP names a directory.
8132
if test -n "$CPP" && test -d "$CPP"; then
8133
  CPP=
8134
fi
8135
if test -z "$CPP"; then
8136
  if test "${ac_cv_prog_CPP+set}" = set; then
8137
  $as_echo_n "(cached) " >&6
8138
else
8139
      # Double quotes because CPP needs to be expanded
8140
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8141
    do
8142
      ac_preproc_ok=false
8143
for ac_c_preproc_warn_flag in '' yes
8144
do
8145
  # Use a header file that comes with gcc, so configuring glibc
8146
  # with a fresh cross-compiler works.
8147
  # Prefer  to  if __STDC__ is defined, since
8148
  #  exists even on freestanding compilers.
8149
  # On the NeXT, cc -E runs the code through the compiler's parser,
8150
  # not just through cpp. "Syntax error" is here to catch this case.
8151
  cat >conftest.$ac_ext <<_ACEOF
8152
/* confdefs.h.  */
8153
_ACEOF
8154
cat confdefs.h >>conftest.$ac_ext
8155
cat >>conftest.$ac_ext <<_ACEOF
8156
/* end confdefs.h.  */
8157
#ifdef __STDC__
8158
# include 
8159
#else
8160
# include 
8161
#endif
8162
                     Syntax error
8163
_ACEOF
8164
if { (ac_try="$ac_cpp conftest.$ac_ext"
8165
case "(($ac_try" in
8166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167
  *) ac_try_echo=$ac_try;;
8168
esac
8169
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8170
$as_echo "$ac_try_echo") >&5
8171
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8172
  ac_status=$?
8173
  grep -v '^ *+' conftest.er1 >conftest.err
8174
  rm -f conftest.er1
8175
  cat conftest.err >&5
8176
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177
  (exit $ac_status); } >/dev/null && {
8178
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8179
         test ! -s conftest.err
8180
       }; then
8181
  :
8182
else
8183
  $as_echo "$as_me: failed program was:" >&5
8184
sed 's/^/| /' conftest.$ac_ext >&5
8185
 
8186
  # Broken: fails on valid input.
8187
continue
8188
fi
8189
 
8190
rm -f conftest.err conftest.$ac_ext
8191
 
8192
  # OK, works on sane cases.  Now check whether nonexistent headers
8193
  # can be detected and how.
8194
  cat >conftest.$ac_ext <<_ACEOF
8195
/* confdefs.h.  */
8196
_ACEOF
8197
cat confdefs.h >>conftest.$ac_ext
8198
cat >>conftest.$ac_ext <<_ACEOF
8199
/* end confdefs.h.  */
8200
#include 
8201
_ACEOF
8202
if { (ac_try="$ac_cpp conftest.$ac_ext"
8203
case "(($ac_try" in
8204
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205
  *) ac_try_echo=$ac_try;;
8206
esac
8207
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8208
$as_echo "$ac_try_echo") >&5
8209
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8210
  ac_status=$?
8211
  grep -v '^ *+' conftest.er1 >conftest.err
8212
  rm -f conftest.er1
8213
  cat conftest.err >&5
8214
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215
  (exit $ac_status); } >/dev/null && {
8216
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8217
         test ! -s conftest.err
8218
       }; then
8219
  # Broken: success on invalid input.
8220
continue
8221
else
8222
  $as_echo "$as_me: failed program was:" >&5
8223
sed 's/^/| /' conftest.$ac_ext >&5
8224
 
8225
  # Passes both tests.
8226
ac_preproc_ok=:
8227
break
8228
fi
8229
 
8230
rm -f conftest.err conftest.$ac_ext
8231
 
8232
done
8233
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8234
rm -f conftest.err conftest.$ac_ext
8235
if $ac_preproc_ok; then
8236
  break
8237
fi
8238
 
8239
    done
8240
    ac_cv_prog_CPP=$CPP
8241
 
8242
fi
8243
  CPP=$ac_cv_prog_CPP
8244
else
8245
  ac_cv_prog_CPP=$CPP
8246
fi
8247
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
8248
$as_echo "$CPP" >&6; }
8249
ac_preproc_ok=false
8250
for ac_c_preproc_warn_flag in '' yes
8251
do
8252
  # Use a header file that comes with gcc, so configuring glibc
8253
  # with a fresh cross-compiler works.
8254
  # Prefer  to  if __STDC__ is defined, since
8255
  #  exists even on freestanding compilers.
8256
  # On the NeXT, cc -E runs the code through the compiler's parser,
8257
  # not just through cpp. "Syntax error" is here to catch this case.
8258
  cat >conftest.$ac_ext <<_ACEOF
8259
/* confdefs.h.  */
8260
_ACEOF
8261
cat confdefs.h >>conftest.$ac_ext
8262
cat >>conftest.$ac_ext <<_ACEOF
8263
/* end confdefs.h.  */
8264
#ifdef __STDC__
8265
# include 
8266
#else
8267
# include 
8268
#endif
8269
                     Syntax error
8270
_ACEOF
8271
if { (ac_try="$ac_cpp conftest.$ac_ext"
8272
case "(($ac_try" in
8273
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274
  *) ac_try_echo=$ac_try;;
8275
esac
8276
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8277
$as_echo "$ac_try_echo") >&5
8278
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8279
  ac_status=$?
8280
  grep -v '^ *+' conftest.er1 >conftest.err
8281
  rm -f conftest.er1
8282
  cat conftest.err >&5
8283
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284
  (exit $ac_status); } >/dev/null && {
8285
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8286
         test ! -s conftest.err
8287
       }; then
8288
  :
8289
else
8290
  $as_echo "$as_me: failed program was:" >&5
8291
sed 's/^/| /' conftest.$ac_ext >&5
8292
 
8293
  # Broken: fails on valid input.
8294
continue
8295
fi
8296
 
8297
rm -f conftest.err conftest.$ac_ext
8298
 
8299
  # OK, works on sane cases.  Now check whether nonexistent headers
8300
  # can be detected and how.
8301
  cat >conftest.$ac_ext <<_ACEOF
8302
/* confdefs.h.  */
8303
_ACEOF
8304
cat confdefs.h >>conftest.$ac_ext
8305
cat >>conftest.$ac_ext <<_ACEOF
8306
/* end confdefs.h.  */
8307
#include 
8308
_ACEOF
8309
if { (ac_try="$ac_cpp conftest.$ac_ext"
8310
case "(($ac_try" in
8311
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312
  *) ac_try_echo=$ac_try;;
8313
esac
8314
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8315
$as_echo "$ac_try_echo") >&5
8316
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8317
  ac_status=$?
8318
  grep -v '^ *+' conftest.er1 >conftest.err
8319
  rm -f conftest.er1
8320
  cat conftest.err >&5
8321
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322
  (exit $ac_status); } >/dev/null && {
8323
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8324
         test ! -s conftest.err
8325
       }; then
8326
  # Broken: success on invalid input.
8327
continue
8328
else
8329
  $as_echo "$as_me: failed program was:" >&5
8330
sed 's/^/| /' conftest.$ac_ext >&5
8331
 
8332
  # Passes both tests.
8333
ac_preproc_ok=:
8334
break
8335
fi
8336
 
8337
rm -f conftest.err conftest.$ac_ext
8338
 
8339
done
8340
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8341
rm -f conftest.err conftest.$ac_ext
8342
if $ac_preproc_ok; then
8343
  :
8344
else
8345
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8346
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8347
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8348
See \`config.log' for more details." >&5
8349
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8350
See \`config.log' for more details." >&2;}
8351
   { (exit 1); exit 1; }; }; }
8352
fi
8353
 
8354
ac_ext=c
8355
ac_cpp='$CPP $CPPFLAGS'
8356
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8357
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8358
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8359
 
8360
 
8361
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8362
$as_echo_n "checking for ANSI C header files... " >&6; }
8363
if test "${ac_cv_header_stdc+set}" = set; then
8364
  $as_echo_n "(cached) " >&6
8365
else
8366
  cat >conftest.$ac_ext <<_ACEOF
8367
/* confdefs.h.  */
8368
_ACEOF
8369
cat confdefs.h >>conftest.$ac_ext
8370
cat >>conftest.$ac_ext <<_ACEOF
8371
/* end confdefs.h.  */
8372
#include 
8373
#include 
8374
#include 
8375
#include 
8376
 
8377
int
8378
main ()
8379
{
8380
 
8381
  ;
8382
  return 0;
8383
}
8384
_ACEOF
8385
rm -f conftest.$ac_objext
8386
if { (ac_try="$ac_compile"
8387
case "(($ac_try" in
8388
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389
  *) ac_try_echo=$ac_try;;
8390
esac
8391
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8392
$as_echo "$ac_try_echo") >&5
8393
  (eval "$ac_compile") 2>conftest.er1
8394
  ac_status=$?
8395
  grep -v '^ *+' conftest.er1 >conftest.err
8396
  rm -f conftest.er1
8397
  cat conftest.err >&5
8398
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399
  (exit $ac_status); } && {
8400
         test -z "$ac_c_werror_flag" ||
8401
         test ! -s conftest.err
8402
       } && test -s conftest.$ac_objext; then
8403
  ac_cv_header_stdc=yes
8404
else
8405
  $as_echo "$as_me: failed program was:" >&5
8406
sed 's/^/| /' conftest.$ac_ext >&5
8407
 
8408
        ac_cv_header_stdc=no
8409
fi
8410
 
8411
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412
 
8413
if test $ac_cv_header_stdc = yes; then
8414
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8415
  cat >conftest.$ac_ext <<_ACEOF
8416
/* confdefs.h.  */
8417
_ACEOF
8418
cat confdefs.h >>conftest.$ac_ext
8419
cat >>conftest.$ac_ext <<_ACEOF
8420
/* end confdefs.h.  */
8421
#include 
8422
 
8423
_ACEOF
8424
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8425
  $EGREP "memchr" >/dev/null 2>&1; then
8426
  :
8427
else
8428
  ac_cv_header_stdc=no
8429
fi
8430
rm -f conftest*
8431
 
8432
fi
8433
 
8434
if test $ac_cv_header_stdc = yes; then
8435
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8436
  cat >conftest.$ac_ext <<_ACEOF
8437
/* confdefs.h.  */
8438
_ACEOF
8439
cat confdefs.h >>conftest.$ac_ext
8440
cat >>conftest.$ac_ext <<_ACEOF
8441
/* end confdefs.h.  */
8442
#include 
8443
 
8444
_ACEOF
8445
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8446
  $EGREP "free" >/dev/null 2>&1; then
8447
  :
8448
else
8449
  ac_cv_header_stdc=no
8450
fi
8451
rm -f conftest*
8452
 
8453
fi
8454
 
8455
if test $ac_cv_header_stdc = yes; then
8456
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8457
  if test "$cross_compiling" = yes; then
8458
  :
8459
else
8460
  cat >conftest.$ac_ext <<_ACEOF
8461
/* confdefs.h.  */
8462
_ACEOF
8463
cat confdefs.h >>conftest.$ac_ext
8464
cat >>conftest.$ac_ext <<_ACEOF
8465
/* end confdefs.h.  */
8466
#include 
8467
#include 
8468
#if ((' ' & 0x0FF) == 0x020)
8469
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8470
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8471
#else
8472
# define ISLOWER(c) \
8473
                   (('a' <= (c) && (c) <= 'i') \
8474
                     || ('j' <= (c) && (c) <= 'r') \
8475
                     || ('s' <= (c) && (c) <= 'z'))
8476
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8477
#endif
8478
 
8479
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8480
int
8481
main ()
8482
{
8483
  int i;
8484
  for (i = 0; i < 256; i++)
8485
    if (XOR (islower (i), ISLOWER (i))
8486
        || toupper (i) != TOUPPER (i))
8487
      return 2;
8488
  return 0;
8489
}
8490
_ACEOF
8491
rm -f conftest$ac_exeext
8492
if { (ac_try="$ac_link"
8493
case "(($ac_try" in
8494
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495
  *) ac_try_echo=$ac_try;;
8496
esac
8497
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8498
$as_echo "$ac_try_echo") >&5
8499
  (eval "$ac_link") 2>&5
8500
  ac_status=$?
8501
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8503
  { (case "(($ac_try" in
8504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505
  *) ac_try_echo=$ac_try;;
8506
esac
8507
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8508
$as_echo "$ac_try_echo") >&5
8509
  (eval "$ac_try") 2>&5
8510
  ac_status=$?
8511
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512
  (exit $ac_status); }; }; then
8513
  :
8514
else
8515
  $as_echo "$as_me: program exited with status $ac_status" >&5
8516
$as_echo "$as_me: failed program was:" >&5
8517
sed 's/^/| /' conftest.$ac_ext >&5
8518
 
8519
( exit $ac_status )
8520
ac_cv_header_stdc=no
8521
fi
8522
rm -rf conftest.dSYM
8523
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8524
fi
8525
 
8526
 
8527
fi
8528
fi
8529
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8530
$as_echo "$ac_cv_header_stdc" >&6; }
8531
if test $ac_cv_header_stdc = yes; then
8532
 
8533
cat >>confdefs.h <<\_ACEOF
8534
#define STDC_HEADERS 1
8535
_ACEOF
8536
 
8537
fi
8538
 
8539
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8540
 
8541
 
8542
 
8543
 
8544
 
8545
 
8546
 
8547
 
8548
 
8549
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8550
                  inttypes.h stdint.h unistd.h
8551
do
8552
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8553
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8554
$as_echo_n "checking for $ac_header... " >&6; }
8555
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8556
  $as_echo_n "(cached) " >&6
8557
else
8558
  cat >conftest.$ac_ext <<_ACEOF
8559
/* confdefs.h.  */
8560
_ACEOF
8561
cat confdefs.h >>conftest.$ac_ext
8562
cat >>conftest.$ac_ext <<_ACEOF
8563
/* end confdefs.h.  */
8564
$ac_includes_default
8565
 
8566
#include <$ac_header>
8567
_ACEOF
8568
rm -f conftest.$ac_objext
8569
if { (ac_try="$ac_compile"
8570
case "(($ac_try" in
8571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572
  *) ac_try_echo=$ac_try;;
8573
esac
8574
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8575
$as_echo "$ac_try_echo") >&5
8576
  (eval "$ac_compile") 2>conftest.er1
8577
  ac_status=$?
8578
  grep -v '^ *+' conftest.er1 >conftest.err
8579
  rm -f conftest.er1
8580
  cat conftest.err >&5
8581
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582
  (exit $ac_status); } && {
8583
         test -z "$ac_c_werror_flag" ||
8584
         test ! -s conftest.err
8585
       } && test -s conftest.$ac_objext; then
8586
  eval "$as_ac_Header=yes"
8587
else
8588
  $as_echo "$as_me: failed program was:" >&5
8589
sed 's/^/| /' conftest.$ac_ext >&5
8590
 
8591
        eval "$as_ac_Header=no"
8592
fi
8593
 
8594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595
fi
8596
ac_res=`eval 'as_val=${'$as_ac_Header'}
8597
                 $as_echo "$as_val"'`
8598
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8599
$as_echo "$ac_res" >&6; }
8600
as_val=`eval 'as_val=${'$as_ac_Header'}
8601
                 $as_echo "$as_val"'`
8602
   if test "x$as_val" = x""yes; then
8603
  cat >>confdefs.h <<_ACEOF
8604
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8605
_ACEOF
8606
 
8607
fi
8608
 
8609
done
8610
 
8611
 
8612
 
8613
for ac_header in dlfcn.h
8614
do
8615
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8616
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8617
$as_echo_n "checking for $ac_header... " >&6; }
8618
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8619
  $as_echo_n "(cached) " >&6
8620
else
8621
  cat >conftest.$ac_ext <<_ACEOF
8622
/* confdefs.h.  */
8623
_ACEOF
8624
cat confdefs.h >>conftest.$ac_ext
8625
cat >>conftest.$ac_ext <<_ACEOF
8626
/* end confdefs.h.  */
8627
$ac_includes_default
8628
 
8629
#include <$ac_header>
8630
_ACEOF
8631
rm -f conftest.$ac_objext
8632
if { (ac_try="$ac_compile"
8633
case "(($ac_try" in
8634
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635
  *) ac_try_echo=$ac_try;;
8636
esac
8637
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8638
$as_echo "$ac_try_echo") >&5
8639
  (eval "$ac_compile") 2>conftest.er1
8640
  ac_status=$?
8641
  grep -v '^ *+' conftest.er1 >conftest.err
8642
  rm -f conftest.er1
8643
  cat conftest.err >&5
8644
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645
  (exit $ac_status); } && {
8646
         test -z "$ac_c_werror_flag" ||
8647
         test ! -s conftest.err
8648
       } && test -s conftest.$ac_objext; then
8649
  eval "$as_ac_Header=yes"
8650
else
8651
  $as_echo "$as_me: failed program was:" >&5
8652
sed 's/^/| /' conftest.$ac_ext >&5
8653
 
8654
        eval "$as_ac_Header=no"
8655
fi
8656
 
8657
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658
fi
8659
ac_res=`eval 'as_val=${'$as_ac_Header'}
8660
                 $as_echo "$as_val"'`
8661
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8662
$as_echo "$ac_res" >&6; }
8663
as_val=`eval 'as_val=${'$as_ac_Header'}
8664
                 $as_echo "$as_val"'`
8665
   if test "x$as_val" = x""yes; then
8666
  cat >>confdefs.h <<_ACEOF
8667
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8668
_ACEOF
8669
 
8670
fi
8671
 
8672
done
8673
 
8674
 
8675
 
8676
# Set options
8677
 
8678
 
8679
 
8680
        enable_dlopen=no
8681
 
8682
 
8683
 
8684
            # Check whether --enable-shared was given.
8685
if test "${enable_shared+set}" = set; then
8686
  enableval=$enable_shared; p=${PACKAGE-default}
8687
    case $enableval in
8688
    yes) enable_shared=yes ;;
8689
    no) enable_shared=no ;;
8690
    *)
8691
      enable_shared=no
8692
      # Look at the argument we got.  We use all the common list separators.
8693
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8694
      for pkg in $enableval; do
8695
        IFS="$lt_save_ifs"
8696
        if test "X$pkg" = "X$p"; then
8697
          enable_shared=yes
8698
        fi
8699
      done
8700
      IFS="$lt_save_ifs"
8701
      ;;
8702
    esac
8703
else
8704
  enable_shared=yes
8705
fi
8706
 
8707
 
8708
 
8709
 
8710
 
8711
 
8712
 
8713
 
8714
 
8715
  # Check whether --enable-static was given.
8716
if test "${enable_static+set}" = set; then
8717
  enableval=$enable_static; p=${PACKAGE-default}
8718
    case $enableval in
8719
    yes) enable_static=yes ;;
8720
    no) enable_static=no ;;
8721
    *)
8722
     enable_static=no
8723
      # Look at the argument we got.  We use all the common list separators.
8724
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8725
      for pkg in $enableval; do
8726
        IFS="$lt_save_ifs"
8727
        if test "X$pkg" = "X$p"; then
8728
          enable_static=yes
8729
        fi
8730
      done
8731
      IFS="$lt_save_ifs"
8732
      ;;
8733
    esac
8734
else
8735
  enable_static=yes
8736
fi
8737
 
8738
 
8739
 
8740
 
8741
 
8742
 
8743
 
8744
 
8745
 
8746
 
8747
# Check whether --with-pic was given.
8748
if test "${with_pic+set}" = set; then
8749
  withval=$with_pic; pic_mode="$withval"
8750
else
8751
  pic_mode=default
8752
fi
8753
 
8754
 
8755
test -z "$pic_mode" && pic_mode=default
8756
 
8757
 
8758
 
8759
 
8760
 
8761
 
8762
 
8763
  # Check whether --enable-fast-install was given.
8764
if test "${enable_fast_install+set}" = set; then
8765
  enableval=$enable_fast_install; p=${PACKAGE-default}
8766
    case $enableval in
8767
    yes) enable_fast_install=yes ;;
8768
    no) enable_fast_install=no ;;
8769
    *)
8770
      enable_fast_install=no
8771
      # Look at the argument we got.  We use all the common list separators.
8772
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8773
      for pkg in $enableval; do
8774
        IFS="$lt_save_ifs"
8775
        if test "X$pkg" = "X$p"; then
8776
          enable_fast_install=yes
8777
        fi
8778
      done
8779
      IFS="$lt_save_ifs"
8780
      ;;
8781
    esac
8782
else
8783
  enable_fast_install=yes
8784
fi
8785
 
8786
 
8787
 
8788
 
8789
 
8790
 
8791
 
8792
 
8793
 
8794
 
8795
 
8796
# This can be used to rebuild libtool when needed
8797
LIBTOOL_DEPS="$ltmain"
8798
 
8799
# Always use our own libtool.
8800
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8801
 
8802
 
8803
 
8804
 
8805
 
8806
 
8807
 
8808
 
8809
 
8810
 
8811
 
8812
 
8813
 
8814
 
8815
 
8816
 
8817
 
8818
 
8819
 
8820
 
8821
 
8822
 
8823
 
8824
 
8825
 
8826
test -z "$LN_S" && LN_S="ln -s"
8827
 
8828
 
8829
 
8830
 
8831
 
8832
 
8833
 
8834
 
8835
 
8836
 
8837
 
8838
 
8839
 
8840
 
8841
if test -n "${ZSH_VERSION+set}" ; then
8842
   setopt NO_GLOB_SUBST
8843
fi
8844
 
8845
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8846
$as_echo_n "checking for objdir... " >&6; }
8847
if test "${lt_cv_objdir+set}" = set; then
8848
  $as_echo_n "(cached) " >&6
8849
else
8850
  rm -f .libs 2>/dev/null
8851
mkdir .libs 2>/dev/null
8852
if test -d .libs; then
8853
  lt_cv_objdir=.libs
8854
else
8855
  # MS-DOS does not allow filenames that begin with a dot.
8856
  lt_cv_objdir=_libs
8857
fi
8858
rmdir .libs 2>/dev/null
8859
fi
8860
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8861
$as_echo "$lt_cv_objdir" >&6; }
8862
objdir=$lt_cv_objdir
8863
 
8864
 
8865
 
8866
 
8867
 
8868
cat >>confdefs.h <<_ACEOF
8869
#define LT_OBJDIR "$lt_cv_objdir/"
8870
_ACEOF
8871
 
8872
 
8873
 
8874
 
8875
 
8876
 
8877
 
8878
 
8879
 
8880
 
8881
 
8882
 
8883
 
8884
 
8885
 
8886
 
8887
 
8888
case $host_os in
8889
aix3*)
8890
  # AIX sometimes has problems with the GCC collect2 program.  For some
8891
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8892
  # vanish in a puff of smoke.
8893
  if test "X${COLLECT_NAMES+set}" != Xset; then
8894
    COLLECT_NAMES=
8895
    export COLLECT_NAMES
8896
  fi
8897
  ;;
8898
esac
8899
 
8900
# Sed substitution that helps us do robust quoting.  It backslashifies
8901
# metacharacters that are still active within double-quoted strings.
8902
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8903
 
8904
# Same as above, but do not quote variable references.
8905
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8906
 
8907
# Sed substitution to delay expansion of an escaped shell variable in a
8908
# double_quote_subst'ed string.
8909
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8910
 
8911
# Sed substitution to delay expansion of an escaped single quote.
8912
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8913
 
8914
# Sed substitution to avoid accidental globbing in evaled expressions
8915
no_glob_subst='s/\*/\\\*/g'
8916
 
8917
# Global variables:
8918
ofile=libtool
8919
can_build_shared=yes
8920
 
8921
# All known linkers require a `.a' archive for static linking (except MSVC,
8922
# which needs '.lib').
8923
libext=a
8924
 
8925
with_gnu_ld="$lt_cv_prog_gnu_ld"
8926
 
8927
old_CC="$CC"
8928
old_CFLAGS="$CFLAGS"
8929
 
8930
# Set sane defaults for various variables
8931
test -z "$CC" && CC=cc
8932
test -z "$LTCC" && LTCC=$CC
8933
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8934
test -z "$LD" && LD=ld
8935
test -z "$ac_objext" && ac_objext=o
8936
 
8937
for cc_temp in $compiler""; do
8938
  case $cc_temp in
8939
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8940
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8941
    \-*) ;;
8942
    *) break;;
8943
  esac
8944
done
8945
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8946
 
8947
 
8948
# Only perform the check for file, if the check method requires it
8949
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8950
case $deplibs_check_method in
8951
file_magic*)
8952
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8953
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8954
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8955
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8956
  $as_echo_n "(cached) " >&6
8957
else
8958
  case $MAGIC_CMD in
8959
[\\/*] |  ?:[\\/]*)
8960
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8961
  ;;
8962
*)
8963
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8964
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8965
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8966
  for ac_dir in $ac_dummy; do
8967
    IFS="$lt_save_ifs"
8968
    test -z "$ac_dir" && ac_dir=.
8969
    if test -f $ac_dir/${ac_tool_prefix}file; then
8970
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8971
      if test -n "$file_magic_test_file"; then
8972
        case $deplibs_check_method in
8973
        "file_magic "*)
8974
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8975
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8976
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8977
            $EGREP "$file_magic_regex" > /dev/null; then
8978
            :
8979
          else
8980
            cat <<_LT_EOF 1>&2
8981
 
8982
*** Warning: the command libtool uses to detect shared libraries,
8983
*** $file_magic_cmd, produces output that libtool cannot recognize.
8984
*** The result is that libtool may fail to recognize shared libraries
8985
*** as such.  This will affect the creation of libtool libraries that
8986
*** depend on shared libraries, but programs linked with such libtool
8987
*** libraries will work regardless of this problem.  Nevertheless, you
8988
*** may want to report the problem to your system manager and/or to
8989
*** bug-libtool@gnu.org
8990
 
8991
_LT_EOF
8992
          fi ;;
8993
        esac
8994
      fi
8995
      break
8996
    fi
8997
  done
8998
  IFS="$lt_save_ifs"
8999
  MAGIC_CMD="$lt_save_MAGIC_CMD"
9000
  ;;
9001
esac
9002
fi
9003
 
9004
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9005
if test -n "$MAGIC_CMD"; then
9006
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9007
$as_echo "$MAGIC_CMD" >&6; }
9008
else
9009
  { $as_echo "$as_me:$LINENO: result: no" >&5
9010
$as_echo "no" >&6; }
9011
fi
9012
 
9013
 
9014
 
9015
 
9016
 
9017
if test -z "$lt_cv_path_MAGIC_CMD"; then
9018
  if test -n "$ac_tool_prefix"; then
9019
    { $as_echo "$as_me:$LINENO: checking for file" >&5
9020
$as_echo_n "checking for file... " >&6; }
9021
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9022
  $as_echo_n "(cached) " >&6
9023
else
9024
  case $MAGIC_CMD in
9025
[\\/*] |  ?:[\\/]*)
9026
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9027
  ;;
9028
*)
9029
  lt_save_MAGIC_CMD="$MAGIC_CMD"
9030
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9031
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9032
  for ac_dir in $ac_dummy; do
9033
    IFS="$lt_save_ifs"
9034
    test -z "$ac_dir" && ac_dir=.
9035
    if test -f $ac_dir/file; then
9036
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9037
      if test -n "$file_magic_test_file"; then
9038
        case $deplibs_check_method in
9039
        "file_magic "*)
9040
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9041
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9042
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9043
            $EGREP "$file_magic_regex" > /dev/null; then
9044
            :
9045
          else
9046
            cat <<_LT_EOF 1>&2
9047
 
9048
*** Warning: the command libtool uses to detect shared libraries,
9049
*** $file_magic_cmd, produces output that libtool cannot recognize.
9050
*** The result is that libtool may fail to recognize shared libraries
9051
*** as such.  This will affect the creation of libtool libraries that
9052
*** depend on shared libraries, but programs linked with such libtool
9053
*** libraries will work regardless of this problem.  Nevertheless, you
9054
*** may want to report the problem to your system manager and/or to
9055
*** bug-libtool@gnu.org
9056
 
9057
_LT_EOF
9058
          fi ;;
9059
        esac
9060
      fi
9061
      break
9062
    fi
9063
  done
9064
  IFS="$lt_save_ifs"
9065
  MAGIC_CMD="$lt_save_MAGIC_CMD"
9066
  ;;
9067
esac
9068
fi
9069
 
9070
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9071
if test -n "$MAGIC_CMD"; then
9072
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9073
$as_echo "$MAGIC_CMD" >&6; }
9074
else
9075
  { $as_echo "$as_me:$LINENO: result: no" >&5
9076
$as_echo "no" >&6; }
9077
fi
9078
 
9079
 
9080
  else
9081
    MAGIC_CMD=:
9082
  fi
9083
fi
9084
 
9085
  fi
9086
  ;;
9087
esac
9088
 
9089
# Use C for the default configuration in the libtool script
9090
 
9091
lt_save_CC="$CC"
9092
ac_ext=c
9093
ac_cpp='$CPP $CPPFLAGS'
9094
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9095
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9096
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9097
 
9098
 
9099
# Source file extension for C test sources.
9100
ac_ext=c
9101
 
9102
# Object file extension for compiled C test sources.
9103
objext=o
9104
objext=$objext
9105
 
9106
# Code to be used in simple compile tests
9107
lt_simple_compile_test_code="int some_variable = 0;"
9108
 
9109
# Code to be used in simple link tests
9110
lt_simple_link_test_code='int main(){return(0);}'
9111
 
9112
 
9113
 
9114
 
9115
 
9116
 
9117
 
9118
# If no C compiler was specified, use CC.
9119
LTCC=${LTCC-"$CC"}
9120
 
9121
# If no C compiler flags were specified, use CFLAGS.
9122
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9123
 
9124
# Allow CC to be a program name with arguments.
9125
compiler=$CC
9126
 
9127
# Save the default compiler, since it gets overwritten when the other
9128
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9129
compiler_DEFAULT=$CC
9130
 
9131
# save warnings/boilerplate of simple test code
9132
ac_outfile=conftest.$ac_objext
9133
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9134
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9135
_lt_compiler_boilerplate=`cat conftest.err`
9136
$RM conftest*
9137
 
9138
ac_outfile=conftest.$ac_objext
9139
echo "$lt_simple_link_test_code" >conftest.$ac_ext
9140
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9141
_lt_linker_boilerplate=`cat conftest.err`
9142
$RM -r conftest*
9143
 
9144
 
9145
## CAVEAT EMPTOR:
9146
## There is no encapsulation within the following macros, do not change
9147
## the running order or otherwise move them around unless you know exactly
9148
## what you are doing...
9149
if test -n "$compiler"; then
9150
 
9151
lt_prog_compiler_no_builtin_flag=
9152
 
9153
if test "$GCC" = yes; then
9154
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9155
 
9156
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9157
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9158
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9159
  $as_echo_n "(cached) " >&6
9160
else
9161
  lt_cv_prog_compiler_rtti_exceptions=no
9162
   ac_outfile=conftest.$ac_objext
9163
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9164
   lt_compiler_flag="-fno-rtti -fno-exceptions"
9165
   # Insert the option either (1) after the last *FLAGS variable, or
9166
   # (2) before a word containing "conftest.", or (3) at the end.
9167
   # Note that $ac_compile itself does not contain backslashes and begins
9168
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9169
   # The option is referenced via a variable to avoid confusing sed.
9170
   lt_compile=`echo "$ac_compile" | $SED \
9171
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9172
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9173
   -e 's:$: $lt_compiler_flag:'`
9174
   (eval echo "\"\$as_me:9174: $lt_compile\"" >&5)
9175
   (eval "$lt_compile" 2>conftest.err)
9176
   ac_status=$?
9177
   cat conftest.err >&5
9178
   echo "$as_me:9178: \$? = $ac_status" >&5
9179
   if (exit $ac_status) && test -s "$ac_outfile"; then
9180
     # The compiler can only warn and ignore the option if not recognized
9181
     # So say no if there are warnings other than the usual output.
9182
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9183
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9184
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9185
       lt_cv_prog_compiler_rtti_exceptions=yes
9186
     fi
9187
   fi
9188
   $RM conftest*
9189
 
9190
fi
9191
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9192
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9193
 
9194
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9195
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9196
else
9197
    :
9198
fi
9199
 
9200
fi
9201
 
9202
 
9203
 
9204
 
9205
 
9206
 
9207
  lt_prog_compiler_wl=
9208
lt_prog_compiler_pic=
9209
lt_prog_compiler_static=
9210
 
9211
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9212
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9213
 
9214
  if test "$GCC" = yes; then
9215
    lt_prog_compiler_wl='-Wl,'
9216
    lt_prog_compiler_static='-static'
9217
 
9218
    case $host_os in
9219
      aix*)
9220
      # All AIX code is PIC.
9221
      if test "$host_cpu" = ia64; then
9222
        # AIX 5 now supports IA64 processor
9223
        lt_prog_compiler_static='-Bstatic'
9224
      fi
9225
      ;;
9226
 
9227
    amigaos*)
9228
      case $host_cpu in
9229
      powerpc)
9230
            # see comment about AmigaOS4 .so support
9231
            lt_prog_compiler_pic='-fPIC'
9232
        ;;
9233
      m68k)
9234
            # FIXME: we need at least 68020 code to build shared libraries, but
9235
            # adding the `-m68020' flag to GCC prevents building anything better,
9236
            # like `-m68040'.
9237
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9238
        ;;
9239
      esac
9240
      ;;
9241
 
9242
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9243
      # PIC is the default for these OSes.
9244
      ;;
9245
 
9246
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9247
      # This hack is so that the source file can tell whether it is being
9248
      # built for inclusion in a dll (and should export symbols for example).
9249
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9250
      # (--disable-auto-import) libraries
9251
      lt_prog_compiler_pic='-DDLL_EXPORT'
9252
      ;;
9253
 
9254
    darwin* | rhapsody*)
9255
      # PIC is the default on this platform
9256
      # Common symbols not allowed in MH_DYLIB files
9257
      lt_prog_compiler_pic='-fno-common'
9258
      ;;
9259
 
9260
    hpux*)
9261
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9262
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9263
      # sets the default TLS model and affects inlining.
9264
      case $host_cpu in
9265
      hppa*64*)
9266
        # +Z the default
9267
        ;;
9268
      *)
9269
        lt_prog_compiler_pic='-fPIC'
9270
        ;;
9271
      esac
9272
      ;;
9273
 
9274
    interix[3-9]*)
9275
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9276
      # Instead, we relocate shared libraries at runtime.
9277
      ;;
9278
 
9279
    msdosdjgpp*)
9280
      # Just because we use GCC doesn't mean we suddenly get shared libraries
9281
      # on systems that don't support them.
9282
      lt_prog_compiler_can_build_shared=no
9283
      enable_shared=no
9284
      ;;
9285
 
9286
    *nto* | *qnx*)
9287
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9288
      # it will coredump.
9289
      lt_prog_compiler_pic='-fPIC -shared'
9290
      ;;
9291
 
9292
    sysv4*MP*)
9293
      if test -d /usr/nec; then
9294
        lt_prog_compiler_pic=-Kconform_pic
9295
      fi
9296
      ;;
9297
 
9298
    *)
9299
      lt_prog_compiler_pic='-fPIC'
9300
      ;;
9301
    esac
9302
  else
9303
    # PORTME Check for flag to pass linker flags through the system compiler.
9304
    case $host_os in
9305
    aix*)
9306
      lt_prog_compiler_wl='-Wl,'
9307
      if test "$host_cpu" = ia64; then
9308
        # AIX 5 now supports IA64 processor
9309
        lt_prog_compiler_static='-Bstatic'
9310
      else
9311
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9312
      fi
9313
      ;;
9314
 
9315
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9316
      # This hack is so that the source file can tell whether it is being
9317
      # built for inclusion in a dll (and should export symbols for example).
9318
      lt_prog_compiler_pic='-DDLL_EXPORT'
9319
      ;;
9320
 
9321
    hpux9* | hpux10* | hpux11*)
9322
      lt_prog_compiler_wl='-Wl,'
9323
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9324
      # not for PA HP-UX.
9325
      case $host_cpu in
9326
      hppa*64*|ia64*)
9327
        # +Z the default
9328
        ;;
9329
      *)
9330
        lt_prog_compiler_pic='+Z'
9331
        ;;
9332
      esac
9333
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9334
      lt_prog_compiler_static='${wl}-a ${wl}archive'
9335
      ;;
9336
 
9337
    irix5* | irix6* | nonstopux*)
9338
      lt_prog_compiler_wl='-Wl,'
9339
      # PIC (with -KPIC) is the default.
9340
      lt_prog_compiler_static='-non_shared'
9341
      ;;
9342
 
9343
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9344
      case $cc_basename in
9345
      # old Intel for x86_64 which still supported -KPIC.
9346
      ecc*)
9347
        lt_prog_compiler_wl='-Wl,'
9348
        lt_prog_compiler_pic='-KPIC'
9349
        lt_prog_compiler_static='-static'
9350
        ;;
9351
      # icc used to be incompatible with GCC.
9352
      # ICC 10 doesn't accept -KPIC any more.
9353
      icc* | ifort*)
9354
        lt_prog_compiler_wl='-Wl,'
9355
        lt_prog_compiler_pic='-fPIC'
9356
        lt_prog_compiler_static='-static'
9357
        ;;
9358
      # Lahey Fortran 8.1.
9359
      lf95*)
9360
        lt_prog_compiler_wl='-Wl,'
9361
        lt_prog_compiler_pic='--shared'
9362
        lt_prog_compiler_static='--static'
9363
        ;;
9364
      pgcc* | pgf77* | pgf90* | pgf95*)
9365
        # Portland Group compilers (*not* the Pentium gcc compiler,
9366
        # which looks to be a dead project)
9367
        lt_prog_compiler_wl='-Wl,'
9368
        lt_prog_compiler_pic='-fpic'
9369
        lt_prog_compiler_static='-Bstatic'
9370
        ;;
9371
      ccc*)
9372
        lt_prog_compiler_wl='-Wl,'
9373
        # All Alpha code is PIC.
9374
        lt_prog_compiler_static='-non_shared'
9375
        ;;
9376
      xl*)
9377
        # IBM XL C 8.0/Fortran 10.1 on PPC
9378
        lt_prog_compiler_wl='-Wl,'
9379
        lt_prog_compiler_pic='-qpic'
9380
        lt_prog_compiler_static='-qstaticlink'
9381
        ;;
9382
      *)
9383
        case `$CC -V 2>&1 | sed 5q` in
9384
        *Sun\ C*)
9385
          # Sun C 5.9
9386
          lt_prog_compiler_pic='-KPIC'
9387
          lt_prog_compiler_static='-Bstatic'
9388
          lt_prog_compiler_wl='-Wl,'
9389
          ;;
9390
        *Sun\ F*)
9391
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9392
          lt_prog_compiler_pic='-KPIC'
9393
          lt_prog_compiler_static='-Bstatic'
9394
          lt_prog_compiler_wl=''
9395
          ;;
9396
        esac
9397
        ;;
9398
      esac
9399
      ;;
9400
 
9401
    newsos6)
9402
      lt_prog_compiler_pic='-KPIC'
9403
      lt_prog_compiler_static='-Bstatic'
9404
      ;;
9405
 
9406
    *nto* | *qnx*)
9407
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9408
      # it will coredump.
9409
      lt_prog_compiler_pic='-fPIC -shared'
9410
      ;;
9411
 
9412
    osf3* | osf4* | osf5*)
9413
      lt_prog_compiler_wl='-Wl,'
9414
      # All OSF/1 code is PIC.
9415
      lt_prog_compiler_static='-non_shared'
9416
      ;;
9417
 
9418
    rdos*)
9419
      lt_prog_compiler_static='-non_shared'
9420
      ;;
9421
 
9422
    solaris*)
9423
      lt_prog_compiler_pic='-KPIC'
9424
      lt_prog_compiler_static='-Bstatic'
9425
      case $cc_basename in
9426
      f77* | f90* | f95*)
9427
        lt_prog_compiler_wl='-Qoption ld ';;
9428
      *)
9429
        lt_prog_compiler_wl='-Wl,';;
9430
      esac
9431
      ;;
9432
 
9433
    sunos4*)
9434
      lt_prog_compiler_wl='-Qoption ld '
9435
      lt_prog_compiler_pic='-PIC'
9436
      lt_prog_compiler_static='-Bstatic'
9437
      ;;
9438
 
9439
    sysv4 | sysv4.2uw2* | sysv4.3*)
9440
      lt_prog_compiler_wl='-Wl,'
9441
      lt_prog_compiler_pic='-KPIC'
9442
      lt_prog_compiler_static='-Bstatic'
9443
      ;;
9444
 
9445
    sysv4*MP*)
9446
      if test -d /usr/nec ;then
9447
        lt_prog_compiler_pic='-Kconform_pic'
9448
        lt_prog_compiler_static='-Bstatic'
9449
      fi
9450
      ;;
9451
 
9452
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9453
      lt_prog_compiler_wl='-Wl,'
9454
      lt_prog_compiler_pic='-KPIC'
9455
      lt_prog_compiler_static='-Bstatic'
9456
      ;;
9457
 
9458
    unicos*)
9459
      lt_prog_compiler_wl='-Wl,'
9460
      lt_prog_compiler_can_build_shared=no
9461
      ;;
9462
 
9463
    uts4*)
9464
      lt_prog_compiler_pic='-pic'
9465
      lt_prog_compiler_static='-Bstatic'
9466
      ;;
9467
 
9468
    *)
9469
      lt_prog_compiler_can_build_shared=no
9470
      ;;
9471
    esac
9472
  fi
9473
 
9474
case $host_os in
9475
  # For platforms which do not support PIC, -DPIC is meaningless:
9476
  *djgpp*)
9477
    lt_prog_compiler_pic=
9478
    ;;
9479
  *)
9480
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9481
    ;;
9482
esac
9483
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9484
$as_echo "$lt_prog_compiler_pic" >&6; }
9485
 
9486
 
9487
 
9488
 
9489
 
9490
 
9491
#
9492
# Check to make sure the PIC flag actually works.
9493
#
9494
if test -n "$lt_prog_compiler_pic"; then
9495
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9496
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9497
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9498
  $as_echo_n "(cached) " >&6
9499
else
9500
  lt_cv_prog_compiler_pic_works=no
9501
   ac_outfile=conftest.$ac_objext
9502
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9503
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9504
   # Insert the option either (1) after the last *FLAGS variable, or
9505
   # (2) before a word containing "conftest.", or (3) at the end.
9506
   # Note that $ac_compile itself does not contain backslashes and begins
9507
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9508
   # The option is referenced via a variable to avoid confusing sed.
9509
   lt_compile=`echo "$ac_compile" | $SED \
9510
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9511
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9512
   -e 's:$: $lt_compiler_flag:'`
9513
   (eval echo "\"\$as_me:9513: $lt_compile\"" >&5)
9514
   (eval "$lt_compile" 2>conftest.err)
9515
   ac_status=$?
9516
   cat conftest.err >&5
9517
   echo "$as_me:9517: \$? = $ac_status" >&5
9518
   if (exit $ac_status) && test -s "$ac_outfile"; then
9519
     # The compiler can only warn and ignore the option if not recognized
9520
     # So say no if there are warnings other than the usual output.
9521
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9522
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9523
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9524
       lt_cv_prog_compiler_pic_works=yes
9525
     fi
9526
   fi
9527
   $RM conftest*
9528
 
9529
fi
9530
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9531
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9532
 
9533
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9534
    case $lt_prog_compiler_pic in
9535
     "" | " "*) ;;
9536
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9537
     esac
9538
else
9539
    lt_prog_compiler_pic=
9540
     lt_prog_compiler_can_build_shared=no
9541
fi
9542
 
9543
fi
9544
 
9545
 
9546
 
9547
 
9548
 
9549
 
9550
#
9551
# Check to make sure the static flag actually works.
9552
#
9553
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9554
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9555
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9556
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9557
  $as_echo_n "(cached) " >&6
9558
else
9559
  lt_cv_prog_compiler_static_works=no
9560
   save_LDFLAGS="$LDFLAGS"
9561
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9562
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9563
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9564
     # The linker can only warn and ignore the option if not recognized
9565
     # So say no if there are warnings
9566
     if test -s conftest.err; then
9567
       # Append any errors to the config.log.
9568
       cat conftest.err 1>&5
9569
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9570
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9571
       if diff conftest.exp conftest.er2 >/dev/null; then
9572
         lt_cv_prog_compiler_static_works=yes
9573
       fi
9574
     else
9575
       lt_cv_prog_compiler_static_works=yes
9576
     fi
9577
   fi
9578
   $RM -r conftest*
9579
   LDFLAGS="$save_LDFLAGS"
9580
 
9581
fi
9582
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9583
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9584
 
9585
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9586
    :
9587
else
9588
    lt_prog_compiler_static=
9589
fi
9590
 
9591
 
9592
 
9593
 
9594
 
9595
 
9596
 
9597
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9598
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9599
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9600
  $as_echo_n "(cached) " >&6
9601
else
9602
  lt_cv_prog_compiler_c_o=no
9603
   $RM -r conftest 2>/dev/null
9604
   mkdir conftest
9605
   cd conftest
9606
   mkdir out
9607
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9608
 
9609
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9610
   # Insert the option either (1) after the last *FLAGS variable, or
9611
   # (2) before a word containing "conftest.", or (3) at the end.
9612
   # Note that $ac_compile itself does not contain backslashes and begins
9613
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9614
   lt_compile=`echo "$ac_compile" | $SED \
9615
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9616
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9617
   -e 's:$: $lt_compiler_flag:'`
9618
   (eval echo "\"\$as_me:9618: $lt_compile\"" >&5)
9619
   (eval "$lt_compile" 2>out/conftest.err)
9620
   ac_status=$?
9621
   cat out/conftest.err >&5
9622
   echo "$as_me:9622: \$? = $ac_status" >&5
9623
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9624
   then
9625
     # The compiler can only warn and ignore the option if not recognized
9626
     # So say no if there are warnings
9627
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9628
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9629
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9630
       lt_cv_prog_compiler_c_o=yes
9631
     fi
9632
   fi
9633
   chmod u+w . 2>&5
9634
   $RM conftest*
9635
   # SGI C++ compiler will create directory out/ii_files/ for
9636
   # template instantiation
9637
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9638
   $RM out/* && rmdir out
9639
   cd ..
9640
   $RM -r conftest
9641
   $RM conftest*
9642
 
9643
fi
9644
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9645
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9646
 
9647
 
9648
 
9649
 
9650
 
9651
 
9652
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9653
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9654
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9655
  $as_echo_n "(cached) " >&6
9656
else
9657
  lt_cv_prog_compiler_c_o=no
9658
   $RM -r conftest 2>/dev/null
9659
   mkdir conftest
9660
   cd conftest
9661
   mkdir out
9662
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9663
 
9664
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9665
   # Insert the option either (1) after the last *FLAGS variable, or
9666
   # (2) before a word containing "conftest.", or (3) at the end.
9667
   # Note that $ac_compile itself does not contain backslashes and begins
9668
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9669
   lt_compile=`echo "$ac_compile" | $SED \
9670
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9671
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9672
   -e 's:$: $lt_compiler_flag:'`
9673
   (eval echo "\"\$as_me:9673: $lt_compile\"" >&5)
9674
   (eval "$lt_compile" 2>out/conftest.err)
9675
   ac_status=$?
9676
   cat out/conftest.err >&5
9677
   echo "$as_me:9677: \$? = $ac_status" >&5
9678
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9679
   then
9680
     # The compiler can only warn and ignore the option if not recognized
9681
     # So say no if there are warnings
9682
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9683
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9684
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9685
       lt_cv_prog_compiler_c_o=yes
9686
     fi
9687
   fi
9688
   chmod u+w . 2>&5
9689
   $RM conftest*
9690
   # SGI C++ compiler will create directory out/ii_files/ for
9691
   # template instantiation
9692
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9693
   $RM out/* && rmdir out
9694
   cd ..
9695
   $RM -r conftest
9696
   $RM conftest*
9697
 
9698
fi
9699
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9700
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9701
 
9702
 
9703
 
9704
 
9705
hard_links="nottested"
9706
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9707
  # do not overwrite the value of need_locks provided by the user
9708
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9709
$as_echo_n "checking if we can lock with hard links... " >&6; }
9710
  hard_links=yes
9711
  $RM conftest*
9712
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9713
  touch conftest.a
9714
  ln conftest.a conftest.b 2>&5 || hard_links=no
9715
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9716
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9717
$as_echo "$hard_links" >&6; }
9718
  if test "$hard_links" = no; then
9719
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9720
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9721
    need_locks=warn
9722
  fi
9723
else
9724
  need_locks=no
9725
fi
9726
 
9727
 
9728
 
9729
 
9730
 
9731
 
9732
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9733
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9734
 
9735
  runpath_var=
9736
  allow_undefined_flag=
9737
  always_export_symbols=no
9738
  archive_cmds=
9739
  archive_expsym_cmds=
9740
  compiler_needs_object=no
9741
  enable_shared_with_static_runtimes=no
9742
  export_dynamic_flag_spec=
9743
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9744
  hardcode_automatic=no
9745
  hardcode_direct=no
9746
  hardcode_direct_absolute=no
9747
  hardcode_libdir_flag_spec=
9748
  hardcode_libdir_flag_spec_ld=
9749
  hardcode_libdir_separator=
9750
  hardcode_minus_L=no
9751
  hardcode_shlibpath_var=unsupported
9752
  inherit_rpath=no
9753
  link_all_deplibs=unknown
9754
  module_cmds=
9755
  module_expsym_cmds=
9756
  old_archive_from_new_cmds=
9757
  old_archive_from_expsyms_cmds=
9758
  thread_safe_flag_spec=
9759
  whole_archive_flag_spec=
9760
  # include_expsyms should be a list of space-separated symbols to be *always*
9761
  # included in the symbol list
9762
  include_expsyms=
9763
  # exclude_expsyms can be an extended regexp of symbols to exclude
9764
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9765
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9766
  # as well as any symbol that contains `d'.
9767
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9768
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9769
  # platforms (ab)use it in PIC code, but their linkers get confused if
9770
  # the symbol is explicitly referenced.  Since portable code cannot
9771
  # rely on this symbol name, it's probably fine to never include it in
9772
  # preloaded symbol tables.
9773
  # Exclude shared library initialization/finalization symbols.
9774
  extract_expsyms_cmds=
9775
 
9776
  case $host_os in
9777
  cygwin* | mingw* | pw32* | cegcc*)
9778
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9779
    # When not using gcc, we currently assume that we are using
9780
    # Microsoft Visual C++.
9781
    if test "$GCC" != yes; then
9782
      with_gnu_ld=no
9783
    fi
9784
    ;;
9785
  interix*)
9786
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9787
    with_gnu_ld=yes
9788
    ;;
9789
  openbsd*)
9790
    with_gnu_ld=no
9791
    ;;
9792
  esac
9793
 
9794
  ld_shlibs=yes
9795
  if test "$with_gnu_ld" = yes; then
9796
    # If archive_cmds runs LD, not CC, wlarc should be empty
9797
    wlarc='${wl}'
9798
 
9799
    # Set some defaults for GNU ld with shared library support. These
9800
    # are reset later if shared libraries are not supported. Putting them
9801
    # here allows them to be overridden if necessary.
9802
    runpath_var=LD_RUN_PATH
9803
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9804
    export_dynamic_flag_spec='${wl}--export-dynamic'
9805
    # ancient GNU ld didn't support --whole-archive et. al.
9806
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9807
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9808
    else
9809
      whole_archive_flag_spec=
9810
    fi
9811
    supports_anon_versioning=no
9812
    case `$LD -v 2>&1` in
9813
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9814
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9815
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9816
      *\ 2.11.*) ;; # other 2.11 versions
9817
      *) supports_anon_versioning=yes ;;
9818
    esac
9819
 
9820
    # See if GNU ld supports shared libraries.
9821
    case $host_os in
9822
    aix[3-9]*)
9823
      # On AIX/PPC, the GNU linker is very broken
9824
      if test "$host_cpu" != ia64; then
9825
        ld_shlibs=no
9826
        cat <<_LT_EOF 1>&2
9827
 
9828
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9829
*** to be unable to reliably create shared libraries on AIX.
9830
*** Therefore, libtool is disabling shared libraries support.  If you
9831
*** really care for shared libraries, you may want to modify your PATH
9832
*** so that a non-GNU linker is found, and then restart.
9833
 
9834
_LT_EOF
9835
      fi
9836
      ;;
9837
 
9838
    amigaos*)
9839
      case $host_cpu in
9840
      powerpc)
9841
            # see comment about AmigaOS4 .so support
9842
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9843
            archive_expsym_cmds=''
9844
        ;;
9845
      m68k)
9846
            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)'
9847
            hardcode_libdir_flag_spec='-L$libdir'
9848
            hardcode_minus_L=yes
9849
        ;;
9850
      esac
9851
      ;;
9852
 
9853
    beos*)
9854
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9855
        allow_undefined_flag=unsupported
9856
        # Joseph Beckenbach  says some releases of gcc
9857
        # support --undefined.  This deserves some investigation.  FIXME
9858
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9859
      else
9860
        ld_shlibs=no
9861
      fi
9862
      ;;
9863
 
9864
    cygwin* | mingw* | pw32* | cegcc*)
9865
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9866
      # as there is no search path for DLLs.
9867
      hardcode_libdir_flag_spec='-L$libdir'
9868
      allow_undefined_flag=unsupported
9869
      always_export_symbols=no
9870
      enable_shared_with_static_runtimes=yes
9871
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9872
 
9873
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9874
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9875
        # If the export-symbols file already is a .def file (1st line
9876
        # is EXPORTS), use it as is; otherwise, prepend...
9877
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9878
          cp $export_symbols $output_objdir/$soname.def;
9879
        else
9880
          echo EXPORTS > $output_objdir/$soname.def;
9881
          cat $export_symbols >> $output_objdir/$soname.def;
9882
        fi~
9883
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9884
      else
9885
        ld_shlibs=no
9886
      fi
9887
      ;;
9888
 
9889
    interix[3-9]*)
9890
      hardcode_direct=no
9891
      hardcode_shlibpath_var=no
9892
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9893
      export_dynamic_flag_spec='${wl}-E'
9894
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9895
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9896
      # default) and relocated if they conflict, which is a slow very memory
9897
      # consuming and fragmenting process.  To avoid this, we pick a random,
9898
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9899
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9900
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9901
      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'
9902
      ;;
9903
 
9904
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9905
      tmp_diet=no
9906
      if test "$host_os" = linux-dietlibc; then
9907
        case $cc_basename in
9908
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9909
        esac
9910
      fi
9911
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9912
         && test "$tmp_diet" = no
9913
      then
9914
        tmp_addflag=
9915
        tmp_sharedflag='-shared'
9916
        case $cc_basename,$host_cpu in
9917
        pgcc*)                          # Portland Group C compiler
9918
          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'
9919
          tmp_addflag=' $pic_flag'
9920
          ;;
9921
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9922
          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'
9923
          tmp_addflag=' $pic_flag -Mnomain' ;;
9924
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9925
          tmp_addflag=' -i_dynamic' ;;
9926
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9927
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9928
        ifc* | ifort*)                  # Intel Fortran compiler
9929
          tmp_addflag=' -nofor_main' ;;
9930
        lf95*)                          # Lahey Fortran 8.1
9931
          whole_archive_flag_spec=
9932
          tmp_sharedflag='--shared' ;;
9933
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9934
          tmp_sharedflag='-qmkshrobj'
9935
          tmp_addflag= ;;
9936
        esac
9937
        case `$CC -V 2>&1 | sed 5q` in
9938
        *Sun\ C*)                       # Sun C 5.9
9939
          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'
9940
          compiler_needs_object=yes
9941
          tmp_sharedflag='-G' ;;
9942
        *Sun\ F*)                       # Sun Fortran 8.3
9943
          tmp_sharedflag='-G' ;;
9944
        esac
9945
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9946
 
9947
        if test "x$supports_anon_versioning" = xyes; then
9948
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9949
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9950
            echo "local: *; };" >> $output_objdir/$libname.ver~
9951
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9952
        fi
9953
 
9954
        case $cc_basename in
9955
        xlf*)
9956
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9957
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9958
          hardcode_libdir_flag_spec=
9959
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9960
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9961
          if test "x$supports_anon_versioning" = xyes; then
9962
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9963
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9964
              echo "local: *; };" >> $output_objdir/$libname.ver~
9965
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9966
          fi
9967
          ;;
9968
        esac
9969
      else
9970
        ld_shlibs=no
9971
      fi
9972
      ;;
9973
 
9974
    netbsd*)
9975
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9976
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9977
        wlarc=
9978
      else
9979
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9980
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9981
      fi
9982
      ;;
9983
 
9984
    solaris*)
9985
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9986
        ld_shlibs=no
9987
        cat <<_LT_EOF 1>&2
9988
 
9989
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9990
*** create shared libraries on Solaris systems.  Therefore, libtool
9991
*** is disabling shared libraries support.  We urge you to upgrade GNU
9992
*** binutils to release 2.9.1 or newer.  Another option is to modify
9993
*** your PATH or compiler configuration so that the native linker is
9994
*** used, and then restart.
9995
 
9996
_LT_EOF
9997
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9998
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9999
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10000
      else
10001
        ld_shlibs=no
10002
      fi
10003
      ;;
10004
 
10005
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10006
      case `$LD -v 2>&1` in
10007
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10008
        ld_shlibs=no
10009
        cat <<_LT_EOF 1>&2
10010
 
10011
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10012
*** reliably create shared libraries on SCO systems.  Therefore, libtool
10013
*** is disabling shared libraries support.  We urge you to upgrade GNU
10014
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10015
*** your PATH or compiler configuration so that the native linker is
10016
*** used, and then restart.
10017
 
10018
_LT_EOF
10019
        ;;
10020
        *)
10021
          # For security reasons, it is highly recommended that you always
10022
          # use absolute paths for naming shared libraries, and exclude the
10023
          # DT_RUNPATH tag from executables and libraries.  But doing so
10024
          # requires that you compile everything twice, which is a pain.
10025
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10026
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10027
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10028
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10029
          else
10030
            ld_shlibs=no
10031
          fi
10032
        ;;
10033
      esac
10034
      ;;
10035
 
10036
    sunos4*)
10037
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10038
      wlarc=
10039
      hardcode_direct=yes
10040
      hardcode_shlibpath_var=no
10041
      ;;
10042
 
10043
    *)
10044
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10045
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10046
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10047
      else
10048
        ld_shlibs=no
10049
      fi
10050
      ;;
10051
    esac
10052
 
10053
    if test "$ld_shlibs" = no; then
10054
      runpath_var=
10055
      hardcode_libdir_flag_spec=
10056
      export_dynamic_flag_spec=
10057
      whole_archive_flag_spec=
10058
    fi
10059
  else
10060
    # PORTME fill in a description of your system's linker (not GNU ld)
10061
    case $host_os in
10062
    aix3*)
10063
      allow_undefined_flag=unsupported
10064
      always_export_symbols=yes
10065
      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'
10066
      # Note: this linker hardcodes the directories in LIBPATH if there
10067
      # are no directories specified by -L.
10068
      hardcode_minus_L=yes
10069
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10070
        # Neither direct hardcoding nor static linking is supported with a
10071
        # broken collect2.
10072
        hardcode_direct=unsupported
10073
      fi
10074
      ;;
10075
 
10076
    aix[4-9]*)
10077
      if test "$host_cpu" = ia64; then
10078
        # On IA64, the linker does run time linking by default, so we don't
10079
        # have to do anything special.
10080
        aix_use_runtimelinking=no
10081
        exp_sym_flag='-Bexport'
10082
        no_entry_flag=""
10083
      else
10084
        # If we're using GNU nm, then we don't want the "-C" option.
10085
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10086
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10087
          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'
10088
        else
10089
          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'
10090
        fi
10091
        aix_use_runtimelinking=no
10092
 
10093
        # Test if we are trying to use run time linking or normal
10094
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10095
        # need to do runtime linking.
10096
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10097
          for ld_flag in $LDFLAGS; do
10098
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10099
            aix_use_runtimelinking=yes
10100
            break
10101
          fi
10102
          done
10103
          ;;
10104
        esac
10105
 
10106
        exp_sym_flag='-bexport'
10107
        no_entry_flag='-bnoentry'
10108
      fi
10109
 
10110
      # When large executables or shared objects are built, AIX ld can
10111
      # have problems creating the table of contents.  If linking a library
10112
      # or program results in "error TOC overflow" add -mminimal-toc to
10113
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10114
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10115
 
10116
      archive_cmds=''
10117
      hardcode_direct=yes
10118
      hardcode_direct_absolute=yes
10119
      hardcode_libdir_separator=':'
10120
      link_all_deplibs=yes
10121
      file_list_spec='${wl}-f,'
10122
 
10123
      if test "$GCC" = yes; then
10124
        case $host_os in aix4.[012]|aix4.[012].*)
10125
        # We only want to do this on AIX 4.2 and lower, the check
10126
        # below for broken collect2 doesn't work under 4.3+
10127
          collect2name=`${CC} -print-prog-name=collect2`
10128
          if test -f "$collect2name" &&
10129
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10130
          then
10131
          # We have reworked collect2
10132
          :
10133
          else
10134
          # We have old collect2
10135
          hardcode_direct=unsupported
10136
          # It fails to find uninstalled libraries when the uninstalled
10137
          # path is not listed in the libpath.  Setting hardcode_minus_L
10138
          # to unsupported forces relinking
10139
          hardcode_minus_L=yes
10140
          hardcode_libdir_flag_spec='-L$libdir'
10141
          hardcode_libdir_separator=
10142
          fi
10143
          ;;
10144
        esac
10145
        shared_flag='-shared'
10146
        if test "$aix_use_runtimelinking" = yes; then
10147
          shared_flag="$shared_flag "'${wl}-G'
10148
        fi
10149
      else
10150
        # not using gcc
10151
        if test "$host_cpu" = ia64; then
10152
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10153
        # chokes on -Wl,-G. The following line is correct:
10154
          shared_flag='-G'
10155
        else
10156
          if test "$aix_use_runtimelinking" = yes; then
10157
            shared_flag='${wl}-G'
10158
          else
10159
            shared_flag='${wl}-bM:SRE'
10160
          fi
10161
        fi
10162
      fi
10163
 
10164
      export_dynamic_flag_spec='${wl}-bexpall'
10165
      # It seems that -bexpall does not export symbols beginning with
10166
      # underscore (_), so it is better to generate a list of symbols to export.
10167
      always_export_symbols=yes
10168
      if test "$aix_use_runtimelinking" = yes; then
10169
        # Warning - without using the other runtime loading flags (-brtl),
10170
        # -berok will link without error, but may produce a broken library.
10171
        allow_undefined_flag='-berok'
10172
        # Determine the default libpath from the value encoded in an
10173
        # empty executable.
10174
        cat >conftest.$ac_ext <<_ACEOF
10175
/* confdefs.h.  */
10176
_ACEOF
10177
cat confdefs.h >>conftest.$ac_ext
10178
cat >>conftest.$ac_ext <<_ACEOF
10179
/* end confdefs.h.  */
10180
 
10181
int
10182
main ()
10183
{
10184
 
10185
  ;
10186
  return 0;
10187
}
10188
_ACEOF
10189
rm -f conftest.$ac_objext conftest$ac_exeext
10190
if { (ac_try="$ac_link"
10191
case "(($ac_try" in
10192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10193
  *) ac_try_echo=$ac_try;;
10194
esac
10195
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10196
$as_echo "$ac_try_echo") >&5
10197
  (eval "$ac_link") 2>conftest.er1
10198
  ac_status=$?
10199
  grep -v '^ *+' conftest.er1 >conftest.err
10200
  rm -f conftest.er1
10201
  cat conftest.err >&5
10202
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203
  (exit $ac_status); } && {
10204
         test -z "$ac_c_werror_flag" ||
10205
         test ! -s conftest.err
10206
       } && test -s conftest$ac_exeext && {
10207
         test "$cross_compiling" = yes ||
10208
         $as_test_x conftest$ac_exeext
10209
       }; then
10210
 
10211
lt_aix_libpath_sed='
10212
    /Import File Strings/,/^$/ {
10213
        /^0/ {
10214
            s/^0  *\(.*\)$/\1/
10215
            p
10216
        }
10217
    }'
10218
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10219
# Check for a 64-bit object if we didn't find anything.
10220
if test -z "$aix_libpath"; then
10221
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10222
fi
10223
else
10224
  $as_echo "$as_me: failed program was:" >&5
10225
sed 's/^/| /' conftest.$ac_ext >&5
10226
 
10227
 
10228
fi
10229
 
10230
rm -rf conftest.dSYM
10231
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232
      conftest$ac_exeext conftest.$ac_ext
10233
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10234
 
10235
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10236
        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"
10237
      else
10238
        if test "$host_cpu" = ia64; then
10239
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10240
          allow_undefined_flag="-z nodefs"
10241
          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"
10242
        else
10243
         # Determine the default libpath from the value encoded in an
10244
         # empty executable.
10245
         cat >conftest.$ac_ext <<_ACEOF
10246
/* confdefs.h.  */
10247
_ACEOF
10248
cat confdefs.h >>conftest.$ac_ext
10249
cat >>conftest.$ac_ext <<_ACEOF
10250
/* end confdefs.h.  */
10251
 
10252
int
10253
main ()
10254
{
10255
 
10256
  ;
10257
  return 0;
10258
}
10259
_ACEOF
10260
rm -f conftest.$ac_objext conftest$ac_exeext
10261
if { (ac_try="$ac_link"
10262
case "(($ac_try" in
10263
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264
  *) ac_try_echo=$ac_try;;
10265
esac
10266
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10267
$as_echo "$ac_try_echo") >&5
10268
  (eval "$ac_link") 2>conftest.er1
10269
  ac_status=$?
10270
  grep -v '^ *+' conftest.er1 >conftest.err
10271
  rm -f conftest.er1
10272
  cat conftest.err >&5
10273
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274
  (exit $ac_status); } && {
10275
         test -z "$ac_c_werror_flag" ||
10276
         test ! -s conftest.err
10277
       } && test -s conftest$ac_exeext && {
10278
         test "$cross_compiling" = yes ||
10279
         $as_test_x conftest$ac_exeext
10280
       }; then
10281
 
10282
lt_aix_libpath_sed='
10283
    /Import File Strings/,/^$/ {
10284
        /^0/ {
10285
            s/^0  *\(.*\)$/\1/
10286
            p
10287
        }
10288
    }'
10289
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10290
# Check for a 64-bit object if we didn't find anything.
10291
if test -z "$aix_libpath"; then
10292
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10293
fi
10294
else
10295
  $as_echo "$as_me: failed program was:" >&5
10296
sed 's/^/| /' conftest.$ac_ext >&5
10297
 
10298
 
10299
fi
10300
 
10301
rm -rf conftest.dSYM
10302
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10303
      conftest$ac_exeext conftest.$ac_ext
10304
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10305
 
10306
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10307
          # Warning - without using the other run time loading flags,
10308
          # -berok will link without error, but may produce a broken library.
10309
          no_undefined_flag=' ${wl}-bernotok'
10310
          allow_undefined_flag=' ${wl}-berok'
10311
          # Exported symbols can be pulled into shared objects from archives
10312
          whole_archive_flag_spec='$convenience'
10313
          archive_cmds_need_lc=yes
10314
          # This is similar to how AIX traditionally builds its shared libraries.
10315
          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'
10316
        fi
10317
      fi
10318
      ;;
10319
 
10320
    amigaos*)
10321
      case $host_cpu in
10322
      powerpc)
10323
            # see comment about AmigaOS4 .so support
10324
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10325
            archive_expsym_cmds=''
10326
        ;;
10327
      m68k)
10328
            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)'
10329
            hardcode_libdir_flag_spec='-L$libdir'
10330
            hardcode_minus_L=yes
10331
        ;;
10332
      esac
10333
      ;;
10334
 
10335
    bsdi[45]*)
10336
      export_dynamic_flag_spec=-rdynamic
10337
      ;;
10338
 
10339
    cygwin* | mingw* | pw32* | cegcc*)
10340
      # When not using gcc, we currently assume that we are using
10341
      # Microsoft Visual C++.
10342
      # hardcode_libdir_flag_spec is actually meaningless, as there is
10343
      # no search path for DLLs.
10344
      hardcode_libdir_flag_spec=' '
10345
      allow_undefined_flag=unsupported
10346
      # Tell ltmain to make .lib files, not .a files.
10347
      libext=lib
10348
      # Tell ltmain to make .dll files, not .so files.
10349
      shrext_cmds=".dll"
10350
      # FIXME: Setting linknames here is a bad hack.
10351
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10352
      # The linker will automatically build a .lib file if we build a DLL.
10353
      old_archive_from_new_cmds='true'
10354
      # FIXME: Should let the user specify the lib program.
10355
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10356
      fix_srcfile_path='`cygpath -w "$srcfile"`'
10357
      enable_shared_with_static_runtimes=yes
10358
      ;;
10359
 
10360
    darwin* | rhapsody*)
10361
 
10362
 
10363
  archive_cmds_need_lc=no
10364
  hardcode_direct=no
10365
  hardcode_automatic=yes
10366
  hardcode_shlibpath_var=unsupported
10367
  whole_archive_flag_spec=''
10368
  link_all_deplibs=yes
10369
  allow_undefined_flag="$_lt_dar_allow_undefined"
10370
  case $cc_basename in
10371
     ifort*) _lt_dar_can_shared=yes ;;
10372
     *) _lt_dar_can_shared=$GCC ;;
10373
  esac
10374
  if test "$_lt_dar_can_shared" = "yes"; then
10375
    output_verbose_link_cmd=echo
10376
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10377
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10378
    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}"
10379
    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}"
10380
 
10381
  else
10382
  ld_shlibs=no
10383
  fi
10384
 
10385
      ;;
10386
 
10387
    dgux*)
10388
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10389
      hardcode_libdir_flag_spec='-L$libdir'
10390
      hardcode_shlibpath_var=no
10391
      ;;
10392
 
10393
    freebsd1*)
10394
      ld_shlibs=no
10395
      ;;
10396
 
10397
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10398
    # support.  Future versions do this automatically, but an explicit c++rt0.o
10399
    # does not break anything, and helps significantly (at the cost of a little
10400
    # extra space).
10401
    freebsd2.2*)
10402
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10403
      hardcode_libdir_flag_spec='-R$libdir'
10404
      hardcode_direct=yes
10405
      hardcode_shlibpath_var=no
10406
      ;;
10407
 
10408
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10409
    freebsd2*)
10410
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10411
      hardcode_direct=yes
10412
      hardcode_minus_L=yes
10413
      hardcode_shlibpath_var=no
10414
      ;;
10415
 
10416
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10417
    freebsd* | dragonfly*)
10418
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10419
      hardcode_libdir_flag_spec='-R$libdir'
10420
      hardcode_direct=yes
10421
      hardcode_shlibpath_var=no
10422
      ;;
10423
 
10424
    hpux9*)
10425
      if test "$GCC" = yes; then
10426
        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'
10427
      else
10428
        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'
10429
      fi
10430
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10431
      hardcode_libdir_separator=:
10432
      hardcode_direct=yes
10433
 
10434
      # hardcode_minus_L: Not really in the search PATH,
10435
      # but as the default location of the library.
10436
      hardcode_minus_L=yes
10437
      export_dynamic_flag_spec='${wl}-E'
10438
      ;;
10439
 
10440
    hpux10*)
10441
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10442
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10443
      else
10444
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10445
      fi
10446
      if test "$with_gnu_ld" = no; then
10447
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10448
        hardcode_libdir_flag_spec_ld='+b $libdir'
10449
        hardcode_libdir_separator=:
10450
        hardcode_direct=yes
10451
        hardcode_direct_absolute=yes
10452
        export_dynamic_flag_spec='${wl}-E'
10453
        # hardcode_minus_L: Not really in the search PATH,
10454
        # but as the default location of the library.
10455
        hardcode_minus_L=yes
10456
      fi
10457
      ;;
10458
 
10459
    hpux11*)
10460
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10461
        case $host_cpu in
10462
        hppa*64*)
10463
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10464
          ;;
10465
        ia64*)
10466
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10467
          ;;
10468
        *)
10469
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10470
          ;;
10471
        esac
10472
      else
10473
        case $host_cpu in
10474
        hppa*64*)
10475
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10476
          ;;
10477
        ia64*)
10478
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10479
          ;;
10480
        *)
10481
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10482
          ;;
10483
        esac
10484
      fi
10485
      if test "$with_gnu_ld" = no; then
10486
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10487
        hardcode_libdir_separator=:
10488
 
10489
        case $host_cpu in
10490
        hppa*64*|ia64*)
10491
          hardcode_direct=no
10492
          hardcode_shlibpath_var=no
10493
          ;;
10494
        *)
10495
          hardcode_direct=yes
10496
          hardcode_direct_absolute=yes
10497
          export_dynamic_flag_spec='${wl}-E'
10498
 
10499
          # hardcode_minus_L: Not really in the search PATH,
10500
          # but as the default location of the library.
10501
          hardcode_minus_L=yes
10502
          ;;
10503
        esac
10504
      fi
10505
      ;;
10506
 
10507
    irix5* | irix6* | nonstopux*)
10508
      if test "$GCC" = yes; then
10509
        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'
10510
        # Try to use the -exported_symbol ld option, if it does not
10511
        # work, assume that -exports_file does not work either and
10512
        # implicitly export all symbols.
10513
        save_LDFLAGS="$LDFLAGS"
10514
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10515
        cat >conftest.$ac_ext <<_ACEOF
10516
int foo(void) {}
10517
_ACEOF
10518
rm -f conftest.$ac_objext conftest$ac_exeext
10519
if { (ac_try="$ac_link"
10520
case "(($ac_try" in
10521
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522
  *) ac_try_echo=$ac_try;;
10523
esac
10524
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10525
$as_echo "$ac_try_echo") >&5
10526
  (eval "$ac_link") 2>conftest.er1
10527
  ac_status=$?
10528
  grep -v '^ *+' conftest.er1 >conftest.err
10529
  rm -f conftest.er1
10530
  cat conftest.err >&5
10531
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532
  (exit $ac_status); } && {
10533
         test -z "$ac_c_werror_flag" ||
10534
         test ! -s conftest.err
10535
       } && test -s conftest$ac_exeext && {
10536
         test "$cross_compiling" = yes ||
10537
         $as_test_x conftest$ac_exeext
10538
       }; then
10539
  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'
10540
 
10541
else
10542
  $as_echo "$as_me: failed program was:" >&5
10543
sed 's/^/| /' conftest.$ac_ext >&5
10544
 
10545
 
10546
fi
10547
 
10548
rm -rf conftest.dSYM
10549
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10550
      conftest$ac_exeext conftest.$ac_ext
10551
        LDFLAGS="$save_LDFLAGS"
10552
      else
10553
        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'
10554
        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'
10555
      fi
10556
      archive_cmds_need_lc='no'
10557
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10558
      hardcode_libdir_separator=:
10559
      inherit_rpath=yes
10560
      link_all_deplibs=yes
10561
      ;;
10562
 
10563
    netbsd*)
10564
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10565
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10566
      else
10567
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10568
      fi
10569
      hardcode_libdir_flag_spec='-R$libdir'
10570
      hardcode_direct=yes
10571
      hardcode_shlibpath_var=no
10572
      ;;
10573
 
10574
    newsos6)
10575
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10576
      hardcode_direct=yes
10577
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10578
      hardcode_libdir_separator=:
10579
      hardcode_shlibpath_var=no
10580
      ;;
10581
 
10582
    *nto* | *qnx*)
10583
      ;;
10584
 
10585
    openbsd*)
10586
      if test -f /usr/libexec/ld.so; then
10587
        hardcode_direct=yes
10588
        hardcode_shlibpath_var=no
10589
        hardcode_direct_absolute=yes
10590
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10591
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10592
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10593
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10594
          export_dynamic_flag_spec='${wl}-E'
10595
        else
10596
          case $host_os in
10597
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10598
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10599
             hardcode_libdir_flag_spec='-R$libdir'
10600
             ;;
10601
           *)
10602
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10603
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10604
             ;;
10605
          esac
10606
        fi
10607
      else
10608
        ld_shlibs=no
10609
      fi
10610
      ;;
10611
 
10612
    os2*)
10613
      hardcode_libdir_flag_spec='-L$libdir'
10614
      hardcode_minus_L=yes
10615
      allow_undefined_flag=unsupported
10616
      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'
10617
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10618
      ;;
10619
 
10620
    osf3*)
10621
      if test "$GCC" = yes; then
10622
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10623
        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'
10624
      else
10625
        allow_undefined_flag=' -expect_unresolved \*'
10626
        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'
10627
      fi
10628
      archive_cmds_need_lc='no'
10629
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10630
      hardcode_libdir_separator=:
10631
      ;;
10632
 
10633
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10634
      if test "$GCC" = yes; then
10635
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10636
        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'
10637
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10638
      else
10639
        allow_undefined_flag=' -expect_unresolved \*'
10640
        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'
10641
        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~
10642
        $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'
10643
 
10644
        # Both c and cxx compiler support -rpath directly
10645
        hardcode_libdir_flag_spec='-rpath $libdir'
10646
      fi
10647
      archive_cmds_need_lc='no'
10648
      hardcode_libdir_separator=:
10649
      ;;
10650
 
10651
    solaris*)
10652
      no_undefined_flag=' -z defs'
10653
      if test "$GCC" = yes; then
10654
        wlarc='${wl}'
10655
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10656
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10657
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10658
      else
10659
        case `$CC -V 2>&1` in
10660
        *"Compilers 5.0"*)
10661
          wlarc=''
10662
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10663
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10664
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10665
          ;;
10666
        *)
10667
          wlarc='${wl}'
10668
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10669
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10670
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10671
          ;;
10672
        esac
10673
      fi
10674
      hardcode_libdir_flag_spec='-R$libdir'
10675
      hardcode_shlibpath_var=no
10676
      case $host_os in
10677
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10678
      *)
10679
        # The compiler driver will combine and reorder linker options,
10680
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10681
        # but is careful enough not to reorder.
10682
        # Supported since Solaris 2.6 (maybe 2.5.1?)
10683
        if test "$GCC" = yes; then
10684
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10685
        else
10686
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10687
        fi
10688
        ;;
10689
      esac
10690
      link_all_deplibs=yes
10691
      ;;
10692
 
10693
    sunos4*)
10694
      if test "x$host_vendor" = xsequent; then
10695
        # Use $CC to link under sequent, because it throws in some extra .o
10696
        # files that make .init and .fini sections work.
10697
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10698
      else
10699
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10700
      fi
10701
      hardcode_libdir_flag_spec='-L$libdir'
10702
      hardcode_direct=yes
10703
      hardcode_minus_L=yes
10704
      hardcode_shlibpath_var=no
10705
      ;;
10706
 
10707
    sysv4)
10708
      case $host_vendor in
10709
        sni)
10710
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711
          hardcode_direct=yes # is this really true???
10712
        ;;
10713
        siemens)
10714
          ## LD is ld it makes a PLAMLIB
10715
          ## CC just makes a GrossModule.
10716
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10717
          reload_cmds='$CC -r -o $output$reload_objs'
10718
          hardcode_direct=no
10719
        ;;
10720
        motorola)
10721
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10722
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10723
        ;;
10724
      esac
10725
      runpath_var='LD_RUN_PATH'
10726
      hardcode_shlibpath_var=no
10727
      ;;
10728
 
10729
    sysv4.3*)
10730
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10731
      hardcode_shlibpath_var=no
10732
      export_dynamic_flag_spec='-Bexport'
10733
      ;;
10734
 
10735
    sysv4*MP*)
10736
      if test -d /usr/nec; then
10737
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10738
        hardcode_shlibpath_var=no
10739
        runpath_var=LD_RUN_PATH
10740
        hardcode_runpath_var=yes
10741
        ld_shlibs=yes
10742
      fi
10743
      ;;
10744
 
10745
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10746
      no_undefined_flag='${wl}-z,text'
10747
      archive_cmds_need_lc=no
10748
      hardcode_shlibpath_var=no
10749
      runpath_var='LD_RUN_PATH'
10750
 
10751
      if test "$GCC" = yes; then
10752
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10753
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10754
      else
10755
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10756
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10757
      fi
10758
      ;;
10759
 
10760
    sysv5* | sco3.2v5* | sco5v6*)
10761
      # Note: We can NOT use -z defs as we might desire, because we do not
10762
      # link with -lc, and that would cause any symbols used from libc to
10763
      # always be unresolved, which means just about no library would
10764
      # ever link correctly.  If we're not using GNU ld we use -z text
10765
      # though, which does catch some bad symbols but isn't as heavy-handed
10766
      # as -z defs.
10767
      no_undefined_flag='${wl}-z,text'
10768
      allow_undefined_flag='${wl}-z,nodefs'
10769
      archive_cmds_need_lc=no
10770
      hardcode_shlibpath_var=no
10771
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10772
      hardcode_libdir_separator=':'
10773
      link_all_deplibs=yes
10774
      export_dynamic_flag_spec='${wl}-Bexport'
10775
      runpath_var='LD_RUN_PATH'
10776
 
10777
      if test "$GCC" = yes; then
10778
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10779
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10780
      else
10781
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10782
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10783
      fi
10784
      ;;
10785
 
10786
    uts4*)
10787
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10788
      hardcode_libdir_flag_spec='-L$libdir'
10789
      hardcode_shlibpath_var=no
10790
      ;;
10791
 
10792
    *)
10793
      ld_shlibs=no
10794
      ;;
10795
    esac
10796
 
10797
    if test x$host_vendor = xsni; then
10798
      case $host in
10799
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10800
        export_dynamic_flag_spec='${wl}-Blargedynsym'
10801
        ;;
10802
      esac
10803
    fi
10804
  fi
10805
 
10806
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10807
$as_echo "$ld_shlibs" >&6; }
10808
test "$ld_shlibs" = no && can_build_shared=no
10809
 
10810
with_gnu_ld=$with_gnu_ld
10811
 
10812
 
10813
 
10814
 
10815
 
10816
 
10817
 
10818
 
10819
 
10820
 
10821
 
10822
 
10823
 
10824
 
10825
 
10826
#
10827
# Do we need to explicitly link libc?
10828
#
10829
case "x$archive_cmds_need_lc" in
10830
x|xyes)
10831
  # Assume -lc should be added
10832
  archive_cmds_need_lc=yes
10833
 
10834
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10835
    case $archive_cmds in
10836
    *'~'*)
10837
      # FIXME: we may have to deal with multi-command sequences.
10838
      ;;
10839
    '$CC '*)
10840
      # Test whether the compiler implicitly links with -lc since on some
10841
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10842
      # to ld, don't add -lc before -lgcc.
10843
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10844
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10845
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10846
  $as_echo_n "(cached) " >&6
10847
else
10848
  $RM conftest*
10849
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10850
 
10851
        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10852
  (eval $ac_compile) 2>&5
10853
  ac_status=$?
10854
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855
  (exit $ac_status); } 2>conftest.err; then
10856
          soname=conftest
10857
          lib=conftest
10858
          libobjs=conftest.$ac_objext
10859
          deplibs=
10860
          wl=$lt_prog_compiler_wl
10861
          pic_flag=$lt_prog_compiler_pic
10862
          compiler_flags=-v
10863
          linker_flags=-v
10864
          verstring=
10865
          output_objdir=.
10866
          libname=conftest
10867
          lt_save_allow_undefined_flag=$allow_undefined_flag
10868
          allow_undefined_flag=
10869
          if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10870
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10871
  ac_status=$?
10872
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873
  (exit $ac_status); }
10874
          then
10875
            lt_cv_archive_cmds_need_lc=no
10876
          else
10877
            lt_cv_archive_cmds_need_lc=yes
10878
          fi
10879
          allow_undefined_flag=$lt_save_allow_undefined_flag
10880
        else
10881
          cat conftest.err 1>&5
10882
        fi
10883
        $RM conftest*
10884
 
10885
fi
10886
{ $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10887
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10888
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10889
      ;;
10890
    esac
10891
  fi
10892
  ;;
10893
esac
10894
 
10895
 
10896
 
10897
 
10898
 
10899
 
10900
 
10901
 
10902
 
10903
 
10904
 
10905
 
10906
 
10907
 
10908
 
10909
 
10910
 
10911
 
10912
 
10913
 
10914
 
10915
 
10916
 
10917
 
10918
 
10919
 
10920
 
10921
 
10922
 
10923
 
10924
 
10925
 
10926
 
10927
 
10928
 
10929
 
10930
 
10931
 
10932
 
10933
 
10934
 
10935
 
10936
 
10937
 
10938
 
10939
 
10940
 
10941
 
10942
 
10943
 
10944
 
10945
 
10946
 
10947
 
10948
 
10949
 
10950
 
10951
 
10952
 
10953
 
10954
 
10955
 
10956
 
10957
 
10958
 
10959
 
10960
 
10961
 
10962
 
10963
 
10964
 
10965
 
10966
 
10967
 
10968
 
10969
 
10970
 
10971
 
10972
 
10973
 
10974
 
10975
 
10976
 
10977
 
10978
 
10979
 
10980
 
10981
 
10982
 
10983
 
10984
 
10985
 
10986
 
10987
 
10988
 
10989
 
10990
 
10991
 
10992
 
10993
 
10994
 
10995
 
10996
 
10997
 
10998
 
10999
 
11000
 
11001
 
11002
 
11003
 
11004
 
11005
 
11006
 
11007
 
11008
 
11009
 
11010
 
11011
 
11012
 
11013
 
11014
 
11015
 
11016
 
11017
 
11018
 
11019
 
11020
 
11021
 
11022
 
11023
 
11024
 
11025
 
11026
 
11027
 
11028
 
11029
 
11030
 
11031
 
11032
 
11033
 
11034
 
11035
 
11036
 
11037
 
11038
 
11039
 
11040
 
11041
 
11042
 
11043
 
11044
 
11045
 
11046
 
11047
 
11048
 
11049
 
11050
 
11051
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11052
$as_echo_n "checking dynamic linker characteristics... " >&6; }
11053
 
11054
if test "$GCC" = yes; then
11055
  case $host_os in
11056
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11057
    *) lt_awk_arg="/^libraries:/" ;;
11058
  esac
11059
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11060
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11061
    # if the path contains ";" then we assume it to be the separator
11062
    # otherwise default to the standard path separator (i.e. ":") - it is
11063
    # assumed that no part of a normal pathname contains ";" but that should
11064
    # okay in the real world where ";" in dirpaths is itself problematic.
11065
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11066
  else
11067
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11068
  fi
11069
  # Ok, now we have the path, separated by spaces, we can step through it
11070
  # and add multilib dir if necessary.
11071
  lt_tmp_lt_search_path_spec=
11072
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11073
  for lt_sys_path in $lt_search_path_spec; do
11074
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11075
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11076
    else
11077
      test -d "$lt_sys_path" && \
11078
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11079
    fi
11080
  done
11081
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11082
BEGIN {RS=" "; FS="/|\n";} {
11083
  lt_foo="";
11084
  lt_count=0;
11085
  for (lt_i = NF; lt_i > 0; lt_i--) {
11086
    if ($lt_i != "" && $lt_i != ".") {
11087
      if ($lt_i == "..") {
11088
        lt_count++;
11089
      } else {
11090
        if (lt_count == 0) {
11091
          lt_foo="/" $lt_i lt_foo;
11092
        } else {
11093
          lt_count--;
11094
        }
11095
      }
11096
    }
11097
  }
11098
  if (lt_foo != "") { lt_freq[lt_foo]++; }
11099
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11100
}'`
11101
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11102
else
11103
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11104
fi
11105
library_names_spec=
11106
libname_spec='lib$name'
11107
soname_spec=
11108
shrext_cmds=".so"
11109
postinstall_cmds=
11110
postuninstall_cmds=
11111
finish_cmds=
11112
finish_eval=
11113
shlibpath_var=
11114
shlibpath_overrides_runpath=unknown
11115
version_type=none
11116
dynamic_linker="$host_os ld.so"
11117
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11118
need_lib_prefix=unknown
11119
hardcode_into_libs=no
11120
 
11121
# when you set need_version to no, make sure it does not cause -set_version
11122
# flags to be left without arguments
11123
need_version=unknown
11124
 
11125
case $host_os in
11126
aix3*)
11127
  version_type=linux
11128
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11129
  shlibpath_var=LIBPATH
11130
 
11131
  # AIX 3 has no versioning support, so we append a major version to the name.
11132
  soname_spec='${libname}${release}${shared_ext}$major'
11133
  ;;
11134
 
11135
aix[4-9]*)
11136
  version_type=linux
11137
  need_lib_prefix=no
11138
  need_version=no
11139
  hardcode_into_libs=yes
11140
  if test "$host_cpu" = ia64; then
11141
    # AIX 5 supports IA64
11142
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11143
    shlibpath_var=LD_LIBRARY_PATH
11144
  else
11145
    # With GCC up to 2.95.x, collect2 would create an import file
11146
    # for dependence libraries.  The import file would start with
11147
    # the line `#! .'.  This would cause the generated library to
11148
    # depend on `.', always an invalid library.  This was fixed in
11149
    # development snapshots of GCC prior to 3.0.
11150
    case $host_os in
11151
      aix4 | aix4.[01] | aix4.[01].*)
11152
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11153
           echo ' yes '
11154
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11155
        :
11156
      else
11157
        can_build_shared=no
11158
      fi
11159
      ;;
11160
    esac
11161
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11162
    # soname into executable. Probably we can add versioning support to
11163
    # collect2, so additional links can be useful in future.
11164
    if test "$aix_use_runtimelinking" = yes; then
11165
      # If using run time linking (on AIX 4.2 or later) use lib.so
11166
      # instead of lib.a to let people know that these are not
11167
      # typical AIX shared libraries.
11168
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169
    else
11170
      # We preserve .a as extension for shared libraries through AIX4.2
11171
      # and later when we are not doing run time linking.
11172
      library_names_spec='${libname}${release}.a $libname.a'
11173
      soname_spec='${libname}${release}${shared_ext}$major'
11174
    fi
11175
    shlibpath_var=LIBPATH
11176
  fi
11177
  ;;
11178
 
11179
amigaos*)
11180
  case $host_cpu in
11181
  powerpc)
11182
    # Since July 2007 AmigaOS4 officially supports .so libraries.
11183
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11184
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185
    ;;
11186
  m68k)
11187
    library_names_spec='$libname.ixlibrary $libname.a'
11188
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11189
    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'
11190
    ;;
11191
  esac
11192
  ;;
11193
 
11194
beos*)
11195
  library_names_spec='${libname}${shared_ext}'
11196
  dynamic_linker="$host_os ld.so"
11197
  shlibpath_var=LIBRARY_PATH
11198
  ;;
11199
 
11200
bsdi[45]*)
11201
  version_type=linux
11202
  need_version=no
11203
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204
  soname_spec='${libname}${release}${shared_ext}$major'
11205
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11206
  shlibpath_var=LD_LIBRARY_PATH
11207
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11208
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11209
  # the default ld.so.conf also contains /usr/contrib/lib and
11210
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11211
  # libtool to hard-code these into programs
11212
  ;;
11213
 
11214
cygwin* | mingw* | pw32* | cegcc*)
11215
  version_type=windows
11216
  shrext_cmds=".dll"
11217
  need_version=no
11218
  need_lib_prefix=no
11219
 
11220
  case $GCC,$host_os in
11221
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11222
    library_names_spec='$libname.dll.a'
11223
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11224
    postinstall_cmds='base_file=`basename \${file}`~
11225
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11226
      dldir=$destdir/`dirname \$dlpath`~
11227
      test -d \$dldir || mkdir -p \$dldir~
11228
      $install_prog $dir/$dlname \$dldir/$dlname~
11229
      chmod a+x \$dldir/$dlname~
11230
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11231
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11232
      fi'
11233
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11234
      dlpath=$dir/\$dldll~
11235
       $RM \$dlpath'
11236
    shlibpath_overrides_runpath=yes
11237
 
11238
    case $host_os in
11239
    cygwin*)
11240
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11241
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11242
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11243
      ;;
11244
    mingw* | cegcc*)
11245
      # MinGW DLLs use traditional 'lib' prefix
11246
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11247
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11248
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11249
        # It is most probably a Windows format PATH printed by
11250
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11251
        # path with ; separators, and with drive letters. We can handle the
11252
        # drive letters (cygwin fileutils understands them), so leave them,
11253
        # especially as we might pass files found there to a mingw objdump,
11254
        # which wouldn't understand a cygwinified path. Ahh.
11255
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11256
      else
11257
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11258
      fi
11259
      ;;
11260
    pw32*)
11261
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11262
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11263
      ;;
11264
    esac
11265
    ;;
11266
 
11267
  *)
11268
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11269
    ;;
11270
  esac
11271
  dynamic_linker='Win32 ld.exe'
11272
  # FIXME: first we should search . and the directory the executable is in
11273
  shlibpath_var=PATH
11274
  ;;
11275
 
11276
darwin* | rhapsody*)
11277
  dynamic_linker="$host_os dyld"
11278
  version_type=darwin
11279
  need_lib_prefix=no
11280
  need_version=no
11281
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11282
  soname_spec='${libname}${release}${major}$shared_ext'
11283
  shlibpath_overrides_runpath=yes
11284
  shlibpath_var=DYLD_LIBRARY_PATH
11285
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11286
 
11287
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11288
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11289
  ;;
11290
 
11291
dgux*)
11292
  version_type=linux
11293
  need_lib_prefix=no
11294
  need_version=no
11295
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11296
  soname_spec='${libname}${release}${shared_ext}$major'
11297
  shlibpath_var=LD_LIBRARY_PATH
11298
  ;;
11299
 
11300
freebsd1*)
11301
  dynamic_linker=no
11302
  ;;
11303
 
11304
freebsd* | dragonfly*)
11305
  # DragonFly does not have aout.  When/if they implement a new
11306
  # versioning mechanism, adjust this.
11307
  if test -x /usr/bin/objformat; then
11308
    objformat=`/usr/bin/objformat`
11309
  else
11310
    case $host_os in
11311
    freebsd[123]*) objformat=aout ;;
11312
    *) objformat=elf ;;
11313
    esac
11314
  fi
11315
  version_type=freebsd-$objformat
11316
  case $version_type in
11317
    freebsd-elf*)
11318
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11319
      need_version=no
11320
      need_lib_prefix=no
11321
      ;;
11322
    freebsd-*)
11323
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11324
      need_version=yes
11325
      ;;
11326
  esac
11327
  shlibpath_var=LD_LIBRARY_PATH
11328
  case $host_os in
11329
  freebsd2*)
11330
    shlibpath_overrides_runpath=yes
11331
    ;;
11332
  freebsd3.[01]* | freebsdelf3.[01]*)
11333
    shlibpath_overrides_runpath=yes
11334
    hardcode_into_libs=yes
11335
    ;;
11336
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11337
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11338
    shlibpath_overrides_runpath=no
11339
    hardcode_into_libs=yes
11340
    ;;
11341
  *) # from 4.6 on, and DragonFly
11342
    shlibpath_overrides_runpath=yes
11343
    hardcode_into_libs=yes
11344
    ;;
11345
  esac
11346
  ;;
11347
 
11348
gnu*)
11349
  version_type=linux
11350
  need_lib_prefix=no
11351
  need_version=no
11352
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11353
  soname_spec='${libname}${release}${shared_ext}$major'
11354
  shlibpath_var=LD_LIBRARY_PATH
11355
  hardcode_into_libs=yes
11356
  ;;
11357
 
11358
hpux9* | hpux10* | hpux11*)
11359
  # Give a soname corresponding to the major version so that dld.sl refuses to
11360
  # link against other versions.
11361
  version_type=sunos
11362
  need_lib_prefix=no
11363
  need_version=no
11364
  case $host_cpu in
11365
  ia64*)
11366
    shrext_cmds='.so'
11367
    hardcode_into_libs=yes
11368
    dynamic_linker="$host_os dld.so"
11369
    shlibpath_var=LD_LIBRARY_PATH
11370
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11371
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372
    soname_spec='${libname}${release}${shared_ext}$major'
11373
    if test "X$HPUX_IA64_MODE" = X32; then
11374
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11375
    else
11376
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11377
    fi
11378
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11379
    ;;
11380
  hppa*64*)
11381
    shrext_cmds='.sl'
11382
    hardcode_into_libs=yes
11383
    dynamic_linker="$host_os dld.sl"
11384
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11385
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11386
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11387
    soname_spec='${libname}${release}${shared_ext}$major'
11388
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11389
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11390
    ;;
11391
  *)
11392
    shrext_cmds='.sl'
11393
    dynamic_linker="$host_os dld.sl"
11394
    shlibpath_var=SHLIB_PATH
11395
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11396
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11397
    soname_spec='${libname}${release}${shared_ext}$major'
11398
    ;;
11399
  esac
11400
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11401
  postinstall_cmds='chmod 555 $lib'
11402
  ;;
11403
 
11404
interix[3-9]*)
11405
  version_type=linux
11406
  need_lib_prefix=no
11407
  need_version=no
11408
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11409
  soname_spec='${libname}${release}${shared_ext}$major'
11410
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11411
  shlibpath_var=LD_LIBRARY_PATH
11412
  shlibpath_overrides_runpath=no
11413
  hardcode_into_libs=yes
11414
  ;;
11415
 
11416
irix5* | irix6* | nonstopux*)
11417
  case $host_os in
11418
    nonstopux*) version_type=nonstopux ;;
11419
    *)
11420
        if test "$lt_cv_prog_gnu_ld" = yes; then
11421
                version_type=linux
11422
        else
11423
                version_type=irix
11424
        fi ;;
11425
  esac
11426
  need_lib_prefix=no
11427
  need_version=no
11428
  soname_spec='${libname}${release}${shared_ext}$major'
11429
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11430
  case $host_os in
11431
  irix5* | nonstopux*)
11432
    libsuff= shlibsuff=
11433
    ;;
11434
  *)
11435
    case $LD in # libtool.m4 will add one of these switches to LD
11436
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11437
      libsuff= shlibsuff= libmagic=32-bit;;
11438
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11439
      libsuff=32 shlibsuff=N32 libmagic=N32;;
11440
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11441
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11442
    *) libsuff= shlibsuff= libmagic=never-match;;
11443
    esac
11444
    ;;
11445
  esac
11446
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11447
  shlibpath_overrides_runpath=no
11448
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11449
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11450
  hardcode_into_libs=yes
11451
  ;;
11452
 
11453
# No shared lib support for Linux oldld, aout, or coff.
11454
linux*oldld* | linux*aout* | linux*coff*)
11455
  dynamic_linker=no
11456
  ;;
11457
 
11458
# This must be Linux ELF.
11459
linux* | k*bsd*-gnu | kopensolaris*-gnu)
11460
  version_type=linux
11461
  need_lib_prefix=no
11462
  need_version=no
11463
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11464
  soname_spec='${libname}${release}${shared_ext}$major'
11465
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11466
  shlibpath_var=LD_LIBRARY_PATH
11467
  shlibpath_overrides_runpath=no
11468
 
11469
  # Some binutils ld are patched to set DT_RUNPATH
11470
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11471
  $as_echo_n "(cached) " >&6
11472
else
11473
  lt_cv_shlibpath_overrides_runpath=no
11474
    save_LDFLAGS=$LDFLAGS
11475
    save_libdir=$libdir
11476
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11477
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11478
    cat >conftest.$ac_ext <<_ACEOF
11479
/* confdefs.h.  */
11480
_ACEOF
11481
cat confdefs.h >>conftest.$ac_ext
11482
cat >>conftest.$ac_ext <<_ACEOF
11483
/* end confdefs.h.  */
11484
 
11485
int
11486
main ()
11487
{
11488
 
11489
  ;
11490
  return 0;
11491
}
11492
_ACEOF
11493
rm -f conftest.$ac_objext conftest$ac_exeext
11494
if { (ac_try="$ac_link"
11495
case "(($ac_try" in
11496
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497
  *) ac_try_echo=$ac_try;;
11498
esac
11499
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11500
$as_echo "$ac_try_echo") >&5
11501
  (eval "$ac_link") 2>conftest.er1
11502
  ac_status=$?
11503
  grep -v '^ *+' conftest.er1 >conftest.err
11504
  rm -f conftest.er1
11505
  cat conftest.err >&5
11506
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507
  (exit $ac_status); } && {
11508
         test -z "$ac_c_werror_flag" ||
11509
         test ! -s conftest.err
11510
       } && test -s conftest$ac_exeext && {
11511
         test "$cross_compiling" = yes ||
11512
         $as_test_x conftest$ac_exeext
11513
       }; then
11514
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11515
  lt_cv_shlibpath_overrides_runpath=yes
11516
fi
11517
 
11518
else
11519
  $as_echo "$as_me: failed program was:" >&5
11520
sed 's/^/| /' conftest.$ac_ext >&5
11521
 
11522
 
11523
fi
11524
 
11525
rm -rf conftest.dSYM
11526
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11527
      conftest$ac_exeext conftest.$ac_ext
11528
    LDFLAGS=$save_LDFLAGS
11529
    libdir=$save_libdir
11530
 
11531
fi
11532
 
11533
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11534
 
11535
  # This implies no fast_install, which is unacceptable.
11536
  # Some rework will be needed to allow for fast_install
11537
  # before this can be enabled.
11538
  hardcode_into_libs=yes
11539
 
11540
  # Append ld.so.conf contents to the search path
11541
  if test -f /etc/ld.so.conf; then
11542
    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' ' '`
11543
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11544
  fi
11545
 
11546
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11547
  # powerpc, because MkLinux only supported shared libraries with the
11548
  # GNU dynamic linker.  Since this was broken with cross compilers,
11549
  # most powerpc-linux boxes support dynamic linking these days and
11550
  # people can always --disable-shared, the test was removed, and we
11551
  # assume the GNU/Linux dynamic linker is in use.
11552
  dynamic_linker='GNU/Linux ld.so'
11553
  ;;
11554
 
11555
netbsd*)
11556
  version_type=sunos
11557
  need_lib_prefix=no
11558
  need_version=no
11559
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11560
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11561
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11562
    dynamic_linker='NetBSD (a.out) ld.so'
11563
  else
11564
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11565
    soname_spec='${libname}${release}${shared_ext}$major'
11566
    dynamic_linker='NetBSD ld.elf_so'
11567
  fi
11568
  shlibpath_var=LD_LIBRARY_PATH
11569
  shlibpath_overrides_runpath=yes
11570
  hardcode_into_libs=yes
11571
  ;;
11572
 
11573
newsos6)
11574
  version_type=linux
11575
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576
  shlibpath_var=LD_LIBRARY_PATH
11577
  shlibpath_overrides_runpath=yes
11578
  ;;
11579
 
11580
*nto* | *qnx*)
11581
  version_type=qnx
11582
  need_lib_prefix=no
11583
  need_version=no
11584
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585
  soname_spec='${libname}${release}${shared_ext}$major'
11586
  shlibpath_var=LD_LIBRARY_PATH
11587
  shlibpath_overrides_runpath=no
11588
  hardcode_into_libs=yes
11589
  dynamic_linker='ldqnx.so'
11590
  ;;
11591
 
11592
openbsd*)
11593
  version_type=sunos
11594
  sys_lib_dlsearch_path_spec="/usr/lib"
11595
  need_lib_prefix=no
11596
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11597
  case $host_os in
11598
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11599
    *)                          need_version=no  ;;
11600
  esac
11601
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11602
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11603
  shlibpath_var=LD_LIBRARY_PATH
11604
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11605
    case $host_os in
11606
      openbsd2.[89] | openbsd2.[89].*)
11607
        shlibpath_overrides_runpath=no
11608
        ;;
11609
      *)
11610
        shlibpath_overrides_runpath=yes
11611
        ;;
11612
      esac
11613
  else
11614
    shlibpath_overrides_runpath=yes
11615
  fi
11616
  ;;
11617
 
11618
os2*)
11619
  libname_spec='$name'
11620
  shrext_cmds=".dll"
11621
  need_lib_prefix=no
11622
  library_names_spec='$libname${shared_ext} $libname.a'
11623
  dynamic_linker='OS/2 ld.exe'
11624
  shlibpath_var=LIBPATH
11625
  ;;
11626
 
11627
osf3* | osf4* | osf5*)
11628
  version_type=osf
11629
  need_lib_prefix=no
11630
  need_version=no
11631
  soname_spec='${libname}${release}${shared_ext}$major'
11632
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11633
  shlibpath_var=LD_LIBRARY_PATH
11634
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11635
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11636
  ;;
11637
 
11638
rdos*)
11639
  dynamic_linker=no
11640
  ;;
11641
 
11642
solaris*)
11643
  version_type=linux
11644
  need_lib_prefix=no
11645
  need_version=no
11646
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11647
  soname_spec='${libname}${release}${shared_ext}$major'
11648
  shlibpath_var=LD_LIBRARY_PATH
11649
  shlibpath_overrides_runpath=yes
11650
  hardcode_into_libs=yes
11651
  # ldd complains unless libraries are executable
11652
  postinstall_cmds='chmod +x $lib'
11653
  ;;
11654
 
11655
sunos4*)
11656
  version_type=sunos
11657
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11658
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11659
  shlibpath_var=LD_LIBRARY_PATH
11660
  shlibpath_overrides_runpath=yes
11661
  if test "$with_gnu_ld" = yes; then
11662
    need_lib_prefix=no
11663
  fi
11664
  need_version=yes
11665
  ;;
11666
 
11667
sysv4 | sysv4.3*)
11668
  version_type=linux
11669
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11670
  soname_spec='${libname}${release}${shared_ext}$major'
11671
  shlibpath_var=LD_LIBRARY_PATH
11672
  case $host_vendor in
11673
    sni)
11674
      shlibpath_overrides_runpath=no
11675
      need_lib_prefix=no
11676
      runpath_var=LD_RUN_PATH
11677
      ;;
11678
    siemens)
11679
      need_lib_prefix=no
11680
      ;;
11681
    motorola)
11682
      need_lib_prefix=no
11683
      need_version=no
11684
      shlibpath_overrides_runpath=no
11685
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11686
      ;;
11687
  esac
11688
  ;;
11689
 
11690
sysv4*MP*)
11691
  if test -d /usr/nec ;then
11692
    version_type=linux
11693
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11694
    soname_spec='$libname${shared_ext}.$major'
11695
    shlibpath_var=LD_LIBRARY_PATH
11696
  fi
11697
  ;;
11698
 
11699
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11700
  version_type=freebsd-elf
11701
  need_lib_prefix=no
11702
  need_version=no
11703
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11704
  soname_spec='${libname}${release}${shared_ext}$major'
11705
  shlibpath_var=LD_LIBRARY_PATH
11706
  shlibpath_overrides_runpath=yes
11707
  hardcode_into_libs=yes
11708
  if test "$with_gnu_ld" = yes; then
11709
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11710
  else
11711
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11712
    case $host_os in
11713
      sco3.2v5*)
11714
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11715
        ;;
11716
    esac
11717
  fi
11718
  sys_lib_dlsearch_path_spec='/usr/lib'
11719
  ;;
11720
 
11721
tpf*)
11722
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11723
  version_type=linux
11724
  need_lib_prefix=no
11725
  need_version=no
11726
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11727
  shlibpath_var=LD_LIBRARY_PATH
11728
  shlibpath_overrides_runpath=no
11729
  hardcode_into_libs=yes
11730
  ;;
11731
 
11732
uts4*)
11733
  version_type=linux
11734
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735
  soname_spec='${libname}${release}${shared_ext}$major'
11736
  shlibpath_var=LD_LIBRARY_PATH
11737
  ;;
11738
 
11739
*)
11740
  dynamic_linker=no
11741
  ;;
11742
esac
11743
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11744
$as_echo "$dynamic_linker" >&6; }
11745
test "$dynamic_linker" = no && can_build_shared=no
11746
 
11747
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11748
if test "$GCC" = yes; then
11749
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11750
fi
11751
 
11752
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11753
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11754
fi
11755
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11756
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11757
fi
11758
 
11759
 
11760
 
11761
 
11762
 
11763
 
11764
 
11765
 
11766
 
11767
 
11768
 
11769
 
11770
 
11771
 
11772
 
11773
 
11774
 
11775
 
11776
 
11777
 
11778
 
11779
 
11780
 
11781
 
11782
 
11783
 
11784
 
11785
 
11786
 
11787
 
11788
 
11789
 
11790
 
11791
 
11792
 
11793
 
11794
 
11795
 
11796
 
11797
 
11798
 
11799
 
11800
 
11801
 
11802
 
11803
 
11804
 
11805
 
11806
 
11807
 
11808
 
11809
 
11810
 
11811
 
11812
 
11813
 
11814
 
11815
 
11816
 
11817
 
11818
 
11819
 
11820
 
11821
 
11822
 
11823
 
11824
 
11825
 
11826
 
11827
 
11828
 
11829
 
11830
 
11831
 
11832
 
11833
 
11834
 
11835
 
11836
 
11837
 
11838
 
11839
 
11840
 
11841
 
11842
 
11843
 
11844
 
11845
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11846
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11847
hardcode_action=
11848
if test -n "$hardcode_libdir_flag_spec" ||
11849
   test -n "$runpath_var" ||
11850
   test "X$hardcode_automatic" = "Xyes" ; then
11851
 
11852
  # We can hardcode non-existent directories.
11853
  if test "$hardcode_direct" != no &&
11854
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11855
     # have to relink, otherwise we might link with an installed library
11856
     # when we should be linking with a yet-to-be-installed one
11857
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11858
     test "$hardcode_minus_L" != no; then
11859
    # Linking always hardcodes the temporary library directory.
11860
    hardcode_action=relink
11861
  else
11862
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11863
    hardcode_action=immediate
11864
  fi
11865
else
11866
  # We cannot hardcode anything, or else we can only hardcode existing
11867
  # directories.
11868
  hardcode_action=unsupported
11869
fi
11870
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11871
$as_echo "$hardcode_action" >&6; }
11872
 
11873
if test "$hardcode_action" = relink ||
11874
   test "$inherit_rpath" = yes; then
11875
  # Fast installation is not supported
11876
  enable_fast_install=no
11877
elif test "$shlibpath_overrides_runpath" = yes ||
11878
     test "$enable_shared" = no; then
11879
  # Fast installation is not necessary
11880
  enable_fast_install=needless
11881
fi
11882
 
11883
 
11884
 
11885
 
11886
 
11887
 
11888
  if test "x$enable_dlopen" != xyes; then
11889
  enable_dlopen=unknown
11890
  enable_dlopen_self=unknown
11891
  enable_dlopen_self_static=unknown
11892
else
11893
  lt_cv_dlopen=no
11894
  lt_cv_dlopen_libs=
11895
 
11896
  case $host_os in
11897
  beos*)
11898
    lt_cv_dlopen="load_add_on"
11899
    lt_cv_dlopen_libs=
11900
    lt_cv_dlopen_self=yes
11901
    ;;
11902
 
11903
  mingw* | pw32* | cegcc*)
11904
    lt_cv_dlopen="LoadLibrary"
11905
    lt_cv_dlopen_libs=
11906
    ;;
11907
 
11908
  cygwin*)
11909
    lt_cv_dlopen="dlopen"
11910
    lt_cv_dlopen_libs=
11911
    ;;
11912
 
11913
  darwin*)
11914
  # if libdl is installed we need to link against it
11915
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11916
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11917
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11918
  $as_echo_n "(cached) " >&6
11919
else
11920
  ac_check_lib_save_LIBS=$LIBS
11921
LIBS="-ldl  $LIBS"
11922
cat >conftest.$ac_ext <<_ACEOF
11923
/* confdefs.h.  */
11924
_ACEOF
11925
cat confdefs.h >>conftest.$ac_ext
11926
cat >>conftest.$ac_ext <<_ACEOF
11927
/* end confdefs.h.  */
11928
 
11929
/* Override any GCC internal prototype to avoid an error.
11930
   Use char because int might match the return type of a GCC
11931
   builtin and then its argument prototype would still apply.  */
11932
#ifdef __cplusplus
11933
extern "C"
11934
#endif
11935
char dlopen ();
11936
int
11937
main ()
11938
{
11939
return dlopen ();
11940
  ;
11941
  return 0;
11942
}
11943
_ACEOF
11944
rm -f conftest.$ac_objext conftest$ac_exeext
11945
if { (ac_try="$ac_link"
11946
case "(($ac_try" in
11947
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948
  *) ac_try_echo=$ac_try;;
11949
esac
11950
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11951
$as_echo "$ac_try_echo") >&5
11952
  (eval "$ac_link") 2>conftest.er1
11953
  ac_status=$?
11954
  grep -v '^ *+' conftest.er1 >conftest.err
11955
  rm -f conftest.er1
11956
  cat conftest.err >&5
11957
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958
  (exit $ac_status); } && {
11959
         test -z "$ac_c_werror_flag" ||
11960
         test ! -s conftest.err
11961
       } && test -s conftest$ac_exeext && {
11962
         test "$cross_compiling" = yes ||
11963
         $as_test_x conftest$ac_exeext
11964
       }; then
11965
  ac_cv_lib_dl_dlopen=yes
11966
else
11967
  $as_echo "$as_me: failed program was:" >&5
11968
sed 's/^/| /' conftest.$ac_ext >&5
11969
 
11970
        ac_cv_lib_dl_dlopen=no
11971
fi
11972
 
11973
rm -rf conftest.dSYM
11974
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11975
      conftest$ac_exeext conftest.$ac_ext
11976
LIBS=$ac_check_lib_save_LIBS
11977
fi
11978
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11979
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11980
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11981
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11982
else
11983
 
11984
    lt_cv_dlopen="dyld"
11985
    lt_cv_dlopen_libs=
11986
    lt_cv_dlopen_self=yes
11987
 
11988
fi
11989
 
11990
    ;;
11991
 
11992
  *)
11993
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11994
$as_echo_n "checking for shl_load... " >&6; }
11995
if test "${ac_cv_func_shl_load+set}" = set; then
11996
  $as_echo_n "(cached) " >&6
11997
else
11998
  cat >conftest.$ac_ext <<_ACEOF
11999
/* confdefs.h.  */
12000
_ACEOF
12001
cat confdefs.h >>conftest.$ac_ext
12002
cat >>conftest.$ac_ext <<_ACEOF
12003
/* end confdefs.h.  */
12004
/* Define shl_load to an innocuous variant, in case  declares shl_load.
12005
   For example, HP-UX 11i  declares gettimeofday.  */
12006
#define shl_load innocuous_shl_load
12007
 
12008
/* System header to define __stub macros and hopefully few prototypes,
12009
    which can conflict with char shl_load (); below.
12010
    Prefer  to  if __STDC__ is defined, since
12011
     exists even on freestanding compilers.  */
12012
 
12013
#ifdef __STDC__
12014
# include 
12015
#else
12016
# include 
12017
#endif
12018
 
12019
#undef shl_load
12020
 
12021
/* Override any GCC internal prototype to avoid an error.
12022
   Use char because int might match the return type of a GCC
12023
   builtin and then its argument prototype would still apply.  */
12024
#ifdef __cplusplus
12025
extern "C"
12026
#endif
12027
char shl_load ();
12028
/* The GNU C library defines this for functions which it implements
12029
    to always fail with ENOSYS.  Some functions are actually named
12030
    something starting with __ and the normal name is an alias.  */
12031
#if defined __stub_shl_load || defined __stub___shl_load
12032
choke me
12033
#endif
12034
 
12035
int
12036
main ()
12037
{
12038
return shl_load ();
12039
  ;
12040
  return 0;
12041
}
12042
_ACEOF
12043
rm -f conftest.$ac_objext conftest$ac_exeext
12044
if { (ac_try="$ac_link"
12045
case "(($ac_try" in
12046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047
  *) ac_try_echo=$ac_try;;
12048
esac
12049
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12050
$as_echo "$ac_try_echo") >&5
12051
  (eval "$ac_link") 2>conftest.er1
12052
  ac_status=$?
12053
  grep -v '^ *+' conftest.er1 >conftest.err
12054
  rm -f conftest.er1
12055
  cat conftest.err >&5
12056
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057
  (exit $ac_status); } && {
12058
         test -z "$ac_c_werror_flag" ||
12059
         test ! -s conftest.err
12060
       } && test -s conftest$ac_exeext && {
12061
         test "$cross_compiling" = yes ||
12062
         $as_test_x conftest$ac_exeext
12063
       }; then
12064
  ac_cv_func_shl_load=yes
12065
else
12066
  $as_echo "$as_me: failed program was:" >&5
12067
sed 's/^/| /' conftest.$ac_ext >&5
12068
 
12069
        ac_cv_func_shl_load=no
12070
fi
12071
 
12072
rm -rf conftest.dSYM
12073
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12074
      conftest$ac_exeext conftest.$ac_ext
12075
fi
12076
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12077
$as_echo "$ac_cv_func_shl_load" >&6; }
12078
if test "x$ac_cv_func_shl_load" = x""yes; then
12079
  lt_cv_dlopen="shl_load"
12080
else
12081
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12082
$as_echo_n "checking for shl_load in -ldld... " >&6; }
12083
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12084
  $as_echo_n "(cached) " >&6
12085
else
12086
  ac_check_lib_save_LIBS=$LIBS
12087
LIBS="-ldld  $LIBS"
12088
cat >conftest.$ac_ext <<_ACEOF
12089
/* confdefs.h.  */
12090
_ACEOF
12091
cat confdefs.h >>conftest.$ac_ext
12092
cat >>conftest.$ac_ext <<_ACEOF
12093
/* end confdefs.h.  */
12094
 
12095
/* Override any GCC internal prototype to avoid an error.
12096
   Use char because int might match the return type of a GCC
12097
   builtin and then its argument prototype would still apply.  */
12098
#ifdef __cplusplus
12099
extern "C"
12100
#endif
12101
char shl_load ();
12102
int
12103
main ()
12104
{
12105
return shl_load ();
12106
  ;
12107
  return 0;
12108
}
12109
_ACEOF
12110
rm -f conftest.$ac_objext conftest$ac_exeext
12111
if { (ac_try="$ac_link"
12112
case "(($ac_try" in
12113
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114
  *) ac_try_echo=$ac_try;;
12115
esac
12116
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12117
$as_echo "$ac_try_echo") >&5
12118
  (eval "$ac_link") 2>conftest.er1
12119
  ac_status=$?
12120
  grep -v '^ *+' conftest.er1 >conftest.err
12121
  rm -f conftest.er1
12122
  cat conftest.err >&5
12123
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124
  (exit $ac_status); } && {
12125
         test -z "$ac_c_werror_flag" ||
12126
         test ! -s conftest.err
12127
       } && test -s conftest$ac_exeext && {
12128
         test "$cross_compiling" = yes ||
12129
         $as_test_x conftest$ac_exeext
12130
       }; then
12131
  ac_cv_lib_dld_shl_load=yes
12132
else
12133
  $as_echo "$as_me: failed program was:" >&5
12134
sed 's/^/| /' conftest.$ac_ext >&5
12135
 
12136
        ac_cv_lib_dld_shl_load=no
12137
fi
12138
 
12139
rm -rf conftest.dSYM
12140
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12141
      conftest$ac_exeext conftest.$ac_ext
12142
LIBS=$ac_check_lib_save_LIBS
12143
fi
12144
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12145
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12146
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12147
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12148
else
12149
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12150
$as_echo_n "checking for dlopen... " >&6; }
12151
if test "${ac_cv_func_dlopen+set}" = set; then
12152
  $as_echo_n "(cached) " >&6
12153
else
12154
  cat >conftest.$ac_ext <<_ACEOF
12155
/* confdefs.h.  */
12156
_ACEOF
12157
cat confdefs.h >>conftest.$ac_ext
12158
cat >>conftest.$ac_ext <<_ACEOF
12159
/* end confdefs.h.  */
12160
/* Define dlopen to an innocuous variant, in case  declares dlopen.
12161
   For example, HP-UX 11i  declares gettimeofday.  */
12162
#define dlopen innocuous_dlopen
12163
 
12164
/* System header to define __stub macros and hopefully few prototypes,
12165
    which can conflict with char dlopen (); below.
12166
    Prefer  to  if __STDC__ is defined, since
12167
     exists even on freestanding compilers.  */
12168
 
12169
#ifdef __STDC__
12170
# include 
12171
#else
12172
# include 
12173
#endif
12174
 
12175
#undef dlopen
12176
 
12177
/* Override any GCC internal prototype to avoid an error.
12178
   Use char because int might match the return type of a GCC
12179
   builtin and then its argument prototype would still apply.  */
12180
#ifdef __cplusplus
12181
extern "C"
12182
#endif
12183
char dlopen ();
12184
/* The GNU C library defines this for functions which it implements
12185
    to always fail with ENOSYS.  Some functions are actually named
12186
    something starting with __ and the normal name is an alias.  */
12187
#if defined __stub_dlopen || defined __stub___dlopen
12188
choke me
12189
#endif
12190
 
12191
int
12192
main ()
12193
{
12194
return dlopen ();
12195
  ;
12196
  return 0;
12197
}
12198
_ACEOF
12199
rm -f conftest.$ac_objext conftest$ac_exeext
12200
if { (ac_try="$ac_link"
12201
case "(($ac_try" in
12202
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203
  *) ac_try_echo=$ac_try;;
12204
esac
12205
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12206
$as_echo "$ac_try_echo") >&5
12207
  (eval "$ac_link") 2>conftest.er1
12208
  ac_status=$?
12209
  grep -v '^ *+' conftest.er1 >conftest.err
12210
  rm -f conftest.er1
12211
  cat conftest.err >&5
12212
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213
  (exit $ac_status); } && {
12214
         test -z "$ac_c_werror_flag" ||
12215
         test ! -s conftest.err
12216
       } && test -s conftest$ac_exeext && {
12217
         test "$cross_compiling" = yes ||
12218
         $as_test_x conftest$ac_exeext
12219
       }; then
12220
  ac_cv_func_dlopen=yes
12221
else
12222
  $as_echo "$as_me: failed program was:" >&5
12223
sed 's/^/| /' conftest.$ac_ext >&5
12224
 
12225
        ac_cv_func_dlopen=no
12226
fi
12227
 
12228
rm -rf conftest.dSYM
12229
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12230
      conftest$ac_exeext conftest.$ac_ext
12231
fi
12232
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12233
$as_echo "$ac_cv_func_dlopen" >&6; }
12234
if test "x$ac_cv_func_dlopen" = x""yes; then
12235
  lt_cv_dlopen="dlopen"
12236
else
12237
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12238
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12239
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12240
  $as_echo_n "(cached) " >&6
12241
else
12242
  ac_check_lib_save_LIBS=$LIBS
12243
LIBS="-ldl  $LIBS"
12244
cat >conftest.$ac_ext <<_ACEOF
12245
/* confdefs.h.  */
12246
_ACEOF
12247
cat confdefs.h >>conftest.$ac_ext
12248
cat >>conftest.$ac_ext <<_ACEOF
12249
/* end confdefs.h.  */
12250
 
12251
/* Override any GCC internal prototype to avoid an error.
12252
   Use char because int might match the return type of a GCC
12253
   builtin and then its argument prototype would still apply.  */
12254
#ifdef __cplusplus
12255
extern "C"
12256
#endif
12257
char dlopen ();
12258
int
12259
main ()
12260
{
12261
return dlopen ();
12262
  ;
12263
  return 0;
12264
}
12265
_ACEOF
12266
rm -f conftest.$ac_objext conftest$ac_exeext
12267
if { (ac_try="$ac_link"
12268
case "(($ac_try" in
12269
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270
  *) ac_try_echo=$ac_try;;
12271
esac
12272
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12273
$as_echo "$ac_try_echo") >&5
12274
  (eval "$ac_link") 2>conftest.er1
12275
  ac_status=$?
12276
  grep -v '^ *+' conftest.er1 >conftest.err
12277
  rm -f conftest.er1
12278
  cat conftest.err >&5
12279
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280
  (exit $ac_status); } && {
12281
         test -z "$ac_c_werror_flag" ||
12282
         test ! -s conftest.err
12283
       } && test -s conftest$ac_exeext && {
12284
         test "$cross_compiling" = yes ||
12285
         $as_test_x conftest$ac_exeext
12286
       }; then
12287
  ac_cv_lib_dl_dlopen=yes
12288
else
12289
  $as_echo "$as_me: failed program was:" >&5
12290
sed 's/^/| /' conftest.$ac_ext >&5
12291
 
12292
        ac_cv_lib_dl_dlopen=no
12293
fi
12294
 
12295
rm -rf conftest.dSYM
12296
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12297
      conftest$ac_exeext conftest.$ac_ext
12298
LIBS=$ac_check_lib_save_LIBS
12299
fi
12300
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12301
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12302
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12303
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12304
else
12305
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12306
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12307
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12308
  $as_echo_n "(cached) " >&6
12309
else
12310
  ac_check_lib_save_LIBS=$LIBS
12311
LIBS="-lsvld  $LIBS"
12312
cat >conftest.$ac_ext <<_ACEOF
12313
/* confdefs.h.  */
12314
_ACEOF
12315
cat confdefs.h >>conftest.$ac_ext
12316
cat >>conftest.$ac_ext <<_ACEOF
12317
/* end confdefs.h.  */
12318
 
12319
/* Override any GCC internal prototype to avoid an error.
12320
   Use char because int might match the return type of a GCC
12321
   builtin and then its argument prototype would still apply.  */
12322
#ifdef __cplusplus
12323
extern "C"
12324
#endif
12325
char dlopen ();
12326
int
12327
main ()
12328
{
12329
return dlopen ();
12330
  ;
12331
  return 0;
12332
}
12333
_ACEOF
12334
rm -f conftest.$ac_objext conftest$ac_exeext
12335
if { (ac_try="$ac_link"
12336
case "(($ac_try" in
12337
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338
  *) ac_try_echo=$ac_try;;
12339
esac
12340
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12341
$as_echo "$ac_try_echo") >&5
12342
  (eval "$ac_link") 2>conftest.er1
12343
  ac_status=$?
12344
  grep -v '^ *+' conftest.er1 >conftest.err
12345
  rm -f conftest.er1
12346
  cat conftest.err >&5
12347
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348
  (exit $ac_status); } && {
12349
         test -z "$ac_c_werror_flag" ||
12350
         test ! -s conftest.err
12351
       } && test -s conftest$ac_exeext && {
12352
         test "$cross_compiling" = yes ||
12353
         $as_test_x conftest$ac_exeext
12354
       }; then
12355
  ac_cv_lib_svld_dlopen=yes
12356
else
12357
  $as_echo "$as_me: failed program was:" >&5
12358
sed 's/^/| /' conftest.$ac_ext >&5
12359
 
12360
        ac_cv_lib_svld_dlopen=no
12361
fi
12362
 
12363
rm -rf conftest.dSYM
12364
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12365
      conftest$ac_exeext conftest.$ac_ext
12366
LIBS=$ac_check_lib_save_LIBS
12367
fi
12368
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12369
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12370
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12371
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12372
else
12373
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12374
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12375
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12376
  $as_echo_n "(cached) " >&6
12377
else
12378
  ac_check_lib_save_LIBS=$LIBS
12379
LIBS="-ldld  $LIBS"
12380
cat >conftest.$ac_ext <<_ACEOF
12381
/* confdefs.h.  */
12382
_ACEOF
12383
cat confdefs.h >>conftest.$ac_ext
12384
cat >>conftest.$ac_ext <<_ACEOF
12385
/* end confdefs.h.  */
12386
 
12387
/* Override any GCC internal prototype to avoid an error.
12388
   Use char because int might match the return type of a GCC
12389
   builtin and then its argument prototype would still apply.  */
12390
#ifdef __cplusplus
12391
extern "C"
12392
#endif
12393
char dld_link ();
12394
int
12395
main ()
12396
{
12397
return dld_link ();
12398
  ;
12399
  return 0;
12400
}
12401
_ACEOF
12402
rm -f conftest.$ac_objext conftest$ac_exeext
12403
if { (ac_try="$ac_link"
12404
case "(($ac_try" in
12405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406
  *) ac_try_echo=$ac_try;;
12407
esac
12408
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12409
$as_echo "$ac_try_echo") >&5
12410
  (eval "$ac_link") 2>conftest.er1
12411
  ac_status=$?
12412
  grep -v '^ *+' conftest.er1 >conftest.err
12413
  rm -f conftest.er1
12414
  cat conftest.err >&5
12415
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416
  (exit $ac_status); } && {
12417
         test -z "$ac_c_werror_flag" ||
12418
         test ! -s conftest.err
12419
       } && test -s conftest$ac_exeext && {
12420
         test "$cross_compiling" = yes ||
12421
         $as_test_x conftest$ac_exeext
12422
       }; then
12423
  ac_cv_lib_dld_dld_link=yes
12424
else
12425
  $as_echo "$as_me: failed program was:" >&5
12426
sed 's/^/| /' conftest.$ac_ext >&5
12427
 
12428
        ac_cv_lib_dld_dld_link=no
12429
fi
12430
 
12431
rm -rf conftest.dSYM
12432
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12433
      conftest$ac_exeext conftest.$ac_ext
12434
LIBS=$ac_check_lib_save_LIBS
12435
fi
12436
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12437
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12438
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12439
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12440
fi
12441
 
12442
 
12443
fi
12444
 
12445
 
12446
fi
12447
 
12448
 
12449
fi
12450
 
12451
 
12452
fi
12453
 
12454
 
12455
fi
12456
 
12457
    ;;
12458
  esac
12459
 
12460
  if test "x$lt_cv_dlopen" != xno; then
12461
    enable_dlopen=yes
12462
  else
12463
    enable_dlopen=no
12464
  fi
12465
 
12466
  case $lt_cv_dlopen in
12467
  dlopen)
12468
    save_CPPFLAGS="$CPPFLAGS"
12469
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12470
 
12471
    save_LDFLAGS="$LDFLAGS"
12472
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12473
 
12474
    save_LIBS="$LIBS"
12475
    LIBS="$lt_cv_dlopen_libs $LIBS"
12476
 
12477
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12478
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12479
if test "${lt_cv_dlopen_self+set}" = set; then
12480
  $as_echo_n "(cached) " >&6
12481
else
12482
          if test "$cross_compiling" = yes; then :
12483
  lt_cv_dlopen_self=cross
12484
else
12485
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12486
  lt_status=$lt_dlunknown
12487
  cat > conftest.$ac_ext <<_LT_EOF
12488
#line 12488 "configure"
12489
#include "confdefs.h"
12490
 
12491
#if HAVE_DLFCN_H
12492
#include 
12493
#endif
12494
 
12495
#include 
12496
 
12497
#ifdef RTLD_GLOBAL
12498
#  define LT_DLGLOBAL           RTLD_GLOBAL
12499
#else
12500
#  ifdef DL_GLOBAL
12501
#    define LT_DLGLOBAL         DL_GLOBAL
12502
#  else
12503
#    define LT_DLGLOBAL         0
12504
#  endif
12505
#endif
12506
 
12507
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12508
   find out it does not work in some platform. */
12509
#ifndef LT_DLLAZY_OR_NOW
12510
#  ifdef RTLD_LAZY
12511
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12512
#  else
12513
#    ifdef DL_LAZY
12514
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12515
#    else
12516
#      ifdef RTLD_NOW
12517
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12518
#      else
12519
#        ifdef DL_NOW
12520
#          define LT_DLLAZY_OR_NOW      DL_NOW
12521
#        else
12522
#          define LT_DLLAZY_OR_NOW      0
12523
#        endif
12524
#      endif
12525
#    endif
12526
#  endif
12527
#endif
12528
 
12529
void fnord() { int i=42;}
12530
int main ()
12531
{
12532
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12533
  int status = $lt_dlunknown;
12534
 
12535
  if (self)
12536
    {
12537
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12538
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12539
      /* dlclose (self); */
12540
    }
12541
  else
12542
    puts (dlerror ());
12543
 
12544
  return status;
12545
}
12546
_LT_EOF
12547
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12548
  (eval $ac_link) 2>&5
12549
  ac_status=$?
12550
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12552
    (./conftest; exit; ) >&5 2>/dev/null
12553
    lt_status=$?
12554
    case x$lt_status in
12555
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12556
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12557
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12558
    esac
12559
  else :
12560
    # compilation failed
12561
    lt_cv_dlopen_self=no
12562
  fi
12563
fi
12564
rm -fr conftest*
12565
 
12566
 
12567
fi
12568
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12569
$as_echo "$lt_cv_dlopen_self" >&6; }
12570
 
12571
    if test "x$lt_cv_dlopen_self" = xyes; then
12572
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12573
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12574
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12575
if test "${lt_cv_dlopen_self_static+set}" = set; then
12576
  $as_echo_n "(cached) " >&6
12577
else
12578
          if test "$cross_compiling" = yes; then :
12579
  lt_cv_dlopen_self_static=cross
12580
else
12581
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12582
  lt_status=$lt_dlunknown
12583
  cat > conftest.$ac_ext <<_LT_EOF
12584
#line 12584 "configure"
12585
#include "confdefs.h"
12586
 
12587
#if HAVE_DLFCN_H
12588
#include 
12589
#endif
12590
 
12591
#include 
12592
 
12593
#ifdef RTLD_GLOBAL
12594
#  define LT_DLGLOBAL           RTLD_GLOBAL
12595
#else
12596
#  ifdef DL_GLOBAL
12597
#    define LT_DLGLOBAL         DL_GLOBAL
12598
#  else
12599
#    define LT_DLGLOBAL         0
12600
#  endif
12601
#endif
12602
 
12603
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12604
   find out it does not work in some platform. */
12605
#ifndef LT_DLLAZY_OR_NOW
12606
#  ifdef RTLD_LAZY
12607
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12608
#  else
12609
#    ifdef DL_LAZY
12610
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12611
#    else
12612
#      ifdef RTLD_NOW
12613
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12614
#      else
12615
#        ifdef DL_NOW
12616
#          define LT_DLLAZY_OR_NOW      DL_NOW
12617
#        else
12618
#          define LT_DLLAZY_OR_NOW      0
12619
#        endif
12620
#      endif
12621
#    endif
12622
#  endif
12623
#endif
12624
 
12625
void fnord() { int i=42;}
12626
int main ()
12627
{
12628
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12629
  int status = $lt_dlunknown;
12630
 
12631
  if (self)
12632
    {
12633
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12634
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12635
      /* dlclose (self); */
12636
    }
12637
  else
12638
    puts (dlerror ());
12639
 
12640
  return status;
12641
}
12642
_LT_EOF
12643
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12644
  (eval $ac_link) 2>&5
12645
  ac_status=$?
12646
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12648
    (./conftest; exit; ) >&5 2>/dev/null
12649
    lt_status=$?
12650
    case x$lt_status in
12651
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12652
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12653
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12654
    esac
12655
  else :
12656
    # compilation failed
12657
    lt_cv_dlopen_self_static=no
12658
  fi
12659
fi
12660
rm -fr conftest*
12661
 
12662
 
12663
fi
12664
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12665
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12666
    fi
12667
 
12668
    CPPFLAGS="$save_CPPFLAGS"
12669
    LDFLAGS="$save_LDFLAGS"
12670
    LIBS="$save_LIBS"
12671
    ;;
12672
  esac
12673
 
12674
  case $lt_cv_dlopen_self in
12675
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12676
  *) enable_dlopen_self=unknown ;;
12677
  esac
12678
 
12679
  case $lt_cv_dlopen_self_static in
12680
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12681
  *) enable_dlopen_self_static=unknown ;;
12682
  esac
12683
fi
12684
 
12685
 
12686
 
12687
 
12688
 
12689
 
12690
 
12691
 
12692
 
12693
 
12694
 
12695
 
12696
 
12697
 
12698
 
12699
 
12700
 
12701
striplib=
12702
old_striplib=
12703
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12704
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12705
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12706
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12707
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12708
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12709
$as_echo "yes" >&6; }
12710
else
12711
# FIXME - insert some real tests, host_os isn't really good enough
12712
  case $host_os in
12713
  darwin*)
12714
    if test -n "$STRIP" ; then
12715
      striplib="$STRIP -x"
12716
      old_striplib="$STRIP -S"
12717
      { $as_echo "$as_me:$LINENO: result: yes" >&5
12718
$as_echo "yes" >&6; }
12719
    else
12720
      { $as_echo "$as_me:$LINENO: result: no" >&5
12721
$as_echo "no" >&6; }
12722
    fi
12723
    ;;
12724
  *)
12725
    { $as_echo "$as_me:$LINENO: result: no" >&5
12726
$as_echo "no" >&6; }
12727
    ;;
12728
  esac
12729
fi
12730
 
12731
 
12732
 
12733
 
12734
 
12735
 
12736
 
12737
 
12738
 
12739
 
12740
 
12741
 
12742
  # Report which library types will actually be built
12743
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12744
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12745
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12746
$as_echo "$can_build_shared" >&6; }
12747
 
12748
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12749
$as_echo_n "checking whether to build shared libraries... " >&6; }
12750
  test "$can_build_shared" = "no" && enable_shared=no
12751
 
12752
  # On AIX, shared libraries and static libraries use the same namespace, and
12753
  # are all built from PIC.
12754
  case $host_os in
12755
  aix3*)
12756
    test "$enable_shared" = yes && enable_static=no
12757
    if test -n "$RANLIB"; then
12758
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12759
      postinstall_cmds='$RANLIB $lib'
12760
    fi
12761
    ;;
12762
 
12763
  aix[4-9]*)
12764
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12765
      test "$enable_shared" = yes && enable_static=no
12766
    fi
12767
    ;;
12768
  esac
12769
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12770
$as_echo "$enable_shared" >&6; }
12771
 
12772
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12773
$as_echo_n "checking whether to build static libraries... " >&6; }
12774
  # Make sure either enable_shared or enable_static is yes.
12775
  test "$enable_shared" = yes || enable_static=yes
12776
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12777
$as_echo "$enable_static" >&6; }
12778
 
12779
 
12780
 
12781
 
12782
fi
12783
ac_ext=c
12784
ac_cpp='$CPP $CPPFLAGS'
12785
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12786
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12787
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12788
 
12789
CC="$lt_save_CC"
12790
 
12791
 
12792
 
12793
 
12794
 
12795
 
12796
 
12797
 
12798
 
12799
 
12800
 
12801
 
12802
 
12803
        ac_config_commands="$ac_config_commands libtool"
12804
 
12805
 
12806
 
12807
 
12808
# Only expand once:
12809
 
12810
 
12811
fi
12812
 
12813
# Check whether --enable-newlib_hw_fp was given.
12814
if test "${enable_newlib_hw_fp+set}" = set; then
12815
  enableval=$enable_newlib_hw_fp; case "${enableval}" in
12816
   yes) newlib_hw_fp=true ;;
12817
   no)  newlib_hw_fp=false ;;
12818
   *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-newlib-hw-fp" >&5
12819
$as_echo "$as_me: error: bad value ${enableval} for --enable-newlib-hw-fp" >&2;}
12820
   { (exit 1); exit 1; }; } ;;
12821
 esac
12822
else
12823
  newlib_hw_fp=false
12824
fi
12825
 
12826
 if test x$newlib_hw_fp = xtrue; then
12827
  NEWLIB_HW_FP_TRUE=
12828
  NEWLIB_HW_FP_FALSE='#'
12829
else
12830
  NEWLIB_HW_FP_TRUE='#'
12831
  NEWLIB_HW_FP_FALSE=
12832
fi
12833
 
12834
 
12835
# These get added in the top-level configure.in, except in the case where
12836
# newlib is being built natively.
12837
LIBC_INCLUDE_GREP=`echo ${CC} | grep \/libc\/include`
12838
abs_newlib_basedir=`cd ${newlib_basedir} && pwd`
12839
if test -z "${LIBC_INCLUDE_GREP}"; then
12840
  CC_FOR_NEWLIB="${CC} -I$PWD/targ-include -I${abs_newlib_basedir}/libc/include"
12841
else
12842
  CC_FOR_NEWLIB="${CC}"
12843
fi
12844
 
12845
 
12846
 
12847
 
12848
subdirs="$subdirs libc"
12849
 
12850
subdirs="$subdirs libm"
12851
 
12852
 
12853
if test -z "${with_multisubdir}"; then
12854
  subdirs="$subdirs doc"
12855
 
12856
  have_doc=yes
12857
else
12858
  have_doc=
12859
fi
12860
 if test x$have_doc = xyes; then
12861
  HAVE_DOC_TRUE=
12862
  HAVE_DOC_FALSE='#'
12863
else
12864
  HAVE_DOC_TRUE='#'
12865
  HAVE_DOC_FALSE=
12866
fi
12867
 
12868
 
12869
EXTRA_DIRS=
12870
case $host in
12871
  i[34567]86-pc-linux-*)
12872
        subdirs="$subdirs iconvdata"
12873
 
12874
        EXTRA_DIRS=iconvdata
12875
        ;;
12876
esac
12877
 
12878
 
12879
CRT0=
12880
CRT0_DIR=
12881
if test "x${have_crt0}" = "xyes"; then
12882
  CRT0=crt0.o
12883
  CRT0_DIR=libc/
12884
fi
12885
 
12886
 
12887
 
12888
CRT1=${crt1}
12889
CRT1_DIR=
12890
if test -n "${crt1_dir}"; then
12891
  CRT1_DIR=${crt1_dir}/
12892
fi
12893
 
12894
 
12895
 
12896
if test -n "${libm_machine_dir}"; then
12897
  LIBM_MACHINE_OBJECTLIST=libm/machine/${libm_machine_dir}/objectlist.awk.in
12898
fi
12899
 
12900
 
12901
if test -n "${machine_dir}"; then
12902
  MACHINE_OBJECTLIST=libc/machine/${machine_dir}/objectlist.awk.in
12903
fi
12904
 
12905
 
12906
if test -n "${sys_dir}"; then
12907
  SYS_OBJECTLIST=libc/sys/${sys_dir}/objectlist.awk.in
12908
fi
12909
 
12910
 
12911
if test "${have_sys_mach_dir}" = "yes"; then
12912
  SYS_MACH_OBJECTLIST=libc/sys/${sys_dir}/machine/${machine_dir}/objectlist.awk.in
12913
fi
12914
 
12915
 
12916
if test -n "${posix_dir}"; then
12917
  POSIX_OBJECTLIST=libc/${posix_dir}/objectlist.awk.in
12918
fi
12919
 
12920
 
12921
if test -n "${signal_dir}"; then
12922
  SIGNAL_OBJECTLIST=libc/${signal_dir}/objectlist.awk.in
12923
fi
12924
 
12925
 
12926
if test -n "${syscall_dir}"; then
12927
  SYSCALL_OBJECTLIST=libc/${syscall_dir}/objectlist.awk.in
12928
fi
12929
 
12930
 
12931
if test -n "${unix_dir}"; then
12932
  UNIX_OBJECTLIST=libc/${unix_dir}/objectlist.awk.in
12933
fi
12934
 
12935
 
12936
if test -n "${stdio64_dir}"; then
12937
  STDIO64_OBJECTLIST=libc/${stdio64_dir}/objectlist.awk.in
12938
fi
12939
 
12940
 
12941
# Put a plausible default for CC_FOR_BUILD in Makefile.
12942
if test -z "$CC_FOR_BUILD"; then
12943
  CC_FOR_BUILD=gcc
12944
fi
12945
 
12946
 
12947
if test "${newlib_elix_level}" -gt "0"; then
12948
cat >>confdefs.h <<_ACEOF
12949
#define _ELIX_LEVEL ${newlib_elix_level}
12950
_ACEOF
12951
 
12952
fi
12953
 
12954
if test "${newlib_io_c99_formats}" = "yes"; then
12955
cat >>confdefs.h <<_ACEOF
12956
#define _WANT_IO_C99_FORMATS 1
12957
_ACEOF
12958
 
12959
fi
12960
 
12961
if test "${newlib_io_long_long}" = "yes"; then
12962
cat >>confdefs.h <<_ACEOF
12963
#define _WANT_IO_LONG_LONG 1
12964
_ACEOF
12965
 
12966
fi
12967
 
12968
if test "${newlib_io_long_double}" = "yes"; then
12969
cat >>confdefs.h <<_ACEOF
12970
#define _WANT_IO_LONG_DOUBLE 1
12971
_ACEOF
12972
 
12973
fi
12974
 
12975
if test "${newlib_io_pos_args}" = "yes"; then
12976
cat >>confdefs.h <<_ACEOF
12977
#define _WANT_IO_POS_ARGS 1
12978
_ACEOF
12979
 
12980
fi
12981
 
12982
if test "${newlib_reent_small}" = "yes"; then
12983
cat >>confdefs.h <<_ACEOF
12984
#define _WANT_REENT_SMALL 1
12985
_ACEOF
12986
 
12987
fi
12988
 
12989
if test "${newlib_mb}" = "yes"; then
12990
cat >>confdefs.h <<_ACEOF
12991
#define _MB_CAPABLE 1
12992
_ACEOF
12993
 
12994
cat >>confdefs.h <<_ACEOF
12995
#define _MB_LEN_MAX 8
12996
_ACEOF
12997
 
12998
else
12999
cat >>confdefs.h <<_ACEOF
13000
#define _MB_LEN_MAX 1
13001
_ACEOF
13002
 
13003
fi
13004
 
13005
if test "${newlib_iconv_external_ccs}" = "yes"; then
13006
cat >>confdefs.h <<_ACEOF
13007
#define _ICONV_ENABLE_EXTERNAL_CCS 1
13008
_ACEOF
13009
 
13010
fi
13011
 
13012
cat >>confdefs.h <<_ACEOF
13013
#define _NEWLIB_VERSION "1.18.0"
13014
_ACEOF
13015
 
13016
 
13017
if test "${multilib}" = "yes"; then
13018
  multilib_arg="--enable-multilib"
13019
else
13020
  multilib_arg=
13021
fi
13022
 
13023
if test "${newlib_iconv}" = "yes"; then
13024
cat >>confdefs.h <<_ACEOF
13025
#define _ICONV_ENABLED 1
13026
_ACEOF
13027
 
13028
fi
13029
 
13030
if test "x${newlib_iconv_external_ccs}" = "xyes"; then
13031
  if test "x${newlib_iconv}" = "x"; then
13032
      { { $as_echo "$as_me:$LINENO: error: --enable-newlib-iconv-external-ccs option can't be used if iconv library is disabled" >&5
13033
$as_echo "$as_me: error: --enable-newlib-iconv-external-ccs option can't be used if iconv library is disabled" >&2;}
13034
   { (exit use --enable-newlib-iconv to enable it.); exit use --enable-newlib-iconv to enable it.; }; }
13035
  fi
13036
  cat >>confdefs.h <<_ACEOF
13037
#define _ICONV_ENABLE_EXTERNAL_CCS 1
13038
_ACEOF
13039
 
13040
fi
13041
 
13042
if test "${newlib_atexit_dynamic_alloc}" = "yes"; then
13043
cat >>confdefs.h <<_ACEOF
13044
#define _ATEXIT_DYNAMIC_ALLOC 1
13045
_ACEOF
13046
 
13047
fi
13048
 
13049
 
13050
if test "x${iconv_encodings}" != "x" \
13051
   || test "x${iconv_to_encodings}" != "x" \
13052
   || test "x${iconv_from_encodings}" != "x"; then
13053
  if test "x${newlib_iconv}" = "x"; then
13054
      { { $as_echo "$as_me:$LINENO: error: --enable-newlib-iconv-encodings, --enable-newlib-iconv-from-encodings and --enable-newlib-iconv-to-encodings option can't be used if iconv library is disabled, use --enable-newlib-iconv to enable it." >&5
13055
$as_echo "$as_me: error: --enable-newlib-iconv-encodings, --enable-newlib-iconv-from-encodings and --enable-newlib-iconv-to-encodings option can't be used if iconv library is disabled, use --enable-newlib-iconv to enable it." >&2;}
13056
   { (exit 1); exit 1; }; }
13057
  fi
13058
 
13059
    iconv_encodings=`echo "${iconv_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
13060
  iconv_to_encodings=`echo "${iconv_to_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
13061
  iconv_from_encodings=`echo "${iconv_from_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
13062
 
13063
      available_encodings=`cat "${srcdir}/libc/iconv/encoding.aliases" | sed -e '/^#.*/d'`
13064
 
13065
 
13066
    iconv_encodings1="${iconv_encodings}"
13067
  iconv_encodings=""
13068
  for encoding in ${iconv_encodings1}; do
13069
      result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
13070
      if test $? != "0"; then
13071
          { { $as_echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
13072
$as_echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
13073
   { (exit 1); exit 1; }; }
13074
      fi
13075
      encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
13076
      iconv_encodings="${iconv_encodings} ${encoding1}"
13077
  done
13078
    for encoding in ${iconv_encodings}; do
13079
      opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13080
      cat >>confdefs.h <<_ACEOF
13081
#define $opt 1
13082
_ACEOF
13083
 
13084
      opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13085
      cat >>confdefs.h <<_ACEOF
13086
#define $opt 1
13087
_ACEOF
13088
 
13089
  done
13090
 
13091
    iconv_encodings1="${iconv_to_encodings}"
13092
  iconv_to_encodings=""
13093
  for encoding in ${iconv_encodings1}; do
13094
      result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
13095
      if test $? != "0"; then
13096
          { { $as_echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
13097
$as_echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
13098
   { (exit 1); exit 1; }; }
13099
      fi
13100
      encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
13101
      iconv_to_encodings="${iconv_to_encodings} ${encoding1}"
13102
  done
13103
    for encoding in ${iconv_to_encodings}; do
13104
      opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13105
      cat >>confdefs.h <<_ACEOF
13106
#define $opt 1
13107
_ACEOF
13108
 
13109
  done
13110
 
13111
    iconv_encodings1="${iconv_from_encodings}"
13112
  iconv_from_encodings=""
13113
  for encoding in ${iconv_encodings1}; do
13114
      result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
13115
      if test $? != "0"; then
13116
          { { $as_echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
13117
$as_echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
13118
   { (exit 1); exit 1; }; }
13119
      fi
13120
      encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
13121
      iconv_from_encodings="${iconv_from_encodings} ${encoding1}"
13122
  done
13123
    for encoding in ${iconv_from_encodings}; do
13124
      opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13125
      cat >>confdefs.h <<_ACEOF
13126
#define $opt 1
13127
_ACEOF
13128
 
13129
  done
13130
fi;
13131
 
13132
{ $as_echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
13133
$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
13134
if test "${libc_cv_initfinit_array+set}" = set; then
13135
  $as_echo_n "(cached) " >&6
13136
else
13137
  cat > conftest.c <
13138
int _start (void) { return 0; }
13139
int __start (void) { return 0; }
13140
int foo (void) { return 1; }
13141
int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
13142
EOF
13143
if { ac_try='${CC} $CFLAGS $CPPFLAGS -c -o conftest conftest.c
13144
                                                        1>&5'
13145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146
  (eval $ac_try) 2>&5
13147
  ac_status=$?
13148
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149
  (exit $ac_status); }; }
13150
then
13151
  if ${READELF} -S conftest | grep -e INIT_ARRAY > /dev/null; then
13152
    libc_cv_initfinit_array=yes
13153
  else
13154
    libc_cv_initfinit_array=no
13155
  fi
13156
else
13157
  libc_cv_initfinit_array=no
13158
fi
13159
rm -f conftest*
13160
fi
13161
{ $as_echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
13162
$as_echo "$libc_cv_initfinit_array" >&6; }
13163
 
13164
if test $libc_cv_initfinit_array = yes; then
13165
  cat >>confdefs.h <<_ACEOF
13166
#define HAVE_INITFINI_ARRAY 1
13167
_ACEOF
13168
 
13169
fi
13170
 
13171
{ $as_echo "$as_me:$LINENO: checking whether long double type exists" >&5
13172
$as_echo_n "checking whether long double type exists... " >&6; }
13173
if test "${acnewlib_cv_type_long_double+set}" = set; then
13174
  $as_echo_n "(cached) " >&6
13175
else
13176
  cat > conftest.c <
13177
/* Check two ways:  float.h defines and direct type declaration.  */
13178
#include 
13179
#if defined(LDBL_MANT_DIG)
13180
  #define _HAVE_LONG_DOUBLE
13181
 #else
13182
  #error "LDBL != DBL"
13183
#endif
13184
long double test() {
13185
long double ld = 0.0L;
13186
return ld;
13187
}
13188
EOF
13189
if { ac_try='${CC} $CFLAGS $CPPFLAGS -c -o conftest.o conftest.c
13190
                                                        1>&5'
13191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192
  (eval $ac_try) 2>&5
13193
  ac_status=$?
13194
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195
  (exit $ac_status); }; }
13196
then
13197
  acnewlib_cv_type_long_double=yes;
13198
else
13199
  acnewlib_cv_type_long_double=no;
13200
fi
13201
rm -f conftest*
13202
fi
13203
{ $as_echo "$as_me:$LINENO: result: $acnewlib_cv_type_long_double" >&5
13204
$as_echo "$acnewlib_cv_type_long_double" >&6; }
13205
if test $acnewlib_cv_type_long_double = yes; then
13206
  cat >>confdefs.h <<_ACEOF
13207
#define _HAVE_LONG_DOUBLE 1
13208
_ACEOF
13209
 
13210
fi
13211
 if test x"$acnewlib_cv_type_long_double" = x"yes"; then
13212
  HAVE_LONG_DOUBLE_TRUE=
13213
  HAVE_LONG_DOUBLE_FALSE='#'
13214
else
13215
  HAVE_LONG_DOUBLE_TRUE='#'
13216
  HAVE_LONG_DOUBLE_FALSE=
13217
fi
13218
 
13219
 
13220
{ $as_echo "$as_me:$LINENO: checking whether long double equals double" >&5
13221
$as_echo_n "checking whether long double equals double... " >&6; }
13222
if test "${newlib_cv_ldbl_eq_dbl+set}" = set; then
13223
  $as_echo_n "(cached) " >&6
13224
else
13225
  cat > conftest.c <
13226
#include 
13227
#if DBL_MANT_DIG == LDBL_MANT_DIG  &&  LDBL_MIN_EXP == DBL_MIN_EXP  && \
13228
    LDBL_MAX_EXP == DBL_MAX_EXP
13229
  #define _LDBL_EQ_DBL
13230
 #else
13231
  #error "LDBL != DBL"
13232
#endif
13233
EOF
13234
if { ac_try='${CC} $CFLAGS $CPPFLAGS -c -o conftest.o conftest.c
13235
                                                        1>&5'
13236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237
  (eval $ac_try) 2>&5
13238
  ac_status=$?
13239
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240
  (exit $ac_status); }; }
13241
then
13242
  newlib_cv_ldbl_eq_dbl=yes;
13243
else
13244
  newlib_cv_ldbl_eq_dbl=no;
13245
fi
13246
rm -f conftest*
13247
fi
13248
{ $as_echo "$as_me:$LINENO: result: $newlib_cv_ldbl_eq_dbl" >&5
13249
$as_echo "$newlib_cv_ldbl_eq_dbl" >&6; }
13250
if test $newlib_cv_ldbl_eq_dbl = yes; then
13251
  cat >>confdefs.h <<_ACEOF
13252
#define _LDBL_EQ_DBL 1
13253
_ACEOF
13254
 
13255
fi
13256
 
13257
 
13258
 
13259
ac_config_files="$ac_config_files Makefile"
13260
 
13261
cat >confcache <<\_ACEOF
13262
# This file is a shell script that caches the results of configure
13263
# tests run on this system so they can be shared between configure
13264
# scripts and configure runs, see configure's option --config-cache.
13265
# It is not useful on other systems.  If it contains results you don't
13266
# want to keep, you may remove or edit it.
13267
#
13268
# config.status only pays attention to the cache file if you give it
13269
# the --recheck option to rerun configure.
13270
#
13271
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13272
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13273
# following values.
13274
 
13275
_ACEOF
13276
 
13277
# The following way of writing the cache mishandles newlines in values,
13278
# but we know of no workaround that is simple, portable, and efficient.
13279
# So, we kill variables containing newlines.
13280
# Ultrix sh set writes to stderr and can't be redirected directly,
13281
# and sets the high bit in the cache file unless we assign to the vars.
13282
(
13283
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13284
    eval ac_val=\$$ac_var
13285
    case $ac_val in #(
13286
    *${as_nl}*)
13287
      case $ac_var in #(
13288
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13289
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13290
      esac
13291
      case $ac_var in #(
13292
      _ | IFS | as_nl) ;; #(
13293
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13294
      *) $as_unset $ac_var ;;
13295
      esac ;;
13296
    esac
13297
  done
13298
 
13299
  (set) 2>&1 |
13300
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13301
    *${as_nl}ac_space=\ *)
13302
      # `set' does not quote correctly, so add quotes (double-quote
13303
      # substitution turns \\\\ into \\, and sed turns \\ into \).
13304
      sed -n \
13305
        "s/'/'\\\\''/g;
13306
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13307
      ;; #(
13308
    *)
13309
      # `set' quotes correctly as required by POSIX, so do not add quotes.
13310
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13311
      ;;
13312
    esac |
13313
    sort
13314
) |
13315
  sed '
13316
     /^ac_cv_env_/b end
13317
     t clear
13318
     :clear
13319
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13320
     t end
13321
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13322
     :end' >>confcache
13323
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13324
  if test -w "$cache_file"; then
13325
    test "x$cache_file" != "x/dev/null" &&
13326
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13327
$as_echo "$as_me: updating cache $cache_file" >&6;}
13328
    cat confcache >$cache_file
13329
  else
13330
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13331
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13332
  fi
13333
fi
13334
rm -f confcache
13335
 
13336
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13337
# Let make expand exec_prefix.
13338
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13339
 
13340
DEFS=-DHAVE_CONFIG_H
13341
 
13342
ac_libobjs=
13343
ac_ltlibobjs=
13344
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13345
  # 1. Remove the extension, and $U if already installed.
13346
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13347
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13348
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13349
  #    will be set to the directory where LIBOBJS objects are built.
13350
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13351
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13352
done
13353
LIBOBJS=$ac_libobjs
13354
 
13355
LTLIBOBJS=$ac_ltlibobjs
13356
 
13357
 
13358
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
13359
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
13360
Usually this means the macro was only invoked conditionally." >&5
13361
$as_echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
13362
Usually this means the macro was only invoked conditionally." >&2;}
13363
   { (exit 1); exit 1; }; }
13364
fi
13365
 if test -n "$EXEEXT"; then
13366
  am__EXEEXT_TRUE=
13367
  am__EXEEXT_FALSE='#'
13368
else
13369
  am__EXEEXT_TRUE='#'
13370
  am__EXEEXT_FALSE=
13371
fi
13372
 
13373
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13374
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13375
Usually this means the macro was only invoked conditionally." >&5
13376
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13377
Usually this means the macro was only invoked conditionally." >&2;}
13378
   { (exit 1); exit 1; }; }
13379
fi
13380
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13381
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13382
Usually this means the macro was only invoked conditionally." >&5
13383
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13384
Usually this means the macro was only invoked conditionally." >&2;}
13385
   { (exit 1); exit 1; }; }
13386
fi
13387
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13388
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13389
Usually this means the macro was only invoked conditionally." >&5
13390
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13391
Usually this means the macro was only invoked conditionally." >&2;}
13392
   { (exit 1); exit 1; }; }
13393
fi
13394
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
13395
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
13396
Usually this means the macro was only invoked conditionally." >&5
13397
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
13398
Usually this means the macro was only invoked conditionally." >&2;}
13399
   { (exit 1); exit 1; }; }
13400
fi
13401
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
13402
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
13403
Usually this means the macro was only invoked conditionally." >&5
13404
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
13405
Usually this means the macro was only invoked conditionally." >&2;}
13406
   { (exit 1); exit 1; }; }
13407
fi
13408
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
13409
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
13410
Usually this means the macro was only invoked conditionally." >&5
13411
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
13412
Usually this means the macro was only invoked conditionally." >&2;}
13413
   { (exit 1); exit 1; }; }
13414
fi
13415
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
13416
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
13417
Usually this means the macro was only invoked conditionally." >&5
13418
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
13419
Usually this means the macro was only invoked conditionally." >&2;}
13420
   { (exit 1); exit 1; }; }
13421
fi
13422
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
13423
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
13424
Usually this means the macro was only invoked conditionally." >&5
13425
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
13426
Usually this means the macro was only invoked conditionally." >&2;}
13427
   { (exit 1); exit 1; }; }
13428
fi
13429
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
13430
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
13431
Usually this means the macro was only invoked conditionally." >&5
13432
$as_echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
13433
Usually this means the macro was only invoked conditionally." >&2;}
13434
   { (exit 1); exit 1; }; }
13435
fi
13436
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13437
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13438
Usually this means the macro was only invoked conditionally." >&5
13439
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13440
Usually this means the macro was only invoked conditionally." >&2;}
13441
   { (exit 1); exit 1; }; }
13442
fi
13443
if test -z "${NEWLIB_HW_FP_TRUE}" && test -z "${NEWLIB_HW_FP_FALSE}"; then
13444
  { { $as_echo "$as_me:$LINENO: error: conditional \"NEWLIB_HW_FP\" was never defined.
13445
Usually this means the macro was only invoked conditionally." >&5
13446
$as_echo "$as_me: error: conditional \"NEWLIB_HW_FP\" was never defined.
13447
Usually this means the macro was only invoked conditionally." >&2;}
13448
   { (exit 1); exit 1; }; }
13449
fi
13450
if test -z "${HAVE_DOC_TRUE}" && test -z "${HAVE_DOC_FALSE}"; then
13451
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOC\" was never defined.
13452
Usually this means the macro was only invoked conditionally." >&5
13453
$as_echo "$as_me: error: conditional \"HAVE_DOC\" was never defined.
13454
Usually this means the macro was only invoked conditionally." >&2;}
13455
   { (exit 1); exit 1; }; }
13456
fi
13457
if test -z "${HAVE_LONG_DOUBLE_TRUE}" && test -z "${HAVE_LONG_DOUBLE_FALSE}"; then
13458
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LONG_DOUBLE\" was never defined.
13459
Usually this means the macro was only invoked conditionally." >&5
13460
$as_echo "$as_me: error: conditional \"HAVE_LONG_DOUBLE\" was never defined.
13461
Usually this means the macro was only invoked conditionally." >&2;}
13462
   { (exit 1); exit 1; }; }
13463
fi
13464
 
13465
: ${CONFIG_STATUS=./config.status}
13466
ac_write_fail=0
13467
ac_clean_files_save=$ac_clean_files
13468
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13469
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13470
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13471
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13472
#! $SHELL
13473
# Generated by $as_me.
13474
# Run this file to recreate the current configuration.
13475
# Compiler output produced by configure, useful for debugging
13476
# configure, is in config.log if it exists.
13477
 
13478
debug=false
13479
ac_cs_recheck=false
13480
ac_cs_silent=false
13481
SHELL=\${CONFIG_SHELL-$SHELL}
13482
_ACEOF
13483
 
13484
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13485
## --------------------- ##
13486
## M4sh Initialization.  ##
13487
## --------------------- ##
13488
 
13489
# Be more Bourne compatible
13490
DUALCASE=1; export DUALCASE # for MKS sh
13491
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13492
  emulate sh
13493
  NULLCMD=:
13494
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13495
  # is contrary to our usage.  Disable this feature.
13496
  alias -g '${1+"$@"}'='"$@"'
13497
  setopt NO_GLOB_SUBST
13498
else
13499
  case `(set -o) 2>/dev/null` in
13500
  *posix*) set -o posix ;;
13501
esac
13502
 
13503
fi
13504
 
13505
 
13506
 
13507
 
13508
# PATH needs CR
13509
# Avoid depending upon Character Ranges.
13510
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13511
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13512
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13513
as_cr_digits='0123456789'
13514
as_cr_alnum=$as_cr_Letters$as_cr_digits
13515
 
13516
as_nl='
13517
'
13518
export as_nl
13519
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13520
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13521
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13522
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13523
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13524
  as_echo='printf %s\n'
13525
  as_echo_n='printf %s'
13526
else
13527
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13528
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13529
    as_echo_n='/usr/ucb/echo -n'
13530
  else
13531
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13532
    as_echo_n_body='eval
13533
      arg=$1;
13534
      case $arg in
13535
      *"$as_nl"*)
13536
        expr "X$arg" : "X\\(.*\\)$as_nl";
13537
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13538
      esac;
13539
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13540
    '
13541
    export as_echo_n_body
13542
    as_echo_n='sh -c $as_echo_n_body as_echo'
13543
  fi
13544
  export as_echo_body
13545
  as_echo='sh -c $as_echo_body as_echo'
13546
fi
13547
 
13548
# The user is always right.
13549
if test "${PATH_SEPARATOR+set}" != set; then
13550
  PATH_SEPARATOR=:
13551
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13552
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13553
      PATH_SEPARATOR=';'
13554
  }
13555
fi
13556
 
13557
# Support unset when possible.
13558
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13559
  as_unset=unset
13560
else
13561
  as_unset=false
13562
fi
13563
 
13564
 
13565
# IFS
13566
# We need space, tab and new line, in precisely that order.  Quoting is
13567
# there to prevent editors from complaining about space-tab.
13568
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13569
# splitting by setting IFS to empty value.)
13570
IFS=" ""        $as_nl"
13571
 
13572
# Find who we are.  Look in the path if we contain no directory separator.
13573
case $0 in
13574
  *[\\/]* ) as_myself=$0 ;;
13575
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13576
for as_dir in $PATH
13577
do
13578
  IFS=$as_save_IFS
13579
  test -z "$as_dir" && as_dir=.
13580
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13581
done
13582
IFS=$as_save_IFS
13583
 
13584
     ;;
13585
esac
13586
# We did not find ourselves, most probably we were run as `sh COMMAND'
13587
# in which case we are not to be found in the path.
13588
if test "x$as_myself" = x; then
13589
  as_myself=$0
13590
fi
13591
if test ! -f "$as_myself"; then
13592
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13593
  { (exit 1); exit 1; }
13594
fi
13595
 
13596
# Work around bugs in pre-3.0 UWIN ksh.
13597
for as_var in ENV MAIL MAILPATH
13598
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13599
done
13600
PS1='$ '
13601
PS2='> '
13602
PS4='+ '
13603
 
13604
# NLS nuisances.
13605
LC_ALL=C
13606
export LC_ALL
13607
LANGUAGE=C
13608
export LANGUAGE
13609
 
13610
# Required to use basename.
13611
if expr a : '\(a\)' >/dev/null 2>&1 &&
13612
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13613
  as_expr=expr
13614
else
13615
  as_expr=false
13616
fi
13617
 
13618
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13619
  as_basename=basename
13620
else
13621
  as_basename=false
13622
fi
13623
 
13624
 
13625
# Name of the executable.
13626
as_me=`$as_basename -- "$0" ||
13627
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13628
         X"$0" : 'X\(//\)$' \| \
13629
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13630
$as_echo X/"$0" |
13631
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13632
            s//\1/
13633
            q
13634
          }
13635
          /^X\/\(\/\/\)$/{
13636
            s//\1/
13637
            q
13638
          }
13639
          /^X\/\(\/\).*/{
13640
            s//\1/
13641
            q
13642
          }
13643
          s/.*/./; q'`
13644
 
13645
# CDPATH.
13646
$as_unset CDPATH
13647
 
13648
 
13649
 
13650
  as_lineno_1=$LINENO
13651
  as_lineno_2=$LINENO
13652
  test "x$as_lineno_1" != "x$as_lineno_2" &&
13653
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13654
 
13655
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13656
  # uniformly replaced by the line number.  The first 'sed' inserts a
13657
  # line-number line after each line using $LINENO; the second 'sed'
13658
  # does the real work.  The second script uses 'N' to pair each
13659
  # line-number line with the line containing $LINENO, and appends
13660
  # trailing '-' during substitution so that $LINENO is not a special
13661
  # case at line end.
13662
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13663
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13664
  # E. McMahon (1931-1989) for sed's syntax.  :-)
13665
  sed -n '
13666
    p
13667
    /[$]LINENO/=
13668
  ' <$as_myself |
13669
    sed '
13670
      s/[$]LINENO.*/&-/
13671
      t lineno
13672
      b
13673
      :lineno
13674
      N
13675
      :loop
13676
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13677
      t loop
13678
      s/-\n.*//
13679
    ' >$as_me.lineno &&
13680
  chmod +x "$as_me.lineno" ||
13681
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13682
   { (exit 1); exit 1; }; }
13683
 
13684
  # Don't try to exec as it changes $[0], causing all sort of problems
13685
  # (the dirname of $[0] is not the place where we might find the
13686
  # original and so on.  Autoconf is especially sensitive to this).
13687
  . "./$as_me.lineno"
13688
  # Exit status is that of the last command.
13689
  exit
13690
}
13691
 
13692
 
13693
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13694
  as_dirname=dirname
13695
else
13696
  as_dirname=false
13697
fi
13698
 
13699
ECHO_C= ECHO_N= ECHO_T=
13700
case `echo -n x` in
13701
-n*)
13702
  case `echo 'x\c'` in
13703
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13704
  *)   ECHO_C='\c';;
13705
  esac;;
13706
*)
13707
  ECHO_N='-n';;
13708
esac
13709
if expr a : '\(a\)' >/dev/null 2>&1 &&
13710
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13711
  as_expr=expr
13712
else
13713
  as_expr=false
13714
fi
13715
 
13716
rm -f conf$$ conf$$.exe conf$$.file
13717
if test -d conf$$.dir; then
13718
  rm -f conf$$.dir/conf$$.file
13719
else
13720
  rm -f conf$$.dir
13721
  mkdir conf$$.dir 2>/dev/null
13722
fi
13723
if (echo >conf$$.file) 2>/dev/null; then
13724
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13725
    as_ln_s='ln -s'
13726
    # ... but there are two gotchas:
13727
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13728
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13729
    # In both cases, we have to default to `cp -p'.
13730
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13731
      as_ln_s='cp -p'
13732
  elif ln conf$$.file conf$$ 2>/dev/null; then
13733
    as_ln_s=ln
13734
  else
13735
    as_ln_s='cp -p'
13736
  fi
13737
else
13738
  as_ln_s='cp -p'
13739
fi
13740
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13741
rmdir conf$$.dir 2>/dev/null
13742
 
13743
if mkdir -p . 2>/dev/null; then
13744
  as_mkdir_p=:
13745
else
13746
  test -d ./-p && rmdir ./-p
13747
  as_mkdir_p=false
13748
fi
13749
 
13750
if test -x / >/dev/null 2>&1; then
13751
  as_test_x='test -x'
13752
else
13753
  if ls -dL / >/dev/null 2>&1; then
13754
    as_ls_L_option=L
13755
  else
13756
    as_ls_L_option=
13757
  fi
13758
  as_test_x='
13759
    eval sh -c '\''
13760
      if test -d "$1"; then
13761
        test -d "$1/.";
13762
      else
13763
        case $1 in
13764
        -*)set "./$1";;
13765
        esac;
13766
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13767
        ???[sx]*):;;*)false;;esac;fi
13768
    '\'' sh
13769
  '
13770
fi
13771
as_executable_p=$as_test_x
13772
 
13773
# Sed expression to map a string onto a valid CPP name.
13774
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13775
 
13776
# Sed expression to map a string onto a valid variable name.
13777
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13778
 
13779
 
13780
exec 6>&1
13781
 
13782
# Save the log message, to keep $[0] and so on meaningful, and to
13783
# report actual input values of CONFIG_FILES etc. instead of their
13784
# values after options handling.
13785
ac_log="
13786
This file was extended by newlib $as_me 1.18.0, which was
13787
generated by GNU Autoconf 2.63.  Invocation command line was
13788
 
13789
  CONFIG_FILES    = $CONFIG_FILES
13790
  CONFIG_HEADERS  = $CONFIG_HEADERS
13791
  CONFIG_LINKS    = $CONFIG_LINKS
13792
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13793
  $ $0 $@
13794
 
13795
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13796
"
13797
 
13798
_ACEOF
13799
 
13800
case $ac_config_files in *"
13801
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13802
esac
13803
 
13804
case $ac_config_headers in *"
13805
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13806
esac
13807
 
13808
 
13809
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13810
# Files that config.status was made for.
13811
config_files="$ac_config_files"
13812
config_headers="$ac_config_headers"
13813
config_commands="$ac_config_commands"
13814
 
13815
_ACEOF
13816
 
13817
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13818
ac_cs_usage="\
13819
\`$as_me' instantiates files from templates according to the
13820
current configuration.
13821
 
13822
Usage: $0 [OPTION]... [FILE]...
13823
 
13824
  -h, --help       print this help, then exit
13825
  -V, --version    print version number and configuration settings, then exit
13826
  -q, --quiet, --silent
13827
                   do not print progress messages
13828
  -d, --debug      don't remove temporary files
13829
      --recheck    update $as_me by reconfiguring in the same conditions
13830
      --file=FILE[:TEMPLATE]
13831
                   instantiate the configuration file FILE
13832
      --header=FILE[:TEMPLATE]
13833
                   instantiate the configuration header FILE
13834
 
13835
Configuration files:
13836
$config_files
13837
 
13838
Configuration headers:
13839
$config_headers
13840
 
13841
Configuration commands:
13842
$config_commands
13843
 
13844
Report bugs to ."
13845
 
13846
_ACEOF
13847
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13848
ac_cs_version="\\
13849
newlib config.status 1.18.0
13850
configured by $0, generated by GNU Autoconf 2.63,
13851
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13852
 
13853
Copyright (C) 2008 Free Software Foundation, Inc.
13854
This config.status script is free software; the Free Software Foundation
13855
gives unlimited permission to copy, distribute and modify it."
13856
 
13857
ac_pwd='$ac_pwd'
13858
srcdir='$srcdir'
13859
INSTALL='$INSTALL'
13860
MKDIR_P='$MKDIR_P'
13861
AWK='$AWK'
13862
test -n "\$AWK" || AWK=awk
13863
_ACEOF
13864
 
13865
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13866
# The default lists apply if the user does not specify any file.
13867
ac_need_defaults=:
13868
while test $# != 0
13869
do
13870
  case $1 in
13871
  --*=*)
13872
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13873
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13874
    ac_shift=:
13875
    ;;
13876
  *)
13877
    ac_option=$1
13878
    ac_optarg=$2
13879
    ac_shift=shift
13880
    ;;
13881
  esac
13882
 
13883
  case $ac_option in
13884
  # Handling of the options.
13885
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13886
    ac_cs_recheck=: ;;
13887
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13888
    $as_echo "$ac_cs_version"; exit ;;
13889
  --debug | --debu | --deb | --de | --d | -d )
13890
    debug=: ;;
13891
  --file | --fil | --fi | --f )
13892
    $ac_shift
13893
    case $ac_optarg in
13894
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13895
    esac
13896
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13897
    ac_need_defaults=false;;
13898
  --header | --heade | --head | --hea )
13899
    $ac_shift
13900
    case $ac_optarg in
13901
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13902
    esac
13903
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13904
    ac_need_defaults=false;;
13905
  --he | --h)
13906
    # Conflict between --help and --header
13907
    { $as_echo "$as_me: error: ambiguous option: $1
13908
Try \`$0 --help' for more information." >&2
13909
   { (exit 1); exit 1; }; };;
13910
  --help | --hel | -h )
13911
    $as_echo "$ac_cs_usage"; exit ;;
13912
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13913
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13914
    ac_cs_silent=: ;;
13915
 
13916
  # This is an error.
13917
  -*) { $as_echo "$as_me: error: unrecognized option: $1
13918
Try \`$0 --help' for more information." >&2
13919
   { (exit 1); exit 1; }; } ;;
13920
 
13921
  *) ac_config_targets="$ac_config_targets $1"
13922
     ac_need_defaults=false ;;
13923
 
13924
  esac
13925
  shift
13926
done
13927
 
13928
ac_configure_extra_args=
13929
 
13930
if $ac_cs_silent; then
13931
  exec 6>/dev/null
13932
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13933
fi
13934
 
13935
_ACEOF
13936
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13937
if \$ac_cs_recheck; then
13938
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13939
  shift
13940
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13941
  CONFIG_SHELL='$SHELL'
13942
  export CONFIG_SHELL
13943
  exec "\$@"
13944
fi
13945
 
13946
_ACEOF
13947
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13948
exec 5>>config.log
13949
{
13950
  echo
13951
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13952
## Running $as_me. ##
13953
_ASBOX
13954
  $as_echo "$ac_log"
13955
} >&5
13956
 
13957
_ACEOF
13958
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13959
#
13960
# INIT-COMMANDS
13961
#
13962
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13963
 
13964
 
13965
# The HP-UX ksh and POSIX shell print the target directory to stdout
13966
# if CDPATH is set.
13967
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13968
 
13969
sed_quote_subst='$sed_quote_subst'
13970
double_quote_subst='$double_quote_subst'
13971
delay_variable_subst='$delay_variable_subst'
13972
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13973
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13974
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13975
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13976
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13977
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13978
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13979
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13980
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13981
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13982
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13983
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13984
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13985
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13986
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13987
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13988
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13989
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13990
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13991
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13992
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13993
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13994
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13995
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13996
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13997
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13998
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13999
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14000
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14001
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14002
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14003
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14004
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14005
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14006
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14007
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14008
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14009
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14010
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14011
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14012
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14013
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14014
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14015
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14016
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14017
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14018
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"`'
14019
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"`'
14020
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14021
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14022
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14023
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14024
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14025
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14026
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14027
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14028
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14029
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14030
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14031
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14032
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14033
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14034
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14035
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14036
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14037
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14038
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14039
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14040
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14041
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14042
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14043
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14044
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14045
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14046
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14047
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14048
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14049
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14050
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14051
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14052
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14053
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14054
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14055
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14056
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14057
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14058
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14059
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14060
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14061
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14062
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14063
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14064
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14065
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14066
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14067
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14068
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14069
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14070
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14071
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14072
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14073
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14074
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14075
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14076
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14077
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14078
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14079
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14080
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14081
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14082
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14083
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14084
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14085
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14086
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14087
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14088
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14089
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14090
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14091
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14092
 
14093
LTCC='$LTCC'
14094
LTCFLAGS='$LTCFLAGS'
14095
compiler='$compiler_DEFAULT'
14096
 
14097
# Quote evaled strings.
14098
for var in SED \
14099
GREP \
14100
EGREP \
14101
FGREP \
14102
LD \
14103
NM \
14104
LN_S \
14105
lt_SP2NL \
14106
lt_NL2SP \
14107
reload_flag \
14108
deplibs_check_method \
14109
file_magic_cmd \
14110
AR \
14111
AR_FLAGS \
14112
STRIP \
14113
RANLIB \
14114
CC \
14115
CFLAGS \
14116
compiler \
14117
lt_cv_sys_global_symbol_pipe \
14118
lt_cv_sys_global_symbol_to_cdecl \
14119
lt_cv_sys_global_symbol_to_c_name_address \
14120
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14121
SHELL \
14122
ECHO \
14123
lt_prog_compiler_no_builtin_flag \
14124
lt_prog_compiler_wl \
14125
lt_prog_compiler_pic \
14126
lt_prog_compiler_static \
14127
lt_cv_prog_compiler_c_o \
14128
need_locks \
14129
DSYMUTIL \
14130
NMEDIT \
14131
LIPO \
14132
OTOOL \
14133
OTOOL64 \
14134
shrext_cmds \
14135
export_dynamic_flag_spec \
14136
whole_archive_flag_spec \
14137
compiler_needs_object \
14138
with_gnu_ld \
14139
allow_undefined_flag \
14140
no_undefined_flag \
14141
hardcode_libdir_flag_spec \
14142
hardcode_libdir_flag_spec_ld \
14143
hardcode_libdir_separator \
14144
fix_srcfile_path \
14145
exclude_expsyms \
14146
include_expsyms \
14147
file_list_spec \
14148
variables_saved_for_relink \
14149
libname_spec \
14150
library_names_spec \
14151
soname_spec \
14152
finish_eval \
14153
old_striplib \
14154
striplib; do
14155
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14156
    *[\\\\\\\`\\"\\\$]*)
14157
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14158
      ;;
14159
    *)
14160
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14161
      ;;
14162
    esac
14163
done
14164
 
14165
# Double-quote double-evaled strings.
14166
for var in reload_cmds \
14167
old_postinstall_cmds \
14168
old_postuninstall_cmds \
14169
old_archive_cmds \
14170
extract_expsyms_cmds \
14171
old_archive_from_new_cmds \
14172
old_archive_from_expsyms_cmds \
14173
archive_cmds \
14174
archive_expsym_cmds \
14175
module_cmds \
14176
module_expsym_cmds \
14177
export_symbols_cmds \
14178
prelink_cmds \
14179
postinstall_cmds \
14180
postuninstall_cmds \
14181
finish_cmds \
14182
sys_lib_search_path_spec \
14183
sys_lib_dlsearch_path_spec; do
14184
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14185
    *[\\\\\\\`\\"\\\$]*)
14186
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14187
      ;;
14188
    *)
14189
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14190
      ;;
14191
    esac
14192
done
14193
 
14194
# Fix-up fallback echo if it was mangled by the above quoting rules.
14195
case \$lt_ECHO in
14196
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14197
  ;;
14198
esac
14199
 
14200
ac_aux_dir='$ac_aux_dir'
14201
xsi_shell='$xsi_shell'
14202
lt_shell_append='$lt_shell_append'
14203
 
14204
# See if we are running on zsh, and set the options which allow our
14205
# commands through without removal of \ escapes INIT.
14206
if test -n "\${ZSH_VERSION+set}" ; then
14207
   setopt NO_GLOB_SUBST
14208
fi
14209
 
14210
 
14211
    PACKAGE='$PACKAGE'
14212
    VERSION='$VERSION'
14213
    TIMESTAMP='$TIMESTAMP'
14214
    RM='$RM'
14215
    ofile='$ofile'
14216
 
14217
 
14218
 
14219
srcdir=${srcdir}
14220
host=${host}
14221
with_multisubdir=${with_multisubdir}
14222
ac_configure_args="${multilib_arg} ${ac_configure_args}"
14223
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14224
newlib_basedir=${newlib_basedir}
14225
CC="${CC}"
14226
LDFLAGS="${LDFLAGS}"
14227
 
14228
 
14229
_ACEOF
14230
 
14231
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14232
 
14233
# Handling of arguments.
14234
for ac_config_target in $ac_config_targets
14235
do
14236
  case $ac_config_target in
14237
    "newlib.h") CONFIG_HEADERS="$CONFIG_HEADERS newlib.h:newlib.hin" ;;
14238
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14239
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14240
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14241
 
14242
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14243
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14244
   { (exit 1); exit 1; }; };;
14245
  esac
14246
done
14247
 
14248
 
14249
# If the user did not use the arguments to specify the items to instantiate,
14250
# then the envvar interface is used.  Set only those that are not.
14251
# We use the long form for the default assignment because of an extremely
14252
# bizarre bug on SunOS 4.1.3.
14253
if $ac_need_defaults; then
14254
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14255
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14256
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14257
fi
14258
 
14259
# Have a temporary directory for convenience.  Make it in the build tree
14260
# simply because there is no reason against having it here, and in addition,
14261
# creating and moving files from /tmp can sometimes cause problems.
14262
# Hook for its removal unless debugging.
14263
# Note that there is a small window in which the directory will not be cleaned:
14264
# after its creation but before its name has been assigned to `$tmp'.
14265
$debug ||
14266
{
14267
  tmp=
14268
  trap 'exit_status=$?
14269
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14270
' 0
14271
  trap '{ (exit 1); exit 1; }' 1 2 13 15
14272
}
14273
# Create a (secure) tmp directory for tmp files.
14274
 
14275
{
14276
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14277
  test -n "$tmp" && test -d "$tmp"
14278
}  ||
14279
{
14280
  tmp=./conf$$-$RANDOM
14281
  (umask 077 && mkdir "$tmp")
14282
} ||
14283
{
14284
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
14285
   { (exit 1); exit 1; }
14286
}
14287
 
14288
# Set up the scripts for CONFIG_FILES section.
14289
# No need to generate them if there are no CONFIG_FILES.
14290
# This happens for instance with `./config.status config.h'.
14291
if test -n "$CONFIG_FILES"; then
14292
 
14293
 
14294
ac_cr='
'
14295
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
14296
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14297
  ac_cs_awk_cr='\\r'
14298
else
14299
  ac_cs_awk_cr=$ac_cr
14300
fi
14301
14302
 
14303
_ACEOF
14304
14305
 
14306
 
14307
  echo "cat >conf$$subs.awk <<_ACEOF" &&
14308
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14309
  echo "_ACEOF"
14310
} >conf$$subs.sh ||
14311
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14312
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14313
   { (exit 1); exit 1; }; }
14314
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14315
ac_delim='%!_!# '
14316
for ac_last_try in false false false false false :; do
14317
  . ./conf$$subs.sh ||
14318
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14319
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14320
   { (exit 1); exit 1; }; }
14321
14322
 
14323
  if test $ac_delim_n = $ac_delim_num; then
14324
    break
14325
  elif $ac_last_try; then
14326
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14327
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14328
   { (exit 1); exit 1; }; }
14329
  else
14330
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14331
  fi
14332
done
14333
rm -f conf$$subs.sh
14334
14335
 
14336
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14337
_ACEOF
14338
sed -n '
14339
h
14340
s/^/S["/; s/!.*/"]=/
14341
p
14342
g
14343
s/^[^!]*!//
14344
:repl
14345
t repl
14346
s/'"$ac_delim"'$//
14347
t delim
14348
:nl
14349
h
14350
s/\(.\{148\}\).*/\1/
14351
t more1
14352
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14353
p
14354
n
14355
b repl
14356
:more1
14357
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14358
p
14359
g
14360
s/.\{148\}//
14361
t nl
14362
:delim
14363
h
14364
s/\(.\{148\}\).*/\1/
14365
t more2
14366
s/["\\]/\\&/g; s/^/"/; s/$/"/
14367
p
14368
b
14369
:more2
14370
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14371
p
14372
g
14373
s/.\{148\}//
14374
t delim
14375
' 
14376
/^[^""]/{
14377
  N
14378
  s/\n//
14379
}
14380
' >>$CONFIG_STATUS || ac_write_fail=1
14381
rm -f conf$$subs.awk
14382
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14383
_ACAWK
14384
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14385
  for (key in S) S_is_set[key] = 1
14386
  FS = ""
14387
14388
 
14389
{
14390
  line = $ 0
14391
  nfields = split(line, field, "@")
14392
  substed = 0
14393
  len = length(field[1])
14394
  for (i = 2; i < nfields; i++) {
14395
    key = field[i]
14396
    keylen = length(key)
14397
    if (S_is_set[key]) {
14398
      value = S[key]
14399
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14400
      len += length(value) + length(field[++i])
14401
      substed = 1
14402
    } else
14403
      len += 1 + keylen
14404
  }
14405
14406
 
14407
}
14408
14409
 
14410
_ACEOF
14411
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14412
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14413
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14414
else
14415
  cat
14416
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14417
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14418
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14419
   { (exit 1); exit 1; }; }
14420
_ACEOF
14421
14422
 
14423
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14424
# trailing colons and then remove the whole line if VPATH becomes empty
14425
# (actually we leave an empty line to preserve line numbers).
14426
if test "x$srcdir" = x.; then
14427
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14428
s/:*\$(srcdir):*/:/
14429
s/:*\${srcdir}:*/:/
14430
s/:*@srcdir@:*/:/
14431
s/^\([^=]*=[     ]*\):*/\1/
14432
s/:*$//
14433
s/^[^=]*=[       ]*$//
14434
}'
14435
fi
14436
14437
 
14438
fi # test -n "$CONFIG_FILES"
14439
14440
 
14441
# No need to generate them if there are no CONFIG_HEADERS.
14442
# This happens for instance with `./config.status Makefile'.
14443
if test -n "$CONFIG_HEADERS"; then
14444
cat >"$tmp/defines.awk" <<\_ACAWK ||
14445
BEGIN {
14446
_ACEOF
14447
14448
 
14449
# here-document in config.status, that substitutes the proper values into
14450
# config.h.in to produce config.h.
14451
14452
 
14453
# handling of long lines.
14454
ac_delim='%!_!# '
14455
for ac_last_try in false false :; do
14456
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14457
  if test -z "$ac_t"; then
14458
    break
14459
  elif $ac_last_try; then
14460
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14461
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14462
   { (exit 1); exit 1; }; }
14463
  else
14464
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14465
  fi
14466
done
14467
14468
 
14469
# likewise P contains macro parameters if any.  Preserve backslash
14470
# newline sequences.
14471
14472
 
14473
sed -n '
14474
s/.\{148\}/&'"$ac_delim"'/g
14475
t rset
14476
:rset
14477
s/^[     ]*#[    ]*define[       ][      ]*/ /
14478
t def
14479
d
14480
:def
14481
s/\\$//
14482
t bsnl
14483
s/["\\]/\\&/g
14484
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14485
D["\1"]=" \3"/p
14486
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14487
d
14488
:bsnl
14489
s/["\\]/\\&/g
14490
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14491
D["\1"]=" \3\\\\\\n"\\/p
14492
t cont
14493
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14494
t cont
14495
d
14496
:cont
14497
n
14498
s/.\{148\}/&'"$ac_delim"'/g
14499
t clear
14500
:clear
14501
s/\\$//
14502
t bsnlc
14503
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14504
d
14505
:bsnlc
14506
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14507
b cont
14508
' 
14509
s/'"$ac_delim"'/"\\\
14510
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14511
14512
 
14513
  for (key in D) D_is_set[key] = 1
14514
  FS = ""
14515
}
14516
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14517
  line = \$ 0
14518
  split(line, arg, " ")
14519
  if (arg[1] == "#") {
14520
    defundef = arg[2]
14521
    mac1 = arg[3]
14522
  } else {
14523
    defundef = substr(arg[1], 2)
14524
    mac1 = arg[2]
14525
  }
14526
  split(mac1, mac2, "(") #)
14527
  macro = mac2[1]
14528
  prefix = substr(line, 1, index(line, defundef) - 1)
14529
  if (D_is_set[macro]) {
14530
    # Preserve the white space surrounding the "#".
14531
    print prefix "define", macro P[macro] D[macro]
14532
    next
14533
  } else {
14534
    # Replace #undef with comments.  This is necessary, for example,
14535
    # in the case of _POSIX_SOURCE, which is predefined and required
14536
    # on some systems where configure will not decide to define it.
14537
    if (defundef == "undef") {
14538
      print "/*", prefix defundef, macro, "*/"
14539
      next
14540
    }
14541
  }
14542
}
14543
{ print }
14544
_ACAWK
14545
_ACEOF
14546
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14547
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14548
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14549
   { (exit 1); exit 1; }; }
14550
fi # test -n "$CONFIG_HEADERS"
14551
14552
 
14553
 
14554
shift
14555
for ac_tag
14556
do
14557
  case $ac_tag in
14558
  :[FHLC]) ac_mode=$ac_tag; continue;;
14559
  esac
14560
  case $ac_mode$ac_tag in
14561
  :[FHL]*:*);;
14562
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14563
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14564
   { (exit 1); exit 1; }; };;
14565
  :[FH]-) ac_tag=-:-;;
14566
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14567
  esac
14568
  ac_save_IFS=$IFS
14569
  IFS=:
14570
  set x $ac_tag
14571
  IFS=$ac_save_IFS
14572
  shift
14573
  ac_file=$1
14574
  shift
14575
14576
 
14577
  :L) ac_source=$1;;
14578
  :[FH])
14579
    ac_file_inputs=
14580
    for ac_f
14581
    do
14582
      case $ac_f in
14583
      -) ac_f="$tmp/stdin";;
14584
      *) # Look for the file first in the build tree, then in the source tree
14585
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
14586
         # because $ac_f cannot contain `:'.
14587
         test -f "$ac_f" ||
14588
           case $ac_f in
14589
           [\\/$]*) false;;
14590
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14591
           esac ||
14592
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14593
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14594
   { (exit 1); exit 1; }; };;
14595
      esac
14596
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14597
      ac_file_inputs="$ac_file_inputs '$ac_f'"
14598
    done
14599
14600
 
14601
    # use $as_me), people would be surprised to read:
14602
    #    /* config.h.  Generated by config.status.  */
14603
    configure_input='Generated from '`
14604
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14605
        `' by configure.'
14606
    if test x"$ac_file" != x-; then
14607
      configure_input="$ac_file.  $configure_input"
14608
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14609
$as_echo "$as_me: creating $ac_file" >&6;}
14610
    fi
14611
    # Neutralize special characters interpreted by sed in replacement strings.
14612
    case $configure_input in #(
14613
    *\&* | *\|* | *\\* )
14614
       ac_sed_conf_input=`$as_echo "$configure_input" |
14615
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14616
    *) ac_sed_conf_input=$configure_input;;
14617
    esac
14618
14619
 
14620
    *:-:* | *:-) cat >"$tmp/stdin" \
14621
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14622
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14623
   { (exit 1); exit 1; }; } ;;
14624
    esac
14625
    ;;
14626
  esac
14627
14628
 
14629
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14630
         X"$ac_file" : 'X\(//\)[^/]' \| \
14631
         X"$ac_file" : 'X\(//\)$' \| \
14632
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14633
$as_echo X"$ac_file" |
14634
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14635
            s//\1/
14636
            q
14637
          }
14638
          /^X\(\/\/\)[^/].*/{
14639
            s//\1/
14640
            q
14641
          }
14642
          /^X\(\/\/\)$/{
14643
            s//\1/
14644
            q
14645
          }
14646
          /^X\(\/\).*/{
14647
            s//\1/
14648
            q
14649
          }
14650
          s/.*/./; q'`
14651
  { as_dir="$ac_dir"
14652
  case $as_dir in #(
14653
  -*) as_dir=./$as_dir;;
14654
  esac
14655
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14656
    as_dirs=
14657
    while :; do
14658
      case $as_dir in #(
14659
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14660
      *) as_qdir=$as_dir;;
14661
      esac
14662
      as_dirs="'$as_qdir' $as_dirs"
14663
      as_dir=`$as_dirname -- "$as_dir" ||
14664
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14665
         X"$as_dir" : 'X\(//\)[^/]' \| \
14666
         X"$as_dir" : 'X\(//\)$' \| \
14667
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14668
$as_echo X"$as_dir" |
14669
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14670
            s//\1/
14671
            q
14672
          }
14673
          /^X\(\/\/\)[^/].*/{
14674
            s//\1/
14675
            q
14676
          }
14677
          /^X\(\/\/\)$/{
14678
            s//\1/
14679
            q
14680
          }
14681
          /^X\(\/\).*/{
14682
            s//\1/
14683
            q
14684
          }
14685
          s/.*/./; q'`
14686
      test -d "$as_dir" && break
14687
    done
14688
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14689
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14690
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14691
   { (exit 1); exit 1; }; }; }
14692
  ac_builddir=.
14693
14694
 
14695
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14696
*)
14697
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14698
  # A ".." for each directory in $ac_dir_suffix.
14699
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14700
  case $ac_top_builddir_sub in
14701
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14702
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14703
  esac ;;
14704
esac
14705
ac_abs_top_builddir=$ac_pwd
14706
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14707
# for backward compatibility:
14708
ac_top_builddir=$ac_top_build_prefix
14709
14710
 
14711
  .)  # We are building in place.
14712
    ac_srcdir=.
14713
    ac_top_srcdir=$ac_top_builddir_sub
14714
    ac_abs_top_srcdir=$ac_pwd ;;
14715
  [\\/]* | ?:[\\/]* )  # Absolute name.
14716
    ac_srcdir=$srcdir$ac_dir_suffix;
14717
    ac_top_srcdir=$srcdir
14718
    ac_abs_top_srcdir=$srcdir ;;
14719
  *) # Relative name.
14720
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14721
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14722
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14723
esac
14724
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14725
14726
 
14727
 
14728
  :F)
14729
  #
14730
  # CONFIG_FILE
14731
  #
14732
14733
 
14734
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14735
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14736
  esac
14737
  ac_MKDIR_P=$MKDIR_P
14738
  case $MKDIR_P in
14739
  [\\/$]* | ?:[\\/]* ) ;;
14740
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14741
  esac
14742
_ACEOF
14743
14744
 
14745
# If the template does not know about datarootdir, expand it.
14746
# FIXME: This hack should be removed a few years after 2.60.
14747
ac_datarootdir_hack=; ac_datarootdir_seen=
14748
14749
 
14750
/datarootdir/ {
14751
  p
14752
  q
14753
}
14754
/@datadir@/p
14755
/@docdir@/p
14756
/@infodir@/p
14757
/@localedir@/p
14758
/@mandir@/p
14759
'
14760
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14761
*datarootdir*) ac_datarootdir_seen=yes;;
14762
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14763
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14764
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14765
_ACEOF
14766
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14767
  ac_datarootdir_hack='
14768
  s&@datadir@&$datadir&g
14769
  s&@docdir@&$docdir&g
14770
  s&@infodir@&$infodir&g
14771
  s&@localedir@&$localedir&g
14772
  s&@mandir@&$mandir&g
14773
    s&\\\${datarootdir}&$datarootdir&g' ;;
14774
esac
14775
_ACEOF
14776
14777
 
14778
# Shell code in configure.ac might set extrasub.
14779
# FIXME: do we really want to maintain this feature?
14780
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14781
ac_sed_extra="$ac_vpsub
14782
$extrasub
14783
_ACEOF
14784
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14785
:t
14786
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14787
s|@configure_input@|$ac_sed_conf_input|;t t
14788
s&@top_builddir@&$ac_top_builddir_sub&;t t
14789
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14790
s&@srcdir@&$ac_srcdir&;t t
14791
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14792
s&@top_srcdir@&$ac_top_srcdir&;t t
14793
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14794
s&@builddir@&$ac_builddir&;t t
14795
s&@abs_builddir@&$ac_abs_builddir&;t t
14796
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14797
s&@INSTALL@&$ac_INSTALL&;t t
14798
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14799
$ac_datarootdir_hack
14800
"
14801
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14802
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14803
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14804
   { (exit 1); exit 1; }; }
14805
14806
 
14807
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14808
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14809
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14810
which seems to be undefined.  Please make sure it is defined." >&5
14811
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14812
which seems to be undefined.  Please make sure it is defined." >&2;}
14813
14814
 
14815
  case $ac_file in
14816
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14817
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14818
  esac \
14819
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14820
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14821
   { (exit 1); exit 1; }; }
14822
 ;;
14823
  :H)
14824
  #
14825
  # CONFIG_HEADER
14826
  #
14827
  if test x"$ac_file" != x-; then
14828
    {
14829
      $as_echo "/* $configure_input  */" \
14830
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14831
    } >"$tmp/config.h" \
14832
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14833
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14834
   { (exit 1); exit 1; }; }
14835
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14836
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14837
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14838
    else
14839
      rm -f "$ac_file"
14840
      mv "$tmp/config.h" "$ac_file" \
14841
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14842
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14843
   { (exit 1); exit 1; }; }
14844
    fi
14845
  else
14846
    $as_echo "/* $configure_input  */" \
14847
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14848
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14849
$as_echo "$as_me: error: could not create -" >&2;}
14850
   { (exit 1); exit 1; }; }
14851
  fi
14852
# Compute "$ac_file"'s index in $config_headers.
14853
_am_arg="$ac_file"
14854
_am_stamp_count=1
14855
for _am_header in $config_headers :; do
14856
  case $_am_header in
14857
    $_am_arg | $_am_arg:* )
14858
      break ;;
14859
    * )
14860
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14861
  esac
14862
done
14863
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14864
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14865
         X"$_am_arg" : 'X\(//\)[^/]' \| \
14866
         X"$_am_arg" : 'X\(//\)$' \| \
14867
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14868
$as_echo X"$_am_arg" |
14869
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14870
            s//\1/
14871
            q
14872
          }
14873
          /^X\(\/\/\)[^/].*/{
14874
            s//\1/
14875
            q
14876
          }
14877
          /^X\(\/\/\)$/{
14878
            s//\1/
14879
            q
14880
          }
14881
          /^X\(\/\).*/{
14882
            s//\1/
14883
            q
14884
          }
14885
          s/.*/./; q'`/stamp-h$_am_stamp_count
14886
 ;;
14887
14888
 
14889
$as_echo "$as_me: executing $ac_file commands" >&6;}
14890
 ;;
14891
  esac
14892
14893
 
14894
 
14895
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14896
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14897
  # are listed without --file.  Let's play safe and only enable the eval
14898
  # if we detect the quoting.
14899
  case $CONFIG_FILES in
14900
  *\'*) eval set x "$CONFIG_FILES" ;;
14901
  *)   set x $CONFIG_FILES ;;
14902
  esac
14903
  shift
14904
  for mf
14905
  do
14906
    # Strip MF so we end up with the name of the file.
14907
    mf=`echo "$mf" | sed -e 's/:.*$//'`
14908
    # Check whether this is an Automake generated Makefile or not.
14909
    # We used to match only the files named `Makefile.in', but
14910
    # some people rename them; so instead we look at the file content.
14911
    # Grep'ing the first line is not enough: some people post-process
14912
    # each Makefile.in and add a new line on top of each file to say so.
14913
    # Grep'ing the whole file is not good either: AIX grep has a line
14914
    # limit of 2048, but all sed's we know have understand at least 4000.
14915
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14916
      dirpart=`$as_dirname -- "$mf" ||
14917
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14918
         X"$mf" : 'X\(//\)[^/]' \| \
14919
         X"$mf" : 'X\(//\)$' \| \
14920
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14921
$as_echo X"$mf" |
14922
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14923
            s//\1/
14924
            q
14925
          }
14926
          /^X\(\/\/\)[^/].*/{
14927
            s//\1/
14928
            q
14929
          }
14930
          /^X\(\/\/\)$/{
14931
            s//\1/
14932
            q
14933
          }
14934
          /^X\(\/\).*/{
14935
            s//\1/
14936
            q
14937
          }
14938
          s/.*/./; q'`
14939
    else
14940
      continue
14941
    fi
14942
    # Extract the definition of DEPDIR, am__include, and am__quote
14943
    # from the Makefile without running `make'.
14944
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14945
    test -z "$DEPDIR" && continue
14946
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14947
    test -z "am__include" && continue
14948
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14949
    # When using ansi2knr, U may be empty or an underscore; expand it
14950
    U=`sed -n 's/^U = //p' < "$mf"`
14951
    # Find all dependency output files, they are included files with
14952
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14953
    # simplest approach to changing $(DEPDIR) to its actual value in the
14954
    # expansion.
14955
    for file in `sed -n "
14956
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14957
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14958
      # Make sure the directory exists.
14959
      test -f "$dirpart/$file" && continue
14960
      fdir=`$as_dirname -- "$file" ||
14961
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14962
         X"$file" : 'X\(//\)[^/]' \| \
14963
         X"$file" : 'X\(//\)$' \| \
14964
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14965
$as_echo X"$file" |
14966
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14967
            s//\1/
14968
            q
14969
          }
14970
          /^X\(\/\/\)[^/].*/{
14971
            s//\1/
14972
            q
14973
          }
14974
          /^X\(\/\/\)$/{
14975
            s//\1/
14976
            q
14977
          }
14978
          /^X\(\/\).*/{
14979
            s//\1/
14980
            q
14981
          }
14982
          s/.*/./; q'`
14983
      { as_dir=$dirpart/$fdir
14984
  case $as_dir in #(
14985
  -*) as_dir=./$as_dir;;
14986
  esac
14987
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14988
    as_dirs=
14989
    while :; do
14990
      case $as_dir in #(
14991
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14992
      *) as_qdir=$as_dir;;
14993
      esac
14994
      as_dirs="'$as_qdir' $as_dirs"
14995
      as_dir=`$as_dirname -- "$as_dir" ||
14996
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14997
         X"$as_dir" : 'X\(//\)[^/]' \| \
14998
         X"$as_dir" : 'X\(//\)$' \| \
14999
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15000
$as_echo X"$as_dir" |
15001
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15002
            s//\1/
15003
            q
15004
          }
15005
          /^X\(\/\/\)[^/].*/{
15006
            s//\1/
15007
            q
15008
          }
15009
          /^X\(\/\/\)$/{
15010
            s//\1/
15011
            q
15012
          }
15013
          /^X\(\/\).*/{
15014
            s//\1/
15015
            q
15016
          }
15017
          s/.*/./; q'`
15018
      test -d "$as_dir" && break
15019
    done
15020
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15021
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15022
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15023
   { (exit 1); exit 1; }; }; }
15024
      # echo "creating $dirpart/$file"
15025
      echo '# dummy' > "$dirpart/$file"
15026
    done
15027
  done
15028
}
15029
 ;;
15030
    "libtool":C)
15031
15032
 
15033
    # commands through without removal of \ escapes.
15034
    if test -n "${ZSH_VERSION+set}" ; then
15035
      setopt NO_GLOB_SUBST
15036
    fi
15037
15038
 
15039
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15040
    $RM "$cfgfile"
15041
15042
 
15043
#! $SHELL
15044
15045
 
15046
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15047
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15048
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15049
#
15050
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15051
#                 2006, 2007, 2008 Free Software Foundation, Inc.
15052
#   Written by Gordon Matzigkeit, 1996
15053
#
15054
#   This file is part of GNU Libtool.
15055
#
15056
# GNU Libtool is free software; you can redistribute it and/or
15057
# modify it under the terms of the GNU General Public License as
15058
# published by the Free Software Foundation; either version 2 of
15059
# the License, or (at your option) any later version.
15060
#
15061
# As a special exception to the GNU General Public License,
15062
# if you distribute this file as part of a program or library that
15063
# is built using GNU Libtool, you may include this file under the
15064
# same distribution terms that you use for the rest of that program.
15065
#
15066
# GNU Libtool is distributed in the hope that it will be useful,
15067
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15068
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15069
# GNU General Public License for more details.
15070
#
15071
# You should have received a copy of the GNU General Public License
15072
# along with GNU Libtool; see the file COPYING.  If not, a copy
15073
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15074
# obtained by writing to the Free Software Foundation, Inc.,
15075
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15076
15077
 
15078
 
15079
available_tags=""
15080
15081
 
15082
15083
 
15084
SED=$lt_SED
15085
15086
 
15087
Xsed="\$SED -e 1s/^X//"
15088
15089
 
15090
AS=$AS
15091
15092
 
15093
DLLTOOL=$DLLTOOL
15094
15095
 
15096
OBJDUMP=$OBJDUMP
15097
15098
 
15099
macro_version=$macro_version
15100
macro_revision=$macro_revision
15101
15102
 
15103
build_libtool_libs=$enable_shared
15104
15105
 
15106
build_old_libs=$enable_static
15107
15108
 
15109
pic_mode=$pic_mode
15110
15111
 
15112
fast_install=$enable_fast_install
15113
15114
 
15115
host_alias=$host_alias
15116
host=$host
15117
host_os=$host_os
15118
15119
 
15120
build_alias=$build_alias
15121
build=$build
15122
build_os=$build_os
15123
15124
 
15125
GREP=$lt_GREP
15126
15127
 
15128
EGREP=$lt_EGREP
15129
15130
 
15131
FGREP=$lt_FGREP
15132
15133
 
15134
NM=$lt_NM
15135
15136
 
15137
LN_S=$lt_LN_S
15138
15139
 
15140
max_cmd_len=$max_cmd_len
15141
15142
 
15143
objext=$ac_objext
15144
15145
 
15146
exeext=$exeext
15147
15148
 
15149
lt_unset=$lt_unset
15150
15151
 
15152
SP2NL=$lt_lt_SP2NL
15153
15154
 
15155
NL2SP=$lt_lt_NL2SP
15156
15157
 
15158
reload_flag=$lt_reload_flag
15159
reload_cmds=$lt_reload_cmds
15160
15161
 
15162
deplibs_check_method=$lt_deplibs_check_method
15163
15164
 
15165
file_magic_cmd=$lt_file_magic_cmd
15166
15167
 
15168
AR=$lt_AR
15169
AR_FLAGS=$lt_AR_FLAGS
15170
15171
 
15172
STRIP=$lt_STRIP
15173
15174
 
15175
RANLIB=$lt_RANLIB
15176
old_postinstall_cmds=$lt_old_postinstall_cmds
15177
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15178
15179
 
15180
LTCC=$lt_CC
15181
15182
 
15183
LTCFLAGS=$lt_CFLAGS
15184
15185
 
15186
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15187
15188
 
15189
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15190
15191
 
15192
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15193
15194
 
15195
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15196
15197
 
15198
objdir=$objdir
15199
15200
 
15201
SHELL=$lt_SHELL
15202
15203
 
15204
ECHO=$lt_ECHO
15205
15206
 
15207
MAGIC_CMD=$MAGIC_CMD
15208
15209
 
15210
need_locks=$lt_need_locks
15211
15212
 
15213
DSYMUTIL=$lt_DSYMUTIL
15214
15215
 
15216
NMEDIT=$lt_NMEDIT
15217
15218
 
15219
LIPO=$lt_LIPO
15220
15221
 
15222
OTOOL=$lt_OTOOL
15223
15224
 
15225
OTOOL64=$lt_OTOOL64
15226
15227
 
15228
libext=$libext
15229
15230
 
15231
shrext_cmds=$lt_shrext_cmds
15232
15233
 
15234
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15235
15236
 
15237
# restored at link time.
15238
variables_saved_for_relink=$lt_variables_saved_for_relink
15239
15240
 
15241
need_lib_prefix=$need_lib_prefix
15242
15243
 
15244
need_version=$need_version
15245
15246
 
15247
version_type=$version_type
15248
15249
 
15250
runpath_var=$runpath_var
15251
15252
 
15253
shlibpath_var=$shlibpath_var
15254
15255
 
15256
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15257
15258
 
15259
libname_spec=$lt_libname_spec
15260
15261
 
15262
# The last name is the one that the linker finds with -lNAME
15263
library_names_spec=$lt_library_names_spec
15264
15265
 
15266
soname_spec=$lt_soname_spec
15267
15268
 
15269
postinstall_cmds=$lt_postinstall_cmds
15270
15271
 
15272
postuninstall_cmds=$lt_postuninstall_cmds
15273
15274
 
15275
finish_cmds=$lt_finish_cmds
15276
15277
 
15278
# not shown.
15279
finish_eval=$lt_finish_eval
15280
15281
 
15282
hardcode_into_libs=$hardcode_into_libs
15283
15284
 
15285
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15286
15287
 
15288
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15289
15290
 
15291
dlopen_support=$enable_dlopen
15292
15293
 
15294
dlopen_self=$enable_dlopen_self
15295
15296
 
15297
dlopen_self_static=$enable_dlopen_self_static
15298
15299
 
15300
old_striplib=$lt_old_striplib
15301
striplib=$lt_striplib
15302
15303
 
15304
 
15305
LD=$lt_LD
15306
15307
 
15308
old_archive_cmds=$lt_old_archive_cmds
15309
15310
 
15311
CC=$lt_compiler
15312
15313
 
15314
with_gcc=$GCC
15315
15316
 
15317
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15318
15319
 
15320
wl=$lt_lt_prog_compiler_wl
15321
15322
 
15323
pic_flag=$lt_lt_prog_compiler_pic
15324
15325
 
15326
link_static_flag=$lt_lt_prog_compiler_static
15327
15328
 
15329
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15330
15331
 
15332
build_libtool_need_lc=$archive_cmds_need_lc
15333
15334
 
15335
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15336
15337
 
15338
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15339
15340
 
15341
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15342
15343
 
15344
compiler_needs_object=$lt_compiler_needs_object
15345
15346
 
15347
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15348
15349
 
15350
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15351
15352
 
15353
archive_cmds=$lt_archive_cmds
15354
archive_expsym_cmds=$lt_archive_expsym_cmds
15355
15356
 
15357
# a shared archive.
15358
module_cmds=$lt_module_cmds
15359
module_expsym_cmds=$lt_module_expsym_cmds
15360
15361
 
15362
with_gnu_ld=$lt_with_gnu_ld
15363
15364
 
15365
allow_undefined_flag=$lt_allow_undefined_flag
15366
15367
 
15368
no_undefined_flag=$lt_no_undefined_flag
15369
15370
 
15371
# This must work even if \$libdir does not exist
15372
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15373
15374
 
15375
# during linking.  This must work even if \$libdir does not exist.
15376
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15377
15378
 
15379
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15380
15381
 
15382
# DIR into the resulting binary.
15383
hardcode_direct=$hardcode_direct
15384
15385
 
15386
# DIR into the resulting binary and the resulting library dependency is
15387
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15388
# library is relocated.
15389
hardcode_direct_absolute=$hardcode_direct_absolute
15390
15391
 
15392
# into the resulting binary.
15393
hardcode_minus_L=$hardcode_minus_L
15394
15395
 
15396
# into the resulting binary.
15397
hardcode_shlibpath_var=$hardcode_shlibpath_var
15398
15399
 
15400
# into the library and all subsequent libraries and executables linked
15401
# against it.
15402
hardcode_automatic=$hardcode_automatic
15403
15404
 
15405
# to runtime path list.
15406
inherit_rpath=$inherit_rpath
15407
15408
 
15409
link_all_deplibs=$link_all_deplibs
15410
15411
 
15412
fix_srcfile_path=$lt_fix_srcfile_path
15413
15414
 
15415
always_export_symbols=$always_export_symbols
15416
15417
 
15418
export_symbols_cmds=$lt_export_symbols_cmds
15419
15420
 
15421
exclude_expsyms=$lt_exclude_expsyms
15422
15423
 
15424
include_expsyms=$lt_include_expsyms
15425
15426
 
15427
prelink_cmds=$lt_prelink_cmds
15428
15429
 
15430
file_list_spec=$lt_file_list_spec
15431
15432
 
15433
hardcode_action=$hardcode_action
15434
15435
 
15436
15437
 
15438
15439
 
15440
  aix3*)
15441
    cat <<\_LT_EOF >> "$cfgfile"
15442
# AIX sometimes has problems with the GCC collect2 program.  For some
15443
# reason, if we set the COLLECT_NAMES environment variable, the problems
15444
# vanish in a puff of smoke.
15445
if test "X${COLLECT_NAMES+set}" != Xset; then
15446
  COLLECT_NAMES=
15447
  export COLLECT_NAMES
15448
fi
15449
_LT_EOF
15450
    ;;
15451
  esac
15452
15453
 
15454
 
15455
15456
 
15457
 
15458
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15459
  # text mode, it properly converts lines to CR/LF.  This bash problem
15460
  # is reportedly fixed, but why not run on old versions too?
15461
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15462
    || (rm -f "$cfgfile"; exit 1)
15463
15464
 
15465
  yes)
15466
    cat << \_LT_EOF >> "$cfgfile"
15467
15468
 
15469
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15470
# otherwise set result to NONDIR_REPLACEMENT.
15471
func_dirname ()
15472
{
15473
  case ${1} in
15474
    */*) func_dirname_result="${1%/*}${2}" ;;
15475
    *  ) func_dirname_result="${3}" ;;
15476
  esac
15477
}
15478
15479
 
15480
func_basename ()
15481
{
15482
  func_basename_result="${1##*/}"
15483
}
15484
15485
 
15486
# perform func_basename and func_dirname in a single function
15487
# call:
15488
#   dirname:  Compute the dirname of FILE.  If nonempty,
15489
#             add APPEND to the result, otherwise set result
15490
#             to NONDIR_REPLACEMENT.
15491
#             value returned in "$func_dirname_result"
15492
#   basename: Compute filename of FILE.
15493
#             value retuned in "$func_basename_result"
15494
# Implementation must be kept synchronized with func_dirname
15495
# and func_basename. For efficiency, we do not delegate to
15496
# those functions but instead duplicate the functionality here.
15497
func_dirname_and_basename ()
15498
{
15499
  case ${1} in
15500
    */*) func_dirname_result="${1%/*}${2}" ;;
15501
    *  ) func_dirname_result="${3}" ;;
15502
  esac
15503
  func_basename_result="${1##*/}"
15504
}
15505
15506
 
15507
# strip PREFIX and SUFFIX off of NAME.
15508
# PREFIX and SUFFIX must not contain globbing or regex special
15509
# characters, hashes, percent signs, but SUFFIX may contain a leading
15510
# dot (in which case that matches only a dot).
15511
func_stripname ()
15512
{
15513
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15514
  # positional parameters, so assign one to ordinary parameter first.
15515
  func_stripname_result=${3}
15516
  func_stripname_result=${func_stripname_result#"${1}"}
15517
  func_stripname_result=${func_stripname_result%"${2}"}
15518
}
15519
15520
 
15521
func_opt_split ()
15522
{
15523
  func_opt_split_opt=${1%%=*}
15524
  func_opt_split_arg=${1#*=}
15525
}
15526
15527
 
15528
func_lo2o ()
15529
{
15530
  case ${1} in
15531
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15532
    *)    func_lo2o_result=${1} ;;
15533
  esac
15534
}
15535
15536
 
15537
func_xform ()
15538
{
15539
  func_xform_result=${1%.*}.lo
15540
}
15541
15542
 
15543
func_arith ()
15544
{
15545
  func_arith_result=$(( $* ))
15546
}
15547
15548
 
15549
# STRING may not start with a hyphen.
15550
func_len ()
15551
{
15552
  func_len_result=${#1}
15553
}
15554
15555
 
15556
    ;;
15557
  *) # Bourne compatible functions.
15558
    cat << \_LT_EOF >> "$cfgfile"
15559
15560
 
15561
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15562
# otherwise set result to NONDIR_REPLACEMENT.
15563
func_dirname ()
15564
{
15565
  # Extract subdirectory from the argument.
15566
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15567
  if test "X$func_dirname_result" = "X${1}"; then
15568
    func_dirname_result="${3}"
15569
  else
15570
    func_dirname_result="$func_dirname_result${2}"
15571
  fi
15572
}
15573
15574
 
15575
func_basename ()
15576
{
15577
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15578
}
15579
15580
 
15581
 
15582
# strip PREFIX and SUFFIX off of NAME.
15583
# PREFIX and SUFFIX must not contain globbing or regex special
15584
# characters, hashes, percent signs, but SUFFIX may contain a leading
15585
# dot (in which case that matches only a dot).
15586
# func_strip_suffix prefix name
15587
func_stripname ()
15588
{
15589
  case ${2} in
15590
    .*) func_stripname_result=`$ECHO "X${3}" \
15591
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15592
    *)  func_stripname_result=`$ECHO "X${3}" \
15593
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15594
  esac
15595
}
15596
15597
 
15598
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15599
my_sed_long_arg='1s/^-[^=]*=//'
15600
15601
 
15602
func_opt_split ()
15603
{
15604
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15605
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15606
}
15607
15608
 
15609
func_lo2o ()
15610
{
15611
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15612
}
15613
15614
 
15615
func_xform ()
15616
{
15617
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15618
}
15619
15620
 
15621
func_arith ()
15622
{
15623
  func_arith_result=`expr "$@"`
15624
}
15625
15626
 
15627
# STRING may not start with a hyphen.
15628
func_len ()
15629
{
15630
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15631
}
15632
15633
 
15634
esac
15635
15636
 
15637
  yes)
15638
    cat << \_LT_EOF >> "$cfgfile"
15639
15640
 
15641
# Append VALUE to the end of shell variable VAR.
15642
func_append ()
15643
{
15644
  eval "$1+=\$2"
15645
}
15646
_LT_EOF
15647
    ;;
15648
  *)
15649
    cat << \_LT_EOF >> "$cfgfile"
15650
15651
 
15652
# Append VALUE to the end of shell variable VAR.
15653
func_append ()
15654
{
15655
  eval "$1=\$$1\$2"
15656
}
15657
15658
 
15659
    ;;
15660
  esac
15661
15662
 
15663
 
15664
    || (rm -f "$cfgfile"; exit 1)
15665
15666
 
15667
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15668
  chmod +x "$ofile"
15669
15670
 
15671
    "Makefile":F) if test -n "$CONFIG_FILES"; then
15672
  unset ac_file
15673
  . ${newlib_basedir}/../config-ml.in
15674
fi ;;
15675
15676
 
15677
done # for ac_tag
15678
15679
 
15680
 
15681
_ACEOF
15682
chmod +x $CONFIG_STATUS
15683
ac_clean_files=$ac_clean_files_save
15684
15685
 
15686
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15687
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15688
   { (exit 1); exit 1; }; }
15689
15690
 
15691
 
15692
# config.status does its own redirection, appending to config.log.
15693
# Unfortunately, on DOS this fails, as config.log is still kept open
15694
# by configure, so config.status won't be able to write to it; its
15695
# output is simply discarded.  So we exec the FD to /dev/null,
15696
# effectively closing config.log, so it can be properly (re)opened and
15697
# appended to by config.status.  When coming back to configure, we
15698
# need to make the FD available again.
15699
if test "$no_create" != yes; then
15700
  ac_cs_success=:
15701
  ac_config_status_args=
15702
  test "$silent" = yes &&
15703
    ac_config_status_args="$ac_config_status_args --quiet"
15704
  exec 5>/dev/null
15705
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15706
  exec 5>>config.log
15707
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15708
  # would make configure fail if this is the last instruction.
15709
  $ac_cs_success || { (exit 1); exit 1; }
15710
fi
15711
15712
 
15713
# CONFIG_SUBDIRS section.
15714
#
15715
if test "$no_recursion" != yes; then
15716
15717
 
15718
  # so they do not pile up.
15719
  ac_sub_configure_args=
15720
  ac_prev=
15721
  eval "set x $ac_configure_args"
15722
  shift
15723
  for ac_arg
15724
  do
15725
    if test -n "$ac_prev"; then
15726
      ac_prev=
15727
      continue
15728
    fi
15729
    case $ac_arg in
15730
    -cache-file | --cache-file | --cache-fil | --cache-fi \
15731
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15732
      ac_prev=cache_file ;;
15733
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15734
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15735
    | --c=*)
15736
      ;;
15737
    --config-cache | -C)
15738
      ;;
15739
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15740
      ac_prev=srcdir ;;
15741
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15742
      ;;
15743
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15744
      ac_prev=prefix ;;
15745
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15746
      ;;
15747
    --disable-option-checking)
15748
      ;;
15749
    *)
15750
      case $ac_arg in
15751
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15752
      esac
15753
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
15754
    esac
15755
  done
15756
15757
 
15758
  # in subdir configurations.
15759
  ac_arg="--prefix=$prefix"
15760
  case $ac_arg in
15761
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15762
  esac
15763
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15764
15765
 
15766
  if test "$silent" = yes; then
15767
    ac_sub_configure_args="--silent $ac_sub_configure_args"
15768
  fi
15769
15770
 
15771
  # different subdirs can have different --enable and --with options.
15772
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15773
15774
 
15775
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15776
15777
 
15778
    # parts of a large source tree are present.
15779
    test -d "$srcdir/$ac_dir" || continue
15780
15781
 
15782
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
15783
    $as_echo "$ac_msg" >&6
15784
    { as_dir="$ac_dir"
15785
  case $as_dir in #(
15786
  -*) as_dir=./$as_dir;;
15787
  esac
15788
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15789
    as_dirs=
15790
    while :; do
15791
      case $as_dir in #(
15792
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15793
      *) as_qdir=$as_dir;;
15794
      esac
15795
      as_dirs="'$as_qdir' $as_dirs"
15796
      as_dir=`$as_dirname -- "$as_dir" ||
15797
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15798
         X"$as_dir" : 'X\(//\)[^/]' \| \
15799
         X"$as_dir" : 'X\(//\)$' \| \
15800
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15801
$as_echo X"$as_dir" |
15802
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15803
            s//\1/
15804
            q
15805
          }
15806
          /^X\(\/\/\)[^/].*/{
15807
            s//\1/
15808
            q
15809
          }
15810
          /^X\(\/\/\)$/{
15811
            s//\1/
15812
            q
15813
          }
15814
          /^X\(\/\).*/{
15815
            s//\1/
15816
            q
15817
          }
15818
          s/.*/./; q'`
15819
      test -d "$as_dir" && break
15820
    done
15821
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15822
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15823
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15824
   { (exit 1); exit 1; }; }; }
15825
    ac_builddir=.
15826
15827
 
15828
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15829
*)
15830
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15831
  # A ".." for each directory in $ac_dir_suffix.
15832
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15833
  case $ac_top_builddir_sub in
15834
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15835
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15836
  esac ;;
15837
esac
15838
ac_abs_top_builddir=$ac_pwd
15839
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15840
# for backward compatibility:
15841
ac_top_builddir=$ac_top_build_prefix
15842
15843
 
15844
  .)  # We are building in place.
15845
    ac_srcdir=.
15846
    ac_top_srcdir=$ac_top_builddir_sub
15847
    ac_abs_top_srcdir=$ac_pwd ;;
15848
  [\\/]* | ?:[\\/]* )  # Absolute name.
15849
    ac_srcdir=$srcdir$ac_dir_suffix;
15850
    ac_top_srcdir=$srcdir
15851
    ac_abs_top_srcdir=$srcdir ;;
15852
  *) # Relative name.
15853
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15854
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15855
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15856
esac
15857
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15858
15859
 
15860
 
15861
15862
 
15863
    if test -f "$ac_srcdir/configure.gnu"; then
15864
      ac_sub_configure=$ac_srcdir/configure.gnu
15865
    elif test -f "$ac_srcdir/configure"; then
15866
      ac_sub_configure=$ac_srcdir/configure
15867
    elif test -f "$ac_srcdir/configure.in"; then
15868
      # This should be Cygnus configure.
15869
      ac_sub_configure=$ac_aux_dir/configure
15870
    else
15871
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15872
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15873
      ac_sub_configure=
15874
    fi
15875
15876
 
15877
    if test -n "$ac_sub_configure"; then
15878
      # Make the cache file name correct relative to the subdirectory.
15879
      case $cache_file in
15880
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15881
      *) # Relative name.
15882
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15883
      esac
15884
15885
 
15886
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15887
      # The eval makes quoting arguments work.
15888
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15889
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15890
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15891
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15892
   { (exit 1); exit 1; }; }
15893
    fi
15894
15895
 
15896
  done
15897
fi
15898
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15899
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15900
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15901
fi
15902
15903
 

powered by: WebSVN 2.1.0

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