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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 207 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63 for newlib 1.18.0.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization.  ##
11
## --------------------- ##
12
 
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
  emulate sh
17
  NULLCMD=:
18
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19
  # is contrary to our usage.  Disable this feature.
20
  alias -g '${1+"$@"}'='"$@"'
21
  setopt NO_GLOB_SUBST
22
else
23
  case `(set -o) 2>/dev/null` in
24
  *posix*) set -o posix ;;
25
esac
26
 
27
fi
28
 
29
 
30
 
31
 
32
# PATH needs CR
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
39
 
40
as_nl='
41
'
42
export as_nl
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in
59
      *"$as_nl"*)
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81
# Support unset when possible.
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83
  as_unset=unset
84
else
85
  as_unset=false
86
fi
87
 
88
 
89
# IFS
90
# We need space, tab and new line, in precisely that order.  Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
94
IFS=" ""        $as_nl"
95
 
96
# Find who we are.  Look in the path if we contain no directory separator.
97
case $0 in
98
  *[\\/]* ) as_myself=$0 ;;
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
for as_dir in $PATH
101
do
102
  IFS=$as_save_IFS
103
  test -z "$as_dir" && as_dir=.
104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
done
106
IFS=$as_save_IFS
107
 
108
     ;;
109
esac
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
113
  as_myself=$0
114
fi
115
if test ! -f "$as_myself"; then
116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
  { (exit 1); exit 1; }
118
fi
119
 
120
# Work around bugs in pre-3.0 UWIN ksh.
121
for as_var in ENV MAIL MAILPATH
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
 
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133
 
134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137
  as_expr=expr
138
else
139
  as_expr=false
140
fi
141
 
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143
  as_basename=basename
144
else
145
  as_basename=false
146
fi
147
 
148
 
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
         X"$0" : 'X\(//\)$' \| \
153
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154
$as_echo X/"$0" |
155
    sed '/^.*\/\([^/][^/]*\)\/*$/{
156
            s//\1/
157
            q
158
          }
159
          /^X\/\(\/\/\)$/{
160
            s//\1/
161
            q
162
          }
163
          /^X\/\(\/\).*/{
164
            s//\1/
165
            q
166
          }
167
          s/.*/./; q'`
168
 
169
# CDPATH.
170
$as_unset CDPATH
171
 
172
 
173
if test "x$CONFIG_SHELL" = x; then
174
  if (eval ":") 2>/dev/null; then
175
  as_have_required=yes
176
else
177
  as_have_required=no
178
fi
179
 
180
  if test $as_have_required = yes &&     (eval ":
181
(as_func_return () {
182
  (exit \$1)
183
}
184
as_func_success () {
185
  as_func_return 0
186
}
187
as_func_failure () {
188
  as_func_return 1
189
}
190
as_func_ret_success () {
191
  return 0
192
}
193
as_func_ret_failure () {
194
  return 1
195
}
196
 
197
exitcode=0
198
if as_func_success; then
199
  :
200
else
201
  exitcode=1
202
  echo as_func_success failed.
203
fi
204
 
205
if as_func_failure; then
206
  exitcode=1
207
  echo as_func_failure succeeded.
208
fi
209
 
210
if as_func_ret_success; then
211
  :
212
else
213
  exitcode=1
214
  echo as_func_ret_success failed.
215
fi
216
 
217
if as_func_ret_failure; then
218
  exitcode=1
219
  echo as_func_ret_failure succeeded.
220
fi
221
 
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223
  :
224
else
225
  exitcode=1
226
  echo positional parameters were not saved.
227
fi
228
 
229
test \$exitcode = 0) || { (exit 1); exit 1; }
230
 
231
(
232
  as_lineno_1=\$LINENO
233
  as_lineno_2=\$LINENO
234
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
237
  :
238
else
239
  as_candidate_shells=
240
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242
do
243
  IFS=$as_save_IFS
244
  test -z "$as_dir" && as_dir=.
245
  case $as_dir in
246
         /*)
247
           for as_base in sh bash ksh sh5; do
248
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249
           done;;
250
       esac
251
done
252
IFS=$as_save_IFS
253
 
254
 
255
      for as_shell in $as_candidate_shells $SHELL; do
256
         # Try only shells that exist, to save several forks.
257
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
                { ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
  emulate sh
261
  NULLCMD=:
262
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
  # is contrary to our usage.  Disable this feature.
264
  alias -g '${1+"$@"}'='"$@"'
265
  setopt NO_GLOB_SUBST
266
else
267
  case `(set -o) 2>/dev/null` in
268
  *posix*) set -o posix ;;
269
esac
270
 
271
fi
272
 
273
 
274
:
275
_ASEOF
276
}; then
277
  CONFIG_SHELL=$as_shell
278
               as_have_required=yes
279
               if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281
  emulate sh
282
  NULLCMD=:
283
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
  # is contrary to our usage.  Disable this feature.
285
  alias -g '${1+"$@"}'='"$@"'
286
  setopt NO_GLOB_SUBST
287
else
288
  case `(set -o) 2>/dev/null` in
289
  *posix*) set -o posix ;;
290
esac
291
 
292
fi
293
 
294
 
295
:
296
(as_func_return () {
297
  (exit $1)
298
}
299
as_func_success () {
300
  as_func_return 0
301
}
302
as_func_failure () {
303
  as_func_return 1
304
}
305
as_func_ret_success () {
306
  return 0
307
}
308
as_func_ret_failure () {
309
  return 1
310
}
311
 
312
exitcode=0
313
if as_func_success; then
314
  :
315
else
316
  exitcode=1
317
  echo as_func_success failed.
318
fi
319
 
320
if as_func_failure; then
321
  exitcode=1
322
  echo as_func_failure succeeded.
323
fi
324
 
325
if as_func_ret_success; then
326
  :
327
else
328
  exitcode=1
329
  echo as_func_ret_success failed.
330
fi
331
 
332
if as_func_ret_failure; then
333
  exitcode=1
334
  echo as_func_ret_failure succeeded.
335
fi
336
 
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
338
  :
339
else
340
  exitcode=1
341
  echo positional parameters were not saved.
342
fi
343
 
344
test $exitcode = 0) || { (exit 1); exit 1; }
345
 
346
(
347
  as_lineno_1=$LINENO
348
  as_lineno_2=$LINENO
349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
350
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
 
352
_ASEOF
353
}; then
354
  break
355
fi
356
 
357
fi
358
 
359
      done
360
 
361
      if test "x$CONFIG_SHELL" != x; then
362
  for as_var in BASH_ENV ENV
363
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364
        done
365
        export CONFIG_SHELL
366
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367
fi
368
 
369
 
370
    if test $as_have_required = no; then
371
  echo This script requires a shell more modern than all the
372
      echo shells that I found on your system.  Please install a
373
      echo modern shell, or manually run the script under such a
374
      echo shell if you do have one.
375
      { (exit 1); exit 1; }
376
fi
377
 
378
 
379
fi
380
 
381
fi
382
 
383
 
384
 
385
(eval "as_func_return () {
386
  (exit \$1)
387
}
388
as_func_success () {
389
  as_func_return 0
390
}
391
as_func_failure () {
392
  as_func_return 1
393
}
394
as_func_ret_success () {
395
  return 0
396
}
397
as_func_ret_failure () {
398
  return 1
399
}
400
 
401
exitcode=0
402
if as_func_success; then
403
  :
404
else
405
  exitcode=1
406
  echo as_func_success failed.
407
fi
408
 
409
if as_func_failure; then
410
  exitcode=1
411
  echo as_func_failure succeeded.
412
fi
413
 
414
if as_func_ret_success; then
415
  :
416
else
417
  exitcode=1
418
  echo as_func_ret_success failed.
419
fi
420
 
421
if as_func_ret_failure; then
422
  exitcode=1
423
  echo as_func_ret_failure succeeded.
424
fi
425
 
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427
  :
428
else
429
  exitcode=1
430
  echo positional parameters were not saved.
431
fi
432
 
433
test \$exitcode = 0") || {
434
  echo No shell found that supports shell functions.
435
  echo Please tell bug-autoconf@gnu.org about your system,
436
  echo including any error possibly output before this message.
437
  echo This can help us improve future autoconf versions.
438
  echo Configuration will now proceed without shell functions.
439
}
440
 
441
 
442
 
443
  as_lineno_1=$LINENO
444
  as_lineno_2=$LINENO
445
  test "x$as_lineno_1" != "x$as_lineno_2" &&
446
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
 
448
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
  # uniformly replaced by the line number.  The first 'sed' inserts a
450
  # line-number line after each line using $LINENO; the second 'sed'
451
  # does the real work.  The second script uses 'N' to pair each
452
  # line-number line with the line containing $LINENO, and appends
453
  # trailing '-' during substitution so that $LINENO is not a special
454
  # case at line end.
455
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457
  # E. McMahon (1931-1989) for sed's syntax.  :-)
458
  sed -n '
459
    p
460
    /[$]LINENO/=
461
  ' <$as_myself |
462
    sed '
463
      s/[$]LINENO.*/&-/
464
      t lineno
465
      b
466
      :lineno
467
      N
468
      :loop
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470
      t loop
471
      s/-\n.*//
472
    ' >$as_me.lineno &&
473
  chmod +x "$as_me.lineno" ||
474
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475
   { (exit 1); exit 1; }; }
476
 
477
  # Don't try to exec as it changes $[0], causing all sort of problems
478
  # (the dirname of $[0] is not the place where we might find the
479
  # original and so on.  Autoconf is especially sensitive to this).
480
  . "./$as_me.lineno"
481
  # Exit status is that of the last command.
482
  exit
483
}
484
 
485
 
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487
  as_dirname=dirname
488
else
489
  as_dirname=false
490
fi
491
 
492
ECHO_C= ECHO_N= ECHO_T=
493
case `echo -n x` in
494
-n*)
495
  case `echo 'x\c'` in
496
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497
  *)   ECHO_C='\c';;
498
  esac;;
499
*)
500
  ECHO_N='-n';;
501
esac
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504
  as_expr=expr
505
else
506
  as_expr=false
507
fi
508
 
509
rm -f conf$$ conf$$.exe conf$$.file
510
if test -d conf$$.dir; then
511
  rm -f conf$$.dir/conf$$.file
512
else
513
  rm -f conf$$.dir
514
  mkdir conf$$.dir 2>/dev/null
515
fi
516
if (echo >conf$$.file) 2>/dev/null; then
517
  if ln -s conf$$.file conf$$ 2>/dev/null; then
518
    as_ln_s='ln -s'
519
    # ... but there are two gotchas:
520
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522
    # In both cases, we have to default to `cp -p'.
523
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524
      as_ln_s='cp -p'
525
  elif ln conf$$.file conf$$ 2>/dev/null; then
526
    as_ln_s=ln
527
  else
528
    as_ln_s='cp -p'
529
  fi
530
else
531
  as_ln_s='cp -p'
532
fi
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534
rmdir conf$$.dir 2>/dev/null
535
 
536
if mkdir -p . 2>/dev/null; then
537
  as_mkdir_p=:
538
else
539
  test -d ./-p && rmdir ./-p
540
  as_mkdir_p=false
541
fi
542
 
543
if test -x / >/dev/null 2>&1; then
544
  as_test_x='test -x'
545
else
546
  if ls -dL / >/dev/null 2>&1; then
547
    as_ls_L_option=L
548
  else
549
    as_ls_L_option=
550
  fi
551
  as_test_x='
552
    eval sh -c '\''
553
      if test -d "$1"; then
554
        test -d "$1/.";
555
      else
556
        case $1 in
557
        -*)set "./$1";;
558
        esac;
559
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560
        ???[sx]*):;;*)false;;esac;fi
561
    '\'' sh
562
  '
563
fi
564
as_executable_p=$as_test_x
565
 
566
# Sed expression to map a string onto a valid CPP name.
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
 
569
# Sed expression to map a string onto a valid variable name.
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
 
572
 
573
 
574
 
575
# Check that we are running under the correct shell.
576
SHELL=${CONFIG_SHELL-/bin/sh}
577
 
578
case X$lt_ECHO in
579
X*--fallback-echo)
580
  # Remove one level of quotation (which was required for Make).
581
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582
  ;;
583
esac
584
 
585
ECHO=${lt_ECHO-echo}
586
if test "X$1" = X--no-reexec; then
587
  # Discard the --no-reexec flag, and continue.
588
  shift
589
elif test "X$1" = X--fallback-echo; then
590
  # Avoid inline document here, it may be left over
591
  :
592
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593
  # Yippee, $ECHO works!
594
  :
595
else
596
  # Restart under the correct shell.
597
  exec $SHELL "$0" --no-reexec ${1+"$@"}
598
fi
599
 
600
if test "X$1" = X--fallback-echo; then
601
  # used as fallback echo
602
  shift
603
  cat <<_LT_EOF
604
$*
605
_LT_EOF
606
  exit 0
607
fi
608
 
609
# The HP-UX ksh and POSIX shell print the target directory to stdout
610
# if CDPATH is set.
611
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
 
613
if test -z "$lt_ECHO"; then
614
  if test "X${echo_test_string+set}" != Xset; then
615
    # find a string as large as possible, as long as the shell can cope with it
616
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620
      then
621
        break
622
      fi
623
    done
624
  fi
625
 
626
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
     test "X$echo_testing_string" = "X$echo_test_string"; then
629
    :
630
  else
631
    # The Solaris, AIX, and Digital Unix default echo programs unquote
632
    # backslashes.  This makes it impossible to quote backslashes using
633
    #   echo "$something" | sed 's/\\/\\\\/g'
634
    #
635
    # So, first we look for a working echo in the user's PATH.
636
 
637
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638
    for dir in $PATH /usr/ucb; do
639
      IFS="$lt_save_ifs"
640
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643
         test "X$echo_testing_string" = "X$echo_test_string"; then
644
        ECHO="$dir/echo"
645
        break
646
      fi
647
    done
648
    IFS="$lt_save_ifs"
649
 
650
    if test "X$ECHO" = Xecho; then
651
      # We didn't find a better echo, so look for alternatives.
652
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654
         test "X$echo_testing_string" = "X$echo_test_string"; then
655
        # This shell has a builtin print -r that does the trick.
656
        ECHO='print -r'
657
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658
           test "X$CONFIG_SHELL" != X/bin/ksh; then
659
        # If we have ksh, try running configure again with it.
660
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661
        export ORIGINAL_CONFIG_SHELL
662
        CONFIG_SHELL=/bin/ksh
663
        export CONFIG_SHELL
664
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665
      else
666
        # Try using printf.
667
        ECHO='printf %s\n'
668
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670
           test "X$echo_testing_string" = "X$echo_test_string"; then
671
          # Cool, printf works
672
          :
673
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674
             test "X$echo_testing_string" = 'X\t' &&
675
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676
             test "X$echo_testing_string" = "X$echo_test_string"; then
677
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678
          export CONFIG_SHELL
679
          SHELL="$CONFIG_SHELL"
680
          export SHELL
681
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
682
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683
             test "X$echo_testing_string" = 'X\t' &&
684
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685
             test "X$echo_testing_string" = "X$echo_test_string"; then
686
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
687
        else
688
          # maybe with a smaller string...
689
          prev=:
690
 
691
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693
            then
694
              break
695
            fi
696
            prev="$cmd"
697
          done
698
 
699
          if test "$prev" != 'sed 50q "$0"'; then
700
            echo_test_string=`eval $prev`
701
            export echo_test_string
702
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703
          else
704
            # Oops.  We lost completely, so just stick with echo.
705
            ECHO=echo
706
          fi
707
        fi
708
      fi
709
    fi
710
  fi
711
fi
712
 
713
# Copy echo and quote the copy suitably for passing to libtool from
714
# the Makefile, instead of quoting the original, which is used later.
715
lt_ECHO=$ECHO
716
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718
fi
719
 
720
 
721
 
722
 
723
exec 7<&0 &1
724
 
725
# Name of the host.
726
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727
# so uname gets run too.
728
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
 
730
#
731
# Initializations.
732
#
733
ac_default_prefix=/usr/local
734
ac_clean_files=
735
ac_config_libobj_dir=.
736
LIBOBJS=
737
cross_compiling=no
738
subdirs=
739
MFLAGS=
740
MAKEFLAGS=
741
SHELL=${CONFIG_SHELL-/bin/sh}
742
 
743
# Identity of this package.
744
PACKAGE_NAME='newlib'
745
PACKAGE_TARNAME='newlib'
746
PACKAGE_VERSION='1.18.0'
747
PACKAGE_STRING='newlib 1.18.0'
748
PACKAGE_BUGREPORT=''
749
 
750
ac_unique_file="a29khif"
751
# Factoring default headers for most tests.
752
ac_includes_default="\
753
#include 
754
#ifdef HAVE_SYS_TYPES_H
755
# include 
756
#endif
757
#ifdef HAVE_SYS_STAT_H
758
# include 
759
#endif
760
#ifdef STDC_HEADERS
761
# include 
762
# include 
763
#else
764
# ifdef HAVE_STDLIB_H
765
#  include 
766
# endif
767
#endif
768
#ifdef HAVE_STRING_H
769
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770
#  include 
771
# endif
772
# include 
773
#endif
774
#ifdef HAVE_STRINGS_H
775
# include 
776
#endif
777
#ifdef HAVE_INTTYPES_H
778
# include 
779
#endif
780
#ifdef HAVE_STDINT_H
781
# include 
782
#endif
783
#ifdef HAVE_UNISTD_H
784
# include 
785
#endif"
786
 
787
enable_option_checking=no
788
ac_subst_vars='am__EXEEXT_FALSE
789
am__EXEEXT_TRUE
790
LTLIBOBJS
791
LIBOBJS
792
HAVE_SYS_DIR_FALSE
793
HAVE_SYS_DIR_TRUE
794
CRT0
795
subdirs
796
CPP
797
OTOOL64
798
OTOOL
799
LIPO
800
NMEDIT
801
DSYMUTIL
802
lt_ECHO
803
LN_S
804
NM
805
ac_ct_DUMPBIN
806
DUMPBIN
807
LD
808
FGREP
809
EGREP
810
GREP
811
EXEEXT
812
ac_ct_CC
813
CPPFLAGS
814
CFLAGS
815
LIBTOOL
816
OBJDUMP
817
DLLTOOL
818
SED
819
sys_dir
820
machine_dir
821
libm_machine_dir
822
lpfx
823
aext
824
oext
825
OBJEXT
826
USE_LIBTOOL_FALSE
827
USE_LIBTOOL_TRUE
828
ELIX_LEVEL_4_FALSE
829
ELIX_LEVEL_4_TRUE
830
ELIX_LEVEL_3_FALSE
831
ELIX_LEVEL_3_TRUE
832
ELIX_LEVEL_2_FALSE
833
ELIX_LEVEL_2_TRUE
834
ELIX_LEVEL_1_FALSE
835
ELIX_LEVEL_1_TRUE
836
ELIX_LEVEL_0_FALSE
837
ELIX_LEVEL_0_TRUE
838
LDFLAGS
839
NEWLIB_CFLAGS
840
CCASFLAGS
841
CCAS
842
MAINT
843
MAINTAINER_MODE_FALSE
844
MAINTAINER_MODE_TRUE
845
READELF
846
RANLIB
847
AR
848
AS
849
am__fastdepCC_FALSE
850
am__fastdepCC_TRUE
851
CCDEPMODE
852
AMDEPBACKSLASH
853
AMDEP_FALSE
854
AMDEP_TRUE
855
am__quote
856
am__include
857
DEPDIR
858
CC
859
am__untar
860
am__tar
861
AMTAR
862
am__leading_dot
863
SET_MAKE
864
AWK
865
mkdir_p
866
MKDIR_P
867
INSTALL_STRIP_PROGRAM
868
STRIP
869
install_sh
870
MAKEINFO
871
AUTOHEADER
872
AUTOMAKE
873
AUTOCONF
874
ACLOCAL
875
VERSION
876
PACKAGE
877
CYGPATH_W
878
am__isrc
879
INSTALL_DATA
880
INSTALL_SCRIPT
881
INSTALL_PROGRAM
882
host_os
883
host_vendor
884
host_cpu
885
host
886
build_os
887
build_vendor
888
build_cpu
889
build
890
newlib_basedir
891
MAY_SUPPLY_SYSCALLS_FALSE
892
MAY_SUPPLY_SYSCALLS_TRUE
893
target_alias
894
host_alias
895
build_alias
896
LIBS
897
ECHO_T
898
ECHO_N
899
ECHO_C
900
DEFS
901
mandir
902
localedir
903
libdir
904
psdir
905
pdfdir
906
dvidir
907
htmldir
908
infodir
909
docdir
910
oldincludedir
911
includedir
912
localstatedir
913
sharedstatedir
914
sysconfdir
915
datadir
916
datarootdir
917
libexecdir
918
sbindir
919
bindir
920
program_transform_name
921
prefix
922
exec_prefix
923
PACKAGE_BUGREPORT
924
PACKAGE_STRING
925
PACKAGE_VERSION
926
PACKAGE_TARNAME
927
PACKAGE_NAME
928
PATH_SEPARATOR
929
SHELL'
930
ac_subst_files=''
931
ac_user_opts='
932
enable_option_checking
933
enable_multilib
934
enable_target_optspace
935
enable_malloc_debugging
936
enable_newlib_multithread
937
enable_newlib_iconv
938
enable_newlib_elix_level
939
enable_newlib_io_float
940
enable_newlib_supplied_syscalls
941
enable_dependency_tracking
942
enable_maintainer_mode
943
enable_shared
944
enable_static
945
with_pic
946
enable_fast_install
947
with_gnu_ld
948
enable_libtool_lock
949
'
950
      ac_precious_vars='build_alias
951
host_alias
952
target_alias
953
CCAS
954
CCASFLAGS
955
CC
956
CFLAGS
957
LDFLAGS
958
LIBS
959
CPPFLAGS
960
CPP'
961
ac_subdirs_all='a29khif
962
arc
963
arm
964
d10v
965
decstation
966
h8300hms
967
h8500hms
968
linux
969
m88kbug
970
mmixware
971
netware
972
rdos
973
rtems
974
sh
975
sparc64
976
sun4
977
sysmec
978
sysnec810
979
sysnecv850
980
sysvi386
981
sysvnecv70
982
tic80
983
w65
984
z8ksim'
985
 
986
# Initialize some variables set by options.
987
ac_init_help=
988
ac_init_version=false
989
ac_unrecognized_opts=
990
ac_unrecognized_sep=
991
# The variables have the same names as the options, with
992
# dashes changed to underlines.
993
cache_file=/dev/null
994
exec_prefix=NONE
995
no_create=
996
no_recursion=
997
prefix=NONE
998
program_prefix=NONE
999
program_suffix=NONE
1000
program_transform_name=s,x,x,
1001
silent=
1002
site=
1003
srcdir=
1004
verbose=
1005
x_includes=NONE
1006
x_libraries=NONE
1007
 
1008
# Installation directory options.
1009
# These are left unexpanded so users can "make install exec_prefix=/foo"
1010
# and all the variables that are supposed to be based on exec_prefix
1011
# by default will actually change.
1012
# Use braces instead of parens because sh, perl, etc. also accept them.
1013
# (The list follows the same order as the GNU Coding Standards.)
1014
bindir='${exec_prefix}/bin'
1015
sbindir='${exec_prefix}/sbin'
1016
libexecdir='${exec_prefix}/libexec'
1017
datarootdir='${prefix}/share'
1018
datadir='${datarootdir}'
1019
sysconfdir='${prefix}/etc'
1020
sharedstatedir='${prefix}/com'
1021
localstatedir='${prefix}/var'
1022
includedir='${prefix}/include'
1023
oldincludedir='/usr/include'
1024
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1025
infodir='${datarootdir}/info'
1026
htmldir='${docdir}'
1027
dvidir='${docdir}'
1028
pdfdir='${docdir}'
1029
psdir='${docdir}'
1030
libdir='${exec_prefix}/lib'
1031
localedir='${datarootdir}/locale'
1032
mandir='${datarootdir}/man'
1033
 
1034
ac_prev=
1035
ac_dashdash=
1036
for ac_option
1037
do
1038
  # If the previous option needs an argument, assign it.
1039
  if test -n "$ac_prev"; then
1040
    eval $ac_prev=\$ac_option
1041
    ac_prev=
1042
    continue
1043
  fi
1044
 
1045
  case $ac_option in
1046
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1047
  *)    ac_optarg=yes ;;
1048
  esac
1049
 
1050
  # Accept the important Cygnus configure options, so we can diagnose typos.
1051
 
1052
  case $ac_dashdash$ac_option in
1053
  --)
1054
    ac_dashdash=yes ;;
1055
 
1056
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1057
    ac_prev=bindir ;;
1058
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1059
    bindir=$ac_optarg ;;
1060
 
1061
  -build | --build | --buil | --bui | --bu)
1062
    ac_prev=build_alias ;;
1063
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1064
    build_alias=$ac_optarg ;;
1065
 
1066
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1067
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1068
    ac_prev=cache_file ;;
1069
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1070
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1071
    cache_file=$ac_optarg ;;
1072
 
1073
  --config-cache | -C)
1074
    cache_file=config.cache ;;
1075
 
1076
  -datadir | --datadir | --datadi | --datad)
1077
    ac_prev=datadir ;;
1078
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1079
    datadir=$ac_optarg ;;
1080
 
1081
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1082
  | --dataroo | --dataro | --datar)
1083
    ac_prev=datarootdir ;;
1084
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1085
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1086
    datarootdir=$ac_optarg ;;
1087
 
1088
  -disable-* | --disable-*)
1089
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1090
    # Reject names that are not valid shell variable names.
1091
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1093
   { (exit 1); exit 1; }; }
1094
    ac_useropt_orig=$ac_useropt
1095
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096
    case $ac_user_opts in
1097
      *"
1098
"enable_$ac_useropt"
1099
"*) ;;
1100
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1101
         ac_unrecognized_sep=', ';;
1102
    esac
1103
    eval enable_$ac_useropt=no ;;
1104
 
1105
  -docdir | --docdir | --docdi | --doc | --do)
1106
    ac_prev=docdir ;;
1107
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1108
    docdir=$ac_optarg ;;
1109
 
1110
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1111
    ac_prev=dvidir ;;
1112
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1113
    dvidir=$ac_optarg ;;
1114
 
1115
  -enable-* | --enable-*)
1116
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1117
    # Reject names that are not valid shell variable names.
1118
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1120
   { (exit 1); exit 1; }; }
1121
    ac_useropt_orig=$ac_useropt
1122
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123
    case $ac_user_opts in
1124
      *"
1125
"enable_$ac_useropt"
1126
"*) ;;
1127
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1128
         ac_unrecognized_sep=', ';;
1129
    esac
1130
    eval enable_$ac_useropt=\$ac_optarg ;;
1131
 
1132
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1133
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1134
  | --exec | --exe | --ex)
1135
    ac_prev=exec_prefix ;;
1136
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1137
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1138
  | --exec=* | --exe=* | --ex=*)
1139
    exec_prefix=$ac_optarg ;;
1140
 
1141
  -gas | --gas | --ga | --g)
1142
    # Obsolete; use --with-gas.
1143
    with_gas=yes ;;
1144
 
1145
  -help | --help | --hel | --he | -h)
1146
    ac_init_help=long ;;
1147
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1148
    ac_init_help=recursive ;;
1149
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1150
    ac_init_help=short ;;
1151
 
1152
  -host | --host | --hos | --ho)
1153
    ac_prev=host_alias ;;
1154
  -host=* | --host=* | --hos=* | --ho=*)
1155
    host_alias=$ac_optarg ;;
1156
 
1157
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1158
    ac_prev=htmldir ;;
1159
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1160
  | --ht=*)
1161
    htmldir=$ac_optarg ;;
1162
 
1163
  -includedir | --includedir | --includedi | --included | --include \
1164
  | --includ | --inclu | --incl | --inc)
1165
    ac_prev=includedir ;;
1166
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1167
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1168
    includedir=$ac_optarg ;;
1169
 
1170
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1171
    ac_prev=infodir ;;
1172
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1173
    infodir=$ac_optarg ;;
1174
 
1175
  -libdir | --libdir | --libdi | --libd)
1176
    ac_prev=libdir ;;
1177
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1178
    libdir=$ac_optarg ;;
1179
 
1180
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1181
  | --libexe | --libex | --libe)
1182
    ac_prev=libexecdir ;;
1183
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1184
  | --libexe=* | --libex=* | --libe=*)
1185
    libexecdir=$ac_optarg ;;
1186
 
1187
  -localedir | --localedir | --localedi | --localed | --locale)
1188
    ac_prev=localedir ;;
1189
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1190
    localedir=$ac_optarg ;;
1191
 
1192
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1193
  | --localstate | --localstat | --localsta | --localst | --locals)
1194
    ac_prev=localstatedir ;;
1195
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1196
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1197
    localstatedir=$ac_optarg ;;
1198
 
1199
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1200
    ac_prev=mandir ;;
1201
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1202
    mandir=$ac_optarg ;;
1203
 
1204
  -nfp | --nfp | --nf)
1205
    # Obsolete; use --without-fp.
1206
    with_fp=no ;;
1207
 
1208
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1209
  | --no-cr | --no-c | -n)
1210
    no_create=yes ;;
1211
 
1212
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1213
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1214
    no_recursion=yes ;;
1215
 
1216
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1217
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1218
  | --oldin | --oldi | --old | --ol | --o)
1219
    ac_prev=oldincludedir ;;
1220
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1221
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1222
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1223
    oldincludedir=$ac_optarg ;;
1224
 
1225
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1226
    ac_prev=prefix ;;
1227
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1228
    prefix=$ac_optarg ;;
1229
 
1230
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1231
  | --program-pre | --program-pr | --program-p)
1232
    ac_prev=program_prefix ;;
1233
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1234
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1235
    program_prefix=$ac_optarg ;;
1236
 
1237
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1238
  | --program-suf | --program-su | --program-s)
1239
    ac_prev=program_suffix ;;
1240
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1241
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1242
    program_suffix=$ac_optarg ;;
1243
 
1244
  -program-transform-name | --program-transform-name \
1245
  | --program-transform-nam | --program-transform-na \
1246
  | --program-transform-n | --program-transform- \
1247
  | --program-transform | --program-transfor \
1248
  | --program-transfo | --program-transf \
1249
  | --program-trans | --program-tran \
1250
  | --progr-tra | --program-tr | --program-t)
1251
    ac_prev=program_transform_name ;;
1252
  -program-transform-name=* | --program-transform-name=* \
1253
  | --program-transform-nam=* | --program-transform-na=* \
1254
  | --program-transform-n=* | --program-transform-=* \
1255
  | --program-transform=* | --program-transfor=* \
1256
  | --program-transfo=* | --program-transf=* \
1257
  | --program-trans=* | --program-tran=* \
1258
  | --progr-tra=* | --program-tr=* | --program-t=*)
1259
    program_transform_name=$ac_optarg ;;
1260
 
1261
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1262
    ac_prev=pdfdir ;;
1263
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1264
    pdfdir=$ac_optarg ;;
1265
 
1266
  -psdir | --psdir | --psdi | --psd | --ps)
1267
    ac_prev=psdir ;;
1268
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1269
    psdir=$ac_optarg ;;
1270
 
1271
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1272
  | -silent | --silent | --silen | --sile | --sil)
1273
    silent=yes ;;
1274
 
1275
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1276
    ac_prev=sbindir ;;
1277
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1278
  | --sbi=* | --sb=*)
1279
    sbindir=$ac_optarg ;;
1280
 
1281
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1282
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1283
  | --sharedst | --shareds | --shared | --share | --shar \
1284
  | --sha | --sh)
1285
    ac_prev=sharedstatedir ;;
1286
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1287
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1288
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1289
  | --sha=* | --sh=*)
1290
    sharedstatedir=$ac_optarg ;;
1291
 
1292
  -site | --site | --sit)
1293
    ac_prev=site ;;
1294
  -site=* | --site=* | --sit=*)
1295
    site=$ac_optarg ;;
1296
 
1297
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1298
    ac_prev=srcdir ;;
1299
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1300
    srcdir=$ac_optarg ;;
1301
 
1302
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1303
  | --syscon | --sysco | --sysc | --sys | --sy)
1304
    ac_prev=sysconfdir ;;
1305
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1306
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1307
    sysconfdir=$ac_optarg ;;
1308
 
1309
  -target | --target | --targe | --targ | --tar | --ta | --t)
1310
    ac_prev=target_alias ;;
1311
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1312
    target_alias=$ac_optarg ;;
1313
 
1314
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1315
    verbose=yes ;;
1316
 
1317
  -version | --version | --versio | --versi | --vers | -V)
1318
    ac_init_version=: ;;
1319
 
1320
  -with-* | --with-*)
1321
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1322
    # Reject names that are not valid shell variable names.
1323
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1325
   { (exit 1); exit 1; }; }
1326
    ac_useropt_orig=$ac_useropt
1327
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328
    case $ac_user_opts in
1329
      *"
1330
"with_$ac_useropt"
1331
"*) ;;
1332
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1333
         ac_unrecognized_sep=', ';;
1334
    esac
1335
    eval with_$ac_useropt=\$ac_optarg ;;
1336
 
1337
  -without-* | --without-*)
1338
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1339
    # Reject names that are not valid shell variable names.
1340
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1341
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1342
   { (exit 1); exit 1; }; }
1343
    ac_useropt_orig=$ac_useropt
1344
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345
    case $ac_user_opts in
1346
      *"
1347
"with_$ac_useropt"
1348
"*) ;;
1349
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1350
         ac_unrecognized_sep=', ';;
1351
    esac
1352
    eval with_$ac_useropt=no ;;
1353
 
1354
  --x)
1355
    # Obsolete; use --with-x.
1356
    with_x=yes ;;
1357
 
1358
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1359
  | --x-incl | --x-inc | --x-in | --x-i)
1360
    ac_prev=x_includes ;;
1361
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1362
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1363
    x_includes=$ac_optarg ;;
1364
 
1365
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1366
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1367
    ac_prev=x_libraries ;;
1368
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1369
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1370
    x_libraries=$ac_optarg ;;
1371
 
1372
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1373
Try \`$0 --help' for more information." >&2
1374
   { (exit 1); exit 1; }; }
1375
    ;;
1376
 
1377
  *=*)
1378
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1379
    # Reject names that are not valid shell variable names.
1380
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1381
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1382
   { (exit 1); exit 1; }; }
1383
    eval $ac_envvar=\$ac_optarg
1384
    export $ac_envvar ;;
1385
 
1386
  *)
1387
    # FIXME: should be removed in autoconf 3.0.
1388
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1389
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1390
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1391
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1392
    ;;
1393
 
1394
  esac
1395
done
1396
 
1397
if test -n "$ac_prev"; then
1398
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1399
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1400
   { (exit 1); exit 1; }; }
1401
fi
1402
 
1403
if test -n "$ac_unrecognized_opts"; then
1404
  case $enable_option_checking in
1405
    no) ;;
1406
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1407
   { (exit 1); exit 1; }; } ;;
1408
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1409
  esac
1410
fi
1411
 
1412
# Check all directory arguments for consistency.
1413
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1414
                datadir sysconfdir sharedstatedir localstatedir includedir \
1415
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1416
                libdir localedir mandir
1417
do
1418
  eval ac_val=\$$ac_var
1419
  # Remove trailing slashes.
1420
  case $ac_val in
1421
    */ )
1422
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1423
      eval $ac_var=\$ac_val;;
1424
  esac
1425
  # Be sure to have absolute directory names.
1426
  case $ac_val in
1427
    [\\/$]* | ?:[\\/]* )  continue;;
1428
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1429
  esac
1430
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1431
   { (exit 1); exit 1; }; }
1432
done
1433
 
1434
# There might be people who depend on the old broken behavior: `$host'
1435
# used to hold the argument of --host etc.
1436
# FIXME: To remove some day.
1437
build=$build_alias
1438
host=$host_alias
1439
target=$target_alias
1440
 
1441
# FIXME: To remove some day.
1442
if test "x$host_alias" != x; then
1443
  if test "x$build_alias" = x; then
1444
    cross_compiling=maybe
1445
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1446
    If a cross compiler is detected then cross compile mode will be used." >&2
1447
  elif test "x$build_alias" != "x$host_alias"; then
1448
    cross_compiling=yes
1449
  fi
1450
fi
1451
 
1452
ac_tool_prefix=
1453
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1454
 
1455
test "$silent" = yes && exec 6>/dev/null
1456
 
1457
 
1458
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1459
ac_ls_di=`ls -di .` &&
1460
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1461
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1462
   { (exit 1); exit 1; }; }
1463
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1464
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1465
   { (exit 1); exit 1; }; }
1466
 
1467
 
1468
# Find the source files, if location was not specified.
1469
if test -z "$srcdir"; then
1470
  ac_srcdir_defaulted=yes
1471
  # Try the directory containing this script, then the parent directory.
1472
  ac_confdir=`$as_dirname -- "$as_myself" ||
1473
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1474
         X"$as_myself" : 'X\(//\)[^/]' \| \
1475
         X"$as_myself" : 'X\(//\)$' \| \
1476
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1477
$as_echo X"$as_myself" |
1478
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1479
            s//\1/
1480
            q
1481
          }
1482
          /^X\(\/\/\)[^/].*/{
1483
            s//\1/
1484
            q
1485
          }
1486
          /^X\(\/\/\)$/{
1487
            s//\1/
1488
            q
1489
          }
1490
          /^X\(\/\).*/{
1491
            s//\1/
1492
            q
1493
          }
1494
          s/.*/./; q'`
1495
  srcdir=$ac_confdir
1496
  if test ! -r "$srcdir/$ac_unique_file"; then
1497
    srcdir=..
1498
  fi
1499
else
1500
  ac_srcdir_defaulted=no
1501
fi
1502
if test ! -r "$srcdir/$ac_unique_file"; then
1503
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1504
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1505
   { (exit 1); exit 1; }; }
1506
fi
1507
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1508
ac_abs_confdir=`(
1509
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1510
   { (exit 1); exit 1; }; }
1511
        pwd)`
1512
# When building in place, set srcdir=.
1513
if test "$ac_abs_confdir" = "$ac_pwd"; then
1514
  srcdir=.
1515
fi
1516
# Remove unnecessary trailing slashes from srcdir.
1517
# Double slashes in file names in object file debugging info
1518
# mess up M-x gdb in Emacs.
1519
case $srcdir in
1520
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1521
esac
1522
for ac_var in $ac_precious_vars; do
1523
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1524
  eval ac_env_${ac_var}_value=\$${ac_var}
1525
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1526
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1527
done
1528
 
1529
#
1530
# Report the --help message.
1531
#
1532
if test "$ac_init_help" = "long"; then
1533
  # Omit some internal or obsolete options to make the list less imposing.
1534
  # This message is too long to be a string in the A/UX 3.1 sh.
1535
  cat <<_ACEOF
1536
\`configure' configures newlib 1.18.0 to adapt to many kinds of systems.
1537
 
1538
Usage: $0 [OPTION]... [VAR=VALUE]...
1539
 
1540
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1541
VAR=VALUE.  See below for descriptions of some of the useful variables.
1542
 
1543
Defaults for the options are specified in brackets.
1544
 
1545
Configuration:
1546
  -h, --help              display this help and exit
1547
      --help=short        display options specific to this package
1548
      --help=recursive    display the short help of all the included packages
1549
  -V, --version           display version information and exit
1550
  -q, --quiet, --silent   do not print \`checking...' messages
1551
      --cache-file=FILE   cache test results in FILE [disabled]
1552
  -C, --config-cache      alias for \`--cache-file=config.cache'
1553
  -n, --no-create         do not create output files
1554
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1555
 
1556
Installation directories:
1557
  --prefix=PREFIX         install architecture-independent files in PREFIX
1558
                          [$ac_default_prefix]
1559
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1560
                          [PREFIX]
1561
 
1562
By default, \`make install' will install all the files in
1563
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1564
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1565
for instance \`--prefix=\$HOME'.
1566
 
1567
For better control, use the options below.
1568
 
1569
Fine tuning of the installation directories:
1570
  --bindir=DIR            user executables [EPREFIX/bin]
1571
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1572
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1573
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1574
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1575
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1576
  --libdir=DIR            object code libraries [EPREFIX/lib]
1577
  --includedir=DIR        C header files [PREFIX/include]
1578
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1579
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1580
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1581
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1582
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1583
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1584
  --docdir=DIR            documentation root [DATAROOTDIR/doc/newlib]
1585
  --htmldir=DIR           html documentation [DOCDIR]
1586
  --dvidir=DIR            dvi documentation [DOCDIR]
1587
  --pdfdir=DIR            pdf documentation [DOCDIR]
1588
  --psdir=DIR             ps documentation [DOCDIR]
1589
_ACEOF
1590
 
1591
  cat <<\_ACEOF
1592
 
1593
Program names:
1594
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1595
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1596
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1597
 
1598
System types:
1599
  --build=BUILD     configure for building on BUILD [guessed]
1600
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1601
_ACEOF
1602
fi
1603
 
1604
if test -n "$ac_init_help"; then
1605
  case $ac_init_help in
1606
     short | recursive ) echo "Configuration of newlib 1.18.0:";;
1607
   esac
1608
  cat <<\_ACEOF
1609
 
1610
Optional Features:
1611
  --disable-option-checking  ignore unrecognized --enable/--with options
1612
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1613
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1614
  --enable-multilib         build many library versions (default)
1615
  --enable-target-optspace  optimize for space
1616
  --enable-malloc-debugging indicate malloc debugging requested
1617
  --enable-newlib-multithread        enable support for multiple threads
1618
  --enable-newlib-iconv     enable iconv library support
1619
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1620
  --disable-newlib-io-float disable printf/scanf family float support
1621
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1622
  --disable-dependency-tracking  speeds up one-time build
1623
  --enable-dependency-tracking   do not reject slow dependency extractors
1624
  --enable-maintainer-mode  enable make rules and dependencies not useful
1625
                          (and sometimes confusing) to the casual installer
1626
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1627
  --enable-static[=PKGS]  build static libraries [default=yes]
1628
  --enable-fast-install[=PKGS]
1629
                          optimize for fast installation [default=yes]
1630
  --disable-libtool-lock  avoid locking (might break parallel builds)
1631
 
1632
Optional Packages:
1633
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1634
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1635
  --with-pic              try to use only PIC/non-PIC objects [default=use
1636
                          both]
1637
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1638
 
1639
Some influential environment variables:
1640
  CCAS        assembler compiler command (defaults to CC)
1641
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1642
  CC          C compiler command
1643
  CFLAGS      C compiler flags
1644
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1645
              nonstandard directory 
1646
  LIBS        libraries to pass to the linker, e.g. -l
1647
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1648
              you have headers in a nonstandard directory 
1649
  CPP         C preprocessor
1650
 
1651
Use these variables to override the choices made by `configure' or to help
1652
it to find libraries and programs with nonstandard names/locations.
1653
 
1654
_ACEOF
1655
ac_status=$?
1656
fi
1657
 
1658
if test "$ac_init_help" = "recursive"; then
1659
  # If there are subdirs, report their specific --help.
1660
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1661
    test -d "$ac_dir" ||
1662
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1663
      continue
1664
    ac_builddir=.
1665
 
1666
case "$ac_dir" in
1667
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668
*)
1669
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1670
  # A ".." for each directory in $ac_dir_suffix.
1671
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1672
  case $ac_top_builddir_sub in
1673
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1675
  esac ;;
1676
esac
1677
ac_abs_top_builddir=$ac_pwd
1678
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1679
# for backward compatibility:
1680
ac_top_builddir=$ac_top_build_prefix
1681
 
1682
case $srcdir in
1683
  .)  # We are building in place.
1684
    ac_srcdir=.
1685
    ac_top_srcdir=$ac_top_builddir_sub
1686
    ac_abs_top_srcdir=$ac_pwd ;;
1687
  [\\/]* | ?:[\\/]* )  # Absolute name.
1688
    ac_srcdir=$srcdir$ac_dir_suffix;
1689
    ac_top_srcdir=$srcdir
1690
    ac_abs_top_srcdir=$srcdir ;;
1691
  *) # Relative name.
1692
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1693
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1694
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1695
esac
1696
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1697
 
1698
    cd "$ac_dir" || { ac_status=$?; continue; }
1699
    # Check for guested configure.
1700
    if test -f "$ac_srcdir/configure.gnu"; then
1701
      echo &&
1702
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703
    elif test -f "$ac_srcdir/configure"; then
1704
      echo &&
1705
      $SHELL "$ac_srcdir/configure" --help=recursive
1706
    else
1707
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708
    fi || ac_status=$?
1709
    cd "$ac_pwd" || { ac_status=$?; break; }
1710
  done
1711
fi
1712
 
1713
test -n "$ac_init_help" && exit $ac_status
1714
if $ac_init_version; then
1715
  cat <<\_ACEOF
1716
newlib configure 1.18.0
1717
generated by GNU Autoconf 2.63
1718
 
1719
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1720
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1721
This configure script is free software; the Free Software Foundation
1722
gives unlimited permission to copy, distribute and modify it.
1723
_ACEOF
1724
  exit
1725
fi
1726
cat >config.log <<_ACEOF
1727
This file contains any messages produced by compilers while
1728
running configure, to aid debugging if configure makes a mistake.
1729
 
1730
It was created by newlib $as_me 1.18.0, which was
1731
generated by GNU Autoconf 2.63.  Invocation command line was
1732
 
1733
  $ $0 $@
1734
 
1735
_ACEOF
1736
exec 5>>config.log
1737
{
1738
cat <<_ASUNAME
1739
## --------- ##
1740
## Platform. ##
1741
## --------- ##
1742
 
1743
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1744
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1745
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1746
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1747
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1748
 
1749
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1750
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1751
 
1752
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1753
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1754
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1755
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1756
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1757
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1758
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1759
 
1760
_ASUNAME
1761
 
1762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763
for as_dir in $PATH
1764
do
1765
  IFS=$as_save_IFS
1766
  test -z "$as_dir" && as_dir=.
1767
  $as_echo "PATH: $as_dir"
1768
done
1769
IFS=$as_save_IFS
1770
 
1771
} >&5
1772
 
1773
cat >&5 <<_ACEOF
1774
 
1775
 
1776
## ----------- ##
1777
## Core tests. ##
1778
## ----------- ##
1779
 
1780
_ACEOF
1781
 
1782
 
1783
# Keep a trace of the command line.
1784
# Strip out --no-create and --no-recursion so they do not pile up.
1785
# Strip out --silent because we don't want to record it for future runs.
1786
# Also quote any args containing shell meta-characters.
1787
# Make two passes to allow for proper duplicate-argument suppression.
1788
ac_configure_args=
1789
ac_configure_args0=
1790
ac_configure_args1=
1791
ac_must_keep_next=false
1792
for ac_pass in 1 2
1793
do
1794
  for ac_arg
1795
  do
1796
    case $ac_arg in
1797
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1798
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1799
    | -silent | --silent | --silen | --sile | --sil)
1800
      continue ;;
1801
    *\'*)
1802
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1803
    esac
1804
    case $ac_pass in
1805
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1806
    2)
1807
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1808
      if test $ac_must_keep_next = true; then
1809
        ac_must_keep_next=false # Got value, back to normal.
1810
      else
1811
        case $ac_arg in
1812
          *=* | --config-cache | -C | -disable-* | --disable-* \
1813
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1814
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1815
          | -with-* | --with-* | -without-* | --without-* | --x)
1816
            case "$ac_configure_args0 " in
1817
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1818
            esac
1819
            ;;
1820
          -* ) ac_must_keep_next=true ;;
1821
        esac
1822
      fi
1823
      ac_configure_args="$ac_configure_args '$ac_arg'"
1824
      ;;
1825
    esac
1826
  done
1827
done
1828
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1829
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1830
 
1831
# When interrupted or exit'd, cleanup temporary files, and complete
1832
# config.log.  We remove comments because anyway the quotes in there
1833
# would cause problems or look ugly.
1834
# WARNING: Use '\'' to represent an apostrophe within the trap.
1835
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1836
trap 'exit_status=$?
1837
  # Save into config.log some information that might help in debugging.
1838
  {
1839
    echo
1840
 
1841
    cat <<\_ASBOX
1842
## ---------------- ##
1843
## Cache variables. ##
1844
## ---------------- ##
1845
_ASBOX
1846
    echo
1847
    # The following way of writing the cache mishandles newlines in values,
1848
(
1849
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1850
    eval ac_val=\$$ac_var
1851
    case $ac_val in #(
1852
    *${as_nl}*)
1853
      case $ac_var in #(
1854
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1855
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1856
      esac
1857
      case $ac_var in #(
1858
      _ | IFS | as_nl) ;; #(
1859
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1860
      *) $as_unset $ac_var ;;
1861
      esac ;;
1862
    esac
1863
  done
1864
  (set) 2>&1 |
1865
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1866
    *${as_nl}ac_space=\ *)
1867
      sed -n \
1868
        "s/'\''/'\''\\\\'\'''\''/g;
1869
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1870
      ;; #(
1871
    *)
1872
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1873
      ;;
1874
    esac |
1875
    sort
1876
)
1877
    echo
1878
 
1879
    cat <<\_ASBOX
1880
## ----------------- ##
1881
## Output variables. ##
1882
## ----------------- ##
1883
_ASBOX
1884
    echo
1885
    for ac_var in $ac_subst_vars
1886
    do
1887
      eval ac_val=\$$ac_var
1888
      case $ac_val in
1889
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1890
      esac
1891
      $as_echo "$ac_var='\''$ac_val'\''"
1892
    done | sort
1893
    echo
1894
 
1895
    if test -n "$ac_subst_files"; then
1896
      cat <<\_ASBOX
1897
## ------------------- ##
1898
## File substitutions. ##
1899
## ------------------- ##
1900
_ASBOX
1901
      echo
1902
      for ac_var in $ac_subst_files
1903
      do
1904
        eval ac_val=\$$ac_var
1905
        case $ac_val in
1906
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1907
        esac
1908
        $as_echo "$ac_var='\''$ac_val'\''"
1909
      done | sort
1910
      echo
1911
    fi
1912
 
1913
    if test -s confdefs.h; then
1914
      cat <<\_ASBOX
1915
## ----------- ##
1916
## confdefs.h. ##
1917
## ----------- ##
1918
_ASBOX
1919
      echo
1920
      cat confdefs.h
1921
      echo
1922
    fi
1923
    test "$ac_signal" != 0 &&
1924
      $as_echo "$as_me: caught signal $ac_signal"
1925
    $as_echo "$as_me: exit $exit_status"
1926
  } >&5
1927
  rm -f core *.core core.conftest.* &&
1928
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1929
    exit $exit_status
1930
' 0
1931
for ac_signal in 1 2 13 15; do
1932
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1933
done
1934
ac_signal=0
1935
 
1936
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1937
rm -f -r conftest* confdefs.h
1938
 
1939
# Predefined preprocessor variables.
1940
 
1941
cat >>confdefs.h <<_ACEOF
1942
#define PACKAGE_NAME "$PACKAGE_NAME"
1943
_ACEOF
1944
 
1945
 
1946
cat >>confdefs.h <<_ACEOF
1947
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1948
_ACEOF
1949
 
1950
 
1951
cat >>confdefs.h <<_ACEOF
1952
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1953
_ACEOF
1954
 
1955
 
1956
cat >>confdefs.h <<_ACEOF
1957
#define PACKAGE_STRING "$PACKAGE_STRING"
1958
_ACEOF
1959
 
1960
 
1961
cat >>confdefs.h <<_ACEOF
1962
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1963
_ACEOF
1964
 
1965
 
1966
# Let the site file select an alternate cache file if it wants to.
1967
# Prefer an explicitly selected file to automatically selected ones.
1968
ac_site_file1=NONE
1969
ac_site_file2=NONE
1970
if test -n "$CONFIG_SITE"; then
1971
  ac_site_file1=$CONFIG_SITE
1972
elif test "x$prefix" != xNONE; then
1973
  ac_site_file1=$prefix/share/config.site
1974
  ac_site_file2=$prefix/etc/config.site
1975
else
1976
  ac_site_file1=$ac_default_prefix/share/config.site
1977
  ac_site_file2=$ac_default_prefix/etc/config.site
1978
fi
1979
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1980
do
1981
  test "x$ac_site_file" = xNONE && continue
1982
  if test -r "$ac_site_file"; then
1983
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1984
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1985
    sed 's/^/| /' "$ac_site_file" >&5
1986
    . "$ac_site_file"
1987
  fi
1988
done
1989
 
1990
if test -r "$cache_file"; then
1991
  # Some versions of bash will fail to source /dev/null (special
1992
  # files actually), so we avoid doing that.
1993
  if test -f "$cache_file"; then
1994
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1995
$as_echo "$as_me: loading cache $cache_file" >&6;}
1996
    case $cache_file in
1997
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1998
      *)                      . "./$cache_file";;
1999
    esac
2000
  fi
2001
else
2002
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2003
$as_echo "$as_me: creating cache $cache_file" >&6;}
2004
  >$cache_file
2005
fi
2006
 
2007
# Check that the precious variables saved in the cache have kept the same
2008
# value.
2009
ac_cache_corrupted=false
2010
for ac_var in $ac_precious_vars; do
2011
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2012
  eval ac_new_set=\$ac_env_${ac_var}_set
2013
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2014
  eval ac_new_val=\$ac_env_${ac_var}_value
2015
  case $ac_old_set,$ac_new_set in
2016
    set,)
2017
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2018
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2019
      ac_cache_corrupted=: ;;
2020
    ,set)
2021
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2022
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2023
      ac_cache_corrupted=: ;;
2024
    ,);;
2025
    *)
2026
      if test "x$ac_old_val" != "x$ac_new_val"; then
2027
        # differences in whitespace do not lead to failure.
2028
        ac_old_val_w=`echo x $ac_old_val`
2029
        ac_new_val_w=`echo x $ac_new_val`
2030
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2031
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2032
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2033
          ac_cache_corrupted=:
2034
        else
2035
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2036
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2037
          eval $ac_var=\$ac_old_val
2038
        fi
2039
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2040
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2041
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2042
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2043
      fi;;
2044
  esac
2045
  # Pass precious variables to config.status.
2046
  if test "$ac_new_set" = set; then
2047
    case $ac_new_val in
2048
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2049
    *) ac_arg=$ac_var=$ac_new_val ;;
2050
    esac
2051
    case " $ac_configure_args " in
2052
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2053
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2054
    esac
2055
  fi
2056
done
2057
if $ac_cache_corrupted; then
2058
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2059
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2060
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2061
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2062
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2063
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2064
   { (exit 1); exit 1; }; }
2065
fi
2066
 
2067
 
2068
 
2069
 
2070
 
2071
 
2072
 
2073
 
2074
 
2075
 
2076
 
2077
 
2078
 
2079
 
2080
 
2081
 
2082
 
2083
 
2084
 
2085
 
2086
 
2087
 
2088
 
2089
 
2090
 
2091
ac_ext=c
2092
ac_cpp='$CPP $CPPFLAGS'
2093
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2094
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2095
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2096
 
2097
 
2098
 
2099
 
2100
ac_aux_dir=
2101
for ac_dir in ../../.. "$srcdir"/../../..; do
2102
  if test -f "$ac_dir/install-sh"; then
2103
    ac_aux_dir=$ac_dir
2104
    ac_install_sh="$ac_aux_dir/install-sh -c"
2105
    break
2106
  elif test -f "$ac_dir/install.sh"; then
2107
    ac_aux_dir=$ac_dir
2108
    ac_install_sh="$ac_aux_dir/install.sh -c"
2109
    break
2110
  elif test -f "$ac_dir/shtool"; then
2111
    ac_aux_dir=$ac_dir
2112
    ac_install_sh="$ac_aux_dir/shtool install -c"
2113
    break
2114
  fi
2115
done
2116
if test -z "$ac_aux_dir"; then
2117
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../.. \"$srcdir\"/../../.." >&5
2118
$as_echo "$as_me: error: cannot find install-sh or install.sh in ../../.. \"$srcdir\"/../../.." >&2;}
2119
   { (exit 1); exit 1; }; }
2120
fi
2121
 
2122
# These three variables are undocumented and unsupported,
2123
# and are intended to be withdrawn in a future Autoconf release.
2124
# They can cause serious problems if a builder's source tree is in a directory
2125
# whose full name contains unusual characters.
2126
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2127
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2128
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2129
 
2130
 
2131
 
2132
 
2133
# Make sure we can run config.sub.
2134
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2135
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2136
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2137
   { (exit 1); exit 1; }; }
2138
 
2139
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2140
$as_echo_n "checking build system type... " >&6; }
2141
if test "${ac_cv_build+set}" = set; then
2142
  $as_echo_n "(cached) " >&6
2143
else
2144
  ac_build_alias=$build_alias
2145
test "x$ac_build_alias" = x &&
2146
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2147
test "x$ac_build_alias" = x &&
2148
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2149
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2150
   { (exit 1); exit 1; }; }
2151
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2152
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2153
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2154
   { (exit 1); exit 1; }; }
2155
 
2156
fi
2157
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2158
$as_echo "$ac_cv_build" >&6; }
2159
case $ac_cv_build in
2160
*-*-*) ;;
2161
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2162
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2163
   { (exit 1); exit 1; }; };;
2164
esac
2165
build=$ac_cv_build
2166
ac_save_IFS=$IFS; IFS='-'
2167
set x $ac_cv_build
2168
shift
2169
build_cpu=$1
2170
build_vendor=$2
2171
shift; shift
2172
# Remember, the first character of IFS is used to create $*,
2173
# except with old shells:
2174
build_os=$*
2175
IFS=$ac_save_IFS
2176
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2177
 
2178
 
2179
am__api_version='1.11'
2180
 
2181
# Find a good install program.  We prefer a C program (faster),
2182
# so one script is as good as another.  But avoid the broken or
2183
# incompatible versions:
2184
# SysV /etc/install, /usr/sbin/install
2185
# SunOS /usr/etc/install
2186
# IRIX /sbin/install
2187
# AIX /bin/install
2188
# AmigaOS /C/install, which installs bootblocks on floppy discs
2189
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2190
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2191
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2192
# OS/2's system install, which has a completely different semantic
2193
# ./install, which can be erroneously created by make from ./install.sh.
2194
# Reject install programs that cannot install multiple files.
2195
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2196
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2197
if test -z "$INSTALL"; then
2198
if test "${ac_cv_path_install+set}" = set; then
2199
  $as_echo_n "(cached) " >&6
2200
else
2201
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202
for as_dir in $PATH
2203
do
2204
  IFS=$as_save_IFS
2205
  test -z "$as_dir" && as_dir=.
2206
  # Account for people who put trailing slashes in PATH elements.
2207
case $as_dir/ in
2208
  ./ | .// | /cC/* | \
2209
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2210
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2211
  /usr/ucb/* ) ;;
2212
  *)
2213
    # OSF1 and SCO ODT 3.0 have their own names for install.
2214
    # Don't use installbsd from OSF since it installs stuff as root
2215
    # by default.
2216
    for ac_prog in ginstall scoinst install; do
2217
      for ac_exec_ext in '' $ac_executable_extensions; do
2218
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2219
          if test $ac_prog = install &&
2220
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2221
            # AIX install.  It has an incompatible calling convention.
2222
            :
2223
          elif test $ac_prog = install &&
2224
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2225
            # program-specific install script used by HP pwplus--don't use.
2226
            :
2227
          else
2228
            rm -rf conftest.one conftest.two conftest.dir
2229
            echo one > conftest.one
2230
            echo two > conftest.two
2231
            mkdir conftest.dir
2232
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2233
              test -s conftest.one && test -s conftest.two &&
2234
              test -s conftest.dir/conftest.one &&
2235
              test -s conftest.dir/conftest.two
2236
            then
2237
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2238
              break 3
2239
            fi
2240
          fi
2241
        fi
2242
      done
2243
    done
2244
    ;;
2245
esac
2246
 
2247
done
2248
IFS=$as_save_IFS
2249
 
2250
rm -rf conftest.one conftest.two conftest.dir
2251
 
2252
fi
2253
  if test "${ac_cv_path_install+set}" = set; then
2254
    INSTALL=$ac_cv_path_install
2255
  else
2256
    # As a last resort, use the slow shell script.  Don't cache a
2257
    # value for INSTALL within a source directory, because that will
2258
    # break other packages using the cache if that directory is
2259
    # removed, or if the value is a relative name.
2260
    INSTALL=$ac_install_sh
2261
  fi
2262
fi
2263
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2264
$as_echo "$INSTALL" >&6; }
2265
 
2266
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2267
# It thinks the first close brace ends the variable substitution.
2268
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2269
 
2270
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2271
 
2272
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2273
 
2274
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2275
$as_echo_n "checking whether build environment is sane... " >&6; }
2276
# Just in case
2277
sleep 1
2278
echo timestamp > conftest.file
2279
# Reject unsafe characters in $srcdir or the absolute working directory
2280
# name.  Accept space and tab only in the latter.
2281
am_lf='
2282
'
2283
case `pwd` in
2284
  *[\\\"\#\$\&\'\`$am_lf]*)
2285
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2286
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2287
   { (exit 1); exit 1; }; };;
2288
esac
2289
case $srcdir in
2290
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2291
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2292
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2293
   { (exit 1); exit 1; }; };;
2294
esac
2295
 
2296
# Do `set' in a subshell so we don't clobber the current shell's
2297
# arguments.  Must try -L first in case configure is actually a
2298
# symlink; some systems play weird games with the mod time of symlinks
2299
# (eg FreeBSD returns the mod time of the symlink's containing
2300
# directory).
2301
if (
2302
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2303
   if test "$*" = "X"; then
2304
      # -L didn't work.
2305
      set X `ls -t "$srcdir/configure" conftest.file`
2306
   fi
2307
   rm -f conftest.file
2308
   if test "$*" != "X $srcdir/configure conftest.file" \
2309
      && test "$*" != "X conftest.file $srcdir/configure"; then
2310
 
2311
      # If neither matched, then we have a broken ls.  This can happen
2312
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2313
      # broken ls alias from the environment.  This has actually
2314
      # happened.  Such a system could not be considered "sane".
2315
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2316
alias in your environment" >&5
2317
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2318
alias in your environment" >&2;}
2319
   { (exit 1); exit 1; }; }
2320
   fi
2321
 
2322
   test "$2" = conftest.file
2323
   )
2324
then
2325
   # Ok.
2326
   :
2327
else
2328
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2329
Check your system clock" >&5
2330
$as_echo "$as_me: error: newly created file is older than distributed files!
2331
Check your system clock" >&2;}
2332
   { (exit 1); exit 1; }; }
2333
fi
2334
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2335
$as_echo "yes" >&6; }
2336
test "$program_prefix" != NONE &&
2337
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2338
# Use a double $ so make ignores it.
2339
test "$program_suffix" != NONE &&
2340
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2341
# Double any \ or $.
2342
# By default was `s,x,x', remove it if useless.
2343
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2344
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2345
 
2346
# expand $ac_aux_dir to an absolute path
2347
am_aux_dir=`cd $ac_aux_dir && pwd`
2348
 
2349
if test x"${MISSING+set}" != xset; then
2350
  case $am_aux_dir in
2351
  *\ * | *\     *)
2352
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2353
  *)
2354
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2355
  esac
2356
fi
2357
# Use eval to expand $SHELL
2358
if eval "$MISSING --run true"; then
2359
  am_missing_run="$MISSING --run "
2360
else
2361
  am_missing_run=
2362
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2363
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2364
fi
2365
 
2366
if test x"${install_sh}" != xset; then
2367
  case $am_aux_dir in
2368
  *\ * | *\     *)
2369
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2370
  *)
2371
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2372
  esac
2373
fi
2374
 
2375
# Installed binaries are usually stripped using `strip' when the user
2376
# run `make install-strip'.  However `strip' might not be the right
2377
# tool to use in cross-compilation environments, therefore Automake
2378
# will honor the `STRIP' environment variable to overrule this program.
2379
if test "$cross_compiling" != no; then
2380
  if test -n "$ac_tool_prefix"; then
2381
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2382
set dummy ${ac_tool_prefix}strip; ac_word=$2
2383
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2384
$as_echo_n "checking for $ac_word... " >&6; }
2385
if test "${ac_cv_prog_STRIP+set}" = set; then
2386
  $as_echo_n "(cached) " >&6
2387
else
2388
  if test -n "$STRIP"; then
2389
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2390
else
2391
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392
for as_dir in $PATH
2393
do
2394
  IFS=$as_save_IFS
2395
  test -z "$as_dir" && as_dir=.
2396
  for ac_exec_ext in '' $ac_executable_extensions; do
2397
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2399
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400
    break 2
2401
  fi
2402
done
2403
done
2404
IFS=$as_save_IFS
2405
 
2406
fi
2407
fi
2408
STRIP=$ac_cv_prog_STRIP
2409
if test -n "$STRIP"; then
2410
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2411
$as_echo "$STRIP" >&6; }
2412
else
2413
  { $as_echo "$as_me:$LINENO: result: no" >&5
2414
$as_echo "no" >&6; }
2415
fi
2416
 
2417
 
2418
fi
2419
if test -z "$ac_cv_prog_STRIP"; then
2420
  ac_ct_STRIP=$STRIP
2421
  # Extract the first word of "strip", so it can be a program name with args.
2422
set dummy strip; ac_word=$2
2423
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2424
$as_echo_n "checking for $ac_word... " >&6; }
2425
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2426
  $as_echo_n "(cached) " >&6
2427
else
2428
  if test -n "$ac_ct_STRIP"; then
2429
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2430
else
2431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432
for as_dir in $PATH
2433
do
2434
  IFS=$as_save_IFS
2435
  test -z "$as_dir" && as_dir=.
2436
  for ac_exec_ext in '' $ac_executable_extensions; do
2437
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438
    ac_cv_prog_ac_ct_STRIP="strip"
2439
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440
    break 2
2441
  fi
2442
done
2443
done
2444
IFS=$as_save_IFS
2445
 
2446
fi
2447
fi
2448
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2449
if test -n "$ac_ct_STRIP"; then
2450
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2451
$as_echo "$ac_ct_STRIP" >&6; }
2452
else
2453
  { $as_echo "$as_me:$LINENO: result: no" >&5
2454
$as_echo "no" >&6; }
2455
fi
2456
 
2457
  if test "x$ac_ct_STRIP" = x; then
2458
    STRIP=":"
2459
  else
2460
    case $cross_compiling:$ac_tool_warned in
2461
yes:)
2462
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2463
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2464
ac_tool_warned=yes ;;
2465
esac
2466
    STRIP=$ac_ct_STRIP
2467
  fi
2468
else
2469
  STRIP="$ac_cv_prog_STRIP"
2470
fi
2471
 
2472
fi
2473
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2474
 
2475
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2476
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2477
if test -z "$MKDIR_P"; then
2478
  if test "${ac_cv_path_mkdir+set}" = set; then
2479
  $as_echo_n "(cached) " >&6
2480
else
2481
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2483
do
2484
  IFS=$as_save_IFS
2485
  test -z "$as_dir" && as_dir=.
2486
  for ac_prog in mkdir gmkdir; do
2487
         for ac_exec_ext in '' $ac_executable_extensions; do
2488
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2489
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2490
             'mkdir (GNU coreutils) '* | \
2491
             'mkdir (coreutils) '* | \
2492
             'mkdir (fileutils) '4.1*)
2493
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2494
               break 3;;
2495
           esac
2496
         done
2497
       done
2498
done
2499
IFS=$as_save_IFS
2500
 
2501
fi
2502
 
2503
  if test "${ac_cv_path_mkdir+set}" = set; then
2504
    MKDIR_P="$ac_cv_path_mkdir -p"
2505
  else
2506
    # As a last resort, use the slow shell script.  Don't cache a
2507
    # value for MKDIR_P within a source directory, because that will
2508
    # break other packages using the cache if that directory is
2509
    # removed, or if the value is a relative name.
2510
    test -d ./--version && rmdir ./--version
2511
    MKDIR_P="$ac_install_sh -d"
2512
  fi
2513
fi
2514
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2515
$as_echo "$MKDIR_P" >&6; }
2516
 
2517
mkdir_p="$MKDIR_P"
2518
case $mkdir_p in
2519
  [\\/$]* | ?:[\\/]*) ;;
2520
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2521
esac
2522
 
2523
for ac_prog in gawk mawk nawk awk
2524
do
2525
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2526
set dummy $ac_prog; ac_word=$2
2527
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2528
$as_echo_n "checking for $ac_word... " >&6; }
2529
if test "${ac_cv_prog_AWK+set}" = set; then
2530
  $as_echo_n "(cached) " >&6
2531
else
2532
  if test -n "$AWK"; then
2533
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2534
else
2535
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536
for as_dir in $PATH
2537
do
2538
  IFS=$as_save_IFS
2539
  test -z "$as_dir" && as_dir=.
2540
  for ac_exec_ext in '' $ac_executable_extensions; do
2541
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542
    ac_cv_prog_AWK="$ac_prog"
2543
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544
    break 2
2545
  fi
2546
done
2547
done
2548
IFS=$as_save_IFS
2549
 
2550
fi
2551
fi
2552
AWK=$ac_cv_prog_AWK
2553
if test -n "$AWK"; then
2554
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2555
$as_echo "$AWK" >&6; }
2556
else
2557
  { $as_echo "$as_me:$LINENO: result: no" >&5
2558
$as_echo "no" >&6; }
2559
fi
2560
 
2561
 
2562
  test -n "$AWK" && break
2563
done
2564
 
2565
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2566
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2567
set x ${MAKE-make}
2568
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2569
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2570
  $as_echo_n "(cached) " >&6
2571
else
2572
  cat >conftest.make <<\_ACEOF
2573
SHELL = /bin/sh
2574
all:
2575
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2576
_ACEOF
2577
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2578
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2579
  *@@@%%%=?*=@@@%%%*)
2580
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2581
  *)
2582
    eval ac_cv_prog_make_${ac_make}_set=no;;
2583
esac
2584
rm -f conftest.make
2585
fi
2586
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2587
  { $as_echo "$as_me:$LINENO: result: yes" >&5
2588
$as_echo "yes" >&6; }
2589
  SET_MAKE=
2590
else
2591
  { $as_echo "$as_me:$LINENO: result: no" >&5
2592
$as_echo "no" >&6; }
2593
  SET_MAKE="MAKE=${MAKE-make}"
2594
fi
2595
 
2596
rm -rf .tst 2>/dev/null
2597
mkdir .tst 2>/dev/null
2598
if test -d .tst; then
2599
  am__leading_dot=.
2600
else
2601
  am__leading_dot=_
2602
fi
2603
rmdir .tst 2>/dev/null
2604
 
2605
DEPDIR="${am__leading_dot}deps"
2606
 
2607
ac_config_commands="$ac_config_commands depfiles"
2608
 
2609
 
2610
am_make=${MAKE-make}
2611
cat > confinc << 'END'
2612
am__doit:
2613
        @echo this is the am__doit target
2614
.PHONY: am__doit
2615
END
2616
# If we don't find an include directive, just comment out the code.
2617
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2618
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2619
am__include="#"
2620
am__quote=
2621
_am_result=none
2622
# First try GNU make style include.
2623
echo "include confinc" > confmf
2624
# Ignore all kinds of additional output from `make'.
2625
case `$am_make -s -f confmf 2> /dev/null` in #(
2626
*the\ am__doit\ target*)
2627
  am__include=include
2628
  am__quote=
2629
  _am_result=GNU
2630
  ;;
2631
esac
2632
# Now try BSD make style include.
2633
if test "$am__include" = "#"; then
2634
   echo '.include "confinc"' > confmf
2635
   case `$am_make -s -f confmf 2> /dev/null` in #(
2636
   *the\ am__doit\ target*)
2637
     am__include=.include
2638
     am__quote="\""
2639
     _am_result=BSD
2640
     ;;
2641
   esac
2642
fi
2643
 
2644
 
2645
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2646
$as_echo "$_am_result" >&6; }
2647
rm -f confinc confmf
2648
 
2649
# Check whether --enable-dependency-tracking was given.
2650
if test "${enable_dependency_tracking+set}" = set; then
2651
  enableval=$enable_dependency_tracking;
2652
fi
2653
 
2654
if test "x$enable_dependency_tracking" != xno; then
2655
  am_depcomp="$ac_aux_dir/depcomp"
2656
  AMDEPBACKSLASH='\'
2657
fi
2658
 if test "x$enable_dependency_tracking" != xno; then
2659
  AMDEP_TRUE=
2660
  AMDEP_FALSE='#'
2661
else
2662
  AMDEP_TRUE='#'
2663
  AMDEP_FALSE=
2664
fi
2665
 
2666
 
2667
 
2668
# Check whether --enable-multilib was given.
2669
if test "${enable_multilib+set}" = set; then
2670
  enableval=$enable_multilib; case "${enableval}" in
2671
  yes) multilib=yes ;;
2672
  no)  multilib=no ;;
2673
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2674
$as_echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2675
   { (exit 1); exit 1; }; } ;;
2676
 esac
2677
else
2678
  multilib=yes
2679
fi
2680
 
2681
# Check whether --enable-target-optspace was given.
2682
if test "${enable_target_optspace+set}" = set; then
2683
  enableval=$enable_target_optspace; case "${enableval}" in
2684
  yes) target_optspace=yes ;;
2685
  no)  target_optspace=no ;;
2686
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2687
$as_echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2688
   { (exit 1); exit 1; }; } ;;
2689
 esac
2690
else
2691
  target_optspace=
2692
fi
2693
 
2694
# Check whether --enable-malloc-debugging was given.
2695
if test "${enable_malloc_debugging+set}" = set; then
2696
  enableval=$enable_malloc_debugging; case "${enableval}" in
2697
  yes) malloc_debugging=yes ;;
2698
  no)  malloc_debugging=no ;;
2699
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2700
$as_echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2701
   { (exit 1); exit 1; }; } ;;
2702
 esac
2703
else
2704
  malloc_debugging=
2705
fi
2706
 
2707
# Check whether --enable-newlib-multithread was given.
2708
if test "${enable_newlib_multithread+set}" = set; then
2709
  enableval=$enable_newlib_multithread; case "${enableval}" in
2710
  yes) newlib_multithread=yes ;;
2711
  no)  newlib_multithread=no ;;
2712
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2713
$as_echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2714
   { (exit 1); exit 1; }; } ;;
2715
 esac
2716
else
2717
  newlib_multithread=yes
2718
fi
2719
 
2720
# Check whether --enable-newlib-iconv was given.
2721
if test "${enable_newlib_iconv+set}" = set; then
2722
  enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2723
   case "${enableval}" in
2724
     yes) newlib_iconv=yes ;;
2725
     no)  newlib_iconv=no ;;
2726
     *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2727
$as_echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2728
   { (exit 1); exit 1; }; } ;;
2729
   esac
2730
 fi
2731
else
2732
  newlib_iconv=${newlib_iconv}
2733
fi
2734
 
2735
# Check whether --enable-newlib-elix-level was given.
2736
if test "${enable_newlib_elix_level+set}" = set; then
2737
  enableval=$enable_newlib_elix_level; case "${enableval}" in
2738
  0)   newlib_elix_level=0 ;;
2739
  1)   newlib_elix_level=1 ;;
2740
  2)   newlib_elix_level=2 ;;
2741
  3)   newlib_elix_level=3 ;;
2742
  4)   newlib_elix_level=4 ;;
2743
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2744
$as_echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2745
   { (exit 1); exit 1; }; } ;;
2746
 esac
2747
else
2748
  newlib_elix_level=0
2749
fi
2750
 
2751
# Check whether --enable-newlib-io-float was given.
2752
if test "${enable_newlib_io_float+set}" = set; then
2753
  enableval=$enable_newlib_io_float; case "${enableval}" in
2754
  yes) newlib_io_float=yes ;;
2755
  no)  newlib_io_float=no ;;
2756
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2757
$as_echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2758
   { (exit 1); exit 1; }; } ;;
2759
 esac
2760
else
2761
  newlib_io_float=yes
2762
fi
2763
 
2764
# Check whether --enable-newlib-supplied-syscalls was given.
2765
if test "${enable_newlib_supplied_syscalls+set}" = set; then
2766
  enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2767
  yes) newlib_may_supply_syscalls=yes ;;
2768
  no)  newlib_may_supply_syscalls=no ;;
2769
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2770
$as_echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2771
   { (exit 1); exit 1; }; } ;;
2772
 esac
2773
else
2774
  newlib_may_supply_syscalls=yes
2775
fi
2776
 
2777
 if test x${newlib_may_supply_syscalls} = xyes; then
2778
  MAY_SUPPLY_SYSCALLS_TRUE=
2779
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2780
else
2781
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2782
  MAY_SUPPLY_SYSCALLS_FALSE=
2783
fi
2784
 
2785
 
2786
 
2787
test -z "${with_target_subdir}" && with_target_subdir=.
2788
 
2789
if test "${srcdir}" = "."; then
2790
  if test "${with_target_subdir}" != "."; then
2791
    newlib_basedir="${srcdir}/${with_multisrctop}../../.."
2792
  else
2793
    newlib_basedir="${srcdir}/${with_multisrctop}../.."
2794
  fi
2795
else
2796
  newlib_basedir="${srcdir}/../.."
2797
fi
2798
 
2799
 
2800
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2801
$as_echo_n "checking host system type... " >&6; }
2802
if test "${ac_cv_host+set}" = set; then
2803
  $as_echo_n "(cached) " >&6
2804
else
2805
  if test "x$host_alias" = x; then
2806
  ac_cv_host=$ac_cv_build
2807
else
2808
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2809
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2810
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2811
   { (exit 1); exit 1; }; }
2812
fi
2813
 
2814
fi
2815
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2816
$as_echo "$ac_cv_host" >&6; }
2817
case $ac_cv_host in
2818
*-*-*) ;;
2819
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2820
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2821
   { (exit 1); exit 1; }; };;
2822
esac
2823
host=$ac_cv_host
2824
ac_save_IFS=$IFS; IFS='-'
2825
set x $ac_cv_host
2826
shift
2827
host_cpu=$1
2828
host_vendor=$2
2829
shift; shift
2830
# Remember, the first character of IFS is used to create $*,
2831
# except with old shells:
2832
host_os=$*
2833
IFS=$ac_save_IFS
2834
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2835
 
2836
 
2837
 
2838
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2839
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2840
  # is not polluted with repeated "-I."
2841
  am__isrc=' -I$(srcdir)'
2842
  # test to see if srcdir already configured
2843
  if test -f $srcdir/config.status; then
2844
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2845
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2846
   { (exit 1); exit 1; }; }
2847
  fi
2848
fi
2849
 
2850
# test whether we have cygpath
2851
if test -z "$CYGPATH_W"; then
2852
  if (cygpath --version) >/dev/null 2>/dev/null; then
2853
    CYGPATH_W='cygpath -w'
2854
  else
2855
    CYGPATH_W=echo
2856
  fi
2857
fi
2858
 
2859
 
2860
# Define the identity of the package.
2861
 PACKAGE='newlib'
2862
 VERSION='1.18.0'
2863
 
2864
 
2865
# Some tools Automake needs.
2866
 
2867
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2868
 
2869
 
2870
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2871
 
2872
 
2873
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2874
 
2875
 
2876
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2877
 
2878
 
2879
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2880
 
2881
# We need awk for the "check" target.  The system "awk" is bad on
2882
# some platforms.
2883
# Always define AMTAR for backward compatibility.
2884
 
2885
AMTAR=${AMTAR-"${am_missing_run}tar"}
2886
 
2887
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2888
 
2889
 
2890
 
2891
 
2892
 
2893
 
2894
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2895
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2896
# are probably using a cross compiler, which will not be able to fully
2897
# link an executable.  This should really be fixed in autoconf
2898
# itself.
2899
 
2900
 
2901
 
2902
 
2903
 
2904
 
2905
 
2906
# Extract the first word of "gcc", so it can be a program name with args.
2907
set dummy gcc; ac_word=$2
2908
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2909
$as_echo_n "checking for $ac_word... " >&6; }
2910
if test "${ac_cv_prog_CC+set}" = set; then
2911
  $as_echo_n "(cached) " >&6
2912
else
2913
  if test -n "$CC"; then
2914
  ac_cv_prog_CC="$CC" # Let the user override the test.
2915
else
2916
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917
for as_dir in $PATH
2918
do
2919
  IFS=$as_save_IFS
2920
  test -z "$as_dir" && as_dir=.
2921
  for ac_exec_ext in '' $ac_executable_extensions; do
2922
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923
    ac_cv_prog_CC="gcc"
2924
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925
    break 2
2926
  fi
2927
done
2928
done
2929
IFS=$as_save_IFS
2930
 
2931
fi
2932
fi
2933
CC=$ac_cv_prog_CC
2934
if test -n "$CC"; then
2935
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2936
$as_echo "$CC" >&6; }
2937
else
2938
  { $as_echo "$as_me:$LINENO: result: no" >&5
2939
$as_echo "no" >&6; }
2940
fi
2941
 
2942
 
2943
 
2944
depcc="$CC"   am_compiler_list=
2945
 
2946
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2947
$as_echo_n "checking dependency style of $depcc... " >&6; }
2948
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2949
  $as_echo_n "(cached) " >&6
2950
else
2951
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2952
  # We make a subdir and do the tests there.  Otherwise we can end up
2953
  # making bogus files that we don't know about and never remove.  For
2954
  # instance it was reported that on HP-UX the gcc test will end up
2955
  # making a dummy file named `D' -- because `-MD' means `put the output
2956
  # in D'.
2957
  mkdir conftest.dir
2958
  # Copy depcomp to subdir because otherwise we won't find it if we're
2959
  # using a relative directory.
2960
  cp "$am_depcomp" conftest.dir
2961
  cd conftest.dir
2962
  # We will build objects and dependencies in a subdirectory because
2963
  # it helps to detect inapplicable dependency modes.  For instance
2964
  # both Tru64's cc and ICC support -MD to output dependencies as a
2965
  # side effect of compilation, but ICC will put the dependencies in
2966
  # the current directory while Tru64 will put them in the object
2967
  # directory.
2968
  mkdir sub
2969
 
2970
  am_cv_CC_dependencies_compiler_type=none
2971
  if test "$am_compiler_list" = ""; then
2972
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2973
  fi
2974
  am__universal=false
2975
  case " $depcc " in #(
2976
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
2977
     esac
2978
 
2979
  for depmode in $am_compiler_list; do
2980
    # Setup a source with many dependencies, because some compilers
2981
    # like to wrap large dependency lists on column 80 (with \), and
2982
    # we should not choose a depcomp mode which is confused by this.
2983
    #
2984
    # We need to recreate these files for each test, as the compiler may
2985
    # overwrite some of them when testing with obscure command lines.
2986
    # This happens at least with the AIX C compiler.
2987
    : > sub/conftest.c
2988
    for i in 1 2 3 4 5 6; do
2989
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2990
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2991
      # Solaris 8's {/usr,}/bin/sh.
2992
      touch sub/conftst$i.h
2993
    done
2994
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2995
 
2996
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2997
    # mode.  It turns out that the SunPro C++ compiler does not properly
2998
    # handle `-M -o', and we need to detect this.  Also, some Intel
2999
    # versions had trouble with output in subdirs
3000
    am__obj=sub/conftest.${OBJEXT-o}
3001
    am__minus_obj="-o $am__obj"
3002
    case $depmode in
3003
    gcc)
3004
      # This depmode causes a compiler race in universal mode.
3005
      test "$am__universal" = false || continue
3006
      ;;
3007
    nosideeffect)
3008
      # after this tag, mechanisms are not by side-effect, so they'll
3009
      # only be used when explicitly requested
3010
      if test "x$enable_dependency_tracking" = xyes; then
3011
        continue
3012
      else
3013
        break
3014
      fi
3015
      ;;
3016
    msvisualcpp | msvcmsys)
3017
      # This compiler won't grok `-c -o', but also, the minuso test has
3018
      # not run yet.  These depmodes are late enough in the game, and
3019
      # so weak that their functioning should not be impacted.
3020
      am__obj=conftest.${OBJEXT-o}
3021
      am__minus_obj=
3022
      ;;
3023
    none) break ;;
3024
    esac
3025
    if depmode=$depmode \
3026
       source=sub/conftest.c object=$am__obj \
3027
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3028
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3029
         >/dev/null 2>conftest.err &&
3030
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3031
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3032
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3033
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3034
      # icc doesn't choke on unknown options, it will just issue warnings
3035
      # or remarks (even with -Werror).  So we grep stderr for any message
3036
      # that says an option was ignored or not supported.
3037
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3038
      #   icc: Command line warning: ignoring option '-M'; no argument required
3039
      # The diagnosis changed in icc 8.0:
3040
      #   icc: Command line remark: option '-MP' not supported
3041
      if (grep 'ignoring option' conftest.err ||
3042
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3043
        am_cv_CC_dependencies_compiler_type=$depmode
3044
        break
3045
      fi
3046
    fi
3047
  done
3048
 
3049
  cd ..
3050
  rm -rf conftest.dir
3051
else
3052
  am_cv_CC_dependencies_compiler_type=none
3053
fi
3054
 
3055
fi
3056
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3057
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3058
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3059
 
3060
 if
3061
  test "x$enable_dependency_tracking" != xno \
3062
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3063
  am__fastdepCC_TRUE=
3064
  am__fastdepCC_FALSE='#'
3065
else
3066
  am__fastdepCC_TRUE='#'
3067
  am__fastdepCC_FALSE=
3068
fi
3069
 
3070
 
3071
if test -z "$CC"; then
3072
  # Extract the first word of "cc", so it can be a program name with args.
3073
set dummy cc; ac_word=$2
3074
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3075
$as_echo_n "checking for $ac_word... " >&6; }
3076
if test "${ac_cv_prog_CC+set}" = set; then
3077
  $as_echo_n "(cached) " >&6
3078
else
3079
  if test -n "$CC"; then
3080
  ac_cv_prog_CC="$CC" # Let the user override the test.
3081
else
3082
  ac_prog_rejected=no
3083
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084
for as_dir in $PATH
3085
do
3086
  IFS=$as_save_IFS
3087
  test -z "$as_dir" && as_dir=.
3088
  for ac_exec_ext in '' $ac_executable_extensions; do
3089
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3091
       ac_prog_rejected=yes
3092
       continue
3093
     fi
3094
    ac_cv_prog_CC="cc"
3095
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096
    break 2
3097
  fi
3098
done
3099
done
3100
IFS=$as_save_IFS
3101
 
3102
if test $ac_prog_rejected = yes; then
3103
  # We found a bogon in the path, so make sure we never use it.
3104
  set dummy $ac_cv_prog_CC
3105
  shift
3106
  if test $# != 0; then
3107
    # We chose a different compiler from the bogus one.
3108
    # However, it has the same basename, so the bogon will be chosen
3109
    # first if we set CC to just the basename; use the full file name.
3110
    shift
3111
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3112
  fi
3113
fi
3114
fi
3115
fi
3116
CC=$ac_cv_prog_CC
3117
if test -n "$CC"; then
3118
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3119
$as_echo "$CC" >&6; }
3120
else
3121
  { $as_echo "$as_me:$LINENO: result: no" >&5
3122
$as_echo "no" >&6; }
3123
fi
3124
 
3125
 
3126
  test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3127
$as_echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3128
   { (exit 1); exit 1; }; }
3129
fi
3130
 
3131
{ $as_echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
3132
$as_echo_n "checking whether we are using GNU C... " >&6; }
3133
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3134
  $as_echo_n "(cached) " >&6
3135
else
3136
  cat > conftest.c <
3137
#ifdef __GNUC__
3138
  yes;
3139
#endif
3140
EOF
3141
if { ac_try='${CC-cc} -E conftest.c'
3142
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143
  (eval $ac_try) 2>&5
3144
  ac_status=$?
3145
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3147
  ac_cv_c_compiler_gnu=yes
3148
else
3149
  ac_cv_c_compiler_gnu=no
3150
fi
3151
fi
3152
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3153
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3154
 
3155
if test $ac_cv_c_compiler_gnu = yes; then
3156
  GCC=yes
3157
  ac_test_CFLAGS="${CFLAGS+set}"
3158
  ac_save_CFLAGS="$CFLAGS"
3159
  ac_test_CFLAGS=${CFLAGS+set}
3160
ac_save_CFLAGS=$CFLAGS
3161
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3162
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3163
if test "${ac_cv_prog_cc_g+set}" = set; then
3164
  $as_echo_n "(cached) " >&6
3165
else
3166
  ac_save_c_werror_flag=$ac_c_werror_flag
3167
   ac_c_werror_flag=yes
3168
   ac_cv_prog_cc_g=no
3169
   CFLAGS="-g"
3170
   cat >conftest.$ac_ext <<_ACEOF
3171
/* confdefs.h.  */
3172
_ACEOF
3173
cat confdefs.h >>conftest.$ac_ext
3174
cat >>conftest.$ac_ext <<_ACEOF
3175
/* end confdefs.h.  */
3176
 
3177
int
3178
main ()
3179
{
3180
 
3181
  ;
3182
  return 0;
3183
}
3184
_ACEOF
3185
rm -f conftest.$ac_objext
3186
if { (ac_try="$ac_compile"
3187
case "(($ac_try" in
3188
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189
  *) ac_try_echo=$ac_try;;
3190
esac
3191
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3192
$as_echo "$ac_try_echo") >&5
3193
  (eval "$ac_compile") 2>conftest.er1
3194
  ac_status=$?
3195
  grep -v '^ *+' conftest.er1 >conftest.err
3196
  rm -f conftest.er1
3197
  cat conftest.err >&5
3198
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199
  (exit $ac_status); } && {
3200
         test -z "$ac_c_werror_flag" ||
3201
         test ! -s conftest.err
3202
       } && test -s conftest.$ac_objext; then
3203
  ac_cv_prog_cc_g=yes
3204
else
3205
  $as_echo "$as_me: failed program was:" >&5
3206
sed 's/^/| /' conftest.$ac_ext >&5
3207
 
3208
        CFLAGS=""
3209
      cat >conftest.$ac_ext <<_ACEOF
3210
/* confdefs.h.  */
3211
_ACEOF
3212
cat confdefs.h >>conftest.$ac_ext
3213
cat >>conftest.$ac_ext <<_ACEOF
3214
/* end confdefs.h.  */
3215
 
3216
int
3217
main ()
3218
{
3219
 
3220
  ;
3221
  return 0;
3222
}
3223
_ACEOF
3224
rm -f conftest.$ac_objext
3225
if { (ac_try="$ac_compile"
3226
case "(($ac_try" in
3227
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228
  *) ac_try_echo=$ac_try;;
3229
esac
3230
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3231
$as_echo "$ac_try_echo") >&5
3232
  (eval "$ac_compile") 2>conftest.er1
3233
  ac_status=$?
3234
  grep -v '^ *+' conftest.er1 >conftest.err
3235
  rm -f conftest.er1
3236
  cat conftest.err >&5
3237
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238
  (exit $ac_status); } && {
3239
         test -z "$ac_c_werror_flag" ||
3240
         test ! -s conftest.err
3241
       } && test -s conftest.$ac_objext; then
3242
  :
3243
else
3244
  $as_echo "$as_me: failed program was:" >&5
3245
sed 's/^/| /' conftest.$ac_ext >&5
3246
 
3247
        ac_c_werror_flag=$ac_save_c_werror_flag
3248
         CFLAGS="-g"
3249
         cat >conftest.$ac_ext <<_ACEOF
3250
/* confdefs.h.  */
3251
_ACEOF
3252
cat confdefs.h >>conftest.$ac_ext
3253
cat >>conftest.$ac_ext <<_ACEOF
3254
/* end confdefs.h.  */
3255
 
3256
int
3257
main ()
3258
{
3259
 
3260
  ;
3261
  return 0;
3262
}
3263
_ACEOF
3264
rm -f conftest.$ac_objext
3265
if { (ac_try="$ac_compile"
3266
case "(($ac_try" in
3267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268
  *) ac_try_echo=$ac_try;;
3269
esac
3270
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271
$as_echo "$ac_try_echo") >&5
3272
  (eval "$ac_compile") 2>conftest.er1
3273
  ac_status=$?
3274
  grep -v '^ *+' conftest.er1 >conftest.err
3275
  rm -f conftest.er1
3276
  cat conftest.err >&5
3277
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278
  (exit $ac_status); } && {
3279
         test -z "$ac_c_werror_flag" ||
3280
         test ! -s conftest.err
3281
       } && test -s conftest.$ac_objext; then
3282
  ac_cv_prog_cc_g=yes
3283
else
3284
  $as_echo "$as_me: failed program was:" >&5
3285
sed 's/^/| /' conftest.$ac_ext >&5
3286
 
3287
 
3288
fi
3289
 
3290
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291
fi
3292
 
3293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294
fi
3295
 
3296
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297
   ac_c_werror_flag=$ac_save_c_werror_flag
3298
fi
3299
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3300
$as_echo "$ac_cv_prog_cc_g" >&6; }
3301
if test "$ac_test_CFLAGS" = set; then
3302
  CFLAGS=$ac_save_CFLAGS
3303
elif test $ac_cv_prog_cc_g = yes; then
3304
  if test "$GCC" = yes; then
3305
    CFLAGS="-g -O2"
3306
  else
3307
    CFLAGS="-g"
3308
  fi
3309
else
3310
  if test "$GCC" = yes; then
3311
    CFLAGS="-O2"
3312
  else
3313
    CFLAGS=
3314
  fi
3315
fi
3316
  if test "$ac_test_CFLAGS" = set; then
3317
    CFLAGS="$ac_save_CFLAGS"
3318
  elif test $ac_cv_prog_cc_g = yes; then
3319
    CFLAGS="-g -O2"
3320
  else
3321
    CFLAGS="-O2"
3322
  fi
3323
else
3324
  GCC=
3325
  test "${CFLAGS+set}" = set || CFLAGS="-g"
3326
fi
3327
 
3328
 
3329
if test -n "$ac_tool_prefix"; then
3330
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3331
set dummy ${ac_tool_prefix}as; ac_word=$2
3332
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3333
$as_echo_n "checking for $ac_word... " >&6; }
3334
if test "${ac_cv_prog_AS+set}" = set; then
3335
  $as_echo_n "(cached) " >&6
3336
else
3337
  if test -n "$AS"; then
3338
  ac_cv_prog_AS="$AS" # Let the user override the test.
3339
else
3340
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341
for as_dir in $PATH
3342
do
3343
  IFS=$as_save_IFS
3344
  test -z "$as_dir" && as_dir=.
3345
  for ac_exec_ext in '' $ac_executable_extensions; do
3346
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3347
    ac_cv_prog_AS="${ac_tool_prefix}as"
3348
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349
    break 2
3350
  fi
3351
done
3352
done
3353
IFS=$as_save_IFS
3354
 
3355
fi
3356
fi
3357
AS=$ac_cv_prog_AS
3358
if test -n "$AS"; then
3359
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
3360
$as_echo "$AS" >&6; }
3361
else
3362
  { $as_echo "$as_me:$LINENO: result: no" >&5
3363
$as_echo "no" >&6; }
3364
fi
3365
 
3366
 
3367
fi
3368
if test -z "$ac_cv_prog_AS"; then
3369
  ac_ct_AS=$AS
3370
  # Extract the first word of "as", so it can be a program name with args.
3371
set dummy as; ac_word=$2
3372
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3373
$as_echo_n "checking for $ac_word... " >&6; }
3374
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3375
  $as_echo_n "(cached) " >&6
3376
else
3377
  if test -n "$ac_ct_AS"; then
3378
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3379
else
3380
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381
for as_dir in $PATH
3382
do
3383
  IFS=$as_save_IFS
3384
  test -z "$as_dir" && as_dir=.
3385
  for ac_exec_ext in '' $ac_executable_extensions; do
3386
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387
    ac_cv_prog_ac_ct_AS="as"
3388
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389
    break 2
3390
  fi
3391
done
3392
done
3393
IFS=$as_save_IFS
3394
 
3395
fi
3396
fi
3397
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3398
if test -n "$ac_ct_AS"; then
3399
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3400
$as_echo "$ac_ct_AS" >&6; }
3401
else
3402
  { $as_echo "$as_me:$LINENO: result: no" >&5
3403
$as_echo "no" >&6; }
3404
fi
3405
 
3406
  if test "x$ac_ct_AS" = x; then
3407
    AS=""
3408
  else
3409
    case $cross_compiling:$ac_tool_warned in
3410
yes:)
3411
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3412
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3413
ac_tool_warned=yes ;;
3414
esac
3415
    AS=$ac_ct_AS
3416
  fi
3417
else
3418
  AS="$ac_cv_prog_AS"
3419
fi
3420
 
3421
if test -n "$ac_tool_prefix"; then
3422
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3423
set dummy ${ac_tool_prefix}ar; ac_word=$2
3424
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3425
$as_echo_n "checking for $ac_word... " >&6; }
3426
if test "${ac_cv_prog_AR+set}" = set; then
3427
  $as_echo_n "(cached) " >&6
3428
else
3429
  if test -n "$AR"; then
3430
  ac_cv_prog_AR="$AR" # Let the user override the test.
3431
else
3432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433
for as_dir in $PATH
3434
do
3435
  IFS=$as_save_IFS
3436
  test -z "$as_dir" && as_dir=.
3437
  for ac_exec_ext in '' $ac_executable_extensions; do
3438
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439
    ac_cv_prog_AR="${ac_tool_prefix}ar"
3440
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441
    break 2
3442
  fi
3443
done
3444
done
3445
IFS=$as_save_IFS
3446
 
3447
fi
3448
fi
3449
AR=$ac_cv_prog_AR
3450
if test -n "$AR"; then
3451
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
3452
$as_echo "$AR" >&6; }
3453
else
3454
  { $as_echo "$as_me:$LINENO: result: no" >&5
3455
$as_echo "no" >&6; }
3456
fi
3457
 
3458
 
3459
fi
3460
if test -z "$ac_cv_prog_AR"; then
3461
  ac_ct_AR=$AR
3462
  # Extract the first word of "ar", so it can be a program name with args.
3463
set dummy ar; ac_word=$2
3464
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3465
$as_echo_n "checking for $ac_word... " >&6; }
3466
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3467
  $as_echo_n "(cached) " >&6
3468
else
3469
  if test -n "$ac_ct_AR"; then
3470
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3471
else
3472
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473
for as_dir in $PATH
3474
do
3475
  IFS=$as_save_IFS
3476
  test -z "$as_dir" && as_dir=.
3477
  for ac_exec_ext in '' $ac_executable_extensions; do
3478
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479
    ac_cv_prog_ac_ct_AR="ar"
3480
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481
    break 2
3482
  fi
3483
done
3484
done
3485
IFS=$as_save_IFS
3486
 
3487
fi
3488
fi
3489
ac_ct_AR=$ac_cv_prog_ac_ct_AR
3490
if test -n "$ac_ct_AR"; then
3491
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3492
$as_echo "$ac_ct_AR" >&6; }
3493
else
3494
  { $as_echo "$as_me:$LINENO: result: no" >&5
3495
$as_echo "no" >&6; }
3496
fi
3497
 
3498
  if test "x$ac_ct_AR" = x; then
3499
    AR=""
3500
  else
3501
    case $cross_compiling:$ac_tool_warned in
3502
yes:)
3503
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3504
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3505
ac_tool_warned=yes ;;
3506
esac
3507
    AR=$ac_ct_AR
3508
  fi
3509
else
3510
  AR="$ac_cv_prog_AR"
3511
fi
3512
 
3513
if test -n "$ac_tool_prefix"; then
3514
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3515
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3516
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3517
$as_echo_n "checking for $ac_word... " >&6; }
3518
if test "${ac_cv_prog_RANLIB+set}" = set; then
3519
  $as_echo_n "(cached) " >&6
3520
else
3521
  if test -n "$RANLIB"; then
3522
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3523
else
3524
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525
for as_dir in $PATH
3526
do
3527
  IFS=$as_save_IFS
3528
  test -z "$as_dir" && as_dir=.
3529
  for ac_exec_ext in '' $ac_executable_extensions; do
3530
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3532
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3533
    break 2
3534
  fi
3535
done
3536
done
3537
IFS=$as_save_IFS
3538
 
3539
fi
3540
fi
3541
RANLIB=$ac_cv_prog_RANLIB
3542
if test -n "$RANLIB"; then
3543
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3544
$as_echo "$RANLIB" >&6; }
3545
else
3546
  { $as_echo "$as_me:$LINENO: result: no" >&5
3547
$as_echo "no" >&6; }
3548
fi
3549
 
3550
 
3551
fi
3552
if test -z "$ac_cv_prog_RANLIB"; then
3553
  ac_ct_RANLIB=$RANLIB
3554
  # Extract the first word of "ranlib", so it can be a program name with args.
3555
set dummy ranlib; ac_word=$2
3556
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3557
$as_echo_n "checking for $ac_word... " >&6; }
3558
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3559
  $as_echo_n "(cached) " >&6
3560
else
3561
  if test -n "$ac_ct_RANLIB"; then
3562
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3563
else
3564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565
for as_dir in $PATH
3566
do
3567
  IFS=$as_save_IFS
3568
  test -z "$as_dir" && as_dir=.
3569
  for ac_exec_ext in '' $ac_executable_extensions; do
3570
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3572
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573
    break 2
3574
  fi
3575
done
3576
done
3577
IFS=$as_save_IFS
3578
 
3579
fi
3580
fi
3581
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3582
if test -n "$ac_ct_RANLIB"; then
3583
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3584
$as_echo "$ac_ct_RANLIB" >&6; }
3585
else
3586
  { $as_echo "$as_me:$LINENO: result: no" >&5
3587
$as_echo "no" >&6; }
3588
fi
3589
 
3590
  if test "x$ac_ct_RANLIB" = x; then
3591
    RANLIB=":"
3592
  else
3593
    case $cross_compiling:$ac_tool_warned in
3594
yes:)
3595
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3596
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3597
ac_tool_warned=yes ;;
3598
esac
3599
    RANLIB=$ac_ct_RANLIB
3600
  fi
3601
else
3602
  RANLIB="$ac_cv_prog_RANLIB"
3603
fi
3604
 
3605
if test -n "$ac_tool_prefix"; then
3606
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3607
set dummy ${ac_tool_prefix}readelf; ac_word=$2
3608
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3609
$as_echo_n "checking for $ac_word... " >&6; }
3610
if test "${ac_cv_prog_READELF+set}" = set; then
3611
  $as_echo_n "(cached) " >&6
3612
else
3613
  if test -n "$READELF"; then
3614
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
3615
else
3616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617
for as_dir in $PATH
3618
do
3619
  IFS=$as_save_IFS
3620
  test -z "$as_dir" && as_dir=.
3621
  for ac_exec_ext in '' $ac_executable_extensions; do
3622
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3623
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3624
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3625
    break 2
3626
  fi
3627
done
3628
done
3629
IFS=$as_save_IFS
3630
 
3631
fi
3632
fi
3633
READELF=$ac_cv_prog_READELF
3634
if test -n "$READELF"; then
3635
  { $as_echo "$as_me:$LINENO: result: $READELF" >&5
3636
$as_echo "$READELF" >&6; }
3637
else
3638
  { $as_echo "$as_me:$LINENO: result: no" >&5
3639
$as_echo "no" >&6; }
3640
fi
3641
 
3642
 
3643
fi
3644
if test -z "$ac_cv_prog_READELF"; then
3645
  ac_ct_READELF=$READELF
3646
  # Extract the first word of "readelf", so it can be a program name with args.
3647
set dummy readelf; ac_word=$2
3648
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3649
$as_echo_n "checking for $ac_word... " >&6; }
3650
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
3651
  $as_echo_n "(cached) " >&6
3652
else
3653
  if test -n "$ac_ct_READELF"; then
3654
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3655
else
3656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657
for as_dir in $PATH
3658
do
3659
  IFS=$as_save_IFS
3660
  test -z "$as_dir" && as_dir=.
3661
  for ac_exec_ext in '' $ac_executable_extensions; do
3662
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663
    ac_cv_prog_ac_ct_READELF="readelf"
3664
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3665
    break 2
3666
  fi
3667
done
3668
done
3669
IFS=$as_save_IFS
3670
 
3671
fi
3672
fi
3673
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3674
if test -n "$ac_ct_READELF"; then
3675
  { $as_echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
3676
$as_echo "$ac_ct_READELF" >&6; }
3677
else
3678
  { $as_echo "$as_me:$LINENO: result: no" >&5
3679
$as_echo "no" >&6; }
3680
fi
3681
 
3682
  if test "x$ac_ct_READELF" = x; then
3683
    READELF=":"
3684
  else
3685
    case $cross_compiling:$ac_tool_warned in
3686
yes:)
3687
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3688
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3689
ac_tool_warned=yes ;;
3690
esac
3691
    READELF=$ac_ct_READELF
3692
  fi
3693
else
3694
  READELF="$ac_cv_prog_READELF"
3695
fi
3696
 
3697
 
3698
# Find a good install program.  We prefer a C program (faster),
3699
# so one script is as good as another.  But avoid the broken or
3700
# incompatible versions:
3701
# SysV /etc/install, /usr/sbin/install
3702
# SunOS /usr/etc/install
3703
# IRIX /sbin/install
3704
# AIX /bin/install
3705
# AmigaOS /C/install, which installs bootblocks on floppy discs
3706
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3707
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3708
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3709
# OS/2's system install, which has a completely different semantic
3710
# ./install, which can be erroneously created by make from ./install.sh.
3711
# Reject install programs that cannot install multiple files.
3712
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3713
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3714
if test -z "$INSTALL"; then
3715
if test "${ac_cv_path_install+set}" = set; then
3716
  $as_echo_n "(cached) " >&6
3717
else
3718
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719
for as_dir in $PATH
3720
do
3721
  IFS=$as_save_IFS
3722
  test -z "$as_dir" && as_dir=.
3723
  # Account for people who put trailing slashes in PATH elements.
3724
case $as_dir/ in
3725
  ./ | .// | /cC/* | \
3726
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3727
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3728
  /usr/ucb/* ) ;;
3729
  *)
3730
    # OSF1 and SCO ODT 3.0 have their own names for install.
3731
    # Don't use installbsd from OSF since it installs stuff as root
3732
    # by default.
3733
    for ac_prog in ginstall scoinst install; do
3734
      for ac_exec_ext in '' $ac_executable_extensions; do
3735
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3736
          if test $ac_prog = install &&
3737
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3738
            # AIX install.  It has an incompatible calling convention.
3739
            :
3740
          elif test $ac_prog = install &&
3741
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3742
            # program-specific install script used by HP pwplus--don't use.
3743
            :
3744
          else
3745
            rm -rf conftest.one conftest.two conftest.dir
3746
            echo one > conftest.one
3747
            echo two > conftest.two
3748
            mkdir conftest.dir
3749
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3750
              test -s conftest.one && test -s conftest.two &&
3751
              test -s conftest.dir/conftest.one &&
3752
              test -s conftest.dir/conftest.two
3753
            then
3754
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3755
              break 3
3756
            fi
3757
          fi
3758
        fi
3759
      done
3760
    done
3761
    ;;
3762
esac
3763
 
3764
done
3765
IFS=$as_save_IFS
3766
 
3767
rm -rf conftest.one conftest.two conftest.dir
3768
 
3769
fi
3770
  if test "${ac_cv_path_install+set}" = set; then
3771
    INSTALL=$ac_cv_path_install
3772
  else
3773
    # As a last resort, use the slow shell script.  Don't cache a
3774
    # value for INSTALL within a source directory, because that will
3775
    # break other packages using the cache if that directory is
3776
    # removed, or if the value is a relative name.
3777
    INSTALL=$ac_install_sh
3778
  fi
3779
fi
3780
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3781
$as_echo "$INSTALL" >&6; }
3782
 
3783
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3784
# It thinks the first close brace ends the variable substitution.
3785
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3786
 
3787
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3788
 
3789
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3790
 
3791
 
3792
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
3793
ac_given_INSTALL=$INSTALL
3794
 
3795
 
3796
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3797
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3798
    # Check whether --enable-maintainer-mode was given.
3799
if test "${enable_maintainer_mode+set}" = set; then
3800
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3801
else
3802
  USE_MAINTAINER_MODE=no
3803
fi
3804
 
3805
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3806
$as_echo "$USE_MAINTAINER_MODE" >&6; }
3807
   if test $USE_MAINTAINER_MODE = yes; then
3808
  MAINTAINER_MODE_TRUE=
3809
  MAINTAINER_MODE_FALSE='#'
3810
else
3811
  MAINTAINER_MODE_TRUE='#'
3812
  MAINTAINER_MODE_FALSE=
3813
fi
3814
 
3815
  MAINT=$MAINTAINER_MODE_TRUE
3816
 
3817
 
3818
# By default we simply use the C compiler to build assembly code.
3819
 
3820
test "${CCAS+set}" = set || CCAS=$CC
3821
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3822
 
3823
 
3824
 
3825
 
3826
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
3827
# at least currently, we never actually build a program, so we never
3828
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
3829
# fails, because we are probably configuring with a cross compiler
3830
# which can't create executables.  So we include AC_EXEEXT to keep
3831
# automake happy, but we don't execute it, since we don't care about
3832
# the result.
3833
if false; then
3834
 
3835
  dummy_var=1
3836
fi
3837
 
3838
. ${newlib_basedir}/configure.host
3839
 
3840
newlib_cflags="${newlib_cflags} -fno-builtin"
3841
 
3842
NEWLIB_CFLAGS=${newlib_cflags}
3843
 
3844
 
3845
LDFLAGS=${ldflags}
3846
 
3847
 
3848
 if test x${newlib_elix_level} = x0; then
3849
  ELIX_LEVEL_0_TRUE=
3850
  ELIX_LEVEL_0_FALSE='#'
3851
else
3852
  ELIX_LEVEL_0_TRUE='#'
3853
  ELIX_LEVEL_0_FALSE=
3854
fi
3855
 
3856
 if test x${newlib_elix_level} = x1; then
3857
  ELIX_LEVEL_1_TRUE=
3858
  ELIX_LEVEL_1_FALSE='#'
3859
else
3860
  ELIX_LEVEL_1_TRUE='#'
3861
  ELIX_LEVEL_1_FALSE=
3862
fi
3863
 
3864
 if test x${newlib_elix_level} = x2; then
3865
  ELIX_LEVEL_2_TRUE=
3866
  ELIX_LEVEL_2_FALSE='#'
3867
else
3868
  ELIX_LEVEL_2_TRUE='#'
3869
  ELIX_LEVEL_2_FALSE=
3870
fi
3871
 
3872
 if test x${newlib_elix_level} = x3; then
3873
  ELIX_LEVEL_3_TRUE=
3874
  ELIX_LEVEL_3_FALSE='#'
3875
else
3876
  ELIX_LEVEL_3_TRUE='#'
3877
  ELIX_LEVEL_3_FALSE=
3878
fi
3879
 
3880
 if test x${newlib_elix_level} = x4; then
3881
  ELIX_LEVEL_4_TRUE=
3882
  ELIX_LEVEL_4_FALSE='#'
3883
else
3884
  ELIX_LEVEL_4_TRUE='#'
3885
  ELIX_LEVEL_4_FALSE=
3886
fi
3887
 
3888
 
3889
 if test x${use_libtool} = xyes; then
3890
  USE_LIBTOOL_TRUE=
3891
  USE_LIBTOOL_FALSE='#'
3892
else
3893
  USE_LIBTOOL_TRUE='#'
3894
  USE_LIBTOOL_FALSE=
3895
fi
3896
 
3897
 
3898
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3899
# use oext, which is set in configure.host based on the target platform.
3900
OBJEXT=${oext}
3901
 
3902
 
3903
 
3904
 
3905
 
3906
 
3907
 
3908
 
3909
 
3910
 
3911
 
3912
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3913
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3914
if test "${ac_cv_path_SED+set}" = set; then
3915
  $as_echo_n "(cached) " >&6
3916
else
3917
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3918
     for ac_i in 1 2 3 4 5 6 7; do
3919
       ac_script="$ac_script$as_nl$ac_script"
3920
     done
3921
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3922
     $as_unset ac_script || ac_script=
3923
     if test -z "$SED"; then
3924
  ac_path_SED_found=false
3925
  # Loop through the user's path and test for each of PROGNAME-LIST
3926
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927
for as_dir in $PATH
3928
do
3929
  IFS=$as_save_IFS
3930
  test -z "$as_dir" && as_dir=.
3931
  for ac_prog in sed gsed; do
3932
    for ac_exec_ext in '' $ac_executable_extensions; do
3933
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3934
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3935
# Check for GNU ac_path_SED and select it if it is found.
3936
  # Check for GNU $ac_path_SED
3937
case `"$ac_path_SED" --version 2>&1` in
3938
*GNU*)
3939
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3940
*)
3941
  ac_count=0
3942
  $as_echo_n 0123456789 >"conftest.in"
3943
  while :
3944
  do
3945
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3946
    mv "conftest.tmp" "conftest.in"
3947
    cp "conftest.in" "conftest.nl"
3948
    $as_echo '' >> "conftest.nl"
3949
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3950
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3951
    ac_count=`expr $ac_count + 1`
3952
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3953
      # Best one so far, save it but keep looking for a better one
3954
      ac_cv_path_SED="$ac_path_SED"
3955
      ac_path_SED_max=$ac_count
3956
    fi
3957
    # 10*(2^10) chars as input seems more than enough
3958
    test $ac_count -gt 10 && break
3959
  done
3960
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3961
esac
3962
 
3963
      $ac_path_SED_found && break 3
3964
    done
3965
  done
3966
done
3967
IFS=$as_save_IFS
3968
  if test -z "$ac_cv_path_SED"; then
3969
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3970
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3971
   { (exit 1); exit 1; }; }
3972
  fi
3973
else
3974
  ac_cv_path_SED=$SED
3975
fi
3976
 
3977
fi
3978
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3979
$as_echo "$ac_cv_path_SED" >&6; }
3980
 SED="$ac_cv_path_SED"
3981
  rm -f conftest.sed
3982
 
3983
test -z "$SED" && SED=sed
3984
Xsed="$SED -e 1s/^X//"
3985
 
3986
 
3987
 
3988
 
3989
 
3990
 
3991
 
3992
 
3993
 
3994
 
3995
 
3996
if test "${use_libtool}" = "yes"; then
3997
enable_win32_dll=yes
3998
 
3999
case $host in
4000
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4001
  if test -n "$ac_tool_prefix"; then
4002
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4003
set dummy ${ac_tool_prefix}as; ac_word=$2
4004
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4005
$as_echo_n "checking for $ac_word... " >&6; }
4006
if test "${ac_cv_prog_AS+set}" = set; then
4007
  $as_echo_n "(cached) " >&6
4008
else
4009
  if test -n "$AS"; then
4010
  ac_cv_prog_AS="$AS" # Let the user override the test.
4011
else
4012
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013
for as_dir in $PATH
4014
do
4015
  IFS=$as_save_IFS
4016
  test -z "$as_dir" && as_dir=.
4017
  for ac_exec_ext in '' $ac_executable_extensions; do
4018
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4019
    ac_cv_prog_AS="${ac_tool_prefix}as"
4020
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021
    break 2
4022
  fi
4023
done
4024
done
4025
IFS=$as_save_IFS
4026
 
4027
fi
4028
fi
4029
AS=$ac_cv_prog_AS
4030
if test -n "$AS"; then
4031
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
4032
$as_echo "$AS" >&6; }
4033
else
4034
  { $as_echo "$as_me:$LINENO: result: no" >&5
4035
$as_echo "no" >&6; }
4036
fi
4037
 
4038
 
4039
fi
4040
if test -z "$ac_cv_prog_AS"; then
4041
  ac_ct_AS=$AS
4042
  # Extract the first word of "as", so it can be a program name with args.
4043
set dummy as; ac_word=$2
4044
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4045
$as_echo_n "checking for $ac_word... " >&6; }
4046
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4047
  $as_echo_n "(cached) " >&6
4048
else
4049
  if test -n "$ac_ct_AS"; then
4050
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4051
else
4052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053
for as_dir in $PATH
4054
do
4055
  IFS=$as_save_IFS
4056
  test -z "$as_dir" && as_dir=.
4057
  for ac_exec_ext in '' $ac_executable_extensions; do
4058
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4059
    ac_cv_prog_ac_ct_AS="as"
4060
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061
    break 2
4062
  fi
4063
done
4064
done
4065
IFS=$as_save_IFS
4066
 
4067
fi
4068
fi
4069
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4070
if test -n "$ac_ct_AS"; then
4071
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4072
$as_echo "$ac_ct_AS" >&6; }
4073
else
4074
  { $as_echo "$as_me:$LINENO: result: no" >&5
4075
$as_echo "no" >&6; }
4076
fi
4077
 
4078
  if test "x$ac_ct_AS" = x; then
4079
    AS="false"
4080
  else
4081
    case $cross_compiling:$ac_tool_warned in
4082
yes:)
4083
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4084
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4085
ac_tool_warned=yes ;;
4086
esac
4087
    AS=$ac_ct_AS
4088
  fi
4089
else
4090
  AS="$ac_cv_prog_AS"
4091
fi
4092
 
4093
  if test -n "$ac_tool_prefix"; then
4094
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4095
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4096
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4097
$as_echo_n "checking for $ac_word... " >&6; }
4098
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4099
  $as_echo_n "(cached) " >&6
4100
else
4101
  if test -n "$DLLTOOL"; then
4102
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4103
else
4104
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105
for as_dir in $PATH
4106
do
4107
  IFS=$as_save_IFS
4108
  test -z "$as_dir" && as_dir=.
4109
  for ac_exec_ext in '' $ac_executable_extensions; do
4110
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4112
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113
    break 2
4114
  fi
4115
done
4116
done
4117
IFS=$as_save_IFS
4118
 
4119
fi
4120
fi
4121
DLLTOOL=$ac_cv_prog_DLLTOOL
4122
if test -n "$DLLTOOL"; then
4123
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4124
$as_echo "$DLLTOOL" >&6; }
4125
else
4126
  { $as_echo "$as_me:$LINENO: result: no" >&5
4127
$as_echo "no" >&6; }
4128
fi
4129
 
4130
 
4131
fi
4132
if test -z "$ac_cv_prog_DLLTOOL"; then
4133
  ac_ct_DLLTOOL=$DLLTOOL
4134
  # Extract the first word of "dlltool", so it can be a program name with args.
4135
set dummy dlltool; ac_word=$2
4136
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4137
$as_echo_n "checking for $ac_word... " >&6; }
4138
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4139
  $as_echo_n "(cached) " >&6
4140
else
4141
  if test -n "$ac_ct_DLLTOOL"; then
4142
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4143
else
4144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145
for as_dir in $PATH
4146
do
4147
  IFS=$as_save_IFS
4148
  test -z "$as_dir" && as_dir=.
4149
  for ac_exec_ext in '' $ac_executable_extensions; do
4150
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4151
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4152
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153
    break 2
4154
  fi
4155
done
4156
done
4157
IFS=$as_save_IFS
4158
 
4159
fi
4160
fi
4161
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4162
if test -n "$ac_ct_DLLTOOL"; then
4163
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4164
$as_echo "$ac_ct_DLLTOOL" >&6; }
4165
else
4166
  { $as_echo "$as_me:$LINENO: result: no" >&5
4167
$as_echo "no" >&6; }
4168
fi
4169
 
4170
  if test "x$ac_ct_DLLTOOL" = x; then
4171
    DLLTOOL="false"
4172
  else
4173
    case $cross_compiling:$ac_tool_warned in
4174
yes:)
4175
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4176
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4177
ac_tool_warned=yes ;;
4178
esac
4179
    DLLTOOL=$ac_ct_DLLTOOL
4180
  fi
4181
else
4182
  DLLTOOL="$ac_cv_prog_DLLTOOL"
4183
fi
4184
 
4185
  if test -n "$ac_tool_prefix"; then
4186
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4187
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4188
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4189
$as_echo_n "checking for $ac_word... " >&6; }
4190
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4191
  $as_echo_n "(cached) " >&6
4192
else
4193
  if test -n "$OBJDUMP"; then
4194
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4195
else
4196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197
for as_dir in $PATH
4198
do
4199
  IFS=$as_save_IFS
4200
  test -z "$as_dir" && as_dir=.
4201
  for ac_exec_ext in '' $ac_executable_extensions; do
4202
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4204
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205
    break 2
4206
  fi
4207
done
4208
done
4209
IFS=$as_save_IFS
4210
 
4211
fi
4212
fi
4213
OBJDUMP=$ac_cv_prog_OBJDUMP
4214
if test -n "$OBJDUMP"; then
4215
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4216
$as_echo "$OBJDUMP" >&6; }
4217
else
4218
  { $as_echo "$as_me:$LINENO: result: no" >&5
4219
$as_echo "no" >&6; }
4220
fi
4221
 
4222
 
4223
fi
4224
if test -z "$ac_cv_prog_OBJDUMP"; then
4225
  ac_ct_OBJDUMP=$OBJDUMP
4226
  # Extract the first word of "objdump", so it can be a program name with args.
4227
set dummy objdump; ac_word=$2
4228
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4229
$as_echo_n "checking for $ac_word... " >&6; }
4230
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4231
  $as_echo_n "(cached) " >&6
4232
else
4233
  if test -n "$ac_ct_OBJDUMP"; then
4234
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4235
else
4236
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237
for as_dir in $PATH
4238
do
4239
  IFS=$as_save_IFS
4240
  test -z "$as_dir" && as_dir=.
4241
  for ac_exec_ext in '' $ac_executable_extensions; do
4242
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4244
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245
    break 2
4246
  fi
4247
done
4248
done
4249
IFS=$as_save_IFS
4250
 
4251
fi
4252
fi
4253
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4254
if test -n "$ac_ct_OBJDUMP"; then
4255
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4256
$as_echo "$ac_ct_OBJDUMP" >&6; }
4257
else
4258
  { $as_echo "$as_me:$LINENO: result: no" >&5
4259
$as_echo "no" >&6; }
4260
fi
4261
 
4262
  if test "x$ac_ct_OBJDUMP" = x; then
4263
    OBJDUMP="false"
4264
  else
4265
    case $cross_compiling:$ac_tool_warned in
4266
yes:)
4267
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4268
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4269
ac_tool_warned=yes ;;
4270
esac
4271
    OBJDUMP=$ac_ct_OBJDUMP
4272
  fi
4273
else
4274
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4275
fi
4276
 
4277
  ;;
4278
esac
4279
 
4280
test -z "$AS" && AS=as
4281
 
4282
 
4283
 
4284
 
4285
 
4286
test -z "$DLLTOOL" && DLLTOOL=dlltool
4287
 
4288
 
4289
 
4290
 
4291
 
4292
test -z "$OBJDUMP" && OBJDUMP=objdump
4293
 
4294
 
4295
 
4296
 
4297
 
4298
 
4299
 
4300
case `pwd` in
4301
  *\ * | *\     *)
4302
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4303
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4304
esac
4305
 
4306
 
4307
 
4308
macro_version='2.2.6'
4309
macro_revision='1.3012'
4310
 
4311
 
4312
 
4313
 
4314
 
4315
 
4316
 
4317
 
4318
 
4319
 
4320
 
4321
 
4322
 
4323
ltmain="$ac_aux_dir/ltmain.sh"
4324
 
4325
ac_ext=c
4326
ac_cpp='$CPP $CPPFLAGS'
4327
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330
if test -n "$ac_tool_prefix"; then
4331
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4332
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4333
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4334
$as_echo_n "checking for $ac_word... " >&6; }
4335
if test "${ac_cv_prog_CC+set}" = set; then
4336
  $as_echo_n "(cached) " >&6
4337
else
4338
  if test -n "$CC"; then
4339
  ac_cv_prog_CC="$CC" # Let the user override the test.
4340
else
4341
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342
for as_dir in $PATH
4343
do
4344
  IFS=$as_save_IFS
4345
  test -z "$as_dir" && as_dir=.
4346
  for ac_exec_ext in '' $ac_executable_extensions; do
4347
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4348
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4349
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4350
    break 2
4351
  fi
4352
done
4353
done
4354
IFS=$as_save_IFS
4355
 
4356
fi
4357
fi
4358
CC=$ac_cv_prog_CC
4359
if test -n "$CC"; then
4360
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4361
$as_echo "$CC" >&6; }
4362
else
4363
  { $as_echo "$as_me:$LINENO: result: no" >&5
4364
$as_echo "no" >&6; }
4365
fi
4366
 
4367
 
4368
fi
4369
if test -z "$ac_cv_prog_CC"; then
4370
  ac_ct_CC=$CC
4371
  # Extract the first word of "gcc", so it can be a program name with args.
4372
set dummy gcc; ac_word=$2
4373
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4374
$as_echo_n "checking for $ac_word... " >&6; }
4375
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4376
  $as_echo_n "(cached) " >&6
4377
else
4378
  if test -n "$ac_ct_CC"; then
4379
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4380
else
4381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382
for as_dir in $PATH
4383
do
4384
  IFS=$as_save_IFS
4385
  test -z "$as_dir" && as_dir=.
4386
  for ac_exec_ext in '' $ac_executable_extensions; do
4387
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388
    ac_cv_prog_ac_ct_CC="gcc"
4389
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390
    break 2
4391
  fi
4392
done
4393
done
4394
IFS=$as_save_IFS
4395
 
4396
fi
4397
fi
4398
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4399
if test -n "$ac_ct_CC"; then
4400
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4401
$as_echo "$ac_ct_CC" >&6; }
4402
else
4403
  { $as_echo "$as_me:$LINENO: result: no" >&5
4404
$as_echo "no" >&6; }
4405
fi
4406
 
4407
  if test "x$ac_ct_CC" = x; then
4408
    CC=""
4409
  else
4410
    case $cross_compiling:$ac_tool_warned in
4411
yes:)
4412
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4413
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4414
ac_tool_warned=yes ;;
4415
esac
4416
    CC=$ac_ct_CC
4417
  fi
4418
else
4419
  CC="$ac_cv_prog_CC"
4420
fi
4421
 
4422
if test -z "$CC"; then
4423
          if test -n "$ac_tool_prefix"; then
4424
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4425
set dummy ${ac_tool_prefix}cc; ac_word=$2
4426
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4427
$as_echo_n "checking for $ac_word... " >&6; }
4428
if test "${ac_cv_prog_CC+set}" = set; then
4429
  $as_echo_n "(cached) " >&6
4430
else
4431
  if test -n "$CC"; then
4432
  ac_cv_prog_CC="$CC" # Let the user override the test.
4433
else
4434
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435
for as_dir in $PATH
4436
do
4437
  IFS=$as_save_IFS
4438
  test -z "$as_dir" && as_dir=.
4439
  for ac_exec_ext in '' $ac_executable_extensions; do
4440
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4441
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4442
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443
    break 2
4444
  fi
4445
done
4446
done
4447
IFS=$as_save_IFS
4448
 
4449
fi
4450
fi
4451
CC=$ac_cv_prog_CC
4452
if test -n "$CC"; then
4453
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4454
$as_echo "$CC" >&6; }
4455
else
4456
  { $as_echo "$as_me:$LINENO: result: no" >&5
4457
$as_echo "no" >&6; }
4458
fi
4459
 
4460
 
4461
  fi
4462
fi
4463
if test -z "$CC"; then
4464
  # Extract the first word of "cc", so it can be a program name with args.
4465
set dummy cc; ac_word=$2
4466
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4467
$as_echo_n "checking for $ac_word... " >&6; }
4468
if test "${ac_cv_prog_CC+set}" = set; then
4469
  $as_echo_n "(cached) " >&6
4470
else
4471
  if test -n "$CC"; then
4472
  ac_cv_prog_CC="$CC" # Let the user override the test.
4473
else
4474
  ac_prog_rejected=no
4475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476
for as_dir in $PATH
4477
do
4478
  IFS=$as_save_IFS
4479
  test -z "$as_dir" && as_dir=.
4480
  for ac_exec_ext in '' $ac_executable_extensions; do
4481
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4483
       ac_prog_rejected=yes
4484
       continue
4485
     fi
4486
    ac_cv_prog_CC="cc"
4487
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488
    break 2
4489
  fi
4490
done
4491
done
4492
IFS=$as_save_IFS
4493
 
4494
if test $ac_prog_rejected = yes; then
4495
  # We found a bogon in the path, so make sure we never use it.
4496
  set dummy $ac_cv_prog_CC
4497
  shift
4498
  if test $# != 0; then
4499
    # We chose a different compiler from the bogus one.
4500
    # However, it has the same basename, so the bogon will be chosen
4501
    # first if we set CC to just the basename; use the full file name.
4502
    shift
4503
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4504
  fi
4505
fi
4506
fi
4507
fi
4508
CC=$ac_cv_prog_CC
4509
if test -n "$CC"; then
4510
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4511
$as_echo "$CC" >&6; }
4512
else
4513
  { $as_echo "$as_me:$LINENO: result: no" >&5
4514
$as_echo "no" >&6; }
4515
fi
4516
 
4517
 
4518
fi
4519
if test -z "$CC"; then
4520
  if test -n "$ac_tool_prefix"; then
4521
  for ac_prog in cl.exe
4522
  do
4523
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4524
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4525
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4526
$as_echo_n "checking for $ac_word... " >&6; }
4527
if test "${ac_cv_prog_CC+set}" = set; then
4528
  $as_echo_n "(cached) " >&6
4529
else
4530
  if test -n "$CC"; then
4531
  ac_cv_prog_CC="$CC" # Let the user override the test.
4532
else
4533
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534
for as_dir in $PATH
4535
do
4536
  IFS=$as_save_IFS
4537
  test -z "$as_dir" && as_dir=.
4538
  for ac_exec_ext in '' $ac_executable_extensions; do
4539
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4541
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542
    break 2
4543
  fi
4544
done
4545
done
4546
IFS=$as_save_IFS
4547
 
4548
fi
4549
fi
4550
CC=$ac_cv_prog_CC
4551
if test -n "$CC"; then
4552
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4553
$as_echo "$CC" >&6; }
4554
else
4555
  { $as_echo "$as_me:$LINENO: result: no" >&5
4556
$as_echo "no" >&6; }
4557
fi
4558
 
4559
 
4560
    test -n "$CC" && break
4561
  done
4562
fi
4563
if test -z "$CC"; then
4564
  ac_ct_CC=$CC
4565
  for ac_prog in cl.exe
4566
do
4567
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4568
set dummy $ac_prog; ac_word=$2
4569
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4570
$as_echo_n "checking for $ac_word... " >&6; }
4571
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4572
  $as_echo_n "(cached) " >&6
4573
else
4574
  if test -n "$ac_ct_CC"; then
4575
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4576
else
4577
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578
for as_dir in $PATH
4579
do
4580
  IFS=$as_save_IFS
4581
  test -z "$as_dir" && as_dir=.
4582
  for ac_exec_ext in '' $ac_executable_extensions; do
4583
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584
    ac_cv_prog_ac_ct_CC="$ac_prog"
4585
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586
    break 2
4587
  fi
4588
done
4589
done
4590
IFS=$as_save_IFS
4591
 
4592
fi
4593
fi
4594
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4595
if test -n "$ac_ct_CC"; then
4596
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4597
$as_echo "$ac_ct_CC" >&6; }
4598
else
4599
  { $as_echo "$as_me:$LINENO: result: no" >&5
4600
$as_echo "no" >&6; }
4601
fi
4602
 
4603
 
4604
  test -n "$ac_ct_CC" && break
4605
done
4606
 
4607
  if test "x$ac_ct_CC" = x; then
4608
    CC=""
4609
  else
4610
    case $cross_compiling:$ac_tool_warned in
4611
yes:)
4612
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4613
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4614
ac_tool_warned=yes ;;
4615
esac
4616
    CC=$ac_ct_CC
4617
  fi
4618
fi
4619
 
4620
fi
4621
 
4622
 
4623
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4624
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4625
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4626
See \`config.log' for more details." >&5
4627
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4628
See \`config.log' for more details." >&2;}
4629
   { (exit 1); exit 1; }; }; }
4630
 
4631
# Provide some information about the compiler.
4632
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4633
set X $ac_compile
4634
ac_compiler=$2
4635
{ (ac_try="$ac_compiler --version >&5"
4636
case "(($ac_try" in
4637
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638
  *) ac_try_echo=$ac_try;;
4639
esac
4640
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4641
$as_echo "$ac_try_echo") >&5
4642
  (eval "$ac_compiler --version >&5") 2>&5
4643
  ac_status=$?
4644
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645
  (exit $ac_status); }
4646
{ (ac_try="$ac_compiler -v >&5"
4647
case "(($ac_try" in
4648
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649
  *) ac_try_echo=$ac_try;;
4650
esac
4651
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4652
$as_echo "$ac_try_echo") >&5
4653
  (eval "$ac_compiler -v >&5") 2>&5
4654
  ac_status=$?
4655
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656
  (exit $ac_status); }
4657
{ (ac_try="$ac_compiler -V >&5"
4658
case "(($ac_try" in
4659
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660
  *) ac_try_echo=$ac_try;;
4661
esac
4662
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4663
$as_echo "$ac_try_echo") >&5
4664
  (eval "$ac_compiler -V >&5") 2>&5
4665
  ac_status=$?
4666
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667
  (exit $ac_status); }
4668
 
4669
cat >conftest.$ac_ext <<_ACEOF
4670
/* confdefs.h.  */
4671
_ACEOF
4672
cat confdefs.h >>conftest.$ac_ext
4673
cat >>conftest.$ac_ext <<_ACEOF
4674
/* end confdefs.h.  */
4675
 
4676
int
4677
main ()
4678
{
4679
 
4680
  ;
4681
  return 0;
4682
}
4683
_ACEOF
4684
ac_clean_files_save=$ac_clean_files
4685
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4686
# Try to create an executable without -o first, disregard a.out.
4687
# It will help us diagnose broken compilers, and finding out an intuition
4688
# of exeext.
4689
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4690
$as_echo_n "checking for C compiler default output file name... " >&6; }
4691
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4692
 
4693
# The possible output files:
4694
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4695
 
4696
ac_rmfiles=
4697
for ac_file in $ac_files
4698
do
4699
  case $ac_file in
4700
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4701
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4702
  esac
4703
done
4704
rm -f $ac_rmfiles
4705
 
4706
if { (ac_try="$ac_link_default"
4707
case "(($ac_try" in
4708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709
  *) ac_try_echo=$ac_try;;
4710
esac
4711
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4712
$as_echo "$ac_try_echo") >&5
4713
  (eval "$ac_link_default") 2>&5
4714
  ac_status=$?
4715
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716
  (exit $ac_status); }; then
4717
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4718
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4719
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4720
# so that the user can short-circuit this test for compilers unknown to
4721
# Autoconf.
4722
for ac_file in $ac_files ''
4723
do
4724
  test -f "$ac_file" || continue
4725
  case $ac_file in
4726
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4727
        ;;
4728
    [ab].out )
4729
        # We found the default executable, but exeext='' is most
4730
        # certainly right.
4731
        break;;
4732
    *.* )
4733
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4734
        then :; else
4735
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4736
        fi
4737
        # We set ac_cv_exeext here because the later test for it is not
4738
        # safe: cross compilers may not add the suffix if given an `-o'
4739
        # argument, so we may need to know it at that point already.
4740
        # Even if this section looks crufty: it has the advantage of
4741
        # actually working.
4742
        break;;
4743
    * )
4744
        break;;
4745
  esac
4746
done
4747
test "$ac_cv_exeext" = no && ac_cv_exeext=
4748
 
4749
else
4750
  ac_file=''
4751
fi
4752
 
4753
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4754
$as_echo "$ac_file" >&6; }
4755
if test -z "$ac_file"; then
4756
  $as_echo "$as_me: failed program was:" >&5
4757
sed 's/^/| /' conftest.$ac_ext >&5
4758
 
4759
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4760
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4761
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4762
See \`config.log' for more details." >&5
4763
$as_echo "$as_me: error: C compiler cannot create executables
4764
See \`config.log' for more details." >&2;}
4765
   { (exit 77); exit 77; }; }; }
4766
fi
4767
 
4768
ac_exeext=$ac_cv_exeext
4769
 
4770
# Check that the compiler produces executables we can run.  If not, either
4771
# the compiler is broken, or we cross compile.
4772
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4773
$as_echo_n "checking whether the C compiler works... " >&6; }
4774
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4775
# If not cross compiling, check that we can run a simple program.
4776
if test "$cross_compiling" != yes; then
4777
  if { ac_try='./$ac_file'
4778
  { (case "(($ac_try" in
4779
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780
  *) ac_try_echo=$ac_try;;
4781
esac
4782
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4783
$as_echo "$ac_try_echo") >&5
4784
  (eval "$ac_try") 2>&5
4785
  ac_status=$?
4786
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787
  (exit $ac_status); }; }; then
4788
    cross_compiling=no
4789
  else
4790
    if test "$cross_compiling" = maybe; then
4791
        cross_compiling=yes
4792
    else
4793
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4794
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4795
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4796
If you meant to cross compile, use \`--host'.
4797
See \`config.log' for more details." >&5
4798
$as_echo "$as_me: error: cannot run C compiled programs.
4799
If you meant to cross compile, use \`--host'.
4800
See \`config.log' for more details." >&2;}
4801
   { (exit 1); exit 1; }; }; }
4802
    fi
4803
  fi
4804
fi
4805
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4806
$as_echo "yes" >&6; }
4807
 
4808
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4809
ac_clean_files=$ac_clean_files_save
4810
# Check that the compiler produces executables we can run.  If not, either
4811
# the compiler is broken, or we cross compile.
4812
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4813
$as_echo_n "checking whether we are cross compiling... " >&6; }
4814
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4815
$as_echo "$cross_compiling" >&6; }
4816
 
4817
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4818
$as_echo_n "checking for suffix of executables... " >&6; }
4819
if { (ac_try="$ac_link"
4820
case "(($ac_try" in
4821
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822
  *) ac_try_echo=$ac_try;;
4823
esac
4824
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4825
$as_echo "$ac_try_echo") >&5
4826
  (eval "$ac_link") 2>&5
4827
  ac_status=$?
4828
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829
  (exit $ac_status); }; then
4830
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4831
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4832
# work properly (i.e., refer to `conftest.exe'), while it won't with
4833
# `rm'.
4834
for ac_file in conftest.exe conftest conftest.*; do
4835
  test -f "$ac_file" || continue
4836
  case $ac_file in
4837
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4838
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4839
          break;;
4840
    * ) break;;
4841
  esac
4842
done
4843
else
4844
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4845
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4846
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4847
See \`config.log' for more details." >&5
4848
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4849
See \`config.log' for more details." >&2;}
4850
   { (exit 1); exit 1; }; }; }
4851
fi
4852
 
4853
rm -f conftest$ac_cv_exeext
4854
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4855
$as_echo "$ac_cv_exeext" >&6; }
4856
 
4857
rm -f conftest.$ac_ext
4858
EXEEXT=$ac_cv_exeext
4859
ac_exeext=$EXEEXT
4860
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4861
$as_echo_n "checking for suffix of object files... " >&6; }
4862
if test "${ac_cv_objext+set}" = set; then
4863
  $as_echo_n "(cached) " >&6
4864
else
4865
  cat >conftest.$ac_ext <<_ACEOF
4866
/* confdefs.h.  */
4867
_ACEOF
4868
cat confdefs.h >>conftest.$ac_ext
4869
cat >>conftest.$ac_ext <<_ACEOF
4870
/* end confdefs.h.  */
4871
 
4872
int
4873
main ()
4874
{
4875
 
4876
  ;
4877
  return 0;
4878
}
4879
_ACEOF
4880
rm -f conftest.o conftest.obj
4881
if { (ac_try="$ac_compile"
4882
case "(($ac_try" in
4883
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884
  *) ac_try_echo=$ac_try;;
4885
esac
4886
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4887
$as_echo "$ac_try_echo") >&5
4888
  (eval "$ac_compile") 2>&5
4889
  ac_status=$?
4890
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891
  (exit $ac_status); }; then
4892
  for ac_file in conftest.o conftest.obj conftest.*; do
4893
  test -f "$ac_file" || continue;
4894
  case $ac_file in
4895
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4896
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4897
       break;;
4898
  esac
4899
done
4900
else
4901
  $as_echo "$as_me: failed program was:" >&5
4902
sed 's/^/| /' conftest.$ac_ext >&5
4903
 
4904
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4905
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4906
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4907
See \`config.log' for more details." >&5
4908
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4909
See \`config.log' for more details." >&2;}
4910
   { (exit 1); exit 1; }; }; }
4911
fi
4912
 
4913
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4914
fi
4915
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4916
$as_echo "$ac_cv_objext" >&6; }
4917
OBJEXT=$ac_cv_objext
4918
ac_objext=$OBJEXT
4919
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4920
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4921
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4922
  $as_echo_n "(cached) " >&6
4923
else
4924
  cat >conftest.$ac_ext <<_ACEOF
4925
/* confdefs.h.  */
4926
_ACEOF
4927
cat confdefs.h >>conftest.$ac_ext
4928
cat >>conftest.$ac_ext <<_ACEOF
4929
/* end confdefs.h.  */
4930
 
4931
int
4932
main ()
4933
{
4934
#ifndef __GNUC__
4935
       choke me
4936
#endif
4937
 
4938
  ;
4939
  return 0;
4940
}
4941
_ACEOF
4942
rm -f conftest.$ac_objext
4943
if { (ac_try="$ac_compile"
4944
case "(($ac_try" in
4945
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946
  *) ac_try_echo=$ac_try;;
4947
esac
4948
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4949
$as_echo "$ac_try_echo") >&5
4950
  (eval "$ac_compile") 2>conftest.er1
4951
  ac_status=$?
4952
  grep -v '^ *+' conftest.er1 >conftest.err
4953
  rm -f conftest.er1
4954
  cat conftest.err >&5
4955
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956
  (exit $ac_status); } && {
4957
         test -z "$ac_c_werror_flag" ||
4958
         test ! -s conftest.err
4959
       } && test -s conftest.$ac_objext; then
4960
  ac_compiler_gnu=yes
4961
else
4962
  $as_echo "$as_me: failed program was:" >&5
4963
sed 's/^/| /' conftest.$ac_ext >&5
4964
 
4965
        ac_compiler_gnu=no
4966
fi
4967
 
4968
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4970
 
4971
fi
4972
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4973
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4974
if test $ac_compiler_gnu = yes; then
4975
  GCC=yes
4976
else
4977
  GCC=
4978
fi
4979
ac_test_CFLAGS=${CFLAGS+set}
4980
ac_save_CFLAGS=$CFLAGS
4981
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4982
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4983
if test "${ac_cv_prog_cc_g+set}" = set; then
4984
  $as_echo_n "(cached) " >&6
4985
else
4986
  ac_save_c_werror_flag=$ac_c_werror_flag
4987
   ac_c_werror_flag=yes
4988
   ac_cv_prog_cc_g=no
4989
   CFLAGS="-g"
4990
   cat >conftest.$ac_ext <<_ACEOF
4991
/* confdefs.h.  */
4992
_ACEOF
4993
cat confdefs.h >>conftest.$ac_ext
4994
cat >>conftest.$ac_ext <<_ACEOF
4995
/* end confdefs.h.  */
4996
 
4997
int
4998
main ()
4999
{
5000
 
5001
  ;
5002
  return 0;
5003
}
5004
_ACEOF
5005
rm -f conftest.$ac_objext
5006
if { (ac_try="$ac_compile"
5007
case "(($ac_try" in
5008
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009
  *) ac_try_echo=$ac_try;;
5010
esac
5011
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5012
$as_echo "$ac_try_echo") >&5
5013
  (eval "$ac_compile") 2>conftest.er1
5014
  ac_status=$?
5015
  grep -v '^ *+' conftest.er1 >conftest.err
5016
  rm -f conftest.er1
5017
  cat conftest.err >&5
5018
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019
  (exit $ac_status); } && {
5020
         test -z "$ac_c_werror_flag" ||
5021
         test ! -s conftest.err
5022
       } && test -s conftest.$ac_objext; then
5023
  ac_cv_prog_cc_g=yes
5024
else
5025
  $as_echo "$as_me: failed program was:" >&5
5026
sed 's/^/| /' conftest.$ac_ext >&5
5027
 
5028
        CFLAGS=""
5029
      cat >conftest.$ac_ext <<_ACEOF
5030
/* confdefs.h.  */
5031
_ACEOF
5032
cat confdefs.h >>conftest.$ac_ext
5033
cat >>conftest.$ac_ext <<_ACEOF
5034
/* end confdefs.h.  */
5035
 
5036
int
5037
main ()
5038
{
5039
 
5040
  ;
5041
  return 0;
5042
}
5043
_ACEOF
5044
rm -f conftest.$ac_objext
5045
if { (ac_try="$ac_compile"
5046
case "(($ac_try" in
5047
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048
  *) ac_try_echo=$ac_try;;
5049
esac
5050
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5051
$as_echo "$ac_try_echo") >&5
5052
  (eval "$ac_compile") 2>conftest.er1
5053
  ac_status=$?
5054
  grep -v '^ *+' conftest.er1 >conftest.err
5055
  rm -f conftest.er1
5056
  cat conftest.err >&5
5057
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058
  (exit $ac_status); } && {
5059
         test -z "$ac_c_werror_flag" ||
5060
         test ! -s conftest.err
5061
       } && test -s conftest.$ac_objext; then
5062
  :
5063
else
5064
  $as_echo "$as_me: failed program was:" >&5
5065
sed 's/^/| /' conftest.$ac_ext >&5
5066
 
5067
        ac_c_werror_flag=$ac_save_c_werror_flag
5068
         CFLAGS="-g"
5069
         cat >conftest.$ac_ext <<_ACEOF
5070
/* confdefs.h.  */
5071
_ACEOF
5072
cat confdefs.h >>conftest.$ac_ext
5073
cat >>conftest.$ac_ext <<_ACEOF
5074
/* end confdefs.h.  */
5075
 
5076
int
5077
main ()
5078
{
5079
 
5080
  ;
5081
  return 0;
5082
}
5083
_ACEOF
5084
rm -f conftest.$ac_objext
5085
if { (ac_try="$ac_compile"
5086
case "(($ac_try" in
5087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088
  *) ac_try_echo=$ac_try;;
5089
esac
5090
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5091
$as_echo "$ac_try_echo") >&5
5092
  (eval "$ac_compile") 2>conftest.er1
5093
  ac_status=$?
5094
  grep -v '^ *+' conftest.er1 >conftest.err
5095
  rm -f conftest.er1
5096
  cat conftest.err >&5
5097
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098
  (exit $ac_status); } && {
5099
         test -z "$ac_c_werror_flag" ||
5100
         test ! -s conftest.err
5101
       } && test -s conftest.$ac_objext; then
5102
  ac_cv_prog_cc_g=yes
5103
else
5104
  $as_echo "$as_me: failed program was:" >&5
5105
sed 's/^/| /' conftest.$ac_ext >&5
5106
 
5107
 
5108
fi
5109
 
5110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111
fi
5112
 
5113
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114
fi
5115
 
5116
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117
   ac_c_werror_flag=$ac_save_c_werror_flag
5118
fi
5119
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5120
$as_echo "$ac_cv_prog_cc_g" >&6; }
5121
if test "$ac_test_CFLAGS" = set; then
5122
  CFLAGS=$ac_save_CFLAGS
5123
elif test $ac_cv_prog_cc_g = yes; then
5124
  if test "$GCC" = yes; then
5125
    CFLAGS="-g -O2"
5126
  else
5127
    CFLAGS="-g"
5128
  fi
5129
else
5130
  if test "$GCC" = yes; then
5131
    CFLAGS="-O2"
5132
  else
5133
    CFLAGS=
5134
  fi
5135
fi
5136
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5137
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5138
if test "${ac_cv_prog_cc_c89+set}" = set; then
5139
  $as_echo_n "(cached) " >&6
5140
else
5141
  ac_cv_prog_cc_c89=no
5142
ac_save_CC=$CC
5143
cat >conftest.$ac_ext <<_ACEOF
5144
/* confdefs.h.  */
5145
_ACEOF
5146
cat confdefs.h >>conftest.$ac_ext
5147
cat >>conftest.$ac_ext <<_ACEOF
5148
/* end confdefs.h.  */
5149
#include 
5150
#include 
5151
#include 
5152
#include 
5153
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5154
struct buf { int x; };
5155
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5156
static char *e (p, i)
5157
     char **p;
5158
     int i;
5159
{
5160
  return p[i];
5161
}
5162
static char *f (char * (*g) (char **, int), char **p, ...)
5163
{
5164
  char *s;
5165
  va_list v;
5166
  va_start (v,p);
5167
  s = g (p, va_arg (v,int));
5168
  va_end (v);
5169
  return s;
5170
}
5171
 
5172
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5173
   function prototypes and stuff, but not '\xHH' hex character constants.
5174
   These don't provoke an error unfortunately, instead are silently treated
5175
   as 'x'.  The following induces an error, until -std is added to get
5176
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5177
   array size at least.  It's necessary to write '\x00'==0 to get something
5178
   that's true only with -std.  */
5179
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5180
 
5181
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5182
   inside strings and character constants.  */
5183
#define FOO(x) 'x'
5184
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5185
 
5186
int test (int i, double x);
5187
struct s1 {int (*f) (int a);};
5188
struct s2 {int (*f) (double a);};
5189
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5190
int argc;
5191
char **argv;
5192
int
5193
main ()
5194
{
5195
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5196
  ;
5197
  return 0;
5198
}
5199
_ACEOF
5200
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5201
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5202
do
5203
  CC="$ac_save_CC $ac_arg"
5204
  rm -f conftest.$ac_objext
5205
if { (ac_try="$ac_compile"
5206
case "(($ac_try" in
5207
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208
  *) ac_try_echo=$ac_try;;
5209
esac
5210
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5211
$as_echo "$ac_try_echo") >&5
5212
  (eval "$ac_compile") 2>conftest.er1
5213
  ac_status=$?
5214
  grep -v '^ *+' conftest.er1 >conftest.err
5215
  rm -f conftest.er1
5216
  cat conftest.err >&5
5217
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218
  (exit $ac_status); } && {
5219
         test -z "$ac_c_werror_flag" ||
5220
         test ! -s conftest.err
5221
       } && test -s conftest.$ac_objext; then
5222
  ac_cv_prog_cc_c89=$ac_arg
5223
else
5224
  $as_echo "$as_me: failed program was:" >&5
5225
sed 's/^/| /' conftest.$ac_ext >&5
5226
 
5227
 
5228
fi
5229
 
5230
rm -f core conftest.err conftest.$ac_objext
5231
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5232
done
5233
rm -f conftest.$ac_ext
5234
CC=$ac_save_CC
5235
 
5236
fi
5237
# AC_CACHE_VAL
5238
case "x$ac_cv_prog_cc_c89" in
5239
  x)
5240
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5241
$as_echo "none needed" >&6; } ;;
5242
  xno)
5243
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5244
$as_echo "unsupported" >&6; } ;;
5245
  *)
5246
    CC="$CC $ac_cv_prog_cc_c89"
5247
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5248
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5249
esac
5250
 
5251
 
5252
ac_ext=c
5253
ac_cpp='$CPP $CPPFLAGS'
5254
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5257
 
5258
depcc="$CC"   am_compiler_list=
5259
 
5260
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5261
$as_echo_n "checking dependency style of $depcc... " >&6; }
5262
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5263
  $as_echo_n "(cached) " >&6
5264
else
5265
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5266
  # We make a subdir and do the tests there.  Otherwise we can end up
5267
  # making bogus files that we don't know about and never remove.  For
5268
  # instance it was reported that on HP-UX the gcc test will end up
5269
  # making a dummy file named `D' -- because `-MD' means `put the output
5270
  # in D'.
5271
  mkdir conftest.dir
5272
  # Copy depcomp to subdir because otherwise we won't find it if we're
5273
  # using a relative directory.
5274
  cp "$am_depcomp" conftest.dir
5275
  cd conftest.dir
5276
  # We will build objects and dependencies in a subdirectory because
5277
  # it helps to detect inapplicable dependency modes.  For instance
5278
  # both Tru64's cc and ICC support -MD to output dependencies as a
5279
  # side effect of compilation, but ICC will put the dependencies in
5280
  # the current directory while Tru64 will put them in the object
5281
  # directory.
5282
  mkdir sub
5283
 
5284
  am_cv_CC_dependencies_compiler_type=none
5285
  if test "$am_compiler_list" = ""; then
5286
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5287
  fi
5288
  am__universal=false
5289
  case " $depcc " in #(
5290
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5291
     esac
5292
 
5293
  for depmode in $am_compiler_list; do
5294
    # Setup a source with many dependencies, because some compilers
5295
    # like to wrap large dependency lists on column 80 (with \), and
5296
    # we should not choose a depcomp mode which is confused by this.
5297
    #
5298
    # We need to recreate these files for each test, as the compiler may
5299
    # overwrite some of them when testing with obscure command lines.
5300
    # This happens at least with the AIX C compiler.
5301
    : > sub/conftest.c
5302
    for i in 1 2 3 4 5 6; do
5303
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5304
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5305
      # Solaris 8's {/usr,}/bin/sh.
5306
      touch sub/conftst$i.h
5307
    done
5308
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5309
 
5310
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5311
    # mode.  It turns out that the SunPro C++ compiler does not properly
5312
    # handle `-M -o', and we need to detect this.  Also, some Intel
5313
    # versions had trouble with output in subdirs
5314
    am__obj=sub/conftest.${OBJEXT-o}
5315
    am__minus_obj="-o $am__obj"
5316
    case $depmode in
5317
    gcc)
5318
      # This depmode causes a compiler race in universal mode.
5319
      test "$am__universal" = false || continue
5320
      ;;
5321
    nosideeffect)
5322
      # after this tag, mechanisms are not by side-effect, so they'll
5323
      # only be used when explicitly requested
5324
      if test "x$enable_dependency_tracking" = xyes; then
5325
        continue
5326
      else
5327
        break
5328
      fi
5329
      ;;
5330
    msvisualcpp | msvcmsys)
5331
      # This compiler won't grok `-c -o', but also, the minuso test has
5332
      # not run yet.  These depmodes are late enough in the game, and
5333
      # so weak that their functioning should not be impacted.
5334
      am__obj=conftest.${OBJEXT-o}
5335
      am__minus_obj=
5336
      ;;
5337
    none) break ;;
5338
    esac
5339
    if depmode=$depmode \
5340
       source=sub/conftest.c object=$am__obj \
5341
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5342
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5343
         >/dev/null 2>conftest.err &&
5344
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5345
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5346
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5347
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5348
      # icc doesn't choke on unknown options, it will just issue warnings
5349
      # or remarks (even with -Werror).  So we grep stderr for any message
5350
      # that says an option was ignored or not supported.
5351
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5352
      #   icc: Command line warning: ignoring option '-M'; no argument required
5353
      # The diagnosis changed in icc 8.0:
5354
      #   icc: Command line remark: option '-MP' not supported
5355
      if (grep 'ignoring option' conftest.err ||
5356
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5357
        am_cv_CC_dependencies_compiler_type=$depmode
5358
        break
5359
      fi
5360
    fi
5361
  done
5362
 
5363
  cd ..
5364
  rm -rf conftest.dir
5365
else
5366
  am_cv_CC_dependencies_compiler_type=none
5367
fi
5368
 
5369
fi
5370
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5371
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5372
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5373
 
5374
 if
5375
  test "x$enable_dependency_tracking" != xno \
5376
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5377
  am__fastdepCC_TRUE=
5378
  am__fastdepCC_FALSE='#'
5379
else
5380
  am__fastdepCC_TRUE='#'
5381
  am__fastdepCC_FALSE=
5382
fi
5383
 
5384
 
5385
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5386
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5387
if test "${ac_cv_path_GREP+set}" = set; then
5388
  $as_echo_n "(cached) " >&6
5389
else
5390
  if test -z "$GREP"; then
5391
  ac_path_GREP_found=false
5392
  # Loop through the user's path and test for each of PROGNAME-LIST
5393
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5395
do
5396
  IFS=$as_save_IFS
5397
  test -z "$as_dir" && as_dir=.
5398
  for ac_prog in grep ggrep; do
5399
    for ac_exec_ext in '' $ac_executable_extensions; do
5400
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5401
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5402
# Check for GNU ac_path_GREP and select it if it is found.
5403
  # Check for GNU $ac_path_GREP
5404
case `"$ac_path_GREP" --version 2>&1` in
5405
*GNU*)
5406
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5407
*)
5408
  ac_count=0
5409
  $as_echo_n 0123456789 >"conftest.in"
5410
  while :
5411
  do
5412
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5413
    mv "conftest.tmp" "conftest.in"
5414
    cp "conftest.in" "conftest.nl"
5415
    $as_echo 'GREP' >> "conftest.nl"
5416
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5417
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5418
    ac_count=`expr $ac_count + 1`
5419
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5420
      # Best one so far, save it but keep looking for a better one
5421
      ac_cv_path_GREP="$ac_path_GREP"
5422
      ac_path_GREP_max=$ac_count
5423
    fi
5424
    # 10*(2^10) chars as input seems more than enough
5425
    test $ac_count -gt 10 && break
5426
  done
5427
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5428
esac
5429
 
5430
      $ac_path_GREP_found && break 3
5431
    done
5432
  done
5433
done
5434
IFS=$as_save_IFS
5435
  if test -z "$ac_cv_path_GREP"; then
5436
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5437
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5438
   { (exit 1); exit 1; }; }
5439
  fi
5440
else
5441
  ac_cv_path_GREP=$GREP
5442
fi
5443
 
5444
fi
5445
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5446
$as_echo "$ac_cv_path_GREP" >&6; }
5447
 GREP="$ac_cv_path_GREP"
5448
 
5449
 
5450
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5451
$as_echo_n "checking for egrep... " >&6; }
5452
if test "${ac_cv_path_EGREP+set}" = set; then
5453
  $as_echo_n "(cached) " >&6
5454
else
5455
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5456
   then ac_cv_path_EGREP="$GREP -E"
5457
   else
5458
     if test -z "$EGREP"; then
5459
  ac_path_EGREP_found=false
5460
  # Loop through the user's path and test for each of PROGNAME-LIST
5461
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5463
do
5464
  IFS=$as_save_IFS
5465
  test -z "$as_dir" && as_dir=.
5466
  for ac_prog in egrep; do
5467
    for ac_exec_ext in '' $ac_executable_extensions; do
5468
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5469
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5470
# Check for GNU ac_path_EGREP and select it if it is found.
5471
  # Check for GNU $ac_path_EGREP
5472
case `"$ac_path_EGREP" --version 2>&1` in
5473
*GNU*)
5474
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5475
*)
5476
  ac_count=0
5477
  $as_echo_n 0123456789 >"conftest.in"
5478
  while :
5479
  do
5480
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5481
    mv "conftest.tmp" "conftest.in"
5482
    cp "conftest.in" "conftest.nl"
5483
    $as_echo 'EGREP' >> "conftest.nl"
5484
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5485
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5486
    ac_count=`expr $ac_count + 1`
5487
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5488
      # Best one so far, save it but keep looking for a better one
5489
      ac_cv_path_EGREP="$ac_path_EGREP"
5490
      ac_path_EGREP_max=$ac_count
5491
    fi
5492
    # 10*(2^10) chars as input seems more than enough
5493
    test $ac_count -gt 10 && break
5494
  done
5495
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5496
esac
5497
 
5498
      $ac_path_EGREP_found && break 3
5499
    done
5500
  done
5501
done
5502
IFS=$as_save_IFS
5503
  if test -z "$ac_cv_path_EGREP"; then
5504
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5505
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5506
   { (exit 1); exit 1; }; }
5507
  fi
5508
else
5509
  ac_cv_path_EGREP=$EGREP
5510
fi
5511
 
5512
   fi
5513
fi
5514
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5515
$as_echo "$ac_cv_path_EGREP" >&6; }
5516
 EGREP="$ac_cv_path_EGREP"
5517
 
5518
 
5519
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5520
$as_echo_n "checking for fgrep... " >&6; }
5521
if test "${ac_cv_path_FGREP+set}" = set; then
5522
  $as_echo_n "(cached) " >&6
5523
else
5524
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5525
   then ac_cv_path_FGREP="$GREP -F"
5526
   else
5527
     if test -z "$FGREP"; then
5528
  ac_path_FGREP_found=false
5529
  # Loop through the user's path and test for each of PROGNAME-LIST
5530
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5532
do
5533
  IFS=$as_save_IFS
5534
  test -z "$as_dir" && as_dir=.
5535
  for ac_prog in fgrep; do
5536
    for ac_exec_ext in '' $ac_executable_extensions; do
5537
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5538
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5539
# Check for GNU ac_path_FGREP and select it if it is found.
5540
  # Check for GNU $ac_path_FGREP
5541
case `"$ac_path_FGREP" --version 2>&1` in
5542
*GNU*)
5543
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5544
*)
5545
  ac_count=0
5546
  $as_echo_n 0123456789 >"conftest.in"
5547
  while :
5548
  do
5549
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5550
    mv "conftest.tmp" "conftest.in"
5551
    cp "conftest.in" "conftest.nl"
5552
    $as_echo 'FGREP' >> "conftest.nl"
5553
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5554
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5555
    ac_count=`expr $ac_count + 1`
5556
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5557
      # Best one so far, save it but keep looking for a better one
5558
      ac_cv_path_FGREP="$ac_path_FGREP"
5559
      ac_path_FGREP_max=$ac_count
5560
    fi
5561
    # 10*(2^10) chars as input seems more than enough
5562
    test $ac_count -gt 10 && break
5563
  done
5564
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5565
esac
5566
 
5567
      $ac_path_FGREP_found && break 3
5568
    done
5569
  done
5570
done
5571
IFS=$as_save_IFS
5572
  if test -z "$ac_cv_path_FGREP"; then
5573
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5574
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5575
   { (exit 1); exit 1; }; }
5576
  fi
5577
else
5578
  ac_cv_path_FGREP=$FGREP
5579
fi
5580
 
5581
   fi
5582
fi
5583
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5584
$as_echo "$ac_cv_path_FGREP" >&6; }
5585
 FGREP="$ac_cv_path_FGREP"
5586
 
5587
 
5588
test -z "$GREP" && GREP=grep
5589
 
5590
 
5591
 
5592
 
5593
 
5594
 
5595
 
5596
 
5597
 
5598
 
5599
 
5600
 
5601
 
5602
 
5603
 
5604
 
5605
 
5606
 
5607
 
5608
# Check whether --with-gnu-ld was given.
5609
if test "${with_gnu_ld+set}" = set; then
5610
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5611
else
5612
  with_gnu_ld=no
5613
fi
5614
 
5615
ac_prog=ld
5616
if test "$GCC" = yes; then
5617
  # Check if gcc -print-prog-name=ld gives a path.
5618
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5619
$as_echo_n "checking for ld used by $CC... " >&6; }
5620
  case $host in
5621
  *-*-mingw*)
5622
    # gcc leaves a trailing carriage return which upsets mingw
5623
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5624
  *)
5625
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5626
  esac
5627
  case $ac_prog in
5628
    # Accept absolute paths.
5629
    [\\/]* | ?:[\\/]*)
5630
      re_direlt='/[^/][^/]*/\.\./'
5631
      # Canonicalize the pathname of ld
5632
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5633
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5634
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5635
      done
5636
      test -z "$LD" && LD="$ac_prog"
5637
      ;;
5638
  "")
5639
    # If it fails, then pretend we aren't using GCC.
5640
    ac_prog=ld
5641
    ;;
5642
  *)
5643
    # If it is relative, then search for the first ld in PATH.
5644
    with_gnu_ld=unknown
5645
    ;;
5646
  esac
5647
elif test "$with_gnu_ld" = yes; then
5648
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5649
$as_echo_n "checking for GNU ld... " >&6; }
5650
else
5651
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5652
$as_echo_n "checking for non-GNU ld... " >&6; }
5653
fi
5654
if test "${lt_cv_path_LD+set}" = set; then
5655
  $as_echo_n "(cached) " >&6
5656
else
5657
  if test -z "$LD"; then
5658
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5659
  for ac_dir in $PATH; do
5660
    IFS="$lt_save_ifs"
5661
    test -z "$ac_dir" && ac_dir=.
5662
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5663
      lt_cv_path_LD="$ac_dir/$ac_prog"
5664
      # Check to see if the program is GNU ld.  I'd rather use --version,
5665
      # but apparently some variants of GNU ld only accept -v.
5666
      # Break only if it was the GNU/non-GNU ld that we prefer.
5667
      case `"$lt_cv_path_LD" -v 2>&1 
5668
      *GNU* | *'with BFD'*)
5669
        test "$with_gnu_ld" != no && break
5670
        ;;
5671
      *)
5672
        test "$with_gnu_ld" != yes && break
5673
        ;;
5674
      esac
5675
    fi
5676
  done
5677
  IFS="$lt_save_ifs"
5678
else
5679
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5680
fi
5681
fi
5682
 
5683
LD="$lt_cv_path_LD"
5684
if test -n "$LD"; then
5685
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5686
$as_echo "$LD" >&6; }
5687
else
5688
  { $as_echo "$as_me:$LINENO: result: no" >&5
5689
$as_echo "no" >&6; }
5690
fi
5691
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5692
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5693
   { (exit 1); exit 1; }; }
5694
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5695
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5696
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5697
  $as_echo_n "(cached) " >&6
5698
else
5699
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5700
case `$LD -v 2>&1 
5701
*GNU* | *'with BFD'*)
5702
  lt_cv_prog_gnu_ld=yes
5703
  ;;
5704
*)
5705
  lt_cv_prog_gnu_ld=no
5706
  ;;
5707
esac
5708
fi
5709
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5710
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5711
with_gnu_ld=$lt_cv_prog_gnu_ld
5712
 
5713
 
5714
 
5715
 
5716
 
5717
 
5718
 
5719
 
5720
 
5721
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5722
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5723
if test "${lt_cv_path_NM+set}" = set; then
5724
  $as_echo_n "(cached) " >&6
5725
else
5726
  if test -n "$NM"; then
5727
  # Let the user override the test.
5728
  lt_cv_path_NM="$NM"
5729
else
5730
  lt_nm_to_check="${ac_tool_prefix}nm"
5731
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5732
    lt_nm_to_check="$lt_nm_to_check nm"
5733
  fi
5734
  for lt_tmp_nm in $lt_nm_to_check; do
5735
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5736
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5737
      IFS="$lt_save_ifs"
5738
      test -z "$ac_dir" && ac_dir=.
5739
      tmp_nm="$ac_dir/$lt_tmp_nm"
5740
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5741
        # Check to see if the nm accepts a BSD-compat flag.
5742
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5743
        #   nm: unknown option "B" ignored
5744
        # Tru64's nm complains that /dev/null is an invalid object file
5745
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5746
        */dev/null* | *'Invalid file or object type'*)
5747
          lt_cv_path_NM="$tmp_nm -B"
5748
          break
5749
          ;;
5750
        *)
5751
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5752
          */dev/null*)
5753
            lt_cv_path_NM="$tmp_nm -p"
5754
            break
5755
            ;;
5756
          *)
5757
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5758
            continue # so that we can try to find one that supports BSD flags
5759
            ;;
5760
          esac
5761
          ;;
5762
        esac
5763
      fi
5764
    done
5765
    IFS="$lt_save_ifs"
5766
  done
5767
  : ${lt_cv_path_NM=no}
5768
fi
5769
fi
5770
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5771
$as_echo "$lt_cv_path_NM" >&6; }
5772
if test "$lt_cv_path_NM" != "no"; then
5773
  NM="$lt_cv_path_NM"
5774
else
5775
  # Didn't find any BSD compatible name lister, look for dumpbin.
5776
  if test -n "$ac_tool_prefix"; then
5777
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5778
  do
5779
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5780
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5781
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5782
$as_echo_n "checking for $ac_word... " >&6; }
5783
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5784
  $as_echo_n "(cached) " >&6
5785
else
5786
  if test -n "$DUMPBIN"; then
5787
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5788
else
5789
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790
for as_dir in $PATH
5791
do
5792
  IFS=$as_save_IFS
5793
  test -z "$as_dir" && as_dir=.
5794
  for ac_exec_ext in '' $ac_executable_extensions; do
5795
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5796
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5797
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798
    break 2
5799
  fi
5800
done
5801
done
5802
IFS=$as_save_IFS
5803
 
5804
fi
5805
fi
5806
DUMPBIN=$ac_cv_prog_DUMPBIN
5807
if test -n "$DUMPBIN"; then
5808
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5809
$as_echo "$DUMPBIN" >&6; }
5810
else
5811
  { $as_echo "$as_me:$LINENO: result: no" >&5
5812
$as_echo "no" >&6; }
5813
fi
5814
 
5815
 
5816
    test -n "$DUMPBIN" && break
5817
  done
5818
fi
5819
if test -z "$DUMPBIN"; then
5820
  ac_ct_DUMPBIN=$DUMPBIN
5821
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5822
do
5823
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5824
set dummy $ac_prog; ac_word=$2
5825
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5826
$as_echo_n "checking for $ac_word... " >&6; }
5827
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5828
  $as_echo_n "(cached) " >&6
5829
else
5830
  if test -n "$ac_ct_DUMPBIN"; then
5831
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5832
else
5833
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834
for as_dir in $PATH
5835
do
5836
  IFS=$as_save_IFS
5837
  test -z "$as_dir" && as_dir=.
5838
  for ac_exec_ext in '' $ac_executable_extensions; do
5839
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5840
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5841
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5842
    break 2
5843
  fi
5844
done
5845
done
5846
IFS=$as_save_IFS
5847
 
5848
fi
5849
fi
5850
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5851
if test -n "$ac_ct_DUMPBIN"; then
5852
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5853
$as_echo "$ac_ct_DUMPBIN" >&6; }
5854
else
5855
  { $as_echo "$as_me:$LINENO: result: no" >&5
5856
$as_echo "no" >&6; }
5857
fi
5858
 
5859
 
5860
  test -n "$ac_ct_DUMPBIN" && break
5861
done
5862
 
5863
  if test "x$ac_ct_DUMPBIN" = x; then
5864
    DUMPBIN=":"
5865
  else
5866
    case $cross_compiling:$ac_tool_warned in
5867
yes:)
5868
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5869
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5870
ac_tool_warned=yes ;;
5871
esac
5872
    DUMPBIN=$ac_ct_DUMPBIN
5873
  fi
5874
fi
5875
 
5876
 
5877
  if test "$DUMPBIN" != ":"; then
5878
    NM="$DUMPBIN"
5879
  fi
5880
fi
5881
test -z "$NM" && NM=nm
5882
 
5883
 
5884
 
5885
 
5886
 
5887
 
5888
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5889
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5890
if test "${lt_cv_nm_interface+set}" = set; then
5891
  $as_echo_n "(cached) " >&6
5892
else
5893
  lt_cv_nm_interface="BSD nm"
5894
  echo "int some_variable = 0;" > conftest.$ac_ext
5895
  (eval echo "\"\$as_me:5895: $ac_compile\"" >&5)
5896
  (eval "$ac_compile" 2>conftest.err)
5897
  cat conftest.err >&5
5898
  (eval echo "\"\$as_me:5898: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5899
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5900
  cat conftest.err >&5
5901
  (eval echo "\"\$as_me:5901: output\"" >&5)
5902
  cat conftest.out >&5
5903
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5904
    lt_cv_nm_interface="MS dumpbin"
5905
  fi
5906
  rm -f conftest*
5907
fi
5908
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5909
$as_echo "$lt_cv_nm_interface" >&6; }
5910
 
5911
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5912
$as_echo_n "checking whether ln -s works... " >&6; }
5913
LN_S=$as_ln_s
5914
if test "$LN_S" = "ln -s"; then
5915
  { $as_echo "$as_me:$LINENO: result: yes" >&5
5916
$as_echo "yes" >&6; }
5917
else
5918
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5919
$as_echo "no, using $LN_S" >&6; }
5920
fi
5921
 
5922
# find the maximum length of command line arguments
5923
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5924
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5925
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5926
  $as_echo_n "(cached) " >&6
5927
else
5928
    i=0
5929
  teststring="ABCD"
5930
 
5931
  case $build_os in
5932
  msdosdjgpp*)
5933
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5934
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5935
    # during glob expansion).  Even if it were fixed, the result of this
5936
    # check would be larger than it should be.
5937
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5938
    ;;
5939
 
5940
  gnu*)
5941
    # Under GNU Hurd, this test is not required because there is
5942
    # no limit to the length of command line arguments.
5943
    # Libtool will interpret -1 as no limit whatsoever
5944
    lt_cv_sys_max_cmd_len=-1;
5945
    ;;
5946
 
5947
  cygwin* | mingw* | cegcc*)
5948
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5949
    # about 5 minutes as the teststring grows exponentially.
5950
    # Worse, since 9x/ME are not pre-emptively multitasking,
5951
    # you end up with a "frozen" computer, even though with patience
5952
    # the test eventually succeeds (with a max line length of 256k).
5953
    # Instead, let's just punt: use the minimum linelength reported by
5954
    # all of the supported platforms: 8192 (on NT/2K/XP).
5955
    lt_cv_sys_max_cmd_len=8192;
5956
    ;;
5957
 
5958
  amigaos*)
5959
    # On AmigaOS with pdksh, this test takes hours, literally.
5960
    # So we just punt and use a minimum line length of 8192.
5961
    lt_cv_sys_max_cmd_len=8192;
5962
    ;;
5963
 
5964
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5965
    # This has been around since 386BSD, at least.  Likely further.
5966
    if test -x /sbin/sysctl; then
5967
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5968
    elif test -x /usr/sbin/sysctl; then
5969
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5970
    else
5971
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5972
    fi
5973
    # And add a safety zone
5974
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5975
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5976
    ;;
5977
 
5978
  interix*)
5979
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5980
    lt_cv_sys_max_cmd_len=196608
5981
    ;;
5982
 
5983
  osf*)
5984
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5985
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5986
    # nice to cause kernel panics so lets avoid the loop below.
5987
    # First set a reasonable default.
5988
    lt_cv_sys_max_cmd_len=16384
5989
    #
5990
    if test -x /sbin/sysconfig; then
5991
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5992
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5993
      esac
5994
    fi
5995
    ;;
5996
  sco3.2v5*)
5997
    lt_cv_sys_max_cmd_len=102400
5998
    ;;
5999
  sysv5* | sco5v6* | sysv4.2uw2*)
6000
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6001
    if test -n "$kargmax"; then
6002
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6003
    else
6004
      lt_cv_sys_max_cmd_len=32768
6005
    fi
6006
    ;;
6007
  *)
6008
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6009
    if test -n "$lt_cv_sys_max_cmd_len"; then
6010
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6011
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6012
    else
6013
      # Make teststring a little bigger before we do anything with it.
6014
      # a 1K string should be a reasonable start.
6015
      for i in 1 2 3 4 5 6 7 8 ; do
6016
        teststring=$teststring$teststring
6017
      done
6018
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6019
      # If test is not a shell built-in, we'll probably end up computing a
6020
      # maximum length that is only half of the actual maximum length, but
6021
      # we can't tell.
6022
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6023
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6024
              test $i != 17 # 1/2 MB should be enough
6025
      do
6026
        i=`expr $i + 1`
6027
        teststring=$teststring$teststring
6028
      done
6029
      # Only check the string length outside the loop.
6030
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6031
      teststring=
6032
      # Add a significant safety factor because C++ compilers can tack on
6033
      # massive amounts of additional arguments before passing them to the
6034
      # linker.  It appears as though 1/2 is a usable value.
6035
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6036
    fi
6037
    ;;
6038
  esac
6039
 
6040
fi
6041
 
6042
if test -n $lt_cv_sys_max_cmd_len ; then
6043
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6044
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6045
else
6046
  { $as_echo "$as_me:$LINENO: result: none" >&5
6047
$as_echo "none" >&6; }
6048
fi
6049
max_cmd_len=$lt_cv_sys_max_cmd_len
6050
 
6051
 
6052
 
6053
 
6054
 
6055
 
6056
: ${CP="cp -f"}
6057
: ${MV="mv -f"}
6058
: ${RM="rm -f"}
6059
 
6060
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6061
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6062
# Try some XSI features
6063
xsi_shell=no
6064
( _lt_dummy="a/b/c"
6065
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6066
      = c,a/b,, \
6067
    && eval 'test $(( 1 + 1 )) -eq 2 \
6068
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6069
  && xsi_shell=yes
6070
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6071
$as_echo "$xsi_shell" >&6; }
6072
 
6073
 
6074
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6075
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6076
lt_shell_append=no
6077
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6078
    >/dev/null 2>&1 \
6079
  && lt_shell_append=yes
6080
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6081
$as_echo "$lt_shell_append" >&6; }
6082
 
6083
 
6084
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6085
  lt_unset=unset
6086
else
6087
  lt_unset=false
6088
fi
6089
 
6090
 
6091
 
6092
 
6093
 
6094
# test EBCDIC or ASCII
6095
case `echo X|tr X '\101'` in
6096
 A) # ASCII based system
6097
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6098
  lt_SP2NL='tr \040 \012'
6099
  lt_NL2SP='tr \015\012 \040\040'
6100
  ;;
6101
 *) # EBCDIC based system
6102
  lt_SP2NL='tr \100 \n'
6103
  lt_NL2SP='tr \r\n \100\100'
6104
  ;;
6105
esac
6106
 
6107
 
6108
 
6109
 
6110
 
6111
 
6112
 
6113
 
6114
 
6115
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6116
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6117
if test "${lt_cv_ld_reload_flag+set}" = set; then
6118
  $as_echo_n "(cached) " >&6
6119
else
6120
  lt_cv_ld_reload_flag='-r'
6121
fi
6122
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6123
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6124
reload_flag=$lt_cv_ld_reload_flag
6125
case $reload_flag in
6126
"" | " "*) ;;
6127
*) reload_flag=" $reload_flag" ;;
6128
esac
6129
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6130
case $host_os in
6131
  darwin*)
6132
    if test "$GCC" = yes; then
6133
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6134
    else
6135
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6136
    fi
6137
    ;;
6138
esac
6139
 
6140
 
6141
 
6142
 
6143
 
6144
 
6145
 
6146
 
6147
 
6148
if test -n "$ac_tool_prefix"; then
6149
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6150
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6151
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6152
$as_echo_n "checking for $ac_word... " >&6; }
6153
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6154
  $as_echo_n "(cached) " >&6
6155
else
6156
  if test -n "$OBJDUMP"; then
6157
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6158
else
6159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160
for as_dir in $PATH
6161
do
6162
  IFS=$as_save_IFS
6163
  test -z "$as_dir" && as_dir=.
6164
  for ac_exec_ext in '' $ac_executable_extensions; do
6165
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6167
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168
    break 2
6169
  fi
6170
done
6171
done
6172
IFS=$as_save_IFS
6173
 
6174
fi
6175
fi
6176
OBJDUMP=$ac_cv_prog_OBJDUMP
6177
if test -n "$OBJDUMP"; then
6178
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6179
$as_echo "$OBJDUMP" >&6; }
6180
else
6181
  { $as_echo "$as_me:$LINENO: result: no" >&5
6182
$as_echo "no" >&6; }
6183
fi
6184
 
6185
 
6186
fi
6187
if test -z "$ac_cv_prog_OBJDUMP"; then
6188
  ac_ct_OBJDUMP=$OBJDUMP
6189
  # Extract the first word of "objdump", so it can be a program name with args.
6190
set dummy objdump; ac_word=$2
6191
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6192
$as_echo_n "checking for $ac_word... " >&6; }
6193
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6194
  $as_echo_n "(cached) " >&6
6195
else
6196
  if test -n "$ac_ct_OBJDUMP"; then
6197
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6198
else
6199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200
for as_dir in $PATH
6201
do
6202
  IFS=$as_save_IFS
6203
  test -z "$as_dir" && as_dir=.
6204
  for ac_exec_ext in '' $ac_executable_extensions; do
6205
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6206
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6207
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208
    break 2
6209
  fi
6210
done
6211
done
6212
IFS=$as_save_IFS
6213
 
6214
fi
6215
fi
6216
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6217
if test -n "$ac_ct_OBJDUMP"; then
6218
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6219
$as_echo "$ac_ct_OBJDUMP" >&6; }
6220
else
6221
  { $as_echo "$as_me:$LINENO: result: no" >&5
6222
$as_echo "no" >&6; }
6223
fi
6224
 
6225
  if test "x$ac_ct_OBJDUMP" = x; then
6226
    OBJDUMP="false"
6227
  else
6228
    case $cross_compiling:$ac_tool_warned in
6229
yes:)
6230
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6231
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6232
ac_tool_warned=yes ;;
6233
esac
6234
    OBJDUMP=$ac_ct_OBJDUMP
6235
  fi
6236
else
6237
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6238
fi
6239
 
6240
test -z "$OBJDUMP" && OBJDUMP=objdump
6241
 
6242
 
6243
 
6244
 
6245
 
6246
 
6247
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6248
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6249
if test "${lt_cv_deplibs_check_method+set}" = set; then
6250
  $as_echo_n "(cached) " >&6
6251
else
6252
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6253
lt_cv_file_magic_test_file=
6254
lt_cv_deplibs_check_method='unknown'
6255
# Need to set the preceding variable on all platforms that support
6256
# interlibrary dependencies.
6257
# 'none' -- dependencies not supported.
6258
# `unknown' -- same as none, but documents that we really don't know.
6259
# 'pass_all' -- all dependencies passed with no checks.
6260
# 'test_compile' -- check by making test program.
6261
# 'file_magic [[regex]]' -- check by looking for files in library path
6262
# which responds to the $file_magic_cmd with a given extended regex.
6263
# If you have `file' or equivalent on your system and you're not sure
6264
# whether `pass_all' will *always* work, you probably want this one.
6265
 
6266
case $host_os in
6267
aix[4-9]*)
6268
  lt_cv_deplibs_check_method=pass_all
6269
  ;;
6270
 
6271
beos*)
6272
  lt_cv_deplibs_check_method=pass_all
6273
  ;;
6274
 
6275
bsdi[45]*)
6276
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6277
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6278
  lt_cv_file_magic_test_file=/shlib/libc.so
6279
  ;;
6280
 
6281
cygwin*)
6282
  # func_win32_libid is a shell function defined in ltmain.sh
6283
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6284
  lt_cv_file_magic_cmd='func_win32_libid'
6285
  ;;
6286
 
6287
mingw* | pw32*)
6288
  # Base MSYS/MinGW do not provide the 'file' command needed by
6289
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6290
  # unless we find 'file', for example because we are cross-compiling.
6291
  if ( file / ) >/dev/null 2>&1; then
6292
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6293
    lt_cv_file_magic_cmd='func_win32_libid'
6294
  else
6295
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6296
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6297
  fi
6298
  ;;
6299
 
6300
cegcc)
6301
  # use the weaker test based on 'objdump'. See mingw*.
6302
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6303
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6304
  ;;
6305
 
6306
darwin* | rhapsody*)
6307
  lt_cv_deplibs_check_method=pass_all
6308
  ;;
6309
 
6310
freebsd* | dragonfly*)
6311
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6312
    case $host_cpu in
6313
    i*86 )
6314
      # Not sure whether the presence of OpenBSD here was a mistake.
6315
      # Let's accept both of them until this is cleared up.
6316
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6317
      lt_cv_file_magic_cmd=/usr/bin/file
6318
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6319
      ;;
6320
    esac
6321
  else
6322
    lt_cv_deplibs_check_method=pass_all
6323
  fi
6324
  ;;
6325
 
6326
gnu*)
6327
  lt_cv_deplibs_check_method=pass_all
6328
  ;;
6329
 
6330
hpux10.20* | hpux11*)
6331
  lt_cv_file_magic_cmd=/usr/bin/file
6332
  case $host_cpu in
6333
  ia64*)
6334
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6335
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6336
    ;;
6337
  hppa*64*)
6338
    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]'
6339
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6340
    ;;
6341
  *)
6342
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6343
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6344
    ;;
6345
  esac
6346
  ;;
6347
 
6348
interix[3-9]*)
6349
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6350
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6351
  ;;
6352
 
6353
irix5* | irix6* | nonstopux*)
6354
  case $LD in
6355
  *-32|*"-32 ") libmagic=32-bit;;
6356
  *-n32|*"-n32 ") libmagic=N32;;
6357
  *-64|*"-64 ") libmagic=64-bit;;
6358
  *) libmagic=never-match;;
6359
  esac
6360
  lt_cv_deplibs_check_method=pass_all
6361
  ;;
6362
 
6363
# This must be Linux ELF.
6364
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6365
  lt_cv_deplibs_check_method=pass_all
6366
  ;;
6367
 
6368
netbsd*)
6369
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6370
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6371
  else
6372
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6373
  fi
6374
  ;;
6375
 
6376
newos6*)
6377
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6378
  lt_cv_file_magic_cmd=/usr/bin/file
6379
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6380
  ;;
6381
 
6382
*nto* | *qnx*)
6383
  lt_cv_deplibs_check_method=pass_all
6384
  ;;
6385
 
6386
openbsd*)
6387
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6388
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6389
  else
6390
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6391
  fi
6392
  ;;
6393
 
6394
osf3* | osf4* | osf5*)
6395
  lt_cv_deplibs_check_method=pass_all
6396
  ;;
6397
 
6398
rdos*)
6399
  lt_cv_deplibs_check_method=pass_all
6400
  ;;
6401
 
6402
solaris*)
6403
  lt_cv_deplibs_check_method=pass_all
6404
  ;;
6405
 
6406
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6407
  lt_cv_deplibs_check_method=pass_all
6408
  ;;
6409
 
6410
sysv4 | sysv4.3*)
6411
  case $host_vendor in
6412
  motorola)
6413
    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]'
6414
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6415
    ;;
6416
  ncr)
6417
    lt_cv_deplibs_check_method=pass_all
6418
    ;;
6419
  sequent)
6420
    lt_cv_file_magic_cmd='/bin/file'
6421
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6422
    ;;
6423
  sni)
6424
    lt_cv_file_magic_cmd='/bin/file'
6425
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6426
    lt_cv_file_magic_test_file=/lib/libc.so
6427
    ;;
6428
  siemens)
6429
    lt_cv_deplibs_check_method=pass_all
6430
    ;;
6431
  pc)
6432
    lt_cv_deplibs_check_method=pass_all
6433
    ;;
6434
  esac
6435
  ;;
6436
 
6437
tpf*)
6438
  lt_cv_deplibs_check_method=pass_all
6439
  ;;
6440
esac
6441
 
6442
fi
6443
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6444
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6445
file_magic_cmd=$lt_cv_file_magic_cmd
6446
deplibs_check_method=$lt_cv_deplibs_check_method
6447
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6448
 
6449
 
6450
 
6451
 
6452
 
6453
 
6454
 
6455
 
6456
 
6457
 
6458
 
6459
 
6460
if test -n "$ac_tool_prefix"; then
6461
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6462
set dummy ${ac_tool_prefix}ar; ac_word=$2
6463
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6464
$as_echo_n "checking for $ac_word... " >&6; }
6465
if test "${ac_cv_prog_AR+set}" = set; then
6466
  $as_echo_n "(cached) " >&6
6467
else
6468
  if test -n "$AR"; then
6469
  ac_cv_prog_AR="$AR" # Let the user override the test.
6470
else
6471
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472
for as_dir in $PATH
6473
do
6474
  IFS=$as_save_IFS
6475
  test -z "$as_dir" && as_dir=.
6476
  for ac_exec_ext in '' $ac_executable_extensions; do
6477
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6479
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6480
    break 2
6481
  fi
6482
done
6483
done
6484
IFS=$as_save_IFS
6485
 
6486
fi
6487
fi
6488
AR=$ac_cv_prog_AR
6489
if test -n "$AR"; then
6490
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6491
$as_echo "$AR" >&6; }
6492
else
6493
  { $as_echo "$as_me:$LINENO: result: no" >&5
6494
$as_echo "no" >&6; }
6495
fi
6496
 
6497
 
6498
fi
6499
if test -z "$ac_cv_prog_AR"; then
6500
  ac_ct_AR=$AR
6501
  # Extract the first word of "ar", so it can be a program name with args.
6502
set dummy ar; ac_word=$2
6503
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6504
$as_echo_n "checking for $ac_word... " >&6; }
6505
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6506
  $as_echo_n "(cached) " >&6
6507
else
6508
  if test -n "$ac_ct_AR"; then
6509
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6510
else
6511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512
for as_dir in $PATH
6513
do
6514
  IFS=$as_save_IFS
6515
  test -z "$as_dir" && as_dir=.
6516
  for ac_exec_ext in '' $ac_executable_extensions; do
6517
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518
    ac_cv_prog_ac_ct_AR="ar"
6519
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520
    break 2
6521
  fi
6522
done
6523
done
6524
IFS=$as_save_IFS
6525
 
6526
fi
6527
fi
6528
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6529
if test -n "$ac_ct_AR"; then
6530
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6531
$as_echo "$ac_ct_AR" >&6; }
6532
else
6533
  { $as_echo "$as_me:$LINENO: result: no" >&5
6534
$as_echo "no" >&6; }
6535
fi
6536
 
6537
  if test "x$ac_ct_AR" = x; then
6538
    AR="false"
6539
  else
6540
    case $cross_compiling:$ac_tool_warned in
6541
yes:)
6542
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6543
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6544
ac_tool_warned=yes ;;
6545
esac
6546
    AR=$ac_ct_AR
6547
  fi
6548
else
6549
  AR="$ac_cv_prog_AR"
6550
fi
6551
 
6552
test -z "$AR" && AR=ar
6553
test -z "$AR_FLAGS" && AR_FLAGS=cru
6554
 
6555
 
6556
 
6557
 
6558
 
6559
 
6560
 
6561
 
6562
 
6563
 
6564
 
6565
if test -n "$ac_tool_prefix"; then
6566
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6567
set dummy ${ac_tool_prefix}strip; ac_word=$2
6568
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6569
$as_echo_n "checking for $ac_word... " >&6; }
6570
if test "${ac_cv_prog_STRIP+set}" = set; then
6571
  $as_echo_n "(cached) " >&6
6572
else
6573
  if test -n "$STRIP"; then
6574
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6575
else
6576
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577
for as_dir in $PATH
6578
do
6579
  IFS=$as_save_IFS
6580
  test -z "$as_dir" && as_dir=.
6581
  for ac_exec_ext in '' $ac_executable_extensions; do
6582
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6583
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6584
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6585
    break 2
6586
  fi
6587
done
6588
done
6589
IFS=$as_save_IFS
6590
 
6591
fi
6592
fi
6593
STRIP=$ac_cv_prog_STRIP
6594
if test -n "$STRIP"; then
6595
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6596
$as_echo "$STRIP" >&6; }
6597
else
6598
  { $as_echo "$as_me:$LINENO: result: no" >&5
6599
$as_echo "no" >&6; }
6600
fi
6601
 
6602
 
6603
fi
6604
if test -z "$ac_cv_prog_STRIP"; then
6605
  ac_ct_STRIP=$STRIP
6606
  # Extract the first word of "strip", so it can be a program name with args.
6607
set dummy strip; ac_word=$2
6608
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6609
$as_echo_n "checking for $ac_word... " >&6; }
6610
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6611
  $as_echo_n "(cached) " >&6
6612
else
6613
  if test -n "$ac_ct_STRIP"; then
6614
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6615
else
6616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617
for as_dir in $PATH
6618
do
6619
  IFS=$as_save_IFS
6620
  test -z "$as_dir" && as_dir=.
6621
  for ac_exec_ext in '' $ac_executable_extensions; do
6622
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6623
    ac_cv_prog_ac_ct_STRIP="strip"
6624
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625
    break 2
6626
  fi
6627
done
6628
done
6629
IFS=$as_save_IFS
6630
 
6631
fi
6632
fi
6633
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6634
if test -n "$ac_ct_STRIP"; then
6635
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6636
$as_echo "$ac_ct_STRIP" >&6; }
6637
else
6638
  { $as_echo "$as_me:$LINENO: result: no" >&5
6639
$as_echo "no" >&6; }
6640
fi
6641
 
6642
  if test "x$ac_ct_STRIP" = x; then
6643
    STRIP=":"
6644
  else
6645
    case $cross_compiling:$ac_tool_warned in
6646
yes:)
6647
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6648
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6649
ac_tool_warned=yes ;;
6650
esac
6651
    STRIP=$ac_ct_STRIP
6652
  fi
6653
else
6654
  STRIP="$ac_cv_prog_STRIP"
6655
fi
6656
 
6657
test -z "$STRIP" && STRIP=:
6658
 
6659
 
6660
 
6661
 
6662
 
6663
 
6664
if test -n "$ac_tool_prefix"; then
6665
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6666
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6667
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6668
$as_echo_n "checking for $ac_word... " >&6; }
6669
if test "${ac_cv_prog_RANLIB+set}" = set; then
6670
  $as_echo_n "(cached) " >&6
6671
else
6672
  if test -n "$RANLIB"; then
6673
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6674
else
6675
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676
for as_dir in $PATH
6677
do
6678
  IFS=$as_save_IFS
6679
  test -z "$as_dir" && as_dir=.
6680
  for ac_exec_ext in '' $ac_executable_extensions; do
6681
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6683
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684
    break 2
6685
  fi
6686
done
6687
done
6688
IFS=$as_save_IFS
6689
 
6690
fi
6691
fi
6692
RANLIB=$ac_cv_prog_RANLIB
6693
if test -n "$RANLIB"; then
6694
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6695
$as_echo "$RANLIB" >&6; }
6696
else
6697
  { $as_echo "$as_me:$LINENO: result: no" >&5
6698
$as_echo "no" >&6; }
6699
fi
6700
 
6701
 
6702
fi
6703
if test -z "$ac_cv_prog_RANLIB"; then
6704
  ac_ct_RANLIB=$RANLIB
6705
  # Extract the first word of "ranlib", so it can be a program name with args.
6706
set dummy ranlib; ac_word=$2
6707
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6708
$as_echo_n "checking for $ac_word... " >&6; }
6709
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6710
  $as_echo_n "(cached) " >&6
6711
else
6712
  if test -n "$ac_ct_RANLIB"; then
6713
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6714
else
6715
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716
for as_dir in $PATH
6717
do
6718
  IFS=$as_save_IFS
6719
  test -z "$as_dir" && as_dir=.
6720
  for ac_exec_ext in '' $ac_executable_extensions; do
6721
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6723
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724
    break 2
6725
  fi
6726
done
6727
done
6728
IFS=$as_save_IFS
6729
 
6730
fi
6731
fi
6732
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6733
if test -n "$ac_ct_RANLIB"; then
6734
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6735
$as_echo "$ac_ct_RANLIB" >&6; }
6736
else
6737
  { $as_echo "$as_me:$LINENO: result: no" >&5
6738
$as_echo "no" >&6; }
6739
fi
6740
 
6741
  if test "x$ac_ct_RANLIB" = x; then
6742
    RANLIB=":"
6743
  else
6744
    case $cross_compiling:$ac_tool_warned in
6745
yes:)
6746
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6747
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6748
ac_tool_warned=yes ;;
6749
esac
6750
    RANLIB=$ac_ct_RANLIB
6751
  fi
6752
else
6753
  RANLIB="$ac_cv_prog_RANLIB"
6754
fi
6755
 
6756
test -z "$RANLIB" && RANLIB=:
6757
 
6758
 
6759
 
6760
 
6761
 
6762
 
6763
# Determine commands to create old-style static archives.
6764
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6765
old_postinstall_cmds='chmod 644 $oldlib'
6766
old_postuninstall_cmds=
6767
 
6768
if test -n "$RANLIB"; then
6769
  case $host_os in
6770
  openbsd*)
6771
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6772
    ;;
6773
  *)
6774
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6775
    ;;
6776
  esac
6777
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6778
fi
6779
 
6780
 
6781
 
6782
 
6783
 
6784
 
6785
 
6786
 
6787
 
6788
 
6789
 
6790
 
6791
 
6792
 
6793
 
6794
 
6795
 
6796
 
6797
 
6798
 
6799
 
6800
 
6801
 
6802
 
6803
 
6804
 
6805
 
6806
 
6807
 
6808
 
6809
 
6810
 
6811
 
6812
 
6813
# If no C compiler was specified, use CC.
6814
LTCC=${LTCC-"$CC"}
6815
 
6816
# If no C compiler flags were specified, use CFLAGS.
6817
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6818
 
6819
# Allow CC to be a program name with arguments.
6820
compiler=$CC
6821
 
6822
 
6823
# Check for command to grab the raw symbol name followed by C symbol from nm.
6824
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6825
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6826
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6827
  $as_echo_n "(cached) " >&6
6828
else
6829
 
6830
# These are sane defaults that work on at least a few old systems.
6831
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6832
 
6833
# Character class describing NM global symbol codes.
6834
symcode='[BCDEGRST]'
6835
 
6836
# Regexp to match symbols that can be accessed directly from C.
6837
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6838
 
6839
# Define system-specific variables.
6840
case $host_os in
6841
aix*)
6842
  symcode='[BCDT]'
6843
  ;;
6844
cygwin* | mingw* | pw32* | cegcc*)
6845
  symcode='[ABCDGISTW]'
6846
  ;;
6847
hpux*)
6848
  if test "$host_cpu" = ia64; then
6849
    symcode='[ABCDEGRST]'
6850
  fi
6851
  ;;
6852
irix* | nonstopux*)
6853
  symcode='[BCDEGRST]'
6854
  ;;
6855
osf*)
6856
  symcode='[BCDEGQRST]'
6857
  ;;
6858
solaris*)
6859
  symcode='[BDRT]'
6860
  ;;
6861
sco3.2v5*)
6862
  symcode='[DT]'
6863
  ;;
6864
sysv4.2uw2*)
6865
  symcode='[DT]'
6866
  ;;
6867
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6868
  symcode='[ABDT]'
6869
  ;;
6870
sysv4)
6871
  symcode='[DFNSTU]'
6872
  ;;
6873
esac
6874
 
6875
# If we're using GNU nm, then use its standard symbol codes.
6876
case `$NM -V 2>&1` in
6877
*GNU* | *'with BFD'*)
6878
  symcode='[ABCDGIRSTW]' ;;
6879
esac
6880
 
6881
# Transform an extracted symbol line into a proper C declaration.
6882
# Some systems (esp. on ia64) link data and code symbols differently,
6883
# so use this general approach.
6884
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6885
 
6886
# Transform an extracted symbol line into symbol name and symbol address
6887
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6888
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'"
6889
 
6890
# Handle CRLF in mingw tool chain
6891
opt_cr=
6892
case $build_os in
6893
mingw*)
6894
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6895
  ;;
6896
esac
6897
 
6898
# Try without a prefix underscore, then with it.
6899
for ac_symprfx in "" "_"; do
6900
 
6901
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6902
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6903
 
6904
  # Write the raw and C identifiers.
6905
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6906
    # Fake it for dumpbin and say T for any non-static function
6907
    # and D for any global variable.
6908
    # Also find C++ and __fastcall symbols from MSVC++,
6909
    # which start with @ or ?.
6910
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6911
"     {last_section=section; section=\$ 3};"\
6912
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6913
"     \$ 0!~/External *\|/{next};"\
6914
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6915
"     {if(hide[section]) next};"\
6916
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6917
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6918
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6919
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6920
"     ' prfx=^$ac_symprfx"
6921
  else
6922
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6923
  fi
6924
 
6925
  # Check to see that the pipe works correctly.
6926
  pipe_works=no
6927
 
6928
  rm -f conftest*
6929
  cat > conftest.$ac_ext <<_LT_EOF
6930
#ifdef __cplusplus
6931
extern "C" {
6932
#endif
6933
char nm_test_var;
6934
void nm_test_func(void);
6935
void nm_test_func(void){}
6936
#ifdef __cplusplus
6937
}
6938
#endif
6939
int main(){nm_test_var='a';nm_test_func();return(0);}
6940
_LT_EOF
6941
 
6942
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943
  (eval $ac_compile) 2>&5
6944
  ac_status=$?
6945
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946
  (exit $ac_status); }; then
6947
    # Now try to grab the symbols.
6948
    nlist=conftest.nm
6949
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6950
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6951
  ac_status=$?
6952
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953
  (exit $ac_status); } && test -s "$nlist"; then
6954
      # Try sorting and uniquifying the output.
6955
      if sort "$nlist" | uniq > "$nlist"T; then
6956
        mv -f "$nlist"T "$nlist"
6957
      else
6958
        rm -f "$nlist"T
6959
      fi
6960
 
6961
      # Make sure that we snagged all the symbols we need.
6962
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6963
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6964
          cat <<_LT_EOF > conftest.$ac_ext
6965
#ifdef __cplusplus
6966
extern "C" {
6967
#endif
6968
 
6969
_LT_EOF
6970
          # Now generate the symbol file.
6971
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6972
 
6973
          cat <<_LT_EOF >> conftest.$ac_ext
6974
 
6975
/* The mapping between symbol names and symbols.  */
6976
const struct {
6977
  const char *name;
6978
  void       *address;
6979
}
6980
lt__PROGRAM__LTX_preloaded_symbols[] =
6981
{
6982
  { "@PROGRAM@", (void *) 0 },
6983
_LT_EOF
6984
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6985
          cat <<\_LT_EOF >> conftest.$ac_ext
6986
  {0, (void *) 0}
6987
};
6988
 
6989
/* This works around a problem in FreeBSD linker */
6990
#ifdef FREEBSD_WORKAROUND
6991
static const void *lt_preloaded_setup() {
6992
  return lt__PROGRAM__LTX_preloaded_symbols;
6993
}
6994
#endif
6995
 
6996
#ifdef __cplusplus
6997
}
6998
#endif
6999
_LT_EOF
7000
          # Now try linking the two files.
7001
          mv conftest.$ac_objext conftstm.$ac_objext
7002
          lt_save_LIBS="$LIBS"
7003
          lt_save_CFLAGS="$CFLAGS"
7004
          LIBS="conftstm.$ac_objext"
7005
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7006
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007
  (eval $ac_link) 2>&5
7008
  ac_status=$?
7009
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7011
            pipe_works=yes
7012
          fi
7013
          LIBS="$lt_save_LIBS"
7014
          CFLAGS="$lt_save_CFLAGS"
7015
        else
7016
          echo "cannot find nm_test_func in $nlist" >&5
7017
        fi
7018
      else
7019
        echo "cannot find nm_test_var in $nlist" >&5
7020
      fi
7021
    else
7022
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7023
    fi
7024
  else
7025
    echo "$progname: failed program was:" >&5
7026
    cat conftest.$ac_ext >&5
7027
  fi
7028
  rm -rf conftest* conftst*
7029
 
7030
  # Do not use the global_symbol_pipe unless it works.
7031
  if test "$pipe_works" = yes; then
7032
    break
7033
  else
7034
    lt_cv_sys_global_symbol_pipe=
7035
  fi
7036
done
7037
 
7038
fi
7039
 
7040
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7041
  lt_cv_sys_global_symbol_to_cdecl=
7042
fi
7043
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7044
  { $as_echo "$as_me:$LINENO: result: failed" >&5
7045
$as_echo "failed" >&6; }
7046
else
7047
  { $as_echo "$as_me:$LINENO: result: ok" >&5
7048
$as_echo "ok" >&6; }
7049
fi
7050
 
7051
 
7052
 
7053
 
7054
 
7055
 
7056
 
7057
 
7058
 
7059
 
7060
 
7061
 
7062
 
7063
 
7064
 
7065
 
7066
 
7067
 
7068
 
7069
 
7070
 
7071
 
7072
 
7073
# Check whether --enable-libtool-lock was given.
7074
if test "${enable_libtool_lock+set}" = set; then
7075
  enableval=$enable_libtool_lock;
7076
fi
7077
 
7078
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7079
 
7080
# Some flags need to be propagated to the compiler or linker for good
7081
# libtool support.
7082
case $host in
7083
ia64-*-hpux*)
7084
  # Find out which ABI we are using.
7085
  echo 'int i;' > conftest.$ac_ext
7086
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7087
  (eval $ac_compile) 2>&5
7088
  ac_status=$?
7089
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090
  (exit $ac_status); }; then
7091
    case `/usr/bin/file conftest.$ac_objext` in
7092
      *ELF-32*)
7093
        HPUX_IA64_MODE="32"
7094
        ;;
7095
      *ELF-64*)
7096
        HPUX_IA64_MODE="64"
7097
        ;;
7098
    esac
7099
  fi
7100
  rm -rf conftest*
7101
  ;;
7102
*-*-irix6*)
7103
  # Find out which ABI we are using.
7104
  echo '#line 7104 "configure"' > conftest.$ac_ext
7105
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7106
  (eval $ac_compile) 2>&5
7107
  ac_status=$?
7108
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109
  (exit $ac_status); }; then
7110
    if test "$lt_cv_prog_gnu_ld" = yes; then
7111
      case `/usr/bin/file conftest.$ac_objext` in
7112
        *32-bit*)
7113
          LD="${LD-ld} -melf32bsmip"
7114
          ;;
7115
        *N32*)
7116
          LD="${LD-ld} -melf32bmipn32"
7117
          ;;
7118
        *64-bit*)
7119
          LD="${LD-ld} -melf64bmip"
7120
        ;;
7121
      esac
7122
    else
7123
      case `/usr/bin/file conftest.$ac_objext` in
7124
        *32-bit*)
7125
          LD="${LD-ld} -32"
7126
          ;;
7127
        *N32*)
7128
          LD="${LD-ld} -n32"
7129
          ;;
7130
        *64-bit*)
7131
          LD="${LD-ld} -64"
7132
          ;;
7133
      esac
7134
    fi
7135
  fi
7136
  rm -rf conftest*
7137
  ;;
7138
 
7139
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7140
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7141
  # Find out which ABI we are using.
7142
  echo 'int i;' > 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
    case `/usr/bin/file conftest.o` in
7149
      *32-bit*)
7150
        case $host in
7151
          x86_64-*kfreebsd*-gnu)
7152
            LD="${LD-ld} -m elf_i386_fbsd"
7153
            ;;
7154
          x86_64-*linux*)
7155
            LD="${LD-ld} -m elf_i386"
7156
            ;;
7157
          ppc64-*linux*|powerpc64-*linux*)
7158
            LD="${LD-ld} -m elf32ppclinux"
7159
            ;;
7160
          s390x-*linux*)
7161
            LD="${LD-ld} -m elf_s390"
7162
            ;;
7163
          sparc64-*linux*)
7164
            LD="${LD-ld} -m elf32_sparc"
7165
            ;;
7166
        esac
7167
        ;;
7168
      *64-bit*)
7169
        case $host in
7170
          x86_64-*kfreebsd*-gnu)
7171
            LD="${LD-ld} -m elf_x86_64_fbsd"
7172
            ;;
7173
          x86_64-*linux*)
7174
            LD="${LD-ld} -m elf_x86_64"
7175
            ;;
7176
          ppc*-*linux*|powerpc*-*linux*)
7177
            LD="${LD-ld} -m elf64ppc"
7178
            ;;
7179
          s390*-*linux*|s390*-*tpf*)
7180
            LD="${LD-ld} -m elf64_s390"
7181
            ;;
7182
          sparc*-*linux*)
7183
            LD="${LD-ld} -m elf64_sparc"
7184
            ;;
7185
        esac
7186
        ;;
7187
    esac
7188
  fi
7189
  rm -rf conftest*
7190
  ;;
7191
 
7192
*-*-sco3.2v5*)
7193
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7194
  SAVE_CFLAGS="$CFLAGS"
7195
  CFLAGS="$CFLAGS -belf"
7196
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7197
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7198
if test "${lt_cv_cc_needs_belf+set}" = set; then
7199
  $as_echo_n "(cached) " >&6
7200
else
7201
  ac_ext=c
7202
ac_cpp='$CPP $CPPFLAGS'
7203
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7206
 
7207
     cat >conftest.$ac_ext <<_ACEOF
7208
/* confdefs.h.  */
7209
_ACEOF
7210
cat confdefs.h >>conftest.$ac_ext
7211
cat >>conftest.$ac_ext <<_ACEOF
7212
/* end confdefs.h.  */
7213
 
7214
int
7215
main ()
7216
{
7217
 
7218
  ;
7219
  return 0;
7220
}
7221
_ACEOF
7222
rm -f conftest.$ac_objext conftest$ac_exeext
7223
if { (ac_try="$ac_link"
7224
case "(($ac_try" in
7225
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226
  *) ac_try_echo=$ac_try;;
7227
esac
7228
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7229
$as_echo "$ac_try_echo") >&5
7230
  (eval "$ac_link") 2>conftest.er1
7231
  ac_status=$?
7232
  grep -v '^ *+' conftest.er1 >conftest.err
7233
  rm -f conftest.er1
7234
  cat conftest.err >&5
7235
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236
  (exit $ac_status); } && {
7237
         test -z "$ac_c_werror_flag" ||
7238
         test ! -s conftest.err
7239
       } && test -s conftest$ac_exeext && {
7240
         test "$cross_compiling" = yes ||
7241
         $as_test_x conftest$ac_exeext
7242
       }; then
7243
  lt_cv_cc_needs_belf=yes
7244
else
7245
  $as_echo "$as_me: failed program was:" >&5
7246
sed 's/^/| /' conftest.$ac_ext >&5
7247
 
7248
        lt_cv_cc_needs_belf=no
7249
fi
7250
 
7251
rm -rf conftest.dSYM
7252
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7253
      conftest$ac_exeext conftest.$ac_ext
7254
     ac_ext=c
7255
ac_cpp='$CPP $CPPFLAGS'
7256
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7257
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7258
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7259
 
7260
fi
7261
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7262
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7263
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7264
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7265
    CFLAGS="$SAVE_CFLAGS"
7266
  fi
7267
  ;;
7268
sparc*-*solaris*)
7269
  # Find out which ABI we are using.
7270
  echo 'int i;' > conftest.$ac_ext
7271
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7272
  (eval $ac_compile) 2>&5
7273
  ac_status=$?
7274
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275
  (exit $ac_status); }; then
7276
    case `/usr/bin/file conftest.o` in
7277
    *64-bit*)
7278
      case $lt_cv_prog_gnu_ld in
7279
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7280
      *)
7281
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7282
          LD="${LD-ld} -64"
7283
        fi
7284
        ;;
7285
      esac
7286
      ;;
7287
    esac
7288
  fi
7289
  rm -rf conftest*
7290
  ;;
7291
esac
7292
 
7293
need_locks="$enable_libtool_lock"
7294
 
7295
 
7296
  case $host_os in
7297
    rhapsody* | darwin*)
7298
    if test -n "$ac_tool_prefix"; then
7299
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7300
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7301
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7302
$as_echo_n "checking for $ac_word... " >&6; }
7303
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7304
  $as_echo_n "(cached) " >&6
7305
else
7306
  if test -n "$DSYMUTIL"; then
7307
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7308
else
7309
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310
for as_dir in $PATH
7311
do
7312
  IFS=$as_save_IFS
7313
  test -z "$as_dir" && as_dir=.
7314
  for ac_exec_ext in '' $ac_executable_extensions; do
7315
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7317
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318
    break 2
7319
  fi
7320
done
7321
done
7322
IFS=$as_save_IFS
7323
 
7324
fi
7325
fi
7326
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7327
if test -n "$DSYMUTIL"; then
7328
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7329
$as_echo "$DSYMUTIL" >&6; }
7330
else
7331
  { $as_echo "$as_me:$LINENO: result: no" >&5
7332
$as_echo "no" >&6; }
7333
fi
7334
 
7335
 
7336
fi
7337
if test -z "$ac_cv_prog_DSYMUTIL"; then
7338
  ac_ct_DSYMUTIL=$DSYMUTIL
7339
  # Extract the first word of "dsymutil", so it can be a program name with args.
7340
set dummy dsymutil; ac_word=$2
7341
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7342
$as_echo_n "checking for $ac_word... " >&6; }
7343
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7344
  $as_echo_n "(cached) " >&6
7345
else
7346
  if test -n "$ac_ct_DSYMUTIL"; then
7347
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7348
else
7349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350
for as_dir in $PATH
7351
do
7352
  IFS=$as_save_IFS
7353
  test -z "$as_dir" && as_dir=.
7354
  for ac_exec_ext in '' $ac_executable_extensions; do
7355
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7356
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7357
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7358
    break 2
7359
  fi
7360
done
7361
done
7362
IFS=$as_save_IFS
7363
 
7364
fi
7365
fi
7366
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7367
if test -n "$ac_ct_DSYMUTIL"; then
7368
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7369
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7370
else
7371
  { $as_echo "$as_me:$LINENO: result: no" >&5
7372
$as_echo "no" >&6; }
7373
fi
7374
 
7375
  if test "x$ac_ct_DSYMUTIL" = x; then
7376
    DSYMUTIL=":"
7377
  else
7378
    case $cross_compiling:$ac_tool_warned in
7379
yes:)
7380
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7381
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7382
ac_tool_warned=yes ;;
7383
esac
7384
    DSYMUTIL=$ac_ct_DSYMUTIL
7385
  fi
7386
else
7387
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7388
fi
7389
 
7390
    if test -n "$ac_tool_prefix"; then
7391
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7392
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7393
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7394
$as_echo_n "checking for $ac_word... " >&6; }
7395
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7396
  $as_echo_n "(cached) " >&6
7397
else
7398
  if test -n "$NMEDIT"; then
7399
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7400
else
7401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402
for as_dir in $PATH
7403
do
7404
  IFS=$as_save_IFS
7405
  test -z "$as_dir" && as_dir=.
7406
  for ac_exec_ext in '' $ac_executable_extensions; do
7407
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7409
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410
    break 2
7411
  fi
7412
done
7413
done
7414
IFS=$as_save_IFS
7415
 
7416
fi
7417
fi
7418
NMEDIT=$ac_cv_prog_NMEDIT
7419
if test -n "$NMEDIT"; then
7420
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7421
$as_echo "$NMEDIT" >&6; }
7422
else
7423
  { $as_echo "$as_me:$LINENO: result: no" >&5
7424
$as_echo "no" >&6; }
7425
fi
7426
 
7427
 
7428
fi
7429
if test -z "$ac_cv_prog_NMEDIT"; then
7430
  ac_ct_NMEDIT=$NMEDIT
7431
  # Extract the first word of "nmedit", so it can be a program name with args.
7432
set dummy nmedit; ac_word=$2
7433
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7434
$as_echo_n "checking for $ac_word... " >&6; }
7435
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7436
  $as_echo_n "(cached) " >&6
7437
else
7438
  if test -n "$ac_ct_NMEDIT"; then
7439
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7440
else
7441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442
for as_dir in $PATH
7443
do
7444
  IFS=$as_save_IFS
7445
  test -z "$as_dir" && as_dir=.
7446
  for ac_exec_ext in '' $ac_executable_extensions; do
7447
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7448
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7449
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450
    break 2
7451
  fi
7452
done
7453
done
7454
IFS=$as_save_IFS
7455
 
7456
fi
7457
fi
7458
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7459
if test -n "$ac_ct_NMEDIT"; then
7460
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7461
$as_echo "$ac_ct_NMEDIT" >&6; }
7462
else
7463
  { $as_echo "$as_me:$LINENO: result: no" >&5
7464
$as_echo "no" >&6; }
7465
fi
7466
 
7467
  if test "x$ac_ct_NMEDIT" = x; then
7468
    NMEDIT=":"
7469
  else
7470
    case $cross_compiling:$ac_tool_warned in
7471
yes:)
7472
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7473
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7474
ac_tool_warned=yes ;;
7475
esac
7476
    NMEDIT=$ac_ct_NMEDIT
7477
  fi
7478
else
7479
  NMEDIT="$ac_cv_prog_NMEDIT"
7480
fi
7481
 
7482
    if test -n "$ac_tool_prefix"; then
7483
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7484
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7485
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7486
$as_echo_n "checking for $ac_word... " >&6; }
7487
if test "${ac_cv_prog_LIPO+set}" = set; then
7488
  $as_echo_n "(cached) " >&6
7489
else
7490
  if test -n "$LIPO"; then
7491
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7492
else
7493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494
for as_dir in $PATH
7495
do
7496
  IFS=$as_save_IFS
7497
  test -z "$as_dir" && as_dir=.
7498
  for ac_exec_ext in '' $ac_executable_extensions; do
7499
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7500
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7501
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7502
    break 2
7503
  fi
7504
done
7505
done
7506
IFS=$as_save_IFS
7507
 
7508
fi
7509
fi
7510
LIPO=$ac_cv_prog_LIPO
7511
if test -n "$LIPO"; then
7512
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7513
$as_echo "$LIPO" >&6; }
7514
else
7515
  { $as_echo "$as_me:$LINENO: result: no" >&5
7516
$as_echo "no" >&6; }
7517
fi
7518
 
7519
 
7520
fi
7521
if test -z "$ac_cv_prog_LIPO"; then
7522
  ac_ct_LIPO=$LIPO
7523
  # Extract the first word of "lipo", so it can be a program name with args.
7524
set dummy lipo; ac_word=$2
7525
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7526
$as_echo_n "checking for $ac_word... " >&6; }
7527
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7528
  $as_echo_n "(cached) " >&6
7529
else
7530
  if test -n "$ac_ct_LIPO"; then
7531
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7532
else
7533
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534
for as_dir in $PATH
7535
do
7536
  IFS=$as_save_IFS
7537
  test -z "$as_dir" && as_dir=.
7538
  for ac_exec_ext in '' $ac_executable_extensions; do
7539
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7540
    ac_cv_prog_ac_ct_LIPO="lipo"
7541
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7542
    break 2
7543
  fi
7544
done
7545
done
7546
IFS=$as_save_IFS
7547
 
7548
fi
7549
fi
7550
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7551
if test -n "$ac_ct_LIPO"; then
7552
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7553
$as_echo "$ac_ct_LIPO" >&6; }
7554
else
7555
  { $as_echo "$as_me:$LINENO: result: no" >&5
7556
$as_echo "no" >&6; }
7557
fi
7558
 
7559
  if test "x$ac_ct_LIPO" = x; then
7560
    LIPO=":"
7561
  else
7562
    case $cross_compiling:$ac_tool_warned in
7563
yes:)
7564
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7565
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7566
ac_tool_warned=yes ;;
7567
esac
7568
    LIPO=$ac_ct_LIPO
7569
  fi
7570
else
7571
  LIPO="$ac_cv_prog_LIPO"
7572
fi
7573
 
7574
    if test -n "$ac_tool_prefix"; then
7575
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7576
set dummy ${ac_tool_prefix}otool; ac_word=$2
7577
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7578
$as_echo_n "checking for $ac_word... " >&6; }
7579
if test "${ac_cv_prog_OTOOL+set}" = set; then
7580
  $as_echo_n "(cached) " >&6
7581
else
7582
  if test -n "$OTOOL"; then
7583
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7584
else
7585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586
for as_dir in $PATH
7587
do
7588
  IFS=$as_save_IFS
7589
  test -z "$as_dir" && as_dir=.
7590
  for ac_exec_ext in '' $ac_executable_extensions; do
7591
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7593
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7594
    break 2
7595
  fi
7596
done
7597
done
7598
IFS=$as_save_IFS
7599
 
7600
fi
7601
fi
7602
OTOOL=$ac_cv_prog_OTOOL
7603
if test -n "$OTOOL"; then
7604
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7605
$as_echo "$OTOOL" >&6; }
7606
else
7607
  { $as_echo "$as_me:$LINENO: result: no" >&5
7608
$as_echo "no" >&6; }
7609
fi
7610
 
7611
 
7612
fi
7613
if test -z "$ac_cv_prog_OTOOL"; then
7614
  ac_ct_OTOOL=$OTOOL
7615
  # Extract the first word of "otool", so it can be a program name with args.
7616
set dummy otool; ac_word=$2
7617
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7618
$as_echo_n "checking for $ac_word... " >&6; }
7619
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7620
  $as_echo_n "(cached) " >&6
7621
else
7622
  if test -n "$ac_ct_OTOOL"; then
7623
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7624
else
7625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626
for as_dir in $PATH
7627
do
7628
  IFS=$as_save_IFS
7629
  test -z "$as_dir" && as_dir=.
7630
  for ac_exec_ext in '' $ac_executable_extensions; do
7631
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7632
    ac_cv_prog_ac_ct_OTOOL="otool"
7633
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634
    break 2
7635
  fi
7636
done
7637
done
7638
IFS=$as_save_IFS
7639
 
7640
fi
7641
fi
7642
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7643
if test -n "$ac_ct_OTOOL"; then
7644
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7645
$as_echo "$ac_ct_OTOOL" >&6; }
7646
else
7647
  { $as_echo "$as_me:$LINENO: result: no" >&5
7648
$as_echo "no" >&6; }
7649
fi
7650
 
7651
  if test "x$ac_ct_OTOOL" = x; then
7652
    OTOOL=":"
7653
  else
7654
    case $cross_compiling:$ac_tool_warned in
7655
yes:)
7656
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7657
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7658
ac_tool_warned=yes ;;
7659
esac
7660
    OTOOL=$ac_ct_OTOOL
7661
  fi
7662
else
7663
  OTOOL="$ac_cv_prog_OTOOL"
7664
fi
7665
 
7666
    if test -n "$ac_tool_prefix"; then
7667
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7668
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7669
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7670
$as_echo_n "checking for $ac_word... " >&6; }
7671
if test "${ac_cv_prog_OTOOL64+set}" = set; then
7672
  $as_echo_n "(cached) " >&6
7673
else
7674
  if test -n "$OTOOL64"; then
7675
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7676
else
7677
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678
for as_dir in $PATH
7679
do
7680
  IFS=$as_save_IFS
7681
  test -z "$as_dir" && as_dir=.
7682
  for ac_exec_ext in '' $ac_executable_extensions; do
7683
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7685
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686
    break 2
7687
  fi
7688
done
7689
done
7690
IFS=$as_save_IFS
7691
 
7692
fi
7693
fi
7694
OTOOL64=$ac_cv_prog_OTOOL64
7695
if test -n "$OTOOL64"; then
7696
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7697
$as_echo "$OTOOL64" >&6; }
7698
else
7699
  { $as_echo "$as_me:$LINENO: result: no" >&5
7700
$as_echo "no" >&6; }
7701
fi
7702
 
7703
 
7704
fi
7705
if test -z "$ac_cv_prog_OTOOL64"; then
7706
  ac_ct_OTOOL64=$OTOOL64
7707
  # Extract the first word of "otool64", so it can be a program name with args.
7708
set dummy otool64; ac_word=$2
7709
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7710
$as_echo_n "checking for $ac_word... " >&6; }
7711
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7712
  $as_echo_n "(cached) " >&6
7713
else
7714
  if test -n "$ac_ct_OTOOL64"; then
7715
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7716
else
7717
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718
for as_dir in $PATH
7719
do
7720
  IFS=$as_save_IFS
7721
  test -z "$as_dir" && as_dir=.
7722
  for ac_exec_ext in '' $ac_executable_extensions; do
7723
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7724
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7725
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7726
    break 2
7727
  fi
7728
done
7729
done
7730
IFS=$as_save_IFS
7731
 
7732
fi
7733
fi
7734
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7735
if test -n "$ac_ct_OTOOL64"; then
7736
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7737
$as_echo "$ac_ct_OTOOL64" >&6; }
7738
else
7739
  { $as_echo "$as_me:$LINENO: result: no" >&5
7740
$as_echo "no" >&6; }
7741
fi
7742
 
7743
  if test "x$ac_ct_OTOOL64" = x; then
7744
    OTOOL64=":"
7745
  else
7746
    case $cross_compiling:$ac_tool_warned in
7747
yes:)
7748
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7749
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750
ac_tool_warned=yes ;;
7751
esac
7752
    OTOOL64=$ac_ct_OTOOL64
7753
  fi
7754
else
7755
  OTOOL64="$ac_cv_prog_OTOOL64"
7756
fi
7757
 
7758
 
7759
 
7760
 
7761
 
7762
 
7763
 
7764
 
7765
 
7766
 
7767
 
7768
 
7769
 
7770
 
7771
 
7772
 
7773
 
7774
 
7775
 
7776
 
7777
 
7778
 
7779
 
7780
 
7781
 
7782
 
7783
 
7784
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7785
$as_echo_n "checking for -single_module linker flag... " >&6; }
7786
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7787
  $as_echo_n "(cached) " >&6
7788
else
7789
  lt_cv_apple_cc_single_mod=no
7790
      if test -z "${LT_MULTI_MODULE}"; then
7791
        # By default we will add the -single_module flag. You can override
7792
        # by either setting the environment variable LT_MULTI_MODULE
7793
        # non-empty at configure time, or by adding -multi_module to the
7794
        # link flags.
7795
        rm -rf libconftest.dylib*
7796
        echo "int foo(void){return 1;}" > conftest.c
7797
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7798
-dynamiclib -Wl,-single_module conftest.c" >&5
7799
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7800
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7801
        _lt_result=$?
7802
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7803
          lt_cv_apple_cc_single_mod=yes
7804
        else
7805
          cat conftest.err >&5
7806
        fi
7807
        rm -rf libconftest.dylib*
7808
        rm -f conftest.*
7809
      fi
7810
fi
7811
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7812
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7813
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7814
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7815
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7816
  $as_echo_n "(cached) " >&6
7817
else
7818
  lt_cv_ld_exported_symbols_list=no
7819
      save_LDFLAGS=$LDFLAGS
7820
      echo "_main" > conftest.sym
7821
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7822
      cat >conftest.$ac_ext <<_ACEOF
7823
/* confdefs.h.  */
7824
_ACEOF
7825
cat confdefs.h >>conftest.$ac_ext
7826
cat >>conftest.$ac_ext <<_ACEOF
7827
/* end confdefs.h.  */
7828
 
7829
int
7830
main ()
7831
{
7832
 
7833
  ;
7834
  return 0;
7835
}
7836
_ACEOF
7837
rm -f conftest.$ac_objext conftest$ac_exeext
7838
if { (ac_try="$ac_link"
7839
case "(($ac_try" in
7840
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841
  *) ac_try_echo=$ac_try;;
7842
esac
7843
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7844
$as_echo "$ac_try_echo") >&5
7845
  (eval "$ac_link") 2>conftest.er1
7846
  ac_status=$?
7847
  grep -v '^ *+' conftest.er1 >conftest.err
7848
  rm -f conftest.er1
7849
  cat conftest.err >&5
7850
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851
  (exit $ac_status); } && {
7852
         test -z "$ac_c_werror_flag" ||
7853
         test ! -s conftest.err
7854
       } && test -s conftest$ac_exeext && {
7855
         test "$cross_compiling" = yes ||
7856
         $as_test_x conftest$ac_exeext
7857
       }; then
7858
  lt_cv_ld_exported_symbols_list=yes
7859
else
7860
  $as_echo "$as_me: failed program was:" >&5
7861
sed 's/^/| /' conftest.$ac_ext >&5
7862
 
7863
        lt_cv_ld_exported_symbols_list=no
7864
fi
7865
 
7866
rm -rf conftest.dSYM
7867
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7868
      conftest$ac_exeext conftest.$ac_ext
7869
        LDFLAGS="$save_LDFLAGS"
7870
 
7871
fi
7872
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7873
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7874
    case $host_os in
7875
    rhapsody* | darwin1.[012])
7876
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7877
    darwin1.*)
7878
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7879
    darwin*) # darwin 5.x on
7880
      # if running on 10.5 or later, the deployment target defaults
7881
      # to the OS version, if on x86, and 10.4, the deployment
7882
      # target defaults to 10.4. Don't you love it?
7883
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7884
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7885
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7886
        10.[012]*)
7887
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7888
        10.*)
7889
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7890
      esac
7891
    ;;
7892
  esac
7893
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7894
      _lt_dar_single_mod='$single_module'
7895
    fi
7896
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7897
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7898
    else
7899
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7900
    fi
7901
    if test "$DSYMUTIL" != ":"; then
7902
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7903
    else
7904
      _lt_dsymutil=
7905
    fi
7906
    ;;
7907
  esac
7908
 
7909
ac_ext=c
7910
ac_cpp='$CPP $CPPFLAGS'
7911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7914
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7915
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7916
# On Suns, sometimes $CPP names a directory.
7917
if test -n "$CPP" && test -d "$CPP"; then
7918
  CPP=
7919
fi
7920
if test -z "$CPP"; then
7921
  if test "${ac_cv_prog_CPP+set}" = set; then
7922
  $as_echo_n "(cached) " >&6
7923
else
7924
      # Double quotes because CPP needs to be expanded
7925
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7926
    do
7927
      ac_preproc_ok=false
7928
for ac_c_preproc_warn_flag in '' yes
7929
do
7930
  # Use a header file that comes with gcc, so configuring glibc
7931
  # with a fresh cross-compiler works.
7932
  # Prefer  to  if __STDC__ is defined, since
7933
  #  exists even on freestanding compilers.
7934
  # On the NeXT, cc -E runs the code through the compiler's parser,
7935
  # not just through cpp. "Syntax error" is here to catch this case.
7936
  cat >conftest.$ac_ext <<_ACEOF
7937
/* confdefs.h.  */
7938
_ACEOF
7939
cat confdefs.h >>conftest.$ac_ext
7940
cat >>conftest.$ac_ext <<_ACEOF
7941
/* end confdefs.h.  */
7942
#ifdef __STDC__
7943
# include 
7944
#else
7945
# include 
7946
#endif
7947
                     Syntax error
7948
_ACEOF
7949
if { (ac_try="$ac_cpp conftest.$ac_ext"
7950
case "(($ac_try" in
7951
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952
  *) ac_try_echo=$ac_try;;
7953
esac
7954
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7955
$as_echo "$ac_try_echo") >&5
7956
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7957
  ac_status=$?
7958
  grep -v '^ *+' conftest.er1 >conftest.err
7959
  rm -f conftest.er1
7960
  cat conftest.err >&5
7961
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962
  (exit $ac_status); } >/dev/null && {
7963
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7964
         test ! -s conftest.err
7965
       }; then
7966
  :
7967
else
7968
  $as_echo "$as_me: failed program was:" >&5
7969
sed 's/^/| /' conftest.$ac_ext >&5
7970
 
7971
  # Broken: fails on valid input.
7972
continue
7973
fi
7974
 
7975
rm -f conftest.err conftest.$ac_ext
7976
 
7977
  # OK, works on sane cases.  Now check whether nonexistent headers
7978
  # can be detected and how.
7979
  cat >conftest.$ac_ext <<_ACEOF
7980
/* confdefs.h.  */
7981
_ACEOF
7982
cat confdefs.h >>conftest.$ac_ext
7983
cat >>conftest.$ac_ext <<_ACEOF
7984
/* end confdefs.h.  */
7985
#include 
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
  # Broken: success on invalid input.
8005
continue
8006
else
8007
  $as_echo "$as_me: failed program was:" >&5
8008
sed 's/^/| /' conftest.$ac_ext >&5
8009
 
8010
  # Passes both tests.
8011
ac_preproc_ok=:
8012
break
8013
fi
8014
 
8015
rm -f conftest.err conftest.$ac_ext
8016
 
8017
done
8018
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8019
rm -f conftest.err conftest.$ac_ext
8020
if $ac_preproc_ok; then
8021
  break
8022
fi
8023
 
8024
    done
8025
    ac_cv_prog_CPP=$CPP
8026
 
8027
fi
8028
  CPP=$ac_cv_prog_CPP
8029
else
8030
  ac_cv_prog_CPP=$CPP
8031
fi
8032
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
8033
$as_echo "$CPP" >&6; }
8034
ac_preproc_ok=false
8035
for ac_c_preproc_warn_flag in '' yes
8036
do
8037
  # Use a header file that comes with gcc, so configuring glibc
8038
  # with a fresh cross-compiler works.
8039
  # Prefer  to  if __STDC__ is defined, since
8040
  #  exists even on freestanding compilers.
8041
  # On the NeXT, cc -E runs the code through the compiler's parser,
8042
  # not just through cpp. "Syntax error" is here to catch this case.
8043
  cat >conftest.$ac_ext <<_ACEOF
8044
/* confdefs.h.  */
8045
_ACEOF
8046
cat confdefs.h >>conftest.$ac_ext
8047
cat >>conftest.$ac_ext <<_ACEOF
8048
/* end confdefs.h.  */
8049
#ifdef __STDC__
8050
# include 
8051
#else
8052
# include 
8053
#endif
8054
                     Syntax error
8055
_ACEOF
8056
if { (ac_try="$ac_cpp conftest.$ac_ext"
8057
case "(($ac_try" in
8058
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059
  *) ac_try_echo=$ac_try;;
8060
esac
8061
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8062
$as_echo "$ac_try_echo") >&5
8063
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8064
  ac_status=$?
8065
  grep -v '^ *+' conftest.er1 >conftest.err
8066
  rm -f conftest.er1
8067
  cat conftest.err >&5
8068
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069
  (exit $ac_status); } >/dev/null && {
8070
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8071
         test ! -s conftest.err
8072
       }; then
8073
  :
8074
else
8075
  $as_echo "$as_me: failed program was:" >&5
8076
sed 's/^/| /' conftest.$ac_ext >&5
8077
 
8078
  # Broken: fails on valid input.
8079
continue
8080
fi
8081
 
8082
rm -f conftest.err conftest.$ac_ext
8083
 
8084
  # OK, works on sane cases.  Now check whether nonexistent headers
8085
  # can be detected and how.
8086
  cat >conftest.$ac_ext <<_ACEOF
8087
/* confdefs.h.  */
8088
_ACEOF
8089
cat confdefs.h >>conftest.$ac_ext
8090
cat >>conftest.$ac_ext <<_ACEOF
8091
/* end confdefs.h.  */
8092
#include 
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
  # Broken: success on invalid input.
8112
continue
8113
else
8114
  $as_echo "$as_me: failed program was:" >&5
8115
sed 's/^/| /' conftest.$ac_ext >&5
8116
 
8117
  # Passes both tests.
8118
ac_preproc_ok=:
8119
break
8120
fi
8121
 
8122
rm -f conftest.err conftest.$ac_ext
8123
 
8124
done
8125
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8126
rm -f conftest.err conftest.$ac_ext
8127
if $ac_preproc_ok; then
8128
  :
8129
else
8130
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8131
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8132
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8133
See \`config.log' for more details." >&5
8134
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8135
See \`config.log' for more details." >&2;}
8136
   { (exit 1); exit 1; }; }; }
8137
fi
8138
 
8139
ac_ext=c
8140
ac_cpp='$CPP $CPPFLAGS'
8141
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8142
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8143
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8144
 
8145
 
8146
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8147
$as_echo_n "checking for ANSI C header files... " >&6; }
8148
if test "${ac_cv_header_stdc+set}" = set; then
8149
  $as_echo_n "(cached) " >&6
8150
else
8151
  cat >conftest.$ac_ext <<_ACEOF
8152
/* confdefs.h.  */
8153
_ACEOF
8154
cat confdefs.h >>conftest.$ac_ext
8155
cat >>conftest.$ac_ext <<_ACEOF
8156
/* end confdefs.h.  */
8157
#include 
8158
#include 
8159
#include 
8160
#include 
8161
 
8162
int
8163
main ()
8164
{
8165
 
8166
  ;
8167
  return 0;
8168
}
8169
_ACEOF
8170
rm -f conftest.$ac_objext
8171
if { (ac_try="$ac_compile"
8172
case "(($ac_try" in
8173
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174
  *) ac_try_echo=$ac_try;;
8175
esac
8176
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8177
$as_echo "$ac_try_echo") >&5
8178
  (eval "$ac_compile") 2>conftest.er1
8179
  ac_status=$?
8180
  grep -v '^ *+' conftest.er1 >conftest.err
8181
  rm -f conftest.er1
8182
  cat conftest.err >&5
8183
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184
  (exit $ac_status); } && {
8185
         test -z "$ac_c_werror_flag" ||
8186
         test ! -s conftest.err
8187
       } && test -s conftest.$ac_objext; then
8188
  ac_cv_header_stdc=yes
8189
else
8190
  $as_echo "$as_me: failed program was:" >&5
8191
sed 's/^/| /' conftest.$ac_ext >&5
8192
 
8193
        ac_cv_header_stdc=no
8194
fi
8195
 
8196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8197
 
8198
if test $ac_cv_header_stdc = yes; then
8199
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8200
  cat >conftest.$ac_ext <<_ACEOF
8201
/* confdefs.h.  */
8202
_ACEOF
8203
cat confdefs.h >>conftest.$ac_ext
8204
cat >>conftest.$ac_ext <<_ACEOF
8205
/* end confdefs.h.  */
8206
#include 
8207
 
8208
_ACEOF
8209
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8210
  $EGREP "memchr" >/dev/null 2>&1; then
8211
  :
8212
else
8213
  ac_cv_header_stdc=no
8214
fi
8215
rm -f conftest*
8216
 
8217
fi
8218
 
8219
if test $ac_cv_header_stdc = yes; then
8220
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8221
  cat >conftest.$ac_ext <<_ACEOF
8222
/* confdefs.h.  */
8223
_ACEOF
8224
cat confdefs.h >>conftest.$ac_ext
8225
cat >>conftest.$ac_ext <<_ACEOF
8226
/* end confdefs.h.  */
8227
#include 
8228
 
8229
_ACEOF
8230
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8231
  $EGREP "free" >/dev/null 2>&1; then
8232
  :
8233
else
8234
  ac_cv_header_stdc=no
8235
fi
8236
rm -f conftest*
8237
 
8238
fi
8239
 
8240
if test $ac_cv_header_stdc = yes; then
8241
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8242
  if test "$cross_compiling" = yes; then
8243
  :
8244
else
8245
  cat >conftest.$ac_ext <<_ACEOF
8246
/* confdefs.h.  */
8247
_ACEOF
8248
cat confdefs.h >>conftest.$ac_ext
8249
cat >>conftest.$ac_ext <<_ACEOF
8250
/* end confdefs.h.  */
8251
#include 
8252
#include 
8253
#if ((' ' & 0x0FF) == 0x020)
8254
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8255
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8256
#else
8257
# define ISLOWER(c) \
8258
                   (('a' <= (c) && (c) <= 'i') \
8259
                     || ('j' <= (c) && (c) <= 'r') \
8260
                     || ('s' <= (c) && (c) <= 'z'))
8261
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8262
#endif
8263
 
8264
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8265
int
8266
main ()
8267
{
8268
  int i;
8269
  for (i = 0; i < 256; i++)
8270
    if (XOR (islower (i), ISLOWER (i))
8271
        || toupper (i) != TOUPPER (i))
8272
      return 2;
8273
  return 0;
8274
}
8275
_ACEOF
8276
rm -f conftest$ac_exeext
8277
if { (ac_try="$ac_link"
8278
case "(($ac_try" in
8279
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280
  *) ac_try_echo=$ac_try;;
8281
esac
8282
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8283
$as_echo "$ac_try_echo") >&5
8284
  (eval "$ac_link") 2>&5
8285
  ac_status=$?
8286
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8288
  { (case "(($ac_try" in
8289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290
  *) ac_try_echo=$ac_try;;
8291
esac
8292
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8293
$as_echo "$ac_try_echo") >&5
8294
  (eval "$ac_try") 2>&5
8295
  ac_status=$?
8296
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297
  (exit $ac_status); }; }; then
8298
  :
8299
else
8300
  $as_echo "$as_me: program exited with status $ac_status" >&5
8301
$as_echo "$as_me: failed program was:" >&5
8302
sed 's/^/| /' conftest.$ac_ext >&5
8303
 
8304
( exit $ac_status )
8305
ac_cv_header_stdc=no
8306
fi
8307
rm -rf conftest.dSYM
8308
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8309
fi
8310
 
8311
 
8312
fi
8313
fi
8314
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8315
$as_echo "$ac_cv_header_stdc" >&6; }
8316
if test $ac_cv_header_stdc = yes; then
8317
 
8318
cat >>confdefs.h <<\_ACEOF
8319
#define STDC_HEADERS 1
8320
_ACEOF
8321
 
8322
fi
8323
 
8324
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8325
 
8326
 
8327
 
8328
 
8329
 
8330
 
8331
 
8332
 
8333
 
8334
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8335
                  inttypes.h stdint.h unistd.h
8336
do
8337
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8338
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8339
$as_echo_n "checking for $ac_header... " >&6; }
8340
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8341
  $as_echo_n "(cached) " >&6
8342
else
8343
  cat >conftest.$ac_ext <<_ACEOF
8344
/* confdefs.h.  */
8345
_ACEOF
8346
cat confdefs.h >>conftest.$ac_ext
8347
cat >>conftest.$ac_ext <<_ACEOF
8348
/* end confdefs.h.  */
8349
$ac_includes_default
8350
 
8351
#include <$ac_header>
8352
_ACEOF
8353
rm -f conftest.$ac_objext
8354
if { (ac_try="$ac_compile"
8355
case "(($ac_try" in
8356
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357
  *) ac_try_echo=$ac_try;;
8358
esac
8359
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8360
$as_echo "$ac_try_echo") >&5
8361
  (eval "$ac_compile") 2>conftest.er1
8362
  ac_status=$?
8363
  grep -v '^ *+' conftest.er1 >conftest.err
8364
  rm -f conftest.er1
8365
  cat conftest.err >&5
8366
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367
  (exit $ac_status); } && {
8368
         test -z "$ac_c_werror_flag" ||
8369
         test ! -s conftest.err
8370
       } && test -s conftest.$ac_objext; then
8371
  eval "$as_ac_Header=yes"
8372
else
8373
  $as_echo "$as_me: failed program was:" >&5
8374
sed 's/^/| /' conftest.$ac_ext >&5
8375
 
8376
        eval "$as_ac_Header=no"
8377
fi
8378
 
8379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380
fi
8381
ac_res=`eval 'as_val=${'$as_ac_Header'}
8382
                 $as_echo "$as_val"'`
8383
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8384
$as_echo "$ac_res" >&6; }
8385
as_val=`eval 'as_val=${'$as_ac_Header'}
8386
                 $as_echo "$as_val"'`
8387
   if test "x$as_val" = x""yes; then
8388
  cat >>confdefs.h <<_ACEOF
8389
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8390
_ACEOF
8391
 
8392
fi
8393
 
8394
done
8395
 
8396
 
8397
 
8398
for ac_header in dlfcn.h
8399
do
8400
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8401
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8402
$as_echo_n "checking for $ac_header... " >&6; }
8403
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8404
  $as_echo_n "(cached) " >&6
8405
else
8406
  cat >conftest.$ac_ext <<_ACEOF
8407
/* confdefs.h.  */
8408
_ACEOF
8409
cat confdefs.h >>conftest.$ac_ext
8410
cat >>conftest.$ac_ext <<_ACEOF
8411
/* end confdefs.h.  */
8412
$ac_includes_default
8413
 
8414
#include <$ac_header>
8415
_ACEOF
8416
rm -f conftest.$ac_objext
8417
if { (ac_try="$ac_compile"
8418
case "(($ac_try" in
8419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420
  *) ac_try_echo=$ac_try;;
8421
esac
8422
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8423
$as_echo "$ac_try_echo") >&5
8424
  (eval "$ac_compile") 2>conftest.er1
8425
  ac_status=$?
8426
  grep -v '^ *+' conftest.er1 >conftest.err
8427
  rm -f conftest.er1
8428
  cat conftest.err >&5
8429
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430
  (exit $ac_status); } && {
8431
         test -z "$ac_c_werror_flag" ||
8432
         test ! -s conftest.err
8433
       } && test -s conftest.$ac_objext; then
8434
  eval "$as_ac_Header=yes"
8435
else
8436
  $as_echo "$as_me: failed program was:" >&5
8437
sed 's/^/| /' conftest.$ac_ext >&5
8438
 
8439
        eval "$as_ac_Header=no"
8440
fi
8441
 
8442
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443
fi
8444
ac_res=`eval 'as_val=${'$as_ac_Header'}
8445
                 $as_echo "$as_val"'`
8446
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8447
$as_echo "$ac_res" >&6; }
8448
as_val=`eval 'as_val=${'$as_ac_Header'}
8449
                 $as_echo "$as_val"'`
8450
   if test "x$as_val" = x""yes; then
8451
  cat >>confdefs.h <<_ACEOF
8452
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8453
_ACEOF
8454
 
8455
fi
8456
 
8457
done
8458
 
8459
 
8460
 
8461
# Set options
8462
 
8463
 
8464
 
8465
        enable_dlopen=no
8466
 
8467
 
8468
 
8469
            # Check whether --enable-shared was given.
8470
if test "${enable_shared+set}" = set; then
8471
  enableval=$enable_shared; p=${PACKAGE-default}
8472
    case $enableval in
8473
    yes) enable_shared=yes ;;
8474
    no) enable_shared=no ;;
8475
    *)
8476
      enable_shared=no
8477
      # Look at the argument we got.  We use all the common list separators.
8478
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8479
      for pkg in $enableval; do
8480
        IFS="$lt_save_ifs"
8481
        if test "X$pkg" = "X$p"; then
8482
          enable_shared=yes
8483
        fi
8484
      done
8485
      IFS="$lt_save_ifs"
8486
      ;;
8487
    esac
8488
else
8489
  enable_shared=yes
8490
fi
8491
 
8492
 
8493
 
8494
 
8495
 
8496
 
8497
 
8498
 
8499
 
8500
  # Check whether --enable-static was given.
8501
if test "${enable_static+set}" = set; then
8502
  enableval=$enable_static; p=${PACKAGE-default}
8503
    case $enableval in
8504
    yes) enable_static=yes ;;
8505
    no) enable_static=no ;;
8506
    *)
8507
     enable_static=no
8508
      # Look at the argument we got.  We use all the common list separators.
8509
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8510
      for pkg in $enableval; do
8511
        IFS="$lt_save_ifs"
8512
        if test "X$pkg" = "X$p"; then
8513
          enable_static=yes
8514
        fi
8515
      done
8516
      IFS="$lt_save_ifs"
8517
      ;;
8518
    esac
8519
else
8520
  enable_static=yes
8521
fi
8522
 
8523
 
8524
 
8525
 
8526
 
8527
 
8528
 
8529
 
8530
 
8531
 
8532
# Check whether --with-pic was given.
8533
if test "${with_pic+set}" = set; then
8534
  withval=$with_pic; pic_mode="$withval"
8535
else
8536
  pic_mode=default
8537
fi
8538
 
8539
 
8540
test -z "$pic_mode" && pic_mode=default
8541
 
8542
 
8543
 
8544
 
8545
 
8546
 
8547
 
8548
  # Check whether --enable-fast-install was given.
8549
if test "${enable_fast_install+set}" = set; then
8550
  enableval=$enable_fast_install; p=${PACKAGE-default}
8551
    case $enableval in
8552
    yes) enable_fast_install=yes ;;
8553
    no) enable_fast_install=no ;;
8554
    *)
8555
      enable_fast_install=no
8556
      # Look at the argument we got.  We use all the common list separators.
8557
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8558
      for pkg in $enableval; do
8559
        IFS="$lt_save_ifs"
8560
        if test "X$pkg" = "X$p"; then
8561
          enable_fast_install=yes
8562
        fi
8563
      done
8564
      IFS="$lt_save_ifs"
8565
      ;;
8566
    esac
8567
else
8568
  enable_fast_install=yes
8569
fi
8570
 
8571
 
8572
 
8573
 
8574
 
8575
 
8576
 
8577
 
8578
 
8579
 
8580
 
8581
# This can be used to rebuild libtool when needed
8582
LIBTOOL_DEPS="$ltmain"
8583
 
8584
# Always use our own libtool.
8585
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8586
 
8587
 
8588
 
8589
 
8590
 
8591
 
8592
 
8593
 
8594
 
8595
 
8596
 
8597
 
8598
 
8599
 
8600
 
8601
 
8602
 
8603
 
8604
 
8605
 
8606
 
8607
 
8608
 
8609
 
8610
 
8611
test -z "$LN_S" && LN_S="ln -s"
8612
 
8613
 
8614
 
8615
 
8616
 
8617
 
8618
 
8619
 
8620
 
8621
 
8622
 
8623
 
8624
 
8625
 
8626
if test -n "${ZSH_VERSION+set}" ; then
8627
   setopt NO_GLOB_SUBST
8628
fi
8629
 
8630
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8631
$as_echo_n "checking for objdir... " >&6; }
8632
if test "${lt_cv_objdir+set}" = set; then
8633
  $as_echo_n "(cached) " >&6
8634
else
8635
  rm -f .libs 2>/dev/null
8636
mkdir .libs 2>/dev/null
8637
if test -d .libs; then
8638
  lt_cv_objdir=.libs
8639
else
8640
  # MS-DOS does not allow filenames that begin with a dot.
8641
  lt_cv_objdir=_libs
8642
fi
8643
rmdir .libs 2>/dev/null
8644
fi
8645
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8646
$as_echo "$lt_cv_objdir" >&6; }
8647
objdir=$lt_cv_objdir
8648
 
8649
 
8650
 
8651
 
8652
 
8653
cat >>confdefs.h <<_ACEOF
8654
#define LT_OBJDIR "$lt_cv_objdir/"
8655
_ACEOF
8656
 
8657
 
8658
 
8659
 
8660
 
8661
 
8662
 
8663
 
8664
 
8665
 
8666
 
8667
 
8668
 
8669
 
8670
 
8671
 
8672
 
8673
case $host_os in
8674
aix3*)
8675
  # AIX sometimes has problems with the GCC collect2 program.  For some
8676
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8677
  # vanish in a puff of smoke.
8678
  if test "X${COLLECT_NAMES+set}" != Xset; then
8679
    COLLECT_NAMES=
8680
    export COLLECT_NAMES
8681
  fi
8682
  ;;
8683
esac
8684
 
8685
# Sed substitution that helps us do robust quoting.  It backslashifies
8686
# metacharacters that are still active within double-quoted strings.
8687
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8688
 
8689
# Same as above, but do not quote variable references.
8690
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8691
 
8692
# Sed substitution to delay expansion of an escaped shell variable in a
8693
# double_quote_subst'ed string.
8694
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8695
 
8696
# Sed substitution to delay expansion of an escaped single quote.
8697
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8698
 
8699
# Sed substitution to avoid accidental globbing in evaled expressions
8700
no_glob_subst='s/\*/\\\*/g'
8701
 
8702
# Global variables:
8703
ofile=libtool
8704
can_build_shared=yes
8705
 
8706
# All known linkers require a `.a' archive for static linking (except MSVC,
8707
# which needs '.lib').
8708
libext=a
8709
 
8710
with_gnu_ld="$lt_cv_prog_gnu_ld"
8711
 
8712
old_CC="$CC"
8713
old_CFLAGS="$CFLAGS"
8714
 
8715
# Set sane defaults for various variables
8716
test -z "$CC" && CC=cc
8717
test -z "$LTCC" && LTCC=$CC
8718
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8719
test -z "$LD" && LD=ld
8720
test -z "$ac_objext" && ac_objext=o
8721
 
8722
for cc_temp in $compiler""; do
8723
  case $cc_temp in
8724
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8725
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8726
    \-*) ;;
8727
    *) break;;
8728
  esac
8729
done
8730
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8731
 
8732
 
8733
# Only perform the check for file, if the check method requires it
8734
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8735
case $deplibs_check_method in
8736
file_magic*)
8737
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8738
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8739
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8740
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8741
  $as_echo_n "(cached) " >&6
8742
else
8743
  case $MAGIC_CMD in
8744
[\\/*] |  ?:[\\/]*)
8745
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8746
  ;;
8747
*)
8748
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8749
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8750
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8751
  for ac_dir in $ac_dummy; do
8752
    IFS="$lt_save_ifs"
8753
    test -z "$ac_dir" && ac_dir=.
8754
    if test -f $ac_dir/${ac_tool_prefix}file; then
8755
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8756
      if test -n "$file_magic_test_file"; then
8757
        case $deplibs_check_method in
8758
        "file_magic "*)
8759
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8760
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8761
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8762
            $EGREP "$file_magic_regex" > /dev/null; then
8763
            :
8764
          else
8765
            cat <<_LT_EOF 1>&2
8766
 
8767
*** Warning: the command libtool uses to detect shared libraries,
8768
*** $file_magic_cmd, produces output that libtool cannot recognize.
8769
*** The result is that libtool may fail to recognize shared libraries
8770
*** as such.  This will affect the creation of libtool libraries that
8771
*** depend on shared libraries, but programs linked with such libtool
8772
*** libraries will work regardless of this problem.  Nevertheless, you
8773
*** may want to report the problem to your system manager and/or to
8774
*** bug-libtool@gnu.org
8775
 
8776
_LT_EOF
8777
          fi ;;
8778
        esac
8779
      fi
8780
      break
8781
    fi
8782
  done
8783
  IFS="$lt_save_ifs"
8784
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8785
  ;;
8786
esac
8787
fi
8788
 
8789
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8790
if test -n "$MAGIC_CMD"; then
8791
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8792
$as_echo "$MAGIC_CMD" >&6; }
8793
else
8794
  { $as_echo "$as_me:$LINENO: result: no" >&5
8795
$as_echo "no" >&6; }
8796
fi
8797
 
8798
 
8799
 
8800
 
8801
 
8802
if test -z "$lt_cv_path_MAGIC_CMD"; then
8803
  if test -n "$ac_tool_prefix"; then
8804
    { $as_echo "$as_me:$LINENO: checking for file" >&5
8805
$as_echo_n "checking for file... " >&6; }
8806
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8807
  $as_echo_n "(cached) " >&6
8808
else
8809
  case $MAGIC_CMD in
8810
[\\/*] |  ?:[\\/]*)
8811
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8812
  ;;
8813
*)
8814
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8815
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8816
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8817
  for ac_dir in $ac_dummy; do
8818
    IFS="$lt_save_ifs"
8819
    test -z "$ac_dir" && ac_dir=.
8820
    if test -f $ac_dir/file; then
8821
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8822
      if test -n "$file_magic_test_file"; then
8823
        case $deplibs_check_method in
8824
        "file_magic "*)
8825
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8826
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8827
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8828
            $EGREP "$file_magic_regex" > /dev/null; then
8829
            :
8830
          else
8831
            cat <<_LT_EOF 1>&2
8832
 
8833
*** Warning: the command libtool uses to detect shared libraries,
8834
*** $file_magic_cmd, produces output that libtool cannot recognize.
8835
*** The result is that libtool may fail to recognize shared libraries
8836
*** as such.  This will affect the creation of libtool libraries that
8837
*** depend on shared libraries, but programs linked with such libtool
8838
*** libraries will work regardless of this problem.  Nevertheless, you
8839
*** may want to report the problem to your system manager and/or to
8840
*** bug-libtool@gnu.org
8841
 
8842
_LT_EOF
8843
          fi ;;
8844
        esac
8845
      fi
8846
      break
8847
    fi
8848
  done
8849
  IFS="$lt_save_ifs"
8850
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8851
  ;;
8852
esac
8853
fi
8854
 
8855
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8856
if test -n "$MAGIC_CMD"; then
8857
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8858
$as_echo "$MAGIC_CMD" >&6; }
8859
else
8860
  { $as_echo "$as_me:$LINENO: result: no" >&5
8861
$as_echo "no" >&6; }
8862
fi
8863
 
8864
 
8865
  else
8866
    MAGIC_CMD=:
8867
  fi
8868
fi
8869
 
8870
  fi
8871
  ;;
8872
esac
8873
 
8874
# Use C for the default configuration in the libtool script
8875
 
8876
lt_save_CC="$CC"
8877
ac_ext=c
8878
ac_cpp='$CPP $CPPFLAGS'
8879
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8880
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8881
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8882
 
8883
 
8884
# Source file extension for C test sources.
8885
ac_ext=c
8886
 
8887
# Object file extension for compiled C test sources.
8888
objext=o
8889
objext=$objext
8890
 
8891
# Code to be used in simple compile tests
8892
lt_simple_compile_test_code="int some_variable = 0;"
8893
 
8894
# Code to be used in simple link tests
8895
lt_simple_link_test_code='int main(){return(0);}'
8896
 
8897
 
8898
 
8899
 
8900
 
8901
 
8902
 
8903
# If no C compiler was specified, use CC.
8904
LTCC=${LTCC-"$CC"}
8905
 
8906
# If no C compiler flags were specified, use CFLAGS.
8907
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8908
 
8909
# Allow CC to be a program name with arguments.
8910
compiler=$CC
8911
 
8912
# Save the default compiler, since it gets overwritten when the other
8913
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8914
compiler_DEFAULT=$CC
8915
 
8916
# save warnings/boilerplate of simple test code
8917
ac_outfile=conftest.$ac_objext
8918
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8919
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8920
_lt_compiler_boilerplate=`cat conftest.err`
8921
$RM conftest*
8922
 
8923
ac_outfile=conftest.$ac_objext
8924
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8925
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8926
_lt_linker_boilerplate=`cat conftest.err`
8927
$RM -r conftest*
8928
 
8929
 
8930
## CAVEAT EMPTOR:
8931
## There is no encapsulation within the following macros, do not change
8932
## the running order or otherwise move them around unless you know exactly
8933
## what you are doing...
8934
if test -n "$compiler"; then
8935
 
8936
lt_prog_compiler_no_builtin_flag=
8937
 
8938
if test "$GCC" = yes; then
8939
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8940
 
8941
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8942
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8943
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8944
  $as_echo_n "(cached) " >&6
8945
else
8946
  lt_cv_prog_compiler_rtti_exceptions=no
8947
   ac_outfile=conftest.$ac_objext
8948
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8949
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8950
   # Insert the option either (1) after the last *FLAGS variable, or
8951
   # (2) before a word containing "conftest.", or (3) at the end.
8952
   # Note that $ac_compile itself does not contain backslashes and begins
8953
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8954
   # The option is referenced via a variable to avoid confusing sed.
8955
   lt_compile=`echo "$ac_compile" | $SED \
8956
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8957
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8958
   -e 's:$: $lt_compiler_flag:'`
8959
   (eval echo "\"\$as_me:8959: $lt_compile\"" >&5)
8960
   (eval "$lt_compile" 2>conftest.err)
8961
   ac_status=$?
8962
   cat conftest.err >&5
8963
   echo "$as_me:8963: \$? = $ac_status" >&5
8964
   if (exit $ac_status) && test -s "$ac_outfile"; then
8965
     # The compiler can only warn and ignore the option if not recognized
8966
     # So say no if there are warnings other than the usual output.
8967
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8968
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8969
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8970
       lt_cv_prog_compiler_rtti_exceptions=yes
8971
     fi
8972
   fi
8973
   $RM conftest*
8974
 
8975
fi
8976
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8977
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8978
 
8979
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8980
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8981
else
8982
    :
8983
fi
8984
 
8985
fi
8986
 
8987
 
8988
 
8989
 
8990
 
8991
 
8992
  lt_prog_compiler_wl=
8993
lt_prog_compiler_pic=
8994
lt_prog_compiler_static=
8995
 
8996
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8997
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8998
 
8999
  if test "$GCC" = yes; then
9000
    lt_prog_compiler_wl='-Wl,'
9001
    lt_prog_compiler_static='-static'
9002
 
9003
    case $host_os in
9004
      aix*)
9005
      # All AIX code is PIC.
9006
      if test "$host_cpu" = ia64; then
9007
        # AIX 5 now supports IA64 processor
9008
        lt_prog_compiler_static='-Bstatic'
9009
      fi
9010
      ;;
9011
 
9012
    amigaos*)
9013
      case $host_cpu in
9014
      powerpc)
9015
            # see comment about AmigaOS4 .so support
9016
            lt_prog_compiler_pic='-fPIC'
9017
        ;;
9018
      m68k)
9019
            # FIXME: we need at least 68020 code to build shared libraries, but
9020
            # adding the `-m68020' flag to GCC prevents building anything better,
9021
            # like `-m68040'.
9022
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9023
        ;;
9024
      esac
9025
      ;;
9026
 
9027
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9028
      # PIC is the default for these OSes.
9029
      ;;
9030
 
9031
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9032
      # This hack is so that the source file can tell whether it is being
9033
      # built for inclusion in a dll (and should export symbols for example).
9034
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9035
      # (--disable-auto-import) libraries
9036
      lt_prog_compiler_pic='-DDLL_EXPORT'
9037
      ;;
9038
 
9039
    darwin* | rhapsody*)
9040
      # PIC is the default on this platform
9041
      # Common symbols not allowed in MH_DYLIB files
9042
      lt_prog_compiler_pic='-fno-common'
9043
      ;;
9044
 
9045
    hpux*)
9046
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9047
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9048
      # sets the default TLS model and affects inlining.
9049
      case $host_cpu in
9050
      hppa*64*)
9051
        # +Z the default
9052
        ;;
9053
      *)
9054
        lt_prog_compiler_pic='-fPIC'
9055
        ;;
9056
      esac
9057
      ;;
9058
 
9059
    interix[3-9]*)
9060
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9061
      # Instead, we relocate shared libraries at runtime.
9062
      ;;
9063
 
9064
    msdosdjgpp*)
9065
      # Just because we use GCC doesn't mean we suddenly get shared libraries
9066
      # on systems that don't support them.
9067
      lt_prog_compiler_can_build_shared=no
9068
      enable_shared=no
9069
      ;;
9070
 
9071
    *nto* | *qnx*)
9072
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9073
      # it will coredump.
9074
      lt_prog_compiler_pic='-fPIC -shared'
9075
      ;;
9076
 
9077
    sysv4*MP*)
9078
      if test -d /usr/nec; then
9079
        lt_prog_compiler_pic=-Kconform_pic
9080
      fi
9081
      ;;
9082
 
9083
    *)
9084
      lt_prog_compiler_pic='-fPIC'
9085
      ;;
9086
    esac
9087
  else
9088
    # PORTME Check for flag to pass linker flags through the system compiler.
9089
    case $host_os in
9090
    aix*)
9091
      lt_prog_compiler_wl='-Wl,'
9092
      if test "$host_cpu" = ia64; then
9093
        # AIX 5 now supports IA64 processor
9094
        lt_prog_compiler_static='-Bstatic'
9095
      else
9096
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9097
      fi
9098
      ;;
9099
 
9100
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9101
      # This hack is so that the source file can tell whether it is being
9102
      # built for inclusion in a dll (and should export symbols for example).
9103
      lt_prog_compiler_pic='-DDLL_EXPORT'
9104
      ;;
9105
 
9106
    hpux9* | hpux10* | hpux11*)
9107
      lt_prog_compiler_wl='-Wl,'
9108
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9109
      # not for PA HP-UX.
9110
      case $host_cpu in
9111
      hppa*64*|ia64*)
9112
        # +Z the default
9113
        ;;
9114
      *)
9115
        lt_prog_compiler_pic='+Z'
9116
        ;;
9117
      esac
9118
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9119
      lt_prog_compiler_static='${wl}-a ${wl}archive'
9120
      ;;
9121
 
9122
    irix5* | irix6* | nonstopux*)
9123
      lt_prog_compiler_wl='-Wl,'
9124
      # PIC (with -KPIC) is the default.
9125
      lt_prog_compiler_static='-non_shared'
9126
      ;;
9127
 
9128
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9129
      case $cc_basename in
9130
      # old Intel for x86_64 which still supported -KPIC.
9131
      ecc*)
9132
        lt_prog_compiler_wl='-Wl,'
9133
        lt_prog_compiler_pic='-KPIC'
9134
        lt_prog_compiler_static='-static'
9135
        ;;
9136
      # icc used to be incompatible with GCC.
9137
      # ICC 10 doesn't accept -KPIC any more.
9138
      icc* | ifort*)
9139
        lt_prog_compiler_wl='-Wl,'
9140
        lt_prog_compiler_pic='-fPIC'
9141
        lt_prog_compiler_static='-static'
9142
        ;;
9143
      # Lahey Fortran 8.1.
9144
      lf95*)
9145
        lt_prog_compiler_wl='-Wl,'
9146
        lt_prog_compiler_pic='--shared'
9147
        lt_prog_compiler_static='--static'
9148
        ;;
9149
      pgcc* | pgf77* | pgf90* | pgf95*)
9150
        # Portland Group compilers (*not* the Pentium gcc compiler,
9151
        # which looks to be a dead project)
9152
        lt_prog_compiler_wl='-Wl,'
9153
        lt_prog_compiler_pic='-fpic'
9154
        lt_prog_compiler_static='-Bstatic'
9155
        ;;
9156
      ccc*)
9157
        lt_prog_compiler_wl='-Wl,'
9158
        # All Alpha code is PIC.
9159
        lt_prog_compiler_static='-non_shared'
9160
        ;;
9161
      xl*)
9162
        # IBM XL C 8.0/Fortran 10.1 on PPC
9163
        lt_prog_compiler_wl='-Wl,'
9164
        lt_prog_compiler_pic='-qpic'
9165
        lt_prog_compiler_static='-qstaticlink'
9166
        ;;
9167
      *)
9168
        case `$CC -V 2>&1 | sed 5q` in
9169
        *Sun\ C*)
9170
          # Sun C 5.9
9171
          lt_prog_compiler_pic='-KPIC'
9172
          lt_prog_compiler_static='-Bstatic'
9173
          lt_prog_compiler_wl='-Wl,'
9174
          ;;
9175
        *Sun\ F*)
9176
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9177
          lt_prog_compiler_pic='-KPIC'
9178
          lt_prog_compiler_static='-Bstatic'
9179
          lt_prog_compiler_wl=''
9180
          ;;
9181
        esac
9182
        ;;
9183
      esac
9184
      ;;
9185
 
9186
    newsos6)
9187
      lt_prog_compiler_pic='-KPIC'
9188
      lt_prog_compiler_static='-Bstatic'
9189
      ;;
9190
 
9191
    *nto* | *qnx*)
9192
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9193
      # it will coredump.
9194
      lt_prog_compiler_pic='-fPIC -shared'
9195
      ;;
9196
 
9197
    osf3* | osf4* | osf5*)
9198
      lt_prog_compiler_wl='-Wl,'
9199
      # All OSF/1 code is PIC.
9200
      lt_prog_compiler_static='-non_shared'
9201
      ;;
9202
 
9203
    rdos*)
9204
      lt_prog_compiler_static='-non_shared'
9205
      ;;
9206
 
9207
    solaris*)
9208
      lt_prog_compiler_pic='-KPIC'
9209
      lt_prog_compiler_static='-Bstatic'
9210
      case $cc_basename in
9211
      f77* | f90* | f95*)
9212
        lt_prog_compiler_wl='-Qoption ld ';;
9213
      *)
9214
        lt_prog_compiler_wl='-Wl,';;
9215
      esac
9216
      ;;
9217
 
9218
    sunos4*)
9219
      lt_prog_compiler_wl='-Qoption ld '
9220
      lt_prog_compiler_pic='-PIC'
9221
      lt_prog_compiler_static='-Bstatic'
9222
      ;;
9223
 
9224
    sysv4 | sysv4.2uw2* | sysv4.3*)
9225
      lt_prog_compiler_wl='-Wl,'
9226
      lt_prog_compiler_pic='-KPIC'
9227
      lt_prog_compiler_static='-Bstatic'
9228
      ;;
9229
 
9230
    sysv4*MP*)
9231
      if test -d /usr/nec ;then
9232
        lt_prog_compiler_pic='-Kconform_pic'
9233
        lt_prog_compiler_static='-Bstatic'
9234
      fi
9235
      ;;
9236
 
9237
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9238
      lt_prog_compiler_wl='-Wl,'
9239
      lt_prog_compiler_pic='-KPIC'
9240
      lt_prog_compiler_static='-Bstatic'
9241
      ;;
9242
 
9243
    unicos*)
9244
      lt_prog_compiler_wl='-Wl,'
9245
      lt_prog_compiler_can_build_shared=no
9246
      ;;
9247
 
9248
    uts4*)
9249
      lt_prog_compiler_pic='-pic'
9250
      lt_prog_compiler_static='-Bstatic'
9251
      ;;
9252
 
9253
    *)
9254
      lt_prog_compiler_can_build_shared=no
9255
      ;;
9256
    esac
9257
  fi
9258
 
9259
case $host_os in
9260
  # For platforms which do not support PIC, -DPIC is meaningless:
9261
  *djgpp*)
9262
    lt_prog_compiler_pic=
9263
    ;;
9264
  *)
9265
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9266
    ;;
9267
esac
9268
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9269
$as_echo "$lt_prog_compiler_pic" >&6; }
9270
 
9271
 
9272
 
9273
 
9274
 
9275
 
9276
#
9277
# Check to make sure the PIC flag actually works.
9278
#
9279
if test -n "$lt_prog_compiler_pic"; then
9280
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9281
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9282
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9283
  $as_echo_n "(cached) " >&6
9284
else
9285
  lt_cv_prog_compiler_pic_works=no
9286
   ac_outfile=conftest.$ac_objext
9287
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9288
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9289
   # Insert the option either (1) after the last *FLAGS variable, or
9290
   # (2) before a word containing "conftest.", or (3) at the end.
9291
   # Note that $ac_compile itself does not contain backslashes and begins
9292
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9293
   # The option is referenced via a variable to avoid confusing sed.
9294
   lt_compile=`echo "$ac_compile" | $SED \
9295
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9296
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9297
   -e 's:$: $lt_compiler_flag:'`
9298
   (eval echo "\"\$as_me:9298: $lt_compile\"" >&5)
9299
   (eval "$lt_compile" 2>conftest.err)
9300
   ac_status=$?
9301
   cat conftest.err >&5
9302
   echo "$as_me:9302: \$? = $ac_status" >&5
9303
   if (exit $ac_status) && test -s "$ac_outfile"; then
9304
     # The compiler can only warn and ignore the option if not recognized
9305
     # So say no if there are warnings other than the usual output.
9306
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9307
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9308
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9309
       lt_cv_prog_compiler_pic_works=yes
9310
     fi
9311
   fi
9312
   $RM conftest*
9313
 
9314
fi
9315
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9316
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9317
 
9318
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9319
    case $lt_prog_compiler_pic in
9320
     "" | " "*) ;;
9321
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9322
     esac
9323
else
9324
    lt_prog_compiler_pic=
9325
     lt_prog_compiler_can_build_shared=no
9326
fi
9327
 
9328
fi
9329
 
9330
 
9331
 
9332
 
9333
 
9334
 
9335
#
9336
# Check to make sure the static flag actually works.
9337
#
9338
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9339
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9340
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9341
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9342
  $as_echo_n "(cached) " >&6
9343
else
9344
  lt_cv_prog_compiler_static_works=no
9345
   save_LDFLAGS="$LDFLAGS"
9346
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9347
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9348
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9349
     # The linker can only warn and ignore the option if not recognized
9350
     # So say no if there are warnings
9351
     if test -s conftest.err; then
9352
       # Append any errors to the config.log.
9353
       cat conftest.err 1>&5
9354
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9355
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9356
       if diff conftest.exp conftest.er2 >/dev/null; then
9357
         lt_cv_prog_compiler_static_works=yes
9358
       fi
9359
     else
9360
       lt_cv_prog_compiler_static_works=yes
9361
     fi
9362
   fi
9363
   $RM -r conftest*
9364
   LDFLAGS="$save_LDFLAGS"
9365
 
9366
fi
9367
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9368
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9369
 
9370
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9371
    :
9372
else
9373
    lt_prog_compiler_static=
9374
fi
9375
 
9376
 
9377
 
9378
 
9379
 
9380
 
9381
 
9382
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9383
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9384
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9385
  $as_echo_n "(cached) " >&6
9386
else
9387
  lt_cv_prog_compiler_c_o=no
9388
   $RM -r conftest 2>/dev/null
9389
   mkdir conftest
9390
   cd conftest
9391
   mkdir out
9392
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9393
 
9394
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9395
   # Insert the option either (1) after the last *FLAGS variable, or
9396
   # (2) before a word containing "conftest.", or (3) at the end.
9397
   # Note that $ac_compile itself does not contain backslashes and begins
9398
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9399
   lt_compile=`echo "$ac_compile" | $SED \
9400
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9401
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9402
   -e 's:$: $lt_compiler_flag:'`
9403
   (eval echo "\"\$as_me:9403: $lt_compile\"" >&5)
9404
   (eval "$lt_compile" 2>out/conftest.err)
9405
   ac_status=$?
9406
   cat out/conftest.err >&5
9407
   echo "$as_me:9407: \$? = $ac_status" >&5
9408
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9409
   then
9410
     # The compiler can only warn and ignore the option if not recognized
9411
     # So say no if there are warnings
9412
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9413
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9414
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9415
       lt_cv_prog_compiler_c_o=yes
9416
     fi
9417
   fi
9418
   chmod u+w . 2>&5
9419
   $RM conftest*
9420
   # SGI C++ compiler will create directory out/ii_files/ for
9421
   # template instantiation
9422
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9423
   $RM out/* && rmdir out
9424
   cd ..
9425
   $RM -r conftest
9426
   $RM conftest*
9427
 
9428
fi
9429
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9430
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9431
 
9432
 
9433
 
9434
 
9435
 
9436
 
9437
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9438
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9439
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9440
  $as_echo_n "(cached) " >&6
9441
else
9442
  lt_cv_prog_compiler_c_o=no
9443
   $RM -r conftest 2>/dev/null
9444
   mkdir conftest
9445
   cd conftest
9446
   mkdir out
9447
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9448
 
9449
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9450
   # Insert the option either (1) after the last *FLAGS variable, or
9451
   # (2) before a word containing "conftest.", or (3) at the end.
9452
   # Note that $ac_compile itself does not contain backslashes and begins
9453
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9454
   lt_compile=`echo "$ac_compile" | $SED \
9455
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9456
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9457
   -e 's:$: $lt_compiler_flag:'`
9458
   (eval echo "\"\$as_me:9458: $lt_compile\"" >&5)
9459
   (eval "$lt_compile" 2>out/conftest.err)
9460
   ac_status=$?
9461
   cat out/conftest.err >&5
9462
   echo "$as_me:9462: \$? = $ac_status" >&5
9463
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9464
   then
9465
     # The compiler can only warn and ignore the option if not recognized
9466
     # So say no if there are warnings
9467
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9468
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9469
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9470
       lt_cv_prog_compiler_c_o=yes
9471
     fi
9472
   fi
9473
   chmod u+w . 2>&5
9474
   $RM conftest*
9475
   # SGI C++ compiler will create directory out/ii_files/ for
9476
   # template instantiation
9477
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9478
   $RM out/* && rmdir out
9479
   cd ..
9480
   $RM -r conftest
9481
   $RM conftest*
9482
 
9483
fi
9484
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9485
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9486
 
9487
 
9488
 
9489
 
9490
hard_links="nottested"
9491
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9492
  # do not overwrite the value of need_locks provided by the user
9493
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9494
$as_echo_n "checking if we can lock with hard links... " >&6; }
9495
  hard_links=yes
9496
  $RM conftest*
9497
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9498
  touch conftest.a
9499
  ln conftest.a conftest.b 2>&5 || hard_links=no
9500
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9501
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9502
$as_echo "$hard_links" >&6; }
9503
  if test "$hard_links" = no; then
9504
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9505
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9506
    need_locks=warn
9507
  fi
9508
else
9509
  need_locks=no
9510
fi
9511
 
9512
 
9513
 
9514
 
9515
 
9516
 
9517
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9518
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9519
 
9520
  runpath_var=
9521
  allow_undefined_flag=
9522
  always_export_symbols=no
9523
  archive_cmds=
9524
  archive_expsym_cmds=
9525
  compiler_needs_object=no
9526
  enable_shared_with_static_runtimes=no
9527
  export_dynamic_flag_spec=
9528
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9529
  hardcode_automatic=no
9530
  hardcode_direct=no
9531
  hardcode_direct_absolute=no
9532
  hardcode_libdir_flag_spec=
9533
  hardcode_libdir_flag_spec_ld=
9534
  hardcode_libdir_separator=
9535
  hardcode_minus_L=no
9536
  hardcode_shlibpath_var=unsupported
9537
  inherit_rpath=no
9538
  link_all_deplibs=unknown
9539
  module_cmds=
9540
  module_expsym_cmds=
9541
  old_archive_from_new_cmds=
9542
  old_archive_from_expsyms_cmds=
9543
  thread_safe_flag_spec=
9544
  whole_archive_flag_spec=
9545
  # include_expsyms should be a list of space-separated symbols to be *always*
9546
  # included in the symbol list
9547
  include_expsyms=
9548
  # exclude_expsyms can be an extended regexp of symbols to exclude
9549
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9550
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9551
  # as well as any symbol that contains `d'.
9552
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9553
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9554
  # platforms (ab)use it in PIC code, but their linkers get confused if
9555
  # the symbol is explicitly referenced.  Since portable code cannot
9556
  # rely on this symbol name, it's probably fine to never include it in
9557
  # preloaded symbol tables.
9558
  # Exclude shared library initialization/finalization symbols.
9559
  extract_expsyms_cmds=
9560
 
9561
  case $host_os in
9562
  cygwin* | mingw* | pw32* | cegcc*)
9563
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9564
    # When not using gcc, we currently assume that we are using
9565
    # Microsoft Visual C++.
9566
    if test "$GCC" != yes; then
9567
      with_gnu_ld=no
9568
    fi
9569
    ;;
9570
  interix*)
9571
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9572
    with_gnu_ld=yes
9573
    ;;
9574
  openbsd*)
9575
    with_gnu_ld=no
9576
    ;;
9577
  esac
9578
 
9579
  ld_shlibs=yes
9580
  if test "$with_gnu_ld" = yes; then
9581
    # If archive_cmds runs LD, not CC, wlarc should be empty
9582
    wlarc='${wl}'
9583
 
9584
    # Set some defaults for GNU ld with shared library support. These
9585
    # are reset later if shared libraries are not supported. Putting them
9586
    # here allows them to be overridden if necessary.
9587
    runpath_var=LD_RUN_PATH
9588
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9589
    export_dynamic_flag_spec='${wl}--export-dynamic'
9590
    # ancient GNU ld didn't support --whole-archive et. al.
9591
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9592
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9593
    else
9594
      whole_archive_flag_spec=
9595
    fi
9596
    supports_anon_versioning=no
9597
    case `$LD -v 2>&1` in
9598
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9599
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9600
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9601
      *\ 2.11.*) ;; # other 2.11 versions
9602
      *) supports_anon_versioning=yes ;;
9603
    esac
9604
 
9605
    # See if GNU ld supports shared libraries.
9606
    case $host_os in
9607
    aix[3-9]*)
9608
      # On AIX/PPC, the GNU linker is very broken
9609
      if test "$host_cpu" != ia64; then
9610
        ld_shlibs=no
9611
        cat <<_LT_EOF 1>&2
9612
 
9613
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9614
*** to be unable to reliably create shared libraries on AIX.
9615
*** Therefore, libtool is disabling shared libraries support.  If you
9616
*** really care for shared libraries, you may want to modify your PATH
9617
*** so that a non-GNU linker is found, and then restart.
9618
 
9619
_LT_EOF
9620
      fi
9621
      ;;
9622
 
9623
    amigaos*)
9624
      case $host_cpu in
9625
      powerpc)
9626
            # see comment about AmigaOS4 .so support
9627
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9628
            archive_expsym_cmds=''
9629
        ;;
9630
      m68k)
9631
            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)'
9632
            hardcode_libdir_flag_spec='-L$libdir'
9633
            hardcode_minus_L=yes
9634
        ;;
9635
      esac
9636
      ;;
9637
 
9638
    beos*)
9639
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9640
        allow_undefined_flag=unsupported
9641
        # Joseph Beckenbach  says some releases of gcc
9642
        # support --undefined.  This deserves some investigation.  FIXME
9643
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9644
      else
9645
        ld_shlibs=no
9646
      fi
9647
      ;;
9648
 
9649
    cygwin* | mingw* | pw32* | cegcc*)
9650
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9651
      # as there is no search path for DLLs.
9652
      hardcode_libdir_flag_spec='-L$libdir'
9653
      allow_undefined_flag=unsupported
9654
      always_export_symbols=no
9655
      enable_shared_with_static_runtimes=yes
9656
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9657
 
9658
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9659
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9660
        # If the export-symbols file already is a .def file (1st line
9661
        # is EXPORTS), use it as is; otherwise, prepend...
9662
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9663
          cp $export_symbols $output_objdir/$soname.def;
9664
        else
9665
          echo EXPORTS > $output_objdir/$soname.def;
9666
          cat $export_symbols >> $output_objdir/$soname.def;
9667
        fi~
9668
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9669
      else
9670
        ld_shlibs=no
9671
      fi
9672
      ;;
9673
 
9674
    interix[3-9]*)
9675
      hardcode_direct=no
9676
      hardcode_shlibpath_var=no
9677
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9678
      export_dynamic_flag_spec='${wl}-E'
9679
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9680
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9681
      # default) and relocated if they conflict, which is a slow very memory
9682
      # consuming and fragmenting process.  To avoid this, we pick a random,
9683
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9684
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9685
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9686
      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'
9687
      ;;
9688
 
9689
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9690
      tmp_diet=no
9691
      if test "$host_os" = linux-dietlibc; then
9692
        case $cc_basename in
9693
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9694
        esac
9695
      fi
9696
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9697
         && test "$tmp_diet" = no
9698
      then
9699
        tmp_addflag=
9700
        tmp_sharedflag='-shared'
9701
        case $cc_basename,$host_cpu in
9702
        pgcc*)                          # Portland Group C compiler
9703
          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'
9704
          tmp_addflag=' $pic_flag'
9705
          ;;
9706
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9707
          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'
9708
          tmp_addflag=' $pic_flag -Mnomain' ;;
9709
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9710
          tmp_addflag=' -i_dynamic' ;;
9711
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9712
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9713
        ifc* | ifort*)                  # Intel Fortran compiler
9714
          tmp_addflag=' -nofor_main' ;;
9715
        lf95*)                          # Lahey Fortran 8.1
9716
          whole_archive_flag_spec=
9717
          tmp_sharedflag='--shared' ;;
9718
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9719
          tmp_sharedflag='-qmkshrobj'
9720
          tmp_addflag= ;;
9721
        esac
9722
        case `$CC -V 2>&1 | sed 5q` in
9723
        *Sun\ C*)                       # Sun C 5.9
9724
          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'
9725
          compiler_needs_object=yes
9726
          tmp_sharedflag='-G' ;;
9727
        *Sun\ F*)                       # Sun Fortran 8.3
9728
          tmp_sharedflag='-G' ;;
9729
        esac
9730
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731
 
9732
        if test "x$supports_anon_versioning" = xyes; then
9733
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9734
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9735
            echo "local: *; };" >> $output_objdir/$libname.ver~
9736
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9737
        fi
9738
 
9739
        case $cc_basename in
9740
        xlf*)
9741
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9742
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9743
          hardcode_libdir_flag_spec=
9744
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9745
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9746
          if test "x$supports_anon_versioning" = xyes; then
9747
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9748
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9749
              echo "local: *; };" >> $output_objdir/$libname.ver~
9750
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9751
          fi
9752
          ;;
9753
        esac
9754
      else
9755
        ld_shlibs=no
9756
      fi
9757
      ;;
9758
 
9759
    netbsd*)
9760
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9761
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9762
        wlarc=
9763
      else
9764
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9765
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9766
      fi
9767
      ;;
9768
 
9769
    solaris*)
9770
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9771
        ld_shlibs=no
9772
        cat <<_LT_EOF 1>&2
9773
 
9774
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9775
*** create shared libraries on Solaris systems.  Therefore, libtool
9776
*** is disabling shared libraries support.  We urge you to upgrade GNU
9777
*** binutils to release 2.9.1 or newer.  Another option is to modify
9778
*** your PATH or compiler configuration so that the native linker is
9779
*** used, and then restart.
9780
 
9781
_LT_EOF
9782
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9783
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9784
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9785
      else
9786
        ld_shlibs=no
9787
      fi
9788
      ;;
9789
 
9790
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9791
      case `$LD -v 2>&1` in
9792
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9793
        ld_shlibs=no
9794
        cat <<_LT_EOF 1>&2
9795
 
9796
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9797
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9798
*** is disabling shared libraries support.  We urge you to upgrade GNU
9799
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9800
*** your PATH or compiler configuration so that the native linker is
9801
*** used, and then restart.
9802
 
9803
_LT_EOF
9804
        ;;
9805
        *)
9806
          # For security reasons, it is highly recommended that you always
9807
          # use absolute paths for naming shared libraries, and exclude the
9808
          # DT_RUNPATH tag from executables and libraries.  But doing so
9809
          # requires that you compile everything twice, which is a pain.
9810
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9811
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9812
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9813
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9814
          else
9815
            ld_shlibs=no
9816
          fi
9817
        ;;
9818
      esac
9819
      ;;
9820
 
9821
    sunos4*)
9822
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9823
      wlarc=
9824
      hardcode_direct=yes
9825
      hardcode_shlibpath_var=no
9826
      ;;
9827
 
9828
    *)
9829
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9830
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9832
      else
9833
        ld_shlibs=no
9834
      fi
9835
      ;;
9836
    esac
9837
 
9838
    if test "$ld_shlibs" = no; then
9839
      runpath_var=
9840
      hardcode_libdir_flag_spec=
9841
      export_dynamic_flag_spec=
9842
      whole_archive_flag_spec=
9843
    fi
9844
  else
9845
    # PORTME fill in a description of your system's linker (not GNU ld)
9846
    case $host_os in
9847
    aix3*)
9848
      allow_undefined_flag=unsupported
9849
      always_export_symbols=yes
9850
      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'
9851
      # Note: this linker hardcodes the directories in LIBPATH if there
9852
      # are no directories specified by -L.
9853
      hardcode_minus_L=yes
9854
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9855
        # Neither direct hardcoding nor static linking is supported with a
9856
        # broken collect2.
9857
        hardcode_direct=unsupported
9858
      fi
9859
      ;;
9860
 
9861
    aix[4-9]*)
9862
      if test "$host_cpu" = ia64; then
9863
        # On IA64, the linker does run time linking by default, so we don't
9864
        # have to do anything special.
9865
        aix_use_runtimelinking=no
9866
        exp_sym_flag='-Bexport'
9867
        no_entry_flag=""
9868
      else
9869
        # If we're using GNU nm, then we don't want the "-C" option.
9870
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9871
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9872
          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'
9873
        else
9874
          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'
9875
        fi
9876
        aix_use_runtimelinking=no
9877
 
9878
        # Test if we are trying to use run time linking or normal
9879
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9880
        # need to do runtime linking.
9881
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9882
          for ld_flag in $LDFLAGS; do
9883
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9884
            aix_use_runtimelinking=yes
9885
            break
9886
          fi
9887
          done
9888
          ;;
9889
        esac
9890
 
9891
        exp_sym_flag='-bexport'
9892
        no_entry_flag='-bnoentry'
9893
      fi
9894
 
9895
      # When large executables or shared objects are built, AIX ld can
9896
      # have problems creating the table of contents.  If linking a library
9897
      # or program results in "error TOC overflow" add -mminimal-toc to
9898
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9899
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9900
 
9901
      archive_cmds=''
9902
      hardcode_direct=yes
9903
      hardcode_direct_absolute=yes
9904
      hardcode_libdir_separator=':'
9905
      link_all_deplibs=yes
9906
      file_list_spec='${wl}-f,'
9907
 
9908
      if test "$GCC" = yes; then
9909
        case $host_os in aix4.[012]|aix4.[012].*)
9910
        # We only want to do this on AIX 4.2 and lower, the check
9911
        # below for broken collect2 doesn't work under 4.3+
9912
          collect2name=`${CC} -print-prog-name=collect2`
9913
          if test -f "$collect2name" &&
9914
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9915
          then
9916
          # We have reworked collect2
9917
          :
9918
          else
9919
          # We have old collect2
9920
          hardcode_direct=unsupported
9921
          # It fails to find uninstalled libraries when the uninstalled
9922
          # path is not listed in the libpath.  Setting hardcode_minus_L
9923
          # to unsupported forces relinking
9924
          hardcode_minus_L=yes
9925
          hardcode_libdir_flag_spec='-L$libdir'
9926
          hardcode_libdir_separator=
9927
          fi
9928
          ;;
9929
        esac
9930
        shared_flag='-shared'
9931
        if test "$aix_use_runtimelinking" = yes; then
9932
          shared_flag="$shared_flag "'${wl}-G'
9933
        fi
9934
      else
9935
        # not using gcc
9936
        if test "$host_cpu" = ia64; then
9937
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9938
        # chokes on -Wl,-G. The following line is correct:
9939
          shared_flag='-G'
9940
        else
9941
          if test "$aix_use_runtimelinking" = yes; then
9942
            shared_flag='${wl}-G'
9943
          else
9944
            shared_flag='${wl}-bM:SRE'
9945
          fi
9946
        fi
9947
      fi
9948
 
9949
      export_dynamic_flag_spec='${wl}-bexpall'
9950
      # It seems that -bexpall does not export symbols beginning with
9951
      # underscore (_), so it is better to generate a list of symbols to export.
9952
      always_export_symbols=yes
9953
      if test "$aix_use_runtimelinking" = yes; then
9954
        # Warning - without using the other runtime loading flags (-brtl),
9955
        # -berok will link without error, but may produce a broken library.
9956
        allow_undefined_flag='-berok'
9957
        # Determine the default libpath from the value encoded in an
9958
        # empty executable.
9959
        cat >conftest.$ac_ext <<_ACEOF
9960
/* confdefs.h.  */
9961
_ACEOF
9962
cat confdefs.h >>conftest.$ac_ext
9963
cat >>conftest.$ac_ext <<_ACEOF
9964
/* end confdefs.h.  */
9965
 
9966
int
9967
main ()
9968
{
9969
 
9970
  ;
9971
  return 0;
9972
}
9973
_ACEOF
9974
rm -f conftest.$ac_objext conftest$ac_exeext
9975
if { (ac_try="$ac_link"
9976
case "(($ac_try" in
9977
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978
  *) ac_try_echo=$ac_try;;
9979
esac
9980
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9981
$as_echo "$ac_try_echo") >&5
9982
  (eval "$ac_link") 2>conftest.er1
9983
  ac_status=$?
9984
  grep -v '^ *+' conftest.er1 >conftest.err
9985
  rm -f conftest.er1
9986
  cat conftest.err >&5
9987
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988
  (exit $ac_status); } && {
9989
         test -z "$ac_c_werror_flag" ||
9990
         test ! -s conftest.err
9991
       } && test -s conftest$ac_exeext && {
9992
         test "$cross_compiling" = yes ||
9993
         $as_test_x conftest$ac_exeext
9994
       }; then
9995
 
9996
lt_aix_libpath_sed='
9997
    /Import File Strings/,/^$/ {
9998
        /^0/ {
9999
            s/^0  *\(.*\)$/\1/
10000
            p
10001
        }
10002
    }'
10003
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10004
# Check for a 64-bit object if we didn't find anything.
10005
if test -z "$aix_libpath"; then
10006
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10007
fi
10008
else
10009
  $as_echo "$as_me: failed program was:" >&5
10010
sed 's/^/| /' conftest.$ac_ext >&5
10011
 
10012
 
10013
fi
10014
 
10015
rm -rf conftest.dSYM
10016
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10017
      conftest$ac_exeext conftest.$ac_ext
10018
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10019
 
10020
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10021
        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"
10022
      else
10023
        if test "$host_cpu" = ia64; then
10024
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10025
          allow_undefined_flag="-z nodefs"
10026
          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"
10027
        else
10028
         # Determine the default libpath from the value encoded in an
10029
         # empty executable.
10030
         cat >conftest.$ac_ext <<_ACEOF
10031
/* confdefs.h.  */
10032
_ACEOF
10033
cat confdefs.h >>conftest.$ac_ext
10034
cat >>conftest.$ac_ext <<_ACEOF
10035
/* end confdefs.h.  */
10036
 
10037
int
10038
main ()
10039
{
10040
 
10041
  ;
10042
  return 0;
10043
}
10044
_ACEOF
10045
rm -f conftest.$ac_objext conftest$ac_exeext
10046
if { (ac_try="$ac_link"
10047
case "(($ac_try" in
10048
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049
  *) ac_try_echo=$ac_try;;
10050
esac
10051
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10052
$as_echo "$ac_try_echo") >&5
10053
  (eval "$ac_link") 2>conftest.er1
10054
  ac_status=$?
10055
  grep -v '^ *+' conftest.er1 >conftest.err
10056
  rm -f conftest.er1
10057
  cat conftest.err >&5
10058
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059
  (exit $ac_status); } && {
10060
         test -z "$ac_c_werror_flag" ||
10061
         test ! -s conftest.err
10062
       } && test -s conftest$ac_exeext && {
10063
         test "$cross_compiling" = yes ||
10064
         $as_test_x conftest$ac_exeext
10065
       }; then
10066
 
10067
lt_aix_libpath_sed='
10068
    /Import File Strings/,/^$/ {
10069
        /^0/ {
10070
            s/^0  *\(.*\)$/\1/
10071
            p
10072
        }
10073
    }'
10074
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10075
# Check for a 64-bit object if we didn't find anything.
10076
if test -z "$aix_libpath"; then
10077
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10078
fi
10079
else
10080
  $as_echo "$as_me: failed program was:" >&5
10081
sed 's/^/| /' conftest.$ac_ext >&5
10082
 
10083
 
10084
fi
10085
 
10086
rm -rf conftest.dSYM
10087
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10088
      conftest$ac_exeext conftest.$ac_ext
10089
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10090
 
10091
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10092
          # Warning - without using the other run time loading flags,
10093
          # -berok will link without error, but may produce a broken library.
10094
          no_undefined_flag=' ${wl}-bernotok'
10095
          allow_undefined_flag=' ${wl}-berok'
10096
          # Exported symbols can be pulled into shared objects from archives
10097
          whole_archive_flag_spec='$convenience'
10098
          archive_cmds_need_lc=yes
10099
          # This is similar to how AIX traditionally builds its shared libraries.
10100
          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'
10101
        fi
10102
      fi
10103
      ;;
10104
 
10105
    amigaos*)
10106
      case $host_cpu in
10107
      powerpc)
10108
            # see comment about AmigaOS4 .so support
10109
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10110
            archive_expsym_cmds=''
10111
        ;;
10112
      m68k)
10113
            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)'
10114
            hardcode_libdir_flag_spec='-L$libdir'
10115
            hardcode_minus_L=yes
10116
        ;;
10117
      esac
10118
      ;;
10119
 
10120
    bsdi[45]*)
10121
      export_dynamic_flag_spec=-rdynamic
10122
      ;;
10123
 
10124
    cygwin* | mingw* | pw32* | cegcc*)
10125
      # When not using gcc, we currently assume that we are using
10126
      # Microsoft Visual C++.
10127
      # hardcode_libdir_flag_spec is actually meaningless, as there is
10128
      # no search path for DLLs.
10129
      hardcode_libdir_flag_spec=' '
10130
      allow_undefined_flag=unsupported
10131
      # Tell ltmain to make .lib files, not .a files.
10132
      libext=lib
10133
      # Tell ltmain to make .dll files, not .so files.
10134
      shrext_cmds=".dll"
10135
      # FIXME: Setting linknames here is a bad hack.
10136
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10137
      # The linker will automatically build a .lib file if we build a DLL.
10138
      old_archive_from_new_cmds='true'
10139
      # FIXME: Should let the user specify the lib program.
10140
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10141
      fix_srcfile_path='`cygpath -w "$srcfile"`'
10142
      enable_shared_with_static_runtimes=yes
10143
      ;;
10144
 
10145
    darwin* | rhapsody*)
10146
 
10147
 
10148
  archive_cmds_need_lc=no
10149
  hardcode_direct=no
10150
  hardcode_automatic=yes
10151
  hardcode_shlibpath_var=unsupported
10152
  whole_archive_flag_spec=''
10153
  link_all_deplibs=yes
10154
  allow_undefined_flag="$_lt_dar_allow_undefined"
10155
  case $cc_basename in
10156
     ifort*) _lt_dar_can_shared=yes ;;
10157
     *) _lt_dar_can_shared=$GCC ;;
10158
  esac
10159
  if test "$_lt_dar_can_shared" = "yes"; then
10160
    output_verbose_link_cmd=echo
10161
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10162
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10163
    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}"
10164
    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}"
10165
 
10166
  else
10167
  ld_shlibs=no
10168
  fi
10169
 
10170
      ;;
10171
 
10172
    dgux*)
10173
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10174
      hardcode_libdir_flag_spec='-L$libdir'
10175
      hardcode_shlibpath_var=no
10176
      ;;
10177
 
10178
    freebsd1*)
10179
      ld_shlibs=no
10180
      ;;
10181
 
10182
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10183
    # support.  Future versions do this automatically, but an explicit c++rt0.o
10184
    # does not break anything, and helps significantly (at the cost of a little
10185
    # extra space).
10186
    freebsd2.2*)
10187
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10188
      hardcode_libdir_flag_spec='-R$libdir'
10189
      hardcode_direct=yes
10190
      hardcode_shlibpath_var=no
10191
      ;;
10192
 
10193
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10194
    freebsd2*)
10195
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10196
      hardcode_direct=yes
10197
      hardcode_minus_L=yes
10198
      hardcode_shlibpath_var=no
10199
      ;;
10200
 
10201
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10202
    freebsd* | dragonfly*)
10203
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10204
      hardcode_libdir_flag_spec='-R$libdir'
10205
      hardcode_direct=yes
10206
      hardcode_shlibpath_var=no
10207
      ;;
10208
 
10209
    hpux9*)
10210
      if test "$GCC" = yes; then
10211
        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'
10212
      else
10213
        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'
10214
      fi
10215
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10216
      hardcode_libdir_separator=:
10217
      hardcode_direct=yes
10218
 
10219
      # hardcode_minus_L: Not really in the search PATH,
10220
      # but as the default location of the library.
10221
      hardcode_minus_L=yes
10222
      export_dynamic_flag_spec='${wl}-E'
10223
      ;;
10224
 
10225
    hpux10*)
10226
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10227
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10228
      else
10229
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10230
      fi
10231
      if test "$with_gnu_ld" = no; then
10232
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10233
        hardcode_libdir_flag_spec_ld='+b $libdir'
10234
        hardcode_libdir_separator=:
10235
        hardcode_direct=yes
10236
        hardcode_direct_absolute=yes
10237
        export_dynamic_flag_spec='${wl}-E'
10238
        # hardcode_minus_L: Not really in the search PATH,
10239
        # but as the default location of the library.
10240
        hardcode_minus_L=yes
10241
      fi
10242
      ;;
10243
 
10244
    hpux11*)
10245
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10246
        case $host_cpu in
10247
        hppa*64*)
10248
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10249
          ;;
10250
        ia64*)
10251
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10252
          ;;
10253
        *)
10254
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10255
          ;;
10256
        esac
10257
      else
10258
        case $host_cpu in
10259
        hppa*64*)
10260
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10261
          ;;
10262
        ia64*)
10263
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10264
          ;;
10265
        *)
10266
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10267
          ;;
10268
        esac
10269
      fi
10270
      if test "$with_gnu_ld" = no; then
10271
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10272
        hardcode_libdir_separator=:
10273
 
10274
        case $host_cpu in
10275
        hppa*64*|ia64*)
10276
          hardcode_direct=no
10277
          hardcode_shlibpath_var=no
10278
          ;;
10279
        *)
10280
          hardcode_direct=yes
10281
          hardcode_direct_absolute=yes
10282
          export_dynamic_flag_spec='${wl}-E'
10283
 
10284
          # hardcode_minus_L: Not really in the search PATH,
10285
          # but as the default location of the library.
10286
          hardcode_minus_L=yes
10287
          ;;
10288
        esac
10289
      fi
10290
      ;;
10291
 
10292
    irix5* | irix6* | nonstopux*)
10293
      if test "$GCC" = yes; then
10294
        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'
10295
        # Try to use the -exported_symbol ld option, if it does not
10296
        # work, assume that -exports_file does not work either and
10297
        # implicitly export all symbols.
10298
        save_LDFLAGS="$LDFLAGS"
10299
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10300
        cat >conftest.$ac_ext <<_ACEOF
10301
int foo(void) {}
10302
_ACEOF
10303
rm -f conftest.$ac_objext conftest$ac_exeext
10304
if { (ac_try="$ac_link"
10305
case "(($ac_try" in
10306
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307
  *) ac_try_echo=$ac_try;;
10308
esac
10309
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10310
$as_echo "$ac_try_echo") >&5
10311
  (eval "$ac_link") 2>conftest.er1
10312
  ac_status=$?
10313
  grep -v '^ *+' conftest.er1 >conftest.err
10314
  rm -f conftest.er1
10315
  cat conftest.err >&5
10316
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317
  (exit $ac_status); } && {
10318
         test -z "$ac_c_werror_flag" ||
10319
         test ! -s conftest.err
10320
       } && test -s conftest$ac_exeext && {
10321
         test "$cross_compiling" = yes ||
10322
         $as_test_x conftest$ac_exeext
10323
       }; then
10324
  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'
10325
 
10326
else
10327
  $as_echo "$as_me: failed program was:" >&5
10328
sed 's/^/| /' conftest.$ac_ext >&5
10329
 
10330
 
10331
fi
10332
 
10333
rm -rf conftest.dSYM
10334
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10335
      conftest$ac_exeext conftest.$ac_ext
10336
        LDFLAGS="$save_LDFLAGS"
10337
      else
10338
        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'
10339
        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'
10340
      fi
10341
      archive_cmds_need_lc='no'
10342
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10343
      hardcode_libdir_separator=:
10344
      inherit_rpath=yes
10345
      link_all_deplibs=yes
10346
      ;;
10347
 
10348
    netbsd*)
10349
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10350
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10351
      else
10352
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10353
      fi
10354
      hardcode_libdir_flag_spec='-R$libdir'
10355
      hardcode_direct=yes
10356
      hardcode_shlibpath_var=no
10357
      ;;
10358
 
10359
    newsos6)
10360
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361
      hardcode_direct=yes
10362
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10363
      hardcode_libdir_separator=:
10364
      hardcode_shlibpath_var=no
10365
      ;;
10366
 
10367
    *nto* | *qnx*)
10368
      ;;
10369
 
10370
    openbsd*)
10371
      if test -f /usr/libexec/ld.so; then
10372
        hardcode_direct=yes
10373
        hardcode_shlibpath_var=no
10374
        hardcode_direct_absolute=yes
10375
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10376
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10377
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10378
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10379
          export_dynamic_flag_spec='${wl}-E'
10380
        else
10381
          case $host_os in
10382
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10383
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10384
             hardcode_libdir_flag_spec='-R$libdir'
10385
             ;;
10386
           *)
10387
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10388
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10389
             ;;
10390
          esac
10391
        fi
10392
      else
10393
        ld_shlibs=no
10394
      fi
10395
      ;;
10396
 
10397
    os2*)
10398
      hardcode_libdir_flag_spec='-L$libdir'
10399
      hardcode_minus_L=yes
10400
      allow_undefined_flag=unsupported
10401
      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'
10402
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10403
      ;;
10404
 
10405
    osf3*)
10406
      if test "$GCC" = yes; then
10407
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10408
        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'
10409
      else
10410
        allow_undefined_flag=' -expect_unresolved \*'
10411
        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'
10412
      fi
10413
      archive_cmds_need_lc='no'
10414
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10415
      hardcode_libdir_separator=:
10416
      ;;
10417
 
10418
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10419
      if test "$GCC" = yes; then
10420
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10421
        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'
10422
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10423
      else
10424
        allow_undefined_flag=' -expect_unresolved \*'
10425
        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'
10426
        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~
10427
        $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'
10428
 
10429
        # Both c and cxx compiler support -rpath directly
10430
        hardcode_libdir_flag_spec='-rpath $libdir'
10431
      fi
10432
      archive_cmds_need_lc='no'
10433
      hardcode_libdir_separator=:
10434
      ;;
10435
 
10436
    solaris*)
10437
      no_undefined_flag=' -z defs'
10438
      if test "$GCC" = yes; then
10439
        wlarc='${wl}'
10440
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10441
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10442
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10443
      else
10444
        case `$CC -V 2>&1` in
10445
        *"Compilers 5.0"*)
10446
          wlarc=''
10447
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10448
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10449
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10450
          ;;
10451
        *)
10452
          wlarc='${wl}'
10453
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10454
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10455
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10456
          ;;
10457
        esac
10458
      fi
10459
      hardcode_libdir_flag_spec='-R$libdir'
10460
      hardcode_shlibpath_var=no
10461
      case $host_os in
10462
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10463
      *)
10464
        # The compiler driver will combine and reorder linker options,
10465
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10466
        # but is careful enough not to reorder.
10467
        # Supported since Solaris 2.6 (maybe 2.5.1?)
10468
        if test "$GCC" = yes; then
10469
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10470
        else
10471
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10472
        fi
10473
        ;;
10474
      esac
10475
      link_all_deplibs=yes
10476
      ;;
10477
 
10478
    sunos4*)
10479
      if test "x$host_vendor" = xsequent; then
10480
        # Use $CC to link under sequent, because it throws in some extra .o
10481
        # files that make .init and .fini sections work.
10482
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10483
      else
10484
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10485
      fi
10486
      hardcode_libdir_flag_spec='-L$libdir'
10487
      hardcode_direct=yes
10488
      hardcode_minus_L=yes
10489
      hardcode_shlibpath_var=no
10490
      ;;
10491
 
10492
    sysv4)
10493
      case $host_vendor in
10494
        sni)
10495
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10496
          hardcode_direct=yes # is this really true???
10497
        ;;
10498
        siemens)
10499
          ## LD is ld it makes a PLAMLIB
10500
          ## CC just makes a GrossModule.
10501
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10502
          reload_cmds='$CC -r -o $output$reload_objs'
10503
          hardcode_direct=no
10504
        ;;
10505
        motorola)
10506
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10507
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10508
        ;;
10509
      esac
10510
      runpath_var='LD_RUN_PATH'
10511
      hardcode_shlibpath_var=no
10512
      ;;
10513
 
10514
    sysv4.3*)
10515
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10516
      hardcode_shlibpath_var=no
10517
      export_dynamic_flag_spec='-Bexport'
10518
      ;;
10519
 
10520
    sysv4*MP*)
10521
      if test -d /usr/nec; then
10522
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10523
        hardcode_shlibpath_var=no
10524
        runpath_var=LD_RUN_PATH
10525
        hardcode_runpath_var=yes
10526
        ld_shlibs=yes
10527
      fi
10528
      ;;
10529
 
10530
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10531
      no_undefined_flag='${wl}-z,text'
10532
      archive_cmds_need_lc=no
10533
      hardcode_shlibpath_var=no
10534
      runpath_var='LD_RUN_PATH'
10535
 
10536
      if test "$GCC" = yes; then
10537
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10538
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10539
      else
10540
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10541
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10542
      fi
10543
      ;;
10544
 
10545
    sysv5* | sco3.2v5* | sco5v6*)
10546
      # Note: We can NOT use -z defs as we might desire, because we do not
10547
      # link with -lc, and that would cause any symbols used from libc to
10548
      # always be unresolved, which means just about no library would
10549
      # ever link correctly.  If we're not using GNU ld we use -z text
10550
      # though, which does catch some bad symbols but isn't as heavy-handed
10551
      # as -z defs.
10552
      no_undefined_flag='${wl}-z,text'
10553
      allow_undefined_flag='${wl}-z,nodefs'
10554
      archive_cmds_need_lc=no
10555
      hardcode_shlibpath_var=no
10556
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10557
      hardcode_libdir_separator=':'
10558
      link_all_deplibs=yes
10559
      export_dynamic_flag_spec='${wl}-Bexport'
10560
      runpath_var='LD_RUN_PATH'
10561
 
10562
      if test "$GCC" = yes; then
10563
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10564
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10565
      else
10566
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10567
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10568
      fi
10569
      ;;
10570
 
10571
    uts4*)
10572
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573
      hardcode_libdir_flag_spec='-L$libdir'
10574
      hardcode_shlibpath_var=no
10575
      ;;
10576
 
10577
    *)
10578
      ld_shlibs=no
10579
      ;;
10580
    esac
10581
 
10582
    if test x$host_vendor = xsni; then
10583
      case $host in
10584
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10585
        export_dynamic_flag_spec='${wl}-Blargedynsym'
10586
        ;;
10587
      esac
10588
    fi
10589
  fi
10590
 
10591
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10592
$as_echo "$ld_shlibs" >&6; }
10593
test "$ld_shlibs" = no && can_build_shared=no
10594
 
10595
with_gnu_ld=$with_gnu_ld
10596
 
10597
 
10598
 
10599
 
10600
 
10601
 
10602
 
10603
 
10604
 
10605
 
10606
 
10607
 
10608
 
10609
 
10610
 
10611
#
10612
# Do we need to explicitly link libc?
10613
#
10614
case "x$archive_cmds_need_lc" in
10615
x|xyes)
10616
  # Assume -lc should be added
10617
  archive_cmds_need_lc=yes
10618
 
10619
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10620
    case $archive_cmds in
10621
    *'~'*)
10622
      # FIXME: we may have to deal with multi-command sequences.
10623
      ;;
10624
    '$CC '*)
10625
      # Test whether the compiler implicitly links with -lc since on some
10626
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10627
      # to ld, don't add -lc before -lgcc.
10628
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10629
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10630
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10631
  $as_echo_n "(cached) " >&6
10632
else
10633
  $RM conftest*
10634
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10635
 
10636
        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10637
  (eval $ac_compile) 2>&5
10638
  ac_status=$?
10639
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640
  (exit $ac_status); } 2>conftest.err; then
10641
          soname=conftest
10642
          lib=conftest
10643
          libobjs=conftest.$ac_objext
10644
          deplibs=
10645
          wl=$lt_prog_compiler_wl
10646
          pic_flag=$lt_prog_compiler_pic
10647
          compiler_flags=-v
10648
          linker_flags=-v
10649
          verstring=
10650
          output_objdir=.
10651
          libname=conftest
10652
          lt_save_allow_undefined_flag=$allow_undefined_flag
10653
          allow_undefined_flag=
10654
          if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10655
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10656
  ac_status=$?
10657
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658
  (exit $ac_status); }
10659
          then
10660
            lt_cv_archive_cmds_need_lc=no
10661
          else
10662
            lt_cv_archive_cmds_need_lc=yes
10663
          fi
10664
          allow_undefined_flag=$lt_save_allow_undefined_flag
10665
        else
10666
          cat conftest.err 1>&5
10667
        fi
10668
        $RM conftest*
10669
 
10670
fi
10671
{ $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10672
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10673
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10674
      ;;
10675
    esac
10676
  fi
10677
  ;;
10678
esac
10679
 
10680
 
10681
 
10682
 
10683
 
10684
 
10685
 
10686
 
10687
 
10688
 
10689
 
10690
 
10691
 
10692
 
10693
 
10694
 
10695
 
10696
 
10697
 
10698
 
10699
 
10700
 
10701
 
10702
 
10703
 
10704
 
10705
 
10706
 
10707
 
10708
 
10709
 
10710
 
10711
 
10712
 
10713
 
10714
 
10715
 
10716
 
10717
 
10718
 
10719
 
10720
 
10721
 
10722
 
10723
 
10724
 
10725
 
10726
 
10727
 
10728
 
10729
 
10730
 
10731
 
10732
 
10733
 
10734
 
10735
 
10736
 
10737
 
10738
 
10739
 
10740
 
10741
 
10742
 
10743
 
10744
 
10745
 
10746
 
10747
 
10748
 
10749
 
10750
 
10751
 
10752
 
10753
 
10754
 
10755
 
10756
 
10757
 
10758
 
10759
 
10760
 
10761
 
10762
 
10763
 
10764
 
10765
 
10766
 
10767
 
10768
 
10769
 
10770
 
10771
 
10772
 
10773
 
10774
 
10775
 
10776
 
10777
 
10778
 
10779
 
10780
 
10781
 
10782
 
10783
 
10784
 
10785
 
10786
 
10787
 
10788
 
10789
 
10790
 
10791
 
10792
 
10793
 
10794
 
10795
 
10796
 
10797
 
10798
 
10799
 
10800
 
10801
 
10802
 
10803
 
10804
 
10805
 
10806
 
10807
 
10808
 
10809
 
10810
 
10811
 
10812
 
10813
 
10814
 
10815
 
10816
 
10817
 
10818
 
10819
 
10820
 
10821
 
10822
 
10823
 
10824
 
10825
 
10826
 
10827
 
10828
 
10829
 
10830
 
10831
 
10832
 
10833
 
10834
 
10835
 
10836
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10837
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10838
 
10839
if test "$GCC" = yes; then
10840
  case $host_os in
10841
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10842
    *) lt_awk_arg="/^libraries:/" ;;
10843
  esac
10844
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10845
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10846
    # if the path contains ";" then we assume it to be the separator
10847
    # otherwise default to the standard path separator (i.e. ":") - it is
10848
    # assumed that no part of a normal pathname contains ";" but that should
10849
    # okay in the real world where ";" in dirpaths is itself problematic.
10850
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10851
  else
10852
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10853
  fi
10854
  # Ok, now we have the path, separated by spaces, we can step through it
10855
  # and add multilib dir if necessary.
10856
  lt_tmp_lt_search_path_spec=
10857
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10858
  for lt_sys_path in $lt_search_path_spec; do
10859
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10860
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10861
    else
10862
      test -d "$lt_sys_path" && \
10863
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10864
    fi
10865
  done
10866
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10867
BEGIN {RS=" "; FS="/|\n";} {
10868
  lt_foo="";
10869
  lt_count=0;
10870
  for (lt_i = NF; lt_i > 0; lt_i--) {
10871
    if ($lt_i != "" && $lt_i != ".") {
10872
      if ($lt_i == "..") {
10873
        lt_count++;
10874
      } else {
10875
        if (lt_count == 0) {
10876
          lt_foo="/" $lt_i lt_foo;
10877
        } else {
10878
          lt_count--;
10879
        }
10880
      }
10881
    }
10882
  }
10883
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10884
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10885
}'`
10886
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10887
else
10888
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10889
fi
10890
library_names_spec=
10891
libname_spec='lib$name'
10892
soname_spec=
10893
shrext_cmds=".so"
10894
postinstall_cmds=
10895
postuninstall_cmds=
10896
finish_cmds=
10897
finish_eval=
10898
shlibpath_var=
10899
shlibpath_overrides_runpath=unknown
10900
version_type=none
10901
dynamic_linker="$host_os ld.so"
10902
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10903
need_lib_prefix=unknown
10904
hardcode_into_libs=no
10905
 
10906
# when you set need_version to no, make sure it does not cause -set_version
10907
# flags to be left without arguments
10908
need_version=unknown
10909
 
10910
case $host_os in
10911
aix3*)
10912
  version_type=linux
10913
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10914
  shlibpath_var=LIBPATH
10915
 
10916
  # AIX 3 has no versioning support, so we append a major version to the name.
10917
  soname_spec='${libname}${release}${shared_ext}$major'
10918
  ;;
10919
 
10920
aix[4-9]*)
10921
  version_type=linux
10922
  need_lib_prefix=no
10923
  need_version=no
10924
  hardcode_into_libs=yes
10925
  if test "$host_cpu" = ia64; then
10926
    # AIX 5 supports IA64
10927
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10928
    shlibpath_var=LD_LIBRARY_PATH
10929
  else
10930
    # With GCC up to 2.95.x, collect2 would create an import file
10931
    # for dependence libraries.  The import file would start with
10932
    # the line `#! .'.  This would cause the generated library to
10933
    # depend on `.', always an invalid library.  This was fixed in
10934
    # development snapshots of GCC prior to 3.0.
10935
    case $host_os in
10936
      aix4 | aix4.[01] | aix4.[01].*)
10937
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10938
           echo ' yes '
10939
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10940
        :
10941
      else
10942
        can_build_shared=no
10943
      fi
10944
      ;;
10945
    esac
10946
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10947
    # soname into executable. Probably we can add versioning support to
10948
    # collect2, so additional links can be useful in future.
10949
    if test "$aix_use_runtimelinking" = yes; then
10950
      # If using run time linking (on AIX 4.2 or later) use lib.so
10951
      # instead of lib.a to let people know that these are not
10952
      # typical AIX shared libraries.
10953
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954
    else
10955
      # We preserve .a as extension for shared libraries through AIX4.2
10956
      # and later when we are not doing run time linking.
10957
      library_names_spec='${libname}${release}.a $libname.a'
10958
      soname_spec='${libname}${release}${shared_ext}$major'
10959
    fi
10960
    shlibpath_var=LIBPATH
10961
  fi
10962
  ;;
10963
 
10964
amigaos*)
10965
  case $host_cpu in
10966
  powerpc)
10967
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10968
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10969
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970
    ;;
10971
  m68k)
10972
    library_names_spec='$libname.ixlibrary $libname.a'
10973
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10974
    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'
10975
    ;;
10976
  esac
10977
  ;;
10978
 
10979
beos*)
10980
  library_names_spec='${libname}${shared_ext}'
10981
  dynamic_linker="$host_os ld.so"
10982
  shlibpath_var=LIBRARY_PATH
10983
  ;;
10984
 
10985
bsdi[45]*)
10986
  version_type=linux
10987
  need_version=no
10988
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989
  soname_spec='${libname}${release}${shared_ext}$major'
10990
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10991
  shlibpath_var=LD_LIBRARY_PATH
10992
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10993
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10994
  # the default ld.so.conf also contains /usr/contrib/lib and
10995
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10996
  # libtool to hard-code these into programs
10997
  ;;
10998
 
10999
cygwin* | mingw* | pw32* | cegcc*)
11000
  version_type=windows
11001
  shrext_cmds=".dll"
11002
  need_version=no
11003
  need_lib_prefix=no
11004
 
11005
  case $GCC,$host_os in
11006
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11007
    library_names_spec='$libname.dll.a'
11008
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11009
    postinstall_cmds='base_file=`basename \${file}`~
11010
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11011
      dldir=$destdir/`dirname \$dlpath`~
11012
      test -d \$dldir || mkdir -p \$dldir~
11013
      $install_prog $dir/$dlname \$dldir/$dlname~
11014
      chmod a+x \$dldir/$dlname~
11015
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11016
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11017
      fi'
11018
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11019
      dlpath=$dir/\$dldll~
11020
       $RM \$dlpath'
11021
    shlibpath_overrides_runpath=yes
11022
 
11023
    case $host_os in
11024
    cygwin*)
11025
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11026
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11027
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11028
      ;;
11029
    mingw* | cegcc*)
11030
      # MinGW DLLs use traditional 'lib' prefix
11031
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11032
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11033
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11034
        # It is most probably a Windows format PATH printed by
11035
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11036
        # path with ; separators, and with drive letters. We can handle the
11037
        # drive letters (cygwin fileutils understands them), so leave them,
11038
        # especially as we might pass files found there to a mingw objdump,
11039
        # which wouldn't understand a cygwinified path. Ahh.
11040
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11041
      else
11042
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11043
      fi
11044
      ;;
11045
    pw32*)
11046
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11047
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11048
      ;;
11049
    esac
11050
    ;;
11051
 
11052
  *)
11053
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11054
    ;;
11055
  esac
11056
  dynamic_linker='Win32 ld.exe'
11057
  # FIXME: first we should search . and the directory the executable is in
11058
  shlibpath_var=PATH
11059
  ;;
11060
 
11061
darwin* | rhapsody*)
11062
  dynamic_linker="$host_os dyld"
11063
  version_type=darwin
11064
  need_lib_prefix=no
11065
  need_version=no
11066
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11067
  soname_spec='${libname}${release}${major}$shared_ext'
11068
  shlibpath_overrides_runpath=yes
11069
  shlibpath_var=DYLD_LIBRARY_PATH
11070
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11071
 
11072
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11073
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11074
  ;;
11075
 
11076
dgux*)
11077
  version_type=linux
11078
  need_lib_prefix=no
11079
  need_version=no
11080
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11081
  soname_spec='${libname}${release}${shared_ext}$major'
11082
  shlibpath_var=LD_LIBRARY_PATH
11083
  ;;
11084
 
11085
freebsd1*)
11086
  dynamic_linker=no
11087
  ;;
11088
 
11089
freebsd* | dragonfly*)
11090
  # DragonFly does not have aout.  When/if they implement a new
11091
  # versioning mechanism, adjust this.
11092
  if test -x /usr/bin/objformat; then
11093
    objformat=`/usr/bin/objformat`
11094
  else
11095
    case $host_os in
11096
    freebsd[123]*) objformat=aout ;;
11097
    *) objformat=elf ;;
11098
    esac
11099
  fi
11100
  version_type=freebsd-$objformat
11101
  case $version_type in
11102
    freebsd-elf*)
11103
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11104
      need_version=no
11105
      need_lib_prefix=no
11106
      ;;
11107
    freebsd-*)
11108
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11109
      need_version=yes
11110
      ;;
11111
  esac
11112
  shlibpath_var=LD_LIBRARY_PATH
11113
  case $host_os in
11114
  freebsd2*)
11115
    shlibpath_overrides_runpath=yes
11116
    ;;
11117
  freebsd3.[01]* | freebsdelf3.[01]*)
11118
    shlibpath_overrides_runpath=yes
11119
    hardcode_into_libs=yes
11120
    ;;
11121
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11122
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11123
    shlibpath_overrides_runpath=no
11124
    hardcode_into_libs=yes
11125
    ;;
11126
  *) # from 4.6 on, and DragonFly
11127
    shlibpath_overrides_runpath=yes
11128
    hardcode_into_libs=yes
11129
    ;;
11130
  esac
11131
  ;;
11132
 
11133
gnu*)
11134
  version_type=linux
11135
  need_lib_prefix=no
11136
  need_version=no
11137
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11138
  soname_spec='${libname}${release}${shared_ext}$major'
11139
  shlibpath_var=LD_LIBRARY_PATH
11140
  hardcode_into_libs=yes
11141
  ;;
11142
 
11143
hpux9* | hpux10* | hpux11*)
11144
  # Give a soname corresponding to the major version so that dld.sl refuses to
11145
  # link against other versions.
11146
  version_type=sunos
11147
  need_lib_prefix=no
11148
  need_version=no
11149
  case $host_cpu in
11150
  ia64*)
11151
    shrext_cmds='.so'
11152
    hardcode_into_libs=yes
11153
    dynamic_linker="$host_os dld.so"
11154
    shlibpath_var=LD_LIBRARY_PATH
11155
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11156
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157
    soname_spec='${libname}${release}${shared_ext}$major'
11158
    if test "X$HPUX_IA64_MODE" = X32; then
11159
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11160
    else
11161
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11162
    fi
11163
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11164
    ;;
11165
  hppa*64*)
11166
    shrext_cmds='.sl'
11167
    hardcode_into_libs=yes
11168
    dynamic_linker="$host_os dld.sl"
11169
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11170
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11171
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172
    soname_spec='${libname}${release}${shared_ext}$major'
11173
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11174
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11175
    ;;
11176
  *)
11177
    shrext_cmds='.sl'
11178
    dynamic_linker="$host_os dld.sl"
11179
    shlibpath_var=SHLIB_PATH
11180
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11181
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182
    soname_spec='${libname}${release}${shared_ext}$major'
11183
    ;;
11184
  esac
11185
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11186
  postinstall_cmds='chmod 555 $lib'
11187
  ;;
11188
 
11189
interix[3-9]*)
11190
  version_type=linux
11191
  need_lib_prefix=no
11192
  need_version=no
11193
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11194
  soname_spec='${libname}${release}${shared_ext}$major'
11195
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11196
  shlibpath_var=LD_LIBRARY_PATH
11197
  shlibpath_overrides_runpath=no
11198
  hardcode_into_libs=yes
11199
  ;;
11200
 
11201
irix5* | irix6* | nonstopux*)
11202
  case $host_os in
11203
    nonstopux*) version_type=nonstopux ;;
11204
    *)
11205
        if test "$lt_cv_prog_gnu_ld" = yes; then
11206
                version_type=linux
11207
        else
11208
                version_type=irix
11209
        fi ;;
11210
  esac
11211
  need_lib_prefix=no
11212
  need_version=no
11213
  soname_spec='${libname}${release}${shared_ext}$major'
11214
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11215
  case $host_os in
11216
  irix5* | nonstopux*)
11217
    libsuff= shlibsuff=
11218
    ;;
11219
  *)
11220
    case $LD in # libtool.m4 will add one of these switches to LD
11221
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11222
      libsuff= shlibsuff= libmagic=32-bit;;
11223
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11224
      libsuff=32 shlibsuff=N32 libmagic=N32;;
11225
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11226
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11227
    *) libsuff= shlibsuff= libmagic=never-match;;
11228
    esac
11229
    ;;
11230
  esac
11231
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11232
  shlibpath_overrides_runpath=no
11233
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11234
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11235
  hardcode_into_libs=yes
11236
  ;;
11237
 
11238
# No shared lib support for Linux oldld, aout, or coff.
11239
linux*oldld* | linux*aout* | linux*coff*)
11240
  dynamic_linker=no
11241
  ;;
11242
 
11243
# This must be Linux ELF.
11244
linux* | k*bsd*-gnu | kopensolaris*-gnu)
11245
  version_type=linux
11246
  need_lib_prefix=no
11247
  need_version=no
11248
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249
  soname_spec='${libname}${release}${shared_ext}$major'
11250
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11251
  shlibpath_var=LD_LIBRARY_PATH
11252
  shlibpath_overrides_runpath=no
11253
 
11254
  # Some binutils ld are patched to set DT_RUNPATH
11255
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11256
  $as_echo_n "(cached) " >&6
11257
else
11258
  lt_cv_shlibpath_overrides_runpath=no
11259
    save_LDFLAGS=$LDFLAGS
11260
    save_libdir=$libdir
11261
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11262
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11263
    cat >conftest.$ac_ext <<_ACEOF
11264
/* confdefs.h.  */
11265
_ACEOF
11266
cat confdefs.h >>conftest.$ac_ext
11267
cat >>conftest.$ac_ext <<_ACEOF
11268
/* end confdefs.h.  */
11269
 
11270
int
11271
main ()
11272
{
11273
 
11274
  ;
11275
  return 0;
11276
}
11277
_ACEOF
11278
rm -f conftest.$ac_objext conftest$ac_exeext
11279
if { (ac_try="$ac_link"
11280
case "(($ac_try" in
11281
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282
  *) ac_try_echo=$ac_try;;
11283
esac
11284
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11285
$as_echo "$ac_try_echo") >&5
11286
  (eval "$ac_link") 2>conftest.er1
11287
  ac_status=$?
11288
  grep -v '^ *+' conftest.er1 >conftest.err
11289
  rm -f conftest.er1
11290
  cat conftest.err >&5
11291
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292
  (exit $ac_status); } && {
11293
         test -z "$ac_c_werror_flag" ||
11294
         test ! -s conftest.err
11295
       } && test -s conftest$ac_exeext && {
11296
         test "$cross_compiling" = yes ||
11297
         $as_test_x conftest$ac_exeext
11298
       }; then
11299
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11300
  lt_cv_shlibpath_overrides_runpath=yes
11301
fi
11302
 
11303
else
11304
  $as_echo "$as_me: failed program was:" >&5
11305
sed 's/^/| /' conftest.$ac_ext >&5
11306
 
11307
 
11308
fi
11309
 
11310
rm -rf conftest.dSYM
11311
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11312
      conftest$ac_exeext conftest.$ac_ext
11313
    LDFLAGS=$save_LDFLAGS
11314
    libdir=$save_libdir
11315
 
11316
fi
11317
 
11318
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11319
 
11320
  # This implies no fast_install, which is unacceptable.
11321
  # Some rework will be needed to allow for fast_install
11322
  # before this can be enabled.
11323
  hardcode_into_libs=yes
11324
 
11325
  # Append ld.so.conf contents to the search path
11326
  if test -f /etc/ld.so.conf; then
11327
    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' ' '`
11328
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11329
  fi
11330
 
11331
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11332
  # powerpc, because MkLinux only supported shared libraries with the
11333
  # GNU dynamic linker.  Since this was broken with cross compilers,
11334
  # most powerpc-linux boxes support dynamic linking these days and
11335
  # people can always --disable-shared, the test was removed, and we
11336
  # assume the GNU/Linux dynamic linker is in use.
11337
  dynamic_linker='GNU/Linux ld.so'
11338
  ;;
11339
 
11340
netbsd*)
11341
  version_type=sunos
11342
  need_lib_prefix=no
11343
  need_version=no
11344
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11345
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11346
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11347
    dynamic_linker='NetBSD (a.out) ld.so'
11348
  else
11349
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11350
    soname_spec='${libname}${release}${shared_ext}$major'
11351
    dynamic_linker='NetBSD ld.elf_so'
11352
  fi
11353
  shlibpath_var=LD_LIBRARY_PATH
11354
  shlibpath_overrides_runpath=yes
11355
  hardcode_into_libs=yes
11356
  ;;
11357
 
11358
newsos6)
11359
  version_type=linux
11360
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361
  shlibpath_var=LD_LIBRARY_PATH
11362
  shlibpath_overrides_runpath=yes
11363
  ;;
11364
 
11365
*nto* | *qnx*)
11366
  version_type=qnx
11367
  need_lib_prefix=no
11368
  need_version=no
11369
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370
  soname_spec='${libname}${release}${shared_ext}$major'
11371
  shlibpath_var=LD_LIBRARY_PATH
11372
  shlibpath_overrides_runpath=no
11373
  hardcode_into_libs=yes
11374
  dynamic_linker='ldqnx.so'
11375
  ;;
11376
 
11377
openbsd*)
11378
  version_type=sunos
11379
  sys_lib_dlsearch_path_spec="/usr/lib"
11380
  need_lib_prefix=no
11381
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11382
  case $host_os in
11383
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11384
    *)                          need_version=no  ;;
11385
  esac
11386
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11387
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11388
  shlibpath_var=LD_LIBRARY_PATH
11389
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11390
    case $host_os in
11391
      openbsd2.[89] | openbsd2.[89].*)
11392
        shlibpath_overrides_runpath=no
11393
        ;;
11394
      *)
11395
        shlibpath_overrides_runpath=yes
11396
        ;;
11397
      esac
11398
  else
11399
    shlibpath_overrides_runpath=yes
11400
  fi
11401
  ;;
11402
 
11403
os2*)
11404
  libname_spec='$name'
11405
  shrext_cmds=".dll"
11406
  need_lib_prefix=no
11407
  library_names_spec='$libname${shared_ext} $libname.a'
11408
  dynamic_linker='OS/2 ld.exe'
11409
  shlibpath_var=LIBPATH
11410
  ;;
11411
 
11412
osf3* | osf4* | osf5*)
11413
  version_type=osf
11414
  need_lib_prefix=no
11415
  need_version=no
11416
  soname_spec='${libname}${release}${shared_ext}$major'
11417
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418
  shlibpath_var=LD_LIBRARY_PATH
11419
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11420
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11421
  ;;
11422
 
11423
rdos*)
11424
  dynamic_linker=no
11425
  ;;
11426
 
11427
solaris*)
11428
  version_type=linux
11429
  need_lib_prefix=no
11430
  need_version=no
11431
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432
  soname_spec='${libname}${release}${shared_ext}$major'
11433
  shlibpath_var=LD_LIBRARY_PATH
11434
  shlibpath_overrides_runpath=yes
11435
  hardcode_into_libs=yes
11436
  # ldd complains unless libraries are executable
11437
  postinstall_cmds='chmod +x $lib'
11438
  ;;
11439
 
11440
sunos4*)
11441
  version_type=sunos
11442
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11443
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11444
  shlibpath_var=LD_LIBRARY_PATH
11445
  shlibpath_overrides_runpath=yes
11446
  if test "$with_gnu_ld" = yes; then
11447
    need_lib_prefix=no
11448
  fi
11449
  need_version=yes
11450
  ;;
11451
 
11452
sysv4 | sysv4.3*)
11453
  version_type=linux
11454
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455
  soname_spec='${libname}${release}${shared_ext}$major'
11456
  shlibpath_var=LD_LIBRARY_PATH
11457
  case $host_vendor in
11458
    sni)
11459
      shlibpath_overrides_runpath=no
11460
      need_lib_prefix=no
11461
      runpath_var=LD_RUN_PATH
11462
      ;;
11463
    siemens)
11464
      need_lib_prefix=no
11465
      ;;
11466
    motorola)
11467
      need_lib_prefix=no
11468
      need_version=no
11469
      shlibpath_overrides_runpath=no
11470
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11471
      ;;
11472
  esac
11473
  ;;
11474
 
11475
sysv4*MP*)
11476
  if test -d /usr/nec ;then
11477
    version_type=linux
11478
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11479
    soname_spec='$libname${shared_ext}.$major'
11480
    shlibpath_var=LD_LIBRARY_PATH
11481
  fi
11482
  ;;
11483
 
11484
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11485
  version_type=freebsd-elf
11486
  need_lib_prefix=no
11487
  need_version=no
11488
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11489
  soname_spec='${libname}${release}${shared_ext}$major'
11490
  shlibpath_var=LD_LIBRARY_PATH
11491
  shlibpath_overrides_runpath=yes
11492
  hardcode_into_libs=yes
11493
  if test "$with_gnu_ld" = yes; then
11494
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11495
  else
11496
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11497
    case $host_os in
11498
      sco3.2v5*)
11499
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11500
        ;;
11501
    esac
11502
  fi
11503
  sys_lib_dlsearch_path_spec='/usr/lib'
11504
  ;;
11505
 
11506
tpf*)
11507
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11508
  version_type=linux
11509
  need_lib_prefix=no
11510
  need_version=no
11511
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512
  shlibpath_var=LD_LIBRARY_PATH
11513
  shlibpath_overrides_runpath=no
11514
  hardcode_into_libs=yes
11515
  ;;
11516
 
11517
uts4*)
11518
  version_type=linux
11519
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520
  soname_spec='${libname}${release}${shared_ext}$major'
11521
  shlibpath_var=LD_LIBRARY_PATH
11522
  ;;
11523
 
11524
*)
11525
  dynamic_linker=no
11526
  ;;
11527
esac
11528
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11529
$as_echo "$dynamic_linker" >&6; }
11530
test "$dynamic_linker" = no && can_build_shared=no
11531
 
11532
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11533
if test "$GCC" = yes; then
11534
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11535
fi
11536
 
11537
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11538
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11539
fi
11540
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11541
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11542
fi
11543
 
11544
 
11545
 
11546
 
11547
 
11548
 
11549
 
11550
 
11551
 
11552
 
11553
 
11554
 
11555
 
11556
 
11557
 
11558
 
11559
 
11560
 
11561
 
11562
 
11563
 
11564
 
11565
 
11566
 
11567
 
11568
 
11569
 
11570
 
11571
 
11572
 
11573
 
11574
 
11575
 
11576
 
11577
 
11578
 
11579
 
11580
 
11581
 
11582
 
11583
 
11584
 
11585
 
11586
 
11587
 
11588
 
11589
 
11590
 
11591
 
11592
 
11593
 
11594
 
11595
 
11596
 
11597
 
11598
 
11599
 
11600
 
11601
 
11602
 
11603
 
11604
 
11605
 
11606
 
11607
 
11608
 
11609
 
11610
 
11611
 
11612
 
11613
 
11614
 
11615
 
11616
 
11617
 
11618
 
11619
 
11620
 
11621
 
11622
 
11623
 
11624
 
11625
 
11626
 
11627
 
11628
 
11629
 
11630
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11631
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11632
hardcode_action=
11633
if test -n "$hardcode_libdir_flag_spec" ||
11634
   test -n "$runpath_var" ||
11635
   test "X$hardcode_automatic" = "Xyes" ; then
11636
 
11637
  # We can hardcode non-existent directories.
11638
  if test "$hardcode_direct" != no &&
11639
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11640
     # have to relink, otherwise we might link with an installed library
11641
     # when we should be linking with a yet-to-be-installed one
11642
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11643
     test "$hardcode_minus_L" != no; then
11644
    # Linking always hardcodes the temporary library directory.
11645
    hardcode_action=relink
11646
  else
11647
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11648
    hardcode_action=immediate
11649
  fi
11650
else
11651
  # We cannot hardcode anything, or else we can only hardcode existing
11652
  # directories.
11653
  hardcode_action=unsupported
11654
fi
11655
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11656
$as_echo "$hardcode_action" >&6; }
11657
 
11658
if test "$hardcode_action" = relink ||
11659
   test "$inherit_rpath" = yes; then
11660
  # Fast installation is not supported
11661
  enable_fast_install=no
11662
elif test "$shlibpath_overrides_runpath" = yes ||
11663
     test "$enable_shared" = no; then
11664
  # Fast installation is not necessary
11665
  enable_fast_install=needless
11666
fi
11667
 
11668
 
11669
 
11670
 
11671
 
11672
 
11673
  if test "x$enable_dlopen" != xyes; then
11674
  enable_dlopen=unknown
11675
  enable_dlopen_self=unknown
11676
  enable_dlopen_self_static=unknown
11677
else
11678
  lt_cv_dlopen=no
11679
  lt_cv_dlopen_libs=
11680
 
11681
  case $host_os in
11682
  beos*)
11683
    lt_cv_dlopen="load_add_on"
11684
    lt_cv_dlopen_libs=
11685
    lt_cv_dlopen_self=yes
11686
    ;;
11687
 
11688
  mingw* | pw32* | cegcc*)
11689
    lt_cv_dlopen="LoadLibrary"
11690
    lt_cv_dlopen_libs=
11691
    ;;
11692
 
11693
  cygwin*)
11694
    lt_cv_dlopen="dlopen"
11695
    lt_cv_dlopen_libs=
11696
    ;;
11697
 
11698
  darwin*)
11699
  # if libdl is installed we need to link against it
11700
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11701
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11702
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11703
  $as_echo_n "(cached) " >&6
11704
else
11705
  ac_check_lib_save_LIBS=$LIBS
11706
LIBS="-ldl  $LIBS"
11707
cat >conftest.$ac_ext <<_ACEOF
11708
/* confdefs.h.  */
11709
_ACEOF
11710
cat confdefs.h >>conftest.$ac_ext
11711
cat >>conftest.$ac_ext <<_ACEOF
11712
/* end confdefs.h.  */
11713
 
11714
/* Override any GCC internal prototype to avoid an error.
11715
   Use char because int might match the return type of a GCC
11716
   builtin and then its argument prototype would still apply.  */
11717
#ifdef __cplusplus
11718
extern "C"
11719
#endif
11720
char dlopen ();
11721
int
11722
main ()
11723
{
11724
return dlopen ();
11725
  ;
11726
  return 0;
11727
}
11728
_ACEOF
11729
rm -f conftest.$ac_objext conftest$ac_exeext
11730
if { (ac_try="$ac_link"
11731
case "(($ac_try" in
11732
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733
  *) ac_try_echo=$ac_try;;
11734
esac
11735
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11736
$as_echo "$ac_try_echo") >&5
11737
  (eval "$ac_link") 2>conftest.er1
11738
  ac_status=$?
11739
  grep -v '^ *+' conftest.er1 >conftest.err
11740
  rm -f conftest.er1
11741
  cat conftest.err >&5
11742
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743
  (exit $ac_status); } && {
11744
         test -z "$ac_c_werror_flag" ||
11745
         test ! -s conftest.err
11746
       } && test -s conftest$ac_exeext && {
11747
         test "$cross_compiling" = yes ||
11748
         $as_test_x conftest$ac_exeext
11749
       }; then
11750
  ac_cv_lib_dl_dlopen=yes
11751
else
11752
  $as_echo "$as_me: failed program was:" >&5
11753
sed 's/^/| /' conftest.$ac_ext >&5
11754
 
11755
        ac_cv_lib_dl_dlopen=no
11756
fi
11757
 
11758
rm -rf conftest.dSYM
11759
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11760
      conftest$ac_exeext conftest.$ac_ext
11761
LIBS=$ac_check_lib_save_LIBS
11762
fi
11763
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11764
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11765
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11766
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11767
else
11768
 
11769
    lt_cv_dlopen="dyld"
11770
    lt_cv_dlopen_libs=
11771
    lt_cv_dlopen_self=yes
11772
 
11773
fi
11774
 
11775
    ;;
11776
 
11777
  *)
11778
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11779
$as_echo_n "checking for shl_load... " >&6; }
11780
if test "${ac_cv_func_shl_load+set}" = set; then
11781
  $as_echo_n "(cached) " >&6
11782
else
11783
  cat >conftest.$ac_ext <<_ACEOF
11784
/* confdefs.h.  */
11785
_ACEOF
11786
cat confdefs.h >>conftest.$ac_ext
11787
cat >>conftest.$ac_ext <<_ACEOF
11788
/* end confdefs.h.  */
11789
/* Define shl_load to an innocuous variant, in case  declares shl_load.
11790
   For example, HP-UX 11i  declares gettimeofday.  */
11791
#define shl_load innocuous_shl_load
11792
 
11793
/* System header to define __stub macros and hopefully few prototypes,
11794
    which can conflict with char shl_load (); below.
11795
    Prefer  to  if __STDC__ is defined, since
11796
     exists even on freestanding compilers.  */
11797
 
11798
#ifdef __STDC__
11799
# include 
11800
#else
11801
# include 
11802
#endif
11803
 
11804
#undef shl_load
11805
 
11806
/* Override any GCC internal prototype to avoid an error.
11807
   Use char because int might match the return type of a GCC
11808
   builtin and then its argument prototype would still apply.  */
11809
#ifdef __cplusplus
11810
extern "C"
11811
#endif
11812
char shl_load ();
11813
/* The GNU C library defines this for functions which it implements
11814
    to always fail with ENOSYS.  Some functions are actually named
11815
    something starting with __ and the normal name is an alias.  */
11816
#if defined __stub_shl_load || defined __stub___shl_load
11817
choke me
11818
#endif
11819
 
11820
int
11821
main ()
11822
{
11823
return shl_load ();
11824
  ;
11825
  return 0;
11826
}
11827
_ACEOF
11828
rm -f conftest.$ac_objext conftest$ac_exeext
11829
if { (ac_try="$ac_link"
11830
case "(($ac_try" in
11831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832
  *) ac_try_echo=$ac_try;;
11833
esac
11834
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11835
$as_echo "$ac_try_echo") >&5
11836
  (eval "$ac_link") 2>conftest.er1
11837
  ac_status=$?
11838
  grep -v '^ *+' conftest.er1 >conftest.err
11839
  rm -f conftest.er1
11840
  cat conftest.err >&5
11841
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842
  (exit $ac_status); } && {
11843
         test -z "$ac_c_werror_flag" ||
11844
         test ! -s conftest.err
11845
       } && test -s conftest$ac_exeext && {
11846
         test "$cross_compiling" = yes ||
11847
         $as_test_x conftest$ac_exeext
11848
       }; then
11849
  ac_cv_func_shl_load=yes
11850
else
11851
  $as_echo "$as_me: failed program was:" >&5
11852
sed 's/^/| /' conftest.$ac_ext >&5
11853
 
11854
        ac_cv_func_shl_load=no
11855
fi
11856
 
11857
rm -rf conftest.dSYM
11858
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11859
      conftest$ac_exeext conftest.$ac_ext
11860
fi
11861
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11862
$as_echo "$ac_cv_func_shl_load" >&6; }
11863
if test "x$ac_cv_func_shl_load" = x""yes; then
11864
  lt_cv_dlopen="shl_load"
11865
else
11866
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11867
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11868
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11869
  $as_echo_n "(cached) " >&6
11870
else
11871
  ac_check_lib_save_LIBS=$LIBS
11872
LIBS="-ldld  $LIBS"
11873
cat >conftest.$ac_ext <<_ACEOF
11874
/* confdefs.h.  */
11875
_ACEOF
11876
cat confdefs.h >>conftest.$ac_ext
11877
cat >>conftest.$ac_ext <<_ACEOF
11878
/* end confdefs.h.  */
11879
 
11880
/* Override any GCC internal prototype to avoid an error.
11881
   Use char because int might match the return type of a GCC
11882
   builtin and then its argument prototype would still apply.  */
11883
#ifdef __cplusplus
11884
extern "C"
11885
#endif
11886
char shl_load ();
11887
int
11888
main ()
11889
{
11890
return shl_load ();
11891
  ;
11892
  return 0;
11893
}
11894
_ACEOF
11895
rm -f conftest.$ac_objext conftest$ac_exeext
11896
if { (ac_try="$ac_link"
11897
case "(($ac_try" in
11898
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899
  *) ac_try_echo=$ac_try;;
11900
esac
11901
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11902
$as_echo "$ac_try_echo") >&5
11903
  (eval "$ac_link") 2>conftest.er1
11904
  ac_status=$?
11905
  grep -v '^ *+' conftest.er1 >conftest.err
11906
  rm -f conftest.er1
11907
  cat conftest.err >&5
11908
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909
  (exit $ac_status); } && {
11910
         test -z "$ac_c_werror_flag" ||
11911
         test ! -s conftest.err
11912
       } && test -s conftest$ac_exeext && {
11913
         test "$cross_compiling" = yes ||
11914
         $as_test_x conftest$ac_exeext
11915
       }; then
11916
  ac_cv_lib_dld_shl_load=yes
11917
else
11918
  $as_echo "$as_me: failed program was:" >&5
11919
sed 's/^/| /' conftest.$ac_ext >&5
11920
 
11921
        ac_cv_lib_dld_shl_load=no
11922
fi
11923
 
11924
rm -rf conftest.dSYM
11925
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11926
      conftest$ac_exeext conftest.$ac_ext
11927
LIBS=$ac_check_lib_save_LIBS
11928
fi
11929
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11930
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11931
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11932
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11933
else
11934
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11935
$as_echo_n "checking for dlopen... " >&6; }
11936
if test "${ac_cv_func_dlopen+set}" = set; then
11937
  $as_echo_n "(cached) " >&6
11938
else
11939
  cat >conftest.$ac_ext <<_ACEOF
11940
/* confdefs.h.  */
11941
_ACEOF
11942
cat confdefs.h >>conftest.$ac_ext
11943
cat >>conftest.$ac_ext <<_ACEOF
11944
/* end confdefs.h.  */
11945
/* Define dlopen to an innocuous variant, in case  declares dlopen.
11946
   For example, HP-UX 11i  declares gettimeofday.  */
11947
#define dlopen innocuous_dlopen
11948
 
11949
/* System header to define __stub macros and hopefully few prototypes,
11950
    which can conflict with char dlopen (); below.
11951
    Prefer  to  if __STDC__ is defined, since
11952
     exists even on freestanding compilers.  */
11953
 
11954
#ifdef __STDC__
11955
# include 
11956
#else
11957
# include 
11958
#endif
11959
 
11960
#undef dlopen
11961
 
11962
/* Override any GCC internal prototype to avoid an error.
11963
   Use char because int might match the return type of a GCC
11964
   builtin and then its argument prototype would still apply.  */
11965
#ifdef __cplusplus
11966
extern "C"
11967
#endif
11968
char dlopen ();
11969
/* The GNU C library defines this for functions which it implements
11970
    to always fail with ENOSYS.  Some functions are actually named
11971
    something starting with __ and the normal name is an alias.  */
11972
#if defined __stub_dlopen || defined __stub___dlopen
11973
choke me
11974
#endif
11975
 
11976
int
11977
main ()
11978
{
11979
return dlopen ();
11980
  ;
11981
  return 0;
11982
}
11983
_ACEOF
11984
rm -f conftest.$ac_objext conftest$ac_exeext
11985
if { (ac_try="$ac_link"
11986
case "(($ac_try" in
11987
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988
  *) ac_try_echo=$ac_try;;
11989
esac
11990
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11991
$as_echo "$ac_try_echo") >&5
11992
  (eval "$ac_link") 2>conftest.er1
11993
  ac_status=$?
11994
  grep -v '^ *+' conftest.er1 >conftest.err
11995
  rm -f conftest.er1
11996
  cat conftest.err >&5
11997
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998
  (exit $ac_status); } && {
11999
         test -z "$ac_c_werror_flag" ||
12000
         test ! -s conftest.err
12001
       } && test -s conftest$ac_exeext && {
12002
         test "$cross_compiling" = yes ||
12003
         $as_test_x conftest$ac_exeext
12004
       }; then
12005
  ac_cv_func_dlopen=yes
12006
else
12007
  $as_echo "$as_me: failed program was:" >&5
12008
sed 's/^/| /' conftest.$ac_ext >&5
12009
 
12010
        ac_cv_func_dlopen=no
12011
fi
12012
 
12013
rm -rf conftest.dSYM
12014
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12015
      conftest$ac_exeext conftest.$ac_ext
12016
fi
12017
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12018
$as_echo "$ac_cv_func_dlopen" >&6; }
12019
if test "x$ac_cv_func_dlopen" = x""yes; then
12020
  lt_cv_dlopen="dlopen"
12021
else
12022
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12023
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12024
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12025
  $as_echo_n "(cached) " >&6
12026
else
12027
  ac_check_lib_save_LIBS=$LIBS
12028
LIBS="-ldl  $LIBS"
12029
cat >conftest.$ac_ext <<_ACEOF
12030
/* confdefs.h.  */
12031
_ACEOF
12032
cat confdefs.h >>conftest.$ac_ext
12033
cat >>conftest.$ac_ext <<_ACEOF
12034
/* end confdefs.h.  */
12035
 
12036
/* Override any GCC internal prototype to avoid an error.
12037
   Use char because int might match the return type of a GCC
12038
   builtin and then its argument prototype would still apply.  */
12039
#ifdef __cplusplus
12040
extern "C"
12041
#endif
12042
char dlopen ();
12043
int
12044
main ()
12045
{
12046
return dlopen ();
12047
  ;
12048
  return 0;
12049
}
12050
_ACEOF
12051
rm -f conftest.$ac_objext conftest$ac_exeext
12052
if { (ac_try="$ac_link"
12053
case "(($ac_try" in
12054
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055
  *) ac_try_echo=$ac_try;;
12056
esac
12057
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12058
$as_echo "$ac_try_echo") >&5
12059
  (eval "$ac_link") 2>conftest.er1
12060
  ac_status=$?
12061
  grep -v '^ *+' conftest.er1 >conftest.err
12062
  rm -f conftest.er1
12063
  cat conftest.err >&5
12064
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065
  (exit $ac_status); } && {
12066
         test -z "$ac_c_werror_flag" ||
12067
         test ! -s conftest.err
12068
       } && test -s conftest$ac_exeext && {
12069
         test "$cross_compiling" = yes ||
12070
         $as_test_x conftest$ac_exeext
12071
       }; then
12072
  ac_cv_lib_dl_dlopen=yes
12073
else
12074
  $as_echo "$as_me: failed program was:" >&5
12075
sed 's/^/| /' conftest.$ac_ext >&5
12076
 
12077
        ac_cv_lib_dl_dlopen=no
12078
fi
12079
 
12080
rm -rf conftest.dSYM
12081
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12082
      conftest$ac_exeext conftest.$ac_ext
12083
LIBS=$ac_check_lib_save_LIBS
12084
fi
12085
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12086
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12087
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12088
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12089
else
12090
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12091
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12092
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12093
  $as_echo_n "(cached) " >&6
12094
else
12095
  ac_check_lib_save_LIBS=$LIBS
12096
LIBS="-lsvld  $LIBS"
12097
cat >conftest.$ac_ext <<_ACEOF
12098
/* confdefs.h.  */
12099
_ACEOF
12100
cat confdefs.h >>conftest.$ac_ext
12101
cat >>conftest.$ac_ext <<_ACEOF
12102
/* end confdefs.h.  */
12103
 
12104
/* Override any GCC internal prototype to avoid an error.
12105
   Use char because int might match the return type of a GCC
12106
   builtin and then its argument prototype would still apply.  */
12107
#ifdef __cplusplus
12108
extern "C"
12109
#endif
12110
char dlopen ();
12111
int
12112
main ()
12113
{
12114
return dlopen ();
12115
  ;
12116
  return 0;
12117
}
12118
_ACEOF
12119
rm -f conftest.$ac_objext conftest$ac_exeext
12120
if { (ac_try="$ac_link"
12121
case "(($ac_try" in
12122
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123
  *) ac_try_echo=$ac_try;;
12124
esac
12125
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12126
$as_echo "$ac_try_echo") >&5
12127
  (eval "$ac_link") 2>conftest.er1
12128
  ac_status=$?
12129
  grep -v '^ *+' conftest.er1 >conftest.err
12130
  rm -f conftest.er1
12131
  cat conftest.err >&5
12132
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133
  (exit $ac_status); } && {
12134
         test -z "$ac_c_werror_flag" ||
12135
         test ! -s conftest.err
12136
       } && test -s conftest$ac_exeext && {
12137
         test "$cross_compiling" = yes ||
12138
         $as_test_x conftest$ac_exeext
12139
       }; then
12140
  ac_cv_lib_svld_dlopen=yes
12141
else
12142
  $as_echo "$as_me: failed program was:" >&5
12143
sed 's/^/| /' conftest.$ac_ext >&5
12144
 
12145
        ac_cv_lib_svld_dlopen=no
12146
fi
12147
 
12148
rm -rf conftest.dSYM
12149
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12150
      conftest$ac_exeext conftest.$ac_ext
12151
LIBS=$ac_check_lib_save_LIBS
12152
fi
12153
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12154
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12155
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12156
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12157
else
12158
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12159
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12160
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12161
  $as_echo_n "(cached) " >&6
12162
else
12163
  ac_check_lib_save_LIBS=$LIBS
12164
LIBS="-ldld  $LIBS"
12165
cat >conftest.$ac_ext <<_ACEOF
12166
/* confdefs.h.  */
12167
_ACEOF
12168
cat confdefs.h >>conftest.$ac_ext
12169
cat >>conftest.$ac_ext <<_ACEOF
12170
/* end confdefs.h.  */
12171
 
12172
/* Override any GCC internal prototype to avoid an error.
12173
   Use char because int might match the return type of a GCC
12174
   builtin and then its argument prototype would still apply.  */
12175
#ifdef __cplusplus
12176
extern "C"
12177
#endif
12178
char dld_link ();
12179
int
12180
main ()
12181
{
12182
return dld_link ();
12183
  ;
12184
  return 0;
12185
}
12186
_ACEOF
12187
rm -f conftest.$ac_objext conftest$ac_exeext
12188
if { (ac_try="$ac_link"
12189
case "(($ac_try" in
12190
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191
  *) ac_try_echo=$ac_try;;
12192
esac
12193
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12194
$as_echo "$ac_try_echo") >&5
12195
  (eval "$ac_link") 2>conftest.er1
12196
  ac_status=$?
12197
  grep -v '^ *+' conftest.er1 >conftest.err
12198
  rm -f conftest.er1
12199
  cat conftest.err >&5
12200
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201
  (exit $ac_status); } && {
12202
         test -z "$ac_c_werror_flag" ||
12203
         test ! -s conftest.err
12204
       } && test -s conftest$ac_exeext && {
12205
         test "$cross_compiling" = yes ||
12206
         $as_test_x conftest$ac_exeext
12207
       }; then
12208
  ac_cv_lib_dld_dld_link=yes
12209
else
12210
  $as_echo "$as_me: failed program was:" >&5
12211
sed 's/^/| /' conftest.$ac_ext >&5
12212
 
12213
        ac_cv_lib_dld_dld_link=no
12214
fi
12215
 
12216
rm -rf conftest.dSYM
12217
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12218
      conftest$ac_exeext conftest.$ac_ext
12219
LIBS=$ac_check_lib_save_LIBS
12220
fi
12221
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12222
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12223
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12224
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12225
fi
12226
 
12227
 
12228
fi
12229
 
12230
 
12231
fi
12232
 
12233
 
12234
fi
12235
 
12236
 
12237
fi
12238
 
12239
 
12240
fi
12241
 
12242
    ;;
12243
  esac
12244
 
12245
  if test "x$lt_cv_dlopen" != xno; then
12246
    enable_dlopen=yes
12247
  else
12248
    enable_dlopen=no
12249
  fi
12250
 
12251
  case $lt_cv_dlopen in
12252
  dlopen)
12253
    save_CPPFLAGS="$CPPFLAGS"
12254
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12255
 
12256
    save_LDFLAGS="$LDFLAGS"
12257
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12258
 
12259
    save_LIBS="$LIBS"
12260
    LIBS="$lt_cv_dlopen_libs $LIBS"
12261
 
12262
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12263
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12264
if test "${lt_cv_dlopen_self+set}" = set; then
12265
  $as_echo_n "(cached) " >&6
12266
else
12267
          if test "$cross_compiling" = yes; then :
12268
  lt_cv_dlopen_self=cross
12269
else
12270
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12271
  lt_status=$lt_dlunknown
12272
  cat > conftest.$ac_ext <<_LT_EOF
12273
#line 12273 "configure"
12274
#include "confdefs.h"
12275
 
12276
#if HAVE_DLFCN_H
12277
#include 
12278
#endif
12279
 
12280
#include 
12281
 
12282
#ifdef RTLD_GLOBAL
12283
#  define LT_DLGLOBAL           RTLD_GLOBAL
12284
#else
12285
#  ifdef DL_GLOBAL
12286
#    define LT_DLGLOBAL         DL_GLOBAL
12287
#  else
12288
#    define LT_DLGLOBAL         0
12289
#  endif
12290
#endif
12291
 
12292
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12293
   find out it does not work in some platform. */
12294
#ifndef LT_DLLAZY_OR_NOW
12295
#  ifdef RTLD_LAZY
12296
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12297
#  else
12298
#    ifdef DL_LAZY
12299
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12300
#    else
12301
#      ifdef RTLD_NOW
12302
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12303
#      else
12304
#        ifdef DL_NOW
12305
#          define LT_DLLAZY_OR_NOW      DL_NOW
12306
#        else
12307
#          define LT_DLLAZY_OR_NOW      0
12308
#        endif
12309
#      endif
12310
#    endif
12311
#  endif
12312
#endif
12313
 
12314
void fnord() { int i=42;}
12315
int main ()
12316
{
12317
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12318
  int status = $lt_dlunknown;
12319
 
12320
  if (self)
12321
    {
12322
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12323
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12324
      /* dlclose (self); */
12325
    }
12326
  else
12327
    puts (dlerror ());
12328
 
12329
  return status;
12330
}
12331
_LT_EOF
12332
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12333
  (eval $ac_link) 2>&5
12334
  ac_status=$?
12335
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12337
    (./conftest; exit; ) >&5 2>/dev/null
12338
    lt_status=$?
12339
    case x$lt_status in
12340
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12341
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12342
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12343
    esac
12344
  else :
12345
    # compilation failed
12346
    lt_cv_dlopen_self=no
12347
  fi
12348
fi
12349
rm -fr conftest*
12350
 
12351
 
12352
fi
12353
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12354
$as_echo "$lt_cv_dlopen_self" >&6; }
12355
 
12356
    if test "x$lt_cv_dlopen_self" = xyes; then
12357
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12358
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12359
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12360
if test "${lt_cv_dlopen_self_static+set}" = set; then
12361
  $as_echo_n "(cached) " >&6
12362
else
12363
          if test "$cross_compiling" = yes; then :
12364
  lt_cv_dlopen_self_static=cross
12365
else
12366
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12367
  lt_status=$lt_dlunknown
12368
  cat > conftest.$ac_ext <<_LT_EOF
12369
#line 12369 "configure"
12370
#include "confdefs.h"
12371
 
12372
#if HAVE_DLFCN_H
12373
#include 
12374
#endif
12375
 
12376
#include 
12377
 
12378
#ifdef RTLD_GLOBAL
12379
#  define LT_DLGLOBAL           RTLD_GLOBAL
12380
#else
12381
#  ifdef DL_GLOBAL
12382
#    define LT_DLGLOBAL         DL_GLOBAL
12383
#  else
12384
#    define LT_DLGLOBAL         0
12385
#  endif
12386
#endif
12387
 
12388
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12389
   find out it does not work in some platform. */
12390
#ifndef LT_DLLAZY_OR_NOW
12391
#  ifdef RTLD_LAZY
12392
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12393
#  else
12394
#    ifdef DL_LAZY
12395
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12396
#    else
12397
#      ifdef RTLD_NOW
12398
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12399
#      else
12400
#        ifdef DL_NOW
12401
#          define LT_DLLAZY_OR_NOW      DL_NOW
12402
#        else
12403
#          define LT_DLLAZY_OR_NOW      0
12404
#        endif
12405
#      endif
12406
#    endif
12407
#  endif
12408
#endif
12409
 
12410
void fnord() { int i=42;}
12411
int main ()
12412
{
12413
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12414
  int status = $lt_dlunknown;
12415
 
12416
  if (self)
12417
    {
12418
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12419
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12420
      /* dlclose (self); */
12421
    }
12422
  else
12423
    puts (dlerror ());
12424
 
12425
  return status;
12426
}
12427
_LT_EOF
12428
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429
  (eval $ac_link) 2>&5
12430
  ac_status=$?
12431
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12433
    (./conftest; exit; ) >&5 2>/dev/null
12434
    lt_status=$?
12435
    case x$lt_status in
12436
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12437
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12438
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12439
    esac
12440
  else :
12441
    # compilation failed
12442
    lt_cv_dlopen_self_static=no
12443
  fi
12444
fi
12445
rm -fr conftest*
12446
 
12447
 
12448
fi
12449
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12450
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12451
    fi
12452
 
12453
    CPPFLAGS="$save_CPPFLAGS"
12454
    LDFLAGS="$save_LDFLAGS"
12455
    LIBS="$save_LIBS"
12456
    ;;
12457
  esac
12458
 
12459
  case $lt_cv_dlopen_self in
12460
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12461
  *) enable_dlopen_self=unknown ;;
12462
  esac
12463
 
12464
  case $lt_cv_dlopen_self_static in
12465
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12466
  *) enable_dlopen_self_static=unknown ;;
12467
  esac
12468
fi
12469
 
12470
 
12471
 
12472
 
12473
 
12474
 
12475
 
12476
 
12477
 
12478
 
12479
 
12480
 
12481
 
12482
 
12483
 
12484
 
12485
 
12486
striplib=
12487
old_striplib=
12488
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12489
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12490
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12491
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12492
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12493
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12494
$as_echo "yes" >&6; }
12495
else
12496
# FIXME - insert some real tests, host_os isn't really good enough
12497
  case $host_os in
12498
  darwin*)
12499
    if test -n "$STRIP" ; then
12500
      striplib="$STRIP -x"
12501
      old_striplib="$STRIP -S"
12502
      { $as_echo "$as_me:$LINENO: result: yes" >&5
12503
$as_echo "yes" >&6; }
12504
    else
12505
      { $as_echo "$as_me:$LINENO: result: no" >&5
12506
$as_echo "no" >&6; }
12507
    fi
12508
    ;;
12509
  *)
12510
    { $as_echo "$as_me:$LINENO: result: no" >&5
12511
$as_echo "no" >&6; }
12512
    ;;
12513
  esac
12514
fi
12515
 
12516
 
12517
 
12518
 
12519
 
12520
 
12521
 
12522
 
12523
 
12524
 
12525
 
12526
 
12527
  # Report which library types will actually be built
12528
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12529
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12530
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12531
$as_echo "$can_build_shared" >&6; }
12532
 
12533
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12534
$as_echo_n "checking whether to build shared libraries... " >&6; }
12535
  test "$can_build_shared" = "no" && enable_shared=no
12536
 
12537
  # On AIX, shared libraries and static libraries use the same namespace, and
12538
  # are all built from PIC.
12539
  case $host_os in
12540
  aix3*)
12541
    test "$enable_shared" = yes && enable_static=no
12542
    if test -n "$RANLIB"; then
12543
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12544
      postinstall_cmds='$RANLIB $lib'
12545
    fi
12546
    ;;
12547
 
12548
  aix[4-9]*)
12549
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12550
      test "$enable_shared" = yes && enable_static=no
12551
    fi
12552
    ;;
12553
  esac
12554
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12555
$as_echo "$enable_shared" >&6; }
12556
 
12557
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12558
$as_echo_n "checking whether to build static libraries... " >&6; }
12559
  # Make sure either enable_shared or enable_static is yes.
12560
  test "$enable_shared" = yes || enable_static=yes
12561
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12562
$as_echo "$enable_static" >&6; }
12563
 
12564
 
12565
 
12566
 
12567
fi
12568
ac_ext=c
12569
ac_cpp='$CPP $CPPFLAGS'
12570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12573
 
12574
CC="$lt_save_CC"
12575
 
12576
 
12577
 
12578
 
12579
 
12580
 
12581
 
12582
 
12583
 
12584
 
12585
 
12586
 
12587
 
12588
        ac_config_commands="$ac_config_commands libtool"
12589
 
12590
 
12591
 
12592
 
12593
# Only expand once:
12594
 
12595
 
12596
fi
12597
 
12598
if test -n "${sys_dir}"; then
12599
  case ${sys_dir} in
12600
        a29khif)
12601
 
12602
subdirs="$subdirs a29khif"
12603
 ;;
12604
        arc) subdirs="$subdirs arc"
12605
 ;;
12606
        arm) subdirs="$subdirs arm"
12607
 ;;
12608
        d10v) subdirs="$subdirs d10v"
12609
 ;;
12610
        decstation) subdirs="$subdirs decstation"
12611
 ;;
12612
        h8300hms) subdirs="$subdirs h8300hms"
12613
 ;;
12614
        h8500hms) subdirs="$subdirs h8500hms"
12615
 ;;
12616
        linux) subdirs="$subdirs linux"
12617
 ;;
12618
        m88kbug) subdirs="$subdirs m88kbug"
12619
 ;;
12620
        mmixware) subdirs="$subdirs mmixware"
12621
 ;;
12622
        netware) subdirs="$subdirs netware"
12623
 ;;
12624
        rdos) subdirs="$subdirs rdos"
12625
 ;;
12626
        rtems) subdirs="$subdirs rtems"
12627
 ;;
12628
        sh) subdirs="$subdirs sh"
12629
 ;;
12630
        sparc64) subdirs="$subdirs sparc64"
12631
 ;;
12632
        sun4) subdirs="$subdirs sun4"
12633
 ;;
12634
        sysmec) subdirs="$subdirs sysmec"
12635
 ;;
12636
        sysnec810) subdirs="$subdirs sysnec810"
12637
 ;;
12638
        sysnecv850) subdirs="$subdirs sysnecv850"
12639
 ;;
12640
        sysvi386) subdirs="$subdirs sysvi386"
12641
 ;;
12642
        sysvnecv70) subdirs="$subdirs sysvnecv70"
12643
 ;;
12644
        tic80) subdirs="$subdirs tic80"
12645
 ;;
12646
        w65) subdirs="$subdirs w65"
12647
 ;;
12648
        z8ksim) subdirs="$subdirs z8ksim"
12649
 ;;
12650
  esac;
12651
fi
12652
 
12653
CRT0=
12654
if test "x${have_crt0}" = "xyes"; then
12655
  CRT0=crt0.o
12656
fi
12657
 
12658
 
12659
 if test x${sys_dir} != x; then
12660
  HAVE_SYS_DIR_TRUE=
12661
  HAVE_SYS_DIR_FALSE='#'
12662
else
12663
  HAVE_SYS_DIR_TRUE='#'
12664
  HAVE_SYS_DIR_FALSE=
12665
fi
12666
 
12667
 
12668
ac_config_files="$ac_config_files Makefile"
12669
 
12670
cat >confcache <<\_ACEOF
12671
# This file is a shell script that caches the results of configure
12672
# tests run on this system so they can be shared between configure
12673
# scripts and configure runs, see configure's option --config-cache.
12674
# It is not useful on other systems.  If it contains results you don't
12675
# want to keep, you may remove or edit it.
12676
#
12677
# config.status only pays attention to the cache file if you give it
12678
# the --recheck option to rerun configure.
12679
#
12680
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12681
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12682
# following values.
12683
 
12684
_ACEOF
12685
 
12686
# The following way of writing the cache mishandles newlines in values,
12687
# but we know of no workaround that is simple, portable, and efficient.
12688
# So, we kill variables containing newlines.
12689
# Ultrix sh set writes to stderr and can't be redirected directly,
12690
# and sets the high bit in the cache file unless we assign to the vars.
12691
(
12692
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12693
    eval ac_val=\$$ac_var
12694
    case $ac_val in #(
12695
    *${as_nl}*)
12696
      case $ac_var in #(
12697
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12698
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12699
      esac
12700
      case $ac_var in #(
12701
      _ | IFS | as_nl) ;; #(
12702
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12703
      *) $as_unset $ac_var ;;
12704
      esac ;;
12705
    esac
12706
  done
12707
 
12708
  (set) 2>&1 |
12709
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12710
    *${as_nl}ac_space=\ *)
12711
      # `set' does not quote correctly, so add quotes (double-quote
12712
      # substitution turns \\\\ into \\, and sed turns \\ into \).
12713
      sed -n \
12714
        "s/'/'\\\\''/g;
12715
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12716
      ;; #(
12717
    *)
12718
      # `set' quotes correctly as required by POSIX, so do not add quotes.
12719
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12720
      ;;
12721
    esac |
12722
    sort
12723
) |
12724
  sed '
12725
     /^ac_cv_env_/b end
12726
     t clear
12727
     :clear
12728
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12729
     t end
12730
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12731
     :end' >>confcache
12732
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12733
  if test -w "$cache_file"; then
12734
    test "x$cache_file" != "x/dev/null" &&
12735
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12736
$as_echo "$as_me: updating cache $cache_file" >&6;}
12737
    cat confcache >$cache_file
12738
  else
12739
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12740
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12741
  fi
12742
fi
12743
rm -f confcache
12744
 
12745
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12746
# Let make expand exec_prefix.
12747
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12748
 
12749
# Transform confdefs.h into DEFS.
12750
# Protect against shell expansion while executing Makefile rules.
12751
# Protect against Makefile macro expansion.
12752
#
12753
# If the first sed substitution is executed (which looks for macros that
12754
# take arguments), then branch to the quote section.  Otherwise,
12755
# look for a macro that doesn't take arguments.
12756
ac_script='
12757
:mline
12758
/\\$/{
12759
 N
12760
 s,\\\n,,
12761
 b mline
12762
}
12763
t clear
12764
:clear
12765
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12766
t quote
12767
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12768
t quote
12769
b any
12770
:quote
12771
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12772
s/\[/\\&/g
12773
s/\]/\\&/g
12774
s/\$/$$/g
12775
H
12776
:any
12777
${
12778
        g
12779
        s/^\n//
12780
        s/\n/ /g
12781
        p
12782
}
12783
'
12784
DEFS=`sed -n "$ac_script" confdefs.h`
12785
 
12786
 
12787
ac_libobjs=
12788
ac_ltlibobjs=
12789
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12790
  # 1. Remove the extension, and $U if already installed.
12791
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12792
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12793
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12794
  #    will be set to the directory where LIBOBJS objects are built.
12795
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12796
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12797
done
12798
LIBOBJS=$ac_libobjs
12799
 
12800
LTLIBOBJS=$ac_ltlibobjs
12801
 
12802
 
12803
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12804
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12805
Usually this means the macro was only invoked conditionally." >&5
12806
$as_echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12807
Usually this means the macro was only invoked conditionally." >&2;}
12808
   { (exit 1); exit 1; }; }
12809
fi
12810
 if test -n "$EXEEXT"; then
12811
  am__EXEEXT_TRUE=
12812
  am__EXEEXT_FALSE='#'
12813
else
12814
  am__EXEEXT_TRUE='#'
12815
  am__EXEEXT_FALSE=
12816
fi
12817
 
12818
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12819
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12820
Usually this means the macro was only invoked conditionally." >&5
12821
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12822
Usually this means the macro was only invoked conditionally." >&2;}
12823
   { (exit 1); exit 1; }; }
12824
fi
12825
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12826
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12827
Usually this means the macro was only invoked conditionally." >&5
12828
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12829
Usually this means the macro was only invoked conditionally." >&2;}
12830
   { (exit 1); exit 1; }; }
12831
fi
12832
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12833
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12834
Usually this means the macro was only invoked conditionally." >&5
12835
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12836
Usually this means the macro was only invoked conditionally." >&2;}
12837
   { (exit 1); exit 1; }; }
12838
fi
12839
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12840
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
12841
Usually this means the macro was only invoked conditionally." >&5
12842
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
12843
Usually this means the macro was only invoked conditionally." >&2;}
12844
   { (exit 1); exit 1; }; }
12845
fi
12846
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12847
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
12848
Usually this means the macro was only invoked conditionally." >&5
12849
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
12850
Usually this means the macro was only invoked conditionally." >&2;}
12851
   { (exit 1); exit 1; }; }
12852
fi
12853
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12854
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
12855
Usually this means the macro was only invoked conditionally." >&5
12856
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
12857
Usually this means the macro was only invoked conditionally." >&2;}
12858
   { (exit 1); exit 1; }; }
12859
fi
12860
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12861
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
12862
Usually this means the macro was only invoked conditionally." >&5
12863
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
12864
Usually this means the macro was only invoked conditionally." >&2;}
12865
   { (exit 1); exit 1; }; }
12866
fi
12867
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12868
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
12869
Usually this means the macro was only invoked conditionally." >&5
12870
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
12871
Usually this means the macro was only invoked conditionally." >&2;}
12872
   { (exit 1); exit 1; }; }
12873
fi
12874
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12875
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
12876
Usually this means the macro was only invoked conditionally." >&5
12877
$as_echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
12878
Usually this means the macro was only invoked conditionally." >&2;}
12879
   { (exit 1); exit 1; }; }
12880
fi
12881
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12882
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12883
Usually this means the macro was only invoked conditionally." >&5
12884
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12885
Usually this means the macro was only invoked conditionally." >&2;}
12886
   { (exit 1); exit 1; }; }
12887
fi
12888
if test -z "${HAVE_SYS_DIR_TRUE}" && test -z "${HAVE_SYS_DIR_FALSE}"; then
12889
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SYS_DIR\" was never defined.
12890
Usually this means the macro was only invoked conditionally." >&5
12891
$as_echo "$as_me: error: conditional \"HAVE_SYS_DIR\" was never defined.
12892
Usually this means the macro was only invoked conditionally." >&2;}
12893
   { (exit 1); exit 1; }; }
12894
fi
12895
 
12896
: ${CONFIG_STATUS=./config.status}
12897
ac_write_fail=0
12898
ac_clean_files_save=$ac_clean_files
12899
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12900
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12901
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12902
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12903
#! $SHELL
12904
# Generated by $as_me.
12905
# Run this file to recreate the current configuration.
12906
# Compiler output produced by configure, useful for debugging
12907
# configure, is in config.log if it exists.
12908
 
12909
debug=false
12910
ac_cs_recheck=false
12911
ac_cs_silent=false
12912
SHELL=\${CONFIG_SHELL-$SHELL}
12913
_ACEOF
12914
 
12915
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12916
## --------------------- ##
12917
## M4sh Initialization.  ##
12918
## --------------------- ##
12919
 
12920
# Be more Bourne compatible
12921
DUALCASE=1; export DUALCASE # for MKS sh
12922
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12923
  emulate sh
12924
  NULLCMD=:
12925
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12926
  # is contrary to our usage.  Disable this feature.
12927
  alias -g '${1+"$@"}'='"$@"'
12928
  setopt NO_GLOB_SUBST
12929
else
12930
  case `(set -o) 2>/dev/null` in
12931
  *posix*) set -o posix ;;
12932
esac
12933
 
12934
fi
12935
 
12936
 
12937
 
12938
 
12939
# PATH needs CR
12940
# Avoid depending upon Character Ranges.
12941
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12942
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12943
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12944
as_cr_digits='0123456789'
12945
as_cr_alnum=$as_cr_Letters$as_cr_digits
12946
 
12947
as_nl='
12948
'
12949
export as_nl
12950
# Printing a long string crashes Solaris 7 /usr/bin/printf.
12951
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12952
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12953
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12954
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12955
  as_echo='printf %s\n'
12956
  as_echo_n='printf %s'
12957
else
12958
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12959
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12960
    as_echo_n='/usr/ucb/echo -n'
12961
  else
12962
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12963
    as_echo_n_body='eval
12964
      arg=$1;
12965
      case $arg in
12966
      *"$as_nl"*)
12967
        expr "X$arg" : "X\\(.*\\)$as_nl";
12968
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12969
      esac;
12970
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12971
    '
12972
    export as_echo_n_body
12973
    as_echo_n='sh -c $as_echo_n_body as_echo'
12974
  fi
12975
  export as_echo_body
12976
  as_echo='sh -c $as_echo_body as_echo'
12977
fi
12978
 
12979
# The user is always right.
12980
if test "${PATH_SEPARATOR+set}" != set; then
12981
  PATH_SEPARATOR=:
12982
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12983
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12984
      PATH_SEPARATOR=';'
12985
  }
12986
fi
12987
 
12988
# Support unset when possible.
12989
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12990
  as_unset=unset
12991
else
12992
  as_unset=false
12993
fi
12994
 
12995
 
12996
# IFS
12997
# We need space, tab and new line, in precisely that order.  Quoting is
12998
# there to prevent editors from complaining about space-tab.
12999
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13000
# splitting by setting IFS to empty value.)
13001
IFS=" ""        $as_nl"
13002
 
13003
# Find who we are.  Look in the path if we contain no directory separator.
13004
case $0 in
13005
  *[\\/]* ) as_myself=$0 ;;
13006
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13007
for as_dir in $PATH
13008
do
13009
  IFS=$as_save_IFS
13010
  test -z "$as_dir" && as_dir=.
13011
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13012
done
13013
IFS=$as_save_IFS
13014
 
13015
     ;;
13016
esac
13017
# We did not find ourselves, most probably we were run as `sh COMMAND'
13018
# in which case we are not to be found in the path.
13019
if test "x$as_myself" = x; then
13020
  as_myself=$0
13021
fi
13022
if test ! -f "$as_myself"; then
13023
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13024
  { (exit 1); exit 1; }
13025
fi
13026
 
13027
# Work around bugs in pre-3.0 UWIN ksh.
13028
for as_var in ENV MAIL MAILPATH
13029
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13030
done
13031
PS1='$ '
13032
PS2='> '
13033
PS4='+ '
13034
 
13035
# NLS nuisances.
13036
LC_ALL=C
13037
export LC_ALL
13038
LANGUAGE=C
13039
export LANGUAGE
13040
 
13041
# Required to use basename.
13042
if expr a : '\(a\)' >/dev/null 2>&1 &&
13043
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13044
  as_expr=expr
13045
else
13046
  as_expr=false
13047
fi
13048
 
13049
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13050
  as_basename=basename
13051
else
13052
  as_basename=false
13053
fi
13054
 
13055
 
13056
# Name of the executable.
13057
as_me=`$as_basename -- "$0" ||
13058
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13059
         X"$0" : 'X\(//\)$' \| \
13060
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13061
$as_echo X/"$0" |
13062
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13063
            s//\1/
13064
            q
13065
          }
13066
          /^X\/\(\/\/\)$/{
13067
            s//\1/
13068
            q
13069
          }
13070
          /^X\/\(\/\).*/{
13071
            s//\1/
13072
            q
13073
          }
13074
          s/.*/./; q'`
13075
 
13076
# CDPATH.
13077
$as_unset CDPATH
13078
 
13079
 
13080
 
13081
  as_lineno_1=$LINENO
13082
  as_lineno_2=$LINENO
13083
  test "x$as_lineno_1" != "x$as_lineno_2" &&
13084
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13085
 
13086
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13087
  # uniformly replaced by the line number.  The first 'sed' inserts a
13088
  # line-number line after each line using $LINENO; the second 'sed'
13089
  # does the real work.  The second script uses 'N' to pair each
13090
  # line-number line with the line containing $LINENO, and appends
13091
  # trailing '-' during substitution so that $LINENO is not a special
13092
  # case at line end.
13093
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13094
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13095
  # E. McMahon (1931-1989) for sed's syntax.  :-)
13096
  sed -n '
13097
    p
13098
    /[$]LINENO/=
13099
  ' <$as_myself |
13100
    sed '
13101
      s/[$]LINENO.*/&-/
13102
      t lineno
13103
      b
13104
      :lineno
13105
      N
13106
      :loop
13107
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13108
      t loop
13109
      s/-\n.*//
13110
    ' >$as_me.lineno &&
13111
  chmod +x "$as_me.lineno" ||
13112
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13113
   { (exit 1); exit 1; }; }
13114
 
13115
  # Don't try to exec as it changes $[0], causing all sort of problems
13116
  # (the dirname of $[0] is not the place where we might find the
13117
  # original and so on.  Autoconf is especially sensitive to this).
13118
  . "./$as_me.lineno"
13119
  # Exit status is that of the last command.
13120
  exit
13121
}
13122
 
13123
 
13124
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13125
  as_dirname=dirname
13126
else
13127
  as_dirname=false
13128
fi
13129
 
13130
ECHO_C= ECHO_N= ECHO_T=
13131
case `echo -n x` in
13132
-n*)
13133
  case `echo 'x\c'` in
13134
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13135
  *)   ECHO_C='\c';;
13136
  esac;;
13137
*)
13138
  ECHO_N='-n';;
13139
esac
13140
if expr a : '\(a\)' >/dev/null 2>&1 &&
13141
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13142
  as_expr=expr
13143
else
13144
  as_expr=false
13145
fi
13146
 
13147
rm -f conf$$ conf$$.exe conf$$.file
13148
if test -d conf$$.dir; then
13149
  rm -f conf$$.dir/conf$$.file
13150
else
13151
  rm -f conf$$.dir
13152
  mkdir conf$$.dir 2>/dev/null
13153
fi
13154
if (echo >conf$$.file) 2>/dev/null; then
13155
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13156
    as_ln_s='ln -s'
13157
    # ... but there are two gotchas:
13158
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13159
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13160
    # In both cases, we have to default to `cp -p'.
13161
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13162
      as_ln_s='cp -p'
13163
  elif ln conf$$.file conf$$ 2>/dev/null; then
13164
    as_ln_s=ln
13165
  else
13166
    as_ln_s='cp -p'
13167
  fi
13168
else
13169
  as_ln_s='cp -p'
13170
fi
13171
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13172
rmdir conf$$.dir 2>/dev/null
13173
 
13174
if mkdir -p . 2>/dev/null; then
13175
  as_mkdir_p=:
13176
else
13177
  test -d ./-p && rmdir ./-p
13178
  as_mkdir_p=false
13179
fi
13180
 
13181
if test -x / >/dev/null 2>&1; then
13182
  as_test_x='test -x'
13183
else
13184
  if ls -dL / >/dev/null 2>&1; then
13185
    as_ls_L_option=L
13186
  else
13187
    as_ls_L_option=
13188
  fi
13189
  as_test_x='
13190
    eval sh -c '\''
13191
      if test -d "$1"; then
13192
        test -d "$1/.";
13193
      else
13194
        case $1 in
13195
        -*)set "./$1";;
13196
        esac;
13197
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13198
        ???[sx]*):;;*)false;;esac;fi
13199
    '\'' sh
13200
  '
13201
fi
13202
as_executable_p=$as_test_x
13203
 
13204
# Sed expression to map a string onto a valid CPP name.
13205
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13206
 
13207
# Sed expression to map a string onto a valid variable name.
13208
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13209
 
13210
 
13211
exec 6>&1
13212
 
13213
# Save the log message, to keep $[0] and so on meaningful, and to
13214
# report actual input values of CONFIG_FILES etc. instead of their
13215
# values after options handling.
13216
ac_log="
13217
This file was extended by newlib $as_me 1.18.0, which was
13218
generated by GNU Autoconf 2.63.  Invocation command line was
13219
 
13220
  CONFIG_FILES    = $CONFIG_FILES
13221
  CONFIG_HEADERS  = $CONFIG_HEADERS
13222
  CONFIG_LINKS    = $CONFIG_LINKS
13223
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13224
  $ $0 $@
13225
 
13226
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13227
"
13228
 
13229
_ACEOF
13230
 
13231
case $ac_config_files in *"
13232
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13233
esac
13234
 
13235
 
13236
 
13237
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13238
# Files that config.status was made for.
13239
config_files="$ac_config_files"
13240
config_commands="$ac_config_commands"
13241
 
13242
_ACEOF
13243
 
13244
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13245
ac_cs_usage="\
13246
\`$as_me' instantiates files from templates according to the
13247
current configuration.
13248
 
13249
Usage: $0 [OPTION]... [FILE]...
13250
 
13251
  -h, --help       print this help, then exit
13252
  -V, --version    print version number and configuration settings, then exit
13253
  -q, --quiet, --silent
13254
                   do not print progress messages
13255
  -d, --debug      don't remove temporary files
13256
      --recheck    update $as_me by reconfiguring in the same conditions
13257
      --file=FILE[:TEMPLATE]
13258
                   instantiate the configuration file FILE
13259
 
13260
Configuration files:
13261
$config_files
13262
 
13263
Configuration commands:
13264
$config_commands
13265
 
13266
Report bugs to ."
13267
 
13268
_ACEOF
13269
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13270
ac_cs_version="\\
13271
newlib config.status 1.18.0
13272
configured by $0, generated by GNU Autoconf 2.63,
13273
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13274
 
13275
Copyright (C) 2008 Free Software Foundation, Inc.
13276
This config.status script is free software; the Free Software Foundation
13277
gives unlimited permission to copy, distribute and modify it."
13278
 
13279
ac_pwd='$ac_pwd'
13280
srcdir='$srcdir'
13281
INSTALL='$INSTALL'
13282
MKDIR_P='$MKDIR_P'
13283
AWK='$AWK'
13284
test -n "\$AWK" || AWK=awk
13285
_ACEOF
13286
 
13287
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13288
# The default lists apply if the user does not specify any file.
13289
ac_need_defaults=:
13290
while test $# != 0
13291
do
13292
  case $1 in
13293
  --*=*)
13294
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13295
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13296
    ac_shift=:
13297
    ;;
13298
  *)
13299
    ac_option=$1
13300
    ac_optarg=$2
13301
    ac_shift=shift
13302
    ;;
13303
  esac
13304
 
13305
  case $ac_option in
13306
  # Handling of the options.
13307
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13308
    ac_cs_recheck=: ;;
13309
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13310
    $as_echo "$ac_cs_version"; exit ;;
13311
  --debug | --debu | --deb | --de | --d | -d )
13312
    debug=: ;;
13313
  --file | --fil | --fi | --f )
13314
    $ac_shift
13315
    case $ac_optarg in
13316
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13317
    esac
13318
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13319
    ac_need_defaults=false;;
13320
  --he | --h |  --help | --hel | -h )
13321
    $as_echo "$ac_cs_usage"; exit ;;
13322
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13323
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13324
    ac_cs_silent=: ;;
13325
 
13326
  # This is an error.
13327
  -*) { $as_echo "$as_me: error: unrecognized option: $1
13328
Try \`$0 --help' for more information." >&2
13329
   { (exit 1); exit 1; }; } ;;
13330
 
13331
  *) ac_config_targets="$ac_config_targets $1"
13332
     ac_need_defaults=false ;;
13333
 
13334
  esac
13335
  shift
13336
done
13337
 
13338
ac_configure_extra_args=
13339
 
13340
if $ac_cs_silent; then
13341
  exec 6>/dev/null
13342
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13343
fi
13344
 
13345
_ACEOF
13346
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13347
if \$ac_cs_recheck; then
13348
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13349
  shift
13350
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13351
  CONFIG_SHELL='$SHELL'
13352
  export CONFIG_SHELL
13353
  exec "\$@"
13354
fi
13355
 
13356
_ACEOF
13357
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13358
exec 5>>config.log
13359
{
13360
  echo
13361
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13362
## Running $as_me. ##
13363
_ASBOX
13364
  $as_echo "$ac_log"
13365
} >&5
13366
 
13367
_ACEOF
13368
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13369
#
13370
# INIT-COMMANDS
13371
#
13372
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13373
 
13374
 
13375
# The HP-UX ksh and POSIX shell print the target directory to stdout
13376
# if CDPATH is set.
13377
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13378
 
13379
sed_quote_subst='$sed_quote_subst'
13380
double_quote_subst='$double_quote_subst'
13381
delay_variable_subst='$delay_variable_subst'
13382
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13383
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13384
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13385
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13386
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13387
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13388
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13389
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13390
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13391
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13392
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13393
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13394
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13395
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13396
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13397
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13398
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13399
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13400
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13401
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13402
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13403
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13404
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13405
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13406
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13407
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13408
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13409
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13410
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13411
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13412
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13413
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13414
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13415
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13416
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13417
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13418
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13419
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13420
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13421
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13422
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13423
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13424
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13425
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13426
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13427
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13428
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"`'
13429
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"`'
13430
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13431
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13432
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13433
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13434
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13435
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13436
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13437
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13438
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13439
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13440
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13441
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13442
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13443
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13444
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13445
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13446
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13447
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13448
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13449
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13450
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13451
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13452
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13453
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13454
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13455
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13456
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13457
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13458
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13459
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13460
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13461
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13462
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13463
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13464
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13465
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13466
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13467
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13468
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13469
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13470
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13471
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13472
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13473
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13474
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13475
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13476
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13477
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13478
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13479
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13480
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13481
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13482
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13483
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13484
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13485
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13486
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13487
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13488
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13489
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13490
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13491
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13492
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13493
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13494
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13495
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13496
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13497
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13498
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13499
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13500
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13501
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13502
 
13503
LTCC='$LTCC'
13504
LTCFLAGS='$LTCFLAGS'
13505
compiler='$compiler_DEFAULT'
13506
 
13507
# Quote evaled strings.
13508
for var in SED \
13509
GREP \
13510
EGREP \
13511
FGREP \
13512
LD \
13513
NM \
13514
LN_S \
13515
lt_SP2NL \
13516
lt_NL2SP \
13517
reload_flag \
13518
deplibs_check_method \
13519
file_magic_cmd \
13520
AR \
13521
AR_FLAGS \
13522
STRIP \
13523
RANLIB \
13524
CC \
13525
CFLAGS \
13526
compiler \
13527
lt_cv_sys_global_symbol_pipe \
13528
lt_cv_sys_global_symbol_to_cdecl \
13529
lt_cv_sys_global_symbol_to_c_name_address \
13530
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13531
SHELL \
13532
ECHO \
13533
lt_prog_compiler_no_builtin_flag \
13534
lt_prog_compiler_wl \
13535
lt_prog_compiler_pic \
13536
lt_prog_compiler_static \
13537
lt_cv_prog_compiler_c_o \
13538
need_locks \
13539
DSYMUTIL \
13540
NMEDIT \
13541
LIPO \
13542
OTOOL \
13543
OTOOL64 \
13544
shrext_cmds \
13545
export_dynamic_flag_spec \
13546
whole_archive_flag_spec \
13547
compiler_needs_object \
13548
with_gnu_ld \
13549
allow_undefined_flag \
13550
no_undefined_flag \
13551
hardcode_libdir_flag_spec \
13552
hardcode_libdir_flag_spec_ld \
13553
hardcode_libdir_separator \
13554
fix_srcfile_path \
13555
exclude_expsyms \
13556
include_expsyms \
13557
file_list_spec \
13558
variables_saved_for_relink \
13559
libname_spec \
13560
library_names_spec \
13561
soname_spec \
13562
finish_eval \
13563
old_striplib \
13564
striplib; do
13565
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13566
    *[\\\\\\\`\\"\\\$]*)
13567
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13568
      ;;
13569
    *)
13570
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13571
      ;;
13572
    esac
13573
done
13574
 
13575
# Double-quote double-evaled strings.
13576
for var in reload_cmds \
13577
old_postinstall_cmds \
13578
old_postuninstall_cmds \
13579
old_archive_cmds \
13580
extract_expsyms_cmds \
13581
old_archive_from_new_cmds \
13582
old_archive_from_expsyms_cmds \
13583
archive_cmds \
13584
archive_expsym_cmds \
13585
module_cmds \
13586
module_expsym_cmds \
13587
export_symbols_cmds \
13588
prelink_cmds \
13589
postinstall_cmds \
13590
postuninstall_cmds \
13591
finish_cmds \
13592
sys_lib_search_path_spec \
13593
sys_lib_dlsearch_path_spec; do
13594
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13595
    *[\\\\\\\`\\"\\\$]*)
13596
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13597
      ;;
13598
    *)
13599
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13600
      ;;
13601
    esac
13602
done
13603
 
13604
# Fix-up fallback echo if it was mangled by the above quoting rules.
13605
case \$lt_ECHO in
13606
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13607
  ;;
13608
esac
13609
 
13610
ac_aux_dir='$ac_aux_dir'
13611
xsi_shell='$xsi_shell'
13612
lt_shell_append='$lt_shell_append'
13613
 
13614
# See if we are running on zsh, and set the options which allow our
13615
# commands through without removal of \ escapes INIT.
13616
if test -n "\${ZSH_VERSION+set}" ; then
13617
   setopt NO_GLOB_SUBST
13618
fi
13619
 
13620
 
13621
    PACKAGE='$PACKAGE'
13622
    VERSION='$VERSION'
13623
    TIMESTAMP='$TIMESTAMP'
13624
    RM='$RM'
13625
    ofile='$ofile'
13626
 
13627
 
13628
 
13629
 
13630
_ACEOF
13631
 
13632
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13633
 
13634
# Handling of arguments.
13635
for ac_config_target in $ac_config_targets
13636
do
13637
  case $ac_config_target in
13638
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13639
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13640
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13641
 
13642
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13643
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13644
   { (exit 1); exit 1; }; };;
13645
  esac
13646
done
13647
 
13648
 
13649
# If the user did not use the arguments to specify the items to instantiate,
13650
# then the envvar interface is used.  Set only those that are not.
13651
# We use the long form for the default assignment because of an extremely
13652
# bizarre bug on SunOS 4.1.3.
13653
if $ac_need_defaults; then
13654
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13655
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13656
fi
13657
 
13658
# Have a temporary directory for convenience.  Make it in the build tree
13659
# simply because there is no reason against having it here, and in addition,
13660
# creating and moving files from /tmp can sometimes cause problems.
13661
# Hook for its removal unless debugging.
13662
# Note that there is a small window in which the directory will not be cleaned:
13663
# after its creation but before its name has been assigned to `$tmp'.
13664
$debug ||
13665
{
13666
  tmp=
13667
  trap 'exit_status=$?
13668
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13669
' 0
13670
  trap '{ (exit 1); exit 1; }' 1 2 13 15
13671
}
13672
# Create a (secure) tmp directory for tmp files.
13673
 
13674
{
13675
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13676
  test -n "$tmp" && test -d "$tmp"
13677
}  ||
13678
{
13679
  tmp=./conf$$-$RANDOM
13680
  (umask 077 && mkdir "$tmp")
13681
} ||
13682
{
13683
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
13684
   { (exit 1); exit 1; }
13685
}
13686
 
13687
# Set up the scripts for CONFIG_FILES section.
13688
# No need to generate them if there are no CONFIG_FILES.
13689
# This happens for instance with `./config.status config.h'.
13690
if test -n "$CONFIG_FILES"; then
13691
 
13692
 
13693
ac_cr='
'
13694
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
13695
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13696
  ac_cs_awk_cr='\\r'
13697
else
13698
  ac_cs_awk_cr=$ac_cr
13699
fi
13700
13701
 
13702
_ACEOF
13703
13704
 
13705
 
13706
  echo "cat >conf$$subs.awk <<_ACEOF" &&
13707
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13708
  echo "_ACEOF"
13709
} >conf$$subs.sh ||
13710
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13711
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13712
   { (exit 1); exit 1; }; }
13713
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13714
ac_delim='%!_!# '
13715
for ac_last_try in false false false false false :; do
13716
  . ./conf$$subs.sh ||
13717
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13718
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13719
   { (exit 1); exit 1; }; }
13720
13721
 
13722
  if test $ac_delim_n = $ac_delim_num; then
13723
    break
13724
  elif $ac_last_try; then
13725
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13726
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13727
   { (exit 1); exit 1; }; }
13728
  else
13729
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13730
  fi
13731
done
13732
rm -f conf$$subs.sh
13733
13734
 
13735
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13736
_ACEOF
13737
sed -n '
13738
h
13739
s/^/S["/; s/!.*/"]=/
13740
p
13741
g
13742
s/^[^!]*!//
13743
:repl
13744
t repl
13745
s/'"$ac_delim"'$//
13746
t delim
13747
:nl
13748
h
13749
s/\(.\{148\}\).*/\1/
13750
t more1
13751
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13752
p
13753
n
13754
b repl
13755
:more1
13756
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13757
p
13758
g
13759
s/.\{148\}//
13760
t nl
13761
:delim
13762
h
13763
s/\(.\{148\}\).*/\1/
13764
t more2
13765
s/["\\]/\\&/g; s/^/"/; s/$/"/
13766
p
13767
b
13768
:more2
13769
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13770
p
13771
g
13772
s/.\{148\}//
13773
t delim
13774
' 
13775
/^[^""]/{
13776
  N
13777
  s/\n//
13778
}
13779
' >>$CONFIG_STATUS || ac_write_fail=1
13780
rm -f conf$$subs.awk
13781
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13782
_ACAWK
13783
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13784
  for (key in S) S_is_set[key] = 1
13785
  FS = ""
13786
13787
 
13788
{
13789
  line = $ 0
13790
  nfields = split(line, field, "@")
13791
  substed = 0
13792
  len = length(field[1])
13793
  for (i = 2; i < nfields; i++) {
13794
    key = field[i]
13795
    keylen = length(key)
13796
    if (S_is_set[key]) {
13797
      value = S[key]
13798
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13799
      len += length(value) + length(field[++i])
13800
      substed = 1
13801
    } else
13802
      len += 1 + keylen
13803
  }
13804
13805
 
13806
}
13807
13808
 
13809
_ACEOF
13810
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13811
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13812
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13813
else
13814
  cat
13815
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13816
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13817
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13818
   { (exit 1); exit 1; }; }
13819
_ACEOF
13820
13821
 
13822
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13823
# trailing colons and then remove the whole line if VPATH becomes empty
13824
# (actually we leave an empty line to preserve line numbers).
13825
if test "x$srcdir" = x.; then
13826
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
13827
s/:*\$(srcdir):*/:/
13828
s/:*\${srcdir}:*/:/
13829
s/:*@srcdir@:*/:/
13830
s/^\([^=]*=[     ]*\):*/\1/
13831
s/:*$//
13832
s/^[^=]*=[       ]*$//
13833
}'
13834
fi
13835
13836
 
13837
fi # test -n "$CONFIG_FILES"
13838
13839
 
13840
 
13841
shift
13842
for ac_tag
13843
do
13844
  case $ac_tag in
13845
  :[FHLC]) ac_mode=$ac_tag; continue;;
13846
  esac
13847
  case $ac_mode$ac_tag in
13848
  :[FHL]*:*);;
13849
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13850
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13851
   { (exit 1); exit 1; }; };;
13852
  :[FH]-) ac_tag=-:-;;
13853
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13854
  esac
13855
  ac_save_IFS=$IFS
13856
  IFS=:
13857
  set x $ac_tag
13858
  IFS=$ac_save_IFS
13859
  shift
13860
  ac_file=$1
13861
  shift
13862
13863
 
13864
  :L) ac_source=$1;;
13865
  :[FH])
13866
    ac_file_inputs=
13867
    for ac_f
13868
    do
13869
      case $ac_f in
13870
      -) ac_f="$tmp/stdin";;
13871
      *) # Look for the file first in the build tree, then in the source tree
13872
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
13873
         # because $ac_f cannot contain `:'.
13874
         test -f "$ac_f" ||
13875
           case $ac_f in
13876
           [\\/$]*) false;;
13877
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13878
           esac ||
13879
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13880
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13881
   { (exit 1); exit 1; }; };;
13882
      esac
13883
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13884
      ac_file_inputs="$ac_file_inputs '$ac_f'"
13885
    done
13886
13887
 
13888
    # use $as_me), people would be surprised to read:
13889
    #    /* config.h.  Generated by config.status.  */
13890
    configure_input='Generated from '`
13891
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13892
        `' by configure.'
13893
    if test x"$ac_file" != x-; then
13894
      configure_input="$ac_file.  $configure_input"
13895
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13896
$as_echo "$as_me: creating $ac_file" >&6;}
13897
    fi
13898
    # Neutralize special characters interpreted by sed in replacement strings.
13899
    case $configure_input in #(
13900
    *\&* | *\|* | *\\* )
13901
       ac_sed_conf_input=`$as_echo "$configure_input" |
13902
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13903
    *) ac_sed_conf_input=$configure_input;;
13904
    esac
13905
13906
 
13907
    *:-:* | *:-) cat >"$tmp/stdin" \
13908
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13909
$as_echo "$as_me: error: could not create $ac_file" >&2;}
13910
   { (exit 1); exit 1; }; } ;;
13911
    esac
13912
    ;;
13913
  esac
13914
13915
 
13916
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13917
         X"$ac_file" : 'X\(//\)[^/]' \| \
13918
         X"$ac_file" : 'X\(//\)$' \| \
13919
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13920
$as_echo X"$ac_file" |
13921
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13922
            s//\1/
13923
            q
13924
          }
13925
          /^X\(\/\/\)[^/].*/{
13926
            s//\1/
13927
            q
13928
          }
13929
          /^X\(\/\/\)$/{
13930
            s//\1/
13931
            q
13932
          }
13933
          /^X\(\/\).*/{
13934
            s//\1/
13935
            q
13936
          }
13937
          s/.*/./; q'`
13938
  { as_dir="$ac_dir"
13939
  case $as_dir in #(
13940
  -*) as_dir=./$as_dir;;
13941
  esac
13942
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13943
    as_dirs=
13944
    while :; do
13945
      case $as_dir in #(
13946
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13947
      *) as_qdir=$as_dir;;
13948
      esac
13949
      as_dirs="'$as_qdir' $as_dirs"
13950
      as_dir=`$as_dirname -- "$as_dir" ||
13951
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13952
         X"$as_dir" : 'X\(//\)[^/]' \| \
13953
         X"$as_dir" : 'X\(//\)$' \| \
13954
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13955
$as_echo X"$as_dir" |
13956
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13957
            s//\1/
13958
            q
13959
          }
13960
          /^X\(\/\/\)[^/].*/{
13961
            s//\1/
13962
            q
13963
          }
13964
          /^X\(\/\/\)$/{
13965
            s//\1/
13966
            q
13967
          }
13968
          /^X\(\/\).*/{
13969
            s//\1/
13970
            q
13971
          }
13972
          s/.*/./; q'`
13973
      test -d "$as_dir" && break
13974
    done
13975
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13976
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13977
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13978
   { (exit 1); exit 1; }; }; }
13979
  ac_builddir=.
13980
13981
 
13982
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13983
*)
13984
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13985
  # A ".." for each directory in $ac_dir_suffix.
13986
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13987
  case $ac_top_builddir_sub in
13988
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13989
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13990
  esac ;;
13991
esac
13992
ac_abs_top_builddir=$ac_pwd
13993
ac_abs_builddir=$ac_pwd$ac_dir_suffix
13994
# for backward compatibility:
13995
ac_top_builddir=$ac_top_build_prefix
13996
13997
 
13998
  .)  # We are building in place.
13999
    ac_srcdir=.
14000
    ac_top_srcdir=$ac_top_builddir_sub
14001
    ac_abs_top_srcdir=$ac_pwd ;;
14002
  [\\/]* | ?:[\\/]* )  # Absolute name.
14003
    ac_srcdir=$srcdir$ac_dir_suffix;
14004
    ac_top_srcdir=$srcdir
14005
    ac_abs_top_srcdir=$srcdir ;;
14006
  *) # Relative name.
14007
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14008
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14009
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14010
esac
14011
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14012
14013
 
14014
 
14015
  :F)
14016
  #
14017
  # CONFIG_FILE
14018
  #
14019
14020
 
14021
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14022
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14023
  esac
14024
  ac_MKDIR_P=$MKDIR_P
14025
  case $MKDIR_P in
14026
  [\\/$]* | ?:[\\/]* ) ;;
14027
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14028
  esac
14029
_ACEOF
14030
14031
 
14032
# If the template does not know about datarootdir, expand it.
14033
# FIXME: This hack should be removed a few years after 2.60.
14034
ac_datarootdir_hack=; ac_datarootdir_seen=
14035
14036
 
14037
/datarootdir/ {
14038
  p
14039
  q
14040
}
14041
/@datadir@/p
14042
/@docdir@/p
14043
/@infodir@/p
14044
/@localedir@/p
14045
/@mandir@/p
14046
'
14047
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14048
*datarootdir*) ac_datarootdir_seen=yes;;
14049
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14050
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14051
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14052
_ACEOF
14053
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14054
  ac_datarootdir_hack='
14055
  s&@datadir@&$datadir&g
14056
  s&@docdir@&$docdir&g
14057
  s&@infodir@&$infodir&g
14058
  s&@localedir@&$localedir&g
14059
  s&@mandir@&$mandir&g
14060
    s&\\\${datarootdir}&$datarootdir&g' ;;
14061
esac
14062
_ACEOF
14063
14064
 
14065
# Shell code in configure.ac might set extrasub.
14066
# FIXME: do we really want to maintain this feature?
14067
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14068
ac_sed_extra="$ac_vpsub
14069
$extrasub
14070
_ACEOF
14071
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14072
:t
14073
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14074
s|@configure_input@|$ac_sed_conf_input|;t t
14075
s&@top_builddir@&$ac_top_builddir_sub&;t t
14076
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14077
s&@srcdir@&$ac_srcdir&;t t
14078
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14079
s&@top_srcdir@&$ac_top_srcdir&;t t
14080
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14081
s&@builddir@&$ac_builddir&;t t
14082
s&@abs_builddir@&$ac_abs_builddir&;t t
14083
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14084
s&@INSTALL@&$ac_INSTALL&;t t
14085
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14086
$ac_datarootdir_hack
14087
"
14088
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14089
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14090
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14091
   { (exit 1); exit 1; }; }
14092
14093
 
14094
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14095
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14096
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14097
which seems to be undefined.  Please make sure it is defined." >&5
14098
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14099
which seems to be undefined.  Please make sure it is defined." >&2;}
14100
14101
 
14102
  case $ac_file in
14103
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14104
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14105
  esac \
14106
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14107
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14108
   { (exit 1); exit 1; }; }
14109
 ;;
14110
14111
 
14112
 
14113
$as_echo "$as_me: executing $ac_file commands" >&6;}
14114
 ;;
14115
  esac
14116
14117
 
14118
 
14119
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14120
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14121
  # are listed without --file.  Let's play safe and only enable the eval
14122
  # if we detect the quoting.
14123
  case $CONFIG_FILES in
14124
  *\'*) eval set x "$CONFIG_FILES" ;;
14125
  *)   set x $CONFIG_FILES ;;
14126
  esac
14127
  shift
14128
  for mf
14129
  do
14130
    # Strip MF so we end up with the name of the file.
14131
    mf=`echo "$mf" | sed -e 's/:.*$//'`
14132
    # Check whether this is an Automake generated Makefile or not.
14133
    # We used to match only the files named `Makefile.in', but
14134
    # some people rename them; so instead we look at the file content.
14135
    # Grep'ing the first line is not enough: some people post-process
14136
    # each Makefile.in and add a new line on top of each file to say so.
14137
    # Grep'ing the whole file is not good either: AIX grep has a line
14138
    # limit of 2048, but all sed's we know have understand at least 4000.
14139
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14140
      dirpart=`$as_dirname -- "$mf" ||
14141
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14142
         X"$mf" : 'X\(//\)[^/]' \| \
14143
         X"$mf" : 'X\(//\)$' \| \
14144
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14145
$as_echo X"$mf" |
14146
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14147
            s//\1/
14148
            q
14149
          }
14150
          /^X\(\/\/\)[^/].*/{
14151
            s//\1/
14152
            q
14153
          }
14154
          /^X\(\/\/\)$/{
14155
            s//\1/
14156
            q
14157
          }
14158
          /^X\(\/\).*/{
14159
            s//\1/
14160
            q
14161
          }
14162
          s/.*/./; q'`
14163
    else
14164
      continue
14165
    fi
14166
    # Extract the definition of DEPDIR, am__include, and am__quote
14167
    # from the Makefile without running `make'.
14168
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14169
    test -z "$DEPDIR" && continue
14170
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14171
    test -z "am__include" && continue
14172
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14173
    # When using ansi2knr, U may be empty or an underscore; expand it
14174
    U=`sed -n 's/^U = //p' < "$mf"`
14175
    # Find all dependency output files, they are included files with
14176
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14177
    # simplest approach to changing $(DEPDIR) to its actual value in the
14178
    # expansion.
14179
    for file in `sed -n "
14180
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14181
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14182
      # Make sure the directory exists.
14183
      test -f "$dirpart/$file" && continue
14184
      fdir=`$as_dirname -- "$file" ||
14185
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14186
         X"$file" : 'X\(//\)[^/]' \| \
14187
         X"$file" : 'X\(//\)$' \| \
14188
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14189
$as_echo X"$file" |
14190
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14191
            s//\1/
14192
            q
14193
          }
14194
          /^X\(\/\/\)[^/].*/{
14195
            s//\1/
14196
            q
14197
          }
14198
          /^X\(\/\/\)$/{
14199
            s//\1/
14200
            q
14201
          }
14202
          /^X\(\/\).*/{
14203
            s//\1/
14204
            q
14205
          }
14206
          s/.*/./; q'`
14207
      { as_dir=$dirpart/$fdir
14208
  case $as_dir in #(
14209
  -*) as_dir=./$as_dir;;
14210
  esac
14211
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14212
    as_dirs=
14213
    while :; do
14214
      case $as_dir in #(
14215
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14216
      *) as_qdir=$as_dir;;
14217
      esac
14218
      as_dirs="'$as_qdir' $as_dirs"
14219
      as_dir=`$as_dirname -- "$as_dir" ||
14220
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14221
         X"$as_dir" : 'X\(//\)[^/]' \| \
14222
         X"$as_dir" : 'X\(//\)$' \| \
14223
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14224
$as_echo X"$as_dir" |
14225
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14226
            s//\1/
14227
            q
14228
          }
14229
          /^X\(\/\/\)[^/].*/{
14230
            s//\1/
14231
            q
14232
          }
14233
          /^X\(\/\/\)$/{
14234
            s//\1/
14235
            q
14236
          }
14237
          /^X\(\/\).*/{
14238
            s//\1/
14239
            q
14240
          }
14241
          s/.*/./; q'`
14242
      test -d "$as_dir" && break
14243
    done
14244
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14245
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14246
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14247
   { (exit 1); exit 1; }; }; }
14248
      # echo "creating $dirpart/$file"
14249
      echo '# dummy' > "$dirpart/$file"
14250
    done
14251
  done
14252
}
14253
 ;;
14254
    "libtool":C)
14255
14256
 
14257
    # commands through without removal of \ escapes.
14258
    if test -n "${ZSH_VERSION+set}" ; then
14259
      setopt NO_GLOB_SUBST
14260
    fi
14261
14262
 
14263
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14264
    $RM "$cfgfile"
14265
14266
 
14267
#! $SHELL
14268
14269
 
14270
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14271
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14272
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14273
#
14274
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14275
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14276
#   Written by Gordon Matzigkeit, 1996
14277
#
14278
#   This file is part of GNU Libtool.
14279
#
14280
# GNU Libtool is free software; you can redistribute it and/or
14281
# modify it under the terms of the GNU General Public License as
14282
# published by the Free Software Foundation; either version 2 of
14283
# the License, or (at your option) any later version.
14284
#
14285
# As a special exception to the GNU General Public License,
14286
# if you distribute this file as part of a program or library that
14287
# is built using GNU Libtool, you may include this file under the
14288
# same distribution terms that you use for the rest of that program.
14289
#
14290
# GNU Libtool is distributed in the hope that it will be useful,
14291
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14292
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14293
# GNU General Public License for more details.
14294
#
14295
# You should have received a copy of the GNU General Public License
14296
# along with GNU Libtool; see the file COPYING.  If not, a copy
14297
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14298
# obtained by writing to the Free Software Foundation, Inc.,
14299
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14300
14301
 
14302
 
14303
available_tags=""
14304
14305
 
14306
14307
 
14308
SED=$lt_SED
14309
14310
 
14311
Xsed="\$SED -e 1s/^X//"
14312
14313
 
14314
AS=$AS
14315
14316
 
14317
DLLTOOL=$DLLTOOL
14318
14319
 
14320
OBJDUMP=$OBJDUMP
14321
14322
 
14323
macro_version=$macro_version
14324
macro_revision=$macro_revision
14325
14326
 
14327
build_libtool_libs=$enable_shared
14328
14329
 
14330
build_old_libs=$enable_static
14331
14332
 
14333
pic_mode=$pic_mode
14334
14335
 
14336
fast_install=$enable_fast_install
14337
14338
 
14339
host_alias=$host_alias
14340
host=$host
14341
host_os=$host_os
14342
14343
 
14344
build_alias=$build_alias
14345
build=$build
14346
build_os=$build_os
14347
14348
 
14349
GREP=$lt_GREP
14350
14351
 
14352
EGREP=$lt_EGREP
14353
14354
 
14355
FGREP=$lt_FGREP
14356
14357
 
14358
NM=$lt_NM
14359
14360
 
14361
LN_S=$lt_LN_S
14362
14363
 
14364
max_cmd_len=$max_cmd_len
14365
14366
 
14367
objext=$ac_objext
14368
14369
 
14370
exeext=$exeext
14371
14372
 
14373
lt_unset=$lt_unset
14374
14375
 
14376
SP2NL=$lt_lt_SP2NL
14377
14378
 
14379
NL2SP=$lt_lt_NL2SP
14380
14381
 
14382
reload_flag=$lt_reload_flag
14383
reload_cmds=$lt_reload_cmds
14384
14385
 
14386
deplibs_check_method=$lt_deplibs_check_method
14387
14388
 
14389
file_magic_cmd=$lt_file_magic_cmd
14390
14391
 
14392
AR=$lt_AR
14393
AR_FLAGS=$lt_AR_FLAGS
14394
14395
 
14396
STRIP=$lt_STRIP
14397
14398
 
14399
RANLIB=$lt_RANLIB
14400
old_postinstall_cmds=$lt_old_postinstall_cmds
14401
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14402
14403
 
14404
LTCC=$lt_CC
14405
14406
 
14407
LTCFLAGS=$lt_CFLAGS
14408
14409
 
14410
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14411
14412
 
14413
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14414
14415
 
14416
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14417
14418
 
14419
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14420
14421
 
14422
objdir=$objdir
14423
14424
 
14425
SHELL=$lt_SHELL
14426
14427
 
14428
ECHO=$lt_ECHO
14429
14430
 
14431
MAGIC_CMD=$MAGIC_CMD
14432
14433
 
14434
need_locks=$lt_need_locks
14435
14436
 
14437
DSYMUTIL=$lt_DSYMUTIL
14438
14439
 
14440
NMEDIT=$lt_NMEDIT
14441
14442
 
14443
LIPO=$lt_LIPO
14444
14445
 
14446
OTOOL=$lt_OTOOL
14447
14448
 
14449
OTOOL64=$lt_OTOOL64
14450
14451
 
14452
libext=$libext
14453
14454
 
14455
shrext_cmds=$lt_shrext_cmds
14456
14457
 
14458
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14459
14460
 
14461
# restored at link time.
14462
variables_saved_for_relink=$lt_variables_saved_for_relink
14463
14464
 
14465
need_lib_prefix=$need_lib_prefix
14466
14467
 
14468
need_version=$need_version
14469
14470
 
14471
version_type=$version_type
14472
14473
 
14474
runpath_var=$runpath_var
14475
14476
 
14477
shlibpath_var=$shlibpath_var
14478
14479
 
14480
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14481
14482
 
14483
libname_spec=$lt_libname_spec
14484
14485
 
14486
# The last name is the one that the linker finds with -lNAME
14487
library_names_spec=$lt_library_names_spec
14488
14489
 
14490
soname_spec=$lt_soname_spec
14491
14492
 
14493
postinstall_cmds=$lt_postinstall_cmds
14494
14495
 
14496
postuninstall_cmds=$lt_postuninstall_cmds
14497
14498
 
14499
finish_cmds=$lt_finish_cmds
14500
14501
 
14502
# not shown.
14503
finish_eval=$lt_finish_eval
14504
14505
 
14506
hardcode_into_libs=$hardcode_into_libs
14507
14508
 
14509
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14510
14511
 
14512
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14513
14514
 
14515
dlopen_support=$enable_dlopen
14516
14517
 
14518
dlopen_self=$enable_dlopen_self
14519
14520
 
14521
dlopen_self_static=$enable_dlopen_self_static
14522
14523
 
14524
old_striplib=$lt_old_striplib
14525
striplib=$lt_striplib
14526
14527
 
14528
 
14529
LD=$lt_LD
14530
14531
 
14532
old_archive_cmds=$lt_old_archive_cmds
14533
14534
 
14535
CC=$lt_compiler
14536
14537
 
14538
with_gcc=$GCC
14539
14540
 
14541
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14542
14543
 
14544
wl=$lt_lt_prog_compiler_wl
14545
14546
 
14547
pic_flag=$lt_lt_prog_compiler_pic
14548
14549
 
14550
link_static_flag=$lt_lt_prog_compiler_static
14551
14552
 
14553
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14554
14555
 
14556
build_libtool_need_lc=$archive_cmds_need_lc
14557
14558
 
14559
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14560
14561
 
14562
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14563
14564
 
14565
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14566
14567
 
14568
compiler_needs_object=$lt_compiler_needs_object
14569
14570
 
14571
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14572
14573
 
14574
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14575
14576
 
14577
archive_cmds=$lt_archive_cmds
14578
archive_expsym_cmds=$lt_archive_expsym_cmds
14579
14580
 
14581
# a shared archive.
14582
module_cmds=$lt_module_cmds
14583
module_expsym_cmds=$lt_module_expsym_cmds
14584
14585
 
14586
with_gnu_ld=$lt_with_gnu_ld
14587
14588
 
14589
allow_undefined_flag=$lt_allow_undefined_flag
14590
14591
 
14592
no_undefined_flag=$lt_no_undefined_flag
14593
14594
 
14595
# This must work even if \$libdir does not exist
14596
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14597
14598
 
14599
# during linking.  This must work even if \$libdir does not exist.
14600
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14601
14602
 
14603
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14604
14605
 
14606
# DIR into the resulting binary.
14607
hardcode_direct=$hardcode_direct
14608
14609
 
14610
# DIR into the resulting binary and the resulting library dependency is
14611
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14612
# library is relocated.
14613
hardcode_direct_absolute=$hardcode_direct_absolute
14614
14615
 
14616
# into the resulting binary.
14617
hardcode_minus_L=$hardcode_minus_L
14618
14619
 
14620
# into the resulting binary.
14621
hardcode_shlibpath_var=$hardcode_shlibpath_var
14622
14623
 
14624
# into the library and all subsequent libraries and executables linked
14625
# against it.
14626
hardcode_automatic=$hardcode_automatic
14627
14628
 
14629
# to runtime path list.
14630
inherit_rpath=$inherit_rpath
14631
14632
 
14633
link_all_deplibs=$link_all_deplibs
14634
14635
 
14636
fix_srcfile_path=$lt_fix_srcfile_path
14637
14638
 
14639
always_export_symbols=$always_export_symbols
14640
14641
 
14642
export_symbols_cmds=$lt_export_symbols_cmds
14643
14644
 
14645
exclude_expsyms=$lt_exclude_expsyms
14646
14647
 
14648
include_expsyms=$lt_include_expsyms
14649
14650
 
14651
prelink_cmds=$lt_prelink_cmds
14652
14653
 
14654
file_list_spec=$lt_file_list_spec
14655
14656
 
14657
hardcode_action=$hardcode_action
14658
14659
 
14660
14661
 
14662
14663
 
14664
  aix3*)
14665
    cat <<\_LT_EOF >> "$cfgfile"
14666
# AIX sometimes has problems with the GCC collect2 program.  For some
14667
# reason, if we set the COLLECT_NAMES environment variable, the problems
14668
# vanish in a puff of smoke.
14669
if test "X${COLLECT_NAMES+set}" != Xset; then
14670
  COLLECT_NAMES=
14671
  export COLLECT_NAMES
14672
fi
14673
_LT_EOF
14674
    ;;
14675
  esac
14676
14677
 
14678
 
14679
14680
 
14681
 
14682
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14683
  # text mode, it properly converts lines to CR/LF.  This bash problem
14684
  # is reportedly fixed, but why not run on old versions too?
14685
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14686
    || (rm -f "$cfgfile"; exit 1)
14687
14688
 
14689
  yes)
14690
    cat << \_LT_EOF >> "$cfgfile"
14691
14692
 
14693
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14694
# otherwise set result to NONDIR_REPLACEMENT.
14695
func_dirname ()
14696
{
14697
  case ${1} in
14698
    */*) func_dirname_result="${1%/*}${2}" ;;
14699
    *  ) func_dirname_result="${3}" ;;
14700
  esac
14701
}
14702
14703
 
14704
func_basename ()
14705
{
14706
  func_basename_result="${1##*/}"
14707
}
14708
14709
 
14710
# perform func_basename and func_dirname in a single function
14711
# call:
14712
#   dirname:  Compute the dirname of FILE.  If nonempty,
14713
#             add APPEND to the result, otherwise set result
14714
#             to NONDIR_REPLACEMENT.
14715
#             value returned in "$func_dirname_result"
14716
#   basename: Compute filename of FILE.
14717
#             value retuned in "$func_basename_result"
14718
# Implementation must be kept synchronized with func_dirname
14719
# and func_basename. For efficiency, we do not delegate to
14720
# those functions but instead duplicate the functionality here.
14721
func_dirname_and_basename ()
14722
{
14723
  case ${1} in
14724
    */*) func_dirname_result="${1%/*}${2}" ;;
14725
    *  ) func_dirname_result="${3}" ;;
14726
  esac
14727
  func_basename_result="${1##*/}"
14728
}
14729
14730
 
14731
# strip PREFIX and SUFFIX off of NAME.
14732
# PREFIX and SUFFIX must not contain globbing or regex special
14733
# characters, hashes, percent signs, but SUFFIX may contain a leading
14734
# dot (in which case that matches only a dot).
14735
func_stripname ()
14736
{
14737
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14738
  # positional parameters, so assign one to ordinary parameter first.
14739
  func_stripname_result=${3}
14740
  func_stripname_result=${func_stripname_result#"${1}"}
14741
  func_stripname_result=${func_stripname_result%"${2}"}
14742
}
14743
14744
 
14745
func_opt_split ()
14746
{
14747
  func_opt_split_opt=${1%%=*}
14748
  func_opt_split_arg=${1#*=}
14749
}
14750
14751
 
14752
func_lo2o ()
14753
{
14754
  case ${1} in
14755
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14756
    *)    func_lo2o_result=${1} ;;
14757
  esac
14758
}
14759
14760
 
14761
func_xform ()
14762
{
14763
  func_xform_result=${1%.*}.lo
14764
}
14765
14766
 
14767
func_arith ()
14768
{
14769
  func_arith_result=$(( $* ))
14770
}
14771
14772
 
14773
# STRING may not start with a hyphen.
14774
func_len ()
14775
{
14776
  func_len_result=${#1}
14777
}
14778
14779
 
14780
    ;;
14781
  *) # Bourne compatible functions.
14782
    cat << \_LT_EOF >> "$cfgfile"
14783
14784
 
14785
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14786
# otherwise set result to NONDIR_REPLACEMENT.
14787
func_dirname ()
14788
{
14789
  # Extract subdirectory from the argument.
14790
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14791
  if test "X$func_dirname_result" = "X${1}"; then
14792
    func_dirname_result="${3}"
14793
  else
14794
    func_dirname_result="$func_dirname_result${2}"
14795
  fi
14796
}
14797
14798
 
14799
func_basename ()
14800
{
14801
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14802
}
14803
14804
 
14805
 
14806
# strip PREFIX and SUFFIX off of NAME.
14807
# PREFIX and SUFFIX must not contain globbing or regex special
14808
# characters, hashes, percent signs, but SUFFIX may contain a leading
14809
# dot (in which case that matches only a dot).
14810
# func_strip_suffix prefix name
14811
func_stripname ()
14812
{
14813
  case ${2} in
14814
    .*) func_stripname_result=`$ECHO "X${3}" \
14815
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14816
    *)  func_stripname_result=`$ECHO "X${3}" \
14817
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14818
  esac
14819
}
14820
14821
 
14822
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14823
my_sed_long_arg='1s/^-[^=]*=//'
14824
14825
 
14826
func_opt_split ()
14827
{
14828
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14829
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14830
}
14831
14832
 
14833
func_lo2o ()
14834
{
14835
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14836
}
14837
14838
 
14839
func_xform ()
14840
{
14841
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14842
}
14843
14844
 
14845
func_arith ()
14846
{
14847
  func_arith_result=`expr "$@"`
14848
}
14849
14850
 
14851
# STRING may not start with a hyphen.
14852
func_len ()
14853
{
14854
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14855
}
14856
14857
 
14858
esac
14859
14860
 
14861
  yes)
14862
    cat << \_LT_EOF >> "$cfgfile"
14863
14864
 
14865
# Append VALUE to the end of shell variable VAR.
14866
func_append ()
14867
{
14868
  eval "$1+=\$2"
14869
}
14870
_LT_EOF
14871
    ;;
14872
  *)
14873
    cat << \_LT_EOF >> "$cfgfile"
14874
14875
 
14876
# Append VALUE to the end of shell variable VAR.
14877
func_append ()
14878
{
14879
  eval "$1=\$$1\$2"
14880
}
14881
14882
 
14883
    ;;
14884
  esac
14885
14886
 
14887
 
14888
    || (rm -f "$cfgfile"; exit 1)
14889
14890
 
14891
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14892
  chmod +x "$ofile"
14893
14894
 
14895
14896
 
14897
done # for ac_tag
14898
14899
 
14900
 
14901
_ACEOF
14902
chmod +x $CONFIG_STATUS
14903
ac_clean_files=$ac_clean_files_save
14904
14905
 
14906
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14907
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14908
   { (exit 1); exit 1; }; }
14909
14910
 
14911
 
14912
# config.status does its own redirection, appending to config.log.
14913
# Unfortunately, on DOS this fails, as config.log is still kept open
14914
# by configure, so config.status won't be able to write to it; its
14915
# output is simply discarded.  So we exec the FD to /dev/null,
14916
# effectively closing config.log, so it can be properly (re)opened and
14917
# appended to by config.status.  When coming back to configure, we
14918
# need to make the FD available again.
14919
if test "$no_create" != yes; then
14920
  ac_cs_success=:
14921
  ac_config_status_args=
14922
  test "$silent" = yes &&
14923
    ac_config_status_args="$ac_config_status_args --quiet"
14924
  exec 5>/dev/null
14925
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14926
  exec 5>>config.log
14927
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14928
  # would make configure fail if this is the last instruction.
14929
  $ac_cs_success || { (exit 1); exit 1; }
14930
fi
14931
14932
 
14933
# CONFIG_SUBDIRS section.
14934
#
14935
if test "$no_recursion" != yes; then
14936
14937
 
14938
  # so they do not pile up.
14939
  ac_sub_configure_args=
14940
  ac_prev=
14941
  eval "set x $ac_configure_args"
14942
  shift
14943
  for ac_arg
14944
  do
14945
    if test -n "$ac_prev"; then
14946
      ac_prev=
14947
      continue
14948
    fi
14949
    case $ac_arg in
14950
    -cache-file | --cache-file | --cache-fil | --cache-fi \
14951
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14952
      ac_prev=cache_file ;;
14953
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14954
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14955
    | --c=*)
14956
      ;;
14957
    --config-cache | -C)
14958
      ;;
14959
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14960
      ac_prev=srcdir ;;
14961
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14962
      ;;
14963
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14964
      ac_prev=prefix ;;
14965
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14966
      ;;
14967
    --disable-option-checking)
14968
      ;;
14969
    *)
14970
      case $ac_arg in
14971
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14972
      esac
14973
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
14974
    esac
14975
  done
14976
14977
 
14978
  # in subdir configurations.
14979
  ac_arg="--prefix=$prefix"
14980
  case $ac_arg in
14981
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14982
  esac
14983
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14984
14985
 
14986
  if test "$silent" = yes; then
14987
    ac_sub_configure_args="--silent $ac_sub_configure_args"
14988
  fi
14989
14990
 
14991
  # different subdirs can have different --enable and --with options.
14992
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14993
14994
 
14995
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14996
14997
 
14998
    # parts of a large source tree are present.
14999
    test -d "$srcdir/$ac_dir" || continue
15000
15001
 
15002
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
15003
    $as_echo "$ac_msg" >&6
15004
    { as_dir="$ac_dir"
15005
  case $as_dir in #(
15006
  -*) as_dir=./$as_dir;;
15007
  esac
15008
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15009
    as_dirs=
15010
    while :; do
15011
      case $as_dir in #(
15012
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15013
      *) as_qdir=$as_dir;;
15014
      esac
15015
      as_dirs="'$as_qdir' $as_dirs"
15016
      as_dir=`$as_dirname -- "$as_dir" ||
15017
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15018
         X"$as_dir" : 'X\(//\)[^/]' \| \
15019
         X"$as_dir" : 'X\(//\)$' \| \
15020
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15021
$as_echo X"$as_dir" |
15022
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15023
            s//\1/
15024
            q
15025
          }
15026
          /^X\(\/\/\)[^/].*/{
15027
            s//\1/
15028
            q
15029
          }
15030
          /^X\(\/\/\)$/{
15031
            s//\1/
15032
            q
15033
          }
15034
          /^X\(\/\).*/{
15035
            s//\1/
15036
            q
15037
          }
15038
          s/.*/./; q'`
15039
      test -d "$as_dir" && break
15040
    done
15041
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15042
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15043
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15044
   { (exit 1); exit 1; }; }; }
15045
    ac_builddir=.
15046
15047
 
15048
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15049
*)
15050
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15051
  # A ".." for each directory in $ac_dir_suffix.
15052
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15053
  case $ac_top_builddir_sub in
15054
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15055
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15056
  esac ;;
15057
esac
15058
ac_abs_top_builddir=$ac_pwd
15059
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15060
# for backward compatibility:
15061
ac_top_builddir=$ac_top_build_prefix
15062
15063
 
15064
  .)  # We are building in place.
15065
    ac_srcdir=.
15066
    ac_top_srcdir=$ac_top_builddir_sub
15067
    ac_abs_top_srcdir=$ac_pwd ;;
15068
  [\\/]* | ?:[\\/]* )  # Absolute name.
15069
    ac_srcdir=$srcdir$ac_dir_suffix;
15070
    ac_top_srcdir=$srcdir
15071
    ac_abs_top_srcdir=$srcdir ;;
15072
  *) # Relative name.
15073
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15074
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15075
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15076
esac
15077
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15078
15079
 
15080
 
15081
15082
 
15083
    if test -f "$ac_srcdir/configure.gnu"; then
15084
      ac_sub_configure=$ac_srcdir/configure.gnu
15085
    elif test -f "$ac_srcdir/configure"; then
15086
      ac_sub_configure=$ac_srcdir/configure
15087
    elif test -f "$ac_srcdir/configure.in"; then
15088
      # This should be Cygnus configure.
15089
      ac_sub_configure=$ac_aux_dir/configure
15090
    else
15091
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15092
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15093
      ac_sub_configure=
15094
    fi
15095
15096
 
15097
    if test -n "$ac_sub_configure"; then
15098
      # Make the cache file name correct relative to the subdirectory.
15099
      case $cache_file in
15100
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15101
      *) # Relative name.
15102
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15103
      esac
15104
15105
 
15106
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15107
      # The eval makes quoting arguments work.
15108
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15109
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15110
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15111
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15112
   { (exit 1); exit 1; }; }
15113
    fi
15114
15115
 
15116
  done
15117
fi
15118
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15119
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15120
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15121
fi
15122
15123
 

powered by: WebSVN 2.1.0

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