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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libm/] [configure] - Blame information for rev 451

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="libm.texinfo"
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
LIBM_MACHINE_LIB
793
subdirs
794
CPP
795
OTOOL64
796
OTOOL
797
LIPO
798
NMEDIT
799
DSYMUTIL
800
lt_ECHO
801
LN_S
802
NM
803
ac_ct_DUMPBIN
804
DUMPBIN
805
LD
806
FGREP
807
EGREP
808
GREP
809
EXEEXT
810
ac_ct_CC
811
CPPFLAGS
812
CFLAGS
813
LIBTOOL
814
OBJDUMP
815
DLLTOOL
816
SED
817
sys_dir
818
machine_dir
819
libm_machine_dir
820
lpfx
821
aext
822
oext
823
OBJEXT
824
USE_LIBTOOL_FALSE
825
USE_LIBTOOL_TRUE
826
ELIX_LEVEL_4_FALSE
827
ELIX_LEVEL_4_TRUE
828
ELIX_LEVEL_3_FALSE
829
ELIX_LEVEL_3_TRUE
830
ELIX_LEVEL_2_FALSE
831
ELIX_LEVEL_2_TRUE
832
ELIX_LEVEL_1_FALSE
833
ELIX_LEVEL_1_TRUE
834
ELIX_LEVEL_0_FALSE
835
ELIX_LEVEL_0_TRUE
836
LDFLAGS
837
NEWLIB_CFLAGS
838
CCASFLAGS
839
CCAS
840
MAINT
841
MAINTAINER_MODE_FALSE
842
MAINTAINER_MODE_TRUE
843
READELF
844
RANLIB
845
AR
846
AS
847
am__fastdepCC_FALSE
848
am__fastdepCC_TRUE
849
CCDEPMODE
850
AMDEPBACKSLASH
851
AMDEP_FALSE
852
AMDEP_TRUE
853
am__quote
854
am__include
855
DEPDIR
856
CC
857
am__untar
858
am__tar
859
AMTAR
860
am__leading_dot
861
SET_MAKE
862
AWK
863
mkdir_p
864
MKDIR_P
865
INSTALL_STRIP_PROGRAM
866
STRIP
867
install_sh
868
MAKEINFO
869
AUTOHEADER
870
AUTOMAKE
871
AUTOCONF
872
ACLOCAL
873
VERSION
874
PACKAGE
875
CYGPATH_W
876
am__isrc
877
INSTALL_DATA
878
INSTALL_SCRIPT
879
INSTALL_PROGRAM
880
host_os
881
host_vendor
882
host_cpu
883
host
884
build_os
885
build_vendor
886
build_cpu
887
build
888
newlib_basedir
889
MAY_SUPPLY_SYSCALLS_FALSE
890
MAY_SUPPLY_SYSCALLS_TRUE
891
HAVE_LONG_DOUBLE_FALSE
892
HAVE_LONG_DOUBLE_TRUE
893
NEWLIB_HW_FP_FALSE
894
NEWLIB_HW_FP_TRUE
895
target_alias
896
host_alias
897
build_alias
898
LIBS
899
ECHO_T
900
ECHO_N
901
ECHO_C
902
DEFS
903
mandir
904
localedir
905
libdir
906
psdir
907
pdfdir
908
dvidir
909
htmldir
910
infodir
911
docdir
912
oldincludedir
913
includedir
914
localstatedir
915
sharedstatedir
916
sysconfdir
917
datadir
918
datarootdir
919
libexecdir
920
sbindir
921
bindir
922
program_transform_name
923
prefix
924
exec_prefix
925
PACKAGE_BUGREPORT
926
PACKAGE_STRING
927
PACKAGE_VERSION
928
PACKAGE_TARNAME
929
PACKAGE_NAME
930
PATH_SEPARATOR
931
SHELL'
932
ac_subst_files=''
933
ac_user_opts='
934
enable_option_checking
935
enable_newlib_hw_fp
936
enable_multilib
937
enable_target_optspace
938
enable_malloc_debugging
939
enable_newlib_multithread
940
enable_newlib_iconv
941
enable_newlib_elix_level
942
enable_newlib_io_float
943
enable_newlib_supplied_syscalls
944
enable_dependency_tracking
945
enable_maintainer_mode
946
enable_shared
947
enable_static
948
with_pic
949
enable_fast_install
950
with_gnu_ld
951
enable_libtool_lock
952
'
953
      ac_precious_vars='build_alias
954
host_alias
955
target_alias
956
CCAS
957
CCASFLAGS
958
CC
959
CFLAGS
960
LDFLAGS
961
LIBS
962
CPPFLAGS
963
CPP'
964
ac_subdirs_all='machine'
965
 
966
# Initialize some variables set by options.
967
ac_init_help=
968
ac_init_version=false
969
ac_unrecognized_opts=
970
ac_unrecognized_sep=
971
# The variables have the same names as the options, with
972
# dashes changed to underlines.
973
cache_file=/dev/null
974
exec_prefix=NONE
975
no_create=
976
no_recursion=
977
prefix=NONE
978
program_prefix=NONE
979
program_suffix=NONE
980
program_transform_name=s,x,x,
981
silent=
982
site=
983
srcdir=
984
verbose=
985
x_includes=NONE
986
x_libraries=NONE
987
 
988
# Installation directory options.
989
# These are left unexpanded so users can "make install exec_prefix=/foo"
990
# and all the variables that are supposed to be based on exec_prefix
991
# by default will actually change.
992
# Use braces instead of parens because sh, perl, etc. also accept them.
993
# (The list follows the same order as the GNU Coding Standards.)
994
bindir='${exec_prefix}/bin'
995
sbindir='${exec_prefix}/sbin'
996
libexecdir='${exec_prefix}/libexec'
997
datarootdir='${prefix}/share'
998
datadir='${datarootdir}'
999
sysconfdir='${prefix}/etc'
1000
sharedstatedir='${prefix}/com'
1001
localstatedir='${prefix}/var'
1002
includedir='${prefix}/include'
1003
oldincludedir='/usr/include'
1004
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1005
infodir='${datarootdir}/info'
1006
htmldir='${docdir}'
1007
dvidir='${docdir}'
1008
pdfdir='${docdir}'
1009
psdir='${docdir}'
1010
libdir='${exec_prefix}/lib'
1011
localedir='${datarootdir}/locale'
1012
mandir='${datarootdir}/man'
1013
 
1014
ac_prev=
1015
ac_dashdash=
1016
for ac_option
1017
do
1018
  # If the previous option needs an argument, assign it.
1019
  if test -n "$ac_prev"; then
1020
    eval $ac_prev=\$ac_option
1021
    ac_prev=
1022
    continue
1023
  fi
1024
 
1025
  case $ac_option in
1026
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027
  *)    ac_optarg=yes ;;
1028
  esac
1029
 
1030
  # Accept the important Cygnus configure options, so we can diagnose typos.
1031
 
1032
  case $ac_dashdash$ac_option in
1033
  --)
1034
    ac_dashdash=yes ;;
1035
 
1036
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1037
    ac_prev=bindir ;;
1038
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1039
    bindir=$ac_optarg ;;
1040
 
1041
  -build | --build | --buil | --bui | --bu)
1042
    ac_prev=build_alias ;;
1043
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1044
    build_alias=$ac_optarg ;;
1045
 
1046
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1047
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1048
    ac_prev=cache_file ;;
1049
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1050
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1051
    cache_file=$ac_optarg ;;
1052
 
1053
  --config-cache | -C)
1054
    cache_file=config.cache ;;
1055
 
1056
  -datadir | --datadir | --datadi | --datad)
1057
    ac_prev=datadir ;;
1058
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1059
    datadir=$ac_optarg ;;
1060
 
1061
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1062
  | --dataroo | --dataro | --datar)
1063
    ac_prev=datarootdir ;;
1064
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1065
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1066
    datarootdir=$ac_optarg ;;
1067
 
1068
  -disable-* | --disable-*)
1069
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1070
    # Reject names that are not valid shell variable names.
1071
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1073
   { (exit 1); exit 1; }; }
1074
    ac_useropt_orig=$ac_useropt
1075
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076
    case $ac_user_opts in
1077
      *"
1078
"enable_$ac_useropt"
1079
"*) ;;
1080
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081
         ac_unrecognized_sep=', ';;
1082
    esac
1083
    eval enable_$ac_useropt=no ;;
1084
 
1085
  -docdir | --docdir | --docdi | --doc | --do)
1086
    ac_prev=docdir ;;
1087
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088
    docdir=$ac_optarg ;;
1089
 
1090
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091
    ac_prev=dvidir ;;
1092
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093
    dvidir=$ac_optarg ;;
1094
 
1095
  -enable-* | --enable-*)
1096
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097
    # Reject names that are not valid shell variable names.
1098
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1100
   { (exit 1); exit 1; }; }
1101
    ac_useropt_orig=$ac_useropt
1102
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103
    case $ac_user_opts in
1104
      *"
1105
"enable_$ac_useropt"
1106
"*) ;;
1107
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1108
         ac_unrecognized_sep=', ';;
1109
    esac
1110
    eval enable_$ac_useropt=\$ac_optarg ;;
1111
 
1112
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1113
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1114
  | --exec | --exe | --ex)
1115
    ac_prev=exec_prefix ;;
1116
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1117
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1118
  | --exec=* | --exe=* | --ex=*)
1119
    exec_prefix=$ac_optarg ;;
1120
 
1121
  -gas | --gas | --ga | --g)
1122
    # Obsolete; use --with-gas.
1123
    with_gas=yes ;;
1124
 
1125
  -help | --help | --hel | --he | -h)
1126
    ac_init_help=long ;;
1127
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1128
    ac_init_help=recursive ;;
1129
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1130
    ac_init_help=short ;;
1131
 
1132
  -host | --host | --hos | --ho)
1133
    ac_prev=host_alias ;;
1134
  -host=* | --host=* | --hos=* | --ho=*)
1135
    host_alias=$ac_optarg ;;
1136
 
1137
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1138
    ac_prev=htmldir ;;
1139
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1140
  | --ht=*)
1141
    htmldir=$ac_optarg ;;
1142
 
1143
  -includedir | --includedir | --includedi | --included | --include \
1144
  | --includ | --inclu | --incl | --inc)
1145
    ac_prev=includedir ;;
1146
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1147
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1148
    includedir=$ac_optarg ;;
1149
 
1150
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1151
    ac_prev=infodir ;;
1152
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1153
    infodir=$ac_optarg ;;
1154
 
1155
  -libdir | --libdir | --libdi | --libd)
1156
    ac_prev=libdir ;;
1157
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1158
    libdir=$ac_optarg ;;
1159
 
1160
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1161
  | --libexe | --libex | --libe)
1162
    ac_prev=libexecdir ;;
1163
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1164
  | --libexe=* | --libex=* | --libe=*)
1165
    libexecdir=$ac_optarg ;;
1166
 
1167
  -localedir | --localedir | --localedi | --localed | --locale)
1168
    ac_prev=localedir ;;
1169
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1170
    localedir=$ac_optarg ;;
1171
 
1172
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1173
  | --localstate | --localstat | --localsta | --localst | --locals)
1174
    ac_prev=localstatedir ;;
1175
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1176
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1177
    localstatedir=$ac_optarg ;;
1178
 
1179
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1180
    ac_prev=mandir ;;
1181
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1182
    mandir=$ac_optarg ;;
1183
 
1184
  -nfp | --nfp | --nf)
1185
    # Obsolete; use --without-fp.
1186
    with_fp=no ;;
1187
 
1188
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1189
  | --no-cr | --no-c | -n)
1190
    no_create=yes ;;
1191
 
1192
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1193
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194
    no_recursion=yes ;;
1195
 
1196
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1197
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1198
  | --oldin | --oldi | --old | --ol | --o)
1199
    ac_prev=oldincludedir ;;
1200
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1201
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1202
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1203
    oldincludedir=$ac_optarg ;;
1204
 
1205
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1206
    ac_prev=prefix ;;
1207
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1208
    prefix=$ac_optarg ;;
1209
 
1210
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1211
  | --program-pre | --program-pr | --program-p)
1212
    ac_prev=program_prefix ;;
1213
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1214
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1215
    program_prefix=$ac_optarg ;;
1216
 
1217
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1218
  | --program-suf | --program-su | --program-s)
1219
    ac_prev=program_suffix ;;
1220
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1221
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1222
    program_suffix=$ac_optarg ;;
1223
 
1224
  -program-transform-name | --program-transform-name \
1225
  | --program-transform-nam | --program-transform-na \
1226
  | --program-transform-n | --program-transform- \
1227
  | --program-transform | --program-transfor \
1228
  | --program-transfo | --program-transf \
1229
  | --program-trans | --program-tran \
1230
  | --progr-tra | --program-tr | --program-t)
1231
    ac_prev=program_transform_name ;;
1232
  -program-transform-name=* | --program-transform-name=* \
1233
  | --program-transform-nam=* | --program-transform-na=* \
1234
  | --program-transform-n=* | --program-transform-=* \
1235
  | --program-transform=* | --program-transfor=* \
1236
  | --program-transfo=* | --program-transf=* \
1237
  | --program-trans=* | --program-tran=* \
1238
  | --progr-tra=* | --program-tr=* | --program-t=*)
1239
    program_transform_name=$ac_optarg ;;
1240
 
1241
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1242
    ac_prev=pdfdir ;;
1243
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1244
    pdfdir=$ac_optarg ;;
1245
 
1246
  -psdir | --psdir | --psdi | --psd | --ps)
1247
    ac_prev=psdir ;;
1248
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249
    psdir=$ac_optarg ;;
1250
 
1251
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252
  | -silent | --silent | --silen | --sile | --sil)
1253
    silent=yes ;;
1254
 
1255
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1256
    ac_prev=sbindir ;;
1257
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1258
  | --sbi=* | --sb=*)
1259
    sbindir=$ac_optarg ;;
1260
 
1261
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1262
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1263
  | --sharedst | --shareds | --shared | --share | --shar \
1264
  | --sha | --sh)
1265
    ac_prev=sharedstatedir ;;
1266
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1267
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1268
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1269
  | --sha=* | --sh=*)
1270
    sharedstatedir=$ac_optarg ;;
1271
 
1272
  -site | --site | --sit)
1273
    ac_prev=site ;;
1274
  -site=* | --site=* | --sit=*)
1275
    site=$ac_optarg ;;
1276
 
1277
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1278
    ac_prev=srcdir ;;
1279
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1280
    srcdir=$ac_optarg ;;
1281
 
1282
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1283
  | --syscon | --sysco | --sysc | --sys | --sy)
1284
    ac_prev=sysconfdir ;;
1285
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1286
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1287
    sysconfdir=$ac_optarg ;;
1288
 
1289
  -target | --target | --targe | --targ | --tar | --ta | --t)
1290
    ac_prev=target_alias ;;
1291
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1292
    target_alias=$ac_optarg ;;
1293
 
1294
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1295
    verbose=yes ;;
1296
 
1297
  -version | --version | --versio | --versi | --vers | -V)
1298
    ac_init_version=: ;;
1299
 
1300
  -with-* | --with-*)
1301
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1302
    # Reject names that are not valid shell variable names.
1303
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1305
   { (exit 1); exit 1; }; }
1306
    ac_useropt_orig=$ac_useropt
1307
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308
    case $ac_user_opts in
1309
      *"
1310
"with_$ac_useropt"
1311
"*) ;;
1312
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1313
         ac_unrecognized_sep=', ';;
1314
    esac
1315
    eval with_$ac_useropt=\$ac_optarg ;;
1316
 
1317
  -without-* | --without-*)
1318
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1319
    # Reject names that are not valid shell variable names.
1320
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1322
   { (exit 1); exit 1; }; }
1323
    ac_useropt_orig=$ac_useropt
1324
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325
    case $ac_user_opts in
1326
      *"
1327
"with_$ac_useropt"
1328
"*) ;;
1329
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1330
         ac_unrecognized_sep=', ';;
1331
    esac
1332
    eval with_$ac_useropt=no ;;
1333
 
1334
  --x)
1335
    # Obsolete; use --with-x.
1336
    with_x=yes ;;
1337
 
1338
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1339
  | --x-incl | --x-inc | --x-in | --x-i)
1340
    ac_prev=x_includes ;;
1341
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1342
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1343
    x_includes=$ac_optarg ;;
1344
 
1345
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1346
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1347
    ac_prev=x_libraries ;;
1348
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1349
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1350
    x_libraries=$ac_optarg ;;
1351
 
1352
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1353
Try \`$0 --help' for more information." >&2
1354
   { (exit 1); exit 1; }; }
1355
    ;;
1356
 
1357
  *=*)
1358
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359
    # Reject names that are not valid shell variable names.
1360
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1361
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1362
   { (exit 1); exit 1; }; }
1363
    eval $ac_envvar=\$ac_optarg
1364
    export $ac_envvar ;;
1365
 
1366
  *)
1367
    # FIXME: should be removed in autoconf 3.0.
1368
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1369
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1370
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1371
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1372
    ;;
1373
 
1374
  esac
1375
done
1376
 
1377
if test -n "$ac_prev"; then
1378
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1379
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1380
   { (exit 1); exit 1; }; }
1381
fi
1382
 
1383
if test -n "$ac_unrecognized_opts"; then
1384
  case $enable_option_checking in
1385
    no) ;;
1386
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1387
   { (exit 1); exit 1; }; } ;;
1388
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1389
  esac
1390
fi
1391
 
1392
# Check all directory arguments for consistency.
1393
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1394
                datadir sysconfdir sharedstatedir localstatedir includedir \
1395
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1396
                libdir localedir mandir
1397
do
1398
  eval ac_val=\$$ac_var
1399
  # Remove trailing slashes.
1400
  case $ac_val in
1401
    */ )
1402
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1403
      eval $ac_var=\$ac_val;;
1404
  esac
1405
  # Be sure to have absolute directory names.
1406
  case $ac_val in
1407
    [\\/$]* | ?:[\\/]* )  continue;;
1408
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1409
  esac
1410
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1411
   { (exit 1); exit 1; }; }
1412
done
1413
 
1414
# There might be people who depend on the old broken behavior: `$host'
1415
# used to hold the argument of --host etc.
1416
# FIXME: To remove some day.
1417
build=$build_alias
1418
host=$host_alias
1419
target=$target_alias
1420
 
1421
# FIXME: To remove some day.
1422
if test "x$host_alias" != x; then
1423
  if test "x$build_alias" = x; then
1424
    cross_compiling=maybe
1425
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1426
    If a cross compiler is detected then cross compile mode will be used." >&2
1427
  elif test "x$build_alias" != "x$host_alias"; then
1428
    cross_compiling=yes
1429
  fi
1430
fi
1431
 
1432
ac_tool_prefix=
1433
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1434
 
1435
test "$silent" = yes && exec 6>/dev/null
1436
 
1437
 
1438
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439
ac_ls_di=`ls -di .` &&
1440
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1442
   { (exit 1); exit 1; }; }
1443
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1445
   { (exit 1); exit 1; }; }
1446
 
1447
 
1448
# Find the source files, if location was not specified.
1449
if test -z "$srcdir"; then
1450
  ac_srcdir_defaulted=yes
1451
  # Try the directory containing this script, then the parent directory.
1452
  ac_confdir=`$as_dirname -- "$as_myself" ||
1453
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454
         X"$as_myself" : 'X\(//\)[^/]' \| \
1455
         X"$as_myself" : 'X\(//\)$' \| \
1456
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457
$as_echo X"$as_myself" |
1458
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459
            s//\1/
1460
            q
1461
          }
1462
          /^X\(\/\/\)[^/].*/{
1463
            s//\1/
1464
            q
1465
          }
1466
          /^X\(\/\/\)$/{
1467
            s//\1/
1468
            q
1469
          }
1470
          /^X\(\/\).*/{
1471
            s//\1/
1472
            q
1473
          }
1474
          s/.*/./; q'`
1475
  srcdir=$ac_confdir
1476
  if test ! -r "$srcdir/$ac_unique_file"; then
1477
    srcdir=..
1478
  fi
1479
else
1480
  ac_srcdir_defaulted=no
1481
fi
1482
if test ! -r "$srcdir/$ac_unique_file"; then
1483
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1485
   { (exit 1); exit 1; }; }
1486
fi
1487
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1488
ac_abs_confdir=`(
1489
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1490
   { (exit 1); exit 1; }; }
1491
        pwd)`
1492
# When building in place, set srcdir=.
1493
if test "$ac_abs_confdir" = "$ac_pwd"; then
1494
  srcdir=.
1495
fi
1496
# Remove unnecessary trailing slashes from srcdir.
1497
# Double slashes in file names in object file debugging info
1498
# mess up M-x gdb in Emacs.
1499
case $srcdir in
1500
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1501
esac
1502
for ac_var in $ac_precious_vars; do
1503
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1504
  eval ac_env_${ac_var}_value=\$${ac_var}
1505
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1506
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1507
done
1508
 
1509
#
1510
# Report the --help message.
1511
#
1512
if test "$ac_init_help" = "long"; then
1513
  # Omit some internal or obsolete options to make the list less imposing.
1514
  # This message is too long to be a string in the A/UX 3.1 sh.
1515
  cat <<_ACEOF
1516
\`configure' configures newlib 1.18.0 to adapt to many kinds of systems.
1517
 
1518
Usage: $0 [OPTION]... [VAR=VALUE]...
1519
 
1520
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1521
VAR=VALUE.  See below for descriptions of some of the useful variables.
1522
 
1523
Defaults for the options are specified in brackets.
1524
 
1525
Configuration:
1526
  -h, --help              display this help and exit
1527
      --help=short        display options specific to this package
1528
      --help=recursive    display the short help of all the included packages
1529
  -V, --version           display version information and exit
1530
  -q, --quiet, --silent   do not print \`checking...' messages
1531
      --cache-file=FILE   cache test results in FILE [disabled]
1532
  -C, --config-cache      alias for \`--cache-file=config.cache'
1533
  -n, --no-create         do not create output files
1534
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1535
 
1536
Installation directories:
1537
  --prefix=PREFIX         install architecture-independent files in PREFIX
1538
                          [$ac_default_prefix]
1539
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1540
                          [PREFIX]
1541
 
1542
By default, \`make install' will install all the files in
1543
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1544
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1545
for instance \`--prefix=\$HOME'.
1546
 
1547
For better control, use the options below.
1548
 
1549
Fine tuning of the installation directories:
1550
  --bindir=DIR            user executables [EPREFIX/bin]
1551
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1552
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1553
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1554
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1555
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1556
  --libdir=DIR            object code libraries [EPREFIX/lib]
1557
  --includedir=DIR        C header files [PREFIX/include]
1558
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1559
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1560
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1561
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1562
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1563
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1564
  --docdir=DIR            documentation root [DATAROOTDIR/doc/newlib]
1565
  --htmldir=DIR           html documentation [DOCDIR]
1566
  --dvidir=DIR            dvi documentation [DOCDIR]
1567
  --pdfdir=DIR            pdf documentation [DOCDIR]
1568
  --psdir=DIR             ps documentation [DOCDIR]
1569
_ACEOF
1570
 
1571
  cat <<\_ACEOF
1572
 
1573
Program names:
1574
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1575
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1576
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1577
 
1578
System types:
1579
  --build=BUILD     configure for building on BUILD [guessed]
1580
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1581
_ACEOF
1582
fi
1583
 
1584
if test -n "$ac_init_help"; then
1585
  case $ac_init_help in
1586
     short | recursive ) echo "Configuration of newlib 1.18.0:";;
1587
   esac
1588
  cat <<\_ACEOF
1589
 
1590
Optional Features:
1591
  --disable-option-checking  ignore unrecognized --enable/--with options
1592
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1593
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1594
  --enable-newlib-hw-fp    Turn on hardware floating point math
1595
  --enable-multilib         build many library versions (default)
1596
  --enable-target-optspace  optimize for space
1597
  --enable-malloc-debugging indicate malloc debugging requested
1598
  --enable-newlib-multithread        enable support for multiple threads
1599
  --enable-newlib-iconv     enable iconv library support
1600
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1601
  --disable-newlib-io-float disable printf/scanf family float support
1602
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1603
  --disable-dependency-tracking  speeds up one-time build
1604
  --enable-dependency-tracking   do not reject slow dependency extractors
1605
  --enable-maintainer-mode  enable make rules and dependencies not useful
1606
                          (and sometimes confusing) to the casual installer
1607
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1608
  --enable-static[=PKGS]  build static libraries [default=yes]
1609
  --enable-fast-install[=PKGS]
1610
                          optimize for fast installation [default=yes]
1611
  --disable-libtool-lock  avoid locking (might break parallel builds)
1612
 
1613
Optional Packages:
1614
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1615
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1616
  --with-pic              try to use only PIC/non-PIC objects [default=use
1617
                          both]
1618
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1619
 
1620
Some influential environment variables:
1621
  CCAS        assembler compiler command (defaults to CC)
1622
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1623
  CC          C compiler command
1624
  CFLAGS      C compiler flags
1625
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1626
              nonstandard directory 
1627
  LIBS        libraries to pass to the linker, e.g. -l
1628
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1629
              you have headers in a nonstandard directory 
1630
  CPP         C preprocessor
1631
 
1632
Use these variables to override the choices made by `configure' or to help
1633
it to find libraries and programs with nonstandard names/locations.
1634
 
1635
_ACEOF
1636
ac_status=$?
1637
fi
1638
 
1639
if test "$ac_init_help" = "recursive"; then
1640
  # If there are subdirs, report their specific --help.
1641
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642
    test -d "$ac_dir" ||
1643
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644
      continue
1645
    ac_builddir=.
1646
 
1647
case "$ac_dir" in
1648
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649
*)
1650
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1651
  # A ".." for each directory in $ac_dir_suffix.
1652
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1653
  case $ac_top_builddir_sub in
1654
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656
  esac ;;
1657
esac
1658
ac_abs_top_builddir=$ac_pwd
1659
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660
# for backward compatibility:
1661
ac_top_builddir=$ac_top_build_prefix
1662
 
1663
case $srcdir in
1664
  .)  # We are building in place.
1665
    ac_srcdir=.
1666
    ac_top_srcdir=$ac_top_builddir_sub
1667
    ac_abs_top_srcdir=$ac_pwd ;;
1668
  [\\/]* | ?:[\\/]* )  # Absolute name.
1669
    ac_srcdir=$srcdir$ac_dir_suffix;
1670
    ac_top_srcdir=$srcdir
1671
    ac_abs_top_srcdir=$srcdir ;;
1672
  *) # Relative name.
1673
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1675
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1676
esac
1677
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678
 
1679
    cd "$ac_dir" || { ac_status=$?; continue; }
1680
    # Check for guested configure.
1681
    if test -f "$ac_srcdir/configure.gnu"; then
1682
      echo &&
1683
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684
    elif test -f "$ac_srcdir/configure"; then
1685
      echo &&
1686
      $SHELL "$ac_srcdir/configure" --help=recursive
1687
    else
1688
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689
    fi || ac_status=$?
1690
    cd "$ac_pwd" || { ac_status=$?; break; }
1691
  done
1692
fi
1693
 
1694
test -n "$ac_init_help" && exit $ac_status
1695
if $ac_init_version; then
1696
  cat <<\_ACEOF
1697
newlib configure 1.18.0
1698
generated by GNU Autoconf 2.63
1699
 
1700
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1701
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1702
This configure script is free software; the Free Software Foundation
1703
gives unlimited permission to copy, distribute and modify it.
1704
_ACEOF
1705
  exit
1706
fi
1707
cat >config.log <<_ACEOF
1708
This file contains any messages produced by compilers while
1709
running configure, to aid debugging if configure makes a mistake.
1710
 
1711
It was created by newlib $as_me 1.18.0, which was
1712
generated by GNU Autoconf 2.63.  Invocation command line was
1713
 
1714
  $ $0 $@
1715
 
1716
_ACEOF
1717
exec 5>>config.log
1718
{
1719
cat <<_ASUNAME
1720
## --------- ##
1721
## Platform. ##
1722
## --------- ##
1723
 
1724
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1725
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1726
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1727
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1728
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1729
 
1730
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1731
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1732
 
1733
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1734
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1735
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1736
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1737
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1738
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1739
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1740
 
1741
_ASUNAME
1742
 
1743
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744
for as_dir in $PATH
1745
do
1746
  IFS=$as_save_IFS
1747
  test -z "$as_dir" && as_dir=.
1748
  $as_echo "PATH: $as_dir"
1749
done
1750
IFS=$as_save_IFS
1751
 
1752
} >&5
1753
 
1754
cat >&5 <<_ACEOF
1755
 
1756
 
1757
## ----------- ##
1758
## Core tests. ##
1759
## ----------- ##
1760
 
1761
_ACEOF
1762
 
1763
 
1764
# Keep a trace of the command line.
1765
# Strip out --no-create and --no-recursion so they do not pile up.
1766
# Strip out --silent because we don't want to record it for future runs.
1767
# Also quote any args containing shell meta-characters.
1768
# Make two passes to allow for proper duplicate-argument suppression.
1769
ac_configure_args=
1770
ac_configure_args0=
1771
ac_configure_args1=
1772
ac_must_keep_next=false
1773
for ac_pass in 1 2
1774
do
1775
  for ac_arg
1776
  do
1777
    case $ac_arg in
1778
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1779
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1780
    | -silent | --silent | --silen | --sile | --sil)
1781
      continue ;;
1782
    *\'*)
1783
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1784
    esac
1785
    case $ac_pass in
1786
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1787
    2)
1788
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1789
      if test $ac_must_keep_next = true; then
1790
        ac_must_keep_next=false # Got value, back to normal.
1791
      else
1792
        case $ac_arg in
1793
          *=* | --config-cache | -C | -disable-* | --disable-* \
1794
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1795
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1796
          | -with-* | --with-* | -without-* | --without-* | --x)
1797
            case "$ac_configure_args0 " in
1798
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1799
            esac
1800
            ;;
1801
          -* ) ac_must_keep_next=true ;;
1802
        esac
1803
      fi
1804
      ac_configure_args="$ac_configure_args '$ac_arg'"
1805
      ;;
1806
    esac
1807
  done
1808
done
1809
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1810
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1811
 
1812
# When interrupted or exit'd, cleanup temporary files, and complete
1813
# config.log.  We remove comments because anyway the quotes in there
1814
# would cause problems or look ugly.
1815
# WARNING: Use '\'' to represent an apostrophe within the trap.
1816
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1817
trap 'exit_status=$?
1818
  # Save into config.log some information that might help in debugging.
1819
  {
1820
    echo
1821
 
1822
    cat <<\_ASBOX
1823
## ---------------- ##
1824
## Cache variables. ##
1825
## ---------------- ##
1826
_ASBOX
1827
    echo
1828
    # The following way of writing the cache mishandles newlines in values,
1829
(
1830
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1831
    eval ac_val=\$$ac_var
1832
    case $ac_val in #(
1833
    *${as_nl}*)
1834
      case $ac_var in #(
1835
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1836
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1837
      esac
1838
      case $ac_var in #(
1839
      _ | IFS | as_nl) ;; #(
1840
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1841
      *) $as_unset $ac_var ;;
1842
      esac ;;
1843
    esac
1844
  done
1845
  (set) 2>&1 |
1846
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1847
    *${as_nl}ac_space=\ *)
1848
      sed -n \
1849
        "s/'\''/'\''\\\\'\'''\''/g;
1850
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1851
      ;; #(
1852
    *)
1853
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1854
      ;;
1855
    esac |
1856
    sort
1857
)
1858
    echo
1859
 
1860
    cat <<\_ASBOX
1861
## ----------------- ##
1862
## Output variables. ##
1863
## ----------------- ##
1864
_ASBOX
1865
    echo
1866
    for ac_var in $ac_subst_vars
1867
    do
1868
      eval ac_val=\$$ac_var
1869
      case $ac_val in
1870
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1871
      esac
1872
      $as_echo "$ac_var='\''$ac_val'\''"
1873
    done | sort
1874
    echo
1875
 
1876
    if test -n "$ac_subst_files"; then
1877
      cat <<\_ASBOX
1878
## ------------------- ##
1879
## File substitutions. ##
1880
## ------------------- ##
1881
_ASBOX
1882
      echo
1883
      for ac_var in $ac_subst_files
1884
      do
1885
        eval ac_val=\$$ac_var
1886
        case $ac_val in
1887
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1888
        esac
1889
        $as_echo "$ac_var='\''$ac_val'\''"
1890
      done | sort
1891
      echo
1892
    fi
1893
 
1894
    if test -s confdefs.h; then
1895
      cat <<\_ASBOX
1896
## ----------- ##
1897
## confdefs.h. ##
1898
## ----------- ##
1899
_ASBOX
1900
      echo
1901
      cat confdefs.h
1902
      echo
1903
    fi
1904
    test "$ac_signal" != 0 &&
1905
      $as_echo "$as_me: caught signal $ac_signal"
1906
    $as_echo "$as_me: exit $exit_status"
1907
  } >&5
1908
  rm -f core *.core core.conftest.* &&
1909
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1910
    exit $exit_status
1911
' 0
1912
for ac_signal in 1 2 13 15; do
1913
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1914
done
1915
ac_signal=0
1916
 
1917
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1918
rm -f -r conftest* confdefs.h
1919
 
1920
# Predefined preprocessor variables.
1921
 
1922
cat >>confdefs.h <<_ACEOF
1923
#define PACKAGE_NAME "$PACKAGE_NAME"
1924
_ACEOF
1925
 
1926
 
1927
cat >>confdefs.h <<_ACEOF
1928
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1929
_ACEOF
1930
 
1931
 
1932
cat >>confdefs.h <<_ACEOF
1933
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1934
_ACEOF
1935
 
1936
 
1937
cat >>confdefs.h <<_ACEOF
1938
#define PACKAGE_STRING "$PACKAGE_STRING"
1939
_ACEOF
1940
 
1941
 
1942
cat >>confdefs.h <<_ACEOF
1943
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1944
_ACEOF
1945
 
1946
 
1947
# Let the site file select an alternate cache file if it wants to.
1948
# Prefer an explicitly selected file to automatically selected ones.
1949
ac_site_file1=NONE
1950
ac_site_file2=NONE
1951
if test -n "$CONFIG_SITE"; then
1952
  ac_site_file1=$CONFIG_SITE
1953
elif test "x$prefix" != xNONE; then
1954
  ac_site_file1=$prefix/share/config.site
1955
  ac_site_file2=$prefix/etc/config.site
1956
else
1957
  ac_site_file1=$ac_default_prefix/share/config.site
1958
  ac_site_file2=$ac_default_prefix/etc/config.site
1959
fi
1960
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1961
do
1962
  test "x$ac_site_file" = xNONE && continue
1963
  if test -r "$ac_site_file"; then
1964
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1965
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1966
    sed 's/^/| /' "$ac_site_file" >&5
1967
    . "$ac_site_file"
1968
  fi
1969
done
1970
 
1971
if test -r "$cache_file"; then
1972
  # Some versions of bash will fail to source /dev/null (special
1973
  # files actually), so we avoid doing that.
1974
  if test -f "$cache_file"; then
1975
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1976
$as_echo "$as_me: loading cache $cache_file" >&6;}
1977
    case $cache_file in
1978
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1979
      *)                      . "./$cache_file";;
1980
    esac
1981
  fi
1982
else
1983
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1984
$as_echo "$as_me: creating cache $cache_file" >&6;}
1985
  >$cache_file
1986
fi
1987
 
1988
# Check that the precious variables saved in the cache have kept the same
1989
# value.
1990
ac_cache_corrupted=false
1991
for ac_var in $ac_precious_vars; do
1992
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1993
  eval ac_new_set=\$ac_env_${ac_var}_set
1994
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1995
  eval ac_new_val=\$ac_env_${ac_var}_value
1996
  case $ac_old_set,$ac_new_set in
1997
    set,)
1998
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1999
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2000
      ac_cache_corrupted=: ;;
2001
    ,set)
2002
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2003
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2004
      ac_cache_corrupted=: ;;
2005
    ,);;
2006
    *)
2007
      if test "x$ac_old_val" != "x$ac_new_val"; then
2008
        # differences in whitespace do not lead to failure.
2009
        ac_old_val_w=`echo x $ac_old_val`
2010
        ac_new_val_w=`echo x $ac_new_val`
2011
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2012
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2013
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2014
          ac_cache_corrupted=:
2015
        else
2016
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2017
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2018
          eval $ac_var=\$ac_old_val
2019
        fi
2020
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2021
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2022
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2023
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2024
      fi;;
2025
  esac
2026
  # Pass precious variables to config.status.
2027
  if test "$ac_new_set" = set; then
2028
    case $ac_new_val in
2029
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2030
    *) ac_arg=$ac_var=$ac_new_val ;;
2031
    esac
2032
    case " $ac_configure_args " in
2033
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2034
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2035
    esac
2036
  fi
2037
done
2038
if $ac_cache_corrupted; then
2039
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2040
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2041
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2042
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2043
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2044
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2045
   { (exit 1); exit 1; }; }
2046
fi
2047
 
2048
 
2049
 
2050
 
2051
 
2052
 
2053
 
2054
 
2055
 
2056
 
2057
 
2058
 
2059
 
2060
 
2061
 
2062
 
2063
 
2064
 
2065
 
2066
 
2067
 
2068
 
2069
 
2070
 
2071
 
2072
ac_ext=c
2073
ac_cpp='$CPP $CPPFLAGS'
2074
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2075
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2076
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2077
 
2078
 
2079
 
2080
 
2081
# Check whether --enable-newlib_hw_fp was given.
2082
if test "${enable_newlib_hw_fp+set}" = set; then
2083
  enableval=$enable_newlib_hw_fp; case "${enableval}" in
2084
   yes) newlib_hw_fp=true ;;
2085
   no)  newlib_hw_fp=false ;;
2086
   *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-newlib-hw-fp" >&5
2087
$as_echo "$as_me: error: bad value ${enableval} for --enable-newlib-hw-fp" >&2;}
2088
   { (exit 1); exit 1; }; } ;;
2089
 esac
2090
else
2091
  newlib_hw_fp=false
2092
fi
2093
 
2094
 if test x$newlib_hw_fp = xtrue; then
2095
  NEWLIB_HW_FP_TRUE=
2096
  NEWLIB_HW_FP_FALSE='#'
2097
else
2098
  NEWLIB_HW_FP_TRUE='#'
2099
  NEWLIB_HW_FP_FALSE=
2100
fi
2101
 
2102
 
2103
{ $as_echo "$as_me:$LINENO: checking Checking long double support" >&5
2104
$as_echo_n "checking Checking long double support... " >&6; }
2105
if test "${acnewlib_cv_type_long_double+set}" = set; then
2106
  $as_echo_n "(cached) " >&6
2107
else
2108
  cat > conftest.c <
2109
int main() {
2110
long double x = 0.0L;
2111
return 0;
2112
}
2113
EOF
2114
if { ac_try='${CC} $CFLAGS $CPPFLAGS -c conftest.c 1>&5'
2115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116
  (eval $ac_try) 2>&5
2117
  ac_status=$?
2118
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119
  (exit $ac_status); }; }
2120
then
2121
  acnewlib_cv_type_long_double=yes
2122
else
2123
  acnewlib_cv_type_long_double=no
2124
fi
2125
rm -f conftest*
2126
fi
2127
{ $as_echo "$as_me:$LINENO: result: $acnewlib_cv_type_long_double" >&5
2128
$as_echo "$acnewlib_cv_type_long_double" >&6; }
2129
 if test x"$acnewlib_cv_type_long_double" = x"yes"; then
2130
  HAVE_LONG_DOUBLE_TRUE=
2131
  HAVE_LONG_DOUBLE_FALSE='#'
2132
else
2133
  HAVE_LONG_DOUBLE_TRUE='#'
2134
  HAVE_LONG_DOUBLE_FALSE=
2135
fi
2136
 
2137
 
2138
ac_aux_dir=
2139
for ac_dir in ../.. "$srcdir"/../..; do
2140
  if test -f "$ac_dir/install-sh"; then
2141
    ac_aux_dir=$ac_dir
2142
    ac_install_sh="$ac_aux_dir/install-sh -c"
2143
    break
2144
  elif test -f "$ac_dir/install.sh"; then
2145
    ac_aux_dir=$ac_dir
2146
    ac_install_sh="$ac_aux_dir/install.sh -c"
2147
    break
2148
  elif test -f "$ac_dir/shtool"; then
2149
    ac_aux_dir=$ac_dir
2150
    ac_install_sh="$ac_aux_dir/shtool install -c"
2151
    break
2152
  fi
2153
done
2154
if test -z "$ac_aux_dir"; then
2155
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../.. \"$srcdir\"/../.." >&5
2156
$as_echo "$as_me: error: cannot find install-sh or install.sh in ../.. \"$srcdir\"/../.." >&2;}
2157
   { (exit 1); exit 1; }; }
2158
fi
2159
 
2160
# These three variables are undocumented and unsupported,
2161
# and are intended to be withdrawn in a future Autoconf release.
2162
# They can cause serious problems if a builder's source tree is in a directory
2163
# whose full name contains unusual characters.
2164
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2165
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2166
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2167
 
2168
 
2169
 
2170
 
2171
# Make sure we can run config.sub.
2172
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2173
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2174
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2175
   { (exit 1); exit 1; }; }
2176
 
2177
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2178
$as_echo_n "checking build system type... " >&6; }
2179
if test "${ac_cv_build+set}" = set; then
2180
  $as_echo_n "(cached) " >&6
2181
else
2182
  ac_build_alias=$build_alias
2183
test "x$ac_build_alias" = x &&
2184
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2185
test "x$ac_build_alias" = x &&
2186
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2187
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2188
   { (exit 1); exit 1; }; }
2189
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2190
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2191
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2192
   { (exit 1); exit 1; }; }
2193
 
2194
fi
2195
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2196
$as_echo "$ac_cv_build" >&6; }
2197
case $ac_cv_build in
2198
*-*-*) ;;
2199
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2200
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2201
   { (exit 1); exit 1; }; };;
2202
esac
2203
build=$ac_cv_build
2204
ac_save_IFS=$IFS; IFS='-'
2205
set x $ac_cv_build
2206
shift
2207
build_cpu=$1
2208
build_vendor=$2
2209
shift; shift
2210
# Remember, the first character of IFS is used to create $*,
2211
# except with old shells:
2212
build_os=$*
2213
IFS=$ac_save_IFS
2214
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2215
 
2216
 
2217
am__api_version='1.11'
2218
 
2219
# Find a good install program.  We prefer a C program (faster),
2220
# so one script is as good as another.  But avoid the broken or
2221
# incompatible versions:
2222
# SysV /etc/install, /usr/sbin/install
2223
# SunOS /usr/etc/install
2224
# IRIX /sbin/install
2225
# AIX /bin/install
2226
# AmigaOS /C/install, which installs bootblocks on floppy discs
2227
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2228
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2229
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2230
# OS/2's system install, which has a completely different semantic
2231
# ./install, which can be erroneously created by make from ./install.sh.
2232
# Reject install programs that cannot install multiple files.
2233
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2234
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2235
if test -z "$INSTALL"; then
2236
if test "${ac_cv_path_install+set}" = set; then
2237
  $as_echo_n "(cached) " >&6
2238
else
2239
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240
for as_dir in $PATH
2241
do
2242
  IFS=$as_save_IFS
2243
  test -z "$as_dir" && as_dir=.
2244
  # Account for people who put trailing slashes in PATH elements.
2245
case $as_dir/ in
2246
  ./ | .// | /cC/* | \
2247
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2248
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2249
  /usr/ucb/* ) ;;
2250
  *)
2251
    # OSF1 and SCO ODT 3.0 have their own names for install.
2252
    # Don't use installbsd from OSF since it installs stuff as root
2253
    # by default.
2254
    for ac_prog in ginstall scoinst install; do
2255
      for ac_exec_ext in '' $ac_executable_extensions; do
2256
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2257
          if test $ac_prog = install &&
2258
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2259
            # AIX install.  It has an incompatible calling convention.
2260
            :
2261
          elif test $ac_prog = install &&
2262
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2263
            # program-specific install script used by HP pwplus--don't use.
2264
            :
2265
          else
2266
            rm -rf conftest.one conftest.two conftest.dir
2267
            echo one > conftest.one
2268
            echo two > conftest.two
2269
            mkdir conftest.dir
2270
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2271
              test -s conftest.one && test -s conftest.two &&
2272
              test -s conftest.dir/conftest.one &&
2273
              test -s conftest.dir/conftest.two
2274
            then
2275
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2276
              break 3
2277
            fi
2278
          fi
2279
        fi
2280
      done
2281
    done
2282
    ;;
2283
esac
2284
 
2285
done
2286
IFS=$as_save_IFS
2287
 
2288
rm -rf conftest.one conftest.two conftest.dir
2289
 
2290
fi
2291
  if test "${ac_cv_path_install+set}" = set; then
2292
    INSTALL=$ac_cv_path_install
2293
  else
2294
    # As a last resort, use the slow shell script.  Don't cache a
2295
    # value for INSTALL within a source directory, because that will
2296
    # break other packages using the cache if that directory is
2297
    # removed, or if the value is a relative name.
2298
    INSTALL=$ac_install_sh
2299
  fi
2300
fi
2301
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2302
$as_echo "$INSTALL" >&6; }
2303
 
2304
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2305
# It thinks the first close brace ends the variable substitution.
2306
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2307
 
2308
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2309
 
2310
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2311
 
2312
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2313
$as_echo_n "checking whether build environment is sane... " >&6; }
2314
# Just in case
2315
sleep 1
2316
echo timestamp > conftest.file
2317
# Reject unsafe characters in $srcdir or the absolute working directory
2318
# name.  Accept space and tab only in the latter.
2319
am_lf='
2320
'
2321
case `pwd` in
2322
  *[\\\"\#\$\&\'\`$am_lf]*)
2323
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2324
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2325
   { (exit 1); exit 1; }; };;
2326
esac
2327
case $srcdir in
2328
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2329
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2330
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2331
   { (exit 1); exit 1; }; };;
2332
esac
2333
 
2334
# Do `set' in a subshell so we don't clobber the current shell's
2335
# arguments.  Must try -L first in case configure is actually a
2336
# symlink; some systems play weird games with the mod time of symlinks
2337
# (eg FreeBSD returns the mod time of the symlink's containing
2338
# directory).
2339
if (
2340
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2341
   if test "$*" = "X"; then
2342
      # -L didn't work.
2343
      set X `ls -t "$srcdir/configure" conftest.file`
2344
   fi
2345
   rm -f conftest.file
2346
   if test "$*" != "X $srcdir/configure conftest.file" \
2347
      && test "$*" != "X conftest.file $srcdir/configure"; then
2348
 
2349
      # If neither matched, then we have a broken ls.  This can happen
2350
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2351
      # broken ls alias from the environment.  This has actually
2352
      # happened.  Such a system could not be considered "sane".
2353
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2354
alias in your environment" >&5
2355
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2356
alias in your environment" >&2;}
2357
   { (exit 1); exit 1; }; }
2358
   fi
2359
 
2360
   test "$2" = conftest.file
2361
   )
2362
then
2363
   # Ok.
2364
   :
2365
else
2366
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2367
Check your system clock" >&5
2368
$as_echo "$as_me: error: newly created file is older than distributed files!
2369
Check your system clock" >&2;}
2370
   { (exit 1); exit 1; }; }
2371
fi
2372
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2373
$as_echo "yes" >&6; }
2374
test "$program_prefix" != NONE &&
2375
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2376
# Use a double $ so make ignores it.
2377
test "$program_suffix" != NONE &&
2378
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2379
# Double any \ or $.
2380
# By default was `s,x,x', remove it if useless.
2381
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2382
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2383
 
2384
# expand $ac_aux_dir to an absolute path
2385
am_aux_dir=`cd $ac_aux_dir && pwd`
2386
 
2387
if test x"${MISSING+set}" != xset; then
2388
  case $am_aux_dir in
2389
  *\ * | *\     *)
2390
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2391
  *)
2392
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2393
  esac
2394
fi
2395
# Use eval to expand $SHELL
2396
if eval "$MISSING --run true"; then
2397
  am_missing_run="$MISSING --run "
2398
else
2399
  am_missing_run=
2400
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2401
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2402
fi
2403
 
2404
if test x"${install_sh}" != xset; then
2405
  case $am_aux_dir in
2406
  *\ * | *\     *)
2407
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2408
  *)
2409
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2410
  esac
2411
fi
2412
 
2413
# Installed binaries are usually stripped using `strip' when the user
2414
# run `make install-strip'.  However `strip' might not be the right
2415
# tool to use in cross-compilation environments, therefore Automake
2416
# will honor the `STRIP' environment variable to overrule this program.
2417
if test "$cross_compiling" != no; then
2418
  if test -n "$ac_tool_prefix"; then
2419
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2420
set dummy ${ac_tool_prefix}strip; ac_word=$2
2421
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2422
$as_echo_n "checking for $ac_word... " >&6; }
2423
if test "${ac_cv_prog_STRIP+set}" = set; then
2424
  $as_echo_n "(cached) " >&6
2425
else
2426
  if test -n "$STRIP"; then
2427
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2428
else
2429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430
for as_dir in $PATH
2431
do
2432
  IFS=$as_save_IFS
2433
  test -z "$as_dir" && as_dir=.
2434
  for ac_exec_ext in '' $ac_executable_extensions; do
2435
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2436
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2437
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438
    break 2
2439
  fi
2440
done
2441
done
2442
IFS=$as_save_IFS
2443
 
2444
fi
2445
fi
2446
STRIP=$ac_cv_prog_STRIP
2447
if test -n "$STRIP"; then
2448
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2449
$as_echo "$STRIP" >&6; }
2450
else
2451
  { $as_echo "$as_me:$LINENO: result: no" >&5
2452
$as_echo "no" >&6; }
2453
fi
2454
 
2455
 
2456
fi
2457
if test -z "$ac_cv_prog_STRIP"; then
2458
  ac_ct_STRIP=$STRIP
2459
  # Extract the first word of "strip", so it can be a program name with args.
2460
set dummy strip; ac_word=$2
2461
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2462
$as_echo_n "checking for $ac_word... " >&6; }
2463
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2464
  $as_echo_n "(cached) " >&6
2465
else
2466
  if test -n "$ac_ct_STRIP"; then
2467
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2468
else
2469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470
for as_dir in $PATH
2471
do
2472
  IFS=$as_save_IFS
2473
  test -z "$as_dir" && as_dir=.
2474
  for ac_exec_ext in '' $ac_executable_extensions; do
2475
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476
    ac_cv_prog_ac_ct_STRIP="strip"
2477
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478
    break 2
2479
  fi
2480
done
2481
done
2482
IFS=$as_save_IFS
2483
 
2484
fi
2485
fi
2486
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2487
if test -n "$ac_ct_STRIP"; then
2488
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2489
$as_echo "$ac_ct_STRIP" >&6; }
2490
else
2491
  { $as_echo "$as_me:$LINENO: result: no" >&5
2492
$as_echo "no" >&6; }
2493
fi
2494
 
2495
  if test "x$ac_ct_STRIP" = x; then
2496
    STRIP=":"
2497
  else
2498
    case $cross_compiling:$ac_tool_warned in
2499
yes:)
2500
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2501
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2502
ac_tool_warned=yes ;;
2503
esac
2504
    STRIP=$ac_ct_STRIP
2505
  fi
2506
else
2507
  STRIP="$ac_cv_prog_STRIP"
2508
fi
2509
 
2510
fi
2511
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2512
 
2513
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2514
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2515
if test -z "$MKDIR_P"; then
2516
  if test "${ac_cv_path_mkdir+set}" = set; then
2517
  $as_echo_n "(cached) " >&6
2518
else
2519
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2521
do
2522
  IFS=$as_save_IFS
2523
  test -z "$as_dir" && as_dir=.
2524
  for ac_prog in mkdir gmkdir; do
2525
         for ac_exec_ext in '' $ac_executable_extensions; do
2526
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2527
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2528
             'mkdir (GNU coreutils) '* | \
2529
             'mkdir (coreutils) '* | \
2530
             'mkdir (fileutils) '4.1*)
2531
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2532
               break 3;;
2533
           esac
2534
         done
2535
       done
2536
done
2537
IFS=$as_save_IFS
2538
 
2539
fi
2540
 
2541
  if test "${ac_cv_path_mkdir+set}" = set; then
2542
    MKDIR_P="$ac_cv_path_mkdir -p"
2543
  else
2544
    # As a last resort, use the slow shell script.  Don't cache a
2545
    # value for MKDIR_P within a source directory, because that will
2546
    # break other packages using the cache if that directory is
2547
    # removed, or if the value is a relative name.
2548
    test -d ./--version && rmdir ./--version
2549
    MKDIR_P="$ac_install_sh -d"
2550
  fi
2551
fi
2552
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2553
$as_echo "$MKDIR_P" >&6; }
2554
 
2555
mkdir_p="$MKDIR_P"
2556
case $mkdir_p in
2557
  [\\/$]* | ?:[\\/]*) ;;
2558
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2559
esac
2560
 
2561
for ac_prog in gawk mawk nawk awk
2562
do
2563
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2564
set dummy $ac_prog; ac_word=$2
2565
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2566
$as_echo_n "checking for $ac_word... " >&6; }
2567
if test "${ac_cv_prog_AWK+set}" = set; then
2568
  $as_echo_n "(cached) " >&6
2569
else
2570
  if test -n "$AWK"; then
2571
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2572
else
2573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574
for as_dir in $PATH
2575
do
2576
  IFS=$as_save_IFS
2577
  test -z "$as_dir" && as_dir=.
2578
  for ac_exec_ext in '' $ac_executable_extensions; do
2579
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580
    ac_cv_prog_AWK="$ac_prog"
2581
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582
    break 2
2583
  fi
2584
done
2585
done
2586
IFS=$as_save_IFS
2587
 
2588
fi
2589
fi
2590
AWK=$ac_cv_prog_AWK
2591
if test -n "$AWK"; then
2592
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2593
$as_echo "$AWK" >&6; }
2594
else
2595
  { $as_echo "$as_me:$LINENO: result: no" >&5
2596
$as_echo "no" >&6; }
2597
fi
2598
 
2599
 
2600
  test -n "$AWK" && break
2601
done
2602
 
2603
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2604
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2605
set x ${MAKE-make}
2606
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2607
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2608
  $as_echo_n "(cached) " >&6
2609
else
2610
  cat >conftest.make <<\_ACEOF
2611
SHELL = /bin/sh
2612
all:
2613
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2614
_ACEOF
2615
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2616
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2617
  *@@@%%%=?*=@@@%%%*)
2618
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2619
  *)
2620
    eval ac_cv_prog_make_${ac_make}_set=no;;
2621
esac
2622
rm -f conftest.make
2623
fi
2624
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2625
  { $as_echo "$as_me:$LINENO: result: yes" >&5
2626
$as_echo "yes" >&6; }
2627
  SET_MAKE=
2628
else
2629
  { $as_echo "$as_me:$LINENO: result: no" >&5
2630
$as_echo "no" >&6; }
2631
  SET_MAKE="MAKE=${MAKE-make}"
2632
fi
2633
 
2634
rm -rf .tst 2>/dev/null
2635
mkdir .tst 2>/dev/null
2636
if test -d .tst; then
2637
  am__leading_dot=.
2638
else
2639
  am__leading_dot=_
2640
fi
2641
rmdir .tst 2>/dev/null
2642
 
2643
DEPDIR="${am__leading_dot}deps"
2644
 
2645
ac_config_commands="$ac_config_commands depfiles"
2646
 
2647
 
2648
am_make=${MAKE-make}
2649
cat > confinc << 'END'
2650
am__doit:
2651
        @echo this is the am__doit target
2652
.PHONY: am__doit
2653
END
2654
# If we don't find an include directive, just comment out the code.
2655
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2656
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2657
am__include="#"
2658
am__quote=
2659
_am_result=none
2660
# First try GNU make style include.
2661
echo "include confinc" > confmf
2662
# Ignore all kinds of additional output from `make'.
2663
case `$am_make -s -f confmf 2> /dev/null` in #(
2664
*the\ am__doit\ target*)
2665
  am__include=include
2666
  am__quote=
2667
  _am_result=GNU
2668
  ;;
2669
esac
2670
# Now try BSD make style include.
2671
if test "$am__include" = "#"; then
2672
   echo '.include "confinc"' > confmf
2673
   case `$am_make -s -f confmf 2> /dev/null` in #(
2674
   *the\ am__doit\ target*)
2675
     am__include=.include
2676
     am__quote="\""
2677
     _am_result=BSD
2678
     ;;
2679
   esac
2680
fi
2681
 
2682
 
2683
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2684
$as_echo "$_am_result" >&6; }
2685
rm -f confinc confmf
2686
 
2687
# Check whether --enable-dependency-tracking was given.
2688
if test "${enable_dependency_tracking+set}" = set; then
2689
  enableval=$enable_dependency_tracking;
2690
fi
2691
 
2692
if test "x$enable_dependency_tracking" != xno; then
2693
  am_depcomp="$ac_aux_dir/depcomp"
2694
  AMDEPBACKSLASH='\'
2695
fi
2696
 if test "x$enable_dependency_tracking" != xno; then
2697
  AMDEP_TRUE=
2698
  AMDEP_FALSE='#'
2699
else
2700
  AMDEP_TRUE='#'
2701
  AMDEP_FALSE=
2702
fi
2703
 
2704
 
2705
 
2706
# Check whether --enable-multilib was given.
2707
if test "${enable_multilib+set}" = set; then
2708
  enableval=$enable_multilib; case "${enableval}" in
2709
  yes) multilib=yes ;;
2710
  no)  multilib=no ;;
2711
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2712
$as_echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2713
   { (exit 1); exit 1; }; } ;;
2714
 esac
2715
else
2716
  multilib=yes
2717
fi
2718
 
2719
# Check whether --enable-target-optspace was given.
2720
if test "${enable_target_optspace+set}" = set; then
2721
  enableval=$enable_target_optspace; case "${enableval}" in
2722
  yes) target_optspace=yes ;;
2723
  no)  target_optspace=no ;;
2724
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2725
$as_echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2726
   { (exit 1); exit 1; }; } ;;
2727
 esac
2728
else
2729
  target_optspace=
2730
fi
2731
 
2732
# Check whether --enable-malloc-debugging was given.
2733
if test "${enable_malloc_debugging+set}" = set; then
2734
  enableval=$enable_malloc_debugging; case "${enableval}" in
2735
  yes) malloc_debugging=yes ;;
2736
  no)  malloc_debugging=no ;;
2737
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2738
$as_echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2739
   { (exit 1); exit 1; }; } ;;
2740
 esac
2741
else
2742
  malloc_debugging=
2743
fi
2744
 
2745
# Check whether --enable-newlib-multithread was given.
2746
if test "${enable_newlib_multithread+set}" = set; then
2747
  enableval=$enable_newlib_multithread; case "${enableval}" in
2748
  yes) newlib_multithread=yes ;;
2749
  no)  newlib_multithread=no ;;
2750
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2751
$as_echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2752
   { (exit 1); exit 1; }; } ;;
2753
 esac
2754
else
2755
  newlib_multithread=yes
2756
fi
2757
 
2758
# Check whether --enable-newlib-iconv was given.
2759
if test "${enable_newlib_iconv+set}" = set; then
2760
  enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2761
   case "${enableval}" in
2762
     yes) newlib_iconv=yes ;;
2763
     no)  newlib_iconv=no ;;
2764
     *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2765
$as_echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2766
   { (exit 1); exit 1; }; } ;;
2767
   esac
2768
 fi
2769
else
2770
  newlib_iconv=${newlib_iconv}
2771
fi
2772
 
2773
# Check whether --enable-newlib-elix-level was given.
2774
if test "${enable_newlib_elix_level+set}" = set; then
2775
  enableval=$enable_newlib_elix_level; case "${enableval}" in
2776
  0)   newlib_elix_level=0 ;;
2777
  1)   newlib_elix_level=1 ;;
2778
  2)   newlib_elix_level=2 ;;
2779
  3)   newlib_elix_level=3 ;;
2780
  4)   newlib_elix_level=4 ;;
2781
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2782
$as_echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2783
   { (exit 1); exit 1; }; } ;;
2784
 esac
2785
else
2786
  newlib_elix_level=0
2787
fi
2788
 
2789
# Check whether --enable-newlib-io-float was given.
2790
if test "${enable_newlib_io_float+set}" = set; then
2791
  enableval=$enable_newlib_io_float; case "${enableval}" in
2792
  yes) newlib_io_float=yes ;;
2793
  no)  newlib_io_float=no ;;
2794
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2795
$as_echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2796
   { (exit 1); exit 1; }; } ;;
2797
 esac
2798
else
2799
  newlib_io_float=yes
2800
fi
2801
 
2802
# Check whether --enable-newlib-supplied-syscalls was given.
2803
if test "${enable_newlib_supplied_syscalls+set}" = set; then
2804
  enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2805
  yes) newlib_may_supply_syscalls=yes ;;
2806
  no)  newlib_may_supply_syscalls=no ;;
2807
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2808
$as_echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2809
   { (exit 1); exit 1; }; } ;;
2810
 esac
2811
else
2812
  newlib_may_supply_syscalls=yes
2813
fi
2814
 
2815
 if test x${newlib_may_supply_syscalls} = xyes; then
2816
  MAY_SUPPLY_SYSCALLS_TRUE=
2817
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2818
else
2819
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2820
  MAY_SUPPLY_SYSCALLS_FALSE=
2821
fi
2822
 
2823
 
2824
 
2825
test -z "${with_target_subdir}" && with_target_subdir=.
2826
 
2827
if test "${srcdir}" = "."; then
2828
  if test "${with_target_subdir}" != "."; then
2829
    newlib_basedir="${srcdir}/${with_multisrctop}../.."
2830
  else
2831
    newlib_basedir="${srcdir}/${with_multisrctop}.."
2832
  fi
2833
else
2834
  newlib_basedir="${srcdir}/.."
2835
fi
2836
 
2837
 
2838
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2839
$as_echo_n "checking host system type... " >&6; }
2840
if test "${ac_cv_host+set}" = set; then
2841
  $as_echo_n "(cached) " >&6
2842
else
2843
  if test "x$host_alias" = x; then
2844
  ac_cv_host=$ac_cv_build
2845
else
2846
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2847
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2848
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2849
   { (exit 1); exit 1; }; }
2850
fi
2851
 
2852
fi
2853
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2854
$as_echo "$ac_cv_host" >&6; }
2855
case $ac_cv_host in
2856
*-*-*) ;;
2857
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2858
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2859
   { (exit 1); exit 1; }; };;
2860
esac
2861
host=$ac_cv_host
2862
ac_save_IFS=$IFS; IFS='-'
2863
set x $ac_cv_host
2864
shift
2865
host_cpu=$1
2866
host_vendor=$2
2867
shift; shift
2868
# Remember, the first character of IFS is used to create $*,
2869
# except with old shells:
2870
host_os=$*
2871
IFS=$ac_save_IFS
2872
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2873
 
2874
 
2875
 
2876
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2877
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2878
  # is not polluted with repeated "-I."
2879
  am__isrc=' -I$(srcdir)'
2880
  # test to see if srcdir already configured
2881
  if test -f $srcdir/config.status; then
2882
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2883
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2884
   { (exit 1); exit 1; }; }
2885
  fi
2886
fi
2887
 
2888
# test whether we have cygpath
2889
if test -z "$CYGPATH_W"; then
2890
  if (cygpath --version) >/dev/null 2>/dev/null; then
2891
    CYGPATH_W='cygpath -w'
2892
  else
2893
    CYGPATH_W=echo
2894
  fi
2895
fi
2896
 
2897
 
2898
# Define the identity of the package.
2899
 PACKAGE='newlib'
2900
 VERSION='1.18.0'
2901
 
2902
 
2903
# Some tools Automake needs.
2904
 
2905
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2906
 
2907
 
2908
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2909
 
2910
 
2911
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2912
 
2913
 
2914
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2915
 
2916
 
2917
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2918
 
2919
# We need awk for the "check" target.  The system "awk" is bad on
2920
# some platforms.
2921
# Always define AMTAR for backward compatibility.
2922
 
2923
AMTAR=${AMTAR-"${am_missing_run}tar"}
2924
 
2925
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2926
 
2927
 
2928
 
2929
 
2930
 
2931
 
2932
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2933
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2934
# are probably using a cross compiler, which will not be able to fully
2935
# link an executable.  This should really be fixed in autoconf
2936
# itself.
2937
 
2938
 
2939
 
2940
 
2941
 
2942
 
2943
 
2944
# Extract the first word of "gcc", so it can be a program name with args.
2945
set dummy gcc; ac_word=$2
2946
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2947
$as_echo_n "checking for $ac_word... " >&6; }
2948
if test "${ac_cv_prog_CC+set}" = set; then
2949
  $as_echo_n "(cached) " >&6
2950
else
2951
  if test -n "$CC"; then
2952
  ac_cv_prog_CC="$CC" # Let the user override the test.
2953
else
2954
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955
for as_dir in $PATH
2956
do
2957
  IFS=$as_save_IFS
2958
  test -z "$as_dir" && as_dir=.
2959
  for ac_exec_ext in '' $ac_executable_extensions; do
2960
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961
    ac_cv_prog_CC="gcc"
2962
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963
    break 2
2964
  fi
2965
done
2966
done
2967
IFS=$as_save_IFS
2968
 
2969
fi
2970
fi
2971
CC=$ac_cv_prog_CC
2972
if test -n "$CC"; then
2973
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2974
$as_echo "$CC" >&6; }
2975
else
2976
  { $as_echo "$as_me:$LINENO: result: no" >&5
2977
$as_echo "no" >&6; }
2978
fi
2979
 
2980
 
2981
 
2982
depcc="$CC"   am_compiler_list=
2983
 
2984
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2985
$as_echo_n "checking dependency style of $depcc... " >&6; }
2986
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2987
  $as_echo_n "(cached) " >&6
2988
else
2989
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2990
  # We make a subdir and do the tests there.  Otherwise we can end up
2991
  # making bogus files that we don't know about and never remove.  For
2992
  # instance it was reported that on HP-UX the gcc test will end up
2993
  # making a dummy file named `D' -- because `-MD' means `put the output
2994
  # in D'.
2995
  mkdir conftest.dir
2996
  # Copy depcomp to subdir because otherwise we won't find it if we're
2997
  # using a relative directory.
2998
  cp "$am_depcomp" conftest.dir
2999
  cd conftest.dir
3000
  # We will build objects and dependencies in a subdirectory because
3001
  # it helps to detect inapplicable dependency modes.  For instance
3002
  # both Tru64's cc and ICC support -MD to output dependencies as a
3003
  # side effect of compilation, but ICC will put the dependencies in
3004
  # the current directory while Tru64 will put them in the object
3005
  # directory.
3006
  mkdir sub
3007
 
3008
  am_cv_CC_dependencies_compiler_type=none
3009
  if test "$am_compiler_list" = ""; then
3010
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3011
  fi
3012
  am__universal=false
3013
  case " $depcc " in #(
3014
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3015
     esac
3016
 
3017
  for depmode in $am_compiler_list; do
3018
    # Setup a source with many dependencies, because some compilers
3019
    # like to wrap large dependency lists on column 80 (with \), and
3020
    # we should not choose a depcomp mode which is confused by this.
3021
    #
3022
    # We need to recreate these files for each test, as the compiler may
3023
    # overwrite some of them when testing with obscure command lines.
3024
    # This happens at least with the AIX C compiler.
3025
    : > sub/conftest.c
3026
    for i in 1 2 3 4 5 6; do
3027
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3028
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3029
      # Solaris 8's {/usr,}/bin/sh.
3030
      touch sub/conftst$i.h
3031
    done
3032
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3033
 
3034
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3035
    # mode.  It turns out that the SunPro C++ compiler does not properly
3036
    # handle `-M -o', and we need to detect this.  Also, some Intel
3037
    # versions had trouble with output in subdirs
3038
    am__obj=sub/conftest.${OBJEXT-o}
3039
    am__minus_obj="-o $am__obj"
3040
    case $depmode in
3041
    gcc)
3042
      # This depmode causes a compiler race in universal mode.
3043
      test "$am__universal" = false || continue
3044
      ;;
3045
    nosideeffect)
3046
      # after this tag, mechanisms are not by side-effect, so they'll
3047
      # only be used when explicitly requested
3048
      if test "x$enable_dependency_tracking" = xyes; then
3049
        continue
3050
      else
3051
        break
3052
      fi
3053
      ;;
3054
    msvisualcpp | msvcmsys)
3055
      # This compiler won't grok `-c -o', but also, the minuso test has
3056
      # not run yet.  These depmodes are late enough in the game, and
3057
      # so weak that their functioning should not be impacted.
3058
      am__obj=conftest.${OBJEXT-o}
3059
      am__minus_obj=
3060
      ;;
3061
    none) break ;;
3062
    esac
3063
    if depmode=$depmode \
3064
       source=sub/conftest.c object=$am__obj \
3065
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3066
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3067
         >/dev/null 2>conftest.err &&
3068
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3069
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3070
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3071
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3072
      # icc doesn't choke on unknown options, it will just issue warnings
3073
      # or remarks (even with -Werror).  So we grep stderr for any message
3074
      # that says an option was ignored or not supported.
3075
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3076
      #   icc: Command line warning: ignoring option '-M'; no argument required
3077
      # The diagnosis changed in icc 8.0:
3078
      #   icc: Command line remark: option '-MP' not supported
3079
      if (grep 'ignoring option' conftest.err ||
3080
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3081
        am_cv_CC_dependencies_compiler_type=$depmode
3082
        break
3083
      fi
3084
    fi
3085
  done
3086
 
3087
  cd ..
3088
  rm -rf conftest.dir
3089
else
3090
  am_cv_CC_dependencies_compiler_type=none
3091
fi
3092
 
3093
fi
3094
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3095
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3096
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3097
 
3098
 if
3099
  test "x$enable_dependency_tracking" != xno \
3100
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3101
  am__fastdepCC_TRUE=
3102
  am__fastdepCC_FALSE='#'
3103
else
3104
  am__fastdepCC_TRUE='#'
3105
  am__fastdepCC_FALSE=
3106
fi
3107
 
3108
 
3109
if test -z "$CC"; then
3110
  # Extract the first word of "cc", so it can be a program name with args.
3111
set dummy cc; ac_word=$2
3112
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3113
$as_echo_n "checking for $ac_word... " >&6; }
3114
if test "${ac_cv_prog_CC+set}" = set; then
3115
  $as_echo_n "(cached) " >&6
3116
else
3117
  if test -n "$CC"; then
3118
  ac_cv_prog_CC="$CC" # Let the user override the test.
3119
else
3120
  ac_prog_rejected=no
3121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122
for as_dir in $PATH
3123
do
3124
  IFS=$as_save_IFS
3125
  test -z "$as_dir" && as_dir=.
3126
  for ac_exec_ext in '' $ac_executable_extensions; do
3127
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3129
       ac_prog_rejected=yes
3130
       continue
3131
     fi
3132
    ac_cv_prog_CC="cc"
3133
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134
    break 2
3135
  fi
3136
done
3137
done
3138
IFS=$as_save_IFS
3139
 
3140
if test $ac_prog_rejected = yes; then
3141
  # We found a bogon in the path, so make sure we never use it.
3142
  set dummy $ac_cv_prog_CC
3143
  shift
3144
  if test $# != 0; then
3145
    # We chose a different compiler from the bogus one.
3146
    # However, it has the same basename, so the bogon will be chosen
3147
    # first if we set CC to just the basename; use the full file name.
3148
    shift
3149
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3150
  fi
3151
fi
3152
fi
3153
fi
3154
CC=$ac_cv_prog_CC
3155
if test -n "$CC"; then
3156
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3157
$as_echo "$CC" >&6; }
3158
else
3159
  { $as_echo "$as_me:$LINENO: result: no" >&5
3160
$as_echo "no" >&6; }
3161
fi
3162
 
3163
 
3164
  test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3165
$as_echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3166
   { (exit 1); exit 1; }; }
3167
fi
3168
 
3169
{ $as_echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
3170
$as_echo_n "checking whether we are using GNU C... " >&6; }
3171
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3172
  $as_echo_n "(cached) " >&6
3173
else
3174
  cat > conftest.c <
3175
#ifdef __GNUC__
3176
  yes;
3177
#endif
3178
EOF
3179
if { ac_try='${CC-cc} -E conftest.c'
3180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181
  (eval $ac_try) 2>&5
3182
  ac_status=$?
3183
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3185
  ac_cv_c_compiler_gnu=yes
3186
else
3187
  ac_cv_c_compiler_gnu=no
3188
fi
3189
fi
3190
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3191
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3192
 
3193
if test $ac_cv_c_compiler_gnu = yes; then
3194
  GCC=yes
3195
  ac_test_CFLAGS="${CFLAGS+set}"
3196
  ac_save_CFLAGS="$CFLAGS"
3197
  ac_test_CFLAGS=${CFLAGS+set}
3198
ac_save_CFLAGS=$CFLAGS
3199
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3200
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3201
if test "${ac_cv_prog_cc_g+set}" = set; then
3202
  $as_echo_n "(cached) " >&6
3203
else
3204
  ac_save_c_werror_flag=$ac_c_werror_flag
3205
   ac_c_werror_flag=yes
3206
   ac_cv_prog_cc_g=no
3207
   CFLAGS="-g"
3208
   cat >conftest.$ac_ext <<_ACEOF
3209
/* confdefs.h.  */
3210
_ACEOF
3211
cat confdefs.h >>conftest.$ac_ext
3212
cat >>conftest.$ac_ext <<_ACEOF
3213
/* end confdefs.h.  */
3214
 
3215
int
3216
main ()
3217
{
3218
 
3219
  ;
3220
  return 0;
3221
}
3222
_ACEOF
3223
rm -f conftest.$ac_objext
3224
if { (ac_try="$ac_compile"
3225
case "(($ac_try" in
3226
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227
  *) ac_try_echo=$ac_try;;
3228
esac
3229
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3230
$as_echo "$ac_try_echo") >&5
3231
  (eval "$ac_compile") 2>conftest.er1
3232
  ac_status=$?
3233
  grep -v '^ *+' conftest.er1 >conftest.err
3234
  rm -f conftest.er1
3235
  cat conftest.err >&5
3236
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237
  (exit $ac_status); } && {
3238
         test -z "$ac_c_werror_flag" ||
3239
         test ! -s conftest.err
3240
       } && test -s conftest.$ac_objext; then
3241
  ac_cv_prog_cc_g=yes
3242
else
3243
  $as_echo "$as_me: failed program was:" >&5
3244
sed 's/^/| /' conftest.$ac_ext >&5
3245
 
3246
        CFLAGS=""
3247
      cat >conftest.$ac_ext <<_ACEOF
3248
/* confdefs.h.  */
3249
_ACEOF
3250
cat confdefs.h >>conftest.$ac_ext
3251
cat >>conftest.$ac_ext <<_ACEOF
3252
/* end confdefs.h.  */
3253
 
3254
int
3255
main ()
3256
{
3257
 
3258
  ;
3259
  return 0;
3260
}
3261
_ACEOF
3262
rm -f conftest.$ac_objext
3263
if { (ac_try="$ac_compile"
3264
case "(($ac_try" in
3265
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266
  *) ac_try_echo=$ac_try;;
3267
esac
3268
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3269
$as_echo "$ac_try_echo") >&5
3270
  (eval "$ac_compile") 2>conftest.er1
3271
  ac_status=$?
3272
  grep -v '^ *+' conftest.er1 >conftest.err
3273
  rm -f conftest.er1
3274
  cat conftest.err >&5
3275
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276
  (exit $ac_status); } && {
3277
         test -z "$ac_c_werror_flag" ||
3278
         test ! -s conftest.err
3279
       } && test -s conftest.$ac_objext; then
3280
  :
3281
else
3282
  $as_echo "$as_me: failed program was:" >&5
3283
sed 's/^/| /' conftest.$ac_ext >&5
3284
 
3285
        ac_c_werror_flag=$ac_save_c_werror_flag
3286
         CFLAGS="-g"
3287
         cat >conftest.$ac_ext <<_ACEOF
3288
/* confdefs.h.  */
3289
_ACEOF
3290
cat confdefs.h >>conftest.$ac_ext
3291
cat >>conftest.$ac_ext <<_ACEOF
3292
/* end confdefs.h.  */
3293
 
3294
int
3295
main ()
3296
{
3297
 
3298
  ;
3299
  return 0;
3300
}
3301
_ACEOF
3302
rm -f conftest.$ac_objext
3303
if { (ac_try="$ac_compile"
3304
case "(($ac_try" in
3305
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306
  *) ac_try_echo=$ac_try;;
3307
esac
3308
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3309
$as_echo "$ac_try_echo") >&5
3310
  (eval "$ac_compile") 2>conftest.er1
3311
  ac_status=$?
3312
  grep -v '^ *+' conftest.er1 >conftest.err
3313
  rm -f conftest.er1
3314
  cat conftest.err >&5
3315
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316
  (exit $ac_status); } && {
3317
         test -z "$ac_c_werror_flag" ||
3318
         test ! -s conftest.err
3319
       } && test -s conftest.$ac_objext; then
3320
  ac_cv_prog_cc_g=yes
3321
else
3322
  $as_echo "$as_me: failed program was:" >&5
3323
sed 's/^/| /' conftest.$ac_ext >&5
3324
 
3325
 
3326
fi
3327
 
3328
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329
fi
3330
 
3331
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332
fi
3333
 
3334
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335
   ac_c_werror_flag=$ac_save_c_werror_flag
3336
fi
3337
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3338
$as_echo "$ac_cv_prog_cc_g" >&6; }
3339
if test "$ac_test_CFLAGS" = set; then
3340
  CFLAGS=$ac_save_CFLAGS
3341
elif test $ac_cv_prog_cc_g = yes; then
3342
  if test "$GCC" = yes; then
3343
    CFLAGS="-g -O2"
3344
  else
3345
    CFLAGS="-g"
3346
  fi
3347
else
3348
  if test "$GCC" = yes; then
3349
    CFLAGS="-O2"
3350
  else
3351
    CFLAGS=
3352
  fi
3353
fi
3354
  if test "$ac_test_CFLAGS" = set; then
3355
    CFLAGS="$ac_save_CFLAGS"
3356
  elif test $ac_cv_prog_cc_g = yes; then
3357
    CFLAGS="-g -O2"
3358
  else
3359
    CFLAGS="-O2"
3360
  fi
3361
else
3362
  GCC=
3363
  test "${CFLAGS+set}" = set || CFLAGS="-g"
3364
fi
3365
 
3366
 
3367
if test -n "$ac_tool_prefix"; then
3368
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3369
set dummy ${ac_tool_prefix}as; ac_word=$2
3370
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3371
$as_echo_n "checking for $ac_word... " >&6; }
3372
if test "${ac_cv_prog_AS+set}" = set; then
3373
  $as_echo_n "(cached) " >&6
3374
else
3375
  if test -n "$AS"; then
3376
  ac_cv_prog_AS="$AS" # Let the user override the test.
3377
else
3378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379
for as_dir in $PATH
3380
do
3381
  IFS=$as_save_IFS
3382
  test -z "$as_dir" && as_dir=.
3383
  for ac_exec_ext in '' $ac_executable_extensions; do
3384
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385
    ac_cv_prog_AS="${ac_tool_prefix}as"
3386
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387
    break 2
3388
  fi
3389
done
3390
done
3391
IFS=$as_save_IFS
3392
 
3393
fi
3394
fi
3395
AS=$ac_cv_prog_AS
3396
if test -n "$AS"; then
3397
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
3398
$as_echo "$AS" >&6; }
3399
else
3400
  { $as_echo "$as_me:$LINENO: result: no" >&5
3401
$as_echo "no" >&6; }
3402
fi
3403
 
3404
 
3405
fi
3406
if test -z "$ac_cv_prog_AS"; then
3407
  ac_ct_AS=$AS
3408
  # Extract the first word of "as", so it can be a program name with args.
3409
set dummy as; ac_word=$2
3410
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3411
$as_echo_n "checking for $ac_word... " >&6; }
3412
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3413
  $as_echo_n "(cached) " >&6
3414
else
3415
  if test -n "$ac_ct_AS"; then
3416
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3417
else
3418
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419
for as_dir in $PATH
3420
do
3421
  IFS=$as_save_IFS
3422
  test -z "$as_dir" && as_dir=.
3423
  for ac_exec_ext in '' $ac_executable_extensions; do
3424
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425
    ac_cv_prog_ac_ct_AS="as"
3426
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427
    break 2
3428
  fi
3429
done
3430
done
3431
IFS=$as_save_IFS
3432
 
3433
fi
3434
fi
3435
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3436
if test -n "$ac_ct_AS"; then
3437
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3438
$as_echo "$ac_ct_AS" >&6; }
3439
else
3440
  { $as_echo "$as_me:$LINENO: result: no" >&5
3441
$as_echo "no" >&6; }
3442
fi
3443
 
3444
  if test "x$ac_ct_AS" = x; then
3445
    AS=""
3446
  else
3447
    case $cross_compiling:$ac_tool_warned in
3448
yes:)
3449
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3450
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3451
ac_tool_warned=yes ;;
3452
esac
3453
    AS=$ac_ct_AS
3454
  fi
3455
else
3456
  AS="$ac_cv_prog_AS"
3457
fi
3458
 
3459
if test -n "$ac_tool_prefix"; then
3460
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3461
set dummy ${ac_tool_prefix}ar; ac_word=$2
3462
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3463
$as_echo_n "checking for $ac_word... " >&6; }
3464
if test "${ac_cv_prog_AR+set}" = set; then
3465
  $as_echo_n "(cached) " >&6
3466
else
3467
  if test -n "$AR"; then
3468
  ac_cv_prog_AR="$AR" # Let the user override the test.
3469
else
3470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471
for as_dir in $PATH
3472
do
3473
  IFS=$as_save_IFS
3474
  test -z "$as_dir" && as_dir=.
3475
  for ac_exec_ext in '' $ac_executable_extensions; do
3476
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3477
    ac_cv_prog_AR="${ac_tool_prefix}ar"
3478
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479
    break 2
3480
  fi
3481
done
3482
done
3483
IFS=$as_save_IFS
3484
 
3485
fi
3486
fi
3487
AR=$ac_cv_prog_AR
3488
if test -n "$AR"; then
3489
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
3490
$as_echo "$AR" >&6; }
3491
else
3492
  { $as_echo "$as_me:$LINENO: result: no" >&5
3493
$as_echo "no" >&6; }
3494
fi
3495
 
3496
 
3497
fi
3498
if test -z "$ac_cv_prog_AR"; then
3499
  ac_ct_AR=$AR
3500
  # Extract the first word of "ar", so it can be a program name with args.
3501
set dummy ar; ac_word=$2
3502
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3503
$as_echo_n "checking for $ac_word... " >&6; }
3504
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3505
  $as_echo_n "(cached) " >&6
3506
else
3507
  if test -n "$ac_ct_AR"; then
3508
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3509
else
3510
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511
for as_dir in $PATH
3512
do
3513
  IFS=$as_save_IFS
3514
  test -z "$as_dir" && as_dir=.
3515
  for ac_exec_ext in '' $ac_executable_extensions; do
3516
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517
    ac_cv_prog_ac_ct_AR="ar"
3518
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519
    break 2
3520
  fi
3521
done
3522
done
3523
IFS=$as_save_IFS
3524
 
3525
fi
3526
fi
3527
ac_ct_AR=$ac_cv_prog_ac_ct_AR
3528
if test -n "$ac_ct_AR"; then
3529
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3530
$as_echo "$ac_ct_AR" >&6; }
3531
else
3532
  { $as_echo "$as_me:$LINENO: result: no" >&5
3533
$as_echo "no" >&6; }
3534
fi
3535
 
3536
  if test "x$ac_ct_AR" = x; then
3537
    AR=""
3538
  else
3539
    case $cross_compiling:$ac_tool_warned in
3540
yes:)
3541
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3542
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3543
ac_tool_warned=yes ;;
3544
esac
3545
    AR=$ac_ct_AR
3546
  fi
3547
else
3548
  AR="$ac_cv_prog_AR"
3549
fi
3550
 
3551
if test -n "$ac_tool_prefix"; then
3552
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3553
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3554
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3555
$as_echo_n "checking for $ac_word... " >&6; }
3556
if test "${ac_cv_prog_RANLIB+set}" = set; then
3557
  $as_echo_n "(cached) " >&6
3558
else
3559
  if test -n "$RANLIB"; then
3560
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3561
else
3562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563
for as_dir in $PATH
3564
do
3565
  IFS=$as_save_IFS
3566
  test -z "$as_dir" && as_dir=.
3567
  for ac_exec_ext in '' $ac_executable_extensions; do
3568
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3570
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571
    break 2
3572
  fi
3573
done
3574
done
3575
IFS=$as_save_IFS
3576
 
3577
fi
3578
fi
3579
RANLIB=$ac_cv_prog_RANLIB
3580
if test -n "$RANLIB"; then
3581
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3582
$as_echo "$RANLIB" >&6; }
3583
else
3584
  { $as_echo "$as_me:$LINENO: result: no" >&5
3585
$as_echo "no" >&6; }
3586
fi
3587
 
3588
 
3589
fi
3590
if test -z "$ac_cv_prog_RANLIB"; then
3591
  ac_ct_RANLIB=$RANLIB
3592
  # Extract the first word of "ranlib", so it can be a program name with args.
3593
set dummy ranlib; ac_word=$2
3594
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3595
$as_echo_n "checking for $ac_word... " >&6; }
3596
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3597
  $as_echo_n "(cached) " >&6
3598
else
3599
  if test -n "$ac_ct_RANLIB"; then
3600
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3601
else
3602
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603
for as_dir in $PATH
3604
do
3605
  IFS=$as_save_IFS
3606
  test -z "$as_dir" && as_dir=.
3607
  for ac_exec_ext in '' $ac_executable_extensions; do
3608
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3610
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611
    break 2
3612
  fi
3613
done
3614
done
3615
IFS=$as_save_IFS
3616
 
3617
fi
3618
fi
3619
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3620
if test -n "$ac_ct_RANLIB"; then
3621
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3622
$as_echo "$ac_ct_RANLIB" >&6; }
3623
else
3624
  { $as_echo "$as_me:$LINENO: result: no" >&5
3625
$as_echo "no" >&6; }
3626
fi
3627
 
3628
  if test "x$ac_ct_RANLIB" = x; then
3629
    RANLIB=":"
3630
  else
3631
    case $cross_compiling:$ac_tool_warned in
3632
yes:)
3633
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3634
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3635
ac_tool_warned=yes ;;
3636
esac
3637
    RANLIB=$ac_ct_RANLIB
3638
  fi
3639
else
3640
  RANLIB="$ac_cv_prog_RANLIB"
3641
fi
3642
 
3643
if test -n "$ac_tool_prefix"; then
3644
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3645
set dummy ${ac_tool_prefix}readelf; ac_word=$2
3646
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3647
$as_echo_n "checking for $ac_word... " >&6; }
3648
if test "${ac_cv_prog_READELF+set}" = set; then
3649
  $as_echo_n "(cached) " >&6
3650
else
3651
  if test -n "$READELF"; then
3652
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
3653
else
3654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655
for as_dir in $PATH
3656
do
3657
  IFS=$as_save_IFS
3658
  test -z "$as_dir" && as_dir=.
3659
  for ac_exec_ext in '' $ac_executable_extensions; do
3660
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3662
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3663
    break 2
3664
  fi
3665
done
3666
done
3667
IFS=$as_save_IFS
3668
 
3669
fi
3670
fi
3671
READELF=$ac_cv_prog_READELF
3672
if test -n "$READELF"; then
3673
  { $as_echo "$as_me:$LINENO: result: $READELF" >&5
3674
$as_echo "$READELF" >&6; }
3675
else
3676
  { $as_echo "$as_me:$LINENO: result: no" >&5
3677
$as_echo "no" >&6; }
3678
fi
3679
 
3680
 
3681
fi
3682
if test -z "$ac_cv_prog_READELF"; then
3683
  ac_ct_READELF=$READELF
3684
  # Extract the first word of "readelf", so it can be a program name with args.
3685
set dummy readelf; ac_word=$2
3686
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3687
$as_echo_n "checking for $ac_word... " >&6; }
3688
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
3689
  $as_echo_n "(cached) " >&6
3690
else
3691
  if test -n "$ac_ct_READELF"; then
3692
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3693
else
3694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695
for as_dir in $PATH
3696
do
3697
  IFS=$as_save_IFS
3698
  test -z "$as_dir" && as_dir=.
3699
  for ac_exec_ext in '' $ac_executable_extensions; do
3700
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701
    ac_cv_prog_ac_ct_READELF="readelf"
3702
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703
    break 2
3704
  fi
3705
done
3706
done
3707
IFS=$as_save_IFS
3708
 
3709
fi
3710
fi
3711
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3712
if test -n "$ac_ct_READELF"; then
3713
  { $as_echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
3714
$as_echo "$ac_ct_READELF" >&6; }
3715
else
3716
  { $as_echo "$as_me:$LINENO: result: no" >&5
3717
$as_echo "no" >&6; }
3718
fi
3719
 
3720
  if test "x$ac_ct_READELF" = x; then
3721
    READELF=":"
3722
  else
3723
    case $cross_compiling:$ac_tool_warned in
3724
yes:)
3725
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3726
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3727
ac_tool_warned=yes ;;
3728
esac
3729
    READELF=$ac_ct_READELF
3730
  fi
3731
else
3732
  READELF="$ac_cv_prog_READELF"
3733
fi
3734
 
3735
 
3736
# Find a good install program.  We prefer a C program (faster),
3737
# so one script is as good as another.  But avoid the broken or
3738
# incompatible versions:
3739
# SysV /etc/install, /usr/sbin/install
3740
# SunOS /usr/etc/install
3741
# IRIX /sbin/install
3742
# AIX /bin/install
3743
# AmigaOS /C/install, which installs bootblocks on floppy discs
3744
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3745
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3746
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3747
# OS/2's system install, which has a completely different semantic
3748
# ./install, which can be erroneously created by make from ./install.sh.
3749
# Reject install programs that cannot install multiple files.
3750
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3751
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3752
if test -z "$INSTALL"; then
3753
if test "${ac_cv_path_install+set}" = set; then
3754
  $as_echo_n "(cached) " >&6
3755
else
3756
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757
for as_dir in $PATH
3758
do
3759
  IFS=$as_save_IFS
3760
  test -z "$as_dir" && as_dir=.
3761
  # Account for people who put trailing slashes in PATH elements.
3762
case $as_dir/ in
3763
  ./ | .// | /cC/* | \
3764
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3765
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3766
  /usr/ucb/* ) ;;
3767
  *)
3768
    # OSF1 and SCO ODT 3.0 have their own names for install.
3769
    # Don't use installbsd from OSF since it installs stuff as root
3770
    # by default.
3771
    for ac_prog in ginstall scoinst install; do
3772
      for ac_exec_ext in '' $ac_executable_extensions; do
3773
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3774
          if test $ac_prog = install &&
3775
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3776
            # AIX install.  It has an incompatible calling convention.
3777
            :
3778
          elif test $ac_prog = install &&
3779
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3780
            # program-specific install script used by HP pwplus--don't use.
3781
            :
3782
          else
3783
            rm -rf conftest.one conftest.two conftest.dir
3784
            echo one > conftest.one
3785
            echo two > conftest.two
3786
            mkdir conftest.dir
3787
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3788
              test -s conftest.one && test -s conftest.two &&
3789
              test -s conftest.dir/conftest.one &&
3790
              test -s conftest.dir/conftest.two
3791
            then
3792
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3793
              break 3
3794
            fi
3795
          fi
3796
        fi
3797
      done
3798
    done
3799
    ;;
3800
esac
3801
 
3802
done
3803
IFS=$as_save_IFS
3804
 
3805
rm -rf conftest.one conftest.two conftest.dir
3806
 
3807
fi
3808
  if test "${ac_cv_path_install+set}" = set; then
3809
    INSTALL=$ac_cv_path_install
3810
  else
3811
    # As a last resort, use the slow shell script.  Don't cache a
3812
    # value for INSTALL within a source directory, because that will
3813
    # break other packages using the cache if that directory is
3814
    # removed, or if the value is a relative name.
3815
    INSTALL=$ac_install_sh
3816
  fi
3817
fi
3818
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3819
$as_echo "$INSTALL" >&6; }
3820
 
3821
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3822
# It thinks the first close brace ends the variable substitution.
3823
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3824
 
3825
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3826
 
3827
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3828
 
3829
 
3830
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
3831
ac_given_INSTALL=$INSTALL
3832
 
3833
 
3834
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3835
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3836
    # Check whether --enable-maintainer-mode was given.
3837
if test "${enable_maintainer_mode+set}" = set; then
3838
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3839
else
3840
  USE_MAINTAINER_MODE=no
3841
fi
3842
 
3843
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3844
$as_echo "$USE_MAINTAINER_MODE" >&6; }
3845
   if test $USE_MAINTAINER_MODE = yes; then
3846
  MAINTAINER_MODE_TRUE=
3847
  MAINTAINER_MODE_FALSE='#'
3848
else
3849
  MAINTAINER_MODE_TRUE='#'
3850
  MAINTAINER_MODE_FALSE=
3851
fi
3852
 
3853
  MAINT=$MAINTAINER_MODE_TRUE
3854
 
3855
 
3856
# By default we simply use the C compiler to build assembly code.
3857
 
3858
test "${CCAS+set}" = set || CCAS=$CC
3859
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3860
 
3861
 
3862
 
3863
 
3864
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
3865
# at least currently, we never actually build a program, so we never
3866
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
3867
# fails, because we are probably configuring with a cross compiler
3868
# which can't create executables.  So we include AC_EXEEXT to keep
3869
# automake happy, but we don't execute it, since we don't care about
3870
# the result.
3871
if false; then
3872
 
3873
  dummy_var=1
3874
fi
3875
 
3876
. ${newlib_basedir}/configure.host
3877
 
3878
newlib_cflags="${newlib_cflags} -fno-builtin"
3879
 
3880
NEWLIB_CFLAGS=${newlib_cflags}
3881
 
3882
 
3883
LDFLAGS=${ldflags}
3884
 
3885
 
3886
 if test x${newlib_elix_level} = x0; then
3887
  ELIX_LEVEL_0_TRUE=
3888
  ELIX_LEVEL_0_FALSE='#'
3889
else
3890
  ELIX_LEVEL_0_TRUE='#'
3891
  ELIX_LEVEL_0_FALSE=
3892
fi
3893
 
3894
 if test x${newlib_elix_level} = x1; then
3895
  ELIX_LEVEL_1_TRUE=
3896
  ELIX_LEVEL_1_FALSE='#'
3897
else
3898
  ELIX_LEVEL_1_TRUE='#'
3899
  ELIX_LEVEL_1_FALSE=
3900
fi
3901
 
3902
 if test x${newlib_elix_level} = x2; then
3903
  ELIX_LEVEL_2_TRUE=
3904
  ELIX_LEVEL_2_FALSE='#'
3905
else
3906
  ELIX_LEVEL_2_TRUE='#'
3907
  ELIX_LEVEL_2_FALSE=
3908
fi
3909
 
3910
 if test x${newlib_elix_level} = x3; then
3911
  ELIX_LEVEL_3_TRUE=
3912
  ELIX_LEVEL_3_FALSE='#'
3913
else
3914
  ELIX_LEVEL_3_TRUE='#'
3915
  ELIX_LEVEL_3_FALSE=
3916
fi
3917
 
3918
 if test x${newlib_elix_level} = x4; then
3919
  ELIX_LEVEL_4_TRUE=
3920
  ELIX_LEVEL_4_FALSE='#'
3921
else
3922
  ELIX_LEVEL_4_TRUE='#'
3923
  ELIX_LEVEL_4_FALSE=
3924
fi
3925
 
3926
 
3927
 if test x${use_libtool} = xyes; then
3928
  USE_LIBTOOL_TRUE=
3929
  USE_LIBTOOL_FALSE='#'
3930
else
3931
  USE_LIBTOOL_TRUE='#'
3932
  USE_LIBTOOL_FALSE=
3933
fi
3934
 
3935
 
3936
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3937
# use oext, which is set in configure.host based on the target platform.
3938
OBJEXT=${oext}
3939
 
3940
 
3941
 
3942
 
3943
 
3944
 
3945
 
3946
 
3947
 
3948
 
3949
 
3950
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3951
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3952
if test "${ac_cv_path_SED+set}" = set; then
3953
  $as_echo_n "(cached) " >&6
3954
else
3955
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3956
     for ac_i in 1 2 3 4 5 6 7; do
3957
       ac_script="$ac_script$as_nl$ac_script"
3958
     done
3959
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3960
     $as_unset ac_script || ac_script=
3961
     if test -z "$SED"; then
3962
  ac_path_SED_found=false
3963
  # Loop through the user's path and test for each of PROGNAME-LIST
3964
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965
for as_dir in $PATH
3966
do
3967
  IFS=$as_save_IFS
3968
  test -z "$as_dir" && as_dir=.
3969
  for ac_prog in sed gsed; do
3970
    for ac_exec_ext in '' $ac_executable_extensions; do
3971
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3972
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3973
# Check for GNU ac_path_SED and select it if it is found.
3974
  # Check for GNU $ac_path_SED
3975
case `"$ac_path_SED" --version 2>&1` in
3976
*GNU*)
3977
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3978
*)
3979
  ac_count=0
3980
  $as_echo_n 0123456789 >"conftest.in"
3981
  while :
3982
  do
3983
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3984
    mv "conftest.tmp" "conftest.in"
3985
    cp "conftest.in" "conftest.nl"
3986
    $as_echo '' >> "conftest.nl"
3987
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3988
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3989
    ac_count=`expr $ac_count + 1`
3990
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3991
      # Best one so far, save it but keep looking for a better one
3992
      ac_cv_path_SED="$ac_path_SED"
3993
      ac_path_SED_max=$ac_count
3994
    fi
3995
    # 10*(2^10) chars as input seems more than enough
3996
    test $ac_count -gt 10 && break
3997
  done
3998
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3999
esac
4000
 
4001
      $ac_path_SED_found && break 3
4002
    done
4003
  done
4004
done
4005
IFS=$as_save_IFS
4006
  if test -z "$ac_cv_path_SED"; then
4007
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4008
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4009
   { (exit 1); exit 1; }; }
4010
  fi
4011
else
4012
  ac_cv_path_SED=$SED
4013
fi
4014
 
4015
fi
4016
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4017
$as_echo "$ac_cv_path_SED" >&6; }
4018
 SED="$ac_cv_path_SED"
4019
  rm -f conftest.sed
4020
 
4021
test -z "$SED" && SED=sed
4022
Xsed="$SED -e 1s/^X//"
4023
 
4024
 
4025
 
4026
 
4027
 
4028
 
4029
 
4030
 
4031
 
4032
 
4033
 
4034
if test "${use_libtool}" = "yes"; then
4035
enable_win32_dll=yes
4036
 
4037
case $host in
4038
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4039
  if test -n "$ac_tool_prefix"; then
4040
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4041
set dummy ${ac_tool_prefix}as; ac_word=$2
4042
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4043
$as_echo_n "checking for $ac_word... " >&6; }
4044
if test "${ac_cv_prog_AS+set}" = set; then
4045
  $as_echo_n "(cached) " >&6
4046
else
4047
  if test -n "$AS"; then
4048
  ac_cv_prog_AS="$AS" # Let the user override the test.
4049
else
4050
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051
for as_dir in $PATH
4052
do
4053
  IFS=$as_save_IFS
4054
  test -z "$as_dir" && as_dir=.
4055
  for ac_exec_ext in '' $ac_executable_extensions; do
4056
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4057
    ac_cv_prog_AS="${ac_tool_prefix}as"
4058
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059
    break 2
4060
  fi
4061
done
4062
done
4063
IFS=$as_save_IFS
4064
 
4065
fi
4066
fi
4067
AS=$ac_cv_prog_AS
4068
if test -n "$AS"; then
4069
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
4070
$as_echo "$AS" >&6; }
4071
else
4072
  { $as_echo "$as_me:$LINENO: result: no" >&5
4073
$as_echo "no" >&6; }
4074
fi
4075
 
4076
 
4077
fi
4078
if test -z "$ac_cv_prog_AS"; then
4079
  ac_ct_AS=$AS
4080
  # Extract the first word of "as", so it can be a program name with args.
4081
set dummy as; ac_word=$2
4082
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4083
$as_echo_n "checking for $ac_word... " >&6; }
4084
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4085
  $as_echo_n "(cached) " >&6
4086
else
4087
  if test -n "$ac_ct_AS"; then
4088
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4089
else
4090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091
for as_dir in $PATH
4092
do
4093
  IFS=$as_save_IFS
4094
  test -z "$as_dir" && as_dir=.
4095
  for ac_exec_ext in '' $ac_executable_extensions; do
4096
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4097
    ac_cv_prog_ac_ct_AS="as"
4098
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099
    break 2
4100
  fi
4101
done
4102
done
4103
IFS=$as_save_IFS
4104
 
4105
fi
4106
fi
4107
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4108
if test -n "$ac_ct_AS"; then
4109
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4110
$as_echo "$ac_ct_AS" >&6; }
4111
else
4112
  { $as_echo "$as_me:$LINENO: result: no" >&5
4113
$as_echo "no" >&6; }
4114
fi
4115
 
4116
  if test "x$ac_ct_AS" = x; then
4117
    AS="false"
4118
  else
4119
    case $cross_compiling:$ac_tool_warned in
4120
yes:)
4121
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4122
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4123
ac_tool_warned=yes ;;
4124
esac
4125
    AS=$ac_ct_AS
4126
  fi
4127
else
4128
  AS="$ac_cv_prog_AS"
4129
fi
4130
 
4131
  if test -n "$ac_tool_prefix"; then
4132
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4133
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4134
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4135
$as_echo_n "checking for $ac_word... " >&6; }
4136
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4137
  $as_echo_n "(cached) " >&6
4138
else
4139
  if test -n "$DLLTOOL"; then
4140
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4141
else
4142
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143
for as_dir in $PATH
4144
do
4145
  IFS=$as_save_IFS
4146
  test -z "$as_dir" && as_dir=.
4147
  for ac_exec_ext in '' $ac_executable_extensions; do
4148
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4149
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4150
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151
    break 2
4152
  fi
4153
done
4154
done
4155
IFS=$as_save_IFS
4156
 
4157
fi
4158
fi
4159
DLLTOOL=$ac_cv_prog_DLLTOOL
4160
if test -n "$DLLTOOL"; then
4161
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4162
$as_echo "$DLLTOOL" >&6; }
4163
else
4164
  { $as_echo "$as_me:$LINENO: result: no" >&5
4165
$as_echo "no" >&6; }
4166
fi
4167
 
4168
 
4169
fi
4170
if test -z "$ac_cv_prog_DLLTOOL"; then
4171
  ac_ct_DLLTOOL=$DLLTOOL
4172
  # Extract the first word of "dlltool", so it can be a program name with args.
4173
set dummy dlltool; ac_word=$2
4174
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4175
$as_echo_n "checking for $ac_word... " >&6; }
4176
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4177
  $as_echo_n "(cached) " >&6
4178
else
4179
  if test -n "$ac_ct_DLLTOOL"; then
4180
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4181
else
4182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183
for as_dir in $PATH
4184
do
4185
  IFS=$as_save_IFS
4186
  test -z "$as_dir" && as_dir=.
4187
  for ac_exec_ext in '' $ac_executable_extensions; do
4188
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4190
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4191
    break 2
4192
  fi
4193
done
4194
done
4195
IFS=$as_save_IFS
4196
 
4197
fi
4198
fi
4199
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4200
if test -n "$ac_ct_DLLTOOL"; then
4201
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4202
$as_echo "$ac_ct_DLLTOOL" >&6; }
4203
else
4204
  { $as_echo "$as_me:$LINENO: result: no" >&5
4205
$as_echo "no" >&6; }
4206
fi
4207
 
4208
  if test "x$ac_ct_DLLTOOL" = x; then
4209
    DLLTOOL="false"
4210
  else
4211
    case $cross_compiling:$ac_tool_warned in
4212
yes:)
4213
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4214
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4215
ac_tool_warned=yes ;;
4216
esac
4217
    DLLTOOL=$ac_ct_DLLTOOL
4218
  fi
4219
else
4220
  DLLTOOL="$ac_cv_prog_DLLTOOL"
4221
fi
4222
 
4223
  if test -n "$ac_tool_prefix"; then
4224
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4225
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4226
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4227
$as_echo_n "checking for $ac_word... " >&6; }
4228
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4229
  $as_echo_n "(cached) " >&6
4230
else
4231
  if test -n "$OBJDUMP"; then
4232
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4233
else
4234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235
for as_dir in $PATH
4236
do
4237
  IFS=$as_save_IFS
4238
  test -z "$as_dir" && as_dir=.
4239
  for ac_exec_ext in '' $ac_executable_extensions; do
4240
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4242
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4243
    break 2
4244
  fi
4245
done
4246
done
4247
IFS=$as_save_IFS
4248
 
4249
fi
4250
fi
4251
OBJDUMP=$ac_cv_prog_OBJDUMP
4252
if test -n "$OBJDUMP"; then
4253
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4254
$as_echo "$OBJDUMP" >&6; }
4255
else
4256
  { $as_echo "$as_me:$LINENO: result: no" >&5
4257
$as_echo "no" >&6; }
4258
fi
4259
 
4260
 
4261
fi
4262
if test -z "$ac_cv_prog_OBJDUMP"; then
4263
  ac_ct_OBJDUMP=$OBJDUMP
4264
  # Extract the first word of "objdump", so it can be a program name with args.
4265
set dummy objdump; ac_word=$2
4266
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4267
$as_echo_n "checking for $ac_word... " >&6; }
4268
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4269
  $as_echo_n "(cached) " >&6
4270
else
4271
  if test -n "$ac_ct_OBJDUMP"; then
4272
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4273
else
4274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275
for as_dir in $PATH
4276
do
4277
  IFS=$as_save_IFS
4278
  test -z "$as_dir" && as_dir=.
4279
  for ac_exec_ext in '' $ac_executable_extensions; do
4280
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4282
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283
    break 2
4284
  fi
4285
done
4286
done
4287
IFS=$as_save_IFS
4288
 
4289
fi
4290
fi
4291
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4292
if test -n "$ac_ct_OBJDUMP"; then
4293
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4294
$as_echo "$ac_ct_OBJDUMP" >&6; }
4295
else
4296
  { $as_echo "$as_me:$LINENO: result: no" >&5
4297
$as_echo "no" >&6; }
4298
fi
4299
 
4300
  if test "x$ac_ct_OBJDUMP" = x; then
4301
    OBJDUMP="false"
4302
  else
4303
    case $cross_compiling:$ac_tool_warned in
4304
yes:)
4305
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4306
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4307
ac_tool_warned=yes ;;
4308
esac
4309
    OBJDUMP=$ac_ct_OBJDUMP
4310
  fi
4311
else
4312
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4313
fi
4314
 
4315
  ;;
4316
esac
4317
 
4318
test -z "$AS" && AS=as
4319
 
4320
 
4321
 
4322
 
4323
 
4324
test -z "$DLLTOOL" && DLLTOOL=dlltool
4325
 
4326
 
4327
 
4328
 
4329
 
4330
test -z "$OBJDUMP" && OBJDUMP=objdump
4331
 
4332
 
4333
 
4334
 
4335
 
4336
 
4337
 
4338
case `pwd` in
4339
  *\ * | *\     *)
4340
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4341
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4342
esac
4343
 
4344
 
4345
 
4346
macro_version='2.2.6'
4347
macro_revision='1.3012'
4348
 
4349
 
4350
 
4351
 
4352
 
4353
 
4354
 
4355
 
4356
 
4357
 
4358
 
4359
 
4360
 
4361
ltmain="$ac_aux_dir/ltmain.sh"
4362
 
4363
ac_ext=c
4364
ac_cpp='$CPP $CPPFLAGS'
4365
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368
if test -n "$ac_tool_prefix"; then
4369
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4370
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4371
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4372
$as_echo_n "checking for $ac_word... " >&6; }
4373
if test "${ac_cv_prog_CC+set}" = set; then
4374
  $as_echo_n "(cached) " >&6
4375
else
4376
  if test -n "$CC"; then
4377
  ac_cv_prog_CC="$CC" # Let the user override the test.
4378
else
4379
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380
for as_dir in $PATH
4381
do
4382
  IFS=$as_save_IFS
4383
  test -z "$as_dir" && as_dir=.
4384
  for ac_exec_ext in '' $ac_executable_extensions; do
4385
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4387
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388
    break 2
4389
  fi
4390
done
4391
done
4392
IFS=$as_save_IFS
4393
 
4394
fi
4395
fi
4396
CC=$ac_cv_prog_CC
4397
if test -n "$CC"; then
4398
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4399
$as_echo "$CC" >&6; }
4400
else
4401
  { $as_echo "$as_me:$LINENO: result: no" >&5
4402
$as_echo "no" >&6; }
4403
fi
4404
 
4405
 
4406
fi
4407
if test -z "$ac_cv_prog_CC"; then
4408
  ac_ct_CC=$CC
4409
  # Extract the first word of "gcc", so it can be a program name with args.
4410
set dummy gcc; ac_word=$2
4411
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4412
$as_echo_n "checking for $ac_word... " >&6; }
4413
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4414
  $as_echo_n "(cached) " >&6
4415
else
4416
  if test -n "$ac_ct_CC"; then
4417
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4418
else
4419
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420
for as_dir in $PATH
4421
do
4422
  IFS=$as_save_IFS
4423
  test -z "$as_dir" && as_dir=.
4424
  for ac_exec_ext in '' $ac_executable_extensions; do
4425
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4426
    ac_cv_prog_ac_ct_CC="gcc"
4427
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428
    break 2
4429
  fi
4430
done
4431
done
4432
IFS=$as_save_IFS
4433
 
4434
fi
4435
fi
4436
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4437
if test -n "$ac_ct_CC"; then
4438
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4439
$as_echo "$ac_ct_CC" >&6; }
4440
else
4441
  { $as_echo "$as_me:$LINENO: result: no" >&5
4442
$as_echo "no" >&6; }
4443
fi
4444
 
4445
  if test "x$ac_ct_CC" = x; then
4446
    CC=""
4447
  else
4448
    case $cross_compiling:$ac_tool_warned in
4449
yes:)
4450
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4451
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4452
ac_tool_warned=yes ;;
4453
esac
4454
    CC=$ac_ct_CC
4455
  fi
4456
else
4457
  CC="$ac_cv_prog_CC"
4458
fi
4459
 
4460
if test -z "$CC"; then
4461
          if test -n "$ac_tool_prefix"; then
4462
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4463
set dummy ${ac_tool_prefix}cc; ac_word=$2
4464
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4465
$as_echo_n "checking for $ac_word... " >&6; }
4466
if test "${ac_cv_prog_CC+set}" = set; then
4467
  $as_echo_n "(cached) " >&6
4468
else
4469
  if test -n "$CC"; then
4470
  ac_cv_prog_CC="$CC" # Let the user override the test.
4471
else
4472
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473
for as_dir in $PATH
4474
do
4475
  IFS=$as_save_IFS
4476
  test -z "$as_dir" && as_dir=.
4477
  for ac_exec_ext in '' $ac_executable_extensions; do
4478
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4480
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481
    break 2
4482
  fi
4483
done
4484
done
4485
IFS=$as_save_IFS
4486
 
4487
fi
4488
fi
4489
CC=$ac_cv_prog_CC
4490
if test -n "$CC"; then
4491
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4492
$as_echo "$CC" >&6; }
4493
else
4494
  { $as_echo "$as_me:$LINENO: result: no" >&5
4495
$as_echo "no" >&6; }
4496
fi
4497
 
4498
 
4499
  fi
4500
fi
4501
if test -z "$CC"; then
4502
  # Extract the first word of "cc", so it can be a program name with args.
4503
set dummy cc; ac_word=$2
4504
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4505
$as_echo_n "checking for $ac_word... " >&6; }
4506
if test "${ac_cv_prog_CC+set}" = set; then
4507
  $as_echo_n "(cached) " >&6
4508
else
4509
  if test -n "$CC"; then
4510
  ac_cv_prog_CC="$CC" # Let the user override the test.
4511
else
4512
  ac_prog_rejected=no
4513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514
for as_dir in $PATH
4515
do
4516
  IFS=$as_save_IFS
4517
  test -z "$as_dir" && as_dir=.
4518
  for ac_exec_ext in '' $ac_executable_extensions; do
4519
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4521
       ac_prog_rejected=yes
4522
       continue
4523
     fi
4524
    ac_cv_prog_CC="cc"
4525
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526
    break 2
4527
  fi
4528
done
4529
done
4530
IFS=$as_save_IFS
4531
 
4532
if test $ac_prog_rejected = yes; then
4533
  # We found a bogon in the path, so make sure we never use it.
4534
  set dummy $ac_cv_prog_CC
4535
  shift
4536
  if test $# != 0; then
4537
    # We chose a different compiler from the bogus one.
4538
    # However, it has the same basename, so the bogon will be chosen
4539
    # first if we set CC to just the basename; use the full file name.
4540
    shift
4541
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4542
  fi
4543
fi
4544
fi
4545
fi
4546
CC=$ac_cv_prog_CC
4547
if test -n "$CC"; then
4548
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4549
$as_echo "$CC" >&6; }
4550
else
4551
  { $as_echo "$as_me:$LINENO: result: no" >&5
4552
$as_echo "no" >&6; }
4553
fi
4554
 
4555
 
4556
fi
4557
if test -z "$CC"; then
4558
  if test -n "$ac_tool_prefix"; then
4559
  for ac_prog in cl.exe
4560
  do
4561
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4562
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4563
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4564
$as_echo_n "checking for $ac_word... " >&6; }
4565
if test "${ac_cv_prog_CC+set}" = set; then
4566
  $as_echo_n "(cached) " >&6
4567
else
4568
  if test -n "$CC"; then
4569
  ac_cv_prog_CC="$CC" # Let the user override the test.
4570
else
4571
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572
for as_dir in $PATH
4573
do
4574
  IFS=$as_save_IFS
4575
  test -z "$as_dir" && as_dir=.
4576
  for ac_exec_ext in '' $ac_executable_extensions; do
4577
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4579
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580
    break 2
4581
  fi
4582
done
4583
done
4584
IFS=$as_save_IFS
4585
 
4586
fi
4587
fi
4588
CC=$ac_cv_prog_CC
4589
if test -n "$CC"; then
4590
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4591
$as_echo "$CC" >&6; }
4592
else
4593
  { $as_echo "$as_me:$LINENO: result: no" >&5
4594
$as_echo "no" >&6; }
4595
fi
4596
 
4597
 
4598
    test -n "$CC" && break
4599
  done
4600
fi
4601
if test -z "$CC"; then
4602
  ac_ct_CC=$CC
4603
  for ac_prog in cl.exe
4604
do
4605
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4606
set dummy $ac_prog; ac_word=$2
4607
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4608
$as_echo_n "checking for $ac_word... " >&6; }
4609
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4610
  $as_echo_n "(cached) " >&6
4611
else
4612
  if test -n "$ac_ct_CC"; then
4613
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4614
else
4615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616
for as_dir in $PATH
4617
do
4618
  IFS=$as_save_IFS
4619
  test -z "$as_dir" && as_dir=.
4620
  for ac_exec_ext in '' $ac_executable_extensions; do
4621
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622
    ac_cv_prog_ac_ct_CC="$ac_prog"
4623
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624
    break 2
4625
  fi
4626
done
4627
done
4628
IFS=$as_save_IFS
4629
 
4630
fi
4631
fi
4632
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4633
if test -n "$ac_ct_CC"; then
4634
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4635
$as_echo "$ac_ct_CC" >&6; }
4636
else
4637
  { $as_echo "$as_me:$LINENO: result: no" >&5
4638
$as_echo "no" >&6; }
4639
fi
4640
 
4641
 
4642
  test -n "$ac_ct_CC" && break
4643
done
4644
 
4645
  if test "x$ac_ct_CC" = x; then
4646
    CC=""
4647
  else
4648
    case $cross_compiling:$ac_tool_warned in
4649
yes:)
4650
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4651
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4652
ac_tool_warned=yes ;;
4653
esac
4654
    CC=$ac_ct_CC
4655
  fi
4656
fi
4657
 
4658
fi
4659
 
4660
 
4661
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4662
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4663
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4664
See \`config.log' for more details." >&5
4665
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4666
See \`config.log' for more details." >&2;}
4667
   { (exit 1); exit 1; }; }; }
4668
 
4669
# Provide some information about the compiler.
4670
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4671
set X $ac_compile
4672
ac_compiler=$2
4673
{ (ac_try="$ac_compiler --version >&5"
4674
case "(($ac_try" in
4675
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676
  *) ac_try_echo=$ac_try;;
4677
esac
4678
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4679
$as_echo "$ac_try_echo") >&5
4680
  (eval "$ac_compiler --version >&5") 2>&5
4681
  ac_status=$?
4682
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683
  (exit $ac_status); }
4684
{ (ac_try="$ac_compiler -v >&5"
4685
case "(($ac_try" in
4686
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687
  *) ac_try_echo=$ac_try;;
4688
esac
4689
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4690
$as_echo "$ac_try_echo") >&5
4691
  (eval "$ac_compiler -v >&5") 2>&5
4692
  ac_status=$?
4693
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694
  (exit $ac_status); }
4695
{ (ac_try="$ac_compiler -V >&5"
4696
case "(($ac_try" in
4697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698
  *) ac_try_echo=$ac_try;;
4699
esac
4700
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4701
$as_echo "$ac_try_echo") >&5
4702
  (eval "$ac_compiler -V >&5") 2>&5
4703
  ac_status=$?
4704
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705
  (exit $ac_status); }
4706
 
4707
cat >conftest.$ac_ext <<_ACEOF
4708
/* confdefs.h.  */
4709
_ACEOF
4710
cat confdefs.h >>conftest.$ac_ext
4711
cat >>conftest.$ac_ext <<_ACEOF
4712
/* end confdefs.h.  */
4713
 
4714
int
4715
main ()
4716
{
4717
 
4718
  ;
4719
  return 0;
4720
}
4721
_ACEOF
4722
ac_clean_files_save=$ac_clean_files
4723
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4724
# Try to create an executable without -o first, disregard a.out.
4725
# It will help us diagnose broken compilers, and finding out an intuition
4726
# of exeext.
4727
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4728
$as_echo_n "checking for C compiler default output file name... " >&6; }
4729
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4730
 
4731
# The possible output files:
4732
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4733
 
4734
ac_rmfiles=
4735
for ac_file in $ac_files
4736
do
4737
  case $ac_file in
4738
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4739
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4740
  esac
4741
done
4742
rm -f $ac_rmfiles
4743
 
4744
if { (ac_try="$ac_link_default"
4745
case "(($ac_try" in
4746
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747
  *) ac_try_echo=$ac_try;;
4748
esac
4749
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4750
$as_echo "$ac_try_echo") >&5
4751
  (eval "$ac_link_default") 2>&5
4752
  ac_status=$?
4753
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754
  (exit $ac_status); }; then
4755
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4756
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4757
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4758
# so that the user can short-circuit this test for compilers unknown to
4759
# Autoconf.
4760
for ac_file in $ac_files ''
4761
do
4762
  test -f "$ac_file" || continue
4763
  case $ac_file in
4764
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4765
        ;;
4766
    [ab].out )
4767
        # We found the default executable, but exeext='' is most
4768
        # certainly right.
4769
        break;;
4770
    *.* )
4771
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4772
        then :; else
4773
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4774
        fi
4775
        # We set ac_cv_exeext here because the later test for it is not
4776
        # safe: cross compilers may not add the suffix if given an `-o'
4777
        # argument, so we may need to know it at that point already.
4778
        # Even if this section looks crufty: it has the advantage of
4779
        # actually working.
4780
        break;;
4781
    * )
4782
        break;;
4783
  esac
4784
done
4785
test "$ac_cv_exeext" = no && ac_cv_exeext=
4786
 
4787
else
4788
  ac_file=''
4789
fi
4790
 
4791
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4792
$as_echo "$ac_file" >&6; }
4793
if test -z "$ac_file"; then
4794
  $as_echo "$as_me: failed program was:" >&5
4795
sed 's/^/| /' conftest.$ac_ext >&5
4796
 
4797
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4798
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4799
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4800
See \`config.log' for more details." >&5
4801
$as_echo "$as_me: error: C compiler cannot create executables
4802
See \`config.log' for more details." >&2;}
4803
   { (exit 77); exit 77; }; }; }
4804
fi
4805
 
4806
ac_exeext=$ac_cv_exeext
4807
 
4808
# Check that the compiler produces executables we can run.  If not, either
4809
# the compiler is broken, or we cross compile.
4810
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4811
$as_echo_n "checking whether the C compiler works... " >&6; }
4812
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4813
# If not cross compiling, check that we can run a simple program.
4814
if test "$cross_compiling" != yes; then
4815
  if { ac_try='./$ac_file'
4816
  { (case "(($ac_try" in
4817
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818
  *) ac_try_echo=$ac_try;;
4819
esac
4820
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4821
$as_echo "$ac_try_echo") >&5
4822
  (eval "$ac_try") 2>&5
4823
  ac_status=$?
4824
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825
  (exit $ac_status); }; }; then
4826
    cross_compiling=no
4827
  else
4828
    if test "$cross_compiling" = maybe; then
4829
        cross_compiling=yes
4830
    else
4831
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4832
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4833
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4834
If you meant to cross compile, use \`--host'.
4835
See \`config.log' for more details." >&5
4836
$as_echo "$as_me: error: cannot run C compiled programs.
4837
If you meant to cross compile, use \`--host'.
4838
See \`config.log' for more details." >&2;}
4839
   { (exit 1); exit 1; }; }; }
4840
    fi
4841
  fi
4842
fi
4843
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4844
$as_echo "yes" >&6; }
4845
 
4846
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4847
ac_clean_files=$ac_clean_files_save
4848
# Check that the compiler produces executables we can run.  If not, either
4849
# the compiler is broken, or we cross compile.
4850
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4851
$as_echo_n "checking whether we are cross compiling... " >&6; }
4852
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4853
$as_echo "$cross_compiling" >&6; }
4854
 
4855
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4856
$as_echo_n "checking for suffix of executables... " >&6; }
4857
if { (ac_try="$ac_link"
4858
case "(($ac_try" in
4859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860
  *) ac_try_echo=$ac_try;;
4861
esac
4862
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4863
$as_echo "$ac_try_echo") >&5
4864
  (eval "$ac_link") 2>&5
4865
  ac_status=$?
4866
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867
  (exit $ac_status); }; then
4868
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4869
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4870
# work properly (i.e., refer to `conftest.exe'), while it won't with
4871
# `rm'.
4872
for ac_file in conftest.exe conftest conftest.*; do
4873
  test -f "$ac_file" || continue
4874
  case $ac_file in
4875
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4876
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4877
          break;;
4878
    * ) break;;
4879
  esac
4880
done
4881
else
4882
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4883
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4884
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4885
See \`config.log' for more details." >&5
4886
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4887
See \`config.log' for more details." >&2;}
4888
   { (exit 1); exit 1; }; }; }
4889
fi
4890
 
4891
rm -f conftest$ac_cv_exeext
4892
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4893
$as_echo "$ac_cv_exeext" >&6; }
4894
 
4895
rm -f conftest.$ac_ext
4896
EXEEXT=$ac_cv_exeext
4897
ac_exeext=$EXEEXT
4898
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4899
$as_echo_n "checking for suffix of object files... " >&6; }
4900
if test "${ac_cv_objext+set}" = set; then
4901
  $as_echo_n "(cached) " >&6
4902
else
4903
  cat >conftest.$ac_ext <<_ACEOF
4904
/* confdefs.h.  */
4905
_ACEOF
4906
cat confdefs.h >>conftest.$ac_ext
4907
cat >>conftest.$ac_ext <<_ACEOF
4908
/* end confdefs.h.  */
4909
 
4910
int
4911
main ()
4912
{
4913
 
4914
  ;
4915
  return 0;
4916
}
4917
_ACEOF
4918
rm -f conftest.o conftest.obj
4919
if { (ac_try="$ac_compile"
4920
case "(($ac_try" in
4921
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922
  *) ac_try_echo=$ac_try;;
4923
esac
4924
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4925
$as_echo "$ac_try_echo") >&5
4926
  (eval "$ac_compile") 2>&5
4927
  ac_status=$?
4928
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929
  (exit $ac_status); }; then
4930
  for ac_file in conftest.o conftest.obj conftest.*; do
4931
  test -f "$ac_file" || continue;
4932
  case $ac_file in
4933
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4934
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4935
       break;;
4936
  esac
4937
done
4938
else
4939
  $as_echo "$as_me: failed program was:" >&5
4940
sed 's/^/| /' conftest.$ac_ext >&5
4941
 
4942
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4943
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4944
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4945
See \`config.log' for more details." >&5
4946
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4947
See \`config.log' for more details." >&2;}
4948
   { (exit 1); exit 1; }; }; }
4949
fi
4950
 
4951
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4952
fi
4953
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4954
$as_echo "$ac_cv_objext" >&6; }
4955
OBJEXT=$ac_cv_objext
4956
ac_objext=$OBJEXT
4957
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4958
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4959
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4960
  $as_echo_n "(cached) " >&6
4961
else
4962
  cat >conftest.$ac_ext <<_ACEOF
4963
/* confdefs.h.  */
4964
_ACEOF
4965
cat confdefs.h >>conftest.$ac_ext
4966
cat >>conftest.$ac_ext <<_ACEOF
4967
/* end confdefs.h.  */
4968
 
4969
int
4970
main ()
4971
{
4972
#ifndef __GNUC__
4973
       choke me
4974
#endif
4975
 
4976
  ;
4977
  return 0;
4978
}
4979
_ACEOF
4980
rm -f conftest.$ac_objext
4981
if { (ac_try="$ac_compile"
4982
case "(($ac_try" in
4983
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984
  *) ac_try_echo=$ac_try;;
4985
esac
4986
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4987
$as_echo "$ac_try_echo") >&5
4988
  (eval "$ac_compile") 2>conftest.er1
4989
  ac_status=$?
4990
  grep -v '^ *+' conftest.er1 >conftest.err
4991
  rm -f conftest.er1
4992
  cat conftest.err >&5
4993
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994
  (exit $ac_status); } && {
4995
         test -z "$ac_c_werror_flag" ||
4996
         test ! -s conftest.err
4997
       } && test -s conftest.$ac_objext; then
4998
  ac_compiler_gnu=yes
4999
else
5000
  $as_echo "$as_me: failed program was:" >&5
5001
sed 's/^/| /' conftest.$ac_ext >&5
5002
 
5003
        ac_compiler_gnu=no
5004
fi
5005
 
5006
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007
ac_cv_c_compiler_gnu=$ac_compiler_gnu
5008
 
5009
fi
5010
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5011
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5012
if test $ac_compiler_gnu = yes; then
5013
  GCC=yes
5014
else
5015
  GCC=
5016
fi
5017
ac_test_CFLAGS=${CFLAGS+set}
5018
ac_save_CFLAGS=$CFLAGS
5019
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5020
$as_echo_n "checking whether $CC accepts -g... " >&6; }
5021
if test "${ac_cv_prog_cc_g+set}" = set; then
5022
  $as_echo_n "(cached) " >&6
5023
else
5024
  ac_save_c_werror_flag=$ac_c_werror_flag
5025
   ac_c_werror_flag=yes
5026
   ac_cv_prog_cc_g=no
5027
   CFLAGS="-g"
5028
   cat >conftest.$ac_ext <<_ACEOF
5029
/* confdefs.h.  */
5030
_ACEOF
5031
cat confdefs.h >>conftest.$ac_ext
5032
cat >>conftest.$ac_ext <<_ACEOF
5033
/* end confdefs.h.  */
5034
 
5035
int
5036
main ()
5037
{
5038
 
5039
  ;
5040
  return 0;
5041
}
5042
_ACEOF
5043
rm -f conftest.$ac_objext
5044
if { (ac_try="$ac_compile"
5045
case "(($ac_try" in
5046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047
  *) ac_try_echo=$ac_try;;
5048
esac
5049
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5050
$as_echo "$ac_try_echo") >&5
5051
  (eval "$ac_compile") 2>conftest.er1
5052
  ac_status=$?
5053
  grep -v '^ *+' conftest.er1 >conftest.err
5054
  rm -f conftest.er1
5055
  cat conftest.err >&5
5056
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057
  (exit $ac_status); } && {
5058
         test -z "$ac_c_werror_flag" ||
5059
         test ! -s conftest.err
5060
       } && test -s conftest.$ac_objext; then
5061
  ac_cv_prog_cc_g=yes
5062
else
5063
  $as_echo "$as_me: failed program was:" >&5
5064
sed 's/^/| /' conftest.$ac_ext >&5
5065
 
5066
        CFLAGS=""
5067
      cat >conftest.$ac_ext <<_ACEOF
5068
/* confdefs.h.  */
5069
_ACEOF
5070
cat confdefs.h >>conftest.$ac_ext
5071
cat >>conftest.$ac_ext <<_ACEOF
5072
/* end confdefs.h.  */
5073
 
5074
int
5075
main ()
5076
{
5077
 
5078
  ;
5079
  return 0;
5080
}
5081
_ACEOF
5082
rm -f conftest.$ac_objext
5083
if { (ac_try="$ac_compile"
5084
case "(($ac_try" in
5085
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086
  *) ac_try_echo=$ac_try;;
5087
esac
5088
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5089
$as_echo "$ac_try_echo") >&5
5090
  (eval "$ac_compile") 2>conftest.er1
5091
  ac_status=$?
5092
  grep -v '^ *+' conftest.er1 >conftest.err
5093
  rm -f conftest.er1
5094
  cat conftest.err >&5
5095
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096
  (exit $ac_status); } && {
5097
         test -z "$ac_c_werror_flag" ||
5098
         test ! -s conftest.err
5099
       } && test -s conftest.$ac_objext; then
5100
  :
5101
else
5102
  $as_echo "$as_me: failed program was:" >&5
5103
sed 's/^/| /' conftest.$ac_ext >&5
5104
 
5105
        ac_c_werror_flag=$ac_save_c_werror_flag
5106
         CFLAGS="-g"
5107
         cat >conftest.$ac_ext <<_ACEOF
5108
/* confdefs.h.  */
5109
_ACEOF
5110
cat confdefs.h >>conftest.$ac_ext
5111
cat >>conftest.$ac_ext <<_ACEOF
5112
/* end confdefs.h.  */
5113
 
5114
int
5115
main ()
5116
{
5117
 
5118
  ;
5119
  return 0;
5120
}
5121
_ACEOF
5122
rm -f conftest.$ac_objext
5123
if { (ac_try="$ac_compile"
5124
case "(($ac_try" in
5125
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126
  *) ac_try_echo=$ac_try;;
5127
esac
5128
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5129
$as_echo "$ac_try_echo") >&5
5130
  (eval "$ac_compile") 2>conftest.er1
5131
  ac_status=$?
5132
  grep -v '^ *+' conftest.er1 >conftest.err
5133
  rm -f conftest.er1
5134
  cat conftest.err >&5
5135
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136
  (exit $ac_status); } && {
5137
         test -z "$ac_c_werror_flag" ||
5138
         test ! -s conftest.err
5139
       } && test -s conftest.$ac_objext; then
5140
  ac_cv_prog_cc_g=yes
5141
else
5142
  $as_echo "$as_me: failed program was:" >&5
5143
sed 's/^/| /' conftest.$ac_ext >&5
5144
 
5145
 
5146
fi
5147
 
5148
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149
fi
5150
 
5151
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152
fi
5153
 
5154
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155
   ac_c_werror_flag=$ac_save_c_werror_flag
5156
fi
5157
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5158
$as_echo "$ac_cv_prog_cc_g" >&6; }
5159
if test "$ac_test_CFLAGS" = set; then
5160
  CFLAGS=$ac_save_CFLAGS
5161
elif test $ac_cv_prog_cc_g = yes; then
5162
  if test "$GCC" = yes; then
5163
    CFLAGS="-g -O2"
5164
  else
5165
    CFLAGS="-g"
5166
  fi
5167
else
5168
  if test "$GCC" = yes; then
5169
    CFLAGS="-O2"
5170
  else
5171
    CFLAGS=
5172
  fi
5173
fi
5174
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5175
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5176
if test "${ac_cv_prog_cc_c89+set}" = set; then
5177
  $as_echo_n "(cached) " >&6
5178
else
5179
  ac_cv_prog_cc_c89=no
5180
ac_save_CC=$CC
5181
cat >conftest.$ac_ext <<_ACEOF
5182
/* confdefs.h.  */
5183
_ACEOF
5184
cat confdefs.h >>conftest.$ac_ext
5185
cat >>conftest.$ac_ext <<_ACEOF
5186
/* end confdefs.h.  */
5187
#include 
5188
#include 
5189
#include 
5190
#include 
5191
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5192
struct buf { int x; };
5193
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5194
static char *e (p, i)
5195
     char **p;
5196
     int i;
5197
{
5198
  return p[i];
5199
}
5200
static char *f (char * (*g) (char **, int), char **p, ...)
5201
{
5202
  char *s;
5203
  va_list v;
5204
  va_start (v,p);
5205
  s = g (p, va_arg (v,int));
5206
  va_end (v);
5207
  return s;
5208
}
5209
 
5210
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5211
   function prototypes and stuff, but not '\xHH' hex character constants.
5212
   These don't provoke an error unfortunately, instead are silently treated
5213
   as 'x'.  The following induces an error, until -std is added to get
5214
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5215
   array size at least.  It's necessary to write '\x00'==0 to get something
5216
   that's true only with -std.  */
5217
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5218
 
5219
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5220
   inside strings and character constants.  */
5221
#define FOO(x) 'x'
5222
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5223
 
5224
int test (int i, double x);
5225
struct s1 {int (*f) (int a);};
5226
struct s2 {int (*f) (double a);};
5227
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5228
int argc;
5229
char **argv;
5230
int
5231
main ()
5232
{
5233
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5234
  ;
5235
  return 0;
5236
}
5237
_ACEOF
5238
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5239
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5240
do
5241
  CC="$ac_save_CC $ac_arg"
5242
  rm -f conftest.$ac_objext
5243
if { (ac_try="$ac_compile"
5244
case "(($ac_try" in
5245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246
  *) ac_try_echo=$ac_try;;
5247
esac
5248
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5249
$as_echo "$ac_try_echo") >&5
5250
  (eval "$ac_compile") 2>conftest.er1
5251
  ac_status=$?
5252
  grep -v '^ *+' conftest.er1 >conftest.err
5253
  rm -f conftest.er1
5254
  cat conftest.err >&5
5255
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256
  (exit $ac_status); } && {
5257
         test -z "$ac_c_werror_flag" ||
5258
         test ! -s conftest.err
5259
       } && test -s conftest.$ac_objext; then
5260
  ac_cv_prog_cc_c89=$ac_arg
5261
else
5262
  $as_echo "$as_me: failed program was:" >&5
5263
sed 's/^/| /' conftest.$ac_ext >&5
5264
 
5265
 
5266
fi
5267
 
5268
rm -f core conftest.err conftest.$ac_objext
5269
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5270
done
5271
rm -f conftest.$ac_ext
5272
CC=$ac_save_CC
5273
 
5274
fi
5275
# AC_CACHE_VAL
5276
case "x$ac_cv_prog_cc_c89" in
5277
  x)
5278
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5279
$as_echo "none needed" >&6; } ;;
5280
  xno)
5281
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5282
$as_echo "unsupported" >&6; } ;;
5283
  *)
5284
    CC="$CC $ac_cv_prog_cc_c89"
5285
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5286
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5287
esac
5288
 
5289
 
5290
ac_ext=c
5291
ac_cpp='$CPP $CPPFLAGS'
5292
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5293
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5294
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5295
 
5296
depcc="$CC"   am_compiler_list=
5297
 
5298
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5299
$as_echo_n "checking dependency style of $depcc... " >&6; }
5300
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5301
  $as_echo_n "(cached) " >&6
5302
else
5303
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5304
  # We make a subdir and do the tests there.  Otherwise we can end up
5305
  # making bogus files that we don't know about and never remove.  For
5306
  # instance it was reported that on HP-UX the gcc test will end up
5307
  # making a dummy file named `D' -- because `-MD' means `put the output
5308
  # in D'.
5309
  mkdir conftest.dir
5310
  # Copy depcomp to subdir because otherwise we won't find it if we're
5311
  # using a relative directory.
5312
  cp "$am_depcomp" conftest.dir
5313
  cd conftest.dir
5314
  # We will build objects and dependencies in a subdirectory because
5315
  # it helps to detect inapplicable dependency modes.  For instance
5316
  # both Tru64's cc and ICC support -MD to output dependencies as a
5317
  # side effect of compilation, but ICC will put the dependencies in
5318
  # the current directory while Tru64 will put them in the object
5319
  # directory.
5320
  mkdir sub
5321
 
5322
  am_cv_CC_dependencies_compiler_type=none
5323
  if test "$am_compiler_list" = ""; then
5324
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5325
  fi
5326
  am__universal=false
5327
  case " $depcc " in #(
5328
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5329
     esac
5330
 
5331
  for depmode in $am_compiler_list; do
5332
    # Setup a source with many dependencies, because some compilers
5333
    # like to wrap large dependency lists on column 80 (with \), and
5334
    # we should not choose a depcomp mode which is confused by this.
5335
    #
5336
    # We need to recreate these files for each test, as the compiler may
5337
    # overwrite some of them when testing with obscure command lines.
5338
    # This happens at least with the AIX C compiler.
5339
    : > sub/conftest.c
5340
    for i in 1 2 3 4 5 6; do
5341
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5342
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5343
      # Solaris 8's {/usr,}/bin/sh.
5344
      touch sub/conftst$i.h
5345
    done
5346
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5347
 
5348
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5349
    # mode.  It turns out that the SunPro C++ compiler does not properly
5350
    # handle `-M -o', and we need to detect this.  Also, some Intel
5351
    # versions had trouble with output in subdirs
5352
    am__obj=sub/conftest.${OBJEXT-o}
5353
    am__minus_obj="-o $am__obj"
5354
    case $depmode in
5355
    gcc)
5356
      # This depmode causes a compiler race in universal mode.
5357
      test "$am__universal" = false || continue
5358
      ;;
5359
    nosideeffect)
5360
      # after this tag, mechanisms are not by side-effect, so they'll
5361
      # only be used when explicitly requested
5362
      if test "x$enable_dependency_tracking" = xyes; then
5363
        continue
5364
      else
5365
        break
5366
      fi
5367
      ;;
5368
    msvisualcpp | msvcmsys)
5369
      # This compiler won't grok `-c -o', but also, the minuso test has
5370
      # not run yet.  These depmodes are late enough in the game, and
5371
      # so weak that their functioning should not be impacted.
5372
      am__obj=conftest.${OBJEXT-o}
5373
      am__minus_obj=
5374
      ;;
5375
    none) break ;;
5376
    esac
5377
    if depmode=$depmode \
5378
       source=sub/conftest.c object=$am__obj \
5379
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5380
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5381
         >/dev/null 2>conftest.err &&
5382
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5383
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5384
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5385
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5386
      # icc doesn't choke on unknown options, it will just issue warnings
5387
      # or remarks (even with -Werror).  So we grep stderr for any message
5388
      # that says an option was ignored or not supported.
5389
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5390
      #   icc: Command line warning: ignoring option '-M'; no argument required
5391
      # The diagnosis changed in icc 8.0:
5392
      #   icc: Command line remark: option '-MP' not supported
5393
      if (grep 'ignoring option' conftest.err ||
5394
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5395
        am_cv_CC_dependencies_compiler_type=$depmode
5396
        break
5397
      fi
5398
    fi
5399
  done
5400
 
5401
  cd ..
5402
  rm -rf conftest.dir
5403
else
5404
  am_cv_CC_dependencies_compiler_type=none
5405
fi
5406
 
5407
fi
5408
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5409
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5410
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5411
 
5412
 if
5413
  test "x$enable_dependency_tracking" != xno \
5414
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5415
  am__fastdepCC_TRUE=
5416
  am__fastdepCC_FALSE='#'
5417
else
5418
  am__fastdepCC_TRUE='#'
5419
  am__fastdepCC_FALSE=
5420
fi
5421
 
5422
 
5423
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5424
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5425
if test "${ac_cv_path_GREP+set}" = set; then
5426
  $as_echo_n "(cached) " >&6
5427
else
5428
  if test -z "$GREP"; then
5429
  ac_path_GREP_found=false
5430
  # Loop through the user's path and test for each of PROGNAME-LIST
5431
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5433
do
5434
  IFS=$as_save_IFS
5435
  test -z "$as_dir" && as_dir=.
5436
  for ac_prog in grep ggrep; do
5437
    for ac_exec_ext in '' $ac_executable_extensions; do
5438
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5439
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5440
# Check for GNU ac_path_GREP and select it if it is found.
5441
  # Check for GNU $ac_path_GREP
5442
case `"$ac_path_GREP" --version 2>&1` in
5443
*GNU*)
5444
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5445
*)
5446
  ac_count=0
5447
  $as_echo_n 0123456789 >"conftest.in"
5448
  while :
5449
  do
5450
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5451
    mv "conftest.tmp" "conftest.in"
5452
    cp "conftest.in" "conftest.nl"
5453
    $as_echo 'GREP' >> "conftest.nl"
5454
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5455
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5456
    ac_count=`expr $ac_count + 1`
5457
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5458
      # Best one so far, save it but keep looking for a better one
5459
      ac_cv_path_GREP="$ac_path_GREP"
5460
      ac_path_GREP_max=$ac_count
5461
    fi
5462
    # 10*(2^10) chars as input seems more than enough
5463
    test $ac_count -gt 10 && break
5464
  done
5465
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5466
esac
5467
 
5468
      $ac_path_GREP_found && break 3
5469
    done
5470
  done
5471
done
5472
IFS=$as_save_IFS
5473
  if test -z "$ac_cv_path_GREP"; then
5474
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5475
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5476
   { (exit 1); exit 1; }; }
5477
  fi
5478
else
5479
  ac_cv_path_GREP=$GREP
5480
fi
5481
 
5482
fi
5483
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5484
$as_echo "$ac_cv_path_GREP" >&6; }
5485
 GREP="$ac_cv_path_GREP"
5486
 
5487
 
5488
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5489
$as_echo_n "checking for egrep... " >&6; }
5490
if test "${ac_cv_path_EGREP+set}" = set; then
5491
  $as_echo_n "(cached) " >&6
5492
else
5493
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5494
   then ac_cv_path_EGREP="$GREP -E"
5495
   else
5496
     if test -z "$EGREP"; then
5497
  ac_path_EGREP_found=false
5498
  # Loop through the user's path and test for each of PROGNAME-LIST
5499
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5501
do
5502
  IFS=$as_save_IFS
5503
  test -z "$as_dir" && as_dir=.
5504
  for ac_prog in egrep; do
5505
    for ac_exec_ext in '' $ac_executable_extensions; do
5506
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5507
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5508
# Check for GNU ac_path_EGREP and select it if it is found.
5509
  # Check for GNU $ac_path_EGREP
5510
case `"$ac_path_EGREP" --version 2>&1` in
5511
*GNU*)
5512
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5513
*)
5514
  ac_count=0
5515
  $as_echo_n 0123456789 >"conftest.in"
5516
  while :
5517
  do
5518
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5519
    mv "conftest.tmp" "conftest.in"
5520
    cp "conftest.in" "conftest.nl"
5521
    $as_echo 'EGREP' >> "conftest.nl"
5522
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5523
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5524
    ac_count=`expr $ac_count + 1`
5525
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5526
      # Best one so far, save it but keep looking for a better one
5527
      ac_cv_path_EGREP="$ac_path_EGREP"
5528
      ac_path_EGREP_max=$ac_count
5529
    fi
5530
    # 10*(2^10) chars as input seems more than enough
5531
    test $ac_count -gt 10 && break
5532
  done
5533
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5534
esac
5535
 
5536
      $ac_path_EGREP_found && break 3
5537
    done
5538
  done
5539
done
5540
IFS=$as_save_IFS
5541
  if test -z "$ac_cv_path_EGREP"; then
5542
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5543
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5544
   { (exit 1); exit 1; }; }
5545
  fi
5546
else
5547
  ac_cv_path_EGREP=$EGREP
5548
fi
5549
 
5550
   fi
5551
fi
5552
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5553
$as_echo "$ac_cv_path_EGREP" >&6; }
5554
 EGREP="$ac_cv_path_EGREP"
5555
 
5556
 
5557
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5558
$as_echo_n "checking for fgrep... " >&6; }
5559
if test "${ac_cv_path_FGREP+set}" = set; then
5560
  $as_echo_n "(cached) " >&6
5561
else
5562
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5563
   then ac_cv_path_FGREP="$GREP -F"
5564
   else
5565
     if test -z "$FGREP"; then
5566
  ac_path_FGREP_found=false
5567
  # Loop through the user's path and test for each of PROGNAME-LIST
5568
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5570
do
5571
  IFS=$as_save_IFS
5572
  test -z "$as_dir" && as_dir=.
5573
  for ac_prog in fgrep; do
5574
    for ac_exec_ext in '' $ac_executable_extensions; do
5575
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5576
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5577
# Check for GNU ac_path_FGREP and select it if it is found.
5578
  # Check for GNU $ac_path_FGREP
5579
case `"$ac_path_FGREP" --version 2>&1` in
5580
*GNU*)
5581
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5582
*)
5583
  ac_count=0
5584
  $as_echo_n 0123456789 >"conftest.in"
5585
  while :
5586
  do
5587
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5588
    mv "conftest.tmp" "conftest.in"
5589
    cp "conftest.in" "conftest.nl"
5590
    $as_echo 'FGREP' >> "conftest.nl"
5591
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5592
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5593
    ac_count=`expr $ac_count + 1`
5594
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5595
      # Best one so far, save it but keep looking for a better one
5596
      ac_cv_path_FGREP="$ac_path_FGREP"
5597
      ac_path_FGREP_max=$ac_count
5598
    fi
5599
    # 10*(2^10) chars as input seems more than enough
5600
    test $ac_count -gt 10 && break
5601
  done
5602
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5603
esac
5604
 
5605
      $ac_path_FGREP_found && break 3
5606
    done
5607
  done
5608
done
5609
IFS=$as_save_IFS
5610
  if test -z "$ac_cv_path_FGREP"; then
5611
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5612
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5613
   { (exit 1); exit 1; }; }
5614
  fi
5615
else
5616
  ac_cv_path_FGREP=$FGREP
5617
fi
5618
 
5619
   fi
5620
fi
5621
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5622
$as_echo "$ac_cv_path_FGREP" >&6; }
5623
 FGREP="$ac_cv_path_FGREP"
5624
 
5625
 
5626
test -z "$GREP" && GREP=grep
5627
 
5628
 
5629
 
5630
 
5631
 
5632
 
5633
 
5634
 
5635
 
5636
 
5637
 
5638
 
5639
 
5640
 
5641
 
5642
 
5643
 
5644
 
5645
 
5646
# Check whether --with-gnu-ld was given.
5647
if test "${with_gnu_ld+set}" = set; then
5648
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5649
else
5650
  with_gnu_ld=no
5651
fi
5652
 
5653
ac_prog=ld
5654
if test "$GCC" = yes; then
5655
  # Check if gcc -print-prog-name=ld gives a path.
5656
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5657
$as_echo_n "checking for ld used by $CC... " >&6; }
5658
  case $host in
5659
  *-*-mingw*)
5660
    # gcc leaves a trailing carriage return which upsets mingw
5661
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5662
  *)
5663
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5664
  esac
5665
  case $ac_prog in
5666
    # Accept absolute paths.
5667
    [\\/]* | ?:[\\/]*)
5668
      re_direlt='/[^/][^/]*/\.\./'
5669
      # Canonicalize the pathname of ld
5670
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5671
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5672
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5673
      done
5674
      test -z "$LD" && LD="$ac_prog"
5675
      ;;
5676
  "")
5677
    # If it fails, then pretend we aren't using GCC.
5678
    ac_prog=ld
5679
    ;;
5680
  *)
5681
    # If it is relative, then search for the first ld in PATH.
5682
    with_gnu_ld=unknown
5683
    ;;
5684
  esac
5685
elif test "$with_gnu_ld" = yes; then
5686
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5687
$as_echo_n "checking for GNU ld... " >&6; }
5688
else
5689
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5690
$as_echo_n "checking for non-GNU ld... " >&6; }
5691
fi
5692
if test "${lt_cv_path_LD+set}" = set; then
5693
  $as_echo_n "(cached) " >&6
5694
else
5695
  if test -z "$LD"; then
5696
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5697
  for ac_dir in $PATH; do
5698
    IFS="$lt_save_ifs"
5699
    test -z "$ac_dir" && ac_dir=.
5700
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5701
      lt_cv_path_LD="$ac_dir/$ac_prog"
5702
      # Check to see if the program is GNU ld.  I'd rather use --version,
5703
      # but apparently some variants of GNU ld only accept -v.
5704
      # Break only if it was the GNU/non-GNU ld that we prefer.
5705
      case `"$lt_cv_path_LD" -v 2>&1 
5706
      *GNU* | *'with BFD'*)
5707
        test "$with_gnu_ld" != no && break
5708
        ;;
5709
      *)
5710
        test "$with_gnu_ld" != yes && break
5711
        ;;
5712
      esac
5713
    fi
5714
  done
5715
  IFS="$lt_save_ifs"
5716
else
5717
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5718
fi
5719
fi
5720
 
5721
LD="$lt_cv_path_LD"
5722
if test -n "$LD"; then
5723
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5724
$as_echo "$LD" >&6; }
5725
else
5726
  { $as_echo "$as_me:$LINENO: result: no" >&5
5727
$as_echo "no" >&6; }
5728
fi
5729
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5730
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5731
   { (exit 1); exit 1; }; }
5732
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5733
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5734
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5735
  $as_echo_n "(cached) " >&6
5736
else
5737
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5738
case `$LD -v 2>&1 
5739
*GNU* | *'with BFD'*)
5740
  lt_cv_prog_gnu_ld=yes
5741
  ;;
5742
*)
5743
  lt_cv_prog_gnu_ld=no
5744
  ;;
5745
esac
5746
fi
5747
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5748
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5749
with_gnu_ld=$lt_cv_prog_gnu_ld
5750
 
5751
 
5752
 
5753
 
5754
 
5755
 
5756
 
5757
 
5758
 
5759
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5760
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5761
if test "${lt_cv_path_NM+set}" = set; then
5762
  $as_echo_n "(cached) " >&6
5763
else
5764
  if test -n "$NM"; then
5765
  # Let the user override the test.
5766
  lt_cv_path_NM="$NM"
5767
else
5768
  lt_nm_to_check="${ac_tool_prefix}nm"
5769
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5770
    lt_nm_to_check="$lt_nm_to_check nm"
5771
  fi
5772
  for lt_tmp_nm in $lt_nm_to_check; do
5773
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5774
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5775
      IFS="$lt_save_ifs"
5776
      test -z "$ac_dir" && ac_dir=.
5777
      tmp_nm="$ac_dir/$lt_tmp_nm"
5778
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5779
        # Check to see if the nm accepts a BSD-compat flag.
5780
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5781
        #   nm: unknown option "B" ignored
5782
        # Tru64's nm complains that /dev/null is an invalid object file
5783
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5784
        */dev/null* | *'Invalid file or object type'*)
5785
          lt_cv_path_NM="$tmp_nm -B"
5786
          break
5787
          ;;
5788
        *)
5789
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5790
          */dev/null*)
5791
            lt_cv_path_NM="$tmp_nm -p"
5792
            break
5793
            ;;
5794
          *)
5795
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5796
            continue # so that we can try to find one that supports BSD flags
5797
            ;;
5798
          esac
5799
          ;;
5800
        esac
5801
      fi
5802
    done
5803
    IFS="$lt_save_ifs"
5804
  done
5805
  : ${lt_cv_path_NM=no}
5806
fi
5807
fi
5808
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5809
$as_echo "$lt_cv_path_NM" >&6; }
5810
if test "$lt_cv_path_NM" != "no"; then
5811
  NM="$lt_cv_path_NM"
5812
else
5813
  # Didn't find any BSD compatible name lister, look for dumpbin.
5814
  if test -n "$ac_tool_prefix"; then
5815
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5816
  do
5817
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5818
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5819
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5820
$as_echo_n "checking for $ac_word... " >&6; }
5821
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5822
  $as_echo_n "(cached) " >&6
5823
else
5824
  if test -n "$DUMPBIN"; then
5825
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5826
else
5827
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828
for as_dir in $PATH
5829
do
5830
  IFS=$as_save_IFS
5831
  test -z "$as_dir" && as_dir=.
5832
  for ac_exec_ext in '' $ac_executable_extensions; do
5833
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5835
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836
    break 2
5837
  fi
5838
done
5839
done
5840
IFS=$as_save_IFS
5841
 
5842
fi
5843
fi
5844
DUMPBIN=$ac_cv_prog_DUMPBIN
5845
if test -n "$DUMPBIN"; then
5846
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5847
$as_echo "$DUMPBIN" >&6; }
5848
else
5849
  { $as_echo "$as_me:$LINENO: result: no" >&5
5850
$as_echo "no" >&6; }
5851
fi
5852
 
5853
 
5854
    test -n "$DUMPBIN" && break
5855
  done
5856
fi
5857
if test -z "$DUMPBIN"; then
5858
  ac_ct_DUMPBIN=$DUMPBIN
5859
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5860
do
5861
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5862
set dummy $ac_prog; ac_word=$2
5863
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5864
$as_echo_n "checking for $ac_word... " >&6; }
5865
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5866
  $as_echo_n "(cached) " >&6
5867
else
5868
  if test -n "$ac_ct_DUMPBIN"; then
5869
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5870
else
5871
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872
for as_dir in $PATH
5873
do
5874
  IFS=$as_save_IFS
5875
  test -z "$as_dir" && as_dir=.
5876
  for ac_exec_ext in '' $ac_executable_extensions; do
5877
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5879
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880
    break 2
5881
  fi
5882
done
5883
done
5884
IFS=$as_save_IFS
5885
 
5886
fi
5887
fi
5888
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5889
if test -n "$ac_ct_DUMPBIN"; then
5890
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5891
$as_echo "$ac_ct_DUMPBIN" >&6; }
5892
else
5893
  { $as_echo "$as_me:$LINENO: result: no" >&5
5894
$as_echo "no" >&6; }
5895
fi
5896
 
5897
 
5898
  test -n "$ac_ct_DUMPBIN" && break
5899
done
5900
 
5901
  if test "x$ac_ct_DUMPBIN" = x; then
5902
    DUMPBIN=":"
5903
  else
5904
    case $cross_compiling:$ac_tool_warned in
5905
yes:)
5906
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5907
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5908
ac_tool_warned=yes ;;
5909
esac
5910
    DUMPBIN=$ac_ct_DUMPBIN
5911
  fi
5912
fi
5913
 
5914
 
5915
  if test "$DUMPBIN" != ":"; then
5916
    NM="$DUMPBIN"
5917
  fi
5918
fi
5919
test -z "$NM" && NM=nm
5920
 
5921
 
5922
 
5923
 
5924
 
5925
 
5926
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5927
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5928
if test "${lt_cv_nm_interface+set}" = set; then
5929
  $as_echo_n "(cached) " >&6
5930
else
5931
  lt_cv_nm_interface="BSD nm"
5932
  echo "int some_variable = 0;" > conftest.$ac_ext
5933
  (eval echo "\"\$as_me:5933: $ac_compile\"" >&5)
5934
  (eval "$ac_compile" 2>conftest.err)
5935
  cat conftest.err >&5
5936
  (eval echo "\"\$as_me:5936: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5937
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5938
  cat conftest.err >&5
5939
  (eval echo "\"\$as_me:5939: output\"" >&5)
5940
  cat conftest.out >&5
5941
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5942
    lt_cv_nm_interface="MS dumpbin"
5943
  fi
5944
  rm -f conftest*
5945
fi
5946
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5947
$as_echo "$lt_cv_nm_interface" >&6; }
5948
 
5949
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5950
$as_echo_n "checking whether ln -s works... " >&6; }
5951
LN_S=$as_ln_s
5952
if test "$LN_S" = "ln -s"; then
5953
  { $as_echo "$as_me:$LINENO: result: yes" >&5
5954
$as_echo "yes" >&6; }
5955
else
5956
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5957
$as_echo "no, using $LN_S" >&6; }
5958
fi
5959
 
5960
# find the maximum length of command line arguments
5961
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5962
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5963
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5964
  $as_echo_n "(cached) " >&6
5965
else
5966
    i=0
5967
  teststring="ABCD"
5968
 
5969
  case $build_os in
5970
  msdosdjgpp*)
5971
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5972
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5973
    # during glob expansion).  Even if it were fixed, the result of this
5974
    # check would be larger than it should be.
5975
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5976
    ;;
5977
 
5978
  gnu*)
5979
    # Under GNU Hurd, this test is not required because there is
5980
    # no limit to the length of command line arguments.
5981
    # Libtool will interpret -1 as no limit whatsoever
5982
    lt_cv_sys_max_cmd_len=-1;
5983
    ;;
5984
 
5985
  cygwin* | mingw* | cegcc*)
5986
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5987
    # about 5 minutes as the teststring grows exponentially.
5988
    # Worse, since 9x/ME are not pre-emptively multitasking,
5989
    # you end up with a "frozen" computer, even though with patience
5990
    # the test eventually succeeds (with a max line length of 256k).
5991
    # Instead, let's just punt: use the minimum linelength reported by
5992
    # all of the supported platforms: 8192 (on NT/2K/XP).
5993
    lt_cv_sys_max_cmd_len=8192;
5994
    ;;
5995
 
5996
  amigaos*)
5997
    # On AmigaOS with pdksh, this test takes hours, literally.
5998
    # So we just punt and use a minimum line length of 8192.
5999
    lt_cv_sys_max_cmd_len=8192;
6000
    ;;
6001
 
6002
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6003
    # This has been around since 386BSD, at least.  Likely further.
6004
    if test -x /sbin/sysctl; then
6005
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6006
    elif test -x /usr/sbin/sysctl; then
6007
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6008
    else
6009
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6010
    fi
6011
    # And add a safety zone
6012
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6013
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6014
    ;;
6015
 
6016
  interix*)
6017
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6018
    lt_cv_sys_max_cmd_len=196608
6019
    ;;
6020
 
6021
  osf*)
6022
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6023
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6024
    # nice to cause kernel panics so lets avoid the loop below.
6025
    # First set a reasonable default.
6026
    lt_cv_sys_max_cmd_len=16384
6027
    #
6028
    if test -x /sbin/sysconfig; then
6029
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6030
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6031
      esac
6032
    fi
6033
    ;;
6034
  sco3.2v5*)
6035
    lt_cv_sys_max_cmd_len=102400
6036
    ;;
6037
  sysv5* | sco5v6* | sysv4.2uw2*)
6038
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6039
    if test -n "$kargmax"; then
6040
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6041
    else
6042
      lt_cv_sys_max_cmd_len=32768
6043
    fi
6044
    ;;
6045
  *)
6046
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6047
    if test -n "$lt_cv_sys_max_cmd_len"; then
6048
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6049
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6050
    else
6051
      # Make teststring a little bigger before we do anything with it.
6052
      # a 1K string should be a reasonable start.
6053
      for i in 1 2 3 4 5 6 7 8 ; do
6054
        teststring=$teststring$teststring
6055
      done
6056
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6057
      # If test is not a shell built-in, we'll probably end up computing a
6058
      # maximum length that is only half of the actual maximum length, but
6059
      # we can't tell.
6060
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6061
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6062
              test $i != 17 # 1/2 MB should be enough
6063
      do
6064
        i=`expr $i + 1`
6065
        teststring=$teststring$teststring
6066
      done
6067
      # Only check the string length outside the loop.
6068
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6069
      teststring=
6070
      # Add a significant safety factor because C++ compilers can tack on
6071
      # massive amounts of additional arguments before passing them to the
6072
      # linker.  It appears as though 1/2 is a usable value.
6073
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6074
    fi
6075
    ;;
6076
  esac
6077
 
6078
fi
6079
 
6080
if test -n $lt_cv_sys_max_cmd_len ; then
6081
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6082
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6083
else
6084
  { $as_echo "$as_me:$LINENO: result: none" >&5
6085
$as_echo "none" >&6; }
6086
fi
6087
max_cmd_len=$lt_cv_sys_max_cmd_len
6088
 
6089
 
6090
 
6091
 
6092
 
6093
 
6094
: ${CP="cp -f"}
6095
: ${MV="mv -f"}
6096
: ${RM="rm -f"}
6097
 
6098
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6099
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6100
# Try some XSI features
6101
xsi_shell=no
6102
( _lt_dummy="a/b/c"
6103
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6104
      = c,a/b,, \
6105
    && eval 'test $(( 1 + 1 )) -eq 2 \
6106
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6107
  && xsi_shell=yes
6108
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6109
$as_echo "$xsi_shell" >&6; }
6110
 
6111
 
6112
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6113
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6114
lt_shell_append=no
6115
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6116
    >/dev/null 2>&1 \
6117
  && lt_shell_append=yes
6118
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6119
$as_echo "$lt_shell_append" >&6; }
6120
 
6121
 
6122
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6123
  lt_unset=unset
6124
else
6125
  lt_unset=false
6126
fi
6127
 
6128
 
6129
 
6130
 
6131
 
6132
# test EBCDIC or ASCII
6133
case `echo X|tr X '\101'` in
6134
 A) # ASCII based system
6135
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6136
  lt_SP2NL='tr \040 \012'
6137
  lt_NL2SP='tr \015\012 \040\040'
6138
  ;;
6139
 *) # EBCDIC based system
6140
  lt_SP2NL='tr \100 \n'
6141
  lt_NL2SP='tr \r\n \100\100'
6142
  ;;
6143
esac
6144
 
6145
 
6146
 
6147
 
6148
 
6149
 
6150
 
6151
 
6152
 
6153
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6154
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6155
if test "${lt_cv_ld_reload_flag+set}" = set; then
6156
  $as_echo_n "(cached) " >&6
6157
else
6158
  lt_cv_ld_reload_flag='-r'
6159
fi
6160
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6161
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6162
reload_flag=$lt_cv_ld_reload_flag
6163
case $reload_flag in
6164
"" | " "*) ;;
6165
*) reload_flag=" $reload_flag" ;;
6166
esac
6167
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6168
case $host_os in
6169
  darwin*)
6170
    if test "$GCC" = yes; then
6171
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6172
    else
6173
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6174
    fi
6175
    ;;
6176
esac
6177
 
6178
 
6179
 
6180
 
6181
 
6182
 
6183
 
6184
 
6185
 
6186
if test -n "$ac_tool_prefix"; then
6187
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6188
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6189
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6190
$as_echo_n "checking for $ac_word... " >&6; }
6191
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6192
  $as_echo_n "(cached) " >&6
6193
else
6194
  if test -n "$OBJDUMP"; then
6195
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6196
else
6197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198
for as_dir in $PATH
6199
do
6200
  IFS=$as_save_IFS
6201
  test -z "$as_dir" && as_dir=.
6202
  for ac_exec_ext in '' $ac_executable_extensions; do
6203
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6205
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206
    break 2
6207
  fi
6208
done
6209
done
6210
IFS=$as_save_IFS
6211
 
6212
fi
6213
fi
6214
OBJDUMP=$ac_cv_prog_OBJDUMP
6215
if test -n "$OBJDUMP"; then
6216
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6217
$as_echo "$OBJDUMP" >&6; }
6218
else
6219
  { $as_echo "$as_me:$LINENO: result: no" >&5
6220
$as_echo "no" >&6; }
6221
fi
6222
 
6223
 
6224
fi
6225
if test -z "$ac_cv_prog_OBJDUMP"; then
6226
  ac_ct_OBJDUMP=$OBJDUMP
6227
  # Extract the first word of "objdump", so it can be a program name with args.
6228
set dummy objdump; ac_word=$2
6229
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6230
$as_echo_n "checking for $ac_word... " >&6; }
6231
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6232
  $as_echo_n "(cached) " >&6
6233
else
6234
  if test -n "$ac_ct_OBJDUMP"; then
6235
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6236
else
6237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238
for as_dir in $PATH
6239
do
6240
  IFS=$as_save_IFS
6241
  test -z "$as_dir" && as_dir=.
6242
  for ac_exec_ext in '' $ac_executable_extensions; do
6243
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6245
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246
    break 2
6247
  fi
6248
done
6249
done
6250
IFS=$as_save_IFS
6251
 
6252
fi
6253
fi
6254
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6255
if test -n "$ac_ct_OBJDUMP"; then
6256
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6257
$as_echo "$ac_ct_OBJDUMP" >&6; }
6258
else
6259
  { $as_echo "$as_me:$LINENO: result: no" >&5
6260
$as_echo "no" >&6; }
6261
fi
6262
 
6263
  if test "x$ac_ct_OBJDUMP" = x; then
6264
    OBJDUMP="false"
6265
  else
6266
    case $cross_compiling:$ac_tool_warned in
6267
yes:)
6268
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6269
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6270
ac_tool_warned=yes ;;
6271
esac
6272
    OBJDUMP=$ac_ct_OBJDUMP
6273
  fi
6274
else
6275
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6276
fi
6277
 
6278
test -z "$OBJDUMP" && OBJDUMP=objdump
6279
 
6280
 
6281
 
6282
 
6283
 
6284
 
6285
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6286
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6287
if test "${lt_cv_deplibs_check_method+set}" = set; then
6288
  $as_echo_n "(cached) " >&6
6289
else
6290
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6291
lt_cv_file_magic_test_file=
6292
lt_cv_deplibs_check_method='unknown'
6293
# Need to set the preceding variable on all platforms that support
6294
# interlibrary dependencies.
6295
# 'none' -- dependencies not supported.
6296
# `unknown' -- same as none, but documents that we really don't know.
6297
# 'pass_all' -- all dependencies passed with no checks.
6298
# 'test_compile' -- check by making test program.
6299
# 'file_magic [[regex]]' -- check by looking for files in library path
6300
# which responds to the $file_magic_cmd with a given extended regex.
6301
# If you have `file' or equivalent on your system and you're not sure
6302
# whether `pass_all' will *always* work, you probably want this one.
6303
 
6304
case $host_os in
6305
aix[4-9]*)
6306
  lt_cv_deplibs_check_method=pass_all
6307
  ;;
6308
 
6309
beos*)
6310
  lt_cv_deplibs_check_method=pass_all
6311
  ;;
6312
 
6313
bsdi[45]*)
6314
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6315
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6316
  lt_cv_file_magic_test_file=/shlib/libc.so
6317
  ;;
6318
 
6319
cygwin*)
6320
  # func_win32_libid is a shell function defined in ltmain.sh
6321
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6322
  lt_cv_file_magic_cmd='func_win32_libid'
6323
  ;;
6324
 
6325
mingw* | pw32*)
6326
  # Base MSYS/MinGW do not provide the 'file' command needed by
6327
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6328
  # unless we find 'file', for example because we are cross-compiling.
6329
  if ( file / ) >/dev/null 2>&1; then
6330
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6331
    lt_cv_file_magic_cmd='func_win32_libid'
6332
  else
6333
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6334
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6335
  fi
6336
  ;;
6337
 
6338
cegcc)
6339
  # use the weaker test based on 'objdump'. See mingw*.
6340
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6341
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6342
  ;;
6343
 
6344
darwin* | rhapsody*)
6345
  lt_cv_deplibs_check_method=pass_all
6346
  ;;
6347
 
6348
freebsd* | dragonfly*)
6349
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6350
    case $host_cpu in
6351
    i*86 )
6352
      # Not sure whether the presence of OpenBSD here was a mistake.
6353
      # Let's accept both of them until this is cleared up.
6354
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6355
      lt_cv_file_magic_cmd=/usr/bin/file
6356
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6357
      ;;
6358
    esac
6359
  else
6360
    lt_cv_deplibs_check_method=pass_all
6361
  fi
6362
  ;;
6363
 
6364
gnu*)
6365
  lt_cv_deplibs_check_method=pass_all
6366
  ;;
6367
 
6368
hpux10.20* | hpux11*)
6369
  lt_cv_file_magic_cmd=/usr/bin/file
6370
  case $host_cpu in
6371
  ia64*)
6372
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6373
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6374
    ;;
6375
  hppa*64*)
6376
    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]'
6377
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6378
    ;;
6379
  *)
6380
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6381
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6382
    ;;
6383
  esac
6384
  ;;
6385
 
6386
interix[3-9]*)
6387
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6388
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6389
  ;;
6390
 
6391
irix5* | irix6* | nonstopux*)
6392
  case $LD in
6393
  *-32|*"-32 ") libmagic=32-bit;;
6394
  *-n32|*"-n32 ") libmagic=N32;;
6395
  *-64|*"-64 ") libmagic=64-bit;;
6396
  *) libmagic=never-match;;
6397
  esac
6398
  lt_cv_deplibs_check_method=pass_all
6399
  ;;
6400
 
6401
# This must be Linux ELF.
6402
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6403
  lt_cv_deplibs_check_method=pass_all
6404
  ;;
6405
 
6406
netbsd*)
6407
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6408
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6409
  else
6410
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6411
  fi
6412
  ;;
6413
 
6414
newos6*)
6415
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6416
  lt_cv_file_magic_cmd=/usr/bin/file
6417
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6418
  ;;
6419
 
6420
*nto* | *qnx*)
6421
  lt_cv_deplibs_check_method=pass_all
6422
  ;;
6423
 
6424
openbsd*)
6425
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6426
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6427
  else
6428
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6429
  fi
6430
  ;;
6431
 
6432
osf3* | osf4* | osf5*)
6433
  lt_cv_deplibs_check_method=pass_all
6434
  ;;
6435
 
6436
rdos*)
6437
  lt_cv_deplibs_check_method=pass_all
6438
  ;;
6439
 
6440
solaris*)
6441
  lt_cv_deplibs_check_method=pass_all
6442
  ;;
6443
 
6444
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6445
  lt_cv_deplibs_check_method=pass_all
6446
  ;;
6447
 
6448
sysv4 | sysv4.3*)
6449
  case $host_vendor in
6450
  motorola)
6451
    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]'
6452
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6453
    ;;
6454
  ncr)
6455
    lt_cv_deplibs_check_method=pass_all
6456
    ;;
6457
  sequent)
6458
    lt_cv_file_magic_cmd='/bin/file'
6459
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6460
    ;;
6461
  sni)
6462
    lt_cv_file_magic_cmd='/bin/file'
6463
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6464
    lt_cv_file_magic_test_file=/lib/libc.so
6465
    ;;
6466
  siemens)
6467
    lt_cv_deplibs_check_method=pass_all
6468
    ;;
6469
  pc)
6470
    lt_cv_deplibs_check_method=pass_all
6471
    ;;
6472
  esac
6473
  ;;
6474
 
6475
tpf*)
6476
  lt_cv_deplibs_check_method=pass_all
6477
  ;;
6478
esac
6479
 
6480
fi
6481
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6482
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6483
file_magic_cmd=$lt_cv_file_magic_cmd
6484
deplibs_check_method=$lt_cv_deplibs_check_method
6485
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6486
 
6487
 
6488
 
6489
 
6490
 
6491
 
6492
 
6493
 
6494
 
6495
 
6496
 
6497
 
6498
if test -n "$ac_tool_prefix"; then
6499
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6500
set dummy ${ac_tool_prefix}ar; ac_word=$2
6501
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6502
$as_echo_n "checking for $ac_word... " >&6; }
6503
if test "${ac_cv_prog_AR+set}" = set; then
6504
  $as_echo_n "(cached) " >&6
6505
else
6506
  if test -n "$AR"; then
6507
  ac_cv_prog_AR="$AR" # Let the user override the test.
6508
else
6509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510
for as_dir in $PATH
6511
do
6512
  IFS=$as_save_IFS
6513
  test -z "$as_dir" && as_dir=.
6514
  for ac_exec_ext in '' $ac_executable_extensions; do
6515
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6517
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6518
    break 2
6519
  fi
6520
done
6521
done
6522
IFS=$as_save_IFS
6523
 
6524
fi
6525
fi
6526
AR=$ac_cv_prog_AR
6527
if test -n "$AR"; then
6528
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6529
$as_echo "$AR" >&6; }
6530
else
6531
  { $as_echo "$as_me:$LINENO: result: no" >&5
6532
$as_echo "no" >&6; }
6533
fi
6534
 
6535
 
6536
fi
6537
if test -z "$ac_cv_prog_AR"; then
6538
  ac_ct_AR=$AR
6539
  # Extract the first word of "ar", so it can be a program name with args.
6540
set dummy ar; ac_word=$2
6541
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6542
$as_echo_n "checking for $ac_word... " >&6; }
6543
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6544
  $as_echo_n "(cached) " >&6
6545
else
6546
  if test -n "$ac_ct_AR"; then
6547
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6548
else
6549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550
for as_dir in $PATH
6551
do
6552
  IFS=$as_save_IFS
6553
  test -z "$as_dir" && as_dir=.
6554
  for ac_exec_ext in '' $ac_executable_extensions; do
6555
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556
    ac_cv_prog_ac_ct_AR="ar"
6557
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558
    break 2
6559
  fi
6560
done
6561
done
6562
IFS=$as_save_IFS
6563
 
6564
fi
6565
fi
6566
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6567
if test -n "$ac_ct_AR"; then
6568
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6569
$as_echo "$ac_ct_AR" >&6; }
6570
else
6571
  { $as_echo "$as_me:$LINENO: result: no" >&5
6572
$as_echo "no" >&6; }
6573
fi
6574
 
6575
  if test "x$ac_ct_AR" = x; then
6576
    AR="false"
6577
  else
6578
    case $cross_compiling:$ac_tool_warned in
6579
yes:)
6580
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6581
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582
ac_tool_warned=yes ;;
6583
esac
6584
    AR=$ac_ct_AR
6585
  fi
6586
else
6587
  AR="$ac_cv_prog_AR"
6588
fi
6589
 
6590
test -z "$AR" && AR=ar
6591
test -z "$AR_FLAGS" && AR_FLAGS=cru
6592
 
6593
 
6594
 
6595
 
6596
 
6597
 
6598
 
6599
 
6600
 
6601
 
6602
 
6603
if test -n "$ac_tool_prefix"; then
6604
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6605
set dummy ${ac_tool_prefix}strip; ac_word=$2
6606
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6607
$as_echo_n "checking for $ac_word... " >&6; }
6608
if test "${ac_cv_prog_STRIP+set}" = set; then
6609
  $as_echo_n "(cached) " >&6
6610
else
6611
  if test -n "$STRIP"; then
6612
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6613
else
6614
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615
for as_dir in $PATH
6616
do
6617
  IFS=$as_save_IFS
6618
  test -z "$as_dir" && as_dir=.
6619
  for ac_exec_ext in '' $ac_executable_extensions; do
6620
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6622
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623
    break 2
6624
  fi
6625
done
6626
done
6627
IFS=$as_save_IFS
6628
 
6629
fi
6630
fi
6631
STRIP=$ac_cv_prog_STRIP
6632
if test -n "$STRIP"; then
6633
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6634
$as_echo "$STRIP" >&6; }
6635
else
6636
  { $as_echo "$as_me:$LINENO: result: no" >&5
6637
$as_echo "no" >&6; }
6638
fi
6639
 
6640
 
6641
fi
6642
if test -z "$ac_cv_prog_STRIP"; then
6643
  ac_ct_STRIP=$STRIP
6644
  # Extract the first word of "strip", so it can be a program name with args.
6645
set dummy strip; ac_word=$2
6646
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6647
$as_echo_n "checking for $ac_word... " >&6; }
6648
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6649
  $as_echo_n "(cached) " >&6
6650
else
6651
  if test -n "$ac_ct_STRIP"; then
6652
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6653
else
6654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655
for as_dir in $PATH
6656
do
6657
  IFS=$as_save_IFS
6658
  test -z "$as_dir" && as_dir=.
6659
  for ac_exec_ext in '' $ac_executable_extensions; do
6660
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661
    ac_cv_prog_ac_ct_STRIP="strip"
6662
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663
    break 2
6664
  fi
6665
done
6666
done
6667
IFS=$as_save_IFS
6668
 
6669
fi
6670
fi
6671
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6672
if test -n "$ac_ct_STRIP"; then
6673
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6674
$as_echo "$ac_ct_STRIP" >&6; }
6675
else
6676
  { $as_echo "$as_me:$LINENO: result: no" >&5
6677
$as_echo "no" >&6; }
6678
fi
6679
 
6680
  if test "x$ac_ct_STRIP" = x; then
6681
    STRIP=":"
6682
  else
6683
    case $cross_compiling:$ac_tool_warned in
6684
yes:)
6685
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6686
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6687
ac_tool_warned=yes ;;
6688
esac
6689
    STRIP=$ac_ct_STRIP
6690
  fi
6691
else
6692
  STRIP="$ac_cv_prog_STRIP"
6693
fi
6694
 
6695
test -z "$STRIP" && STRIP=:
6696
 
6697
 
6698
 
6699
 
6700
 
6701
 
6702
if test -n "$ac_tool_prefix"; then
6703
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6704
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6705
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6706
$as_echo_n "checking for $ac_word... " >&6; }
6707
if test "${ac_cv_prog_RANLIB+set}" = set; then
6708
  $as_echo_n "(cached) " >&6
6709
else
6710
  if test -n "$RANLIB"; then
6711
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6712
else
6713
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714
for as_dir in $PATH
6715
do
6716
  IFS=$as_save_IFS
6717
  test -z "$as_dir" && as_dir=.
6718
  for ac_exec_ext in '' $ac_executable_extensions; do
6719
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6720
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6721
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722
    break 2
6723
  fi
6724
done
6725
done
6726
IFS=$as_save_IFS
6727
 
6728
fi
6729
fi
6730
RANLIB=$ac_cv_prog_RANLIB
6731
if test -n "$RANLIB"; then
6732
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6733
$as_echo "$RANLIB" >&6; }
6734
else
6735
  { $as_echo "$as_me:$LINENO: result: no" >&5
6736
$as_echo "no" >&6; }
6737
fi
6738
 
6739
 
6740
fi
6741
if test -z "$ac_cv_prog_RANLIB"; then
6742
  ac_ct_RANLIB=$RANLIB
6743
  # Extract the first word of "ranlib", so it can be a program name with args.
6744
set dummy ranlib; ac_word=$2
6745
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6746
$as_echo_n "checking for $ac_word... " >&6; }
6747
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6748
  $as_echo_n "(cached) " >&6
6749
else
6750
  if test -n "$ac_ct_RANLIB"; then
6751
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6752
else
6753
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754
for as_dir in $PATH
6755
do
6756
  IFS=$as_save_IFS
6757
  test -z "$as_dir" && as_dir=.
6758
  for ac_exec_ext in '' $ac_executable_extensions; do
6759
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6760
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6761
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762
    break 2
6763
  fi
6764
done
6765
done
6766
IFS=$as_save_IFS
6767
 
6768
fi
6769
fi
6770
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6771
if test -n "$ac_ct_RANLIB"; then
6772
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6773
$as_echo "$ac_ct_RANLIB" >&6; }
6774
else
6775
  { $as_echo "$as_me:$LINENO: result: no" >&5
6776
$as_echo "no" >&6; }
6777
fi
6778
 
6779
  if test "x$ac_ct_RANLIB" = x; then
6780
    RANLIB=":"
6781
  else
6782
    case $cross_compiling:$ac_tool_warned in
6783
yes:)
6784
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6785
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6786
ac_tool_warned=yes ;;
6787
esac
6788
    RANLIB=$ac_ct_RANLIB
6789
  fi
6790
else
6791
  RANLIB="$ac_cv_prog_RANLIB"
6792
fi
6793
 
6794
test -z "$RANLIB" && RANLIB=:
6795
 
6796
 
6797
 
6798
 
6799
 
6800
 
6801
# Determine commands to create old-style static archives.
6802
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6803
old_postinstall_cmds='chmod 644 $oldlib'
6804
old_postuninstall_cmds=
6805
 
6806
if test -n "$RANLIB"; then
6807
  case $host_os in
6808
  openbsd*)
6809
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6810
    ;;
6811
  *)
6812
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6813
    ;;
6814
  esac
6815
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6816
fi
6817
 
6818
 
6819
 
6820
 
6821
 
6822
 
6823
 
6824
 
6825
 
6826
 
6827
 
6828
 
6829
 
6830
 
6831
 
6832
 
6833
 
6834
 
6835
 
6836
 
6837
 
6838
 
6839
 
6840
 
6841
 
6842
 
6843
 
6844
 
6845
 
6846
 
6847
 
6848
 
6849
 
6850
 
6851
# If no C compiler was specified, use CC.
6852
LTCC=${LTCC-"$CC"}
6853
 
6854
# If no C compiler flags were specified, use CFLAGS.
6855
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6856
 
6857
# Allow CC to be a program name with arguments.
6858
compiler=$CC
6859
 
6860
 
6861
# Check for command to grab the raw symbol name followed by C symbol from nm.
6862
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6863
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6864
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6865
  $as_echo_n "(cached) " >&6
6866
else
6867
 
6868
# These are sane defaults that work on at least a few old systems.
6869
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6870
 
6871
# Character class describing NM global symbol codes.
6872
symcode='[BCDEGRST]'
6873
 
6874
# Regexp to match symbols that can be accessed directly from C.
6875
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6876
 
6877
# Define system-specific variables.
6878
case $host_os in
6879
aix*)
6880
  symcode='[BCDT]'
6881
  ;;
6882
cygwin* | mingw* | pw32* | cegcc*)
6883
  symcode='[ABCDGISTW]'
6884
  ;;
6885
hpux*)
6886
  if test "$host_cpu" = ia64; then
6887
    symcode='[ABCDEGRST]'
6888
  fi
6889
  ;;
6890
irix* | nonstopux*)
6891
  symcode='[BCDEGRST]'
6892
  ;;
6893
osf*)
6894
  symcode='[BCDEGQRST]'
6895
  ;;
6896
solaris*)
6897
  symcode='[BDRT]'
6898
  ;;
6899
sco3.2v5*)
6900
  symcode='[DT]'
6901
  ;;
6902
sysv4.2uw2*)
6903
  symcode='[DT]'
6904
  ;;
6905
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6906
  symcode='[ABDT]'
6907
  ;;
6908
sysv4)
6909
  symcode='[DFNSTU]'
6910
  ;;
6911
esac
6912
 
6913
# If we're using GNU nm, then use its standard symbol codes.
6914
case `$NM -V 2>&1` in
6915
*GNU* | *'with BFD'*)
6916
  symcode='[ABCDGIRSTW]' ;;
6917
esac
6918
 
6919
# Transform an extracted symbol line into a proper C declaration.
6920
# Some systems (esp. on ia64) link data and code symbols differently,
6921
# so use this general approach.
6922
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6923
 
6924
# Transform an extracted symbol line into symbol name and symbol address
6925
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6926
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'"
6927
 
6928
# Handle CRLF in mingw tool chain
6929
opt_cr=
6930
case $build_os in
6931
mingw*)
6932
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6933
  ;;
6934
esac
6935
 
6936
# Try without a prefix underscore, then with it.
6937
for ac_symprfx in "" "_"; do
6938
 
6939
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6940
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6941
 
6942
  # Write the raw and C identifiers.
6943
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6944
    # Fake it for dumpbin and say T for any non-static function
6945
    # and D for any global variable.
6946
    # Also find C++ and __fastcall symbols from MSVC++,
6947
    # which start with @ or ?.
6948
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6949
"     {last_section=section; section=\$ 3};"\
6950
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6951
"     \$ 0!~/External *\|/{next};"\
6952
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6953
"     {if(hide[section]) next};"\
6954
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6955
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6956
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6957
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6958
"     ' prfx=^$ac_symprfx"
6959
  else
6960
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6961
  fi
6962
 
6963
  # Check to see that the pipe works correctly.
6964
  pipe_works=no
6965
 
6966
  rm -f conftest*
6967
  cat > conftest.$ac_ext <<_LT_EOF
6968
#ifdef __cplusplus
6969
extern "C" {
6970
#endif
6971
char nm_test_var;
6972
void nm_test_func(void);
6973
void nm_test_func(void){}
6974
#ifdef __cplusplus
6975
}
6976
#endif
6977
int main(){nm_test_var='a';nm_test_func();return(0);}
6978
_LT_EOF
6979
 
6980
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6981
  (eval $ac_compile) 2>&5
6982
  ac_status=$?
6983
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984
  (exit $ac_status); }; then
6985
    # Now try to grab the symbols.
6986
    nlist=conftest.nm
6987
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6988
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6989
  ac_status=$?
6990
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991
  (exit $ac_status); } && test -s "$nlist"; then
6992
      # Try sorting and uniquifying the output.
6993
      if sort "$nlist" | uniq > "$nlist"T; then
6994
        mv -f "$nlist"T "$nlist"
6995
      else
6996
        rm -f "$nlist"T
6997
      fi
6998
 
6999
      # Make sure that we snagged all the symbols we need.
7000
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7001
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7002
          cat <<_LT_EOF > conftest.$ac_ext
7003
#ifdef __cplusplus
7004
extern "C" {
7005
#endif
7006
 
7007
_LT_EOF
7008
          # Now generate the symbol file.
7009
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7010
 
7011
          cat <<_LT_EOF >> conftest.$ac_ext
7012
 
7013
/* The mapping between symbol names and symbols.  */
7014
const struct {
7015
  const char *name;
7016
  void       *address;
7017
}
7018
lt__PROGRAM__LTX_preloaded_symbols[] =
7019
{
7020
  { "@PROGRAM@", (void *) 0 },
7021
_LT_EOF
7022
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7023
          cat <<\_LT_EOF >> conftest.$ac_ext
7024
  {0, (void *) 0}
7025
};
7026
 
7027
/* This works around a problem in FreeBSD linker */
7028
#ifdef FREEBSD_WORKAROUND
7029
static const void *lt_preloaded_setup() {
7030
  return lt__PROGRAM__LTX_preloaded_symbols;
7031
}
7032
#endif
7033
 
7034
#ifdef __cplusplus
7035
}
7036
#endif
7037
_LT_EOF
7038
          # Now try linking the two files.
7039
          mv conftest.$ac_objext conftstm.$ac_objext
7040
          lt_save_LIBS="$LIBS"
7041
          lt_save_CFLAGS="$CFLAGS"
7042
          LIBS="conftstm.$ac_objext"
7043
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7044
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7045
  (eval $ac_link) 2>&5
7046
  ac_status=$?
7047
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7049
            pipe_works=yes
7050
          fi
7051
          LIBS="$lt_save_LIBS"
7052
          CFLAGS="$lt_save_CFLAGS"
7053
        else
7054
          echo "cannot find nm_test_func in $nlist" >&5
7055
        fi
7056
      else
7057
        echo "cannot find nm_test_var in $nlist" >&5
7058
      fi
7059
    else
7060
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7061
    fi
7062
  else
7063
    echo "$progname: failed program was:" >&5
7064
    cat conftest.$ac_ext >&5
7065
  fi
7066
  rm -rf conftest* conftst*
7067
 
7068
  # Do not use the global_symbol_pipe unless it works.
7069
  if test "$pipe_works" = yes; then
7070
    break
7071
  else
7072
    lt_cv_sys_global_symbol_pipe=
7073
  fi
7074
done
7075
 
7076
fi
7077
 
7078
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7079
  lt_cv_sys_global_symbol_to_cdecl=
7080
fi
7081
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7082
  { $as_echo "$as_me:$LINENO: result: failed" >&5
7083
$as_echo "failed" >&6; }
7084
else
7085
  { $as_echo "$as_me:$LINENO: result: ok" >&5
7086
$as_echo "ok" >&6; }
7087
fi
7088
 
7089
 
7090
 
7091
 
7092
 
7093
 
7094
 
7095
 
7096
 
7097
 
7098
 
7099
 
7100
 
7101
 
7102
 
7103
 
7104
 
7105
 
7106
 
7107
 
7108
 
7109
 
7110
 
7111
# Check whether --enable-libtool-lock was given.
7112
if test "${enable_libtool_lock+set}" = set; then
7113
  enableval=$enable_libtool_lock;
7114
fi
7115
 
7116
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7117
 
7118
# Some flags need to be propagated to the compiler or linker for good
7119
# libtool support.
7120
case $host in
7121
ia64-*-hpux*)
7122
  # Find out which ABI we are using.
7123
  echo 'int i;' > conftest.$ac_ext
7124
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7125
  (eval $ac_compile) 2>&5
7126
  ac_status=$?
7127
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128
  (exit $ac_status); }; then
7129
    case `/usr/bin/file conftest.$ac_objext` in
7130
      *ELF-32*)
7131
        HPUX_IA64_MODE="32"
7132
        ;;
7133
      *ELF-64*)
7134
        HPUX_IA64_MODE="64"
7135
        ;;
7136
    esac
7137
  fi
7138
  rm -rf conftest*
7139
  ;;
7140
*-*-irix6*)
7141
  # Find out which ABI we are using.
7142
  echo '#line 7142 "configure"' > conftest.$ac_ext
7143
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144
  (eval $ac_compile) 2>&5
7145
  ac_status=$?
7146
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147
  (exit $ac_status); }; then
7148
    if test "$lt_cv_prog_gnu_ld" = yes; then
7149
      case `/usr/bin/file conftest.$ac_objext` in
7150
        *32-bit*)
7151
          LD="${LD-ld} -melf32bsmip"
7152
          ;;
7153
        *N32*)
7154
          LD="${LD-ld} -melf32bmipn32"
7155
          ;;
7156
        *64-bit*)
7157
          LD="${LD-ld} -melf64bmip"
7158
        ;;
7159
      esac
7160
    else
7161
      case `/usr/bin/file conftest.$ac_objext` in
7162
        *32-bit*)
7163
          LD="${LD-ld} -32"
7164
          ;;
7165
        *N32*)
7166
          LD="${LD-ld} -n32"
7167
          ;;
7168
        *64-bit*)
7169
          LD="${LD-ld} -64"
7170
          ;;
7171
      esac
7172
    fi
7173
  fi
7174
  rm -rf conftest*
7175
  ;;
7176
 
7177
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7178
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7179
  # Find out which ABI we are using.
7180
  echo 'int i;' > conftest.$ac_ext
7181
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7182
  (eval $ac_compile) 2>&5
7183
  ac_status=$?
7184
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185
  (exit $ac_status); }; then
7186
    case `/usr/bin/file conftest.o` in
7187
      *32-bit*)
7188
        case $host in
7189
          x86_64-*kfreebsd*-gnu)
7190
            LD="${LD-ld} -m elf_i386_fbsd"
7191
            ;;
7192
          x86_64-*linux*)
7193
            LD="${LD-ld} -m elf_i386"
7194
            ;;
7195
          ppc64-*linux*|powerpc64-*linux*)
7196
            LD="${LD-ld} -m elf32ppclinux"
7197
            ;;
7198
          s390x-*linux*)
7199
            LD="${LD-ld} -m elf_s390"
7200
            ;;
7201
          sparc64-*linux*)
7202
            LD="${LD-ld} -m elf32_sparc"
7203
            ;;
7204
        esac
7205
        ;;
7206
      *64-bit*)
7207
        case $host in
7208
          x86_64-*kfreebsd*-gnu)
7209
            LD="${LD-ld} -m elf_x86_64_fbsd"
7210
            ;;
7211
          x86_64-*linux*)
7212
            LD="${LD-ld} -m elf_x86_64"
7213
            ;;
7214
          ppc*-*linux*|powerpc*-*linux*)
7215
            LD="${LD-ld} -m elf64ppc"
7216
            ;;
7217
          s390*-*linux*|s390*-*tpf*)
7218
            LD="${LD-ld} -m elf64_s390"
7219
            ;;
7220
          sparc*-*linux*)
7221
            LD="${LD-ld} -m elf64_sparc"
7222
            ;;
7223
        esac
7224
        ;;
7225
    esac
7226
  fi
7227
  rm -rf conftest*
7228
  ;;
7229
 
7230
*-*-sco3.2v5*)
7231
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7232
  SAVE_CFLAGS="$CFLAGS"
7233
  CFLAGS="$CFLAGS -belf"
7234
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7235
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7236
if test "${lt_cv_cc_needs_belf+set}" = set; then
7237
  $as_echo_n "(cached) " >&6
7238
else
7239
  ac_ext=c
7240
ac_cpp='$CPP $CPPFLAGS'
7241
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7242
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7243
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7244
 
7245
     cat >conftest.$ac_ext <<_ACEOF
7246
/* confdefs.h.  */
7247
_ACEOF
7248
cat confdefs.h >>conftest.$ac_ext
7249
cat >>conftest.$ac_ext <<_ACEOF
7250
/* end confdefs.h.  */
7251
 
7252
int
7253
main ()
7254
{
7255
 
7256
  ;
7257
  return 0;
7258
}
7259
_ACEOF
7260
rm -f conftest.$ac_objext conftest$ac_exeext
7261
if { (ac_try="$ac_link"
7262
case "(($ac_try" in
7263
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7264
  *) ac_try_echo=$ac_try;;
7265
esac
7266
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7267
$as_echo "$ac_try_echo") >&5
7268
  (eval "$ac_link") 2>conftest.er1
7269
  ac_status=$?
7270
  grep -v '^ *+' conftest.er1 >conftest.err
7271
  rm -f conftest.er1
7272
  cat conftest.err >&5
7273
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274
  (exit $ac_status); } && {
7275
         test -z "$ac_c_werror_flag" ||
7276
         test ! -s conftest.err
7277
       } && test -s conftest$ac_exeext && {
7278
         test "$cross_compiling" = yes ||
7279
         $as_test_x conftest$ac_exeext
7280
       }; then
7281
  lt_cv_cc_needs_belf=yes
7282
else
7283
  $as_echo "$as_me: failed program was:" >&5
7284
sed 's/^/| /' conftest.$ac_ext >&5
7285
 
7286
        lt_cv_cc_needs_belf=no
7287
fi
7288
 
7289
rm -rf conftest.dSYM
7290
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7291
      conftest$ac_exeext conftest.$ac_ext
7292
     ac_ext=c
7293
ac_cpp='$CPP $CPPFLAGS'
7294
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7295
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7296
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7297
 
7298
fi
7299
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7300
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7301
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7302
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7303
    CFLAGS="$SAVE_CFLAGS"
7304
  fi
7305
  ;;
7306
sparc*-*solaris*)
7307
  # Find out which ABI we are using.
7308
  echo 'int i;' > conftest.$ac_ext
7309
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7310
  (eval $ac_compile) 2>&5
7311
  ac_status=$?
7312
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313
  (exit $ac_status); }; then
7314
    case `/usr/bin/file conftest.o` in
7315
    *64-bit*)
7316
      case $lt_cv_prog_gnu_ld in
7317
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7318
      *)
7319
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7320
          LD="${LD-ld} -64"
7321
        fi
7322
        ;;
7323
      esac
7324
      ;;
7325
    esac
7326
  fi
7327
  rm -rf conftest*
7328
  ;;
7329
esac
7330
 
7331
need_locks="$enable_libtool_lock"
7332
 
7333
 
7334
  case $host_os in
7335
    rhapsody* | darwin*)
7336
    if test -n "$ac_tool_prefix"; then
7337
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7338
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7339
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7340
$as_echo_n "checking for $ac_word... " >&6; }
7341
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7342
  $as_echo_n "(cached) " >&6
7343
else
7344
  if test -n "$DSYMUTIL"; then
7345
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7346
else
7347
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348
for as_dir in $PATH
7349
do
7350
  IFS=$as_save_IFS
7351
  test -z "$as_dir" && as_dir=.
7352
  for ac_exec_ext in '' $ac_executable_extensions; do
7353
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7354
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7355
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356
    break 2
7357
  fi
7358
done
7359
done
7360
IFS=$as_save_IFS
7361
 
7362
fi
7363
fi
7364
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7365
if test -n "$DSYMUTIL"; then
7366
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7367
$as_echo "$DSYMUTIL" >&6; }
7368
else
7369
  { $as_echo "$as_me:$LINENO: result: no" >&5
7370
$as_echo "no" >&6; }
7371
fi
7372
 
7373
 
7374
fi
7375
if test -z "$ac_cv_prog_DSYMUTIL"; then
7376
  ac_ct_DSYMUTIL=$DSYMUTIL
7377
  # Extract the first word of "dsymutil", so it can be a program name with args.
7378
set dummy dsymutil; ac_word=$2
7379
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7380
$as_echo_n "checking for $ac_word... " >&6; }
7381
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7382
  $as_echo_n "(cached) " >&6
7383
else
7384
  if test -n "$ac_ct_DSYMUTIL"; then
7385
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7386
else
7387
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388
for as_dir in $PATH
7389
do
7390
  IFS=$as_save_IFS
7391
  test -z "$as_dir" && as_dir=.
7392
  for ac_exec_ext in '' $ac_executable_extensions; do
7393
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7394
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7395
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396
    break 2
7397
  fi
7398
done
7399
done
7400
IFS=$as_save_IFS
7401
 
7402
fi
7403
fi
7404
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7405
if test -n "$ac_ct_DSYMUTIL"; then
7406
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7407
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7408
else
7409
  { $as_echo "$as_me:$LINENO: result: no" >&5
7410
$as_echo "no" >&6; }
7411
fi
7412
 
7413
  if test "x$ac_ct_DSYMUTIL" = x; then
7414
    DSYMUTIL=":"
7415
  else
7416
    case $cross_compiling:$ac_tool_warned in
7417
yes:)
7418
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7419
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7420
ac_tool_warned=yes ;;
7421
esac
7422
    DSYMUTIL=$ac_ct_DSYMUTIL
7423
  fi
7424
else
7425
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7426
fi
7427
 
7428
    if test -n "$ac_tool_prefix"; then
7429
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7430
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7431
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7432
$as_echo_n "checking for $ac_word... " >&6; }
7433
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7434
  $as_echo_n "(cached) " >&6
7435
else
7436
  if test -n "$NMEDIT"; then
7437
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7438
else
7439
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440
for as_dir in $PATH
7441
do
7442
  IFS=$as_save_IFS
7443
  test -z "$as_dir" && as_dir=.
7444
  for ac_exec_ext in '' $ac_executable_extensions; do
7445
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7447
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448
    break 2
7449
  fi
7450
done
7451
done
7452
IFS=$as_save_IFS
7453
 
7454
fi
7455
fi
7456
NMEDIT=$ac_cv_prog_NMEDIT
7457
if test -n "$NMEDIT"; then
7458
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7459
$as_echo "$NMEDIT" >&6; }
7460
else
7461
  { $as_echo "$as_me:$LINENO: result: no" >&5
7462
$as_echo "no" >&6; }
7463
fi
7464
 
7465
 
7466
fi
7467
if test -z "$ac_cv_prog_NMEDIT"; then
7468
  ac_ct_NMEDIT=$NMEDIT
7469
  # Extract the first word of "nmedit", so it can be a program name with args.
7470
set dummy nmedit; ac_word=$2
7471
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7472
$as_echo_n "checking for $ac_word... " >&6; }
7473
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7474
  $as_echo_n "(cached) " >&6
7475
else
7476
  if test -n "$ac_ct_NMEDIT"; then
7477
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7478
else
7479
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480
for as_dir in $PATH
7481
do
7482
  IFS=$as_save_IFS
7483
  test -z "$as_dir" && as_dir=.
7484
  for ac_exec_ext in '' $ac_executable_extensions; do
7485
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7486
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7487
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7488
    break 2
7489
  fi
7490
done
7491
done
7492
IFS=$as_save_IFS
7493
 
7494
fi
7495
fi
7496
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7497
if test -n "$ac_ct_NMEDIT"; then
7498
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7499
$as_echo "$ac_ct_NMEDIT" >&6; }
7500
else
7501
  { $as_echo "$as_me:$LINENO: result: no" >&5
7502
$as_echo "no" >&6; }
7503
fi
7504
 
7505
  if test "x$ac_ct_NMEDIT" = x; then
7506
    NMEDIT=":"
7507
  else
7508
    case $cross_compiling:$ac_tool_warned in
7509
yes:)
7510
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7511
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512
ac_tool_warned=yes ;;
7513
esac
7514
    NMEDIT=$ac_ct_NMEDIT
7515
  fi
7516
else
7517
  NMEDIT="$ac_cv_prog_NMEDIT"
7518
fi
7519
 
7520
    if test -n "$ac_tool_prefix"; then
7521
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7522
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7523
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7524
$as_echo_n "checking for $ac_word... " >&6; }
7525
if test "${ac_cv_prog_LIPO+set}" = set; then
7526
  $as_echo_n "(cached) " >&6
7527
else
7528
  if test -n "$LIPO"; then
7529
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7530
else
7531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532
for as_dir in $PATH
7533
do
7534
  IFS=$as_save_IFS
7535
  test -z "$as_dir" && as_dir=.
7536
  for ac_exec_ext in '' $ac_executable_extensions; do
7537
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7539
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540
    break 2
7541
  fi
7542
done
7543
done
7544
IFS=$as_save_IFS
7545
 
7546
fi
7547
fi
7548
LIPO=$ac_cv_prog_LIPO
7549
if test -n "$LIPO"; then
7550
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7551
$as_echo "$LIPO" >&6; }
7552
else
7553
  { $as_echo "$as_me:$LINENO: result: no" >&5
7554
$as_echo "no" >&6; }
7555
fi
7556
 
7557
 
7558
fi
7559
if test -z "$ac_cv_prog_LIPO"; then
7560
  ac_ct_LIPO=$LIPO
7561
  # Extract the first word of "lipo", so it can be a program name with args.
7562
set dummy lipo; ac_word=$2
7563
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7564
$as_echo_n "checking for $ac_word... " >&6; }
7565
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7566
  $as_echo_n "(cached) " >&6
7567
else
7568
  if test -n "$ac_ct_LIPO"; then
7569
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7570
else
7571
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572
for as_dir in $PATH
7573
do
7574
  IFS=$as_save_IFS
7575
  test -z "$as_dir" && as_dir=.
7576
  for ac_exec_ext in '' $ac_executable_extensions; do
7577
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578
    ac_cv_prog_ac_ct_LIPO="lipo"
7579
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7580
    break 2
7581
  fi
7582
done
7583
done
7584
IFS=$as_save_IFS
7585
 
7586
fi
7587
fi
7588
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7589
if test -n "$ac_ct_LIPO"; then
7590
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7591
$as_echo "$ac_ct_LIPO" >&6; }
7592
else
7593
  { $as_echo "$as_me:$LINENO: result: no" >&5
7594
$as_echo "no" >&6; }
7595
fi
7596
 
7597
  if test "x$ac_ct_LIPO" = x; then
7598
    LIPO=":"
7599
  else
7600
    case $cross_compiling:$ac_tool_warned in
7601
yes:)
7602
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7603
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7604
ac_tool_warned=yes ;;
7605
esac
7606
    LIPO=$ac_ct_LIPO
7607
  fi
7608
else
7609
  LIPO="$ac_cv_prog_LIPO"
7610
fi
7611
 
7612
    if test -n "$ac_tool_prefix"; then
7613
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7614
set dummy ${ac_tool_prefix}otool; ac_word=$2
7615
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7616
$as_echo_n "checking for $ac_word... " >&6; }
7617
if test "${ac_cv_prog_OTOOL+set}" = set; then
7618
  $as_echo_n "(cached) " >&6
7619
else
7620
  if test -n "$OTOOL"; then
7621
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7622
else
7623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624
for as_dir in $PATH
7625
do
7626
  IFS=$as_save_IFS
7627
  test -z "$as_dir" && as_dir=.
7628
  for ac_exec_ext in '' $ac_executable_extensions; do
7629
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7631
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7632
    break 2
7633
  fi
7634
done
7635
done
7636
IFS=$as_save_IFS
7637
 
7638
fi
7639
fi
7640
OTOOL=$ac_cv_prog_OTOOL
7641
if test -n "$OTOOL"; then
7642
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7643
$as_echo "$OTOOL" >&6; }
7644
else
7645
  { $as_echo "$as_me:$LINENO: result: no" >&5
7646
$as_echo "no" >&6; }
7647
fi
7648
 
7649
 
7650
fi
7651
if test -z "$ac_cv_prog_OTOOL"; then
7652
  ac_ct_OTOOL=$OTOOL
7653
  # Extract the first word of "otool", so it can be a program name with args.
7654
set dummy otool; ac_word=$2
7655
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7656
$as_echo_n "checking for $ac_word... " >&6; }
7657
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7658
  $as_echo_n "(cached) " >&6
7659
else
7660
  if test -n "$ac_ct_OTOOL"; then
7661
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7662
else
7663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664
for as_dir in $PATH
7665
do
7666
  IFS=$as_save_IFS
7667
  test -z "$as_dir" && as_dir=.
7668
  for ac_exec_ext in '' $ac_executable_extensions; do
7669
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670
    ac_cv_prog_ac_ct_OTOOL="otool"
7671
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672
    break 2
7673
  fi
7674
done
7675
done
7676
IFS=$as_save_IFS
7677
 
7678
fi
7679
fi
7680
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7681
if test -n "$ac_ct_OTOOL"; then
7682
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7683
$as_echo "$ac_ct_OTOOL" >&6; }
7684
else
7685
  { $as_echo "$as_me:$LINENO: result: no" >&5
7686
$as_echo "no" >&6; }
7687
fi
7688
 
7689
  if test "x$ac_ct_OTOOL" = x; then
7690
    OTOOL=":"
7691
  else
7692
    case $cross_compiling:$ac_tool_warned in
7693
yes:)
7694
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7695
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696
ac_tool_warned=yes ;;
7697
esac
7698
    OTOOL=$ac_ct_OTOOL
7699
  fi
7700
else
7701
  OTOOL="$ac_cv_prog_OTOOL"
7702
fi
7703
 
7704
    if test -n "$ac_tool_prefix"; then
7705
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7706
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7707
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7708
$as_echo_n "checking for $ac_word... " >&6; }
7709
if test "${ac_cv_prog_OTOOL64+set}" = set; then
7710
  $as_echo_n "(cached) " >&6
7711
else
7712
  if test -n "$OTOOL64"; then
7713
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7714
else
7715
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716
for as_dir in $PATH
7717
do
7718
  IFS=$as_save_IFS
7719
  test -z "$as_dir" && as_dir=.
7720
  for ac_exec_ext in '' $ac_executable_extensions; do
7721
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7722
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7723
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724
    break 2
7725
  fi
7726
done
7727
done
7728
IFS=$as_save_IFS
7729
 
7730
fi
7731
fi
7732
OTOOL64=$ac_cv_prog_OTOOL64
7733
if test -n "$OTOOL64"; then
7734
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7735
$as_echo "$OTOOL64" >&6; }
7736
else
7737
  { $as_echo "$as_me:$LINENO: result: no" >&5
7738
$as_echo "no" >&6; }
7739
fi
7740
 
7741
 
7742
fi
7743
if test -z "$ac_cv_prog_OTOOL64"; then
7744
  ac_ct_OTOOL64=$OTOOL64
7745
  # Extract the first word of "otool64", so it can be a program name with args.
7746
set dummy otool64; ac_word=$2
7747
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7748
$as_echo_n "checking for $ac_word... " >&6; }
7749
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7750
  $as_echo_n "(cached) " >&6
7751
else
7752
  if test -n "$ac_ct_OTOOL64"; then
7753
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7754
else
7755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756
for as_dir in $PATH
7757
do
7758
  IFS=$as_save_IFS
7759
  test -z "$as_dir" && as_dir=.
7760
  for ac_exec_ext in '' $ac_executable_extensions; do
7761
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7762
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7763
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7764
    break 2
7765
  fi
7766
done
7767
done
7768
IFS=$as_save_IFS
7769
 
7770
fi
7771
fi
7772
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7773
if test -n "$ac_ct_OTOOL64"; then
7774
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7775
$as_echo "$ac_ct_OTOOL64" >&6; }
7776
else
7777
  { $as_echo "$as_me:$LINENO: result: no" >&5
7778
$as_echo "no" >&6; }
7779
fi
7780
 
7781
  if test "x$ac_ct_OTOOL64" = x; then
7782
    OTOOL64=":"
7783
  else
7784
    case $cross_compiling:$ac_tool_warned in
7785
yes:)
7786
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7787
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788
ac_tool_warned=yes ;;
7789
esac
7790
    OTOOL64=$ac_ct_OTOOL64
7791
  fi
7792
else
7793
  OTOOL64="$ac_cv_prog_OTOOL64"
7794
fi
7795
 
7796
 
7797
 
7798
 
7799
 
7800
 
7801
 
7802
 
7803
 
7804
 
7805
 
7806
 
7807
 
7808
 
7809
 
7810
 
7811
 
7812
 
7813
 
7814
 
7815
 
7816
 
7817
 
7818
 
7819
 
7820
 
7821
 
7822
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7823
$as_echo_n "checking for -single_module linker flag... " >&6; }
7824
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7825
  $as_echo_n "(cached) " >&6
7826
else
7827
  lt_cv_apple_cc_single_mod=no
7828
      if test -z "${LT_MULTI_MODULE}"; then
7829
        # By default we will add the -single_module flag. You can override
7830
        # by either setting the environment variable LT_MULTI_MODULE
7831
        # non-empty at configure time, or by adding -multi_module to the
7832
        # link flags.
7833
        rm -rf libconftest.dylib*
7834
        echo "int foo(void){return 1;}" > conftest.c
7835
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7836
-dynamiclib -Wl,-single_module conftest.c" >&5
7837
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7838
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7839
        _lt_result=$?
7840
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7841
          lt_cv_apple_cc_single_mod=yes
7842
        else
7843
          cat conftest.err >&5
7844
        fi
7845
        rm -rf libconftest.dylib*
7846
        rm -f conftest.*
7847
      fi
7848
fi
7849
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7850
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7851
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7852
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7853
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7854
  $as_echo_n "(cached) " >&6
7855
else
7856
  lt_cv_ld_exported_symbols_list=no
7857
      save_LDFLAGS=$LDFLAGS
7858
      echo "_main" > conftest.sym
7859
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7860
      cat >conftest.$ac_ext <<_ACEOF
7861
/* confdefs.h.  */
7862
_ACEOF
7863
cat confdefs.h >>conftest.$ac_ext
7864
cat >>conftest.$ac_ext <<_ACEOF
7865
/* end confdefs.h.  */
7866
 
7867
int
7868
main ()
7869
{
7870
 
7871
  ;
7872
  return 0;
7873
}
7874
_ACEOF
7875
rm -f conftest.$ac_objext conftest$ac_exeext
7876
if { (ac_try="$ac_link"
7877
case "(($ac_try" in
7878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879
  *) ac_try_echo=$ac_try;;
7880
esac
7881
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7882
$as_echo "$ac_try_echo") >&5
7883
  (eval "$ac_link") 2>conftest.er1
7884
  ac_status=$?
7885
  grep -v '^ *+' conftest.er1 >conftest.err
7886
  rm -f conftest.er1
7887
  cat conftest.err >&5
7888
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889
  (exit $ac_status); } && {
7890
         test -z "$ac_c_werror_flag" ||
7891
         test ! -s conftest.err
7892
       } && test -s conftest$ac_exeext && {
7893
         test "$cross_compiling" = yes ||
7894
         $as_test_x conftest$ac_exeext
7895
       }; then
7896
  lt_cv_ld_exported_symbols_list=yes
7897
else
7898
  $as_echo "$as_me: failed program was:" >&5
7899
sed 's/^/| /' conftest.$ac_ext >&5
7900
 
7901
        lt_cv_ld_exported_symbols_list=no
7902
fi
7903
 
7904
rm -rf conftest.dSYM
7905
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7906
      conftest$ac_exeext conftest.$ac_ext
7907
        LDFLAGS="$save_LDFLAGS"
7908
 
7909
fi
7910
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7911
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7912
    case $host_os in
7913
    rhapsody* | darwin1.[012])
7914
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7915
    darwin1.*)
7916
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7917
    darwin*) # darwin 5.x on
7918
      # if running on 10.5 or later, the deployment target defaults
7919
      # to the OS version, if on x86, and 10.4, the deployment
7920
      # target defaults to 10.4. Don't you love it?
7921
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7922
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7923
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7924
        10.[012]*)
7925
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7926
        10.*)
7927
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7928
      esac
7929
    ;;
7930
  esac
7931
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7932
      _lt_dar_single_mod='$single_module'
7933
    fi
7934
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7935
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7936
    else
7937
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7938
    fi
7939
    if test "$DSYMUTIL" != ":"; then
7940
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7941
    else
7942
      _lt_dsymutil=
7943
    fi
7944
    ;;
7945
  esac
7946
 
7947
ac_ext=c
7948
ac_cpp='$CPP $CPPFLAGS'
7949
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7950
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7951
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7952
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7953
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7954
# On Suns, sometimes $CPP names a directory.
7955
if test -n "$CPP" && test -d "$CPP"; then
7956
  CPP=
7957
fi
7958
if test -z "$CPP"; then
7959
  if test "${ac_cv_prog_CPP+set}" = set; then
7960
  $as_echo_n "(cached) " >&6
7961
else
7962
      # Double quotes because CPP needs to be expanded
7963
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7964
    do
7965
      ac_preproc_ok=false
7966
for ac_c_preproc_warn_flag in '' yes
7967
do
7968
  # Use a header file that comes with gcc, so configuring glibc
7969
  # with a fresh cross-compiler works.
7970
  # Prefer  to  if __STDC__ is defined, since
7971
  #  exists even on freestanding compilers.
7972
  # On the NeXT, cc -E runs the code through the compiler's parser,
7973
  # not just through cpp. "Syntax error" is here to catch this case.
7974
  cat >conftest.$ac_ext <<_ACEOF
7975
/* confdefs.h.  */
7976
_ACEOF
7977
cat confdefs.h >>conftest.$ac_ext
7978
cat >>conftest.$ac_ext <<_ACEOF
7979
/* end confdefs.h.  */
7980
#ifdef __STDC__
7981
# include 
7982
#else
7983
# include 
7984
#endif
7985
                     Syntax error
7986
_ACEOF
7987
if { (ac_try="$ac_cpp conftest.$ac_ext"
7988
case "(($ac_try" in
7989
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990
  *) ac_try_echo=$ac_try;;
7991
esac
7992
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7993
$as_echo "$ac_try_echo") >&5
7994
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7995
  ac_status=$?
7996
  grep -v '^ *+' conftest.er1 >conftest.err
7997
  rm -f conftest.er1
7998
  cat conftest.err >&5
7999
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000
  (exit $ac_status); } >/dev/null && {
8001
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8002
         test ! -s conftest.err
8003
       }; then
8004
  :
8005
else
8006
  $as_echo "$as_me: failed program was:" >&5
8007
sed 's/^/| /' conftest.$ac_ext >&5
8008
 
8009
  # Broken: fails on valid input.
8010
continue
8011
fi
8012
 
8013
rm -f conftest.err conftest.$ac_ext
8014
 
8015
  # OK, works on sane cases.  Now check whether nonexistent headers
8016
  # can be detected and how.
8017
  cat >conftest.$ac_ext <<_ACEOF
8018
/* confdefs.h.  */
8019
_ACEOF
8020
cat confdefs.h >>conftest.$ac_ext
8021
cat >>conftest.$ac_ext <<_ACEOF
8022
/* end confdefs.h.  */
8023
#include 
8024
_ACEOF
8025
if { (ac_try="$ac_cpp conftest.$ac_ext"
8026
case "(($ac_try" in
8027
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028
  *) ac_try_echo=$ac_try;;
8029
esac
8030
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8031
$as_echo "$ac_try_echo") >&5
8032
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8033
  ac_status=$?
8034
  grep -v '^ *+' conftest.er1 >conftest.err
8035
  rm -f conftest.er1
8036
  cat conftest.err >&5
8037
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038
  (exit $ac_status); } >/dev/null && {
8039
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8040
         test ! -s conftest.err
8041
       }; then
8042
  # Broken: success on invalid input.
8043
continue
8044
else
8045
  $as_echo "$as_me: failed program was:" >&5
8046
sed 's/^/| /' conftest.$ac_ext >&5
8047
 
8048
  # Passes both tests.
8049
ac_preproc_ok=:
8050
break
8051
fi
8052
 
8053
rm -f conftest.err conftest.$ac_ext
8054
 
8055
done
8056
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8057
rm -f conftest.err conftest.$ac_ext
8058
if $ac_preproc_ok; then
8059
  break
8060
fi
8061
 
8062
    done
8063
    ac_cv_prog_CPP=$CPP
8064
 
8065
fi
8066
  CPP=$ac_cv_prog_CPP
8067
else
8068
  ac_cv_prog_CPP=$CPP
8069
fi
8070
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
8071
$as_echo "$CPP" >&6; }
8072
ac_preproc_ok=false
8073
for ac_c_preproc_warn_flag in '' yes
8074
do
8075
  # Use a header file that comes with gcc, so configuring glibc
8076
  # with a fresh cross-compiler works.
8077
  # Prefer  to  if __STDC__ is defined, since
8078
  #  exists even on freestanding compilers.
8079
  # On the NeXT, cc -E runs the code through the compiler's parser,
8080
  # not just through cpp. "Syntax error" is here to catch this case.
8081
  cat >conftest.$ac_ext <<_ACEOF
8082
/* confdefs.h.  */
8083
_ACEOF
8084
cat confdefs.h >>conftest.$ac_ext
8085
cat >>conftest.$ac_ext <<_ACEOF
8086
/* end confdefs.h.  */
8087
#ifdef __STDC__
8088
# include 
8089
#else
8090
# include 
8091
#endif
8092
                     Syntax error
8093
_ACEOF
8094
if { (ac_try="$ac_cpp conftest.$ac_ext"
8095
case "(($ac_try" in
8096
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097
  *) ac_try_echo=$ac_try;;
8098
esac
8099
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8100
$as_echo "$ac_try_echo") >&5
8101
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8102
  ac_status=$?
8103
  grep -v '^ *+' conftest.er1 >conftest.err
8104
  rm -f conftest.er1
8105
  cat conftest.err >&5
8106
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107
  (exit $ac_status); } >/dev/null && {
8108
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8109
         test ! -s conftest.err
8110
       }; then
8111
  :
8112
else
8113
  $as_echo "$as_me: failed program was:" >&5
8114
sed 's/^/| /' conftest.$ac_ext >&5
8115
 
8116
  # Broken: fails on valid input.
8117
continue
8118
fi
8119
 
8120
rm -f conftest.err conftest.$ac_ext
8121
 
8122
  # OK, works on sane cases.  Now check whether nonexistent headers
8123
  # can be detected and how.
8124
  cat >conftest.$ac_ext <<_ACEOF
8125
/* confdefs.h.  */
8126
_ACEOF
8127
cat confdefs.h >>conftest.$ac_ext
8128
cat >>conftest.$ac_ext <<_ACEOF
8129
/* end confdefs.h.  */
8130
#include 
8131
_ACEOF
8132
if { (ac_try="$ac_cpp conftest.$ac_ext"
8133
case "(($ac_try" in
8134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135
  *) ac_try_echo=$ac_try;;
8136
esac
8137
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8138
$as_echo "$ac_try_echo") >&5
8139
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8140
  ac_status=$?
8141
  grep -v '^ *+' conftest.er1 >conftest.err
8142
  rm -f conftest.er1
8143
  cat conftest.err >&5
8144
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145
  (exit $ac_status); } >/dev/null && {
8146
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8147
         test ! -s conftest.err
8148
       }; then
8149
  # Broken: success on invalid input.
8150
continue
8151
else
8152
  $as_echo "$as_me: failed program was:" >&5
8153
sed 's/^/| /' conftest.$ac_ext >&5
8154
 
8155
  # Passes both tests.
8156
ac_preproc_ok=:
8157
break
8158
fi
8159
 
8160
rm -f conftest.err conftest.$ac_ext
8161
 
8162
done
8163
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8164
rm -f conftest.err conftest.$ac_ext
8165
if $ac_preproc_ok; then
8166
  :
8167
else
8168
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8169
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8170
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8171
See \`config.log' for more details." >&5
8172
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8173
See \`config.log' for more details." >&2;}
8174
   { (exit 1); exit 1; }; }; }
8175
fi
8176
 
8177
ac_ext=c
8178
ac_cpp='$CPP $CPPFLAGS'
8179
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8180
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8181
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8182
 
8183
 
8184
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8185
$as_echo_n "checking for ANSI C header files... " >&6; }
8186
if test "${ac_cv_header_stdc+set}" = set; then
8187
  $as_echo_n "(cached) " >&6
8188
else
8189
  cat >conftest.$ac_ext <<_ACEOF
8190
/* confdefs.h.  */
8191
_ACEOF
8192
cat confdefs.h >>conftest.$ac_ext
8193
cat >>conftest.$ac_ext <<_ACEOF
8194
/* end confdefs.h.  */
8195
#include 
8196
#include 
8197
#include 
8198
#include 
8199
 
8200
int
8201
main ()
8202
{
8203
 
8204
  ;
8205
  return 0;
8206
}
8207
_ACEOF
8208
rm -f conftest.$ac_objext
8209
if { (ac_try="$ac_compile"
8210
case "(($ac_try" in
8211
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212
  *) ac_try_echo=$ac_try;;
8213
esac
8214
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8215
$as_echo "$ac_try_echo") >&5
8216
  (eval "$ac_compile") 2>conftest.er1
8217
  ac_status=$?
8218
  grep -v '^ *+' conftest.er1 >conftest.err
8219
  rm -f conftest.er1
8220
  cat conftest.err >&5
8221
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222
  (exit $ac_status); } && {
8223
         test -z "$ac_c_werror_flag" ||
8224
         test ! -s conftest.err
8225
       } && test -s conftest.$ac_objext; then
8226
  ac_cv_header_stdc=yes
8227
else
8228
  $as_echo "$as_me: failed program was:" >&5
8229
sed 's/^/| /' conftest.$ac_ext >&5
8230
 
8231
        ac_cv_header_stdc=no
8232
fi
8233
 
8234
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235
 
8236
if test $ac_cv_header_stdc = yes; then
8237
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8238
  cat >conftest.$ac_ext <<_ACEOF
8239
/* confdefs.h.  */
8240
_ACEOF
8241
cat confdefs.h >>conftest.$ac_ext
8242
cat >>conftest.$ac_ext <<_ACEOF
8243
/* end confdefs.h.  */
8244
#include 
8245
 
8246
_ACEOF
8247
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8248
  $EGREP "memchr" >/dev/null 2>&1; then
8249
  :
8250
else
8251
  ac_cv_header_stdc=no
8252
fi
8253
rm -f conftest*
8254
 
8255
fi
8256
 
8257
if test $ac_cv_header_stdc = yes; then
8258
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8259
  cat >conftest.$ac_ext <<_ACEOF
8260
/* confdefs.h.  */
8261
_ACEOF
8262
cat confdefs.h >>conftest.$ac_ext
8263
cat >>conftest.$ac_ext <<_ACEOF
8264
/* end confdefs.h.  */
8265
#include 
8266
 
8267
_ACEOF
8268
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8269
  $EGREP "free" >/dev/null 2>&1; then
8270
  :
8271
else
8272
  ac_cv_header_stdc=no
8273
fi
8274
rm -f conftest*
8275
 
8276
fi
8277
 
8278
if test $ac_cv_header_stdc = yes; then
8279
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8280
  if test "$cross_compiling" = yes; then
8281
  :
8282
else
8283
  cat >conftest.$ac_ext <<_ACEOF
8284
/* confdefs.h.  */
8285
_ACEOF
8286
cat confdefs.h >>conftest.$ac_ext
8287
cat >>conftest.$ac_ext <<_ACEOF
8288
/* end confdefs.h.  */
8289
#include 
8290
#include 
8291
#if ((' ' & 0x0FF) == 0x020)
8292
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8293
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8294
#else
8295
# define ISLOWER(c) \
8296
                   (('a' <= (c) && (c) <= 'i') \
8297
                     || ('j' <= (c) && (c) <= 'r') \
8298
                     || ('s' <= (c) && (c) <= 'z'))
8299
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8300
#endif
8301
 
8302
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8303
int
8304
main ()
8305
{
8306
  int i;
8307
  for (i = 0; i < 256; i++)
8308
    if (XOR (islower (i), ISLOWER (i))
8309
        || toupper (i) != TOUPPER (i))
8310
      return 2;
8311
  return 0;
8312
}
8313
_ACEOF
8314
rm -f conftest$ac_exeext
8315
if { (ac_try="$ac_link"
8316
case "(($ac_try" in
8317
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318
  *) ac_try_echo=$ac_try;;
8319
esac
8320
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8321
$as_echo "$ac_try_echo") >&5
8322
  (eval "$ac_link") 2>&5
8323
  ac_status=$?
8324
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8326
  { (case "(($ac_try" in
8327
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328
  *) ac_try_echo=$ac_try;;
8329
esac
8330
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8331
$as_echo "$ac_try_echo") >&5
8332
  (eval "$ac_try") 2>&5
8333
  ac_status=$?
8334
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335
  (exit $ac_status); }; }; then
8336
  :
8337
else
8338
  $as_echo "$as_me: program exited with status $ac_status" >&5
8339
$as_echo "$as_me: failed program was:" >&5
8340
sed 's/^/| /' conftest.$ac_ext >&5
8341
 
8342
( exit $ac_status )
8343
ac_cv_header_stdc=no
8344
fi
8345
rm -rf conftest.dSYM
8346
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8347
fi
8348
 
8349
 
8350
fi
8351
fi
8352
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8353
$as_echo "$ac_cv_header_stdc" >&6; }
8354
if test $ac_cv_header_stdc = yes; then
8355
 
8356
cat >>confdefs.h <<\_ACEOF
8357
#define STDC_HEADERS 1
8358
_ACEOF
8359
 
8360
fi
8361
 
8362
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8363
 
8364
 
8365
 
8366
 
8367
 
8368
 
8369
 
8370
 
8371
 
8372
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8373
                  inttypes.h stdint.h unistd.h
8374
do
8375
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8376
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8377
$as_echo_n "checking for $ac_header... " >&6; }
8378
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8379
  $as_echo_n "(cached) " >&6
8380
else
8381
  cat >conftest.$ac_ext <<_ACEOF
8382
/* confdefs.h.  */
8383
_ACEOF
8384
cat confdefs.h >>conftest.$ac_ext
8385
cat >>conftest.$ac_ext <<_ACEOF
8386
/* end confdefs.h.  */
8387
$ac_includes_default
8388
 
8389
#include <$ac_header>
8390
_ACEOF
8391
rm -f conftest.$ac_objext
8392
if { (ac_try="$ac_compile"
8393
case "(($ac_try" in
8394
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395
  *) ac_try_echo=$ac_try;;
8396
esac
8397
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8398
$as_echo "$ac_try_echo") >&5
8399
  (eval "$ac_compile") 2>conftest.er1
8400
  ac_status=$?
8401
  grep -v '^ *+' conftest.er1 >conftest.err
8402
  rm -f conftest.er1
8403
  cat conftest.err >&5
8404
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405
  (exit $ac_status); } && {
8406
         test -z "$ac_c_werror_flag" ||
8407
         test ! -s conftest.err
8408
       } && test -s conftest.$ac_objext; then
8409
  eval "$as_ac_Header=yes"
8410
else
8411
  $as_echo "$as_me: failed program was:" >&5
8412
sed 's/^/| /' conftest.$ac_ext >&5
8413
 
8414
        eval "$as_ac_Header=no"
8415
fi
8416
 
8417
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418
fi
8419
ac_res=`eval 'as_val=${'$as_ac_Header'}
8420
                 $as_echo "$as_val"'`
8421
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8422
$as_echo "$ac_res" >&6; }
8423
as_val=`eval 'as_val=${'$as_ac_Header'}
8424
                 $as_echo "$as_val"'`
8425
   if test "x$as_val" = x""yes; then
8426
  cat >>confdefs.h <<_ACEOF
8427
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8428
_ACEOF
8429
 
8430
fi
8431
 
8432
done
8433
 
8434
 
8435
 
8436
for ac_header in dlfcn.h
8437
do
8438
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8439
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8440
$as_echo_n "checking for $ac_header... " >&6; }
8441
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8442
  $as_echo_n "(cached) " >&6
8443
else
8444
  cat >conftest.$ac_ext <<_ACEOF
8445
/* confdefs.h.  */
8446
_ACEOF
8447
cat confdefs.h >>conftest.$ac_ext
8448
cat >>conftest.$ac_ext <<_ACEOF
8449
/* end confdefs.h.  */
8450
$ac_includes_default
8451
 
8452
#include <$ac_header>
8453
_ACEOF
8454
rm -f conftest.$ac_objext
8455
if { (ac_try="$ac_compile"
8456
case "(($ac_try" in
8457
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458
  *) ac_try_echo=$ac_try;;
8459
esac
8460
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8461
$as_echo "$ac_try_echo") >&5
8462
  (eval "$ac_compile") 2>conftest.er1
8463
  ac_status=$?
8464
  grep -v '^ *+' conftest.er1 >conftest.err
8465
  rm -f conftest.er1
8466
  cat conftest.err >&5
8467
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468
  (exit $ac_status); } && {
8469
         test -z "$ac_c_werror_flag" ||
8470
         test ! -s conftest.err
8471
       } && test -s conftest.$ac_objext; then
8472
  eval "$as_ac_Header=yes"
8473
else
8474
  $as_echo "$as_me: failed program was:" >&5
8475
sed 's/^/| /' conftest.$ac_ext >&5
8476
 
8477
        eval "$as_ac_Header=no"
8478
fi
8479
 
8480
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481
fi
8482
ac_res=`eval 'as_val=${'$as_ac_Header'}
8483
                 $as_echo "$as_val"'`
8484
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8485
$as_echo "$ac_res" >&6; }
8486
as_val=`eval 'as_val=${'$as_ac_Header'}
8487
                 $as_echo "$as_val"'`
8488
   if test "x$as_val" = x""yes; then
8489
  cat >>confdefs.h <<_ACEOF
8490
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8491
_ACEOF
8492
 
8493
fi
8494
 
8495
done
8496
 
8497
 
8498
 
8499
# Set options
8500
 
8501
 
8502
 
8503
        enable_dlopen=no
8504
 
8505
 
8506
 
8507
            # Check whether --enable-shared was given.
8508
if test "${enable_shared+set}" = set; then
8509
  enableval=$enable_shared; p=${PACKAGE-default}
8510
    case $enableval in
8511
    yes) enable_shared=yes ;;
8512
    no) enable_shared=no ;;
8513
    *)
8514
      enable_shared=no
8515
      # Look at the argument we got.  We use all the common list separators.
8516
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8517
      for pkg in $enableval; do
8518
        IFS="$lt_save_ifs"
8519
        if test "X$pkg" = "X$p"; then
8520
          enable_shared=yes
8521
        fi
8522
      done
8523
      IFS="$lt_save_ifs"
8524
      ;;
8525
    esac
8526
else
8527
  enable_shared=yes
8528
fi
8529
 
8530
 
8531
 
8532
 
8533
 
8534
 
8535
 
8536
 
8537
 
8538
  # Check whether --enable-static was given.
8539
if test "${enable_static+set}" = set; then
8540
  enableval=$enable_static; p=${PACKAGE-default}
8541
    case $enableval in
8542
    yes) enable_static=yes ;;
8543
    no) enable_static=no ;;
8544
    *)
8545
     enable_static=no
8546
      # Look at the argument we got.  We use all the common list separators.
8547
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8548
      for pkg in $enableval; do
8549
        IFS="$lt_save_ifs"
8550
        if test "X$pkg" = "X$p"; then
8551
          enable_static=yes
8552
        fi
8553
      done
8554
      IFS="$lt_save_ifs"
8555
      ;;
8556
    esac
8557
else
8558
  enable_static=yes
8559
fi
8560
 
8561
 
8562
 
8563
 
8564
 
8565
 
8566
 
8567
 
8568
 
8569
 
8570
# Check whether --with-pic was given.
8571
if test "${with_pic+set}" = set; then
8572
  withval=$with_pic; pic_mode="$withval"
8573
else
8574
  pic_mode=default
8575
fi
8576
 
8577
 
8578
test -z "$pic_mode" && pic_mode=default
8579
 
8580
 
8581
 
8582
 
8583
 
8584
 
8585
 
8586
  # Check whether --enable-fast-install was given.
8587
if test "${enable_fast_install+set}" = set; then
8588
  enableval=$enable_fast_install; p=${PACKAGE-default}
8589
    case $enableval in
8590
    yes) enable_fast_install=yes ;;
8591
    no) enable_fast_install=no ;;
8592
    *)
8593
      enable_fast_install=no
8594
      # Look at the argument we got.  We use all the common list separators.
8595
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8596
      for pkg in $enableval; do
8597
        IFS="$lt_save_ifs"
8598
        if test "X$pkg" = "X$p"; then
8599
          enable_fast_install=yes
8600
        fi
8601
      done
8602
      IFS="$lt_save_ifs"
8603
      ;;
8604
    esac
8605
else
8606
  enable_fast_install=yes
8607
fi
8608
 
8609
 
8610
 
8611
 
8612
 
8613
 
8614
 
8615
 
8616
 
8617
 
8618
 
8619
# This can be used to rebuild libtool when needed
8620
LIBTOOL_DEPS="$ltmain"
8621
 
8622
# Always use our own libtool.
8623
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8624
 
8625
 
8626
 
8627
 
8628
 
8629
 
8630
 
8631
 
8632
 
8633
 
8634
 
8635
 
8636
 
8637
 
8638
 
8639
 
8640
 
8641
 
8642
 
8643
 
8644
 
8645
 
8646
 
8647
 
8648
 
8649
test -z "$LN_S" && LN_S="ln -s"
8650
 
8651
 
8652
 
8653
 
8654
 
8655
 
8656
 
8657
 
8658
 
8659
 
8660
 
8661
 
8662
 
8663
 
8664
if test -n "${ZSH_VERSION+set}" ; then
8665
   setopt NO_GLOB_SUBST
8666
fi
8667
 
8668
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8669
$as_echo_n "checking for objdir... " >&6; }
8670
if test "${lt_cv_objdir+set}" = set; then
8671
  $as_echo_n "(cached) " >&6
8672
else
8673
  rm -f .libs 2>/dev/null
8674
mkdir .libs 2>/dev/null
8675
if test -d .libs; then
8676
  lt_cv_objdir=.libs
8677
else
8678
  # MS-DOS does not allow filenames that begin with a dot.
8679
  lt_cv_objdir=_libs
8680
fi
8681
rmdir .libs 2>/dev/null
8682
fi
8683
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8684
$as_echo "$lt_cv_objdir" >&6; }
8685
objdir=$lt_cv_objdir
8686
 
8687
 
8688
 
8689
 
8690
 
8691
cat >>confdefs.h <<_ACEOF
8692
#define LT_OBJDIR "$lt_cv_objdir/"
8693
_ACEOF
8694
 
8695
 
8696
 
8697
 
8698
 
8699
 
8700
 
8701
 
8702
 
8703
 
8704
 
8705
 
8706
 
8707
 
8708
 
8709
 
8710
 
8711
case $host_os in
8712
aix3*)
8713
  # AIX sometimes has problems with the GCC collect2 program.  For some
8714
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8715
  # vanish in a puff of smoke.
8716
  if test "X${COLLECT_NAMES+set}" != Xset; then
8717
    COLLECT_NAMES=
8718
    export COLLECT_NAMES
8719
  fi
8720
  ;;
8721
esac
8722
 
8723
# Sed substitution that helps us do robust quoting.  It backslashifies
8724
# metacharacters that are still active within double-quoted strings.
8725
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8726
 
8727
# Same as above, but do not quote variable references.
8728
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8729
 
8730
# Sed substitution to delay expansion of an escaped shell variable in a
8731
# double_quote_subst'ed string.
8732
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8733
 
8734
# Sed substitution to delay expansion of an escaped single quote.
8735
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8736
 
8737
# Sed substitution to avoid accidental globbing in evaled expressions
8738
no_glob_subst='s/\*/\\\*/g'
8739
 
8740
# Global variables:
8741
ofile=libtool
8742
can_build_shared=yes
8743
 
8744
# All known linkers require a `.a' archive for static linking (except MSVC,
8745
# which needs '.lib').
8746
libext=a
8747
 
8748
with_gnu_ld="$lt_cv_prog_gnu_ld"
8749
 
8750
old_CC="$CC"
8751
old_CFLAGS="$CFLAGS"
8752
 
8753
# Set sane defaults for various variables
8754
test -z "$CC" && CC=cc
8755
test -z "$LTCC" && LTCC=$CC
8756
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8757
test -z "$LD" && LD=ld
8758
test -z "$ac_objext" && ac_objext=o
8759
 
8760
for cc_temp in $compiler""; do
8761
  case $cc_temp in
8762
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8763
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8764
    \-*) ;;
8765
    *) break;;
8766
  esac
8767
done
8768
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8769
 
8770
 
8771
# Only perform the check for file, if the check method requires it
8772
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8773
case $deplibs_check_method in
8774
file_magic*)
8775
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8776
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8777
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8778
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8779
  $as_echo_n "(cached) " >&6
8780
else
8781
  case $MAGIC_CMD in
8782
[\\/*] |  ?:[\\/]*)
8783
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8784
  ;;
8785
*)
8786
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8787
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8788
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8789
  for ac_dir in $ac_dummy; do
8790
    IFS="$lt_save_ifs"
8791
    test -z "$ac_dir" && ac_dir=.
8792
    if test -f $ac_dir/${ac_tool_prefix}file; then
8793
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8794
      if test -n "$file_magic_test_file"; then
8795
        case $deplibs_check_method in
8796
        "file_magic "*)
8797
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8798
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8799
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8800
            $EGREP "$file_magic_regex" > /dev/null; then
8801
            :
8802
          else
8803
            cat <<_LT_EOF 1>&2
8804
 
8805
*** Warning: the command libtool uses to detect shared libraries,
8806
*** $file_magic_cmd, produces output that libtool cannot recognize.
8807
*** The result is that libtool may fail to recognize shared libraries
8808
*** as such.  This will affect the creation of libtool libraries that
8809
*** depend on shared libraries, but programs linked with such libtool
8810
*** libraries will work regardless of this problem.  Nevertheless, you
8811
*** may want to report the problem to your system manager and/or to
8812
*** bug-libtool@gnu.org
8813
 
8814
_LT_EOF
8815
          fi ;;
8816
        esac
8817
      fi
8818
      break
8819
    fi
8820
  done
8821
  IFS="$lt_save_ifs"
8822
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8823
  ;;
8824
esac
8825
fi
8826
 
8827
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8828
if test -n "$MAGIC_CMD"; then
8829
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8830
$as_echo "$MAGIC_CMD" >&6; }
8831
else
8832
  { $as_echo "$as_me:$LINENO: result: no" >&5
8833
$as_echo "no" >&6; }
8834
fi
8835
 
8836
 
8837
 
8838
 
8839
 
8840
if test -z "$lt_cv_path_MAGIC_CMD"; then
8841
  if test -n "$ac_tool_prefix"; then
8842
    { $as_echo "$as_me:$LINENO: checking for file" >&5
8843
$as_echo_n "checking for file... " >&6; }
8844
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8845
  $as_echo_n "(cached) " >&6
8846
else
8847
  case $MAGIC_CMD in
8848
[\\/*] |  ?:[\\/]*)
8849
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8850
  ;;
8851
*)
8852
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8853
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8854
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8855
  for ac_dir in $ac_dummy; do
8856
    IFS="$lt_save_ifs"
8857
    test -z "$ac_dir" && ac_dir=.
8858
    if test -f $ac_dir/file; then
8859
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8860
      if test -n "$file_magic_test_file"; then
8861
        case $deplibs_check_method in
8862
        "file_magic "*)
8863
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8864
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8865
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8866
            $EGREP "$file_magic_regex" > /dev/null; then
8867
            :
8868
          else
8869
            cat <<_LT_EOF 1>&2
8870
 
8871
*** Warning: the command libtool uses to detect shared libraries,
8872
*** $file_magic_cmd, produces output that libtool cannot recognize.
8873
*** The result is that libtool may fail to recognize shared libraries
8874
*** as such.  This will affect the creation of libtool libraries that
8875
*** depend on shared libraries, but programs linked with such libtool
8876
*** libraries will work regardless of this problem.  Nevertheless, you
8877
*** may want to report the problem to your system manager and/or to
8878
*** bug-libtool@gnu.org
8879
 
8880
_LT_EOF
8881
          fi ;;
8882
        esac
8883
      fi
8884
      break
8885
    fi
8886
  done
8887
  IFS="$lt_save_ifs"
8888
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8889
  ;;
8890
esac
8891
fi
8892
 
8893
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8894
if test -n "$MAGIC_CMD"; then
8895
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8896
$as_echo "$MAGIC_CMD" >&6; }
8897
else
8898
  { $as_echo "$as_me:$LINENO: result: no" >&5
8899
$as_echo "no" >&6; }
8900
fi
8901
 
8902
 
8903
  else
8904
    MAGIC_CMD=:
8905
  fi
8906
fi
8907
 
8908
  fi
8909
  ;;
8910
esac
8911
 
8912
# Use C for the default configuration in the libtool script
8913
 
8914
lt_save_CC="$CC"
8915
ac_ext=c
8916
ac_cpp='$CPP $CPPFLAGS'
8917
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8918
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8919
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8920
 
8921
 
8922
# Source file extension for C test sources.
8923
ac_ext=c
8924
 
8925
# Object file extension for compiled C test sources.
8926
objext=o
8927
objext=$objext
8928
 
8929
# Code to be used in simple compile tests
8930
lt_simple_compile_test_code="int some_variable = 0;"
8931
 
8932
# Code to be used in simple link tests
8933
lt_simple_link_test_code='int main(){return(0);}'
8934
 
8935
 
8936
 
8937
 
8938
 
8939
 
8940
 
8941
# If no C compiler was specified, use CC.
8942
LTCC=${LTCC-"$CC"}
8943
 
8944
# If no C compiler flags were specified, use CFLAGS.
8945
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8946
 
8947
# Allow CC to be a program name with arguments.
8948
compiler=$CC
8949
 
8950
# Save the default compiler, since it gets overwritten when the other
8951
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8952
compiler_DEFAULT=$CC
8953
 
8954
# save warnings/boilerplate of simple test code
8955
ac_outfile=conftest.$ac_objext
8956
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8957
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8958
_lt_compiler_boilerplate=`cat conftest.err`
8959
$RM conftest*
8960
 
8961
ac_outfile=conftest.$ac_objext
8962
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8963
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8964
_lt_linker_boilerplate=`cat conftest.err`
8965
$RM -r conftest*
8966
 
8967
 
8968
## CAVEAT EMPTOR:
8969
## There is no encapsulation within the following macros, do not change
8970
## the running order or otherwise move them around unless you know exactly
8971
## what you are doing...
8972
if test -n "$compiler"; then
8973
 
8974
lt_prog_compiler_no_builtin_flag=
8975
 
8976
if test "$GCC" = yes; then
8977
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8978
 
8979
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8980
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8981
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8982
  $as_echo_n "(cached) " >&6
8983
else
8984
  lt_cv_prog_compiler_rtti_exceptions=no
8985
   ac_outfile=conftest.$ac_objext
8986
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8987
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8988
   # Insert the option either (1) after the last *FLAGS variable, or
8989
   # (2) before a word containing "conftest.", or (3) at the end.
8990
   # Note that $ac_compile itself does not contain backslashes and begins
8991
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8992
   # The option is referenced via a variable to avoid confusing sed.
8993
   lt_compile=`echo "$ac_compile" | $SED \
8994
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8995
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8996
   -e 's:$: $lt_compiler_flag:'`
8997
   (eval echo "\"\$as_me:8997: $lt_compile\"" >&5)
8998
   (eval "$lt_compile" 2>conftest.err)
8999
   ac_status=$?
9000
   cat conftest.err >&5
9001
   echo "$as_me:9001: \$? = $ac_status" >&5
9002
   if (exit $ac_status) && test -s "$ac_outfile"; then
9003
     # The compiler can only warn and ignore the option if not recognized
9004
     # So say no if there are warnings other than the usual output.
9005
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9006
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9007
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9008
       lt_cv_prog_compiler_rtti_exceptions=yes
9009
     fi
9010
   fi
9011
   $RM conftest*
9012
 
9013
fi
9014
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9015
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9016
 
9017
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9018
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9019
else
9020
    :
9021
fi
9022
 
9023
fi
9024
 
9025
 
9026
 
9027
 
9028
 
9029
 
9030
  lt_prog_compiler_wl=
9031
lt_prog_compiler_pic=
9032
lt_prog_compiler_static=
9033
 
9034
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9035
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9036
 
9037
  if test "$GCC" = yes; then
9038
    lt_prog_compiler_wl='-Wl,'
9039
    lt_prog_compiler_static='-static'
9040
 
9041
    case $host_os in
9042
      aix*)
9043
      # All AIX code is PIC.
9044
      if test "$host_cpu" = ia64; then
9045
        # AIX 5 now supports IA64 processor
9046
        lt_prog_compiler_static='-Bstatic'
9047
      fi
9048
      ;;
9049
 
9050
    amigaos*)
9051
      case $host_cpu in
9052
      powerpc)
9053
            # see comment about AmigaOS4 .so support
9054
            lt_prog_compiler_pic='-fPIC'
9055
        ;;
9056
      m68k)
9057
            # FIXME: we need at least 68020 code to build shared libraries, but
9058
            # adding the `-m68020' flag to GCC prevents building anything better,
9059
            # like `-m68040'.
9060
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9061
        ;;
9062
      esac
9063
      ;;
9064
 
9065
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9066
      # PIC is the default for these OSes.
9067
      ;;
9068
 
9069
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9070
      # This hack is so that the source file can tell whether it is being
9071
      # built for inclusion in a dll (and should export symbols for example).
9072
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9073
      # (--disable-auto-import) libraries
9074
      lt_prog_compiler_pic='-DDLL_EXPORT'
9075
      ;;
9076
 
9077
    darwin* | rhapsody*)
9078
      # PIC is the default on this platform
9079
      # Common symbols not allowed in MH_DYLIB files
9080
      lt_prog_compiler_pic='-fno-common'
9081
      ;;
9082
 
9083
    hpux*)
9084
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9085
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9086
      # sets the default TLS model and affects inlining.
9087
      case $host_cpu in
9088
      hppa*64*)
9089
        # +Z the default
9090
        ;;
9091
      *)
9092
        lt_prog_compiler_pic='-fPIC'
9093
        ;;
9094
      esac
9095
      ;;
9096
 
9097
    interix[3-9]*)
9098
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9099
      # Instead, we relocate shared libraries at runtime.
9100
      ;;
9101
 
9102
    msdosdjgpp*)
9103
      # Just because we use GCC doesn't mean we suddenly get shared libraries
9104
      # on systems that don't support them.
9105
      lt_prog_compiler_can_build_shared=no
9106
      enable_shared=no
9107
      ;;
9108
 
9109
    *nto* | *qnx*)
9110
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9111
      # it will coredump.
9112
      lt_prog_compiler_pic='-fPIC -shared'
9113
      ;;
9114
 
9115
    sysv4*MP*)
9116
      if test -d /usr/nec; then
9117
        lt_prog_compiler_pic=-Kconform_pic
9118
      fi
9119
      ;;
9120
 
9121
    *)
9122
      lt_prog_compiler_pic='-fPIC'
9123
      ;;
9124
    esac
9125
  else
9126
    # PORTME Check for flag to pass linker flags through the system compiler.
9127
    case $host_os in
9128
    aix*)
9129
      lt_prog_compiler_wl='-Wl,'
9130
      if test "$host_cpu" = ia64; then
9131
        # AIX 5 now supports IA64 processor
9132
        lt_prog_compiler_static='-Bstatic'
9133
      else
9134
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9135
      fi
9136
      ;;
9137
 
9138
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9139
      # This hack is so that the source file can tell whether it is being
9140
      # built for inclusion in a dll (and should export symbols for example).
9141
      lt_prog_compiler_pic='-DDLL_EXPORT'
9142
      ;;
9143
 
9144
    hpux9* | hpux10* | hpux11*)
9145
      lt_prog_compiler_wl='-Wl,'
9146
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9147
      # not for PA HP-UX.
9148
      case $host_cpu in
9149
      hppa*64*|ia64*)
9150
        # +Z the default
9151
        ;;
9152
      *)
9153
        lt_prog_compiler_pic='+Z'
9154
        ;;
9155
      esac
9156
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9157
      lt_prog_compiler_static='${wl}-a ${wl}archive'
9158
      ;;
9159
 
9160
    irix5* | irix6* | nonstopux*)
9161
      lt_prog_compiler_wl='-Wl,'
9162
      # PIC (with -KPIC) is the default.
9163
      lt_prog_compiler_static='-non_shared'
9164
      ;;
9165
 
9166
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9167
      case $cc_basename in
9168
      # old Intel for x86_64 which still supported -KPIC.
9169
      ecc*)
9170
        lt_prog_compiler_wl='-Wl,'
9171
        lt_prog_compiler_pic='-KPIC'
9172
        lt_prog_compiler_static='-static'
9173
        ;;
9174
      # icc used to be incompatible with GCC.
9175
      # ICC 10 doesn't accept -KPIC any more.
9176
      icc* | ifort*)
9177
        lt_prog_compiler_wl='-Wl,'
9178
        lt_prog_compiler_pic='-fPIC'
9179
        lt_prog_compiler_static='-static'
9180
        ;;
9181
      # Lahey Fortran 8.1.
9182
      lf95*)
9183
        lt_prog_compiler_wl='-Wl,'
9184
        lt_prog_compiler_pic='--shared'
9185
        lt_prog_compiler_static='--static'
9186
        ;;
9187
      pgcc* | pgf77* | pgf90* | pgf95*)
9188
        # Portland Group compilers (*not* the Pentium gcc compiler,
9189
        # which looks to be a dead project)
9190
        lt_prog_compiler_wl='-Wl,'
9191
        lt_prog_compiler_pic='-fpic'
9192
        lt_prog_compiler_static='-Bstatic'
9193
        ;;
9194
      ccc*)
9195
        lt_prog_compiler_wl='-Wl,'
9196
        # All Alpha code is PIC.
9197
        lt_prog_compiler_static='-non_shared'
9198
        ;;
9199
      xl*)
9200
        # IBM XL C 8.0/Fortran 10.1 on PPC
9201
        lt_prog_compiler_wl='-Wl,'
9202
        lt_prog_compiler_pic='-qpic'
9203
        lt_prog_compiler_static='-qstaticlink'
9204
        ;;
9205
      *)
9206
        case `$CC -V 2>&1 | sed 5q` in
9207
        *Sun\ C*)
9208
          # Sun C 5.9
9209
          lt_prog_compiler_pic='-KPIC'
9210
          lt_prog_compiler_static='-Bstatic'
9211
          lt_prog_compiler_wl='-Wl,'
9212
          ;;
9213
        *Sun\ F*)
9214
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9215
          lt_prog_compiler_pic='-KPIC'
9216
          lt_prog_compiler_static='-Bstatic'
9217
          lt_prog_compiler_wl=''
9218
          ;;
9219
        esac
9220
        ;;
9221
      esac
9222
      ;;
9223
 
9224
    newsos6)
9225
      lt_prog_compiler_pic='-KPIC'
9226
      lt_prog_compiler_static='-Bstatic'
9227
      ;;
9228
 
9229
    *nto* | *qnx*)
9230
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9231
      # it will coredump.
9232
      lt_prog_compiler_pic='-fPIC -shared'
9233
      ;;
9234
 
9235
    osf3* | osf4* | osf5*)
9236
      lt_prog_compiler_wl='-Wl,'
9237
      # All OSF/1 code is PIC.
9238
      lt_prog_compiler_static='-non_shared'
9239
      ;;
9240
 
9241
    rdos*)
9242
      lt_prog_compiler_static='-non_shared'
9243
      ;;
9244
 
9245
    solaris*)
9246
      lt_prog_compiler_pic='-KPIC'
9247
      lt_prog_compiler_static='-Bstatic'
9248
      case $cc_basename in
9249
      f77* | f90* | f95*)
9250
        lt_prog_compiler_wl='-Qoption ld ';;
9251
      *)
9252
        lt_prog_compiler_wl='-Wl,';;
9253
      esac
9254
      ;;
9255
 
9256
    sunos4*)
9257
      lt_prog_compiler_wl='-Qoption ld '
9258
      lt_prog_compiler_pic='-PIC'
9259
      lt_prog_compiler_static='-Bstatic'
9260
      ;;
9261
 
9262
    sysv4 | sysv4.2uw2* | sysv4.3*)
9263
      lt_prog_compiler_wl='-Wl,'
9264
      lt_prog_compiler_pic='-KPIC'
9265
      lt_prog_compiler_static='-Bstatic'
9266
      ;;
9267
 
9268
    sysv4*MP*)
9269
      if test -d /usr/nec ;then
9270
        lt_prog_compiler_pic='-Kconform_pic'
9271
        lt_prog_compiler_static='-Bstatic'
9272
      fi
9273
      ;;
9274
 
9275
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9276
      lt_prog_compiler_wl='-Wl,'
9277
      lt_prog_compiler_pic='-KPIC'
9278
      lt_prog_compiler_static='-Bstatic'
9279
      ;;
9280
 
9281
    unicos*)
9282
      lt_prog_compiler_wl='-Wl,'
9283
      lt_prog_compiler_can_build_shared=no
9284
      ;;
9285
 
9286
    uts4*)
9287
      lt_prog_compiler_pic='-pic'
9288
      lt_prog_compiler_static='-Bstatic'
9289
      ;;
9290
 
9291
    *)
9292
      lt_prog_compiler_can_build_shared=no
9293
      ;;
9294
    esac
9295
  fi
9296
 
9297
case $host_os in
9298
  # For platforms which do not support PIC, -DPIC is meaningless:
9299
  *djgpp*)
9300
    lt_prog_compiler_pic=
9301
    ;;
9302
  *)
9303
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9304
    ;;
9305
esac
9306
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9307
$as_echo "$lt_prog_compiler_pic" >&6; }
9308
 
9309
 
9310
 
9311
 
9312
 
9313
 
9314
#
9315
# Check to make sure the PIC flag actually works.
9316
#
9317
if test -n "$lt_prog_compiler_pic"; then
9318
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9319
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9320
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9321
  $as_echo_n "(cached) " >&6
9322
else
9323
  lt_cv_prog_compiler_pic_works=no
9324
   ac_outfile=conftest.$ac_objext
9325
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9326
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9327
   # Insert the option either (1) after the last *FLAGS variable, or
9328
   # (2) before a word containing "conftest.", or (3) at the end.
9329
   # Note that $ac_compile itself does not contain backslashes and begins
9330
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9331
   # The option is referenced via a variable to avoid confusing sed.
9332
   lt_compile=`echo "$ac_compile" | $SED \
9333
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9334
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9335
   -e 's:$: $lt_compiler_flag:'`
9336
   (eval echo "\"\$as_me:9336: $lt_compile\"" >&5)
9337
   (eval "$lt_compile" 2>conftest.err)
9338
   ac_status=$?
9339
   cat conftest.err >&5
9340
   echo "$as_me:9340: \$? = $ac_status" >&5
9341
   if (exit $ac_status) && test -s "$ac_outfile"; then
9342
     # The compiler can only warn and ignore the option if not recognized
9343
     # So say no if there are warnings other than the usual output.
9344
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9345
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9346
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9347
       lt_cv_prog_compiler_pic_works=yes
9348
     fi
9349
   fi
9350
   $RM conftest*
9351
 
9352
fi
9353
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9354
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9355
 
9356
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9357
    case $lt_prog_compiler_pic in
9358
     "" | " "*) ;;
9359
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9360
     esac
9361
else
9362
    lt_prog_compiler_pic=
9363
     lt_prog_compiler_can_build_shared=no
9364
fi
9365
 
9366
fi
9367
 
9368
 
9369
 
9370
 
9371
 
9372
 
9373
#
9374
# Check to make sure the static flag actually works.
9375
#
9376
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9377
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9378
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9379
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9380
  $as_echo_n "(cached) " >&6
9381
else
9382
  lt_cv_prog_compiler_static_works=no
9383
   save_LDFLAGS="$LDFLAGS"
9384
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9385
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9386
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9387
     # The linker can only warn and ignore the option if not recognized
9388
     # So say no if there are warnings
9389
     if test -s conftest.err; then
9390
       # Append any errors to the config.log.
9391
       cat conftest.err 1>&5
9392
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9393
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9394
       if diff conftest.exp conftest.er2 >/dev/null; then
9395
         lt_cv_prog_compiler_static_works=yes
9396
       fi
9397
     else
9398
       lt_cv_prog_compiler_static_works=yes
9399
     fi
9400
   fi
9401
   $RM -r conftest*
9402
   LDFLAGS="$save_LDFLAGS"
9403
 
9404
fi
9405
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9406
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9407
 
9408
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9409
    :
9410
else
9411
    lt_prog_compiler_static=
9412
fi
9413
 
9414
 
9415
 
9416
 
9417
 
9418
 
9419
 
9420
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9421
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9422
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9423
  $as_echo_n "(cached) " >&6
9424
else
9425
  lt_cv_prog_compiler_c_o=no
9426
   $RM -r conftest 2>/dev/null
9427
   mkdir conftest
9428
   cd conftest
9429
   mkdir out
9430
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9431
 
9432
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9433
   # Insert the option either (1) after the last *FLAGS variable, or
9434
   # (2) before a word containing "conftest.", or (3) at the end.
9435
   # Note that $ac_compile itself does not contain backslashes and begins
9436
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9437
   lt_compile=`echo "$ac_compile" | $SED \
9438
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9439
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9440
   -e 's:$: $lt_compiler_flag:'`
9441
   (eval echo "\"\$as_me:9441: $lt_compile\"" >&5)
9442
   (eval "$lt_compile" 2>out/conftest.err)
9443
   ac_status=$?
9444
   cat out/conftest.err >&5
9445
   echo "$as_me:9445: \$? = $ac_status" >&5
9446
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9447
   then
9448
     # The compiler can only warn and ignore the option if not recognized
9449
     # So say no if there are warnings
9450
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9451
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9452
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9453
       lt_cv_prog_compiler_c_o=yes
9454
     fi
9455
   fi
9456
   chmod u+w . 2>&5
9457
   $RM conftest*
9458
   # SGI C++ compiler will create directory out/ii_files/ for
9459
   # template instantiation
9460
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9461
   $RM out/* && rmdir out
9462
   cd ..
9463
   $RM -r conftest
9464
   $RM conftest*
9465
 
9466
fi
9467
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9468
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9469
 
9470
 
9471
 
9472
 
9473
 
9474
 
9475
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9476
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9477
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9478
  $as_echo_n "(cached) " >&6
9479
else
9480
  lt_cv_prog_compiler_c_o=no
9481
   $RM -r conftest 2>/dev/null
9482
   mkdir conftest
9483
   cd conftest
9484
   mkdir out
9485
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9486
 
9487
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9488
   # Insert the option either (1) after the last *FLAGS variable, or
9489
   # (2) before a word containing "conftest.", or (3) at the end.
9490
   # Note that $ac_compile itself does not contain backslashes and begins
9491
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9492
   lt_compile=`echo "$ac_compile" | $SED \
9493
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9494
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9495
   -e 's:$: $lt_compiler_flag:'`
9496
   (eval echo "\"\$as_me:9496: $lt_compile\"" >&5)
9497
   (eval "$lt_compile" 2>out/conftest.err)
9498
   ac_status=$?
9499
   cat out/conftest.err >&5
9500
   echo "$as_me:9500: \$? = $ac_status" >&5
9501
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9502
   then
9503
     # The compiler can only warn and ignore the option if not recognized
9504
     # So say no if there are warnings
9505
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9506
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9507
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9508
       lt_cv_prog_compiler_c_o=yes
9509
     fi
9510
   fi
9511
   chmod u+w . 2>&5
9512
   $RM conftest*
9513
   # SGI C++ compiler will create directory out/ii_files/ for
9514
   # template instantiation
9515
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9516
   $RM out/* && rmdir out
9517
   cd ..
9518
   $RM -r conftest
9519
   $RM conftest*
9520
 
9521
fi
9522
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9523
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9524
 
9525
 
9526
 
9527
 
9528
hard_links="nottested"
9529
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9530
  # do not overwrite the value of need_locks provided by the user
9531
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9532
$as_echo_n "checking if we can lock with hard links... " >&6; }
9533
  hard_links=yes
9534
  $RM conftest*
9535
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9536
  touch conftest.a
9537
  ln conftest.a conftest.b 2>&5 || hard_links=no
9538
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9539
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9540
$as_echo "$hard_links" >&6; }
9541
  if test "$hard_links" = no; then
9542
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9543
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9544
    need_locks=warn
9545
  fi
9546
else
9547
  need_locks=no
9548
fi
9549
 
9550
 
9551
 
9552
 
9553
 
9554
 
9555
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9556
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9557
 
9558
  runpath_var=
9559
  allow_undefined_flag=
9560
  always_export_symbols=no
9561
  archive_cmds=
9562
  archive_expsym_cmds=
9563
  compiler_needs_object=no
9564
  enable_shared_with_static_runtimes=no
9565
  export_dynamic_flag_spec=
9566
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9567
  hardcode_automatic=no
9568
  hardcode_direct=no
9569
  hardcode_direct_absolute=no
9570
  hardcode_libdir_flag_spec=
9571
  hardcode_libdir_flag_spec_ld=
9572
  hardcode_libdir_separator=
9573
  hardcode_minus_L=no
9574
  hardcode_shlibpath_var=unsupported
9575
  inherit_rpath=no
9576
  link_all_deplibs=unknown
9577
  module_cmds=
9578
  module_expsym_cmds=
9579
  old_archive_from_new_cmds=
9580
  old_archive_from_expsyms_cmds=
9581
  thread_safe_flag_spec=
9582
  whole_archive_flag_spec=
9583
  # include_expsyms should be a list of space-separated symbols to be *always*
9584
  # included in the symbol list
9585
  include_expsyms=
9586
  # exclude_expsyms can be an extended regexp of symbols to exclude
9587
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9588
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9589
  # as well as any symbol that contains `d'.
9590
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9591
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9592
  # platforms (ab)use it in PIC code, but their linkers get confused if
9593
  # the symbol is explicitly referenced.  Since portable code cannot
9594
  # rely on this symbol name, it's probably fine to never include it in
9595
  # preloaded symbol tables.
9596
  # Exclude shared library initialization/finalization symbols.
9597
  extract_expsyms_cmds=
9598
 
9599
  case $host_os in
9600
  cygwin* | mingw* | pw32* | cegcc*)
9601
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9602
    # When not using gcc, we currently assume that we are using
9603
    # Microsoft Visual C++.
9604
    if test "$GCC" != yes; then
9605
      with_gnu_ld=no
9606
    fi
9607
    ;;
9608
  interix*)
9609
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9610
    with_gnu_ld=yes
9611
    ;;
9612
  openbsd*)
9613
    with_gnu_ld=no
9614
    ;;
9615
  esac
9616
 
9617
  ld_shlibs=yes
9618
  if test "$with_gnu_ld" = yes; then
9619
    # If archive_cmds runs LD, not CC, wlarc should be empty
9620
    wlarc='${wl}'
9621
 
9622
    # Set some defaults for GNU ld with shared library support. These
9623
    # are reset later if shared libraries are not supported. Putting them
9624
    # here allows them to be overridden if necessary.
9625
    runpath_var=LD_RUN_PATH
9626
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627
    export_dynamic_flag_spec='${wl}--export-dynamic'
9628
    # ancient GNU ld didn't support --whole-archive et. al.
9629
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9630
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9631
    else
9632
      whole_archive_flag_spec=
9633
    fi
9634
    supports_anon_versioning=no
9635
    case `$LD -v 2>&1` in
9636
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9637
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9638
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9639
      *\ 2.11.*) ;; # other 2.11 versions
9640
      *) supports_anon_versioning=yes ;;
9641
    esac
9642
 
9643
    # See if GNU ld supports shared libraries.
9644
    case $host_os in
9645
    aix[3-9]*)
9646
      # On AIX/PPC, the GNU linker is very broken
9647
      if test "$host_cpu" != ia64; then
9648
        ld_shlibs=no
9649
        cat <<_LT_EOF 1>&2
9650
 
9651
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9652
*** to be unable to reliably create shared libraries on AIX.
9653
*** Therefore, libtool is disabling shared libraries support.  If you
9654
*** really care for shared libraries, you may want to modify your PATH
9655
*** so that a non-GNU linker is found, and then restart.
9656
 
9657
_LT_EOF
9658
      fi
9659
      ;;
9660
 
9661
    amigaos*)
9662
      case $host_cpu in
9663
      powerpc)
9664
            # see comment about AmigaOS4 .so support
9665
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9666
            archive_expsym_cmds=''
9667
        ;;
9668
      m68k)
9669
            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)'
9670
            hardcode_libdir_flag_spec='-L$libdir'
9671
            hardcode_minus_L=yes
9672
        ;;
9673
      esac
9674
      ;;
9675
 
9676
    beos*)
9677
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9678
        allow_undefined_flag=unsupported
9679
        # Joseph Beckenbach  says some releases of gcc
9680
        # support --undefined.  This deserves some investigation.  FIXME
9681
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9682
      else
9683
        ld_shlibs=no
9684
      fi
9685
      ;;
9686
 
9687
    cygwin* | mingw* | pw32* | cegcc*)
9688
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9689
      # as there is no search path for DLLs.
9690
      hardcode_libdir_flag_spec='-L$libdir'
9691
      allow_undefined_flag=unsupported
9692
      always_export_symbols=no
9693
      enable_shared_with_static_runtimes=yes
9694
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9695
 
9696
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9697
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9698
        # If the export-symbols file already is a .def file (1st line
9699
        # is EXPORTS), use it as is; otherwise, prepend...
9700
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9701
          cp $export_symbols $output_objdir/$soname.def;
9702
        else
9703
          echo EXPORTS > $output_objdir/$soname.def;
9704
          cat $export_symbols >> $output_objdir/$soname.def;
9705
        fi~
9706
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9707
      else
9708
        ld_shlibs=no
9709
      fi
9710
      ;;
9711
 
9712
    interix[3-9]*)
9713
      hardcode_direct=no
9714
      hardcode_shlibpath_var=no
9715
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9716
      export_dynamic_flag_spec='${wl}-E'
9717
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9718
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9719
      # default) and relocated if they conflict, which is a slow very memory
9720
      # consuming and fragmenting process.  To avoid this, we pick a random,
9721
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9722
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9723
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9724
      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'
9725
      ;;
9726
 
9727
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9728
      tmp_diet=no
9729
      if test "$host_os" = linux-dietlibc; then
9730
        case $cc_basename in
9731
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9732
        esac
9733
      fi
9734
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9735
         && test "$tmp_diet" = no
9736
      then
9737
        tmp_addflag=
9738
        tmp_sharedflag='-shared'
9739
        case $cc_basename,$host_cpu in
9740
        pgcc*)                          # Portland Group C compiler
9741
          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'
9742
          tmp_addflag=' $pic_flag'
9743
          ;;
9744
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9745
          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'
9746
          tmp_addflag=' $pic_flag -Mnomain' ;;
9747
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9748
          tmp_addflag=' -i_dynamic' ;;
9749
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9750
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9751
        ifc* | ifort*)                  # Intel Fortran compiler
9752
          tmp_addflag=' -nofor_main' ;;
9753
        lf95*)                          # Lahey Fortran 8.1
9754
          whole_archive_flag_spec=
9755
          tmp_sharedflag='--shared' ;;
9756
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9757
          tmp_sharedflag='-qmkshrobj'
9758
          tmp_addflag= ;;
9759
        esac
9760
        case `$CC -V 2>&1 | sed 5q` in
9761
        *Sun\ C*)                       # Sun C 5.9
9762
          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'
9763
          compiler_needs_object=yes
9764
          tmp_sharedflag='-G' ;;
9765
        *Sun\ F*)                       # Sun Fortran 8.3
9766
          tmp_sharedflag='-G' ;;
9767
        esac
9768
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9769
 
9770
        if test "x$supports_anon_versioning" = xyes; then
9771
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9772
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9773
            echo "local: *; };" >> $output_objdir/$libname.ver~
9774
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9775
        fi
9776
 
9777
        case $cc_basename in
9778
        xlf*)
9779
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9780
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9781
          hardcode_libdir_flag_spec=
9782
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9783
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9784
          if test "x$supports_anon_versioning" = xyes; then
9785
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9786
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9787
              echo "local: *; };" >> $output_objdir/$libname.ver~
9788
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9789
          fi
9790
          ;;
9791
        esac
9792
      else
9793
        ld_shlibs=no
9794
      fi
9795
      ;;
9796
 
9797
    netbsd*)
9798
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9799
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9800
        wlarc=
9801
      else
9802
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9803
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9804
      fi
9805
      ;;
9806
 
9807
    solaris*)
9808
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9809
        ld_shlibs=no
9810
        cat <<_LT_EOF 1>&2
9811
 
9812
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9813
*** create shared libraries on Solaris systems.  Therefore, libtool
9814
*** is disabling shared libraries support.  We urge you to upgrade GNU
9815
*** binutils to release 2.9.1 or newer.  Another option is to modify
9816
*** your PATH or compiler configuration so that the native linker is
9817
*** used, and then restart.
9818
 
9819
_LT_EOF
9820
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9821
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9822
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9823
      else
9824
        ld_shlibs=no
9825
      fi
9826
      ;;
9827
 
9828
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9829
      case `$LD -v 2>&1` in
9830
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9831
        ld_shlibs=no
9832
        cat <<_LT_EOF 1>&2
9833
 
9834
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9835
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9836
*** is disabling shared libraries support.  We urge you to upgrade GNU
9837
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9838
*** your PATH or compiler configuration so that the native linker is
9839
*** used, and then restart.
9840
 
9841
_LT_EOF
9842
        ;;
9843
        *)
9844
          # For security reasons, it is highly recommended that you always
9845
          # use absolute paths for naming shared libraries, and exclude the
9846
          # DT_RUNPATH tag from executables and libraries.  But doing so
9847
          # requires that you compile everything twice, which is a pain.
9848
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9849
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9850
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9852
          else
9853
            ld_shlibs=no
9854
          fi
9855
        ;;
9856
      esac
9857
      ;;
9858
 
9859
    sunos4*)
9860
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9861
      wlarc=
9862
      hardcode_direct=yes
9863
      hardcode_shlibpath_var=no
9864
      ;;
9865
 
9866
    *)
9867
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9868
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9869
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9870
      else
9871
        ld_shlibs=no
9872
      fi
9873
      ;;
9874
    esac
9875
 
9876
    if test "$ld_shlibs" = no; then
9877
      runpath_var=
9878
      hardcode_libdir_flag_spec=
9879
      export_dynamic_flag_spec=
9880
      whole_archive_flag_spec=
9881
    fi
9882
  else
9883
    # PORTME fill in a description of your system's linker (not GNU ld)
9884
    case $host_os in
9885
    aix3*)
9886
      allow_undefined_flag=unsupported
9887
      always_export_symbols=yes
9888
      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'
9889
      # Note: this linker hardcodes the directories in LIBPATH if there
9890
      # are no directories specified by -L.
9891
      hardcode_minus_L=yes
9892
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9893
        # Neither direct hardcoding nor static linking is supported with a
9894
        # broken collect2.
9895
        hardcode_direct=unsupported
9896
      fi
9897
      ;;
9898
 
9899
    aix[4-9]*)
9900
      if test "$host_cpu" = ia64; then
9901
        # On IA64, the linker does run time linking by default, so we don't
9902
        # have to do anything special.
9903
        aix_use_runtimelinking=no
9904
        exp_sym_flag='-Bexport'
9905
        no_entry_flag=""
9906
      else
9907
        # If we're using GNU nm, then we don't want the "-C" option.
9908
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9909
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9910
          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'
9911
        else
9912
          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'
9913
        fi
9914
        aix_use_runtimelinking=no
9915
 
9916
        # Test if we are trying to use run time linking or normal
9917
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9918
        # need to do runtime linking.
9919
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9920
          for ld_flag in $LDFLAGS; do
9921
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9922
            aix_use_runtimelinking=yes
9923
            break
9924
          fi
9925
          done
9926
          ;;
9927
        esac
9928
 
9929
        exp_sym_flag='-bexport'
9930
        no_entry_flag='-bnoentry'
9931
      fi
9932
 
9933
      # When large executables or shared objects are built, AIX ld can
9934
      # have problems creating the table of contents.  If linking a library
9935
      # or program results in "error TOC overflow" add -mminimal-toc to
9936
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9937
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9938
 
9939
      archive_cmds=''
9940
      hardcode_direct=yes
9941
      hardcode_direct_absolute=yes
9942
      hardcode_libdir_separator=':'
9943
      link_all_deplibs=yes
9944
      file_list_spec='${wl}-f,'
9945
 
9946
      if test "$GCC" = yes; then
9947
        case $host_os in aix4.[012]|aix4.[012].*)
9948
        # We only want to do this on AIX 4.2 and lower, the check
9949
        # below for broken collect2 doesn't work under 4.3+
9950
          collect2name=`${CC} -print-prog-name=collect2`
9951
          if test -f "$collect2name" &&
9952
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9953
          then
9954
          # We have reworked collect2
9955
          :
9956
          else
9957
          # We have old collect2
9958
          hardcode_direct=unsupported
9959
          # It fails to find uninstalled libraries when the uninstalled
9960
          # path is not listed in the libpath.  Setting hardcode_minus_L
9961
          # to unsupported forces relinking
9962
          hardcode_minus_L=yes
9963
          hardcode_libdir_flag_spec='-L$libdir'
9964
          hardcode_libdir_separator=
9965
          fi
9966
          ;;
9967
        esac
9968
        shared_flag='-shared'
9969
        if test "$aix_use_runtimelinking" = yes; then
9970
          shared_flag="$shared_flag "'${wl}-G'
9971
        fi
9972
      else
9973
        # not using gcc
9974
        if test "$host_cpu" = ia64; then
9975
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9976
        # chokes on -Wl,-G. The following line is correct:
9977
          shared_flag='-G'
9978
        else
9979
          if test "$aix_use_runtimelinking" = yes; then
9980
            shared_flag='${wl}-G'
9981
          else
9982
            shared_flag='${wl}-bM:SRE'
9983
          fi
9984
        fi
9985
      fi
9986
 
9987
      export_dynamic_flag_spec='${wl}-bexpall'
9988
      # It seems that -bexpall does not export symbols beginning with
9989
      # underscore (_), so it is better to generate a list of symbols to export.
9990
      always_export_symbols=yes
9991
      if test "$aix_use_runtimelinking" = yes; then
9992
        # Warning - without using the other runtime loading flags (-brtl),
9993
        # -berok will link without error, but may produce a broken library.
9994
        allow_undefined_flag='-berok'
9995
        # Determine the default libpath from the value encoded in an
9996
        # empty executable.
9997
        cat >conftest.$ac_ext <<_ACEOF
9998
/* confdefs.h.  */
9999
_ACEOF
10000
cat confdefs.h >>conftest.$ac_ext
10001
cat >>conftest.$ac_ext <<_ACEOF
10002
/* end confdefs.h.  */
10003
 
10004
int
10005
main ()
10006
{
10007
 
10008
  ;
10009
  return 0;
10010
}
10011
_ACEOF
10012
rm -f conftest.$ac_objext conftest$ac_exeext
10013
if { (ac_try="$ac_link"
10014
case "(($ac_try" in
10015
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016
  *) ac_try_echo=$ac_try;;
10017
esac
10018
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10019
$as_echo "$ac_try_echo") >&5
10020
  (eval "$ac_link") 2>conftest.er1
10021
  ac_status=$?
10022
  grep -v '^ *+' conftest.er1 >conftest.err
10023
  rm -f conftest.er1
10024
  cat conftest.err >&5
10025
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026
  (exit $ac_status); } && {
10027
         test -z "$ac_c_werror_flag" ||
10028
         test ! -s conftest.err
10029
       } && test -s conftest$ac_exeext && {
10030
         test "$cross_compiling" = yes ||
10031
         $as_test_x conftest$ac_exeext
10032
       }; then
10033
 
10034
lt_aix_libpath_sed='
10035
    /Import File Strings/,/^$/ {
10036
        /^0/ {
10037
            s/^0  *\(.*\)$/\1/
10038
            p
10039
        }
10040
    }'
10041
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10042
# Check for a 64-bit object if we didn't find anything.
10043
if test -z "$aix_libpath"; then
10044
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10045
fi
10046
else
10047
  $as_echo "$as_me: failed program was:" >&5
10048
sed 's/^/| /' conftest.$ac_ext >&5
10049
 
10050
 
10051
fi
10052
 
10053
rm -rf conftest.dSYM
10054
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10055
      conftest$ac_exeext conftest.$ac_ext
10056
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10057
 
10058
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10059
        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"
10060
      else
10061
        if test "$host_cpu" = ia64; then
10062
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10063
          allow_undefined_flag="-z nodefs"
10064
          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"
10065
        else
10066
         # Determine the default libpath from the value encoded in an
10067
         # empty executable.
10068
         cat >conftest.$ac_ext <<_ACEOF
10069
/* confdefs.h.  */
10070
_ACEOF
10071
cat confdefs.h >>conftest.$ac_ext
10072
cat >>conftest.$ac_ext <<_ACEOF
10073
/* end confdefs.h.  */
10074
 
10075
int
10076
main ()
10077
{
10078
 
10079
  ;
10080
  return 0;
10081
}
10082
_ACEOF
10083
rm -f conftest.$ac_objext conftest$ac_exeext
10084
if { (ac_try="$ac_link"
10085
case "(($ac_try" in
10086
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087
  *) ac_try_echo=$ac_try;;
10088
esac
10089
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10090
$as_echo "$ac_try_echo") >&5
10091
  (eval "$ac_link") 2>conftest.er1
10092
  ac_status=$?
10093
  grep -v '^ *+' conftest.er1 >conftest.err
10094
  rm -f conftest.er1
10095
  cat conftest.err >&5
10096
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097
  (exit $ac_status); } && {
10098
         test -z "$ac_c_werror_flag" ||
10099
         test ! -s conftest.err
10100
       } && test -s conftest$ac_exeext && {
10101
         test "$cross_compiling" = yes ||
10102
         $as_test_x conftest$ac_exeext
10103
       }; then
10104
 
10105
lt_aix_libpath_sed='
10106
    /Import File Strings/,/^$/ {
10107
        /^0/ {
10108
            s/^0  *\(.*\)$/\1/
10109
            p
10110
        }
10111
    }'
10112
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10113
# Check for a 64-bit object if we didn't find anything.
10114
if test -z "$aix_libpath"; then
10115
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10116
fi
10117
else
10118
  $as_echo "$as_me: failed program was:" >&5
10119
sed 's/^/| /' conftest.$ac_ext >&5
10120
 
10121
 
10122
fi
10123
 
10124
rm -rf conftest.dSYM
10125
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10126
      conftest$ac_exeext conftest.$ac_ext
10127
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10128
 
10129
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10130
          # Warning - without using the other run time loading flags,
10131
          # -berok will link without error, but may produce a broken library.
10132
          no_undefined_flag=' ${wl}-bernotok'
10133
          allow_undefined_flag=' ${wl}-berok'
10134
          # Exported symbols can be pulled into shared objects from archives
10135
          whole_archive_flag_spec='$convenience'
10136
          archive_cmds_need_lc=yes
10137
          # This is similar to how AIX traditionally builds its shared libraries.
10138
          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'
10139
        fi
10140
      fi
10141
      ;;
10142
 
10143
    amigaos*)
10144
      case $host_cpu in
10145
      powerpc)
10146
            # see comment about AmigaOS4 .so support
10147
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10148
            archive_expsym_cmds=''
10149
        ;;
10150
      m68k)
10151
            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)'
10152
            hardcode_libdir_flag_spec='-L$libdir'
10153
            hardcode_minus_L=yes
10154
        ;;
10155
      esac
10156
      ;;
10157
 
10158
    bsdi[45]*)
10159
      export_dynamic_flag_spec=-rdynamic
10160
      ;;
10161
 
10162
    cygwin* | mingw* | pw32* | cegcc*)
10163
      # When not using gcc, we currently assume that we are using
10164
      # Microsoft Visual C++.
10165
      # hardcode_libdir_flag_spec is actually meaningless, as there is
10166
      # no search path for DLLs.
10167
      hardcode_libdir_flag_spec=' '
10168
      allow_undefined_flag=unsupported
10169
      # Tell ltmain to make .lib files, not .a files.
10170
      libext=lib
10171
      # Tell ltmain to make .dll files, not .so files.
10172
      shrext_cmds=".dll"
10173
      # FIXME: Setting linknames here is a bad hack.
10174
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10175
      # The linker will automatically build a .lib file if we build a DLL.
10176
      old_archive_from_new_cmds='true'
10177
      # FIXME: Should let the user specify the lib program.
10178
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10179
      fix_srcfile_path='`cygpath -w "$srcfile"`'
10180
      enable_shared_with_static_runtimes=yes
10181
      ;;
10182
 
10183
    darwin* | rhapsody*)
10184
 
10185
 
10186
  archive_cmds_need_lc=no
10187
  hardcode_direct=no
10188
  hardcode_automatic=yes
10189
  hardcode_shlibpath_var=unsupported
10190
  whole_archive_flag_spec=''
10191
  link_all_deplibs=yes
10192
  allow_undefined_flag="$_lt_dar_allow_undefined"
10193
  case $cc_basename in
10194
     ifort*) _lt_dar_can_shared=yes ;;
10195
     *) _lt_dar_can_shared=$GCC ;;
10196
  esac
10197
  if test "$_lt_dar_can_shared" = "yes"; then
10198
    output_verbose_link_cmd=echo
10199
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10200
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10201
    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}"
10202
    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}"
10203
 
10204
  else
10205
  ld_shlibs=no
10206
  fi
10207
 
10208
      ;;
10209
 
10210
    dgux*)
10211
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212
      hardcode_libdir_flag_spec='-L$libdir'
10213
      hardcode_shlibpath_var=no
10214
      ;;
10215
 
10216
    freebsd1*)
10217
      ld_shlibs=no
10218
      ;;
10219
 
10220
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10221
    # support.  Future versions do this automatically, but an explicit c++rt0.o
10222
    # does not break anything, and helps significantly (at the cost of a little
10223
    # extra space).
10224
    freebsd2.2*)
10225
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10226
      hardcode_libdir_flag_spec='-R$libdir'
10227
      hardcode_direct=yes
10228
      hardcode_shlibpath_var=no
10229
      ;;
10230
 
10231
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10232
    freebsd2*)
10233
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10234
      hardcode_direct=yes
10235
      hardcode_minus_L=yes
10236
      hardcode_shlibpath_var=no
10237
      ;;
10238
 
10239
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10240
    freebsd* | dragonfly*)
10241
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10242
      hardcode_libdir_flag_spec='-R$libdir'
10243
      hardcode_direct=yes
10244
      hardcode_shlibpath_var=no
10245
      ;;
10246
 
10247
    hpux9*)
10248
      if test "$GCC" = yes; then
10249
        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'
10250
      else
10251
        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'
10252
      fi
10253
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10254
      hardcode_libdir_separator=:
10255
      hardcode_direct=yes
10256
 
10257
      # hardcode_minus_L: Not really in the search PATH,
10258
      # but as the default location of the library.
10259
      hardcode_minus_L=yes
10260
      export_dynamic_flag_spec='${wl}-E'
10261
      ;;
10262
 
10263
    hpux10*)
10264
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10265
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10266
      else
10267
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10268
      fi
10269
      if test "$with_gnu_ld" = no; then
10270
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10271
        hardcode_libdir_flag_spec_ld='+b $libdir'
10272
        hardcode_libdir_separator=:
10273
        hardcode_direct=yes
10274
        hardcode_direct_absolute=yes
10275
        export_dynamic_flag_spec='${wl}-E'
10276
        # hardcode_minus_L: Not really in the search PATH,
10277
        # but as the default location of the library.
10278
        hardcode_minus_L=yes
10279
      fi
10280
      ;;
10281
 
10282
    hpux11*)
10283
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10284
        case $host_cpu in
10285
        hppa*64*)
10286
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10287
          ;;
10288
        ia64*)
10289
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10290
          ;;
10291
        *)
10292
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10293
          ;;
10294
        esac
10295
      else
10296
        case $host_cpu in
10297
        hppa*64*)
10298
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10299
          ;;
10300
        ia64*)
10301
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10302
          ;;
10303
        *)
10304
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10305
          ;;
10306
        esac
10307
      fi
10308
      if test "$with_gnu_ld" = no; then
10309
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10310
        hardcode_libdir_separator=:
10311
 
10312
        case $host_cpu in
10313
        hppa*64*|ia64*)
10314
          hardcode_direct=no
10315
          hardcode_shlibpath_var=no
10316
          ;;
10317
        *)
10318
          hardcode_direct=yes
10319
          hardcode_direct_absolute=yes
10320
          export_dynamic_flag_spec='${wl}-E'
10321
 
10322
          # hardcode_minus_L: Not really in the search PATH,
10323
          # but as the default location of the library.
10324
          hardcode_minus_L=yes
10325
          ;;
10326
        esac
10327
      fi
10328
      ;;
10329
 
10330
    irix5* | irix6* | nonstopux*)
10331
      if test "$GCC" = yes; then
10332
        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'
10333
        # Try to use the -exported_symbol ld option, if it does not
10334
        # work, assume that -exports_file does not work either and
10335
        # implicitly export all symbols.
10336
        save_LDFLAGS="$LDFLAGS"
10337
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10338
        cat >conftest.$ac_ext <<_ACEOF
10339
int foo(void) {}
10340
_ACEOF
10341
rm -f conftest.$ac_objext conftest$ac_exeext
10342
if { (ac_try="$ac_link"
10343
case "(($ac_try" in
10344
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345
  *) ac_try_echo=$ac_try;;
10346
esac
10347
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10348
$as_echo "$ac_try_echo") >&5
10349
  (eval "$ac_link") 2>conftest.er1
10350
  ac_status=$?
10351
  grep -v '^ *+' conftest.er1 >conftest.err
10352
  rm -f conftest.er1
10353
  cat conftest.err >&5
10354
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355
  (exit $ac_status); } && {
10356
         test -z "$ac_c_werror_flag" ||
10357
         test ! -s conftest.err
10358
       } && test -s conftest$ac_exeext && {
10359
         test "$cross_compiling" = yes ||
10360
         $as_test_x conftest$ac_exeext
10361
       }; then
10362
  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'
10363
 
10364
else
10365
  $as_echo "$as_me: failed program was:" >&5
10366
sed 's/^/| /' conftest.$ac_ext >&5
10367
 
10368
 
10369
fi
10370
 
10371
rm -rf conftest.dSYM
10372
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10373
      conftest$ac_exeext conftest.$ac_ext
10374
        LDFLAGS="$save_LDFLAGS"
10375
      else
10376
        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'
10377
        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'
10378
      fi
10379
      archive_cmds_need_lc='no'
10380
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10381
      hardcode_libdir_separator=:
10382
      inherit_rpath=yes
10383
      link_all_deplibs=yes
10384
      ;;
10385
 
10386
    netbsd*)
10387
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10388
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10389
      else
10390
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10391
      fi
10392
      hardcode_libdir_flag_spec='-R$libdir'
10393
      hardcode_direct=yes
10394
      hardcode_shlibpath_var=no
10395
      ;;
10396
 
10397
    newsos6)
10398
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10399
      hardcode_direct=yes
10400
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10401
      hardcode_libdir_separator=:
10402
      hardcode_shlibpath_var=no
10403
      ;;
10404
 
10405
    *nto* | *qnx*)
10406
      ;;
10407
 
10408
    openbsd*)
10409
      if test -f /usr/libexec/ld.so; then
10410
        hardcode_direct=yes
10411
        hardcode_shlibpath_var=no
10412
        hardcode_direct_absolute=yes
10413
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10414
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10415
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10416
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10417
          export_dynamic_flag_spec='${wl}-E'
10418
        else
10419
          case $host_os in
10420
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10421
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10422
             hardcode_libdir_flag_spec='-R$libdir'
10423
             ;;
10424
           *)
10425
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10426
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10427
             ;;
10428
          esac
10429
        fi
10430
      else
10431
        ld_shlibs=no
10432
      fi
10433
      ;;
10434
 
10435
    os2*)
10436
      hardcode_libdir_flag_spec='-L$libdir'
10437
      hardcode_minus_L=yes
10438
      allow_undefined_flag=unsupported
10439
      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'
10440
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10441
      ;;
10442
 
10443
    osf3*)
10444
      if test "$GCC" = yes; then
10445
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10446
        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'
10447
      else
10448
        allow_undefined_flag=' -expect_unresolved \*'
10449
        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'
10450
      fi
10451
      archive_cmds_need_lc='no'
10452
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10453
      hardcode_libdir_separator=:
10454
      ;;
10455
 
10456
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10457
      if test "$GCC" = yes; then
10458
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10459
        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'
10460
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10461
      else
10462
        allow_undefined_flag=' -expect_unresolved \*'
10463
        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'
10464
        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~
10465
        $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'
10466
 
10467
        # Both c and cxx compiler support -rpath directly
10468
        hardcode_libdir_flag_spec='-rpath $libdir'
10469
      fi
10470
      archive_cmds_need_lc='no'
10471
      hardcode_libdir_separator=:
10472
      ;;
10473
 
10474
    solaris*)
10475
      no_undefined_flag=' -z defs'
10476
      if test "$GCC" = yes; then
10477
        wlarc='${wl}'
10478
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10479
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10480
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10481
      else
10482
        case `$CC -V 2>&1` in
10483
        *"Compilers 5.0"*)
10484
          wlarc=''
10485
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10486
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10487
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10488
          ;;
10489
        *)
10490
          wlarc='${wl}'
10491
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10492
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10493
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10494
          ;;
10495
        esac
10496
      fi
10497
      hardcode_libdir_flag_spec='-R$libdir'
10498
      hardcode_shlibpath_var=no
10499
      case $host_os in
10500
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10501
      *)
10502
        # The compiler driver will combine and reorder linker options,
10503
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10504
        # but is careful enough not to reorder.
10505
        # Supported since Solaris 2.6 (maybe 2.5.1?)
10506
        if test "$GCC" = yes; then
10507
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10508
        else
10509
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10510
        fi
10511
        ;;
10512
      esac
10513
      link_all_deplibs=yes
10514
      ;;
10515
 
10516
    sunos4*)
10517
      if test "x$host_vendor" = xsequent; then
10518
        # Use $CC to link under sequent, because it throws in some extra .o
10519
        # files that make .init and .fini sections work.
10520
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10521
      else
10522
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10523
      fi
10524
      hardcode_libdir_flag_spec='-L$libdir'
10525
      hardcode_direct=yes
10526
      hardcode_minus_L=yes
10527
      hardcode_shlibpath_var=no
10528
      ;;
10529
 
10530
    sysv4)
10531
      case $host_vendor in
10532
        sni)
10533
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10534
          hardcode_direct=yes # is this really true???
10535
        ;;
10536
        siemens)
10537
          ## LD is ld it makes a PLAMLIB
10538
          ## CC just makes a GrossModule.
10539
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10540
          reload_cmds='$CC -r -o $output$reload_objs'
10541
          hardcode_direct=no
10542
        ;;
10543
        motorola)
10544
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10546
        ;;
10547
      esac
10548
      runpath_var='LD_RUN_PATH'
10549
      hardcode_shlibpath_var=no
10550
      ;;
10551
 
10552
    sysv4.3*)
10553
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10554
      hardcode_shlibpath_var=no
10555
      export_dynamic_flag_spec='-Bexport'
10556
      ;;
10557
 
10558
    sysv4*MP*)
10559
      if test -d /usr/nec; then
10560
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10561
        hardcode_shlibpath_var=no
10562
        runpath_var=LD_RUN_PATH
10563
        hardcode_runpath_var=yes
10564
        ld_shlibs=yes
10565
      fi
10566
      ;;
10567
 
10568
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10569
      no_undefined_flag='${wl}-z,text'
10570
      archive_cmds_need_lc=no
10571
      hardcode_shlibpath_var=no
10572
      runpath_var='LD_RUN_PATH'
10573
 
10574
      if test "$GCC" = yes; then
10575
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10576
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10577
      else
10578
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10579
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10580
      fi
10581
      ;;
10582
 
10583
    sysv5* | sco3.2v5* | sco5v6*)
10584
      # Note: We can NOT use -z defs as we might desire, because we do not
10585
      # link with -lc, and that would cause any symbols used from libc to
10586
      # always be unresolved, which means just about no library would
10587
      # ever link correctly.  If we're not using GNU ld we use -z text
10588
      # though, which does catch some bad symbols but isn't as heavy-handed
10589
      # as -z defs.
10590
      no_undefined_flag='${wl}-z,text'
10591
      allow_undefined_flag='${wl}-z,nodefs'
10592
      archive_cmds_need_lc=no
10593
      hardcode_shlibpath_var=no
10594
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10595
      hardcode_libdir_separator=':'
10596
      link_all_deplibs=yes
10597
      export_dynamic_flag_spec='${wl}-Bexport'
10598
      runpath_var='LD_RUN_PATH'
10599
 
10600
      if test "$GCC" = yes; then
10601
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10602
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10603
      else
10604
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10605
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10606
      fi
10607
      ;;
10608
 
10609
    uts4*)
10610
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10611
      hardcode_libdir_flag_spec='-L$libdir'
10612
      hardcode_shlibpath_var=no
10613
      ;;
10614
 
10615
    *)
10616
      ld_shlibs=no
10617
      ;;
10618
    esac
10619
 
10620
    if test x$host_vendor = xsni; then
10621
      case $host in
10622
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10623
        export_dynamic_flag_spec='${wl}-Blargedynsym'
10624
        ;;
10625
      esac
10626
    fi
10627
  fi
10628
 
10629
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10630
$as_echo "$ld_shlibs" >&6; }
10631
test "$ld_shlibs" = no && can_build_shared=no
10632
 
10633
with_gnu_ld=$with_gnu_ld
10634
 
10635
 
10636
 
10637
 
10638
 
10639
 
10640
 
10641
 
10642
 
10643
 
10644
 
10645
 
10646
 
10647
 
10648
 
10649
#
10650
# Do we need to explicitly link libc?
10651
#
10652
case "x$archive_cmds_need_lc" in
10653
x|xyes)
10654
  # Assume -lc should be added
10655
  archive_cmds_need_lc=yes
10656
 
10657
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10658
    case $archive_cmds in
10659
    *'~'*)
10660
      # FIXME: we may have to deal with multi-command sequences.
10661
      ;;
10662
    '$CC '*)
10663
      # Test whether the compiler implicitly links with -lc since on some
10664
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10665
      # to ld, don't add -lc before -lgcc.
10666
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10667
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10668
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10669
  $as_echo_n "(cached) " >&6
10670
else
10671
  $RM conftest*
10672
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10673
 
10674
        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10675
  (eval $ac_compile) 2>&5
10676
  ac_status=$?
10677
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678
  (exit $ac_status); } 2>conftest.err; then
10679
          soname=conftest
10680
          lib=conftest
10681
          libobjs=conftest.$ac_objext
10682
          deplibs=
10683
          wl=$lt_prog_compiler_wl
10684
          pic_flag=$lt_prog_compiler_pic
10685
          compiler_flags=-v
10686
          linker_flags=-v
10687
          verstring=
10688
          output_objdir=.
10689
          libname=conftest
10690
          lt_save_allow_undefined_flag=$allow_undefined_flag
10691
          allow_undefined_flag=
10692
          if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10693
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10694
  ac_status=$?
10695
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696
  (exit $ac_status); }
10697
          then
10698
            lt_cv_archive_cmds_need_lc=no
10699
          else
10700
            lt_cv_archive_cmds_need_lc=yes
10701
          fi
10702
          allow_undefined_flag=$lt_save_allow_undefined_flag
10703
        else
10704
          cat conftest.err 1>&5
10705
        fi
10706
        $RM conftest*
10707
 
10708
fi
10709
{ $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10710
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10711
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10712
      ;;
10713
    esac
10714
  fi
10715
  ;;
10716
esac
10717
 
10718
 
10719
 
10720
 
10721
 
10722
 
10723
 
10724
 
10725
 
10726
 
10727
 
10728
 
10729
 
10730
 
10731
 
10732
 
10733
 
10734
 
10735
 
10736
 
10737
 
10738
 
10739
 
10740
 
10741
 
10742
 
10743
 
10744
 
10745
 
10746
 
10747
 
10748
 
10749
 
10750
 
10751
 
10752
 
10753
 
10754
 
10755
 
10756
 
10757
 
10758
 
10759
 
10760
 
10761
 
10762
 
10763
 
10764
 
10765
 
10766
 
10767
 
10768
 
10769
 
10770
 
10771
 
10772
 
10773
 
10774
 
10775
 
10776
 
10777
 
10778
 
10779
 
10780
 
10781
 
10782
 
10783
 
10784
 
10785
 
10786
 
10787
 
10788
 
10789
 
10790
 
10791
 
10792
 
10793
 
10794
 
10795
 
10796
 
10797
 
10798
 
10799
 
10800
 
10801
 
10802
 
10803
 
10804
 
10805
 
10806
 
10807
 
10808
 
10809
 
10810
 
10811
 
10812
 
10813
 
10814
 
10815
 
10816
 
10817
 
10818
 
10819
 
10820
 
10821
 
10822
 
10823
 
10824
 
10825
 
10826
 
10827
 
10828
 
10829
 
10830
 
10831
 
10832
 
10833
 
10834
 
10835
 
10836
 
10837
 
10838
 
10839
 
10840
 
10841
 
10842
 
10843
 
10844
 
10845
 
10846
 
10847
 
10848
 
10849
 
10850
 
10851
 
10852
 
10853
 
10854
 
10855
 
10856
 
10857
 
10858
 
10859
 
10860
 
10861
 
10862
 
10863
 
10864
 
10865
 
10866
 
10867
 
10868
 
10869
 
10870
 
10871
 
10872
 
10873
 
10874
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10875
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10876
 
10877
if test "$GCC" = yes; then
10878
  case $host_os in
10879
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10880
    *) lt_awk_arg="/^libraries:/" ;;
10881
  esac
10882
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10883
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10884
    # if the path contains ";" then we assume it to be the separator
10885
    # otherwise default to the standard path separator (i.e. ":") - it is
10886
    # assumed that no part of a normal pathname contains ";" but that should
10887
    # okay in the real world where ";" in dirpaths is itself problematic.
10888
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10889
  else
10890
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10891
  fi
10892
  # Ok, now we have the path, separated by spaces, we can step through it
10893
  # and add multilib dir if necessary.
10894
  lt_tmp_lt_search_path_spec=
10895
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10896
  for lt_sys_path in $lt_search_path_spec; do
10897
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10898
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10899
    else
10900
      test -d "$lt_sys_path" && \
10901
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10902
    fi
10903
  done
10904
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10905
BEGIN {RS=" "; FS="/|\n";} {
10906
  lt_foo="";
10907
  lt_count=0;
10908
  for (lt_i = NF; lt_i > 0; lt_i--) {
10909
    if ($lt_i != "" && $lt_i != ".") {
10910
      if ($lt_i == "..") {
10911
        lt_count++;
10912
      } else {
10913
        if (lt_count == 0) {
10914
          lt_foo="/" $lt_i lt_foo;
10915
        } else {
10916
          lt_count--;
10917
        }
10918
      }
10919
    }
10920
  }
10921
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10922
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10923
}'`
10924
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10925
else
10926
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10927
fi
10928
library_names_spec=
10929
libname_spec='lib$name'
10930
soname_spec=
10931
shrext_cmds=".so"
10932
postinstall_cmds=
10933
postuninstall_cmds=
10934
finish_cmds=
10935
finish_eval=
10936
shlibpath_var=
10937
shlibpath_overrides_runpath=unknown
10938
version_type=none
10939
dynamic_linker="$host_os ld.so"
10940
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10941
need_lib_prefix=unknown
10942
hardcode_into_libs=no
10943
 
10944
# when you set need_version to no, make sure it does not cause -set_version
10945
# flags to be left without arguments
10946
need_version=unknown
10947
 
10948
case $host_os in
10949
aix3*)
10950
  version_type=linux
10951
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10952
  shlibpath_var=LIBPATH
10953
 
10954
  # AIX 3 has no versioning support, so we append a major version to the name.
10955
  soname_spec='${libname}${release}${shared_ext}$major'
10956
  ;;
10957
 
10958
aix[4-9]*)
10959
  version_type=linux
10960
  need_lib_prefix=no
10961
  need_version=no
10962
  hardcode_into_libs=yes
10963
  if test "$host_cpu" = ia64; then
10964
    # AIX 5 supports IA64
10965
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10966
    shlibpath_var=LD_LIBRARY_PATH
10967
  else
10968
    # With GCC up to 2.95.x, collect2 would create an import file
10969
    # for dependence libraries.  The import file would start with
10970
    # the line `#! .'.  This would cause the generated library to
10971
    # depend on `.', always an invalid library.  This was fixed in
10972
    # development snapshots of GCC prior to 3.0.
10973
    case $host_os in
10974
      aix4 | aix4.[01] | aix4.[01].*)
10975
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10976
           echo ' yes '
10977
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10978
        :
10979
      else
10980
        can_build_shared=no
10981
      fi
10982
      ;;
10983
    esac
10984
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10985
    # soname into executable. Probably we can add versioning support to
10986
    # collect2, so additional links can be useful in future.
10987
    if test "$aix_use_runtimelinking" = yes; then
10988
      # If using run time linking (on AIX 4.2 or later) use lib.so
10989
      # instead of lib.a to let people know that these are not
10990
      # typical AIX shared libraries.
10991
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992
    else
10993
      # We preserve .a as extension for shared libraries through AIX4.2
10994
      # and later when we are not doing run time linking.
10995
      library_names_spec='${libname}${release}.a $libname.a'
10996
      soname_spec='${libname}${release}${shared_ext}$major'
10997
    fi
10998
    shlibpath_var=LIBPATH
10999
  fi
11000
  ;;
11001
 
11002
amigaos*)
11003
  case $host_cpu in
11004
  powerpc)
11005
    # Since July 2007 AmigaOS4 officially supports .so libraries.
11006
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11007
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008
    ;;
11009
  m68k)
11010
    library_names_spec='$libname.ixlibrary $libname.a'
11011
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11012
    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'
11013
    ;;
11014
  esac
11015
  ;;
11016
 
11017
beos*)
11018
  library_names_spec='${libname}${shared_ext}'
11019
  dynamic_linker="$host_os ld.so"
11020
  shlibpath_var=LIBRARY_PATH
11021
  ;;
11022
 
11023
bsdi[45]*)
11024
  version_type=linux
11025
  need_version=no
11026
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027
  soname_spec='${libname}${release}${shared_ext}$major'
11028
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11029
  shlibpath_var=LD_LIBRARY_PATH
11030
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11031
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11032
  # the default ld.so.conf also contains /usr/contrib/lib and
11033
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11034
  # libtool to hard-code these into programs
11035
  ;;
11036
 
11037
cygwin* | mingw* | pw32* | cegcc*)
11038
  version_type=windows
11039
  shrext_cmds=".dll"
11040
  need_version=no
11041
  need_lib_prefix=no
11042
 
11043
  case $GCC,$host_os in
11044
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11045
    library_names_spec='$libname.dll.a'
11046
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11047
    postinstall_cmds='base_file=`basename \${file}`~
11048
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11049
      dldir=$destdir/`dirname \$dlpath`~
11050
      test -d \$dldir || mkdir -p \$dldir~
11051
      $install_prog $dir/$dlname \$dldir/$dlname~
11052
      chmod a+x \$dldir/$dlname~
11053
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11054
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11055
      fi'
11056
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11057
      dlpath=$dir/\$dldll~
11058
       $RM \$dlpath'
11059
    shlibpath_overrides_runpath=yes
11060
 
11061
    case $host_os in
11062
    cygwin*)
11063
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11064
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11065
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11066
      ;;
11067
    mingw* | cegcc*)
11068
      # MinGW DLLs use traditional 'lib' prefix
11069
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11070
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11071
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11072
        # It is most probably a Windows format PATH printed by
11073
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11074
        # path with ; separators, and with drive letters. We can handle the
11075
        # drive letters (cygwin fileutils understands them), so leave them,
11076
        # especially as we might pass files found there to a mingw objdump,
11077
        # which wouldn't understand a cygwinified path. Ahh.
11078
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11079
      else
11080
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11081
      fi
11082
      ;;
11083
    pw32*)
11084
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11085
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11086
      ;;
11087
    esac
11088
    ;;
11089
 
11090
  *)
11091
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11092
    ;;
11093
  esac
11094
  dynamic_linker='Win32 ld.exe'
11095
  # FIXME: first we should search . and the directory the executable is in
11096
  shlibpath_var=PATH
11097
  ;;
11098
 
11099
darwin* | rhapsody*)
11100
  dynamic_linker="$host_os dyld"
11101
  version_type=darwin
11102
  need_lib_prefix=no
11103
  need_version=no
11104
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11105
  soname_spec='${libname}${release}${major}$shared_ext'
11106
  shlibpath_overrides_runpath=yes
11107
  shlibpath_var=DYLD_LIBRARY_PATH
11108
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11109
 
11110
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11111
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11112
  ;;
11113
 
11114
dgux*)
11115
  version_type=linux
11116
  need_lib_prefix=no
11117
  need_version=no
11118
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11119
  soname_spec='${libname}${release}${shared_ext}$major'
11120
  shlibpath_var=LD_LIBRARY_PATH
11121
  ;;
11122
 
11123
freebsd1*)
11124
  dynamic_linker=no
11125
  ;;
11126
 
11127
freebsd* | dragonfly*)
11128
  # DragonFly does not have aout.  When/if they implement a new
11129
  # versioning mechanism, adjust this.
11130
  if test -x /usr/bin/objformat; then
11131
    objformat=`/usr/bin/objformat`
11132
  else
11133
    case $host_os in
11134
    freebsd[123]*) objformat=aout ;;
11135
    *) objformat=elf ;;
11136
    esac
11137
  fi
11138
  version_type=freebsd-$objformat
11139
  case $version_type in
11140
    freebsd-elf*)
11141
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11142
      need_version=no
11143
      need_lib_prefix=no
11144
      ;;
11145
    freebsd-*)
11146
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11147
      need_version=yes
11148
      ;;
11149
  esac
11150
  shlibpath_var=LD_LIBRARY_PATH
11151
  case $host_os in
11152
  freebsd2*)
11153
    shlibpath_overrides_runpath=yes
11154
    ;;
11155
  freebsd3.[01]* | freebsdelf3.[01]*)
11156
    shlibpath_overrides_runpath=yes
11157
    hardcode_into_libs=yes
11158
    ;;
11159
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11160
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11161
    shlibpath_overrides_runpath=no
11162
    hardcode_into_libs=yes
11163
    ;;
11164
  *) # from 4.6 on, and DragonFly
11165
    shlibpath_overrides_runpath=yes
11166
    hardcode_into_libs=yes
11167
    ;;
11168
  esac
11169
  ;;
11170
 
11171
gnu*)
11172
  version_type=linux
11173
  need_lib_prefix=no
11174
  need_version=no
11175
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11176
  soname_spec='${libname}${release}${shared_ext}$major'
11177
  shlibpath_var=LD_LIBRARY_PATH
11178
  hardcode_into_libs=yes
11179
  ;;
11180
 
11181
hpux9* | hpux10* | hpux11*)
11182
  # Give a soname corresponding to the major version so that dld.sl refuses to
11183
  # link against other versions.
11184
  version_type=sunos
11185
  need_lib_prefix=no
11186
  need_version=no
11187
  case $host_cpu in
11188
  ia64*)
11189
    shrext_cmds='.so'
11190
    hardcode_into_libs=yes
11191
    dynamic_linker="$host_os dld.so"
11192
    shlibpath_var=LD_LIBRARY_PATH
11193
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11194
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195
    soname_spec='${libname}${release}${shared_ext}$major'
11196
    if test "X$HPUX_IA64_MODE" = X32; then
11197
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11198
    else
11199
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11200
    fi
11201
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11202
    ;;
11203
  hppa*64*)
11204
    shrext_cmds='.sl'
11205
    hardcode_into_libs=yes
11206
    dynamic_linker="$host_os dld.sl"
11207
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11208
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11209
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210
    soname_spec='${libname}${release}${shared_ext}$major'
11211
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11212
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11213
    ;;
11214
  *)
11215
    shrext_cmds='.sl'
11216
    dynamic_linker="$host_os dld.sl"
11217
    shlibpath_var=SHLIB_PATH
11218
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11219
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11220
    soname_spec='${libname}${release}${shared_ext}$major'
11221
    ;;
11222
  esac
11223
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11224
  postinstall_cmds='chmod 555 $lib'
11225
  ;;
11226
 
11227
interix[3-9]*)
11228
  version_type=linux
11229
  need_lib_prefix=no
11230
  need_version=no
11231
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11232
  soname_spec='${libname}${release}${shared_ext}$major'
11233
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11234
  shlibpath_var=LD_LIBRARY_PATH
11235
  shlibpath_overrides_runpath=no
11236
  hardcode_into_libs=yes
11237
  ;;
11238
 
11239
irix5* | irix6* | nonstopux*)
11240
  case $host_os in
11241
    nonstopux*) version_type=nonstopux ;;
11242
    *)
11243
        if test "$lt_cv_prog_gnu_ld" = yes; then
11244
                version_type=linux
11245
        else
11246
                version_type=irix
11247
        fi ;;
11248
  esac
11249
  need_lib_prefix=no
11250
  need_version=no
11251
  soname_spec='${libname}${release}${shared_ext}$major'
11252
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11253
  case $host_os in
11254
  irix5* | nonstopux*)
11255
    libsuff= shlibsuff=
11256
    ;;
11257
  *)
11258
    case $LD in # libtool.m4 will add one of these switches to LD
11259
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11260
      libsuff= shlibsuff= libmagic=32-bit;;
11261
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11262
      libsuff=32 shlibsuff=N32 libmagic=N32;;
11263
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11264
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11265
    *) libsuff= shlibsuff= libmagic=never-match;;
11266
    esac
11267
    ;;
11268
  esac
11269
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11270
  shlibpath_overrides_runpath=no
11271
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11272
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11273
  hardcode_into_libs=yes
11274
  ;;
11275
 
11276
# No shared lib support for Linux oldld, aout, or coff.
11277
linux*oldld* | linux*aout* | linux*coff*)
11278
  dynamic_linker=no
11279
  ;;
11280
 
11281
# This must be Linux ELF.
11282
linux* | k*bsd*-gnu | kopensolaris*-gnu)
11283
  version_type=linux
11284
  need_lib_prefix=no
11285
  need_version=no
11286
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287
  soname_spec='${libname}${release}${shared_ext}$major'
11288
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11289
  shlibpath_var=LD_LIBRARY_PATH
11290
  shlibpath_overrides_runpath=no
11291
 
11292
  # Some binutils ld are patched to set DT_RUNPATH
11293
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11294
  $as_echo_n "(cached) " >&6
11295
else
11296
  lt_cv_shlibpath_overrides_runpath=no
11297
    save_LDFLAGS=$LDFLAGS
11298
    save_libdir=$libdir
11299
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11300
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11301
    cat >conftest.$ac_ext <<_ACEOF
11302
/* confdefs.h.  */
11303
_ACEOF
11304
cat confdefs.h >>conftest.$ac_ext
11305
cat >>conftest.$ac_ext <<_ACEOF
11306
/* end confdefs.h.  */
11307
 
11308
int
11309
main ()
11310
{
11311
 
11312
  ;
11313
  return 0;
11314
}
11315
_ACEOF
11316
rm -f conftest.$ac_objext conftest$ac_exeext
11317
if { (ac_try="$ac_link"
11318
case "(($ac_try" in
11319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320
  *) ac_try_echo=$ac_try;;
11321
esac
11322
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11323
$as_echo "$ac_try_echo") >&5
11324
  (eval "$ac_link") 2>conftest.er1
11325
  ac_status=$?
11326
  grep -v '^ *+' conftest.er1 >conftest.err
11327
  rm -f conftest.er1
11328
  cat conftest.err >&5
11329
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330
  (exit $ac_status); } && {
11331
         test -z "$ac_c_werror_flag" ||
11332
         test ! -s conftest.err
11333
       } && test -s conftest$ac_exeext && {
11334
         test "$cross_compiling" = yes ||
11335
         $as_test_x conftest$ac_exeext
11336
       }; then
11337
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11338
  lt_cv_shlibpath_overrides_runpath=yes
11339
fi
11340
 
11341
else
11342
  $as_echo "$as_me: failed program was:" >&5
11343
sed 's/^/| /' conftest.$ac_ext >&5
11344
 
11345
 
11346
fi
11347
 
11348
rm -rf conftest.dSYM
11349
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11350
      conftest$ac_exeext conftest.$ac_ext
11351
    LDFLAGS=$save_LDFLAGS
11352
    libdir=$save_libdir
11353
 
11354
fi
11355
 
11356
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11357
 
11358
  # This implies no fast_install, which is unacceptable.
11359
  # Some rework will be needed to allow for fast_install
11360
  # before this can be enabled.
11361
  hardcode_into_libs=yes
11362
 
11363
  # Append ld.so.conf contents to the search path
11364
  if test -f /etc/ld.so.conf; then
11365
    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' ' '`
11366
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11367
  fi
11368
 
11369
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11370
  # powerpc, because MkLinux only supported shared libraries with the
11371
  # GNU dynamic linker.  Since this was broken with cross compilers,
11372
  # most powerpc-linux boxes support dynamic linking these days and
11373
  # people can always --disable-shared, the test was removed, and we
11374
  # assume the GNU/Linux dynamic linker is in use.
11375
  dynamic_linker='GNU/Linux ld.so'
11376
  ;;
11377
 
11378
netbsd*)
11379
  version_type=sunos
11380
  need_lib_prefix=no
11381
  need_version=no
11382
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11383
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11384
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11385
    dynamic_linker='NetBSD (a.out) ld.so'
11386
  else
11387
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11388
    soname_spec='${libname}${release}${shared_ext}$major'
11389
    dynamic_linker='NetBSD ld.elf_so'
11390
  fi
11391
  shlibpath_var=LD_LIBRARY_PATH
11392
  shlibpath_overrides_runpath=yes
11393
  hardcode_into_libs=yes
11394
  ;;
11395
 
11396
newsos6)
11397
  version_type=linux
11398
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11399
  shlibpath_var=LD_LIBRARY_PATH
11400
  shlibpath_overrides_runpath=yes
11401
  ;;
11402
 
11403
*nto* | *qnx*)
11404
  version_type=qnx
11405
  need_lib_prefix=no
11406
  need_version=no
11407
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11408
  soname_spec='${libname}${release}${shared_ext}$major'
11409
  shlibpath_var=LD_LIBRARY_PATH
11410
  shlibpath_overrides_runpath=no
11411
  hardcode_into_libs=yes
11412
  dynamic_linker='ldqnx.so'
11413
  ;;
11414
 
11415
openbsd*)
11416
  version_type=sunos
11417
  sys_lib_dlsearch_path_spec="/usr/lib"
11418
  need_lib_prefix=no
11419
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11420
  case $host_os in
11421
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11422
    *)                          need_version=no  ;;
11423
  esac
11424
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11425
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11426
  shlibpath_var=LD_LIBRARY_PATH
11427
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11428
    case $host_os in
11429
      openbsd2.[89] | openbsd2.[89].*)
11430
        shlibpath_overrides_runpath=no
11431
        ;;
11432
      *)
11433
        shlibpath_overrides_runpath=yes
11434
        ;;
11435
      esac
11436
  else
11437
    shlibpath_overrides_runpath=yes
11438
  fi
11439
  ;;
11440
 
11441
os2*)
11442
  libname_spec='$name'
11443
  shrext_cmds=".dll"
11444
  need_lib_prefix=no
11445
  library_names_spec='$libname${shared_ext} $libname.a'
11446
  dynamic_linker='OS/2 ld.exe'
11447
  shlibpath_var=LIBPATH
11448
  ;;
11449
 
11450
osf3* | osf4* | osf5*)
11451
  version_type=osf
11452
  need_lib_prefix=no
11453
  need_version=no
11454
  soname_spec='${libname}${release}${shared_ext}$major'
11455
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11456
  shlibpath_var=LD_LIBRARY_PATH
11457
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11458
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11459
  ;;
11460
 
11461
rdos*)
11462
  dynamic_linker=no
11463
  ;;
11464
 
11465
solaris*)
11466
  version_type=linux
11467
  need_lib_prefix=no
11468
  need_version=no
11469
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11470
  soname_spec='${libname}${release}${shared_ext}$major'
11471
  shlibpath_var=LD_LIBRARY_PATH
11472
  shlibpath_overrides_runpath=yes
11473
  hardcode_into_libs=yes
11474
  # ldd complains unless libraries are executable
11475
  postinstall_cmds='chmod +x $lib'
11476
  ;;
11477
 
11478
sunos4*)
11479
  version_type=sunos
11480
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11481
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11482
  shlibpath_var=LD_LIBRARY_PATH
11483
  shlibpath_overrides_runpath=yes
11484
  if test "$with_gnu_ld" = yes; then
11485
    need_lib_prefix=no
11486
  fi
11487
  need_version=yes
11488
  ;;
11489
 
11490
sysv4 | sysv4.3*)
11491
  version_type=linux
11492
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11493
  soname_spec='${libname}${release}${shared_ext}$major'
11494
  shlibpath_var=LD_LIBRARY_PATH
11495
  case $host_vendor in
11496
    sni)
11497
      shlibpath_overrides_runpath=no
11498
      need_lib_prefix=no
11499
      runpath_var=LD_RUN_PATH
11500
      ;;
11501
    siemens)
11502
      need_lib_prefix=no
11503
      ;;
11504
    motorola)
11505
      need_lib_prefix=no
11506
      need_version=no
11507
      shlibpath_overrides_runpath=no
11508
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11509
      ;;
11510
  esac
11511
  ;;
11512
 
11513
sysv4*MP*)
11514
  if test -d /usr/nec ;then
11515
    version_type=linux
11516
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11517
    soname_spec='$libname${shared_ext}.$major'
11518
    shlibpath_var=LD_LIBRARY_PATH
11519
  fi
11520
  ;;
11521
 
11522
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11523
  version_type=freebsd-elf
11524
  need_lib_prefix=no
11525
  need_version=no
11526
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11527
  soname_spec='${libname}${release}${shared_ext}$major'
11528
  shlibpath_var=LD_LIBRARY_PATH
11529
  shlibpath_overrides_runpath=yes
11530
  hardcode_into_libs=yes
11531
  if test "$with_gnu_ld" = yes; then
11532
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11533
  else
11534
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11535
    case $host_os in
11536
      sco3.2v5*)
11537
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11538
        ;;
11539
    esac
11540
  fi
11541
  sys_lib_dlsearch_path_spec='/usr/lib'
11542
  ;;
11543
 
11544
tpf*)
11545
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11546
  version_type=linux
11547
  need_lib_prefix=no
11548
  need_version=no
11549
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550
  shlibpath_var=LD_LIBRARY_PATH
11551
  shlibpath_overrides_runpath=no
11552
  hardcode_into_libs=yes
11553
  ;;
11554
 
11555
uts4*)
11556
  version_type=linux
11557
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558
  soname_spec='${libname}${release}${shared_ext}$major'
11559
  shlibpath_var=LD_LIBRARY_PATH
11560
  ;;
11561
 
11562
*)
11563
  dynamic_linker=no
11564
  ;;
11565
esac
11566
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11567
$as_echo "$dynamic_linker" >&6; }
11568
test "$dynamic_linker" = no && can_build_shared=no
11569
 
11570
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11571
if test "$GCC" = yes; then
11572
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11573
fi
11574
 
11575
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11576
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11577
fi
11578
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11579
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11580
fi
11581
 
11582
 
11583
 
11584
 
11585
 
11586
 
11587
 
11588
 
11589
 
11590
 
11591
 
11592
 
11593
 
11594
 
11595
 
11596
 
11597
 
11598
 
11599
 
11600
 
11601
 
11602
 
11603
 
11604
 
11605
 
11606
 
11607
 
11608
 
11609
 
11610
 
11611
 
11612
 
11613
 
11614
 
11615
 
11616
 
11617
 
11618
 
11619
 
11620
 
11621
 
11622
 
11623
 
11624
 
11625
 
11626
 
11627
 
11628
 
11629
 
11630
 
11631
 
11632
 
11633
 
11634
 
11635
 
11636
 
11637
 
11638
 
11639
 
11640
 
11641
 
11642
 
11643
 
11644
 
11645
 
11646
 
11647
 
11648
 
11649
 
11650
 
11651
 
11652
 
11653
 
11654
 
11655
 
11656
 
11657
 
11658
 
11659
 
11660
 
11661
 
11662
 
11663
 
11664
 
11665
 
11666
 
11667
 
11668
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11669
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11670
hardcode_action=
11671
if test -n "$hardcode_libdir_flag_spec" ||
11672
   test -n "$runpath_var" ||
11673
   test "X$hardcode_automatic" = "Xyes" ; then
11674
 
11675
  # We can hardcode non-existent directories.
11676
  if test "$hardcode_direct" != no &&
11677
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11678
     # have to relink, otherwise we might link with an installed library
11679
     # when we should be linking with a yet-to-be-installed one
11680
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11681
     test "$hardcode_minus_L" != no; then
11682
    # Linking always hardcodes the temporary library directory.
11683
    hardcode_action=relink
11684
  else
11685
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11686
    hardcode_action=immediate
11687
  fi
11688
else
11689
  # We cannot hardcode anything, or else we can only hardcode existing
11690
  # directories.
11691
  hardcode_action=unsupported
11692
fi
11693
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11694
$as_echo "$hardcode_action" >&6; }
11695
 
11696
if test "$hardcode_action" = relink ||
11697
   test "$inherit_rpath" = yes; then
11698
  # Fast installation is not supported
11699
  enable_fast_install=no
11700
elif test "$shlibpath_overrides_runpath" = yes ||
11701
     test "$enable_shared" = no; then
11702
  # Fast installation is not necessary
11703
  enable_fast_install=needless
11704
fi
11705
 
11706
 
11707
 
11708
 
11709
 
11710
 
11711
  if test "x$enable_dlopen" != xyes; then
11712
  enable_dlopen=unknown
11713
  enable_dlopen_self=unknown
11714
  enable_dlopen_self_static=unknown
11715
else
11716
  lt_cv_dlopen=no
11717
  lt_cv_dlopen_libs=
11718
 
11719
  case $host_os in
11720
  beos*)
11721
    lt_cv_dlopen="load_add_on"
11722
    lt_cv_dlopen_libs=
11723
    lt_cv_dlopen_self=yes
11724
    ;;
11725
 
11726
  mingw* | pw32* | cegcc*)
11727
    lt_cv_dlopen="LoadLibrary"
11728
    lt_cv_dlopen_libs=
11729
    ;;
11730
 
11731
  cygwin*)
11732
    lt_cv_dlopen="dlopen"
11733
    lt_cv_dlopen_libs=
11734
    ;;
11735
 
11736
  darwin*)
11737
  # if libdl is installed we need to link against it
11738
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11739
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11740
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11741
  $as_echo_n "(cached) " >&6
11742
else
11743
  ac_check_lib_save_LIBS=$LIBS
11744
LIBS="-ldl  $LIBS"
11745
cat >conftest.$ac_ext <<_ACEOF
11746
/* confdefs.h.  */
11747
_ACEOF
11748
cat confdefs.h >>conftest.$ac_ext
11749
cat >>conftest.$ac_ext <<_ACEOF
11750
/* end confdefs.h.  */
11751
 
11752
/* Override any GCC internal prototype to avoid an error.
11753
   Use char because int might match the return type of a GCC
11754
   builtin and then its argument prototype would still apply.  */
11755
#ifdef __cplusplus
11756
extern "C"
11757
#endif
11758
char dlopen ();
11759
int
11760
main ()
11761
{
11762
return dlopen ();
11763
  ;
11764
  return 0;
11765
}
11766
_ACEOF
11767
rm -f conftest.$ac_objext conftest$ac_exeext
11768
if { (ac_try="$ac_link"
11769
case "(($ac_try" in
11770
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771
  *) ac_try_echo=$ac_try;;
11772
esac
11773
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11774
$as_echo "$ac_try_echo") >&5
11775
  (eval "$ac_link") 2>conftest.er1
11776
  ac_status=$?
11777
  grep -v '^ *+' conftest.er1 >conftest.err
11778
  rm -f conftest.er1
11779
  cat conftest.err >&5
11780
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781
  (exit $ac_status); } && {
11782
         test -z "$ac_c_werror_flag" ||
11783
         test ! -s conftest.err
11784
       } && test -s conftest$ac_exeext && {
11785
         test "$cross_compiling" = yes ||
11786
         $as_test_x conftest$ac_exeext
11787
       }; then
11788
  ac_cv_lib_dl_dlopen=yes
11789
else
11790
  $as_echo "$as_me: failed program was:" >&5
11791
sed 's/^/| /' conftest.$ac_ext >&5
11792
 
11793
        ac_cv_lib_dl_dlopen=no
11794
fi
11795
 
11796
rm -rf conftest.dSYM
11797
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11798
      conftest$ac_exeext conftest.$ac_ext
11799
LIBS=$ac_check_lib_save_LIBS
11800
fi
11801
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11802
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11803
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11804
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11805
else
11806
 
11807
    lt_cv_dlopen="dyld"
11808
    lt_cv_dlopen_libs=
11809
    lt_cv_dlopen_self=yes
11810
 
11811
fi
11812
 
11813
    ;;
11814
 
11815
  *)
11816
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11817
$as_echo_n "checking for shl_load... " >&6; }
11818
if test "${ac_cv_func_shl_load+set}" = set; then
11819
  $as_echo_n "(cached) " >&6
11820
else
11821
  cat >conftest.$ac_ext <<_ACEOF
11822
/* confdefs.h.  */
11823
_ACEOF
11824
cat confdefs.h >>conftest.$ac_ext
11825
cat >>conftest.$ac_ext <<_ACEOF
11826
/* end confdefs.h.  */
11827
/* Define shl_load to an innocuous variant, in case  declares shl_load.
11828
   For example, HP-UX 11i  declares gettimeofday.  */
11829
#define shl_load innocuous_shl_load
11830
 
11831
/* System header to define __stub macros and hopefully few prototypes,
11832
    which can conflict with char shl_load (); below.
11833
    Prefer  to  if __STDC__ is defined, since
11834
     exists even on freestanding compilers.  */
11835
 
11836
#ifdef __STDC__
11837
# include 
11838
#else
11839
# include 
11840
#endif
11841
 
11842
#undef shl_load
11843
 
11844
/* Override any GCC internal prototype to avoid an error.
11845
   Use char because int might match the return type of a GCC
11846
   builtin and then its argument prototype would still apply.  */
11847
#ifdef __cplusplus
11848
extern "C"
11849
#endif
11850
char shl_load ();
11851
/* The GNU C library defines this for functions which it implements
11852
    to always fail with ENOSYS.  Some functions are actually named
11853
    something starting with __ and the normal name is an alias.  */
11854
#if defined __stub_shl_load || defined __stub___shl_load
11855
choke me
11856
#endif
11857
 
11858
int
11859
main ()
11860
{
11861
return shl_load ();
11862
  ;
11863
  return 0;
11864
}
11865
_ACEOF
11866
rm -f conftest.$ac_objext conftest$ac_exeext
11867
if { (ac_try="$ac_link"
11868
case "(($ac_try" in
11869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870
  *) ac_try_echo=$ac_try;;
11871
esac
11872
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11873
$as_echo "$ac_try_echo") >&5
11874
  (eval "$ac_link") 2>conftest.er1
11875
  ac_status=$?
11876
  grep -v '^ *+' conftest.er1 >conftest.err
11877
  rm -f conftest.er1
11878
  cat conftest.err >&5
11879
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880
  (exit $ac_status); } && {
11881
         test -z "$ac_c_werror_flag" ||
11882
         test ! -s conftest.err
11883
       } && test -s conftest$ac_exeext && {
11884
         test "$cross_compiling" = yes ||
11885
         $as_test_x conftest$ac_exeext
11886
       }; then
11887
  ac_cv_func_shl_load=yes
11888
else
11889
  $as_echo "$as_me: failed program was:" >&5
11890
sed 's/^/| /' conftest.$ac_ext >&5
11891
 
11892
        ac_cv_func_shl_load=no
11893
fi
11894
 
11895
rm -rf conftest.dSYM
11896
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11897
      conftest$ac_exeext conftest.$ac_ext
11898
fi
11899
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11900
$as_echo "$ac_cv_func_shl_load" >&6; }
11901
if test "x$ac_cv_func_shl_load" = x""yes; then
11902
  lt_cv_dlopen="shl_load"
11903
else
11904
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11905
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11906
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11907
  $as_echo_n "(cached) " >&6
11908
else
11909
  ac_check_lib_save_LIBS=$LIBS
11910
LIBS="-ldld  $LIBS"
11911
cat >conftest.$ac_ext <<_ACEOF
11912
/* confdefs.h.  */
11913
_ACEOF
11914
cat confdefs.h >>conftest.$ac_ext
11915
cat >>conftest.$ac_ext <<_ACEOF
11916
/* end confdefs.h.  */
11917
 
11918
/* Override any GCC internal prototype to avoid an error.
11919
   Use char because int might match the return type of a GCC
11920
   builtin and then its argument prototype would still apply.  */
11921
#ifdef __cplusplus
11922
extern "C"
11923
#endif
11924
char shl_load ();
11925
int
11926
main ()
11927
{
11928
return shl_load ();
11929
  ;
11930
  return 0;
11931
}
11932
_ACEOF
11933
rm -f conftest.$ac_objext conftest$ac_exeext
11934
if { (ac_try="$ac_link"
11935
case "(($ac_try" in
11936
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937
  *) ac_try_echo=$ac_try;;
11938
esac
11939
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11940
$as_echo "$ac_try_echo") >&5
11941
  (eval "$ac_link") 2>conftest.er1
11942
  ac_status=$?
11943
  grep -v '^ *+' conftest.er1 >conftest.err
11944
  rm -f conftest.er1
11945
  cat conftest.err >&5
11946
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947
  (exit $ac_status); } && {
11948
         test -z "$ac_c_werror_flag" ||
11949
         test ! -s conftest.err
11950
       } && test -s conftest$ac_exeext && {
11951
         test "$cross_compiling" = yes ||
11952
         $as_test_x conftest$ac_exeext
11953
       }; then
11954
  ac_cv_lib_dld_shl_load=yes
11955
else
11956
  $as_echo "$as_me: failed program was:" >&5
11957
sed 's/^/| /' conftest.$ac_ext >&5
11958
 
11959
        ac_cv_lib_dld_shl_load=no
11960
fi
11961
 
11962
rm -rf conftest.dSYM
11963
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11964
      conftest$ac_exeext conftest.$ac_ext
11965
LIBS=$ac_check_lib_save_LIBS
11966
fi
11967
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11968
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11969
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11970
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11971
else
11972
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11973
$as_echo_n "checking for dlopen... " >&6; }
11974
if test "${ac_cv_func_dlopen+set}" = set; then
11975
  $as_echo_n "(cached) " >&6
11976
else
11977
  cat >conftest.$ac_ext <<_ACEOF
11978
/* confdefs.h.  */
11979
_ACEOF
11980
cat confdefs.h >>conftest.$ac_ext
11981
cat >>conftest.$ac_ext <<_ACEOF
11982
/* end confdefs.h.  */
11983
/* Define dlopen to an innocuous variant, in case  declares dlopen.
11984
   For example, HP-UX 11i  declares gettimeofday.  */
11985
#define dlopen innocuous_dlopen
11986
 
11987
/* System header to define __stub macros and hopefully few prototypes,
11988
    which can conflict with char dlopen (); below.
11989
    Prefer  to  if __STDC__ is defined, since
11990
     exists even on freestanding compilers.  */
11991
 
11992
#ifdef __STDC__
11993
# include 
11994
#else
11995
# include 
11996
#endif
11997
 
11998
#undef dlopen
11999
 
12000
/* Override any GCC internal prototype to avoid an error.
12001
   Use char because int might match the return type of a GCC
12002
   builtin and then its argument prototype would still apply.  */
12003
#ifdef __cplusplus
12004
extern "C"
12005
#endif
12006
char dlopen ();
12007
/* The GNU C library defines this for functions which it implements
12008
    to always fail with ENOSYS.  Some functions are actually named
12009
    something starting with __ and the normal name is an alias.  */
12010
#if defined __stub_dlopen || defined __stub___dlopen
12011
choke me
12012
#endif
12013
 
12014
int
12015
main ()
12016
{
12017
return dlopen ();
12018
  ;
12019
  return 0;
12020
}
12021
_ACEOF
12022
rm -f conftest.$ac_objext conftest$ac_exeext
12023
if { (ac_try="$ac_link"
12024
case "(($ac_try" in
12025
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026
  *) ac_try_echo=$ac_try;;
12027
esac
12028
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12029
$as_echo "$ac_try_echo") >&5
12030
  (eval "$ac_link") 2>conftest.er1
12031
  ac_status=$?
12032
  grep -v '^ *+' conftest.er1 >conftest.err
12033
  rm -f conftest.er1
12034
  cat conftest.err >&5
12035
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036
  (exit $ac_status); } && {
12037
         test -z "$ac_c_werror_flag" ||
12038
         test ! -s conftest.err
12039
       } && test -s conftest$ac_exeext && {
12040
         test "$cross_compiling" = yes ||
12041
         $as_test_x conftest$ac_exeext
12042
       }; then
12043
  ac_cv_func_dlopen=yes
12044
else
12045
  $as_echo "$as_me: failed program was:" >&5
12046
sed 's/^/| /' conftest.$ac_ext >&5
12047
 
12048
        ac_cv_func_dlopen=no
12049
fi
12050
 
12051
rm -rf conftest.dSYM
12052
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12053
      conftest$ac_exeext conftest.$ac_ext
12054
fi
12055
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12056
$as_echo "$ac_cv_func_dlopen" >&6; }
12057
if test "x$ac_cv_func_dlopen" = x""yes; then
12058
  lt_cv_dlopen="dlopen"
12059
else
12060
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12061
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12062
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12063
  $as_echo_n "(cached) " >&6
12064
else
12065
  ac_check_lib_save_LIBS=$LIBS
12066
LIBS="-ldl  $LIBS"
12067
cat >conftest.$ac_ext <<_ACEOF
12068
/* confdefs.h.  */
12069
_ACEOF
12070
cat confdefs.h >>conftest.$ac_ext
12071
cat >>conftest.$ac_ext <<_ACEOF
12072
/* end confdefs.h.  */
12073
 
12074
/* Override any GCC internal prototype to avoid an error.
12075
   Use char because int might match the return type of a GCC
12076
   builtin and then its argument prototype would still apply.  */
12077
#ifdef __cplusplus
12078
extern "C"
12079
#endif
12080
char dlopen ();
12081
int
12082
main ()
12083
{
12084
return dlopen ();
12085
  ;
12086
  return 0;
12087
}
12088
_ACEOF
12089
rm -f conftest.$ac_objext conftest$ac_exeext
12090
if { (ac_try="$ac_link"
12091
case "(($ac_try" in
12092
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093
  *) ac_try_echo=$ac_try;;
12094
esac
12095
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12096
$as_echo "$ac_try_echo") >&5
12097
  (eval "$ac_link") 2>conftest.er1
12098
  ac_status=$?
12099
  grep -v '^ *+' conftest.er1 >conftest.err
12100
  rm -f conftest.er1
12101
  cat conftest.err >&5
12102
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103
  (exit $ac_status); } && {
12104
         test -z "$ac_c_werror_flag" ||
12105
         test ! -s conftest.err
12106
       } && test -s conftest$ac_exeext && {
12107
         test "$cross_compiling" = yes ||
12108
         $as_test_x conftest$ac_exeext
12109
       }; then
12110
  ac_cv_lib_dl_dlopen=yes
12111
else
12112
  $as_echo "$as_me: failed program was:" >&5
12113
sed 's/^/| /' conftest.$ac_ext >&5
12114
 
12115
        ac_cv_lib_dl_dlopen=no
12116
fi
12117
 
12118
rm -rf conftest.dSYM
12119
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12120
      conftest$ac_exeext conftest.$ac_ext
12121
LIBS=$ac_check_lib_save_LIBS
12122
fi
12123
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12124
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12125
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12126
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12127
else
12128
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12129
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12130
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12131
  $as_echo_n "(cached) " >&6
12132
else
12133
  ac_check_lib_save_LIBS=$LIBS
12134
LIBS="-lsvld  $LIBS"
12135
cat >conftest.$ac_ext <<_ACEOF
12136
/* confdefs.h.  */
12137
_ACEOF
12138
cat confdefs.h >>conftest.$ac_ext
12139
cat >>conftest.$ac_ext <<_ACEOF
12140
/* end confdefs.h.  */
12141
 
12142
/* Override any GCC internal prototype to avoid an error.
12143
   Use char because int might match the return type of a GCC
12144
   builtin and then its argument prototype would still apply.  */
12145
#ifdef __cplusplus
12146
extern "C"
12147
#endif
12148
char dlopen ();
12149
int
12150
main ()
12151
{
12152
return dlopen ();
12153
  ;
12154
  return 0;
12155
}
12156
_ACEOF
12157
rm -f conftest.$ac_objext conftest$ac_exeext
12158
if { (ac_try="$ac_link"
12159
case "(($ac_try" in
12160
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161
  *) ac_try_echo=$ac_try;;
12162
esac
12163
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12164
$as_echo "$ac_try_echo") >&5
12165
  (eval "$ac_link") 2>conftest.er1
12166
  ac_status=$?
12167
  grep -v '^ *+' conftest.er1 >conftest.err
12168
  rm -f conftest.er1
12169
  cat conftest.err >&5
12170
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171
  (exit $ac_status); } && {
12172
         test -z "$ac_c_werror_flag" ||
12173
         test ! -s conftest.err
12174
       } && test -s conftest$ac_exeext && {
12175
         test "$cross_compiling" = yes ||
12176
         $as_test_x conftest$ac_exeext
12177
       }; then
12178
  ac_cv_lib_svld_dlopen=yes
12179
else
12180
  $as_echo "$as_me: failed program was:" >&5
12181
sed 's/^/| /' conftest.$ac_ext >&5
12182
 
12183
        ac_cv_lib_svld_dlopen=no
12184
fi
12185
 
12186
rm -rf conftest.dSYM
12187
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12188
      conftest$ac_exeext conftest.$ac_ext
12189
LIBS=$ac_check_lib_save_LIBS
12190
fi
12191
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12192
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12193
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12194
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12195
else
12196
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12197
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12198
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12199
  $as_echo_n "(cached) " >&6
12200
else
12201
  ac_check_lib_save_LIBS=$LIBS
12202
LIBS="-ldld  $LIBS"
12203
cat >conftest.$ac_ext <<_ACEOF
12204
/* confdefs.h.  */
12205
_ACEOF
12206
cat confdefs.h >>conftest.$ac_ext
12207
cat >>conftest.$ac_ext <<_ACEOF
12208
/* end confdefs.h.  */
12209
 
12210
/* Override any GCC internal prototype to avoid an error.
12211
   Use char because int might match the return type of a GCC
12212
   builtin and then its argument prototype would still apply.  */
12213
#ifdef __cplusplus
12214
extern "C"
12215
#endif
12216
char dld_link ();
12217
int
12218
main ()
12219
{
12220
return dld_link ();
12221
  ;
12222
  return 0;
12223
}
12224
_ACEOF
12225
rm -f conftest.$ac_objext conftest$ac_exeext
12226
if { (ac_try="$ac_link"
12227
case "(($ac_try" in
12228
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229
  *) ac_try_echo=$ac_try;;
12230
esac
12231
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12232
$as_echo "$ac_try_echo") >&5
12233
  (eval "$ac_link") 2>conftest.er1
12234
  ac_status=$?
12235
  grep -v '^ *+' conftest.er1 >conftest.err
12236
  rm -f conftest.er1
12237
  cat conftest.err >&5
12238
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239
  (exit $ac_status); } && {
12240
         test -z "$ac_c_werror_flag" ||
12241
         test ! -s conftest.err
12242
       } && test -s conftest$ac_exeext && {
12243
         test "$cross_compiling" = yes ||
12244
         $as_test_x conftest$ac_exeext
12245
       }; then
12246
  ac_cv_lib_dld_dld_link=yes
12247
else
12248
  $as_echo "$as_me: failed program was:" >&5
12249
sed 's/^/| /' conftest.$ac_ext >&5
12250
 
12251
        ac_cv_lib_dld_dld_link=no
12252
fi
12253
 
12254
rm -rf conftest.dSYM
12255
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12256
      conftest$ac_exeext conftest.$ac_ext
12257
LIBS=$ac_check_lib_save_LIBS
12258
fi
12259
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12260
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12261
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12262
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12263
fi
12264
 
12265
 
12266
fi
12267
 
12268
 
12269
fi
12270
 
12271
 
12272
fi
12273
 
12274
 
12275
fi
12276
 
12277
 
12278
fi
12279
 
12280
    ;;
12281
  esac
12282
 
12283
  if test "x$lt_cv_dlopen" != xno; then
12284
    enable_dlopen=yes
12285
  else
12286
    enable_dlopen=no
12287
  fi
12288
 
12289
  case $lt_cv_dlopen in
12290
  dlopen)
12291
    save_CPPFLAGS="$CPPFLAGS"
12292
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12293
 
12294
    save_LDFLAGS="$LDFLAGS"
12295
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12296
 
12297
    save_LIBS="$LIBS"
12298
    LIBS="$lt_cv_dlopen_libs $LIBS"
12299
 
12300
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12301
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12302
if test "${lt_cv_dlopen_self+set}" = set; then
12303
  $as_echo_n "(cached) " >&6
12304
else
12305
          if test "$cross_compiling" = yes; then :
12306
  lt_cv_dlopen_self=cross
12307
else
12308
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12309
  lt_status=$lt_dlunknown
12310
  cat > conftest.$ac_ext <<_LT_EOF
12311
#line 12311 "configure"
12312
#include "confdefs.h"
12313
 
12314
#if HAVE_DLFCN_H
12315
#include 
12316
#endif
12317
 
12318
#include 
12319
 
12320
#ifdef RTLD_GLOBAL
12321
#  define LT_DLGLOBAL           RTLD_GLOBAL
12322
#else
12323
#  ifdef DL_GLOBAL
12324
#    define LT_DLGLOBAL         DL_GLOBAL
12325
#  else
12326
#    define LT_DLGLOBAL         0
12327
#  endif
12328
#endif
12329
 
12330
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12331
   find out it does not work in some platform. */
12332
#ifndef LT_DLLAZY_OR_NOW
12333
#  ifdef RTLD_LAZY
12334
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12335
#  else
12336
#    ifdef DL_LAZY
12337
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12338
#    else
12339
#      ifdef RTLD_NOW
12340
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12341
#      else
12342
#        ifdef DL_NOW
12343
#          define LT_DLLAZY_OR_NOW      DL_NOW
12344
#        else
12345
#          define LT_DLLAZY_OR_NOW      0
12346
#        endif
12347
#      endif
12348
#    endif
12349
#  endif
12350
#endif
12351
 
12352
void fnord() { int i=42;}
12353
int main ()
12354
{
12355
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12356
  int status = $lt_dlunknown;
12357
 
12358
  if (self)
12359
    {
12360
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12361
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12362
      /* dlclose (self); */
12363
    }
12364
  else
12365
    puts (dlerror ());
12366
 
12367
  return status;
12368
}
12369
_LT_EOF
12370
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12371
  (eval $ac_link) 2>&5
12372
  ac_status=$?
12373
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12375
    (./conftest; exit; ) >&5 2>/dev/null
12376
    lt_status=$?
12377
    case x$lt_status in
12378
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12379
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12380
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12381
    esac
12382
  else :
12383
    # compilation failed
12384
    lt_cv_dlopen_self=no
12385
  fi
12386
fi
12387
rm -fr conftest*
12388
 
12389
 
12390
fi
12391
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12392
$as_echo "$lt_cv_dlopen_self" >&6; }
12393
 
12394
    if test "x$lt_cv_dlopen_self" = xyes; then
12395
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12396
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12397
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12398
if test "${lt_cv_dlopen_self_static+set}" = set; then
12399
  $as_echo_n "(cached) " >&6
12400
else
12401
          if test "$cross_compiling" = yes; then :
12402
  lt_cv_dlopen_self_static=cross
12403
else
12404
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12405
  lt_status=$lt_dlunknown
12406
  cat > conftest.$ac_ext <<_LT_EOF
12407
#line 12407 "configure"
12408
#include "confdefs.h"
12409
 
12410
#if HAVE_DLFCN_H
12411
#include 
12412
#endif
12413
 
12414
#include 
12415
 
12416
#ifdef RTLD_GLOBAL
12417
#  define LT_DLGLOBAL           RTLD_GLOBAL
12418
#else
12419
#  ifdef DL_GLOBAL
12420
#    define LT_DLGLOBAL         DL_GLOBAL
12421
#  else
12422
#    define LT_DLGLOBAL         0
12423
#  endif
12424
#endif
12425
 
12426
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12427
   find out it does not work in some platform. */
12428
#ifndef LT_DLLAZY_OR_NOW
12429
#  ifdef RTLD_LAZY
12430
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12431
#  else
12432
#    ifdef DL_LAZY
12433
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12434
#    else
12435
#      ifdef RTLD_NOW
12436
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12437
#      else
12438
#        ifdef DL_NOW
12439
#          define LT_DLLAZY_OR_NOW      DL_NOW
12440
#        else
12441
#          define LT_DLLAZY_OR_NOW      0
12442
#        endif
12443
#      endif
12444
#    endif
12445
#  endif
12446
#endif
12447
 
12448
void fnord() { int i=42;}
12449
int main ()
12450
{
12451
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12452
  int status = $lt_dlunknown;
12453
 
12454
  if (self)
12455
    {
12456
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12457
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12458
      /* dlclose (self); */
12459
    }
12460
  else
12461
    puts (dlerror ());
12462
 
12463
  return status;
12464
}
12465
_LT_EOF
12466
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12467
  (eval $ac_link) 2>&5
12468
  ac_status=$?
12469
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12471
    (./conftest; exit; ) >&5 2>/dev/null
12472
    lt_status=$?
12473
    case x$lt_status in
12474
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12475
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12476
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12477
    esac
12478
  else :
12479
    # compilation failed
12480
    lt_cv_dlopen_self_static=no
12481
  fi
12482
fi
12483
rm -fr conftest*
12484
 
12485
 
12486
fi
12487
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12488
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12489
    fi
12490
 
12491
    CPPFLAGS="$save_CPPFLAGS"
12492
    LDFLAGS="$save_LDFLAGS"
12493
    LIBS="$save_LIBS"
12494
    ;;
12495
  esac
12496
 
12497
  case $lt_cv_dlopen_self in
12498
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12499
  *) enable_dlopen_self=unknown ;;
12500
  esac
12501
 
12502
  case $lt_cv_dlopen_self_static in
12503
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12504
  *) enable_dlopen_self_static=unknown ;;
12505
  esac
12506
fi
12507
 
12508
 
12509
 
12510
 
12511
 
12512
 
12513
 
12514
 
12515
 
12516
 
12517
 
12518
 
12519
 
12520
 
12521
 
12522
 
12523
 
12524
striplib=
12525
old_striplib=
12526
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12527
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12528
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12529
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12530
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12531
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12532
$as_echo "yes" >&6; }
12533
else
12534
# FIXME - insert some real tests, host_os isn't really good enough
12535
  case $host_os in
12536
  darwin*)
12537
    if test -n "$STRIP" ; then
12538
      striplib="$STRIP -x"
12539
      old_striplib="$STRIP -S"
12540
      { $as_echo "$as_me:$LINENO: result: yes" >&5
12541
$as_echo "yes" >&6; }
12542
    else
12543
      { $as_echo "$as_me:$LINENO: result: no" >&5
12544
$as_echo "no" >&6; }
12545
    fi
12546
    ;;
12547
  *)
12548
    { $as_echo "$as_me:$LINENO: result: no" >&5
12549
$as_echo "no" >&6; }
12550
    ;;
12551
  esac
12552
fi
12553
 
12554
 
12555
 
12556
 
12557
 
12558
 
12559
 
12560
 
12561
 
12562
 
12563
 
12564
 
12565
  # Report which library types will actually be built
12566
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12567
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12568
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12569
$as_echo "$can_build_shared" >&6; }
12570
 
12571
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12572
$as_echo_n "checking whether to build shared libraries... " >&6; }
12573
  test "$can_build_shared" = "no" && enable_shared=no
12574
 
12575
  # On AIX, shared libraries and static libraries use the same namespace, and
12576
  # are all built from PIC.
12577
  case $host_os in
12578
  aix3*)
12579
    test "$enable_shared" = yes && enable_static=no
12580
    if test -n "$RANLIB"; then
12581
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12582
      postinstall_cmds='$RANLIB $lib'
12583
    fi
12584
    ;;
12585
 
12586
  aix[4-9]*)
12587
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12588
      test "$enable_shared" = yes && enable_static=no
12589
    fi
12590
    ;;
12591
  esac
12592
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12593
$as_echo "$enable_shared" >&6; }
12594
 
12595
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12596
$as_echo_n "checking whether to build static libraries... " >&6; }
12597
  # Make sure either enable_shared or enable_static is yes.
12598
  test "$enable_shared" = yes || enable_static=yes
12599
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12600
$as_echo "$enable_static" >&6; }
12601
 
12602
 
12603
 
12604
 
12605
fi
12606
ac_ext=c
12607
ac_cpp='$CPP $CPPFLAGS'
12608
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12609
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12610
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12611
 
12612
CC="$lt_save_CC"
12613
 
12614
 
12615
 
12616
 
12617
 
12618
 
12619
 
12620
 
12621
 
12622
 
12623
 
12624
 
12625
 
12626
        ac_config_commands="$ac_config_commands libtool"
12627
 
12628
 
12629
 
12630
 
12631
# Only expand once:
12632
 
12633
 
12634
fi
12635
 
12636
 
12637
 
12638
subdirs="$subdirs machine"
12639
 
12640
 
12641
LIBM_MACHINE_LIB=
12642
if test -n "${libm_machine_dir}"; then
12643
  if test "${use_libtool}" = "yes"; then
12644
    LIBM_MACHINE_LIB=machine/${libm_machine_dir}/lib${libm_machine_dir}.${aext}
12645
  else
12646
    LIBM_MACHINE_LIB=machine/lib.${aext}
12647
  fi
12648
fi
12649
 
12650
 
12651
 
12652
ac_config_files="$ac_config_files Makefile math/Makefile mathfp/Makefile common/Makefile"
12653
 
12654
cat >confcache <<\_ACEOF
12655
# This file is a shell script that caches the results of configure
12656
# tests run on this system so they can be shared between configure
12657
# scripts and configure runs, see configure's option --config-cache.
12658
# It is not useful on other systems.  If it contains results you don't
12659
# want to keep, you may remove or edit it.
12660
#
12661
# config.status only pays attention to the cache file if you give it
12662
# the --recheck option to rerun configure.
12663
#
12664
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12665
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12666
# following values.
12667
 
12668
_ACEOF
12669
 
12670
# The following way of writing the cache mishandles newlines in values,
12671
# but we know of no workaround that is simple, portable, and efficient.
12672
# So, we kill variables containing newlines.
12673
# Ultrix sh set writes to stderr and can't be redirected directly,
12674
# and sets the high bit in the cache file unless we assign to the vars.
12675
(
12676
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12677
    eval ac_val=\$$ac_var
12678
    case $ac_val in #(
12679
    *${as_nl}*)
12680
      case $ac_var in #(
12681
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12682
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12683
      esac
12684
      case $ac_var in #(
12685
      _ | IFS | as_nl) ;; #(
12686
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12687
      *) $as_unset $ac_var ;;
12688
      esac ;;
12689
    esac
12690
  done
12691
 
12692
  (set) 2>&1 |
12693
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12694
    *${as_nl}ac_space=\ *)
12695
      # `set' does not quote correctly, so add quotes (double-quote
12696
      # substitution turns \\\\ into \\, and sed turns \\ into \).
12697
      sed -n \
12698
        "s/'/'\\\\''/g;
12699
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12700
      ;; #(
12701
    *)
12702
      # `set' quotes correctly as required by POSIX, so do not add quotes.
12703
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12704
      ;;
12705
    esac |
12706
    sort
12707
) |
12708
  sed '
12709
     /^ac_cv_env_/b end
12710
     t clear
12711
     :clear
12712
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12713
     t end
12714
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12715
     :end' >>confcache
12716
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12717
  if test -w "$cache_file"; then
12718
    test "x$cache_file" != "x/dev/null" &&
12719
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12720
$as_echo "$as_me: updating cache $cache_file" >&6;}
12721
    cat confcache >$cache_file
12722
  else
12723
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12724
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12725
  fi
12726
fi
12727
rm -f confcache
12728
 
12729
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12730
# Let make expand exec_prefix.
12731
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12732
 
12733
# Transform confdefs.h into DEFS.
12734
# Protect against shell expansion while executing Makefile rules.
12735
# Protect against Makefile macro expansion.
12736
#
12737
# If the first sed substitution is executed (which looks for macros that
12738
# take arguments), then branch to the quote section.  Otherwise,
12739
# look for a macro that doesn't take arguments.
12740
ac_script='
12741
:mline
12742
/\\$/{
12743
 N
12744
 s,\\\n,,
12745
 b mline
12746
}
12747
t clear
12748
:clear
12749
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12750
t quote
12751
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12752
t quote
12753
b any
12754
:quote
12755
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12756
s/\[/\\&/g
12757
s/\]/\\&/g
12758
s/\$/$$/g
12759
H
12760
:any
12761
${
12762
        g
12763
        s/^\n//
12764
        s/\n/ /g
12765
        p
12766
}
12767
'
12768
DEFS=`sed -n "$ac_script" confdefs.h`
12769
 
12770
 
12771
ac_libobjs=
12772
ac_ltlibobjs=
12773
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12774
  # 1. Remove the extension, and $U if already installed.
12775
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12776
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12777
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12778
  #    will be set to the directory where LIBOBJS objects are built.
12779
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12780
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12781
done
12782
LIBOBJS=$ac_libobjs
12783
 
12784
LTLIBOBJS=$ac_ltlibobjs
12785
 
12786
 
12787
if test -z "${NEWLIB_HW_FP_TRUE}" && test -z "${NEWLIB_HW_FP_FALSE}"; then
12788
  { { $as_echo "$as_me:$LINENO: error: conditional \"NEWLIB_HW_FP\" was never defined.
12789
Usually this means the macro was only invoked conditionally." >&5
12790
$as_echo "$as_me: error: conditional \"NEWLIB_HW_FP\" was never defined.
12791
Usually this means the macro was only invoked conditionally." >&2;}
12792
   { (exit 1); exit 1; }; }
12793
fi
12794
if test -z "${HAVE_LONG_DOUBLE_TRUE}" && test -z "${HAVE_LONG_DOUBLE_FALSE}"; then
12795
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LONG_DOUBLE\" was never defined.
12796
Usually this means the macro was only invoked conditionally." >&5
12797
$as_echo "$as_me: error: conditional \"HAVE_LONG_DOUBLE\" was never defined.
12798
Usually this means the macro was only invoked conditionally." >&2;}
12799
   { (exit 1); exit 1; }; }
12800
fi
12801
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12802
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12803
Usually this means the macro was only invoked conditionally." >&5
12804
$as_echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12805
Usually this means the macro was only invoked conditionally." >&2;}
12806
   { (exit 1); exit 1; }; }
12807
fi
12808
 if test -n "$EXEEXT"; then
12809
  am__EXEEXT_TRUE=
12810
  am__EXEEXT_FALSE='#'
12811
else
12812
  am__EXEEXT_TRUE='#'
12813
  am__EXEEXT_FALSE=
12814
fi
12815
 
12816
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12817
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12818
Usually this means the macro was only invoked conditionally." >&5
12819
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12820
Usually this means the macro was only invoked conditionally." >&2;}
12821
   { (exit 1); exit 1; }; }
12822
fi
12823
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12824
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12825
Usually this means the macro was only invoked conditionally." >&5
12826
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12827
Usually this means the macro was only invoked conditionally." >&2;}
12828
   { (exit 1); exit 1; }; }
12829
fi
12830
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12831
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12832
Usually this means the macro was only invoked conditionally." >&5
12833
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12834
Usually this means the macro was only invoked conditionally." >&2;}
12835
   { (exit 1); exit 1; }; }
12836
fi
12837
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12838
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
12839
Usually this means the macro was only invoked conditionally." >&5
12840
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
12841
Usually this means the macro was only invoked conditionally." >&2;}
12842
   { (exit 1); exit 1; }; }
12843
fi
12844
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12845
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
12846
Usually this means the macro was only invoked conditionally." >&5
12847
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
12848
Usually this means the macro was only invoked conditionally." >&2;}
12849
   { (exit 1); exit 1; }; }
12850
fi
12851
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12852
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
12853
Usually this means the macro was only invoked conditionally." >&5
12854
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
12855
Usually this means the macro was only invoked conditionally." >&2;}
12856
   { (exit 1); exit 1; }; }
12857
fi
12858
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12859
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
12860
Usually this means the macro was only invoked conditionally." >&5
12861
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
12862
Usually this means the macro was only invoked conditionally." >&2;}
12863
   { (exit 1); exit 1; }; }
12864
fi
12865
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12866
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
12867
Usually this means the macro was only invoked conditionally." >&5
12868
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
12869
Usually this means the macro was only invoked conditionally." >&2;}
12870
   { (exit 1); exit 1; }; }
12871
fi
12872
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12873
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
12874
Usually this means the macro was only invoked conditionally." >&5
12875
$as_echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
12876
Usually this means the macro was only invoked conditionally." >&2;}
12877
   { (exit 1); exit 1; }; }
12878
fi
12879
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12880
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12881
Usually this means the macro was only invoked conditionally." >&5
12882
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12883
Usually this means the macro was only invoked conditionally." >&2;}
12884
   { (exit 1); exit 1; }; }
12885
fi
12886
 
12887
: ${CONFIG_STATUS=./config.status}
12888
ac_write_fail=0
12889
ac_clean_files_save=$ac_clean_files
12890
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12891
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12892
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12893
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12894
#! $SHELL
12895
# Generated by $as_me.
12896
# Run this file to recreate the current configuration.
12897
# Compiler output produced by configure, useful for debugging
12898
# configure, is in config.log if it exists.
12899
 
12900
debug=false
12901
ac_cs_recheck=false
12902
ac_cs_silent=false
12903
SHELL=\${CONFIG_SHELL-$SHELL}
12904
_ACEOF
12905
 
12906
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12907
## --------------------- ##
12908
## M4sh Initialization.  ##
12909
## --------------------- ##
12910
 
12911
# Be more Bourne compatible
12912
DUALCASE=1; export DUALCASE # for MKS sh
12913
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12914
  emulate sh
12915
  NULLCMD=:
12916
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12917
  # is contrary to our usage.  Disable this feature.
12918
  alias -g '${1+"$@"}'='"$@"'
12919
  setopt NO_GLOB_SUBST
12920
else
12921
  case `(set -o) 2>/dev/null` in
12922
  *posix*) set -o posix ;;
12923
esac
12924
 
12925
fi
12926
 
12927
 
12928
 
12929
 
12930
# PATH needs CR
12931
# Avoid depending upon Character Ranges.
12932
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12933
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12934
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12935
as_cr_digits='0123456789'
12936
as_cr_alnum=$as_cr_Letters$as_cr_digits
12937
 
12938
as_nl='
12939
'
12940
export as_nl
12941
# Printing a long string crashes Solaris 7 /usr/bin/printf.
12942
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12943
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12944
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12945
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12946
  as_echo='printf %s\n'
12947
  as_echo_n='printf %s'
12948
else
12949
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12950
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12951
    as_echo_n='/usr/ucb/echo -n'
12952
  else
12953
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12954
    as_echo_n_body='eval
12955
      arg=$1;
12956
      case $arg in
12957
      *"$as_nl"*)
12958
        expr "X$arg" : "X\\(.*\\)$as_nl";
12959
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12960
      esac;
12961
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12962
    '
12963
    export as_echo_n_body
12964
    as_echo_n='sh -c $as_echo_n_body as_echo'
12965
  fi
12966
  export as_echo_body
12967
  as_echo='sh -c $as_echo_body as_echo'
12968
fi
12969
 
12970
# The user is always right.
12971
if test "${PATH_SEPARATOR+set}" != set; then
12972
  PATH_SEPARATOR=:
12973
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12974
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12975
      PATH_SEPARATOR=';'
12976
  }
12977
fi
12978
 
12979
# Support unset when possible.
12980
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12981
  as_unset=unset
12982
else
12983
  as_unset=false
12984
fi
12985
 
12986
 
12987
# IFS
12988
# We need space, tab and new line, in precisely that order.  Quoting is
12989
# there to prevent editors from complaining about space-tab.
12990
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12991
# splitting by setting IFS to empty value.)
12992
IFS=" ""        $as_nl"
12993
 
12994
# Find who we are.  Look in the path if we contain no directory separator.
12995
case $0 in
12996
  *[\\/]* ) as_myself=$0 ;;
12997
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998
for as_dir in $PATH
12999
do
13000
  IFS=$as_save_IFS
13001
  test -z "$as_dir" && as_dir=.
13002
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13003
done
13004
IFS=$as_save_IFS
13005
 
13006
     ;;
13007
esac
13008
# We did not find ourselves, most probably we were run as `sh COMMAND'
13009
# in which case we are not to be found in the path.
13010
if test "x$as_myself" = x; then
13011
  as_myself=$0
13012
fi
13013
if test ! -f "$as_myself"; then
13014
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13015
  { (exit 1); exit 1; }
13016
fi
13017
 
13018
# Work around bugs in pre-3.0 UWIN ksh.
13019
for as_var in ENV MAIL MAILPATH
13020
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13021
done
13022
PS1='$ '
13023
PS2='> '
13024
PS4='+ '
13025
 
13026
# NLS nuisances.
13027
LC_ALL=C
13028
export LC_ALL
13029
LANGUAGE=C
13030
export LANGUAGE
13031
 
13032
# Required to use basename.
13033
if expr a : '\(a\)' >/dev/null 2>&1 &&
13034
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13035
  as_expr=expr
13036
else
13037
  as_expr=false
13038
fi
13039
 
13040
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13041
  as_basename=basename
13042
else
13043
  as_basename=false
13044
fi
13045
 
13046
 
13047
# Name of the executable.
13048
as_me=`$as_basename -- "$0" ||
13049
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13050
         X"$0" : 'X\(//\)$' \| \
13051
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13052
$as_echo X/"$0" |
13053
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13054
            s//\1/
13055
            q
13056
          }
13057
          /^X\/\(\/\/\)$/{
13058
            s//\1/
13059
            q
13060
          }
13061
          /^X\/\(\/\).*/{
13062
            s//\1/
13063
            q
13064
          }
13065
          s/.*/./; q'`
13066
 
13067
# CDPATH.
13068
$as_unset CDPATH
13069
 
13070
 
13071
 
13072
  as_lineno_1=$LINENO
13073
  as_lineno_2=$LINENO
13074
  test "x$as_lineno_1" != "x$as_lineno_2" &&
13075
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13076
 
13077
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13078
  # uniformly replaced by the line number.  The first 'sed' inserts a
13079
  # line-number line after each line using $LINENO; the second 'sed'
13080
  # does the real work.  The second script uses 'N' to pair each
13081
  # line-number line with the line containing $LINENO, and appends
13082
  # trailing '-' during substitution so that $LINENO is not a special
13083
  # case at line end.
13084
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13085
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13086
  # E. McMahon (1931-1989) for sed's syntax.  :-)
13087
  sed -n '
13088
    p
13089
    /[$]LINENO/=
13090
  ' <$as_myself |
13091
    sed '
13092
      s/[$]LINENO.*/&-/
13093
      t lineno
13094
      b
13095
      :lineno
13096
      N
13097
      :loop
13098
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13099
      t loop
13100
      s/-\n.*//
13101
    ' >$as_me.lineno &&
13102
  chmod +x "$as_me.lineno" ||
13103
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13104
   { (exit 1); exit 1; }; }
13105
 
13106
  # Don't try to exec as it changes $[0], causing all sort of problems
13107
  # (the dirname of $[0] is not the place where we might find the
13108
  # original and so on.  Autoconf is especially sensitive to this).
13109
  . "./$as_me.lineno"
13110
  # Exit status is that of the last command.
13111
  exit
13112
}
13113
 
13114
 
13115
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13116
  as_dirname=dirname
13117
else
13118
  as_dirname=false
13119
fi
13120
 
13121
ECHO_C= ECHO_N= ECHO_T=
13122
case `echo -n x` in
13123
-n*)
13124
  case `echo 'x\c'` in
13125
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13126
  *)   ECHO_C='\c';;
13127
  esac;;
13128
*)
13129
  ECHO_N='-n';;
13130
esac
13131
if expr a : '\(a\)' >/dev/null 2>&1 &&
13132
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13133
  as_expr=expr
13134
else
13135
  as_expr=false
13136
fi
13137
 
13138
rm -f conf$$ conf$$.exe conf$$.file
13139
if test -d conf$$.dir; then
13140
  rm -f conf$$.dir/conf$$.file
13141
else
13142
  rm -f conf$$.dir
13143
  mkdir conf$$.dir 2>/dev/null
13144
fi
13145
if (echo >conf$$.file) 2>/dev/null; then
13146
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13147
    as_ln_s='ln -s'
13148
    # ... but there are two gotchas:
13149
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13150
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13151
    # In both cases, we have to default to `cp -p'.
13152
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13153
      as_ln_s='cp -p'
13154
  elif ln conf$$.file conf$$ 2>/dev/null; then
13155
    as_ln_s=ln
13156
  else
13157
    as_ln_s='cp -p'
13158
  fi
13159
else
13160
  as_ln_s='cp -p'
13161
fi
13162
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13163
rmdir conf$$.dir 2>/dev/null
13164
 
13165
if mkdir -p . 2>/dev/null; then
13166
  as_mkdir_p=:
13167
else
13168
  test -d ./-p && rmdir ./-p
13169
  as_mkdir_p=false
13170
fi
13171
 
13172
if test -x / >/dev/null 2>&1; then
13173
  as_test_x='test -x'
13174
else
13175
  if ls -dL / >/dev/null 2>&1; then
13176
    as_ls_L_option=L
13177
  else
13178
    as_ls_L_option=
13179
  fi
13180
  as_test_x='
13181
    eval sh -c '\''
13182
      if test -d "$1"; then
13183
        test -d "$1/.";
13184
      else
13185
        case $1 in
13186
        -*)set "./$1";;
13187
        esac;
13188
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13189
        ???[sx]*):;;*)false;;esac;fi
13190
    '\'' sh
13191
  '
13192
fi
13193
as_executable_p=$as_test_x
13194
 
13195
# Sed expression to map a string onto a valid CPP name.
13196
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13197
 
13198
# Sed expression to map a string onto a valid variable name.
13199
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13200
 
13201
 
13202
exec 6>&1
13203
 
13204
# Save the log message, to keep $[0] and so on meaningful, and to
13205
# report actual input values of CONFIG_FILES etc. instead of their
13206
# values after options handling.
13207
ac_log="
13208
This file was extended by newlib $as_me 1.18.0, which was
13209
generated by GNU Autoconf 2.63.  Invocation command line was
13210
 
13211
  CONFIG_FILES    = $CONFIG_FILES
13212
  CONFIG_HEADERS  = $CONFIG_HEADERS
13213
  CONFIG_LINKS    = $CONFIG_LINKS
13214
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13215
  $ $0 $@
13216
 
13217
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13218
"
13219
 
13220
_ACEOF
13221
 
13222
case $ac_config_files in *"
13223
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13224
esac
13225
 
13226
 
13227
 
13228
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13229
# Files that config.status was made for.
13230
config_files="$ac_config_files"
13231
config_commands="$ac_config_commands"
13232
 
13233
_ACEOF
13234
 
13235
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13236
ac_cs_usage="\
13237
\`$as_me' instantiates files from templates according to the
13238
current configuration.
13239
 
13240
Usage: $0 [OPTION]... [FILE]...
13241
 
13242
  -h, --help       print this help, then exit
13243
  -V, --version    print version number and configuration settings, then exit
13244
  -q, --quiet, --silent
13245
                   do not print progress messages
13246
  -d, --debug      don't remove temporary files
13247
      --recheck    update $as_me by reconfiguring in the same conditions
13248
      --file=FILE[:TEMPLATE]
13249
                   instantiate the configuration file FILE
13250
 
13251
Configuration files:
13252
$config_files
13253
 
13254
Configuration commands:
13255
$config_commands
13256
 
13257
Report bugs to ."
13258
 
13259
_ACEOF
13260
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13261
ac_cs_version="\\
13262
newlib config.status 1.18.0
13263
configured by $0, generated by GNU Autoconf 2.63,
13264
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13265
 
13266
Copyright (C) 2008 Free Software Foundation, Inc.
13267
This config.status script is free software; the Free Software Foundation
13268
gives unlimited permission to copy, distribute and modify it."
13269
 
13270
ac_pwd='$ac_pwd'
13271
srcdir='$srcdir'
13272
INSTALL='$INSTALL'
13273
MKDIR_P='$MKDIR_P'
13274
AWK='$AWK'
13275
test -n "\$AWK" || AWK=awk
13276
_ACEOF
13277
 
13278
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13279
# The default lists apply if the user does not specify any file.
13280
ac_need_defaults=:
13281
while test $# != 0
13282
do
13283
  case $1 in
13284
  --*=*)
13285
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13286
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13287
    ac_shift=:
13288
    ;;
13289
  *)
13290
    ac_option=$1
13291
    ac_optarg=$2
13292
    ac_shift=shift
13293
    ;;
13294
  esac
13295
 
13296
  case $ac_option in
13297
  # Handling of the options.
13298
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13299
    ac_cs_recheck=: ;;
13300
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13301
    $as_echo "$ac_cs_version"; exit ;;
13302
  --debug | --debu | --deb | --de | --d | -d )
13303
    debug=: ;;
13304
  --file | --fil | --fi | --f )
13305
    $ac_shift
13306
    case $ac_optarg in
13307
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13308
    esac
13309
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13310
    ac_need_defaults=false;;
13311
  --he | --h |  --help | --hel | -h )
13312
    $as_echo "$ac_cs_usage"; exit ;;
13313
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13314
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13315
    ac_cs_silent=: ;;
13316
 
13317
  # This is an error.
13318
  -*) { $as_echo "$as_me: error: unrecognized option: $1
13319
Try \`$0 --help' for more information." >&2
13320
   { (exit 1); exit 1; }; } ;;
13321
 
13322
  *) ac_config_targets="$ac_config_targets $1"
13323
     ac_need_defaults=false ;;
13324
 
13325
  esac
13326
  shift
13327
done
13328
 
13329
ac_configure_extra_args=
13330
 
13331
if $ac_cs_silent; then
13332
  exec 6>/dev/null
13333
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13334
fi
13335
 
13336
_ACEOF
13337
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13338
if \$ac_cs_recheck; then
13339
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13340
  shift
13341
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13342
  CONFIG_SHELL='$SHELL'
13343
  export CONFIG_SHELL
13344
  exec "\$@"
13345
fi
13346
 
13347
_ACEOF
13348
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13349
exec 5>>config.log
13350
{
13351
  echo
13352
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13353
## Running $as_me. ##
13354
_ASBOX
13355
  $as_echo "$ac_log"
13356
} >&5
13357
 
13358
_ACEOF
13359
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13360
#
13361
# INIT-COMMANDS
13362
#
13363
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13364
 
13365
 
13366
# The HP-UX ksh and POSIX shell print the target directory to stdout
13367
# if CDPATH is set.
13368
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13369
 
13370
sed_quote_subst='$sed_quote_subst'
13371
double_quote_subst='$double_quote_subst'
13372
delay_variable_subst='$delay_variable_subst'
13373
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13374
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13375
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13376
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13377
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13378
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13379
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13380
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13381
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13382
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13383
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13384
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13385
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13386
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13387
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13388
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13389
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13390
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13391
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13392
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13393
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13394
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13395
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13396
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13397
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13398
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13399
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13400
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13401
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13402
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13403
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13404
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13405
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13406
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13407
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13408
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13409
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13410
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13411
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13412
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13413
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13414
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13415
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13416
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13417
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13418
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13419
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"`'
13420
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"`'
13421
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13422
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13423
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13424
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13425
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13426
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13427
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13428
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13429
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13430
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13431
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13432
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13433
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13434
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13435
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13436
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13437
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13438
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13439
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13440
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13441
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13442
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13443
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13444
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13445
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13446
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13447
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13448
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13449
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13450
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13451
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13452
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13453
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13454
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13455
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13456
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13457
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13458
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13459
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13460
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13461
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13462
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13463
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13464
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13465
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13466
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13467
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13468
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13469
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13470
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13471
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13472
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13473
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13474
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13475
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13476
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13477
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13478
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13479
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13480
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13481
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13482
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13483
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13484
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13485
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13486
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13487
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13488
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13489
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13490
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13491
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13492
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13493
 
13494
LTCC='$LTCC'
13495
LTCFLAGS='$LTCFLAGS'
13496
compiler='$compiler_DEFAULT'
13497
 
13498
# Quote evaled strings.
13499
for var in SED \
13500
GREP \
13501
EGREP \
13502
FGREP \
13503
LD \
13504
NM \
13505
LN_S \
13506
lt_SP2NL \
13507
lt_NL2SP \
13508
reload_flag \
13509
deplibs_check_method \
13510
file_magic_cmd \
13511
AR \
13512
AR_FLAGS \
13513
STRIP \
13514
RANLIB \
13515
CC \
13516
CFLAGS \
13517
compiler \
13518
lt_cv_sys_global_symbol_pipe \
13519
lt_cv_sys_global_symbol_to_cdecl \
13520
lt_cv_sys_global_symbol_to_c_name_address \
13521
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13522
SHELL \
13523
ECHO \
13524
lt_prog_compiler_no_builtin_flag \
13525
lt_prog_compiler_wl \
13526
lt_prog_compiler_pic \
13527
lt_prog_compiler_static \
13528
lt_cv_prog_compiler_c_o \
13529
need_locks \
13530
DSYMUTIL \
13531
NMEDIT \
13532
LIPO \
13533
OTOOL \
13534
OTOOL64 \
13535
shrext_cmds \
13536
export_dynamic_flag_spec \
13537
whole_archive_flag_spec \
13538
compiler_needs_object \
13539
with_gnu_ld \
13540
allow_undefined_flag \
13541
no_undefined_flag \
13542
hardcode_libdir_flag_spec \
13543
hardcode_libdir_flag_spec_ld \
13544
hardcode_libdir_separator \
13545
fix_srcfile_path \
13546
exclude_expsyms \
13547
include_expsyms \
13548
file_list_spec \
13549
variables_saved_for_relink \
13550
libname_spec \
13551
library_names_spec \
13552
soname_spec \
13553
finish_eval \
13554
old_striplib \
13555
striplib; do
13556
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13557
    *[\\\\\\\`\\"\\\$]*)
13558
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13559
      ;;
13560
    *)
13561
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13562
      ;;
13563
    esac
13564
done
13565
 
13566
# Double-quote double-evaled strings.
13567
for var in reload_cmds \
13568
old_postinstall_cmds \
13569
old_postuninstall_cmds \
13570
old_archive_cmds \
13571
extract_expsyms_cmds \
13572
old_archive_from_new_cmds \
13573
old_archive_from_expsyms_cmds \
13574
archive_cmds \
13575
archive_expsym_cmds \
13576
module_cmds \
13577
module_expsym_cmds \
13578
export_symbols_cmds \
13579
prelink_cmds \
13580
postinstall_cmds \
13581
postuninstall_cmds \
13582
finish_cmds \
13583
sys_lib_search_path_spec \
13584
sys_lib_dlsearch_path_spec; do
13585
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13586
    *[\\\\\\\`\\"\\\$]*)
13587
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13588
      ;;
13589
    *)
13590
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13591
      ;;
13592
    esac
13593
done
13594
 
13595
# Fix-up fallback echo if it was mangled by the above quoting rules.
13596
case \$lt_ECHO in
13597
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13598
  ;;
13599
esac
13600
 
13601
ac_aux_dir='$ac_aux_dir'
13602
xsi_shell='$xsi_shell'
13603
lt_shell_append='$lt_shell_append'
13604
 
13605
# See if we are running on zsh, and set the options which allow our
13606
# commands through without removal of \ escapes INIT.
13607
if test -n "\${ZSH_VERSION+set}" ; then
13608
   setopt NO_GLOB_SUBST
13609
fi
13610
 
13611
 
13612
    PACKAGE='$PACKAGE'
13613
    VERSION='$VERSION'
13614
    TIMESTAMP='$TIMESTAMP'
13615
    RM='$RM'
13616
    ofile='$ofile'
13617
 
13618
 
13619
 
13620
 
13621
_ACEOF
13622
 
13623
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13624
 
13625
# Handling of arguments.
13626
for ac_config_target in $ac_config_targets
13627
do
13628
  case $ac_config_target in
13629
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13630
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13631
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13632
    "math/Makefile") CONFIG_FILES="$CONFIG_FILES math/Makefile" ;;
13633
    "mathfp/Makefile") CONFIG_FILES="$CONFIG_FILES mathfp/Makefile" ;;
13634
    "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
13635
 
13636
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13637
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13638
   { (exit 1); exit 1; }; };;
13639
  esac
13640
done
13641
 
13642
 
13643
# If the user did not use the arguments to specify the items to instantiate,
13644
# then the envvar interface is used.  Set only those that are not.
13645
# We use the long form for the default assignment because of an extremely
13646
# bizarre bug on SunOS 4.1.3.
13647
if $ac_need_defaults; then
13648
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13649
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13650
fi
13651
 
13652
# Have a temporary directory for convenience.  Make it in the build tree
13653
# simply because there is no reason against having it here, and in addition,
13654
# creating and moving files from /tmp can sometimes cause problems.
13655
# Hook for its removal unless debugging.
13656
# Note that there is a small window in which the directory will not be cleaned:
13657
# after its creation but before its name has been assigned to `$tmp'.
13658
$debug ||
13659
{
13660
  tmp=
13661
  trap 'exit_status=$?
13662
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13663
' 0
13664
  trap '{ (exit 1); exit 1; }' 1 2 13 15
13665
}
13666
# Create a (secure) tmp directory for tmp files.
13667
 
13668
{
13669
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13670
  test -n "$tmp" && test -d "$tmp"
13671
}  ||
13672
{
13673
  tmp=./conf$$-$RANDOM
13674
  (umask 077 && mkdir "$tmp")
13675
} ||
13676
{
13677
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
13678
   { (exit 1); exit 1; }
13679
}
13680
 
13681
# Set up the scripts for CONFIG_FILES section.
13682
# No need to generate them if there are no CONFIG_FILES.
13683
# This happens for instance with `./config.status config.h'.
13684
if test -n "$CONFIG_FILES"; then
13685
 
13686
 
13687
ac_cr='
'
13688
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
13689
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13690
  ac_cs_awk_cr='\\r'
13691
else
13692
  ac_cs_awk_cr=$ac_cr
13693
fi
13694
13695
 
13696
_ACEOF
13697
13698
 
13699
 
13700
  echo "cat >conf$$subs.awk <<_ACEOF" &&
13701
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13702
  echo "_ACEOF"
13703
} >conf$$subs.sh ||
13704
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13705
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13706
   { (exit 1); exit 1; }; }
13707
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13708
ac_delim='%!_!# '
13709
for ac_last_try in false false false false false :; do
13710
  . ./conf$$subs.sh ||
13711
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13712
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13713
   { (exit 1); exit 1; }; }
13714
13715
 
13716
  if test $ac_delim_n = $ac_delim_num; then
13717
    break
13718
  elif $ac_last_try; then
13719
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13720
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13721
   { (exit 1); exit 1; }; }
13722
  else
13723
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13724
  fi
13725
done
13726
rm -f conf$$subs.sh
13727
13728
 
13729
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13730
_ACEOF
13731
sed -n '
13732
h
13733
s/^/S["/; s/!.*/"]=/
13734
p
13735
g
13736
s/^[^!]*!//
13737
:repl
13738
t repl
13739
s/'"$ac_delim"'$//
13740
t delim
13741
:nl
13742
h
13743
s/\(.\{148\}\).*/\1/
13744
t more1
13745
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13746
p
13747
n
13748
b repl
13749
:more1
13750
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13751
p
13752
g
13753
s/.\{148\}//
13754
t nl
13755
:delim
13756
h
13757
s/\(.\{148\}\).*/\1/
13758
t more2
13759
s/["\\]/\\&/g; s/^/"/; s/$/"/
13760
p
13761
b
13762
:more2
13763
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13764
p
13765
g
13766
s/.\{148\}//
13767
t delim
13768
' 
13769
/^[^""]/{
13770
  N
13771
  s/\n//
13772
}
13773
' >>$CONFIG_STATUS || ac_write_fail=1
13774
rm -f conf$$subs.awk
13775
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13776
_ACAWK
13777
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13778
  for (key in S) S_is_set[key] = 1
13779
  FS = ""
13780
13781
 
13782
{
13783
  line = $ 0
13784
  nfields = split(line, field, "@")
13785
  substed = 0
13786
  len = length(field[1])
13787
  for (i = 2; i < nfields; i++) {
13788
    key = field[i]
13789
    keylen = length(key)
13790
    if (S_is_set[key]) {
13791
      value = S[key]
13792
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13793
      len += length(value) + length(field[++i])
13794
      substed = 1
13795
    } else
13796
      len += 1 + keylen
13797
  }
13798
13799
 
13800
}
13801
13802
 
13803
_ACEOF
13804
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13805
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13806
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13807
else
13808
  cat
13809
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13810
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13811
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13812
   { (exit 1); exit 1; }; }
13813
_ACEOF
13814
13815
 
13816
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13817
# trailing colons and then remove the whole line if VPATH becomes empty
13818
# (actually we leave an empty line to preserve line numbers).
13819
if test "x$srcdir" = x.; then
13820
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
13821
s/:*\$(srcdir):*/:/
13822
s/:*\${srcdir}:*/:/
13823
s/:*@srcdir@:*/:/
13824
s/^\([^=]*=[     ]*\):*/\1/
13825
s/:*$//
13826
s/^[^=]*=[       ]*$//
13827
}'
13828
fi
13829
13830
 
13831
fi # test -n "$CONFIG_FILES"
13832
13833
 
13834
 
13835
shift
13836
for ac_tag
13837
do
13838
  case $ac_tag in
13839
  :[FHLC]) ac_mode=$ac_tag; continue;;
13840
  esac
13841
  case $ac_mode$ac_tag in
13842
  :[FHL]*:*);;
13843
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13844
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13845
   { (exit 1); exit 1; }; };;
13846
  :[FH]-) ac_tag=-:-;;
13847
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13848
  esac
13849
  ac_save_IFS=$IFS
13850
  IFS=:
13851
  set x $ac_tag
13852
  IFS=$ac_save_IFS
13853
  shift
13854
  ac_file=$1
13855
  shift
13856
13857
 
13858
  :L) ac_source=$1;;
13859
  :[FH])
13860
    ac_file_inputs=
13861
    for ac_f
13862
    do
13863
      case $ac_f in
13864
      -) ac_f="$tmp/stdin";;
13865
      *) # Look for the file first in the build tree, then in the source tree
13866
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
13867
         # because $ac_f cannot contain `:'.
13868
         test -f "$ac_f" ||
13869
           case $ac_f in
13870
           [\\/$]*) false;;
13871
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13872
           esac ||
13873
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13874
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13875
   { (exit 1); exit 1; }; };;
13876
      esac
13877
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13878
      ac_file_inputs="$ac_file_inputs '$ac_f'"
13879
    done
13880
13881
 
13882
    # use $as_me), people would be surprised to read:
13883
    #    /* config.h.  Generated by config.status.  */
13884
    configure_input='Generated from '`
13885
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13886
        `' by configure.'
13887
    if test x"$ac_file" != x-; then
13888
      configure_input="$ac_file.  $configure_input"
13889
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13890
$as_echo "$as_me: creating $ac_file" >&6;}
13891
    fi
13892
    # Neutralize special characters interpreted by sed in replacement strings.
13893
    case $configure_input in #(
13894
    *\&* | *\|* | *\\* )
13895
       ac_sed_conf_input=`$as_echo "$configure_input" |
13896
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13897
    *) ac_sed_conf_input=$configure_input;;
13898
    esac
13899
13900
 
13901
    *:-:* | *:-) cat >"$tmp/stdin" \
13902
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13903
$as_echo "$as_me: error: could not create $ac_file" >&2;}
13904
   { (exit 1); exit 1; }; } ;;
13905
    esac
13906
    ;;
13907
  esac
13908
13909
 
13910
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13911
         X"$ac_file" : 'X\(//\)[^/]' \| \
13912
         X"$ac_file" : 'X\(//\)$' \| \
13913
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13914
$as_echo X"$ac_file" |
13915
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13916
            s//\1/
13917
            q
13918
          }
13919
          /^X\(\/\/\)[^/].*/{
13920
            s//\1/
13921
            q
13922
          }
13923
          /^X\(\/\/\)$/{
13924
            s//\1/
13925
            q
13926
          }
13927
          /^X\(\/\).*/{
13928
            s//\1/
13929
            q
13930
          }
13931
          s/.*/./; q'`
13932
  { as_dir="$ac_dir"
13933
  case $as_dir in #(
13934
  -*) as_dir=./$as_dir;;
13935
  esac
13936
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13937
    as_dirs=
13938
    while :; do
13939
      case $as_dir in #(
13940
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13941
      *) as_qdir=$as_dir;;
13942
      esac
13943
      as_dirs="'$as_qdir' $as_dirs"
13944
      as_dir=`$as_dirname -- "$as_dir" ||
13945
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13946
         X"$as_dir" : 'X\(//\)[^/]' \| \
13947
         X"$as_dir" : 'X\(//\)$' \| \
13948
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13949
$as_echo X"$as_dir" |
13950
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13951
            s//\1/
13952
            q
13953
          }
13954
          /^X\(\/\/\)[^/].*/{
13955
            s//\1/
13956
            q
13957
          }
13958
          /^X\(\/\/\)$/{
13959
            s//\1/
13960
            q
13961
          }
13962
          /^X\(\/\).*/{
13963
            s//\1/
13964
            q
13965
          }
13966
          s/.*/./; q'`
13967
      test -d "$as_dir" && break
13968
    done
13969
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13970
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13971
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13972
   { (exit 1); exit 1; }; }; }
13973
  ac_builddir=.
13974
13975
 
13976
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13977
*)
13978
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13979
  # A ".." for each directory in $ac_dir_suffix.
13980
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13981
  case $ac_top_builddir_sub in
13982
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13983
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13984
  esac ;;
13985
esac
13986
ac_abs_top_builddir=$ac_pwd
13987
ac_abs_builddir=$ac_pwd$ac_dir_suffix
13988
# for backward compatibility:
13989
ac_top_builddir=$ac_top_build_prefix
13990
13991
 
13992
  .)  # We are building in place.
13993
    ac_srcdir=.
13994
    ac_top_srcdir=$ac_top_builddir_sub
13995
    ac_abs_top_srcdir=$ac_pwd ;;
13996
  [\\/]* | ?:[\\/]* )  # Absolute name.
13997
    ac_srcdir=$srcdir$ac_dir_suffix;
13998
    ac_top_srcdir=$srcdir
13999
    ac_abs_top_srcdir=$srcdir ;;
14000
  *) # Relative name.
14001
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14002
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14003
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14004
esac
14005
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14006
14007
 
14008
 
14009
  :F)
14010
  #
14011
  # CONFIG_FILE
14012
  #
14013
14014
 
14015
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14016
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14017
  esac
14018
  ac_MKDIR_P=$MKDIR_P
14019
  case $MKDIR_P in
14020
  [\\/$]* | ?:[\\/]* ) ;;
14021
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14022
  esac
14023
_ACEOF
14024
14025
 
14026
# If the template does not know about datarootdir, expand it.
14027
# FIXME: This hack should be removed a few years after 2.60.
14028
ac_datarootdir_hack=; ac_datarootdir_seen=
14029
14030
 
14031
/datarootdir/ {
14032
  p
14033
  q
14034
}
14035
/@datadir@/p
14036
/@docdir@/p
14037
/@infodir@/p
14038
/@localedir@/p
14039
/@mandir@/p
14040
'
14041
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14042
*datarootdir*) ac_datarootdir_seen=yes;;
14043
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14044
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14045
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14046
_ACEOF
14047
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14048
  ac_datarootdir_hack='
14049
  s&@datadir@&$datadir&g
14050
  s&@docdir@&$docdir&g
14051
  s&@infodir@&$infodir&g
14052
  s&@localedir@&$localedir&g
14053
  s&@mandir@&$mandir&g
14054
    s&\\\${datarootdir}&$datarootdir&g' ;;
14055
esac
14056
_ACEOF
14057
14058
 
14059
# Shell code in configure.ac might set extrasub.
14060
# FIXME: do we really want to maintain this feature?
14061
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14062
ac_sed_extra="$ac_vpsub
14063
$extrasub
14064
_ACEOF
14065
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14066
:t
14067
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14068
s|@configure_input@|$ac_sed_conf_input|;t t
14069
s&@top_builddir@&$ac_top_builddir_sub&;t t
14070
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14071
s&@srcdir@&$ac_srcdir&;t t
14072
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14073
s&@top_srcdir@&$ac_top_srcdir&;t t
14074
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14075
s&@builddir@&$ac_builddir&;t t
14076
s&@abs_builddir@&$ac_abs_builddir&;t t
14077
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14078
s&@INSTALL@&$ac_INSTALL&;t t
14079
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14080
$ac_datarootdir_hack
14081
"
14082
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14083
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14084
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14085
   { (exit 1); exit 1; }; }
14086
14087
 
14088
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14089
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14090
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14091
which seems to be undefined.  Please make sure it is defined." >&5
14092
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14093
which seems to be undefined.  Please make sure it is defined." >&2;}
14094
14095
 
14096
  case $ac_file in
14097
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14098
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14099
  esac \
14100
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14101
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14102
   { (exit 1); exit 1; }; }
14103
 ;;
14104
14105
 
14106
 
14107
$as_echo "$as_me: executing $ac_file commands" >&6;}
14108
 ;;
14109
  esac
14110
14111
 
14112
 
14113
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14114
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14115
  # are listed without --file.  Let's play safe and only enable the eval
14116
  # if we detect the quoting.
14117
  case $CONFIG_FILES in
14118
  *\'*) eval set x "$CONFIG_FILES" ;;
14119
  *)   set x $CONFIG_FILES ;;
14120
  esac
14121
  shift
14122
  for mf
14123
  do
14124
    # Strip MF so we end up with the name of the file.
14125
    mf=`echo "$mf" | sed -e 's/:.*$//'`
14126
    # Check whether this is an Automake generated Makefile or not.
14127
    # We used to match only the files named `Makefile.in', but
14128
    # some people rename them; so instead we look at the file content.
14129
    # Grep'ing the first line is not enough: some people post-process
14130
    # each Makefile.in and add a new line on top of each file to say so.
14131
    # Grep'ing the whole file is not good either: AIX grep has a line
14132
    # limit of 2048, but all sed's we know have understand at least 4000.
14133
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14134
      dirpart=`$as_dirname -- "$mf" ||
14135
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14136
         X"$mf" : 'X\(//\)[^/]' \| \
14137
         X"$mf" : 'X\(//\)$' \| \
14138
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14139
$as_echo X"$mf" |
14140
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14141
            s//\1/
14142
            q
14143
          }
14144
          /^X\(\/\/\)[^/].*/{
14145
            s//\1/
14146
            q
14147
          }
14148
          /^X\(\/\/\)$/{
14149
            s//\1/
14150
            q
14151
          }
14152
          /^X\(\/\).*/{
14153
            s//\1/
14154
            q
14155
          }
14156
          s/.*/./; q'`
14157
    else
14158
      continue
14159
    fi
14160
    # Extract the definition of DEPDIR, am__include, and am__quote
14161
    # from the Makefile without running `make'.
14162
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14163
    test -z "$DEPDIR" && continue
14164
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14165
    test -z "am__include" && continue
14166
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14167
    # When using ansi2knr, U may be empty or an underscore; expand it
14168
    U=`sed -n 's/^U = //p' < "$mf"`
14169
    # Find all dependency output files, they are included files with
14170
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14171
    # simplest approach to changing $(DEPDIR) to its actual value in the
14172
    # expansion.
14173
    for file in `sed -n "
14174
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14175
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14176
      # Make sure the directory exists.
14177
      test -f "$dirpart/$file" && continue
14178
      fdir=`$as_dirname -- "$file" ||
14179
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14180
         X"$file" : 'X\(//\)[^/]' \| \
14181
         X"$file" : 'X\(//\)$' \| \
14182
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14183
$as_echo X"$file" |
14184
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14185
            s//\1/
14186
            q
14187
          }
14188
          /^X\(\/\/\)[^/].*/{
14189
            s//\1/
14190
            q
14191
          }
14192
          /^X\(\/\/\)$/{
14193
            s//\1/
14194
            q
14195
          }
14196
          /^X\(\/\).*/{
14197
            s//\1/
14198
            q
14199
          }
14200
          s/.*/./; q'`
14201
      { as_dir=$dirpart/$fdir
14202
  case $as_dir in #(
14203
  -*) as_dir=./$as_dir;;
14204
  esac
14205
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14206
    as_dirs=
14207
    while :; do
14208
      case $as_dir in #(
14209
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14210
      *) as_qdir=$as_dir;;
14211
      esac
14212
      as_dirs="'$as_qdir' $as_dirs"
14213
      as_dir=`$as_dirname -- "$as_dir" ||
14214
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14215
         X"$as_dir" : 'X\(//\)[^/]' \| \
14216
         X"$as_dir" : 'X\(//\)$' \| \
14217
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14218
$as_echo X"$as_dir" |
14219
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14220
            s//\1/
14221
            q
14222
          }
14223
          /^X\(\/\/\)[^/].*/{
14224
            s//\1/
14225
            q
14226
          }
14227
          /^X\(\/\/\)$/{
14228
            s//\1/
14229
            q
14230
          }
14231
          /^X\(\/\).*/{
14232
            s//\1/
14233
            q
14234
          }
14235
          s/.*/./; q'`
14236
      test -d "$as_dir" && break
14237
    done
14238
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14239
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14240
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14241
   { (exit 1); exit 1; }; }; }
14242
      # echo "creating $dirpart/$file"
14243
      echo '# dummy' > "$dirpart/$file"
14244
    done
14245
  done
14246
}
14247
 ;;
14248
    "libtool":C)
14249
14250
 
14251
    # commands through without removal of \ escapes.
14252
    if test -n "${ZSH_VERSION+set}" ; then
14253
      setopt NO_GLOB_SUBST
14254
    fi
14255
14256
 
14257
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14258
    $RM "$cfgfile"
14259
14260
 
14261
#! $SHELL
14262
14263
 
14264
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14265
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14266
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14267
#
14268
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14269
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14270
#   Written by Gordon Matzigkeit, 1996
14271
#
14272
#   This file is part of GNU Libtool.
14273
#
14274
# GNU Libtool is free software; you can redistribute it and/or
14275
# modify it under the terms of the GNU General Public License as
14276
# published by the Free Software Foundation; either version 2 of
14277
# the License, or (at your option) any later version.
14278
#
14279
# As a special exception to the GNU General Public License,
14280
# if you distribute this file as part of a program or library that
14281
# is built using GNU Libtool, you may include this file under the
14282
# same distribution terms that you use for the rest of that program.
14283
#
14284
# GNU Libtool is distributed in the hope that it will be useful,
14285
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14286
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14287
# GNU General Public License for more details.
14288
#
14289
# You should have received a copy of the GNU General Public License
14290
# along with GNU Libtool; see the file COPYING.  If not, a copy
14291
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14292
# obtained by writing to the Free Software Foundation, Inc.,
14293
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14294
14295
 
14296
 
14297
available_tags=""
14298
14299
 
14300
14301
 
14302
SED=$lt_SED
14303
14304
 
14305
Xsed="\$SED -e 1s/^X//"
14306
14307
 
14308
AS=$AS
14309
14310
 
14311
DLLTOOL=$DLLTOOL
14312
14313
 
14314
OBJDUMP=$OBJDUMP
14315
14316
 
14317
macro_version=$macro_version
14318
macro_revision=$macro_revision
14319
14320
 
14321
build_libtool_libs=$enable_shared
14322
14323
 
14324
build_old_libs=$enable_static
14325
14326
 
14327
pic_mode=$pic_mode
14328
14329
 
14330
fast_install=$enable_fast_install
14331
14332
 
14333
host_alias=$host_alias
14334
host=$host
14335
host_os=$host_os
14336
14337
 
14338
build_alias=$build_alias
14339
build=$build
14340
build_os=$build_os
14341
14342
 
14343
GREP=$lt_GREP
14344
14345
 
14346
EGREP=$lt_EGREP
14347
14348
 
14349
FGREP=$lt_FGREP
14350
14351
 
14352
NM=$lt_NM
14353
14354
 
14355
LN_S=$lt_LN_S
14356
14357
 
14358
max_cmd_len=$max_cmd_len
14359
14360
 
14361
objext=$ac_objext
14362
14363
 
14364
exeext=$exeext
14365
14366
 
14367
lt_unset=$lt_unset
14368
14369
 
14370
SP2NL=$lt_lt_SP2NL
14371
14372
 
14373
NL2SP=$lt_lt_NL2SP
14374
14375
 
14376
reload_flag=$lt_reload_flag
14377
reload_cmds=$lt_reload_cmds
14378
14379
 
14380
deplibs_check_method=$lt_deplibs_check_method
14381
14382
 
14383
file_magic_cmd=$lt_file_magic_cmd
14384
14385
 
14386
AR=$lt_AR
14387
AR_FLAGS=$lt_AR_FLAGS
14388
14389
 
14390
STRIP=$lt_STRIP
14391
14392
 
14393
RANLIB=$lt_RANLIB
14394
old_postinstall_cmds=$lt_old_postinstall_cmds
14395
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14396
14397
 
14398
LTCC=$lt_CC
14399
14400
 
14401
LTCFLAGS=$lt_CFLAGS
14402
14403
 
14404
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14405
14406
 
14407
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14408
14409
 
14410
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14411
14412
 
14413
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14414
14415
 
14416
objdir=$objdir
14417
14418
 
14419
SHELL=$lt_SHELL
14420
14421
 
14422
ECHO=$lt_ECHO
14423
14424
 
14425
MAGIC_CMD=$MAGIC_CMD
14426
14427
 
14428
need_locks=$lt_need_locks
14429
14430
 
14431
DSYMUTIL=$lt_DSYMUTIL
14432
14433
 
14434
NMEDIT=$lt_NMEDIT
14435
14436
 
14437
LIPO=$lt_LIPO
14438
14439
 
14440
OTOOL=$lt_OTOOL
14441
14442
 
14443
OTOOL64=$lt_OTOOL64
14444
14445
 
14446
libext=$libext
14447
14448
 
14449
shrext_cmds=$lt_shrext_cmds
14450
14451
 
14452
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14453
14454
 
14455
# restored at link time.
14456
variables_saved_for_relink=$lt_variables_saved_for_relink
14457
14458
 
14459
need_lib_prefix=$need_lib_prefix
14460
14461
 
14462
need_version=$need_version
14463
14464
 
14465
version_type=$version_type
14466
14467
 
14468
runpath_var=$runpath_var
14469
14470
 
14471
shlibpath_var=$shlibpath_var
14472
14473
 
14474
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14475
14476
 
14477
libname_spec=$lt_libname_spec
14478
14479
 
14480
# The last name is the one that the linker finds with -lNAME
14481
library_names_spec=$lt_library_names_spec
14482
14483
 
14484
soname_spec=$lt_soname_spec
14485
14486
 
14487
postinstall_cmds=$lt_postinstall_cmds
14488
14489
 
14490
postuninstall_cmds=$lt_postuninstall_cmds
14491
14492
 
14493
finish_cmds=$lt_finish_cmds
14494
14495
 
14496
# not shown.
14497
finish_eval=$lt_finish_eval
14498
14499
 
14500
hardcode_into_libs=$hardcode_into_libs
14501
14502
 
14503
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14504
14505
 
14506
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14507
14508
 
14509
dlopen_support=$enable_dlopen
14510
14511
 
14512
dlopen_self=$enable_dlopen_self
14513
14514
 
14515
dlopen_self_static=$enable_dlopen_self_static
14516
14517
 
14518
old_striplib=$lt_old_striplib
14519
striplib=$lt_striplib
14520
14521
 
14522
 
14523
LD=$lt_LD
14524
14525
 
14526
old_archive_cmds=$lt_old_archive_cmds
14527
14528
 
14529
CC=$lt_compiler
14530
14531
 
14532
with_gcc=$GCC
14533
14534
 
14535
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14536
14537
 
14538
wl=$lt_lt_prog_compiler_wl
14539
14540
 
14541
pic_flag=$lt_lt_prog_compiler_pic
14542
14543
 
14544
link_static_flag=$lt_lt_prog_compiler_static
14545
14546
 
14547
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14548
14549
 
14550
build_libtool_need_lc=$archive_cmds_need_lc
14551
14552
 
14553
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14554
14555
 
14556
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14557
14558
 
14559
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14560
14561
 
14562
compiler_needs_object=$lt_compiler_needs_object
14563
14564
 
14565
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14566
14567
 
14568
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14569
14570
 
14571
archive_cmds=$lt_archive_cmds
14572
archive_expsym_cmds=$lt_archive_expsym_cmds
14573
14574
 
14575
# a shared archive.
14576
module_cmds=$lt_module_cmds
14577
module_expsym_cmds=$lt_module_expsym_cmds
14578
14579
 
14580
with_gnu_ld=$lt_with_gnu_ld
14581
14582
 
14583
allow_undefined_flag=$lt_allow_undefined_flag
14584
14585
 
14586
no_undefined_flag=$lt_no_undefined_flag
14587
14588
 
14589
# This must work even if \$libdir does not exist
14590
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14591
14592
 
14593
# during linking.  This must work even if \$libdir does not exist.
14594
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14595
14596
 
14597
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14598
14599
 
14600
# DIR into the resulting binary.
14601
hardcode_direct=$hardcode_direct
14602
14603
 
14604
# DIR into the resulting binary and the resulting library dependency is
14605
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14606
# library is relocated.
14607
hardcode_direct_absolute=$hardcode_direct_absolute
14608
14609
 
14610
# into the resulting binary.
14611
hardcode_minus_L=$hardcode_minus_L
14612
14613
 
14614
# into the resulting binary.
14615
hardcode_shlibpath_var=$hardcode_shlibpath_var
14616
14617
 
14618
# into the library and all subsequent libraries and executables linked
14619
# against it.
14620
hardcode_automatic=$hardcode_automatic
14621
14622
 
14623
# to runtime path list.
14624
inherit_rpath=$inherit_rpath
14625
14626
 
14627
link_all_deplibs=$link_all_deplibs
14628
14629
 
14630
fix_srcfile_path=$lt_fix_srcfile_path
14631
14632
 
14633
always_export_symbols=$always_export_symbols
14634
14635
 
14636
export_symbols_cmds=$lt_export_symbols_cmds
14637
14638
 
14639
exclude_expsyms=$lt_exclude_expsyms
14640
14641
 
14642
include_expsyms=$lt_include_expsyms
14643
14644
 
14645
prelink_cmds=$lt_prelink_cmds
14646
14647
 
14648
file_list_spec=$lt_file_list_spec
14649
14650
 
14651
hardcode_action=$hardcode_action
14652
14653
 
14654
14655
 
14656
14657
 
14658
  aix3*)
14659
    cat <<\_LT_EOF >> "$cfgfile"
14660
# AIX sometimes has problems with the GCC collect2 program.  For some
14661
# reason, if we set the COLLECT_NAMES environment variable, the problems
14662
# vanish in a puff of smoke.
14663
if test "X${COLLECT_NAMES+set}" != Xset; then
14664
  COLLECT_NAMES=
14665
  export COLLECT_NAMES
14666
fi
14667
_LT_EOF
14668
    ;;
14669
  esac
14670
14671
 
14672
 
14673
14674
 
14675
 
14676
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14677
  # text mode, it properly converts lines to CR/LF.  This bash problem
14678
  # is reportedly fixed, but why not run on old versions too?
14679
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14680
    || (rm -f "$cfgfile"; exit 1)
14681
14682
 
14683
  yes)
14684
    cat << \_LT_EOF >> "$cfgfile"
14685
14686
 
14687
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14688
# otherwise set result to NONDIR_REPLACEMENT.
14689
func_dirname ()
14690
{
14691
  case ${1} in
14692
    */*) func_dirname_result="${1%/*}${2}" ;;
14693
    *  ) func_dirname_result="${3}" ;;
14694
  esac
14695
}
14696
14697
 
14698
func_basename ()
14699
{
14700
  func_basename_result="${1##*/}"
14701
}
14702
14703
 
14704
# perform func_basename and func_dirname in a single function
14705
# call:
14706
#   dirname:  Compute the dirname of FILE.  If nonempty,
14707
#             add APPEND to the result, otherwise set result
14708
#             to NONDIR_REPLACEMENT.
14709
#             value returned in "$func_dirname_result"
14710
#   basename: Compute filename of FILE.
14711
#             value retuned in "$func_basename_result"
14712
# Implementation must be kept synchronized with func_dirname
14713
# and func_basename. For efficiency, we do not delegate to
14714
# those functions but instead duplicate the functionality here.
14715
func_dirname_and_basename ()
14716
{
14717
  case ${1} in
14718
    */*) func_dirname_result="${1%/*}${2}" ;;
14719
    *  ) func_dirname_result="${3}" ;;
14720
  esac
14721
  func_basename_result="${1##*/}"
14722
}
14723
14724
 
14725
# strip PREFIX and SUFFIX off of NAME.
14726
# PREFIX and SUFFIX must not contain globbing or regex special
14727
# characters, hashes, percent signs, but SUFFIX may contain a leading
14728
# dot (in which case that matches only a dot).
14729
func_stripname ()
14730
{
14731
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14732
  # positional parameters, so assign one to ordinary parameter first.
14733
  func_stripname_result=${3}
14734
  func_stripname_result=${func_stripname_result#"${1}"}
14735
  func_stripname_result=${func_stripname_result%"${2}"}
14736
}
14737
14738
 
14739
func_opt_split ()
14740
{
14741
  func_opt_split_opt=${1%%=*}
14742
  func_opt_split_arg=${1#*=}
14743
}
14744
14745
 
14746
func_lo2o ()
14747
{
14748
  case ${1} in
14749
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14750
    *)    func_lo2o_result=${1} ;;
14751
  esac
14752
}
14753
14754
 
14755
func_xform ()
14756
{
14757
  func_xform_result=${1%.*}.lo
14758
}
14759
14760
 
14761
func_arith ()
14762
{
14763
  func_arith_result=$(( $* ))
14764
}
14765
14766
 
14767
# STRING may not start with a hyphen.
14768
func_len ()
14769
{
14770
  func_len_result=${#1}
14771
}
14772
14773
 
14774
    ;;
14775
  *) # Bourne compatible functions.
14776
    cat << \_LT_EOF >> "$cfgfile"
14777
14778
 
14779
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14780
# otherwise set result to NONDIR_REPLACEMENT.
14781
func_dirname ()
14782
{
14783
  # Extract subdirectory from the argument.
14784
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14785
  if test "X$func_dirname_result" = "X${1}"; then
14786
    func_dirname_result="${3}"
14787
  else
14788
    func_dirname_result="$func_dirname_result${2}"
14789
  fi
14790
}
14791
14792
 
14793
func_basename ()
14794
{
14795
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14796
}
14797
14798
 
14799
 
14800
# strip PREFIX and SUFFIX off of NAME.
14801
# PREFIX and SUFFIX must not contain globbing or regex special
14802
# characters, hashes, percent signs, but SUFFIX may contain a leading
14803
# dot (in which case that matches only a dot).
14804
# func_strip_suffix prefix name
14805
func_stripname ()
14806
{
14807
  case ${2} in
14808
    .*) func_stripname_result=`$ECHO "X${3}" \
14809
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14810
    *)  func_stripname_result=`$ECHO "X${3}" \
14811
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14812
  esac
14813
}
14814
14815
 
14816
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14817
my_sed_long_arg='1s/^-[^=]*=//'
14818
14819
 
14820
func_opt_split ()
14821
{
14822
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14823
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14824
}
14825
14826
 
14827
func_lo2o ()
14828
{
14829
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14830
}
14831
14832
 
14833
func_xform ()
14834
{
14835
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14836
}
14837
14838
 
14839
func_arith ()
14840
{
14841
  func_arith_result=`expr "$@"`
14842
}
14843
14844
 
14845
# STRING may not start with a hyphen.
14846
func_len ()
14847
{
14848
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14849
}
14850
14851
 
14852
esac
14853
14854
 
14855
  yes)
14856
    cat << \_LT_EOF >> "$cfgfile"
14857
14858
 
14859
# Append VALUE to the end of shell variable VAR.
14860
func_append ()
14861
{
14862
  eval "$1+=\$2"
14863
}
14864
_LT_EOF
14865
    ;;
14866
  *)
14867
    cat << \_LT_EOF >> "$cfgfile"
14868
14869
 
14870
# Append VALUE to the end of shell variable VAR.
14871
func_append ()
14872
{
14873
  eval "$1=\$$1\$2"
14874
}
14875
14876
 
14877
    ;;
14878
  esac
14879
14880
 
14881
 
14882
    || (rm -f "$cfgfile"; exit 1)
14883
14884
 
14885
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14886
  chmod +x "$ofile"
14887
14888
 
14889
14890
 
14891
done # for ac_tag
14892
14893
 
14894
 
14895
_ACEOF
14896
chmod +x $CONFIG_STATUS
14897
ac_clean_files=$ac_clean_files_save
14898
14899
 
14900
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14901
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14902
   { (exit 1); exit 1; }; }
14903
14904
 
14905
 
14906
# config.status does its own redirection, appending to config.log.
14907
# Unfortunately, on DOS this fails, as config.log is still kept open
14908
# by configure, so config.status won't be able to write to it; its
14909
# output is simply discarded.  So we exec the FD to /dev/null,
14910
# effectively closing config.log, so it can be properly (re)opened and
14911
# appended to by config.status.  When coming back to configure, we
14912
# need to make the FD available again.
14913
if test "$no_create" != yes; then
14914
  ac_cs_success=:
14915
  ac_config_status_args=
14916
  test "$silent" = yes &&
14917
    ac_config_status_args="$ac_config_status_args --quiet"
14918
  exec 5>/dev/null
14919
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14920
  exec 5>>config.log
14921
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14922
  # would make configure fail if this is the last instruction.
14923
  $ac_cs_success || { (exit 1); exit 1; }
14924
fi
14925
14926
 
14927
# CONFIG_SUBDIRS section.
14928
#
14929
if test "$no_recursion" != yes; then
14930
14931
 
14932
  # so they do not pile up.
14933
  ac_sub_configure_args=
14934
  ac_prev=
14935
  eval "set x $ac_configure_args"
14936
  shift
14937
  for ac_arg
14938
  do
14939
    if test -n "$ac_prev"; then
14940
      ac_prev=
14941
      continue
14942
    fi
14943
    case $ac_arg in
14944
    -cache-file | --cache-file | --cache-fil | --cache-fi \
14945
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14946
      ac_prev=cache_file ;;
14947
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14948
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14949
    | --c=*)
14950
      ;;
14951
    --config-cache | -C)
14952
      ;;
14953
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14954
      ac_prev=srcdir ;;
14955
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14956
      ;;
14957
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14958
      ac_prev=prefix ;;
14959
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14960
      ;;
14961
    --disable-option-checking)
14962
      ;;
14963
    *)
14964
      case $ac_arg in
14965
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14966
      esac
14967
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
14968
    esac
14969
  done
14970
14971
 
14972
  # in subdir configurations.
14973
  ac_arg="--prefix=$prefix"
14974
  case $ac_arg in
14975
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14976
  esac
14977
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14978
14979
 
14980
  if test "$silent" = yes; then
14981
    ac_sub_configure_args="--silent $ac_sub_configure_args"
14982
  fi
14983
14984
 
14985
  # different subdirs can have different --enable and --with options.
14986
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14987
14988
 
14989
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14990
14991
 
14992
    # parts of a large source tree are present.
14993
    test -d "$srcdir/$ac_dir" || continue
14994
14995
 
14996
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
14997
    $as_echo "$ac_msg" >&6
14998
    { as_dir="$ac_dir"
14999
  case $as_dir in #(
15000
  -*) as_dir=./$as_dir;;
15001
  esac
15002
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15003
    as_dirs=
15004
    while :; do
15005
      case $as_dir in #(
15006
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15007
      *) as_qdir=$as_dir;;
15008
      esac
15009
      as_dirs="'$as_qdir' $as_dirs"
15010
      as_dir=`$as_dirname -- "$as_dir" ||
15011
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15012
         X"$as_dir" : 'X\(//\)[^/]' \| \
15013
         X"$as_dir" : 'X\(//\)$' \| \
15014
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15015
$as_echo X"$as_dir" |
15016
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15017
            s//\1/
15018
            q
15019
          }
15020
          /^X\(\/\/\)[^/].*/{
15021
            s//\1/
15022
            q
15023
          }
15024
          /^X\(\/\/\)$/{
15025
            s//\1/
15026
            q
15027
          }
15028
          /^X\(\/\).*/{
15029
            s//\1/
15030
            q
15031
          }
15032
          s/.*/./; q'`
15033
      test -d "$as_dir" && break
15034
    done
15035
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15036
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15037
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15038
   { (exit 1); exit 1; }; }; }
15039
    ac_builddir=.
15040
15041
 
15042
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15043
*)
15044
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15045
  # A ".." for each directory in $ac_dir_suffix.
15046
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15047
  case $ac_top_builddir_sub in
15048
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15049
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15050
  esac ;;
15051
esac
15052
ac_abs_top_builddir=$ac_pwd
15053
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15054
# for backward compatibility:
15055
ac_top_builddir=$ac_top_build_prefix
15056
15057
 
15058
  .)  # We are building in place.
15059
    ac_srcdir=.
15060
    ac_top_srcdir=$ac_top_builddir_sub
15061
    ac_abs_top_srcdir=$ac_pwd ;;
15062
  [\\/]* | ?:[\\/]* )  # Absolute name.
15063
    ac_srcdir=$srcdir$ac_dir_suffix;
15064
    ac_top_srcdir=$srcdir
15065
    ac_abs_top_srcdir=$srcdir ;;
15066
  *) # Relative name.
15067
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15068
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15069
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15070
esac
15071
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15072
15073
 
15074
 
15075
15076
 
15077
    if test -f "$ac_srcdir/configure.gnu"; then
15078
      ac_sub_configure=$ac_srcdir/configure.gnu
15079
    elif test -f "$ac_srcdir/configure"; then
15080
      ac_sub_configure=$ac_srcdir/configure
15081
    elif test -f "$ac_srcdir/configure.in"; then
15082
      # This should be Cygnus configure.
15083
      ac_sub_configure=$ac_aux_dir/configure
15084
    else
15085
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15086
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15087
      ac_sub_configure=
15088
    fi
15089
15090
 
15091
    if test -n "$ac_sub_configure"; then
15092
      # Make the cache file name correct relative to the subdirectory.
15093
      case $cache_file in
15094
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15095
      *) # Relative name.
15096
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15097
      esac
15098
15099
 
15100
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15101
      # The eval makes quoting arguments work.
15102
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15103
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15104
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15105
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15106
   { (exit 1); exit 1; }; }
15107
    fi
15108
15109
 
15110
  done
15111
fi
15112
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15113
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15114
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15115
fi
15116
15117
 

powered by: WebSVN 2.1.0

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