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

Subversion Repositories openrisc_me

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63 for newlib 1.18.0.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization.  ##
11
## --------------------- ##
12
 
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
  emulate sh
17
  NULLCMD=:
18
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19
  # is contrary to our usage.  Disable this feature.
20
  alias -g '${1+"$@"}'='"$@"'
21
  setopt NO_GLOB_SUBST
22
else
23
  case `(set -o) 2>/dev/null` in
24
  *posix*) set -o posix ;;
25
esac
26
 
27
fi
28
 
29
 
30
 
31
 
32
# PATH needs CR
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
39
 
40
as_nl='
41
'
42
export as_nl
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in
59
      *"$as_nl"*)
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81
# Support unset when possible.
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83
  as_unset=unset
84
else
85
  as_unset=false
86
fi
87
 
88
 
89
# IFS
90
# We need space, tab and new line, in precisely that order.  Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
94
IFS=" ""        $as_nl"
95
 
96
# Find who we are.  Look in the path if we contain no directory separator.
97
case $0 in
98
  *[\\/]* ) as_myself=$0 ;;
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
for as_dir in $PATH
101
do
102
  IFS=$as_save_IFS
103
  test -z "$as_dir" && as_dir=.
104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
done
106
IFS=$as_save_IFS
107
 
108
     ;;
109
esac
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
113
  as_myself=$0
114
fi
115
if test ! -f "$as_myself"; then
116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
  { (exit 1); exit 1; }
118
fi
119
 
120
# Work around bugs in pre-3.0 UWIN ksh.
121
for as_var in ENV MAIL MAILPATH
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
 
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133
 
134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137
  as_expr=expr
138
else
139
  as_expr=false
140
fi
141
 
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143
  as_basename=basename
144
else
145
  as_basename=false
146
fi
147
 
148
 
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
         X"$0" : 'X\(//\)$' \| \
153
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154
$as_echo X/"$0" |
155
    sed '/^.*\/\([^/][^/]*\)\/*$/{
156
            s//\1/
157
            q
158
          }
159
          /^X\/\(\/\/\)$/{
160
            s//\1/
161
            q
162
          }
163
          /^X\/\(\/\).*/{
164
            s//\1/
165
            q
166
          }
167
          s/.*/./; q'`
168
 
169
# CDPATH.
170
$as_unset CDPATH
171
 
172
 
173
if test "x$CONFIG_SHELL" = x; then
174
  if (eval ":") 2>/dev/null; then
175
  as_have_required=yes
176
else
177
  as_have_required=no
178
fi
179
 
180
  if test $as_have_required = yes &&     (eval ":
181
(as_func_return () {
182
  (exit \$1)
183
}
184
as_func_success () {
185
  as_func_return 0
186
}
187
as_func_failure () {
188
  as_func_return 1
189
}
190
as_func_ret_success () {
191
  return 0
192
}
193
as_func_ret_failure () {
194
  return 1
195
}
196
 
197
exitcode=0
198
if as_func_success; then
199
  :
200
else
201
  exitcode=1
202
  echo as_func_success failed.
203
fi
204
 
205
if as_func_failure; then
206
  exitcode=1
207
  echo as_func_failure succeeded.
208
fi
209
 
210
if as_func_ret_success; then
211
  :
212
else
213
  exitcode=1
214
  echo as_func_ret_success failed.
215
fi
216
 
217
if as_func_ret_failure; then
218
  exitcode=1
219
  echo as_func_ret_failure succeeded.
220
fi
221
 
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223
  :
224
else
225
  exitcode=1
226
  echo positional parameters were not saved.
227
fi
228
 
229
test \$exitcode = 0) || { (exit 1); exit 1; }
230
 
231
(
232
  as_lineno_1=\$LINENO
233
  as_lineno_2=\$LINENO
234
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
237
  :
238
else
239
  as_candidate_shells=
240
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242
do
243
  IFS=$as_save_IFS
244
  test -z "$as_dir" && as_dir=.
245
  case $as_dir in
246
         /*)
247
           for as_base in sh bash ksh sh5; do
248
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249
           done;;
250
       esac
251
done
252
IFS=$as_save_IFS
253
 
254
 
255
      for as_shell in $as_candidate_shells $SHELL; do
256
         # Try only shells that exist, to save several forks.
257
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
                { ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
  emulate sh
261
  NULLCMD=:
262
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
  # is contrary to our usage.  Disable this feature.
264
  alias -g '${1+"$@"}'='"$@"'
265
  setopt NO_GLOB_SUBST
266
else
267
  case `(set -o) 2>/dev/null` in
268
  *posix*) set -o posix ;;
269
esac
270
 
271
fi
272
 
273
 
274
:
275
_ASEOF
276
}; then
277
  CONFIG_SHELL=$as_shell
278
               as_have_required=yes
279
               if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281
  emulate sh
282
  NULLCMD=:
283
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
  # is contrary to our usage.  Disable this feature.
285
  alias -g '${1+"$@"}'='"$@"'
286
  setopt NO_GLOB_SUBST
287
else
288
  case `(set -o) 2>/dev/null` in
289
  *posix*) set -o posix ;;
290
esac
291
 
292
fi
293
 
294
 
295
:
296
(as_func_return () {
297
  (exit $1)
298
}
299
as_func_success () {
300
  as_func_return 0
301
}
302
as_func_failure () {
303
  as_func_return 1
304
}
305
as_func_ret_success () {
306
  return 0
307
}
308
as_func_ret_failure () {
309
  return 1
310
}
311
 
312
exitcode=0
313
if as_func_success; then
314
  :
315
else
316
  exitcode=1
317
  echo as_func_success failed.
318
fi
319
 
320
if as_func_failure; then
321
  exitcode=1
322
  echo as_func_failure succeeded.
323
fi
324
 
325
if as_func_ret_success; then
326
  :
327
else
328
  exitcode=1
329
  echo as_func_ret_success failed.
330
fi
331
 
332
if as_func_ret_failure; then
333
  exitcode=1
334
  echo as_func_ret_failure succeeded.
335
fi
336
 
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
338
  :
339
else
340
  exitcode=1
341
  echo positional parameters were not saved.
342
fi
343
 
344
test $exitcode = 0) || { (exit 1); exit 1; }
345
 
346
(
347
  as_lineno_1=$LINENO
348
  as_lineno_2=$LINENO
349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
350
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
 
352
_ASEOF
353
}; then
354
  break
355
fi
356
 
357
fi
358
 
359
      done
360
 
361
      if test "x$CONFIG_SHELL" != x; then
362
  for as_var in BASH_ENV ENV
363
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364
        done
365
        export CONFIG_SHELL
366
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367
fi
368
 
369
 
370
    if test $as_have_required = no; then
371
  echo This script requires a shell more modern than all the
372
      echo shells that I found on your system.  Please install a
373
      echo modern shell, or manually run the script under such a
374
      echo shell if you do have one.
375
      { (exit 1); exit 1; }
376
fi
377
 
378
 
379
fi
380
 
381
fi
382
 
383
 
384
 
385
(eval "as_func_return () {
386
  (exit \$1)
387
}
388
as_func_success () {
389
  as_func_return 0
390
}
391
as_func_failure () {
392
  as_func_return 1
393
}
394
as_func_ret_success () {
395
  return 0
396
}
397
as_func_ret_failure () {
398
  return 1
399
}
400
 
401
exitcode=0
402
if as_func_success; then
403
  :
404
else
405
  exitcode=1
406
  echo as_func_success failed.
407
fi
408
 
409
if as_func_failure; then
410
  exitcode=1
411
  echo as_func_failure succeeded.
412
fi
413
 
414
if as_func_ret_success; then
415
  :
416
else
417
  exitcode=1
418
  echo as_func_ret_success failed.
419
fi
420
 
421
if as_func_ret_failure; then
422
  exitcode=1
423
  echo as_func_ret_failure succeeded.
424
fi
425
 
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427
  :
428
else
429
  exitcode=1
430
  echo positional parameters were not saved.
431
fi
432
 
433
test \$exitcode = 0") || {
434
  echo No shell found that supports shell functions.
435
  echo Please tell bug-autoconf@gnu.org about your system,
436
  echo including any error possibly output before this message.
437
  echo This can help us improve future autoconf versions.
438
  echo Configuration will now proceed without shell functions.
439
}
440
 
441
 
442
 
443
  as_lineno_1=$LINENO
444
  as_lineno_2=$LINENO
445
  test "x$as_lineno_1" != "x$as_lineno_2" &&
446
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
 
448
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
  # uniformly replaced by the line number.  The first 'sed' inserts a
450
  # line-number line after each line using $LINENO; the second 'sed'
451
  # does the real work.  The second script uses 'N' to pair each
452
  # line-number line with the line containing $LINENO, and appends
453
  # trailing '-' during substitution so that $LINENO is not a special
454
  # case at line end.
455
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457
  # E. McMahon (1931-1989) for sed's syntax.  :-)
458
  sed -n '
459
    p
460
    /[$]LINENO/=
461
  ' <$as_myself |
462
    sed '
463
      s/[$]LINENO.*/&-/
464
      t lineno
465
      b
466
      :lineno
467
      N
468
      :loop
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470
      t loop
471
      s/-\n.*//
472
    ' >$as_me.lineno &&
473
  chmod +x "$as_me.lineno" ||
474
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475
   { (exit 1); exit 1; }; }
476
 
477
  # Don't try to exec as it changes $[0], causing all sort of problems
478
  # (the dirname of $[0] is not the place where we might find the
479
  # original and so on.  Autoconf is especially sensitive to this).
480
  . "./$as_me.lineno"
481
  # Exit status is that of the last command.
482
  exit
483
}
484
 
485
 
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487
  as_dirname=dirname
488
else
489
  as_dirname=false
490
fi
491
 
492
ECHO_C= ECHO_N= ECHO_T=
493
case `echo -n x` in
494
-n*)
495
  case `echo 'x\c'` in
496
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497
  *)   ECHO_C='\c';;
498
  esac;;
499
*)
500
  ECHO_N='-n';;
501
esac
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504
  as_expr=expr
505
else
506
  as_expr=false
507
fi
508
 
509
rm -f conf$$ conf$$.exe conf$$.file
510
if test -d conf$$.dir; then
511
  rm -f conf$$.dir/conf$$.file
512
else
513
  rm -f conf$$.dir
514
  mkdir conf$$.dir 2>/dev/null
515
fi
516
if (echo >conf$$.file) 2>/dev/null; then
517
  if ln -s conf$$.file conf$$ 2>/dev/null; then
518
    as_ln_s='ln -s'
519
    # ... but there are two gotchas:
520
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522
    # In both cases, we have to default to `cp -p'.
523
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524
      as_ln_s='cp -p'
525
  elif ln conf$$.file conf$$ 2>/dev/null; then
526
    as_ln_s=ln
527
  else
528
    as_ln_s='cp -p'
529
  fi
530
else
531
  as_ln_s='cp -p'
532
fi
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534
rmdir conf$$.dir 2>/dev/null
535
 
536
if mkdir -p . 2>/dev/null; then
537
  as_mkdir_p=:
538
else
539
  test -d ./-p && rmdir ./-p
540
  as_mkdir_p=false
541
fi
542
 
543
if test -x / >/dev/null 2>&1; then
544
  as_test_x='test -x'
545
else
546
  if ls -dL / >/dev/null 2>&1; then
547
    as_ls_L_option=L
548
  else
549
    as_ls_L_option=
550
  fi
551
  as_test_x='
552
    eval sh -c '\''
553
      if test -d "$1"; then
554
        test -d "$1/.";
555
      else
556
        case $1 in
557
        -*)set "./$1";;
558
        esac;
559
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560
        ???[sx]*):;;*)false;;esac;fi
561
    '\'' sh
562
  '
563
fi
564
as_executable_p=$as_test_x
565
 
566
# Sed expression to map a string onto a valid CPP name.
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
 
569
# Sed expression to map a string onto a valid variable name.
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
 
572
 
573
 
574
 
575
# Check that we are running under the correct shell.
576
SHELL=${CONFIG_SHELL-/bin/sh}
577
 
578
case X$lt_ECHO in
579
X*--fallback-echo)
580
  # Remove one level of quotation (which was required for Make).
581
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582
  ;;
583
esac
584
 
585
ECHO=${lt_ECHO-echo}
586
if test "X$1" = X--no-reexec; then
587
  # Discard the --no-reexec flag, and continue.
588
  shift
589
elif test "X$1" = X--fallback-echo; then
590
  # Avoid inline document here, it may be left over
591
  :
592
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593
  # Yippee, $ECHO works!
594
  :
595
else
596
  # Restart under the correct shell.
597
  exec $SHELL "$0" --no-reexec ${1+"$@"}
598
fi
599
 
600
if test "X$1" = X--fallback-echo; then
601
  # used as fallback echo
602
  shift
603
  cat <<_LT_EOF
604
$*
605
_LT_EOF
606
  exit 0
607
fi
608
 
609
# The HP-UX ksh and POSIX shell print the target directory to stdout
610
# if CDPATH is set.
611
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
 
613
if test -z "$lt_ECHO"; then
614
  if test "X${echo_test_string+set}" != Xset; then
615
    # find a string as large as possible, as long as the shell can cope with it
616
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620
      then
621
        break
622
      fi
623
    done
624
  fi
625
 
626
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
     test "X$echo_testing_string" = "X$echo_test_string"; then
629
    :
630
  else
631
    # The Solaris, AIX, and Digital Unix default echo programs unquote
632
    # backslashes.  This makes it impossible to quote backslashes using
633
    #   echo "$something" | sed 's/\\/\\\\/g'
634
    #
635
    # So, first we look for a working echo in the user's PATH.
636
 
637
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638
    for dir in $PATH /usr/ucb; do
639
      IFS="$lt_save_ifs"
640
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643
         test "X$echo_testing_string" = "X$echo_test_string"; then
644
        ECHO="$dir/echo"
645
        break
646
      fi
647
    done
648
    IFS="$lt_save_ifs"
649
 
650
    if test "X$ECHO" = Xecho; then
651
      # We didn't find a better echo, so look for alternatives.
652
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654
         test "X$echo_testing_string" = "X$echo_test_string"; then
655
        # This shell has a builtin print -r that does the trick.
656
        ECHO='print -r'
657
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658
           test "X$CONFIG_SHELL" != X/bin/ksh; then
659
        # If we have ksh, try running configure again with it.
660
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661
        export ORIGINAL_CONFIG_SHELL
662
        CONFIG_SHELL=/bin/ksh
663
        export CONFIG_SHELL
664
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665
      else
666
        # Try using printf.
667
        ECHO='printf %s\n'
668
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670
           test "X$echo_testing_string" = "X$echo_test_string"; then
671
          # Cool, printf works
672
          :
673
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674
             test "X$echo_testing_string" = 'X\t' &&
675
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676
             test "X$echo_testing_string" = "X$echo_test_string"; then
677
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678
          export CONFIG_SHELL
679
          SHELL="$CONFIG_SHELL"
680
          export SHELL
681
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
682
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683
             test "X$echo_testing_string" = 'X\t' &&
684
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685
             test "X$echo_testing_string" = "X$echo_test_string"; then
686
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
687
        else
688
          # maybe with a smaller string...
689
          prev=:
690
 
691
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693
            then
694
              break
695
            fi
696
            prev="$cmd"
697
          done
698
 
699
          if test "$prev" != 'sed 50q "$0"'; then
700
            echo_test_string=`eval $prev`
701
            export echo_test_string
702
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703
          else
704
            # Oops.  We lost completely, so just stick with echo.
705
            ECHO=echo
706
          fi
707
        fi
708
      fi
709
    fi
710
  fi
711
fi
712
 
713
# Copy echo and quote the copy suitably for passing to libtool from
714
# the Makefile, instead of quoting the original, which is used later.
715
lt_ECHO=$ECHO
716
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718
fi
719
 
720
 
721
 
722
 
723
exec 7<&0 &1
724
 
725
# Name of the host.
726
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727
# so uname gets run too.
728
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
 
730
#
731
# Initializations.
732
#
733
ac_default_prefix=/usr/local
734
ac_clean_files=
735
ac_config_libobj_dir=.
736
LIBOBJS=
737
cross_compiling=no
738
subdirs=
739
MFLAGS=
740
MAKEFLAGS=
741
SHELL=${CONFIG_SHELL-/bin/sh}
742
 
743
# Identity of this package.
744
PACKAGE_NAME='newlib'
745
PACKAGE_TARNAME='newlib'
746
PACKAGE_VERSION='1.18.0'
747
PACKAGE_STRING='newlib 1.18.0'
748
PACKAGE_BUGREPORT=''
749
 
750
ac_unique_file="crt0.c"
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
ac_subst_vars='am__EXEEXT_FALSE
788
am__EXEEXT_TRUE
789
LTLIBOBJS
790
LIBOBJS
791
CPP
792
OTOOL64
793
OTOOL
794
LIPO
795
NMEDIT
796
DSYMUTIL
797
lt_ECHO
798
LN_S
799
NM
800
ac_ct_DUMPBIN
801
DUMPBIN
802
LD
803
FGREP
804
EGREP
805
GREP
806
EXEEXT
807
ac_ct_CC
808
CPPFLAGS
809
CFLAGS
810
LIBTOOL
811
OBJDUMP
812
DLLTOOL
813
SED
814
sys_dir
815
machine_dir
816
libm_machine_dir
817
lpfx
818
aext
819
oext
820
OBJEXT
821
USE_LIBTOOL_FALSE
822
USE_LIBTOOL_TRUE
823
ELIX_LEVEL_4_FALSE
824
ELIX_LEVEL_4_TRUE
825
ELIX_LEVEL_3_FALSE
826
ELIX_LEVEL_3_TRUE
827
ELIX_LEVEL_2_FALSE
828
ELIX_LEVEL_2_TRUE
829
ELIX_LEVEL_1_FALSE
830
ELIX_LEVEL_1_TRUE
831
ELIX_LEVEL_0_FALSE
832
ELIX_LEVEL_0_TRUE
833
LDFLAGS
834
NEWLIB_CFLAGS
835
CCASFLAGS
836
CCAS
837
MAINT
838
MAINTAINER_MODE_FALSE
839
MAINTAINER_MODE_TRUE
840
READELF
841
RANLIB
842
AR
843
AS
844
am__fastdepCC_FALSE
845
am__fastdepCC_TRUE
846
CCDEPMODE
847
AMDEPBACKSLASH
848
AMDEP_FALSE
849
AMDEP_TRUE
850
am__quote
851
am__include
852
DEPDIR
853
CC
854
am__untar
855
am__tar
856
AMTAR
857
am__leading_dot
858
SET_MAKE
859
AWK
860
mkdir_p
861
MKDIR_P
862
INSTALL_STRIP_PROGRAM
863
STRIP
864
install_sh
865
MAKEINFO
866
AUTOHEADER
867
AUTOMAKE
868
AUTOCONF
869
ACLOCAL
870
VERSION
871
PACKAGE
872
CYGPATH_W
873
am__isrc
874
INSTALL_DATA
875
INSTALL_SCRIPT
876
INSTALL_PROGRAM
877
host_os
878
host_vendor
879
host_cpu
880
host
881
build_os
882
build_vendor
883
build_cpu
884
build
885
newlib_basedir
886
MAY_SUPPLY_SYSCALLS_FALSE
887
MAY_SUPPLY_SYSCALLS_TRUE
888
target_alias
889
host_alias
890
build_alias
891
LIBS
892
ECHO_T
893
ECHO_N
894
ECHO_C
895
DEFS
896
mandir
897
localedir
898
libdir
899
psdir
900
pdfdir
901
dvidir
902
htmldir
903
infodir
904
docdir
905
oldincludedir
906
includedir
907
localstatedir
908
sharedstatedir
909
sysconfdir
910
datadir
911
datarootdir
912
libexecdir
913
sbindir
914
bindir
915
program_transform_name
916
prefix
917
exec_prefix
918
PACKAGE_BUGREPORT
919
PACKAGE_STRING
920
PACKAGE_VERSION
921
PACKAGE_TARNAME
922
PACKAGE_NAME
923
PATH_SEPARATOR
924
SHELL'
925
ac_subst_files=''
926
ac_user_opts='
927
enable_option_checking
928
enable_multilib
929
enable_target_optspace
930
enable_malloc_debugging
931
enable_newlib_multithread
932
enable_newlib_iconv
933
enable_newlib_elix_level
934
enable_newlib_io_float
935
enable_newlib_supplied_syscalls
936
enable_dependency_tracking
937
enable_maintainer_mode
938
enable_shared
939
enable_static
940
with_pic
941
enable_fast_install
942
with_gnu_ld
943
enable_libtool_lock
944
'
945
      ac_precious_vars='build_alias
946
host_alias
947
target_alias
948
CCAS
949
CCASFLAGS
950
CC
951
CFLAGS
952
LDFLAGS
953
LIBS
954
CPPFLAGS
955
CPP'
956
 
957
 
958
# Initialize some variables set by options.
959
ac_init_help=
960
ac_init_version=false
961
ac_unrecognized_opts=
962
ac_unrecognized_sep=
963
# The variables have the same names as the options, with
964
# dashes changed to underlines.
965
cache_file=/dev/null
966
exec_prefix=NONE
967
no_create=
968
no_recursion=
969
prefix=NONE
970
program_prefix=NONE
971
program_suffix=NONE
972
program_transform_name=s,x,x,
973
silent=
974
site=
975
srcdir=
976
verbose=
977
x_includes=NONE
978
x_libraries=NONE
979
 
980
# Installation directory options.
981
# These are left unexpanded so users can "make install exec_prefix=/foo"
982
# and all the variables that are supposed to be based on exec_prefix
983
# by default will actually change.
984
# Use braces instead of parens because sh, perl, etc. also accept them.
985
# (The list follows the same order as the GNU Coding Standards.)
986
bindir='${exec_prefix}/bin'
987
sbindir='${exec_prefix}/sbin'
988
libexecdir='${exec_prefix}/libexec'
989
datarootdir='${prefix}/share'
990
datadir='${datarootdir}'
991
sysconfdir='${prefix}/etc'
992
sharedstatedir='${prefix}/com'
993
localstatedir='${prefix}/var'
994
includedir='${prefix}/include'
995
oldincludedir='/usr/include'
996
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997
infodir='${datarootdir}/info'
998
htmldir='${docdir}'
999
dvidir='${docdir}'
1000
pdfdir='${docdir}'
1001
psdir='${docdir}'
1002
libdir='${exec_prefix}/lib'
1003
localedir='${datarootdir}/locale'
1004
mandir='${datarootdir}/man'
1005
 
1006
ac_prev=
1007
ac_dashdash=
1008
for ac_option
1009
do
1010
  # If the previous option needs an argument, assign it.
1011
  if test -n "$ac_prev"; then
1012
    eval $ac_prev=\$ac_option
1013
    ac_prev=
1014
    continue
1015
  fi
1016
 
1017
  case $ac_option in
1018
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019
  *)    ac_optarg=yes ;;
1020
  esac
1021
 
1022
  # Accept the important Cygnus configure options, so we can diagnose typos.
1023
 
1024
  case $ac_dashdash$ac_option in
1025
  --)
1026
    ac_dashdash=yes ;;
1027
 
1028
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029
    ac_prev=bindir ;;
1030
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031
    bindir=$ac_optarg ;;
1032
 
1033
  -build | --build | --buil | --bui | --bu)
1034
    ac_prev=build_alias ;;
1035
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036
    build_alias=$ac_optarg ;;
1037
 
1038
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1039
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040
    ac_prev=cache_file ;;
1041
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043
    cache_file=$ac_optarg ;;
1044
 
1045
  --config-cache | -C)
1046
    cache_file=config.cache ;;
1047
 
1048
  -datadir | --datadir | --datadi | --datad)
1049
    ac_prev=datadir ;;
1050
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051
    datadir=$ac_optarg ;;
1052
 
1053
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054
  | --dataroo | --dataro | --datar)
1055
    ac_prev=datarootdir ;;
1056
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058
    datarootdir=$ac_optarg ;;
1059
 
1060
  -disable-* | --disable-*)
1061
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062
    # Reject names that are not valid shell variable names.
1063
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1065
   { (exit 1); exit 1; }; }
1066
    ac_useropt_orig=$ac_useropt
1067
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068
    case $ac_user_opts in
1069
      *"
1070
"enable_$ac_useropt"
1071
"*) ;;
1072
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073
         ac_unrecognized_sep=', ';;
1074
    esac
1075
    eval enable_$ac_useropt=no ;;
1076
 
1077
  -docdir | --docdir | --docdi | --doc | --do)
1078
    ac_prev=docdir ;;
1079
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080
    docdir=$ac_optarg ;;
1081
 
1082
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083
    ac_prev=dvidir ;;
1084
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085
    dvidir=$ac_optarg ;;
1086
 
1087
  -enable-* | --enable-*)
1088
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089
    # Reject names that are not valid shell variable names.
1090
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1092
   { (exit 1); exit 1; }; }
1093
    ac_useropt_orig=$ac_useropt
1094
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095
    case $ac_user_opts in
1096
      *"
1097
"enable_$ac_useropt"
1098
"*) ;;
1099
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100
         ac_unrecognized_sep=', ';;
1101
    esac
1102
    eval enable_$ac_useropt=\$ac_optarg ;;
1103
 
1104
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106
  | --exec | --exe | --ex)
1107
    ac_prev=exec_prefix ;;
1108
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110
  | --exec=* | --exe=* | --ex=*)
1111
    exec_prefix=$ac_optarg ;;
1112
 
1113
  -gas | --gas | --ga | --g)
1114
    # Obsolete; use --with-gas.
1115
    with_gas=yes ;;
1116
 
1117
  -help | --help | --hel | --he | -h)
1118
    ac_init_help=long ;;
1119
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120
    ac_init_help=recursive ;;
1121
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122
    ac_init_help=short ;;
1123
 
1124
  -host | --host | --hos | --ho)
1125
    ac_prev=host_alias ;;
1126
  -host=* | --host=* | --hos=* | --ho=*)
1127
    host_alias=$ac_optarg ;;
1128
 
1129
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130
    ac_prev=htmldir ;;
1131
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132
  | --ht=*)
1133
    htmldir=$ac_optarg ;;
1134
 
1135
  -includedir | --includedir | --includedi | --included | --include \
1136
  | --includ | --inclu | --incl | --inc)
1137
    ac_prev=includedir ;;
1138
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1140
    includedir=$ac_optarg ;;
1141
 
1142
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1143
    ac_prev=infodir ;;
1144
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145
    infodir=$ac_optarg ;;
1146
 
1147
  -libdir | --libdir | --libdi | --libd)
1148
    ac_prev=libdir ;;
1149
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150
    libdir=$ac_optarg ;;
1151
 
1152
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153
  | --libexe | --libex | --libe)
1154
    ac_prev=libexecdir ;;
1155
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156
  | --libexe=* | --libex=* | --libe=*)
1157
    libexecdir=$ac_optarg ;;
1158
 
1159
  -localedir | --localedir | --localedi | --localed | --locale)
1160
    ac_prev=localedir ;;
1161
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162
    localedir=$ac_optarg ;;
1163
 
1164
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1165
  | --localstate | --localstat | --localsta | --localst | --locals)
1166
    ac_prev=localstatedir ;;
1167
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169
    localstatedir=$ac_optarg ;;
1170
 
1171
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172
    ac_prev=mandir ;;
1173
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174
    mandir=$ac_optarg ;;
1175
 
1176
  -nfp | --nfp | --nf)
1177
    # Obsolete; use --without-fp.
1178
    with_fp=no ;;
1179
 
1180
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181
  | --no-cr | --no-c | -n)
1182
    no_create=yes ;;
1183
 
1184
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186
    no_recursion=yes ;;
1187
 
1188
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190
  | --oldin | --oldi | --old | --ol | --o)
1191
    ac_prev=oldincludedir ;;
1192
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195
    oldincludedir=$ac_optarg ;;
1196
 
1197
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198
    ac_prev=prefix ;;
1199
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200
    prefix=$ac_optarg ;;
1201
 
1202
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203
  | --program-pre | --program-pr | --program-p)
1204
    ac_prev=program_prefix ;;
1205
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207
    program_prefix=$ac_optarg ;;
1208
 
1209
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210
  | --program-suf | --program-su | --program-s)
1211
    ac_prev=program_suffix ;;
1212
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214
    program_suffix=$ac_optarg ;;
1215
 
1216
  -program-transform-name | --program-transform-name \
1217
  | --program-transform-nam | --program-transform-na \
1218
  | --program-transform-n | --program-transform- \
1219
  | --program-transform | --program-transfor \
1220
  | --program-transfo | --program-transf \
1221
  | --program-trans | --program-tran \
1222
  | --progr-tra | --program-tr | --program-t)
1223
    ac_prev=program_transform_name ;;
1224
  -program-transform-name=* | --program-transform-name=* \
1225
  | --program-transform-nam=* | --program-transform-na=* \
1226
  | --program-transform-n=* | --program-transform-=* \
1227
  | --program-transform=* | --program-transfor=* \
1228
  | --program-transfo=* | --program-transf=* \
1229
  | --program-trans=* | --program-tran=* \
1230
  | --progr-tra=* | --program-tr=* | --program-t=*)
1231
    program_transform_name=$ac_optarg ;;
1232
 
1233
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234
    ac_prev=pdfdir ;;
1235
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236
    pdfdir=$ac_optarg ;;
1237
 
1238
  -psdir | --psdir | --psdi | --psd | --ps)
1239
    ac_prev=psdir ;;
1240
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241
    psdir=$ac_optarg ;;
1242
 
1243
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244
  | -silent | --silent | --silen | --sile | --sil)
1245
    silent=yes ;;
1246
 
1247
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248
    ac_prev=sbindir ;;
1249
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250
  | --sbi=* | --sb=*)
1251
    sbindir=$ac_optarg ;;
1252
 
1253
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255
  | --sharedst | --shareds | --shared | --share | --shar \
1256
  | --sha | --sh)
1257
    ac_prev=sharedstatedir ;;
1258
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261
  | --sha=* | --sh=*)
1262
    sharedstatedir=$ac_optarg ;;
1263
 
1264
  -site | --site | --sit)
1265
    ac_prev=site ;;
1266
  -site=* | --site=* | --sit=*)
1267
    site=$ac_optarg ;;
1268
 
1269
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270
    ac_prev=srcdir ;;
1271
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272
    srcdir=$ac_optarg ;;
1273
 
1274
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275
  | --syscon | --sysco | --sysc | --sys | --sy)
1276
    ac_prev=sysconfdir ;;
1277
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279
    sysconfdir=$ac_optarg ;;
1280
 
1281
  -target | --target | --targe | --targ | --tar | --ta | --t)
1282
    ac_prev=target_alias ;;
1283
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284
    target_alias=$ac_optarg ;;
1285
 
1286
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287
    verbose=yes ;;
1288
 
1289
  -version | --version | --versio | --versi | --vers | -V)
1290
    ac_init_version=: ;;
1291
 
1292
  -with-* | --with-*)
1293
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294
    # Reject names that are not valid shell variable names.
1295
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1297
   { (exit 1); exit 1; }; }
1298
    ac_useropt_orig=$ac_useropt
1299
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300
    case $ac_user_opts in
1301
      *"
1302
"with_$ac_useropt"
1303
"*) ;;
1304
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1305
         ac_unrecognized_sep=', ';;
1306
    esac
1307
    eval with_$ac_useropt=\$ac_optarg ;;
1308
 
1309
  -without-* | --without-*)
1310
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1311
    # Reject names that are not valid shell variable names.
1312
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1314
   { (exit 1); exit 1; }; }
1315
    ac_useropt_orig=$ac_useropt
1316
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317
    case $ac_user_opts in
1318
      *"
1319
"with_$ac_useropt"
1320
"*) ;;
1321
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322
         ac_unrecognized_sep=', ';;
1323
    esac
1324
    eval with_$ac_useropt=no ;;
1325
 
1326
  --x)
1327
    # Obsolete; use --with-x.
1328
    with_x=yes ;;
1329
 
1330
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331
  | --x-incl | --x-inc | --x-in | --x-i)
1332
    ac_prev=x_includes ;;
1333
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335
    x_includes=$ac_optarg ;;
1336
 
1337
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339
    ac_prev=x_libraries ;;
1340
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342
    x_libraries=$ac_optarg ;;
1343
 
1344
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1345
Try \`$0 --help' for more information." >&2
1346
   { (exit 1); exit 1; }; }
1347
    ;;
1348
 
1349
  *=*)
1350
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1351
    # Reject names that are not valid shell variable names.
1352
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1353
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1354
   { (exit 1); exit 1; }; }
1355
    eval $ac_envvar=\$ac_optarg
1356
    export $ac_envvar ;;
1357
 
1358
  *)
1359
    # FIXME: should be removed in autoconf 3.0.
1360
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1361
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1363
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1364
    ;;
1365
 
1366
  esac
1367
done
1368
 
1369
if test -n "$ac_prev"; then
1370
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1372
   { (exit 1); exit 1; }; }
1373
fi
1374
 
1375
if test -n "$ac_unrecognized_opts"; then
1376
  case $enable_option_checking in
1377
    no) ;;
1378
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1379
   { (exit 1); exit 1; }; } ;;
1380
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1381
  esac
1382
fi
1383
 
1384
# Check all directory arguments for consistency.
1385
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1386
                datadir sysconfdir sharedstatedir localstatedir includedir \
1387
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1388
                libdir localedir mandir
1389
do
1390
  eval ac_val=\$$ac_var
1391
  # Remove trailing slashes.
1392
  case $ac_val in
1393
    */ )
1394
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1395
      eval $ac_var=\$ac_val;;
1396
  esac
1397
  # Be sure to have absolute directory names.
1398
  case $ac_val in
1399
    [\\/$]* | ?:[\\/]* )  continue;;
1400
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1401
  esac
1402
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1403
   { (exit 1); exit 1; }; }
1404
done
1405
 
1406
# There might be people who depend on the old broken behavior: `$host'
1407
# used to hold the argument of --host etc.
1408
# FIXME: To remove some day.
1409
build=$build_alias
1410
host=$host_alias
1411
target=$target_alias
1412
 
1413
# FIXME: To remove some day.
1414
if test "x$host_alias" != x; then
1415
  if test "x$build_alias" = x; then
1416
    cross_compiling=maybe
1417
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1418
    If a cross compiler is detected then cross compile mode will be used." >&2
1419
  elif test "x$build_alias" != "x$host_alias"; then
1420
    cross_compiling=yes
1421
  fi
1422
fi
1423
 
1424
ac_tool_prefix=
1425
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1426
 
1427
test "$silent" = yes && exec 6>/dev/null
1428
 
1429
 
1430
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431
ac_ls_di=`ls -di .` &&
1432
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1434
   { (exit 1); exit 1; }; }
1435
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1436
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1437
   { (exit 1); exit 1; }; }
1438
 
1439
 
1440
# Find the source files, if location was not specified.
1441
if test -z "$srcdir"; then
1442
  ac_srcdir_defaulted=yes
1443
  # Try the directory containing this script, then the parent directory.
1444
  ac_confdir=`$as_dirname -- "$as_myself" ||
1445
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446
         X"$as_myself" : 'X\(//\)[^/]' \| \
1447
         X"$as_myself" : 'X\(//\)$' \| \
1448
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449
$as_echo X"$as_myself" |
1450
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451
            s//\1/
1452
            q
1453
          }
1454
          /^X\(\/\/\)[^/].*/{
1455
            s//\1/
1456
            q
1457
          }
1458
          /^X\(\/\/\)$/{
1459
            s//\1/
1460
            q
1461
          }
1462
          /^X\(\/\).*/{
1463
            s//\1/
1464
            q
1465
          }
1466
          s/.*/./; q'`
1467
  srcdir=$ac_confdir
1468
  if test ! -r "$srcdir/$ac_unique_file"; then
1469
    srcdir=..
1470
  fi
1471
else
1472
  ac_srcdir_defaulted=no
1473
fi
1474
if test ! -r "$srcdir/$ac_unique_file"; then
1475
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1477
   { (exit 1); exit 1; }; }
1478
fi
1479
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1480
ac_abs_confdir=`(
1481
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1482
   { (exit 1); exit 1; }; }
1483
        pwd)`
1484
# When building in place, set srcdir=.
1485
if test "$ac_abs_confdir" = "$ac_pwd"; then
1486
  srcdir=.
1487
fi
1488
# Remove unnecessary trailing slashes from srcdir.
1489
# Double slashes in file names in object file debugging info
1490
# mess up M-x gdb in Emacs.
1491
case $srcdir in
1492
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1493
esac
1494
for ac_var in $ac_precious_vars; do
1495
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1496
  eval ac_env_${ac_var}_value=\$${ac_var}
1497
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1498
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1499
done
1500
 
1501
#
1502
# Report the --help message.
1503
#
1504
if test "$ac_init_help" = "long"; then
1505
  # Omit some internal or obsolete options to make the list less imposing.
1506
  # This message is too long to be a string in the A/UX 3.1 sh.
1507
  cat <<_ACEOF
1508
\`configure' configures newlib 1.18.0 to adapt to many kinds of systems.
1509
 
1510
Usage: $0 [OPTION]... [VAR=VALUE]...
1511
 
1512
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1513
VAR=VALUE.  See below for descriptions of some of the useful variables.
1514
 
1515
Defaults for the options are specified in brackets.
1516
 
1517
Configuration:
1518
  -h, --help              display this help and exit
1519
      --help=short        display options specific to this package
1520
      --help=recursive    display the short help of all the included packages
1521
  -V, --version           display version information and exit
1522
  -q, --quiet, --silent   do not print \`checking...' messages
1523
      --cache-file=FILE   cache test results in FILE [disabled]
1524
  -C, --config-cache      alias for \`--cache-file=config.cache'
1525
  -n, --no-create         do not create output files
1526
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1527
 
1528
Installation directories:
1529
  --prefix=PREFIX         install architecture-independent files in PREFIX
1530
                          [$ac_default_prefix]
1531
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1532
                          [PREFIX]
1533
 
1534
By default, \`make install' will install all the files in
1535
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1536
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1537
for instance \`--prefix=\$HOME'.
1538
 
1539
For better control, use the options below.
1540
 
1541
Fine tuning of the installation directories:
1542
  --bindir=DIR            user executables [EPREFIX/bin]
1543
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1544
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1545
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1546
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1547
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1548
  --libdir=DIR            object code libraries [EPREFIX/lib]
1549
  --includedir=DIR        C header files [PREFIX/include]
1550
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1551
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1552
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1553
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1554
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1555
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1556
  --docdir=DIR            documentation root [DATAROOTDIR/doc/newlib]
1557
  --htmldir=DIR           html documentation [DOCDIR]
1558
  --dvidir=DIR            dvi documentation [DOCDIR]
1559
  --pdfdir=DIR            pdf documentation [DOCDIR]
1560
  --psdir=DIR             ps documentation [DOCDIR]
1561
_ACEOF
1562
 
1563
  cat <<\_ACEOF
1564
 
1565
Program names:
1566
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1567
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1568
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1569
 
1570
System types:
1571
  --build=BUILD     configure for building on BUILD [guessed]
1572
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1573
_ACEOF
1574
fi
1575
 
1576
if test -n "$ac_init_help"; then
1577
  case $ac_init_help in
1578
     short | recursive ) echo "Configuration of newlib 1.18.0:";;
1579
   esac
1580
  cat <<\_ACEOF
1581
 
1582
Optional Features:
1583
  --disable-option-checking  ignore unrecognized --enable/--with options
1584
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1585
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1586
  --enable-multilib         build many library versions (default)
1587
  --enable-target-optspace  optimize for space
1588
  --enable-malloc-debugging indicate malloc debugging requested
1589
  --enable-newlib-multithread        enable support for multiple threads
1590
  --enable-newlib-iconv     enable iconv library support
1591
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1592
  --disable-newlib-io-float disable printf/scanf family float support
1593
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1594
  --disable-dependency-tracking  speeds up one-time build
1595
  --enable-dependency-tracking   do not reject slow dependency extractors
1596
  --enable-maintainer-mode  enable make rules and dependencies not useful
1597
                          (and sometimes confusing) to the casual installer
1598
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1599
  --enable-static[=PKGS]  build static libraries [default=yes]
1600
  --enable-fast-install[=PKGS]
1601
                          optimize for fast installation [default=yes]
1602
  --disable-libtool-lock  avoid locking (might break parallel builds)
1603
 
1604
Optional Packages:
1605
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1606
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1607
  --with-pic              try to use only PIC/non-PIC objects [default=use
1608
                          both]
1609
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1610
 
1611
Some influential environment variables:
1612
  CCAS        assembler compiler command (defaults to CC)
1613
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1614
  CC          C compiler command
1615
  CFLAGS      C compiler flags
1616
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1617
              nonstandard directory 
1618
  LIBS        libraries to pass to the linker, e.g. -l
1619
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1620
              you have headers in a nonstandard directory 
1621
  CPP         C preprocessor
1622
 
1623
Use these variables to override the choices made by `configure' or to help
1624
it to find libraries and programs with nonstandard names/locations.
1625
 
1626
_ACEOF
1627
ac_status=$?
1628
fi
1629
 
1630
if test "$ac_init_help" = "recursive"; then
1631
  # If there are subdirs, report their specific --help.
1632
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633
    test -d "$ac_dir" ||
1634
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1635
      continue
1636
    ac_builddir=.
1637
 
1638
case "$ac_dir" in
1639
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640
*)
1641
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1642
  # A ".." for each directory in $ac_dir_suffix.
1643
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1644
  case $ac_top_builddir_sub in
1645
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647
  esac ;;
1648
esac
1649
ac_abs_top_builddir=$ac_pwd
1650
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1651
# for backward compatibility:
1652
ac_top_builddir=$ac_top_build_prefix
1653
 
1654
case $srcdir in
1655
  .)  # We are building in place.
1656
    ac_srcdir=.
1657
    ac_top_srcdir=$ac_top_builddir_sub
1658
    ac_abs_top_srcdir=$ac_pwd ;;
1659
  [\\/]* | ?:[\\/]* )  # Absolute name.
1660
    ac_srcdir=$srcdir$ac_dir_suffix;
1661
    ac_top_srcdir=$srcdir
1662
    ac_abs_top_srcdir=$srcdir ;;
1663
  *) # Relative name.
1664
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1666
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1667
esac
1668
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1669
 
1670
    cd "$ac_dir" || { ac_status=$?; continue; }
1671
    # Check for guested configure.
1672
    if test -f "$ac_srcdir/configure.gnu"; then
1673
      echo &&
1674
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675
    elif test -f "$ac_srcdir/configure"; then
1676
      echo &&
1677
      $SHELL "$ac_srcdir/configure" --help=recursive
1678
    else
1679
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680
    fi || ac_status=$?
1681
    cd "$ac_pwd" || { ac_status=$?; break; }
1682
  done
1683
fi
1684
 
1685
test -n "$ac_init_help" && exit $ac_status
1686
if $ac_init_version; then
1687
  cat <<\_ACEOF
1688
newlib configure 1.18.0
1689
generated by GNU Autoconf 2.63
1690
 
1691
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1692
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1693
This configure script is free software; the Free Software Foundation
1694
gives unlimited permission to copy, distribute and modify it.
1695
_ACEOF
1696
  exit
1697
fi
1698
cat >config.log <<_ACEOF
1699
This file contains any messages produced by compilers while
1700
running configure, to aid debugging if configure makes a mistake.
1701
 
1702
It was created by newlib $as_me 1.18.0, which was
1703
generated by GNU Autoconf 2.63.  Invocation command line was
1704
 
1705
  $ $0 $@
1706
 
1707
_ACEOF
1708
exec 5>>config.log
1709
{
1710
cat <<_ASUNAME
1711
## --------- ##
1712
## Platform. ##
1713
## --------- ##
1714
 
1715
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1716
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1717
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1718
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1719
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1720
 
1721
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1722
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1723
 
1724
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1725
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1726
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1727
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1728
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1729
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1730
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1731
 
1732
_ASUNAME
1733
 
1734
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735
for as_dir in $PATH
1736
do
1737
  IFS=$as_save_IFS
1738
  test -z "$as_dir" && as_dir=.
1739
  $as_echo "PATH: $as_dir"
1740
done
1741
IFS=$as_save_IFS
1742
 
1743
} >&5
1744
 
1745
cat >&5 <<_ACEOF
1746
 
1747
 
1748
## ----------- ##
1749
## Core tests. ##
1750
## ----------- ##
1751
 
1752
_ACEOF
1753
 
1754
 
1755
# Keep a trace of the command line.
1756
# Strip out --no-create and --no-recursion so they do not pile up.
1757
# Strip out --silent because we don't want to record it for future runs.
1758
# Also quote any args containing shell meta-characters.
1759
# Make two passes to allow for proper duplicate-argument suppression.
1760
ac_configure_args=
1761
ac_configure_args0=
1762
ac_configure_args1=
1763
ac_must_keep_next=false
1764
for ac_pass in 1 2
1765
do
1766
  for ac_arg
1767
  do
1768
    case $ac_arg in
1769
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1770
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1771
    | -silent | --silent | --silen | --sile | --sil)
1772
      continue ;;
1773
    *\'*)
1774
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1775
    esac
1776
    case $ac_pass in
1777
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1778
    2)
1779
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1780
      if test $ac_must_keep_next = true; then
1781
        ac_must_keep_next=false # Got value, back to normal.
1782
      else
1783
        case $ac_arg in
1784
          *=* | --config-cache | -C | -disable-* | --disable-* \
1785
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1786
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1787
          | -with-* | --with-* | -without-* | --without-* | --x)
1788
            case "$ac_configure_args0 " in
1789
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1790
            esac
1791
            ;;
1792
          -* ) ac_must_keep_next=true ;;
1793
        esac
1794
      fi
1795
      ac_configure_args="$ac_configure_args '$ac_arg'"
1796
      ;;
1797
    esac
1798
  done
1799
done
1800
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1801
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1802
 
1803
# When interrupted or exit'd, cleanup temporary files, and complete
1804
# config.log.  We remove comments because anyway the quotes in there
1805
# would cause problems or look ugly.
1806
# WARNING: Use '\'' to represent an apostrophe within the trap.
1807
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1808
trap 'exit_status=$?
1809
  # Save into config.log some information that might help in debugging.
1810
  {
1811
    echo
1812
 
1813
    cat <<\_ASBOX
1814
## ---------------- ##
1815
## Cache variables. ##
1816
## ---------------- ##
1817
_ASBOX
1818
    echo
1819
    # The following way of writing the cache mishandles newlines in values,
1820
(
1821
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1822
    eval ac_val=\$$ac_var
1823
    case $ac_val in #(
1824
    *${as_nl}*)
1825
      case $ac_var in #(
1826
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1827
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1828
      esac
1829
      case $ac_var in #(
1830
      _ | IFS | as_nl) ;; #(
1831
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1832
      *) $as_unset $ac_var ;;
1833
      esac ;;
1834
    esac
1835
  done
1836
  (set) 2>&1 |
1837
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1838
    *${as_nl}ac_space=\ *)
1839
      sed -n \
1840
        "s/'\''/'\''\\\\'\'''\''/g;
1841
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1842
      ;; #(
1843
    *)
1844
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1845
      ;;
1846
    esac |
1847
    sort
1848
)
1849
    echo
1850
 
1851
    cat <<\_ASBOX
1852
## ----------------- ##
1853
## Output variables. ##
1854
## ----------------- ##
1855
_ASBOX
1856
    echo
1857
    for ac_var in $ac_subst_vars
1858
    do
1859
      eval ac_val=\$$ac_var
1860
      case $ac_val in
1861
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1862
      esac
1863
      $as_echo "$ac_var='\''$ac_val'\''"
1864
    done | sort
1865
    echo
1866
 
1867
    if test -n "$ac_subst_files"; then
1868
      cat <<\_ASBOX
1869
## ------------------- ##
1870
## File substitutions. ##
1871
## ------------------- ##
1872
_ASBOX
1873
      echo
1874
      for ac_var in $ac_subst_files
1875
      do
1876
        eval ac_val=\$$ac_var
1877
        case $ac_val in
1878
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879
        esac
1880
        $as_echo "$ac_var='\''$ac_val'\''"
1881
      done | sort
1882
      echo
1883
    fi
1884
 
1885
    if test -s confdefs.h; then
1886
      cat <<\_ASBOX
1887
## ----------- ##
1888
## confdefs.h. ##
1889
## ----------- ##
1890
_ASBOX
1891
      echo
1892
      cat confdefs.h
1893
      echo
1894
    fi
1895
    test "$ac_signal" != 0 &&
1896
      $as_echo "$as_me: caught signal $ac_signal"
1897
    $as_echo "$as_me: exit $exit_status"
1898
  } >&5
1899
  rm -f core *.core core.conftest.* &&
1900
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1901
    exit $exit_status
1902
' 0
1903
for ac_signal in 1 2 13 15; do
1904
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1905
done
1906
ac_signal=0
1907
 
1908
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1909
rm -f -r conftest* confdefs.h
1910
 
1911
# Predefined preprocessor variables.
1912
 
1913
cat >>confdefs.h <<_ACEOF
1914
#define PACKAGE_NAME "$PACKAGE_NAME"
1915
_ACEOF
1916
 
1917
 
1918
cat >>confdefs.h <<_ACEOF
1919
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1920
_ACEOF
1921
 
1922
 
1923
cat >>confdefs.h <<_ACEOF
1924
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1925
_ACEOF
1926
 
1927
 
1928
cat >>confdefs.h <<_ACEOF
1929
#define PACKAGE_STRING "$PACKAGE_STRING"
1930
_ACEOF
1931
 
1932
 
1933
cat >>confdefs.h <<_ACEOF
1934
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1935
_ACEOF
1936
 
1937
 
1938
# Let the site file select an alternate cache file if it wants to.
1939
# Prefer an explicitly selected file to automatically selected ones.
1940
ac_site_file1=NONE
1941
ac_site_file2=NONE
1942
if test -n "$CONFIG_SITE"; then
1943
  ac_site_file1=$CONFIG_SITE
1944
elif test "x$prefix" != xNONE; then
1945
  ac_site_file1=$prefix/share/config.site
1946
  ac_site_file2=$prefix/etc/config.site
1947
else
1948
  ac_site_file1=$ac_default_prefix/share/config.site
1949
  ac_site_file2=$ac_default_prefix/etc/config.site
1950
fi
1951
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1952
do
1953
  test "x$ac_site_file" = xNONE && continue
1954
  if test -r "$ac_site_file"; then
1955
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1956
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1957
    sed 's/^/| /' "$ac_site_file" >&5
1958
    . "$ac_site_file"
1959
  fi
1960
done
1961
 
1962
if test -r "$cache_file"; then
1963
  # Some versions of bash will fail to source /dev/null (special
1964
  # files actually), so we avoid doing that.
1965
  if test -f "$cache_file"; then
1966
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1967
$as_echo "$as_me: loading cache $cache_file" >&6;}
1968
    case $cache_file in
1969
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1970
      *)                      . "./$cache_file";;
1971
    esac
1972
  fi
1973
else
1974
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1975
$as_echo "$as_me: creating cache $cache_file" >&6;}
1976
  >$cache_file
1977
fi
1978
 
1979
# Check that the precious variables saved in the cache have kept the same
1980
# value.
1981
ac_cache_corrupted=false
1982
for ac_var in $ac_precious_vars; do
1983
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984
  eval ac_new_set=\$ac_env_${ac_var}_set
1985
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986
  eval ac_new_val=\$ac_env_${ac_var}_value
1987
  case $ac_old_set,$ac_new_set in
1988
    set,)
1989
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991
      ac_cache_corrupted=: ;;
1992
    ,set)
1993
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1994
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995
      ac_cache_corrupted=: ;;
1996
    ,);;
1997
    *)
1998
      if test "x$ac_old_val" != "x$ac_new_val"; then
1999
        # differences in whitespace do not lead to failure.
2000
        ac_old_val_w=`echo x $ac_old_val`
2001
        ac_new_val_w=`echo x $ac_new_val`
2002
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2003
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2004
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2005
          ac_cache_corrupted=:
2006
        else
2007
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2008
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2009
          eval $ac_var=\$ac_old_val
2010
        fi
2011
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2012
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2013
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2014
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2015
      fi;;
2016
  esac
2017
  # Pass precious variables to config.status.
2018
  if test "$ac_new_set" = set; then
2019
    case $ac_new_val in
2020
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2021
    *) ac_arg=$ac_var=$ac_new_val ;;
2022
    esac
2023
    case " $ac_configure_args " in
2024
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2025
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2026
    esac
2027
  fi
2028
done
2029
if $ac_cache_corrupted; then
2030
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2031
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2032
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2033
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2034
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2035
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2036
   { (exit 1); exit 1; }; }
2037
fi
2038
 
2039
 
2040
 
2041
 
2042
 
2043
 
2044
 
2045
 
2046
 
2047
 
2048
 
2049
 
2050
 
2051
 
2052
 
2053
 
2054
 
2055
 
2056
 
2057
 
2058
 
2059
 
2060
 
2061
 
2062
 
2063
ac_ext=c
2064
ac_cpp='$CPP $CPPFLAGS'
2065
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2066
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2067
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2068
 
2069
 
2070
 
2071
 
2072
ac_aux_dir=
2073
for ac_dir in ../../../../../.. "$srcdir"/../../../../../..; do
2074
  if test -f "$ac_dir/install-sh"; then
2075
    ac_aux_dir=$ac_dir
2076
    ac_install_sh="$ac_aux_dir/install-sh -c"
2077
    break
2078
  elif test -f "$ac_dir/install.sh"; then
2079
    ac_aux_dir=$ac_dir
2080
    ac_install_sh="$ac_aux_dir/install.sh -c"
2081
    break
2082
  elif test -f "$ac_dir/shtool"; then
2083
    ac_aux_dir=$ac_dir
2084
    ac_install_sh="$ac_aux_dir/shtool install -c"
2085
    break
2086
  fi
2087
done
2088
if test -z "$ac_aux_dir"; then
2089
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../../../.. \"$srcdir\"/../../../../../.." >&5
2090
$as_echo "$as_me: error: cannot find install-sh or install.sh in ../../../../../.. \"$srcdir\"/../../../../../.." >&2;}
2091
   { (exit 1); exit 1; }; }
2092
fi
2093
 
2094
# These three variables are undocumented and unsupported,
2095
# and are intended to be withdrawn in a future Autoconf release.
2096
# They can cause serious problems if a builder's source tree is in a directory
2097
# whose full name contains unusual characters.
2098
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2099
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2100
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2101
 
2102
 
2103
 
2104
 
2105
# Make sure we can run config.sub.
2106
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2107
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2108
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2109
   { (exit 1); exit 1; }; }
2110
 
2111
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2112
$as_echo_n "checking build system type... " >&6; }
2113
if test "${ac_cv_build+set}" = set; then
2114
  $as_echo_n "(cached) " >&6
2115
else
2116
  ac_build_alias=$build_alias
2117
test "x$ac_build_alias" = x &&
2118
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2119
test "x$ac_build_alias" = x &&
2120
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2121
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2122
   { (exit 1); exit 1; }; }
2123
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2124
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2125
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2126
   { (exit 1); exit 1; }; }
2127
 
2128
fi
2129
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2130
$as_echo "$ac_cv_build" >&6; }
2131
case $ac_cv_build in
2132
*-*-*) ;;
2133
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2134
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2135
   { (exit 1); exit 1; }; };;
2136
esac
2137
build=$ac_cv_build
2138
ac_save_IFS=$IFS; IFS='-'
2139
set x $ac_cv_build
2140
shift
2141
build_cpu=$1
2142
build_vendor=$2
2143
shift; shift
2144
# Remember, the first character of IFS is used to create $*,
2145
# except with old shells:
2146
build_os=$*
2147
IFS=$ac_save_IFS
2148
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2149
 
2150
 
2151
am__api_version='1.11'
2152
 
2153
# Find a good install program.  We prefer a C program (faster),
2154
# so one script is as good as another.  But avoid the broken or
2155
# incompatible versions:
2156
# SysV /etc/install, /usr/sbin/install
2157
# SunOS /usr/etc/install
2158
# IRIX /sbin/install
2159
# AIX /bin/install
2160
# AmigaOS /C/install, which installs bootblocks on floppy discs
2161
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2162
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2163
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2164
# OS/2's system install, which has a completely different semantic
2165
# ./install, which can be erroneously created by make from ./install.sh.
2166
# Reject install programs that cannot install multiple files.
2167
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2168
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2169
if test -z "$INSTALL"; then
2170
if test "${ac_cv_path_install+set}" = set; then
2171
  $as_echo_n "(cached) " >&6
2172
else
2173
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174
for as_dir in $PATH
2175
do
2176
  IFS=$as_save_IFS
2177
  test -z "$as_dir" && as_dir=.
2178
  # Account for people who put trailing slashes in PATH elements.
2179
case $as_dir/ in
2180
  ./ | .// | /cC/* | \
2181
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2182
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2183
  /usr/ucb/* ) ;;
2184
  *)
2185
    # OSF1 and SCO ODT 3.0 have their own names for install.
2186
    # Don't use installbsd from OSF since it installs stuff as root
2187
    # by default.
2188
    for ac_prog in ginstall scoinst install; do
2189
      for ac_exec_ext in '' $ac_executable_extensions; do
2190
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2191
          if test $ac_prog = install &&
2192
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2193
            # AIX install.  It has an incompatible calling convention.
2194
            :
2195
          elif test $ac_prog = install &&
2196
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2197
            # program-specific install script used by HP pwplus--don't use.
2198
            :
2199
          else
2200
            rm -rf conftest.one conftest.two conftest.dir
2201
            echo one > conftest.one
2202
            echo two > conftest.two
2203
            mkdir conftest.dir
2204
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2205
              test -s conftest.one && test -s conftest.two &&
2206
              test -s conftest.dir/conftest.one &&
2207
              test -s conftest.dir/conftest.two
2208
            then
2209
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2210
              break 3
2211
            fi
2212
          fi
2213
        fi
2214
      done
2215
    done
2216
    ;;
2217
esac
2218
 
2219
done
2220
IFS=$as_save_IFS
2221
 
2222
rm -rf conftest.one conftest.two conftest.dir
2223
 
2224
fi
2225
  if test "${ac_cv_path_install+set}" = set; then
2226
    INSTALL=$ac_cv_path_install
2227
  else
2228
    # As a last resort, use the slow shell script.  Don't cache a
2229
    # value for INSTALL within a source directory, because that will
2230
    # break other packages using the cache if that directory is
2231
    # removed, or if the value is a relative name.
2232
    INSTALL=$ac_install_sh
2233
  fi
2234
fi
2235
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2236
$as_echo "$INSTALL" >&6; }
2237
 
2238
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2239
# It thinks the first close brace ends the variable substitution.
2240
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2241
 
2242
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2243
 
2244
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2245
 
2246
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2247
$as_echo_n "checking whether build environment is sane... " >&6; }
2248
# Just in case
2249
sleep 1
2250
echo timestamp > conftest.file
2251
# Reject unsafe characters in $srcdir or the absolute working directory
2252
# name.  Accept space and tab only in the latter.
2253
am_lf='
2254
'
2255
case `pwd` in
2256
  *[\\\"\#\$\&\'\`$am_lf]*)
2257
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2258
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2259
   { (exit 1); exit 1; }; };;
2260
esac
2261
case $srcdir in
2262
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2263
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2264
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2265
   { (exit 1); exit 1; }; };;
2266
esac
2267
 
2268
# Do `set' in a subshell so we don't clobber the current shell's
2269
# arguments.  Must try -L first in case configure is actually a
2270
# symlink; some systems play weird games with the mod time of symlinks
2271
# (eg FreeBSD returns the mod time of the symlink's containing
2272
# directory).
2273
if (
2274
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2275
   if test "$*" = "X"; then
2276
      # -L didn't work.
2277
      set X `ls -t "$srcdir/configure" conftest.file`
2278
   fi
2279
   rm -f conftest.file
2280
   if test "$*" != "X $srcdir/configure conftest.file" \
2281
      && test "$*" != "X conftest.file $srcdir/configure"; then
2282
 
2283
      # If neither matched, then we have a broken ls.  This can happen
2284
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2285
      # broken ls alias from the environment.  This has actually
2286
      # happened.  Such a system could not be considered "sane".
2287
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2288
alias in your environment" >&5
2289
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2290
alias in your environment" >&2;}
2291
   { (exit 1); exit 1; }; }
2292
   fi
2293
 
2294
   test "$2" = conftest.file
2295
   )
2296
then
2297
   # Ok.
2298
   :
2299
else
2300
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2301
Check your system clock" >&5
2302
$as_echo "$as_me: error: newly created file is older than distributed files!
2303
Check your system clock" >&2;}
2304
   { (exit 1); exit 1; }; }
2305
fi
2306
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2307
$as_echo "yes" >&6; }
2308
test "$program_prefix" != NONE &&
2309
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2310
# Use a double $ so make ignores it.
2311
test "$program_suffix" != NONE &&
2312
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2313
# Double any \ or $.
2314
# By default was `s,x,x', remove it if useless.
2315
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2316
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2317
 
2318
# expand $ac_aux_dir to an absolute path
2319
am_aux_dir=`cd $ac_aux_dir && pwd`
2320
 
2321
if test x"${MISSING+set}" != xset; then
2322
  case $am_aux_dir in
2323
  *\ * | *\     *)
2324
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2325
  *)
2326
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2327
  esac
2328
fi
2329
# Use eval to expand $SHELL
2330
if eval "$MISSING --run true"; then
2331
  am_missing_run="$MISSING --run "
2332
else
2333
  am_missing_run=
2334
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2335
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2336
fi
2337
 
2338
if test x"${install_sh}" != xset; then
2339
  case $am_aux_dir in
2340
  *\ * | *\     *)
2341
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2342
  *)
2343
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2344
  esac
2345
fi
2346
 
2347
# Installed binaries are usually stripped using `strip' when the user
2348
# run `make install-strip'.  However `strip' might not be the right
2349
# tool to use in cross-compilation environments, therefore Automake
2350
# will honor the `STRIP' environment variable to overrule this program.
2351
if test "$cross_compiling" != no; then
2352
  if test -n "$ac_tool_prefix"; then
2353
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2354
set dummy ${ac_tool_prefix}strip; ac_word=$2
2355
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2356
$as_echo_n "checking for $ac_word... " >&6; }
2357
if test "${ac_cv_prog_STRIP+set}" = set; then
2358
  $as_echo_n "(cached) " >&6
2359
else
2360
  if test -n "$STRIP"; then
2361
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2362
else
2363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364
for as_dir in $PATH
2365
do
2366
  IFS=$as_save_IFS
2367
  test -z "$as_dir" && as_dir=.
2368
  for ac_exec_ext in '' $ac_executable_extensions; do
2369
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2371
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372
    break 2
2373
  fi
2374
done
2375
done
2376
IFS=$as_save_IFS
2377
 
2378
fi
2379
fi
2380
STRIP=$ac_cv_prog_STRIP
2381
if test -n "$STRIP"; then
2382
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2383
$as_echo "$STRIP" >&6; }
2384
else
2385
  { $as_echo "$as_me:$LINENO: result: no" >&5
2386
$as_echo "no" >&6; }
2387
fi
2388
 
2389
 
2390
fi
2391
if test -z "$ac_cv_prog_STRIP"; then
2392
  ac_ct_STRIP=$STRIP
2393
  # Extract the first word of "strip", so it can be a program name with args.
2394
set dummy strip; ac_word=$2
2395
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2396
$as_echo_n "checking for $ac_word... " >&6; }
2397
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2398
  $as_echo_n "(cached) " >&6
2399
else
2400
  if test -n "$ac_ct_STRIP"; then
2401
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2402
else
2403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404
for as_dir in $PATH
2405
do
2406
  IFS=$as_save_IFS
2407
  test -z "$as_dir" && as_dir=.
2408
  for ac_exec_ext in '' $ac_executable_extensions; do
2409
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410
    ac_cv_prog_ac_ct_STRIP="strip"
2411
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412
    break 2
2413
  fi
2414
done
2415
done
2416
IFS=$as_save_IFS
2417
 
2418
fi
2419
fi
2420
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2421
if test -n "$ac_ct_STRIP"; then
2422
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2423
$as_echo "$ac_ct_STRIP" >&6; }
2424
else
2425
  { $as_echo "$as_me:$LINENO: result: no" >&5
2426
$as_echo "no" >&6; }
2427
fi
2428
 
2429
  if test "x$ac_ct_STRIP" = x; then
2430
    STRIP=":"
2431
  else
2432
    case $cross_compiling:$ac_tool_warned in
2433
yes:)
2434
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2435
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2436
ac_tool_warned=yes ;;
2437
esac
2438
    STRIP=$ac_ct_STRIP
2439
  fi
2440
else
2441
  STRIP="$ac_cv_prog_STRIP"
2442
fi
2443
 
2444
fi
2445
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2446
 
2447
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2448
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2449
if test -z "$MKDIR_P"; then
2450
  if test "${ac_cv_path_mkdir+set}" = set; then
2451
  $as_echo_n "(cached) " >&6
2452
else
2453
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2455
do
2456
  IFS=$as_save_IFS
2457
  test -z "$as_dir" && as_dir=.
2458
  for ac_prog in mkdir gmkdir; do
2459
         for ac_exec_ext in '' $ac_executable_extensions; do
2460
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2461
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2462
             'mkdir (GNU coreutils) '* | \
2463
             'mkdir (coreutils) '* | \
2464
             'mkdir (fileutils) '4.1*)
2465
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2466
               break 3;;
2467
           esac
2468
         done
2469
       done
2470
done
2471
IFS=$as_save_IFS
2472
 
2473
fi
2474
 
2475
  if test "${ac_cv_path_mkdir+set}" = set; then
2476
    MKDIR_P="$ac_cv_path_mkdir -p"
2477
  else
2478
    # As a last resort, use the slow shell script.  Don't cache a
2479
    # value for MKDIR_P within a source directory, because that will
2480
    # break other packages using the cache if that directory is
2481
    # removed, or if the value is a relative name.
2482
    test -d ./--version && rmdir ./--version
2483
    MKDIR_P="$ac_install_sh -d"
2484
  fi
2485
fi
2486
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2487
$as_echo "$MKDIR_P" >&6; }
2488
 
2489
mkdir_p="$MKDIR_P"
2490
case $mkdir_p in
2491
  [\\/$]* | ?:[\\/]*) ;;
2492
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2493
esac
2494
 
2495
for ac_prog in gawk mawk nawk awk
2496
do
2497
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2498
set dummy $ac_prog; ac_word=$2
2499
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2500
$as_echo_n "checking for $ac_word... " >&6; }
2501
if test "${ac_cv_prog_AWK+set}" = set; then
2502
  $as_echo_n "(cached) " >&6
2503
else
2504
  if test -n "$AWK"; then
2505
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2506
else
2507
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508
for as_dir in $PATH
2509
do
2510
  IFS=$as_save_IFS
2511
  test -z "$as_dir" && as_dir=.
2512
  for ac_exec_ext in '' $ac_executable_extensions; do
2513
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514
    ac_cv_prog_AWK="$ac_prog"
2515
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516
    break 2
2517
  fi
2518
done
2519
done
2520
IFS=$as_save_IFS
2521
 
2522
fi
2523
fi
2524
AWK=$ac_cv_prog_AWK
2525
if test -n "$AWK"; then
2526
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2527
$as_echo "$AWK" >&6; }
2528
else
2529
  { $as_echo "$as_me:$LINENO: result: no" >&5
2530
$as_echo "no" >&6; }
2531
fi
2532
 
2533
 
2534
  test -n "$AWK" && break
2535
done
2536
 
2537
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2538
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2539
set x ${MAKE-make}
2540
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2541
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2542
  $as_echo_n "(cached) " >&6
2543
else
2544
  cat >conftest.make <<\_ACEOF
2545
SHELL = /bin/sh
2546
all:
2547
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2548
_ACEOF
2549
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2550
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2551
  *@@@%%%=?*=@@@%%%*)
2552
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2553
  *)
2554
    eval ac_cv_prog_make_${ac_make}_set=no;;
2555
esac
2556
rm -f conftest.make
2557
fi
2558
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2559
  { $as_echo "$as_me:$LINENO: result: yes" >&5
2560
$as_echo "yes" >&6; }
2561
  SET_MAKE=
2562
else
2563
  { $as_echo "$as_me:$LINENO: result: no" >&5
2564
$as_echo "no" >&6; }
2565
  SET_MAKE="MAKE=${MAKE-make}"
2566
fi
2567
 
2568
rm -rf .tst 2>/dev/null
2569
mkdir .tst 2>/dev/null
2570
if test -d .tst; then
2571
  am__leading_dot=.
2572
else
2573
  am__leading_dot=_
2574
fi
2575
rmdir .tst 2>/dev/null
2576
 
2577
DEPDIR="${am__leading_dot}deps"
2578
 
2579
ac_config_commands="$ac_config_commands depfiles"
2580
 
2581
 
2582
am_make=${MAKE-make}
2583
cat > confinc << 'END'
2584
am__doit:
2585
        @echo this is the am__doit target
2586
.PHONY: am__doit
2587
END
2588
# If we don't find an include directive, just comment out the code.
2589
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2590
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2591
am__include="#"
2592
am__quote=
2593
_am_result=none
2594
# First try GNU make style include.
2595
echo "include confinc" > confmf
2596
# Ignore all kinds of additional output from `make'.
2597
case `$am_make -s -f confmf 2> /dev/null` in #(
2598
*the\ am__doit\ target*)
2599
  am__include=include
2600
  am__quote=
2601
  _am_result=GNU
2602
  ;;
2603
esac
2604
# Now try BSD make style include.
2605
if test "$am__include" = "#"; then
2606
   echo '.include "confinc"' > confmf
2607
   case `$am_make -s -f confmf 2> /dev/null` in #(
2608
   *the\ am__doit\ target*)
2609
     am__include=.include
2610
     am__quote="\""
2611
     _am_result=BSD
2612
     ;;
2613
   esac
2614
fi
2615
 
2616
 
2617
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2618
$as_echo "$_am_result" >&6; }
2619
rm -f confinc confmf
2620
 
2621
# Check whether --enable-dependency-tracking was given.
2622
if test "${enable_dependency_tracking+set}" = set; then
2623
  enableval=$enable_dependency_tracking;
2624
fi
2625
 
2626
if test "x$enable_dependency_tracking" != xno; then
2627
  am_depcomp="$ac_aux_dir/depcomp"
2628
  AMDEPBACKSLASH='\'
2629
fi
2630
 if test "x$enable_dependency_tracking" != xno; then
2631
  AMDEP_TRUE=
2632
  AMDEP_FALSE='#'
2633
else
2634
  AMDEP_TRUE='#'
2635
  AMDEP_FALSE=
2636
fi
2637
 
2638
 
2639
 
2640
# Check whether --enable-multilib was given.
2641
if test "${enable_multilib+set}" = set; then
2642
  enableval=$enable_multilib; case "${enableval}" in
2643
  yes) multilib=yes ;;
2644
  no)  multilib=no ;;
2645
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2646
$as_echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2647
   { (exit 1); exit 1; }; } ;;
2648
 esac
2649
else
2650
  multilib=yes
2651
fi
2652
 
2653
# Check whether --enable-target-optspace was given.
2654
if test "${enable_target_optspace+set}" = set; then
2655
  enableval=$enable_target_optspace; case "${enableval}" in
2656
  yes) target_optspace=yes ;;
2657
  no)  target_optspace=no ;;
2658
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2659
$as_echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2660
   { (exit 1); exit 1; }; } ;;
2661
 esac
2662
else
2663
  target_optspace=
2664
fi
2665
 
2666
# Check whether --enable-malloc-debugging was given.
2667
if test "${enable_malloc_debugging+set}" = set; then
2668
  enableval=$enable_malloc_debugging; case "${enableval}" in
2669
  yes) malloc_debugging=yes ;;
2670
  no)  malloc_debugging=no ;;
2671
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2672
$as_echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2673
   { (exit 1); exit 1; }; } ;;
2674
 esac
2675
else
2676
  malloc_debugging=
2677
fi
2678
 
2679
# Check whether --enable-newlib-multithread was given.
2680
if test "${enable_newlib_multithread+set}" = set; then
2681
  enableval=$enable_newlib_multithread; case "${enableval}" in
2682
  yes) newlib_multithread=yes ;;
2683
  no)  newlib_multithread=no ;;
2684
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2685
$as_echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2686
   { (exit 1); exit 1; }; } ;;
2687
 esac
2688
else
2689
  newlib_multithread=yes
2690
fi
2691
 
2692
# Check whether --enable-newlib-iconv was given.
2693
if test "${enable_newlib_iconv+set}" = set; then
2694
  enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2695
   case "${enableval}" in
2696
     yes) newlib_iconv=yes ;;
2697
     no)  newlib_iconv=no ;;
2698
     *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2699
$as_echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2700
   { (exit 1); exit 1; }; } ;;
2701
   esac
2702
 fi
2703
else
2704
  newlib_iconv=${newlib_iconv}
2705
fi
2706
 
2707
# Check whether --enable-newlib-elix-level was given.
2708
if test "${enable_newlib_elix_level+set}" = set; then
2709
  enableval=$enable_newlib_elix_level; case "${enableval}" in
2710
  0)   newlib_elix_level=0 ;;
2711
  1)   newlib_elix_level=1 ;;
2712
  2)   newlib_elix_level=2 ;;
2713
  3)   newlib_elix_level=3 ;;
2714
  4)   newlib_elix_level=4 ;;
2715
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2716
$as_echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2717
   { (exit 1); exit 1; }; } ;;
2718
 esac
2719
else
2720
  newlib_elix_level=0
2721
fi
2722
 
2723
# Check whether --enable-newlib-io-float was given.
2724
if test "${enable_newlib_io_float+set}" = set; then
2725
  enableval=$enable_newlib_io_float; case "${enableval}" in
2726
  yes) newlib_io_float=yes ;;
2727
  no)  newlib_io_float=no ;;
2728
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2729
$as_echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2730
   { (exit 1); exit 1; }; } ;;
2731
 esac
2732
else
2733
  newlib_io_float=yes
2734
fi
2735
 
2736
# Check whether --enable-newlib-supplied-syscalls was given.
2737
if test "${enable_newlib_supplied_syscalls+set}" = set; then
2738
  enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2739
  yes) newlib_may_supply_syscalls=yes ;;
2740
  no)  newlib_may_supply_syscalls=no ;;
2741
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2742
$as_echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2743
   { (exit 1); exit 1; }; } ;;
2744
 esac
2745
else
2746
  newlib_may_supply_syscalls=yes
2747
fi
2748
 
2749
 if test x${newlib_may_supply_syscalls} = xyes; then
2750
  MAY_SUPPLY_SYSCALLS_TRUE=
2751
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2752
else
2753
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2754
  MAY_SUPPLY_SYSCALLS_FALSE=
2755
fi
2756
 
2757
 
2758
 
2759
test -z "${with_target_subdir}" && with_target_subdir=.
2760
 
2761
if test "${srcdir}" = "."; then
2762
  if test "${with_target_subdir}" != "."; then
2763
    newlib_basedir="${srcdir}/${with_multisrctop}../../../../../.."
2764
  else
2765
    newlib_basedir="${srcdir}/${with_multisrctop}../../../../.."
2766
  fi
2767
else
2768
  newlib_basedir="${srcdir}/../../../../.."
2769
fi
2770
 
2771
 
2772
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2773
$as_echo_n "checking host system type... " >&6; }
2774
if test "${ac_cv_host+set}" = set; then
2775
  $as_echo_n "(cached) " >&6
2776
else
2777
  if test "x$host_alias" = x; then
2778
  ac_cv_host=$ac_cv_build
2779
else
2780
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2781
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2782
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2783
   { (exit 1); exit 1; }; }
2784
fi
2785
 
2786
fi
2787
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2788
$as_echo "$ac_cv_host" >&6; }
2789
case $ac_cv_host in
2790
*-*-*) ;;
2791
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2792
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2793
   { (exit 1); exit 1; }; };;
2794
esac
2795
host=$ac_cv_host
2796
ac_save_IFS=$IFS; IFS='-'
2797
set x $ac_cv_host
2798
shift
2799
host_cpu=$1
2800
host_vendor=$2
2801
shift; shift
2802
# Remember, the first character of IFS is used to create $*,
2803
# except with old shells:
2804
host_os=$*
2805
IFS=$ac_save_IFS
2806
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2807
 
2808
 
2809
 
2810
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2811
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2812
  # is not polluted with repeated "-I."
2813
  am__isrc=' -I$(srcdir)'
2814
  # test to see if srcdir already configured
2815
  if test -f $srcdir/config.status; then
2816
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2817
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2818
   { (exit 1); exit 1; }; }
2819
  fi
2820
fi
2821
 
2822
# test whether we have cygpath
2823
if test -z "$CYGPATH_W"; then
2824
  if (cygpath --version) >/dev/null 2>/dev/null; then
2825
    CYGPATH_W='cygpath -w'
2826
  else
2827
    CYGPATH_W=echo
2828
  fi
2829
fi
2830
 
2831
 
2832
# Define the identity of the package.
2833
 PACKAGE='newlib'
2834
 VERSION='1.18.0'
2835
 
2836
 
2837
# Some tools Automake needs.
2838
 
2839
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2840
 
2841
 
2842
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2843
 
2844
 
2845
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2846
 
2847
 
2848
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2849
 
2850
 
2851
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2852
 
2853
# We need awk for the "check" target.  The system "awk" is bad on
2854
# some platforms.
2855
# Always define AMTAR for backward compatibility.
2856
 
2857
AMTAR=${AMTAR-"${am_missing_run}tar"}
2858
 
2859
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2860
 
2861
 
2862
 
2863
 
2864
 
2865
 
2866
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2867
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2868
# are probably using a cross compiler, which will not be able to fully
2869
# link an executable.  This should really be fixed in autoconf
2870
# itself.
2871
 
2872
 
2873
 
2874
 
2875
 
2876
 
2877
 
2878
# Extract the first word of "gcc", so it can be a program name with args.
2879
set dummy gcc; ac_word=$2
2880
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2881
$as_echo_n "checking for $ac_word... " >&6; }
2882
if test "${ac_cv_prog_CC+set}" = set; then
2883
  $as_echo_n "(cached) " >&6
2884
else
2885
  if test -n "$CC"; then
2886
  ac_cv_prog_CC="$CC" # Let the user override the test.
2887
else
2888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889
for as_dir in $PATH
2890
do
2891
  IFS=$as_save_IFS
2892
  test -z "$as_dir" && as_dir=.
2893
  for ac_exec_ext in '' $ac_executable_extensions; do
2894
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895
    ac_cv_prog_CC="gcc"
2896
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897
    break 2
2898
  fi
2899
done
2900
done
2901
IFS=$as_save_IFS
2902
 
2903
fi
2904
fi
2905
CC=$ac_cv_prog_CC
2906
if test -n "$CC"; then
2907
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2908
$as_echo "$CC" >&6; }
2909
else
2910
  { $as_echo "$as_me:$LINENO: result: no" >&5
2911
$as_echo "no" >&6; }
2912
fi
2913
 
2914
 
2915
 
2916
depcc="$CC"   am_compiler_list=
2917
 
2918
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2919
$as_echo_n "checking dependency style of $depcc... " >&6; }
2920
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2921
  $as_echo_n "(cached) " >&6
2922
else
2923
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2924
  # We make a subdir and do the tests there.  Otherwise we can end up
2925
  # making bogus files that we don't know about and never remove.  For
2926
  # instance it was reported that on HP-UX the gcc test will end up
2927
  # making a dummy file named `D' -- because `-MD' means `put the output
2928
  # in D'.
2929
  mkdir conftest.dir
2930
  # Copy depcomp to subdir because otherwise we won't find it if we're
2931
  # using a relative directory.
2932
  cp "$am_depcomp" conftest.dir
2933
  cd conftest.dir
2934
  # We will build objects and dependencies in a subdirectory because
2935
  # it helps to detect inapplicable dependency modes.  For instance
2936
  # both Tru64's cc and ICC support -MD to output dependencies as a
2937
  # side effect of compilation, but ICC will put the dependencies in
2938
  # the current directory while Tru64 will put them in the object
2939
  # directory.
2940
  mkdir sub
2941
 
2942
  am_cv_CC_dependencies_compiler_type=none
2943
  if test "$am_compiler_list" = ""; then
2944
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2945
  fi
2946
  am__universal=false
2947
  case " $depcc " in #(
2948
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
2949
     esac
2950
 
2951
  for depmode in $am_compiler_list; do
2952
    # Setup a source with many dependencies, because some compilers
2953
    # like to wrap large dependency lists on column 80 (with \), and
2954
    # we should not choose a depcomp mode which is confused by this.
2955
    #
2956
    # We need to recreate these files for each test, as the compiler may
2957
    # overwrite some of them when testing with obscure command lines.
2958
    # This happens at least with the AIX C compiler.
2959
    : > sub/conftest.c
2960
    for i in 1 2 3 4 5 6; do
2961
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2962
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2963
      # Solaris 8's {/usr,}/bin/sh.
2964
      touch sub/conftst$i.h
2965
    done
2966
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2967
 
2968
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2969
    # mode.  It turns out that the SunPro C++ compiler does not properly
2970
    # handle `-M -o', and we need to detect this.  Also, some Intel
2971
    # versions had trouble with output in subdirs
2972
    am__obj=sub/conftest.${OBJEXT-o}
2973
    am__minus_obj="-o $am__obj"
2974
    case $depmode in
2975
    gcc)
2976
      # This depmode causes a compiler race in universal mode.
2977
      test "$am__universal" = false || continue
2978
      ;;
2979
    nosideeffect)
2980
      # after this tag, mechanisms are not by side-effect, so they'll
2981
      # only be used when explicitly requested
2982
      if test "x$enable_dependency_tracking" = xyes; then
2983
        continue
2984
      else
2985
        break
2986
      fi
2987
      ;;
2988
    msvisualcpp | msvcmsys)
2989
      # This compiler won't grok `-c -o', but also, the minuso test has
2990
      # not run yet.  These depmodes are late enough in the game, and
2991
      # so weak that their functioning should not be impacted.
2992
      am__obj=conftest.${OBJEXT-o}
2993
      am__minus_obj=
2994
      ;;
2995
    none) break ;;
2996
    esac
2997
    if depmode=$depmode \
2998
       source=sub/conftest.c object=$am__obj \
2999
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3000
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3001
         >/dev/null 2>conftest.err &&
3002
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3003
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3004
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3005
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3006
      # icc doesn't choke on unknown options, it will just issue warnings
3007
      # or remarks (even with -Werror).  So we grep stderr for any message
3008
      # that says an option was ignored or not supported.
3009
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3010
      #   icc: Command line warning: ignoring option '-M'; no argument required
3011
      # The diagnosis changed in icc 8.0:
3012
      #   icc: Command line remark: option '-MP' not supported
3013
      if (grep 'ignoring option' conftest.err ||
3014
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3015
        am_cv_CC_dependencies_compiler_type=$depmode
3016
        break
3017
      fi
3018
    fi
3019
  done
3020
 
3021
  cd ..
3022
  rm -rf conftest.dir
3023
else
3024
  am_cv_CC_dependencies_compiler_type=none
3025
fi
3026
 
3027
fi
3028
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3029
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3030
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3031
 
3032
 if
3033
  test "x$enable_dependency_tracking" != xno \
3034
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3035
  am__fastdepCC_TRUE=
3036
  am__fastdepCC_FALSE='#'
3037
else
3038
  am__fastdepCC_TRUE='#'
3039
  am__fastdepCC_FALSE=
3040
fi
3041
 
3042
 
3043
if test -z "$CC"; then
3044
  # Extract the first word of "cc", so it can be a program name with args.
3045
set dummy cc; ac_word=$2
3046
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3047
$as_echo_n "checking for $ac_word... " >&6; }
3048
if test "${ac_cv_prog_CC+set}" = set; then
3049
  $as_echo_n "(cached) " >&6
3050
else
3051
  if test -n "$CC"; then
3052
  ac_cv_prog_CC="$CC" # Let the user override the test.
3053
else
3054
  ac_prog_rejected=no
3055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056
for as_dir in $PATH
3057
do
3058
  IFS=$as_save_IFS
3059
  test -z "$as_dir" && as_dir=.
3060
  for ac_exec_ext in '' $ac_executable_extensions; do
3061
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3063
       ac_prog_rejected=yes
3064
       continue
3065
     fi
3066
    ac_cv_prog_CC="cc"
3067
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3068
    break 2
3069
  fi
3070
done
3071
done
3072
IFS=$as_save_IFS
3073
 
3074
if test $ac_prog_rejected = yes; then
3075
  # We found a bogon in the path, so make sure we never use it.
3076
  set dummy $ac_cv_prog_CC
3077
  shift
3078
  if test $# != 0; then
3079
    # We chose a different compiler from the bogus one.
3080
    # However, it has the same basename, so the bogon will be chosen
3081
    # first if we set CC to just the basename; use the full file name.
3082
    shift
3083
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3084
  fi
3085
fi
3086
fi
3087
fi
3088
CC=$ac_cv_prog_CC
3089
if test -n "$CC"; then
3090
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3091
$as_echo "$CC" >&6; }
3092
else
3093
  { $as_echo "$as_me:$LINENO: result: no" >&5
3094
$as_echo "no" >&6; }
3095
fi
3096
 
3097
 
3098
  test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3099
$as_echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3100
   { (exit 1); exit 1; }; }
3101
fi
3102
 
3103
{ $as_echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
3104
$as_echo_n "checking whether we are using GNU C... " >&6; }
3105
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3106
  $as_echo_n "(cached) " >&6
3107
else
3108
  cat > conftest.c <
3109
#ifdef __GNUC__
3110
  yes;
3111
#endif
3112
EOF
3113
if { ac_try='${CC-cc} -E conftest.c'
3114
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115
  (eval $ac_try) 2>&5
3116
  ac_status=$?
3117
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3119
  ac_cv_c_compiler_gnu=yes
3120
else
3121
  ac_cv_c_compiler_gnu=no
3122
fi
3123
fi
3124
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3125
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3126
 
3127
if test $ac_cv_c_compiler_gnu = yes; then
3128
  GCC=yes
3129
  ac_test_CFLAGS="${CFLAGS+set}"
3130
  ac_save_CFLAGS="$CFLAGS"
3131
  ac_test_CFLAGS=${CFLAGS+set}
3132
ac_save_CFLAGS=$CFLAGS
3133
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3134
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3135
if test "${ac_cv_prog_cc_g+set}" = set; then
3136
  $as_echo_n "(cached) " >&6
3137
else
3138
  ac_save_c_werror_flag=$ac_c_werror_flag
3139
   ac_c_werror_flag=yes
3140
   ac_cv_prog_cc_g=no
3141
   CFLAGS="-g"
3142
   cat >conftest.$ac_ext <<_ACEOF
3143
/* confdefs.h.  */
3144
_ACEOF
3145
cat confdefs.h >>conftest.$ac_ext
3146
cat >>conftest.$ac_ext <<_ACEOF
3147
/* end confdefs.h.  */
3148
 
3149
int
3150
main ()
3151
{
3152
 
3153
  ;
3154
  return 0;
3155
}
3156
_ACEOF
3157
rm -f conftest.$ac_objext
3158
if { (ac_try="$ac_compile"
3159
case "(($ac_try" in
3160
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161
  *) ac_try_echo=$ac_try;;
3162
esac
3163
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3164
$as_echo "$ac_try_echo") >&5
3165
  (eval "$ac_compile") 2>conftest.er1
3166
  ac_status=$?
3167
  grep -v '^ *+' conftest.er1 >conftest.err
3168
  rm -f conftest.er1
3169
  cat conftest.err >&5
3170
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171
  (exit $ac_status); } && {
3172
         test -z "$ac_c_werror_flag" ||
3173
         test ! -s conftest.err
3174
       } && test -s conftest.$ac_objext; then
3175
  ac_cv_prog_cc_g=yes
3176
else
3177
  $as_echo "$as_me: failed program was:" >&5
3178
sed 's/^/| /' conftest.$ac_ext >&5
3179
 
3180
        CFLAGS=""
3181
      cat >conftest.$ac_ext <<_ACEOF
3182
/* confdefs.h.  */
3183
_ACEOF
3184
cat confdefs.h >>conftest.$ac_ext
3185
cat >>conftest.$ac_ext <<_ACEOF
3186
/* end confdefs.h.  */
3187
 
3188
int
3189
main ()
3190
{
3191
 
3192
  ;
3193
  return 0;
3194
}
3195
_ACEOF
3196
rm -f conftest.$ac_objext
3197
if { (ac_try="$ac_compile"
3198
case "(($ac_try" in
3199
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200
  *) ac_try_echo=$ac_try;;
3201
esac
3202
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3203
$as_echo "$ac_try_echo") >&5
3204
  (eval "$ac_compile") 2>conftest.er1
3205
  ac_status=$?
3206
  grep -v '^ *+' conftest.er1 >conftest.err
3207
  rm -f conftest.er1
3208
  cat conftest.err >&5
3209
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210
  (exit $ac_status); } && {
3211
         test -z "$ac_c_werror_flag" ||
3212
         test ! -s conftest.err
3213
       } && test -s conftest.$ac_objext; then
3214
  :
3215
else
3216
  $as_echo "$as_me: failed program was:" >&5
3217
sed 's/^/| /' conftest.$ac_ext >&5
3218
 
3219
        ac_c_werror_flag=$ac_save_c_werror_flag
3220
         CFLAGS="-g"
3221
         cat >conftest.$ac_ext <<_ACEOF
3222
/* confdefs.h.  */
3223
_ACEOF
3224
cat confdefs.h >>conftest.$ac_ext
3225
cat >>conftest.$ac_ext <<_ACEOF
3226
/* end confdefs.h.  */
3227
 
3228
int
3229
main ()
3230
{
3231
 
3232
  ;
3233
  return 0;
3234
}
3235
_ACEOF
3236
rm -f conftest.$ac_objext
3237
if { (ac_try="$ac_compile"
3238
case "(($ac_try" in
3239
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240
  *) ac_try_echo=$ac_try;;
3241
esac
3242
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3243
$as_echo "$ac_try_echo") >&5
3244
  (eval "$ac_compile") 2>conftest.er1
3245
  ac_status=$?
3246
  grep -v '^ *+' conftest.er1 >conftest.err
3247
  rm -f conftest.er1
3248
  cat conftest.err >&5
3249
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250
  (exit $ac_status); } && {
3251
         test -z "$ac_c_werror_flag" ||
3252
         test ! -s conftest.err
3253
       } && test -s conftest.$ac_objext; then
3254
  ac_cv_prog_cc_g=yes
3255
else
3256
  $as_echo "$as_me: failed program was:" >&5
3257
sed 's/^/| /' conftest.$ac_ext >&5
3258
 
3259
 
3260
fi
3261
 
3262
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263
fi
3264
 
3265
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266
fi
3267
 
3268
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269
   ac_c_werror_flag=$ac_save_c_werror_flag
3270
fi
3271
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3272
$as_echo "$ac_cv_prog_cc_g" >&6; }
3273
if test "$ac_test_CFLAGS" = set; then
3274
  CFLAGS=$ac_save_CFLAGS
3275
elif test $ac_cv_prog_cc_g = yes; then
3276
  if test "$GCC" = yes; then
3277
    CFLAGS="-g -O2"
3278
  else
3279
    CFLAGS="-g"
3280
  fi
3281
else
3282
  if test "$GCC" = yes; then
3283
    CFLAGS="-O2"
3284
  else
3285
    CFLAGS=
3286
  fi
3287
fi
3288
  if test "$ac_test_CFLAGS" = set; then
3289
    CFLAGS="$ac_save_CFLAGS"
3290
  elif test $ac_cv_prog_cc_g = yes; then
3291
    CFLAGS="-g -O2"
3292
  else
3293
    CFLAGS="-O2"
3294
  fi
3295
else
3296
  GCC=
3297
  test "${CFLAGS+set}" = set || CFLAGS="-g"
3298
fi
3299
 
3300
 
3301
if test -n "$ac_tool_prefix"; then
3302
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3303
set dummy ${ac_tool_prefix}as; ac_word=$2
3304
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3305
$as_echo_n "checking for $ac_word... " >&6; }
3306
if test "${ac_cv_prog_AS+set}" = set; then
3307
  $as_echo_n "(cached) " >&6
3308
else
3309
  if test -n "$AS"; then
3310
  ac_cv_prog_AS="$AS" # Let the user override the test.
3311
else
3312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313
for as_dir in $PATH
3314
do
3315
  IFS=$as_save_IFS
3316
  test -z "$as_dir" && as_dir=.
3317
  for ac_exec_ext in '' $ac_executable_extensions; do
3318
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319
    ac_cv_prog_AS="${ac_tool_prefix}as"
3320
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3321
    break 2
3322
  fi
3323
done
3324
done
3325
IFS=$as_save_IFS
3326
 
3327
fi
3328
fi
3329
AS=$ac_cv_prog_AS
3330
if test -n "$AS"; then
3331
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
3332
$as_echo "$AS" >&6; }
3333
else
3334
  { $as_echo "$as_me:$LINENO: result: no" >&5
3335
$as_echo "no" >&6; }
3336
fi
3337
 
3338
 
3339
fi
3340
if test -z "$ac_cv_prog_AS"; then
3341
  ac_ct_AS=$AS
3342
  # Extract the first word of "as", so it can be a program name with args.
3343
set dummy as; ac_word=$2
3344
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3345
$as_echo_n "checking for $ac_word... " >&6; }
3346
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3347
  $as_echo_n "(cached) " >&6
3348
else
3349
  if test -n "$ac_ct_AS"; then
3350
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3351
else
3352
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353
for as_dir in $PATH
3354
do
3355
  IFS=$as_save_IFS
3356
  test -z "$as_dir" && as_dir=.
3357
  for ac_exec_ext in '' $ac_executable_extensions; do
3358
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359
    ac_cv_prog_ac_ct_AS="as"
3360
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361
    break 2
3362
  fi
3363
done
3364
done
3365
IFS=$as_save_IFS
3366
 
3367
fi
3368
fi
3369
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3370
if test -n "$ac_ct_AS"; then
3371
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3372
$as_echo "$ac_ct_AS" >&6; }
3373
else
3374
  { $as_echo "$as_me:$LINENO: result: no" >&5
3375
$as_echo "no" >&6; }
3376
fi
3377
 
3378
  if test "x$ac_ct_AS" = x; then
3379
    AS=""
3380
  else
3381
    case $cross_compiling:$ac_tool_warned in
3382
yes:)
3383
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3384
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3385
ac_tool_warned=yes ;;
3386
esac
3387
    AS=$ac_ct_AS
3388
  fi
3389
else
3390
  AS="$ac_cv_prog_AS"
3391
fi
3392
 
3393
if test -n "$ac_tool_prefix"; then
3394
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3395
set dummy ${ac_tool_prefix}ar; ac_word=$2
3396
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3397
$as_echo_n "checking for $ac_word... " >&6; }
3398
if test "${ac_cv_prog_AR+set}" = set; then
3399
  $as_echo_n "(cached) " >&6
3400
else
3401
  if test -n "$AR"; then
3402
  ac_cv_prog_AR="$AR" # Let the user override the test.
3403
else
3404
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405
for as_dir in $PATH
3406
do
3407
  IFS=$as_save_IFS
3408
  test -z "$as_dir" && as_dir=.
3409
  for ac_exec_ext in '' $ac_executable_extensions; do
3410
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411
    ac_cv_prog_AR="${ac_tool_prefix}ar"
3412
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413
    break 2
3414
  fi
3415
done
3416
done
3417
IFS=$as_save_IFS
3418
 
3419
fi
3420
fi
3421
AR=$ac_cv_prog_AR
3422
if test -n "$AR"; then
3423
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
3424
$as_echo "$AR" >&6; }
3425
else
3426
  { $as_echo "$as_me:$LINENO: result: no" >&5
3427
$as_echo "no" >&6; }
3428
fi
3429
 
3430
 
3431
fi
3432
if test -z "$ac_cv_prog_AR"; then
3433
  ac_ct_AR=$AR
3434
  # Extract the first word of "ar", so it can be a program name with args.
3435
set dummy ar; ac_word=$2
3436
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3437
$as_echo_n "checking for $ac_word... " >&6; }
3438
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3439
  $as_echo_n "(cached) " >&6
3440
else
3441
  if test -n "$ac_ct_AR"; then
3442
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3443
else
3444
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445
for as_dir in $PATH
3446
do
3447
  IFS=$as_save_IFS
3448
  test -z "$as_dir" && as_dir=.
3449
  for ac_exec_ext in '' $ac_executable_extensions; do
3450
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3451
    ac_cv_prog_ac_ct_AR="ar"
3452
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3453
    break 2
3454
  fi
3455
done
3456
done
3457
IFS=$as_save_IFS
3458
 
3459
fi
3460
fi
3461
ac_ct_AR=$ac_cv_prog_ac_ct_AR
3462
if test -n "$ac_ct_AR"; then
3463
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3464
$as_echo "$ac_ct_AR" >&6; }
3465
else
3466
  { $as_echo "$as_me:$LINENO: result: no" >&5
3467
$as_echo "no" >&6; }
3468
fi
3469
 
3470
  if test "x$ac_ct_AR" = x; then
3471
    AR=""
3472
  else
3473
    case $cross_compiling:$ac_tool_warned in
3474
yes:)
3475
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3476
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3477
ac_tool_warned=yes ;;
3478
esac
3479
    AR=$ac_ct_AR
3480
  fi
3481
else
3482
  AR="$ac_cv_prog_AR"
3483
fi
3484
 
3485
if test -n "$ac_tool_prefix"; then
3486
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3487
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3488
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3489
$as_echo_n "checking for $ac_word... " >&6; }
3490
if test "${ac_cv_prog_RANLIB+set}" = set; then
3491
  $as_echo_n "(cached) " >&6
3492
else
3493
  if test -n "$RANLIB"; then
3494
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3495
else
3496
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497
for as_dir in $PATH
3498
do
3499
  IFS=$as_save_IFS
3500
  test -z "$as_dir" && as_dir=.
3501
  for ac_exec_ext in '' $ac_executable_extensions; do
3502
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3503
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3504
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3505
    break 2
3506
  fi
3507
done
3508
done
3509
IFS=$as_save_IFS
3510
 
3511
fi
3512
fi
3513
RANLIB=$ac_cv_prog_RANLIB
3514
if test -n "$RANLIB"; then
3515
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3516
$as_echo "$RANLIB" >&6; }
3517
else
3518
  { $as_echo "$as_me:$LINENO: result: no" >&5
3519
$as_echo "no" >&6; }
3520
fi
3521
 
3522
 
3523
fi
3524
if test -z "$ac_cv_prog_RANLIB"; then
3525
  ac_ct_RANLIB=$RANLIB
3526
  # Extract the first word of "ranlib", so it can be a program name with args.
3527
set dummy ranlib; ac_word=$2
3528
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3529
$as_echo_n "checking for $ac_word... " >&6; }
3530
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3531
  $as_echo_n "(cached) " >&6
3532
else
3533
  if test -n "$ac_ct_RANLIB"; then
3534
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3535
else
3536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537
for as_dir in $PATH
3538
do
3539
  IFS=$as_save_IFS
3540
  test -z "$as_dir" && as_dir=.
3541
  for ac_exec_ext in '' $ac_executable_extensions; do
3542
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3543
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3544
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545
    break 2
3546
  fi
3547
done
3548
done
3549
IFS=$as_save_IFS
3550
 
3551
fi
3552
fi
3553
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3554
if test -n "$ac_ct_RANLIB"; then
3555
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3556
$as_echo "$ac_ct_RANLIB" >&6; }
3557
else
3558
  { $as_echo "$as_me:$LINENO: result: no" >&5
3559
$as_echo "no" >&6; }
3560
fi
3561
 
3562
  if test "x$ac_ct_RANLIB" = x; then
3563
    RANLIB=":"
3564
  else
3565
    case $cross_compiling:$ac_tool_warned in
3566
yes:)
3567
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3568
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3569
ac_tool_warned=yes ;;
3570
esac
3571
    RANLIB=$ac_ct_RANLIB
3572
  fi
3573
else
3574
  RANLIB="$ac_cv_prog_RANLIB"
3575
fi
3576
 
3577
if test -n "$ac_tool_prefix"; then
3578
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3579
set dummy ${ac_tool_prefix}readelf; ac_word=$2
3580
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3581
$as_echo_n "checking for $ac_word... " >&6; }
3582
if test "${ac_cv_prog_READELF+set}" = set; then
3583
  $as_echo_n "(cached) " >&6
3584
else
3585
  if test -n "$READELF"; then
3586
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
3587
else
3588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589
for as_dir in $PATH
3590
do
3591
  IFS=$as_save_IFS
3592
  test -z "$as_dir" && as_dir=.
3593
  for ac_exec_ext in '' $ac_executable_extensions; do
3594
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3595
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3596
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3597
    break 2
3598
  fi
3599
done
3600
done
3601
IFS=$as_save_IFS
3602
 
3603
fi
3604
fi
3605
READELF=$ac_cv_prog_READELF
3606
if test -n "$READELF"; then
3607
  { $as_echo "$as_me:$LINENO: result: $READELF" >&5
3608
$as_echo "$READELF" >&6; }
3609
else
3610
  { $as_echo "$as_me:$LINENO: result: no" >&5
3611
$as_echo "no" >&6; }
3612
fi
3613
 
3614
 
3615
fi
3616
if test -z "$ac_cv_prog_READELF"; then
3617
  ac_ct_READELF=$READELF
3618
  # Extract the first word of "readelf", so it can be a program name with args.
3619
set dummy readelf; ac_word=$2
3620
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3621
$as_echo_n "checking for $ac_word... " >&6; }
3622
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
3623
  $as_echo_n "(cached) " >&6
3624
else
3625
  if test -n "$ac_ct_READELF"; then
3626
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3627
else
3628
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629
for as_dir in $PATH
3630
do
3631
  IFS=$as_save_IFS
3632
  test -z "$as_dir" && as_dir=.
3633
  for ac_exec_ext in '' $ac_executable_extensions; do
3634
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3635
    ac_cv_prog_ac_ct_READELF="readelf"
3636
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637
    break 2
3638
  fi
3639
done
3640
done
3641
IFS=$as_save_IFS
3642
 
3643
fi
3644
fi
3645
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3646
if test -n "$ac_ct_READELF"; then
3647
  { $as_echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
3648
$as_echo "$ac_ct_READELF" >&6; }
3649
else
3650
  { $as_echo "$as_me:$LINENO: result: no" >&5
3651
$as_echo "no" >&6; }
3652
fi
3653
 
3654
  if test "x$ac_ct_READELF" = x; then
3655
    READELF=":"
3656
  else
3657
    case $cross_compiling:$ac_tool_warned in
3658
yes:)
3659
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3660
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3661
ac_tool_warned=yes ;;
3662
esac
3663
    READELF=$ac_ct_READELF
3664
  fi
3665
else
3666
  READELF="$ac_cv_prog_READELF"
3667
fi
3668
 
3669
 
3670
# Find a good install program.  We prefer a C program (faster),
3671
# so one script is as good as another.  But avoid the broken or
3672
# incompatible versions:
3673
# SysV /etc/install, /usr/sbin/install
3674
# SunOS /usr/etc/install
3675
# IRIX /sbin/install
3676
# AIX /bin/install
3677
# AmigaOS /C/install, which installs bootblocks on floppy discs
3678
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3679
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3680
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3681
# OS/2's system install, which has a completely different semantic
3682
# ./install, which can be erroneously created by make from ./install.sh.
3683
# Reject install programs that cannot install multiple files.
3684
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3685
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3686
if test -z "$INSTALL"; then
3687
if test "${ac_cv_path_install+set}" = set; then
3688
  $as_echo_n "(cached) " >&6
3689
else
3690
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691
for as_dir in $PATH
3692
do
3693
  IFS=$as_save_IFS
3694
  test -z "$as_dir" && as_dir=.
3695
  # Account for people who put trailing slashes in PATH elements.
3696
case $as_dir/ in
3697
  ./ | .// | /cC/* | \
3698
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3699
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3700
  /usr/ucb/* ) ;;
3701
  *)
3702
    # OSF1 and SCO ODT 3.0 have their own names for install.
3703
    # Don't use installbsd from OSF since it installs stuff as root
3704
    # by default.
3705
    for ac_prog in ginstall scoinst install; do
3706
      for ac_exec_ext in '' $ac_executable_extensions; do
3707
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3708
          if test $ac_prog = install &&
3709
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3710
            # AIX install.  It has an incompatible calling convention.
3711
            :
3712
          elif test $ac_prog = install &&
3713
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714
            # program-specific install script used by HP pwplus--don't use.
3715
            :
3716
          else
3717
            rm -rf conftest.one conftest.two conftest.dir
3718
            echo one > conftest.one
3719
            echo two > conftest.two
3720
            mkdir conftest.dir
3721
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3722
              test -s conftest.one && test -s conftest.two &&
3723
              test -s conftest.dir/conftest.one &&
3724
              test -s conftest.dir/conftest.two
3725
            then
3726
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3727
              break 3
3728
            fi
3729
          fi
3730
        fi
3731
      done
3732
    done
3733
    ;;
3734
esac
3735
 
3736
done
3737
IFS=$as_save_IFS
3738
 
3739
rm -rf conftest.one conftest.two conftest.dir
3740
 
3741
fi
3742
  if test "${ac_cv_path_install+set}" = set; then
3743
    INSTALL=$ac_cv_path_install
3744
  else
3745
    # As a last resort, use the slow shell script.  Don't cache a
3746
    # value for INSTALL within a source directory, because that will
3747
    # break other packages using the cache if that directory is
3748
    # removed, or if the value is a relative name.
3749
    INSTALL=$ac_install_sh
3750
  fi
3751
fi
3752
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3753
$as_echo "$INSTALL" >&6; }
3754
 
3755
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3756
# It thinks the first close brace ends the variable substitution.
3757
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3758
 
3759
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3760
 
3761
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3762
 
3763
 
3764
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
3765
ac_given_INSTALL=$INSTALL
3766
 
3767
 
3768
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3769
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3770
    # Check whether --enable-maintainer-mode was given.
3771
if test "${enable_maintainer_mode+set}" = set; then
3772
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3773
else
3774
  USE_MAINTAINER_MODE=no
3775
fi
3776
 
3777
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3778
$as_echo "$USE_MAINTAINER_MODE" >&6; }
3779
   if test $USE_MAINTAINER_MODE = yes; then
3780
  MAINTAINER_MODE_TRUE=
3781
  MAINTAINER_MODE_FALSE='#'
3782
else
3783
  MAINTAINER_MODE_TRUE='#'
3784
  MAINTAINER_MODE_FALSE=
3785
fi
3786
 
3787
  MAINT=$MAINTAINER_MODE_TRUE
3788
 
3789
 
3790
# By default we simply use the C compiler to build assembly code.
3791
 
3792
test "${CCAS+set}" = set || CCAS=$CC
3793
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3794
 
3795
 
3796
 
3797
 
3798
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
3799
# at least currently, we never actually build a program, so we never
3800
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
3801
# fails, because we are probably configuring with a cross compiler
3802
# which can't create executables.  So we include AC_EXEEXT to keep
3803
# automake happy, but we don't execute it, since we don't care about
3804
# the result.
3805
if false; then
3806
 
3807
  dummy_var=1
3808
fi
3809
 
3810
. ${newlib_basedir}/configure.host
3811
 
3812
newlib_cflags="${newlib_cflags} -fno-builtin"
3813
 
3814
NEWLIB_CFLAGS=${newlib_cflags}
3815
 
3816
 
3817
LDFLAGS=${ldflags}
3818
 
3819
 
3820
 if test x${newlib_elix_level} = x0; then
3821
  ELIX_LEVEL_0_TRUE=
3822
  ELIX_LEVEL_0_FALSE='#'
3823
else
3824
  ELIX_LEVEL_0_TRUE='#'
3825
  ELIX_LEVEL_0_FALSE=
3826
fi
3827
 
3828
 if test x${newlib_elix_level} = x1; then
3829
  ELIX_LEVEL_1_TRUE=
3830
  ELIX_LEVEL_1_FALSE='#'
3831
else
3832
  ELIX_LEVEL_1_TRUE='#'
3833
  ELIX_LEVEL_1_FALSE=
3834
fi
3835
 
3836
 if test x${newlib_elix_level} = x2; then
3837
  ELIX_LEVEL_2_TRUE=
3838
  ELIX_LEVEL_2_FALSE='#'
3839
else
3840
  ELIX_LEVEL_2_TRUE='#'
3841
  ELIX_LEVEL_2_FALSE=
3842
fi
3843
 
3844
 if test x${newlib_elix_level} = x3; then
3845
  ELIX_LEVEL_3_TRUE=
3846
  ELIX_LEVEL_3_FALSE='#'
3847
else
3848
  ELIX_LEVEL_3_TRUE='#'
3849
  ELIX_LEVEL_3_FALSE=
3850
fi
3851
 
3852
 if test x${newlib_elix_level} = x4; then
3853
  ELIX_LEVEL_4_TRUE=
3854
  ELIX_LEVEL_4_FALSE='#'
3855
else
3856
  ELIX_LEVEL_4_TRUE='#'
3857
  ELIX_LEVEL_4_FALSE=
3858
fi
3859
 
3860
 
3861
 if test x${use_libtool} = xyes; then
3862
  USE_LIBTOOL_TRUE=
3863
  USE_LIBTOOL_FALSE='#'
3864
else
3865
  USE_LIBTOOL_TRUE='#'
3866
  USE_LIBTOOL_FALSE=
3867
fi
3868
 
3869
 
3870
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3871
# use oext, which is set in configure.host based on the target platform.
3872
OBJEXT=${oext}
3873
 
3874
 
3875
 
3876
 
3877
 
3878
 
3879
 
3880
 
3881
 
3882
 
3883
 
3884
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3885
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3886
if test "${ac_cv_path_SED+set}" = set; then
3887
  $as_echo_n "(cached) " >&6
3888
else
3889
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3890
     for ac_i in 1 2 3 4 5 6 7; do
3891
       ac_script="$ac_script$as_nl$ac_script"
3892
     done
3893
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3894
     $as_unset ac_script || ac_script=
3895
     if test -z "$SED"; then
3896
  ac_path_SED_found=false
3897
  # Loop through the user's path and test for each of PROGNAME-LIST
3898
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899
for as_dir in $PATH
3900
do
3901
  IFS=$as_save_IFS
3902
  test -z "$as_dir" && as_dir=.
3903
  for ac_prog in sed gsed; do
3904
    for ac_exec_ext in '' $ac_executable_extensions; do
3905
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3906
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3907
# Check for GNU ac_path_SED and select it if it is found.
3908
  # Check for GNU $ac_path_SED
3909
case `"$ac_path_SED" --version 2>&1` in
3910
*GNU*)
3911
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3912
*)
3913
  ac_count=0
3914
  $as_echo_n 0123456789 >"conftest.in"
3915
  while :
3916
  do
3917
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3918
    mv "conftest.tmp" "conftest.in"
3919
    cp "conftest.in" "conftest.nl"
3920
    $as_echo '' >> "conftest.nl"
3921
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3922
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3923
    ac_count=`expr $ac_count + 1`
3924
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3925
      # Best one so far, save it but keep looking for a better one
3926
      ac_cv_path_SED="$ac_path_SED"
3927
      ac_path_SED_max=$ac_count
3928
    fi
3929
    # 10*(2^10) chars as input seems more than enough
3930
    test $ac_count -gt 10 && break
3931
  done
3932
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3933
esac
3934
 
3935
      $ac_path_SED_found && break 3
3936
    done
3937
  done
3938
done
3939
IFS=$as_save_IFS
3940
  if test -z "$ac_cv_path_SED"; then
3941
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3942
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3943
   { (exit 1); exit 1; }; }
3944
  fi
3945
else
3946
  ac_cv_path_SED=$SED
3947
fi
3948
 
3949
fi
3950
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3951
$as_echo "$ac_cv_path_SED" >&6; }
3952
 SED="$ac_cv_path_SED"
3953
  rm -f conftest.sed
3954
 
3955
test -z "$SED" && SED=sed
3956
Xsed="$SED -e 1s/^X//"
3957
 
3958
 
3959
 
3960
 
3961
 
3962
 
3963
 
3964
 
3965
 
3966
 
3967
 
3968
for ac_prog in gawk mawk nawk awk
3969
do
3970
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3971
set dummy $ac_prog; ac_word=$2
3972
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3973
$as_echo_n "checking for $ac_word... " >&6; }
3974
if test "${ac_cv_prog_AWK+set}" = set; then
3975
  $as_echo_n "(cached) " >&6
3976
else
3977
  if test -n "$AWK"; then
3978
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3979
else
3980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981
for as_dir in $PATH
3982
do
3983
  IFS=$as_save_IFS
3984
  test -z "$as_dir" && as_dir=.
3985
  for ac_exec_ext in '' $ac_executable_extensions; do
3986
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3987
    ac_cv_prog_AWK="$ac_prog"
3988
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3989
    break 2
3990
  fi
3991
done
3992
done
3993
IFS=$as_save_IFS
3994
 
3995
fi
3996
fi
3997
AWK=$ac_cv_prog_AWK
3998
if test -n "$AWK"; then
3999
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4000
$as_echo "$AWK" >&6; }
4001
else
4002
  { $as_echo "$as_me:$LINENO: result: no" >&5
4003
$as_echo "no" >&6; }
4004
fi
4005
 
4006
 
4007
  test -n "$AWK" && break
4008
done
4009
 
4010
if test "${use_libtool}" = "yes"; then
4011
enable_win32_dll=yes
4012
 
4013
case $host in
4014
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4015
  if test -n "$ac_tool_prefix"; then
4016
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4017
set dummy ${ac_tool_prefix}as; ac_word=$2
4018
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4019
$as_echo_n "checking for $ac_word... " >&6; }
4020
if test "${ac_cv_prog_AS+set}" = set; then
4021
  $as_echo_n "(cached) " >&6
4022
else
4023
  if test -n "$AS"; then
4024
  ac_cv_prog_AS="$AS" # Let the user override the test.
4025
else
4026
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027
for as_dir in $PATH
4028
do
4029
  IFS=$as_save_IFS
4030
  test -z "$as_dir" && as_dir=.
4031
  for ac_exec_ext in '' $ac_executable_extensions; do
4032
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033
    ac_cv_prog_AS="${ac_tool_prefix}as"
4034
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035
    break 2
4036
  fi
4037
done
4038
done
4039
IFS=$as_save_IFS
4040
 
4041
fi
4042
fi
4043
AS=$ac_cv_prog_AS
4044
if test -n "$AS"; then
4045
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
4046
$as_echo "$AS" >&6; }
4047
else
4048
  { $as_echo "$as_me:$LINENO: result: no" >&5
4049
$as_echo "no" >&6; }
4050
fi
4051
 
4052
 
4053
fi
4054
if test -z "$ac_cv_prog_AS"; then
4055
  ac_ct_AS=$AS
4056
  # Extract the first word of "as", so it can be a program name with args.
4057
set dummy as; ac_word=$2
4058
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4059
$as_echo_n "checking for $ac_word... " >&6; }
4060
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4061
  $as_echo_n "(cached) " >&6
4062
else
4063
  if test -n "$ac_ct_AS"; then
4064
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4065
else
4066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067
for as_dir in $PATH
4068
do
4069
  IFS=$as_save_IFS
4070
  test -z "$as_dir" && as_dir=.
4071
  for ac_exec_ext in '' $ac_executable_extensions; do
4072
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4073
    ac_cv_prog_ac_ct_AS="as"
4074
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075
    break 2
4076
  fi
4077
done
4078
done
4079
IFS=$as_save_IFS
4080
 
4081
fi
4082
fi
4083
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4084
if test -n "$ac_ct_AS"; then
4085
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4086
$as_echo "$ac_ct_AS" >&6; }
4087
else
4088
  { $as_echo "$as_me:$LINENO: result: no" >&5
4089
$as_echo "no" >&6; }
4090
fi
4091
 
4092
  if test "x$ac_ct_AS" = x; then
4093
    AS="false"
4094
  else
4095
    case $cross_compiling:$ac_tool_warned in
4096
yes:)
4097
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4098
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4099
ac_tool_warned=yes ;;
4100
esac
4101
    AS=$ac_ct_AS
4102
  fi
4103
else
4104
  AS="$ac_cv_prog_AS"
4105
fi
4106
 
4107
  if test -n "$ac_tool_prefix"; then
4108
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4109
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4110
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4111
$as_echo_n "checking for $ac_word... " >&6; }
4112
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4113
  $as_echo_n "(cached) " >&6
4114
else
4115
  if test -n "$DLLTOOL"; then
4116
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4117
else
4118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119
for as_dir in $PATH
4120
do
4121
  IFS=$as_save_IFS
4122
  test -z "$as_dir" && as_dir=.
4123
  for ac_exec_ext in '' $ac_executable_extensions; do
4124
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4126
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127
    break 2
4128
  fi
4129
done
4130
done
4131
IFS=$as_save_IFS
4132
 
4133
fi
4134
fi
4135
DLLTOOL=$ac_cv_prog_DLLTOOL
4136
if test -n "$DLLTOOL"; then
4137
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4138
$as_echo "$DLLTOOL" >&6; }
4139
else
4140
  { $as_echo "$as_me:$LINENO: result: no" >&5
4141
$as_echo "no" >&6; }
4142
fi
4143
 
4144
 
4145
fi
4146
if test -z "$ac_cv_prog_DLLTOOL"; then
4147
  ac_ct_DLLTOOL=$DLLTOOL
4148
  # Extract the first word of "dlltool", so it can be a program name with args.
4149
set dummy dlltool; ac_word=$2
4150
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4151
$as_echo_n "checking for $ac_word... " >&6; }
4152
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4153
  $as_echo_n "(cached) " >&6
4154
else
4155
  if test -n "$ac_ct_DLLTOOL"; then
4156
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4157
else
4158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159
for as_dir in $PATH
4160
do
4161
  IFS=$as_save_IFS
4162
  test -z "$as_dir" && as_dir=.
4163
  for ac_exec_ext in '' $ac_executable_extensions; do
4164
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4166
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167
    break 2
4168
  fi
4169
done
4170
done
4171
IFS=$as_save_IFS
4172
 
4173
fi
4174
fi
4175
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4176
if test -n "$ac_ct_DLLTOOL"; then
4177
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4178
$as_echo "$ac_ct_DLLTOOL" >&6; }
4179
else
4180
  { $as_echo "$as_me:$LINENO: result: no" >&5
4181
$as_echo "no" >&6; }
4182
fi
4183
 
4184
  if test "x$ac_ct_DLLTOOL" = x; then
4185
    DLLTOOL="false"
4186
  else
4187
    case $cross_compiling:$ac_tool_warned in
4188
yes:)
4189
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4190
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4191
ac_tool_warned=yes ;;
4192
esac
4193
    DLLTOOL=$ac_ct_DLLTOOL
4194
  fi
4195
else
4196
  DLLTOOL="$ac_cv_prog_DLLTOOL"
4197
fi
4198
 
4199
  if test -n "$ac_tool_prefix"; then
4200
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4201
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4202
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4203
$as_echo_n "checking for $ac_word... " >&6; }
4204
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4205
  $as_echo_n "(cached) " >&6
4206
else
4207
  if test -n "$OBJDUMP"; then
4208
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4209
else
4210
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211
for as_dir in $PATH
4212
do
4213
  IFS=$as_save_IFS
4214
  test -z "$as_dir" && as_dir=.
4215
  for ac_exec_ext in '' $ac_executable_extensions; do
4216
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4218
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219
    break 2
4220
  fi
4221
done
4222
done
4223
IFS=$as_save_IFS
4224
 
4225
fi
4226
fi
4227
OBJDUMP=$ac_cv_prog_OBJDUMP
4228
if test -n "$OBJDUMP"; then
4229
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4230
$as_echo "$OBJDUMP" >&6; }
4231
else
4232
  { $as_echo "$as_me:$LINENO: result: no" >&5
4233
$as_echo "no" >&6; }
4234
fi
4235
 
4236
 
4237
fi
4238
if test -z "$ac_cv_prog_OBJDUMP"; then
4239
  ac_ct_OBJDUMP=$OBJDUMP
4240
  # Extract the first word of "objdump", so it can be a program name with args.
4241
set dummy objdump; ac_word=$2
4242
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4243
$as_echo_n "checking for $ac_word... " >&6; }
4244
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4245
  $as_echo_n "(cached) " >&6
4246
else
4247
  if test -n "$ac_ct_OBJDUMP"; then
4248
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4249
else
4250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251
for as_dir in $PATH
4252
do
4253
  IFS=$as_save_IFS
4254
  test -z "$as_dir" && as_dir=.
4255
  for ac_exec_ext in '' $ac_executable_extensions; do
4256
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4258
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259
    break 2
4260
  fi
4261
done
4262
done
4263
IFS=$as_save_IFS
4264
 
4265
fi
4266
fi
4267
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4268
if test -n "$ac_ct_OBJDUMP"; then
4269
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4270
$as_echo "$ac_ct_OBJDUMP" >&6; }
4271
else
4272
  { $as_echo "$as_me:$LINENO: result: no" >&5
4273
$as_echo "no" >&6; }
4274
fi
4275
 
4276
  if test "x$ac_ct_OBJDUMP" = x; then
4277
    OBJDUMP="false"
4278
  else
4279
    case $cross_compiling:$ac_tool_warned in
4280
yes:)
4281
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4282
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4283
ac_tool_warned=yes ;;
4284
esac
4285
    OBJDUMP=$ac_ct_OBJDUMP
4286
  fi
4287
else
4288
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4289
fi
4290
 
4291
  ;;
4292
esac
4293
 
4294
test -z "$AS" && AS=as
4295
 
4296
 
4297
 
4298
 
4299
 
4300
test -z "$DLLTOOL" && DLLTOOL=dlltool
4301
 
4302
 
4303
 
4304
 
4305
 
4306
test -z "$OBJDUMP" && OBJDUMP=objdump
4307
 
4308
 
4309
 
4310
 
4311
 
4312
 
4313
 
4314
case `pwd` in
4315
  *\ * | *\     *)
4316
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4317
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4318
esac
4319
 
4320
 
4321
 
4322
macro_version='2.2.6'
4323
macro_revision='1.3012'
4324
 
4325
 
4326
 
4327
 
4328
 
4329
 
4330
 
4331
 
4332
 
4333
 
4334
 
4335
 
4336
 
4337
ltmain="$ac_aux_dir/ltmain.sh"
4338
 
4339
ac_ext=c
4340
ac_cpp='$CPP $CPPFLAGS'
4341
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344
if test -n "$ac_tool_prefix"; then
4345
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4346
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4347
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4348
$as_echo_n "checking for $ac_word... " >&6; }
4349
if test "${ac_cv_prog_CC+set}" = set; then
4350
  $as_echo_n "(cached) " >&6
4351
else
4352
  if test -n "$CC"; then
4353
  ac_cv_prog_CC="$CC" # Let the user override the test.
4354
else
4355
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356
for as_dir in $PATH
4357
do
4358
  IFS=$as_save_IFS
4359
  test -z "$as_dir" && as_dir=.
4360
  for ac_exec_ext in '' $ac_executable_extensions; do
4361
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4363
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364
    break 2
4365
  fi
4366
done
4367
done
4368
IFS=$as_save_IFS
4369
 
4370
fi
4371
fi
4372
CC=$ac_cv_prog_CC
4373
if test -n "$CC"; then
4374
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4375
$as_echo "$CC" >&6; }
4376
else
4377
  { $as_echo "$as_me:$LINENO: result: no" >&5
4378
$as_echo "no" >&6; }
4379
fi
4380
 
4381
 
4382
fi
4383
if test -z "$ac_cv_prog_CC"; then
4384
  ac_ct_CC=$CC
4385
  # Extract the first word of "gcc", so it can be a program name with args.
4386
set dummy gcc; ac_word=$2
4387
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4388
$as_echo_n "checking for $ac_word... " >&6; }
4389
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4390
  $as_echo_n "(cached) " >&6
4391
else
4392
  if test -n "$ac_ct_CC"; then
4393
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4394
else
4395
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396
for as_dir in $PATH
4397
do
4398
  IFS=$as_save_IFS
4399
  test -z "$as_dir" && as_dir=.
4400
  for ac_exec_ext in '' $ac_executable_extensions; do
4401
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402
    ac_cv_prog_ac_ct_CC="gcc"
4403
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404
    break 2
4405
  fi
4406
done
4407
done
4408
IFS=$as_save_IFS
4409
 
4410
fi
4411
fi
4412
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4413
if test -n "$ac_ct_CC"; then
4414
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4415
$as_echo "$ac_ct_CC" >&6; }
4416
else
4417
  { $as_echo "$as_me:$LINENO: result: no" >&5
4418
$as_echo "no" >&6; }
4419
fi
4420
 
4421
  if test "x$ac_ct_CC" = x; then
4422
    CC=""
4423
  else
4424
    case $cross_compiling:$ac_tool_warned in
4425
yes:)
4426
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4427
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4428
ac_tool_warned=yes ;;
4429
esac
4430
    CC=$ac_ct_CC
4431
  fi
4432
else
4433
  CC="$ac_cv_prog_CC"
4434
fi
4435
 
4436
if test -z "$CC"; then
4437
          if test -n "$ac_tool_prefix"; then
4438
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4439
set dummy ${ac_tool_prefix}cc; ac_word=$2
4440
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4441
$as_echo_n "checking for $ac_word... " >&6; }
4442
if test "${ac_cv_prog_CC+set}" = set; then
4443
  $as_echo_n "(cached) " >&6
4444
else
4445
  if test -n "$CC"; then
4446
  ac_cv_prog_CC="$CC" # Let the user override the test.
4447
else
4448
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449
for as_dir in $PATH
4450
do
4451
  IFS=$as_save_IFS
4452
  test -z "$as_dir" && as_dir=.
4453
  for ac_exec_ext in '' $ac_executable_extensions; do
4454
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4456
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457
    break 2
4458
  fi
4459
done
4460
done
4461
IFS=$as_save_IFS
4462
 
4463
fi
4464
fi
4465
CC=$ac_cv_prog_CC
4466
if test -n "$CC"; then
4467
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4468
$as_echo "$CC" >&6; }
4469
else
4470
  { $as_echo "$as_me:$LINENO: result: no" >&5
4471
$as_echo "no" >&6; }
4472
fi
4473
 
4474
 
4475
  fi
4476
fi
4477
if test -z "$CC"; then
4478
  # Extract the first word of "cc", so it can be a program name with args.
4479
set dummy cc; ac_word=$2
4480
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4481
$as_echo_n "checking for $ac_word... " >&6; }
4482
if test "${ac_cv_prog_CC+set}" = set; then
4483
  $as_echo_n "(cached) " >&6
4484
else
4485
  if test -n "$CC"; then
4486
  ac_cv_prog_CC="$CC" # Let the user override the test.
4487
else
4488
  ac_prog_rejected=no
4489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490
for as_dir in $PATH
4491
do
4492
  IFS=$as_save_IFS
4493
  test -z "$as_dir" && as_dir=.
4494
  for ac_exec_ext in '' $ac_executable_extensions; do
4495
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4497
       ac_prog_rejected=yes
4498
       continue
4499
     fi
4500
    ac_cv_prog_CC="cc"
4501
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502
    break 2
4503
  fi
4504
done
4505
done
4506
IFS=$as_save_IFS
4507
 
4508
if test $ac_prog_rejected = yes; then
4509
  # We found a bogon in the path, so make sure we never use it.
4510
  set dummy $ac_cv_prog_CC
4511
  shift
4512
  if test $# != 0; then
4513
    # We chose a different compiler from the bogus one.
4514
    # However, it has the same basename, so the bogon will be chosen
4515
    # first if we set CC to just the basename; use the full file name.
4516
    shift
4517
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4518
  fi
4519
fi
4520
fi
4521
fi
4522
CC=$ac_cv_prog_CC
4523
if test -n "$CC"; then
4524
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4525
$as_echo "$CC" >&6; }
4526
else
4527
  { $as_echo "$as_me:$LINENO: result: no" >&5
4528
$as_echo "no" >&6; }
4529
fi
4530
 
4531
 
4532
fi
4533
if test -z "$CC"; then
4534
  if test -n "$ac_tool_prefix"; then
4535
  for ac_prog in cl.exe
4536
  do
4537
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4538
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4539
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4540
$as_echo_n "checking for $ac_word... " >&6; }
4541
if test "${ac_cv_prog_CC+set}" = set; then
4542
  $as_echo_n "(cached) " >&6
4543
else
4544
  if test -n "$CC"; then
4545
  ac_cv_prog_CC="$CC" # Let the user override the test.
4546
else
4547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548
for as_dir in $PATH
4549
do
4550
  IFS=$as_save_IFS
4551
  test -z "$as_dir" && as_dir=.
4552
  for ac_exec_ext in '' $ac_executable_extensions; do
4553
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4555
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556
    break 2
4557
  fi
4558
done
4559
done
4560
IFS=$as_save_IFS
4561
 
4562
fi
4563
fi
4564
CC=$ac_cv_prog_CC
4565
if test -n "$CC"; then
4566
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4567
$as_echo "$CC" >&6; }
4568
else
4569
  { $as_echo "$as_me:$LINENO: result: no" >&5
4570
$as_echo "no" >&6; }
4571
fi
4572
 
4573
 
4574
    test -n "$CC" && break
4575
  done
4576
fi
4577
if test -z "$CC"; then
4578
  ac_ct_CC=$CC
4579
  for ac_prog in cl.exe
4580
do
4581
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4582
set dummy $ac_prog; ac_word=$2
4583
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4584
$as_echo_n "checking for $ac_word... " >&6; }
4585
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4586
  $as_echo_n "(cached) " >&6
4587
else
4588
  if test -n "$ac_ct_CC"; then
4589
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4590
else
4591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592
for as_dir in $PATH
4593
do
4594
  IFS=$as_save_IFS
4595
  test -z "$as_dir" && as_dir=.
4596
  for ac_exec_ext in '' $ac_executable_extensions; do
4597
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598
    ac_cv_prog_ac_ct_CC="$ac_prog"
4599
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600
    break 2
4601
  fi
4602
done
4603
done
4604
IFS=$as_save_IFS
4605
 
4606
fi
4607
fi
4608
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4609
if test -n "$ac_ct_CC"; then
4610
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4611
$as_echo "$ac_ct_CC" >&6; }
4612
else
4613
  { $as_echo "$as_me:$LINENO: result: no" >&5
4614
$as_echo "no" >&6; }
4615
fi
4616
 
4617
 
4618
  test -n "$ac_ct_CC" && break
4619
done
4620
 
4621
  if test "x$ac_ct_CC" = x; then
4622
    CC=""
4623
  else
4624
    case $cross_compiling:$ac_tool_warned in
4625
yes:)
4626
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4627
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628
ac_tool_warned=yes ;;
4629
esac
4630
    CC=$ac_ct_CC
4631
  fi
4632
fi
4633
 
4634
fi
4635
 
4636
 
4637
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4638
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4639
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4640
See \`config.log' for more details." >&5
4641
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4642
See \`config.log' for more details." >&2;}
4643
   { (exit 1); exit 1; }; }; }
4644
 
4645
# Provide some information about the compiler.
4646
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4647
set X $ac_compile
4648
ac_compiler=$2
4649
{ (ac_try="$ac_compiler --version >&5"
4650
case "(($ac_try" in
4651
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652
  *) ac_try_echo=$ac_try;;
4653
esac
4654
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4655
$as_echo "$ac_try_echo") >&5
4656
  (eval "$ac_compiler --version >&5") 2>&5
4657
  ac_status=$?
4658
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659
  (exit $ac_status); }
4660
{ (ac_try="$ac_compiler -v >&5"
4661
case "(($ac_try" in
4662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663
  *) ac_try_echo=$ac_try;;
4664
esac
4665
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4666
$as_echo "$ac_try_echo") >&5
4667
  (eval "$ac_compiler -v >&5") 2>&5
4668
  ac_status=$?
4669
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670
  (exit $ac_status); }
4671
{ (ac_try="$ac_compiler -V >&5"
4672
case "(($ac_try" in
4673
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674
  *) ac_try_echo=$ac_try;;
4675
esac
4676
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4677
$as_echo "$ac_try_echo") >&5
4678
  (eval "$ac_compiler -V >&5") 2>&5
4679
  ac_status=$?
4680
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681
  (exit $ac_status); }
4682
 
4683
cat >conftest.$ac_ext <<_ACEOF
4684
/* confdefs.h.  */
4685
_ACEOF
4686
cat confdefs.h >>conftest.$ac_ext
4687
cat >>conftest.$ac_ext <<_ACEOF
4688
/* end confdefs.h.  */
4689
 
4690
int
4691
main ()
4692
{
4693
 
4694
  ;
4695
  return 0;
4696
}
4697
_ACEOF
4698
ac_clean_files_save=$ac_clean_files
4699
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4700
# Try to create an executable without -o first, disregard a.out.
4701
# It will help us diagnose broken compilers, and finding out an intuition
4702
# of exeext.
4703
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4704
$as_echo_n "checking for C compiler default output file name... " >&6; }
4705
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4706
 
4707
# The possible output files:
4708
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4709
 
4710
ac_rmfiles=
4711
for ac_file in $ac_files
4712
do
4713
  case $ac_file in
4714
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4715
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4716
  esac
4717
done
4718
rm -f $ac_rmfiles
4719
 
4720
if { (ac_try="$ac_link_default"
4721
case "(($ac_try" in
4722
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723
  *) ac_try_echo=$ac_try;;
4724
esac
4725
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4726
$as_echo "$ac_try_echo") >&5
4727
  (eval "$ac_link_default") 2>&5
4728
  ac_status=$?
4729
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730
  (exit $ac_status); }; then
4731
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4732
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4733
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4734
# so that the user can short-circuit this test for compilers unknown to
4735
# Autoconf.
4736
for ac_file in $ac_files ''
4737
do
4738
  test -f "$ac_file" || continue
4739
  case $ac_file in
4740
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4741
        ;;
4742
    [ab].out )
4743
        # We found the default executable, but exeext='' is most
4744
        # certainly right.
4745
        break;;
4746
    *.* )
4747
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4748
        then :; else
4749
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4750
        fi
4751
        # We set ac_cv_exeext here because the later test for it is not
4752
        # safe: cross compilers may not add the suffix if given an `-o'
4753
        # argument, so we may need to know it at that point already.
4754
        # Even if this section looks crufty: it has the advantage of
4755
        # actually working.
4756
        break;;
4757
    * )
4758
        break;;
4759
  esac
4760
done
4761
test "$ac_cv_exeext" = no && ac_cv_exeext=
4762
 
4763
else
4764
  ac_file=''
4765
fi
4766
 
4767
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4768
$as_echo "$ac_file" >&6; }
4769
if test -z "$ac_file"; then
4770
  $as_echo "$as_me: failed program was:" >&5
4771
sed 's/^/| /' conftest.$ac_ext >&5
4772
 
4773
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4774
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4775
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4776
See \`config.log' for more details." >&5
4777
$as_echo "$as_me: error: C compiler cannot create executables
4778
See \`config.log' for more details." >&2;}
4779
   { (exit 77); exit 77; }; }; }
4780
fi
4781
 
4782
ac_exeext=$ac_cv_exeext
4783
 
4784
# Check that the compiler produces executables we can run.  If not, either
4785
# the compiler is broken, or we cross compile.
4786
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4787
$as_echo_n "checking whether the C compiler works... " >&6; }
4788
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4789
# If not cross compiling, check that we can run a simple program.
4790
if test "$cross_compiling" != yes; then
4791
  if { ac_try='./$ac_file'
4792
  { (case "(($ac_try" in
4793
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794
  *) ac_try_echo=$ac_try;;
4795
esac
4796
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797
$as_echo "$ac_try_echo") >&5
4798
  (eval "$ac_try") 2>&5
4799
  ac_status=$?
4800
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801
  (exit $ac_status); }; }; then
4802
    cross_compiling=no
4803
  else
4804
    if test "$cross_compiling" = maybe; then
4805
        cross_compiling=yes
4806
    else
4807
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4808
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4809
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4810
If you meant to cross compile, use \`--host'.
4811
See \`config.log' for more details." >&5
4812
$as_echo "$as_me: error: cannot run C compiled programs.
4813
If you meant to cross compile, use \`--host'.
4814
See \`config.log' for more details." >&2;}
4815
   { (exit 1); exit 1; }; }; }
4816
    fi
4817
  fi
4818
fi
4819
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4820
$as_echo "yes" >&6; }
4821
 
4822
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4823
ac_clean_files=$ac_clean_files_save
4824
# Check that the compiler produces executables we can run.  If not, either
4825
# the compiler is broken, or we cross compile.
4826
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4827
$as_echo_n "checking whether we are cross compiling... " >&6; }
4828
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4829
$as_echo "$cross_compiling" >&6; }
4830
 
4831
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4832
$as_echo_n "checking for suffix of executables... " >&6; }
4833
if { (ac_try="$ac_link"
4834
case "(($ac_try" in
4835
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836
  *) ac_try_echo=$ac_try;;
4837
esac
4838
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4839
$as_echo "$ac_try_echo") >&5
4840
  (eval "$ac_link") 2>&5
4841
  ac_status=$?
4842
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843
  (exit $ac_status); }; then
4844
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4845
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4846
# work properly (i.e., refer to `conftest.exe'), while it won't with
4847
# `rm'.
4848
for ac_file in conftest.exe conftest conftest.*; do
4849
  test -f "$ac_file" || continue
4850
  case $ac_file in
4851
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4852
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4853
          break;;
4854
    * ) break;;
4855
  esac
4856
done
4857
else
4858
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4859
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4860
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4861
See \`config.log' for more details." >&5
4862
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4863
See \`config.log' for more details." >&2;}
4864
   { (exit 1); exit 1; }; }; }
4865
fi
4866
 
4867
rm -f conftest$ac_cv_exeext
4868
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4869
$as_echo "$ac_cv_exeext" >&6; }
4870
 
4871
rm -f conftest.$ac_ext
4872
EXEEXT=$ac_cv_exeext
4873
ac_exeext=$EXEEXT
4874
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4875
$as_echo_n "checking for suffix of object files... " >&6; }
4876
if test "${ac_cv_objext+set}" = set; then
4877
  $as_echo_n "(cached) " >&6
4878
else
4879
  cat >conftest.$ac_ext <<_ACEOF
4880
/* confdefs.h.  */
4881
_ACEOF
4882
cat confdefs.h >>conftest.$ac_ext
4883
cat >>conftest.$ac_ext <<_ACEOF
4884
/* end confdefs.h.  */
4885
 
4886
int
4887
main ()
4888
{
4889
 
4890
  ;
4891
  return 0;
4892
}
4893
_ACEOF
4894
rm -f conftest.o conftest.obj
4895
if { (ac_try="$ac_compile"
4896
case "(($ac_try" in
4897
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898
  *) ac_try_echo=$ac_try;;
4899
esac
4900
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4901
$as_echo "$ac_try_echo") >&5
4902
  (eval "$ac_compile") 2>&5
4903
  ac_status=$?
4904
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905
  (exit $ac_status); }; then
4906
  for ac_file in conftest.o conftest.obj conftest.*; do
4907
  test -f "$ac_file" || continue;
4908
  case $ac_file in
4909
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4910
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4911
       break;;
4912
  esac
4913
done
4914
else
4915
  $as_echo "$as_me: failed program was:" >&5
4916
sed 's/^/| /' conftest.$ac_ext >&5
4917
 
4918
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4919
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4920
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4921
See \`config.log' for more details." >&5
4922
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4923
See \`config.log' for more details." >&2;}
4924
   { (exit 1); exit 1; }; }; }
4925
fi
4926
 
4927
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4928
fi
4929
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4930
$as_echo "$ac_cv_objext" >&6; }
4931
OBJEXT=$ac_cv_objext
4932
ac_objext=$OBJEXT
4933
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4934
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4935
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4936
  $as_echo_n "(cached) " >&6
4937
else
4938
  cat >conftest.$ac_ext <<_ACEOF
4939
/* confdefs.h.  */
4940
_ACEOF
4941
cat confdefs.h >>conftest.$ac_ext
4942
cat >>conftest.$ac_ext <<_ACEOF
4943
/* end confdefs.h.  */
4944
 
4945
int
4946
main ()
4947
{
4948
#ifndef __GNUC__
4949
       choke me
4950
#endif
4951
 
4952
  ;
4953
  return 0;
4954
}
4955
_ACEOF
4956
rm -f conftest.$ac_objext
4957
if { (ac_try="$ac_compile"
4958
case "(($ac_try" in
4959
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960
  *) ac_try_echo=$ac_try;;
4961
esac
4962
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4963
$as_echo "$ac_try_echo") >&5
4964
  (eval "$ac_compile") 2>conftest.er1
4965
  ac_status=$?
4966
  grep -v '^ *+' conftest.er1 >conftest.err
4967
  rm -f conftest.er1
4968
  cat conftest.err >&5
4969
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970
  (exit $ac_status); } && {
4971
         test -z "$ac_c_werror_flag" ||
4972
         test ! -s conftest.err
4973
       } && test -s conftest.$ac_objext; then
4974
  ac_compiler_gnu=yes
4975
else
4976
  $as_echo "$as_me: failed program was:" >&5
4977
sed 's/^/| /' conftest.$ac_ext >&5
4978
 
4979
        ac_compiler_gnu=no
4980
fi
4981
 
4982
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4984
 
4985
fi
4986
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4987
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4988
if test $ac_compiler_gnu = yes; then
4989
  GCC=yes
4990
else
4991
  GCC=
4992
fi
4993
ac_test_CFLAGS=${CFLAGS+set}
4994
ac_save_CFLAGS=$CFLAGS
4995
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4996
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4997
if test "${ac_cv_prog_cc_g+set}" = set; then
4998
  $as_echo_n "(cached) " >&6
4999
else
5000
  ac_save_c_werror_flag=$ac_c_werror_flag
5001
   ac_c_werror_flag=yes
5002
   ac_cv_prog_cc_g=no
5003
   CFLAGS="-g"
5004
   cat >conftest.$ac_ext <<_ACEOF
5005
/* confdefs.h.  */
5006
_ACEOF
5007
cat confdefs.h >>conftest.$ac_ext
5008
cat >>conftest.$ac_ext <<_ACEOF
5009
/* end confdefs.h.  */
5010
 
5011
int
5012
main ()
5013
{
5014
 
5015
  ;
5016
  return 0;
5017
}
5018
_ACEOF
5019
rm -f conftest.$ac_objext
5020
if { (ac_try="$ac_compile"
5021
case "(($ac_try" in
5022
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023
  *) ac_try_echo=$ac_try;;
5024
esac
5025
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5026
$as_echo "$ac_try_echo") >&5
5027
  (eval "$ac_compile") 2>conftest.er1
5028
  ac_status=$?
5029
  grep -v '^ *+' conftest.er1 >conftest.err
5030
  rm -f conftest.er1
5031
  cat conftest.err >&5
5032
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033
  (exit $ac_status); } && {
5034
         test -z "$ac_c_werror_flag" ||
5035
         test ! -s conftest.err
5036
       } && test -s conftest.$ac_objext; then
5037
  ac_cv_prog_cc_g=yes
5038
else
5039
  $as_echo "$as_me: failed program was:" >&5
5040
sed 's/^/| /' conftest.$ac_ext >&5
5041
 
5042
        CFLAGS=""
5043
      cat >conftest.$ac_ext <<_ACEOF
5044
/* confdefs.h.  */
5045
_ACEOF
5046
cat confdefs.h >>conftest.$ac_ext
5047
cat >>conftest.$ac_ext <<_ACEOF
5048
/* end confdefs.h.  */
5049
 
5050
int
5051
main ()
5052
{
5053
 
5054
  ;
5055
  return 0;
5056
}
5057
_ACEOF
5058
rm -f conftest.$ac_objext
5059
if { (ac_try="$ac_compile"
5060
case "(($ac_try" in
5061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062
  *) ac_try_echo=$ac_try;;
5063
esac
5064
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5065
$as_echo "$ac_try_echo") >&5
5066
  (eval "$ac_compile") 2>conftest.er1
5067
  ac_status=$?
5068
  grep -v '^ *+' conftest.er1 >conftest.err
5069
  rm -f conftest.er1
5070
  cat conftest.err >&5
5071
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072
  (exit $ac_status); } && {
5073
         test -z "$ac_c_werror_flag" ||
5074
         test ! -s conftest.err
5075
       } && test -s conftest.$ac_objext; then
5076
  :
5077
else
5078
  $as_echo "$as_me: failed program was:" >&5
5079
sed 's/^/| /' conftest.$ac_ext >&5
5080
 
5081
        ac_c_werror_flag=$ac_save_c_werror_flag
5082
         CFLAGS="-g"
5083
         cat >conftest.$ac_ext <<_ACEOF
5084
/* confdefs.h.  */
5085
_ACEOF
5086
cat confdefs.h >>conftest.$ac_ext
5087
cat >>conftest.$ac_ext <<_ACEOF
5088
/* end confdefs.h.  */
5089
 
5090
int
5091
main ()
5092
{
5093
 
5094
  ;
5095
  return 0;
5096
}
5097
_ACEOF
5098
rm -f conftest.$ac_objext
5099
if { (ac_try="$ac_compile"
5100
case "(($ac_try" in
5101
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102
  *) ac_try_echo=$ac_try;;
5103
esac
5104
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5105
$as_echo "$ac_try_echo") >&5
5106
  (eval "$ac_compile") 2>conftest.er1
5107
  ac_status=$?
5108
  grep -v '^ *+' conftest.er1 >conftest.err
5109
  rm -f conftest.er1
5110
  cat conftest.err >&5
5111
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112
  (exit $ac_status); } && {
5113
         test -z "$ac_c_werror_flag" ||
5114
         test ! -s conftest.err
5115
       } && test -s conftest.$ac_objext; then
5116
  ac_cv_prog_cc_g=yes
5117
else
5118
  $as_echo "$as_me: failed program was:" >&5
5119
sed 's/^/| /' conftest.$ac_ext >&5
5120
 
5121
 
5122
fi
5123
 
5124
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125
fi
5126
 
5127
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5128
fi
5129
 
5130
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131
   ac_c_werror_flag=$ac_save_c_werror_flag
5132
fi
5133
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5134
$as_echo "$ac_cv_prog_cc_g" >&6; }
5135
if test "$ac_test_CFLAGS" = set; then
5136
  CFLAGS=$ac_save_CFLAGS
5137
elif test $ac_cv_prog_cc_g = yes; then
5138
  if test "$GCC" = yes; then
5139
    CFLAGS="-g -O2"
5140
  else
5141
    CFLAGS="-g"
5142
  fi
5143
else
5144
  if test "$GCC" = yes; then
5145
    CFLAGS="-O2"
5146
  else
5147
    CFLAGS=
5148
  fi
5149
fi
5150
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5151
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5152
if test "${ac_cv_prog_cc_c89+set}" = set; then
5153
  $as_echo_n "(cached) " >&6
5154
else
5155
  ac_cv_prog_cc_c89=no
5156
ac_save_CC=$CC
5157
cat >conftest.$ac_ext <<_ACEOF
5158
/* confdefs.h.  */
5159
_ACEOF
5160
cat confdefs.h >>conftest.$ac_ext
5161
cat >>conftest.$ac_ext <<_ACEOF
5162
/* end confdefs.h.  */
5163
#include 
5164
#include 
5165
#include 
5166
#include 
5167
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5168
struct buf { int x; };
5169
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5170
static char *e (p, i)
5171
     char **p;
5172
     int i;
5173
{
5174
  return p[i];
5175
}
5176
static char *f (char * (*g) (char **, int), char **p, ...)
5177
{
5178
  char *s;
5179
  va_list v;
5180
  va_start (v,p);
5181
  s = g (p, va_arg (v,int));
5182
  va_end (v);
5183
  return s;
5184
}
5185
 
5186
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5187
   function prototypes and stuff, but not '\xHH' hex character constants.
5188
   These don't provoke an error unfortunately, instead are silently treated
5189
   as 'x'.  The following induces an error, until -std is added to get
5190
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5191
   array size at least.  It's necessary to write '\x00'==0 to get something
5192
   that's true only with -std.  */
5193
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5194
 
5195
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5196
   inside strings and character constants.  */
5197
#define FOO(x) 'x'
5198
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5199
 
5200
int test (int i, double x);
5201
struct s1 {int (*f) (int a);};
5202
struct s2 {int (*f) (double a);};
5203
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5204
int argc;
5205
char **argv;
5206
int
5207
main ()
5208
{
5209
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5210
  ;
5211
  return 0;
5212
}
5213
_ACEOF
5214
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5215
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5216
do
5217
  CC="$ac_save_CC $ac_arg"
5218
  rm -f conftest.$ac_objext
5219
if { (ac_try="$ac_compile"
5220
case "(($ac_try" in
5221
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222
  *) ac_try_echo=$ac_try;;
5223
esac
5224
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5225
$as_echo "$ac_try_echo") >&5
5226
  (eval "$ac_compile") 2>conftest.er1
5227
  ac_status=$?
5228
  grep -v '^ *+' conftest.er1 >conftest.err
5229
  rm -f conftest.er1
5230
  cat conftest.err >&5
5231
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232
  (exit $ac_status); } && {
5233
         test -z "$ac_c_werror_flag" ||
5234
         test ! -s conftest.err
5235
       } && test -s conftest.$ac_objext; then
5236
  ac_cv_prog_cc_c89=$ac_arg
5237
else
5238
  $as_echo "$as_me: failed program was:" >&5
5239
sed 's/^/| /' conftest.$ac_ext >&5
5240
 
5241
 
5242
fi
5243
 
5244
rm -f core conftest.err conftest.$ac_objext
5245
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5246
done
5247
rm -f conftest.$ac_ext
5248
CC=$ac_save_CC
5249
 
5250
fi
5251
# AC_CACHE_VAL
5252
case "x$ac_cv_prog_cc_c89" in
5253
  x)
5254
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5255
$as_echo "none needed" >&6; } ;;
5256
  xno)
5257
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5258
$as_echo "unsupported" >&6; } ;;
5259
  *)
5260
    CC="$CC $ac_cv_prog_cc_c89"
5261
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5262
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5263
esac
5264
 
5265
 
5266
ac_ext=c
5267
ac_cpp='$CPP $CPPFLAGS'
5268
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5269
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5270
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5271
 
5272
depcc="$CC"   am_compiler_list=
5273
 
5274
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5275
$as_echo_n "checking dependency style of $depcc... " >&6; }
5276
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5277
  $as_echo_n "(cached) " >&6
5278
else
5279
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5280
  # We make a subdir and do the tests there.  Otherwise we can end up
5281
  # making bogus files that we don't know about and never remove.  For
5282
  # instance it was reported that on HP-UX the gcc test will end up
5283
  # making a dummy file named `D' -- because `-MD' means `put the output
5284
  # in D'.
5285
  mkdir conftest.dir
5286
  # Copy depcomp to subdir because otherwise we won't find it if we're
5287
  # using a relative directory.
5288
  cp "$am_depcomp" conftest.dir
5289
  cd conftest.dir
5290
  # We will build objects and dependencies in a subdirectory because
5291
  # it helps to detect inapplicable dependency modes.  For instance
5292
  # both Tru64's cc and ICC support -MD to output dependencies as a
5293
  # side effect of compilation, but ICC will put the dependencies in
5294
  # the current directory while Tru64 will put them in the object
5295
  # directory.
5296
  mkdir sub
5297
 
5298
  am_cv_CC_dependencies_compiler_type=none
5299
  if test "$am_compiler_list" = ""; then
5300
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5301
  fi
5302
  am__universal=false
5303
  case " $depcc " in #(
5304
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5305
     esac
5306
 
5307
  for depmode in $am_compiler_list; do
5308
    # Setup a source with many dependencies, because some compilers
5309
    # like to wrap large dependency lists on column 80 (with \), and
5310
    # we should not choose a depcomp mode which is confused by this.
5311
    #
5312
    # We need to recreate these files for each test, as the compiler may
5313
    # overwrite some of them when testing with obscure command lines.
5314
    # This happens at least with the AIX C compiler.
5315
    : > sub/conftest.c
5316
    for i in 1 2 3 4 5 6; do
5317
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5318
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5319
      # Solaris 8's {/usr,}/bin/sh.
5320
      touch sub/conftst$i.h
5321
    done
5322
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5323
 
5324
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5325
    # mode.  It turns out that the SunPro C++ compiler does not properly
5326
    # handle `-M -o', and we need to detect this.  Also, some Intel
5327
    # versions had trouble with output in subdirs
5328
    am__obj=sub/conftest.${OBJEXT-o}
5329
    am__minus_obj="-o $am__obj"
5330
    case $depmode in
5331
    gcc)
5332
      # This depmode causes a compiler race in universal mode.
5333
      test "$am__universal" = false || continue
5334
      ;;
5335
    nosideeffect)
5336
      # after this tag, mechanisms are not by side-effect, so they'll
5337
      # only be used when explicitly requested
5338
      if test "x$enable_dependency_tracking" = xyes; then
5339
        continue
5340
      else
5341
        break
5342
      fi
5343
      ;;
5344
    msvisualcpp | msvcmsys)
5345
      # This compiler won't grok `-c -o', but also, the minuso test has
5346
      # not run yet.  These depmodes are late enough in the game, and
5347
      # so weak that their functioning should not be impacted.
5348
      am__obj=conftest.${OBJEXT-o}
5349
      am__minus_obj=
5350
      ;;
5351
    none) break ;;
5352
    esac
5353
    if depmode=$depmode \
5354
       source=sub/conftest.c object=$am__obj \
5355
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5356
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5357
         >/dev/null 2>conftest.err &&
5358
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5359
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5360
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5361
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5362
      # icc doesn't choke on unknown options, it will just issue warnings
5363
      # or remarks (even with -Werror).  So we grep stderr for any message
5364
      # that says an option was ignored or not supported.
5365
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5366
      #   icc: Command line warning: ignoring option '-M'; no argument required
5367
      # The diagnosis changed in icc 8.0:
5368
      #   icc: Command line remark: option '-MP' not supported
5369
      if (grep 'ignoring option' conftest.err ||
5370
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5371
        am_cv_CC_dependencies_compiler_type=$depmode
5372
        break
5373
      fi
5374
    fi
5375
  done
5376
 
5377
  cd ..
5378
  rm -rf conftest.dir
5379
else
5380
  am_cv_CC_dependencies_compiler_type=none
5381
fi
5382
 
5383
fi
5384
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5385
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5386
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5387
 
5388
 if
5389
  test "x$enable_dependency_tracking" != xno \
5390
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5391
  am__fastdepCC_TRUE=
5392
  am__fastdepCC_FALSE='#'
5393
else
5394
  am__fastdepCC_TRUE='#'
5395
  am__fastdepCC_FALSE=
5396
fi
5397
 
5398
 
5399
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5400
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5401
if test "${ac_cv_path_GREP+set}" = set; then
5402
  $as_echo_n "(cached) " >&6
5403
else
5404
  if test -z "$GREP"; then
5405
  ac_path_GREP_found=false
5406
  # Loop through the user's path and test for each of PROGNAME-LIST
5407
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5409
do
5410
  IFS=$as_save_IFS
5411
  test -z "$as_dir" && as_dir=.
5412
  for ac_prog in grep ggrep; do
5413
    for ac_exec_ext in '' $ac_executable_extensions; do
5414
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5415
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5416
# Check for GNU ac_path_GREP and select it if it is found.
5417
  # Check for GNU $ac_path_GREP
5418
case `"$ac_path_GREP" --version 2>&1` in
5419
*GNU*)
5420
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5421
*)
5422
  ac_count=0
5423
  $as_echo_n 0123456789 >"conftest.in"
5424
  while :
5425
  do
5426
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5427
    mv "conftest.tmp" "conftest.in"
5428
    cp "conftest.in" "conftest.nl"
5429
    $as_echo 'GREP' >> "conftest.nl"
5430
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5431
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5432
    ac_count=`expr $ac_count + 1`
5433
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5434
      # Best one so far, save it but keep looking for a better one
5435
      ac_cv_path_GREP="$ac_path_GREP"
5436
      ac_path_GREP_max=$ac_count
5437
    fi
5438
    # 10*(2^10) chars as input seems more than enough
5439
    test $ac_count -gt 10 && break
5440
  done
5441
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5442
esac
5443
 
5444
      $ac_path_GREP_found && break 3
5445
    done
5446
  done
5447
done
5448
IFS=$as_save_IFS
5449
  if test -z "$ac_cv_path_GREP"; then
5450
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5451
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5452
   { (exit 1); exit 1; }; }
5453
  fi
5454
else
5455
  ac_cv_path_GREP=$GREP
5456
fi
5457
 
5458
fi
5459
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5460
$as_echo "$ac_cv_path_GREP" >&6; }
5461
 GREP="$ac_cv_path_GREP"
5462
 
5463
 
5464
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5465
$as_echo_n "checking for egrep... " >&6; }
5466
if test "${ac_cv_path_EGREP+set}" = set; then
5467
  $as_echo_n "(cached) " >&6
5468
else
5469
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5470
   then ac_cv_path_EGREP="$GREP -E"
5471
   else
5472
     if test -z "$EGREP"; then
5473
  ac_path_EGREP_found=false
5474
  # Loop through the user's path and test for each of PROGNAME-LIST
5475
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5477
do
5478
  IFS=$as_save_IFS
5479
  test -z "$as_dir" && as_dir=.
5480
  for ac_prog in egrep; do
5481
    for ac_exec_ext in '' $ac_executable_extensions; do
5482
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5483
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5484
# Check for GNU ac_path_EGREP and select it if it is found.
5485
  # Check for GNU $ac_path_EGREP
5486
case `"$ac_path_EGREP" --version 2>&1` in
5487
*GNU*)
5488
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5489
*)
5490
  ac_count=0
5491
  $as_echo_n 0123456789 >"conftest.in"
5492
  while :
5493
  do
5494
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5495
    mv "conftest.tmp" "conftest.in"
5496
    cp "conftest.in" "conftest.nl"
5497
    $as_echo 'EGREP' >> "conftest.nl"
5498
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5499
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5500
    ac_count=`expr $ac_count + 1`
5501
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5502
      # Best one so far, save it but keep looking for a better one
5503
      ac_cv_path_EGREP="$ac_path_EGREP"
5504
      ac_path_EGREP_max=$ac_count
5505
    fi
5506
    # 10*(2^10) chars as input seems more than enough
5507
    test $ac_count -gt 10 && break
5508
  done
5509
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5510
esac
5511
 
5512
      $ac_path_EGREP_found && break 3
5513
    done
5514
  done
5515
done
5516
IFS=$as_save_IFS
5517
  if test -z "$ac_cv_path_EGREP"; then
5518
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5519
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5520
   { (exit 1); exit 1; }; }
5521
  fi
5522
else
5523
  ac_cv_path_EGREP=$EGREP
5524
fi
5525
 
5526
   fi
5527
fi
5528
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5529
$as_echo "$ac_cv_path_EGREP" >&6; }
5530
 EGREP="$ac_cv_path_EGREP"
5531
 
5532
 
5533
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5534
$as_echo_n "checking for fgrep... " >&6; }
5535
if test "${ac_cv_path_FGREP+set}" = set; then
5536
  $as_echo_n "(cached) " >&6
5537
else
5538
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5539
   then ac_cv_path_FGREP="$GREP -F"
5540
   else
5541
     if test -z "$FGREP"; then
5542
  ac_path_FGREP_found=false
5543
  # Loop through the user's path and test for each of PROGNAME-LIST
5544
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5546
do
5547
  IFS=$as_save_IFS
5548
  test -z "$as_dir" && as_dir=.
5549
  for ac_prog in fgrep; do
5550
    for ac_exec_ext in '' $ac_executable_extensions; do
5551
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5552
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5553
# Check for GNU ac_path_FGREP and select it if it is found.
5554
  # Check for GNU $ac_path_FGREP
5555
case `"$ac_path_FGREP" --version 2>&1` in
5556
*GNU*)
5557
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5558
*)
5559
  ac_count=0
5560
  $as_echo_n 0123456789 >"conftest.in"
5561
  while :
5562
  do
5563
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5564
    mv "conftest.tmp" "conftest.in"
5565
    cp "conftest.in" "conftest.nl"
5566
    $as_echo 'FGREP' >> "conftest.nl"
5567
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5568
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5569
    ac_count=`expr $ac_count + 1`
5570
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5571
      # Best one so far, save it but keep looking for a better one
5572
      ac_cv_path_FGREP="$ac_path_FGREP"
5573
      ac_path_FGREP_max=$ac_count
5574
    fi
5575
    # 10*(2^10) chars as input seems more than enough
5576
    test $ac_count -gt 10 && break
5577
  done
5578
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5579
esac
5580
 
5581
      $ac_path_FGREP_found && break 3
5582
    done
5583
  done
5584
done
5585
IFS=$as_save_IFS
5586
  if test -z "$ac_cv_path_FGREP"; then
5587
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5588
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5589
   { (exit 1); exit 1; }; }
5590
  fi
5591
else
5592
  ac_cv_path_FGREP=$FGREP
5593
fi
5594
 
5595
   fi
5596
fi
5597
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5598
$as_echo "$ac_cv_path_FGREP" >&6; }
5599
 FGREP="$ac_cv_path_FGREP"
5600
 
5601
 
5602
test -z "$GREP" && GREP=grep
5603
 
5604
 
5605
 
5606
 
5607
 
5608
 
5609
 
5610
 
5611
 
5612
 
5613
 
5614
 
5615
 
5616
 
5617
 
5618
 
5619
 
5620
 
5621
 
5622
# Check whether --with-gnu-ld was given.
5623
if test "${with_gnu_ld+set}" = set; then
5624
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5625
else
5626
  with_gnu_ld=no
5627
fi
5628
 
5629
ac_prog=ld
5630
if test "$GCC" = yes; then
5631
  # Check if gcc -print-prog-name=ld gives a path.
5632
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5633
$as_echo_n "checking for ld used by $CC... " >&6; }
5634
  case $host in
5635
  *-*-mingw*)
5636
    # gcc leaves a trailing carriage return which upsets mingw
5637
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5638
  *)
5639
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5640
  esac
5641
  case $ac_prog in
5642
    # Accept absolute paths.
5643
    [\\/]* | ?:[\\/]*)
5644
      re_direlt='/[^/][^/]*/\.\./'
5645
      # Canonicalize the pathname of ld
5646
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5647
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5648
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5649
      done
5650
      test -z "$LD" && LD="$ac_prog"
5651
      ;;
5652
  "")
5653
    # If it fails, then pretend we aren't using GCC.
5654
    ac_prog=ld
5655
    ;;
5656
  *)
5657
    # If it is relative, then search for the first ld in PATH.
5658
    with_gnu_ld=unknown
5659
    ;;
5660
  esac
5661
elif test "$with_gnu_ld" = yes; then
5662
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5663
$as_echo_n "checking for GNU ld... " >&6; }
5664
else
5665
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5666
$as_echo_n "checking for non-GNU ld... " >&6; }
5667
fi
5668
if test "${lt_cv_path_LD+set}" = set; then
5669
  $as_echo_n "(cached) " >&6
5670
else
5671
  if test -z "$LD"; then
5672
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5673
  for ac_dir in $PATH; do
5674
    IFS="$lt_save_ifs"
5675
    test -z "$ac_dir" && ac_dir=.
5676
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5677
      lt_cv_path_LD="$ac_dir/$ac_prog"
5678
      # Check to see if the program is GNU ld.  I'd rather use --version,
5679
      # but apparently some variants of GNU ld only accept -v.
5680
      # Break only if it was the GNU/non-GNU ld that we prefer.
5681
      case `"$lt_cv_path_LD" -v 2>&1 
5682
      *GNU* | *'with BFD'*)
5683
        test "$with_gnu_ld" != no && break
5684
        ;;
5685
      *)
5686
        test "$with_gnu_ld" != yes && break
5687
        ;;
5688
      esac
5689
    fi
5690
  done
5691
  IFS="$lt_save_ifs"
5692
else
5693
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5694
fi
5695
fi
5696
 
5697
LD="$lt_cv_path_LD"
5698
if test -n "$LD"; then
5699
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5700
$as_echo "$LD" >&6; }
5701
else
5702
  { $as_echo "$as_me:$LINENO: result: no" >&5
5703
$as_echo "no" >&6; }
5704
fi
5705
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5706
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5707
   { (exit 1); exit 1; }; }
5708
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5709
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5710
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5711
  $as_echo_n "(cached) " >&6
5712
else
5713
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5714
case `$LD -v 2>&1 
5715
*GNU* | *'with BFD'*)
5716
  lt_cv_prog_gnu_ld=yes
5717
  ;;
5718
*)
5719
  lt_cv_prog_gnu_ld=no
5720
  ;;
5721
esac
5722
fi
5723
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5724
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5725
with_gnu_ld=$lt_cv_prog_gnu_ld
5726
 
5727
 
5728
 
5729
 
5730
 
5731
 
5732
 
5733
 
5734
 
5735
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5736
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5737
if test "${lt_cv_path_NM+set}" = set; then
5738
  $as_echo_n "(cached) " >&6
5739
else
5740
  if test -n "$NM"; then
5741
  # Let the user override the test.
5742
  lt_cv_path_NM="$NM"
5743
else
5744
  lt_nm_to_check="${ac_tool_prefix}nm"
5745
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5746
    lt_nm_to_check="$lt_nm_to_check nm"
5747
  fi
5748
  for lt_tmp_nm in $lt_nm_to_check; do
5749
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5750
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5751
      IFS="$lt_save_ifs"
5752
      test -z "$ac_dir" && ac_dir=.
5753
      tmp_nm="$ac_dir/$lt_tmp_nm"
5754
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5755
        # Check to see if the nm accepts a BSD-compat flag.
5756
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5757
        #   nm: unknown option "B" ignored
5758
        # Tru64's nm complains that /dev/null is an invalid object file
5759
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5760
        */dev/null* | *'Invalid file or object type'*)
5761
          lt_cv_path_NM="$tmp_nm -B"
5762
          break
5763
          ;;
5764
        *)
5765
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5766
          */dev/null*)
5767
            lt_cv_path_NM="$tmp_nm -p"
5768
            break
5769
            ;;
5770
          *)
5771
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5772
            continue # so that we can try to find one that supports BSD flags
5773
            ;;
5774
          esac
5775
          ;;
5776
        esac
5777
      fi
5778
    done
5779
    IFS="$lt_save_ifs"
5780
  done
5781
  : ${lt_cv_path_NM=no}
5782
fi
5783
fi
5784
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5785
$as_echo "$lt_cv_path_NM" >&6; }
5786
if test "$lt_cv_path_NM" != "no"; then
5787
  NM="$lt_cv_path_NM"
5788
else
5789
  # Didn't find any BSD compatible name lister, look for dumpbin.
5790
  if test -n "$ac_tool_prefix"; then
5791
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5792
  do
5793
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5794
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5795
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5796
$as_echo_n "checking for $ac_word... " >&6; }
5797
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5798
  $as_echo_n "(cached) " >&6
5799
else
5800
  if test -n "$DUMPBIN"; then
5801
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5802
else
5803
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804
for as_dir in $PATH
5805
do
5806
  IFS=$as_save_IFS
5807
  test -z "$as_dir" && as_dir=.
5808
  for ac_exec_ext in '' $ac_executable_extensions; do
5809
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5811
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812
    break 2
5813
  fi
5814
done
5815
done
5816
IFS=$as_save_IFS
5817
 
5818
fi
5819
fi
5820
DUMPBIN=$ac_cv_prog_DUMPBIN
5821
if test -n "$DUMPBIN"; then
5822
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5823
$as_echo "$DUMPBIN" >&6; }
5824
else
5825
  { $as_echo "$as_me:$LINENO: result: no" >&5
5826
$as_echo "no" >&6; }
5827
fi
5828
 
5829
 
5830
    test -n "$DUMPBIN" && break
5831
  done
5832
fi
5833
if test -z "$DUMPBIN"; then
5834
  ac_ct_DUMPBIN=$DUMPBIN
5835
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5836
do
5837
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5838
set dummy $ac_prog; ac_word=$2
5839
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5840
$as_echo_n "checking for $ac_word... " >&6; }
5841
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5842
  $as_echo_n "(cached) " >&6
5843
else
5844
  if test -n "$ac_ct_DUMPBIN"; then
5845
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5846
else
5847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848
for as_dir in $PATH
5849
do
5850
  IFS=$as_save_IFS
5851
  test -z "$as_dir" && as_dir=.
5852
  for ac_exec_ext in '' $ac_executable_extensions; do
5853
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5855
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856
    break 2
5857
  fi
5858
done
5859
done
5860
IFS=$as_save_IFS
5861
 
5862
fi
5863
fi
5864
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5865
if test -n "$ac_ct_DUMPBIN"; then
5866
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5867
$as_echo "$ac_ct_DUMPBIN" >&6; }
5868
else
5869
  { $as_echo "$as_me:$LINENO: result: no" >&5
5870
$as_echo "no" >&6; }
5871
fi
5872
 
5873
 
5874
  test -n "$ac_ct_DUMPBIN" && break
5875
done
5876
 
5877
  if test "x$ac_ct_DUMPBIN" = x; then
5878
    DUMPBIN=":"
5879
  else
5880
    case $cross_compiling:$ac_tool_warned in
5881
yes:)
5882
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5883
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5884
ac_tool_warned=yes ;;
5885
esac
5886
    DUMPBIN=$ac_ct_DUMPBIN
5887
  fi
5888
fi
5889
 
5890
 
5891
  if test "$DUMPBIN" != ":"; then
5892
    NM="$DUMPBIN"
5893
  fi
5894
fi
5895
test -z "$NM" && NM=nm
5896
 
5897
 
5898
 
5899
 
5900
 
5901
 
5902
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5903
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5904
if test "${lt_cv_nm_interface+set}" = set; then
5905
  $as_echo_n "(cached) " >&6
5906
else
5907
  lt_cv_nm_interface="BSD nm"
5908
  echo "int some_variable = 0;" > conftest.$ac_ext
5909
  (eval echo "\"\$as_me:5909: $ac_compile\"" >&5)
5910
  (eval "$ac_compile" 2>conftest.err)
5911
  cat conftest.err >&5
5912
  (eval echo "\"\$as_me:5912: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5913
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5914
  cat conftest.err >&5
5915
  (eval echo "\"\$as_me:5915: output\"" >&5)
5916
  cat conftest.out >&5
5917
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5918
    lt_cv_nm_interface="MS dumpbin"
5919
  fi
5920
  rm -f conftest*
5921
fi
5922
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5923
$as_echo "$lt_cv_nm_interface" >&6; }
5924
 
5925
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5926
$as_echo_n "checking whether ln -s works... " >&6; }
5927
LN_S=$as_ln_s
5928
if test "$LN_S" = "ln -s"; then
5929
  { $as_echo "$as_me:$LINENO: result: yes" >&5
5930
$as_echo "yes" >&6; }
5931
else
5932
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5933
$as_echo "no, using $LN_S" >&6; }
5934
fi
5935
 
5936
# find the maximum length of command line arguments
5937
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5938
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5939
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5940
  $as_echo_n "(cached) " >&6
5941
else
5942
    i=0
5943
  teststring="ABCD"
5944
 
5945
  case $build_os in
5946
  msdosdjgpp*)
5947
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5948
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5949
    # during glob expansion).  Even if it were fixed, the result of this
5950
    # check would be larger than it should be.
5951
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5952
    ;;
5953
 
5954
  gnu*)
5955
    # Under GNU Hurd, this test is not required because there is
5956
    # no limit to the length of command line arguments.
5957
    # Libtool will interpret -1 as no limit whatsoever
5958
    lt_cv_sys_max_cmd_len=-1;
5959
    ;;
5960
 
5961
  cygwin* | mingw* | cegcc*)
5962
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5963
    # about 5 minutes as the teststring grows exponentially.
5964
    # Worse, since 9x/ME are not pre-emptively multitasking,
5965
    # you end up with a "frozen" computer, even though with patience
5966
    # the test eventually succeeds (with a max line length of 256k).
5967
    # Instead, let's just punt: use the minimum linelength reported by
5968
    # all of the supported platforms: 8192 (on NT/2K/XP).
5969
    lt_cv_sys_max_cmd_len=8192;
5970
    ;;
5971
 
5972
  amigaos*)
5973
    # On AmigaOS with pdksh, this test takes hours, literally.
5974
    # So we just punt and use a minimum line length of 8192.
5975
    lt_cv_sys_max_cmd_len=8192;
5976
    ;;
5977
 
5978
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5979
    # This has been around since 386BSD, at least.  Likely further.
5980
    if test -x /sbin/sysctl; then
5981
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5982
    elif test -x /usr/sbin/sysctl; then
5983
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5984
    else
5985
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5986
    fi
5987
    # And add a safety zone
5988
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5989
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5990
    ;;
5991
 
5992
  interix*)
5993
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5994
    lt_cv_sys_max_cmd_len=196608
5995
    ;;
5996
 
5997
  osf*)
5998
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5999
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6000
    # nice to cause kernel panics so lets avoid the loop below.
6001
    # First set a reasonable default.
6002
    lt_cv_sys_max_cmd_len=16384
6003
    #
6004
    if test -x /sbin/sysconfig; then
6005
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6006
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6007
      esac
6008
    fi
6009
    ;;
6010
  sco3.2v5*)
6011
    lt_cv_sys_max_cmd_len=102400
6012
    ;;
6013
  sysv5* | sco5v6* | sysv4.2uw2*)
6014
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6015
    if test -n "$kargmax"; then
6016
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6017
    else
6018
      lt_cv_sys_max_cmd_len=32768
6019
    fi
6020
    ;;
6021
  *)
6022
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6023
    if test -n "$lt_cv_sys_max_cmd_len"; then
6024
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6025
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6026
    else
6027
      # Make teststring a little bigger before we do anything with it.
6028
      # a 1K string should be a reasonable start.
6029
      for i in 1 2 3 4 5 6 7 8 ; do
6030
        teststring=$teststring$teststring
6031
      done
6032
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6033
      # If test is not a shell built-in, we'll probably end up computing a
6034
      # maximum length that is only half of the actual maximum length, but
6035
      # we can't tell.
6036
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6037
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6038
              test $i != 17 # 1/2 MB should be enough
6039
      do
6040
        i=`expr $i + 1`
6041
        teststring=$teststring$teststring
6042
      done
6043
      # Only check the string length outside the loop.
6044
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6045
      teststring=
6046
      # Add a significant safety factor because C++ compilers can tack on
6047
      # massive amounts of additional arguments before passing them to the
6048
      # linker.  It appears as though 1/2 is a usable value.
6049
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6050
    fi
6051
    ;;
6052
  esac
6053
 
6054
fi
6055
 
6056
if test -n $lt_cv_sys_max_cmd_len ; then
6057
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6058
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6059
else
6060
  { $as_echo "$as_me:$LINENO: result: none" >&5
6061
$as_echo "none" >&6; }
6062
fi
6063
max_cmd_len=$lt_cv_sys_max_cmd_len
6064
 
6065
 
6066
 
6067
 
6068
 
6069
 
6070
: ${CP="cp -f"}
6071
: ${MV="mv -f"}
6072
: ${RM="rm -f"}
6073
 
6074
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6075
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6076
# Try some XSI features
6077
xsi_shell=no
6078
( _lt_dummy="a/b/c"
6079
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6080
      = c,a/b,, \
6081
    && eval 'test $(( 1 + 1 )) -eq 2 \
6082
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6083
  && xsi_shell=yes
6084
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6085
$as_echo "$xsi_shell" >&6; }
6086
 
6087
 
6088
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6089
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6090
lt_shell_append=no
6091
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6092
    >/dev/null 2>&1 \
6093
  && lt_shell_append=yes
6094
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6095
$as_echo "$lt_shell_append" >&6; }
6096
 
6097
 
6098
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6099
  lt_unset=unset
6100
else
6101
  lt_unset=false
6102
fi
6103
 
6104
 
6105
 
6106
 
6107
 
6108
# test EBCDIC or ASCII
6109
case `echo X|tr X '\101'` in
6110
 A) # ASCII based system
6111
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6112
  lt_SP2NL='tr \040 \012'
6113
  lt_NL2SP='tr \015\012 \040\040'
6114
  ;;
6115
 *) # EBCDIC based system
6116
  lt_SP2NL='tr \100 \n'
6117
  lt_NL2SP='tr \r\n \100\100'
6118
  ;;
6119
esac
6120
 
6121
 
6122
 
6123
 
6124
 
6125
 
6126
 
6127
 
6128
 
6129
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6130
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6131
if test "${lt_cv_ld_reload_flag+set}" = set; then
6132
  $as_echo_n "(cached) " >&6
6133
else
6134
  lt_cv_ld_reload_flag='-r'
6135
fi
6136
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6137
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6138
reload_flag=$lt_cv_ld_reload_flag
6139
case $reload_flag in
6140
"" | " "*) ;;
6141
*) reload_flag=" $reload_flag" ;;
6142
esac
6143
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6144
case $host_os in
6145
  darwin*)
6146
    if test "$GCC" = yes; then
6147
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6148
    else
6149
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6150
    fi
6151
    ;;
6152
esac
6153
 
6154
 
6155
 
6156
 
6157
 
6158
 
6159
 
6160
 
6161
 
6162
if test -n "$ac_tool_prefix"; then
6163
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6164
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6165
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6166
$as_echo_n "checking for $ac_word... " >&6; }
6167
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6168
  $as_echo_n "(cached) " >&6
6169
else
6170
  if test -n "$OBJDUMP"; then
6171
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6172
else
6173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174
for as_dir in $PATH
6175
do
6176
  IFS=$as_save_IFS
6177
  test -z "$as_dir" && as_dir=.
6178
  for ac_exec_ext in '' $ac_executable_extensions; do
6179
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6180
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6181
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6182
    break 2
6183
  fi
6184
done
6185
done
6186
IFS=$as_save_IFS
6187
 
6188
fi
6189
fi
6190
OBJDUMP=$ac_cv_prog_OBJDUMP
6191
if test -n "$OBJDUMP"; then
6192
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6193
$as_echo "$OBJDUMP" >&6; }
6194
else
6195
  { $as_echo "$as_me:$LINENO: result: no" >&5
6196
$as_echo "no" >&6; }
6197
fi
6198
 
6199
 
6200
fi
6201
if test -z "$ac_cv_prog_OBJDUMP"; then
6202
  ac_ct_OBJDUMP=$OBJDUMP
6203
  # Extract the first word of "objdump", so it can be a program name with args.
6204
set dummy objdump; ac_word=$2
6205
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6206
$as_echo_n "checking for $ac_word... " >&6; }
6207
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6208
  $as_echo_n "(cached) " >&6
6209
else
6210
  if test -n "$ac_ct_OBJDUMP"; then
6211
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6212
else
6213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214
for as_dir in $PATH
6215
do
6216
  IFS=$as_save_IFS
6217
  test -z "$as_dir" && as_dir=.
6218
  for ac_exec_ext in '' $ac_executable_extensions; do
6219
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6220
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6221
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222
    break 2
6223
  fi
6224
done
6225
done
6226
IFS=$as_save_IFS
6227
 
6228
fi
6229
fi
6230
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6231
if test -n "$ac_ct_OBJDUMP"; then
6232
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6233
$as_echo "$ac_ct_OBJDUMP" >&6; }
6234
else
6235
  { $as_echo "$as_me:$LINENO: result: no" >&5
6236
$as_echo "no" >&6; }
6237
fi
6238
 
6239
  if test "x$ac_ct_OBJDUMP" = x; then
6240
    OBJDUMP="false"
6241
  else
6242
    case $cross_compiling:$ac_tool_warned in
6243
yes:)
6244
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6245
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6246
ac_tool_warned=yes ;;
6247
esac
6248
    OBJDUMP=$ac_ct_OBJDUMP
6249
  fi
6250
else
6251
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6252
fi
6253
 
6254
test -z "$OBJDUMP" && OBJDUMP=objdump
6255
 
6256
 
6257
 
6258
 
6259
 
6260
 
6261
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6262
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6263
if test "${lt_cv_deplibs_check_method+set}" = set; then
6264
  $as_echo_n "(cached) " >&6
6265
else
6266
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6267
lt_cv_file_magic_test_file=
6268
lt_cv_deplibs_check_method='unknown'
6269
# Need to set the preceding variable on all platforms that support
6270
# interlibrary dependencies.
6271
# 'none' -- dependencies not supported.
6272
# `unknown' -- same as none, but documents that we really don't know.
6273
# 'pass_all' -- all dependencies passed with no checks.
6274
# 'test_compile' -- check by making test program.
6275
# 'file_magic [[regex]]' -- check by looking for files in library path
6276
# which responds to the $file_magic_cmd with a given extended regex.
6277
# If you have `file' or equivalent on your system and you're not sure
6278
# whether `pass_all' will *always* work, you probably want this one.
6279
 
6280
case $host_os in
6281
aix[4-9]*)
6282
  lt_cv_deplibs_check_method=pass_all
6283
  ;;
6284
 
6285
beos*)
6286
  lt_cv_deplibs_check_method=pass_all
6287
  ;;
6288
 
6289
bsdi[45]*)
6290
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6291
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6292
  lt_cv_file_magic_test_file=/shlib/libc.so
6293
  ;;
6294
 
6295
cygwin*)
6296
  # func_win32_libid is a shell function defined in ltmain.sh
6297
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6298
  lt_cv_file_magic_cmd='func_win32_libid'
6299
  ;;
6300
 
6301
mingw* | pw32*)
6302
  # Base MSYS/MinGW do not provide the 'file' command needed by
6303
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6304
  # unless we find 'file', for example because we are cross-compiling.
6305
  if ( file / ) >/dev/null 2>&1; then
6306
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6307
    lt_cv_file_magic_cmd='func_win32_libid'
6308
  else
6309
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6310
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6311
  fi
6312
  ;;
6313
 
6314
cegcc)
6315
  # use the weaker test based on 'objdump'. See mingw*.
6316
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6317
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6318
  ;;
6319
 
6320
darwin* | rhapsody*)
6321
  lt_cv_deplibs_check_method=pass_all
6322
  ;;
6323
 
6324
freebsd* | dragonfly*)
6325
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6326
    case $host_cpu in
6327
    i*86 )
6328
      # Not sure whether the presence of OpenBSD here was a mistake.
6329
      # Let's accept both of them until this is cleared up.
6330
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6331
      lt_cv_file_magic_cmd=/usr/bin/file
6332
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6333
      ;;
6334
    esac
6335
  else
6336
    lt_cv_deplibs_check_method=pass_all
6337
  fi
6338
  ;;
6339
 
6340
gnu*)
6341
  lt_cv_deplibs_check_method=pass_all
6342
  ;;
6343
 
6344
hpux10.20* | hpux11*)
6345
  lt_cv_file_magic_cmd=/usr/bin/file
6346
  case $host_cpu in
6347
  ia64*)
6348
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6349
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6350
    ;;
6351
  hppa*64*)
6352
    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]'
6353
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6354
    ;;
6355
  *)
6356
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6357
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6358
    ;;
6359
  esac
6360
  ;;
6361
 
6362
interix[3-9]*)
6363
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6364
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6365
  ;;
6366
 
6367
irix5* | irix6* | nonstopux*)
6368
  case $LD in
6369
  *-32|*"-32 ") libmagic=32-bit;;
6370
  *-n32|*"-n32 ") libmagic=N32;;
6371
  *-64|*"-64 ") libmagic=64-bit;;
6372
  *) libmagic=never-match;;
6373
  esac
6374
  lt_cv_deplibs_check_method=pass_all
6375
  ;;
6376
 
6377
# This must be Linux ELF.
6378
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6379
  lt_cv_deplibs_check_method=pass_all
6380
  ;;
6381
 
6382
netbsd*)
6383
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6384
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6385
  else
6386
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6387
  fi
6388
  ;;
6389
 
6390
newos6*)
6391
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6392
  lt_cv_file_magic_cmd=/usr/bin/file
6393
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6394
  ;;
6395
 
6396
*nto* | *qnx*)
6397
  lt_cv_deplibs_check_method=pass_all
6398
  ;;
6399
 
6400
openbsd*)
6401
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6402
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6403
  else
6404
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6405
  fi
6406
  ;;
6407
 
6408
osf3* | osf4* | osf5*)
6409
  lt_cv_deplibs_check_method=pass_all
6410
  ;;
6411
 
6412
rdos*)
6413
  lt_cv_deplibs_check_method=pass_all
6414
  ;;
6415
 
6416
solaris*)
6417
  lt_cv_deplibs_check_method=pass_all
6418
  ;;
6419
 
6420
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6421
  lt_cv_deplibs_check_method=pass_all
6422
  ;;
6423
 
6424
sysv4 | sysv4.3*)
6425
  case $host_vendor in
6426
  motorola)
6427
    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]'
6428
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6429
    ;;
6430
  ncr)
6431
    lt_cv_deplibs_check_method=pass_all
6432
    ;;
6433
  sequent)
6434
    lt_cv_file_magic_cmd='/bin/file'
6435
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6436
    ;;
6437
  sni)
6438
    lt_cv_file_magic_cmd='/bin/file'
6439
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6440
    lt_cv_file_magic_test_file=/lib/libc.so
6441
    ;;
6442
  siemens)
6443
    lt_cv_deplibs_check_method=pass_all
6444
    ;;
6445
  pc)
6446
    lt_cv_deplibs_check_method=pass_all
6447
    ;;
6448
  esac
6449
  ;;
6450
 
6451
tpf*)
6452
  lt_cv_deplibs_check_method=pass_all
6453
  ;;
6454
esac
6455
 
6456
fi
6457
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6458
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6459
file_magic_cmd=$lt_cv_file_magic_cmd
6460
deplibs_check_method=$lt_cv_deplibs_check_method
6461
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6462
 
6463
 
6464
 
6465
 
6466
 
6467
 
6468
 
6469
 
6470
 
6471
 
6472
 
6473
 
6474
if test -n "$ac_tool_prefix"; then
6475
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6476
set dummy ${ac_tool_prefix}ar; ac_word=$2
6477
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6478
$as_echo_n "checking for $ac_word... " >&6; }
6479
if test "${ac_cv_prog_AR+set}" = set; then
6480
  $as_echo_n "(cached) " >&6
6481
else
6482
  if test -n "$AR"; then
6483
  ac_cv_prog_AR="$AR" # Let the user override the test.
6484
else
6485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486
for as_dir in $PATH
6487
do
6488
  IFS=$as_save_IFS
6489
  test -z "$as_dir" && as_dir=.
6490
  for ac_exec_ext in '' $ac_executable_extensions; do
6491
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6493
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494
    break 2
6495
  fi
6496
done
6497
done
6498
IFS=$as_save_IFS
6499
 
6500
fi
6501
fi
6502
AR=$ac_cv_prog_AR
6503
if test -n "$AR"; then
6504
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6505
$as_echo "$AR" >&6; }
6506
else
6507
  { $as_echo "$as_me:$LINENO: result: no" >&5
6508
$as_echo "no" >&6; }
6509
fi
6510
 
6511
 
6512
fi
6513
if test -z "$ac_cv_prog_AR"; then
6514
  ac_ct_AR=$AR
6515
  # Extract the first word of "ar", so it can be a program name with args.
6516
set dummy ar; ac_word=$2
6517
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6518
$as_echo_n "checking for $ac_word... " >&6; }
6519
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6520
  $as_echo_n "(cached) " >&6
6521
else
6522
  if test -n "$ac_ct_AR"; then
6523
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6524
else
6525
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526
for as_dir in $PATH
6527
do
6528
  IFS=$as_save_IFS
6529
  test -z "$as_dir" && as_dir=.
6530
  for ac_exec_ext in '' $ac_executable_extensions; do
6531
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532
    ac_cv_prog_ac_ct_AR="ar"
6533
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534
    break 2
6535
  fi
6536
done
6537
done
6538
IFS=$as_save_IFS
6539
 
6540
fi
6541
fi
6542
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6543
if test -n "$ac_ct_AR"; then
6544
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6545
$as_echo "$ac_ct_AR" >&6; }
6546
else
6547
  { $as_echo "$as_me:$LINENO: result: no" >&5
6548
$as_echo "no" >&6; }
6549
fi
6550
 
6551
  if test "x$ac_ct_AR" = x; then
6552
    AR="false"
6553
  else
6554
    case $cross_compiling:$ac_tool_warned in
6555
yes:)
6556
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6557
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558
ac_tool_warned=yes ;;
6559
esac
6560
    AR=$ac_ct_AR
6561
  fi
6562
else
6563
  AR="$ac_cv_prog_AR"
6564
fi
6565
 
6566
test -z "$AR" && AR=ar
6567
test -z "$AR_FLAGS" && AR_FLAGS=cru
6568
 
6569
 
6570
 
6571
 
6572
 
6573
 
6574
 
6575
 
6576
 
6577
 
6578
 
6579
if test -n "$ac_tool_prefix"; then
6580
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6581
set dummy ${ac_tool_prefix}strip; ac_word=$2
6582
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6583
$as_echo_n "checking for $ac_word... " >&6; }
6584
if test "${ac_cv_prog_STRIP+set}" = set; then
6585
  $as_echo_n "(cached) " >&6
6586
else
6587
  if test -n "$STRIP"; then
6588
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6589
else
6590
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591
for as_dir in $PATH
6592
do
6593
  IFS=$as_save_IFS
6594
  test -z "$as_dir" && as_dir=.
6595
  for ac_exec_ext in '' $ac_executable_extensions; do
6596
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6598
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599
    break 2
6600
  fi
6601
done
6602
done
6603
IFS=$as_save_IFS
6604
 
6605
fi
6606
fi
6607
STRIP=$ac_cv_prog_STRIP
6608
if test -n "$STRIP"; then
6609
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6610
$as_echo "$STRIP" >&6; }
6611
else
6612
  { $as_echo "$as_me:$LINENO: result: no" >&5
6613
$as_echo "no" >&6; }
6614
fi
6615
 
6616
 
6617
fi
6618
if test -z "$ac_cv_prog_STRIP"; then
6619
  ac_ct_STRIP=$STRIP
6620
  # Extract the first word of "strip", so it can be a program name with args.
6621
set dummy strip; ac_word=$2
6622
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6623
$as_echo_n "checking for $ac_word... " >&6; }
6624
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6625
  $as_echo_n "(cached) " >&6
6626
else
6627
  if test -n "$ac_ct_STRIP"; then
6628
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6629
else
6630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631
for as_dir in $PATH
6632
do
6633
  IFS=$as_save_IFS
6634
  test -z "$as_dir" && as_dir=.
6635
  for ac_exec_ext in '' $ac_executable_extensions; do
6636
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637
    ac_cv_prog_ac_ct_STRIP="strip"
6638
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639
    break 2
6640
  fi
6641
done
6642
done
6643
IFS=$as_save_IFS
6644
 
6645
fi
6646
fi
6647
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6648
if test -n "$ac_ct_STRIP"; then
6649
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6650
$as_echo "$ac_ct_STRIP" >&6; }
6651
else
6652
  { $as_echo "$as_me:$LINENO: result: no" >&5
6653
$as_echo "no" >&6; }
6654
fi
6655
 
6656
  if test "x$ac_ct_STRIP" = x; then
6657
    STRIP=":"
6658
  else
6659
    case $cross_compiling:$ac_tool_warned in
6660
yes:)
6661
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6662
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663
ac_tool_warned=yes ;;
6664
esac
6665
    STRIP=$ac_ct_STRIP
6666
  fi
6667
else
6668
  STRIP="$ac_cv_prog_STRIP"
6669
fi
6670
 
6671
test -z "$STRIP" && STRIP=:
6672
 
6673
 
6674
 
6675
 
6676
 
6677
 
6678
if test -n "$ac_tool_prefix"; then
6679
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6680
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6681
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6682
$as_echo_n "checking for $ac_word... " >&6; }
6683
if test "${ac_cv_prog_RANLIB+set}" = set; then
6684
  $as_echo_n "(cached) " >&6
6685
else
6686
  if test -n "$RANLIB"; then
6687
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6688
else
6689
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690
for as_dir in $PATH
6691
do
6692
  IFS=$as_save_IFS
6693
  test -z "$as_dir" && as_dir=.
6694
  for ac_exec_ext in '' $ac_executable_extensions; do
6695
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6697
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698
    break 2
6699
  fi
6700
done
6701
done
6702
IFS=$as_save_IFS
6703
 
6704
fi
6705
fi
6706
RANLIB=$ac_cv_prog_RANLIB
6707
if test -n "$RANLIB"; then
6708
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6709
$as_echo "$RANLIB" >&6; }
6710
else
6711
  { $as_echo "$as_me:$LINENO: result: no" >&5
6712
$as_echo "no" >&6; }
6713
fi
6714
 
6715
 
6716
fi
6717
if test -z "$ac_cv_prog_RANLIB"; then
6718
  ac_ct_RANLIB=$RANLIB
6719
  # Extract the first word of "ranlib", so it can be a program name with args.
6720
set dummy ranlib; ac_word=$2
6721
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6722
$as_echo_n "checking for $ac_word... " >&6; }
6723
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6724
  $as_echo_n "(cached) " >&6
6725
else
6726
  if test -n "$ac_ct_RANLIB"; then
6727
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6728
else
6729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730
for as_dir in $PATH
6731
do
6732
  IFS=$as_save_IFS
6733
  test -z "$as_dir" && as_dir=.
6734
  for ac_exec_ext in '' $ac_executable_extensions; do
6735
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6737
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738
    break 2
6739
  fi
6740
done
6741
done
6742
IFS=$as_save_IFS
6743
 
6744
fi
6745
fi
6746
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6747
if test -n "$ac_ct_RANLIB"; then
6748
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6749
$as_echo "$ac_ct_RANLIB" >&6; }
6750
else
6751
  { $as_echo "$as_me:$LINENO: result: no" >&5
6752
$as_echo "no" >&6; }
6753
fi
6754
 
6755
  if test "x$ac_ct_RANLIB" = x; then
6756
    RANLIB=":"
6757
  else
6758
    case $cross_compiling:$ac_tool_warned in
6759
yes:)
6760
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6761
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6762
ac_tool_warned=yes ;;
6763
esac
6764
    RANLIB=$ac_ct_RANLIB
6765
  fi
6766
else
6767
  RANLIB="$ac_cv_prog_RANLIB"
6768
fi
6769
 
6770
test -z "$RANLIB" && RANLIB=:
6771
 
6772
 
6773
 
6774
 
6775
 
6776
 
6777
# Determine commands to create old-style static archives.
6778
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6779
old_postinstall_cmds='chmod 644 $oldlib'
6780
old_postuninstall_cmds=
6781
 
6782
if test -n "$RANLIB"; then
6783
  case $host_os in
6784
  openbsd*)
6785
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6786
    ;;
6787
  *)
6788
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6789
    ;;
6790
  esac
6791
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6792
fi
6793
 
6794
 
6795
 
6796
 
6797
 
6798
 
6799
 
6800
 
6801
 
6802
 
6803
 
6804
 
6805
 
6806
 
6807
 
6808
 
6809
 
6810
 
6811
 
6812
 
6813
 
6814
 
6815
 
6816
 
6817
 
6818
 
6819
 
6820
 
6821
 
6822
 
6823
 
6824
 
6825
 
6826
 
6827
# If no C compiler was specified, use CC.
6828
LTCC=${LTCC-"$CC"}
6829
 
6830
# If no C compiler flags were specified, use CFLAGS.
6831
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6832
 
6833
# Allow CC to be a program name with arguments.
6834
compiler=$CC
6835
 
6836
 
6837
# Check for command to grab the raw symbol name followed by C symbol from nm.
6838
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6839
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6840
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6841
  $as_echo_n "(cached) " >&6
6842
else
6843
 
6844
# These are sane defaults that work on at least a few old systems.
6845
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6846
 
6847
# Character class describing NM global symbol codes.
6848
symcode='[BCDEGRST]'
6849
 
6850
# Regexp to match symbols that can be accessed directly from C.
6851
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6852
 
6853
# Define system-specific variables.
6854
case $host_os in
6855
aix*)
6856
  symcode='[BCDT]'
6857
  ;;
6858
cygwin* | mingw* | pw32* | cegcc*)
6859
  symcode='[ABCDGISTW]'
6860
  ;;
6861
hpux*)
6862
  if test "$host_cpu" = ia64; then
6863
    symcode='[ABCDEGRST]'
6864
  fi
6865
  ;;
6866
irix* | nonstopux*)
6867
  symcode='[BCDEGRST]'
6868
  ;;
6869
osf*)
6870
  symcode='[BCDEGQRST]'
6871
  ;;
6872
solaris*)
6873
  symcode='[BDRT]'
6874
  ;;
6875
sco3.2v5*)
6876
  symcode='[DT]'
6877
  ;;
6878
sysv4.2uw2*)
6879
  symcode='[DT]'
6880
  ;;
6881
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6882
  symcode='[ABDT]'
6883
  ;;
6884
sysv4)
6885
  symcode='[DFNSTU]'
6886
  ;;
6887
esac
6888
 
6889
# If we're using GNU nm, then use its standard symbol codes.
6890
case `$NM -V 2>&1` in
6891
*GNU* | *'with BFD'*)
6892
  symcode='[ABCDGIRSTW]' ;;
6893
esac
6894
 
6895
# Transform an extracted symbol line into a proper C declaration.
6896
# Some systems (esp. on ia64) link data and code symbols differently,
6897
# so use this general approach.
6898
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6899
 
6900
# Transform an extracted symbol line into symbol name and symbol address
6901
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6902
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'"
6903
 
6904
# Handle CRLF in mingw tool chain
6905
opt_cr=
6906
case $build_os in
6907
mingw*)
6908
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6909
  ;;
6910
esac
6911
 
6912
# Try without a prefix underscore, then with it.
6913
for ac_symprfx in "" "_"; do
6914
 
6915
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6916
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6917
 
6918
  # Write the raw and C identifiers.
6919
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6920
    # Fake it for dumpbin and say T for any non-static function
6921
    # and D for any global variable.
6922
    # Also find C++ and __fastcall symbols from MSVC++,
6923
    # which start with @ or ?.
6924
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6925
"     {last_section=section; section=\$ 3};"\
6926
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6927
"     \$ 0!~/External *\|/{next};"\
6928
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6929
"     {if(hide[section]) next};"\
6930
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6931
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6932
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6933
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6934
"     ' prfx=^$ac_symprfx"
6935
  else
6936
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6937
  fi
6938
 
6939
  # Check to see that the pipe works correctly.
6940
  pipe_works=no
6941
 
6942
  rm -f conftest*
6943
  cat > conftest.$ac_ext <<_LT_EOF
6944
#ifdef __cplusplus
6945
extern "C" {
6946
#endif
6947
char nm_test_var;
6948
void nm_test_func(void);
6949
void nm_test_func(void){}
6950
#ifdef __cplusplus
6951
}
6952
#endif
6953
int main(){nm_test_var='a';nm_test_func();return(0);}
6954
_LT_EOF
6955
 
6956
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6957
  (eval $ac_compile) 2>&5
6958
  ac_status=$?
6959
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960
  (exit $ac_status); }; then
6961
    # Now try to grab the symbols.
6962
    nlist=conftest.nm
6963
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6964
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6965
  ac_status=$?
6966
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967
  (exit $ac_status); } && test -s "$nlist"; then
6968
      # Try sorting and uniquifying the output.
6969
      if sort "$nlist" | uniq > "$nlist"T; then
6970
        mv -f "$nlist"T "$nlist"
6971
      else
6972
        rm -f "$nlist"T
6973
      fi
6974
 
6975
      # Make sure that we snagged all the symbols we need.
6976
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6977
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6978
          cat <<_LT_EOF > conftest.$ac_ext
6979
#ifdef __cplusplus
6980
extern "C" {
6981
#endif
6982
 
6983
_LT_EOF
6984
          # Now generate the symbol file.
6985
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6986
 
6987
          cat <<_LT_EOF >> conftest.$ac_ext
6988
 
6989
/* The mapping between symbol names and symbols.  */
6990
const struct {
6991
  const char *name;
6992
  void       *address;
6993
}
6994
lt__PROGRAM__LTX_preloaded_symbols[] =
6995
{
6996
  { "@PROGRAM@", (void *) 0 },
6997
_LT_EOF
6998
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6999
          cat <<\_LT_EOF >> conftest.$ac_ext
7000
  {0, (void *) 0}
7001
};
7002
 
7003
/* This works around a problem in FreeBSD linker */
7004
#ifdef FREEBSD_WORKAROUND
7005
static const void *lt_preloaded_setup() {
7006
  return lt__PROGRAM__LTX_preloaded_symbols;
7007
}
7008
#endif
7009
 
7010
#ifdef __cplusplus
7011
}
7012
#endif
7013
_LT_EOF
7014
          # Now try linking the two files.
7015
          mv conftest.$ac_objext conftstm.$ac_objext
7016
          lt_save_LIBS="$LIBS"
7017
          lt_save_CFLAGS="$CFLAGS"
7018
          LIBS="conftstm.$ac_objext"
7019
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7020
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7021
  (eval $ac_link) 2>&5
7022
  ac_status=$?
7023
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7025
            pipe_works=yes
7026
          fi
7027
          LIBS="$lt_save_LIBS"
7028
          CFLAGS="$lt_save_CFLAGS"
7029
        else
7030
          echo "cannot find nm_test_func in $nlist" >&5
7031
        fi
7032
      else
7033
        echo "cannot find nm_test_var in $nlist" >&5
7034
      fi
7035
    else
7036
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7037
    fi
7038
  else
7039
    echo "$progname: failed program was:" >&5
7040
    cat conftest.$ac_ext >&5
7041
  fi
7042
  rm -rf conftest* conftst*
7043
 
7044
  # Do not use the global_symbol_pipe unless it works.
7045
  if test "$pipe_works" = yes; then
7046
    break
7047
  else
7048
    lt_cv_sys_global_symbol_pipe=
7049
  fi
7050
done
7051
 
7052
fi
7053
 
7054
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7055
  lt_cv_sys_global_symbol_to_cdecl=
7056
fi
7057
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7058
  { $as_echo "$as_me:$LINENO: result: failed" >&5
7059
$as_echo "failed" >&6; }
7060
else
7061
  { $as_echo "$as_me:$LINENO: result: ok" >&5
7062
$as_echo "ok" >&6; }
7063
fi
7064
 
7065
 
7066
 
7067
 
7068
 
7069
 
7070
 
7071
 
7072
 
7073
 
7074
 
7075
 
7076
 
7077
 
7078
 
7079
 
7080
 
7081
 
7082
 
7083
 
7084
 
7085
 
7086
 
7087
# Check whether --enable-libtool-lock was given.
7088
if test "${enable_libtool_lock+set}" = set; then
7089
  enableval=$enable_libtool_lock;
7090
fi
7091
 
7092
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7093
 
7094
# Some flags need to be propagated to the compiler or linker for good
7095
# libtool support.
7096
case $host in
7097
ia64-*-hpux*)
7098
  # Find out which ABI we are using.
7099
  echo 'int i;' > conftest.$ac_ext
7100
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7101
  (eval $ac_compile) 2>&5
7102
  ac_status=$?
7103
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104
  (exit $ac_status); }; then
7105
    case `/usr/bin/file conftest.$ac_objext` in
7106
      *ELF-32*)
7107
        HPUX_IA64_MODE="32"
7108
        ;;
7109
      *ELF-64*)
7110
        HPUX_IA64_MODE="64"
7111
        ;;
7112
    esac
7113
  fi
7114
  rm -rf conftest*
7115
  ;;
7116
*-*-irix6*)
7117
  # Find out which ABI we are using.
7118
  echo '#line 7118 "configure"' > conftest.$ac_ext
7119
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7120
  (eval $ac_compile) 2>&5
7121
  ac_status=$?
7122
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123
  (exit $ac_status); }; then
7124
    if test "$lt_cv_prog_gnu_ld" = yes; then
7125
      case `/usr/bin/file conftest.$ac_objext` in
7126
        *32-bit*)
7127
          LD="${LD-ld} -melf32bsmip"
7128
          ;;
7129
        *N32*)
7130
          LD="${LD-ld} -melf32bmipn32"
7131
          ;;
7132
        *64-bit*)
7133
          LD="${LD-ld} -melf64bmip"
7134
        ;;
7135
      esac
7136
    else
7137
      case `/usr/bin/file conftest.$ac_objext` in
7138
        *32-bit*)
7139
          LD="${LD-ld} -32"
7140
          ;;
7141
        *N32*)
7142
          LD="${LD-ld} -n32"
7143
          ;;
7144
        *64-bit*)
7145
          LD="${LD-ld} -64"
7146
          ;;
7147
      esac
7148
    fi
7149
  fi
7150
  rm -rf conftest*
7151
  ;;
7152
 
7153
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7154
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7155
  # Find out which ABI we are using.
7156
  echo 'int i;' > conftest.$ac_ext
7157
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158
  (eval $ac_compile) 2>&5
7159
  ac_status=$?
7160
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161
  (exit $ac_status); }; then
7162
    case `/usr/bin/file conftest.o` in
7163
      *32-bit*)
7164
        case $host in
7165
          x86_64-*kfreebsd*-gnu)
7166
            LD="${LD-ld} -m elf_i386_fbsd"
7167
            ;;
7168
          x86_64-*linux*)
7169
            LD="${LD-ld} -m elf_i386"
7170
            ;;
7171
          ppc64-*linux*|powerpc64-*linux*)
7172
            LD="${LD-ld} -m elf32ppclinux"
7173
            ;;
7174
          s390x-*linux*)
7175
            LD="${LD-ld} -m elf_s390"
7176
            ;;
7177
          sparc64-*linux*)
7178
            LD="${LD-ld} -m elf32_sparc"
7179
            ;;
7180
        esac
7181
        ;;
7182
      *64-bit*)
7183
        case $host in
7184
          x86_64-*kfreebsd*-gnu)
7185
            LD="${LD-ld} -m elf_x86_64_fbsd"
7186
            ;;
7187
          x86_64-*linux*)
7188
            LD="${LD-ld} -m elf_x86_64"
7189
            ;;
7190
          ppc*-*linux*|powerpc*-*linux*)
7191
            LD="${LD-ld} -m elf64ppc"
7192
            ;;
7193
          s390*-*linux*|s390*-*tpf*)
7194
            LD="${LD-ld} -m elf64_s390"
7195
            ;;
7196
          sparc*-*linux*)
7197
            LD="${LD-ld} -m elf64_sparc"
7198
            ;;
7199
        esac
7200
        ;;
7201
    esac
7202
  fi
7203
  rm -rf conftest*
7204
  ;;
7205
 
7206
*-*-sco3.2v5*)
7207
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7208
  SAVE_CFLAGS="$CFLAGS"
7209
  CFLAGS="$CFLAGS -belf"
7210
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7211
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7212
if test "${lt_cv_cc_needs_belf+set}" = set; then
7213
  $as_echo_n "(cached) " >&6
7214
else
7215
  ac_ext=c
7216
ac_cpp='$CPP $CPPFLAGS'
7217
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7218
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7219
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7220
 
7221
     cat >conftest.$ac_ext <<_ACEOF
7222
/* confdefs.h.  */
7223
_ACEOF
7224
cat confdefs.h >>conftest.$ac_ext
7225
cat >>conftest.$ac_ext <<_ACEOF
7226
/* end confdefs.h.  */
7227
 
7228
int
7229
main ()
7230
{
7231
 
7232
  ;
7233
  return 0;
7234
}
7235
_ACEOF
7236
rm -f conftest.$ac_objext conftest$ac_exeext
7237
if { (ac_try="$ac_link"
7238
case "(($ac_try" in
7239
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240
  *) ac_try_echo=$ac_try;;
7241
esac
7242
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7243
$as_echo "$ac_try_echo") >&5
7244
  (eval "$ac_link") 2>conftest.er1
7245
  ac_status=$?
7246
  grep -v '^ *+' conftest.er1 >conftest.err
7247
  rm -f conftest.er1
7248
  cat conftest.err >&5
7249
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250
  (exit $ac_status); } && {
7251
         test -z "$ac_c_werror_flag" ||
7252
         test ! -s conftest.err
7253
       } && test -s conftest$ac_exeext && {
7254
         test "$cross_compiling" = yes ||
7255
         $as_test_x conftest$ac_exeext
7256
       }; then
7257
  lt_cv_cc_needs_belf=yes
7258
else
7259
  $as_echo "$as_me: failed program was:" >&5
7260
sed 's/^/| /' conftest.$ac_ext >&5
7261
 
7262
        lt_cv_cc_needs_belf=no
7263
fi
7264
 
7265
rm -rf conftest.dSYM
7266
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7267
      conftest$ac_exeext conftest.$ac_ext
7268
     ac_ext=c
7269
ac_cpp='$CPP $CPPFLAGS'
7270
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7271
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7272
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7273
 
7274
fi
7275
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7276
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7277
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7278
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7279
    CFLAGS="$SAVE_CFLAGS"
7280
  fi
7281
  ;;
7282
sparc*-*solaris*)
7283
  # Find out which ABI we are using.
7284
  echo 'int i;' > conftest.$ac_ext
7285
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7286
  (eval $ac_compile) 2>&5
7287
  ac_status=$?
7288
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289
  (exit $ac_status); }; then
7290
    case `/usr/bin/file conftest.o` in
7291
    *64-bit*)
7292
      case $lt_cv_prog_gnu_ld in
7293
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7294
      *)
7295
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7296
          LD="${LD-ld} -64"
7297
        fi
7298
        ;;
7299
      esac
7300
      ;;
7301
    esac
7302
  fi
7303
  rm -rf conftest*
7304
  ;;
7305
esac
7306
 
7307
need_locks="$enable_libtool_lock"
7308
 
7309
 
7310
  case $host_os in
7311
    rhapsody* | darwin*)
7312
    if test -n "$ac_tool_prefix"; then
7313
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7314
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7315
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7316
$as_echo_n "checking for $ac_word... " >&6; }
7317
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7318
  $as_echo_n "(cached) " >&6
7319
else
7320
  if test -n "$DSYMUTIL"; then
7321
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7322
else
7323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324
for as_dir in $PATH
7325
do
7326
  IFS=$as_save_IFS
7327
  test -z "$as_dir" && as_dir=.
7328
  for ac_exec_ext in '' $ac_executable_extensions; do
7329
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7330
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7331
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332
    break 2
7333
  fi
7334
done
7335
done
7336
IFS=$as_save_IFS
7337
 
7338
fi
7339
fi
7340
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7341
if test -n "$DSYMUTIL"; then
7342
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7343
$as_echo "$DSYMUTIL" >&6; }
7344
else
7345
  { $as_echo "$as_me:$LINENO: result: no" >&5
7346
$as_echo "no" >&6; }
7347
fi
7348
 
7349
 
7350
fi
7351
if test -z "$ac_cv_prog_DSYMUTIL"; then
7352
  ac_ct_DSYMUTIL=$DSYMUTIL
7353
  # Extract the first word of "dsymutil", so it can be a program name with args.
7354
set dummy dsymutil; ac_word=$2
7355
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7356
$as_echo_n "checking for $ac_word... " >&6; }
7357
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7358
  $as_echo_n "(cached) " >&6
7359
else
7360
  if test -n "$ac_ct_DSYMUTIL"; then
7361
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7362
else
7363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364
for as_dir in $PATH
7365
do
7366
  IFS=$as_save_IFS
7367
  test -z "$as_dir" && as_dir=.
7368
  for ac_exec_ext in '' $ac_executable_extensions; do
7369
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7371
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372
    break 2
7373
  fi
7374
done
7375
done
7376
IFS=$as_save_IFS
7377
 
7378
fi
7379
fi
7380
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7381
if test -n "$ac_ct_DSYMUTIL"; then
7382
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7383
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7384
else
7385
  { $as_echo "$as_me:$LINENO: result: no" >&5
7386
$as_echo "no" >&6; }
7387
fi
7388
 
7389
  if test "x$ac_ct_DSYMUTIL" = x; then
7390
    DSYMUTIL=":"
7391
  else
7392
    case $cross_compiling:$ac_tool_warned in
7393
yes:)
7394
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7395
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7396
ac_tool_warned=yes ;;
7397
esac
7398
    DSYMUTIL=$ac_ct_DSYMUTIL
7399
  fi
7400
else
7401
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7402
fi
7403
 
7404
    if test -n "$ac_tool_prefix"; then
7405
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7406
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7407
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7408
$as_echo_n "checking for $ac_word... " >&6; }
7409
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7410
  $as_echo_n "(cached) " >&6
7411
else
7412
  if test -n "$NMEDIT"; then
7413
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7414
else
7415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416
for as_dir in $PATH
7417
do
7418
  IFS=$as_save_IFS
7419
  test -z "$as_dir" && as_dir=.
7420
  for ac_exec_ext in '' $ac_executable_extensions; do
7421
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7422
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7423
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7424
    break 2
7425
  fi
7426
done
7427
done
7428
IFS=$as_save_IFS
7429
 
7430
fi
7431
fi
7432
NMEDIT=$ac_cv_prog_NMEDIT
7433
if test -n "$NMEDIT"; then
7434
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7435
$as_echo "$NMEDIT" >&6; }
7436
else
7437
  { $as_echo "$as_me:$LINENO: result: no" >&5
7438
$as_echo "no" >&6; }
7439
fi
7440
 
7441
 
7442
fi
7443
if test -z "$ac_cv_prog_NMEDIT"; then
7444
  ac_ct_NMEDIT=$NMEDIT
7445
  # Extract the first word of "nmedit", so it can be a program name with args.
7446
set dummy nmedit; ac_word=$2
7447
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7448
$as_echo_n "checking for $ac_word... " >&6; }
7449
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7450
  $as_echo_n "(cached) " >&6
7451
else
7452
  if test -n "$ac_ct_NMEDIT"; then
7453
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7454
else
7455
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456
for as_dir in $PATH
7457
do
7458
  IFS=$as_save_IFS
7459
  test -z "$as_dir" && as_dir=.
7460
  for ac_exec_ext in '' $ac_executable_extensions; do
7461
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7463
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464
    break 2
7465
  fi
7466
done
7467
done
7468
IFS=$as_save_IFS
7469
 
7470
fi
7471
fi
7472
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7473
if test -n "$ac_ct_NMEDIT"; then
7474
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7475
$as_echo "$ac_ct_NMEDIT" >&6; }
7476
else
7477
  { $as_echo "$as_me:$LINENO: result: no" >&5
7478
$as_echo "no" >&6; }
7479
fi
7480
 
7481
  if test "x$ac_ct_NMEDIT" = x; then
7482
    NMEDIT=":"
7483
  else
7484
    case $cross_compiling:$ac_tool_warned in
7485
yes:)
7486
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7487
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7488
ac_tool_warned=yes ;;
7489
esac
7490
    NMEDIT=$ac_ct_NMEDIT
7491
  fi
7492
else
7493
  NMEDIT="$ac_cv_prog_NMEDIT"
7494
fi
7495
 
7496
    if test -n "$ac_tool_prefix"; then
7497
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7498
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7499
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7500
$as_echo_n "checking for $ac_word... " >&6; }
7501
if test "${ac_cv_prog_LIPO+set}" = set; then
7502
  $as_echo_n "(cached) " >&6
7503
else
7504
  if test -n "$LIPO"; then
7505
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7506
else
7507
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508
for as_dir in $PATH
7509
do
7510
  IFS=$as_save_IFS
7511
  test -z "$as_dir" && as_dir=.
7512
  for ac_exec_ext in '' $ac_executable_extensions; do
7513
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7515
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516
    break 2
7517
  fi
7518
done
7519
done
7520
IFS=$as_save_IFS
7521
 
7522
fi
7523
fi
7524
LIPO=$ac_cv_prog_LIPO
7525
if test -n "$LIPO"; then
7526
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7527
$as_echo "$LIPO" >&6; }
7528
else
7529
  { $as_echo "$as_me:$LINENO: result: no" >&5
7530
$as_echo "no" >&6; }
7531
fi
7532
 
7533
 
7534
fi
7535
if test -z "$ac_cv_prog_LIPO"; then
7536
  ac_ct_LIPO=$LIPO
7537
  # Extract the first word of "lipo", so it can be a program name with args.
7538
set dummy lipo; ac_word=$2
7539
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7540
$as_echo_n "checking for $ac_word... " >&6; }
7541
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7542
  $as_echo_n "(cached) " >&6
7543
else
7544
  if test -n "$ac_ct_LIPO"; then
7545
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7546
else
7547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548
for as_dir in $PATH
7549
do
7550
  IFS=$as_save_IFS
7551
  test -z "$as_dir" && as_dir=.
7552
  for ac_exec_ext in '' $ac_executable_extensions; do
7553
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554
    ac_cv_prog_ac_ct_LIPO="lipo"
7555
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556
    break 2
7557
  fi
7558
done
7559
done
7560
IFS=$as_save_IFS
7561
 
7562
fi
7563
fi
7564
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7565
if test -n "$ac_ct_LIPO"; then
7566
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7567
$as_echo "$ac_ct_LIPO" >&6; }
7568
else
7569
  { $as_echo "$as_me:$LINENO: result: no" >&5
7570
$as_echo "no" >&6; }
7571
fi
7572
 
7573
  if test "x$ac_ct_LIPO" = x; then
7574
    LIPO=":"
7575
  else
7576
    case $cross_compiling:$ac_tool_warned in
7577
yes:)
7578
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7579
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7580
ac_tool_warned=yes ;;
7581
esac
7582
    LIPO=$ac_ct_LIPO
7583
  fi
7584
else
7585
  LIPO="$ac_cv_prog_LIPO"
7586
fi
7587
 
7588
    if test -n "$ac_tool_prefix"; then
7589
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7590
set dummy ${ac_tool_prefix}otool; ac_word=$2
7591
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7592
$as_echo_n "checking for $ac_word... " >&6; }
7593
if test "${ac_cv_prog_OTOOL+set}" = set; then
7594
  $as_echo_n "(cached) " >&6
7595
else
7596
  if test -n "$OTOOL"; then
7597
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7598
else
7599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600
for as_dir in $PATH
7601
do
7602
  IFS=$as_save_IFS
7603
  test -z "$as_dir" && as_dir=.
7604
  for ac_exec_ext in '' $ac_executable_extensions; do
7605
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7606
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7607
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608
    break 2
7609
  fi
7610
done
7611
done
7612
IFS=$as_save_IFS
7613
 
7614
fi
7615
fi
7616
OTOOL=$ac_cv_prog_OTOOL
7617
if test -n "$OTOOL"; then
7618
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7619
$as_echo "$OTOOL" >&6; }
7620
else
7621
  { $as_echo "$as_me:$LINENO: result: no" >&5
7622
$as_echo "no" >&6; }
7623
fi
7624
 
7625
 
7626
fi
7627
if test -z "$ac_cv_prog_OTOOL"; then
7628
  ac_ct_OTOOL=$OTOOL
7629
  # Extract the first word of "otool", so it can be a program name with args.
7630
set dummy otool; ac_word=$2
7631
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7632
$as_echo_n "checking for $ac_word... " >&6; }
7633
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7634
  $as_echo_n "(cached) " >&6
7635
else
7636
  if test -n "$ac_ct_OTOOL"; then
7637
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7638
else
7639
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640
for as_dir in $PATH
7641
do
7642
  IFS=$as_save_IFS
7643
  test -z "$as_dir" && as_dir=.
7644
  for ac_exec_ext in '' $ac_executable_extensions; do
7645
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7646
    ac_cv_prog_ac_ct_OTOOL="otool"
7647
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648
    break 2
7649
  fi
7650
done
7651
done
7652
IFS=$as_save_IFS
7653
 
7654
fi
7655
fi
7656
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7657
if test -n "$ac_ct_OTOOL"; then
7658
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7659
$as_echo "$ac_ct_OTOOL" >&6; }
7660
else
7661
  { $as_echo "$as_me:$LINENO: result: no" >&5
7662
$as_echo "no" >&6; }
7663
fi
7664
 
7665
  if test "x$ac_ct_OTOOL" = x; then
7666
    OTOOL=":"
7667
  else
7668
    case $cross_compiling:$ac_tool_warned in
7669
yes:)
7670
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7671
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7672
ac_tool_warned=yes ;;
7673
esac
7674
    OTOOL=$ac_ct_OTOOL
7675
  fi
7676
else
7677
  OTOOL="$ac_cv_prog_OTOOL"
7678
fi
7679
 
7680
    if test -n "$ac_tool_prefix"; then
7681
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7682
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7683
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7684
$as_echo_n "checking for $ac_word... " >&6; }
7685
if test "${ac_cv_prog_OTOOL64+set}" = set; then
7686
  $as_echo_n "(cached) " >&6
7687
else
7688
  if test -n "$OTOOL64"; then
7689
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7690
else
7691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692
for as_dir in $PATH
7693
do
7694
  IFS=$as_save_IFS
7695
  test -z "$as_dir" && as_dir=.
7696
  for ac_exec_ext in '' $ac_executable_extensions; do
7697
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7698
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7699
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7700
    break 2
7701
  fi
7702
done
7703
done
7704
IFS=$as_save_IFS
7705
 
7706
fi
7707
fi
7708
OTOOL64=$ac_cv_prog_OTOOL64
7709
if test -n "$OTOOL64"; then
7710
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7711
$as_echo "$OTOOL64" >&6; }
7712
else
7713
  { $as_echo "$as_me:$LINENO: result: no" >&5
7714
$as_echo "no" >&6; }
7715
fi
7716
 
7717
 
7718
fi
7719
if test -z "$ac_cv_prog_OTOOL64"; then
7720
  ac_ct_OTOOL64=$OTOOL64
7721
  # Extract the first word of "otool64", so it can be a program name with args.
7722
set dummy otool64; ac_word=$2
7723
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7724
$as_echo_n "checking for $ac_word... " >&6; }
7725
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7726
  $as_echo_n "(cached) " >&6
7727
else
7728
  if test -n "$ac_ct_OTOOL64"; then
7729
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7730
else
7731
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732
for as_dir in $PATH
7733
do
7734
  IFS=$as_save_IFS
7735
  test -z "$as_dir" && as_dir=.
7736
  for ac_exec_ext in '' $ac_executable_extensions; do
7737
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7738
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7739
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7740
    break 2
7741
  fi
7742
done
7743
done
7744
IFS=$as_save_IFS
7745
 
7746
fi
7747
fi
7748
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7749
if test -n "$ac_ct_OTOOL64"; then
7750
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7751
$as_echo "$ac_ct_OTOOL64" >&6; }
7752
else
7753
  { $as_echo "$as_me:$LINENO: result: no" >&5
7754
$as_echo "no" >&6; }
7755
fi
7756
 
7757
  if test "x$ac_ct_OTOOL64" = x; then
7758
    OTOOL64=":"
7759
  else
7760
    case $cross_compiling:$ac_tool_warned in
7761
yes:)
7762
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7763
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7764
ac_tool_warned=yes ;;
7765
esac
7766
    OTOOL64=$ac_ct_OTOOL64
7767
  fi
7768
else
7769
  OTOOL64="$ac_cv_prog_OTOOL64"
7770
fi
7771
 
7772
 
7773
 
7774
 
7775
 
7776
 
7777
 
7778
 
7779
 
7780
 
7781
 
7782
 
7783
 
7784
 
7785
 
7786
 
7787
 
7788
 
7789
 
7790
 
7791
 
7792
 
7793
 
7794
 
7795
 
7796
 
7797
 
7798
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7799
$as_echo_n "checking for -single_module linker flag... " >&6; }
7800
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7801
  $as_echo_n "(cached) " >&6
7802
else
7803
  lt_cv_apple_cc_single_mod=no
7804
      if test -z "${LT_MULTI_MODULE}"; then
7805
        # By default we will add the -single_module flag. You can override
7806
        # by either setting the environment variable LT_MULTI_MODULE
7807
        # non-empty at configure time, or by adding -multi_module to the
7808
        # link flags.
7809
        rm -rf libconftest.dylib*
7810
        echo "int foo(void){return 1;}" > conftest.c
7811
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7812
-dynamiclib -Wl,-single_module conftest.c" >&5
7813
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7814
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7815
        _lt_result=$?
7816
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7817
          lt_cv_apple_cc_single_mod=yes
7818
        else
7819
          cat conftest.err >&5
7820
        fi
7821
        rm -rf libconftest.dylib*
7822
        rm -f conftest.*
7823
      fi
7824
fi
7825
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7826
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7827
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7828
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7829
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7830
  $as_echo_n "(cached) " >&6
7831
else
7832
  lt_cv_ld_exported_symbols_list=no
7833
      save_LDFLAGS=$LDFLAGS
7834
      echo "_main" > conftest.sym
7835
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7836
      cat >conftest.$ac_ext <<_ACEOF
7837
/* confdefs.h.  */
7838
_ACEOF
7839
cat confdefs.h >>conftest.$ac_ext
7840
cat >>conftest.$ac_ext <<_ACEOF
7841
/* end confdefs.h.  */
7842
 
7843
int
7844
main ()
7845
{
7846
 
7847
  ;
7848
  return 0;
7849
}
7850
_ACEOF
7851
rm -f conftest.$ac_objext conftest$ac_exeext
7852
if { (ac_try="$ac_link"
7853
case "(($ac_try" in
7854
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855
  *) ac_try_echo=$ac_try;;
7856
esac
7857
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7858
$as_echo "$ac_try_echo") >&5
7859
  (eval "$ac_link") 2>conftest.er1
7860
  ac_status=$?
7861
  grep -v '^ *+' conftest.er1 >conftest.err
7862
  rm -f conftest.er1
7863
  cat conftest.err >&5
7864
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865
  (exit $ac_status); } && {
7866
         test -z "$ac_c_werror_flag" ||
7867
         test ! -s conftest.err
7868
       } && test -s conftest$ac_exeext && {
7869
         test "$cross_compiling" = yes ||
7870
         $as_test_x conftest$ac_exeext
7871
       }; then
7872
  lt_cv_ld_exported_symbols_list=yes
7873
else
7874
  $as_echo "$as_me: failed program was:" >&5
7875
sed 's/^/| /' conftest.$ac_ext >&5
7876
 
7877
        lt_cv_ld_exported_symbols_list=no
7878
fi
7879
 
7880
rm -rf conftest.dSYM
7881
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7882
      conftest$ac_exeext conftest.$ac_ext
7883
        LDFLAGS="$save_LDFLAGS"
7884
 
7885
fi
7886
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7887
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7888
    case $host_os in
7889
    rhapsody* | darwin1.[012])
7890
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7891
    darwin1.*)
7892
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7893
    darwin*) # darwin 5.x on
7894
      # if running on 10.5 or later, the deployment target defaults
7895
      # to the OS version, if on x86, and 10.4, the deployment
7896
      # target defaults to 10.4. Don't you love it?
7897
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7898
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7899
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7900
        10.[012]*)
7901
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7902
        10.*)
7903
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7904
      esac
7905
    ;;
7906
  esac
7907
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7908
      _lt_dar_single_mod='$single_module'
7909
    fi
7910
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7911
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7912
    else
7913
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7914
    fi
7915
    if test "$DSYMUTIL" != ":"; then
7916
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7917
    else
7918
      _lt_dsymutil=
7919
    fi
7920
    ;;
7921
  esac
7922
 
7923
ac_ext=c
7924
ac_cpp='$CPP $CPPFLAGS'
7925
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7929
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7930
# On Suns, sometimes $CPP names a directory.
7931
if test -n "$CPP" && test -d "$CPP"; then
7932
  CPP=
7933
fi
7934
if test -z "$CPP"; then
7935
  if test "${ac_cv_prog_CPP+set}" = set; then
7936
  $as_echo_n "(cached) " >&6
7937
else
7938
      # Double quotes because CPP needs to be expanded
7939
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7940
    do
7941
      ac_preproc_ok=false
7942
for ac_c_preproc_warn_flag in '' yes
7943
do
7944
  # Use a header file that comes with gcc, so configuring glibc
7945
  # with a fresh cross-compiler works.
7946
  # Prefer  to  if __STDC__ is defined, since
7947
  #  exists even on freestanding compilers.
7948
  # On the NeXT, cc -E runs the code through the compiler's parser,
7949
  # not just through cpp. "Syntax error" is here to catch this case.
7950
  cat >conftest.$ac_ext <<_ACEOF
7951
/* confdefs.h.  */
7952
_ACEOF
7953
cat confdefs.h >>conftest.$ac_ext
7954
cat >>conftest.$ac_ext <<_ACEOF
7955
/* end confdefs.h.  */
7956
#ifdef __STDC__
7957
# include 
7958
#else
7959
# include 
7960
#endif
7961
                     Syntax error
7962
_ACEOF
7963
if { (ac_try="$ac_cpp conftest.$ac_ext"
7964
case "(($ac_try" in
7965
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966
  *) ac_try_echo=$ac_try;;
7967
esac
7968
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7969
$as_echo "$ac_try_echo") >&5
7970
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7971
  ac_status=$?
7972
  grep -v '^ *+' conftest.er1 >conftest.err
7973
  rm -f conftest.er1
7974
  cat conftest.err >&5
7975
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976
  (exit $ac_status); } >/dev/null && {
7977
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7978
         test ! -s conftest.err
7979
       }; then
7980
  :
7981
else
7982
  $as_echo "$as_me: failed program was:" >&5
7983
sed 's/^/| /' conftest.$ac_ext >&5
7984
 
7985
  # Broken: fails on valid input.
7986
continue
7987
fi
7988
 
7989
rm -f conftest.err conftest.$ac_ext
7990
 
7991
  # OK, works on sane cases.  Now check whether nonexistent headers
7992
  # can be detected and how.
7993
  cat >conftest.$ac_ext <<_ACEOF
7994
/* confdefs.h.  */
7995
_ACEOF
7996
cat confdefs.h >>conftest.$ac_ext
7997
cat >>conftest.$ac_ext <<_ACEOF
7998
/* end confdefs.h.  */
7999
#include 
8000
_ACEOF
8001
if { (ac_try="$ac_cpp conftest.$ac_ext"
8002
case "(($ac_try" in
8003
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004
  *) ac_try_echo=$ac_try;;
8005
esac
8006
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8007
$as_echo "$ac_try_echo") >&5
8008
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8009
  ac_status=$?
8010
  grep -v '^ *+' conftest.er1 >conftest.err
8011
  rm -f conftest.er1
8012
  cat conftest.err >&5
8013
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014
  (exit $ac_status); } >/dev/null && {
8015
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8016
         test ! -s conftest.err
8017
       }; then
8018
  # Broken: success on invalid input.
8019
continue
8020
else
8021
  $as_echo "$as_me: failed program was:" >&5
8022
sed 's/^/| /' conftest.$ac_ext >&5
8023
 
8024
  # Passes both tests.
8025
ac_preproc_ok=:
8026
break
8027
fi
8028
 
8029
rm -f conftest.err conftest.$ac_ext
8030
 
8031
done
8032
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8033
rm -f conftest.err conftest.$ac_ext
8034
if $ac_preproc_ok; then
8035
  break
8036
fi
8037
 
8038
    done
8039
    ac_cv_prog_CPP=$CPP
8040
 
8041
fi
8042
  CPP=$ac_cv_prog_CPP
8043
else
8044
  ac_cv_prog_CPP=$CPP
8045
fi
8046
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
8047
$as_echo "$CPP" >&6; }
8048
ac_preproc_ok=false
8049
for ac_c_preproc_warn_flag in '' yes
8050
do
8051
  # Use a header file that comes with gcc, so configuring glibc
8052
  # with a fresh cross-compiler works.
8053
  # Prefer  to  if __STDC__ is defined, since
8054
  #  exists even on freestanding compilers.
8055
  # On the NeXT, cc -E runs the code through the compiler's parser,
8056
  # not just through cpp. "Syntax error" is here to catch this case.
8057
  cat >conftest.$ac_ext <<_ACEOF
8058
/* confdefs.h.  */
8059
_ACEOF
8060
cat confdefs.h >>conftest.$ac_ext
8061
cat >>conftest.$ac_ext <<_ACEOF
8062
/* end confdefs.h.  */
8063
#ifdef __STDC__
8064
# include 
8065
#else
8066
# include 
8067
#endif
8068
                     Syntax error
8069
_ACEOF
8070
if { (ac_try="$ac_cpp conftest.$ac_ext"
8071
case "(($ac_try" in
8072
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073
  *) ac_try_echo=$ac_try;;
8074
esac
8075
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8076
$as_echo "$ac_try_echo") >&5
8077
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8078
  ac_status=$?
8079
  grep -v '^ *+' conftest.er1 >conftest.err
8080
  rm -f conftest.er1
8081
  cat conftest.err >&5
8082
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083
  (exit $ac_status); } >/dev/null && {
8084
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8085
         test ! -s conftest.err
8086
       }; then
8087
  :
8088
else
8089
  $as_echo "$as_me: failed program was:" >&5
8090
sed 's/^/| /' conftest.$ac_ext >&5
8091
 
8092
  # Broken: fails on valid input.
8093
continue
8094
fi
8095
 
8096
rm -f conftest.err conftest.$ac_ext
8097
 
8098
  # OK, works on sane cases.  Now check whether nonexistent headers
8099
  # can be detected and how.
8100
  cat >conftest.$ac_ext <<_ACEOF
8101
/* confdefs.h.  */
8102
_ACEOF
8103
cat confdefs.h >>conftest.$ac_ext
8104
cat >>conftest.$ac_ext <<_ACEOF
8105
/* end confdefs.h.  */
8106
#include 
8107
_ACEOF
8108
if { (ac_try="$ac_cpp conftest.$ac_ext"
8109
case "(($ac_try" in
8110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111
  *) ac_try_echo=$ac_try;;
8112
esac
8113
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8114
$as_echo "$ac_try_echo") >&5
8115
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8116
  ac_status=$?
8117
  grep -v '^ *+' conftest.er1 >conftest.err
8118
  rm -f conftest.er1
8119
  cat conftest.err >&5
8120
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121
  (exit $ac_status); } >/dev/null && {
8122
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8123
         test ! -s conftest.err
8124
       }; then
8125
  # Broken: success on invalid input.
8126
continue
8127
else
8128
  $as_echo "$as_me: failed program was:" >&5
8129
sed 's/^/| /' conftest.$ac_ext >&5
8130
 
8131
  # Passes both tests.
8132
ac_preproc_ok=:
8133
break
8134
fi
8135
 
8136
rm -f conftest.err conftest.$ac_ext
8137
 
8138
done
8139
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8140
rm -f conftest.err conftest.$ac_ext
8141
if $ac_preproc_ok; then
8142
  :
8143
else
8144
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8145
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8146
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8147
See \`config.log' for more details." >&5
8148
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8149
See \`config.log' for more details." >&2;}
8150
   { (exit 1); exit 1; }; }; }
8151
fi
8152
 
8153
ac_ext=c
8154
ac_cpp='$CPP $CPPFLAGS'
8155
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8156
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8158
 
8159
 
8160
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8161
$as_echo_n "checking for ANSI C header files... " >&6; }
8162
if test "${ac_cv_header_stdc+set}" = set; then
8163
  $as_echo_n "(cached) " >&6
8164
else
8165
  cat >conftest.$ac_ext <<_ACEOF
8166
/* confdefs.h.  */
8167
_ACEOF
8168
cat confdefs.h >>conftest.$ac_ext
8169
cat >>conftest.$ac_ext <<_ACEOF
8170
/* end confdefs.h.  */
8171
#include 
8172
#include 
8173
#include 
8174
#include 
8175
 
8176
int
8177
main ()
8178
{
8179
 
8180
  ;
8181
  return 0;
8182
}
8183
_ACEOF
8184
rm -f conftest.$ac_objext
8185
if { (ac_try="$ac_compile"
8186
case "(($ac_try" in
8187
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188
  *) ac_try_echo=$ac_try;;
8189
esac
8190
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8191
$as_echo "$ac_try_echo") >&5
8192
  (eval "$ac_compile") 2>conftest.er1
8193
  ac_status=$?
8194
  grep -v '^ *+' conftest.er1 >conftest.err
8195
  rm -f conftest.er1
8196
  cat conftest.err >&5
8197
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198
  (exit $ac_status); } && {
8199
         test -z "$ac_c_werror_flag" ||
8200
         test ! -s conftest.err
8201
       } && test -s conftest.$ac_objext; then
8202
  ac_cv_header_stdc=yes
8203
else
8204
  $as_echo "$as_me: failed program was:" >&5
8205
sed 's/^/| /' conftest.$ac_ext >&5
8206
 
8207
        ac_cv_header_stdc=no
8208
fi
8209
 
8210
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211
 
8212
if test $ac_cv_header_stdc = yes; then
8213
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8214
  cat >conftest.$ac_ext <<_ACEOF
8215
/* confdefs.h.  */
8216
_ACEOF
8217
cat confdefs.h >>conftest.$ac_ext
8218
cat >>conftest.$ac_ext <<_ACEOF
8219
/* end confdefs.h.  */
8220
#include 
8221
 
8222
_ACEOF
8223
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8224
  $EGREP "memchr" >/dev/null 2>&1; then
8225
  :
8226
else
8227
  ac_cv_header_stdc=no
8228
fi
8229
rm -f conftest*
8230
 
8231
fi
8232
 
8233
if test $ac_cv_header_stdc = yes; then
8234
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8235
  cat >conftest.$ac_ext <<_ACEOF
8236
/* confdefs.h.  */
8237
_ACEOF
8238
cat confdefs.h >>conftest.$ac_ext
8239
cat >>conftest.$ac_ext <<_ACEOF
8240
/* end confdefs.h.  */
8241
#include 
8242
 
8243
_ACEOF
8244
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8245
  $EGREP "free" >/dev/null 2>&1; then
8246
  :
8247
else
8248
  ac_cv_header_stdc=no
8249
fi
8250
rm -f conftest*
8251
 
8252
fi
8253
 
8254
if test $ac_cv_header_stdc = yes; then
8255
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8256
  if test "$cross_compiling" = yes; then
8257
  :
8258
else
8259
  cat >conftest.$ac_ext <<_ACEOF
8260
/* confdefs.h.  */
8261
_ACEOF
8262
cat confdefs.h >>conftest.$ac_ext
8263
cat >>conftest.$ac_ext <<_ACEOF
8264
/* end confdefs.h.  */
8265
#include 
8266
#include 
8267
#if ((' ' & 0x0FF) == 0x020)
8268
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8269
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8270
#else
8271
# define ISLOWER(c) \
8272
                   (('a' <= (c) && (c) <= 'i') \
8273
                     || ('j' <= (c) && (c) <= 'r') \
8274
                     || ('s' <= (c) && (c) <= 'z'))
8275
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8276
#endif
8277
 
8278
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8279
int
8280
main ()
8281
{
8282
  int i;
8283
  for (i = 0; i < 256; i++)
8284
    if (XOR (islower (i), ISLOWER (i))
8285
        || toupper (i) != TOUPPER (i))
8286
      return 2;
8287
  return 0;
8288
}
8289
_ACEOF
8290
rm -f conftest$ac_exeext
8291
if { (ac_try="$ac_link"
8292
case "(($ac_try" in
8293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294
  *) ac_try_echo=$ac_try;;
8295
esac
8296
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8297
$as_echo "$ac_try_echo") >&5
8298
  (eval "$ac_link") 2>&5
8299
  ac_status=$?
8300
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8302
  { (case "(($ac_try" in
8303
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304
  *) ac_try_echo=$ac_try;;
8305
esac
8306
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8307
$as_echo "$ac_try_echo") >&5
8308
  (eval "$ac_try") 2>&5
8309
  ac_status=$?
8310
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311
  (exit $ac_status); }; }; then
8312
  :
8313
else
8314
  $as_echo "$as_me: program exited with status $ac_status" >&5
8315
$as_echo "$as_me: failed program was:" >&5
8316
sed 's/^/| /' conftest.$ac_ext >&5
8317
 
8318
( exit $ac_status )
8319
ac_cv_header_stdc=no
8320
fi
8321
rm -rf conftest.dSYM
8322
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8323
fi
8324
 
8325
 
8326
fi
8327
fi
8328
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8329
$as_echo "$ac_cv_header_stdc" >&6; }
8330
if test $ac_cv_header_stdc = yes; then
8331
 
8332
cat >>confdefs.h <<\_ACEOF
8333
#define STDC_HEADERS 1
8334
_ACEOF
8335
 
8336
fi
8337
 
8338
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8339
 
8340
 
8341
 
8342
 
8343
 
8344
 
8345
 
8346
 
8347
 
8348
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8349
                  inttypes.h stdint.h unistd.h
8350
do
8351
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8352
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8353
$as_echo_n "checking for $ac_header... " >&6; }
8354
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8355
  $as_echo_n "(cached) " >&6
8356
else
8357
  cat >conftest.$ac_ext <<_ACEOF
8358
/* confdefs.h.  */
8359
_ACEOF
8360
cat confdefs.h >>conftest.$ac_ext
8361
cat >>conftest.$ac_ext <<_ACEOF
8362
/* end confdefs.h.  */
8363
$ac_includes_default
8364
 
8365
#include <$ac_header>
8366
_ACEOF
8367
rm -f conftest.$ac_objext
8368
if { (ac_try="$ac_compile"
8369
case "(($ac_try" in
8370
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371
  *) ac_try_echo=$ac_try;;
8372
esac
8373
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8374
$as_echo "$ac_try_echo") >&5
8375
  (eval "$ac_compile") 2>conftest.er1
8376
  ac_status=$?
8377
  grep -v '^ *+' conftest.er1 >conftest.err
8378
  rm -f conftest.er1
8379
  cat conftest.err >&5
8380
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381
  (exit $ac_status); } && {
8382
         test -z "$ac_c_werror_flag" ||
8383
         test ! -s conftest.err
8384
       } && test -s conftest.$ac_objext; then
8385
  eval "$as_ac_Header=yes"
8386
else
8387
  $as_echo "$as_me: failed program was:" >&5
8388
sed 's/^/| /' conftest.$ac_ext >&5
8389
 
8390
        eval "$as_ac_Header=no"
8391
fi
8392
 
8393
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394
fi
8395
ac_res=`eval 'as_val=${'$as_ac_Header'}
8396
                 $as_echo "$as_val"'`
8397
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8398
$as_echo "$ac_res" >&6; }
8399
as_val=`eval 'as_val=${'$as_ac_Header'}
8400
                 $as_echo "$as_val"'`
8401
   if test "x$as_val" = x""yes; then
8402
  cat >>confdefs.h <<_ACEOF
8403
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8404
_ACEOF
8405
 
8406
fi
8407
 
8408
done
8409
 
8410
 
8411
 
8412
for ac_header in dlfcn.h
8413
do
8414
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8415
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8416
$as_echo_n "checking for $ac_header... " >&6; }
8417
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8418
  $as_echo_n "(cached) " >&6
8419
else
8420
  cat >conftest.$ac_ext <<_ACEOF
8421
/* confdefs.h.  */
8422
_ACEOF
8423
cat confdefs.h >>conftest.$ac_ext
8424
cat >>conftest.$ac_ext <<_ACEOF
8425
/* end confdefs.h.  */
8426
$ac_includes_default
8427
 
8428
#include <$ac_header>
8429
_ACEOF
8430
rm -f conftest.$ac_objext
8431
if { (ac_try="$ac_compile"
8432
case "(($ac_try" in
8433
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434
  *) ac_try_echo=$ac_try;;
8435
esac
8436
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8437
$as_echo "$ac_try_echo") >&5
8438
  (eval "$ac_compile") 2>conftest.er1
8439
  ac_status=$?
8440
  grep -v '^ *+' conftest.er1 >conftest.err
8441
  rm -f conftest.er1
8442
  cat conftest.err >&5
8443
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444
  (exit $ac_status); } && {
8445
         test -z "$ac_c_werror_flag" ||
8446
         test ! -s conftest.err
8447
       } && test -s conftest.$ac_objext; then
8448
  eval "$as_ac_Header=yes"
8449
else
8450
  $as_echo "$as_me: failed program was:" >&5
8451
sed 's/^/| /' conftest.$ac_ext >&5
8452
 
8453
        eval "$as_ac_Header=no"
8454
fi
8455
 
8456
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457
fi
8458
ac_res=`eval 'as_val=${'$as_ac_Header'}
8459
                 $as_echo "$as_val"'`
8460
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8461
$as_echo "$ac_res" >&6; }
8462
as_val=`eval 'as_val=${'$as_ac_Header'}
8463
                 $as_echo "$as_val"'`
8464
   if test "x$as_val" = x""yes; then
8465
  cat >>confdefs.h <<_ACEOF
8466
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8467
_ACEOF
8468
 
8469
fi
8470
 
8471
done
8472
 
8473
 
8474
 
8475
# Set options
8476
 
8477
 
8478
 
8479
        enable_dlopen=no
8480
 
8481
 
8482
 
8483
            # Check whether --enable-shared was given.
8484
if test "${enable_shared+set}" = set; then
8485
  enableval=$enable_shared; p=${PACKAGE-default}
8486
    case $enableval in
8487
    yes) enable_shared=yes ;;
8488
    no) enable_shared=no ;;
8489
    *)
8490
      enable_shared=no
8491
      # Look at the argument we got.  We use all the common list separators.
8492
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8493
      for pkg in $enableval; do
8494
        IFS="$lt_save_ifs"
8495
        if test "X$pkg" = "X$p"; then
8496
          enable_shared=yes
8497
        fi
8498
      done
8499
      IFS="$lt_save_ifs"
8500
      ;;
8501
    esac
8502
else
8503
  enable_shared=yes
8504
fi
8505
 
8506
 
8507
 
8508
 
8509
 
8510
 
8511
 
8512
 
8513
 
8514
  # Check whether --enable-static was given.
8515
if test "${enable_static+set}" = set; then
8516
  enableval=$enable_static; p=${PACKAGE-default}
8517
    case $enableval in
8518
    yes) enable_static=yes ;;
8519
    no) enable_static=no ;;
8520
    *)
8521
     enable_static=no
8522
      # Look at the argument we got.  We use all the common list separators.
8523
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8524
      for pkg in $enableval; do
8525
        IFS="$lt_save_ifs"
8526
        if test "X$pkg" = "X$p"; then
8527
          enable_static=yes
8528
        fi
8529
      done
8530
      IFS="$lt_save_ifs"
8531
      ;;
8532
    esac
8533
else
8534
  enable_static=yes
8535
fi
8536
 
8537
 
8538
 
8539
 
8540
 
8541
 
8542
 
8543
 
8544
 
8545
 
8546
# Check whether --with-pic was given.
8547
if test "${with_pic+set}" = set; then
8548
  withval=$with_pic; pic_mode="$withval"
8549
else
8550
  pic_mode=default
8551
fi
8552
 
8553
 
8554
test -z "$pic_mode" && pic_mode=default
8555
 
8556
 
8557
 
8558
 
8559
 
8560
 
8561
 
8562
  # Check whether --enable-fast-install was given.
8563
if test "${enable_fast_install+set}" = set; then
8564
  enableval=$enable_fast_install; p=${PACKAGE-default}
8565
    case $enableval in
8566
    yes) enable_fast_install=yes ;;
8567
    no) enable_fast_install=no ;;
8568
    *)
8569
      enable_fast_install=no
8570
      # Look at the argument we got.  We use all the common list separators.
8571
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8572
      for pkg in $enableval; do
8573
        IFS="$lt_save_ifs"
8574
        if test "X$pkg" = "X$p"; then
8575
          enable_fast_install=yes
8576
        fi
8577
      done
8578
      IFS="$lt_save_ifs"
8579
      ;;
8580
    esac
8581
else
8582
  enable_fast_install=yes
8583
fi
8584
 
8585
 
8586
 
8587
 
8588
 
8589
 
8590
 
8591
 
8592
 
8593
 
8594
 
8595
# This can be used to rebuild libtool when needed
8596
LIBTOOL_DEPS="$ltmain"
8597
 
8598
# Always use our own libtool.
8599
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8600
 
8601
 
8602
 
8603
 
8604
 
8605
 
8606
 
8607
 
8608
 
8609
 
8610
 
8611
 
8612
 
8613
 
8614
 
8615
 
8616
 
8617
 
8618
 
8619
 
8620
 
8621
 
8622
 
8623
 
8624
 
8625
test -z "$LN_S" && LN_S="ln -s"
8626
 
8627
 
8628
 
8629
 
8630
 
8631
 
8632
 
8633
 
8634
 
8635
 
8636
 
8637
 
8638
 
8639
 
8640
if test -n "${ZSH_VERSION+set}" ; then
8641
   setopt NO_GLOB_SUBST
8642
fi
8643
 
8644
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8645
$as_echo_n "checking for objdir... " >&6; }
8646
if test "${lt_cv_objdir+set}" = set; then
8647
  $as_echo_n "(cached) " >&6
8648
else
8649
  rm -f .libs 2>/dev/null
8650
mkdir .libs 2>/dev/null
8651
if test -d .libs; then
8652
  lt_cv_objdir=.libs
8653
else
8654
  # MS-DOS does not allow filenames that begin with a dot.
8655
  lt_cv_objdir=_libs
8656
fi
8657
rmdir .libs 2>/dev/null
8658
fi
8659
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8660
$as_echo "$lt_cv_objdir" >&6; }
8661
objdir=$lt_cv_objdir
8662
 
8663
 
8664
 
8665
 
8666
 
8667
cat >>confdefs.h <<_ACEOF
8668
#define LT_OBJDIR "$lt_cv_objdir/"
8669
_ACEOF
8670
 
8671
 
8672
 
8673
 
8674
 
8675
 
8676
 
8677
 
8678
 
8679
 
8680
 
8681
 
8682
 
8683
 
8684
 
8685
 
8686
 
8687
case $host_os in
8688
aix3*)
8689
  # AIX sometimes has problems with the GCC collect2 program.  For some
8690
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8691
  # vanish in a puff of smoke.
8692
  if test "X${COLLECT_NAMES+set}" != Xset; then
8693
    COLLECT_NAMES=
8694
    export COLLECT_NAMES
8695
  fi
8696
  ;;
8697
esac
8698
 
8699
# Sed substitution that helps us do robust quoting.  It backslashifies
8700
# metacharacters that are still active within double-quoted strings.
8701
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8702
 
8703
# Same as above, but do not quote variable references.
8704
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8705
 
8706
# Sed substitution to delay expansion of an escaped shell variable in a
8707
# double_quote_subst'ed string.
8708
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8709
 
8710
# Sed substitution to delay expansion of an escaped single quote.
8711
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8712
 
8713
# Sed substitution to avoid accidental globbing in evaled expressions
8714
no_glob_subst='s/\*/\\\*/g'
8715
 
8716
# Global variables:
8717
ofile=libtool
8718
can_build_shared=yes
8719
 
8720
# All known linkers require a `.a' archive for static linking (except MSVC,
8721
# which needs '.lib').
8722
libext=a
8723
 
8724
with_gnu_ld="$lt_cv_prog_gnu_ld"
8725
 
8726
old_CC="$CC"
8727
old_CFLAGS="$CFLAGS"
8728
 
8729
# Set sane defaults for various variables
8730
test -z "$CC" && CC=cc
8731
test -z "$LTCC" && LTCC=$CC
8732
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8733
test -z "$LD" && LD=ld
8734
test -z "$ac_objext" && ac_objext=o
8735
 
8736
for cc_temp in $compiler""; do
8737
  case $cc_temp in
8738
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8739
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8740
    \-*) ;;
8741
    *) break;;
8742
  esac
8743
done
8744
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8745
 
8746
 
8747
# Only perform the check for file, if the check method requires it
8748
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8749
case $deplibs_check_method in
8750
file_magic*)
8751
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8752
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8753
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8754
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8755
  $as_echo_n "(cached) " >&6
8756
else
8757
  case $MAGIC_CMD in
8758
[\\/*] |  ?:[\\/]*)
8759
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8760
  ;;
8761
*)
8762
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8763
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8764
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8765
  for ac_dir in $ac_dummy; do
8766
    IFS="$lt_save_ifs"
8767
    test -z "$ac_dir" && ac_dir=.
8768
    if test -f $ac_dir/${ac_tool_prefix}file; then
8769
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8770
      if test -n "$file_magic_test_file"; then
8771
        case $deplibs_check_method in
8772
        "file_magic "*)
8773
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8774
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8775
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8776
            $EGREP "$file_magic_regex" > /dev/null; then
8777
            :
8778
          else
8779
            cat <<_LT_EOF 1>&2
8780
 
8781
*** Warning: the command libtool uses to detect shared libraries,
8782
*** $file_magic_cmd, produces output that libtool cannot recognize.
8783
*** The result is that libtool may fail to recognize shared libraries
8784
*** as such.  This will affect the creation of libtool libraries that
8785
*** depend on shared libraries, but programs linked with such libtool
8786
*** libraries will work regardless of this problem.  Nevertheless, you
8787
*** may want to report the problem to your system manager and/or to
8788
*** bug-libtool@gnu.org
8789
 
8790
_LT_EOF
8791
          fi ;;
8792
        esac
8793
      fi
8794
      break
8795
    fi
8796
  done
8797
  IFS="$lt_save_ifs"
8798
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8799
  ;;
8800
esac
8801
fi
8802
 
8803
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8804
if test -n "$MAGIC_CMD"; then
8805
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8806
$as_echo "$MAGIC_CMD" >&6; }
8807
else
8808
  { $as_echo "$as_me:$LINENO: result: no" >&5
8809
$as_echo "no" >&6; }
8810
fi
8811
 
8812
 
8813
 
8814
 
8815
 
8816
if test -z "$lt_cv_path_MAGIC_CMD"; then
8817
  if test -n "$ac_tool_prefix"; then
8818
    { $as_echo "$as_me:$LINENO: checking for file" >&5
8819
$as_echo_n "checking for file... " >&6; }
8820
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8821
  $as_echo_n "(cached) " >&6
8822
else
8823
  case $MAGIC_CMD in
8824
[\\/*] |  ?:[\\/]*)
8825
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8826
  ;;
8827
*)
8828
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8829
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8830
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8831
  for ac_dir in $ac_dummy; do
8832
    IFS="$lt_save_ifs"
8833
    test -z "$ac_dir" && ac_dir=.
8834
    if test -f $ac_dir/file; then
8835
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8836
      if test -n "$file_magic_test_file"; then
8837
        case $deplibs_check_method in
8838
        "file_magic "*)
8839
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8840
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8841
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8842
            $EGREP "$file_magic_regex" > /dev/null; then
8843
            :
8844
          else
8845
            cat <<_LT_EOF 1>&2
8846
 
8847
*** Warning: the command libtool uses to detect shared libraries,
8848
*** $file_magic_cmd, produces output that libtool cannot recognize.
8849
*** The result is that libtool may fail to recognize shared libraries
8850
*** as such.  This will affect the creation of libtool libraries that
8851
*** depend on shared libraries, but programs linked with such libtool
8852
*** libraries will work regardless of this problem.  Nevertheless, you
8853
*** may want to report the problem to your system manager and/or to
8854
*** bug-libtool@gnu.org
8855
 
8856
_LT_EOF
8857
          fi ;;
8858
        esac
8859
      fi
8860
      break
8861
    fi
8862
  done
8863
  IFS="$lt_save_ifs"
8864
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8865
  ;;
8866
esac
8867
fi
8868
 
8869
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8870
if test -n "$MAGIC_CMD"; then
8871
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8872
$as_echo "$MAGIC_CMD" >&6; }
8873
else
8874
  { $as_echo "$as_me:$LINENO: result: no" >&5
8875
$as_echo "no" >&6; }
8876
fi
8877
 
8878
 
8879
  else
8880
    MAGIC_CMD=:
8881
  fi
8882
fi
8883
 
8884
  fi
8885
  ;;
8886
esac
8887
 
8888
# Use C for the default configuration in the libtool script
8889
 
8890
lt_save_CC="$CC"
8891
ac_ext=c
8892
ac_cpp='$CPP $CPPFLAGS'
8893
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8894
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8895
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8896
 
8897
 
8898
# Source file extension for C test sources.
8899
ac_ext=c
8900
 
8901
# Object file extension for compiled C test sources.
8902
objext=o
8903
objext=$objext
8904
 
8905
# Code to be used in simple compile tests
8906
lt_simple_compile_test_code="int some_variable = 0;"
8907
 
8908
# Code to be used in simple link tests
8909
lt_simple_link_test_code='int main(){return(0);}'
8910
 
8911
 
8912
 
8913
 
8914
 
8915
 
8916
 
8917
# If no C compiler was specified, use CC.
8918
LTCC=${LTCC-"$CC"}
8919
 
8920
# If no C compiler flags were specified, use CFLAGS.
8921
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8922
 
8923
# Allow CC to be a program name with arguments.
8924
compiler=$CC
8925
 
8926
# Save the default compiler, since it gets overwritten when the other
8927
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8928
compiler_DEFAULT=$CC
8929
 
8930
# save warnings/boilerplate of simple test code
8931
ac_outfile=conftest.$ac_objext
8932
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8933
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8934
_lt_compiler_boilerplate=`cat conftest.err`
8935
$RM conftest*
8936
 
8937
ac_outfile=conftest.$ac_objext
8938
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8939
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8940
_lt_linker_boilerplate=`cat conftest.err`
8941
$RM -r conftest*
8942
 
8943
 
8944
## CAVEAT EMPTOR:
8945
## There is no encapsulation within the following macros, do not change
8946
## the running order or otherwise move them around unless you know exactly
8947
## what you are doing...
8948
if test -n "$compiler"; then
8949
 
8950
lt_prog_compiler_no_builtin_flag=
8951
 
8952
if test "$GCC" = yes; then
8953
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8954
 
8955
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8956
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8957
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8958
  $as_echo_n "(cached) " >&6
8959
else
8960
  lt_cv_prog_compiler_rtti_exceptions=no
8961
   ac_outfile=conftest.$ac_objext
8962
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8963
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8964
   # Insert the option either (1) after the last *FLAGS variable, or
8965
   # (2) before a word containing "conftest.", or (3) at the end.
8966
   # Note that $ac_compile itself does not contain backslashes and begins
8967
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8968
   # The option is referenced via a variable to avoid confusing sed.
8969
   lt_compile=`echo "$ac_compile" | $SED \
8970
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8971
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8972
   -e 's:$: $lt_compiler_flag:'`
8973
   (eval echo "\"\$as_me:8973: $lt_compile\"" >&5)
8974
   (eval "$lt_compile" 2>conftest.err)
8975
   ac_status=$?
8976
   cat conftest.err >&5
8977
   echo "$as_me:8977: \$? = $ac_status" >&5
8978
   if (exit $ac_status) && test -s "$ac_outfile"; then
8979
     # The compiler can only warn and ignore the option if not recognized
8980
     # So say no if there are warnings other than the usual output.
8981
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8982
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8983
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8984
       lt_cv_prog_compiler_rtti_exceptions=yes
8985
     fi
8986
   fi
8987
   $RM conftest*
8988
 
8989
fi
8990
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8991
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8992
 
8993
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8994
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8995
else
8996
    :
8997
fi
8998
 
8999
fi
9000
 
9001
 
9002
 
9003
 
9004
 
9005
 
9006
  lt_prog_compiler_wl=
9007
lt_prog_compiler_pic=
9008
lt_prog_compiler_static=
9009
 
9010
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9011
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9012
 
9013
  if test "$GCC" = yes; then
9014
    lt_prog_compiler_wl='-Wl,'
9015
    lt_prog_compiler_static='-static'
9016
 
9017
    case $host_os in
9018
      aix*)
9019
      # All AIX code is PIC.
9020
      if test "$host_cpu" = ia64; then
9021
        # AIX 5 now supports IA64 processor
9022
        lt_prog_compiler_static='-Bstatic'
9023
      fi
9024
      ;;
9025
 
9026
    amigaos*)
9027
      case $host_cpu in
9028
      powerpc)
9029
            # see comment about AmigaOS4 .so support
9030
            lt_prog_compiler_pic='-fPIC'
9031
        ;;
9032
      m68k)
9033
            # FIXME: we need at least 68020 code to build shared libraries, but
9034
            # adding the `-m68020' flag to GCC prevents building anything better,
9035
            # like `-m68040'.
9036
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9037
        ;;
9038
      esac
9039
      ;;
9040
 
9041
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9042
      # PIC is the default for these OSes.
9043
      ;;
9044
 
9045
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9046
      # This hack is so that the source file can tell whether it is being
9047
      # built for inclusion in a dll (and should export symbols for example).
9048
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9049
      # (--disable-auto-import) libraries
9050
      lt_prog_compiler_pic='-DDLL_EXPORT'
9051
      ;;
9052
 
9053
    darwin* | rhapsody*)
9054
      # PIC is the default on this platform
9055
      # Common symbols not allowed in MH_DYLIB files
9056
      lt_prog_compiler_pic='-fno-common'
9057
      ;;
9058
 
9059
    hpux*)
9060
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9061
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9062
      # sets the default TLS model and affects inlining.
9063
      case $host_cpu in
9064
      hppa*64*)
9065
        # +Z the default
9066
        ;;
9067
      *)
9068
        lt_prog_compiler_pic='-fPIC'
9069
        ;;
9070
      esac
9071
      ;;
9072
 
9073
    interix[3-9]*)
9074
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9075
      # Instead, we relocate shared libraries at runtime.
9076
      ;;
9077
 
9078
    msdosdjgpp*)
9079
      # Just because we use GCC doesn't mean we suddenly get shared libraries
9080
      # on systems that don't support them.
9081
      lt_prog_compiler_can_build_shared=no
9082
      enable_shared=no
9083
      ;;
9084
 
9085
    *nto* | *qnx*)
9086
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9087
      # it will coredump.
9088
      lt_prog_compiler_pic='-fPIC -shared'
9089
      ;;
9090
 
9091
    sysv4*MP*)
9092
      if test -d /usr/nec; then
9093
        lt_prog_compiler_pic=-Kconform_pic
9094
      fi
9095
      ;;
9096
 
9097
    *)
9098
      lt_prog_compiler_pic='-fPIC'
9099
      ;;
9100
    esac
9101
  else
9102
    # PORTME Check for flag to pass linker flags through the system compiler.
9103
    case $host_os in
9104
    aix*)
9105
      lt_prog_compiler_wl='-Wl,'
9106
      if test "$host_cpu" = ia64; then
9107
        # AIX 5 now supports IA64 processor
9108
        lt_prog_compiler_static='-Bstatic'
9109
      else
9110
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9111
      fi
9112
      ;;
9113
 
9114
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9115
      # This hack is so that the source file can tell whether it is being
9116
      # built for inclusion in a dll (and should export symbols for example).
9117
      lt_prog_compiler_pic='-DDLL_EXPORT'
9118
      ;;
9119
 
9120
    hpux9* | hpux10* | hpux11*)
9121
      lt_prog_compiler_wl='-Wl,'
9122
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9123
      # not for PA HP-UX.
9124
      case $host_cpu in
9125
      hppa*64*|ia64*)
9126
        # +Z the default
9127
        ;;
9128
      *)
9129
        lt_prog_compiler_pic='+Z'
9130
        ;;
9131
      esac
9132
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9133
      lt_prog_compiler_static='${wl}-a ${wl}archive'
9134
      ;;
9135
 
9136
    irix5* | irix6* | nonstopux*)
9137
      lt_prog_compiler_wl='-Wl,'
9138
      # PIC (with -KPIC) is the default.
9139
      lt_prog_compiler_static='-non_shared'
9140
      ;;
9141
 
9142
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9143
      case $cc_basename in
9144
      # old Intel for x86_64 which still supported -KPIC.
9145
      ecc*)
9146
        lt_prog_compiler_wl='-Wl,'
9147
        lt_prog_compiler_pic='-KPIC'
9148
        lt_prog_compiler_static='-static'
9149
        ;;
9150
      # icc used to be incompatible with GCC.
9151
      # ICC 10 doesn't accept -KPIC any more.
9152
      icc* | ifort*)
9153
        lt_prog_compiler_wl='-Wl,'
9154
        lt_prog_compiler_pic='-fPIC'
9155
        lt_prog_compiler_static='-static'
9156
        ;;
9157
      # Lahey Fortran 8.1.
9158
      lf95*)
9159
        lt_prog_compiler_wl='-Wl,'
9160
        lt_prog_compiler_pic='--shared'
9161
        lt_prog_compiler_static='--static'
9162
        ;;
9163
      pgcc* | pgf77* | pgf90* | pgf95*)
9164
        # Portland Group compilers (*not* the Pentium gcc compiler,
9165
        # which looks to be a dead project)
9166
        lt_prog_compiler_wl='-Wl,'
9167
        lt_prog_compiler_pic='-fpic'
9168
        lt_prog_compiler_static='-Bstatic'
9169
        ;;
9170
      ccc*)
9171
        lt_prog_compiler_wl='-Wl,'
9172
        # All Alpha code is PIC.
9173
        lt_prog_compiler_static='-non_shared'
9174
        ;;
9175
      xl*)
9176
        # IBM XL C 8.0/Fortran 10.1 on PPC
9177
        lt_prog_compiler_wl='-Wl,'
9178
        lt_prog_compiler_pic='-qpic'
9179
        lt_prog_compiler_static='-qstaticlink'
9180
        ;;
9181
      *)
9182
        case `$CC -V 2>&1 | sed 5q` in
9183
        *Sun\ C*)
9184
          # Sun C 5.9
9185
          lt_prog_compiler_pic='-KPIC'
9186
          lt_prog_compiler_static='-Bstatic'
9187
          lt_prog_compiler_wl='-Wl,'
9188
          ;;
9189
        *Sun\ F*)
9190
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9191
          lt_prog_compiler_pic='-KPIC'
9192
          lt_prog_compiler_static='-Bstatic'
9193
          lt_prog_compiler_wl=''
9194
          ;;
9195
        esac
9196
        ;;
9197
      esac
9198
      ;;
9199
 
9200
    newsos6)
9201
      lt_prog_compiler_pic='-KPIC'
9202
      lt_prog_compiler_static='-Bstatic'
9203
      ;;
9204
 
9205
    *nto* | *qnx*)
9206
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9207
      # it will coredump.
9208
      lt_prog_compiler_pic='-fPIC -shared'
9209
      ;;
9210
 
9211
    osf3* | osf4* | osf5*)
9212
      lt_prog_compiler_wl='-Wl,'
9213
      # All OSF/1 code is PIC.
9214
      lt_prog_compiler_static='-non_shared'
9215
      ;;
9216
 
9217
    rdos*)
9218
      lt_prog_compiler_static='-non_shared'
9219
      ;;
9220
 
9221
    solaris*)
9222
      lt_prog_compiler_pic='-KPIC'
9223
      lt_prog_compiler_static='-Bstatic'
9224
      case $cc_basename in
9225
      f77* | f90* | f95*)
9226
        lt_prog_compiler_wl='-Qoption ld ';;
9227
      *)
9228
        lt_prog_compiler_wl='-Wl,';;
9229
      esac
9230
      ;;
9231
 
9232
    sunos4*)
9233
      lt_prog_compiler_wl='-Qoption ld '
9234
      lt_prog_compiler_pic='-PIC'
9235
      lt_prog_compiler_static='-Bstatic'
9236
      ;;
9237
 
9238
    sysv4 | sysv4.2uw2* | sysv4.3*)
9239
      lt_prog_compiler_wl='-Wl,'
9240
      lt_prog_compiler_pic='-KPIC'
9241
      lt_prog_compiler_static='-Bstatic'
9242
      ;;
9243
 
9244
    sysv4*MP*)
9245
      if test -d /usr/nec ;then
9246
        lt_prog_compiler_pic='-Kconform_pic'
9247
        lt_prog_compiler_static='-Bstatic'
9248
      fi
9249
      ;;
9250
 
9251
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9252
      lt_prog_compiler_wl='-Wl,'
9253
      lt_prog_compiler_pic='-KPIC'
9254
      lt_prog_compiler_static='-Bstatic'
9255
      ;;
9256
 
9257
    unicos*)
9258
      lt_prog_compiler_wl='-Wl,'
9259
      lt_prog_compiler_can_build_shared=no
9260
      ;;
9261
 
9262
    uts4*)
9263
      lt_prog_compiler_pic='-pic'
9264
      lt_prog_compiler_static='-Bstatic'
9265
      ;;
9266
 
9267
    *)
9268
      lt_prog_compiler_can_build_shared=no
9269
      ;;
9270
    esac
9271
  fi
9272
 
9273
case $host_os in
9274
  # For platforms which do not support PIC, -DPIC is meaningless:
9275
  *djgpp*)
9276
    lt_prog_compiler_pic=
9277
    ;;
9278
  *)
9279
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9280
    ;;
9281
esac
9282
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9283
$as_echo "$lt_prog_compiler_pic" >&6; }
9284
 
9285
 
9286
 
9287
 
9288
 
9289
 
9290
#
9291
# Check to make sure the PIC flag actually works.
9292
#
9293
if test -n "$lt_prog_compiler_pic"; then
9294
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9295
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9296
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9297
  $as_echo_n "(cached) " >&6
9298
else
9299
  lt_cv_prog_compiler_pic_works=no
9300
   ac_outfile=conftest.$ac_objext
9301
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9302
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9303
   # Insert the option either (1) after the last *FLAGS variable, or
9304
   # (2) before a word containing "conftest.", or (3) at the end.
9305
   # Note that $ac_compile itself does not contain backslashes and begins
9306
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9307
   # The option is referenced via a variable to avoid confusing sed.
9308
   lt_compile=`echo "$ac_compile" | $SED \
9309
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9310
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9311
   -e 's:$: $lt_compiler_flag:'`
9312
   (eval echo "\"\$as_me:9312: $lt_compile\"" >&5)
9313
   (eval "$lt_compile" 2>conftest.err)
9314
   ac_status=$?
9315
   cat conftest.err >&5
9316
   echo "$as_me:9316: \$? = $ac_status" >&5
9317
   if (exit $ac_status) && test -s "$ac_outfile"; then
9318
     # The compiler can only warn and ignore the option if not recognized
9319
     # So say no if there are warnings other than the usual output.
9320
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9321
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9322
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9323
       lt_cv_prog_compiler_pic_works=yes
9324
     fi
9325
   fi
9326
   $RM conftest*
9327
 
9328
fi
9329
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9330
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9331
 
9332
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9333
    case $lt_prog_compiler_pic in
9334
     "" | " "*) ;;
9335
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9336
     esac
9337
else
9338
    lt_prog_compiler_pic=
9339
     lt_prog_compiler_can_build_shared=no
9340
fi
9341
 
9342
fi
9343
 
9344
 
9345
 
9346
 
9347
 
9348
 
9349
#
9350
# Check to make sure the static flag actually works.
9351
#
9352
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9353
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9354
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9355
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9356
  $as_echo_n "(cached) " >&6
9357
else
9358
  lt_cv_prog_compiler_static_works=no
9359
   save_LDFLAGS="$LDFLAGS"
9360
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9361
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9362
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9363
     # The linker can only warn and ignore the option if not recognized
9364
     # So say no if there are warnings
9365
     if test -s conftest.err; then
9366
       # Append any errors to the config.log.
9367
       cat conftest.err 1>&5
9368
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9369
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9370
       if diff conftest.exp conftest.er2 >/dev/null; then
9371
         lt_cv_prog_compiler_static_works=yes
9372
       fi
9373
     else
9374
       lt_cv_prog_compiler_static_works=yes
9375
     fi
9376
   fi
9377
   $RM -r conftest*
9378
   LDFLAGS="$save_LDFLAGS"
9379
 
9380
fi
9381
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9382
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9383
 
9384
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9385
    :
9386
else
9387
    lt_prog_compiler_static=
9388
fi
9389
 
9390
 
9391
 
9392
 
9393
 
9394
 
9395
 
9396
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9397
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9398
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9399
  $as_echo_n "(cached) " >&6
9400
else
9401
  lt_cv_prog_compiler_c_o=no
9402
   $RM -r conftest 2>/dev/null
9403
   mkdir conftest
9404
   cd conftest
9405
   mkdir out
9406
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9407
 
9408
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9409
   # Insert the option either (1) after the last *FLAGS variable, or
9410
   # (2) before a word containing "conftest.", or (3) at the end.
9411
   # Note that $ac_compile itself does not contain backslashes and begins
9412
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9413
   lt_compile=`echo "$ac_compile" | $SED \
9414
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9415
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9416
   -e 's:$: $lt_compiler_flag:'`
9417
   (eval echo "\"\$as_me:9417: $lt_compile\"" >&5)
9418
   (eval "$lt_compile" 2>out/conftest.err)
9419
   ac_status=$?
9420
   cat out/conftest.err >&5
9421
   echo "$as_me:9421: \$? = $ac_status" >&5
9422
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9423
   then
9424
     # The compiler can only warn and ignore the option if not recognized
9425
     # So say no if there are warnings
9426
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9427
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9428
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9429
       lt_cv_prog_compiler_c_o=yes
9430
     fi
9431
   fi
9432
   chmod u+w . 2>&5
9433
   $RM conftest*
9434
   # SGI C++ compiler will create directory out/ii_files/ for
9435
   # template instantiation
9436
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9437
   $RM out/* && rmdir out
9438
   cd ..
9439
   $RM -r conftest
9440
   $RM conftest*
9441
 
9442
fi
9443
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9444
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9445
 
9446
 
9447
 
9448
 
9449
 
9450
 
9451
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9452
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9453
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9454
  $as_echo_n "(cached) " >&6
9455
else
9456
  lt_cv_prog_compiler_c_o=no
9457
   $RM -r conftest 2>/dev/null
9458
   mkdir conftest
9459
   cd conftest
9460
   mkdir out
9461
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9462
 
9463
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9464
   # Insert the option either (1) after the last *FLAGS variable, or
9465
   # (2) before a word containing "conftest.", or (3) at the end.
9466
   # Note that $ac_compile itself does not contain backslashes and begins
9467
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9468
   lt_compile=`echo "$ac_compile" | $SED \
9469
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9470
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9471
   -e 's:$: $lt_compiler_flag:'`
9472
   (eval echo "\"\$as_me:9472: $lt_compile\"" >&5)
9473
   (eval "$lt_compile" 2>out/conftest.err)
9474
   ac_status=$?
9475
   cat out/conftest.err >&5
9476
   echo "$as_me:9476: \$? = $ac_status" >&5
9477
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9478
   then
9479
     # The compiler can only warn and ignore the option if not recognized
9480
     # So say no if there are warnings
9481
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9482
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9483
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9484
       lt_cv_prog_compiler_c_o=yes
9485
     fi
9486
   fi
9487
   chmod u+w . 2>&5
9488
   $RM conftest*
9489
   # SGI C++ compiler will create directory out/ii_files/ for
9490
   # template instantiation
9491
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9492
   $RM out/* && rmdir out
9493
   cd ..
9494
   $RM -r conftest
9495
   $RM conftest*
9496
 
9497
fi
9498
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9499
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9500
 
9501
 
9502
 
9503
 
9504
hard_links="nottested"
9505
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9506
  # do not overwrite the value of need_locks provided by the user
9507
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9508
$as_echo_n "checking if we can lock with hard links... " >&6; }
9509
  hard_links=yes
9510
  $RM conftest*
9511
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9512
  touch conftest.a
9513
  ln conftest.a conftest.b 2>&5 || hard_links=no
9514
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9515
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9516
$as_echo "$hard_links" >&6; }
9517
  if test "$hard_links" = no; then
9518
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9519
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9520
    need_locks=warn
9521
  fi
9522
else
9523
  need_locks=no
9524
fi
9525
 
9526
 
9527
 
9528
 
9529
 
9530
 
9531
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9532
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9533
 
9534
  runpath_var=
9535
  allow_undefined_flag=
9536
  always_export_symbols=no
9537
  archive_cmds=
9538
  archive_expsym_cmds=
9539
  compiler_needs_object=no
9540
  enable_shared_with_static_runtimes=no
9541
  export_dynamic_flag_spec=
9542
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9543
  hardcode_automatic=no
9544
  hardcode_direct=no
9545
  hardcode_direct_absolute=no
9546
  hardcode_libdir_flag_spec=
9547
  hardcode_libdir_flag_spec_ld=
9548
  hardcode_libdir_separator=
9549
  hardcode_minus_L=no
9550
  hardcode_shlibpath_var=unsupported
9551
  inherit_rpath=no
9552
  link_all_deplibs=unknown
9553
  module_cmds=
9554
  module_expsym_cmds=
9555
  old_archive_from_new_cmds=
9556
  old_archive_from_expsyms_cmds=
9557
  thread_safe_flag_spec=
9558
  whole_archive_flag_spec=
9559
  # include_expsyms should be a list of space-separated symbols to be *always*
9560
  # included in the symbol list
9561
  include_expsyms=
9562
  # exclude_expsyms can be an extended regexp of symbols to exclude
9563
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9564
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9565
  # as well as any symbol that contains `d'.
9566
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9567
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9568
  # platforms (ab)use it in PIC code, but their linkers get confused if
9569
  # the symbol is explicitly referenced.  Since portable code cannot
9570
  # rely on this symbol name, it's probably fine to never include it in
9571
  # preloaded symbol tables.
9572
  # Exclude shared library initialization/finalization symbols.
9573
  extract_expsyms_cmds=
9574
 
9575
  case $host_os in
9576
  cygwin* | mingw* | pw32* | cegcc*)
9577
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9578
    # When not using gcc, we currently assume that we are using
9579
    # Microsoft Visual C++.
9580
    if test "$GCC" != yes; then
9581
      with_gnu_ld=no
9582
    fi
9583
    ;;
9584
  interix*)
9585
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9586
    with_gnu_ld=yes
9587
    ;;
9588
  openbsd*)
9589
    with_gnu_ld=no
9590
    ;;
9591
  esac
9592
 
9593
  ld_shlibs=yes
9594
  if test "$with_gnu_ld" = yes; then
9595
    # If archive_cmds runs LD, not CC, wlarc should be empty
9596
    wlarc='${wl}'
9597
 
9598
    # Set some defaults for GNU ld with shared library support. These
9599
    # are reset later if shared libraries are not supported. Putting them
9600
    # here allows them to be overridden if necessary.
9601
    runpath_var=LD_RUN_PATH
9602
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9603
    export_dynamic_flag_spec='${wl}--export-dynamic'
9604
    # ancient GNU ld didn't support --whole-archive et. al.
9605
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9606
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9607
    else
9608
      whole_archive_flag_spec=
9609
    fi
9610
    supports_anon_versioning=no
9611
    case `$LD -v 2>&1` in
9612
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9613
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9614
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9615
      *\ 2.11.*) ;; # other 2.11 versions
9616
      *) supports_anon_versioning=yes ;;
9617
    esac
9618
 
9619
    # See if GNU ld supports shared libraries.
9620
    case $host_os in
9621
    aix[3-9]*)
9622
      # On AIX/PPC, the GNU linker is very broken
9623
      if test "$host_cpu" != ia64; then
9624
        ld_shlibs=no
9625
        cat <<_LT_EOF 1>&2
9626
 
9627
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9628
*** to be unable to reliably create shared libraries on AIX.
9629
*** Therefore, libtool is disabling shared libraries support.  If you
9630
*** really care for shared libraries, you may want to modify your PATH
9631
*** so that a non-GNU linker is found, and then restart.
9632
 
9633
_LT_EOF
9634
      fi
9635
      ;;
9636
 
9637
    amigaos*)
9638
      case $host_cpu in
9639
      powerpc)
9640
            # see comment about AmigaOS4 .so support
9641
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9642
            archive_expsym_cmds=''
9643
        ;;
9644
      m68k)
9645
            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)'
9646
            hardcode_libdir_flag_spec='-L$libdir'
9647
            hardcode_minus_L=yes
9648
        ;;
9649
      esac
9650
      ;;
9651
 
9652
    beos*)
9653
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9654
        allow_undefined_flag=unsupported
9655
        # Joseph Beckenbach  says some releases of gcc
9656
        # support --undefined.  This deserves some investigation.  FIXME
9657
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9658
      else
9659
        ld_shlibs=no
9660
      fi
9661
      ;;
9662
 
9663
    cygwin* | mingw* | pw32* | cegcc*)
9664
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9665
      # as there is no search path for DLLs.
9666
      hardcode_libdir_flag_spec='-L$libdir'
9667
      allow_undefined_flag=unsupported
9668
      always_export_symbols=no
9669
      enable_shared_with_static_runtimes=yes
9670
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9671
 
9672
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9673
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9674
        # If the export-symbols file already is a .def file (1st line
9675
        # is EXPORTS), use it as is; otherwise, prepend...
9676
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9677
          cp $export_symbols $output_objdir/$soname.def;
9678
        else
9679
          echo EXPORTS > $output_objdir/$soname.def;
9680
          cat $export_symbols >> $output_objdir/$soname.def;
9681
        fi~
9682
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9683
      else
9684
        ld_shlibs=no
9685
      fi
9686
      ;;
9687
 
9688
    interix[3-9]*)
9689
      hardcode_direct=no
9690
      hardcode_shlibpath_var=no
9691
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9692
      export_dynamic_flag_spec='${wl}-E'
9693
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9694
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9695
      # default) and relocated if they conflict, which is a slow very memory
9696
      # consuming and fragmenting process.  To avoid this, we pick a random,
9697
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9698
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9699
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9700
      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'
9701
      ;;
9702
 
9703
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9704
      tmp_diet=no
9705
      if test "$host_os" = linux-dietlibc; then
9706
        case $cc_basename in
9707
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9708
        esac
9709
      fi
9710
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9711
         && test "$tmp_diet" = no
9712
      then
9713
        tmp_addflag=
9714
        tmp_sharedflag='-shared'
9715
        case $cc_basename,$host_cpu in
9716
        pgcc*)                          # Portland Group C compiler
9717
          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'
9718
          tmp_addflag=' $pic_flag'
9719
          ;;
9720
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9721
          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'
9722
          tmp_addflag=' $pic_flag -Mnomain' ;;
9723
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9724
          tmp_addflag=' -i_dynamic' ;;
9725
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9726
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9727
        ifc* | ifort*)                  # Intel Fortran compiler
9728
          tmp_addflag=' -nofor_main' ;;
9729
        lf95*)                          # Lahey Fortran 8.1
9730
          whole_archive_flag_spec=
9731
          tmp_sharedflag='--shared' ;;
9732
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9733
          tmp_sharedflag='-qmkshrobj'
9734
          tmp_addflag= ;;
9735
        esac
9736
        case `$CC -V 2>&1 | sed 5q` in
9737
        *Sun\ C*)                       # Sun C 5.9
9738
          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'
9739
          compiler_needs_object=yes
9740
          tmp_sharedflag='-G' ;;
9741
        *Sun\ F*)                       # Sun Fortran 8.3
9742
          tmp_sharedflag='-G' ;;
9743
        esac
9744
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9745
 
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
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9751
        fi
9752
 
9753
        case $cc_basename in
9754
        xlf*)
9755
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9756
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9757
          hardcode_libdir_flag_spec=
9758
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9759
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9760
          if test "x$supports_anon_versioning" = xyes; then
9761
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9762
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9763
              echo "local: *; };" >> $output_objdir/$libname.ver~
9764
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9765
          fi
9766
          ;;
9767
        esac
9768
      else
9769
        ld_shlibs=no
9770
      fi
9771
      ;;
9772
 
9773
    netbsd*)
9774
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9775
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9776
        wlarc=
9777
      else
9778
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9779
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9780
      fi
9781
      ;;
9782
 
9783
    solaris*)
9784
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9785
        ld_shlibs=no
9786
        cat <<_LT_EOF 1>&2
9787
 
9788
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9789
*** create shared libraries on Solaris systems.  Therefore, libtool
9790
*** is disabling shared libraries support.  We urge you to upgrade GNU
9791
*** binutils to release 2.9.1 or newer.  Another option is to modify
9792
*** your PATH or compiler configuration so that the native linker is
9793
*** used, and then restart.
9794
 
9795
_LT_EOF
9796
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9797
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9799
      else
9800
        ld_shlibs=no
9801
      fi
9802
      ;;
9803
 
9804
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9805
      case `$LD -v 2>&1` in
9806
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9807
        ld_shlibs=no
9808
        cat <<_LT_EOF 1>&2
9809
 
9810
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9811
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9812
*** is disabling shared libraries support.  We urge you to upgrade GNU
9813
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9814
*** your PATH or compiler configuration so that the native linker is
9815
*** used, and then restart.
9816
 
9817
_LT_EOF
9818
        ;;
9819
        *)
9820
          # For security reasons, it is highly recommended that you always
9821
          # use absolute paths for naming shared libraries, and exclude the
9822
          # DT_RUNPATH tag from executables and libraries.  But doing so
9823
          # requires that you compile everything twice, which is a pain.
9824
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9825
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9826
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9827
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9828
          else
9829
            ld_shlibs=no
9830
          fi
9831
        ;;
9832
      esac
9833
      ;;
9834
 
9835
    sunos4*)
9836
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9837
      wlarc=
9838
      hardcode_direct=yes
9839
      hardcode_shlibpath_var=no
9840
      ;;
9841
 
9842
    *)
9843
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9844
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9845
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9846
      else
9847
        ld_shlibs=no
9848
      fi
9849
      ;;
9850
    esac
9851
 
9852
    if test "$ld_shlibs" = no; then
9853
      runpath_var=
9854
      hardcode_libdir_flag_spec=
9855
      export_dynamic_flag_spec=
9856
      whole_archive_flag_spec=
9857
    fi
9858
  else
9859
    # PORTME fill in a description of your system's linker (not GNU ld)
9860
    case $host_os in
9861
    aix3*)
9862
      allow_undefined_flag=unsupported
9863
      always_export_symbols=yes
9864
      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'
9865
      # Note: this linker hardcodes the directories in LIBPATH if there
9866
      # are no directories specified by -L.
9867
      hardcode_minus_L=yes
9868
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9869
        # Neither direct hardcoding nor static linking is supported with a
9870
        # broken collect2.
9871
        hardcode_direct=unsupported
9872
      fi
9873
      ;;
9874
 
9875
    aix[4-9]*)
9876
      if test "$host_cpu" = ia64; then
9877
        # On IA64, the linker does run time linking by default, so we don't
9878
        # have to do anything special.
9879
        aix_use_runtimelinking=no
9880
        exp_sym_flag='-Bexport'
9881
        no_entry_flag=""
9882
      else
9883
        # If we're using GNU nm, then we don't want the "-C" option.
9884
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9885
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9886
          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'
9887
        else
9888
          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'
9889
        fi
9890
        aix_use_runtimelinking=no
9891
 
9892
        # Test if we are trying to use run time linking or normal
9893
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9894
        # need to do runtime linking.
9895
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9896
          for ld_flag in $LDFLAGS; do
9897
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9898
            aix_use_runtimelinking=yes
9899
            break
9900
          fi
9901
          done
9902
          ;;
9903
        esac
9904
 
9905
        exp_sym_flag='-bexport'
9906
        no_entry_flag='-bnoentry'
9907
      fi
9908
 
9909
      # When large executables or shared objects are built, AIX ld can
9910
      # have problems creating the table of contents.  If linking a library
9911
      # or program results in "error TOC overflow" add -mminimal-toc to
9912
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9913
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9914
 
9915
      archive_cmds=''
9916
      hardcode_direct=yes
9917
      hardcode_direct_absolute=yes
9918
      hardcode_libdir_separator=':'
9919
      link_all_deplibs=yes
9920
      file_list_spec='${wl}-f,'
9921
 
9922
      if test "$GCC" = yes; then
9923
        case $host_os in aix4.[012]|aix4.[012].*)
9924
        # We only want to do this on AIX 4.2 and lower, the check
9925
        # below for broken collect2 doesn't work under 4.3+
9926
          collect2name=`${CC} -print-prog-name=collect2`
9927
          if test -f "$collect2name" &&
9928
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9929
          then
9930
          # We have reworked collect2
9931
          :
9932
          else
9933
          # We have old collect2
9934
          hardcode_direct=unsupported
9935
          # It fails to find uninstalled libraries when the uninstalled
9936
          # path is not listed in the libpath.  Setting hardcode_minus_L
9937
          # to unsupported forces relinking
9938
          hardcode_minus_L=yes
9939
          hardcode_libdir_flag_spec='-L$libdir'
9940
          hardcode_libdir_separator=
9941
          fi
9942
          ;;
9943
        esac
9944
        shared_flag='-shared'
9945
        if test "$aix_use_runtimelinking" = yes; then
9946
          shared_flag="$shared_flag "'${wl}-G'
9947
        fi
9948
      else
9949
        # not using gcc
9950
        if test "$host_cpu" = ia64; then
9951
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9952
        # chokes on -Wl,-G. The following line is correct:
9953
          shared_flag='-G'
9954
        else
9955
          if test "$aix_use_runtimelinking" = yes; then
9956
            shared_flag='${wl}-G'
9957
          else
9958
            shared_flag='${wl}-bM:SRE'
9959
          fi
9960
        fi
9961
      fi
9962
 
9963
      export_dynamic_flag_spec='${wl}-bexpall'
9964
      # It seems that -bexpall does not export symbols beginning with
9965
      # underscore (_), so it is better to generate a list of symbols to export.
9966
      always_export_symbols=yes
9967
      if test "$aix_use_runtimelinking" = yes; then
9968
        # Warning - without using the other runtime loading flags (-brtl),
9969
        # -berok will link without error, but may produce a broken library.
9970
        allow_undefined_flag='-berok'
9971
        # Determine the default libpath from the value encoded in an
9972
        # empty executable.
9973
        cat >conftest.$ac_ext <<_ACEOF
9974
/* confdefs.h.  */
9975
_ACEOF
9976
cat confdefs.h >>conftest.$ac_ext
9977
cat >>conftest.$ac_ext <<_ACEOF
9978
/* end confdefs.h.  */
9979
 
9980
int
9981
main ()
9982
{
9983
 
9984
  ;
9985
  return 0;
9986
}
9987
_ACEOF
9988
rm -f conftest.$ac_objext conftest$ac_exeext
9989
if { (ac_try="$ac_link"
9990
case "(($ac_try" in
9991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992
  *) ac_try_echo=$ac_try;;
9993
esac
9994
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9995
$as_echo "$ac_try_echo") >&5
9996
  (eval "$ac_link") 2>conftest.er1
9997
  ac_status=$?
9998
  grep -v '^ *+' conftest.er1 >conftest.err
9999
  rm -f conftest.er1
10000
  cat conftest.err >&5
10001
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002
  (exit $ac_status); } && {
10003
         test -z "$ac_c_werror_flag" ||
10004
         test ! -s conftest.err
10005
       } && test -s conftest$ac_exeext && {
10006
         test "$cross_compiling" = yes ||
10007
         $as_test_x conftest$ac_exeext
10008
       }; then
10009
 
10010
lt_aix_libpath_sed='
10011
    /Import File Strings/,/^$/ {
10012
        /^0/ {
10013
            s/^0  *\(.*\)$/\1/
10014
            p
10015
        }
10016
    }'
10017
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10018
# Check for a 64-bit object if we didn't find anything.
10019
if test -z "$aix_libpath"; then
10020
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10021
fi
10022
else
10023
  $as_echo "$as_me: failed program was:" >&5
10024
sed 's/^/| /' conftest.$ac_ext >&5
10025
 
10026
 
10027
fi
10028
 
10029
rm -rf conftest.dSYM
10030
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10031
      conftest$ac_exeext conftest.$ac_ext
10032
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10033
 
10034
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10035
        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"
10036
      else
10037
        if test "$host_cpu" = ia64; then
10038
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10039
          allow_undefined_flag="-z nodefs"
10040
          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"
10041
        else
10042
         # Determine the default libpath from the value encoded in an
10043
         # empty executable.
10044
         cat >conftest.$ac_ext <<_ACEOF
10045
/* confdefs.h.  */
10046
_ACEOF
10047
cat confdefs.h >>conftest.$ac_ext
10048
cat >>conftest.$ac_ext <<_ACEOF
10049
/* end confdefs.h.  */
10050
 
10051
int
10052
main ()
10053
{
10054
 
10055
  ;
10056
  return 0;
10057
}
10058
_ACEOF
10059
rm -f conftest.$ac_objext conftest$ac_exeext
10060
if { (ac_try="$ac_link"
10061
case "(($ac_try" in
10062
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063
  *) ac_try_echo=$ac_try;;
10064
esac
10065
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10066
$as_echo "$ac_try_echo") >&5
10067
  (eval "$ac_link") 2>conftest.er1
10068
  ac_status=$?
10069
  grep -v '^ *+' conftest.er1 >conftest.err
10070
  rm -f conftest.er1
10071
  cat conftest.err >&5
10072
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073
  (exit $ac_status); } && {
10074
         test -z "$ac_c_werror_flag" ||
10075
         test ! -s conftest.err
10076
       } && test -s conftest$ac_exeext && {
10077
         test "$cross_compiling" = yes ||
10078
         $as_test_x conftest$ac_exeext
10079
       }; then
10080
 
10081
lt_aix_libpath_sed='
10082
    /Import File Strings/,/^$/ {
10083
        /^0/ {
10084
            s/^0  *\(.*\)$/\1/
10085
            p
10086
        }
10087
    }'
10088
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10089
# Check for a 64-bit object if we didn't find anything.
10090
if test -z "$aix_libpath"; then
10091
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10092
fi
10093
else
10094
  $as_echo "$as_me: failed program was:" >&5
10095
sed 's/^/| /' conftest.$ac_ext >&5
10096
 
10097
 
10098
fi
10099
 
10100
rm -rf conftest.dSYM
10101
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10102
      conftest$ac_exeext conftest.$ac_ext
10103
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10104
 
10105
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10106
          # Warning - without using the other run time loading flags,
10107
          # -berok will link without error, but may produce a broken library.
10108
          no_undefined_flag=' ${wl}-bernotok'
10109
          allow_undefined_flag=' ${wl}-berok'
10110
          # Exported symbols can be pulled into shared objects from archives
10111
          whole_archive_flag_spec='$convenience'
10112
          archive_cmds_need_lc=yes
10113
          # This is similar to how AIX traditionally builds its shared libraries.
10114
          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'
10115
        fi
10116
      fi
10117
      ;;
10118
 
10119
    amigaos*)
10120
      case $host_cpu in
10121
      powerpc)
10122
            # see comment about AmigaOS4 .so support
10123
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10124
            archive_expsym_cmds=''
10125
        ;;
10126
      m68k)
10127
            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)'
10128
            hardcode_libdir_flag_spec='-L$libdir'
10129
            hardcode_minus_L=yes
10130
        ;;
10131
      esac
10132
      ;;
10133
 
10134
    bsdi[45]*)
10135
      export_dynamic_flag_spec=-rdynamic
10136
      ;;
10137
 
10138
    cygwin* | mingw* | pw32* | cegcc*)
10139
      # When not using gcc, we currently assume that we are using
10140
      # Microsoft Visual C++.
10141
      # hardcode_libdir_flag_spec is actually meaningless, as there is
10142
      # no search path for DLLs.
10143
      hardcode_libdir_flag_spec=' '
10144
      allow_undefined_flag=unsupported
10145
      # Tell ltmain to make .lib files, not .a files.
10146
      libext=lib
10147
      # Tell ltmain to make .dll files, not .so files.
10148
      shrext_cmds=".dll"
10149
      # FIXME: Setting linknames here is a bad hack.
10150
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10151
      # The linker will automatically build a .lib file if we build a DLL.
10152
      old_archive_from_new_cmds='true'
10153
      # FIXME: Should let the user specify the lib program.
10154
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10155
      fix_srcfile_path='`cygpath -w "$srcfile"`'
10156
      enable_shared_with_static_runtimes=yes
10157
      ;;
10158
 
10159
    darwin* | rhapsody*)
10160
 
10161
 
10162
  archive_cmds_need_lc=no
10163
  hardcode_direct=no
10164
  hardcode_automatic=yes
10165
  hardcode_shlibpath_var=unsupported
10166
  whole_archive_flag_spec=''
10167
  link_all_deplibs=yes
10168
  allow_undefined_flag="$_lt_dar_allow_undefined"
10169
  case $cc_basename in
10170
     ifort*) _lt_dar_can_shared=yes ;;
10171
     *) _lt_dar_can_shared=$GCC ;;
10172
  esac
10173
  if test "$_lt_dar_can_shared" = "yes"; then
10174
    output_verbose_link_cmd=echo
10175
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10176
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10177
    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}"
10178
    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}"
10179
 
10180
  else
10181
  ld_shlibs=no
10182
  fi
10183
 
10184
      ;;
10185
 
10186
    dgux*)
10187
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188
      hardcode_libdir_flag_spec='-L$libdir'
10189
      hardcode_shlibpath_var=no
10190
      ;;
10191
 
10192
    freebsd1*)
10193
      ld_shlibs=no
10194
      ;;
10195
 
10196
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10197
    # support.  Future versions do this automatically, but an explicit c++rt0.o
10198
    # does not break anything, and helps significantly (at the cost of a little
10199
    # extra space).
10200
    freebsd2.2*)
10201
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10202
      hardcode_libdir_flag_spec='-R$libdir'
10203
      hardcode_direct=yes
10204
      hardcode_shlibpath_var=no
10205
      ;;
10206
 
10207
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10208
    freebsd2*)
10209
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10210
      hardcode_direct=yes
10211
      hardcode_minus_L=yes
10212
      hardcode_shlibpath_var=no
10213
      ;;
10214
 
10215
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10216
    freebsd* | dragonfly*)
10217
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10218
      hardcode_libdir_flag_spec='-R$libdir'
10219
      hardcode_direct=yes
10220
      hardcode_shlibpath_var=no
10221
      ;;
10222
 
10223
    hpux9*)
10224
      if test "$GCC" = yes; then
10225
        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'
10226
      else
10227
        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'
10228
      fi
10229
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10230
      hardcode_libdir_separator=:
10231
      hardcode_direct=yes
10232
 
10233
      # hardcode_minus_L: Not really in the search PATH,
10234
      # but as the default location of the library.
10235
      hardcode_minus_L=yes
10236
      export_dynamic_flag_spec='${wl}-E'
10237
      ;;
10238
 
10239
    hpux10*)
10240
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10241
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10242
      else
10243
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10244
      fi
10245
      if test "$with_gnu_ld" = no; then
10246
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10247
        hardcode_libdir_flag_spec_ld='+b $libdir'
10248
        hardcode_libdir_separator=:
10249
        hardcode_direct=yes
10250
        hardcode_direct_absolute=yes
10251
        export_dynamic_flag_spec='${wl}-E'
10252
        # hardcode_minus_L: Not really in the search PATH,
10253
        # but as the default location of the library.
10254
        hardcode_minus_L=yes
10255
      fi
10256
      ;;
10257
 
10258
    hpux11*)
10259
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10260
        case $host_cpu in
10261
        hppa*64*)
10262
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10263
          ;;
10264
        ia64*)
10265
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10266
          ;;
10267
        *)
10268
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10269
          ;;
10270
        esac
10271
      else
10272
        case $host_cpu in
10273
        hppa*64*)
10274
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10275
          ;;
10276
        ia64*)
10277
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10278
          ;;
10279
        *)
10280
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10281
          ;;
10282
        esac
10283
      fi
10284
      if test "$with_gnu_ld" = no; then
10285
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10286
        hardcode_libdir_separator=:
10287
 
10288
        case $host_cpu in
10289
        hppa*64*|ia64*)
10290
          hardcode_direct=no
10291
          hardcode_shlibpath_var=no
10292
          ;;
10293
        *)
10294
          hardcode_direct=yes
10295
          hardcode_direct_absolute=yes
10296
          export_dynamic_flag_spec='${wl}-E'
10297
 
10298
          # hardcode_minus_L: Not really in the search PATH,
10299
          # but as the default location of the library.
10300
          hardcode_minus_L=yes
10301
          ;;
10302
        esac
10303
      fi
10304
      ;;
10305
 
10306
    irix5* | irix6* | nonstopux*)
10307
      if test "$GCC" = yes; then
10308
        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'
10309
        # Try to use the -exported_symbol ld option, if it does not
10310
        # work, assume that -exports_file does not work either and
10311
        # implicitly export all symbols.
10312
        save_LDFLAGS="$LDFLAGS"
10313
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10314
        cat >conftest.$ac_ext <<_ACEOF
10315
int foo(void) {}
10316
_ACEOF
10317
rm -f conftest.$ac_objext conftest$ac_exeext
10318
if { (ac_try="$ac_link"
10319
case "(($ac_try" in
10320
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321
  *) ac_try_echo=$ac_try;;
10322
esac
10323
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10324
$as_echo "$ac_try_echo") >&5
10325
  (eval "$ac_link") 2>conftest.er1
10326
  ac_status=$?
10327
  grep -v '^ *+' conftest.er1 >conftest.err
10328
  rm -f conftest.er1
10329
  cat conftest.err >&5
10330
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331
  (exit $ac_status); } && {
10332
         test -z "$ac_c_werror_flag" ||
10333
         test ! -s conftest.err
10334
       } && test -s conftest$ac_exeext && {
10335
         test "$cross_compiling" = yes ||
10336
         $as_test_x conftest$ac_exeext
10337
       }; then
10338
  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'
10339
 
10340
else
10341
  $as_echo "$as_me: failed program was:" >&5
10342
sed 's/^/| /' conftest.$ac_ext >&5
10343
 
10344
 
10345
fi
10346
 
10347
rm -rf conftest.dSYM
10348
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10349
      conftest$ac_exeext conftest.$ac_ext
10350
        LDFLAGS="$save_LDFLAGS"
10351
      else
10352
        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'
10353
        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'
10354
      fi
10355
      archive_cmds_need_lc='no'
10356
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10357
      hardcode_libdir_separator=:
10358
      inherit_rpath=yes
10359
      link_all_deplibs=yes
10360
      ;;
10361
 
10362
    netbsd*)
10363
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10364
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10365
      else
10366
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10367
      fi
10368
      hardcode_libdir_flag_spec='-R$libdir'
10369
      hardcode_direct=yes
10370
      hardcode_shlibpath_var=no
10371
      ;;
10372
 
10373
    newsos6)
10374
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10375
      hardcode_direct=yes
10376
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10377
      hardcode_libdir_separator=:
10378
      hardcode_shlibpath_var=no
10379
      ;;
10380
 
10381
    *nto* | *qnx*)
10382
      ;;
10383
 
10384
    openbsd*)
10385
      if test -f /usr/libexec/ld.so; then
10386
        hardcode_direct=yes
10387
        hardcode_shlibpath_var=no
10388
        hardcode_direct_absolute=yes
10389
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10390
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10391
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10392
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10393
          export_dynamic_flag_spec='${wl}-E'
10394
        else
10395
          case $host_os in
10396
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10397
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10398
             hardcode_libdir_flag_spec='-R$libdir'
10399
             ;;
10400
           *)
10401
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10402
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10403
             ;;
10404
          esac
10405
        fi
10406
      else
10407
        ld_shlibs=no
10408
      fi
10409
      ;;
10410
 
10411
    os2*)
10412
      hardcode_libdir_flag_spec='-L$libdir'
10413
      hardcode_minus_L=yes
10414
      allow_undefined_flag=unsupported
10415
      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'
10416
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10417
      ;;
10418
 
10419
    osf3*)
10420
      if test "$GCC" = yes; then
10421
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10422
        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'
10423
      else
10424
        allow_undefined_flag=' -expect_unresolved \*'
10425
        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'
10426
      fi
10427
      archive_cmds_need_lc='no'
10428
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10429
      hardcode_libdir_separator=:
10430
      ;;
10431
 
10432
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10433
      if test "$GCC" = yes; then
10434
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10435
        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'
10436
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10437
      else
10438
        allow_undefined_flag=' -expect_unresolved \*'
10439
        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'
10440
        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~
10441
        $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'
10442
 
10443
        # Both c and cxx compiler support -rpath directly
10444
        hardcode_libdir_flag_spec='-rpath $libdir'
10445
      fi
10446
      archive_cmds_need_lc='no'
10447
      hardcode_libdir_separator=:
10448
      ;;
10449
 
10450
    solaris*)
10451
      no_undefined_flag=' -z defs'
10452
      if test "$GCC" = yes; then
10453
        wlarc='${wl}'
10454
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10455
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10456
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10457
      else
10458
        case `$CC -V 2>&1` in
10459
        *"Compilers 5.0"*)
10460
          wlarc=''
10461
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10462
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10463
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10464
          ;;
10465
        *)
10466
          wlarc='${wl}'
10467
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10468
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10469
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10470
          ;;
10471
        esac
10472
      fi
10473
      hardcode_libdir_flag_spec='-R$libdir'
10474
      hardcode_shlibpath_var=no
10475
      case $host_os in
10476
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10477
      *)
10478
        # The compiler driver will combine and reorder linker options,
10479
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10480
        # but is careful enough not to reorder.
10481
        # Supported since Solaris 2.6 (maybe 2.5.1?)
10482
        if test "$GCC" = yes; then
10483
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10484
        else
10485
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10486
        fi
10487
        ;;
10488
      esac
10489
      link_all_deplibs=yes
10490
      ;;
10491
 
10492
    sunos4*)
10493
      if test "x$host_vendor" = xsequent; then
10494
        # Use $CC to link under sequent, because it throws in some extra .o
10495
        # files that make .init and .fini sections work.
10496
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10497
      else
10498
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10499
      fi
10500
      hardcode_libdir_flag_spec='-L$libdir'
10501
      hardcode_direct=yes
10502
      hardcode_minus_L=yes
10503
      hardcode_shlibpath_var=no
10504
      ;;
10505
 
10506
    sysv4)
10507
      case $host_vendor in
10508
        sni)
10509
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10510
          hardcode_direct=yes # is this really true???
10511
        ;;
10512
        siemens)
10513
          ## LD is ld it makes a PLAMLIB
10514
          ## CC just makes a GrossModule.
10515
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10516
          reload_cmds='$CC -r -o $output$reload_objs'
10517
          hardcode_direct=no
10518
        ;;
10519
        motorola)
10520
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10521
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10522
        ;;
10523
      esac
10524
      runpath_var='LD_RUN_PATH'
10525
      hardcode_shlibpath_var=no
10526
      ;;
10527
 
10528
    sysv4.3*)
10529
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10530
      hardcode_shlibpath_var=no
10531
      export_dynamic_flag_spec='-Bexport'
10532
      ;;
10533
 
10534
    sysv4*MP*)
10535
      if test -d /usr/nec; then
10536
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10537
        hardcode_shlibpath_var=no
10538
        runpath_var=LD_RUN_PATH
10539
        hardcode_runpath_var=yes
10540
        ld_shlibs=yes
10541
      fi
10542
      ;;
10543
 
10544
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10545
      no_undefined_flag='${wl}-z,text'
10546
      archive_cmds_need_lc=no
10547
      hardcode_shlibpath_var=no
10548
      runpath_var='LD_RUN_PATH'
10549
 
10550
      if test "$GCC" = yes; then
10551
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10552
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10553
      else
10554
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10555
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10556
      fi
10557
      ;;
10558
 
10559
    sysv5* | sco3.2v5* | sco5v6*)
10560
      # Note: We can NOT use -z defs as we might desire, because we do not
10561
      # link with -lc, and that would cause any symbols used from libc to
10562
      # always be unresolved, which means just about no library would
10563
      # ever link correctly.  If we're not using GNU ld we use -z text
10564
      # though, which does catch some bad symbols but isn't as heavy-handed
10565
      # as -z defs.
10566
      no_undefined_flag='${wl}-z,text'
10567
      allow_undefined_flag='${wl}-z,nodefs'
10568
      archive_cmds_need_lc=no
10569
      hardcode_shlibpath_var=no
10570
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10571
      hardcode_libdir_separator=':'
10572
      link_all_deplibs=yes
10573
      export_dynamic_flag_spec='${wl}-Bexport'
10574
      runpath_var='LD_RUN_PATH'
10575
 
10576
      if test "$GCC" = yes; then
10577
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10578
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10579
      else
10580
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10581
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10582
      fi
10583
      ;;
10584
 
10585
    uts4*)
10586
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10587
      hardcode_libdir_flag_spec='-L$libdir'
10588
      hardcode_shlibpath_var=no
10589
      ;;
10590
 
10591
    *)
10592
      ld_shlibs=no
10593
      ;;
10594
    esac
10595
 
10596
    if test x$host_vendor = xsni; then
10597
      case $host in
10598
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10599
        export_dynamic_flag_spec='${wl}-Blargedynsym'
10600
        ;;
10601
      esac
10602
    fi
10603
  fi
10604
 
10605
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10606
$as_echo "$ld_shlibs" >&6; }
10607
test "$ld_shlibs" = no && can_build_shared=no
10608
 
10609
with_gnu_ld=$with_gnu_ld
10610
 
10611
 
10612
 
10613
 
10614
 
10615
 
10616
 
10617
 
10618
 
10619
 
10620
 
10621
 
10622
 
10623
 
10624
 
10625
#
10626
# Do we need to explicitly link libc?
10627
#
10628
case "x$archive_cmds_need_lc" in
10629
x|xyes)
10630
  # Assume -lc should be added
10631
  archive_cmds_need_lc=yes
10632
 
10633
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10634
    case $archive_cmds in
10635
    *'~'*)
10636
      # FIXME: we may have to deal with multi-command sequences.
10637
      ;;
10638
    '$CC '*)
10639
      # Test whether the compiler implicitly links with -lc since on some
10640
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10641
      # to ld, don't add -lc before -lgcc.
10642
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10643
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10644
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10645
  $as_echo_n "(cached) " >&6
10646
else
10647
  $RM conftest*
10648
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10649
 
10650
        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10651
  (eval $ac_compile) 2>&5
10652
  ac_status=$?
10653
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654
  (exit $ac_status); } 2>conftest.err; then
10655
          soname=conftest
10656
          lib=conftest
10657
          libobjs=conftest.$ac_objext
10658
          deplibs=
10659
          wl=$lt_prog_compiler_wl
10660
          pic_flag=$lt_prog_compiler_pic
10661
          compiler_flags=-v
10662
          linker_flags=-v
10663
          verstring=
10664
          output_objdir=.
10665
          libname=conftest
10666
          lt_save_allow_undefined_flag=$allow_undefined_flag
10667
          allow_undefined_flag=
10668
          if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10669
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10670
  ac_status=$?
10671
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672
  (exit $ac_status); }
10673
          then
10674
            lt_cv_archive_cmds_need_lc=no
10675
          else
10676
            lt_cv_archive_cmds_need_lc=yes
10677
          fi
10678
          allow_undefined_flag=$lt_save_allow_undefined_flag
10679
        else
10680
          cat conftest.err 1>&5
10681
        fi
10682
        $RM conftest*
10683
 
10684
fi
10685
{ $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10686
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10687
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10688
      ;;
10689
    esac
10690
  fi
10691
  ;;
10692
esac
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
 
10837
 
10838
 
10839
 
10840
 
10841
 
10842
 
10843
 
10844
 
10845
 
10846
 
10847
 
10848
 
10849
 
10850
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10851
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10852
 
10853
if test "$GCC" = yes; then
10854
  case $host_os in
10855
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10856
    *) lt_awk_arg="/^libraries:/" ;;
10857
  esac
10858
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10859
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10860
    # if the path contains ";" then we assume it to be the separator
10861
    # otherwise default to the standard path separator (i.e. ":") - it is
10862
    # assumed that no part of a normal pathname contains ";" but that should
10863
    # okay in the real world where ";" in dirpaths is itself problematic.
10864
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10865
  else
10866
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10867
  fi
10868
  # Ok, now we have the path, separated by spaces, we can step through it
10869
  # and add multilib dir if necessary.
10870
  lt_tmp_lt_search_path_spec=
10871
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10872
  for lt_sys_path in $lt_search_path_spec; do
10873
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10874
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10875
    else
10876
      test -d "$lt_sys_path" && \
10877
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10878
    fi
10879
  done
10880
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10881
BEGIN {RS=" "; FS="/|\n";} {
10882
  lt_foo="";
10883
  lt_count=0;
10884
  for (lt_i = NF; lt_i > 0; lt_i--) {
10885
    if ($lt_i != "" && $lt_i != ".") {
10886
      if ($lt_i == "..") {
10887
        lt_count++;
10888
      } else {
10889
        if (lt_count == 0) {
10890
          lt_foo="/" $lt_i lt_foo;
10891
        } else {
10892
          lt_count--;
10893
        }
10894
      }
10895
    }
10896
  }
10897
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10898
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10899
}'`
10900
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10901
else
10902
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10903
fi
10904
library_names_spec=
10905
libname_spec='lib$name'
10906
soname_spec=
10907
shrext_cmds=".so"
10908
postinstall_cmds=
10909
postuninstall_cmds=
10910
finish_cmds=
10911
finish_eval=
10912
shlibpath_var=
10913
shlibpath_overrides_runpath=unknown
10914
version_type=none
10915
dynamic_linker="$host_os ld.so"
10916
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10917
need_lib_prefix=unknown
10918
hardcode_into_libs=no
10919
 
10920
# when you set need_version to no, make sure it does not cause -set_version
10921
# flags to be left without arguments
10922
need_version=unknown
10923
 
10924
case $host_os in
10925
aix3*)
10926
  version_type=linux
10927
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10928
  shlibpath_var=LIBPATH
10929
 
10930
  # AIX 3 has no versioning support, so we append a major version to the name.
10931
  soname_spec='${libname}${release}${shared_ext}$major'
10932
  ;;
10933
 
10934
aix[4-9]*)
10935
  version_type=linux
10936
  need_lib_prefix=no
10937
  need_version=no
10938
  hardcode_into_libs=yes
10939
  if test "$host_cpu" = ia64; then
10940
    # AIX 5 supports IA64
10941
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10942
    shlibpath_var=LD_LIBRARY_PATH
10943
  else
10944
    # With GCC up to 2.95.x, collect2 would create an import file
10945
    # for dependence libraries.  The import file would start with
10946
    # the line `#! .'.  This would cause the generated library to
10947
    # depend on `.', always an invalid library.  This was fixed in
10948
    # development snapshots of GCC prior to 3.0.
10949
    case $host_os in
10950
      aix4 | aix4.[01] | aix4.[01].*)
10951
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10952
           echo ' yes '
10953
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10954
        :
10955
      else
10956
        can_build_shared=no
10957
      fi
10958
      ;;
10959
    esac
10960
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10961
    # soname into executable. Probably we can add versioning support to
10962
    # collect2, so additional links can be useful in future.
10963
    if test "$aix_use_runtimelinking" = yes; then
10964
      # If using run time linking (on AIX 4.2 or later) use lib.so
10965
      # instead of lib.a to let people know that these are not
10966
      # typical AIX shared libraries.
10967
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968
    else
10969
      # We preserve .a as extension for shared libraries through AIX4.2
10970
      # and later when we are not doing run time linking.
10971
      library_names_spec='${libname}${release}.a $libname.a'
10972
      soname_spec='${libname}${release}${shared_ext}$major'
10973
    fi
10974
    shlibpath_var=LIBPATH
10975
  fi
10976
  ;;
10977
 
10978
amigaos*)
10979
  case $host_cpu in
10980
  powerpc)
10981
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10982
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10983
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984
    ;;
10985
  m68k)
10986
    library_names_spec='$libname.ixlibrary $libname.a'
10987
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10988
    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'
10989
    ;;
10990
  esac
10991
  ;;
10992
 
10993
beos*)
10994
  library_names_spec='${libname}${shared_ext}'
10995
  dynamic_linker="$host_os ld.so"
10996
  shlibpath_var=LIBRARY_PATH
10997
  ;;
10998
 
10999
bsdi[45]*)
11000
  version_type=linux
11001
  need_version=no
11002
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11003
  soname_spec='${libname}${release}${shared_ext}$major'
11004
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11005
  shlibpath_var=LD_LIBRARY_PATH
11006
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11007
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11008
  # the default ld.so.conf also contains /usr/contrib/lib and
11009
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11010
  # libtool to hard-code these into programs
11011
  ;;
11012
 
11013
cygwin* | mingw* | pw32* | cegcc*)
11014
  version_type=windows
11015
  shrext_cmds=".dll"
11016
  need_version=no
11017
  need_lib_prefix=no
11018
 
11019
  case $GCC,$host_os in
11020
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11021
    library_names_spec='$libname.dll.a'
11022
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11023
    postinstall_cmds='base_file=`basename \${file}`~
11024
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11025
      dldir=$destdir/`dirname \$dlpath`~
11026
      test -d \$dldir || mkdir -p \$dldir~
11027
      $install_prog $dir/$dlname \$dldir/$dlname~
11028
      chmod a+x \$dldir/$dlname~
11029
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11030
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11031
      fi'
11032
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11033
      dlpath=$dir/\$dldll~
11034
       $RM \$dlpath'
11035
    shlibpath_overrides_runpath=yes
11036
 
11037
    case $host_os in
11038
    cygwin*)
11039
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11040
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11041
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11042
      ;;
11043
    mingw* | cegcc*)
11044
      # MinGW DLLs use traditional 'lib' prefix
11045
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11046
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11047
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11048
        # It is most probably a Windows format PATH printed by
11049
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11050
        # path with ; separators, and with drive letters. We can handle the
11051
        # drive letters (cygwin fileutils understands them), so leave them,
11052
        # especially as we might pass files found there to a mingw objdump,
11053
        # which wouldn't understand a cygwinified path. Ahh.
11054
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11055
      else
11056
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11057
      fi
11058
      ;;
11059
    pw32*)
11060
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11061
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11062
      ;;
11063
    esac
11064
    ;;
11065
 
11066
  *)
11067
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11068
    ;;
11069
  esac
11070
  dynamic_linker='Win32 ld.exe'
11071
  # FIXME: first we should search . and the directory the executable is in
11072
  shlibpath_var=PATH
11073
  ;;
11074
 
11075
darwin* | rhapsody*)
11076
  dynamic_linker="$host_os dyld"
11077
  version_type=darwin
11078
  need_lib_prefix=no
11079
  need_version=no
11080
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11081
  soname_spec='${libname}${release}${major}$shared_ext'
11082
  shlibpath_overrides_runpath=yes
11083
  shlibpath_var=DYLD_LIBRARY_PATH
11084
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11085
 
11086
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11087
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11088
  ;;
11089
 
11090
dgux*)
11091
  version_type=linux
11092
  need_lib_prefix=no
11093
  need_version=no
11094
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11095
  soname_spec='${libname}${release}${shared_ext}$major'
11096
  shlibpath_var=LD_LIBRARY_PATH
11097
  ;;
11098
 
11099
freebsd1*)
11100
  dynamic_linker=no
11101
  ;;
11102
 
11103
freebsd* | dragonfly*)
11104
  # DragonFly does not have aout.  When/if they implement a new
11105
  # versioning mechanism, adjust this.
11106
  if test -x /usr/bin/objformat; then
11107
    objformat=`/usr/bin/objformat`
11108
  else
11109
    case $host_os in
11110
    freebsd[123]*) objformat=aout ;;
11111
    *) objformat=elf ;;
11112
    esac
11113
  fi
11114
  version_type=freebsd-$objformat
11115
  case $version_type in
11116
    freebsd-elf*)
11117
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11118
      need_version=no
11119
      need_lib_prefix=no
11120
      ;;
11121
    freebsd-*)
11122
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11123
      need_version=yes
11124
      ;;
11125
  esac
11126
  shlibpath_var=LD_LIBRARY_PATH
11127
  case $host_os in
11128
  freebsd2*)
11129
    shlibpath_overrides_runpath=yes
11130
    ;;
11131
  freebsd3.[01]* | freebsdelf3.[01]*)
11132
    shlibpath_overrides_runpath=yes
11133
    hardcode_into_libs=yes
11134
    ;;
11135
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11136
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11137
    shlibpath_overrides_runpath=no
11138
    hardcode_into_libs=yes
11139
    ;;
11140
  *) # from 4.6 on, and DragonFly
11141
    shlibpath_overrides_runpath=yes
11142
    hardcode_into_libs=yes
11143
    ;;
11144
  esac
11145
  ;;
11146
 
11147
gnu*)
11148
  version_type=linux
11149
  need_lib_prefix=no
11150
  need_version=no
11151
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11152
  soname_spec='${libname}${release}${shared_ext}$major'
11153
  shlibpath_var=LD_LIBRARY_PATH
11154
  hardcode_into_libs=yes
11155
  ;;
11156
 
11157
hpux9* | hpux10* | hpux11*)
11158
  # Give a soname corresponding to the major version so that dld.sl refuses to
11159
  # link against other versions.
11160
  version_type=sunos
11161
  need_lib_prefix=no
11162
  need_version=no
11163
  case $host_cpu in
11164
  ia64*)
11165
    shrext_cmds='.so'
11166
    hardcode_into_libs=yes
11167
    dynamic_linker="$host_os dld.so"
11168
    shlibpath_var=LD_LIBRARY_PATH
11169
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11170
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171
    soname_spec='${libname}${release}${shared_ext}$major'
11172
    if test "X$HPUX_IA64_MODE" = X32; then
11173
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11174
    else
11175
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11176
    fi
11177
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11178
    ;;
11179
  hppa*64*)
11180
    shrext_cmds='.sl'
11181
    hardcode_into_libs=yes
11182
    dynamic_linker="$host_os dld.sl"
11183
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11184
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11185
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186
    soname_spec='${libname}${release}${shared_ext}$major'
11187
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11188
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11189
    ;;
11190
  *)
11191
    shrext_cmds='.sl'
11192
    dynamic_linker="$host_os dld.sl"
11193
    shlibpath_var=SHLIB_PATH
11194
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11195
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196
    soname_spec='${libname}${release}${shared_ext}$major'
11197
    ;;
11198
  esac
11199
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11200
  postinstall_cmds='chmod 555 $lib'
11201
  ;;
11202
 
11203
interix[3-9]*)
11204
  version_type=linux
11205
  need_lib_prefix=no
11206
  need_version=no
11207
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11208
  soname_spec='${libname}${release}${shared_ext}$major'
11209
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11210
  shlibpath_var=LD_LIBRARY_PATH
11211
  shlibpath_overrides_runpath=no
11212
  hardcode_into_libs=yes
11213
  ;;
11214
 
11215
irix5* | irix6* | nonstopux*)
11216
  case $host_os in
11217
    nonstopux*) version_type=nonstopux ;;
11218
    *)
11219
        if test "$lt_cv_prog_gnu_ld" = yes; then
11220
                version_type=linux
11221
        else
11222
                version_type=irix
11223
        fi ;;
11224
  esac
11225
  need_lib_prefix=no
11226
  need_version=no
11227
  soname_spec='${libname}${release}${shared_ext}$major'
11228
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11229
  case $host_os in
11230
  irix5* | nonstopux*)
11231
    libsuff= shlibsuff=
11232
    ;;
11233
  *)
11234
    case $LD in # libtool.m4 will add one of these switches to LD
11235
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11236
      libsuff= shlibsuff= libmagic=32-bit;;
11237
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11238
      libsuff=32 shlibsuff=N32 libmagic=N32;;
11239
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11240
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11241
    *) libsuff= shlibsuff= libmagic=never-match;;
11242
    esac
11243
    ;;
11244
  esac
11245
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11246
  shlibpath_overrides_runpath=no
11247
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11248
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11249
  hardcode_into_libs=yes
11250
  ;;
11251
 
11252
# No shared lib support for Linux oldld, aout, or coff.
11253
linux*oldld* | linux*aout* | linux*coff*)
11254
  dynamic_linker=no
11255
  ;;
11256
 
11257
# This must be Linux ELF.
11258
linux* | k*bsd*-gnu | kopensolaris*-gnu)
11259
  version_type=linux
11260
  need_lib_prefix=no
11261
  need_version=no
11262
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11263
  soname_spec='${libname}${release}${shared_ext}$major'
11264
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11265
  shlibpath_var=LD_LIBRARY_PATH
11266
  shlibpath_overrides_runpath=no
11267
 
11268
  # Some binutils ld are patched to set DT_RUNPATH
11269
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11270
  $as_echo_n "(cached) " >&6
11271
else
11272
  lt_cv_shlibpath_overrides_runpath=no
11273
    save_LDFLAGS=$LDFLAGS
11274
    save_libdir=$libdir
11275
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11276
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11277
    cat >conftest.$ac_ext <<_ACEOF
11278
/* confdefs.h.  */
11279
_ACEOF
11280
cat confdefs.h >>conftest.$ac_ext
11281
cat >>conftest.$ac_ext <<_ACEOF
11282
/* end confdefs.h.  */
11283
 
11284
int
11285
main ()
11286
{
11287
 
11288
  ;
11289
  return 0;
11290
}
11291
_ACEOF
11292
rm -f conftest.$ac_objext conftest$ac_exeext
11293
if { (ac_try="$ac_link"
11294
case "(($ac_try" in
11295
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296
  *) ac_try_echo=$ac_try;;
11297
esac
11298
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11299
$as_echo "$ac_try_echo") >&5
11300
  (eval "$ac_link") 2>conftest.er1
11301
  ac_status=$?
11302
  grep -v '^ *+' conftest.er1 >conftest.err
11303
  rm -f conftest.er1
11304
  cat conftest.err >&5
11305
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306
  (exit $ac_status); } && {
11307
         test -z "$ac_c_werror_flag" ||
11308
         test ! -s conftest.err
11309
       } && test -s conftest$ac_exeext && {
11310
         test "$cross_compiling" = yes ||
11311
         $as_test_x conftest$ac_exeext
11312
       }; then
11313
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11314
  lt_cv_shlibpath_overrides_runpath=yes
11315
fi
11316
 
11317
else
11318
  $as_echo "$as_me: failed program was:" >&5
11319
sed 's/^/| /' conftest.$ac_ext >&5
11320
 
11321
 
11322
fi
11323
 
11324
rm -rf conftest.dSYM
11325
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11326
      conftest$ac_exeext conftest.$ac_ext
11327
    LDFLAGS=$save_LDFLAGS
11328
    libdir=$save_libdir
11329
 
11330
fi
11331
 
11332
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11333
 
11334
  # This implies no fast_install, which is unacceptable.
11335
  # Some rework will be needed to allow for fast_install
11336
  # before this can be enabled.
11337
  hardcode_into_libs=yes
11338
 
11339
  # Append ld.so.conf contents to the search path
11340
  if test -f /etc/ld.so.conf; then
11341
    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' ' '`
11342
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11343
  fi
11344
 
11345
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11346
  # powerpc, because MkLinux only supported shared libraries with the
11347
  # GNU dynamic linker.  Since this was broken with cross compilers,
11348
  # most powerpc-linux boxes support dynamic linking these days and
11349
  # people can always --disable-shared, the test was removed, and we
11350
  # assume the GNU/Linux dynamic linker is in use.
11351
  dynamic_linker='GNU/Linux ld.so'
11352
  ;;
11353
 
11354
netbsd*)
11355
  version_type=sunos
11356
  need_lib_prefix=no
11357
  need_version=no
11358
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11359
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11360
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11361
    dynamic_linker='NetBSD (a.out) ld.so'
11362
  else
11363
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11364
    soname_spec='${libname}${release}${shared_ext}$major'
11365
    dynamic_linker='NetBSD ld.elf_so'
11366
  fi
11367
  shlibpath_var=LD_LIBRARY_PATH
11368
  shlibpath_overrides_runpath=yes
11369
  hardcode_into_libs=yes
11370
  ;;
11371
 
11372
newsos6)
11373
  version_type=linux
11374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375
  shlibpath_var=LD_LIBRARY_PATH
11376
  shlibpath_overrides_runpath=yes
11377
  ;;
11378
 
11379
*nto* | *qnx*)
11380
  version_type=qnx
11381
  need_lib_prefix=no
11382
  need_version=no
11383
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11384
  soname_spec='${libname}${release}${shared_ext}$major'
11385
  shlibpath_var=LD_LIBRARY_PATH
11386
  shlibpath_overrides_runpath=no
11387
  hardcode_into_libs=yes
11388
  dynamic_linker='ldqnx.so'
11389
  ;;
11390
 
11391
openbsd*)
11392
  version_type=sunos
11393
  sys_lib_dlsearch_path_spec="/usr/lib"
11394
  need_lib_prefix=no
11395
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11396
  case $host_os in
11397
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11398
    *)                          need_version=no  ;;
11399
  esac
11400
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11401
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11402
  shlibpath_var=LD_LIBRARY_PATH
11403
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11404
    case $host_os in
11405
      openbsd2.[89] | openbsd2.[89].*)
11406
        shlibpath_overrides_runpath=no
11407
        ;;
11408
      *)
11409
        shlibpath_overrides_runpath=yes
11410
        ;;
11411
      esac
11412
  else
11413
    shlibpath_overrides_runpath=yes
11414
  fi
11415
  ;;
11416
 
11417
os2*)
11418
  libname_spec='$name'
11419
  shrext_cmds=".dll"
11420
  need_lib_prefix=no
11421
  library_names_spec='$libname${shared_ext} $libname.a'
11422
  dynamic_linker='OS/2 ld.exe'
11423
  shlibpath_var=LIBPATH
11424
  ;;
11425
 
11426
osf3* | osf4* | osf5*)
11427
  version_type=osf
11428
  need_lib_prefix=no
11429
  need_version=no
11430
  soname_spec='${libname}${release}${shared_ext}$major'
11431
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432
  shlibpath_var=LD_LIBRARY_PATH
11433
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11434
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11435
  ;;
11436
 
11437
rdos*)
11438
  dynamic_linker=no
11439
  ;;
11440
 
11441
solaris*)
11442
  version_type=linux
11443
  need_lib_prefix=no
11444
  need_version=no
11445
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446
  soname_spec='${libname}${release}${shared_ext}$major'
11447
  shlibpath_var=LD_LIBRARY_PATH
11448
  shlibpath_overrides_runpath=yes
11449
  hardcode_into_libs=yes
11450
  # ldd complains unless libraries are executable
11451
  postinstall_cmds='chmod +x $lib'
11452
  ;;
11453
 
11454
sunos4*)
11455
  version_type=sunos
11456
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11457
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11458
  shlibpath_var=LD_LIBRARY_PATH
11459
  shlibpath_overrides_runpath=yes
11460
  if test "$with_gnu_ld" = yes; then
11461
    need_lib_prefix=no
11462
  fi
11463
  need_version=yes
11464
  ;;
11465
 
11466
sysv4 | sysv4.3*)
11467
  version_type=linux
11468
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11469
  soname_spec='${libname}${release}${shared_ext}$major'
11470
  shlibpath_var=LD_LIBRARY_PATH
11471
  case $host_vendor in
11472
    sni)
11473
      shlibpath_overrides_runpath=no
11474
      need_lib_prefix=no
11475
      runpath_var=LD_RUN_PATH
11476
      ;;
11477
    siemens)
11478
      need_lib_prefix=no
11479
      ;;
11480
    motorola)
11481
      need_lib_prefix=no
11482
      need_version=no
11483
      shlibpath_overrides_runpath=no
11484
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11485
      ;;
11486
  esac
11487
  ;;
11488
 
11489
sysv4*MP*)
11490
  if test -d /usr/nec ;then
11491
    version_type=linux
11492
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11493
    soname_spec='$libname${shared_ext}.$major'
11494
    shlibpath_var=LD_LIBRARY_PATH
11495
  fi
11496
  ;;
11497
 
11498
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11499
  version_type=freebsd-elf
11500
  need_lib_prefix=no
11501
  need_version=no
11502
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11503
  soname_spec='${libname}${release}${shared_ext}$major'
11504
  shlibpath_var=LD_LIBRARY_PATH
11505
  shlibpath_overrides_runpath=yes
11506
  hardcode_into_libs=yes
11507
  if test "$with_gnu_ld" = yes; then
11508
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11509
  else
11510
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11511
    case $host_os in
11512
      sco3.2v5*)
11513
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11514
        ;;
11515
    esac
11516
  fi
11517
  sys_lib_dlsearch_path_spec='/usr/lib'
11518
  ;;
11519
 
11520
tpf*)
11521
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11522
  version_type=linux
11523
  need_lib_prefix=no
11524
  need_version=no
11525
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11526
  shlibpath_var=LD_LIBRARY_PATH
11527
  shlibpath_overrides_runpath=no
11528
  hardcode_into_libs=yes
11529
  ;;
11530
 
11531
uts4*)
11532
  version_type=linux
11533
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534
  soname_spec='${libname}${release}${shared_ext}$major'
11535
  shlibpath_var=LD_LIBRARY_PATH
11536
  ;;
11537
 
11538
*)
11539
  dynamic_linker=no
11540
  ;;
11541
esac
11542
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11543
$as_echo "$dynamic_linker" >&6; }
11544
test "$dynamic_linker" = no && can_build_shared=no
11545
 
11546
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11547
if test "$GCC" = yes; then
11548
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11549
fi
11550
 
11551
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11552
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11553
fi
11554
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11555
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11556
fi
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
 
11631
 
11632
 
11633
 
11634
 
11635
 
11636
 
11637
 
11638
 
11639
 
11640
 
11641
 
11642
 
11643
 
11644
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11645
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11646
hardcode_action=
11647
if test -n "$hardcode_libdir_flag_spec" ||
11648
   test -n "$runpath_var" ||
11649
   test "X$hardcode_automatic" = "Xyes" ; then
11650
 
11651
  # We can hardcode non-existent directories.
11652
  if test "$hardcode_direct" != no &&
11653
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11654
     # have to relink, otherwise we might link with an installed library
11655
     # when we should be linking with a yet-to-be-installed one
11656
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11657
     test "$hardcode_minus_L" != no; then
11658
    # Linking always hardcodes the temporary library directory.
11659
    hardcode_action=relink
11660
  else
11661
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11662
    hardcode_action=immediate
11663
  fi
11664
else
11665
  # We cannot hardcode anything, or else we can only hardcode existing
11666
  # directories.
11667
  hardcode_action=unsupported
11668
fi
11669
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11670
$as_echo "$hardcode_action" >&6; }
11671
 
11672
if test "$hardcode_action" = relink ||
11673
   test "$inherit_rpath" = yes; then
11674
  # Fast installation is not supported
11675
  enable_fast_install=no
11676
elif test "$shlibpath_overrides_runpath" = yes ||
11677
     test "$enable_shared" = no; then
11678
  # Fast installation is not necessary
11679
  enable_fast_install=needless
11680
fi
11681
 
11682
 
11683
 
11684
 
11685
 
11686
 
11687
  if test "x$enable_dlopen" != xyes; then
11688
  enable_dlopen=unknown
11689
  enable_dlopen_self=unknown
11690
  enable_dlopen_self_static=unknown
11691
else
11692
  lt_cv_dlopen=no
11693
  lt_cv_dlopen_libs=
11694
 
11695
  case $host_os in
11696
  beos*)
11697
    lt_cv_dlopen="load_add_on"
11698
    lt_cv_dlopen_libs=
11699
    lt_cv_dlopen_self=yes
11700
    ;;
11701
 
11702
  mingw* | pw32* | cegcc*)
11703
    lt_cv_dlopen="LoadLibrary"
11704
    lt_cv_dlopen_libs=
11705
    ;;
11706
 
11707
  cygwin*)
11708
    lt_cv_dlopen="dlopen"
11709
    lt_cv_dlopen_libs=
11710
    ;;
11711
 
11712
  darwin*)
11713
  # if libdl is installed we need to link against it
11714
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11715
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11716
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11717
  $as_echo_n "(cached) " >&6
11718
else
11719
  ac_check_lib_save_LIBS=$LIBS
11720
LIBS="-ldl  $LIBS"
11721
cat >conftest.$ac_ext <<_ACEOF
11722
/* confdefs.h.  */
11723
_ACEOF
11724
cat confdefs.h >>conftest.$ac_ext
11725
cat >>conftest.$ac_ext <<_ACEOF
11726
/* end confdefs.h.  */
11727
 
11728
/* Override any GCC internal prototype to avoid an error.
11729
   Use char because int might match the return type of a GCC
11730
   builtin and then its argument prototype would still apply.  */
11731
#ifdef __cplusplus
11732
extern "C"
11733
#endif
11734
char dlopen ();
11735
int
11736
main ()
11737
{
11738
return dlopen ();
11739
  ;
11740
  return 0;
11741
}
11742
_ACEOF
11743
rm -f conftest.$ac_objext conftest$ac_exeext
11744
if { (ac_try="$ac_link"
11745
case "(($ac_try" in
11746
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747
  *) ac_try_echo=$ac_try;;
11748
esac
11749
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11750
$as_echo "$ac_try_echo") >&5
11751
  (eval "$ac_link") 2>conftest.er1
11752
  ac_status=$?
11753
  grep -v '^ *+' conftest.er1 >conftest.err
11754
  rm -f conftest.er1
11755
  cat conftest.err >&5
11756
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757
  (exit $ac_status); } && {
11758
         test -z "$ac_c_werror_flag" ||
11759
         test ! -s conftest.err
11760
       } && test -s conftest$ac_exeext && {
11761
         test "$cross_compiling" = yes ||
11762
         $as_test_x conftest$ac_exeext
11763
       }; then
11764
  ac_cv_lib_dl_dlopen=yes
11765
else
11766
  $as_echo "$as_me: failed program was:" >&5
11767
sed 's/^/| /' conftest.$ac_ext >&5
11768
 
11769
        ac_cv_lib_dl_dlopen=no
11770
fi
11771
 
11772
rm -rf conftest.dSYM
11773
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11774
      conftest$ac_exeext conftest.$ac_ext
11775
LIBS=$ac_check_lib_save_LIBS
11776
fi
11777
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11778
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11779
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11780
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11781
else
11782
 
11783
    lt_cv_dlopen="dyld"
11784
    lt_cv_dlopen_libs=
11785
    lt_cv_dlopen_self=yes
11786
 
11787
fi
11788
 
11789
    ;;
11790
 
11791
  *)
11792
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11793
$as_echo_n "checking for shl_load... " >&6; }
11794
if test "${ac_cv_func_shl_load+set}" = set; then
11795
  $as_echo_n "(cached) " >&6
11796
else
11797
  cat >conftest.$ac_ext <<_ACEOF
11798
/* confdefs.h.  */
11799
_ACEOF
11800
cat confdefs.h >>conftest.$ac_ext
11801
cat >>conftest.$ac_ext <<_ACEOF
11802
/* end confdefs.h.  */
11803
/* Define shl_load to an innocuous variant, in case  declares shl_load.
11804
   For example, HP-UX 11i  declares gettimeofday.  */
11805
#define shl_load innocuous_shl_load
11806
 
11807
/* System header to define __stub macros and hopefully few prototypes,
11808
    which can conflict with char shl_load (); below.
11809
    Prefer  to  if __STDC__ is defined, since
11810
     exists even on freestanding compilers.  */
11811
 
11812
#ifdef __STDC__
11813
# include 
11814
#else
11815
# include 
11816
#endif
11817
 
11818
#undef shl_load
11819
 
11820
/* Override any GCC internal prototype to avoid an error.
11821
   Use char because int might match the return type of a GCC
11822
   builtin and then its argument prototype would still apply.  */
11823
#ifdef __cplusplus
11824
extern "C"
11825
#endif
11826
char shl_load ();
11827
/* The GNU C library defines this for functions which it implements
11828
    to always fail with ENOSYS.  Some functions are actually named
11829
    something starting with __ and the normal name is an alias.  */
11830
#if defined __stub_shl_load || defined __stub___shl_load
11831
choke me
11832
#endif
11833
 
11834
int
11835
main ()
11836
{
11837
return shl_load ();
11838
  ;
11839
  return 0;
11840
}
11841
_ACEOF
11842
rm -f conftest.$ac_objext conftest$ac_exeext
11843
if { (ac_try="$ac_link"
11844
case "(($ac_try" in
11845
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846
  *) ac_try_echo=$ac_try;;
11847
esac
11848
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11849
$as_echo "$ac_try_echo") >&5
11850
  (eval "$ac_link") 2>conftest.er1
11851
  ac_status=$?
11852
  grep -v '^ *+' conftest.er1 >conftest.err
11853
  rm -f conftest.er1
11854
  cat conftest.err >&5
11855
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856
  (exit $ac_status); } && {
11857
         test -z "$ac_c_werror_flag" ||
11858
         test ! -s conftest.err
11859
       } && test -s conftest$ac_exeext && {
11860
         test "$cross_compiling" = yes ||
11861
         $as_test_x conftest$ac_exeext
11862
       }; then
11863
  ac_cv_func_shl_load=yes
11864
else
11865
  $as_echo "$as_me: failed program was:" >&5
11866
sed 's/^/| /' conftest.$ac_ext >&5
11867
 
11868
        ac_cv_func_shl_load=no
11869
fi
11870
 
11871
rm -rf conftest.dSYM
11872
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11873
      conftest$ac_exeext conftest.$ac_ext
11874
fi
11875
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11876
$as_echo "$ac_cv_func_shl_load" >&6; }
11877
if test "x$ac_cv_func_shl_load" = x""yes; then
11878
  lt_cv_dlopen="shl_load"
11879
else
11880
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11881
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11882
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11883
  $as_echo_n "(cached) " >&6
11884
else
11885
  ac_check_lib_save_LIBS=$LIBS
11886
LIBS="-ldld  $LIBS"
11887
cat >conftest.$ac_ext <<_ACEOF
11888
/* confdefs.h.  */
11889
_ACEOF
11890
cat confdefs.h >>conftest.$ac_ext
11891
cat >>conftest.$ac_ext <<_ACEOF
11892
/* end confdefs.h.  */
11893
 
11894
/* Override any GCC internal prototype to avoid an error.
11895
   Use char because int might match the return type of a GCC
11896
   builtin and then its argument prototype would still apply.  */
11897
#ifdef __cplusplus
11898
extern "C"
11899
#endif
11900
char shl_load ();
11901
int
11902
main ()
11903
{
11904
return shl_load ();
11905
  ;
11906
  return 0;
11907
}
11908
_ACEOF
11909
rm -f conftest.$ac_objext conftest$ac_exeext
11910
if { (ac_try="$ac_link"
11911
case "(($ac_try" in
11912
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913
  *) ac_try_echo=$ac_try;;
11914
esac
11915
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11916
$as_echo "$ac_try_echo") >&5
11917
  (eval "$ac_link") 2>conftest.er1
11918
  ac_status=$?
11919
  grep -v '^ *+' conftest.er1 >conftest.err
11920
  rm -f conftest.er1
11921
  cat conftest.err >&5
11922
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923
  (exit $ac_status); } && {
11924
         test -z "$ac_c_werror_flag" ||
11925
         test ! -s conftest.err
11926
       } && test -s conftest$ac_exeext && {
11927
         test "$cross_compiling" = yes ||
11928
         $as_test_x conftest$ac_exeext
11929
       }; then
11930
  ac_cv_lib_dld_shl_load=yes
11931
else
11932
  $as_echo "$as_me: failed program was:" >&5
11933
sed 's/^/| /' conftest.$ac_ext >&5
11934
 
11935
        ac_cv_lib_dld_shl_load=no
11936
fi
11937
 
11938
rm -rf conftest.dSYM
11939
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11940
      conftest$ac_exeext conftest.$ac_ext
11941
LIBS=$ac_check_lib_save_LIBS
11942
fi
11943
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11944
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11945
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11946
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11947
else
11948
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11949
$as_echo_n "checking for dlopen... " >&6; }
11950
if test "${ac_cv_func_dlopen+set}" = set; then
11951
  $as_echo_n "(cached) " >&6
11952
else
11953
  cat >conftest.$ac_ext <<_ACEOF
11954
/* confdefs.h.  */
11955
_ACEOF
11956
cat confdefs.h >>conftest.$ac_ext
11957
cat >>conftest.$ac_ext <<_ACEOF
11958
/* end confdefs.h.  */
11959
/* Define dlopen to an innocuous variant, in case  declares dlopen.
11960
   For example, HP-UX 11i  declares gettimeofday.  */
11961
#define dlopen innocuous_dlopen
11962
 
11963
/* System header to define __stub macros and hopefully few prototypes,
11964
    which can conflict with char dlopen (); below.
11965
    Prefer  to  if __STDC__ is defined, since
11966
     exists even on freestanding compilers.  */
11967
 
11968
#ifdef __STDC__
11969
# include 
11970
#else
11971
# include 
11972
#endif
11973
 
11974
#undef dlopen
11975
 
11976
/* Override any GCC internal prototype to avoid an error.
11977
   Use char because int might match the return type of a GCC
11978
   builtin and then its argument prototype would still apply.  */
11979
#ifdef __cplusplus
11980
extern "C"
11981
#endif
11982
char dlopen ();
11983
/* The GNU C library defines this for functions which it implements
11984
    to always fail with ENOSYS.  Some functions are actually named
11985
    something starting with __ and the normal name is an alias.  */
11986
#if defined __stub_dlopen || defined __stub___dlopen
11987
choke me
11988
#endif
11989
 
11990
int
11991
main ()
11992
{
11993
return dlopen ();
11994
  ;
11995
  return 0;
11996
}
11997
_ACEOF
11998
rm -f conftest.$ac_objext conftest$ac_exeext
11999
if { (ac_try="$ac_link"
12000
case "(($ac_try" in
12001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002
  *) ac_try_echo=$ac_try;;
12003
esac
12004
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12005
$as_echo "$ac_try_echo") >&5
12006
  (eval "$ac_link") 2>conftest.er1
12007
  ac_status=$?
12008
  grep -v '^ *+' conftest.er1 >conftest.err
12009
  rm -f conftest.er1
12010
  cat conftest.err >&5
12011
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012
  (exit $ac_status); } && {
12013
         test -z "$ac_c_werror_flag" ||
12014
         test ! -s conftest.err
12015
       } && test -s conftest$ac_exeext && {
12016
         test "$cross_compiling" = yes ||
12017
         $as_test_x conftest$ac_exeext
12018
       }; then
12019
  ac_cv_func_dlopen=yes
12020
else
12021
  $as_echo "$as_me: failed program was:" >&5
12022
sed 's/^/| /' conftest.$ac_ext >&5
12023
 
12024
        ac_cv_func_dlopen=no
12025
fi
12026
 
12027
rm -rf conftest.dSYM
12028
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12029
      conftest$ac_exeext conftest.$ac_ext
12030
fi
12031
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12032
$as_echo "$ac_cv_func_dlopen" >&6; }
12033
if test "x$ac_cv_func_dlopen" = x""yes; then
12034
  lt_cv_dlopen="dlopen"
12035
else
12036
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12037
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12038
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12039
  $as_echo_n "(cached) " >&6
12040
else
12041
  ac_check_lib_save_LIBS=$LIBS
12042
LIBS="-ldl  $LIBS"
12043
cat >conftest.$ac_ext <<_ACEOF
12044
/* confdefs.h.  */
12045
_ACEOF
12046
cat confdefs.h >>conftest.$ac_ext
12047
cat >>conftest.$ac_ext <<_ACEOF
12048
/* end confdefs.h.  */
12049
 
12050
/* Override any GCC internal prototype to avoid an error.
12051
   Use char because int might match the return type of a GCC
12052
   builtin and then its argument prototype would still apply.  */
12053
#ifdef __cplusplus
12054
extern "C"
12055
#endif
12056
char dlopen ();
12057
int
12058
main ()
12059
{
12060
return dlopen ();
12061
  ;
12062
  return 0;
12063
}
12064
_ACEOF
12065
rm -f conftest.$ac_objext conftest$ac_exeext
12066
if { (ac_try="$ac_link"
12067
case "(($ac_try" in
12068
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069
  *) ac_try_echo=$ac_try;;
12070
esac
12071
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12072
$as_echo "$ac_try_echo") >&5
12073
  (eval "$ac_link") 2>conftest.er1
12074
  ac_status=$?
12075
  grep -v '^ *+' conftest.er1 >conftest.err
12076
  rm -f conftest.er1
12077
  cat conftest.err >&5
12078
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079
  (exit $ac_status); } && {
12080
         test -z "$ac_c_werror_flag" ||
12081
         test ! -s conftest.err
12082
       } && test -s conftest$ac_exeext && {
12083
         test "$cross_compiling" = yes ||
12084
         $as_test_x conftest$ac_exeext
12085
       }; then
12086
  ac_cv_lib_dl_dlopen=yes
12087
else
12088
  $as_echo "$as_me: failed program was:" >&5
12089
sed 's/^/| /' conftest.$ac_ext >&5
12090
 
12091
        ac_cv_lib_dl_dlopen=no
12092
fi
12093
 
12094
rm -rf conftest.dSYM
12095
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12096
      conftest$ac_exeext conftest.$ac_ext
12097
LIBS=$ac_check_lib_save_LIBS
12098
fi
12099
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12100
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12101
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12102
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12103
else
12104
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12105
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12106
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12107
  $as_echo_n "(cached) " >&6
12108
else
12109
  ac_check_lib_save_LIBS=$LIBS
12110
LIBS="-lsvld  $LIBS"
12111
cat >conftest.$ac_ext <<_ACEOF
12112
/* confdefs.h.  */
12113
_ACEOF
12114
cat confdefs.h >>conftest.$ac_ext
12115
cat >>conftest.$ac_ext <<_ACEOF
12116
/* end confdefs.h.  */
12117
 
12118
/* Override any GCC internal prototype to avoid an error.
12119
   Use char because int might match the return type of a GCC
12120
   builtin and then its argument prototype would still apply.  */
12121
#ifdef __cplusplus
12122
extern "C"
12123
#endif
12124
char dlopen ();
12125
int
12126
main ()
12127
{
12128
return dlopen ();
12129
  ;
12130
  return 0;
12131
}
12132
_ACEOF
12133
rm -f conftest.$ac_objext conftest$ac_exeext
12134
if { (ac_try="$ac_link"
12135
case "(($ac_try" in
12136
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137
  *) ac_try_echo=$ac_try;;
12138
esac
12139
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12140
$as_echo "$ac_try_echo") >&5
12141
  (eval "$ac_link") 2>conftest.er1
12142
  ac_status=$?
12143
  grep -v '^ *+' conftest.er1 >conftest.err
12144
  rm -f conftest.er1
12145
  cat conftest.err >&5
12146
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147
  (exit $ac_status); } && {
12148
         test -z "$ac_c_werror_flag" ||
12149
         test ! -s conftest.err
12150
       } && test -s conftest$ac_exeext && {
12151
         test "$cross_compiling" = yes ||
12152
         $as_test_x conftest$ac_exeext
12153
       }; then
12154
  ac_cv_lib_svld_dlopen=yes
12155
else
12156
  $as_echo "$as_me: failed program was:" >&5
12157
sed 's/^/| /' conftest.$ac_ext >&5
12158
 
12159
        ac_cv_lib_svld_dlopen=no
12160
fi
12161
 
12162
rm -rf conftest.dSYM
12163
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12164
      conftest$ac_exeext conftest.$ac_ext
12165
LIBS=$ac_check_lib_save_LIBS
12166
fi
12167
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12168
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12169
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12170
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12171
else
12172
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12173
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12174
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12175
  $as_echo_n "(cached) " >&6
12176
else
12177
  ac_check_lib_save_LIBS=$LIBS
12178
LIBS="-ldld  $LIBS"
12179
cat >conftest.$ac_ext <<_ACEOF
12180
/* confdefs.h.  */
12181
_ACEOF
12182
cat confdefs.h >>conftest.$ac_ext
12183
cat >>conftest.$ac_ext <<_ACEOF
12184
/* end confdefs.h.  */
12185
 
12186
/* Override any GCC internal prototype to avoid an error.
12187
   Use char because int might match the return type of a GCC
12188
   builtin and then its argument prototype would still apply.  */
12189
#ifdef __cplusplus
12190
extern "C"
12191
#endif
12192
char dld_link ();
12193
int
12194
main ()
12195
{
12196
return dld_link ();
12197
  ;
12198
  return 0;
12199
}
12200
_ACEOF
12201
rm -f conftest.$ac_objext conftest$ac_exeext
12202
if { (ac_try="$ac_link"
12203
case "(($ac_try" in
12204
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205
  *) ac_try_echo=$ac_try;;
12206
esac
12207
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12208
$as_echo "$ac_try_echo") >&5
12209
  (eval "$ac_link") 2>conftest.er1
12210
  ac_status=$?
12211
  grep -v '^ *+' conftest.er1 >conftest.err
12212
  rm -f conftest.er1
12213
  cat conftest.err >&5
12214
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215
  (exit $ac_status); } && {
12216
         test -z "$ac_c_werror_flag" ||
12217
         test ! -s conftest.err
12218
       } && test -s conftest$ac_exeext && {
12219
         test "$cross_compiling" = yes ||
12220
         $as_test_x conftest$ac_exeext
12221
       }; then
12222
  ac_cv_lib_dld_dld_link=yes
12223
else
12224
  $as_echo "$as_me: failed program was:" >&5
12225
sed 's/^/| /' conftest.$ac_ext >&5
12226
 
12227
        ac_cv_lib_dld_dld_link=no
12228
fi
12229
 
12230
rm -rf conftest.dSYM
12231
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12232
      conftest$ac_exeext conftest.$ac_ext
12233
LIBS=$ac_check_lib_save_LIBS
12234
fi
12235
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12236
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12237
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12238
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12239
fi
12240
 
12241
 
12242
fi
12243
 
12244
 
12245
fi
12246
 
12247
 
12248
fi
12249
 
12250
 
12251
fi
12252
 
12253
 
12254
fi
12255
 
12256
    ;;
12257
  esac
12258
 
12259
  if test "x$lt_cv_dlopen" != xno; then
12260
    enable_dlopen=yes
12261
  else
12262
    enable_dlopen=no
12263
  fi
12264
 
12265
  case $lt_cv_dlopen in
12266
  dlopen)
12267
    save_CPPFLAGS="$CPPFLAGS"
12268
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12269
 
12270
    save_LDFLAGS="$LDFLAGS"
12271
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12272
 
12273
    save_LIBS="$LIBS"
12274
    LIBS="$lt_cv_dlopen_libs $LIBS"
12275
 
12276
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12277
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12278
if test "${lt_cv_dlopen_self+set}" = set; then
12279
  $as_echo_n "(cached) " >&6
12280
else
12281
          if test "$cross_compiling" = yes; then :
12282
  lt_cv_dlopen_self=cross
12283
else
12284
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12285
  lt_status=$lt_dlunknown
12286
  cat > conftest.$ac_ext <<_LT_EOF
12287
#line 12287 "configure"
12288
#include "confdefs.h"
12289
 
12290
#if HAVE_DLFCN_H
12291
#include 
12292
#endif
12293
 
12294
#include 
12295
 
12296
#ifdef RTLD_GLOBAL
12297
#  define LT_DLGLOBAL           RTLD_GLOBAL
12298
#else
12299
#  ifdef DL_GLOBAL
12300
#    define LT_DLGLOBAL         DL_GLOBAL
12301
#  else
12302
#    define LT_DLGLOBAL         0
12303
#  endif
12304
#endif
12305
 
12306
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12307
   find out it does not work in some platform. */
12308
#ifndef LT_DLLAZY_OR_NOW
12309
#  ifdef RTLD_LAZY
12310
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12311
#  else
12312
#    ifdef DL_LAZY
12313
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12314
#    else
12315
#      ifdef RTLD_NOW
12316
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12317
#      else
12318
#        ifdef DL_NOW
12319
#          define LT_DLLAZY_OR_NOW      DL_NOW
12320
#        else
12321
#          define LT_DLLAZY_OR_NOW      0
12322
#        endif
12323
#      endif
12324
#    endif
12325
#  endif
12326
#endif
12327
 
12328
void fnord() { int i=42;}
12329
int main ()
12330
{
12331
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12332
  int status = $lt_dlunknown;
12333
 
12334
  if (self)
12335
    {
12336
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12337
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12338
      /* dlclose (self); */
12339
    }
12340
  else
12341
    puts (dlerror ());
12342
 
12343
  return status;
12344
}
12345
_LT_EOF
12346
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12347
  (eval $ac_link) 2>&5
12348
  ac_status=$?
12349
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12351
    (./conftest; exit; ) >&5 2>/dev/null
12352
    lt_status=$?
12353
    case x$lt_status in
12354
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12355
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12356
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12357
    esac
12358
  else :
12359
    # compilation failed
12360
    lt_cv_dlopen_self=no
12361
  fi
12362
fi
12363
rm -fr conftest*
12364
 
12365
 
12366
fi
12367
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12368
$as_echo "$lt_cv_dlopen_self" >&6; }
12369
 
12370
    if test "x$lt_cv_dlopen_self" = xyes; then
12371
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12372
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12373
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12374
if test "${lt_cv_dlopen_self_static+set}" = set; then
12375
  $as_echo_n "(cached) " >&6
12376
else
12377
          if test "$cross_compiling" = yes; then :
12378
  lt_cv_dlopen_self_static=cross
12379
else
12380
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12381
  lt_status=$lt_dlunknown
12382
  cat > conftest.$ac_ext <<_LT_EOF
12383
#line 12383 "configure"
12384
#include "confdefs.h"
12385
 
12386
#if HAVE_DLFCN_H
12387
#include 
12388
#endif
12389
 
12390
#include 
12391
 
12392
#ifdef RTLD_GLOBAL
12393
#  define LT_DLGLOBAL           RTLD_GLOBAL
12394
#else
12395
#  ifdef DL_GLOBAL
12396
#    define LT_DLGLOBAL         DL_GLOBAL
12397
#  else
12398
#    define LT_DLGLOBAL         0
12399
#  endif
12400
#endif
12401
 
12402
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12403
   find out it does not work in some platform. */
12404
#ifndef LT_DLLAZY_OR_NOW
12405
#  ifdef RTLD_LAZY
12406
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12407
#  else
12408
#    ifdef DL_LAZY
12409
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12410
#    else
12411
#      ifdef RTLD_NOW
12412
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12413
#      else
12414
#        ifdef DL_NOW
12415
#          define LT_DLLAZY_OR_NOW      DL_NOW
12416
#        else
12417
#          define LT_DLLAZY_OR_NOW      0
12418
#        endif
12419
#      endif
12420
#    endif
12421
#  endif
12422
#endif
12423
 
12424
void fnord() { int i=42;}
12425
int main ()
12426
{
12427
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12428
  int status = $lt_dlunknown;
12429
 
12430
  if (self)
12431
    {
12432
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12433
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12434
      /* dlclose (self); */
12435
    }
12436
  else
12437
    puts (dlerror ());
12438
 
12439
  return status;
12440
}
12441
_LT_EOF
12442
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12443
  (eval $ac_link) 2>&5
12444
  ac_status=$?
12445
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12447
    (./conftest; exit; ) >&5 2>/dev/null
12448
    lt_status=$?
12449
    case x$lt_status in
12450
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12451
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12452
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12453
    esac
12454
  else :
12455
    # compilation failed
12456
    lt_cv_dlopen_self_static=no
12457
  fi
12458
fi
12459
rm -fr conftest*
12460
 
12461
 
12462
fi
12463
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12464
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12465
    fi
12466
 
12467
    CPPFLAGS="$save_CPPFLAGS"
12468
    LDFLAGS="$save_LDFLAGS"
12469
    LIBS="$save_LIBS"
12470
    ;;
12471
  esac
12472
 
12473
  case $lt_cv_dlopen_self in
12474
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12475
  *) enable_dlopen_self=unknown ;;
12476
  esac
12477
 
12478
  case $lt_cv_dlopen_self_static in
12479
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12480
  *) enable_dlopen_self_static=unknown ;;
12481
  esac
12482
fi
12483
 
12484
 
12485
 
12486
 
12487
 
12488
 
12489
 
12490
 
12491
 
12492
 
12493
 
12494
 
12495
 
12496
 
12497
 
12498
 
12499
 
12500
striplib=
12501
old_striplib=
12502
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12503
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12504
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12505
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12506
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12507
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12508
$as_echo "yes" >&6; }
12509
else
12510
# FIXME - insert some real tests, host_os isn't really good enough
12511
  case $host_os in
12512
  darwin*)
12513
    if test -n "$STRIP" ; then
12514
      striplib="$STRIP -x"
12515
      old_striplib="$STRIP -S"
12516
      { $as_echo "$as_me:$LINENO: result: yes" >&5
12517
$as_echo "yes" >&6; }
12518
    else
12519
      { $as_echo "$as_me:$LINENO: result: no" >&5
12520
$as_echo "no" >&6; }
12521
    fi
12522
    ;;
12523
  *)
12524
    { $as_echo "$as_me:$LINENO: result: no" >&5
12525
$as_echo "no" >&6; }
12526
    ;;
12527
  esac
12528
fi
12529
 
12530
 
12531
 
12532
 
12533
 
12534
 
12535
 
12536
 
12537
 
12538
 
12539
 
12540
 
12541
  # Report which library types will actually be built
12542
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12543
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12544
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12545
$as_echo "$can_build_shared" >&6; }
12546
 
12547
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12548
$as_echo_n "checking whether to build shared libraries... " >&6; }
12549
  test "$can_build_shared" = "no" && enable_shared=no
12550
 
12551
  # On AIX, shared libraries and static libraries use the same namespace, and
12552
  # are all built from PIC.
12553
  case $host_os in
12554
  aix3*)
12555
    test "$enable_shared" = yes && enable_static=no
12556
    if test -n "$RANLIB"; then
12557
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12558
      postinstall_cmds='$RANLIB $lib'
12559
    fi
12560
    ;;
12561
 
12562
  aix[4-9]*)
12563
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12564
      test "$enable_shared" = yes && enable_static=no
12565
    fi
12566
    ;;
12567
  esac
12568
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12569
$as_echo "$enable_shared" >&6; }
12570
 
12571
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12572
$as_echo_n "checking whether to build static libraries... " >&6; }
12573
  # Make sure either enable_shared or enable_static is yes.
12574
  test "$enable_shared" = yes || enable_static=yes
12575
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12576
$as_echo "$enable_static" >&6; }
12577
 
12578
 
12579
 
12580
 
12581
fi
12582
ac_ext=c
12583
ac_cpp='$CPP $CPPFLAGS'
12584
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12585
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12586
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12587
 
12588
CC="$lt_save_CC"
12589
 
12590
 
12591
 
12592
 
12593
 
12594
 
12595
 
12596
 
12597
 
12598
 
12599
 
12600
 
12601
 
12602
        ac_config_commands="$ac_config_commands libtool"
12603
 
12604
 
12605
 
12606
 
12607
# Only expand once:
12608
 
12609
 
12610
fi
12611
 
12612
ac_config_files="$ac_config_files Makefile"
12613
 
12614
cat >confcache <<\_ACEOF
12615
# This file is a shell script that caches the results of configure
12616
# tests run on this system so they can be shared between configure
12617
# scripts and configure runs, see configure's option --config-cache.
12618
# It is not useful on other systems.  If it contains results you don't
12619
# want to keep, you may remove or edit it.
12620
#
12621
# config.status only pays attention to the cache file if you give it
12622
# the --recheck option to rerun configure.
12623
#
12624
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12625
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12626
# following values.
12627
 
12628
_ACEOF
12629
 
12630
# The following way of writing the cache mishandles newlines in values,
12631
# but we know of no workaround that is simple, portable, and efficient.
12632
# So, we kill variables containing newlines.
12633
# Ultrix sh set writes to stderr and can't be redirected directly,
12634
# and sets the high bit in the cache file unless we assign to the vars.
12635
(
12636
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12637
    eval ac_val=\$$ac_var
12638
    case $ac_val in #(
12639
    *${as_nl}*)
12640
      case $ac_var in #(
12641
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12642
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12643
      esac
12644
      case $ac_var in #(
12645
      _ | IFS | as_nl) ;; #(
12646
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12647
      *) $as_unset $ac_var ;;
12648
      esac ;;
12649
    esac
12650
  done
12651
 
12652
  (set) 2>&1 |
12653
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12654
    *${as_nl}ac_space=\ *)
12655
      # `set' does not quote correctly, so add quotes (double-quote
12656
      # substitution turns \\\\ into \\, and sed turns \\ into \).
12657
      sed -n \
12658
        "s/'/'\\\\''/g;
12659
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12660
      ;; #(
12661
    *)
12662
      # `set' quotes correctly as required by POSIX, so do not add quotes.
12663
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12664
      ;;
12665
    esac |
12666
    sort
12667
) |
12668
  sed '
12669
     /^ac_cv_env_/b end
12670
     t clear
12671
     :clear
12672
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12673
     t end
12674
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12675
     :end' >>confcache
12676
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12677
  if test -w "$cache_file"; then
12678
    test "x$cache_file" != "x/dev/null" &&
12679
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12680
$as_echo "$as_me: updating cache $cache_file" >&6;}
12681
    cat confcache >$cache_file
12682
  else
12683
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12684
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12685
  fi
12686
fi
12687
rm -f confcache
12688
 
12689
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12690
# Let make expand exec_prefix.
12691
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12692
 
12693
# Transform confdefs.h into DEFS.
12694
# Protect against shell expansion while executing Makefile rules.
12695
# Protect against Makefile macro expansion.
12696
#
12697
# If the first sed substitution is executed (which looks for macros that
12698
# take arguments), then branch to the quote section.  Otherwise,
12699
# look for a macro that doesn't take arguments.
12700
ac_script='
12701
:mline
12702
/\\$/{
12703
 N
12704
 s,\\\n,,
12705
 b mline
12706
}
12707
t clear
12708
:clear
12709
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12710
t quote
12711
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12712
t quote
12713
b any
12714
:quote
12715
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12716
s/\[/\\&/g
12717
s/\]/\\&/g
12718
s/\$/$$/g
12719
H
12720
:any
12721
${
12722
        g
12723
        s/^\n//
12724
        s/\n/ /g
12725
        p
12726
}
12727
'
12728
DEFS=`sed -n "$ac_script" confdefs.h`
12729
 
12730
 
12731
ac_libobjs=
12732
ac_ltlibobjs=
12733
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12734
  # 1. Remove the extension, and $U if already installed.
12735
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12736
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12737
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12738
  #    will be set to the directory where LIBOBJS objects are built.
12739
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12740
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12741
done
12742
LIBOBJS=$ac_libobjs
12743
 
12744
LTLIBOBJS=$ac_ltlibobjs
12745
 
12746
 
12747
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12748
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12749
Usually this means the macro was only invoked conditionally." >&5
12750
$as_echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12751
Usually this means the macro was only invoked conditionally." >&2;}
12752
   { (exit 1); exit 1; }; }
12753
fi
12754
 if test -n "$EXEEXT"; then
12755
  am__EXEEXT_TRUE=
12756
  am__EXEEXT_FALSE='#'
12757
else
12758
  am__EXEEXT_TRUE='#'
12759
  am__EXEEXT_FALSE=
12760
fi
12761
 
12762
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12763
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12764
Usually this means the macro was only invoked conditionally." >&5
12765
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12766
Usually this means the macro was only invoked conditionally." >&2;}
12767
   { (exit 1); exit 1; }; }
12768
fi
12769
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12770
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12771
Usually this means the macro was only invoked conditionally." >&5
12772
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12773
Usually this means the macro was only invoked conditionally." >&2;}
12774
   { (exit 1); exit 1; }; }
12775
fi
12776
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12777
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12778
Usually this means the macro was only invoked conditionally." >&5
12779
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12780
Usually this means the macro was only invoked conditionally." >&2;}
12781
   { (exit 1); exit 1; }; }
12782
fi
12783
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12784
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
12785
Usually this means the macro was only invoked conditionally." >&5
12786
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
12787
Usually this means the macro was only invoked conditionally." >&2;}
12788
   { (exit 1); exit 1; }; }
12789
fi
12790
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12791
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
12792
Usually this means the macro was only invoked conditionally." >&5
12793
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
12794
Usually this means the macro was only invoked conditionally." >&2;}
12795
   { (exit 1); exit 1; }; }
12796
fi
12797
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12798
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
12799
Usually this means the macro was only invoked conditionally." >&5
12800
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
12801
Usually this means the macro was only invoked conditionally." >&2;}
12802
   { (exit 1); exit 1; }; }
12803
fi
12804
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12805
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
12806
Usually this means the macro was only invoked conditionally." >&5
12807
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
12808
Usually this means the macro was only invoked conditionally." >&2;}
12809
   { (exit 1); exit 1; }; }
12810
fi
12811
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12812
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
12813
Usually this means the macro was only invoked conditionally." >&5
12814
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
12815
Usually this means the macro was only invoked conditionally." >&2;}
12816
   { (exit 1); exit 1; }; }
12817
fi
12818
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12819
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
12820
Usually this means the macro was only invoked conditionally." >&5
12821
$as_echo "$as_me: error: conditional \"USE_LIBTOOL\" 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
 
12833
: ${CONFIG_STATUS=./config.status}
12834
ac_write_fail=0
12835
ac_clean_files_save=$ac_clean_files
12836
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12837
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12838
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12839
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12840
#! $SHELL
12841
# Generated by $as_me.
12842
# Run this file to recreate the current configuration.
12843
# Compiler output produced by configure, useful for debugging
12844
# configure, is in config.log if it exists.
12845
 
12846
debug=false
12847
ac_cs_recheck=false
12848
ac_cs_silent=false
12849
SHELL=\${CONFIG_SHELL-$SHELL}
12850
_ACEOF
12851
 
12852
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12853
## --------------------- ##
12854
## M4sh Initialization.  ##
12855
## --------------------- ##
12856
 
12857
# Be more Bourne compatible
12858
DUALCASE=1; export DUALCASE # for MKS sh
12859
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12860
  emulate sh
12861
  NULLCMD=:
12862
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12863
  # is contrary to our usage.  Disable this feature.
12864
  alias -g '${1+"$@"}'='"$@"'
12865
  setopt NO_GLOB_SUBST
12866
else
12867
  case `(set -o) 2>/dev/null` in
12868
  *posix*) set -o posix ;;
12869
esac
12870
 
12871
fi
12872
 
12873
 
12874
 
12875
 
12876
# PATH needs CR
12877
# Avoid depending upon Character Ranges.
12878
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12879
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12880
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12881
as_cr_digits='0123456789'
12882
as_cr_alnum=$as_cr_Letters$as_cr_digits
12883
 
12884
as_nl='
12885
'
12886
export as_nl
12887
# Printing a long string crashes Solaris 7 /usr/bin/printf.
12888
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12889
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12890
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12891
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12892
  as_echo='printf %s\n'
12893
  as_echo_n='printf %s'
12894
else
12895
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12896
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12897
    as_echo_n='/usr/ucb/echo -n'
12898
  else
12899
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12900
    as_echo_n_body='eval
12901
      arg=$1;
12902
      case $arg in
12903
      *"$as_nl"*)
12904
        expr "X$arg" : "X\\(.*\\)$as_nl";
12905
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12906
      esac;
12907
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12908
    '
12909
    export as_echo_n_body
12910
    as_echo_n='sh -c $as_echo_n_body as_echo'
12911
  fi
12912
  export as_echo_body
12913
  as_echo='sh -c $as_echo_body as_echo'
12914
fi
12915
 
12916
# The user is always right.
12917
if test "${PATH_SEPARATOR+set}" != set; then
12918
  PATH_SEPARATOR=:
12919
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12920
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12921
      PATH_SEPARATOR=';'
12922
  }
12923
fi
12924
 
12925
# Support unset when possible.
12926
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12927
  as_unset=unset
12928
else
12929
  as_unset=false
12930
fi
12931
 
12932
 
12933
# IFS
12934
# We need space, tab and new line, in precisely that order.  Quoting is
12935
# there to prevent editors from complaining about space-tab.
12936
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12937
# splitting by setting IFS to empty value.)
12938
IFS=" ""        $as_nl"
12939
 
12940
# Find who we are.  Look in the path if we contain no directory separator.
12941
case $0 in
12942
  *[\\/]* ) as_myself=$0 ;;
12943
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12944
for as_dir in $PATH
12945
do
12946
  IFS=$as_save_IFS
12947
  test -z "$as_dir" && as_dir=.
12948
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12949
done
12950
IFS=$as_save_IFS
12951
 
12952
     ;;
12953
esac
12954
# We did not find ourselves, most probably we were run as `sh COMMAND'
12955
# in which case we are not to be found in the path.
12956
if test "x$as_myself" = x; then
12957
  as_myself=$0
12958
fi
12959
if test ! -f "$as_myself"; then
12960
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12961
  { (exit 1); exit 1; }
12962
fi
12963
 
12964
# Work around bugs in pre-3.0 UWIN ksh.
12965
for as_var in ENV MAIL MAILPATH
12966
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12967
done
12968
PS1='$ '
12969
PS2='> '
12970
PS4='+ '
12971
 
12972
# NLS nuisances.
12973
LC_ALL=C
12974
export LC_ALL
12975
LANGUAGE=C
12976
export LANGUAGE
12977
 
12978
# Required to use basename.
12979
if expr a : '\(a\)' >/dev/null 2>&1 &&
12980
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12981
  as_expr=expr
12982
else
12983
  as_expr=false
12984
fi
12985
 
12986
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12987
  as_basename=basename
12988
else
12989
  as_basename=false
12990
fi
12991
 
12992
 
12993
# Name of the executable.
12994
as_me=`$as_basename -- "$0" ||
12995
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12996
         X"$0" : 'X\(//\)$' \| \
12997
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12998
$as_echo X/"$0" |
12999
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13000
            s//\1/
13001
            q
13002
          }
13003
          /^X\/\(\/\/\)$/{
13004
            s//\1/
13005
            q
13006
          }
13007
          /^X\/\(\/\).*/{
13008
            s//\1/
13009
            q
13010
          }
13011
          s/.*/./; q'`
13012
 
13013
# CDPATH.
13014
$as_unset CDPATH
13015
 
13016
 
13017
 
13018
  as_lineno_1=$LINENO
13019
  as_lineno_2=$LINENO
13020
  test "x$as_lineno_1" != "x$as_lineno_2" &&
13021
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13022
 
13023
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13024
  # uniformly replaced by the line number.  The first 'sed' inserts a
13025
  # line-number line after each line using $LINENO; the second 'sed'
13026
  # does the real work.  The second script uses 'N' to pair each
13027
  # line-number line with the line containing $LINENO, and appends
13028
  # trailing '-' during substitution so that $LINENO is not a special
13029
  # case at line end.
13030
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13031
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13032
  # E. McMahon (1931-1989) for sed's syntax.  :-)
13033
  sed -n '
13034
    p
13035
    /[$]LINENO/=
13036
  ' <$as_myself |
13037
    sed '
13038
      s/[$]LINENO.*/&-/
13039
      t lineno
13040
      b
13041
      :lineno
13042
      N
13043
      :loop
13044
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13045
      t loop
13046
      s/-\n.*//
13047
    ' >$as_me.lineno &&
13048
  chmod +x "$as_me.lineno" ||
13049
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13050
   { (exit 1); exit 1; }; }
13051
 
13052
  # Don't try to exec as it changes $[0], causing all sort of problems
13053
  # (the dirname of $[0] is not the place where we might find the
13054
  # original and so on.  Autoconf is especially sensitive to this).
13055
  . "./$as_me.lineno"
13056
  # Exit status is that of the last command.
13057
  exit
13058
}
13059
 
13060
 
13061
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13062
  as_dirname=dirname
13063
else
13064
  as_dirname=false
13065
fi
13066
 
13067
ECHO_C= ECHO_N= ECHO_T=
13068
case `echo -n x` in
13069
-n*)
13070
  case `echo 'x\c'` in
13071
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13072
  *)   ECHO_C='\c';;
13073
  esac;;
13074
*)
13075
  ECHO_N='-n';;
13076
esac
13077
if expr a : '\(a\)' >/dev/null 2>&1 &&
13078
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13079
  as_expr=expr
13080
else
13081
  as_expr=false
13082
fi
13083
 
13084
rm -f conf$$ conf$$.exe conf$$.file
13085
if test -d conf$$.dir; then
13086
  rm -f conf$$.dir/conf$$.file
13087
else
13088
  rm -f conf$$.dir
13089
  mkdir conf$$.dir 2>/dev/null
13090
fi
13091
if (echo >conf$$.file) 2>/dev/null; then
13092
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13093
    as_ln_s='ln -s'
13094
    # ... but there are two gotchas:
13095
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13096
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13097
    # In both cases, we have to default to `cp -p'.
13098
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13099
      as_ln_s='cp -p'
13100
  elif ln conf$$.file conf$$ 2>/dev/null; then
13101
    as_ln_s=ln
13102
  else
13103
    as_ln_s='cp -p'
13104
  fi
13105
else
13106
  as_ln_s='cp -p'
13107
fi
13108
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13109
rmdir conf$$.dir 2>/dev/null
13110
 
13111
if mkdir -p . 2>/dev/null; then
13112
  as_mkdir_p=:
13113
else
13114
  test -d ./-p && rmdir ./-p
13115
  as_mkdir_p=false
13116
fi
13117
 
13118
if test -x / >/dev/null 2>&1; then
13119
  as_test_x='test -x'
13120
else
13121
  if ls -dL / >/dev/null 2>&1; then
13122
    as_ls_L_option=L
13123
  else
13124
    as_ls_L_option=
13125
  fi
13126
  as_test_x='
13127
    eval sh -c '\''
13128
      if test -d "$1"; then
13129
        test -d "$1/.";
13130
      else
13131
        case $1 in
13132
        -*)set "./$1";;
13133
        esac;
13134
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13135
        ???[sx]*):;;*)false;;esac;fi
13136
    '\'' sh
13137
  '
13138
fi
13139
as_executable_p=$as_test_x
13140
 
13141
# Sed expression to map a string onto a valid CPP name.
13142
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13143
 
13144
# Sed expression to map a string onto a valid variable name.
13145
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13146
 
13147
 
13148
exec 6>&1
13149
 
13150
# Save the log message, to keep $[0] and so on meaningful, and to
13151
# report actual input values of CONFIG_FILES etc. instead of their
13152
# values after options handling.
13153
ac_log="
13154
This file was extended by newlib $as_me 1.18.0, which was
13155
generated by GNU Autoconf 2.63.  Invocation command line was
13156
 
13157
  CONFIG_FILES    = $CONFIG_FILES
13158
  CONFIG_HEADERS  = $CONFIG_HEADERS
13159
  CONFIG_LINKS    = $CONFIG_LINKS
13160
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13161
  $ $0 $@
13162
 
13163
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13164
"
13165
 
13166
_ACEOF
13167
 
13168
case $ac_config_files in *"
13169
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13170
esac
13171
 
13172
 
13173
 
13174
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13175
# Files that config.status was made for.
13176
config_files="$ac_config_files"
13177
config_commands="$ac_config_commands"
13178
 
13179
_ACEOF
13180
 
13181
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13182
ac_cs_usage="\
13183
\`$as_me' instantiates files from templates according to the
13184
current configuration.
13185
 
13186
Usage: $0 [OPTION]... [FILE]...
13187
 
13188
  -h, --help       print this help, then exit
13189
  -V, --version    print version number and configuration settings, then exit
13190
  -q, --quiet, --silent
13191
                   do not print progress messages
13192
  -d, --debug      don't remove temporary files
13193
      --recheck    update $as_me by reconfiguring in the same conditions
13194
      --file=FILE[:TEMPLATE]
13195
                   instantiate the configuration file FILE
13196
 
13197
Configuration files:
13198
$config_files
13199
 
13200
Configuration commands:
13201
$config_commands
13202
 
13203
Report bugs to ."
13204
 
13205
_ACEOF
13206
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13207
ac_cs_version="\\
13208
newlib config.status 1.18.0
13209
configured by $0, generated by GNU Autoconf 2.63,
13210
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13211
 
13212
Copyright (C) 2008 Free Software Foundation, Inc.
13213
This config.status script is free software; the Free Software Foundation
13214
gives unlimited permission to copy, distribute and modify it."
13215
 
13216
ac_pwd='$ac_pwd'
13217
srcdir='$srcdir'
13218
INSTALL='$INSTALL'
13219
MKDIR_P='$MKDIR_P'
13220
AWK='$AWK'
13221
test -n "\$AWK" || AWK=awk
13222
_ACEOF
13223
 
13224
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13225
# The default lists apply if the user does not specify any file.
13226
ac_need_defaults=:
13227
while test $# != 0
13228
do
13229
  case $1 in
13230
  --*=*)
13231
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13232
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13233
    ac_shift=:
13234
    ;;
13235
  *)
13236
    ac_option=$1
13237
    ac_optarg=$2
13238
    ac_shift=shift
13239
    ;;
13240
  esac
13241
 
13242
  case $ac_option in
13243
  # Handling of the options.
13244
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13245
    ac_cs_recheck=: ;;
13246
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13247
    $as_echo "$ac_cs_version"; exit ;;
13248
  --debug | --debu | --deb | --de | --d | -d )
13249
    debug=: ;;
13250
  --file | --fil | --fi | --f )
13251
    $ac_shift
13252
    case $ac_optarg in
13253
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13254
    esac
13255
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13256
    ac_need_defaults=false;;
13257
  --he | --h |  --help | --hel | -h )
13258
    $as_echo "$ac_cs_usage"; exit ;;
13259
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13260
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13261
    ac_cs_silent=: ;;
13262
 
13263
  # This is an error.
13264
  -*) { $as_echo "$as_me: error: unrecognized option: $1
13265
Try \`$0 --help' for more information." >&2
13266
   { (exit 1); exit 1; }; } ;;
13267
 
13268
  *) ac_config_targets="$ac_config_targets $1"
13269
     ac_need_defaults=false ;;
13270
 
13271
  esac
13272
  shift
13273
done
13274
 
13275
ac_configure_extra_args=
13276
 
13277
if $ac_cs_silent; then
13278
  exec 6>/dev/null
13279
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13280
fi
13281
 
13282
_ACEOF
13283
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13284
if \$ac_cs_recheck; then
13285
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13286
  shift
13287
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13288
  CONFIG_SHELL='$SHELL'
13289
  export CONFIG_SHELL
13290
  exec "\$@"
13291
fi
13292
 
13293
_ACEOF
13294
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13295
exec 5>>config.log
13296
{
13297
  echo
13298
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13299
## Running $as_me. ##
13300
_ASBOX
13301
  $as_echo "$ac_log"
13302
} >&5
13303
 
13304
_ACEOF
13305
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13306
#
13307
# INIT-COMMANDS
13308
#
13309
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13310
 
13311
 
13312
# The HP-UX ksh and POSIX shell print the target directory to stdout
13313
# if CDPATH is set.
13314
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13315
 
13316
sed_quote_subst='$sed_quote_subst'
13317
double_quote_subst='$double_quote_subst'
13318
delay_variable_subst='$delay_variable_subst'
13319
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13320
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13321
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13322
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13323
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13324
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13325
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13326
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13327
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13328
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13329
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13330
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13331
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13332
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13333
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13334
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13335
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13336
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13337
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13338
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13339
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13340
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13341
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13342
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13343
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13344
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13345
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13346
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13347
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13348
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13349
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13350
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13351
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13352
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13353
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13354
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13355
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13356
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13357
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13358
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13359
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13360
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13361
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13362
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13363
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13364
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13365
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"`'
13366
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"`'
13367
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13368
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13369
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13370
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13371
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13372
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13373
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13374
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13375
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13376
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13377
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13378
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13379
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13380
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13381
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13382
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13383
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13384
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13385
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13386
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13387
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13388
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13389
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13390
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13391
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13392
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13393
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13394
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13395
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13396
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13397
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13398
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13399
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13400
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13401
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13402
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13403
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13404
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13405
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13406
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13407
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13408
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13409
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13410
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13411
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13412
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13413
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13414
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13415
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13416
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13417
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13418
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13419
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13420
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13421
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13422
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13423
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13424
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13425
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13426
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13427
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13428
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13429
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13430
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13431
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13432
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13433
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13434
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13435
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13436
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13437
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13438
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13439
 
13440
LTCC='$LTCC'
13441
LTCFLAGS='$LTCFLAGS'
13442
compiler='$compiler_DEFAULT'
13443
 
13444
# Quote evaled strings.
13445
for var in SED \
13446
GREP \
13447
EGREP \
13448
FGREP \
13449
LD \
13450
NM \
13451
LN_S \
13452
lt_SP2NL \
13453
lt_NL2SP \
13454
reload_flag \
13455
deplibs_check_method \
13456
file_magic_cmd \
13457
AR \
13458
AR_FLAGS \
13459
STRIP \
13460
RANLIB \
13461
CC \
13462
CFLAGS \
13463
compiler \
13464
lt_cv_sys_global_symbol_pipe \
13465
lt_cv_sys_global_symbol_to_cdecl \
13466
lt_cv_sys_global_symbol_to_c_name_address \
13467
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13468
SHELL \
13469
ECHO \
13470
lt_prog_compiler_no_builtin_flag \
13471
lt_prog_compiler_wl \
13472
lt_prog_compiler_pic \
13473
lt_prog_compiler_static \
13474
lt_cv_prog_compiler_c_o \
13475
need_locks \
13476
DSYMUTIL \
13477
NMEDIT \
13478
LIPO \
13479
OTOOL \
13480
OTOOL64 \
13481
shrext_cmds \
13482
export_dynamic_flag_spec \
13483
whole_archive_flag_spec \
13484
compiler_needs_object \
13485
with_gnu_ld \
13486
allow_undefined_flag \
13487
no_undefined_flag \
13488
hardcode_libdir_flag_spec \
13489
hardcode_libdir_flag_spec_ld \
13490
hardcode_libdir_separator \
13491
fix_srcfile_path \
13492
exclude_expsyms \
13493
include_expsyms \
13494
file_list_spec \
13495
variables_saved_for_relink \
13496
libname_spec \
13497
library_names_spec \
13498
soname_spec \
13499
finish_eval \
13500
old_striplib \
13501
striplib; do
13502
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13503
    *[\\\\\\\`\\"\\\$]*)
13504
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13505
      ;;
13506
    *)
13507
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13508
      ;;
13509
    esac
13510
done
13511
 
13512
# Double-quote double-evaled strings.
13513
for var in reload_cmds \
13514
old_postinstall_cmds \
13515
old_postuninstall_cmds \
13516
old_archive_cmds \
13517
extract_expsyms_cmds \
13518
old_archive_from_new_cmds \
13519
old_archive_from_expsyms_cmds \
13520
archive_cmds \
13521
archive_expsym_cmds \
13522
module_cmds \
13523
module_expsym_cmds \
13524
export_symbols_cmds \
13525
prelink_cmds \
13526
postinstall_cmds \
13527
postuninstall_cmds \
13528
finish_cmds \
13529
sys_lib_search_path_spec \
13530
sys_lib_dlsearch_path_spec; do
13531
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13532
    *[\\\\\\\`\\"\\\$]*)
13533
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13534
      ;;
13535
    *)
13536
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13537
      ;;
13538
    esac
13539
done
13540
 
13541
# Fix-up fallback echo if it was mangled by the above quoting rules.
13542
case \$lt_ECHO in
13543
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13544
  ;;
13545
esac
13546
 
13547
ac_aux_dir='$ac_aux_dir'
13548
xsi_shell='$xsi_shell'
13549
lt_shell_append='$lt_shell_append'
13550
 
13551
# See if we are running on zsh, and set the options which allow our
13552
# commands through without removal of \ escapes INIT.
13553
if test -n "\${ZSH_VERSION+set}" ; then
13554
   setopt NO_GLOB_SUBST
13555
fi
13556
 
13557
 
13558
    PACKAGE='$PACKAGE'
13559
    VERSION='$VERSION'
13560
    TIMESTAMP='$TIMESTAMP'
13561
    RM='$RM'
13562
    ofile='$ofile'
13563
 
13564
 
13565
 
13566
 
13567
_ACEOF
13568
 
13569
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13570
 
13571
# Handling of arguments.
13572
for ac_config_target in $ac_config_targets
13573
do
13574
  case $ac_config_target in
13575
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13576
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13577
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13578
 
13579
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13580
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13581
   { (exit 1); exit 1; }; };;
13582
  esac
13583
done
13584
 
13585
 
13586
# If the user did not use the arguments to specify the items to instantiate,
13587
# then the envvar interface is used.  Set only those that are not.
13588
# We use the long form for the default assignment because of an extremely
13589
# bizarre bug on SunOS 4.1.3.
13590
if $ac_need_defaults; then
13591
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13592
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13593
fi
13594
 
13595
# Have a temporary directory for convenience.  Make it in the build tree
13596
# simply because there is no reason against having it here, and in addition,
13597
# creating and moving files from /tmp can sometimes cause problems.
13598
# Hook for its removal unless debugging.
13599
# Note that there is a small window in which the directory will not be cleaned:
13600
# after its creation but before its name has been assigned to `$tmp'.
13601
$debug ||
13602
{
13603
  tmp=
13604
  trap 'exit_status=$?
13605
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13606
' 0
13607
  trap '{ (exit 1); exit 1; }' 1 2 13 15
13608
}
13609
# Create a (secure) tmp directory for tmp files.
13610
 
13611
{
13612
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13613
  test -n "$tmp" && test -d "$tmp"
13614
}  ||
13615
{
13616
  tmp=./conf$$-$RANDOM
13617
  (umask 077 && mkdir "$tmp")
13618
} ||
13619
{
13620
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
13621
   { (exit 1); exit 1; }
13622
}
13623
 
13624
# Set up the scripts for CONFIG_FILES section.
13625
# No need to generate them if there are no CONFIG_FILES.
13626
# This happens for instance with `./config.status config.h'.
13627
if test -n "$CONFIG_FILES"; then
13628
 
13629
 
13630
ac_cr='
'
13631
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
13632
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13633
  ac_cs_awk_cr='\\r'
13634
else
13635
  ac_cs_awk_cr=$ac_cr
13636
fi
13637
13638
 
13639
_ACEOF
13640
13641
 
13642
 
13643
  echo "cat >conf$$subs.awk <<_ACEOF" &&
13644
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13645
  echo "_ACEOF"
13646
} >conf$$subs.sh ||
13647
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13648
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13649
   { (exit 1); exit 1; }; }
13650
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13651
ac_delim='%!_!# '
13652
for ac_last_try in false false false false false :; do
13653
  . ./conf$$subs.sh ||
13654
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13655
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13656
   { (exit 1); exit 1; }; }
13657
13658
 
13659
  if test $ac_delim_n = $ac_delim_num; then
13660
    break
13661
  elif $ac_last_try; then
13662
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13663
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13664
   { (exit 1); exit 1; }; }
13665
  else
13666
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13667
  fi
13668
done
13669
rm -f conf$$subs.sh
13670
13671
 
13672
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13673
_ACEOF
13674
sed -n '
13675
h
13676
s/^/S["/; s/!.*/"]=/
13677
p
13678
g
13679
s/^[^!]*!//
13680
:repl
13681
t repl
13682
s/'"$ac_delim"'$//
13683
t delim
13684
:nl
13685
h
13686
s/\(.\{148\}\).*/\1/
13687
t more1
13688
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13689
p
13690
n
13691
b repl
13692
:more1
13693
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13694
p
13695
g
13696
s/.\{148\}//
13697
t nl
13698
:delim
13699
h
13700
s/\(.\{148\}\).*/\1/
13701
t more2
13702
s/["\\]/\\&/g; s/^/"/; s/$/"/
13703
p
13704
b
13705
:more2
13706
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13707
p
13708
g
13709
s/.\{148\}//
13710
t delim
13711
' 
13712
/^[^""]/{
13713
  N
13714
  s/\n//
13715
}
13716
' >>$CONFIG_STATUS || ac_write_fail=1
13717
rm -f conf$$subs.awk
13718
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13719
_ACAWK
13720
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13721
  for (key in S) S_is_set[key] = 1
13722
  FS = ""
13723
13724
 
13725
{
13726
  line = $ 0
13727
  nfields = split(line, field, "@")
13728
  substed = 0
13729
  len = length(field[1])
13730
  for (i = 2; i < nfields; i++) {
13731
    key = field[i]
13732
    keylen = length(key)
13733
    if (S_is_set[key]) {
13734
      value = S[key]
13735
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13736
      len += length(value) + length(field[++i])
13737
      substed = 1
13738
    } else
13739
      len += 1 + keylen
13740
  }
13741
13742
 
13743
}
13744
13745
 
13746
_ACEOF
13747
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13748
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13749
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13750
else
13751
  cat
13752
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13753
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13754
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13755
   { (exit 1); exit 1; }; }
13756
_ACEOF
13757
13758
 
13759
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13760
# trailing colons and then remove the whole line if VPATH becomes empty
13761
# (actually we leave an empty line to preserve line numbers).
13762
if test "x$srcdir" = x.; then
13763
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
13764
s/:*\$(srcdir):*/:/
13765
s/:*\${srcdir}:*/:/
13766
s/:*@srcdir@:*/:/
13767
s/^\([^=]*=[     ]*\):*/\1/
13768
s/:*$//
13769
s/^[^=]*=[       ]*$//
13770
}'
13771
fi
13772
13773
 
13774
fi # test -n "$CONFIG_FILES"
13775
13776
 
13777
 
13778
shift
13779
for ac_tag
13780
do
13781
  case $ac_tag in
13782
  :[FHLC]) ac_mode=$ac_tag; continue;;
13783
  esac
13784
  case $ac_mode$ac_tag in
13785
  :[FHL]*:*);;
13786
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13787
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13788
   { (exit 1); exit 1; }; };;
13789
  :[FH]-) ac_tag=-:-;;
13790
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13791
  esac
13792
  ac_save_IFS=$IFS
13793
  IFS=:
13794
  set x $ac_tag
13795
  IFS=$ac_save_IFS
13796
  shift
13797
  ac_file=$1
13798
  shift
13799
13800
 
13801
  :L) ac_source=$1;;
13802
  :[FH])
13803
    ac_file_inputs=
13804
    for ac_f
13805
    do
13806
      case $ac_f in
13807
      -) ac_f="$tmp/stdin";;
13808
      *) # Look for the file first in the build tree, then in the source tree
13809
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
13810
         # because $ac_f cannot contain `:'.
13811
         test -f "$ac_f" ||
13812
           case $ac_f in
13813
           [\\/$]*) false;;
13814
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13815
           esac ||
13816
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13817
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13818
   { (exit 1); exit 1; }; };;
13819
      esac
13820
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13821
      ac_file_inputs="$ac_file_inputs '$ac_f'"
13822
    done
13823
13824
 
13825
    # use $as_me), people would be surprised to read:
13826
    #    /* config.h.  Generated by config.status.  */
13827
    configure_input='Generated from '`
13828
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13829
        `' by configure.'
13830
    if test x"$ac_file" != x-; then
13831
      configure_input="$ac_file.  $configure_input"
13832
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13833
$as_echo "$as_me: creating $ac_file" >&6;}
13834
    fi
13835
    # Neutralize special characters interpreted by sed in replacement strings.
13836
    case $configure_input in #(
13837
    *\&* | *\|* | *\\* )
13838
       ac_sed_conf_input=`$as_echo "$configure_input" |
13839
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13840
    *) ac_sed_conf_input=$configure_input;;
13841
    esac
13842
13843
 
13844
    *:-:* | *:-) cat >"$tmp/stdin" \
13845
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13846
$as_echo "$as_me: error: could not create $ac_file" >&2;}
13847
   { (exit 1); exit 1; }; } ;;
13848
    esac
13849
    ;;
13850
  esac
13851
13852
 
13853
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13854
         X"$ac_file" : 'X\(//\)[^/]' \| \
13855
         X"$ac_file" : 'X\(//\)$' \| \
13856
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13857
$as_echo X"$ac_file" |
13858
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13859
            s//\1/
13860
            q
13861
          }
13862
          /^X\(\/\/\)[^/].*/{
13863
            s//\1/
13864
            q
13865
          }
13866
          /^X\(\/\/\)$/{
13867
            s//\1/
13868
            q
13869
          }
13870
          /^X\(\/\).*/{
13871
            s//\1/
13872
            q
13873
          }
13874
          s/.*/./; q'`
13875
  { as_dir="$ac_dir"
13876
  case $as_dir in #(
13877
  -*) as_dir=./$as_dir;;
13878
  esac
13879
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13880
    as_dirs=
13881
    while :; do
13882
      case $as_dir in #(
13883
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13884
      *) as_qdir=$as_dir;;
13885
      esac
13886
      as_dirs="'$as_qdir' $as_dirs"
13887
      as_dir=`$as_dirname -- "$as_dir" ||
13888
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13889
         X"$as_dir" : 'X\(//\)[^/]' \| \
13890
         X"$as_dir" : 'X\(//\)$' \| \
13891
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13892
$as_echo X"$as_dir" |
13893
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13894
            s//\1/
13895
            q
13896
          }
13897
          /^X\(\/\/\)[^/].*/{
13898
            s//\1/
13899
            q
13900
          }
13901
          /^X\(\/\/\)$/{
13902
            s//\1/
13903
            q
13904
          }
13905
          /^X\(\/\).*/{
13906
            s//\1/
13907
            q
13908
          }
13909
          s/.*/./; q'`
13910
      test -d "$as_dir" && break
13911
    done
13912
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13913
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13914
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13915
   { (exit 1); exit 1; }; }; }
13916
  ac_builddir=.
13917
13918
 
13919
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13920
*)
13921
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13922
  # A ".." for each directory in $ac_dir_suffix.
13923
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13924
  case $ac_top_builddir_sub in
13925
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13926
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13927
  esac ;;
13928
esac
13929
ac_abs_top_builddir=$ac_pwd
13930
ac_abs_builddir=$ac_pwd$ac_dir_suffix
13931
# for backward compatibility:
13932
ac_top_builddir=$ac_top_build_prefix
13933
13934
 
13935
  .)  # We are building in place.
13936
    ac_srcdir=.
13937
    ac_top_srcdir=$ac_top_builddir_sub
13938
    ac_abs_top_srcdir=$ac_pwd ;;
13939
  [\\/]* | ?:[\\/]* )  # Absolute name.
13940
    ac_srcdir=$srcdir$ac_dir_suffix;
13941
    ac_top_srcdir=$srcdir
13942
    ac_abs_top_srcdir=$srcdir ;;
13943
  *) # Relative name.
13944
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13945
    ac_top_srcdir=$ac_top_build_prefix$srcdir
13946
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13947
esac
13948
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13949
13950
 
13951
 
13952
  :F)
13953
  #
13954
  # CONFIG_FILE
13955
  #
13956
13957
 
13958
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13959
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13960
  esac
13961
  ac_MKDIR_P=$MKDIR_P
13962
  case $MKDIR_P in
13963
  [\\/$]* | ?:[\\/]* ) ;;
13964
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13965
  esac
13966
_ACEOF
13967
13968
 
13969
# If the template does not know about datarootdir, expand it.
13970
# FIXME: This hack should be removed a few years after 2.60.
13971
ac_datarootdir_hack=; ac_datarootdir_seen=
13972
13973
 
13974
/datarootdir/ {
13975
  p
13976
  q
13977
}
13978
/@datadir@/p
13979
/@docdir@/p
13980
/@infodir@/p
13981
/@localedir@/p
13982
/@mandir@/p
13983
'
13984
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13985
*datarootdir*) ac_datarootdir_seen=yes;;
13986
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13987
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13988
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13989
_ACEOF
13990
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13991
  ac_datarootdir_hack='
13992
  s&@datadir@&$datadir&g
13993
  s&@docdir@&$docdir&g
13994
  s&@infodir@&$infodir&g
13995
  s&@localedir@&$localedir&g
13996
  s&@mandir@&$mandir&g
13997
    s&\\\${datarootdir}&$datarootdir&g' ;;
13998
esac
13999
_ACEOF
14000
14001
 
14002
# Shell code in configure.ac might set extrasub.
14003
# FIXME: do we really want to maintain this feature?
14004
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14005
ac_sed_extra="$ac_vpsub
14006
$extrasub
14007
_ACEOF
14008
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14009
:t
14010
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14011
s|@configure_input@|$ac_sed_conf_input|;t t
14012
s&@top_builddir@&$ac_top_builddir_sub&;t t
14013
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14014
s&@srcdir@&$ac_srcdir&;t t
14015
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14016
s&@top_srcdir@&$ac_top_srcdir&;t t
14017
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14018
s&@builddir@&$ac_builddir&;t t
14019
s&@abs_builddir@&$ac_abs_builddir&;t t
14020
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14021
s&@INSTALL@&$ac_INSTALL&;t t
14022
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14023
$ac_datarootdir_hack
14024
"
14025
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14026
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14027
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14028
   { (exit 1); exit 1; }; }
14029
14030
 
14031
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14032
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14033
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14034
which seems to be undefined.  Please make sure it is defined." >&5
14035
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14036
which seems to be undefined.  Please make sure it is defined." >&2;}
14037
14038
 
14039
  case $ac_file in
14040
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14041
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14042
  esac \
14043
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14044
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14045
   { (exit 1); exit 1; }; }
14046
 ;;
14047
14048
 
14049
 
14050
$as_echo "$as_me: executing $ac_file commands" >&6;}
14051
 ;;
14052
  esac
14053
14054
 
14055
 
14056
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14057
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14058
  # are listed without --file.  Let's play safe and only enable the eval
14059
  # if we detect the quoting.
14060
  case $CONFIG_FILES in
14061
  *\'*) eval set x "$CONFIG_FILES" ;;
14062
  *)   set x $CONFIG_FILES ;;
14063
  esac
14064
  shift
14065
  for mf
14066
  do
14067
    # Strip MF so we end up with the name of the file.
14068
    mf=`echo "$mf" | sed -e 's/:.*$//'`
14069
    # Check whether this is an Automake generated Makefile or not.
14070
    # We used to match only the files named `Makefile.in', but
14071
    # some people rename them; so instead we look at the file content.
14072
    # Grep'ing the first line is not enough: some people post-process
14073
    # each Makefile.in and add a new line on top of each file to say so.
14074
    # Grep'ing the whole file is not good either: AIX grep has a line
14075
    # limit of 2048, but all sed's we know have understand at least 4000.
14076
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14077
      dirpart=`$as_dirname -- "$mf" ||
14078
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14079
         X"$mf" : 'X\(//\)[^/]' \| \
14080
         X"$mf" : 'X\(//\)$' \| \
14081
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14082
$as_echo X"$mf" |
14083
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14084
            s//\1/
14085
            q
14086
          }
14087
          /^X\(\/\/\)[^/].*/{
14088
            s//\1/
14089
            q
14090
          }
14091
          /^X\(\/\/\)$/{
14092
            s//\1/
14093
            q
14094
          }
14095
          /^X\(\/\).*/{
14096
            s//\1/
14097
            q
14098
          }
14099
          s/.*/./; q'`
14100
    else
14101
      continue
14102
    fi
14103
    # Extract the definition of DEPDIR, am__include, and am__quote
14104
    # from the Makefile without running `make'.
14105
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14106
    test -z "$DEPDIR" && continue
14107
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14108
    test -z "am__include" && continue
14109
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14110
    # When using ansi2knr, U may be empty or an underscore; expand it
14111
    U=`sed -n 's/^U = //p' < "$mf"`
14112
    # Find all dependency output files, they are included files with
14113
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14114
    # simplest approach to changing $(DEPDIR) to its actual value in the
14115
    # expansion.
14116
    for file in `sed -n "
14117
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14118
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14119
      # Make sure the directory exists.
14120
      test -f "$dirpart/$file" && continue
14121
      fdir=`$as_dirname -- "$file" ||
14122
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14123
         X"$file" : 'X\(//\)[^/]' \| \
14124
         X"$file" : 'X\(//\)$' \| \
14125
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14126
$as_echo X"$file" |
14127
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14128
            s//\1/
14129
            q
14130
          }
14131
          /^X\(\/\/\)[^/].*/{
14132
            s//\1/
14133
            q
14134
          }
14135
          /^X\(\/\/\)$/{
14136
            s//\1/
14137
            q
14138
          }
14139
          /^X\(\/\).*/{
14140
            s//\1/
14141
            q
14142
          }
14143
          s/.*/./; q'`
14144
      { as_dir=$dirpart/$fdir
14145
  case $as_dir in #(
14146
  -*) as_dir=./$as_dir;;
14147
  esac
14148
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14149
    as_dirs=
14150
    while :; do
14151
      case $as_dir in #(
14152
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14153
      *) as_qdir=$as_dir;;
14154
      esac
14155
      as_dirs="'$as_qdir' $as_dirs"
14156
      as_dir=`$as_dirname -- "$as_dir" ||
14157
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14158
         X"$as_dir" : 'X\(//\)[^/]' \| \
14159
         X"$as_dir" : 'X\(//\)$' \| \
14160
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14161
$as_echo X"$as_dir" |
14162
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14163
            s//\1/
14164
            q
14165
          }
14166
          /^X\(\/\/\)[^/].*/{
14167
            s//\1/
14168
            q
14169
          }
14170
          /^X\(\/\/\)$/{
14171
            s//\1/
14172
            q
14173
          }
14174
          /^X\(\/\).*/{
14175
            s//\1/
14176
            q
14177
          }
14178
          s/.*/./; q'`
14179
      test -d "$as_dir" && break
14180
    done
14181
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14182
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14183
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14184
   { (exit 1); exit 1; }; }; }
14185
      # echo "creating $dirpart/$file"
14186
      echo '# dummy' > "$dirpart/$file"
14187
    done
14188
  done
14189
}
14190
 ;;
14191
    "libtool":C)
14192
14193
 
14194
    # commands through without removal of \ escapes.
14195
    if test -n "${ZSH_VERSION+set}" ; then
14196
      setopt NO_GLOB_SUBST
14197
    fi
14198
14199
 
14200
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14201
    $RM "$cfgfile"
14202
14203
 
14204
#! $SHELL
14205
14206
 
14207
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14208
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14209
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14210
#
14211
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14212
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14213
#   Written by Gordon Matzigkeit, 1996
14214
#
14215
#   This file is part of GNU Libtool.
14216
#
14217
# GNU Libtool is free software; you can redistribute it and/or
14218
# modify it under the terms of the GNU General Public License as
14219
# published by the Free Software Foundation; either version 2 of
14220
# the License, or (at your option) any later version.
14221
#
14222
# As a special exception to the GNU General Public License,
14223
# if you distribute this file as part of a program or library that
14224
# is built using GNU Libtool, you may include this file under the
14225
# same distribution terms that you use for the rest of that program.
14226
#
14227
# GNU Libtool is distributed in the hope that it will be useful,
14228
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14229
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14230
# GNU General Public License for more details.
14231
#
14232
# You should have received a copy of the GNU General Public License
14233
# along with GNU Libtool; see the file COPYING.  If not, a copy
14234
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14235
# obtained by writing to the Free Software Foundation, Inc.,
14236
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14237
14238
 
14239
 
14240
available_tags=""
14241
14242
 
14243
14244
 
14245
SED=$lt_SED
14246
14247
 
14248
Xsed="\$SED -e 1s/^X//"
14249
14250
 
14251
AS=$AS
14252
14253
 
14254
DLLTOOL=$DLLTOOL
14255
14256
 
14257
OBJDUMP=$OBJDUMP
14258
14259
 
14260
macro_version=$macro_version
14261
macro_revision=$macro_revision
14262
14263
 
14264
build_libtool_libs=$enable_shared
14265
14266
 
14267
build_old_libs=$enable_static
14268
14269
 
14270
pic_mode=$pic_mode
14271
14272
 
14273
fast_install=$enable_fast_install
14274
14275
 
14276
host_alias=$host_alias
14277
host=$host
14278
host_os=$host_os
14279
14280
 
14281
build_alias=$build_alias
14282
build=$build
14283
build_os=$build_os
14284
14285
 
14286
GREP=$lt_GREP
14287
14288
 
14289
EGREP=$lt_EGREP
14290
14291
 
14292
FGREP=$lt_FGREP
14293
14294
 
14295
NM=$lt_NM
14296
14297
 
14298
LN_S=$lt_LN_S
14299
14300
 
14301
max_cmd_len=$max_cmd_len
14302
14303
 
14304
objext=$ac_objext
14305
14306
 
14307
exeext=$exeext
14308
14309
 
14310
lt_unset=$lt_unset
14311
14312
 
14313
SP2NL=$lt_lt_SP2NL
14314
14315
 
14316
NL2SP=$lt_lt_NL2SP
14317
14318
 
14319
reload_flag=$lt_reload_flag
14320
reload_cmds=$lt_reload_cmds
14321
14322
 
14323
deplibs_check_method=$lt_deplibs_check_method
14324
14325
 
14326
file_magic_cmd=$lt_file_magic_cmd
14327
14328
 
14329
AR=$lt_AR
14330
AR_FLAGS=$lt_AR_FLAGS
14331
14332
 
14333
STRIP=$lt_STRIP
14334
14335
 
14336
RANLIB=$lt_RANLIB
14337
old_postinstall_cmds=$lt_old_postinstall_cmds
14338
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14339
14340
 
14341
LTCC=$lt_CC
14342
14343
 
14344
LTCFLAGS=$lt_CFLAGS
14345
14346
 
14347
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14348
14349
 
14350
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14351
14352
 
14353
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14354
14355
 
14356
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14357
14358
 
14359
objdir=$objdir
14360
14361
 
14362
SHELL=$lt_SHELL
14363
14364
 
14365
ECHO=$lt_ECHO
14366
14367
 
14368
MAGIC_CMD=$MAGIC_CMD
14369
14370
 
14371
need_locks=$lt_need_locks
14372
14373
 
14374
DSYMUTIL=$lt_DSYMUTIL
14375
14376
 
14377
NMEDIT=$lt_NMEDIT
14378
14379
 
14380
LIPO=$lt_LIPO
14381
14382
 
14383
OTOOL=$lt_OTOOL
14384
14385
 
14386
OTOOL64=$lt_OTOOL64
14387
14388
 
14389
libext=$libext
14390
14391
 
14392
shrext_cmds=$lt_shrext_cmds
14393
14394
 
14395
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14396
14397
 
14398
# restored at link time.
14399
variables_saved_for_relink=$lt_variables_saved_for_relink
14400
14401
 
14402
need_lib_prefix=$need_lib_prefix
14403
14404
 
14405
need_version=$need_version
14406
14407
 
14408
version_type=$version_type
14409
14410
 
14411
runpath_var=$runpath_var
14412
14413
 
14414
shlibpath_var=$shlibpath_var
14415
14416
 
14417
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14418
14419
 
14420
libname_spec=$lt_libname_spec
14421
14422
 
14423
# The last name is the one that the linker finds with -lNAME
14424
library_names_spec=$lt_library_names_spec
14425
14426
 
14427
soname_spec=$lt_soname_spec
14428
14429
 
14430
postinstall_cmds=$lt_postinstall_cmds
14431
14432
 
14433
postuninstall_cmds=$lt_postuninstall_cmds
14434
14435
 
14436
finish_cmds=$lt_finish_cmds
14437
14438
 
14439
# not shown.
14440
finish_eval=$lt_finish_eval
14441
14442
 
14443
hardcode_into_libs=$hardcode_into_libs
14444
14445
 
14446
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14447
14448
 
14449
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14450
14451
 
14452
dlopen_support=$enable_dlopen
14453
14454
 
14455
dlopen_self=$enable_dlopen_self
14456
14457
 
14458
dlopen_self_static=$enable_dlopen_self_static
14459
14460
 
14461
old_striplib=$lt_old_striplib
14462
striplib=$lt_striplib
14463
14464
 
14465
 
14466
LD=$lt_LD
14467
14468
 
14469
old_archive_cmds=$lt_old_archive_cmds
14470
14471
 
14472
CC=$lt_compiler
14473
14474
 
14475
with_gcc=$GCC
14476
14477
 
14478
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14479
14480
 
14481
wl=$lt_lt_prog_compiler_wl
14482
14483
 
14484
pic_flag=$lt_lt_prog_compiler_pic
14485
14486
 
14487
link_static_flag=$lt_lt_prog_compiler_static
14488
14489
 
14490
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14491
14492
 
14493
build_libtool_need_lc=$archive_cmds_need_lc
14494
14495
 
14496
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14497
14498
 
14499
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14500
14501
 
14502
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14503
14504
 
14505
compiler_needs_object=$lt_compiler_needs_object
14506
14507
 
14508
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14509
14510
 
14511
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14512
14513
 
14514
archive_cmds=$lt_archive_cmds
14515
archive_expsym_cmds=$lt_archive_expsym_cmds
14516
14517
 
14518
# a shared archive.
14519
module_cmds=$lt_module_cmds
14520
module_expsym_cmds=$lt_module_expsym_cmds
14521
14522
 
14523
with_gnu_ld=$lt_with_gnu_ld
14524
14525
 
14526
allow_undefined_flag=$lt_allow_undefined_flag
14527
14528
 
14529
no_undefined_flag=$lt_no_undefined_flag
14530
14531
 
14532
# This must work even if \$libdir does not exist
14533
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14534
14535
 
14536
# during linking.  This must work even if \$libdir does not exist.
14537
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14538
14539
 
14540
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14541
14542
 
14543
# DIR into the resulting binary.
14544
hardcode_direct=$hardcode_direct
14545
14546
 
14547
# DIR into the resulting binary and the resulting library dependency is
14548
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14549
# library is relocated.
14550
hardcode_direct_absolute=$hardcode_direct_absolute
14551
14552
 
14553
# into the resulting binary.
14554
hardcode_minus_L=$hardcode_minus_L
14555
14556
 
14557
# into the resulting binary.
14558
hardcode_shlibpath_var=$hardcode_shlibpath_var
14559
14560
 
14561
# into the library and all subsequent libraries and executables linked
14562
# against it.
14563
hardcode_automatic=$hardcode_automatic
14564
14565
 
14566
# to runtime path list.
14567
inherit_rpath=$inherit_rpath
14568
14569
 
14570
link_all_deplibs=$link_all_deplibs
14571
14572
 
14573
fix_srcfile_path=$lt_fix_srcfile_path
14574
14575
 
14576
always_export_symbols=$always_export_symbols
14577
14578
 
14579
export_symbols_cmds=$lt_export_symbols_cmds
14580
14581
 
14582
exclude_expsyms=$lt_exclude_expsyms
14583
14584
 
14585
include_expsyms=$lt_include_expsyms
14586
14587
 
14588
prelink_cmds=$lt_prelink_cmds
14589
14590
 
14591
file_list_spec=$lt_file_list_spec
14592
14593
 
14594
hardcode_action=$hardcode_action
14595
14596
 
14597
14598
 
14599
14600
 
14601
  aix3*)
14602
    cat <<\_LT_EOF >> "$cfgfile"
14603
# AIX sometimes has problems with the GCC collect2 program.  For some
14604
# reason, if we set the COLLECT_NAMES environment variable, the problems
14605
# vanish in a puff of smoke.
14606
if test "X${COLLECT_NAMES+set}" != Xset; then
14607
  COLLECT_NAMES=
14608
  export COLLECT_NAMES
14609
fi
14610
_LT_EOF
14611
    ;;
14612
  esac
14613
14614
 
14615
 
14616
14617
 
14618
 
14619
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14620
  # text mode, it properly converts lines to CR/LF.  This bash problem
14621
  # is reportedly fixed, but why not run on old versions too?
14622
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14623
    || (rm -f "$cfgfile"; exit 1)
14624
14625
 
14626
  yes)
14627
    cat << \_LT_EOF >> "$cfgfile"
14628
14629
 
14630
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14631
# otherwise set result to NONDIR_REPLACEMENT.
14632
func_dirname ()
14633
{
14634
  case ${1} in
14635
    */*) func_dirname_result="${1%/*}${2}" ;;
14636
    *  ) func_dirname_result="${3}" ;;
14637
  esac
14638
}
14639
14640
 
14641
func_basename ()
14642
{
14643
  func_basename_result="${1##*/}"
14644
}
14645
14646
 
14647
# perform func_basename and func_dirname in a single function
14648
# call:
14649
#   dirname:  Compute the dirname of FILE.  If nonempty,
14650
#             add APPEND to the result, otherwise set result
14651
#             to NONDIR_REPLACEMENT.
14652
#             value returned in "$func_dirname_result"
14653
#   basename: Compute filename of FILE.
14654
#             value retuned in "$func_basename_result"
14655
# Implementation must be kept synchronized with func_dirname
14656
# and func_basename. For efficiency, we do not delegate to
14657
# those functions but instead duplicate the functionality here.
14658
func_dirname_and_basename ()
14659
{
14660
  case ${1} in
14661
    */*) func_dirname_result="${1%/*}${2}" ;;
14662
    *  ) func_dirname_result="${3}" ;;
14663
  esac
14664
  func_basename_result="${1##*/}"
14665
}
14666
14667
 
14668
# strip PREFIX and SUFFIX off of NAME.
14669
# PREFIX and SUFFIX must not contain globbing or regex special
14670
# characters, hashes, percent signs, but SUFFIX may contain a leading
14671
# dot (in which case that matches only a dot).
14672
func_stripname ()
14673
{
14674
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14675
  # positional parameters, so assign one to ordinary parameter first.
14676
  func_stripname_result=${3}
14677
  func_stripname_result=${func_stripname_result#"${1}"}
14678
  func_stripname_result=${func_stripname_result%"${2}"}
14679
}
14680
14681
 
14682
func_opt_split ()
14683
{
14684
  func_opt_split_opt=${1%%=*}
14685
  func_opt_split_arg=${1#*=}
14686
}
14687
14688
 
14689
func_lo2o ()
14690
{
14691
  case ${1} in
14692
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14693
    *)    func_lo2o_result=${1} ;;
14694
  esac
14695
}
14696
14697
 
14698
func_xform ()
14699
{
14700
  func_xform_result=${1%.*}.lo
14701
}
14702
14703
 
14704
func_arith ()
14705
{
14706
  func_arith_result=$(( $* ))
14707
}
14708
14709
 
14710
# STRING may not start with a hyphen.
14711
func_len ()
14712
{
14713
  func_len_result=${#1}
14714
}
14715
14716
 
14717
    ;;
14718
  *) # Bourne compatible functions.
14719
    cat << \_LT_EOF >> "$cfgfile"
14720
14721
 
14722
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14723
# otherwise set result to NONDIR_REPLACEMENT.
14724
func_dirname ()
14725
{
14726
  # Extract subdirectory from the argument.
14727
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14728
  if test "X$func_dirname_result" = "X${1}"; then
14729
    func_dirname_result="${3}"
14730
  else
14731
    func_dirname_result="$func_dirname_result${2}"
14732
  fi
14733
}
14734
14735
 
14736
func_basename ()
14737
{
14738
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14739
}
14740
14741
 
14742
 
14743
# strip PREFIX and SUFFIX off of NAME.
14744
# PREFIX and SUFFIX must not contain globbing or regex special
14745
# characters, hashes, percent signs, but SUFFIX may contain a leading
14746
# dot (in which case that matches only a dot).
14747
# func_strip_suffix prefix name
14748
func_stripname ()
14749
{
14750
  case ${2} in
14751
    .*) func_stripname_result=`$ECHO "X${3}" \
14752
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14753
    *)  func_stripname_result=`$ECHO "X${3}" \
14754
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14755
  esac
14756
}
14757
14758
 
14759
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14760
my_sed_long_arg='1s/^-[^=]*=//'
14761
14762
 
14763
func_opt_split ()
14764
{
14765
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14766
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14767
}
14768
14769
 
14770
func_lo2o ()
14771
{
14772
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14773
}
14774
14775
 
14776
func_xform ()
14777
{
14778
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14779
}
14780
14781
 
14782
func_arith ()
14783
{
14784
  func_arith_result=`expr "$@"`
14785
}
14786
14787
 
14788
# STRING may not start with a hyphen.
14789
func_len ()
14790
{
14791
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14792
}
14793
14794
 
14795
esac
14796
14797
 
14798
  yes)
14799
    cat << \_LT_EOF >> "$cfgfile"
14800
14801
 
14802
# Append VALUE to the end of shell variable VAR.
14803
func_append ()
14804
{
14805
  eval "$1+=\$2"
14806
}
14807
_LT_EOF
14808
    ;;
14809
  *)
14810
    cat << \_LT_EOF >> "$cfgfile"
14811
14812
 
14813
# Append VALUE to the end of shell variable VAR.
14814
func_append ()
14815
{
14816
  eval "$1=\$$1\$2"
14817
}
14818
14819
 
14820
    ;;
14821
  esac
14822
14823
 
14824
 
14825
    || (rm -f "$cfgfile"; exit 1)
14826
14827
 
14828
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14829
  chmod +x "$ofile"
14830
14831
 
14832
14833
 
14834
done # for ac_tag
14835
14836
 
14837
 
14838
_ACEOF
14839
chmod +x $CONFIG_STATUS
14840
ac_clean_files=$ac_clean_files_save
14841
14842
 
14843
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14844
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14845
   { (exit 1); exit 1; }; }
14846
14847
 
14848
 
14849
# config.status does its own redirection, appending to config.log.
14850
# Unfortunately, on DOS this fails, as config.log is still kept open
14851
# by configure, so config.status won't be able to write to it; its
14852
# output is simply discarded.  So we exec the FD to /dev/null,
14853
# effectively closing config.log, so it can be properly (re)opened and
14854
# appended to by config.status.  When coming back to configure, we
14855
# need to make the FD available again.
14856
if test "$no_create" != yes; then
14857
  ac_cs_success=:
14858
  ac_config_status_args=
14859
  test "$silent" = yes &&
14860
    ac_config_status_args="$ac_config_status_args --quiet"
14861
  exec 5>/dev/null
14862
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14863
  exec 5>>config.log
14864
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14865
  # would make configure fail if this is the last instruction.
14866
  $ac_cs_success || { (exit 1); exit 1; }
14867
fi
14868
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14869
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14870
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14871
fi
14872
14873
 

powered by: WebSVN 2.1.0

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