~mathiaz/+junk/ceph-new-pkg-review

« back to all changes in this revision

Viewing changes to configure

  • Committer: Mathias Gug
  • Date: 2010-07-29 03:10:42 UTC
  • Revision ID: mathias.gug@canonical.com-20100729031042-n9n8kky962qb4onb
Import ceph_0.21-0ubuntu1 from https://launchpad.net/~clint-fewbar/+archive/ceph/+packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.61 for Ceph distributed file system .1.
 
4
#
 
5
# Report bugs to <Sage Weil <sage@newdream.net>>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
# The user is always right.
 
43
if test "${PATH_SEPARATOR+set}" != set; then
 
44
  echo "#! /bin/sh" >conf$$.sh
 
45
  echo  "exit 0"   >>conf$$.sh
 
46
  chmod +x conf$$.sh
 
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
48
    PATH_SEPARATOR=';'
 
49
  else
 
50
    PATH_SEPARATOR=:
 
51
  fi
 
52
  rm -f conf$$.sh
 
53
fi
 
54
 
 
55
# Support unset when possible.
 
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
57
  as_unset=unset
 
58
else
 
59
  as_unset=false
 
60
fi
 
61
 
 
62
 
 
63
# IFS
 
64
# We need space, tab and new line, in precisely that order.  Quoting is
 
65
# there to prevent editors from complaining about space-tab.
 
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
67
# splitting by setting IFS to empty value.)
 
68
as_nl='
 
69
'
 
70
IFS=" ""        $as_nl"
 
71
 
 
72
# Find who we are.  Look in the path if we contain no directory separator.
 
73
case $0 in
 
74
  *[\\/]* ) as_myself=$0 ;;
 
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
76
for as_dir in $PATH
 
77
do
 
78
  IFS=$as_save_IFS
 
79
  test -z "$as_dir" && as_dir=.
 
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
81
done
 
82
IFS=$as_save_IFS
 
83
 
 
84
     ;;
 
85
esac
 
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
87
# in which case we are not to be found in the path.
 
88
if test "x$as_myself" = x; then
 
89
  as_myself=$0
 
90
fi
 
91
if test ! -f "$as_myself"; then
 
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
93
  { (exit 1); exit 1; }
 
94
fi
 
95
 
 
96
# Work around bugs in pre-3.0 UWIN ksh.
 
97
for as_var in ENV MAIL MAILPATH
 
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
99
done
 
100
PS1='$ '
 
101
PS2='> '
 
102
PS4='+ '
 
103
 
 
104
# NLS nuisances.
 
105
for as_var in \
 
106
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
107
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
108
  LC_TELEPHONE LC_TIME
 
109
do
 
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
111
    eval $as_var=C; export $as_var
 
112
  else
 
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
114
  fi
 
115
done
 
116
 
 
117
# Required to use basename.
 
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
120
  as_expr=expr
 
121
else
 
122
  as_expr=false
 
123
fi
 
124
 
 
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
126
  as_basename=basename
 
127
else
 
128
  as_basename=false
 
129
fi
 
130
 
 
131
 
 
132
# Name of the executable.
 
133
as_me=`$as_basename -- "$0" ||
 
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
135
         X"$0" : 'X\(//\)$' \| \
 
136
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
137
echo X/"$0" |
 
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\/\)$/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          /^X\/\(\/\).*/{
 
147
            s//\1/
 
148
            q
 
149
          }
 
150
          s/.*/./; q'`
 
151
 
 
152
# CDPATH.
 
153
$as_unset CDPATH
 
154
 
 
155
 
 
156
if test "x$CONFIG_SHELL" = x; then
 
157
  if (eval ":") 2>/dev/null; then
 
158
  as_have_required=yes
 
159
else
 
160
  as_have_required=no
 
161
fi
 
162
 
 
163
  if test $as_have_required = yes &&     (eval ":
 
164
(as_func_return () {
 
165
  (exit \$1)
 
166
}
 
167
as_func_success () {
 
168
  as_func_return 0
 
169
}
 
170
as_func_failure () {
 
171
  as_func_return 1
 
172
}
 
173
as_func_ret_success () {
 
174
  return 0
 
175
}
 
176
as_func_ret_failure () {
 
177
  return 1
 
178
}
 
179
 
 
180
exitcode=0
 
181
if as_func_success; then
 
182
  :
 
183
else
 
184
  exitcode=1
 
185
  echo as_func_success failed.
 
186
fi
 
187
 
 
188
if as_func_failure; then
 
189
  exitcode=1
 
190
  echo as_func_failure succeeded.
 
191
fi
 
192
 
 
193
if as_func_ret_success; then
 
194
  :
 
195
else
 
196
  exitcode=1
 
197
  echo as_func_ret_success failed.
 
198
fi
 
199
 
 
200
if as_func_ret_failure; then
 
201
  exitcode=1
 
202
  echo as_func_ret_failure succeeded.
 
203
fi
 
204
 
 
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
206
  :
 
207
else
 
208
  exitcode=1
 
209
  echo positional parameters were not saved.
 
210
fi
 
211
 
 
212
test \$exitcode = 0) || { (exit 1); exit 1; }
 
213
 
 
214
(
 
215
  as_lineno_1=\$LINENO
 
216
  as_lineno_2=\$LINENO
 
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
219
") 2> /dev/null; then
 
220
  :
 
221
else
 
222
  as_candidate_shells=
 
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
225
do
 
226
  IFS=$as_save_IFS
 
227
  test -z "$as_dir" && as_dir=.
 
228
  case $as_dir in
 
229
         /*)
 
230
           for as_base in sh bash ksh sh5; do
 
231
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
232
           done;;
 
233
       esac
 
234
done
 
235
IFS=$as_save_IFS
 
236
 
 
237
 
 
238
      for as_shell in $as_candidate_shells $SHELL; do
 
239
         # Try only shells that exist, to save several forks.
 
240
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
241
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
243
  emulate sh
 
244
  NULLCMD=:
 
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
246
  # is contrary to our usage.  Disable this feature.
 
247
  alias -g '${1+"$@"}'='"$@"'
 
248
  setopt NO_GLOB_SUBST
 
249
else
 
250
  case `(set -o) 2>/dev/null` in
 
251
  *posix*) set -o posix ;;
 
252
esac
 
253
 
 
254
fi
 
255
 
 
256
 
 
257
:
 
258
_ASEOF
 
259
}; then
 
260
  CONFIG_SHELL=$as_shell
 
261
               as_have_required=yes
 
262
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
264
  emulate sh
 
265
  NULLCMD=:
 
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
267
  # is contrary to our usage.  Disable this feature.
 
268
  alias -g '${1+"$@"}'='"$@"'
 
269
  setopt NO_GLOB_SUBST
 
270
else
 
271
  case `(set -o) 2>/dev/null` in
 
272
  *posix*) set -o posix ;;
 
273
esac
 
274
 
 
275
fi
 
276
 
 
277
 
 
278
:
 
279
(as_func_return () {
 
280
  (exit $1)
 
281
}
 
282
as_func_success () {
 
283
  as_func_return 0
 
284
}
 
285
as_func_failure () {
 
286
  as_func_return 1
 
287
}
 
288
as_func_ret_success () {
 
289
  return 0
 
290
}
 
291
as_func_ret_failure () {
 
292
  return 1
 
293
}
 
294
 
 
295
exitcode=0
 
296
if as_func_success; then
 
297
  :
 
298
else
 
299
  exitcode=1
 
300
  echo as_func_success failed.
 
301
fi
 
302
 
 
303
if as_func_failure; then
 
304
  exitcode=1
 
305
  echo as_func_failure succeeded.
 
306
fi
 
307
 
 
308
if as_func_ret_success; then
 
309
  :
 
310
else
 
311
  exitcode=1
 
312
  echo as_func_ret_success failed.
 
313
fi
 
314
 
 
315
if as_func_ret_failure; then
 
316
  exitcode=1
 
317
  echo as_func_ret_failure succeeded.
 
318
fi
 
319
 
 
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
321
  :
 
322
else
 
323
  exitcode=1
 
324
  echo positional parameters were not saved.
 
325
fi
 
326
 
 
327
test $exitcode = 0) || { (exit 1); exit 1; }
 
328
 
 
329
(
 
330
  as_lineno_1=$LINENO
 
331
  as_lineno_2=$LINENO
 
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
334
 
 
335
_ASEOF
 
336
}; then
 
337
  break
 
338
fi
 
339
 
 
340
fi
 
341
 
 
342
      done
 
343
 
 
344
      if test "x$CONFIG_SHELL" != x; then
 
345
  for as_var in BASH_ENV ENV
 
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
347
        done
 
348
        export CONFIG_SHELL
 
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
350
fi
 
351
 
 
352
 
 
353
    if test $as_have_required = no; then
 
354
  echo This script requires a shell more modern than all the
 
355
      echo shells that I found on your system.  Please install a
 
356
      echo modern shell, or manually run the script under such a
 
357
      echo shell if you do have one.
 
358
      { (exit 1); exit 1; }
 
359
fi
 
360
 
 
361
 
 
362
fi
 
363
 
 
364
fi
 
365
 
 
366
 
 
367
 
 
368
(eval "as_func_return () {
 
369
  (exit \$1)
 
370
}
 
371
as_func_success () {
 
372
  as_func_return 0
 
373
}
 
374
as_func_failure () {
 
375
  as_func_return 1
 
376
}
 
377
as_func_ret_success () {
 
378
  return 0
 
379
}
 
380
as_func_ret_failure () {
 
381
  return 1
 
382
}
 
383
 
 
384
exitcode=0
 
385
if as_func_success; then
 
386
  :
 
387
else
 
388
  exitcode=1
 
389
  echo as_func_success failed.
 
390
fi
 
391
 
 
392
if as_func_failure; then
 
393
  exitcode=1
 
394
  echo as_func_failure succeeded.
 
395
fi
 
396
 
 
397
if as_func_ret_success; then
 
398
  :
 
399
else
 
400
  exitcode=1
 
401
  echo as_func_ret_success failed.
 
402
fi
 
403
 
 
404
if as_func_ret_failure; then
 
405
  exitcode=1
 
406
  echo as_func_ret_failure succeeded.
 
407
fi
 
408
 
 
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
410
  :
 
411
else
 
412
  exitcode=1
 
413
  echo positional parameters were not saved.
 
414
fi
 
415
 
 
416
test \$exitcode = 0") || {
 
417
  echo No shell found that supports shell functions.
 
418
  echo Please tell autoconf@gnu.org about your system,
 
419
  echo including any error possibly output before this
 
420
  echo message
 
421
}
 
422
 
 
423
 
 
424
 
 
425
  as_lineno_1=$LINENO
 
426
  as_lineno_2=$LINENO
 
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
429
 
 
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
432
  # line-number line after each line using $LINENO; the second 'sed'
 
433
  # does the real work.  The second script uses 'N' to pair each
 
434
  # line-number line with the line containing $LINENO, and appends
 
435
  # trailing '-' during substitution so that $LINENO is not a special
 
436
  # case at line end.
 
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
440
  sed -n '
 
441
    p
 
442
    /[$]LINENO/=
 
443
  ' <$as_myself |
 
444
    sed '
 
445
      s/[$]LINENO.*/&-/
 
446
      t lineno
 
447
      b
 
448
      :lineno
 
449
      N
 
450
      :loop
 
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
452
      t loop
 
453
      s/-\n.*//
 
454
    ' >$as_me.lineno &&
 
455
  chmod +x "$as_me.lineno" ||
 
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
457
   { (exit 1); exit 1; }; }
 
458
 
 
459
  # Don't try to exec as it changes $[0], causing all sort of problems
 
460
  # (the dirname of $[0] is not the place where we might find the
 
461
  # original and so on.  Autoconf is especially sensitive to this).
 
462
  . "./$as_me.lineno"
 
463
  # Exit status is that of the last command.
 
464
  exit
 
465
}
 
466
 
 
467
 
 
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
469
  as_dirname=dirname
 
470
else
 
471
  as_dirname=false
 
472
fi
 
473
 
 
474
ECHO_C= ECHO_N= ECHO_T=
 
475
case `echo -n x` in
 
476
-n*)
 
477
  case `echo 'x\c'` in
 
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
479
  *)   ECHO_C='\c';;
 
480
  esac;;
 
481
*)
 
482
  ECHO_N='-n';;
 
483
esac
 
484
 
 
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
487
  as_expr=expr
 
488
else
 
489
  as_expr=false
 
490
fi
 
491
 
 
492
rm -f conf$$ conf$$.exe conf$$.file
 
493
if test -d conf$$.dir; then
 
494
  rm -f conf$$.dir/conf$$.file
 
495
else
 
496
  rm -f conf$$.dir
 
497
  mkdir conf$$.dir
 
498
fi
 
499
echo >conf$$.file
 
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
501
  as_ln_s='ln -s'
 
502
  # ... but there are two gotchas:
 
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
505
  # In both cases, we have to default to `cp -p'.
 
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
507
    as_ln_s='cp -p'
 
508
elif ln conf$$.file conf$$ 2>/dev/null; then
 
509
  as_ln_s=ln
 
510
else
 
511
  as_ln_s='cp -p'
 
512
fi
 
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
514
rmdir conf$$.dir 2>/dev/null
 
515
 
 
516
if mkdir -p . 2>/dev/null; then
 
517
  as_mkdir_p=:
 
518
else
 
519
  test -d ./-p && rmdir ./-p
 
520
  as_mkdir_p=false
 
521
fi
 
522
 
 
523
if test -x / >/dev/null 2>&1; then
 
524
  as_test_x='test -x'
 
525
else
 
526
  if ls -dL / >/dev/null 2>&1; then
 
527
    as_ls_L_option=L
 
528
  else
 
529
    as_ls_L_option=
 
530
  fi
 
531
  as_test_x='
 
532
    eval sh -c '\''
 
533
      if test -d "$1"; then
 
534
        test -d "$1/.";
 
535
      else
 
536
        case $1 in
 
537
        -*)set "./$1";;
 
538
        esac;
 
539
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
540
        ???[sx]*):;;*)false;;esac;fi
 
541
    '\'' sh
 
542
  '
 
543
fi
 
544
as_executable_p=$as_test_x
 
545
 
 
546
# Sed expression to map a string onto a valid CPP name.
 
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
548
 
 
549
# Sed expression to map a string onto a valid variable name.
 
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
551
 
 
552
 
 
553
 
 
554
 
 
555
# Check that we are running under the correct shell.
 
556
SHELL=${CONFIG_SHELL-/bin/sh}
 
557
 
 
558
case X$ECHO in
 
559
X*--fallback-echo)
 
560
  # Remove one level of quotation (which was required for Make).
 
561
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
562
  ;;
 
563
esac
 
564
 
 
565
echo=${ECHO-echo}
 
566
if test "X$1" = X--no-reexec; then
 
567
  # Discard the --no-reexec flag, and continue.
 
568
  shift
 
569
elif test "X$1" = X--fallback-echo; then
 
570
  # Avoid inline document here, it may be left over
 
571
  :
 
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
573
  # Yippee, $echo works!
 
574
  :
 
575
else
 
576
  # Restart under the correct shell.
 
577
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
578
fi
 
579
 
 
580
if test "X$1" = X--fallback-echo; then
 
581
  # used as fallback echo
 
582
  shift
 
583
  cat <<EOF
 
584
$*
 
585
EOF
 
586
  exit 0
 
587
fi
 
588
 
 
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
590
# if CDPATH is set.
 
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
592
 
 
593
if test -z "$ECHO"; then
 
594
if test "X${echo_test_string+set}" != Xset; then
 
595
# find a string as large as possible, as long as the shell can cope with it
 
596
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
597
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
598
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
599
       echo_test_string=`eval $cmd` &&
 
600
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
601
    then
 
602
      break
 
603
    fi
 
604
  done
 
605
fi
 
606
 
 
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
608
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
609
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
610
  :
 
611
else
 
612
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
613
  # backslashes.  This makes it impossible to quote backslashes using
 
614
  #   echo "$something" | sed 's/\\/\\\\/g'
 
615
  #
 
616
  # So, first we look for a working echo in the user's PATH.
 
617
 
 
618
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
619
  for dir in $PATH /usr/ucb; do
 
620
    IFS="$lt_save_ifs"
 
621
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
622
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
623
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
624
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
625
      echo="$dir/echo"
 
626
      break
 
627
    fi
 
628
  done
 
629
  IFS="$lt_save_ifs"
 
630
 
 
631
  if test "X$echo" = Xecho; then
 
632
    # We didn't find a better echo, so look for alternatives.
 
633
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
634
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
635
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
636
      # This shell has a builtin print -r that does the trick.
 
637
      echo='print -r'
 
638
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
639
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
640
      # If we have ksh, try running configure again with it.
 
641
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
642
      export ORIGINAL_CONFIG_SHELL
 
643
      CONFIG_SHELL=/bin/ksh
 
644
      export CONFIG_SHELL
 
645
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
646
    else
 
647
      # Try using printf.
 
648
      echo='printf %s\n'
 
649
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
650
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
651
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
652
        # Cool, printf works
 
653
        :
 
654
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
655
           test "X$echo_testing_string" = 'X\t' &&
 
656
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
657
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
658
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
659
        export CONFIG_SHELL
 
660
        SHELL="$CONFIG_SHELL"
 
661
        export SHELL
 
662
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
663
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
664
           test "X$echo_testing_string" = 'X\t' &&
 
665
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
666
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
667
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
668
      else
 
669
        # maybe with a smaller string...
 
670
        prev=:
 
671
 
 
672
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
673
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
674
          then
 
675
            break
 
676
          fi
 
677
          prev="$cmd"
 
678
        done
 
679
 
 
680
        if test "$prev" != 'sed 50q "$0"'; then
 
681
          echo_test_string=`eval $prev`
 
682
          export echo_test_string
 
683
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
684
        else
 
685
          # Oops.  We lost completely, so just stick with echo.
 
686
          echo=echo
 
687
        fi
 
688
      fi
 
689
    fi
 
690
  fi
 
691
fi
 
692
fi
 
693
 
 
694
# Copy echo and quote the copy suitably for passing to libtool from
 
695
# the Makefile, instead of quoting the original, which is used later.
 
696
ECHO=$echo
 
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
698
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
699
fi
 
700
 
 
701
 
 
702
 
 
703
 
 
704
tagnames=${tagnames+${tagnames},}CXX
 
705
 
 
706
tagnames=${tagnames+${tagnames},}F77
 
707
 
 
708
exec 7<&0 </dev/null 6>&1
 
709
 
 
710
# Name of the host.
 
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
712
# so uname gets run too.
 
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
714
 
 
715
#
 
716
# Initializations.
 
717
#
 
718
ac_default_prefix=/usr/local
 
719
ac_clean_files=
 
720
ac_config_libobj_dir=.
 
721
LIBOBJS=
 
722
cross_compiling=no
 
723
subdirs=
 
724
MFLAGS=
 
725
MAKEFLAGS=
 
726
SHELL=${CONFIG_SHELL-/bin/sh}
 
727
 
 
728
# Identity of this package.
 
729
PACKAGE_NAME='Ceph distributed file system'
 
730
PACKAGE_TARNAME='ceph'
 
731
PACKAGE_VERSION='.1'
 
732
PACKAGE_STRING='Ceph distributed file system .1'
 
733
PACKAGE_BUGREPORT='Sage Weil <sage@newdream.net>'
 
734
 
 
735
# Factoring default headers for most tests.
 
736
ac_includes_default="\
 
737
#include <stdio.h>
 
738
#ifdef HAVE_SYS_TYPES_H
 
739
# include <sys/types.h>
 
740
#endif
 
741
#ifdef HAVE_SYS_STAT_H
 
742
# include <sys/stat.h>
 
743
#endif
 
744
#ifdef STDC_HEADERS
 
745
# include <stdlib.h>
 
746
# include <stddef.h>
 
747
#else
 
748
# ifdef HAVE_STDLIB_H
 
749
#  include <stdlib.h>
 
750
# endif
 
751
#endif
 
752
#ifdef HAVE_STRING_H
 
753
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
754
#  include <memory.h>
 
755
# endif
 
756
# include <string.h>
 
757
#endif
 
758
#ifdef HAVE_STRINGS_H
 
759
# include <strings.h>
 
760
#endif
 
761
#ifdef HAVE_INTTYPES_H
 
762
# include <inttypes.h>
 
763
#endif
 
764
#ifdef HAVE_STDINT_H
 
765
# include <stdint.h>
 
766
#endif
 
767
#ifdef HAVE_UNISTD_H
 
768
# include <unistd.h>
 
769
#endif"
 
770
 
 
771
ac_subst_vars='SHELL
 
772
PATH_SEPARATOR
 
773
PACKAGE_NAME
 
774
PACKAGE_TARNAME
 
775
PACKAGE_VERSION
 
776
PACKAGE_STRING
 
777
PACKAGE_BUGREPORT
 
778
exec_prefix
 
779
prefix
 
780
program_transform_name
 
781
bindir
 
782
sbindir
 
783
libexecdir
 
784
datarootdir
 
785
datadir
 
786
sysconfdir
 
787
sharedstatedir
 
788
localstatedir
 
789
includedir
 
790
oldincludedir
 
791
docdir
 
792
infodir
 
793
htmldir
 
794
dvidir
 
795
pdfdir
 
796
psdir
 
797
libdir
 
798
localedir
 
799
mandir
 
800
DEFS
 
801
ECHO_C
 
802
ECHO_N
 
803
ECHO_T
 
804
LIBS
 
805
build_alias
 
806
host_alias
 
807
target_alias
 
808
build
 
809
build_cpu
 
810
build_vendor
 
811
build_os
 
812
host
 
813
host_cpu
 
814
host_vendor
 
815
host_os
 
816
target
 
817
target_cpu
 
818
target_vendor
 
819
target_os
 
820
INSTALL_PROGRAM
 
821
INSTALL_SCRIPT
 
822
INSTALL_DATA
 
823
am__isrc
 
824
CYGPATH_W
 
825
PACKAGE
 
826
VERSION
 
827
ACLOCAL
 
828
AUTOCONF
 
829
AUTOMAKE
 
830
AUTOHEADER
 
831
MAKEINFO
 
832
install_sh
 
833
STRIP
 
834
INSTALL_STRIP_PROGRAM
 
835
mkdir_p
 
836
AWK
 
837
SET_MAKE
 
838
am__leading_dot
 
839
AMTAR
 
840
am__tar
 
841
am__untar
 
842
CC
 
843
CFLAGS
 
844
LDFLAGS
 
845
CPPFLAGS
 
846
ac_ct_CC
 
847
EXEEXT
 
848
OBJEXT
 
849
DEPDIR
 
850
am__include
 
851
am__quote
 
852
AMDEP_TRUE
 
853
AMDEP_FALSE
 
854
AMDEPBACKSLASH
 
855
CCDEPMODE
 
856
am__fastdepCC_TRUE
 
857
am__fastdepCC_FALSE
 
858
SED
 
859
GREP
 
860
EGREP
 
861
LN_S
 
862
ECHO
 
863
AR
 
864
RANLIB
 
865
DSYMUTIL
 
866
NMEDIT
 
867
CPP
 
868
CXX
 
869
CXXFLAGS
 
870
ac_ct_CXX
 
871
CXXDEPMODE
 
872
am__fastdepCXX_TRUE
 
873
am__fastdepCXX_FALSE
 
874
CXXCPP
 
875
F77
 
876
FFLAGS
 
877
ac_ct_F77
 
878
LIBTOOL
 
879
WITH_DEBUG_TRUE
 
880
WITH_DEBUG_FALSE
 
881
WITH_RADOSGW_TRUE
 
882
WITH_RADOSGW_FALSE
 
883
LIBFUSE
 
884
WITH_FUSE_TRUE
 
885
WITH_FUSE_FALSE
 
886
WITH_HADOOPCLIENT_TRUE
 
887
WITH_HADOOPCLIENT_FALSE
 
888
WITH_LIBATOMIC_TRUE
 
889
WITH_LIBATOMIC_FALSE
 
890
LIBOBJS
 
891
LTLIBOBJS'
 
892
ac_subst_files=''
 
893
      ac_precious_vars='build_alias
 
894
host_alias
 
895
target_alias
 
896
CC
 
897
CFLAGS
 
898
LDFLAGS
 
899
LIBS
 
900
CPPFLAGS
 
901
CPP
 
902
CXX
 
903
CXXFLAGS
 
904
CCC
 
905
CXXCPP
 
906
F77
 
907
FFLAGS'
 
908
 
 
909
 
 
910
# Initialize some variables set by options.
 
911
ac_init_help=
 
912
ac_init_version=false
 
913
# The variables have the same names as the options, with
 
914
# dashes changed to underlines.
 
915
cache_file=/dev/null
 
916
exec_prefix=NONE
 
917
no_create=
 
918
no_recursion=
 
919
prefix=NONE
 
920
program_prefix=NONE
 
921
program_suffix=NONE
 
922
program_transform_name=s,x,x,
 
923
silent=
 
924
site=
 
925
srcdir=
 
926
verbose=
 
927
x_includes=NONE
 
928
x_libraries=NONE
 
929
 
 
930
# Installation directory options.
 
931
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
932
# and all the variables that are supposed to be based on exec_prefix
 
933
# by default will actually change.
 
934
# Use braces instead of parens because sh, perl, etc. also accept them.
 
935
# (The list follows the same order as the GNU Coding Standards.)
 
936
bindir='${exec_prefix}/bin'
 
937
sbindir='${exec_prefix}/sbin'
 
938
libexecdir='${exec_prefix}/libexec'
 
939
datarootdir='${prefix}/share'
 
940
datadir='${datarootdir}'
 
941
sysconfdir='${prefix}/etc'
 
942
sharedstatedir='${prefix}/com'
 
943
localstatedir='${prefix}/var'
 
944
includedir='${prefix}/include'
 
945
oldincludedir='/usr/include'
 
946
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
947
infodir='${datarootdir}/info'
 
948
htmldir='${docdir}'
 
949
dvidir='${docdir}'
 
950
pdfdir='${docdir}'
 
951
psdir='${docdir}'
 
952
libdir='${exec_prefix}/lib'
 
953
localedir='${datarootdir}/locale'
 
954
mandir='${datarootdir}/man'
 
955
 
 
956
ac_prev=
 
957
ac_dashdash=
 
958
for ac_option
 
959
do
 
960
  # If the previous option needs an argument, assign it.
 
961
  if test -n "$ac_prev"; then
 
962
    eval $ac_prev=\$ac_option
 
963
    ac_prev=
 
964
    continue
 
965
  fi
 
966
 
 
967
  case $ac_option in
 
968
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
969
  *)    ac_optarg=yes ;;
 
970
  esac
 
971
 
 
972
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
973
 
 
974
  case $ac_dashdash$ac_option in
 
975
  --)
 
976
    ac_dashdash=yes ;;
 
977
 
 
978
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
979
    ac_prev=bindir ;;
 
980
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
981
    bindir=$ac_optarg ;;
 
982
 
 
983
  -build | --build | --buil | --bui | --bu)
 
984
    ac_prev=build_alias ;;
 
985
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
986
    build_alias=$ac_optarg ;;
 
987
 
 
988
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
989
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
990
    ac_prev=cache_file ;;
 
991
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
992
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
993
    cache_file=$ac_optarg ;;
 
994
 
 
995
  --config-cache | -C)
 
996
    cache_file=config.cache ;;
 
997
 
 
998
  -datadir | --datadir | --datadi | --datad)
 
999
    ac_prev=datadir ;;
 
1000
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1001
    datadir=$ac_optarg ;;
 
1002
 
 
1003
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1004
  | --dataroo | --dataro | --datar)
 
1005
    ac_prev=datarootdir ;;
 
1006
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1007
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1008
    datarootdir=$ac_optarg ;;
 
1009
 
 
1010
  -disable-* | --disable-*)
 
1011
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1012
    # Reject names that are not valid shell variable names.
 
1013
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1014
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1015
   { (exit 1); exit 1; }; }
 
1016
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1017
    eval enable_$ac_feature=no ;;
 
1018
 
 
1019
  -docdir | --docdir | --docdi | --doc | --do)
 
1020
    ac_prev=docdir ;;
 
1021
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1022
    docdir=$ac_optarg ;;
 
1023
 
 
1024
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1025
    ac_prev=dvidir ;;
 
1026
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1027
    dvidir=$ac_optarg ;;
 
1028
 
 
1029
  -enable-* | --enable-*)
 
1030
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1031
    # Reject names that are not valid shell variable names.
 
1032
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1033
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1034
   { (exit 1); exit 1; }; }
 
1035
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1036
    eval enable_$ac_feature=\$ac_optarg ;;
 
1037
 
 
1038
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1039
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1040
  | --exec | --exe | --ex)
 
1041
    ac_prev=exec_prefix ;;
 
1042
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1043
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1044
  | --exec=* | --exe=* | --ex=*)
 
1045
    exec_prefix=$ac_optarg ;;
 
1046
 
 
1047
  -gas | --gas | --ga | --g)
 
1048
    # Obsolete; use --with-gas.
 
1049
    with_gas=yes ;;
 
1050
 
 
1051
  -help | --help | --hel | --he | -h)
 
1052
    ac_init_help=long ;;
 
1053
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1054
    ac_init_help=recursive ;;
 
1055
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1056
    ac_init_help=short ;;
 
1057
 
 
1058
  -host | --host | --hos | --ho)
 
1059
    ac_prev=host_alias ;;
 
1060
  -host=* | --host=* | --hos=* | --ho=*)
 
1061
    host_alias=$ac_optarg ;;
 
1062
 
 
1063
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1064
    ac_prev=htmldir ;;
 
1065
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1066
  | --ht=*)
 
1067
    htmldir=$ac_optarg ;;
 
1068
 
 
1069
  -includedir | --includedir | --includedi | --included | --include \
 
1070
  | --includ | --inclu | --incl | --inc)
 
1071
    ac_prev=includedir ;;
 
1072
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1073
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1074
    includedir=$ac_optarg ;;
 
1075
 
 
1076
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1077
    ac_prev=infodir ;;
 
1078
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1079
    infodir=$ac_optarg ;;
 
1080
 
 
1081
  -libdir | --libdir | --libdi | --libd)
 
1082
    ac_prev=libdir ;;
 
1083
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1084
    libdir=$ac_optarg ;;
 
1085
 
 
1086
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1087
  | --libexe | --libex | --libe)
 
1088
    ac_prev=libexecdir ;;
 
1089
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1090
  | --libexe=* | --libex=* | --libe=*)
 
1091
    libexecdir=$ac_optarg ;;
 
1092
 
 
1093
  -localedir | --localedir | --localedi | --localed | --locale)
 
1094
    ac_prev=localedir ;;
 
1095
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1096
    localedir=$ac_optarg ;;
 
1097
 
 
1098
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1099
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1100
    ac_prev=localstatedir ;;
 
1101
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1102
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1103
    localstatedir=$ac_optarg ;;
 
1104
 
 
1105
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1106
    ac_prev=mandir ;;
 
1107
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1108
    mandir=$ac_optarg ;;
 
1109
 
 
1110
  -nfp | --nfp | --nf)
 
1111
    # Obsolete; use --without-fp.
 
1112
    with_fp=no ;;
 
1113
 
 
1114
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1115
  | --no-cr | --no-c | -n)
 
1116
    no_create=yes ;;
 
1117
 
 
1118
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1119
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1120
    no_recursion=yes ;;
 
1121
 
 
1122
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1123
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1124
  | --oldin | --oldi | --old | --ol | --o)
 
1125
    ac_prev=oldincludedir ;;
 
1126
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1127
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1128
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1129
    oldincludedir=$ac_optarg ;;
 
1130
 
 
1131
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1132
    ac_prev=prefix ;;
 
1133
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1134
    prefix=$ac_optarg ;;
 
1135
 
 
1136
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1137
  | --program-pre | --program-pr | --program-p)
 
1138
    ac_prev=program_prefix ;;
 
1139
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1140
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1141
    program_prefix=$ac_optarg ;;
 
1142
 
 
1143
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1144
  | --program-suf | --program-su | --program-s)
 
1145
    ac_prev=program_suffix ;;
 
1146
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1147
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1148
    program_suffix=$ac_optarg ;;
 
1149
 
 
1150
  -program-transform-name | --program-transform-name \
 
1151
  | --program-transform-nam | --program-transform-na \
 
1152
  | --program-transform-n | --program-transform- \
 
1153
  | --program-transform | --program-transfor \
 
1154
  | --program-transfo | --program-transf \
 
1155
  | --program-trans | --program-tran \
 
1156
  | --progr-tra | --program-tr | --program-t)
 
1157
    ac_prev=program_transform_name ;;
 
1158
  -program-transform-name=* | --program-transform-name=* \
 
1159
  | --program-transform-nam=* | --program-transform-na=* \
 
1160
  | --program-transform-n=* | --program-transform-=* \
 
1161
  | --program-transform=* | --program-transfor=* \
 
1162
  | --program-transfo=* | --program-transf=* \
 
1163
  | --program-trans=* | --program-tran=* \
 
1164
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1165
    program_transform_name=$ac_optarg ;;
 
1166
 
 
1167
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1168
    ac_prev=pdfdir ;;
 
1169
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1170
    pdfdir=$ac_optarg ;;
 
1171
 
 
1172
  -psdir | --psdir | --psdi | --psd | --ps)
 
1173
    ac_prev=psdir ;;
 
1174
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1175
    psdir=$ac_optarg ;;
 
1176
 
 
1177
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1178
  | -silent | --silent | --silen | --sile | --sil)
 
1179
    silent=yes ;;
 
1180
 
 
1181
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1182
    ac_prev=sbindir ;;
 
1183
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1184
  | --sbi=* | --sb=*)
 
1185
    sbindir=$ac_optarg ;;
 
1186
 
 
1187
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1188
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1189
  | --sharedst | --shareds | --shared | --share | --shar \
 
1190
  | --sha | --sh)
 
1191
    ac_prev=sharedstatedir ;;
 
1192
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1193
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1194
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1195
  | --sha=* | --sh=*)
 
1196
    sharedstatedir=$ac_optarg ;;
 
1197
 
 
1198
  -site | --site | --sit)
 
1199
    ac_prev=site ;;
 
1200
  -site=* | --site=* | --sit=*)
 
1201
    site=$ac_optarg ;;
 
1202
 
 
1203
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1204
    ac_prev=srcdir ;;
 
1205
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1206
    srcdir=$ac_optarg ;;
 
1207
 
 
1208
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1209
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1210
    ac_prev=sysconfdir ;;
 
1211
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1212
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1213
    sysconfdir=$ac_optarg ;;
 
1214
 
 
1215
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1216
    ac_prev=target_alias ;;
 
1217
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1218
    target_alias=$ac_optarg ;;
 
1219
 
 
1220
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1221
    verbose=yes ;;
 
1222
 
 
1223
  -version | --version | --versio | --versi | --vers | -V)
 
1224
    ac_init_version=: ;;
 
1225
 
 
1226
  -with-* | --with-*)
 
1227
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1228
    # Reject names that are not valid shell variable names.
 
1229
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1230
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1231
   { (exit 1); exit 1; }; }
 
1232
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1233
    eval with_$ac_package=\$ac_optarg ;;
 
1234
 
 
1235
  -without-* | --without-*)
 
1236
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1237
    # Reject names that are not valid shell variable names.
 
1238
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1239
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1240
   { (exit 1); exit 1; }; }
 
1241
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1242
    eval with_$ac_package=no ;;
 
1243
 
 
1244
  --x)
 
1245
    # Obsolete; use --with-x.
 
1246
    with_x=yes ;;
 
1247
 
 
1248
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1249
  | --x-incl | --x-inc | --x-in | --x-i)
 
1250
    ac_prev=x_includes ;;
 
1251
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1252
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1253
    x_includes=$ac_optarg ;;
 
1254
 
 
1255
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1256
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1257
    ac_prev=x_libraries ;;
 
1258
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1259
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1260
    x_libraries=$ac_optarg ;;
 
1261
 
 
1262
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1263
Try \`$0 --help' for more information." >&2
 
1264
   { (exit 1); exit 1; }; }
 
1265
    ;;
 
1266
 
 
1267
  *=*)
 
1268
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1269
    # Reject names that are not valid shell variable names.
 
1270
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1271
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1272
   { (exit 1); exit 1; }; }
 
1273
    eval $ac_envvar=\$ac_optarg
 
1274
    export $ac_envvar ;;
 
1275
 
 
1276
  *)
 
1277
    # FIXME: should be removed in autoconf 3.0.
 
1278
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1279
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1280
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1281
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1282
    ;;
 
1283
 
 
1284
  esac
 
1285
done
 
1286
 
 
1287
if test -n "$ac_prev"; then
 
1288
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1289
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1290
   { (exit 1); exit 1; }; }
 
1291
fi
 
1292
 
 
1293
# Be sure to have absolute directory names.
 
1294
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1295
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1296
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1297
                libdir localedir mandir
 
1298
do
 
1299
  eval ac_val=\$$ac_var
 
1300
  case $ac_val in
 
1301
    [\\/$]* | ?:[\\/]* )  continue;;
 
1302
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1303
  esac
 
1304
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1305
   { (exit 1); exit 1; }; }
 
1306
done
 
1307
 
 
1308
# There might be people who depend on the old broken behavior: `$host'
 
1309
# used to hold the argument of --host etc.
 
1310
# FIXME: To remove some day.
 
1311
build=$build_alias
 
1312
host=$host_alias
 
1313
target=$target_alias
 
1314
 
 
1315
# FIXME: To remove some day.
 
1316
if test "x$host_alias" != x; then
 
1317
  if test "x$build_alias" = x; then
 
1318
    cross_compiling=maybe
 
1319
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1320
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1321
  elif test "x$build_alias" != "x$host_alias"; then
 
1322
    cross_compiling=yes
 
1323
  fi
 
1324
fi
 
1325
 
 
1326
ac_tool_prefix=
 
1327
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1328
 
 
1329
test "$silent" = yes && exec 6>/dev/null
 
1330
 
 
1331
 
 
1332
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1333
ac_ls_di=`ls -di .` &&
 
1334
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1335
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1336
   { (exit 1); exit 1; }; }
 
1337
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1338
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1339
   { (exit 1); exit 1; }; }
 
1340
 
 
1341
 
 
1342
# Find the source files, if location was not specified.
 
1343
if test -z "$srcdir"; then
 
1344
  ac_srcdir_defaulted=yes
 
1345
  # Try the directory containing this script, then the parent directory.
 
1346
  ac_confdir=`$as_dirname -- "$0" ||
 
1347
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1348
         X"$0" : 'X\(//\)[^/]' \| \
 
1349
         X"$0" : 'X\(//\)$' \| \
 
1350
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1351
echo X"$0" |
 
1352
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1353
            s//\1/
 
1354
            q
 
1355
          }
 
1356
          /^X\(\/\/\)[^/].*/{
 
1357
            s//\1/
 
1358
            q
 
1359
          }
 
1360
          /^X\(\/\/\)$/{
 
1361
            s//\1/
 
1362
            q
 
1363
          }
 
1364
          /^X\(\/\).*/{
 
1365
            s//\1/
 
1366
            q
 
1367
          }
 
1368
          s/.*/./; q'`
 
1369
  srcdir=$ac_confdir
 
1370
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1371
    srcdir=..
 
1372
  fi
 
1373
else
 
1374
  ac_srcdir_defaulted=no
 
1375
fi
 
1376
if test ! -r "$srcdir/$ac_unique_file"; then
 
1377
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1378
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1379
   { (exit 1); exit 1; }; }
 
1380
fi
 
1381
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1382
ac_abs_confdir=`(
 
1383
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1384
   { (exit 1); exit 1; }; }
 
1385
        pwd)`
 
1386
# When building in place, set srcdir=.
 
1387
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1388
  srcdir=.
 
1389
fi
 
1390
# Remove unnecessary trailing slashes from srcdir.
 
1391
# Double slashes in file names in object file debugging info
 
1392
# mess up M-x gdb in Emacs.
 
1393
case $srcdir in
 
1394
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1395
esac
 
1396
for ac_var in $ac_precious_vars; do
 
1397
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1398
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1399
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1400
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1401
done
 
1402
 
 
1403
#
 
1404
# Report the --help message.
 
1405
#
 
1406
if test "$ac_init_help" = "long"; then
 
1407
  # Omit some internal or obsolete options to make the list less imposing.
 
1408
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1409
  cat <<_ACEOF
 
1410
\`configure' configures Ceph distributed file system .1 to adapt to many kinds of systems.
 
1411
 
 
1412
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1413
 
 
1414
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1415
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1416
 
 
1417
Defaults for the options are specified in brackets.
 
1418
 
 
1419
Configuration:
 
1420
  -h, --help              display this help and exit
 
1421
      --help=short        display options specific to this package
 
1422
      --help=recursive    display the short help of all the included packages
 
1423
  -V, --version           display version information and exit
 
1424
  -q, --quiet, --silent   do not print \`checking...' messages
 
1425
      --cache-file=FILE   cache test results in FILE [disabled]
 
1426
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1427
  -n, --no-create         do not create output files
 
1428
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1429
 
 
1430
Installation directories:
 
1431
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1432
                          [$ac_default_prefix]
 
1433
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1434
                          [PREFIX]
 
1435
 
 
1436
By default, \`make install' will install all the files in
 
1437
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1438
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1439
for instance \`--prefix=\$HOME'.
 
1440
 
 
1441
For better control, use the options below.
 
1442
 
 
1443
Fine tuning of the installation directories:
 
1444
  --bindir=DIR           user executables [EPREFIX/bin]
 
1445
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1446
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1447
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1448
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1449
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1450
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1451
  --includedir=DIR       C header files [PREFIX/include]
 
1452
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1453
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1454
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1455
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1456
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1457
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1458
  --docdir=DIR           documentation root [DATAROOTDIR/doc/ceph]
 
1459
  --htmldir=DIR          html documentation [DOCDIR]
 
1460
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1461
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1462
  --psdir=DIR            ps documentation [DOCDIR]
 
1463
_ACEOF
 
1464
 
 
1465
  cat <<\_ACEOF
 
1466
 
 
1467
Program names:
 
1468
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1469
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1470
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1471
 
 
1472
System types:
 
1473
  --build=BUILD     configure for building on BUILD [guessed]
 
1474
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1475
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1476
_ACEOF
 
1477
fi
 
1478
 
 
1479
if test -n "$ac_init_help"; then
 
1480
  case $ac_init_help in
 
1481
     short | recursive ) echo "Configuration of Ceph distributed file system .1:";;
 
1482
   esac
 
1483
  cat <<\_ACEOF
 
1484
 
 
1485
Optional Features:
 
1486
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1487
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1488
  --disable-dependency-tracking  speeds up one-time build
 
1489
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1490
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1491
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1492
  --enable-fast-install[=PKGS]
 
1493
                          optimize for fast installation [default=yes]
 
1494
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1495
 
 
1496
Optional Packages:
 
1497
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1498
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1499
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1500
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1501
                          both]
 
1502
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1503
  --with-debug            build extra debug binaries
 
1504
  --with-radosgw          build RADOS gateway
 
1505
  --with-fuse             use FUSE library for client
 
1506
  --with-hadoop           build hadoop client
 
1507
  --with-libatomic-ops    use libatomic-ops to build Ceph's atomic_t type
 
1508
 
 
1509
Some influential environment variables:
 
1510
  CC          C compiler command
 
1511
  CFLAGS      C compiler flags
 
1512
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1513
              nonstandard directory <lib dir>
 
1514
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1515
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1516
              you have headers in a nonstandard directory <include dir>
 
1517
  CPP         C preprocessor
 
1518
  CXX         C++ compiler command
 
1519
  CXXFLAGS    C++ compiler flags
 
1520
  CXXCPP      C++ preprocessor
 
1521
  F77         Fortran 77 compiler command
 
1522
  FFLAGS      Fortran 77 compiler flags
 
1523
 
 
1524
Use these variables to override the choices made by `configure' or to help
 
1525
it to find libraries and programs with nonstandard names/locations.
 
1526
 
 
1527
Report bugs to <Sage Weil <sage@newdream.net>>.
 
1528
_ACEOF
 
1529
ac_status=$?
 
1530
fi
 
1531
 
 
1532
if test "$ac_init_help" = "recursive"; then
 
1533
  # If there are subdirs, report their specific --help.
 
1534
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1535
    test -d "$ac_dir" || continue
 
1536
    ac_builddir=.
 
1537
 
 
1538
case "$ac_dir" in
 
1539
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1540
*)
 
1541
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1542
  # A ".." for each directory in $ac_dir_suffix.
 
1543
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1544
  case $ac_top_builddir_sub in
 
1545
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1546
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1547
  esac ;;
 
1548
esac
 
1549
ac_abs_top_builddir=$ac_pwd
 
1550
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1551
# for backward compatibility:
 
1552
ac_top_builddir=$ac_top_build_prefix
 
1553
 
 
1554
case $srcdir in
 
1555
  .)  # We are building in place.
 
1556
    ac_srcdir=.
 
1557
    ac_top_srcdir=$ac_top_builddir_sub
 
1558
    ac_abs_top_srcdir=$ac_pwd ;;
 
1559
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1560
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1561
    ac_top_srcdir=$srcdir
 
1562
    ac_abs_top_srcdir=$srcdir ;;
 
1563
  *) # Relative name.
 
1564
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1565
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1566
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1567
esac
 
1568
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1569
 
 
1570
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1571
    # Check for guested configure.
 
1572
    if test -f "$ac_srcdir/configure.gnu"; then
 
1573
      echo &&
 
1574
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1575
    elif test -f "$ac_srcdir/configure"; then
 
1576
      echo &&
 
1577
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1578
    else
 
1579
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1580
    fi || ac_status=$?
 
1581
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1582
  done
 
1583
fi
 
1584
 
 
1585
test -n "$ac_init_help" && exit $ac_status
 
1586
if $ac_init_version; then
 
1587
  cat <<\_ACEOF
 
1588
Ceph distributed file system configure .1
 
1589
generated by GNU Autoconf 2.61
 
1590
 
 
1591
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1592
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1593
This configure script is free software; the Free Software Foundation
 
1594
gives unlimited permission to copy, distribute and modify it.
 
1595
_ACEOF
 
1596
  exit
 
1597
fi
 
1598
cat >config.log <<_ACEOF
 
1599
This file contains any messages produced by compilers while
 
1600
running configure, to aid debugging if configure makes a mistake.
 
1601
 
 
1602
It was created by Ceph distributed file system $as_me .1, which was
 
1603
generated by GNU Autoconf 2.61.  Invocation command line was
 
1604
 
 
1605
  $ $0 $@
 
1606
 
 
1607
_ACEOF
 
1608
exec 5>>config.log
 
1609
{
 
1610
cat <<_ASUNAME
 
1611
## --------- ##
 
1612
## Platform. ##
 
1613
## --------- ##
 
1614
 
 
1615
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1616
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1617
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1618
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1619
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1620
 
 
1621
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1622
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1623
 
 
1624
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1625
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1626
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1627
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1628
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1629
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1630
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1631
 
 
1632
_ASUNAME
 
1633
 
 
1634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1635
for as_dir in $PATH
 
1636
do
 
1637
  IFS=$as_save_IFS
 
1638
  test -z "$as_dir" && as_dir=.
 
1639
  echo "PATH: $as_dir"
 
1640
done
 
1641
IFS=$as_save_IFS
 
1642
 
 
1643
} >&5
 
1644
 
 
1645
cat >&5 <<_ACEOF
 
1646
 
 
1647
 
 
1648
## ----------- ##
 
1649
## Core tests. ##
 
1650
## ----------- ##
 
1651
 
 
1652
_ACEOF
 
1653
 
 
1654
 
 
1655
# Keep a trace of the command line.
 
1656
# Strip out --no-create and --no-recursion so they do not pile up.
 
1657
# Strip out --silent because we don't want to record it for future runs.
 
1658
# Also quote any args containing shell meta-characters.
 
1659
# Make two passes to allow for proper duplicate-argument suppression.
 
1660
ac_configure_args=
 
1661
ac_configure_args0=
 
1662
ac_configure_args1=
 
1663
ac_must_keep_next=false
 
1664
for ac_pass in 1 2
 
1665
do
 
1666
  for ac_arg
 
1667
  do
 
1668
    case $ac_arg in
 
1669
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1670
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1671
    | -silent | --silent | --silen | --sile | --sil)
 
1672
      continue ;;
 
1673
    *\'*)
 
1674
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1675
    esac
 
1676
    case $ac_pass in
 
1677
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1678
    2)
 
1679
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1680
      if test $ac_must_keep_next = true; then
 
1681
        ac_must_keep_next=false # Got value, back to normal.
 
1682
      else
 
1683
        case $ac_arg in
 
1684
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1685
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1686
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1687
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1688
            case "$ac_configure_args0 " in
 
1689
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1690
            esac
 
1691
            ;;
 
1692
          -* ) ac_must_keep_next=true ;;
 
1693
        esac
 
1694
      fi
 
1695
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1696
      ;;
 
1697
    esac
 
1698
  done
 
1699
done
 
1700
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1701
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1702
 
 
1703
# When interrupted or exit'd, cleanup temporary files, and complete
 
1704
# config.log.  We remove comments because anyway the quotes in there
 
1705
# would cause problems or look ugly.
 
1706
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1707
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1708
trap 'exit_status=$?
 
1709
  # Save into config.log some information that might help in debugging.
 
1710
  {
 
1711
    echo
 
1712
 
 
1713
    cat <<\_ASBOX
 
1714
## ---------------- ##
 
1715
## Cache variables. ##
 
1716
## ---------------- ##
 
1717
_ASBOX
 
1718
    echo
 
1719
    # The following way of writing the cache mishandles newlines in values,
 
1720
(
 
1721
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1722
    eval ac_val=\$$ac_var
 
1723
    case $ac_val in #(
 
1724
    *${as_nl}*)
 
1725
      case $ac_var in #(
 
1726
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1727
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1728
      esac
 
1729
      case $ac_var in #(
 
1730
      _ | IFS | as_nl) ;; #(
 
1731
      *) $as_unset $ac_var ;;
 
1732
      esac ;;
 
1733
    esac
 
1734
  done
 
1735
  (set) 2>&1 |
 
1736
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1737
    *${as_nl}ac_space=\ *)
 
1738
      sed -n \
 
1739
        "s/'\''/'\''\\\\'\'''\''/g;
 
1740
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1741
      ;; #(
 
1742
    *)
 
1743
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1744
      ;;
 
1745
    esac |
 
1746
    sort
 
1747
)
 
1748
    echo
 
1749
 
 
1750
    cat <<\_ASBOX
 
1751
## ----------------- ##
 
1752
## Output variables. ##
 
1753
## ----------------- ##
 
1754
_ASBOX
 
1755
    echo
 
1756
    for ac_var in $ac_subst_vars
 
1757
    do
 
1758
      eval ac_val=\$$ac_var
 
1759
      case $ac_val in
 
1760
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1761
      esac
 
1762
      echo "$ac_var='\''$ac_val'\''"
 
1763
    done | sort
 
1764
    echo
 
1765
 
 
1766
    if test -n "$ac_subst_files"; then
 
1767
      cat <<\_ASBOX
 
1768
## ------------------- ##
 
1769
## File substitutions. ##
 
1770
## ------------------- ##
 
1771
_ASBOX
 
1772
      echo
 
1773
      for ac_var in $ac_subst_files
 
1774
      do
 
1775
        eval ac_val=\$$ac_var
 
1776
        case $ac_val in
 
1777
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1778
        esac
 
1779
        echo "$ac_var='\''$ac_val'\''"
 
1780
      done | sort
 
1781
      echo
 
1782
    fi
 
1783
 
 
1784
    if test -s confdefs.h; then
 
1785
      cat <<\_ASBOX
 
1786
## ----------- ##
 
1787
## confdefs.h. ##
 
1788
## ----------- ##
 
1789
_ASBOX
 
1790
      echo
 
1791
      cat confdefs.h
 
1792
      echo
 
1793
    fi
 
1794
    test "$ac_signal" != 0 &&
 
1795
      echo "$as_me: caught signal $ac_signal"
 
1796
    echo "$as_me: exit $exit_status"
 
1797
  } >&5
 
1798
  rm -f core *.core core.conftest.* &&
 
1799
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1800
    exit $exit_status
 
1801
' 0
 
1802
for ac_signal in 1 2 13 15; do
 
1803
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1804
done
 
1805
ac_signal=0
 
1806
 
 
1807
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1808
rm -f -r conftest* confdefs.h
 
1809
 
 
1810
# Predefined preprocessor variables.
 
1811
 
 
1812
cat >>confdefs.h <<_ACEOF
 
1813
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1814
_ACEOF
 
1815
 
 
1816
 
 
1817
cat >>confdefs.h <<_ACEOF
 
1818
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1819
_ACEOF
 
1820
 
 
1821
 
 
1822
cat >>confdefs.h <<_ACEOF
 
1823
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1824
_ACEOF
 
1825
 
 
1826
 
 
1827
cat >>confdefs.h <<_ACEOF
 
1828
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1829
_ACEOF
 
1830
 
 
1831
 
 
1832
cat >>confdefs.h <<_ACEOF
 
1833
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1834
_ACEOF
 
1835
 
 
1836
 
 
1837
# Let the site file select an alternate cache file if it wants to.
 
1838
# Prefer explicitly selected file to automatically selected ones.
 
1839
if test -n "$CONFIG_SITE"; then
 
1840
  set x "$CONFIG_SITE"
 
1841
elif test "x$prefix" != xNONE; then
 
1842
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1843
else
 
1844
  set x "$ac_default_prefix/share/config.site" \
 
1845
        "$ac_default_prefix/etc/config.site"
 
1846
fi
 
1847
shift
 
1848
for ac_site_file
 
1849
do
 
1850
  if test -r "$ac_site_file"; then
 
1851
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1852
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1853
    sed 's/^/| /' "$ac_site_file" >&5
 
1854
    . "$ac_site_file"
 
1855
  fi
 
1856
done
 
1857
 
 
1858
if test -r "$cache_file"; then
 
1859
  # Some versions of bash will fail to source /dev/null (special
 
1860
  # files actually), so we avoid doing that.
 
1861
  if test -f "$cache_file"; then
 
1862
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1863
echo "$as_me: loading cache $cache_file" >&6;}
 
1864
    case $cache_file in
 
1865
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1866
      *)                      . "./$cache_file";;
 
1867
    esac
 
1868
  fi
 
1869
else
 
1870
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1871
echo "$as_me: creating cache $cache_file" >&6;}
 
1872
  >$cache_file
 
1873
fi
 
1874
 
 
1875
# Check that the precious variables saved in the cache have kept the same
 
1876
# value.
 
1877
ac_cache_corrupted=false
 
1878
for ac_var in $ac_precious_vars; do
 
1879
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1880
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1881
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1882
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1883
  case $ac_old_set,$ac_new_set in
 
1884
    set,)
 
1885
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1886
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1887
      ac_cache_corrupted=: ;;
 
1888
    ,set)
 
1889
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1890
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1891
      ac_cache_corrupted=: ;;
 
1892
    ,);;
 
1893
    *)
 
1894
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1895
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1896
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1897
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1898
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1899
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1900
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1901
        ac_cache_corrupted=:
 
1902
      fi;;
 
1903
  esac
 
1904
  # Pass precious variables to config.status.
 
1905
  if test "$ac_new_set" = set; then
 
1906
    case $ac_new_val in
 
1907
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1908
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1909
    esac
 
1910
    case " $ac_configure_args " in
 
1911
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1912
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1913
    esac
 
1914
  fi
 
1915
done
 
1916
if $ac_cache_corrupted; then
 
1917
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1918
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1919
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1920
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1921
   { (exit 1); exit 1; }; }
 
1922
fi
 
1923
 
 
1924
 
 
1925
 
 
1926
 
 
1927
 
 
1928
 
 
1929
 
 
1930
 
 
1931
 
 
1932
 
 
1933
 
 
1934
 
 
1935
 
 
1936
 
 
1937
 
 
1938
 
 
1939
 
 
1940
 
 
1941
 
 
1942
 
 
1943
 
 
1944
 
 
1945
 
 
1946
 
 
1947
 
 
1948
ac_ext=c
 
1949
ac_cpp='$CPP $CPPFLAGS'
 
1950
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1951
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1952
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1953
 
 
1954
 
 
1955
 
 
1956
# Environment
 
1957
ac_aux_dir=
 
1958
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
1959
  if test -f "$ac_dir/install-sh"; then
 
1960
    ac_aux_dir=$ac_dir
 
1961
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1962
    break
 
1963
  elif test -f "$ac_dir/install.sh"; then
 
1964
    ac_aux_dir=$ac_dir
 
1965
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1966
    break
 
1967
  elif test -f "$ac_dir/shtool"; then
 
1968
    ac_aux_dir=$ac_dir
 
1969
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1970
    break
 
1971
  fi
 
1972
done
 
1973
if test -z "$ac_aux_dir"; then
 
1974
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
1975
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
1976
   { (exit 1); exit 1; }; }
 
1977
fi
 
1978
 
 
1979
# These three variables are undocumented and unsupported,
 
1980
# and are intended to be withdrawn in a future Autoconf release.
 
1981
# They can cause serious problems if a builder's source tree is in a directory
 
1982
# whose full name contains unusual characters.
 
1983
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1984
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
1985
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
1986
 
 
1987
 
 
1988
# Make sure we can run config.sub.
 
1989
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
1990
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
1991
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
1992
   { (exit 1); exit 1; }; }
 
1993
 
 
1994
{ echo "$as_me:$LINENO: checking build system type" >&5
 
1995
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
1996
if test "${ac_cv_build+set}" = set; then
 
1997
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1998
else
 
1999
  ac_build_alias=$build_alias
 
2000
test "x$ac_build_alias" = x &&
 
2001
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2002
test "x$ac_build_alias" = x &&
 
2003
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2004
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2005
   { (exit 1); exit 1; }; }
 
2006
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2007
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2008
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2009
   { (exit 1); exit 1; }; }
 
2010
 
 
2011
fi
 
2012
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2013
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2014
case $ac_cv_build in
 
2015
*-*-*) ;;
 
2016
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2017
echo "$as_me: error: invalid value of canonical build" >&2;}
 
2018
   { (exit 1); exit 1; }; };;
 
2019
esac
 
2020
build=$ac_cv_build
 
2021
ac_save_IFS=$IFS; IFS='-'
 
2022
set x $ac_cv_build
 
2023
shift
 
2024
build_cpu=$1
 
2025
build_vendor=$2
 
2026
shift; shift
 
2027
# Remember, the first character of IFS is used to create $*,
 
2028
# except with old shells:
 
2029
build_os=$*
 
2030
IFS=$ac_save_IFS
 
2031
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2032
 
 
2033
 
 
2034
{ echo "$as_me:$LINENO: checking host system type" >&5
 
2035
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
2036
if test "${ac_cv_host+set}" = set; then
 
2037
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2038
else
 
2039
  if test "x$host_alias" = x; then
 
2040
  ac_cv_host=$ac_cv_build
 
2041
else
 
2042
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2043
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2044
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2045
   { (exit 1); exit 1; }; }
 
2046
fi
 
2047
 
 
2048
fi
 
2049
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2050
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2051
case $ac_cv_host in
 
2052
*-*-*) ;;
 
2053
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2054
echo "$as_me: error: invalid value of canonical host" >&2;}
 
2055
   { (exit 1); exit 1; }; };;
 
2056
esac
 
2057
host=$ac_cv_host
 
2058
ac_save_IFS=$IFS; IFS='-'
 
2059
set x $ac_cv_host
 
2060
shift
 
2061
host_cpu=$1
 
2062
host_vendor=$2
 
2063
shift; shift
 
2064
# Remember, the first character of IFS is used to create $*,
 
2065
# except with old shells:
 
2066
host_os=$*
 
2067
IFS=$ac_save_IFS
 
2068
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2069
 
 
2070
 
 
2071
{ echo "$as_me:$LINENO: checking target system type" >&5
 
2072
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
 
2073
if test "${ac_cv_target+set}" = set; then
 
2074
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2075
else
 
2076
  if test "x$target_alias" = x; then
 
2077
  ac_cv_target=$ac_cv_host
 
2078
else
 
2079
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
2080
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
 
2081
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
 
2082
   { (exit 1); exit 1; }; }
 
2083
fi
 
2084
 
 
2085
fi
 
2086
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
2087
echo "${ECHO_T}$ac_cv_target" >&6; }
 
2088
case $ac_cv_target in
 
2089
*-*-*) ;;
 
2090
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
 
2091
echo "$as_me: error: invalid value of canonical target" >&2;}
 
2092
   { (exit 1); exit 1; }; };;
 
2093
esac
 
2094
target=$ac_cv_target
 
2095
ac_save_IFS=$IFS; IFS='-'
 
2096
set x $ac_cv_target
 
2097
shift
 
2098
target_cpu=$1
 
2099
target_vendor=$2
 
2100
shift; shift
 
2101
# Remember, the first character of IFS is used to create $*,
 
2102
# except with old shells:
 
2103
target_os=$*
 
2104
IFS=$ac_save_IFS
 
2105
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
2106
 
 
2107
 
 
2108
# The aliases save the names the user supplied, while $host etc.
 
2109
# will get canonicalized.
 
2110
test -n "$target_alias" &&
 
2111
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2112
    NONENONEs,x,x, &&
 
2113
  program_prefix=${target_alias}-
 
2114
 
 
2115
# Automake
 
2116
am__api_version='1.10'
 
2117
 
 
2118
# Find a good install program.  We prefer a C program (faster),
 
2119
# so one script is as good as another.  But avoid the broken or
 
2120
# incompatible versions:
 
2121
# SysV /etc/install, /usr/sbin/install
 
2122
# SunOS /usr/etc/install
 
2123
# IRIX /sbin/install
 
2124
# AIX /bin/install
 
2125
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2126
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2127
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2128
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2129
# OS/2's system install, which has a completely different semantic
 
2130
# ./install, which can be erroneously created by make from ./install.sh.
 
2131
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2132
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2133
if test -z "$INSTALL"; then
 
2134
if test "${ac_cv_path_install+set}" = set; then
 
2135
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2136
else
 
2137
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2138
for as_dir in $PATH
 
2139
do
 
2140
  IFS=$as_save_IFS
 
2141
  test -z "$as_dir" && as_dir=.
 
2142
  # Account for people who put trailing slashes in PATH elements.
 
2143
case $as_dir/ in
 
2144
  ./ | .// | /cC/* | \
 
2145
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2146
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2147
  /usr/ucb/* ) ;;
 
2148
  *)
 
2149
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2150
    # Don't use installbsd from OSF since it installs stuff as root
 
2151
    # by default.
 
2152
    for ac_prog in ginstall scoinst install; do
 
2153
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2154
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2155
          if test $ac_prog = install &&
 
2156
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2157
            # AIX install.  It has an incompatible calling convention.
 
2158
            :
 
2159
          elif test $ac_prog = install &&
 
2160
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2161
            # program-specific install script used by HP pwplus--don't use.
 
2162
            :
 
2163
          else
 
2164
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2165
            break 3
 
2166
          fi
 
2167
        fi
 
2168
      done
 
2169
    done
 
2170
    ;;
 
2171
esac
 
2172
done
 
2173
IFS=$as_save_IFS
 
2174
 
 
2175
 
 
2176
fi
 
2177
  if test "${ac_cv_path_install+set}" = set; then
 
2178
    INSTALL=$ac_cv_path_install
 
2179
  else
 
2180
    # As a last resort, use the slow shell script.  Don't cache a
 
2181
    # value for INSTALL within a source directory, because that will
 
2182
    # break other packages using the cache if that directory is
 
2183
    # removed, or if the value is a relative name.
 
2184
    INSTALL=$ac_install_sh
 
2185
  fi
 
2186
fi
 
2187
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2188
echo "${ECHO_T}$INSTALL" >&6; }
 
2189
 
 
2190
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2191
# It thinks the first close brace ends the variable substitution.
 
2192
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2193
 
 
2194
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2195
 
 
2196
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2197
 
 
2198
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2199
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2200
# Just in case
 
2201
sleep 1
 
2202
echo timestamp > conftest.file
 
2203
# Do `set' in a subshell so we don't clobber the current shell's
 
2204
# arguments.  Must try -L first in case configure is actually a
 
2205
# symlink; some systems play weird games with the mod time of symlinks
 
2206
# (eg FreeBSD returns the mod time of the symlink's containing
 
2207
# directory).
 
2208
if (
 
2209
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2210
   if test "$*" = "X"; then
 
2211
      # -L didn't work.
 
2212
      set X `ls -t $srcdir/configure conftest.file`
 
2213
   fi
 
2214
   rm -f conftest.file
 
2215
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2216
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2217
 
 
2218
      # If neither matched, then we have a broken ls.  This can happen
 
2219
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2220
      # broken ls alias from the environment.  This has actually
 
2221
      # happened.  Such a system could not be considered "sane".
 
2222
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2223
alias in your environment" >&5
 
2224
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2225
alias in your environment" >&2;}
 
2226
   { (exit 1); exit 1; }; }
 
2227
   fi
 
2228
 
 
2229
   test "$2" = conftest.file
 
2230
   )
 
2231
then
 
2232
   # Ok.
 
2233
   :
 
2234
else
 
2235
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2236
Check your system clock" >&5
 
2237
echo "$as_me: error: newly created file is older than distributed files!
 
2238
Check your system clock" >&2;}
 
2239
   { (exit 1); exit 1; }; }
 
2240
fi
 
2241
{ echo "$as_me:$LINENO: result: yes" >&5
 
2242
echo "${ECHO_T}yes" >&6; }
 
2243
test "$program_prefix" != NONE &&
 
2244
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2245
# Use a double $ so make ignores it.
 
2246
test "$program_suffix" != NONE &&
 
2247
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2248
# Double any \ or $.  echo might interpret backslashes.
 
2249
# By default was `s,x,x', remove it if useless.
 
2250
cat <<\_ACEOF >conftest.sed
 
2251
s/[\\$]/&&/g;s/;s,x,x,$//
 
2252
_ACEOF
 
2253
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2254
rm -f conftest.sed
 
2255
 
 
2256
# expand $ac_aux_dir to an absolute path
 
2257
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2258
 
 
2259
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2260
# Use eval to expand $SHELL
 
2261
if eval "$MISSING --run true"; then
 
2262
  am_missing_run="$MISSING --run "
 
2263
else
 
2264
  am_missing_run=
 
2265
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2266
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2267
fi
 
2268
 
 
2269
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2270
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2271
if test -z "$MKDIR_P"; then
 
2272
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2273
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2274
else
 
2275
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2276
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2277
do
 
2278
  IFS=$as_save_IFS
 
2279
  test -z "$as_dir" && as_dir=.
 
2280
  for ac_prog in mkdir gmkdir; do
 
2281
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2282
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2283
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2284
             'mkdir (GNU coreutils) '* | \
 
2285
             'mkdir (coreutils) '* | \
 
2286
             'mkdir (fileutils) '4.1*)
 
2287
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2288
               break 3;;
 
2289
           esac
 
2290
         done
 
2291
       done
 
2292
done
 
2293
IFS=$as_save_IFS
 
2294
 
 
2295
fi
 
2296
 
 
2297
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2298
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2299
  else
 
2300
    # As a last resort, use the slow shell script.  Don't cache a
 
2301
    # value for MKDIR_P within a source directory, because that will
 
2302
    # break other packages using the cache if that directory is
 
2303
    # removed, or if the value is a relative name.
 
2304
    test -d ./--version && rmdir ./--version
 
2305
    MKDIR_P="$ac_install_sh -d"
 
2306
  fi
 
2307
fi
 
2308
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2309
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2310
 
 
2311
mkdir_p="$MKDIR_P"
 
2312
case $mkdir_p in
 
2313
  [\\/$]* | ?:[\\/]*) ;;
 
2314
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2315
esac
 
2316
 
 
2317
for ac_prog in gawk mawk nawk awk
 
2318
do
 
2319
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2320
set dummy $ac_prog; ac_word=$2
 
2321
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2322
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2323
if test "${ac_cv_prog_AWK+set}" = set; then
 
2324
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2325
else
 
2326
  if test -n "$AWK"; then
 
2327
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2328
else
 
2329
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2330
for as_dir in $PATH
 
2331
do
 
2332
  IFS=$as_save_IFS
 
2333
  test -z "$as_dir" && as_dir=.
 
2334
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2335
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2336
    ac_cv_prog_AWK="$ac_prog"
 
2337
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2338
    break 2
 
2339
  fi
 
2340
done
 
2341
done
 
2342
IFS=$as_save_IFS
 
2343
 
 
2344
fi
 
2345
fi
 
2346
AWK=$ac_cv_prog_AWK
 
2347
if test -n "$AWK"; then
 
2348
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2349
echo "${ECHO_T}$AWK" >&6; }
 
2350
else
 
2351
  { echo "$as_me:$LINENO: result: no" >&5
 
2352
echo "${ECHO_T}no" >&6; }
 
2353
fi
 
2354
 
 
2355
 
 
2356
  test -n "$AWK" && break
 
2357
done
 
2358
 
 
2359
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2360
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2361
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2362
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2363
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2364
else
 
2365
  cat >conftest.make <<\_ACEOF
 
2366
SHELL = /bin/sh
 
2367
all:
 
2368
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2369
_ACEOF
 
2370
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2371
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2372
  *@@@%%%=?*=@@@%%%*)
 
2373
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2374
  *)
 
2375
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2376
esac
 
2377
rm -f conftest.make
 
2378
fi
 
2379
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2380
  { echo "$as_me:$LINENO: result: yes" >&5
 
2381
echo "${ECHO_T}yes" >&6; }
 
2382
  SET_MAKE=
 
2383
else
 
2384
  { echo "$as_me:$LINENO: result: no" >&5
 
2385
echo "${ECHO_T}no" >&6; }
 
2386
  SET_MAKE="MAKE=${MAKE-make}"
 
2387
fi
 
2388
 
 
2389
rm -rf .tst 2>/dev/null
 
2390
mkdir .tst 2>/dev/null
 
2391
if test -d .tst; then
 
2392
  am__leading_dot=.
 
2393
else
 
2394
  am__leading_dot=_
 
2395
fi
 
2396
rmdir .tst 2>/dev/null
 
2397
 
 
2398
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2399
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2400
  # is not polluted with repeated "-I."
 
2401
  am__isrc=' -I$(srcdir)'
 
2402
  # test to see if srcdir already configured
 
2403
  if test -f $srcdir/config.status; then
 
2404
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2405
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2406
   { (exit 1); exit 1; }; }
 
2407
  fi
 
2408
fi
 
2409
 
 
2410
# test whether we have cygpath
 
2411
if test -z "$CYGPATH_W"; then
 
2412
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2413
    CYGPATH_W='cygpath -w'
 
2414
  else
 
2415
    CYGPATH_W=echo
 
2416
  fi
 
2417
fi
 
2418
 
 
2419
 
 
2420
# Define the identity of the package.
 
2421
 PACKAGE=ceph
 
2422
 VERSION=0.21
 
2423
 
 
2424
 
 
2425
cat >>confdefs.h <<_ACEOF
 
2426
#define PACKAGE "$PACKAGE"
 
2427
_ACEOF
 
2428
 
 
2429
 
 
2430
cat >>confdefs.h <<_ACEOF
 
2431
#define VERSION "$VERSION"
 
2432
_ACEOF
 
2433
 
 
2434
# Some tools Automake needs.
 
2435
 
 
2436
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2437
 
 
2438
 
 
2439
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2440
 
 
2441
 
 
2442
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2443
 
 
2444
 
 
2445
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2446
 
 
2447
 
 
2448
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2449
 
 
2450
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2451
 
 
2452
# Installed binaries are usually stripped using `strip' when the user
 
2453
# run `make install-strip'.  However `strip' might not be the right
 
2454
# tool to use in cross-compilation environments, therefore Automake
 
2455
# will honor the `STRIP' environment variable to overrule this program.
 
2456
if test "$cross_compiling" != no; then
 
2457
  if test -n "$ac_tool_prefix"; then
 
2458
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2459
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2460
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2461
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2462
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2464
else
 
2465
  if test -n "$STRIP"; then
 
2466
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2467
else
 
2468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2469
for as_dir in $PATH
 
2470
do
 
2471
  IFS=$as_save_IFS
 
2472
  test -z "$as_dir" && as_dir=.
 
2473
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2474
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2475
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2476
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2477
    break 2
 
2478
  fi
 
2479
done
 
2480
done
 
2481
IFS=$as_save_IFS
 
2482
 
 
2483
fi
 
2484
fi
 
2485
STRIP=$ac_cv_prog_STRIP
 
2486
if test -n "$STRIP"; then
 
2487
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2488
echo "${ECHO_T}$STRIP" >&6; }
 
2489
else
 
2490
  { echo "$as_me:$LINENO: result: no" >&5
 
2491
echo "${ECHO_T}no" >&6; }
 
2492
fi
 
2493
 
 
2494
 
 
2495
fi
 
2496
if test -z "$ac_cv_prog_STRIP"; then
 
2497
  ac_ct_STRIP=$STRIP
 
2498
  # Extract the first word of "strip", so it can be a program name with args.
 
2499
set dummy strip; ac_word=$2
 
2500
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2501
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2502
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2503
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2504
else
 
2505
  if test -n "$ac_ct_STRIP"; then
 
2506
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2507
else
 
2508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2509
for as_dir in $PATH
 
2510
do
 
2511
  IFS=$as_save_IFS
 
2512
  test -z "$as_dir" && as_dir=.
 
2513
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2514
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2515
    ac_cv_prog_ac_ct_STRIP="strip"
 
2516
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2517
    break 2
 
2518
  fi
 
2519
done
 
2520
done
 
2521
IFS=$as_save_IFS
 
2522
 
 
2523
fi
 
2524
fi
 
2525
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2526
if test -n "$ac_ct_STRIP"; then
 
2527
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2528
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2529
else
 
2530
  { echo "$as_me:$LINENO: result: no" >&5
 
2531
echo "${ECHO_T}no" >&6; }
 
2532
fi
 
2533
 
 
2534
  if test "x$ac_ct_STRIP" = x; then
 
2535
    STRIP=":"
 
2536
  else
 
2537
    case $cross_compiling:$ac_tool_warned in
 
2538
yes:)
 
2539
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2540
whose name does not start with the host triplet.  If you think this
 
2541
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2542
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2543
whose name does not start with the host triplet.  If you think this
 
2544
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2545
ac_tool_warned=yes ;;
 
2546
esac
 
2547
    STRIP=$ac_ct_STRIP
 
2548
  fi
 
2549
else
 
2550
  STRIP="$ac_cv_prog_STRIP"
 
2551
fi
 
2552
 
 
2553
fi
 
2554
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2555
 
 
2556
# We need awk for the "check" target.  The system "awk" is bad on
 
2557
# some platforms.
 
2558
# Always define AMTAR for backward compatibility.
 
2559
 
 
2560
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2561
 
 
2562
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2563
 
 
2564
 
 
2565
 
 
2566
 
 
2567
 
 
2568
DEPDIR="${am__leading_dot}deps"
 
2569
 
 
2570
ac_config_commands="$ac_config_commands depfiles"
 
2571
 
 
2572
 
 
2573
am_make=${MAKE-make}
 
2574
cat > confinc << 'END'
 
2575
am__doit:
 
2576
        @echo done
 
2577
.PHONY: am__doit
 
2578
END
 
2579
# If we don't find an include directive, just comment out the code.
 
2580
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2581
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
2582
am__include="#"
 
2583
am__quote=
 
2584
_am_result=none
 
2585
# First try GNU make style include.
 
2586
echo "include confinc" > confmf
 
2587
# We grep out `Entering directory' and `Leaving directory'
 
2588
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2589
# In particular we don't look at `^make:' because GNU make might
 
2590
# be invoked under some other name (usually "gmake"), in which
 
2591
# case it prints its new name instead of `make'.
 
2592
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2593
   am__include=include
 
2594
   am__quote=
 
2595
   _am_result=GNU
 
2596
fi
 
2597
# Now try BSD make style include.
 
2598
if test "$am__include" = "#"; then
 
2599
   echo '.include "confinc"' > confmf
 
2600
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2601
      am__include=.include
 
2602
      am__quote="\""
 
2603
      _am_result=BSD
 
2604
   fi
 
2605
fi
 
2606
 
 
2607
 
 
2608
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
2609
echo "${ECHO_T}$_am_result" >&6; }
 
2610
rm -f confinc confmf
 
2611
 
 
2612
# Check whether --enable-dependency-tracking was given.
 
2613
if test "${enable_dependency_tracking+set}" = set; then
 
2614
  enableval=$enable_dependency_tracking;
 
2615
fi
 
2616
 
 
2617
if test "x$enable_dependency_tracking" != xno; then
 
2618
  am_depcomp="$ac_aux_dir/depcomp"
 
2619
  AMDEPBACKSLASH='\'
 
2620
fi
 
2621
 if test "x$enable_dependency_tracking" != xno; then
 
2622
  AMDEP_TRUE=
 
2623
  AMDEP_FALSE='#'
 
2624
else
 
2625
  AMDEP_TRUE='#'
 
2626
  AMDEP_FALSE=
 
2627
fi
 
2628
 
 
2629
 
 
2630
ac_ext=c
 
2631
ac_cpp='$CPP $CPPFLAGS'
 
2632
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2633
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2634
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2635
if test -n "$ac_tool_prefix"; then
 
2636
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2637
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2638
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2639
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2640
if test "${ac_cv_prog_CC+set}" = set; then
 
2641
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2642
else
 
2643
  if test -n "$CC"; then
 
2644
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2645
else
 
2646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2647
for as_dir in $PATH
 
2648
do
 
2649
  IFS=$as_save_IFS
 
2650
  test -z "$as_dir" && as_dir=.
 
2651
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2652
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2653
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2654
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2655
    break 2
 
2656
  fi
 
2657
done
 
2658
done
 
2659
IFS=$as_save_IFS
 
2660
 
 
2661
fi
 
2662
fi
 
2663
CC=$ac_cv_prog_CC
 
2664
if test -n "$CC"; then
 
2665
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2666
echo "${ECHO_T}$CC" >&6; }
 
2667
else
 
2668
  { echo "$as_me:$LINENO: result: no" >&5
 
2669
echo "${ECHO_T}no" >&6; }
 
2670
fi
 
2671
 
 
2672
 
 
2673
fi
 
2674
if test -z "$ac_cv_prog_CC"; then
 
2675
  ac_ct_CC=$CC
 
2676
  # Extract the first word of "gcc", so it can be a program name with args.
 
2677
set dummy gcc; ac_word=$2
 
2678
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2679
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2680
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2681
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2682
else
 
2683
  if test -n "$ac_ct_CC"; then
 
2684
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2685
else
 
2686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2687
for as_dir in $PATH
 
2688
do
 
2689
  IFS=$as_save_IFS
 
2690
  test -z "$as_dir" && as_dir=.
 
2691
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2692
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2693
    ac_cv_prog_ac_ct_CC="gcc"
 
2694
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2695
    break 2
 
2696
  fi
 
2697
done
 
2698
done
 
2699
IFS=$as_save_IFS
 
2700
 
 
2701
fi
 
2702
fi
 
2703
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2704
if test -n "$ac_ct_CC"; then
 
2705
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2706
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2707
else
 
2708
  { echo "$as_me:$LINENO: result: no" >&5
 
2709
echo "${ECHO_T}no" >&6; }
 
2710
fi
 
2711
 
 
2712
  if test "x$ac_ct_CC" = x; then
 
2713
    CC=""
 
2714
  else
 
2715
    case $cross_compiling:$ac_tool_warned in
 
2716
yes:)
 
2717
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2718
whose name does not start with the host triplet.  If you think this
 
2719
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2720
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2721
whose name does not start with the host triplet.  If you think this
 
2722
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2723
ac_tool_warned=yes ;;
 
2724
esac
 
2725
    CC=$ac_ct_CC
 
2726
  fi
 
2727
else
 
2728
  CC="$ac_cv_prog_CC"
 
2729
fi
 
2730
 
 
2731
if test -z "$CC"; then
 
2732
          if test -n "$ac_tool_prefix"; then
 
2733
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2734
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2735
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2736
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2737
if test "${ac_cv_prog_CC+set}" = set; then
 
2738
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2739
else
 
2740
  if test -n "$CC"; then
 
2741
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2742
else
 
2743
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2744
for as_dir in $PATH
 
2745
do
 
2746
  IFS=$as_save_IFS
 
2747
  test -z "$as_dir" && as_dir=.
 
2748
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2749
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2750
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2751
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2752
    break 2
 
2753
  fi
 
2754
done
 
2755
done
 
2756
IFS=$as_save_IFS
 
2757
 
 
2758
fi
 
2759
fi
 
2760
CC=$ac_cv_prog_CC
 
2761
if test -n "$CC"; then
 
2762
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2763
echo "${ECHO_T}$CC" >&6; }
 
2764
else
 
2765
  { echo "$as_me:$LINENO: result: no" >&5
 
2766
echo "${ECHO_T}no" >&6; }
 
2767
fi
 
2768
 
 
2769
 
 
2770
  fi
 
2771
fi
 
2772
if test -z "$CC"; then
 
2773
  # Extract the first word of "cc", so it can be a program name with args.
 
2774
set dummy cc; ac_word=$2
 
2775
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2776
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2777
if test "${ac_cv_prog_CC+set}" = set; then
 
2778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2779
else
 
2780
  if test -n "$CC"; then
 
2781
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2782
else
 
2783
  ac_prog_rejected=no
 
2784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2785
for as_dir in $PATH
 
2786
do
 
2787
  IFS=$as_save_IFS
 
2788
  test -z "$as_dir" && as_dir=.
 
2789
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2790
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2791
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2792
       ac_prog_rejected=yes
 
2793
       continue
 
2794
     fi
 
2795
    ac_cv_prog_CC="cc"
 
2796
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2797
    break 2
 
2798
  fi
 
2799
done
 
2800
done
 
2801
IFS=$as_save_IFS
 
2802
 
 
2803
if test $ac_prog_rejected = yes; then
 
2804
  # We found a bogon in the path, so make sure we never use it.
 
2805
  set dummy $ac_cv_prog_CC
 
2806
  shift
 
2807
  if test $# != 0; then
 
2808
    # We chose a different compiler from the bogus one.
 
2809
    # However, it has the same basename, so the bogon will be chosen
 
2810
    # first if we set CC to just the basename; use the full file name.
 
2811
    shift
 
2812
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2813
  fi
 
2814
fi
 
2815
fi
 
2816
fi
 
2817
CC=$ac_cv_prog_CC
 
2818
if test -n "$CC"; then
 
2819
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2820
echo "${ECHO_T}$CC" >&6; }
 
2821
else
 
2822
  { echo "$as_me:$LINENO: result: no" >&5
 
2823
echo "${ECHO_T}no" >&6; }
 
2824
fi
 
2825
 
 
2826
 
 
2827
fi
 
2828
if test -z "$CC"; then
 
2829
  if test -n "$ac_tool_prefix"; then
 
2830
  for ac_prog in cl.exe
 
2831
  do
 
2832
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2833
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2834
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2835
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2836
if test "${ac_cv_prog_CC+set}" = set; then
 
2837
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2838
else
 
2839
  if test -n "$CC"; then
 
2840
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2841
else
 
2842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2843
for as_dir in $PATH
 
2844
do
 
2845
  IFS=$as_save_IFS
 
2846
  test -z "$as_dir" && as_dir=.
 
2847
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2848
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2849
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2850
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2851
    break 2
 
2852
  fi
 
2853
done
 
2854
done
 
2855
IFS=$as_save_IFS
 
2856
 
 
2857
fi
 
2858
fi
 
2859
CC=$ac_cv_prog_CC
 
2860
if test -n "$CC"; then
 
2861
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2862
echo "${ECHO_T}$CC" >&6; }
 
2863
else
 
2864
  { echo "$as_me:$LINENO: result: no" >&5
 
2865
echo "${ECHO_T}no" >&6; }
 
2866
fi
 
2867
 
 
2868
 
 
2869
    test -n "$CC" && break
 
2870
  done
 
2871
fi
 
2872
if test -z "$CC"; then
 
2873
  ac_ct_CC=$CC
 
2874
  for ac_prog in cl.exe
 
2875
do
 
2876
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2877
set dummy $ac_prog; ac_word=$2
 
2878
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2879
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2880
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2881
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2882
else
 
2883
  if test -n "$ac_ct_CC"; then
 
2884
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2885
else
 
2886
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2887
for as_dir in $PATH
 
2888
do
 
2889
  IFS=$as_save_IFS
 
2890
  test -z "$as_dir" && as_dir=.
 
2891
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2892
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2893
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2894
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2895
    break 2
 
2896
  fi
 
2897
done
 
2898
done
 
2899
IFS=$as_save_IFS
 
2900
 
 
2901
fi
 
2902
fi
 
2903
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2904
if test -n "$ac_ct_CC"; then
 
2905
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2906
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2907
else
 
2908
  { echo "$as_me:$LINENO: result: no" >&5
 
2909
echo "${ECHO_T}no" >&6; }
 
2910
fi
 
2911
 
 
2912
 
 
2913
  test -n "$ac_ct_CC" && break
 
2914
done
 
2915
 
 
2916
  if test "x$ac_ct_CC" = x; then
 
2917
    CC=""
 
2918
  else
 
2919
    case $cross_compiling:$ac_tool_warned in
 
2920
yes:)
 
2921
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2922
whose name does not start with the host triplet.  If you think this
 
2923
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2924
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2925
whose name does not start with the host triplet.  If you think this
 
2926
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2927
ac_tool_warned=yes ;;
 
2928
esac
 
2929
    CC=$ac_ct_CC
 
2930
  fi
 
2931
fi
 
2932
 
 
2933
fi
 
2934
 
 
2935
 
 
2936
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2937
See \`config.log' for more details." >&5
 
2938
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2939
See \`config.log' for more details." >&2;}
 
2940
   { (exit 1); exit 1; }; }
 
2941
 
 
2942
# Provide some information about the compiler.
 
2943
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2944
ac_compiler=`set X $ac_compile; echo $2`
 
2945
{ (ac_try="$ac_compiler --version >&5"
 
2946
case "(($ac_try" in
 
2947
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2948
  *) ac_try_echo=$ac_try;;
 
2949
esac
 
2950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2951
  (eval "$ac_compiler --version >&5") 2>&5
 
2952
  ac_status=$?
 
2953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2954
  (exit $ac_status); }
 
2955
{ (ac_try="$ac_compiler -v >&5"
 
2956
case "(($ac_try" in
 
2957
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2958
  *) ac_try_echo=$ac_try;;
 
2959
esac
 
2960
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2961
  (eval "$ac_compiler -v >&5") 2>&5
 
2962
  ac_status=$?
 
2963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2964
  (exit $ac_status); }
 
2965
{ (ac_try="$ac_compiler -V >&5"
 
2966
case "(($ac_try" in
 
2967
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2968
  *) ac_try_echo=$ac_try;;
 
2969
esac
 
2970
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2971
  (eval "$ac_compiler -V >&5") 2>&5
 
2972
  ac_status=$?
 
2973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2974
  (exit $ac_status); }
 
2975
 
 
2976
cat >conftest.$ac_ext <<_ACEOF
 
2977
/* confdefs.h.  */
 
2978
_ACEOF
 
2979
cat confdefs.h >>conftest.$ac_ext
 
2980
cat >>conftest.$ac_ext <<_ACEOF
 
2981
/* end confdefs.h.  */
 
2982
 
 
2983
int
 
2984
main ()
 
2985
{
 
2986
 
 
2987
  ;
 
2988
  return 0;
 
2989
}
 
2990
_ACEOF
 
2991
ac_clean_files_save=$ac_clean_files
 
2992
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2993
# Try to create an executable without -o first, disregard a.out.
 
2994
# It will help us diagnose broken compilers, and finding out an intuition
 
2995
# of exeext.
 
2996
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2997
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2998
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2999
#
 
3000
# List of possible output files, starting from the most likely.
 
3001
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
3002
# only as a last resort.  b.out is created by i960 compilers.
 
3003
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
3004
#
 
3005
# The IRIX 6 linker writes into existing files which may not be
 
3006
# executable, retaining their permissions.  Remove them first so a
 
3007
# subsequent execution test works.
 
3008
ac_rmfiles=
 
3009
for ac_file in $ac_files
 
3010
do
 
3011
  case $ac_file in
 
3012
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3013
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3014
  esac
 
3015
done
 
3016
rm -f $ac_rmfiles
 
3017
 
 
3018
if { (ac_try="$ac_link_default"
 
3019
case "(($ac_try" in
 
3020
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3021
  *) ac_try_echo=$ac_try;;
 
3022
esac
 
3023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3024
  (eval "$ac_link_default") 2>&5
 
3025
  ac_status=$?
 
3026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3027
  (exit $ac_status); }; then
 
3028
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3029
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3030
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3031
# so that the user can short-circuit this test for compilers unknown to
 
3032
# Autoconf.
 
3033
for ac_file in $ac_files ''
 
3034
do
 
3035
  test -f "$ac_file" || continue
 
3036
  case $ac_file in
 
3037
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
3038
        ;;
 
3039
    [ab].out )
 
3040
        # We found the default executable, but exeext='' is most
 
3041
        # certainly right.
 
3042
        break;;
 
3043
    *.* )
 
3044
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3045
        then :; else
 
3046
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3047
        fi
 
3048
        # We set ac_cv_exeext here because the later test for it is not
 
3049
        # safe: cross compilers may not add the suffix if given an `-o'
 
3050
        # argument, so we may need to know it at that point already.
 
3051
        # Even if this section looks crufty: it has the advantage of
 
3052
        # actually working.
 
3053
        break;;
 
3054
    * )
 
3055
        break;;
 
3056
  esac
 
3057
done
 
3058
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3059
 
 
3060
else
 
3061
  ac_file=''
 
3062
fi
 
3063
 
 
3064
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3065
echo "${ECHO_T}$ac_file" >&6; }
 
3066
if test -z "$ac_file"; then
 
3067
  echo "$as_me: failed program was:" >&5
 
3068
sed 's/^/| /' conftest.$ac_ext >&5
 
3069
 
 
3070
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3071
See \`config.log' for more details." >&5
 
3072
echo "$as_me: error: C compiler cannot create executables
 
3073
See \`config.log' for more details." >&2;}
 
3074
   { (exit 77); exit 77; }; }
 
3075
fi
 
3076
 
 
3077
ac_exeext=$ac_cv_exeext
 
3078
 
 
3079
# Check that the compiler produces executables we can run.  If not, either
 
3080
# the compiler is broken, or we cross compile.
 
3081
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3082
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
3083
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3084
# If not cross compiling, check that we can run a simple program.
 
3085
if test "$cross_compiling" != yes; then
 
3086
  if { ac_try='./$ac_file'
 
3087
  { (case "(($ac_try" in
 
3088
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3089
  *) ac_try_echo=$ac_try;;
 
3090
esac
 
3091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3092
  (eval "$ac_try") 2>&5
 
3093
  ac_status=$?
 
3094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3095
  (exit $ac_status); }; }; then
 
3096
    cross_compiling=no
 
3097
  else
 
3098
    if test "$cross_compiling" = maybe; then
 
3099
        cross_compiling=yes
 
3100
    else
 
3101
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3102
If you meant to cross compile, use \`--host'.
 
3103
See \`config.log' for more details." >&5
 
3104
echo "$as_me: error: cannot run C compiled programs.
 
3105
If you meant to cross compile, use \`--host'.
 
3106
See \`config.log' for more details." >&2;}
 
3107
   { (exit 1); exit 1; }; }
 
3108
    fi
 
3109
  fi
 
3110
fi
 
3111
{ echo "$as_me:$LINENO: result: yes" >&5
 
3112
echo "${ECHO_T}yes" >&6; }
 
3113
 
 
3114
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3115
ac_clean_files=$ac_clean_files_save
 
3116
# Check that the compiler produces executables we can run.  If not, either
 
3117
# the compiler is broken, or we cross compile.
 
3118
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3119
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3120
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3121
echo "${ECHO_T}$cross_compiling" >&6; }
 
3122
 
 
3123
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3124
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3125
if { (ac_try="$ac_link"
 
3126
case "(($ac_try" in
 
3127
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3128
  *) ac_try_echo=$ac_try;;
 
3129
esac
 
3130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3131
  (eval "$ac_link") 2>&5
 
3132
  ac_status=$?
 
3133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3134
  (exit $ac_status); }; then
 
3135
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3136
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3137
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3138
# `rm'.
 
3139
for ac_file in conftest.exe conftest conftest.*; do
 
3140
  test -f "$ac_file" || continue
 
3141
  case $ac_file in
 
3142
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3143
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3144
          break;;
 
3145
    * ) break;;
 
3146
  esac
 
3147
done
 
3148
else
 
3149
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3150
See \`config.log' for more details." >&5
 
3151
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3152
See \`config.log' for more details." >&2;}
 
3153
   { (exit 1); exit 1; }; }
 
3154
fi
 
3155
 
 
3156
rm -f conftest$ac_cv_exeext
 
3157
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3158
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3159
 
 
3160
rm -f conftest.$ac_ext
 
3161
EXEEXT=$ac_cv_exeext
 
3162
ac_exeext=$EXEEXT
 
3163
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3164
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3165
if test "${ac_cv_objext+set}" = set; then
 
3166
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3167
else
 
3168
  cat >conftest.$ac_ext <<_ACEOF
 
3169
/* confdefs.h.  */
 
3170
_ACEOF
 
3171
cat confdefs.h >>conftest.$ac_ext
 
3172
cat >>conftest.$ac_ext <<_ACEOF
 
3173
/* end confdefs.h.  */
 
3174
 
 
3175
int
 
3176
main ()
 
3177
{
 
3178
 
 
3179
  ;
 
3180
  return 0;
 
3181
}
 
3182
_ACEOF
 
3183
rm -f conftest.o conftest.obj
 
3184
if { (ac_try="$ac_compile"
 
3185
case "(($ac_try" in
 
3186
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3187
  *) ac_try_echo=$ac_try;;
 
3188
esac
 
3189
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3190
  (eval "$ac_compile") 2>&5
 
3191
  ac_status=$?
 
3192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3193
  (exit $ac_status); }; then
 
3194
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3195
  test -f "$ac_file" || continue;
 
3196
  case $ac_file in
 
3197
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3198
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3199
       break;;
 
3200
  esac
 
3201
done
 
3202
else
 
3203
  echo "$as_me: failed program was:" >&5
 
3204
sed 's/^/| /' conftest.$ac_ext >&5
 
3205
 
 
3206
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3207
See \`config.log' for more details." >&5
 
3208
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3209
See \`config.log' for more details." >&2;}
 
3210
   { (exit 1); exit 1; }; }
 
3211
fi
 
3212
 
 
3213
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3214
fi
 
3215
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3216
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3217
OBJEXT=$ac_cv_objext
 
3218
ac_objext=$OBJEXT
 
3219
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3220
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3221
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3223
else
 
3224
  cat >conftest.$ac_ext <<_ACEOF
 
3225
/* confdefs.h.  */
 
3226
_ACEOF
 
3227
cat confdefs.h >>conftest.$ac_ext
 
3228
cat >>conftest.$ac_ext <<_ACEOF
 
3229
/* end confdefs.h.  */
 
3230
 
 
3231
int
 
3232
main ()
 
3233
{
 
3234
#ifndef __GNUC__
 
3235
       choke me
 
3236
#endif
 
3237
 
 
3238
  ;
 
3239
  return 0;
 
3240
}
 
3241
_ACEOF
 
3242
rm -f conftest.$ac_objext
 
3243
if { (ac_try="$ac_compile"
 
3244
case "(($ac_try" in
 
3245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3246
  *) ac_try_echo=$ac_try;;
 
3247
esac
 
3248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3249
  (eval "$ac_compile") 2>conftest.er1
 
3250
  ac_status=$?
 
3251
  grep -v '^ *+' conftest.er1 >conftest.err
 
3252
  rm -f conftest.er1
 
3253
  cat conftest.err >&5
 
3254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3255
  (exit $ac_status); } && {
 
3256
         test -z "$ac_c_werror_flag" ||
 
3257
         test ! -s conftest.err
 
3258
       } && test -s conftest.$ac_objext; then
 
3259
  ac_compiler_gnu=yes
 
3260
else
 
3261
  echo "$as_me: failed program was:" >&5
 
3262
sed 's/^/| /' conftest.$ac_ext >&5
 
3263
 
 
3264
        ac_compiler_gnu=no
 
3265
fi
 
3266
 
 
3267
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3268
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3269
 
 
3270
fi
 
3271
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3272
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3273
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3274
ac_test_CFLAGS=${CFLAGS+set}
 
3275
ac_save_CFLAGS=$CFLAGS
 
3276
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3277
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3278
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3279
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3280
else
 
3281
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3282
   ac_c_werror_flag=yes
 
3283
   ac_cv_prog_cc_g=no
 
3284
   CFLAGS="-g"
 
3285
   cat >conftest.$ac_ext <<_ACEOF
 
3286
/* confdefs.h.  */
 
3287
_ACEOF
 
3288
cat confdefs.h >>conftest.$ac_ext
 
3289
cat >>conftest.$ac_ext <<_ACEOF
 
3290
/* end confdefs.h.  */
 
3291
 
 
3292
int
 
3293
main ()
 
3294
{
 
3295
 
 
3296
  ;
 
3297
  return 0;
 
3298
}
 
3299
_ACEOF
 
3300
rm -f conftest.$ac_objext
 
3301
if { (ac_try="$ac_compile"
 
3302
case "(($ac_try" in
 
3303
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3304
  *) ac_try_echo=$ac_try;;
 
3305
esac
 
3306
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3307
  (eval "$ac_compile") 2>conftest.er1
 
3308
  ac_status=$?
 
3309
  grep -v '^ *+' conftest.er1 >conftest.err
 
3310
  rm -f conftest.er1
 
3311
  cat conftest.err >&5
 
3312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3313
  (exit $ac_status); } && {
 
3314
         test -z "$ac_c_werror_flag" ||
 
3315
         test ! -s conftest.err
 
3316
       } && test -s conftest.$ac_objext; then
 
3317
  ac_cv_prog_cc_g=yes
 
3318
else
 
3319
  echo "$as_me: failed program was:" >&5
 
3320
sed 's/^/| /' conftest.$ac_ext >&5
 
3321
 
 
3322
        CFLAGS=""
 
3323
      cat >conftest.$ac_ext <<_ACEOF
 
3324
/* confdefs.h.  */
 
3325
_ACEOF
 
3326
cat confdefs.h >>conftest.$ac_ext
 
3327
cat >>conftest.$ac_ext <<_ACEOF
 
3328
/* end confdefs.h.  */
 
3329
 
 
3330
int
 
3331
main ()
 
3332
{
 
3333
 
 
3334
  ;
 
3335
  return 0;
 
3336
}
 
3337
_ACEOF
 
3338
rm -f conftest.$ac_objext
 
3339
if { (ac_try="$ac_compile"
 
3340
case "(($ac_try" in
 
3341
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3342
  *) ac_try_echo=$ac_try;;
 
3343
esac
 
3344
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3345
  (eval "$ac_compile") 2>conftest.er1
 
3346
  ac_status=$?
 
3347
  grep -v '^ *+' conftest.er1 >conftest.err
 
3348
  rm -f conftest.er1
 
3349
  cat conftest.err >&5
 
3350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3351
  (exit $ac_status); } && {
 
3352
         test -z "$ac_c_werror_flag" ||
 
3353
         test ! -s conftest.err
 
3354
       } && test -s conftest.$ac_objext; then
 
3355
  :
 
3356
else
 
3357
  echo "$as_me: failed program was:" >&5
 
3358
sed 's/^/| /' conftest.$ac_ext >&5
 
3359
 
 
3360
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3361
         CFLAGS="-g"
 
3362
         cat >conftest.$ac_ext <<_ACEOF
 
3363
/* confdefs.h.  */
 
3364
_ACEOF
 
3365
cat confdefs.h >>conftest.$ac_ext
 
3366
cat >>conftest.$ac_ext <<_ACEOF
 
3367
/* end confdefs.h.  */
 
3368
 
 
3369
int
 
3370
main ()
 
3371
{
 
3372
 
 
3373
  ;
 
3374
  return 0;
 
3375
}
 
3376
_ACEOF
 
3377
rm -f conftest.$ac_objext
 
3378
if { (ac_try="$ac_compile"
 
3379
case "(($ac_try" in
 
3380
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3381
  *) ac_try_echo=$ac_try;;
 
3382
esac
 
3383
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3384
  (eval "$ac_compile") 2>conftest.er1
 
3385
  ac_status=$?
 
3386
  grep -v '^ *+' conftest.er1 >conftest.err
 
3387
  rm -f conftest.er1
 
3388
  cat conftest.err >&5
 
3389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3390
  (exit $ac_status); } && {
 
3391
         test -z "$ac_c_werror_flag" ||
 
3392
         test ! -s conftest.err
 
3393
       } && test -s conftest.$ac_objext; then
 
3394
  ac_cv_prog_cc_g=yes
 
3395
else
 
3396
  echo "$as_me: failed program was:" >&5
 
3397
sed 's/^/| /' conftest.$ac_ext >&5
 
3398
 
 
3399
 
 
3400
fi
 
3401
 
 
3402
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3403
fi
 
3404
 
 
3405
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3406
fi
 
3407
 
 
3408
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3409
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3410
fi
 
3411
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3412
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3413
if test "$ac_test_CFLAGS" = set; then
 
3414
  CFLAGS=$ac_save_CFLAGS
 
3415
elif test $ac_cv_prog_cc_g = yes; then
 
3416
  if test "$GCC" = yes; then
 
3417
    CFLAGS="-g -O2"
 
3418
  else
 
3419
    CFLAGS="-g"
 
3420
  fi
 
3421
else
 
3422
  if test "$GCC" = yes; then
 
3423
    CFLAGS="-O2"
 
3424
  else
 
3425
    CFLAGS=
 
3426
  fi
 
3427
fi
 
3428
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3429
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3430
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3431
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3432
else
 
3433
  ac_cv_prog_cc_c89=no
 
3434
ac_save_CC=$CC
 
3435
cat >conftest.$ac_ext <<_ACEOF
 
3436
/* confdefs.h.  */
 
3437
_ACEOF
 
3438
cat confdefs.h >>conftest.$ac_ext
 
3439
cat >>conftest.$ac_ext <<_ACEOF
 
3440
/* end confdefs.h.  */
 
3441
#include <stdarg.h>
 
3442
#include <stdio.h>
 
3443
#include <sys/types.h>
 
3444
#include <sys/stat.h>
 
3445
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3446
struct buf { int x; };
 
3447
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3448
static char *e (p, i)
 
3449
     char **p;
 
3450
     int i;
 
3451
{
 
3452
  return p[i];
 
3453
}
 
3454
static char *f (char * (*g) (char **, int), char **p, ...)
 
3455
{
 
3456
  char *s;
 
3457
  va_list v;
 
3458
  va_start (v,p);
 
3459
  s = g (p, va_arg (v,int));
 
3460
  va_end (v);
 
3461
  return s;
 
3462
}
 
3463
 
 
3464
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3465
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3466
   These don't provoke an error unfortunately, instead are silently treated
 
3467
   as 'x'.  The following induces an error, until -std is added to get
 
3468
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3469
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3470
   that's true only with -std.  */
 
3471
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3472
 
 
3473
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3474
   inside strings and character constants.  */
 
3475
#define FOO(x) 'x'
 
3476
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3477
 
 
3478
int test (int i, double x);
 
3479
struct s1 {int (*f) (int a);};
 
3480
struct s2 {int (*f) (double a);};
 
3481
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3482
int argc;
 
3483
char **argv;
 
3484
int
 
3485
main ()
 
3486
{
 
3487
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3488
  ;
 
3489
  return 0;
 
3490
}
 
3491
_ACEOF
 
3492
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3493
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3494
do
 
3495
  CC="$ac_save_CC $ac_arg"
 
3496
  rm -f conftest.$ac_objext
 
3497
if { (ac_try="$ac_compile"
 
3498
case "(($ac_try" in
 
3499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3500
  *) ac_try_echo=$ac_try;;
 
3501
esac
 
3502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3503
  (eval "$ac_compile") 2>conftest.er1
 
3504
  ac_status=$?
 
3505
  grep -v '^ *+' conftest.er1 >conftest.err
 
3506
  rm -f conftest.er1
 
3507
  cat conftest.err >&5
 
3508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3509
  (exit $ac_status); } && {
 
3510
         test -z "$ac_c_werror_flag" ||
 
3511
         test ! -s conftest.err
 
3512
       } && test -s conftest.$ac_objext; then
 
3513
  ac_cv_prog_cc_c89=$ac_arg
 
3514
else
 
3515
  echo "$as_me: failed program was:" >&5
 
3516
sed 's/^/| /' conftest.$ac_ext >&5
 
3517
 
 
3518
 
 
3519
fi
 
3520
 
 
3521
rm -f core conftest.err conftest.$ac_objext
 
3522
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3523
done
 
3524
rm -f conftest.$ac_ext
 
3525
CC=$ac_save_CC
 
3526
 
 
3527
fi
 
3528
# AC_CACHE_VAL
 
3529
case "x$ac_cv_prog_cc_c89" in
 
3530
  x)
 
3531
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3532
echo "${ECHO_T}none needed" >&6; } ;;
 
3533
  xno)
 
3534
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3535
echo "${ECHO_T}unsupported" >&6; } ;;
 
3536
  *)
 
3537
    CC="$CC $ac_cv_prog_cc_c89"
 
3538
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3539
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3540
esac
 
3541
 
 
3542
 
 
3543
ac_ext=c
 
3544
ac_cpp='$CPP $CPPFLAGS'
 
3545
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3546
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3547
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3548
 
 
3549
depcc="$CC"   am_compiler_list=
 
3550
 
 
3551
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3552
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3553
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3554
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3555
else
 
3556
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3557
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3558
  # making bogus files that we don't know about and never remove.  For
 
3559
  # instance it was reported that on HP-UX the gcc test will end up
 
3560
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3561
  # in D'.
 
3562
  mkdir conftest.dir
 
3563
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3564
  # using a relative directory.
 
3565
  cp "$am_depcomp" conftest.dir
 
3566
  cd conftest.dir
 
3567
  # We will build objects and dependencies in a subdirectory because
 
3568
  # it helps to detect inapplicable dependency modes.  For instance
 
3569
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3570
  # side effect of compilation, but ICC will put the dependencies in
 
3571
  # the current directory while Tru64 will put them in the object
 
3572
  # directory.
 
3573
  mkdir sub
 
3574
 
 
3575
  am_cv_CC_dependencies_compiler_type=none
 
3576
  if test "$am_compiler_list" = ""; then
 
3577
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3578
  fi
 
3579
  for depmode in $am_compiler_list; do
 
3580
    # Setup a source with many dependencies, because some compilers
 
3581
    # like to wrap large dependency lists on column 80 (with \), and
 
3582
    # we should not choose a depcomp mode which is confused by this.
 
3583
    #
 
3584
    # We need to recreate these files for each test, as the compiler may
 
3585
    # overwrite some of them when testing with obscure command lines.
 
3586
    # This happens at least with the AIX C compiler.
 
3587
    : > sub/conftest.c
 
3588
    for i in 1 2 3 4 5 6; do
 
3589
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3590
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3591
      # Solaris 8's {/usr,}/bin/sh.
 
3592
      touch sub/conftst$i.h
 
3593
    done
 
3594
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3595
 
 
3596
    case $depmode in
 
3597
    nosideeffect)
 
3598
      # after this tag, mechanisms are not by side-effect, so they'll
 
3599
      # only be used when explicitly requested
 
3600
      if test "x$enable_dependency_tracking" = xyes; then
 
3601
        continue
 
3602
      else
 
3603
        break
 
3604
      fi
 
3605
      ;;
 
3606
    none) break ;;
 
3607
    esac
 
3608
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3609
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3610
    # handle `-M -o', and we need to detect this.
 
3611
    if depmode=$depmode \
 
3612
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3613
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3614
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3615
         >/dev/null 2>conftest.err &&
 
3616
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3617
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3618
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3619
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3620
      # icc doesn't choke on unknown options, it will just issue warnings
 
3621
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3622
      # that says an option was ignored or not supported.
 
3623
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3624
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3625
      # The diagnosis changed in icc 8.0:
 
3626
      #   icc: Command line remark: option '-MP' not supported
 
3627
      if (grep 'ignoring option' conftest.err ||
 
3628
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3629
        am_cv_CC_dependencies_compiler_type=$depmode
 
3630
        break
 
3631
      fi
 
3632
    fi
 
3633
  done
 
3634
 
 
3635
  cd ..
 
3636
  rm -rf conftest.dir
 
3637
else
 
3638
  am_cv_CC_dependencies_compiler_type=none
 
3639
fi
 
3640
 
 
3641
fi
 
3642
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3643
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3644
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3645
 
 
3646
 if
 
3647
  test "x$enable_dependency_tracking" != xno \
 
3648
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3649
  am__fastdepCC_TRUE=
 
3650
  am__fastdepCC_FALSE='#'
 
3651
else
 
3652
  am__fastdepCC_TRUE='#'
 
3653
  am__fastdepCC_FALSE=
 
3654
fi
 
3655
 
 
3656
 
 
3657
if test "x$CC" != xcc; then
 
3658
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
 
3659
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
 
3660
else
 
3661
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
 
3662
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
 
3663
fi
 
3664
set dummy $CC; ac_cc=`echo $2 |
 
3665
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
3666
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
 
3667
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3668
else
 
3669
  cat >conftest.$ac_ext <<_ACEOF
 
3670
/* confdefs.h.  */
 
3671
_ACEOF
 
3672
cat confdefs.h >>conftest.$ac_ext
 
3673
cat >>conftest.$ac_ext <<_ACEOF
 
3674
/* end confdefs.h.  */
 
3675
 
 
3676
int
 
3677
main ()
 
3678
{
 
3679
 
 
3680
  ;
 
3681
  return 0;
 
3682
}
 
3683
_ACEOF
 
3684
# Make sure it works both with $CC and with simple cc.
 
3685
# We do the test twice because some compilers refuse to overwrite an
 
3686
# existing .o file with -o, though they will create one.
 
3687
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
3688
rm -f conftest2.*
 
3689
if { (case "(($ac_try" in
 
3690
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3691
  *) ac_try_echo=$ac_try;;
 
3692
esac
 
3693
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3694
  (eval "$ac_try") 2>&5
 
3695
  ac_status=$?
 
3696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3697
  (exit $ac_status); } &&
 
3698
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
3699
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3700
  *) ac_try_echo=$ac_try;;
 
3701
esac
 
3702
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3703
  (eval "$ac_try") 2>&5
 
3704
  ac_status=$?
 
3705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3706
  (exit $ac_status); };
 
3707
then
 
3708
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
3709
  if test "x$CC" != xcc; then
 
3710
    # Test first that cc exists at all.
 
3711
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
3712
  { (case "(($ac_try" in
 
3713
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3714
  *) ac_try_echo=$ac_try;;
 
3715
esac
 
3716
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3717
  (eval "$ac_try") 2>&5
 
3718
  ac_status=$?
 
3719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3720
  (exit $ac_status); }; }; then
 
3721
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
3722
      rm -f conftest2.*
 
3723
      if { (case "(($ac_try" in
 
3724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3725
  *) ac_try_echo=$ac_try;;
 
3726
esac
 
3727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3728
  (eval "$ac_try") 2>&5
 
3729
  ac_status=$?
 
3730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3731
  (exit $ac_status); } &&
 
3732
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
3733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3734
  *) ac_try_echo=$ac_try;;
 
3735
esac
 
3736
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3737
  (eval "$ac_try") 2>&5
 
3738
  ac_status=$?
 
3739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3740
  (exit $ac_status); };
 
3741
      then
 
3742
        # cc works too.
 
3743
        :
 
3744
      else
 
3745
        # cc exists but doesn't like -o.
 
3746
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3747
      fi
 
3748
    fi
 
3749
  fi
 
3750
else
 
3751
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3752
fi
 
3753
rm -f core conftest*
 
3754
 
 
3755
fi
 
3756
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
3757
  { echo "$as_me:$LINENO: result: yes" >&5
 
3758
echo "${ECHO_T}yes" >&6; }
 
3759
else
 
3760
  { echo "$as_me:$LINENO: result: no" >&5
 
3761
echo "${ECHO_T}no" >&6; }
 
3762
 
 
3763
cat >>confdefs.h <<\_ACEOF
 
3764
#define NO_MINUS_C_MINUS_O 1
 
3765
_ACEOF
 
3766
 
 
3767
fi
 
3768
 
 
3769
# FIXME: we rely on the cache variable name because
 
3770
# there is no other way.
 
3771
set dummy $CC
 
3772
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
3773
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
3774
   # Losing compiler, so override with the script.
 
3775
   # FIXME: It is wrong to rewrite CC.
 
3776
   # But if we don't then we get into trouble of one sort or another.
 
3777
   # A longer-term fix would be to have automake use am__CC in this case,
 
3778
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
3779
   CC="$am_aux_dir/compile $CC"
 
3780
fi
 
3781
 
 
3782
 
 
3783
# Check whether --enable-shared was given.
 
3784
if test "${enable_shared+set}" = set; then
 
3785
  enableval=$enable_shared; p=${PACKAGE-default}
 
3786
    case $enableval in
 
3787
    yes) enable_shared=yes ;;
 
3788
    no) enable_shared=no ;;
 
3789
    *)
 
3790
      enable_shared=no
 
3791
      # Look at the argument we got.  We use all the common list separators.
 
3792
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3793
      for pkg in $enableval; do
 
3794
        IFS="$lt_save_ifs"
 
3795
        if test "X$pkg" = "X$p"; then
 
3796
          enable_shared=yes
 
3797
        fi
 
3798
      done
 
3799
      IFS="$lt_save_ifs"
 
3800
      ;;
 
3801
    esac
 
3802
else
 
3803
  enable_shared=yes
 
3804
fi
 
3805
 
 
3806
 
 
3807
# Check whether --enable-static was given.
 
3808
if test "${enable_static+set}" = set; then
 
3809
  enableval=$enable_static; p=${PACKAGE-default}
 
3810
    case $enableval in
 
3811
    yes) enable_static=yes ;;
 
3812
    no) enable_static=no ;;
 
3813
    *)
 
3814
     enable_static=no
 
3815
      # Look at the argument we got.  We use all the common list separators.
 
3816
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3817
      for pkg in $enableval; do
 
3818
        IFS="$lt_save_ifs"
 
3819
        if test "X$pkg" = "X$p"; then
 
3820
          enable_static=yes
 
3821
        fi
 
3822
      done
 
3823
      IFS="$lt_save_ifs"
 
3824
      ;;
 
3825
    esac
 
3826
else
 
3827
  enable_static=yes
 
3828
fi
 
3829
 
 
3830
 
 
3831
# Check whether --enable-fast-install was given.
 
3832
if test "${enable_fast_install+set}" = set; then
 
3833
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
3834
    case $enableval in
 
3835
    yes) enable_fast_install=yes ;;
 
3836
    no) enable_fast_install=no ;;
 
3837
    *)
 
3838
      enable_fast_install=no
 
3839
      # Look at the argument we got.  We use all the common list separators.
 
3840
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3841
      for pkg in $enableval; do
 
3842
        IFS="$lt_save_ifs"
 
3843
        if test "X$pkg" = "X$p"; then
 
3844
          enable_fast_install=yes
 
3845
        fi
 
3846
      done
 
3847
      IFS="$lt_save_ifs"
 
3848
      ;;
 
3849
    esac
 
3850
else
 
3851
  enable_fast_install=yes
 
3852
fi
 
3853
 
 
3854
 
 
3855
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3856
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
3857
if test "${lt_cv_path_SED+set}" = set; then
 
3858
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3859
else
 
3860
  # Loop through the user's path and test for sed and gsed.
 
3861
# Then use that list of sed's as ones to test for truncation.
 
3862
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3863
for as_dir in $PATH
 
3864
do
 
3865
  IFS=$as_save_IFS
 
3866
  test -z "$as_dir" && as_dir=.
 
3867
  for lt_ac_prog in sed gsed; do
 
3868
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3869
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
3870
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3871
      fi
 
3872
    done
 
3873
  done
 
3874
done
 
3875
IFS=$as_save_IFS
 
3876
lt_ac_max=0
 
3877
lt_ac_count=0
 
3878
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3879
# along with /bin/sed that truncates output.
 
3880
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3881
  test ! -f $lt_ac_sed && continue
 
3882
  cat /dev/null > conftest.in
 
3883
  lt_ac_count=0
 
3884
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3885
  # Check for GNU sed and select it if it is found.
 
3886
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3887
    lt_cv_path_SED=$lt_ac_sed
 
3888
    break
 
3889
  fi
 
3890
  while true; do
 
3891
    cat conftest.in conftest.in >conftest.tmp
 
3892
    mv conftest.tmp conftest.in
 
3893
    cp conftest.in conftest.nl
 
3894
    echo >>conftest.nl
 
3895
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3896
    cmp -s conftest.out conftest.nl || break
 
3897
    # 10000 chars as input seems more than enough
 
3898
    test $lt_ac_count -gt 10 && break
 
3899
    lt_ac_count=`expr $lt_ac_count + 1`
 
3900
    if test $lt_ac_count -gt $lt_ac_max; then
 
3901
      lt_ac_max=$lt_ac_count
 
3902
      lt_cv_path_SED=$lt_ac_sed
 
3903
    fi
 
3904
  done
 
3905
done
 
3906
 
 
3907
fi
 
3908
 
 
3909
SED=$lt_cv_path_SED
 
3910
 
 
3911
{ echo "$as_me:$LINENO: result: $SED" >&5
 
3912
echo "${ECHO_T}$SED" >&6; }
 
3913
 
 
3914
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3915
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3916
if test "${ac_cv_path_GREP+set}" = set; then
 
3917
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3918
else
 
3919
  # Extract the first word of "grep ggrep" to use in msg output
 
3920
if test -z "$GREP"; then
 
3921
set dummy grep ggrep; ac_prog_name=$2
 
3922
if test "${ac_cv_path_GREP+set}" = set; then
 
3923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3924
else
 
3925
  ac_path_GREP_found=false
 
3926
# Loop through the user's path and test for each of PROGNAME-LIST
 
3927
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3928
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3929
do
 
3930
  IFS=$as_save_IFS
 
3931
  test -z "$as_dir" && as_dir=.
 
3932
  for ac_prog in grep ggrep; do
 
3933
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3934
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3935
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3936
    # Check for GNU ac_path_GREP and select it if it is found.
 
3937
  # Check for GNU $ac_path_GREP
 
3938
case `"$ac_path_GREP" --version 2>&1` in
 
3939
*GNU*)
 
3940
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3941
*)
 
3942
  ac_count=0
 
3943
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3944
  while :
 
3945
  do
 
3946
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3947
    mv "conftest.tmp" "conftest.in"
 
3948
    cp "conftest.in" "conftest.nl"
 
3949
    echo 'GREP' >> "conftest.nl"
 
3950
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3951
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3952
    ac_count=`expr $ac_count + 1`
 
3953
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3954
      # Best one so far, save it but keep looking for a better one
 
3955
      ac_cv_path_GREP="$ac_path_GREP"
 
3956
      ac_path_GREP_max=$ac_count
 
3957
    fi
 
3958
    # 10*(2^10) chars as input seems more than enough
 
3959
    test $ac_count -gt 10 && break
 
3960
  done
 
3961
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3962
esac
 
3963
 
 
3964
 
 
3965
    $ac_path_GREP_found && break 3
 
3966
  done
 
3967
done
 
3968
 
 
3969
done
 
3970
IFS=$as_save_IFS
 
3971
 
 
3972
 
 
3973
fi
 
3974
 
 
3975
GREP="$ac_cv_path_GREP"
 
3976
if test -z "$GREP"; then
 
3977
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3978
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3979
   { (exit 1); exit 1; }; }
 
3980
fi
 
3981
 
 
3982
else
 
3983
  ac_cv_path_GREP=$GREP
 
3984
fi
 
3985
 
 
3986
 
 
3987
fi
 
3988
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3989
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
3990
 GREP="$ac_cv_path_GREP"
 
3991
 
 
3992
 
 
3993
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
3994
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
3995
if test "${ac_cv_path_EGREP+set}" = set; then
 
3996
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3997
else
 
3998
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3999
   then ac_cv_path_EGREP="$GREP -E"
 
4000
   else
 
4001
     # Extract the first word of "egrep" to use in msg output
 
4002
if test -z "$EGREP"; then
 
4003
set dummy egrep; ac_prog_name=$2
 
4004
if test "${ac_cv_path_EGREP+set}" = set; then
 
4005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4006
else
 
4007
  ac_path_EGREP_found=false
 
4008
# Loop through the user's path and test for each of PROGNAME-LIST
 
4009
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4010
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4011
do
 
4012
  IFS=$as_save_IFS
 
4013
  test -z "$as_dir" && as_dir=.
 
4014
  for ac_prog in egrep; do
 
4015
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4016
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4017
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4018
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4019
  # Check for GNU $ac_path_EGREP
 
4020
case `"$ac_path_EGREP" --version 2>&1` in
 
4021
*GNU*)
 
4022
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4023
*)
 
4024
  ac_count=0
 
4025
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4026
  while :
 
4027
  do
 
4028
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4029
    mv "conftest.tmp" "conftest.in"
 
4030
    cp "conftest.in" "conftest.nl"
 
4031
    echo 'EGREP' >> "conftest.nl"
 
4032
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4033
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4034
    ac_count=`expr $ac_count + 1`
 
4035
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4036
      # Best one so far, save it but keep looking for a better one
 
4037
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4038
      ac_path_EGREP_max=$ac_count
 
4039
    fi
 
4040
    # 10*(2^10) chars as input seems more than enough
 
4041
    test $ac_count -gt 10 && break
 
4042
  done
 
4043
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4044
esac
 
4045
 
 
4046
 
 
4047
    $ac_path_EGREP_found && break 3
 
4048
  done
 
4049
done
 
4050
 
 
4051
done
 
4052
IFS=$as_save_IFS
 
4053
 
 
4054
 
 
4055
fi
 
4056
 
 
4057
EGREP="$ac_cv_path_EGREP"
 
4058
if test -z "$EGREP"; then
 
4059
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4060
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4061
   { (exit 1); exit 1; }; }
 
4062
fi
 
4063
 
 
4064
else
 
4065
  ac_cv_path_EGREP=$EGREP
 
4066
fi
 
4067
 
 
4068
 
 
4069
   fi
 
4070
fi
 
4071
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4072
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4073
 EGREP="$ac_cv_path_EGREP"
 
4074
 
 
4075
 
 
4076
 
 
4077
# Check whether --with-gnu-ld was given.
 
4078
if test "${with_gnu_ld+set}" = set; then
 
4079
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4080
else
 
4081
  with_gnu_ld=no
 
4082
fi
 
4083
 
 
4084
ac_prog=ld
 
4085
if test "$GCC" = yes; then
 
4086
  # Check if gcc -print-prog-name=ld gives a path.
 
4087
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4088
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
4089
  case $host in
 
4090
  *-*-mingw*)
 
4091
    # gcc leaves a trailing carriage return which upsets mingw
 
4092
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4093
  *)
 
4094
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4095
  esac
 
4096
  case $ac_prog in
 
4097
    # Accept absolute paths.
 
4098
    [\\/]* | ?:[\\/]*)
 
4099
      re_direlt='/[^/][^/]*/\.\./'
 
4100
      # Canonicalize the pathname of ld
 
4101
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4102
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4103
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4104
      done
 
4105
      test -z "$LD" && LD="$ac_prog"
 
4106
      ;;
 
4107
  "")
 
4108
    # If it fails, then pretend we aren't using GCC.
 
4109
    ac_prog=ld
 
4110
    ;;
 
4111
  *)
 
4112
    # If it is relative, then search for the first ld in PATH.
 
4113
    with_gnu_ld=unknown
 
4114
    ;;
 
4115
  esac
 
4116
elif test "$with_gnu_ld" = yes; then
 
4117
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4118
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
4119
else
 
4120
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4121
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
4122
fi
 
4123
if test "${lt_cv_path_LD+set}" = set; then
 
4124
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4125
else
 
4126
  if test -z "$LD"; then
 
4127
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4128
  for ac_dir in $PATH; do
 
4129
    IFS="$lt_save_ifs"
 
4130
    test -z "$ac_dir" && ac_dir=.
 
4131
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4132
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4133
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4134
      # but apparently some variants of GNU ld only accept -v.
 
4135
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4136
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4137
      *GNU* | *'with BFD'*)
 
4138
        test "$with_gnu_ld" != no && break
 
4139
        ;;
 
4140
      *)
 
4141
        test "$with_gnu_ld" != yes && break
 
4142
        ;;
 
4143
      esac
 
4144
    fi
 
4145
  done
 
4146
  IFS="$lt_save_ifs"
 
4147
else
 
4148
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4149
fi
 
4150
fi
 
4151
 
 
4152
LD="$lt_cv_path_LD"
 
4153
if test -n "$LD"; then
 
4154
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4155
echo "${ECHO_T}$LD" >&6; }
 
4156
else
 
4157
  { echo "$as_me:$LINENO: result: no" >&5
 
4158
echo "${ECHO_T}no" >&6; }
 
4159
fi
 
4160
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4161
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4162
   { (exit 1); exit 1; }; }
 
4163
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4164
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4165
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4166
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4167
else
 
4168
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4169
case `$LD -v 2>&1 </dev/null` in
 
4170
*GNU* | *'with BFD'*)
 
4171
  lt_cv_prog_gnu_ld=yes
 
4172
  ;;
 
4173
*)
 
4174
  lt_cv_prog_gnu_ld=no
 
4175
  ;;
 
4176
esac
 
4177
fi
 
4178
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4179
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4180
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4181
 
 
4182
 
 
4183
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4184
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4185
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4186
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4187
else
 
4188
  lt_cv_ld_reload_flag='-r'
 
4189
fi
 
4190
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4191
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4192
reload_flag=$lt_cv_ld_reload_flag
 
4193
case $reload_flag in
 
4194
"" | " "*) ;;
 
4195
*) reload_flag=" $reload_flag" ;;
 
4196
esac
 
4197
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4198
case $host_os in
 
4199
  darwin*)
 
4200
    if test "$GCC" = yes; then
 
4201
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4202
    else
 
4203
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4204
    fi
 
4205
    ;;
 
4206
esac
 
4207
 
 
4208
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4209
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4210
if test "${lt_cv_path_NM+set}" = set; then
 
4211
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4212
else
 
4213
  if test -n "$NM"; then
 
4214
  # Let the user override the test.
 
4215
  lt_cv_path_NM="$NM"
 
4216
else
 
4217
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4218
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4219
    lt_nm_to_check="$lt_nm_to_check nm"
 
4220
  fi
 
4221
  for lt_tmp_nm in $lt_nm_to_check; do
 
4222
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4223
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4224
      IFS="$lt_save_ifs"
 
4225
      test -z "$ac_dir" && ac_dir=.
 
4226
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4227
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4228
        # Check to see if the nm accepts a BSD-compat flag.
 
4229
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4230
        #   nm: unknown option "B" ignored
 
4231
        # Tru64's nm complains that /dev/null is an invalid object file
 
4232
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4233
        */dev/null* | *'Invalid file or object type'*)
 
4234
          lt_cv_path_NM="$tmp_nm -B"
 
4235
          break
 
4236
          ;;
 
4237
        *)
 
4238
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4239
          */dev/null*)
 
4240
            lt_cv_path_NM="$tmp_nm -p"
 
4241
            break
 
4242
            ;;
 
4243
          *)
 
4244
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4245
            continue # so that we can try to find one that supports BSD flags
 
4246
            ;;
 
4247
          esac
 
4248
          ;;
 
4249
        esac
 
4250
      fi
 
4251
    done
 
4252
    IFS="$lt_save_ifs"
 
4253
  done
 
4254
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4255
fi
 
4256
fi
 
4257
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4258
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4259
NM="$lt_cv_path_NM"
 
4260
 
 
4261
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4262
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4263
LN_S=$as_ln_s
 
4264
if test "$LN_S" = "ln -s"; then
 
4265
  { echo "$as_me:$LINENO: result: yes" >&5
 
4266
echo "${ECHO_T}yes" >&6; }
 
4267
else
 
4268
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4269
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4270
fi
 
4271
 
 
4272
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4273
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
 
4274
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4275
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4276
else
 
4277
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4278
lt_cv_file_magic_test_file=
 
4279
lt_cv_deplibs_check_method='unknown'
 
4280
# Need to set the preceding variable on all platforms that support
 
4281
# interlibrary dependencies.
 
4282
# 'none' -- dependencies not supported.
 
4283
# `unknown' -- same as none, but documents that we really don't know.
 
4284
# 'pass_all' -- all dependencies passed with no checks.
 
4285
# 'test_compile' -- check by making test program.
 
4286
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4287
# which responds to the $file_magic_cmd with a given extended regex.
 
4288
# If you have `file' or equivalent on your system and you're not sure
 
4289
# whether `pass_all' will *always* work, you probably want this one.
 
4290
 
 
4291
case $host_os in
 
4292
aix[4-9]*)
 
4293
  lt_cv_deplibs_check_method=pass_all
 
4294
  ;;
 
4295
 
 
4296
beos*)
 
4297
  lt_cv_deplibs_check_method=pass_all
 
4298
  ;;
 
4299
 
 
4300
bsdi[45]*)
 
4301
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4302
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4303
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4304
  ;;
 
4305
 
 
4306
cygwin*)
 
4307
  # func_win32_libid is a shell function defined in ltmain.sh
 
4308
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4309
  lt_cv_file_magic_cmd='func_win32_libid'
 
4310
  ;;
 
4311
 
 
4312
mingw* | pw32*)
 
4313
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4314
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4315
  # unless we find 'file', for example because we are cross-compiling.
 
4316
  if ( file / ) >/dev/null 2>&1; then
 
4317
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4318
    lt_cv_file_magic_cmd='func_win32_libid'
 
4319
  else
 
4320
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4321
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4322
  fi
 
4323
  ;;
 
4324
 
 
4325
darwin* | rhapsody*)
 
4326
  lt_cv_deplibs_check_method=pass_all
 
4327
  ;;
 
4328
 
 
4329
freebsd* | dragonfly*)
 
4330
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4331
    case $host_cpu in
 
4332
    i*86 )
 
4333
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4334
      # Let's accept both of them until this is cleared up.
 
4335
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4336
      lt_cv_file_magic_cmd=/usr/bin/file
 
4337
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4338
      ;;
 
4339
    esac
 
4340
  else
 
4341
    lt_cv_deplibs_check_method=pass_all
 
4342
  fi
 
4343
  ;;
 
4344
 
 
4345
gnu*)
 
4346
  lt_cv_deplibs_check_method=pass_all
 
4347
  ;;
 
4348
 
 
4349
hpux10.20* | hpux11*)
 
4350
  lt_cv_file_magic_cmd=/usr/bin/file
 
4351
  case $host_cpu in
 
4352
  ia64*)
 
4353
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4354
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4355
    ;;
 
4356
  hppa*64*)
 
4357
    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]'
 
4358
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4359
    ;;
 
4360
  *)
 
4361
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4362
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4363
    ;;
 
4364
  esac
 
4365
  ;;
 
4366
 
 
4367
interix[3-9]*)
 
4368
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4369
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4370
  ;;
 
4371
 
 
4372
irix5* | irix6* | nonstopux*)
 
4373
  case $LD in
 
4374
  *-32|*"-32 ") libmagic=32-bit;;
 
4375
  *-n32|*"-n32 ") libmagic=N32;;
 
4376
  *-64|*"-64 ") libmagic=64-bit;;
 
4377
  *) libmagic=never-match;;
 
4378
  esac
 
4379
  lt_cv_deplibs_check_method=pass_all
 
4380
  ;;
 
4381
 
 
4382
# This must be Linux ELF.
 
4383
linux* | k*bsd*-gnu)
 
4384
  lt_cv_deplibs_check_method=pass_all
 
4385
  ;;
 
4386
 
 
4387
netbsd* | netbsdelf*-gnu)
 
4388
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4389
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4390
  else
 
4391
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4392
  fi
 
4393
  ;;
 
4394
 
 
4395
newos6*)
 
4396
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4397
  lt_cv_file_magic_cmd=/usr/bin/file
 
4398
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4399
  ;;
 
4400
 
 
4401
nto-qnx*)
 
4402
  lt_cv_deplibs_check_method=unknown
 
4403
  ;;
 
4404
 
 
4405
openbsd*)
 
4406
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4407
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4408
  else
 
4409
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4410
  fi
 
4411
  ;;
 
4412
 
 
4413
osf3* | osf4* | osf5*)
 
4414
  lt_cv_deplibs_check_method=pass_all
 
4415
  ;;
 
4416
 
 
4417
rdos*)
 
4418
  lt_cv_deplibs_check_method=pass_all
 
4419
  ;;
 
4420
 
 
4421
solaris*)
 
4422
  lt_cv_deplibs_check_method=pass_all
 
4423
  ;;
 
4424
 
 
4425
sysv4 | sysv4.3*)
 
4426
  case $host_vendor in
 
4427
  motorola)
 
4428
    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]'
 
4429
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4430
    ;;
 
4431
  ncr)
 
4432
    lt_cv_deplibs_check_method=pass_all
 
4433
    ;;
 
4434
  sequent)
 
4435
    lt_cv_file_magic_cmd='/bin/file'
 
4436
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4437
    ;;
 
4438
  sni)
 
4439
    lt_cv_file_magic_cmd='/bin/file'
 
4440
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4441
    lt_cv_file_magic_test_file=/lib/libc.so
 
4442
    ;;
 
4443
  siemens)
 
4444
    lt_cv_deplibs_check_method=pass_all
 
4445
    ;;
 
4446
  pc)
 
4447
    lt_cv_deplibs_check_method=pass_all
 
4448
    ;;
 
4449
  esac
 
4450
  ;;
 
4451
 
 
4452
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4453
  lt_cv_deplibs_check_method=pass_all
 
4454
  ;;
 
4455
esac
 
4456
 
 
4457
fi
 
4458
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4459
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
4460
file_magic_cmd=$lt_cv_file_magic_cmd
 
4461
deplibs_check_method=$lt_cv_deplibs_check_method
 
4462
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4463
 
 
4464
 
 
4465
 
 
4466
 
 
4467
# If no C compiler was specified, use CC.
 
4468
LTCC=${LTCC-"$CC"}
 
4469
 
 
4470
# If no C compiler flags were specified, use CFLAGS.
 
4471
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4472
 
 
4473
# Allow CC to be a program name with arguments.
 
4474
compiler=$CC
 
4475
 
 
4476
 
 
4477
# Check whether --enable-libtool-lock was given.
 
4478
if test "${enable_libtool_lock+set}" = set; then
 
4479
  enableval=$enable_libtool_lock;
 
4480
fi
 
4481
 
 
4482
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4483
 
 
4484
# Some flags need to be propagated to the compiler or linker for good
 
4485
# libtool support.
 
4486
case $host in
 
4487
ia64-*-hpux*)
 
4488
  # Find out which ABI we are using.
 
4489
  echo 'int i;' > conftest.$ac_ext
 
4490
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4491
  (eval $ac_compile) 2>&5
 
4492
  ac_status=$?
 
4493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4494
  (exit $ac_status); }; then
 
4495
    case `/usr/bin/file conftest.$ac_objext` in
 
4496
    *ELF-32*)
 
4497
      HPUX_IA64_MODE="32"
 
4498
      ;;
 
4499
    *ELF-64*)
 
4500
      HPUX_IA64_MODE="64"
 
4501
      ;;
 
4502
    esac
 
4503
  fi
 
4504
  rm -rf conftest*
 
4505
  ;;
 
4506
*-*-irix6*)
 
4507
  # Find out which ABI we are using.
 
4508
  echo '#line 4508 "configure"' > conftest.$ac_ext
 
4509
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4510
  (eval $ac_compile) 2>&5
 
4511
  ac_status=$?
 
4512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4513
  (exit $ac_status); }; then
 
4514
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4515
    case `/usr/bin/file conftest.$ac_objext` in
 
4516
    *32-bit*)
 
4517
      LD="${LD-ld} -melf32bsmip"
 
4518
      ;;
 
4519
    *N32*)
 
4520
      LD="${LD-ld} -melf32bmipn32"
 
4521
      ;;
 
4522
    *64-bit*)
 
4523
      LD="${LD-ld} -melf64bmip"
 
4524
      ;;
 
4525
    esac
 
4526
   else
 
4527
    case `/usr/bin/file conftest.$ac_objext` in
 
4528
    *32-bit*)
 
4529
      LD="${LD-ld} -32"
 
4530
      ;;
 
4531
    *N32*)
 
4532
      LD="${LD-ld} -n32"
 
4533
      ;;
 
4534
    *64-bit*)
 
4535
      LD="${LD-ld} -64"
 
4536
      ;;
 
4537
    esac
 
4538
   fi
 
4539
  fi
 
4540
  rm -rf conftest*
 
4541
  ;;
 
4542
 
 
4543
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4544
s390*-*linux*|sparc*-*linux*)
 
4545
  # Find out which ABI we are using.
 
4546
  echo 'int i;' > conftest.$ac_ext
 
4547
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4548
  (eval $ac_compile) 2>&5
 
4549
  ac_status=$?
 
4550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4551
  (exit $ac_status); }; then
 
4552
    case `/usr/bin/file conftest.o` in
 
4553
    *32-bit*)
 
4554
      case $host in
 
4555
        x86_64-*kfreebsd*-gnu)
 
4556
          LD="${LD-ld} -m elf_i386_fbsd"
 
4557
          ;;
 
4558
        x86_64-*linux*)
 
4559
          LD="${LD-ld} -m elf_i386"
 
4560
          ;;
 
4561
        ppc64-*linux*|powerpc64-*linux*)
 
4562
          LD="${LD-ld} -m elf32ppclinux"
 
4563
          ;;
 
4564
        s390x-*linux*)
 
4565
          LD="${LD-ld} -m elf_s390"
 
4566
          ;;
 
4567
        sparc64-*linux*)
 
4568
          LD="${LD-ld} -m elf32_sparc"
 
4569
          ;;
 
4570
      esac
 
4571
      ;;
 
4572
    *64-bit*)
 
4573
      case $host in
 
4574
        x86_64-*kfreebsd*-gnu)
 
4575
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4576
          ;;
 
4577
        x86_64-*linux*)
 
4578
          LD="${LD-ld} -m elf_x86_64"
 
4579
          ;;
 
4580
        ppc*-*linux*|powerpc*-*linux*)
 
4581
          LD="${LD-ld} -m elf64ppc"
 
4582
          ;;
 
4583
        s390*-*linux*)
 
4584
          LD="${LD-ld} -m elf64_s390"
 
4585
          ;;
 
4586
        sparc*-*linux*)
 
4587
          LD="${LD-ld} -m elf64_sparc"
 
4588
          ;;
 
4589
      esac
 
4590
      ;;
 
4591
    esac
 
4592
  fi
 
4593
  rm -rf conftest*
 
4594
  ;;
 
4595
 
 
4596
*-*-sco3.2v5*)
 
4597
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4598
  SAVE_CFLAGS="$CFLAGS"
 
4599
  CFLAGS="$CFLAGS -belf"
 
4600
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4601
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
4602
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4604
else
 
4605
  ac_ext=c
 
4606
ac_cpp='$CPP $CPPFLAGS'
 
4607
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4608
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4609
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4610
 
 
4611
     cat >conftest.$ac_ext <<_ACEOF
 
4612
/* confdefs.h.  */
 
4613
_ACEOF
 
4614
cat confdefs.h >>conftest.$ac_ext
 
4615
cat >>conftest.$ac_ext <<_ACEOF
 
4616
/* end confdefs.h.  */
 
4617
 
 
4618
int
 
4619
main ()
 
4620
{
 
4621
 
 
4622
  ;
 
4623
  return 0;
 
4624
}
 
4625
_ACEOF
 
4626
rm -f conftest.$ac_objext conftest$ac_exeext
 
4627
if { (ac_try="$ac_link"
 
4628
case "(($ac_try" in
 
4629
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4630
  *) ac_try_echo=$ac_try;;
 
4631
esac
 
4632
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4633
  (eval "$ac_link") 2>conftest.er1
 
4634
  ac_status=$?
 
4635
  grep -v '^ *+' conftest.er1 >conftest.err
 
4636
  rm -f conftest.er1
 
4637
  cat conftest.err >&5
 
4638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4639
  (exit $ac_status); } && {
 
4640
         test -z "$ac_c_werror_flag" ||
 
4641
         test ! -s conftest.err
 
4642
       } && test -s conftest$ac_exeext &&
 
4643
       $as_test_x conftest$ac_exeext; then
 
4644
  lt_cv_cc_needs_belf=yes
 
4645
else
 
4646
  echo "$as_me: failed program was:" >&5
 
4647
sed 's/^/| /' conftest.$ac_ext >&5
 
4648
 
 
4649
        lt_cv_cc_needs_belf=no
 
4650
fi
 
4651
 
 
4652
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4653
      conftest$ac_exeext conftest.$ac_ext
 
4654
     ac_ext=c
 
4655
ac_cpp='$CPP $CPPFLAGS'
 
4656
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4657
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4658
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4659
 
 
4660
fi
 
4661
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4662
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
4663
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4664
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4665
    CFLAGS="$SAVE_CFLAGS"
 
4666
  fi
 
4667
  ;;
 
4668
sparc*-*solaris*)
 
4669
  # Find out which ABI we are using.
 
4670
  echo 'int i;' > conftest.$ac_ext
 
4671
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4672
  (eval $ac_compile) 2>&5
 
4673
  ac_status=$?
 
4674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4675
  (exit $ac_status); }; then
 
4676
    case `/usr/bin/file conftest.o` in
 
4677
    *64-bit*)
 
4678
      case $lt_cv_prog_gnu_ld in
 
4679
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4680
      *)
 
4681
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
4682
          LD="${LD-ld} -64"
 
4683
        fi
 
4684
        ;;
 
4685
      esac
 
4686
      ;;
 
4687
    esac
 
4688
  fi
 
4689
  rm -rf conftest*
 
4690
  ;;
 
4691
 
 
4692
 
 
4693
esac
 
4694
 
 
4695
need_locks="$enable_libtool_lock"
 
4696
 
 
4697
 
 
4698
ac_ext=c
 
4699
ac_cpp='$CPP $CPPFLAGS'
 
4700
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4701
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4702
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4703
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4704
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4705
# On Suns, sometimes $CPP names a directory.
 
4706
if test -n "$CPP" && test -d "$CPP"; then
 
4707
  CPP=
 
4708
fi
 
4709
if test -z "$CPP"; then
 
4710
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4711
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4712
else
 
4713
      # Double quotes because CPP needs to be expanded
 
4714
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4715
    do
 
4716
      ac_preproc_ok=false
 
4717
for ac_c_preproc_warn_flag in '' yes
 
4718
do
 
4719
  # Use a header file that comes with gcc, so configuring glibc
 
4720
  # with a fresh cross-compiler works.
 
4721
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4722
  # <limits.h> exists even on freestanding compilers.
 
4723
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4724
  # not just through cpp. "Syntax error" is here to catch this case.
 
4725
  cat >conftest.$ac_ext <<_ACEOF
 
4726
/* confdefs.h.  */
 
4727
_ACEOF
 
4728
cat confdefs.h >>conftest.$ac_ext
 
4729
cat >>conftest.$ac_ext <<_ACEOF
 
4730
/* end confdefs.h.  */
 
4731
#ifdef __STDC__
 
4732
# include <limits.h>
 
4733
#else
 
4734
# include <assert.h>
 
4735
#endif
 
4736
                     Syntax error
 
4737
_ACEOF
 
4738
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4739
case "(($ac_try" in
 
4740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4741
  *) ac_try_echo=$ac_try;;
 
4742
esac
 
4743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4744
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4745
  ac_status=$?
 
4746
  grep -v '^ *+' conftest.er1 >conftest.err
 
4747
  rm -f conftest.er1
 
4748
  cat conftest.err >&5
 
4749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4750
  (exit $ac_status); } >/dev/null && {
 
4751
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4752
         test ! -s conftest.err
 
4753
       }; then
 
4754
  :
 
4755
else
 
4756
  echo "$as_me: failed program was:" >&5
 
4757
sed 's/^/| /' conftest.$ac_ext >&5
 
4758
 
 
4759
  # Broken: fails on valid input.
 
4760
continue
 
4761
fi
 
4762
 
 
4763
rm -f conftest.err conftest.$ac_ext
 
4764
 
 
4765
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4766
  # can be detected and how.
 
4767
  cat >conftest.$ac_ext <<_ACEOF
 
4768
/* confdefs.h.  */
 
4769
_ACEOF
 
4770
cat confdefs.h >>conftest.$ac_ext
 
4771
cat >>conftest.$ac_ext <<_ACEOF
 
4772
/* end confdefs.h.  */
 
4773
#include <ac_nonexistent.h>
 
4774
_ACEOF
 
4775
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4776
case "(($ac_try" in
 
4777
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4778
  *) ac_try_echo=$ac_try;;
 
4779
esac
 
4780
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4781
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4782
  ac_status=$?
 
4783
  grep -v '^ *+' conftest.er1 >conftest.err
 
4784
  rm -f conftest.er1
 
4785
  cat conftest.err >&5
 
4786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4787
  (exit $ac_status); } >/dev/null && {
 
4788
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4789
         test ! -s conftest.err
 
4790
       }; then
 
4791
  # Broken: success on invalid input.
 
4792
continue
 
4793
else
 
4794
  echo "$as_me: failed program was:" >&5
 
4795
sed 's/^/| /' conftest.$ac_ext >&5
 
4796
 
 
4797
  # Passes both tests.
 
4798
ac_preproc_ok=:
 
4799
break
 
4800
fi
 
4801
 
 
4802
rm -f conftest.err conftest.$ac_ext
 
4803
 
 
4804
done
 
4805
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4806
rm -f conftest.err conftest.$ac_ext
 
4807
if $ac_preproc_ok; then
 
4808
  break
 
4809
fi
 
4810
 
 
4811
    done
 
4812
    ac_cv_prog_CPP=$CPP
 
4813
 
 
4814
fi
 
4815
  CPP=$ac_cv_prog_CPP
 
4816
else
 
4817
  ac_cv_prog_CPP=$CPP
 
4818
fi
 
4819
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4820
echo "${ECHO_T}$CPP" >&6; }
 
4821
ac_preproc_ok=false
 
4822
for ac_c_preproc_warn_flag in '' yes
 
4823
do
 
4824
  # Use a header file that comes with gcc, so configuring glibc
 
4825
  # with a fresh cross-compiler works.
 
4826
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4827
  # <limits.h> exists even on freestanding compilers.
 
4828
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4829
  # not just through cpp. "Syntax error" is here to catch this case.
 
4830
  cat >conftest.$ac_ext <<_ACEOF
 
4831
/* confdefs.h.  */
 
4832
_ACEOF
 
4833
cat confdefs.h >>conftest.$ac_ext
 
4834
cat >>conftest.$ac_ext <<_ACEOF
 
4835
/* end confdefs.h.  */
 
4836
#ifdef __STDC__
 
4837
# include <limits.h>
 
4838
#else
 
4839
# include <assert.h>
 
4840
#endif
 
4841
                     Syntax error
 
4842
_ACEOF
 
4843
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4844
case "(($ac_try" in
 
4845
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4846
  *) ac_try_echo=$ac_try;;
 
4847
esac
 
4848
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4849
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4850
  ac_status=$?
 
4851
  grep -v '^ *+' conftest.er1 >conftest.err
 
4852
  rm -f conftest.er1
 
4853
  cat conftest.err >&5
 
4854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4855
  (exit $ac_status); } >/dev/null && {
 
4856
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4857
         test ! -s conftest.err
 
4858
       }; then
 
4859
  :
 
4860
else
 
4861
  echo "$as_me: failed program was:" >&5
 
4862
sed 's/^/| /' conftest.$ac_ext >&5
 
4863
 
 
4864
  # Broken: fails on valid input.
 
4865
continue
 
4866
fi
 
4867
 
 
4868
rm -f conftest.err conftest.$ac_ext
 
4869
 
 
4870
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4871
  # can be detected and how.
 
4872
  cat >conftest.$ac_ext <<_ACEOF
 
4873
/* confdefs.h.  */
 
4874
_ACEOF
 
4875
cat confdefs.h >>conftest.$ac_ext
 
4876
cat >>conftest.$ac_ext <<_ACEOF
 
4877
/* end confdefs.h.  */
 
4878
#include <ac_nonexistent.h>
 
4879
_ACEOF
 
4880
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4881
case "(($ac_try" in
 
4882
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4883
  *) ac_try_echo=$ac_try;;
 
4884
esac
 
4885
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4886
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4887
  ac_status=$?
 
4888
  grep -v '^ *+' conftest.er1 >conftest.err
 
4889
  rm -f conftest.er1
 
4890
  cat conftest.err >&5
 
4891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4892
  (exit $ac_status); } >/dev/null && {
 
4893
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4894
         test ! -s conftest.err
 
4895
       }; then
 
4896
  # Broken: success on invalid input.
 
4897
continue
 
4898
else
 
4899
  echo "$as_me: failed program was:" >&5
 
4900
sed 's/^/| /' conftest.$ac_ext >&5
 
4901
 
 
4902
  # Passes both tests.
 
4903
ac_preproc_ok=:
 
4904
break
 
4905
fi
 
4906
 
 
4907
rm -f conftest.err conftest.$ac_ext
 
4908
 
 
4909
done
 
4910
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4911
rm -f conftest.err conftest.$ac_ext
 
4912
if $ac_preproc_ok; then
 
4913
  :
 
4914
else
 
4915
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4916
See \`config.log' for more details." >&5
 
4917
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4918
See \`config.log' for more details." >&2;}
 
4919
   { (exit 1); exit 1; }; }
 
4920
fi
 
4921
 
 
4922
ac_ext=c
 
4923
ac_cpp='$CPP $CPPFLAGS'
 
4924
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4925
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4926
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4927
 
 
4928
 
 
4929
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4930
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4931
if test "${ac_cv_header_stdc+set}" = set; then
 
4932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4933
else
 
4934
  cat >conftest.$ac_ext <<_ACEOF
 
4935
/* confdefs.h.  */
 
4936
_ACEOF
 
4937
cat confdefs.h >>conftest.$ac_ext
 
4938
cat >>conftest.$ac_ext <<_ACEOF
 
4939
/* end confdefs.h.  */
 
4940
#include <stdlib.h>
 
4941
#include <stdarg.h>
 
4942
#include <string.h>
 
4943
#include <float.h>
 
4944
 
 
4945
int
 
4946
main ()
 
4947
{
 
4948
 
 
4949
  ;
 
4950
  return 0;
 
4951
}
 
4952
_ACEOF
 
4953
rm -f conftest.$ac_objext
 
4954
if { (ac_try="$ac_compile"
 
4955
case "(($ac_try" in
 
4956
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4957
  *) ac_try_echo=$ac_try;;
 
4958
esac
 
4959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4960
  (eval "$ac_compile") 2>conftest.er1
 
4961
  ac_status=$?
 
4962
  grep -v '^ *+' conftest.er1 >conftest.err
 
4963
  rm -f conftest.er1
 
4964
  cat conftest.err >&5
 
4965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4966
  (exit $ac_status); } && {
 
4967
         test -z "$ac_c_werror_flag" ||
 
4968
         test ! -s conftest.err
 
4969
       } && test -s conftest.$ac_objext; then
 
4970
  ac_cv_header_stdc=yes
 
4971
else
 
4972
  echo "$as_me: failed program was:" >&5
 
4973
sed 's/^/| /' conftest.$ac_ext >&5
 
4974
 
 
4975
        ac_cv_header_stdc=no
 
4976
fi
 
4977
 
 
4978
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4979
 
 
4980
if test $ac_cv_header_stdc = yes; then
 
4981
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4982
  cat >conftest.$ac_ext <<_ACEOF
 
4983
/* confdefs.h.  */
 
4984
_ACEOF
 
4985
cat confdefs.h >>conftest.$ac_ext
 
4986
cat >>conftest.$ac_ext <<_ACEOF
 
4987
/* end confdefs.h.  */
 
4988
#include <string.h>
 
4989
 
 
4990
_ACEOF
 
4991
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4992
  $EGREP "memchr" >/dev/null 2>&1; then
 
4993
  :
 
4994
else
 
4995
  ac_cv_header_stdc=no
 
4996
fi
 
4997
rm -f conftest*
 
4998
 
 
4999
fi
 
5000
 
 
5001
if test $ac_cv_header_stdc = yes; then
 
5002
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5003
  cat >conftest.$ac_ext <<_ACEOF
 
5004
/* confdefs.h.  */
 
5005
_ACEOF
 
5006
cat confdefs.h >>conftest.$ac_ext
 
5007
cat >>conftest.$ac_ext <<_ACEOF
 
5008
/* end confdefs.h.  */
 
5009
#include <stdlib.h>
 
5010
 
 
5011
_ACEOF
 
5012
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5013
  $EGREP "free" >/dev/null 2>&1; then
 
5014
  :
 
5015
else
 
5016
  ac_cv_header_stdc=no
 
5017
fi
 
5018
rm -f conftest*
 
5019
 
 
5020
fi
 
5021
 
 
5022
if test $ac_cv_header_stdc = yes; then
 
5023
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5024
  if test "$cross_compiling" = yes; then
 
5025
  :
 
5026
else
 
5027
  cat >conftest.$ac_ext <<_ACEOF
 
5028
/* confdefs.h.  */
 
5029
_ACEOF
 
5030
cat confdefs.h >>conftest.$ac_ext
 
5031
cat >>conftest.$ac_ext <<_ACEOF
 
5032
/* end confdefs.h.  */
 
5033
#include <ctype.h>
 
5034
#include <stdlib.h>
 
5035
#if ((' ' & 0x0FF) == 0x020)
 
5036
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5037
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5038
#else
 
5039
# define ISLOWER(c) \
 
5040
                   (('a' <= (c) && (c) <= 'i') \
 
5041
                     || ('j' <= (c) && (c) <= 'r') \
 
5042
                     || ('s' <= (c) && (c) <= 'z'))
 
5043
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5044
#endif
 
5045
 
 
5046
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5047
int
 
5048
main ()
 
5049
{
 
5050
  int i;
 
5051
  for (i = 0; i < 256; i++)
 
5052
    if (XOR (islower (i), ISLOWER (i))
 
5053
        || toupper (i) != TOUPPER (i))
 
5054
      return 2;
 
5055
  return 0;
 
5056
}
 
5057
_ACEOF
 
5058
rm -f conftest$ac_exeext
 
5059
if { (ac_try="$ac_link"
 
5060
case "(($ac_try" in
 
5061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5062
  *) ac_try_echo=$ac_try;;
 
5063
esac
 
5064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5065
  (eval "$ac_link") 2>&5
 
5066
  ac_status=$?
 
5067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5068
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5069
  { (case "(($ac_try" in
 
5070
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5071
  *) ac_try_echo=$ac_try;;
 
5072
esac
 
5073
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5074
  (eval "$ac_try") 2>&5
 
5075
  ac_status=$?
 
5076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5077
  (exit $ac_status); }; }; then
 
5078
  :
 
5079
else
 
5080
  echo "$as_me: program exited with status $ac_status" >&5
 
5081
echo "$as_me: failed program was:" >&5
 
5082
sed 's/^/| /' conftest.$ac_ext >&5
 
5083
 
 
5084
( exit $ac_status )
 
5085
ac_cv_header_stdc=no
 
5086
fi
 
5087
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5088
fi
 
5089
 
 
5090
 
 
5091
fi
 
5092
fi
 
5093
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5094
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5095
if test $ac_cv_header_stdc = yes; then
 
5096
 
 
5097
cat >>confdefs.h <<\_ACEOF
 
5098
#define STDC_HEADERS 1
 
5099
_ACEOF
 
5100
 
 
5101
fi
 
5102
 
 
5103
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5104
 
 
5105
 
 
5106
 
 
5107
 
 
5108
 
 
5109
 
 
5110
 
 
5111
 
 
5112
 
 
5113
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5114
                  inttypes.h stdint.h unistd.h
 
5115
do
 
5116
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5117
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5118
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5119
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5120
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5121
else
 
5122
  cat >conftest.$ac_ext <<_ACEOF
 
5123
/* confdefs.h.  */
 
5124
_ACEOF
 
5125
cat confdefs.h >>conftest.$ac_ext
 
5126
cat >>conftest.$ac_ext <<_ACEOF
 
5127
/* end confdefs.h.  */
 
5128
$ac_includes_default
 
5129
 
 
5130
#include <$ac_header>
 
5131
_ACEOF
 
5132
rm -f conftest.$ac_objext
 
5133
if { (ac_try="$ac_compile"
 
5134
case "(($ac_try" in
 
5135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5136
  *) ac_try_echo=$ac_try;;
 
5137
esac
 
5138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5139
  (eval "$ac_compile") 2>conftest.er1
 
5140
  ac_status=$?
 
5141
  grep -v '^ *+' conftest.er1 >conftest.err
 
5142
  rm -f conftest.er1
 
5143
  cat conftest.err >&5
 
5144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5145
  (exit $ac_status); } && {
 
5146
         test -z "$ac_c_werror_flag" ||
 
5147
         test ! -s conftest.err
 
5148
       } && test -s conftest.$ac_objext; then
 
5149
  eval "$as_ac_Header=yes"
 
5150
else
 
5151
  echo "$as_me: failed program was:" >&5
 
5152
sed 's/^/| /' conftest.$ac_ext >&5
 
5153
 
 
5154
        eval "$as_ac_Header=no"
 
5155
fi
 
5156
 
 
5157
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5158
fi
 
5159
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5160
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5161
echo "${ECHO_T}$ac_res" >&6; }
 
5162
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5163
  cat >>confdefs.h <<_ACEOF
 
5164
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5165
_ACEOF
 
5166
 
 
5167
fi
 
5168
 
 
5169
done
 
5170
 
 
5171
 
 
5172
 
 
5173
for ac_header in dlfcn.h
 
5174
do
 
5175
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5176
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5177
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5178
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5179
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5180
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5181
fi
 
5182
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5183
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5184
echo "${ECHO_T}$ac_res" >&6; }
 
5185
else
 
5186
  # Is the header compilable?
 
5187
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5188
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5189
cat >conftest.$ac_ext <<_ACEOF
 
5190
/* confdefs.h.  */
 
5191
_ACEOF
 
5192
cat confdefs.h >>conftest.$ac_ext
 
5193
cat >>conftest.$ac_ext <<_ACEOF
 
5194
/* end confdefs.h.  */
 
5195
$ac_includes_default
 
5196
#include <$ac_header>
 
5197
_ACEOF
 
5198
rm -f conftest.$ac_objext
 
5199
if { (ac_try="$ac_compile"
 
5200
case "(($ac_try" in
 
5201
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5202
  *) ac_try_echo=$ac_try;;
 
5203
esac
 
5204
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5205
  (eval "$ac_compile") 2>conftest.er1
 
5206
  ac_status=$?
 
5207
  grep -v '^ *+' conftest.er1 >conftest.err
 
5208
  rm -f conftest.er1
 
5209
  cat conftest.err >&5
 
5210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5211
  (exit $ac_status); } && {
 
5212
         test -z "$ac_c_werror_flag" ||
 
5213
         test ! -s conftest.err
 
5214
       } && test -s conftest.$ac_objext; then
 
5215
  ac_header_compiler=yes
 
5216
else
 
5217
  echo "$as_me: failed program was:" >&5
 
5218
sed 's/^/| /' conftest.$ac_ext >&5
 
5219
 
 
5220
        ac_header_compiler=no
 
5221
fi
 
5222
 
 
5223
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5224
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5225
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5226
 
 
5227
# Is the header present?
 
5228
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5229
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5230
cat >conftest.$ac_ext <<_ACEOF
 
5231
/* confdefs.h.  */
 
5232
_ACEOF
 
5233
cat confdefs.h >>conftest.$ac_ext
 
5234
cat >>conftest.$ac_ext <<_ACEOF
 
5235
/* end confdefs.h.  */
 
5236
#include <$ac_header>
 
5237
_ACEOF
 
5238
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5239
case "(($ac_try" in
 
5240
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5241
  *) ac_try_echo=$ac_try;;
 
5242
esac
 
5243
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5244
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5245
  ac_status=$?
 
5246
  grep -v '^ *+' conftest.er1 >conftest.err
 
5247
  rm -f conftest.er1
 
5248
  cat conftest.err >&5
 
5249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5250
  (exit $ac_status); } >/dev/null && {
 
5251
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5252
         test ! -s conftest.err
 
5253
       }; then
 
5254
  ac_header_preproc=yes
 
5255
else
 
5256
  echo "$as_me: failed program was:" >&5
 
5257
sed 's/^/| /' conftest.$ac_ext >&5
 
5258
 
 
5259
  ac_header_preproc=no
 
5260
fi
 
5261
 
 
5262
rm -f conftest.err conftest.$ac_ext
 
5263
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5264
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5265
 
 
5266
# So?  What about this header?
 
5267
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5268
  yes:no: )
 
5269
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5270
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5271
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5272
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5273
    ac_header_preproc=yes
 
5274
    ;;
 
5275
  no:yes:* )
 
5276
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5277
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5278
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5279
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5280
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5281
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5282
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5283
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5284
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5285
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5286
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5287
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5288
    ( cat <<\_ASBOX
 
5289
## -------------------------------------------- ##
 
5290
## Report this to Sage Weil <sage@newdream.net> ##
 
5291
## -------------------------------------------- ##
 
5292
_ASBOX
 
5293
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5294
    ;;
 
5295
esac
 
5296
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5297
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5298
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5300
else
 
5301
  eval "$as_ac_Header=\$ac_header_preproc"
 
5302
fi
 
5303
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5304
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5305
echo "${ECHO_T}$ac_res" >&6; }
 
5306
 
 
5307
fi
 
5308
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5309
  cat >>confdefs.h <<_ACEOF
 
5310
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5311
_ACEOF
 
5312
 
 
5313
fi
 
5314
 
 
5315
done
 
5316
 
 
5317
ac_ext=cpp
 
5318
ac_cpp='$CXXCPP $CPPFLAGS'
 
5319
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5320
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5321
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5322
if test -z "$CXX"; then
 
5323
  if test -n "$CCC"; then
 
5324
    CXX=$CCC
 
5325
  else
 
5326
    if test -n "$ac_tool_prefix"; then
 
5327
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5328
  do
 
5329
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5330
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5331
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5332
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5333
if test "${ac_cv_prog_CXX+set}" = set; then
 
5334
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5335
else
 
5336
  if test -n "$CXX"; then
 
5337
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5338
else
 
5339
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5340
for as_dir in $PATH
 
5341
do
 
5342
  IFS=$as_save_IFS
 
5343
  test -z "$as_dir" && as_dir=.
 
5344
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5345
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5346
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5347
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5348
    break 2
 
5349
  fi
 
5350
done
 
5351
done
 
5352
IFS=$as_save_IFS
 
5353
 
 
5354
fi
 
5355
fi
 
5356
CXX=$ac_cv_prog_CXX
 
5357
if test -n "$CXX"; then
 
5358
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5359
echo "${ECHO_T}$CXX" >&6; }
 
5360
else
 
5361
  { echo "$as_me:$LINENO: result: no" >&5
 
5362
echo "${ECHO_T}no" >&6; }
 
5363
fi
 
5364
 
 
5365
 
 
5366
    test -n "$CXX" && break
 
5367
  done
 
5368
fi
 
5369
if test -z "$CXX"; then
 
5370
  ac_ct_CXX=$CXX
 
5371
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5372
do
 
5373
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5374
set dummy $ac_prog; ac_word=$2
 
5375
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5376
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5377
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5378
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5379
else
 
5380
  if test -n "$ac_ct_CXX"; then
 
5381
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5382
else
 
5383
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5384
for as_dir in $PATH
 
5385
do
 
5386
  IFS=$as_save_IFS
 
5387
  test -z "$as_dir" && as_dir=.
 
5388
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5389
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5390
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5391
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5392
    break 2
 
5393
  fi
 
5394
done
 
5395
done
 
5396
IFS=$as_save_IFS
 
5397
 
 
5398
fi
 
5399
fi
 
5400
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5401
if test -n "$ac_ct_CXX"; then
 
5402
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5403
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
5404
else
 
5405
  { echo "$as_me:$LINENO: result: no" >&5
 
5406
echo "${ECHO_T}no" >&6; }
 
5407
fi
 
5408
 
 
5409
 
 
5410
  test -n "$ac_ct_CXX" && break
 
5411
done
 
5412
 
 
5413
  if test "x$ac_ct_CXX" = x; then
 
5414
    CXX="g++"
 
5415
  else
 
5416
    case $cross_compiling:$ac_tool_warned in
 
5417
yes:)
 
5418
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5419
whose name does not start with the host triplet.  If you think this
 
5420
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5421
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5422
whose name does not start with the host triplet.  If you think this
 
5423
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5424
ac_tool_warned=yes ;;
 
5425
esac
 
5426
    CXX=$ac_ct_CXX
 
5427
  fi
 
5428
fi
 
5429
 
 
5430
  fi
 
5431
fi
 
5432
# Provide some information about the compiler.
 
5433
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5434
ac_compiler=`set X $ac_compile; echo $2`
 
5435
{ (ac_try="$ac_compiler --version >&5"
 
5436
case "(($ac_try" in
 
5437
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5438
  *) ac_try_echo=$ac_try;;
 
5439
esac
 
5440
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5441
  (eval "$ac_compiler --version >&5") 2>&5
 
5442
  ac_status=$?
 
5443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5444
  (exit $ac_status); }
 
5445
{ (ac_try="$ac_compiler -v >&5"
 
5446
case "(($ac_try" in
 
5447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5448
  *) ac_try_echo=$ac_try;;
 
5449
esac
 
5450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5451
  (eval "$ac_compiler -v >&5") 2>&5
 
5452
  ac_status=$?
 
5453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5454
  (exit $ac_status); }
 
5455
{ (ac_try="$ac_compiler -V >&5"
 
5456
case "(($ac_try" in
 
5457
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5458
  *) ac_try_echo=$ac_try;;
 
5459
esac
 
5460
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5461
  (eval "$ac_compiler -V >&5") 2>&5
 
5462
  ac_status=$?
 
5463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5464
  (exit $ac_status); }
 
5465
 
 
5466
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5467
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
5468
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5469
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5470
else
 
5471
  cat >conftest.$ac_ext <<_ACEOF
 
5472
/* confdefs.h.  */
 
5473
_ACEOF
 
5474
cat confdefs.h >>conftest.$ac_ext
 
5475
cat >>conftest.$ac_ext <<_ACEOF
 
5476
/* end confdefs.h.  */
 
5477
 
 
5478
int
 
5479
main ()
 
5480
{
 
5481
#ifndef __GNUC__
 
5482
       choke me
 
5483
#endif
 
5484
 
 
5485
  ;
 
5486
  return 0;
 
5487
}
 
5488
_ACEOF
 
5489
rm -f conftest.$ac_objext
 
5490
if { (ac_try="$ac_compile"
 
5491
case "(($ac_try" in
 
5492
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5493
  *) ac_try_echo=$ac_try;;
 
5494
esac
 
5495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5496
  (eval "$ac_compile") 2>conftest.er1
 
5497
  ac_status=$?
 
5498
  grep -v '^ *+' conftest.er1 >conftest.err
 
5499
  rm -f conftest.er1
 
5500
  cat conftest.err >&5
 
5501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5502
  (exit $ac_status); } && {
 
5503
         test -z "$ac_cxx_werror_flag" ||
 
5504
         test ! -s conftest.err
 
5505
       } && test -s conftest.$ac_objext; then
 
5506
  ac_compiler_gnu=yes
 
5507
else
 
5508
  echo "$as_me: failed program was:" >&5
 
5509
sed 's/^/| /' conftest.$ac_ext >&5
 
5510
 
 
5511
        ac_compiler_gnu=no
 
5512
fi
 
5513
 
 
5514
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5515
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5516
 
 
5517
fi
 
5518
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5519
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
5520
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5521
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5522
ac_save_CXXFLAGS=$CXXFLAGS
 
5523
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5524
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
5525
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5527
else
 
5528
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5529
   ac_cxx_werror_flag=yes
 
5530
   ac_cv_prog_cxx_g=no
 
5531
   CXXFLAGS="-g"
 
5532
   cat >conftest.$ac_ext <<_ACEOF
 
5533
/* confdefs.h.  */
 
5534
_ACEOF
 
5535
cat confdefs.h >>conftest.$ac_ext
 
5536
cat >>conftest.$ac_ext <<_ACEOF
 
5537
/* end confdefs.h.  */
 
5538
 
 
5539
int
 
5540
main ()
 
5541
{
 
5542
 
 
5543
  ;
 
5544
  return 0;
 
5545
}
 
5546
_ACEOF
 
5547
rm -f conftest.$ac_objext
 
5548
if { (ac_try="$ac_compile"
 
5549
case "(($ac_try" in
 
5550
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5551
  *) ac_try_echo=$ac_try;;
 
5552
esac
 
5553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5554
  (eval "$ac_compile") 2>conftest.er1
 
5555
  ac_status=$?
 
5556
  grep -v '^ *+' conftest.er1 >conftest.err
 
5557
  rm -f conftest.er1
 
5558
  cat conftest.err >&5
 
5559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5560
  (exit $ac_status); } && {
 
5561
         test -z "$ac_cxx_werror_flag" ||
 
5562
         test ! -s conftest.err
 
5563
       } && test -s conftest.$ac_objext; then
 
5564
  ac_cv_prog_cxx_g=yes
 
5565
else
 
5566
  echo "$as_me: failed program was:" >&5
 
5567
sed 's/^/| /' conftest.$ac_ext >&5
 
5568
 
 
5569
        CXXFLAGS=""
 
5570
      cat >conftest.$ac_ext <<_ACEOF
 
5571
/* confdefs.h.  */
 
5572
_ACEOF
 
5573
cat confdefs.h >>conftest.$ac_ext
 
5574
cat >>conftest.$ac_ext <<_ACEOF
 
5575
/* end confdefs.h.  */
 
5576
 
 
5577
int
 
5578
main ()
 
5579
{
 
5580
 
 
5581
  ;
 
5582
  return 0;
 
5583
}
 
5584
_ACEOF
 
5585
rm -f conftest.$ac_objext
 
5586
if { (ac_try="$ac_compile"
 
5587
case "(($ac_try" in
 
5588
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5589
  *) ac_try_echo=$ac_try;;
 
5590
esac
 
5591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5592
  (eval "$ac_compile") 2>conftest.er1
 
5593
  ac_status=$?
 
5594
  grep -v '^ *+' conftest.er1 >conftest.err
 
5595
  rm -f conftest.er1
 
5596
  cat conftest.err >&5
 
5597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5598
  (exit $ac_status); } && {
 
5599
         test -z "$ac_cxx_werror_flag" ||
 
5600
         test ! -s conftest.err
 
5601
       } && test -s conftest.$ac_objext; then
 
5602
  :
 
5603
else
 
5604
  echo "$as_me: failed program was:" >&5
 
5605
sed 's/^/| /' conftest.$ac_ext >&5
 
5606
 
 
5607
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5608
         CXXFLAGS="-g"
 
5609
         cat >conftest.$ac_ext <<_ACEOF
 
5610
/* confdefs.h.  */
 
5611
_ACEOF
 
5612
cat confdefs.h >>conftest.$ac_ext
 
5613
cat >>conftest.$ac_ext <<_ACEOF
 
5614
/* end confdefs.h.  */
 
5615
 
 
5616
int
 
5617
main ()
 
5618
{
 
5619
 
 
5620
  ;
 
5621
  return 0;
 
5622
}
 
5623
_ACEOF
 
5624
rm -f conftest.$ac_objext
 
5625
if { (ac_try="$ac_compile"
 
5626
case "(($ac_try" in
 
5627
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5628
  *) ac_try_echo=$ac_try;;
 
5629
esac
 
5630
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5631
  (eval "$ac_compile") 2>conftest.er1
 
5632
  ac_status=$?
 
5633
  grep -v '^ *+' conftest.er1 >conftest.err
 
5634
  rm -f conftest.er1
 
5635
  cat conftest.err >&5
 
5636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5637
  (exit $ac_status); } && {
 
5638
         test -z "$ac_cxx_werror_flag" ||
 
5639
         test ! -s conftest.err
 
5640
       } && test -s conftest.$ac_objext; then
 
5641
  ac_cv_prog_cxx_g=yes
 
5642
else
 
5643
  echo "$as_me: failed program was:" >&5
 
5644
sed 's/^/| /' conftest.$ac_ext >&5
 
5645
 
 
5646
 
 
5647
fi
 
5648
 
 
5649
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5650
fi
 
5651
 
 
5652
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5653
fi
 
5654
 
 
5655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5656
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5657
fi
 
5658
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5659
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
5660
if test "$ac_test_CXXFLAGS" = set; then
 
5661
  CXXFLAGS=$ac_save_CXXFLAGS
 
5662
elif test $ac_cv_prog_cxx_g = yes; then
 
5663
  if test "$GXX" = yes; then
 
5664
    CXXFLAGS="-g -O2"
 
5665
  else
 
5666
    CXXFLAGS="-g"
 
5667
  fi
 
5668
else
 
5669
  if test "$GXX" = yes; then
 
5670
    CXXFLAGS="-O2"
 
5671
  else
 
5672
    CXXFLAGS=
 
5673
  fi
 
5674
fi
 
5675
ac_ext=cpp
 
5676
ac_cpp='$CXXCPP $CPPFLAGS'
 
5677
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5678
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5679
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5680
 
 
5681
depcc="$CXX"  am_compiler_list=
 
5682
 
 
5683
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5684
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
5685
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5686
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5687
else
 
5688
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5689
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5690
  # making bogus files that we don't know about and never remove.  For
 
5691
  # instance it was reported that on HP-UX the gcc test will end up
 
5692
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5693
  # in D'.
 
5694
  mkdir conftest.dir
 
5695
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5696
  # using a relative directory.
 
5697
  cp "$am_depcomp" conftest.dir
 
5698
  cd conftest.dir
 
5699
  # We will build objects and dependencies in a subdirectory because
 
5700
  # it helps to detect inapplicable dependency modes.  For instance
 
5701
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5702
  # side effect of compilation, but ICC will put the dependencies in
 
5703
  # the current directory while Tru64 will put them in the object
 
5704
  # directory.
 
5705
  mkdir sub
 
5706
 
 
5707
  am_cv_CXX_dependencies_compiler_type=none
 
5708
  if test "$am_compiler_list" = ""; then
 
5709
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5710
  fi
 
5711
  for depmode in $am_compiler_list; do
 
5712
    # Setup a source with many dependencies, because some compilers
 
5713
    # like to wrap large dependency lists on column 80 (with \), and
 
5714
    # we should not choose a depcomp mode which is confused by this.
 
5715
    #
 
5716
    # We need to recreate these files for each test, as the compiler may
 
5717
    # overwrite some of them when testing with obscure command lines.
 
5718
    # This happens at least with the AIX C compiler.
 
5719
    : > sub/conftest.c
 
5720
    for i in 1 2 3 4 5 6; do
 
5721
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5722
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5723
      # Solaris 8's {/usr,}/bin/sh.
 
5724
      touch sub/conftst$i.h
 
5725
    done
 
5726
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5727
 
 
5728
    case $depmode in
 
5729
    nosideeffect)
 
5730
      # after this tag, mechanisms are not by side-effect, so they'll
 
5731
      # only be used when explicitly requested
 
5732
      if test "x$enable_dependency_tracking" = xyes; then
 
5733
        continue
 
5734
      else
 
5735
        break
 
5736
      fi
 
5737
      ;;
 
5738
    none) break ;;
 
5739
    esac
 
5740
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5741
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5742
    # handle `-M -o', and we need to detect this.
 
5743
    if depmode=$depmode \
 
5744
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5745
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5746
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5747
         >/dev/null 2>conftest.err &&
 
5748
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
5749
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5750
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5751
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5752
      # icc doesn't choke on unknown options, it will just issue warnings
 
5753
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5754
      # that says an option was ignored or not supported.
 
5755
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5756
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5757
      # The diagnosis changed in icc 8.0:
 
5758
      #   icc: Command line remark: option '-MP' not supported
 
5759
      if (grep 'ignoring option' conftest.err ||
 
5760
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5761
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5762
        break
 
5763
      fi
 
5764
    fi
 
5765
  done
 
5766
 
 
5767
  cd ..
 
5768
  rm -rf conftest.dir
 
5769
else
 
5770
  am_cv_CXX_dependencies_compiler_type=none
 
5771
fi
 
5772
 
 
5773
fi
 
5774
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5775
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
5776
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5777
 
 
5778
 if
 
5779
  test "x$enable_dependency_tracking" != xno \
 
5780
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5781
  am__fastdepCXX_TRUE=
 
5782
  am__fastdepCXX_FALSE='#'
 
5783
else
 
5784
  am__fastdepCXX_TRUE='#'
 
5785
  am__fastdepCXX_FALSE=
 
5786
fi
 
5787
 
 
5788
 
 
5789
 
 
5790
 
 
5791
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5792
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5793
    (test "X$CXX" != "Xg++"))) ; then
 
5794
  ac_ext=cpp
 
5795
ac_cpp='$CXXCPP $CPPFLAGS'
 
5796
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5797
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5798
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5799
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5800
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
5801
if test -z "$CXXCPP"; then
 
5802
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5803
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5804
else
 
5805
      # Double quotes because CXXCPP needs to be expanded
 
5806
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5807
    do
 
5808
      ac_preproc_ok=false
 
5809
for ac_cxx_preproc_warn_flag in '' yes
 
5810
do
 
5811
  # Use a header file that comes with gcc, so configuring glibc
 
5812
  # with a fresh cross-compiler works.
 
5813
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5814
  # <limits.h> exists even on freestanding compilers.
 
5815
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5816
  # not just through cpp. "Syntax error" is here to catch this case.
 
5817
  cat >conftest.$ac_ext <<_ACEOF
 
5818
/* confdefs.h.  */
 
5819
_ACEOF
 
5820
cat confdefs.h >>conftest.$ac_ext
 
5821
cat >>conftest.$ac_ext <<_ACEOF
 
5822
/* end confdefs.h.  */
 
5823
#ifdef __STDC__
 
5824
# include <limits.h>
 
5825
#else
 
5826
# include <assert.h>
 
5827
#endif
 
5828
                     Syntax error
 
5829
_ACEOF
 
5830
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5831
case "(($ac_try" in
 
5832
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5833
  *) ac_try_echo=$ac_try;;
 
5834
esac
 
5835
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5836
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5837
  ac_status=$?
 
5838
  grep -v '^ *+' conftest.er1 >conftest.err
 
5839
  rm -f conftest.er1
 
5840
  cat conftest.err >&5
 
5841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5842
  (exit $ac_status); } >/dev/null && {
 
5843
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5844
         test ! -s conftest.err
 
5845
       }; then
 
5846
  :
 
5847
else
 
5848
  echo "$as_me: failed program was:" >&5
 
5849
sed 's/^/| /' conftest.$ac_ext >&5
 
5850
 
 
5851
  # Broken: fails on valid input.
 
5852
continue
 
5853
fi
 
5854
 
 
5855
rm -f conftest.err conftest.$ac_ext
 
5856
 
 
5857
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5858
  # can be detected and how.
 
5859
  cat >conftest.$ac_ext <<_ACEOF
 
5860
/* confdefs.h.  */
 
5861
_ACEOF
 
5862
cat confdefs.h >>conftest.$ac_ext
 
5863
cat >>conftest.$ac_ext <<_ACEOF
 
5864
/* end confdefs.h.  */
 
5865
#include <ac_nonexistent.h>
 
5866
_ACEOF
 
5867
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5868
case "(($ac_try" in
 
5869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5870
  *) ac_try_echo=$ac_try;;
 
5871
esac
 
5872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5873
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5874
  ac_status=$?
 
5875
  grep -v '^ *+' conftest.er1 >conftest.err
 
5876
  rm -f conftest.er1
 
5877
  cat conftest.err >&5
 
5878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5879
  (exit $ac_status); } >/dev/null && {
 
5880
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5881
         test ! -s conftest.err
 
5882
       }; then
 
5883
  # Broken: success on invalid input.
 
5884
continue
 
5885
else
 
5886
  echo "$as_me: failed program was:" >&5
 
5887
sed 's/^/| /' conftest.$ac_ext >&5
 
5888
 
 
5889
  # Passes both tests.
 
5890
ac_preproc_ok=:
 
5891
break
 
5892
fi
 
5893
 
 
5894
rm -f conftest.err conftest.$ac_ext
 
5895
 
 
5896
done
 
5897
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5898
rm -f conftest.err conftest.$ac_ext
 
5899
if $ac_preproc_ok; then
 
5900
  break
 
5901
fi
 
5902
 
 
5903
    done
 
5904
    ac_cv_prog_CXXCPP=$CXXCPP
 
5905
 
 
5906
fi
 
5907
  CXXCPP=$ac_cv_prog_CXXCPP
 
5908
else
 
5909
  ac_cv_prog_CXXCPP=$CXXCPP
 
5910
fi
 
5911
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5912
echo "${ECHO_T}$CXXCPP" >&6; }
 
5913
ac_preproc_ok=false
 
5914
for ac_cxx_preproc_warn_flag in '' yes
 
5915
do
 
5916
  # Use a header file that comes with gcc, so configuring glibc
 
5917
  # with a fresh cross-compiler works.
 
5918
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5919
  # <limits.h> exists even on freestanding compilers.
 
5920
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5921
  # not just through cpp. "Syntax error" is here to catch this case.
 
5922
  cat >conftest.$ac_ext <<_ACEOF
 
5923
/* confdefs.h.  */
 
5924
_ACEOF
 
5925
cat confdefs.h >>conftest.$ac_ext
 
5926
cat >>conftest.$ac_ext <<_ACEOF
 
5927
/* end confdefs.h.  */
 
5928
#ifdef __STDC__
 
5929
# include <limits.h>
 
5930
#else
 
5931
# include <assert.h>
 
5932
#endif
 
5933
                     Syntax error
 
5934
_ACEOF
 
5935
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5936
case "(($ac_try" in
 
5937
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5938
  *) ac_try_echo=$ac_try;;
 
5939
esac
 
5940
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5941
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5942
  ac_status=$?
 
5943
  grep -v '^ *+' conftest.er1 >conftest.err
 
5944
  rm -f conftest.er1
 
5945
  cat conftest.err >&5
 
5946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5947
  (exit $ac_status); } >/dev/null && {
 
5948
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5949
         test ! -s conftest.err
 
5950
       }; then
 
5951
  :
 
5952
else
 
5953
  echo "$as_me: failed program was:" >&5
 
5954
sed 's/^/| /' conftest.$ac_ext >&5
 
5955
 
 
5956
  # Broken: fails on valid input.
 
5957
continue
 
5958
fi
 
5959
 
 
5960
rm -f conftest.err conftest.$ac_ext
 
5961
 
 
5962
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5963
  # can be detected and how.
 
5964
  cat >conftest.$ac_ext <<_ACEOF
 
5965
/* confdefs.h.  */
 
5966
_ACEOF
 
5967
cat confdefs.h >>conftest.$ac_ext
 
5968
cat >>conftest.$ac_ext <<_ACEOF
 
5969
/* end confdefs.h.  */
 
5970
#include <ac_nonexistent.h>
 
5971
_ACEOF
 
5972
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5973
case "(($ac_try" in
 
5974
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5975
  *) ac_try_echo=$ac_try;;
 
5976
esac
 
5977
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5978
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5979
  ac_status=$?
 
5980
  grep -v '^ *+' conftest.er1 >conftest.err
 
5981
  rm -f conftest.er1
 
5982
  cat conftest.err >&5
 
5983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5984
  (exit $ac_status); } >/dev/null && {
 
5985
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5986
         test ! -s conftest.err
 
5987
       }; then
 
5988
  # Broken: success on invalid input.
 
5989
continue
 
5990
else
 
5991
  echo "$as_me: failed program was:" >&5
 
5992
sed 's/^/| /' conftest.$ac_ext >&5
 
5993
 
 
5994
  # Passes both tests.
 
5995
ac_preproc_ok=:
 
5996
break
 
5997
fi
 
5998
 
 
5999
rm -f conftest.err conftest.$ac_ext
 
6000
 
 
6001
done
 
6002
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6003
rm -f conftest.err conftest.$ac_ext
 
6004
if $ac_preproc_ok; then
 
6005
  :
 
6006
else
 
6007
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6008
See \`config.log' for more details." >&5
 
6009
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6010
See \`config.log' for more details." >&2;}
 
6011
   { (exit 1); exit 1; }; }
 
6012
fi
 
6013
 
 
6014
ac_ext=cpp
 
6015
ac_cpp='$CXXCPP $CPPFLAGS'
 
6016
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6017
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6018
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6019
 
 
6020
fi
 
6021
 
 
6022
 
 
6023
ac_ext=f
 
6024
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6025
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6026
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6027
if test -n "$ac_tool_prefix"; then
 
6028
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
6029
  do
 
6030
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6031
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6032
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6033
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6034
if test "${ac_cv_prog_F77+set}" = set; then
 
6035
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6036
else
 
6037
  if test -n "$F77"; then
 
6038
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6039
else
 
6040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6041
for as_dir in $PATH
 
6042
do
 
6043
  IFS=$as_save_IFS
 
6044
  test -z "$as_dir" && as_dir=.
 
6045
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6046
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6047
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6048
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6049
    break 2
 
6050
  fi
 
6051
done
 
6052
done
 
6053
IFS=$as_save_IFS
 
6054
 
 
6055
fi
 
6056
fi
 
6057
F77=$ac_cv_prog_F77
 
6058
if test -n "$F77"; then
 
6059
  { echo "$as_me:$LINENO: result: $F77" >&5
 
6060
echo "${ECHO_T}$F77" >&6; }
 
6061
else
 
6062
  { echo "$as_me:$LINENO: result: no" >&5
 
6063
echo "${ECHO_T}no" >&6; }
 
6064
fi
 
6065
 
 
6066
 
 
6067
    test -n "$F77" && break
 
6068
  done
 
6069
fi
 
6070
if test -z "$F77"; then
 
6071
  ac_ct_F77=$F77
 
6072
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
6073
do
 
6074
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6075
set dummy $ac_prog; ac_word=$2
 
6076
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6077
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6078
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6079
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6080
else
 
6081
  if test -n "$ac_ct_F77"; then
 
6082
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6083
else
 
6084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6085
for as_dir in $PATH
 
6086
do
 
6087
  IFS=$as_save_IFS
 
6088
  test -z "$as_dir" && as_dir=.
 
6089
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6090
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6091
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6092
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6093
    break 2
 
6094
  fi
 
6095
done
 
6096
done
 
6097
IFS=$as_save_IFS
 
6098
 
 
6099
fi
 
6100
fi
 
6101
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6102
if test -n "$ac_ct_F77"; then
 
6103
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6104
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
6105
else
 
6106
  { echo "$as_me:$LINENO: result: no" >&5
 
6107
echo "${ECHO_T}no" >&6; }
 
6108
fi
 
6109
 
 
6110
 
 
6111
  test -n "$ac_ct_F77" && break
 
6112
done
 
6113
 
 
6114
  if test "x$ac_ct_F77" = x; then
 
6115
    F77=""
 
6116
  else
 
6117
    case $cross_compiling:$ac_tool_warned in
 
6118
yes:)
 
6119
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6120
whose name does not start with the host triplet.  If you think this
 
6121
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6122
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6123
whose name does not start with the host triplet.  If you think this
 
6124
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6125
ac_tool_warned=yes ;;
 
6126
esac
 
6127
    F77=$ac_ct_F77
 
6128
  fi
 
6129
fi
 
6130
 
 
6131
 
 
6132
# Provide some information about the compiler.
 
6133
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6134
ac_compiler=`set X $ac_compile; echo $2`
 
6135
{ (ac_try="$ac_compiler --version >&5"
 
6136
case "(($ac_try" in
 
6137
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6138
  *) ac_try_echo=$ac_try;;
 
6139
esac
 
6140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6141
  (eval "$ac_compiler --version >&5") 2>&5
 
6142
  ac_status=$?
 
6143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6144
  (exit $ac_status); }
 
6145
{ (ac_try="$ac_compiler -v >&5"
 
6146
case "(($ac_try" in
 
6147
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6148
  *) ac_try_echo=$ac_try;;
 
6149
esac
 
6150
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6151
  (eval "$ac_compiler -v >&5") 2>&5
 
6152
  ac_status=$?
 
6153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6154
  (exit $ac_status); }
 
6155
{ (ac_try="$ac_compiler -V >&5"
 
6156
case "(($ac_try" in
 
6157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6158
  *) ac_try_echo=$ac_try;;
 
6159
esac
 
6160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6161
  (eval "$ac_compiler -V >&5") 2>&5
 
6162
  ac_status=$?
 
6163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6164
  (exit $ac_status); }
 
6165
rm -f a.out
 
6166
 
 
6167
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6168
# input file.  (Note that this only needs to work for GNU compilers.)
 
6169
ac_save_ext=$ac_ext
 
6170
ac_ext=F
 
6171
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6172
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
6173
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6174
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6175
else
 
6176
  cat >conftest.$ac_ext <<_ACEOF
 
6177
      program main
 
6178
#ifndef __GNUC__
 
6179
       choke me
 
6180
#endif
 
6181
 
 
6182
      end
 
6183
_ACEOF
 
6184
rm -f conftest.$ac_objext
 
6185
if { (ac_try="$ac_compile"
 
6186
case "(($ac_try" in
 
6187
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6188
  *) ac_try_echo=$ac_try;;
 
6189
esac
 
6190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6191
  (eval "$ac_compile") 2>conftest.er1
 
6192
  ac_status=$?
 
6193
  grep -v '^ *+' conftest.er1 >conftest.err
 
6194
  rm -f conftest.er1
 
6195
  cat conftest.err >&5
 
6196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6197
  (exit $ac_status); } && {
 
6198
         test -z "$ac_f77_werror_flag" ||
 
6199
         test ! -s conftest.err
 
6200
       } && test -s conftest.$ac_objext; then
 
6201
  ac_compiler_gnu=yes
 
6202
else
 
6203
  echo "$as_me: failed program was:" >&5
 
6204
sed 's/^/| /' conftest.$ac_ext >&5
 
6205
 
 
6206
        ac_compiler_gnu=no
 
6207
fi
 
6208
 
 
6209
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6210
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6211
 
 
6212
fi
 
6213
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6214
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
6215
ac_ext=$ac_save_ext
 
6216
ac_test_FFLAGS=${FFLAGS+set}
 
6217
ac_save_FFLAGS=$FFLAGS
 
6218
FFLAGS=
 
6219
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6220
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
6221
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6223
else
 
6224
  FFLAGS=-g
 
6225
cat >conftest.$ac_ext <<_ACEOF
 
6226
      program main
 
6227
 
 
6228
      end
 
6229
_ACEOF
 
6230
rm -f conftest.$ac_objext
 
6231
if { (ac_try="$ac_compile"
 
6232
case "(($ac_try" in
 
6233
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6234
  *) ac_try_echo=$ac_try;;
 
6235
esac
 
6236
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6237
  (eval "$ac_compile") 2>conftest.er1
 
6238
  ac_status=$?
 
6239
  grep -v '^ *+' conftest.er1 >conftest.err
 
6240
  rm -f conftest.er1
 
6241
  cat conftest.err >&5
 
6242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6243
  (exit $ac_status); } && {
 
6244
         test -z "$ac_f77_werror_flag" ||
 
6245
         test ! -s conftest.err
 
6246
       } && test -s conftest.$ac_objext; then
 
6247
  ac_cv_prog_f77_g=yes
 
6248
else
 
6249
  echo "$as_me: failed program was:" >&5
 
6250
sed 's/^/| /' conftest.$ac_ext >&5
 
6251
 
 
6252
        ac_cv_prog_f77_g=no
 
6253
fi
 
6254
 
 
6255
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6256
 
 
6257
fi
 
6258
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6259
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
6260
if test "$ac_test_FFLAGS" = set; then
 
6261
  FFLAGS=$ac_save_FFLAGS
 
6262
elif test $ac_cv_prog_f77_g = yes; then
 
6263
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6264
    FFLAGS="-g -O2"
 
6265
  else
 
6266
    FFLAGS="-g"
 
6267
  fi
 
6268
else
 
6269
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6270
    FFLAGS="-O2"
 
6271
  else
 
6272
    FFLAGS=
 
6273
  fi
 
6274
fi
 
6275
 
 
6276
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6277
ac_ext=c
 
6278
ac_cpp='$CPP $CPPFLAGS'
 
6279
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6280
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6281
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6282
 
 
6283
 
 
6284
 
 
6285
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6286
# find the maximum length of command line arguments
 
6287
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6288
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6289
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6291
else
 
6292
    i=0
 
6293
  teststring="ABCD"
 
6294
 
 
6295
  case $build_os in
 
6296
  msdosdjgpp*)
 
6297
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6298
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6299
    # during glob expansion).  Even if it were fixed, the result of this
 
6300
    # check would be larger than it should be.
 
6301
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6302
    ;;
 
6303
 
 
6304
  gnu*)
 
6305
    # Under GNU Hurd, this test is not required because there is
 
6306
    # no limit to the length of command line arguments.
 
6307
    # Libtool will interpret -1 as no limit whatsoever
 
6308
    lt_cv_sys_max_cmd_len=-1;
 
6309
    ;;
 
6310
 
 
6311
  cygwin* | mingw*)
 
6312
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6313
    # about 5 minutes as the teststring grows exponentially.
 
6314
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6315
    # you end up with a "frozen" computer, even though with patience
 
6316
    # the test eventually succeeds (with a max line length of 256k).
 
6317
    # Instead, let's just punt: use the minimum linelength reported by
 
6318
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6319
    lt_cv_sys_max_cmd_len=8192;
 
6320
    ;;
 
6321
 
 
6322
  amigaos*)
 
6323
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6324
    # So we just punt and use a minimum line length of 8192.
 
6325
    lt_cv_sys_max_cmd_len=8192;
 
6326
    ;;
 
6327
 
 
6328
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6329
    # This has been around since 386BSD, at least.  Likely further.
 
6330
    if test -x /sbin/sysctl; then
 
6331
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6332
    elif test -x /usr/sbin/sysctl; then
 
6333
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6334
    else
 
6335
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6336
    fi
 
6337
    # And add a safety zone
 
6338
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6339
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6340
    ;;
 
6341
 
 
6342
  interix*)
 
6343
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6344
    lt_cv_sys_max_cmd_len=196608
 
6345
    ;;
 
6346
 
 
6347
  osf*)
 
6348
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6349
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6350
    # nice to cause kernel panics so lets avoid the loop below.
 
6351
    # First set a reasonable default.
 
6352
    lt_cv_sys_max_cmd_len=16384
 
6353
    #
 
6354
    if test -x /sbin/sysconfig; then
 
6355
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6356
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6357
      esac
 
6358
    fi
 
6359
    ;;
 
6360
  sco3.2v5*)
 
6361
    lt_cv_sys_max_cmd_len=102400
 
6362
    ;;
 
6363
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6364
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6365
    if test -n "$kargmax"; then
 
6366
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6367
    else
 
6368
      lt_cv_sys_max_cmd_len=32768
 
6369
    fi
 
6370
    ;;
 
6371
  *)
 
6372
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6373
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6374
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6375
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6376
    else
 
6377
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6378
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6379
               = "XX$teststring") >/dev/null 2>&1 &&
 
6380
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6381
              lt_cv_sys_max_cmd_len=$new_result &&
 
6382
              test $i != 17 # 1/2 MB should be enough
 
6383
      do
 
6384
        i=`expr $i + 1`
 
6385
        teststring=$teststring$teststring
 
6386
      done
 
6387
      teststring=
 
6388
      # Add a significant safety factor because C++ compilers can tack on massive
 
6389
      # amounts of additional arguments before passing them to the linker.
 
6390
      # It appears as though 1/2 is a usable value.
 
6391
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6392
    fi
 
6393
    ;;
 
6394
  esac
 
6395
 
 
6396
fi
 
6397
 
 
6398
if test -n $lt_cv_sys_max_cmd_len ; then
 
6399
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6400
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6401
else
 
6402
  { echo "$as_me:$LINENO: result: none" >&5
 
6403
echo "${ECHO_T}none" >&6; }
 
6404
fi
 
6405
 
 
6406
 
 
6407
 
 
6408
 
 
6409
 
 
6410
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6411
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6412
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
6413
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6414
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6415
else
 
6416
 
 
6417
# These are sane defaults that work on at least a few old systems.
 
6418
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6419
 
 
6420
# Character class describing NM global symbol codes.
 
6421
symcode='[BCDEGRST]'
 
6422
 
 
6423
# Regexp to match symbols that can be accessed directly from C.
 
6424
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6425
 
 
6426
# Transform an extracted symbol line into a proper C declaration
 
6427
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6428
 
 
6429
# Transform an extracted symbol line into symbol name and symbol address
 
6430
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6431
 
 
6432
# Define system-specific variables.
 
6433
case $host_os in
 
6434
aix*)
 
6435
  symcode='[BCDT]'
 
6436
  ;;
 
6437
cygwin* | mingw* | pw32*)
 
6438
  symcode='[ABCDGISTW]'
 
6439
  ;;
 
6440
hpux*) # Its linker distinguishes data from code symbols
 
6441
  if test "$host_cpu" = ia64; then
 
6442
    symcode='[ABCDEGRST]'
 
6443
  fi
 
6444
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6445
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6446
  ;;
 
6447
linux* | k*bsd*-gnu)
 
6448
  if test "$host_cpu" = ia64; then
 
6449
    symcode='[ABCDGIRSTW]'
 
6450
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6451
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6452
  fi
 
6453
  ;;
 
6454
irix* | nonstopux*)
 
6455
  symcode='[BCDEGRST]'
 
6456
  ;;
 
6457
osf*)
 
6458
  symcode='[BCDEGQRST]'
 
6459
  ;;
 
6460
solaris*)
 
6461
  symcode='[BDRT]'
 
6462
  ;;
 
6463
sco3.2v5*)
 
6464
  symcode='[DT]'
 
6465
  ;;
 
6466
sysv4.2uw2*)
 
6467
  symcode='[DT]'
 
6468
  ;;
 
6469
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6470
  symcode='[ABDT]'
 
6471
  ;;
 
6472
sysv4)
 
6473
  symcode='[DFNSTU]'
 
6474
  ;;
 
6475
esac
 
6476
 
 
6477
# Handle CRLF in mingw tool chain
 
6478
opt_cr=
 
6479
case $build_os in
 
6480
mingw*)
 
6481
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6482
  ;;
 
6483
esac
 
6484
 
 
6485
# If we're using GNU nm, then use its standard symbol codes.
 
6486
case `$NM -V 2>&1` in
 
6487
*GNU* | *'with BFD'*)
 
6488
  symcode='[ABCDGIRSTW]' ;;
 
6489
esac
 
6490
 
 
6491
# Try without a prefix undercore, then with it.
 
6492
for ac_symprfx in "" "_"; do
 
6493
 
 
6494
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6495
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6496
 
 
6497
  # Write the raw and C identifiers.
 
6498
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6499
 
 
6500
  # Check to see that the pipe works correctly.
 
6501
  pipe_works=no
 
6502
 
 
6503
  rm -f conftest*
 
6504
  cat > conftest.$ac_ext <<EOF
 
6505
#ifdef __cplusplus
 
6506
extern "C" {
 
6507
#endif
 
6508
char nm_test_var;
 
6509
void nm_test_func(){}
 
6510
#ifdef __cplusplus
 
6511
}
 
6512
#endif
 
6513
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6514
EOF
 
6515
 
 
6516
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6517
  (eval $ac_compile) 2>&5
 
6518
  ac_status=$?
 
6519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6520
  (exit $ac_status); }; then
 
6521
    # Now try to grab the symbols.
 
6522
    nlist=conftest.nm
 
6523
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6524
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6525
  ac_status=$?
 
6526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6527
  (exit $ac_status); } && test -s "$nlist"; then
 
6528
      # Try sorting and uniquifying the output.
 
6529
      if sort "$nlist" | uniq > "$nlist"T; then
 
6530
        mv -f "$nlist"T "$nlist"
 
6531
      else
 
6532
        rm -f "$nlist"T
 
6533
      fi
 
6534
 
 
6535
      # Make sure that we snagged all the symbols we need.
 
6536
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6537
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6538
          cat <<EOF > conftest.$ac_ext
 
6539
#ifdef __cplusplus
 
6540
extern "C" {
 
6541
#endif
 
6542
 
 
6543
EOF
 
6544
          # Now generate the symbol file.
 
6545
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6546
 
 
6547
          cat <<EOF >> conftest.$ac_ext
 
6548
#if defined (__STDC__) && __STDC__
 
6549
# define lt_ptr_t void *
 
6550
#else
 
6551
# define lt_ptr_t char *
 
6552
# define const
 
6553
#endif
 
6554
 
 
6555
/* The mapping between symbol names and symbols. */
 
6556
const struct {
 
6557
  const char *name;
 
6558
  lt_ptr_t address;
 
6559
}
 
6560
lt_preloaded_symbols[] =
 
6561
{
 
6562
EOF
 
6563
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6564
          cat <<\EOF >> conftest.$ac_ext
 
6565
  {0, (lt_ptr_t) 0}
 
6566
};
 
6567
 
 
6568
#ifdef __cplusplus
 
6569
}
 
6570
#endif
 
6571
EOF
 
6572
          # Now try linking the two files.
 
6573
          mv conftest.$ac_objext conftstm.$ac_objext
 
6574
          lt_save_LIBS="$LIBS"
 
6575
          lt_save_CFLAGS="$CFLAGS"
 
6576
          LIBS="conftstm.$ac_objext"
 
6577
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6578
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6579
  (eval $ac_link) 2>&5
 
6580
  ac_status=$?
 
6581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6582
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6583
            pipe_works=yes
 
6584
          fi
 
6585
          LIBS="$lt_save_LIBS"
 
6586
          CFLAGS="$lt_save_CFLAGS"
 
6587
        else
 
6588
          echo "cannot find nm_test_func in $nlist" >&5
 
6589
        fi
 
6590
      else
 
6591
        echo "cannot find nm_test_var in $nlist" >&5
 
6592
      fi
 
6593
    else
 
6594
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6595
    fi
 
6596
  else
 
6597
    echo "$progname: failed program was:" >&5
 
6598
    cat conftest.$ac_ext >&5
 
6599
  fi
 
6600
  rm -rf conftest* conftst*
 
6601
 
 
6602
  # Do not use the global_symbol_pipe unless it works.
 
6603
  if test "$pipe_works" = yes; then
 
6604
    break
 
6605
  else
 
6606
    lt_cv_sys_global_symbol_pipe=
 
6607
  fi
 
6608
done
 
6609
 
 
6610
fi
 
6611
 
 
6612
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6613
  lt_cv_sys_global_symbol_to_cdecl=
 
6614
fi
 
6615
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6616
  { echo "$as_me:$LINENO: result: failed" >&5
 
6617
echo "${ECHO_T}failed" >&6; }
 
6618
else
 
6619
  { echo "$as_me:$LINENO: result: ok" >&5
 
6620
echo "${ECHO_T}ok" >&6; }
 
6621
fi
 
6622
 
 
6623
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6624
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
6625
if test "${lt_cv_objdir+set}" = set; then
 
6626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6627
else
 
6628
  rm -f .libs 2>/dev/null
 
6629
mkdir .libs 2>/dev/null
 
6630
if test -d .libs; then
 
6631
  lt_cv_objdir=.libs
 
6632
else
 
6633
  # MS-DOS does not allow filenames that begin with a dot.
 
6634
  lt_cv_objdir=_libs
 
6635
fi
 
6636
rmdir .libs 2>/dev/null
 
6637
fi
 
6638
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6639
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
6640
objdir=$lt_cv_objdir
 
6641
 
 
6642
 
 
6643
 
 
6644
 
 
6645
 
 
6646
case $host_os in
 
6647
aix3*)
 
6648
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6649
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6650
  # vanish in a puff of smoke.
 
6651
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6652
    COLLECT_NAMES=
 
6653
    export COLLECT_NAMES
 
6654
  fi
 
6655
  ;;
 
6656
esac
 
6657
 
 
6658
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6659
# metacharacters that are still active within double-quoted strings.
 
6660
Xsed='sed -e 1s/^X//'
 
6661
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6662
 
 
6663
# Same as above, but do not quote variable references.
 
6664
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6665
 
 
6666
# Sed substitution to delay expansion of an escaped shell variable in a
 
6667
# double_quote_subst'ed string.
 
6668
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6669
 
 
6670
# Sed substitution to avoid accidental globbing in evaled expressions
 
6671
no_glob_subst='s/\*/\\\*/g'
 
6672
 
 
6673
# Constants:
 
6674
rm="rm -f"
 
6675
 
 
6676
# Global variables:
 
6677
default_ofile=libtool
 
6678
can_build_shared=yes
 
6679
 
 
6680
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6681
# which needs '.lib').
 
6682
libext=a
 
6683
ltmain="$ac_aux_dir/ltmain.sh"
 
6684
ofile="$default_ofile"
 
6685
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6686
 
 
6687
if test -n "$ac_tool_prefix"; then
 
6688
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6689
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6690
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6691
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6692
if test "${ac_cv_prog_AR+set}" = set; then
 
6693
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6694
else
 
6695
  if test -n "$AR"; then
 
6696
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6697
else
 
6698
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6699
for as_dir in $PATH
 
6700
do
 
6701
  IFS=$as_save_IFS
 
6702
  test -z "$as_dir" && as_dir=.
 
6703
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6704
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6705
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6706
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6707
    break 2
 
6708
  fi
 
6709
done
 
6710
done
 
6711
IFS=$as_save_IFS
 
6712
 
 
6713
fi
 
6714
fi
 
6715
AR=$ac_cv_prog_AR
 
6716
if test -n "$AR"; then
 
6717
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6718
echo "${ECHO_T}$AR" >&6; }
 
6719
else
 
6720
  { echo "$as_me:$LINENO: result: no" >&5
 
6721
echo "${ECHO_T}no" >&6; }
 
6722
fi
 
6723
 
 
6724
 
 
6725
fi
 
6726
if test -z "$ac_cv_prog_AR"; then
 
6727
  ac_ct_AR=$AR
 
6728
  # Extract the first word of "ar", so it can be a program name with args.
 
6729
set dummy ar; ac_word=$2
 
6730
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6731
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6732
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6733
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6734
else
 
6735
  if test -n "$ac_ct_AR"; then
 
6736
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6737
else
 
6738
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6739
for as_dir in $PATH
 
6740
do
 
6741
  IFS=$as_save_IFS
 
6742
  test -z "$as_dir" && as_dir=.
 
6743
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6744
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6745
    ac_cv_prog_ac_ct_AR="ar"
 
6746
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6747
    break 2
 
6748
  fi
 
6749
done
 
6750
done
 
6751
IFS=$as_save_IFS
 
6752
 
 
6753
fi
 
6754
fi
 
6755
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6756
if test -n "$ac_ct_AR"; then
 
6757
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6758
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6759
else
 
6760
  { echo "$as_me:$LINENO: result: no" >&5
 
6761
echo "${ECHO_T}no" >&6; }
 
6762
fi
 
6763
 
 
6764
  if test "x$ac_ct_AR" = x; then
 
6765
    AR="false"
 
6766
  else
 
6767
    case $cross_compiling:$ac_tool_warned in
 
6768
yes:)
 
6769
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6770
whose name does not start with the host triplet.  If you think this
 
6771
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6772
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6773
whose name does not start with the host triplet.  If you think this
 
6774
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6775
ac_tool_warned=yes ;;
 
6776
esac
 
6777
    AR=$ac_ct_AR
 
6778
  fi
 
6779
else
 
6780
  AR="$ac_cv_prog_AR"
 
6781
fi
 
6782
 
 
6783
if test -n "$ac_tool_prefix"; then
 
6784
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6785
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6786
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6787
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6788
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6789
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6790
else
 
6791
  if test -n "$RANLIB"; then
 
6792
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6793
else
 
6794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6795
for as_dir in $PATH
 
6796
do
 
6797
  IFS=$as_save_IFS
 
6798
  test -z "$as_dir" && as_dir=.
 
6799
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6800
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6801
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6802
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6803
    break 2
 
6804
  fi
 
6805
done
 
6806
done
 
6807
IFS=$as_save_IFS
 
6808
 
 
6809
fi
 
6810
fi
 
6811
RANLIB=$ac_cv_prog_RANLIB
 
6812
if test -n "$RANLIB"; then
 
6813
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6814
echo "${ECHO_T}$RANLIB" >&6; }
 
6815
else
 
6816
  { echo "$as_me:$LINENO: result: no" >&5
 
6817
echo "${ECHO_T}no" >&6; }
 
6818
fi
 
6819
 
 
6820
 
 
6821
fi
 
6822
if test -z "$ac_cv_prog_RANLIB"; then
 
6823
  ac_ct_RANLIB=$RANLIB
 
6824
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6825
set dummy ranlib; ac_word=$2
 
6826
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6827
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6828
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6829
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6830
else
 
6831
  if test -n "$ac_ct_RANLIB"; then
 
6832
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6833
else
 
6834
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6835
for as_dir in $PATH
 
6836
do
 
6837
  IFS=$as_save_IFS
 
6838
  test -z "$as_dir" && as_dir=.
 
6839
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6840
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6841
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6842
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6843
    break 2
 
6844
  fi
 
6845
done
 
6846
done
 
6847
IFS=$as_save_IFS
 
6848
 
 
6849
fi
 
6850
fi
 
6851
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6852
if test -n "$ac_ct_RANLIB"; then
 
6853
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6854
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
6855
else
 
6856
  { echo "$as_me:$LINENO: result: no" >&5
 
6857
echo "${ECHO_T}no" >&6; }
 
6858
fi
 
6859
 
 
6860
  if test "x$ac_ct_RANLIB" = x; then
 
6861
    RANLIB=":"
 
6862
  else
 
6863
    case $cross_compiling:$ac_tool_warned in
 
6864
yes:)
 
6865
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6866
whose name does not start with the host triplet.  If you think this
 
6867
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6868
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6869
whose name does not start with the host triplet.  If you think this
 
6870
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6871
ac_tool_warned=yes ;;
 
6872
esac
 
6873
    RANLIB=$ac_ct_RANLIB
 
6874
  fi
 
6875
else
 
6876
  RANLIB="$ac_cv_prog_RANLIB"
 
6877
fi
 
6878
 
 
6879
if test -n "$ac_tool_prefix"; then
 
6880
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6881
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6882
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6883
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6884
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6886
else
 
6887
  if test -n "$STRIP"; then
 
6888
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6889
else
 
6890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6891
for as_dir in $PATH
 
6892
do
 
6893
  IFS=$as_save_IFS
 
6894
  test -z "$as_dir" && as_dir=.
 
6895
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6896
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6897
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6898
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6899
    break 2
 
6900
  fi
 
6901
done
 
6902
done
 
6903
IFS=$as_save_IFS
 
6904
 
 
6905
fi
 
6906
fi
 
6907
STRIP=$ac_cv_prog_STRIP
 
6908
if test -n "$STRIP"; then
 
6909
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
6910
echo "${ECHO_T}$STRIP" >&6; }
 
6911
else
 
6912
  { echo "$as_me:$LINENO: result: no" >&5
 
6913
echo "${ECHO_T}no" >&6; }
 
6914
fi
 
6915
 
 
6916
 
 
6917
fi
 
6918
if test -z "$ac_cv_prog_STRIP"; then
 
6919
  ac_ct_STRIP=$STRIP
 
6920
  # Extract the first word of "strip", so it can be a program name with args.
 
6921
set dummy strip; ac_word=$2
 
6922
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6923
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6924
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6926
else
 
6927
  if test -n "$ac_ct_STRIP"; then
 
6928
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6929
else
 
6930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6931
for as_dir in $PATH
 
6932
do
 
6933
  IFS=$as_save_IFS
 
6934
  test -z "$as_dir" && as_dir=.
 
6935
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6936
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6937
    ac_cv_prog_ac_ct_STRIP="strip"
 
6938
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6939
    break 2
 
6940
  fi
 
6941
done
 
6942
done
 
6943
IFS=$as_save_IFS
 
6944
 
 
6945
fi
 
6946
fi
 
6947
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6948
if test -n "$ac_ct_STRIP"; then
 
6949
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6950
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
6951
else
 
6952
  { echo "$as_me:$LINENO: result: no" >&5
 
6953
echo "${ECHO_T}no" >&6; }
 
6954
fi
 
6955
 
 
6956
  if test "x$ac_ct_STRIP" = x; then
 
6957
    STRIP=":"
 
6958
  else
 
6959
    case $cross_compiling:$ac_tool_warned in
 
6960
yes:)
 
6961
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6962
whose name does not start with the host triplet.  If you think this
 
6963
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6964
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6965
whose name does not start with the host triplet.  If you think this
 
6966
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6967
ac_tool_warned=yes ;;
 
6968
esac
 
6969
    STRIP=$ac_ct_STRIP
 
6970
  fi
 
6971
else
 
6972
  STRIP="$ac_cv_prog_STRIP"
 
6973
fi
 
6974
 
 
6975
 
 
6976
old_CC="$CC"
 
6977
old_CFLAGS="$CFLAGS"
 
6978
 
 
6979
# Set sane defaults for various variables
 
6980
test -z "$AR" && AR=ar
 
6981
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6982
test -z "$AS" && AS=as
 
6983
test -z "$CC" && CC=cc
 
6984
test -z "$LTCC" && LTCC=$CC
 
6985
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6986
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6987
test -z "$LD" && LD=ld
 
6988
test -z "$LN_S" && LN_S="ln -s"
 
6989
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6990
test -z "$NM" && NM=nm
 
6991
test -z "$SED" && SED=sed
 
6992
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6993
test -z "$RANLIB" && RANLIB=:
 
6994
test -z "$STRIP" && STRIP=:
 
6995
test -z "$ac_objext" && ac_objext=o
 
6996
 
 
6997
# Determine commands to create old-style static archives.
 
6998
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6999
old_postinstall_cmds='chmod 644 $oldlib'
 
7000
old_postuninstall_cmds=
 
7001
 
 
7002
if test -n "$RANLIB"; then
 
7003
  case $host_os in
 
7004
  openbsd*)
 
7005
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7006
    ;;
 
7007
  *)
 
7008
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7009
    ;;
 
7010
  esac
 
7011
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7012
fi
 
7013
 
 
7014
for cc_temp in $compiler""; do
 
7015
  case $cc_temp in
 
7016
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7017
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7018
    \-*) ;;
 
7019
    *) break;;
 
7020
  esac
 
7021
done
 
7022
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7023
 
 
7024
 
 
7025
# Only perform the check for file, if the check method requires it
 
7026
case $deplibs_check_method in
 
7027
file_magic*)
 
7028
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7029
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7030
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
7031
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7033
else
 
7034
  case $MAGIC_CMD in
 
7035
[\\/*] |  ?:[\\/]*)
 
7036
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7037
  ;;
 
7038
*)
 
7039
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7040
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7041
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7042
  for ac_dir in $ac_dummy; do
 
7043
    IFS="$lt_save_ifs"
 
7044
    test -z "$ac_dir" && ac_dir=.
 
7045
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7046
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7047
      if test -n "$file_magic_test_file"; then
 
7048
        case $deplibs_check_method in
 
7049
        "file_magic "*)
 
7050
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7051
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7052
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7053
            $EGREP "$file_magic_regex" > /dev/null; then
 
7054
            :
 
7055
          else
 
7056
            cat <<EOF 1>&2
 
7057
 
 
7058
*** Warning: the command libtool uses to detect shared libraries,
 
7059
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7060
*** The result is that libtool may fail to recognize shared libraries
 
7061
*** as such.  This will affect the creation of libtool libraries that
 
7062
*** depend on shared libraries, but programs linked with such libtool
 
7063
*** libraries will work regardless of this problem.  Nevertheless, you
 
7064
*** may want to report the problem to your system manager and/or to
 
7065
*** bug-libtool@gnu.org
 
7066
 
 
7067
EOF
 
7068
          fi ;;
 
7069
        esac
 
7070
      fi
 
7071
      break
 
7072
    fi
 
7073
  done
 
7074
  IFS="$lt_save_ifs"
 
7075
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7076
  ;;
 
7077
esac
 
7078
fi
 
7079
 
 
7080
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7081
if test -n "$MAGIC_CMD"; then
 
7082
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7083
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7084
else
 
7085
  { echo "$as_me:$LINENO: result: no" >&5
 
7086
echo "${ECHO_T}no" >&6; }
 
7087
fi
 
7088
 
 
7089
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7090
  if test -n "$ac_tool_prefix"; then
 
7091
    { echo "$as_me:$LINENO: checking for file" >&5
 
7092
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
7093
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7094
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7095
else
 
7096
  case $MAGIC_CMD in
 
7097
[\\/*] |  ?:[\\/]*)
 
7098
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7099
  ;;
 
7100
*)
 
7101
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7102
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7103
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7104
  for ac_dir in $ac_dummy; do
 
7105
    IFS="$lt_save_ifs"
 
7106
    test -z "$ac_dir" && ac_dir=.
 
7107
    if test -f $ac_dir/file; then
 
7108
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7109
      if test -n "$file_magic_test_file"; then
 
7110
        case $deplibs_check_method in
 
7111
        "file_magic "*)
 
7112
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7113
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7114
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7115
            $EGREP "$file_magic_regex" > /dev/null; then
 
7116
            :
 
7117
          else
 
7118
            cat <<EOF 1>&2
 
7119
 
 
7120
*** Warning: the command libtool uses to detect shared libraries,
 
7121
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7122
*** The result is that libtool may fail to recognize shared libraries
 
7123
*** as such.  This will affect the creation of libtool libraries that
 
7124
*** depend on shared libraries, but programs linked with such libtool
 
7125
*** libraries will work regardless of this problem.  Nevertheless, you
 
7126
*** may want to report the problem to your system manager and/or to
 
7127
*** bug-libtool@gnu.org
 
7128
 
 
7129
EOF
 
7130
          fi ;;
 
7131
        esac
 
7132
      fi
 
7133
      break
 
7134
    fi
 
7135
  done
 
7136
  IFS="$lt_save_ifs"
 
7137
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7138
  ;;
 
7139
esac
 
7140
fi
 
7141
 
 
7142
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7143
if test -n "$MAGIC_CMD"; then
 
7144
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7145
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7146
else
 
7147
  { echo "$as_me:$LINENO: result: no" >&5
 
7148
echo "${ECHO_T}no" >&6; }
 
7149
fi
 
7150
 
 
7151
  else
 
7152
    MAGIC_CMD=:
 
7153
  fi
 
7154
fi
 
7155
 
 
7156
  fi
 
7157
  ;;
 
7158
esac
 
7159
 
 
7160
 
 
7161
  case $host_os in
 
7162
    rhapsody* | darwin*)
 
7163
    if test -n "$ac_tool_prefix"; then
 
7164
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7165
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7166
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7167
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7168
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
7169
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7170
else
 
7171
  if test -n "$DSYMUTIL"; then
 
7172
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7173
else
 
7174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7175
for as_dir in $PATH
 
7176
do
 
7177
  IFS=$as_save_IFS
 
7178
  test -z "$as_dir" && as_dir=.
 
7179
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7180
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7181
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7182
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7183
    break 2
 
7184
  fi
 
7185
done
 
7186
done
 
7187
IFS=$as_save_IFS
 
7188
 
 
7189
fi
 
7190
fi
 
7191
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7192
if test -n "$DSYMUTIL"; then
 
7193
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
7194
echo "${ECHO_T}$DSYMUTIL" >&6; }
 
7195
else
 
7196
  { echo "$as_me:$LINENO: result: no" >&5
 
7197
echo "${ECHO_T}no" >&6; }
 
7198
fi
 
7199
 
 
7200
 
 
7201
fi
 
7202
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7203
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7204
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7205
set dummy dsymutil; ac_word=$2
 
7206
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7208
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
7209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7210
else
 
7211
  if test -n "$ac_ct_DSYMUTIL"; then
 
7212
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7213
else
 
7214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7215
for as_dir in $PATH
 
7216
do
 
7217
  IFS=$as_save_IFS
 
7218
  test -z "$as_dir" && as_dir=.
 
7219
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7220
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7221
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7222
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7223
    break 2
 
7224
  fi
 
7225
done
 
7226
done
 
7227
IFS=$as_save_IFS
 
7228
 
 
7229
fi
 
7230
fi
 
7231
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7232
if test -n "$ac_ct_DSYMUTIL"; then
 
7233
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
7234
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
 
7235
else
 
7236
  { echo "$as_me:$LINENO: result: no" >&5
 
7237
echo "${ECHO_T}no" >&6; }
 
7238
fi
 
7239
 
 
7240
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7241
    DSYMUTIL=":"
 
7242
  else
 
7243
    case $cross_compiling:$ac_tool_warned in
 
7244
yes:)
 
7245
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7246
whose name does not start with the host triplet.  If you think this
 
7247
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7248
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7249
whose name does not start with the host triplet.  If you think this
 
7250
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7251
ac_tool_warned=yes ;;
 
7252
esac
 
7253
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7254
  fi
 
7255
else
 
7256
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7257
fi
 
7258
 
 
7259
    if test -n "$ac_tool_prefix"; then
 
7260
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7261
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7262
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7264
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7266
else
 
7267
  if test -n "$NMEDIT"; then
 
7268
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7269
else
 
7270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7271
for as_dir in $PATH
 
7272
do
 
7273
  IFS=$as_save_IFS
 
7274
  test -z "$as_dir" && as_dir=.
 
7275
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7276
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7277
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7278
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7279
    break 2
 
7280
  fi
 
7281
done
 
7282
done
 
7283
IFS=$as_save_IFS
 
7284
 
 
7285
fi
 
7286
fi
 
7287
NMEDIT=$ac_cv_prog_NMEDIT
 
7288
if test -n "$NMEDIT"; then
 
7289
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7290
echo "${ECHO_T}$NMEDIT" >&6; }
 
7291
else
 
7292
  { echo "$as_me:$LINENO: result: no" >&5
 
7293
echo "${ECHO_T}no" >&6; }
 
7294
fi
 
7295
 
 
7296
 
 
7297
fi
 
7298
if test -z "$ac_cv_prog_NMEDIT"; then
 
7299
  ac_ct_NMEDIT=$NMEDIT
 
7300
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7301
set dummy nmedit; ac_word=$2
 
7302
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7303
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7304
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7305
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7306
else
 
7307
  if test -n "$ac_ct_NMEDIT"; then
 
7308
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7309
else
 
7310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7311
for as_dir in $PATH
 
7312
do
 
7313
  IFS=$as_save_IFS
 
7314
  test -z "$as_dir" && as_dir=.
 
7315
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7316
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7317
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7318
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7319
    break 2
 
7320
  fi
 
7321
done
 
7322
done
 
7323
IFS=$as_save_IFS
 
7324
 
 
7325
fi
 
7326
fi
 
7327
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7328
if test -n "$ac_ct_NMEDIT"; then
 
7329
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7330
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
 
7331
else
 
7332
  { echo "$as_me:$LINENO: result: no" >&5
 
7333
echo "${ECHO_T}no" >&6; }
 
7334
fi
 
7335
 
 
7336
  if test "x$ac_ct_NMEDIT" = x; then
 
7337
    NMEDIT=":"
 
7338
  else
 
7339
    case $cross_compiling:$ac_tool_warned in
 
7340
yes:)
 
7341
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7342
whose name does not start with the host triplet.  If you think this
 
7343
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7344
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7345
whose name does not start with the host triplet.  If you think this
 
7346
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7347
ac_tool_warned=yes ;;
 
7348
esac
 
7349
    NMEDIT=$ac_ct_NMEDIT
 
7350
  fi
 
7351
else
 
7352
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7353
fi
 
7354
 
 
7355
 
 
7356
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
7357
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
 
7358
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
7359
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7360
else
 
7361
  lt_cv_apple_cc_single_mod=no
 
7362
      if test -z "${LT_MULTI_MODULE}"; then
 
7363
   # By default we will add the -single_module flag. You can override
 
7364
   # by either setting the environment variable LT_MULTI_MODULE
 
7365
   # non-empty at configure time, or by adding -multi_module to the
 
7366
   # link flags.
 
7367
   echo "int foo(void){return 1;}" > conftest.c
 
7368
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7369
     -dynamiclib ${wl}-single_module conftest.c
 
7370
   if test -f libconftest.dylib; then
 
7371
     lt_cv_apple_cc_single_mod=yes
 
7372
     rm -rf libconftest.dylib*
 
7373
   fi
 
7374
   rm conftest.c
 
7375
      fi
 
7376
fi
 
7377
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
7378
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
 
7379
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
7380
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
 
7381
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
7382
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7383
else
 
7384
  lt_cv_ld_exported_symbols_list=no
 
7385
      save_LDFLAGS=$LDFLAGS
 
7386
      echo "_main" > conftest.sym
 
7387
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7388
      cat >conftest.$ac_ext <<_ACEOF
 
7389
/* confdefs.h.  */
 
7390
_ACEOF
 
7391
cat confdefs.h >>conftest.$ac_ext
 
7392
cat >>conftest.$ac_ext <<_ACEOF
 
7393
/* end confdefs.h.  */
 
7394
 
 
7395
int
 
7396
main ()
 
7397
{
 
7398
 
 
7399
  ;
 
7400
  return 0;
 
7401
}
 
7402
_ACEOF
 
7403
rm -f conftest.$ac_objext conftest$ac_exeext
 
7404
if { (ac_try="$ac_link"
 
7405
case "(($ac_try" in
 
7406
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7407
  *) ac_try_echo=$ac_try;;
 
7408
esac
 
7409
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7410
  (eval "$ac_link") 2>conftest.er1
 
7411
  ac_status=$?
 
7412
  grep -v '^ *+' conftest.er1 >conftest.err
 
7413
  rm -f conftest.er1
 
7414
  cat conftest.err >&5
 
7415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7416
  (exit $ac_status); } && {
 
7417
         test -z "$ac_c_werror_flag" ||
 
7418
         test ! -s conftest.err
 
7419
       } && test -s conftest$ac_exeext &&
 
7420
       $as_test_x conftest$ac_exeext; then
 
7421
  lt_cv_ld_exported_symbols_list=yes
 
7422
else
 
7423
  echo "$as_me: failed program was:" >&5
 
7424
sed 's/^/| /' conftest.$ac_ext >&5
 
7425
 
 
7426
        lt_cv_ld_exported_symbols_list=no
 
7427
fi
 
7428
 
 
7429
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7430
      conftest$ac_exeext conftest.$ac_ext
 
7431
   LDFLAGS="$save_LDFLAGS"
 
7432
 
 
7433
fi
 
7434
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7435
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
 
7436
    case $host_os in
 
7437
    rhapsody* | darwin1.[0123])
 
7438
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7439
    darwin1.*)
 
7440
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7441
    darwin*)
 
7442
      # if running on 10.5 or later, the deployment target defaults
 
7443
      # to the OS version, if on x86, and 10.4, the deployment
 
7444
      # target defaults to 10.4. Don't you love it?
 
7445
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7446
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7447
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7448
   10.[012]*)
 
7449
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7450
   10.*)
 
7451
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7452
      esac
 
7453
    ;;
 
7454
  esac
 
7455
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7456
      _lt_dar_single_mod='$single_module'
 
7457
    fi
 
7458
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7459
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7460
    else
 
7461
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
7462
    fi
 
7463
    if test "$DSYMUTIL" != ":"; then
 
7464
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
7465
    else
 
7466
      _lt_dsymutil=
 
7467
    fi
 
7468
    ;;
 
7469
  esac
 
7470
 
 
7471
 
 
7472
enable_dlopen=no
 
7473
enable_win32_dll=no
 
7474
 
 
7475
# Check whether --enable-libtool-lock was given.
 
7476
if test "${enable_libtool_lock+set}" = set; then
 
7477
  enableval=$enable_libtool_lock;
 
7478
fi
 
7479
 
 
7480
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7481
 
 
7482
 
 
7483
# Check whether --with-pic was given.
 
7484
if test "${with_pic+set}" = set; then
 
7485
  withval=$with_pic; pic_mode="$withval"
 
7486
else
 
7487
  pic_mode=default
 
7488
fi
 
7489
 
 
7490
test -z "$pic_mode" && pic_mode=default
 
7491
 
 
7492
# Use C for the default configuration in the libtool script
 
7493
tagname=
 
7494
lt_save_CC="$CC"
 
7495
ac_ext=c
 
7496
ac_cpp='$CPP $CPPFLAGS'
 
7497
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7498
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7499
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7500
 
 
7501
 
 
7502
# Source file extension for C test sources.
 
7503
ac_ext=c
 
7504
 
 
7505
# Object file extension for compiled C test sources.
 
7506
objext=o
 
7507
objext=$objext
 
7508
 
 
7509
# Code to be used in simple compile tests
 
7510
lt_simple_compile_test_code="int some_variable = 0;"
 
7511
 
 
7512
# Code to be used in simple link tests
 
7513
lt_simple_link_test_code='int main(){return(0);}'
 
7514
 
 
7515
 
 
7516
# If no C compiler was specified, use CC.
 
7517
LTCC=${LTCC-"$CC"}
 
7518
 
 
7519
# If no C compiler flags were specified, use CFLAGS.
 
7520
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7521
 
 
7522
# Allow CC to be a program name with arguments.
 
7523
compiler=$CC
 
7524
 
 
7525
 
 
7526
# save warnings/boilerplate of simple test code
 
7527
ac_outfile=conftest.$ac_objext
 
7528
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7529
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7530
_lt_compiler_boilerplate=`cat conftest.err`
 
7531
$rm conftest*
 
7532
 
 
7533
ac_outfile=conftest.$ac_objext
 
7534
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7535
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7536
_lt_linker_boilerplate=`cat conftest.err`
 
7537
$rm -r conftest*
 
7538
 
 
7539
 
 
7540
 
 
7541
lt_prog_compiler_no_builtin_flag=
 
7542
 
 
7543
if test "$GCC" = yes; then
 
7544
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7545
 
 
7546
 
 
7547
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7548
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7549
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7550
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7551
else
 
7552
  lt_cv_prog_compiler_rtti_exceptions=no
 
7553
  ac_outfile=conftest.$ac_objext
 
7554
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7555
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7556
   # Insert the option either (1) after the last *FLAGS variable, or
 
7557
   # (2) before a word containing "conftest.", or (3) at the end.
 
7558
   # Note that $ac_compile itself does not contain backslashes and begins
 
7559
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7560
   # The option is referenced via a variable to avoid confusing sed.
 
7561
   lt_compile=`echo "$ac_compile" | $SED \
 
7562
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7563
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7564
   -e 's:$: $lt_compiler_flag:'`
 
7565
   (eval echo "\"\$as_me:7565: $lt_compile\"" >&5)
 
7566
   (eval "$lt_compile" 2>conftest.err)
 
7567
   ac_status=$?
 
7568
   cat conftest.err >&5
 
7569
   echo "$as_me:7569: \$? = $ac_status" >&5
 
7570
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7571
     # The compiler can only warn and ignore the option if not recognized
 
7572
     # So say no if there are warnings other than the usual output.
 
7573
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7574
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7575
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7576
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7577
     fi
 
7578
   fi
 
7579
   $rm conftest*
 
7580
 
 
7581
fi
 
7582
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7583
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7584
 
 
7585
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7586
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7587
else
 
7588
    :
 
7589
fi
 
7590
 
 
7591
fi
 
7592
 
 
7593
lt_prog_compiler_wl=
 
7594
lt_prog_compiler_pic=
 
7595
lt_prog_compiler_static=
 
7596
 
 
7597
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7598
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
7599
 
 
7600
  if test "$GCC" = yes; then
 
7601
    lt_prog_compiler_wl='-Wl,'
 
7602
    lt_prog_compiler_static='-static'
 
7603
 
 
7604
    case $host_os in
 
7605
      aix*)
 
7606
      # All AIX code is PIC.
 
7607
      if test "$host_cpu" = ia64; then
 
7608
        # AIX 5 now supports IA64 processor
 
7609
        lt_prog_compiler_static='-Bstatic'
 
7610
      fi
 
7611
      ;;
 
7612
 
 
7613
    amigaos*)
 
7614
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7615
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7616
      # like `-m68040'.
 
7617
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7618
      ;;
 
7619
 
 
7620
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7621
      # PIC is the default for these OSes.
 
7622
      ;;
 
7623
 
 
7624
    mingw* | cygwin* | pw32* | os2*)
 
7625
      # This hack is so that the source file can tell whether it is being
 
7626
      # built for inclusion in a dll (and should export symbols for example).
 
7627
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7628
      # (--disable-auto-import) libraries
 
7629
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7630
      ;;
 
7631
 
 
7632
    darwin* | rhapsody*)
 
7633
      # PIC is the default on this platform
 
7634
      # Common symbols not allowed in MH_DYLIB files
 
7635
      lt_prog_compiler_pic='-fno-common'
 
7636
      ;;
 
7637
 
 
7638
    interix[3-9]*)
 
7639
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7640
      # Instead, we relocate shared libraries at runtime.
 
7641
      ;;
 
7642
 
 
7643
    msdosdjgpp*)
 
7644
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7645
      # on systems that don't support them.
 
7646
      lt_prog_compiler_can_build_shared=no
 
7647
      enable_shared=no
 
7648
      ;;
 
7649
 
 
7650
    sysv4*MP*)
 
7651
      if test -d /usr/nec; then
 
7652
        lt_prog_compiler_pic=-Kconform_pic
 
7653
      fi
 
7654
      ;;
 
7655
 
 
7656
    hpux*)
 
7657
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7658
      # not for PA HP-UX.
 
7659
      case $host_cpu in
 
7660
      hppa*64*|ia64*)
 
7661
        # +Z the default
 
7662
        ;;
 
7663
      *)
 
7664
        lt_prog_compiler_pic='-fPIC'
 
7665
        ;;
 
7666
      esac
 
7667
      ;;
 
7668
 
 
7669
    *)
 
7670
      lt_prog_compiler_pic='-fPIC'
 
7671
      ;;
 
7672
    esac
 
7673
  else
 
7674
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7675
    case $host_os in
 
7676
    aix*)
 
7677
      lt_prog_compiler_wl='-Wl,'
 
7678
      if test "$host_cpu" = ia64; then
 
7679
        # AIX 5 now supports IA64 processor
 
7680
        lt_prog_compiler_static='-Bstatic'
 
7681
      else
 
7682
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7683
      fi
 
7684
      ;;
 
7685
      darwin*)
 
7686
        # PIC is the default on this platform
 
7687
        # Common symbols not allowed in MH_DYLIB files
 
7688
       case $cc_basename in
 
7689
         xlc*)
 
7690
         lt_prog_compiler_pic='-qnocommon'
 
7691
         lt_prog_compiler_wl='-Wl,'
 
7692
         ;;
 
7693
       esac
 
7694
       ;;
 
7695
 
 
7696
    mingw* | cygwin* | pw32* | os2*)
 
7697
      # This hack is so that the source file can tell whether it is being
 
7698
      # built for inclusion in a dll (and should export symbols for example).
 
7699
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7700
      ;;
 
7701
 
 
7702
    hpux9* | hpux10* | hpux11*)
 
7703
      lt_prog_compiler_wl='-Wl,'
 
7704
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7705
      # not for PA HP-UX.
 
7706
      case $host_cpu in
 
7707
      hppa*64*|ia64*)
 
7708
        # +Z the default
 
7709
        ;;
 
7710
      *)
 
7711
        lt_prog_compiler_pic='+Z'
 
7712
        ;;
 
7713
      esac
 
7714
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7715
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7716
      ;;
 
7717
 
 
7718
    irix5* | irix6* | nonstopux*)
 
7719
      lt_prog_compiler_wl='-Wl,'
 
7720
      # PIC (with -KPIC) is the default.
 
7721
      lt_prog_compiler_static='-non_shared'
 
7722
      ;;
 
7723
 
 
7724
    newsos6)
 
7725
      lt_prog_compiler_pic='-KPIC'
 
7726
      lt_prog_compiler_static='-Bstatic'
 
7727
      ;;
 
7728
 
 
7729
    linux* | k*bsd*-gnu)
 
7730
      case $cc_basename in
 
7731
      icc* | ecc*)
 
7732
        lt_prog_compiler_wl='-Wl,'
 
7733
        lt_prog_compiler_pic='-KPIC'
 
7734
        lt_prog_compiler_static='-static'
 
7735
        ;;
 
7736
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7737
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7738
        # which looks to be a dead project)
 
7739
        lt_prog_compiler_wl='-Wl,'
 
7740
        lt_prog_compiler_pic='-fpic'
 
7741
        lt_prog_compiler_static='-Bstatic'
 
7742
        ;;
 
7743
      ccc*)
 
7744
        lt_prog_compiler_wl='-Wl,'
 
7745
        # All Alpha code is PIC.
 
7746
        lt_prog_compiler_static='-non_shared'
 
7747
        ;;
 
7748
      *)
 
7749
        case `$CC -V 2>&1 | sed 5q` in
 
7750
        *Sun\ C*)
 
7751
          # Sun C 5.9
 
7752
          lt_prog_compiler_pic='-KPIC'
 
7753
          lt_prog_compiler_static='-Bstatic'
 
7754
          lt_prog_compiler_wl='-Wl,'
 
7755
          ;;
 
7756
        *Sun\ F*)
 
7757
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7758
          lt_prog_compiler_pic='-KPIC'
 
7759
          lt_prog_compiler_static='-Bstatic'
 
7760
          lt_prog_compiler_wl=''
 
7761
          ;;
 
7762
        esac
 
7763
        ;;
 
7764
      esac
 
7765
      ;;
 
7766
 
 
7767
    osf3* | osf4* | osf5*)
 
7768
      lt_prog_compiler_wl='-Wl,'
 
7769
      # All OSF/1 code is PIC.
 
7770
      lt_prog_compiler_static='-non_shared'
 
7771
      ;;
 
7772
 
 
7773
    rdos*)
 
7774
      lt_prog_compiler_static='-non_shared'
 
7775
      ;;
 
7776
 
 
7777
    solaris*)
 
7778
      lt_prog_compiler_pic='-KPIC'
 
7779
      lt_prog_compiler_static='-Bstatic'
 
7780
      case $cc_basename in
 
7781
      f77* | f90* | f95*)
 
7782
        lt_prog_compiler_wl='-Qoption ld ';;
 
7783
      *)
 
7784
        lt_prog_compiler_wl='-Wl,';;
 
7785
      esac
 
7786
      ;;
 
7787
 
 
7788
    sunos4*)
 
7789
      lt_prog_compiler_wl='-Qoption ld '
 
7790
      lt_prog_compiler_pic='-PIC'
 
7791
      lt_prog_compiler_static='-Bstatic'
 
7792
      ;;
 
7793
 
 
7794
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7795
      lt_prog_compiler_wl='-Wl,'
 
7796
      lt_prog_compiler_pic='-KPIC'
 
7797
      lt_prog_compiler_static='-Bstatic'
 
7798
      ;;
 
7799
 
 
7800
    sysv4*MP*)
 
7801
      if test -d /usr/nec ;then
 
7802
        lt_prog_compiler_pic='-Kconform_pic'
 
7803
        lt_prog_compiler_static='-Bstatic'
 
7804
      fi
 
7805
      ;;
 
7806
 
 
7807
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7808
      lt_prog_compiler_wl='-Wl,'
 
7809
      lt_prog_compiler_pic='-KPIC'
 
7810
      lt_prog_compiler_static='-Bstatic'
 
7811
      ;;
 
7812
 
 
7813
    unicos*)
 
7814
      lt_prog_compiler_wl='-Wl,'
 
7815
      lt_prog_compiler_can_build_shared=no
 
7816
      ;;
 
7817
 
 
7818
    uts4*)
 
7819
      lt_prog_compiler_pic='-pic'
 
7820
      lt_prog_compiler_static='-Bstatic'
 
7821
      ;;
 
7822
 
 
7823
    *)
 
7824
      lt_prog_compiler_can_build_shared=no
 
7825
      ;;
 
7826
    esac
 
7827
  fi
 
7828
 
 
7829
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7830
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
7831
 
 
7832
#
 
7833
# Check to make sure the PIC flag actually works.
 
7834
#
 
7835
if test -n "$lt_prog_compiler_pic"; then
 
7836
 
 
7837
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7838
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
7839
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
7840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7841
else
 
7842
  lt_cv_prog_compiler_pic_works=no
 
7843
  ac_outfile=conftest.$ac_objext
 
7844
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7845
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7846
   # Insert the option either (1) after the last *FLAGS variable, or
 
7847
   # (2) before a word containing "conftest.", or (3) at the end.
 
7848
   # Note that $ac_compile itself does not contain backslashes and begins
 
7849
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7850
   # The option is referenced via a variable to avoid confusing sed.
 
7851
   lt_compile=`echo "$ac_compile" | $SED \
 
7852
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7853
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7854
   -e 's:$: $lt_compiler_flag:'`
 
7855
   (eval echo "\"\$as_me:7855: $lt_compile\"" >&5)
 
7856
   (eval "$lt_compile" 2>conftest.err)
 
7857
   ac_status=$?
 
7858
   cat conftest.err >&5
 
7859
   echo "$as_me:7859: \$? = $ac_status" >&5
 
7860
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7861
     # The compiler can only warn and ignore the option if not recognized
 
7862
     # So say no if there are warnings other than the usual output.
 
7863
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7864
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7865
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7866
       lt_cv_prog_compiler_pic_works=yes
 
7867
     fi
 
7868
   fi
 
7869
   $rm conftest*
 
7870
 
 
7871
fi
 
7872
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
7873
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
 
7874
 
 
7875
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
7876
    case $lt_prog_compiler_pic in
 
7877
     "" | " "*) ;;
 
7878
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7879
     esac
 
7880
else
 
7881
    lt_prog_compiler_pic=
 
7882
     lt_prog_compiler_can_build_shared=no
 
7883
fi
 
7884
 
 
7885
fi
 
7886
case $host_os in
 
7887
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7888
  *djgpp*)
 
7889
    lt_prog_compiler_pic=
 
7890
    ;;
 
7891
  *)
 
7892
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7893
    ;;
 
7894
esac
 
7895
 
 
7896
#
 
7897
# Check to make sure the static flag actually works.
 
7898
#
 
7899
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7900
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7901
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
7902
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
7903
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7904
else
 
7905
  lt_cv_prog_compiler_static_works=no
 
7906
   save_LDFLAGS="$LDFLAGS"
 
7907
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7908
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
7909
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7910
     # The linker can only warn and ignore the option if not recognized
 
7911
     # So say no if there are warnings
 
7912
     if test -s conftest.err; then
 
7913
       # Append any errors to the config.log.
 
7914
       cat conftest.err 1>&5
 
7915
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7916
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7917
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7918
         lt_cv_prog_compiler_static_works=yes
 
7919
       fi
 
7920
     else
 
7921
       lt_cv_prog_compiler_static_works=yes
 
7922
     fi
 
7923
   fi
 
7924
   $rm -r conftest*
 
7925
   LDFLAGS="$save_LDFLAGS"
 
7926
 
 
7927
fi
 
7928
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
7929
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
 
7930
 
 
7931
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
7932
    :
 
7933
else
 
7934
    lt_prog_compiler_static=
 
7935
fi
 
7936
 
 
7937
 
 
7938
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7939
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
7940
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7941
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7942
else
 
7943
  lt_cv_prog_compiler_c_o=no
 
7944
   $rm -r conftest 2>/dev/null
 
7945
   mkdir conftest
 
7946
   cd conftest
 
7947
   mkdir out
 
7948
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7949
 
 
7950
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7951
   # Insert the option either (1) after the last *FLAGS variable, or
 
7952
   # (2) before a word containing "conftest.", or (3) at the end.
 
7953
   # Note that $ac_compile itself does not contain backslashes and begins
 
7954
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7955
   lt_compile=`echo "$ac_compile" | $SED \
 
7956
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7957
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7958
   -e 's:$: $lt_compiler_flag:'`
 
7959
   (eval echo "\"\$as_me:7959: $lt_compile\"" >&5)
 
7960
   (eval "$lt_compile" 2>out/conftest.err)
 
7961
   ac_status=$?
 
7962
   cat out/conftest.err >&5
 
7963
   echo "$as_me:7963: \$? = $ac_status" >&5
 
7964
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7965
   then
 
7966
     # The compiler can only warn and ignore the option if not recognized
 
7967
     # So say no if there are warnings
 
7968
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7969
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7970
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7971
       lt_cv_prog_compiler_c_o=yes
 
7972
     fi
 
7973
   fi
 
7974
   chmod u+w . 2>&5
 
7975
   $rm conftest*
 
7976
   # SGI C++ compiler will create directory out/ii_files/ for
 
7977
   # template instantiation
 
7978
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7979
   $rm out/* && rmdir out
 
7980
   cd ..
 
7981
   rmdir conftest
 
7982
   $rm conftest*
 
7983
 
 
7984
fi
 
7985
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7986
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
7987
 
 
7988
 
 
7989
hard_links="nottested"
 
7990
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7991
  # do not overwrite the value of need_locks provided by the user
 
7992
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7993
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
7994
  hard_links=yes
 
7995
  $rm conftest*
 
7996
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7997
  touch conftest.a
 
7998
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7999
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8000
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
8001
echo "${ECHO_T}$hard_links" >&6; }
 
8002
  if test "$hard_links" = no; then
 
8003
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8004
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8005
    need_locks=warn
 
8006
  fi
 
8007
else
 
8008
  need_locks=no
 
8009
fi
 
8010
 
 
8011
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8012
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
8013
 
 
8014
  runpath_var=
 
8015
  allow_undefined_flag=
 
8016
  enable_shared_with_static_runtimes=no
 
8017
  archive_cmds=
 
8018
  archive_expsym_cmds=
 
8019
  old_archive_From_new_cmds=
 
8020
  old_archive_from_expsyms_cmds=
 
8021
  export_dynamic_flag_spec=
 
8022
  whole_archive_flag_spec=
 
8023
  thread_safe_flag_spec=
 
8024
  hardcode_libdir_flag_spec=
 
8025
  hardcode_libdir_flag_spec_ld=
 
8026
  hardcode_libdir_separator=
 
8027
  hardcode_direct=no
 
8028
  hardcode_minus_L=no
 
8029
  hardcode_shlibpath_var=unsupported
 
8030
  link_all_deplibs=unknown
 
8031
  hardcode_automatic=no
 
8032
  module_cmds=
 
8033
  module_expsym_cmds=
 
8034
  always_export_symbols=no
 
8035
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8036
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8037
  # included in the symbol list
 
8038
  include_expsyms=
 
8039
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8040
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8041
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8042
  # as well as any symbol that contains `d'.
 
8043
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8044
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8045
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8046
  # the symbol is explicitly referenced.  Since portable code cannot
 
8047
  # rely on this symbol name, it's probably fine to never include it in
 
8048
  # preloaded symbol tables.
 
8049
  # Exclude shared library initialization/finalization symbols.
 
8050
  extract_expsyms_cmds=
 
8051
  # Just being paranoid about ensuring that cc_basename is set.
 
8052
  for cc_temp in $compiler""; do
 
8053
  case $cc_temp in
 
8054
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8055
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8056
    \-*) ;;
 
8057
    *) break;;
 
8058
  esac
 
8059
done
 
8060
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8061
 
 
8062
  case $host_os in
 
8063
  cygwin* | mingw* | pw32*)
 
8064
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8065
    # When not using gcc, we currently assume that we are using
 
8066
    # Microsoft Visual C++.
 
8067
    if test "$GCC" != yes; then
 
8068
      with_gnu_ld=no
 
8069
    fi
 
8070
    ;;
 
8071
  interix*)
 
8072
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8073
    with_gnu_ld=yes
 
8074
    ;;
 
8075
  openbsd*)
 
8076
    with_gnu_ld=no
 
8077
    ;;
 
8078
  esac
 
8079
 
 
8080
  ld_shlibs=yes
 
8081
  if test "$with_gnu_ld" = yes; then
 
8082
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8083
    wlarc='${wl}'
 
8084
 
 
8085
    # Set some defaults for GNU ld with shared library support. These
 
8086
    # are reset later if shared libraries are not supported. Putting them
 
8087
    # here allows them to be overridden if necessary.
 
8088
    runpath_var=LD_RUN_PATH
 
8089
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8090
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8091
    # ancient GNU ld didn't support --whole-archive et. al.
 
8092
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8093
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8094
      else
 
8095
        whole_archive_flag_spec=
 
8096
    fi
 
8097
    supports_anon_versioning=no
 
8098
    case `$LD -v 2>/dev/null` in
 
8099
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8100
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8101
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8102
      *\ 2.11.*) ;; # other 2.11 versions
 
8103
      *) supports_anon_versioning=yes ;;
 
8104
    esac
 
8105
 
 
8106
    # See if GNU ld supports shared libraries.
 
8107
    case $host_os in
 
8108
    aix[3-9]*)
 
8109
      # On AIX/PPC, the GNU linker is very broken
 
8110
      if test "$host_cpu" != ia64; then
 
8111
        ld_shlibs=no
 
8112
        cat <<EOF 1>&2
 
8113
 
 
8114
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8115
*** to be unable to reliably create shared libraries on AIX.
 
8116
*** Therefore, libtool is disabling shared libraries support.  If you
 
8117
*** really care for shared libraries, you may want to modify your PATH
 
8118
*** so that a non-GNU linker is found, and then restart.
 
8119
 
 
8120
EOF
 
8121
      fi
 
8122
      ;;
 
8123
 
 
8124
    amigaos*)
 
8125
      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)'
 
8126
      hardcode_libdir_flag_spec='-L$libdir'
 
8127
      hardcode_minus_L=yes
 
8128
 
 
8129
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8130
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8131
      # to version 4, is to share data among multiple programs linked
 
8132
      # with the same dynamic library.  Since this doesn't match the
 
8133
      # behavior of shared libraries on other platforms, we can't use
 
8134
      # them.
 
8135
      ld_shlibs=no
 
8136
      ;;
 
8137
 
 
8138
    beos*)
 
8139
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8140
        allow_undefined_flag=unsupported
 
8141
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8142
        # support --undefined.  This deserves some investigation.  FIXME
 
8143
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8144
      else
 
8145
        ld_shlibs=no
 
8146
      fi
 
8147
      ;;
 
8148
 
 
8149
    cygwin* | mingw* | pw32*)
 
8150
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8151
      # as there is no search path for DLLs.
 
8152
      hardcode_libdir_flag_spec='-L$libdir'
 
8153
      allow_undefined_flag=unsupported
 
8154
      always_export_symbols=no
 
8155
      enable_shared_with_static_runtimes=yes
 
8156
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8157
 
 
8158
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8159
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8160
        # If the export-symbols file already is a .def file (1st line
 
8161
        # is EXPORTS), use it as is; otherwise, prepend...
 
8162
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8163
          cp $export_symbols $output_objdir/$soname.def;
 
8164
        else
 
8165
          echo EXPORTS > $output_objdir/$soname.def;
 
8166
          cat $export_symbols >> $output_objdir/$soname.def;
 
8167
        fi~
 
8168
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8169
      else
 
8170
        ld_shlibs=no
 
8171
      fi
 
8172
      ;;
 
8173
 
 
8174
    interix[3-9]*)
 
8175
      hardcode_direct=no
 
8176
      hardcode_shlibpath_var=no
 
8177
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8178
      export_dynamic_flag_spec='${wl}-E'
 
8179
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8180
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8181
      # default) and relocated if they conflict, which is a slow very memory
 
8182
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8183
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8184
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8185
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8186
      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'
 
8187
      ;;
 
8188
 
 
8189
    gnu* | linux* | k*bsd*-gnu)
 
8190
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8191
        tmp_addflag=
 
8192
        case $cc_basename,$host_cpu in
 
8193
        pgcc*)                          # Portland Group C compiler
 
8194
          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'
 
8195
          tmp_addflag=' $pic_flag'
 
8196
          ;;
 
8197
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8198
          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'
 
8199
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8200
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8201
          tmp_addflag=' -i_dynamic' ;;
 
8202
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8203
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8204
        ifc* | ifort*)                  # Intel Fortran compiler
 
8205
          tmp_addflag=' -nofor_main' ;;
 
8206
        esac
 
8207
        case `$CC -V 2>&1 | sed 5q` in
 
8208
        *Sun\ C*)                       # Sun C 5.9
 
8209
          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'
 
8210
          tmp_sharedflag='-G' ;;
 
8211
        *Sun\ F*)                       # Sun Fortran 8.3
 
8212
          tmp_sharedflag='-G' ;;
 
8213
        *)
 
8214
          tmp_sharedflag='-shared' ;;
 
8215
        esac
 
8216
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8217
 
 
8218
        if test $supports_anon_versioning = yes; then
 
8219
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8220
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8221
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8222
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8223
        fi
 
8224
        link_all_deplibs=no
 
8225
      else
 
8226
        ld_shlibs=no
 
8227
      fi
 
8228
      ;;
 
8229
 
 
8230
    netbsd* | netbsdelf*-gnu)
 
8231
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8232
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8233
        wlarc=
 
8234
      else
 
8235
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8236
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8237
      fi
 
8238
      ;;
 
8239
 
 
8240
    solaris*)
 
8241
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8242
        ld_shlibs=no
 
8243
        cat <<EOF 1>&2
 
8244
 
 
8245
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8246
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8247
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8248
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8249
*** your PATH or compiler configuration so that the native linker is
 
8250
*** used, and then restart.
 
8251
 
 
8252
EOF
 
8253
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8254
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8255
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8256
      else
 
8257
        ld_shlibs=no
 
8258
      fi
 
8259
      ;;
 
8260
 
 
8261
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8262
      case `$LD -v 2>&1` in
 
8263
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8264
        ld_shlibs=no
 
8265
        cat <<_LT_EOF 1>&2
 
8266
 
 
8267
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8268
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8269
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8270
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8271
*** your PATH or compiler configuration so that the native linker is
 
8272
*** used, and then restart.
 
8273
 
 
8274
_LT_EOF
 
8275
        ;;
 
8276
        *)
 
8277
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8278
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8279
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8280
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8281
          else
 
8282
            ld_shlibs=no
 
8283
          fi
 
8284
        ;;
 
8285
      esac
 
8286
      ;;
 
8287
 
 
8288
    sunos4*)
 
8289
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8290
      wlarc=
 
8291
      hardcode_direct=yes
 
8292
      hardcode_shlibpath_var=no
 
8293
      ;;
 
8294
 
 
8295
    *)
 
8296
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8297
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8298
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8299
      else
 
8300
        ld_shlibs=no
 
8301
      fi
 
8302
      ;;
 
8303
    esac
 
8304
 
 
8305
    if test "$ld_shlibs" = no; then
 
8306
      runpath_var=
 
8307
      hardcode_libdir_flag_spec=
 
8308
      export_dynamic_flag_spec=
 
8309
      whole_archive_flag_spec=
 
8310
    fi
 
8311
  else
 
8312
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8313
    case $host_os in
 
8314
    aix3*)
 
8315
      allow_undefined_flag=unsupported
 
8316
      always_export_symbols=yes
 
8317
      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'
 
8318
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8319
      # are no directories specified by -L.
 
8320
      hardcode_minus_L=yes
 
8321
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8322
        # Neither direct hardcoding nor static linking is supported with a
 
8323
        # broken collect2.
 
8324
        hardcode_direct=unsupported
 
8325
      fi
 
8326
      ;;
 
8327
 
 
8328
    aix[4-9]*)
 
8329
      if test "$host_cpu" = ia64; then
 
8330
        # On IA64, the linker does run time linking by default, so we don't
 
8331
        # have to do anything special.
 
8332
        aix_use_runtimelinking=no
 
8333
        exp_sym_flag='-Bexport'
 
8334
        no_entry_flag=""
 
8335
      else
 
8336
        # If we're using GNU nm, then we don't want the "-C" option.
 
8337
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8338
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8339
          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'
 
8340
        else
 
8341
          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'
 
8342
        fi
 
8343
        aix_use_runtimelinking=no
 
8344
 
 
8345
        # Test if we are trying to use run time linking or normal
 
8346
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8347
        # need to do runtime linking.
 
8348
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8349
          for ld_flag in $LDFLAGS; do
 
8350
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8351
            aix_use_runtimelinking=yes
 
8352
            break
 
8353
          fi
 
8354
          done
 
8355
          ;;
 
8356
        esac
 
8357
 
 
8358
        exp_sym_flag='-bexport'
 
8359
        no_entry_flag='-bnoentry'
 
8360
      fi
 
8361
 
 
8362
      # When large executables or shared objects are built, AIX ld can
 
8363
      # have problems creating the table of contents.  If linking a library
 
8364
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8365
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8366
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8367
 
 
8368
      archive_cmds=''
 
8369
      hardcode_direct=yes
 
8370
      hardcode_libdir_separator=':'
 
8371
      link_all_deplibs=yes
 
8372
 
 
8373
      if test "$GCC" = yes; then
 
8374
        case $host_os in aix4.[012]|aix4.[012].*)
 
8375
        # We only want to do this on AIX 4.2 and lower, the check
 
8376
        # below for broken collect2 doesn't work under 4.3+
 
8377
          collect2name=`${CC} -print-prog-name=collect2`
 
8378
          if test -f "$collect2name" && \
 
8379
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8380
          then
 
8381
          # We have reworked collect2
 
8382
          :
 
8383
          else
 
8384
          # We have old collect2
 
8385
          hardcode_direct=unsupported
 
8386
          # It fails to find uninstalled libraries when the uninstalled
 
8387
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8388
          # to unsupported forces relinking
 
8389
          hardcode_minus_L=yes
 
8390
          hardcode_libdir_flag_spec='-L$libdir'
 
8391
          hardcode_libdir_separator=
 
8392
          fi
 
8393
          ;;
 
8394
        esac
 
8395
        shared_flag='-shared'
 
8396
        if test "$aix_use_runtimelinking" = yes; then
 
8397
          shared_flag="$shared_flag "'${wl}-G'
 
8398
        fi
 
8399
      else
 
8400
        # not using gcc
 
8401
        if test "$host_cpu" = ia64; then
 
8402
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8403
        # chokes on -Wl,-G. The following line is correct:
 
8404
          shared_flag='-G'
 
8405
        else
 
8406
          if test "$aix_use_runtimelinking" = yes; then
 
8407
            shared_flag='${wl}-G'
 
8408
          else
 
8409
            shared_flag='${wl}-bM:SRE'
 
8410
          fi
 
8411
        fi
 
8412
      fi
 
8413
 
 
8414
      # It seems that -bexpall does not export symbols beginning with
 
8415
      # underscore (_), so it is better to generate a list of symbols to export.
 
8416
      always_export_symbols=yes
 
8417
      if test "$aix_use_runtimelinking" = yes; then
 
8418
        # Warning - without using the other runtime loading flags (-brtl),
 
8419
        # -berok will link without error, but may produce a broken library.
 
8420
        allow_undefined_flag='-berok'
 
8421
       # Determine the default libpath from the value encoded in an empty executable.
 
8422
       cat >conftest.$ac_ext <<_ACEOF
 
8423
/* confdefs.h.  */
 
8424
_ACEOF
 
8425
cat confdefs.h >>conftest.$ac_ext
 
8426
cat >>conftest.$ac_ext <<_ACEOF
 
8427
/* end confdefs.h.  */
 
8428
 
 
8429
int
 
8430
main ()
 
8431
{
 
8432
 
 
8433
  ;
 
8434
  return 0;
 
8435
}
 
8436
_ACEOF
 
8437
rm -f conftest.$ac_objext conftest$ac_exeext
 
8438
if { (ac_try="$ac_link"
 
8439
case "(($ac_try" in
 
8440
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8441
  *) ac_try_echo=$ac_try;;
 
8442
esac
 
8443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8444
  (eval "$ac_link") 2>conftest.er1
 
8445
  ac_status=$?
 
8446
  grep -v '^ *+' conftest.er1 >conftest.err
 
8447
  rm -f conftest.er1
 
8448
  cat conftest.err >&5
 
8449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8450
  (exit $ac_status); } && {
 
8451
         test -z "$ac_c_werror_flag" ||
 
8452
         test ! -s conftest.err
 
8453
       } && test -s conftest$ac_exeext &&
 
8454
       $as_test_x conftest$ac_exeext; then
 
8455
 
 
8456
lt_aix_libpath_sed='
 
8457
    /Import File Strings/,/^$/ {
 
8458
        /^0/ {
 
8459
            s/^0  *\(.*\)$/\1/
 
8460
            p
 
8461
        }
 
8462
    }'
 
8463
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8464
# Check for a 64-bit object if we didn't find anything.
 
8465
if test -z "$aix_libpath"; then
 
8466
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8467
fi
 
8468
else
 
8469
  echo "$as_me: failed program was:" >&5
 
8470
sed 's/^/| /' conftest.$ac_ext >&5
 
8471
 
 
8472
 
 
8473
fi
 
8474
 
 
8475
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8476
      conftest$ac_exeext conftest.$ac_ext
 
8477
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8478
 
 
8479
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8480
        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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8481
       else
 
8482
        if test "$host_cpu" = ia64; then
 
8483
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8484
          allow_undefined_flag="-z nodefs"
 
8485
          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"
 
8486
        else
 
8487
         # Determine the default libpath from the value encoded in an empty executable.
 
8488
         cat >conftest.$ac_ext <<_ACEOF
 
8489
/* confdefs.h.  */
 
8490
_ACEOF
 
8491
cat confdefs.h >>conftest.$ac_ext
 
8492
cat >>conftest.$ac_ext <<_ACEOF
 
8493
/* end confdefs.h.  */
 
8494
 
 
8495
int
 
8496
main ()
 
8497
{
 
8498
 
 
8499
  ;
 
8500
  return 0;
 
8501
}
 
8502
_ACEOF
 
8503
rm -f conftest.$ac_objext conftest$ac_exeext
 
8504
if { (ac_try="$ac_link"
 
8505
case "(($ac_try" in
 
8506
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8507
  *) ac_try_echo=$ac_try;;
 
8508
esac
 
8509
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8510
  (eval "$ac_link") 2>conftest.er1
 
8511
  ac_status=$?
 
8512
  grep -v '^ *+' conftest.er1 >conftest.err
 
8513
  rm -f conftest.er1
 
8514
  cat conftest.err >&5
 
8515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8516
  (exit $ac_status); } && {
 
8517
         test -z "$ac_c_werror_flag" ||
 
8518
         test ! -s conftest.err
 
8519
       } && test -s conftest$ac_exeext &&
 
8520
       $as_test_x conftest$ac_exeext; then
 
8521
 
 
8522
lt_aix_libpath_sed='
 
8523
    /Import File Strings/,/^$/ {
 
8524
        /^0/ {
 
8525
            s/^0  *\(.*\)$/\1/
 
8526
            p
 
8527
        }
 
8528
    }'
 
8529
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8530
# Check for a 64-bit object if we didn't find anything.
 
8531
if test -z "$aix_libpath"; then
 
8532
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8533
fi
 
8534
else
 
8535
  echo "$as_me: failed program was:" >&5
 
8536
sed 's/^/| /' conftest.$ac_ext >&5
 
8537
 
 
8538
 
 
8539
fi
 
8540
 
 
8541
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8542
      conftest$ac_exeext conftest.$ac_ext
 
8543
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8544
 
 
8545
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8546
          # Warning - without using the other run time loading flags,
 
8547
          # -berok will link without error, but may produce a broken library.
 
8548
          no_undefined_flag=' ${wl}-bernotok'
 
8549
          allow_undefined_flag=' ${wl}-berok'
 
8550
          # Exported symbols can be pulled into shared objects from archives
 
8551
          whole_archive_flag_spec='$convenience'
 
8552
          archive_cmds_need_lc=yes
 
8553
          # This is similar to how AIX traditionally builds its shared libraries.
 
8554
          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'
 
8555
        fi
 
8556
      fi
 
8557
      ;;
 
8558
 
 
8559
    amigaos*)
 
8560
      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)'
 
8561
      hardcode_libdir_flag_spec='-L$libdir'
 
8562
      hardcode_minus_L=yes
 
8563
      # see comment about different semantics on the GNU ld section
 
8564
      ld_shlibs=no
 
8565
      ;;
 
8566
 
 
8567
    bsdi[45]*)
 
8568
      export_dynamic_flag_spec=-rdynamic
 
8569
      ;;
 
8570
 
 
8571
    cygwin* | mingw* | pw32*)
 
8572
      # When not using gcc, we currently assume that we are using
 
8573
      # Microsoft Visual C++.
 
8574
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8575
      # no search path for DLLs.
 
8576
      hardcode_libdir_flag_spec=' '
 
8577
      allow_undefined_flag=unsupported
 
8578
      # Tell ltmain to make .lib files, not .a files.
 
8579
      libext=lib
 
8580
      # Tell ltmain to make .dll files, not .so files.
 
8581
      shrext_cmds=".dll"
 
8582
      # FIXME: Setting linknames here is a bad hack.
 
8583
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8584
      # The linker will automatically build a .lib file if we build a DLL.
 
8585
      old_archive_From_new_cmds='true'
 
8586
      # FIXME: Should let the user specify the lib program.
 
8587
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8588
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8589
      enable_shared_with_static_runtimes=yes
 
8590
      ;;
 
8591
 
 
8592
    darwin* | rhapsody*)
 
8593
      case $host_os in
 
8594
        rhapsody* | darwin1.[012])
 
8595
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8596
         ;;
 
8597
       *) # Darwin 1.3 on
 
8598
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8599
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8600
         else
 
8601
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8602
             10.[012])
 
8603
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8604
               ;;
 
8605
             10.*)
 
8606
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8607
               ;;
 
8608
           esac
 
8609
         fi
 
8610
         ;;
 
8611
      esac
 
8612
      archive_cmds_need_lc=no
 
8613
      hardcode_direct=no
 
8614
      hardcode_automatic=yes
 
8615
      hardcode_shlibpath_var=unsupported
 
8616
      whole_archive_flag_spec=''
 
8617
      link_all_deplibs=yes
 
8618
    if test "$GCC" = yes ; then
 
8619
        output_verbose_link_cmd='echo'
 
8620
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8621
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8622
        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}"
 
8623
        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}"
 
8624
    else
 
8625
      case $cc_basename in
 
8626
        xlc*)
 
8627
         output_verbose_link_cmd='echo'
 
8628
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
8629
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8630
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8631
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8632
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8633
          ;;
 
8634
       *)
 
8635
         ld_shlibs=no
 
8636
          ;;
 
8637
      esac
 
8638
    fi
 
8639
      ;;
 
8640
 
 
8641
    dgux*)
 
8642
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8643
      hardcode_libdir_flag_spec='-L$libdir'
 
8644
      hardcode_shlibpath_var=no
 
8645
      ;;
 
8646
 
 
8647
    freebsd1*)
 
8648
      ld_shlibs=no
 
8649
      ;;
 
8650
 
 
8651
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8652
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8653
    # does not break anything, and helps significantly (at the cost of a little
 
8654
    # extra space).
 
8655
    freebsd2.2*)
 
8656
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8657
      hardcode_libdir_flag_spec='-R$libdir'
 
8658
      hardcode_direct=yes
 
8659
      hardcode_shlibpath_var=no
 
8660
      ;;
 
8661
 
 
8662
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8663
    freebsd2*)
 
8664
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8665
      hardcode_direct=yes
 
8666
      hardcode_minus_L=yes
 
8667
      hardcode_shlibpath_var=no
 
8668
      ;;
 
8669
 
 
8670
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8671
    freebsd* | dragonfly*)
 
8672
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8673
      hardcode_libdir_flag_spec='-R$libdir'
 
8674
      hardcode_direct=yes
 
8675
      hardcode_shlibpath_var=no
 
8676
      ;;
 
8677
 
 
8678
    hpux9*)
 
8679
      if test "$GCC" = yes; then
 
8680
        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'
 
8681
      else
 
8682
        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'
 
8683
      fi
 
8684
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8685
      hardcode_libdir_separator=:
 
8686
      hardcode_direct=yes
 
8687
 
 
8688
      # hardcode_minus_L: Not really in the search PATH,
 
8689
      # but as the default location of the library.
 
8690
      hardcode_minus_L=yes
 
8691
      export_dynamic_flag_spec='${wl}-E'
 
8692
      ;;
 
8693
 
 
8694
    hpux10*)
 
8695
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8696
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8697
      else
 
8698
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8699
      fi
 
8700
      if test "$with_gnu_ld" = no; then
 
8701
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8702
        hardcode_libdir_separator=:
 
8703
 
 
8704
        hardcode_direct=yes
 
8705
        export_dynamic_flag_spec='${wl}-E'
 
8706
 
 
8707
        # hardcode_minus_L: Not really in the search PATH,
 
8708
        # but as the default location of the library.
 
8709
        hardcode_minus_L=yes
 
8710
      fi
 
8711
      ;;
 
8712
 
 
8713
    hpux11*)
 
8714
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8715
        case $host_cpu in
 
8716
        hppa*64*)
 
8717
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8718
          ;;
 
8719
        ia64*)
 
8720
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8721
          ;;
 
8722
        *)
 
8723
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8724
          ;;
 
8725
        esac
 
8726
      else
 
8727
        case $host_cpu in
 
8728
        hppa*64*)
 
8729
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8730
          ;;
 
8731
        ia64*)
 
8732
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8733
          ;;
 
8734
        *)
 
8735
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8736
          ;;
 
8737
        esac
 
8738
      fi
 
8739
      if test "$with_gnu_ld" = no; then
 
8740
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8741
        hardcode_libdir_separator=:
 
8742
 
 
8743
        case $host_cpu in
 
8744
        hppa*64*|ia64*)
 
8745
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8746
          hardcode_direct=no
 
8747
          hardcode_shlibpath_var=no
 
8748
          ;;
 
8749
        *)
 
8750
          hardcode_direct=yes
 
8751
          export_dynamic_flag_spec='${wl}-E'
 
8752
 
 
8753
          # hardcode_minus_L: Not really in the search PATH,
 
8754
          # but as the default location of the library.
 
8755
          hardcode_minus_L=yes
 
8756
          ;;
 
8757
        esac
 
8758
      fi
 
8759
      ;;
 
8760
 
 
8761
    irix5* | irix6* | nonstopux*)
 
8762
      if test "$GCC" = yes; then
 
8763
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8764
      else
 
8765
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8766
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8767
      fi
 
8768
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8769
      hardcode_libdir_separator=:
 
8770
      link_all_deplibs=yes
 
8771
      ;;
 
8772
 
 
8773
    netbsd* | netbsdelf*-gnu)
 
8774
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8775
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8776
      else
 
8777
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8778
      fi
 
8779
      hardcode_libdir_flag_spec='-R$libdir'
 
8780
      hardcode_direct=yes
 
8781
      hardcode_shlibpath_var=no
 
8782
      ;;
 
8783
 
 
8784
    newsos6)
 
8785
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8786
      hardcode_direct=yes
 
8787
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8788
      hardcode_libdir_separator=:
 
8789
      hardcode_shlibpath_var=no
 
8790
      ;;
 
8791
 
 
8792
    openbsd*)
 
8793
      if test -f /usr/libexec/ld.so; then
 
8794
        hardcode_direct=yes
 
8795
        hardcode_shlibpath_var=no
 
8796
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8797
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8798
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8799
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8800
          export_dynamic_flag_spec='${wl}-E'
 
8801
        else
 
8802
          case $host_os in
 
8803
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8804
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8805
             hardcode_libdir_flag_spec='-R$libdir'
 
8806
             ;;
 
8807
           *)
 
8808
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8809
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8810
             ;;
 
8811
          esac
 
8812
        fi
 
8813
      else
 
8814
        ld_shlibs=no
 
8815
      fi
 
8816
      ;;
 
8817
 
 
8818
    os2*)
 
8819
      hardcode_libdir_flag_spec='-L$libdir'
 
8820
      hardcode_minus_L=yes
 
8821
      allow_undefined_flag=unsupported
 
8822
      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'
 
8823
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8824
      ;;
 
8825
 
 
8826
    osf3*)
 
8827
      if test "$GCC" = yes; then
 
8828
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8829
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8830
      else
 
8831
        allow_undefined_flag=' -expect_unresolved \*'
 
8832
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8833
      fi
 
8834
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8835
      hardcode_libdir_separator=:
 
8836
      ;;
 
8837
 
 
8838
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8839
      if test "$GCC" = yes; then
 
8840
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8841
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8842
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8843
      else
 
8844
        allow_undefined_flag=' -expect_unresolved \*'
 
8845
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8846
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8847
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
8848
 
 
8849
        # Both c and cxx compiler support -rpath directly
 
8850
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8851
      fi
 
8852
      hardcode_libdir_separator=:
 
8853
      ;;
 
8854
 
 
8855
    solaris*)
 
8856
      no_undefined_flag=' -z text'
 
8857
      if test "$GCC" = yes; then
 
8858
        wlarc='${wl}'
 
8859
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8860
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8861
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8862
      else
 
8863
        wlarc=''
 
8864
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8865
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8866
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8867
      fi
 
8868
      hardcode_libdir_flag_spec='-R$libdir'
 
8869
      hardcode_shlibpath_var=no
 
8870
      case $host_os in
 
8871
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8872
      *)
 
8873
        # The compiler driver will combine and reorder linker options,
 
8874
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8875
        # but is careful enough not to reorder.
 
8876
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8877
        if test "$GCC" = yes; then
 
8878
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8879
        else
 
8880
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
8881
        fi
 
8882
        ;;
 
8883
      esac
 
8884
      link_all_deplibs=yes
 
8885
      ;;
 
8886
 
 
8887
    sunos4*)
 
8888
      if test "x$host_vendor" = xsequent; then
 
8889
        # Use $CC to link under sequent, because it throws in some extra .o
 
8890
        # files that make .init and .fini sections work.
 
8891
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8892
      else
 
8893
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8894
      fi
 
8895
      hardcode_libdir_flag_spec='-L$libdir'
 
8896
      hardcode_direct=yes
 
8897
      hardcode_minus_L=yes
 
8898
      hardcode_shlibpath_var=no
 
8899
      ;;
 
8900
 
 
8901
    sysv4)
 
8902
      case $host_vendor in
 
8903
        sni)
 
8904
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8905
          hardcode_direct=yes # is this really true???
 
8906
        ;;
 
8907
        siemens)
 
8908
          ## LD is ld it makes a PLAMLIB
 
8909
          ## CC just makes a GrossModule.
 
8910
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8911
          reload_cmds='$CC -r -o $output$reload_objs'
 
8912
          hardcode_direct=no
 
8913
        ;;
 
8914
        motorola)
 
8915
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8916
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8917
        ;;
 
8918
      esac
 
8919
      runpath_var='LD_RUN_PATH'
 
8920
      hardcode_shlibpath_var=no
 
8921
      ;;
 
8922
 
 
8923
    sysv4.3*)
 
8924
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8925
      hardcode_shlibpath_var=no
 
8926
      export_dynamic_flag_spec='-Bexport'
 
8927
      ;;
 
8928
 
 
8929
    sysv4*MP*)
 
8930
      if test -d /usr/nec; then
 
8931
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8932
        hardcode_shlibpath_var=no
 
8933
        runpath_var=LD_RUN_PATH
 
8934
        hardcode_runpath_var=yes
 
8935
        ld_shlibs=yes
 
8936
      fi
 
8937
      ;;
 
8938
 
 
8939
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
8940
      no_undefined_flag='${wl}-z,text'
 
8941
      archive_cmds_need_lc=no
 
8942
      hardcode_shlibpath_var=no
 
8943
      runpath_var='LD_RUN_PATH'
 
8944
 
 
8945
      if test "$GCC" = yes; then
 
8946
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8947
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8948
      else
 
8949
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8950
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8951
      fi
 
8952
      ;;
 
8953
 
 
8954
    sysv5* | sco3.2v5* | sco5v6*)
 
8955
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8956
      # link with -lc, and that would cause any symbols used from libc to
 
8957
      # always be unresolved, which means just about no library would
 
8958
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8959
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8960
      # as -z defs.
 
8961
      no_undefined_flag='${wl}-z,text'
 
8962
      allow_undefined_flag='${wl}-z,nodefs'
 
8963
      archive_cmds_need_lc=no
 
8964
      hardcode_shlibpath_var=no
 
8965
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8966
      hardcode_libdir_separator=':'
 
8967
      link_all_deplibs=yes
 
8968
      export_dynamic_flag_spec='${wl}-Bexport'
 
8969
      runpath_var='LD_RUN_PATH'
 
8970
 
 
8971
      if test "$GCC" = yes; then
 
8972
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8973
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8974
      else
 
8975
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8976
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8977
      fi
 
8978
      ;;
 
8979
 
 
8980
    uts4*)
 
8981
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8982
      hardcode_libdir_flag_spec='-L$libdir'
 
8983
      hardcode_shlibpath_var=no
 
8984
      ;;
 
8985
 
 
8986
    *)
 
8987
      ld_shlibs=no
 
8988
      ;;
 
8989
    esac
 
8990
  fi
 
8991
 
 
8992
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8993
echo "${ECHO_T}$ld_shlibs" >&6; }
 
8994
test "$ld_shlibs" = no && can_build_shared=no
 
8995
 
 
8996
#
 
8997
# Do we need to explicitly link libc?
 
8998
#
 
8999
case "x$archive_cmds_need_lc" in
 
9000
x|xyes)
 
9001
  # Assume -lc should be added
 
9002
  archive_cmds_need_lc=yes
 
9003
 
 
9004
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9005
    case $archive_cmds in
 
9006
    *'~'*)
 
9007
      # FIXME: we may have to deal with multi-command sequences.
 
9008
      ;;
 
9009
    '$CC '*)
 
9010
      # Test whether the compiler implicitly links with -lc since on some
 
9011
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9012
      # to ld, don't add -lc before -lgcc.
 
9013
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9014
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
9015
      $rm conftest*
 
9016
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9017
 
 
9018
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9019
  (eval $ac_compile) 2>&5
 
9020
  ac_status=$?
 
9021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9022
  (exit $ac_status); } 2>conftest.err; then
 
9023
        soname=conftest
 
9024
        lib=conftest
 
9025
        libobjs=conftest.$ac_objext
 
9026
        deplibs=
 
9027
        wl=$lt_prog_compiler_wl
 
9028
        pic_flag=$lt_prog_compiler_pic
 
9029
        compiler_flags=-v
 
9030
        linker_flags=-v
 
9031
        verstring=
 
9032
        output_objdir=.
 
9033
        libname=conftest
 
9034
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9035
        allow_undefined_flag=
 
9036
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9037
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9038
  ac_status=$?
 
9039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9040
  (exit $ac_status); }
 
9041
        then
 
9042
          archive_cmds_need_lc=no
 
9043
        else
 
9044
          archive_cmds_need_lc=yes
 
9045
        fi
 
9046
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9047
      else
 
9048
        cat conftest.err 1>&5
 
9049
      fi
 
9050
      $rm conftest*
 
9051
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9052
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
9053
      ;;
 
9054
    esac
 
9055
  fi
 
9056
  ;;
 
9057
esac
 
9058
 
 
9059
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9060
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
9061
library_names_spec=
 
9062
libname_spec='lib$name'
 
9063
soname_spec=
 
9064
shrext_cmds=".so"
 
9065
postinstall_cmds=
 
9066
postuninstall_cmds=
 
9067
finish_cmds=
 
9068
finish_eval=
 
9069
shlibpath_var=
 
9070
shlibpath_overrides_runpath=unknown
 
9071
version_type=none
 
9072
dynamic_linker="$host_os ld.so"
 
9073
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9074
 
 
9075
if test "$GCC" = yes; then
 
9076
  case $host_os in
 
9077
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9078
    *) lt_awk_arg="/^libraries:/" ;;
 
9079
  esac
 
9080
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9081
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
9082
    # if the path contains ";" then we assume it to be the separator
 
9083
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9084
    # assumed that no part of a normal pathname contains ";" but that should
 
9085
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9086
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9087
  else
 
9088
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9089
  fi
 
9090
  # Ok, now we have the path, separated by spaces, we can step through it
 
9091
  # and add multilib dir if necessary.
 
9092
  lt_tmp_lt_search_path_spec=
 
9093
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9094
  for lt_sys_path in $lt_search_path_spec; do
 
9095
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9096
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9097
    else
 
9098
      test -d "$lt_sys_path" && \
 
9099
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9100
    fi
 
9101
  done
 
9102
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9103
BEGIN {RS=" "; FS="/|\n";} {
 
9104
  lt_foo="";
 
9105
  lt_count=0;
 
9106
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9107
    if ($lt_i != "" && $lt_i != ".") {
 
9108
      if ($lt_i == "..") {
 
9109
        lt_count++;
 
9110
      } else {
 
9111
        if (lt_count == 0) {
 
9112
          lt_foo="/" $lt_i lt_foo;
 
9113
        } else {
 
9114
          lt_count--;
 
9115
        }
 
9116
      }
 
9117
    }
 
9118
  }
 
9119
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9120
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9121
}'`
 
9122
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
9123
else
 
9124
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9125
fi
 
9126
need_lib_prefix=unknown
 
9127
hardcode_into_libs=no
 
9128
 
 
9129
# when you set need_version to no, make sure it does not cause -set_version
 
9130
# flags to be left without arguments
 
9131
need_version=unknown
 
9132
 
 
9133
case $host_os in
 
9134
aix3*)
 
9135
  version_type=linux
 
9136
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9137
  shlibpath_var=LIBPATH
 
9138
 
 
9139
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9140
  soname_spec='${libname}${release}${shared_ext}$major'
 
9141
  ;;
 
9142
 
 
9143
aix[4-9]*)
 
9144
  version_type=linux
 
9145
  need_lib_prefix=no
 
9146
  need_version=no
 
9147
  hardcode_into_libs=yes
 
9148
  if test "$host_cpu" = ia64; then
 
9149
    # AIX 5 supports IA64
 
9150
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9151
    shlibpath_var=LD_LIBRARY_PATH
 
9152
  else
 
9153
    # With GCC up to 2.95.x, collect2 would create an import file
 
9154
    # for dependence libraries.  The import file would start with
 
9155
    # the line `#! .'.  This would cause the generated library to
 
9156
    # depend on `.', always an invalid library.  This was fixed in
 
9157
    # development snapshots of GCC prior to 3.0.
 
9158
    case $host_os in
 
9159
      aix4 | aix4.[01] | aix4.[01].*)
 
9160
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9161
           echo ' yes '
 
9162
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9163
        :
 
9164
      else
 
9165
        can_build_shared=no
 
9166
      fi
 
9167
      ;;
 
9168
    esac
 
9169
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9170
    # soname into executable. Probably we can add versioning support to
 
9171
    # collect2, so additional links can be useful in future.
 
9172
    if test "$aix_use_runtimelinking" = yes; then
 
9173
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9174
      # instead of lib<name>.a to let people know that these are not
 
9175
      # typical AIX shared libraries.
 
9176
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9177
    else
 
9178
      # We preserve .a as extension for shared libraries through AIX4.2
 
9179
      # and later when we are not doing run time linking.
 
9180
      library_names_spec='${libname}${release}.a $libname.a'
 
9181
      soname_spec='${libname}${release}${shared_ext}$major'
 
9182
    fi
 
9183
    shlibpath_var=LIBPATH
 
9184
  fi
 
9185
  ;;
 
9186
 
 
9187
amigaos*)
 
9188
  library_names_spec='$libname.ixlibrary $libname.a'
 
9189
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9190
  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'
 
9191
  ;;
 
9192
 
 
9193
beos*)
 
9194
  library_names_spec='${libname}${shared_ext}'
 
9195
  dynamic_linker="$host_os ld.so"
 
9196
  shlibpath_var=LIBRARY_PATH
 
9197
  ;;
 
9198
 
 
9199
bsdi[45]*)
 
9200
  version_type=linux
 
9201
  need_version=no
 
9202
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9203
  soname_spec='${libname}${release}${shared_ext}$major'
 
9204
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9205
  shlibpath_var=LD_LIBRARY_PATH
 
9206
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9207
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9208
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9209
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9210
  # libtool to hard-code these into programs
 
9211
  ;;
 
9212
 
 
9213
cygwin* | mingw* | pw32*)
 
9214
  version_type=windows
 
9215
  shrext_cmds=".dll"
 
9216
  need_version=no
 
9217
  need_lib_prefix=no
 
9218
 
 
9219
  case $GCC,$host_os in
 
9220
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9221
    library_names_spec='$libname.dll.a'
 
9222
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9223
    postinstall_cmds='base_file=`basename \${file}`~
 
9224
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9225
      dldir=$destdir/`dirname \$dlpath`~
 
9226
      test -d \$dldir || mkdir -p \$dldir~
 
9227
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9228
      chmod a+x \$dldir/$dlname'
 
9229
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9230
      dlpath=$dir/\$dldll~
 
9231
       $rm \$dlpath'
 
9232
    shlibpath_overrides_runpath=yes
 
9233
 
 
9234
    case $host_os in
 
9235
    cygwin*)
 
9236
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9237
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9238
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9239
      ;;
 
9240
    mingw*)
 
9241
      # MinGW DLLs use traditional 'lib' prefix
 
9242
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9243
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9244
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9245
        # It is most probably a Windows format PATH printed by
 
9246
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9247
        # path with ; separators, and with drive letters. We can handle the
 
9248
        # drive letters (cygwin fileutils understands them), so leave them,
 
9249
        # especially as we might pass files found there to a mingw objdump,
 
9250
        # which wouldn't understand a cygwinified path. Ahh.
 
9251
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9252
      else
 
9253
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9254
      fi
 
9255
      ;;
 
9256
    pw32*)
 
9257
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9258
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9259
      ;;
 
9260
    esac
 
9261
    ;;
 
9262
 
 
9263
  *)
 
9264
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9265
    ;;
 
9266
  esac
 
9267
  dynamic_linker='Win32 ld.exe'
 
9268
  # FIXME: first we should search . and the directory the executable is in
 
9269
  shlibpath_var=PATH
 
9270
  ;;
 
9271
 
 
9272
darwin* | rhapsody*)
 
9273
  dynamic_linker="$host_os dyld"
 
9274
  version_type=darwin
 
9275
  need_lib_prefix=no
 
9276
  need_version=no
 
9277
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9278
  soname_spec='${libname}${release}${major}$shared_ext'
 
9279
  shlibpath_overrides_runpath=yes
 
9280
  shlibpath_var=DYLD_LIBRARY_PATH
 
9281
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9282
 
 
9283
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9284
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9285
  ;;
 
9286
 
 
9287
dgux*)
 
9288
  version_type=linux
 
9289
  need_lib_prefix=no
 
9290
  need_version=no
 
9291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9292
  soname_spec='${libname}${release}${shared_ext}$major'
 
9293
  shlibpath_var=LD_LIBRARY_PATH
 
9294
  ;;
 
9295
 
 
9296
freebsd1*)
 
9297
  dynamic_linker=no
 
9298
  ;;
 
9299
 
 
9300
freebsd* | dragonfly*)
 
9301
  # DragonFly does not have aout.  When/if they implement a new
 
9302
  # versioning mechanism, adjust this.
 
9303
  if test -x /usr/bin/objformat; then
 
9304
    objformat=`/usr/bin/objformat`
 
9305
  else
 
9306
    case $host_os in
 
9307
    freebsd[123]*) objformat=aout ;;
 
9308
    *) objformat=elf ;;
 
9309
    esac
 
9310
  fi
 
9311
  version_type=freebsd-$objformat
 
9312
  case $version_type in
 
9313
    freebsd-elf*)
 
9314
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9315
      need_version=no
 
9316
      need_lib_prefix=no
 
9317
      ;;
 
9318
    freebsd-*)
 
9319
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9320
      need_version=yes
 
9321
      ;;
 
9322
  esac
 
9323
  shlibpath_var=LD_LIBRARY_PATH
 
9324
  case $host_os in
 
9325
  freebsd2*)
 
9326
    shlibpath_overrides_runpath=yes
 
9327
    ;;
 
9328
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9329
    shlibpath_overrides_runpath=yes
 
9330
    hardcode_into_libs=yes
 
9331
    ;;
 
9332
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9333
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9334
    shlibpath_overrides_runpath=no
 
9335
    hardcode_into_libs=yes
 
9336
    ;;
 
9337
  *) # from 4.6 on, and DragonFly
 
9338
    shlibpath_overrides_runpath=yes
 
9339
    hardcode_into_libs=yes
 
9340
    ;;
 
9341
  esac
 
9342
  ;;
 
9343
 
 
9344
gnu*)
 
9345
  version_type=linux
 
9346
  need_lib_prefix=no
 
9347
  need_version=no
 
9348
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9349
  soname_spec='${libname}${release}${shared_ext}$major'
 
9350
  shlibpath_var=LD_LIBRARY_PATH
 
9351
  hardcode_into_libs=yes
 
9352
  ;;
 
9353
 
 
9354
hpux9* | hpux10* | hpux11*)
 
9355
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9356
  # link against other versions.
 
9357
  version_type=sunos
 
9358
  need_lib_prefix=no
 
9359
  need_version=no
 
9360
  case $host_cpu in
 
9361
  ia64*)
 
9362
    shrext_cmds='.so'
 
9363
    hardcode_into_libs=yes
 
9364
    dynamic_linker="$host_os dld.so"
 
9365
    shlibpath_var=LD_LIBRARY_PATH
 
9366
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9367
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9368
    soname_spec='${libname}${release}${shared_ext}$major'
 
9369
    if test "X$HPUX_IA64_MODE" = X32; then
 
9370
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9371
    else
 
9372
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9373
    fi
 
9374
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9375
    ;;
 
9376
   hppa*64*)
 
9377
     shrext_cmds='.sl'
 
9378
     hardcode_into_libs=yes
 
9379
     dynamic_linker="$host_os dld.sl"
 
9380
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9381
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9382
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9383
     soname_spec='${libname}${release}${shared_ext}$major'
 
9384
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9385
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9386
     ;;
 
9387
   *)
 
9388
    shrext_cmds='.sl'
 
9389
    dynamic_linker="$host_os dld.sl"
 
9390
    shlibpath_var=SHLIB_PATH
 
9391
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9392
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9393
    soname_spec='${libname}${release}${shared_ext}$major'
 
9394
    ;;
 
9395
  esac
 
9396
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9397
  postinstall_cmds='chmod 555 $lib'
 
9398
  ;;
 
9399
 
 
9400
interix[3-9]*)
 
9401
  version_type=linux
 
9402
  need_lib_prefix=no
 
9403
  need_version=no
 
9404
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9405
  soname_spec='${libname}${release}${shared_ext}$major'
 
9406
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9407
  shlibpath_var=LD_LIBRARY_PATH
 
9408
  shlibpath_overrides_runpath=no
 
9409
  hardcode_into_libs=yes
 
9410
  ;;
 
9411
 
 
9412
irix5* | irix6* | nonstopux*)
 
9413
  case $host_os in
 
9414
    nonstopux*) version_type=nonstopux ;;
 
9415
    *)
 
9416
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9417
                version_type=linux
 
9418
        else
 
9419
                version_type=irix
 
9420
        fi ;;
 
9421
  esac
 
9422
  need_lib_prefix=no
 
9423
  need_version=no
 
9424
  soname_spec='${libname}${release}${shared_ext}$major'
 
9425
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9426
  case $host_os in
 
9427
  irix5* | nonstopux*)
 
9428
    libsuff= shlibsuff=
 
9429
    ;;
 
9430
  *)
 
9431
    case $LD in # libtool.m4 will add one of these switches to LD
 
9432
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9433
      libsuff= shlibsuff= libmagic=32-bit;;
 
9434
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9435
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9436
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9437
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9438
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9439
    esac
 
9440
    ;;
 
9441
  esac
 
9442
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9443
  shlibpath_overrides_runpath=no
 
9444
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9445
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9446
  hardcode_into_libs=yes
 
9447
  ;;
 
9448
 
 
9449
# No shared lib support for Linux oldld, aout, or coff.
 
9450
linux*oldld* | linux*aout* | linux*coff*)
 
9451
  dynamic_linker=no
 
9452
  ;;
 
9453
 
 
9454
# This must be Linux ELF.
 
9455
linux* | k*bsd*-gnu)
 
9456
  version_type=linux
 
9457
  need_lib_prefix=no
 
9458
  need_version=no
 
9459
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9460
  soname_spec='${libname}${release}${shared_ext}$major'
 
9461
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9462
  shlibpath_var=LD_LIBRARY_PATH
 
9463
  shlibpath_overrides_runpath=no
 
9464
  # This implies no fast_install, which is unacceptable.
 
9465
  # Some rework will be needed to allow for fast_install
 
9466
  # before this can be enabled.
 
9467
  hardcode_into_libs=yes
 
9468
 
 
9469
  # Append ld.so.conf contents to the search path
 
9470
  if test -f /etc/ld.so.conf; then
 
9471
    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' ' '`
 
9472
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9473
  fi
 
9474
 
 
9475
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9476
  # powerpc, because MkLinux only supported shared libraries with the
 
9477
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9478
  # most powerpc-linux boxes support dynamic linking these days and
 
9479
  # people can always --disable-shared, the test was removed, and we
 
9480
  # assume the GNU/Linux dynamic linker is in use.
 
9481
  dynamic_linker='GNU/Linux ld.so'
 
9482
  ;;
 
9483
 
 
9484
netbsdelf*-gnu)
 
9485
  version_type=linux
 
9486
  need_lib_prefix=no
 
9487
  need_version=no
 
9488
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9489
  soname_spec='${libname}${release}${shared_ext}$major'
 
9490
  shlibpath_var=LD_LIBRARY_PATH
 
9491
  shlibpath_overrides_runpath=no
 
9492
  hardcode_into_libs=yes
 
9493
  dynamic_linker='NetBSD ld.elf_so'
 
9494
  ;;
 
9495
 
 
9496
netbsd*)
 
9497
  version_type=sunos
 
9498
  need_lib_prefix=no
 
9499
  need_version=no
 
9500
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9501
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9502
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9503
    dynamic_linker='NetBSD (a.out) ld.so'
 
9504
  else
 
9505
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9506
    soname_spec='${libname}${release}${shared_ext}$major'
 
9507
    dynamic_linker='NetBSD ld.elf_so'
 
9508
  fi
 
9509
  shlibpath_var=LD_LIBRARY_PATH
 
9510
  shlibpath_overrides_runpath=yes
 
9511
  hardcode_into_libs=yes
 
9512
  ;;
 
9513
 
 
9514
newsos6)
 
9515
  version_type=linux
 
9516
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9517
  shlibpath_var=LD_LIBRARY_PATH
 
9518
  shlibpath_overrides_runpath=yes
 
9519
  ;;
 
9520
 
 
9521
nto-qnx*)
 
9522
  version_type=linux
 
9523
  need_lib_prefix=no
 
9524
  need_version=no
 
9525
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9526
  soname_spec='${libname}${release}${shared_ext}$major'
 
9527
  shlibpath_var=LD_LIBRARY_PATH
 
9528
  shlibpath_overrides_runpath=yes
 
9529
  ;;
 
9530
 
 
9531
openbsd*)
 
9532
  version_type=sunos
 
9533
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9534
  need_lib_prefix=no
 
9535
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9536
  case $host_os in
 
9537
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9538
    *)                         need_version=no  ;;
 
9539
  esac
 
9540
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9541
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9542
  shlibpath_var=LD_LIBRARY_PATH
 
9543
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9544
    case $host_os in
 
9545
      openbsd2.[89] | openbsd2.[89].*)
 
9546
        shlibpath_overrides_runpath=no
 
9547
        ;;
 
9548
      *)
 
9549
        shlibpath_overrides_runpath=yes
 
9550
        ;;
 
9551
      esac
 
9552
  else
 
9553
    shlibpath_overrides_runpath=yes
 
9554
  fi
 
9555
  ;;
 
9556
 
 
9557
os2*)
 
9558
  libname_spec='$name'
 
9559
  shrext_cmds=".dll"
 
9560
  need_lib_prefix=no
 
9561
  library_names_spec='$libname${shared_ext} $libname.a'
 
9562
  dynamic_linker='OS/2 ld.exe'
 
9563
  shlibpath_var=LIBPATH
 
9564
  ;;
 
9565
 
 
9566
osf3* | osf4* | osf5*)
 
9567
  version_type=osf
 
9568
  need_lib_prefix=no
 
9569
  need_version=no
 
9570
  soname_spec='${libname}${release}${shared_ext}$major'
 
9571
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9572
  shlibpath_var=LD_LIBRARY_PATH
 
9573
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9574
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9575
  ;;
 
9576
 
 
9577
rdos*)
 
9578
  dynamic_linker=no
 
9579
  ;;
 
9580
 
 
9581
solaris*)
 
9582
  version_type=linux
 
9583
  need_lib_prefix=no
 
9584
  need_version=no
 
9585
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9586
  soname_spec='${libname}${release}${shared_ext}$major'
 
9587
  shlibpath_var=LD_LIBRARY_PATH
 
9588
  shlibpath_overrides_runpath=yes
 
9589
  hardcode_into_libs=yes
 
9590
  # ldd complains unless libraries are executable
 
9591
  postinstall_cmds='chmod +x $lib'
 
9592
  ;;
 
9593
 
 
9594
sunos4*)
 
9595
  version_type=sunos
 
9596
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9597
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9598
  shlibpath_var=LD_LIBRARY_PATH
 
9599
  shlibpath_overrides_runpath=yes
 
9600
  if test "$with_gnu_ld" = yes; then
 
9601
    need_lib_prefix=no
 
9602
  fi
 
9603
  need_version=yes
 
9604
  ;;
 
9605
 
 
9606
sysv4 | sysv4.3*)
 
9607
  version_type=linux
 
9608
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9609
  soname_spec='${libname}${release}${shared_ext}$major'
 
9610
  shlibpath_var=LD_LIBRARY_PATH
 
9611
  case $host_vendor in
 
9612
    sni)
 
9613
      shlibpath_overrides_runpath=no
 
9614
      need_lib_prefix=no
 
9615
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9616
      runpath_var=LD_RUN_PATH
 
9617
      ;;
 
9618
    siemens)
 
9619
      need_lib_prefix=no
 
9620
      ;;
 
9621
    motorola)
 
9622
      need_lib_prefix=no
 
9623
      need_version=no
 
9624
      shlibpath_overrides_runpath=no
 
9625
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9626
      ;;
 
9627
  esac
 
9628
  ;;
 
9629
 
 
9630
sysv4*MP*)
 
9631
  if test -d /usr/nec ;then
 
9632
    version_type=linux
 
9633
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9634
    soname_spec='$libname${shared_ext}.$major'
 
9635
    shlibpath_var=LD_LIBRARY_PATH
 
9636
  fi
 
9637
  ;;
 
9638
 
 
9639
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9640
  version_type=freebsd-elf
 
9641
  need_lib_prefix=no
 
9642
  need_version=no
 
9643
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9644
  soname_spec='${libname}${release}${shared_ext}$major'
 
9645
  shlibpath_var=LD_LIBRARY_PATH
 
9646
  hardcode_into_libs=yes
 
9647
  if test "$with_gnu_ld" = yes; then
 
9648
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9649
    shlibpath_overrides_runpath=no
 
9650
  else
 
9651
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9652
    shlibpath_overrides_runpath=yes
 
9653
    case $host_os in
 
9654
      sco3.2v5*)
 
9655
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9656
        ;;
 
9657
    esac
 
9658
  fi
 
9659
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9660
  ;;
 
9661
 
 
9662
uts4*)
 
9663
  version_type=linux
 
9664
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9665
  soname_spec='${libname}${release}${shared_ext}$major'
 
9666
  shlibpath_var=LD_LIBRARY_PATH
 
9667
  ;;
 
9668
 
 
9669
*)
 
9670
  dynamic_linker=no
 
9671
  ;;
 
9672
esac
 
9673
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9674
echo "${ECHO_T}$dynamic_linker" >&6; }
 
9675
test "$dynamic_linker" = no && can_build_shared=no
 
9676
 
 
9677
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
9678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9679
else
 
9680
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
9681
fi
 
9682
 
 
9683
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
9684
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
9685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9686
else
 
9687
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
9688
fi
 
9689
 
 
9690
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
9691
 
 
9692
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9693
if test "$GCC" = yes; then
 
9694
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9695
fi
 
9696
 
 
9697
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9698
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
9699
hardcode_action=
 
9700
if test -n "$hardcode_libdir_flag_spec" || \
 
9701
   test -n "$runpath_var" || \
 
9702
   test "X$hardcode_automatic" = "Xyes" ; then
 
9703
 
 
9704
  # We can hardcode non-existant directories.
 
9705
  if test "$hardcode_direct" != no &&
 
9706
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9707
     # have to relink, otherwise we might link with an installed library
 
9708
     # when we should be linking with a yet-to-be-installed one
 
9709
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9710
     test "$hardcode_minus_L" != no; then
 
9711
    # Linking always hardcodes the temporary library directory.
 
9712
    hardcode_action=relink
 
9713
  else
 
9714
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9715
    hardcode_action=immediate
 
9716
  fi
 
9717
else
 
9718
  # We cannot hardcode anything, or else we can only hardcode existing
 
9719
  # directories.
 
9720
  hardcode_action=unsupported
 
9721
fi
 
9722
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9723
echo "${ECHO_T}$hardcode_action" >&6; }
 
9724
 
 
9725
if test "$hardcode_action" = relink; then
 
9726
  # Fast installation is not supported
 
9727
  enable_fast_install=no
 
9728
elif test "$shlibpath_overrides_runpath" = yes ||
 
9729
     test "$enable_shared" = no; then
 
9730
  # Fast installation is not necessary
 
9731
  enable_fast_install=needless
 
9732
fi
 
9733
 
 
9734
striplib=
 
9735
old_striplib=
 
9736
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9737
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
9738
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9739
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9740
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9741
  { echo "$as_me:$LINENO: result: yes" >&5
 
9742
echo "${ECHO_T}yes" >&6; }
 
9743
else
 
9744
# FIXME - insert some real tests, host_os isn't really good enough
 
9745
  case $host_os in
 
9746
   darwin*)
 
9747
       if test -n "$STRIP" ; then
 
9748
         striplib="$STRIP -x"
 
9749
         old_striplib="$STRIP -S"
 
9750
         { echo "$as_me:$LINENO: result: yes" >&5
 
9751
echo "${ECHO_T}yes" >&6; }
 
9752
       else
 
9753
  { echo "$as_me:$LINENO: result: no" >&5
 
9754
echo "${ECHO_T}no" >&6; }
 
9755
fi
 
9756
       ;;
 
9757
   *)
 
9758
  { echo "$as_me:$LINENO: result: no" >&5
 
9759
echo "${ECHO_T}no" >&6; }
 
9760
    ;;
 
9761
  esac
 
9762
fi
 
9763
 
 
9764
if test "x$enable_dlopen" != xyes; then
 
9765
  enable_dlopen=unknown
 
9766
  enable_dlopen_self=unknown
 
9767
  enable_dlopen_self_static=unknown
 
9768
else
 
9769
  lt_cv_dlopen=no
 
9770
  lt_cv_dlopen_libs=
 
9771
 
 
9772
  case $host_os in
 
9773
  beos*)
 
9774
    lt_cv_dlopen="load_add_on"
 
9775
    lt_cv_dlopen_libs=
 
9776
    lt_cv_dlopen_self=yes
 
9777
    ;;
 
9778
 
 
9779
  mingw* | pw32*)
 
9780
    lt_cv_dlopen="LoadLibrary"
 
9781
    lt_cv_dlopen_libs=
 
9782
   ;;
 
9783
 
 
9784
  cygwin*)
 
9785
    lt_cv_dlopen="dlopen"
 
9786
    lt_cv_dlopen_libs=
 
9787
   ;;
 
9788
 
 
9789
  darwin*)
 
9790
  # if libdl is installed we need to link against it
 
9791
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9792
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9793
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9794
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9795
else
 
9796
  ac_check_lib_save_LIBS=$LIBS
 
9797
LIBS="-ldl  $LIBS"
 
9798
cat >conftest.$ac_ext <<_ACEOF
 
9799
/* confdefs.h.  */
 
9800
_ACEOF
 
9801
cat confdefs.h >>conftest.$ac_ext
 
9802
cat >>conftest.$ac_ext <<_ACEOF
 
9803
/* end confdefs.h.  */
 
9804
 
 
9805
/* Override any GCC internal prototype to avoid an error.
 
9806
   Use char because int might match the return type of a GCC
 
9807
   builtin and then its argument prototype would still apply.  */
 
9808
#ifdef __cplusplus
 
9809
extern "C"
 
9810
#endif
 
9811
char dlopen ();
 
9812
int
 
9813
main ()
 
9814
{
 
9815
return dlopen ();
 
9816
  ;
 
9817
  return 0;
 
9818
}
 
9819
_ACEOF
 
9820
rm -f conftest.$ac_objext conftest$ac_exeext
 
9821
if { (ac_try="$ac_link"
 
9822
case "(($ac_try" in
 
9823
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9824
  *) ac_try_echo=$ac_try;;
 
9825
esac
 
9826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9827
  (eval "$ac_link") 2>conftest.er1
 
9828
  ac_status=$?
 
9829
  grep -v '^ *+' conftest.er1 >conftest.err
 
9830
  rm -f conftest.er1
 
9831
  cat conftest.err >&5
 
9832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9833
  (exit $ac_status); } && {
 
9834
         test -z "$ac_c_werror_flag" ||
 
9835
         test ! -s conftest.err
 
9836
       } && test -s conftest$ac_exeext &&
 
9837
       $as_test_x conftest$ac_exeext; then
 
9838
  ac_cv_lib_dl_dlopen=yes
 
9839
else
 
9840
  echo "$as_me: failed program was:" >&5
 
9841
sed 's/^/| /' conftest.$ac_ext >&5
 
9842
 
 
9843
        ac_cv_lib_dl_dlopen=no
 
9844
fi
 
9845
 
 
9846
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9847
      conftest$ac_exeext conftest.$ac_ext
 
9848
LIBS=$ac_check_lib_save_LIBS
 
9849
fi
 
9850
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9851
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9852
if test $ac_cv_lib_dl_dlopen = yes; then
 
9853
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9854
else
 
9855
 
 
9856
    lt_cv_dlopen="dyld"
 
9857
    lt_cv_dlopen_libs=
 
9858
    lt_cv_dlopen_self=yes
 
9859
 
 
9860
fi
 
9861
 
 
9862
   ;;
 
9863
 
 
9864
  *)
 
9865
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
9866
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
9867
if test "${ac_cv_func_shl_load+set}" = set; then
 
9868
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9869
else
 
9870
  cat >conftest.$ac_ext <<_ACEOF
 
9871
/* confdefs.h.  */
 
9872
_ACEOF
 
9873
cat confdefs.h >>conftest.$ac_ext
 
9874
cat >>conftest.$ac_ext <<_ACEOF
 
9875
/* end confdefs.h.  */
 
9876
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9877
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9878
#define shl_load innocuous_shl_load
 
9879
 
 
9880
/* System header to define __stub macros and hopefully few prototypes,
 
9881
    which can conflict with char shl_load (); below.
 
9882
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9883
    <limits.h> exists even on freestanding compilers.  */
 
9884
 
 
9885
#ifdef __STDC__
 
9886
# include <limits.h>
 
9887
#else
 
9888
# include <assert.h>
 
9889
#endif
 
9890
 
 
9891
#undef shl_load
 
9892
 
 
9893
/* Override any GCC internal prototype to avoid an error.
 
9894
   Use char because int might match the return type of a GCC
 
9895
   builtin and then its argument prototype would still apply.  */
 
9896
#ifdef __cplusplus
 
9897
extern "C"
 
9898
#endif
 
9899
char shl_load ();
 
9900
/* The GNU C library defines this for functions which it implements
 
9901
    to always fail with ENOSYS.  Some functions are actually named
 
9902
    something starting with __ and the normal name is an alias.  */
 
9903
#if defined __stub_shl_load || defined __stub___shl_load
 
9904
choke me
 
9905
#endif
 
9906
 
 
9907
int
 
9908
main ()
 
9909
{
 
9910
return shl_load ();
 
9911
  ;
 
9912
  return 0;
 
9913
}
 
9914
_ACEOF
 
9915
rm -f conftest.$ac_objext conftest$ac_exeext
 
9916
if { (ac_try="$ac_link"
 
9917
case "(($ac_try" in
 
9918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9919
  *) ac_try_echo=$ac_try;;
 
9920
esac
 
9921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9922
  (eval "$ac_link") 2>conftest.er1
 
9923
  ac_status=$?
 
9924
  grep -v '^ *+' conftest.er1 >conftest.err
 
9925
  rm -f conftest.er1
 
9926
  cat conftest.err >&5
 
9927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9928
  (exit $ac_status); } && {
 
9929
         test -z "$ac_c_werror_flag" ||
 
9930
         test ! -s conftest.err
 
9931
       } && test -s conftest$ac_exeext &&
 
9932
       $as_test_x conftest$ac_exeext; then
 
9933
  ac_cv_func_shl_load=yes
 
9934
else
 
9935
  echo "$as_me: failed program was:" >&5
 
9936
sed 's/^/| /' conftest.$ac_ext >&5
 
9937
 
 
9938
        ac_cv_func_shl_load=no
 
9939
fi
 
9940
 
 
9941
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9942
      conftest$ac_exeext conftest.$ac_ext
 
9943
fi
 
9944
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9945
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
9946
if test $ac_cv_func_shl_load = yes; then
 
9947
  lt_cv_dlopen="shl_load"
 
9948
else
 
9949
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9950
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
9951
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9952
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9953
else
 
9954
  ac_check_lib_save_LIBS=$LIBS
 
9955
LIBS="-ldld  $LIBS"
 
9956
cat >conftest.$ac_ext <<_ACEOF
 
9957
/* confdefs.h.  */
 
9958
_ACEOF
 
9959
cat confdefs.h >>conftest.$ac_ext
 
9960
cat >>conftest.$ac_ext <<_ACEOF
 
9961
/* end confdefs.h.  */
 
9962
 
 
9963
/* Override any GCC internal prototype to avoid an error.
 
9964
   Use char because int might match the return type of a GCC
 
9965
   builtin and then its argument prototype would still apply.  */
 
9966
#ifdef __cplusplus
 
9967
extern "C"
 
9968
#endif
 
9969
char shl_load ();
 
9970
int
 
9971
main ()
 
9972
{
 
9973
return shl_load ();
 
9974
  ;
 
9975
  return 0;
 
9976
}
 
9977
_ACEOF
 
9978
rm -f conftest.$ac_objext conftest$ac_exeext
 
9979
if { (ac_try="$ac_link"
 
9980
case "(($ac_try" in
 
9981
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9982
  *) ac_try_echo=$ac_try;;
 
9983
esac
 
9984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9985
  (eval "$ac_link") 2>conftest.er1
 
9986
  ac_status=$?
 
9987
  grep -v '^ *+' conftest.er1 >conftest.err
 
9988
  rm -f conftest.er1
 
9989
  cat conftest.err >&5
 
9990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9991
  (exit $ac_status); } && {
 
9992
         test -z "$ac_c_werror_flag" ||
 
9993
         test ! -s conftest.err
 
9994
       } && test -s conftest$ac_exeext &&
 
9995
       $as_test_x conftest$ac_exeext; then
 
9996
  ac_cv_lib_dld_shl_load=yes
 
9997
else
 
9998
  echo "$as_me: failed program was:" >&5
 
9999
sed 's/^/| /' conftest.$ac_ext >&5
 
10000
 
 
10001
        ac_cv_lib_dld_shl_load=no
 
10002
fi
 
10003
 
 
10004
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10005
      conftest$ac_exeext conftest.$ac_ext
 
10006
LIBS=$ac_check_lib_save_LIBS
 
10007
fi
 
10008
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10009
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
10010
if test $ac_cv_lib_dld_shl_load = yes; then
 
10011
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10012
else
 
10013
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
10014
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
10015
if test "${ac_cv_func_dlopen+set}" = set; then
 
10016
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10017
else
 
10018
  cat >conftest.$ac_ext <<_ACEOF
 
10019
/* confdefs.h.  */
 
10020
_ACEOF
 
10021
cat confdefs.h >>conftest.$ac_ext
 
10022
cat >>conftest.$ac_ext <<_ACEOF
 
10023
/* end confdefs.h.  */
 
10024
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10025
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10026
#define dlopen innocuous_dlopen
 
10027
 
 
10028
/* System header to define __stub macros and hopefully few prototypes,
 
10029
    which can conflict with char dlopen (); below.
 
10030
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10031
    <limits.h> exists even on freestanding compilers.  */
 
10032
 
 
10033
#ifdef __STDC__
 
10034
# include <limits.h>
 
10035
#else
 
10036
# include <assert.h>
 
10037
#endif
 
10038
 
 
10039
#undef dlopen
 
10040
 
 
10041
/* Override any GCC internal prototype to avoid an error.
 
10042
   Use char because int might match the return type of a GCC
 
10043
   builtin and then its argument prototype would still apply.  */
 
10044
#ifdef __cplusplus
 
10045
extern "C"
 
10046
#endif
 
10047
char dlopen ();
 
10048
/* The GNU C library defines this for functions which it implements
 
10049
    to always fail with ENOSYS.  Some functions are actually named
 
10050
    something starting with __ and the normal name is an alias.  */
 
10051
#if defined __stub_dlopen || defined __stub___dlopen
 
10052
choke me
 
10053
#endif
 
10054
 
 
10055
int
 
10056
main ()
 
10057
{
 
10058
return dlopen ();
 
10059
  ;
 
10060
  return 0;
 
10061
}
 
10062
_ACEOF
 
10063
rm -f conftest.$ac_objext conftest$ac_exeext
 
10064
if { (ac_try="$ac_link"
 
10065
case "(($ac_try" in
 
10066
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10067
  *) ac_try_echo=$ac_try;;
 
10068
esac
 
10069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10070
  (eval "$ac_link") 2>conftest.er1
 
10071
  ac_status=$?
 
10072
  grep -v '^ *+' conftest.er1 >conftest.err
 
10073
  rm -f conftest.er1
 
10074
  cat conftest.err >&5
 
10075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10076
  (exit $ac_status); } && {
 
10077
         test -z "$ac_c_werror_flag" ||
 
10078
         test ! -s conftest.err
 
10079
       } && test -s conftest$ac_exeext &&
 
10080
       $as_test_x conftest$ac_exeext; then
 
10081
  ac_cv_func_dlopen=yes
 
10082
else
 
10083
  echo "$as_me: failed program was:" >&5
 
10084
sed 's/^/| /' conftest.$ac_ext >&5
 
10085
 
 
10086
        ac_cv_func_dlopen=no
 
10087
fi
 
10088
 
 
10089
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10090
      conftest$ac_exeext conftest.$ac_ext
 
10091
fi
 
10092
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10093
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
10094
if test $ac_cv_func_dlopen = yes; then
 
10095
  lt_cv_dlopen="dlopen"
 
10096
else
 
10097
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10098
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
10099
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10100
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10101
else
 
10102
  ac_check_lib_save_LIBS=$LIBS
 
10103
LIBS="-ldl  $LIBS"
 
10104
cat >conftest.$ac_ext <<_ACEOF
 
10105
/* confdefs.h.  */
 
10106
_ACEOF
 
10107
cat confdefs.h >>conftest.$ac_ext
 
10108
cat >>conftest.$ac_ext <<_ACEOF
 
10109
/* end confdefs.h.  */
 
10110
 
 
10111
/* Override any GCC internal prototype to avoid an error.
 
10112
   Use char because int might match the return type of a GCC
 
10113
   builtin and then its argument prototype would still apply.  */
 
10114
#ifdef __cplusplus
 
10115
extern "C"
 
10116
#endif
 
10117
char dlopen ();
 
10118
int
 
10119
main ()
 
10120
{
 
10121
return dlopen ();
 
10122
  ;
 
10123
  return 0;
 
10124
}
 
10125
_ACEOF
 
10126
rm -f conftest.$ac_objext conftest$ac_exeext
 
10127
if { (ac_try="$ac_link"
 
10128
case "(($ac_try" in
 
10129
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10130
  *) ac_try_echo=$ac_try;;
 
10131
esac
 
10132
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10133
  (eval "$ac_link") 2>conftest.er1
 
10134
  ac_status=$?
 
10135
  grep -v '^ *+' conftest.er1 >conftest.err
 
10136
  rm -f conftest.er1
 
10137
  cat conftest.err >&5
 
10138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10139
  (exit $ac_status); } && {
 
10140
         test -z "$ac_c_werror_flag" ||
 
10141
         test ! -s conftest.err
 
10142
       } && test -s conftest$ac_exeext &&
 
10143
       $as_test_x conftest$ac_exeext; then
 
10144
  ac_cv_lib_dl_dlopen=yes
 
10145
else
 
10146
  echo "$as_me: failed program was:" >&5
 
10147
sed 's/^/| /' conftest.$ac_ext >&5
 
10148
 
 
10149
        ac_cv_lib_dl_dlopen=no
 
10150
fi
 
10151
 
 
10152
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10153
      conftest$ac_exeext conftest.$ac_ext
 
10154
LIBS=$ac_check_lib_save_LIBS
 
10155
fi
 
10156
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10157
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
10158
if test $ac_cv_lib_dl_dlopen = yes; then
 
10159
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10160
else
 
10161
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10162
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
10163
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10164
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10165
else
 
10166
  ac_check_lib_save_LIBS=$LIBS
 
10167
LIBS="-lsvld  $LIBS"
 
10168
cat >conftest.$ac_ext <<_ACEOF
 
10169
/* confdefs.h.  */
 
10170
_ACEOF
 
10171
cat confdefs.h >>conftest.$ac_ext
 
10172
cat >>conftest.$ac_ext <<_ACEOF
 
10173
/* end confdefs.h.  */
 
10174
 
 
10175
/* Override any GCC internal prototype to avoid an error.
 
10176
   Use char because int might match the return type of a GCC
 
10177
   builtin and then its argument prototype would still apply.  */
 
10178
#ifdef __cplusplus
 
10179
extern "C"
 
10180
#endif
 
10181
char dlopen ();
 
10182
int
 
10183
main ()
 
10184
{
 
10185
return dlopen ();
 
10186
  ;
 
10187
  return 0;
 
10188
}
 
10189
_ACEOF
 
10190
rm -f conftest.$ac_objext conftest$ac_exeext
 
10191
if { (ac_try="$ac_link"
 
10192
case "(($ac_try" in
 
10193
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10194
  *) ac_try_echo=$ac_try;;
 
10195
esac
 
10196
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10197
  (eval "$ac_link") 2>conftest.er1
 
10198
  ac_status=$?
 
10199
  grep -v '^ *+' conftest.er1 >conftest.err
 
10200
  rm -f conftest.er1
 
10201
  cat conftest.err >&5
 
10202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10203
  (exit $ac_status); } && {
 
10204
         test -z "$ac_c_werror_flag" ||
 
10205
         test ! -s conftest.err
 
10206
       } && test -s conftest$ac_exeext &&
 
10207
       $as_test_x conftest$ac_exeext; then
 
10208
  ac_cv_lib_svld_dlopen=yes
 
10209
else
 
10210
  echo "$as_me: failed program was:" >&5
 
10211
sed 's/^/| /' conftest.$ac_ext >&5
 
10212
 
 
10213
        ac_cv_lib_svld_dlopen=no
 
10214
fi
 
10215
 
 
10216
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10217
      conftest$ac_exeext conftest.$ac_ext
 
10218
LIBS=$ac_check_lib_save_LIBS
 
10219
fi
 
10220
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10221
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
10222
if test $ac_cv_lib_svld_dlopen = yes; then
 
10223
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10224
else
 
10225
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10226
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
10227
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10229
else
 
10230
  ac_check_lib_save_LIBS=$LIBS
 
10231
LIBS="-ldld  $LIBS"
 
10232
cat >conftest.$ac_ext <<_ACEOF
 
10233
/* confdefs.h.  */
 
10234
_ACEOF
 
10235
cat confdefs.h >>conftest.$ac_ext
 
10236
cat >>conftest.$ac_ext <<_ACEOF
 
10237
/* end confdefs.h.  */
 
10238
 
 
10239
/* Override any GCC internal prototype to avoid an error.
 
10240
   Use char because int might match the return type of a GCC
 
10241
   builtin and then its argument prototype would still apply.  */
 
10242
#ifdef __cplusplus
 
10243
extern "C"
 
10244
#endif
 
10245
char dld_link ();
 
10246
int
 
10247
main ()
 
10248
{
 
10249
return dld_link ();
 
10250
  ;
 
10251
  return 0;
 
10252
}
 
10253
_ACEOF
 
10254
rm -f conftest.$ac_objext conftest$ac_exeext
 
10255
if { (ac_try="$ac_link"
 
10256
case "(($ac_try" in
 
10257
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10258
  *) ac_try_echo=$ac_try;;
 
10259
esac
 
10260
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10261
  (eval "$ac_link") 2>conftest.er1
 
10262
  ac_status=$?
 
10263
  grep -v '^ *+' conftest.er1 >conftest.err
 
10264
  rm -f conftest.er1
 
10265
  cat conftest.err >&5
 
10266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10267
  (exit $ac_status); } && {
 
10268
         test -z "$ac_c_werror_flag" ||
 
10269
         test ! -s conftest.err
 
10270
       } && test -s conftest$ac_exeext &&
 
10271
       $as_test_x conftest$ac_exeext; then
 
10272
  ac_cv_lib_dld_dld_link=yes
 
10273
else
 
10274
  echo "$as_me: failed program was:" >&5
 
10275
sed 's/^/| /' conftest.$ac_ext >&5
 
10276
 
 
10277
        ac_cv_lib_dld_dld_link=no
 
10278
fi
 
10279
 
 
10280
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10281
      conftest$ac_exeext conftest.$ac_ext
 
10282
LIBS=$ac_check_lib_save_LIBS
 
10283
fi
 
10284
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10285
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
10286
if test $ac_cv_lib_dld_dld_link = yes; then
 
10287
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10288
fi
 
10289
 
 
10290
 
 
10291
fi
 
10292
 
 
10293
 
 
10294
fi
 
10295
 
 
10296
 
 
10297
fi
 
10298
 
 
10299
 
 
10300
fi
 
10301
 
 
10302
 
 
10303
fi
 
10304
 
 
10305
    ;;
 
10306
  esac
 
10307
 
 
10308
  if test "x$lt_cv_dlopen" != xno; then
 
10309
    enable_dlopen=yes
 
10310
  else
 
10311
    enable_dlopen=no
 
10312
  fi
 
10313
 
 
10314
  case $lt_cv_dlopen in
 
10315
  dlopen)
 
10316
    save_CPPFLAGS="$CPPFLAGS"
 
10317
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10318
 
 
10319
    save_LDFLAGS="$LDFLAGS"
 
10320
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10321
 
 
10322
    save_LIBS="$LIBS"
 
10323
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10324
 
 
10325
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10326
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
10327
if test "${lt_cv_dlopen_self+set}" = set; then
 
10328
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10329
else
 
10330
          if test "$cross_compiling" = yes; then :
 
10331
  lt_cv_dlopen_self=cross
 
10332
else
 
10333
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10334
  lt_status=$lt_dlunknown
 
10335
  cat > conftest.$ac_ext <<EOF
 
10336
#line 10336 "configure"
 
10337
#include "confdefs.h"
 
10338
 
 
10339
#if HAVE_DLFCN_H
 
10340
#include <dlfcn.h>
 
10341
#endif
 
10342
 
 
10343
#include <stdio.h>
 
10344
 
 
10345
#ifdef RTLD_GLOBAL
 
10346
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10347
#else
 
10348
#  ifdef DL_GLOBAL
 
10349
#    define LT_DLGLOBAL         DL_GLOBAL
 
10350
#  else
 
10351
#    define LT_DLGLOBAL         0
 
10352
#  endif
 
10353
#endif
 
10354
 
 
10355
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10356
   find out it does not work in some platform. */
 
10357
#ifndef LT_DLLAZY_OR_NOW
 
10358
#  ifdef RTLD_LAZY
 
10359
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10360
#  else
 
10361
#    ifdef DL_LAZY
 
10362
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10363
#    else
 
10364
#      ifdef RTLD_NOW
 
10365
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10366
#      else
 
10367
#        ifdef DL_NOW
 
10368
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10369
#        else
 
10370
#          define LT_DLLAZY_OR_NOW      0
 
10371
#        endif
 
10372
#      endif
 
10373
#    endif
 
10374
#  endif
 
10375
#endif
 
10376
 
 
10377
#ifdef __cplusplus
 
10378
extern "C" void exit (int);
 
10379
#endif
 
10380
 
 
10381
void fnord() { int i=42;}
 
10382
int main ()
 
10383
{
 
10384
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10385
  int status = $lt_dlunknown;
 
10386
 
 
10387
  if (self)
 
10388
    {
 
10389
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10390
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10391
      /* dlclose (self); */
 
10392
    }
 
10393
  else
 
10394
    puts (dlerror ());
 
10395
 
 
10396
    exit (status);
 
10397
}
 
10398
EOF
 
10399
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10400
  (eval $ac_link) 2>&5
 
10401
  ac_status=$?
 
10402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10403
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10404
    (./conftest; exit; ) >&5 2>/dev/null
 
10405
    lt_status=$?
 
10406
    case x$lt_status in
 
10407
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10408
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10409
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10410
    esac
 
10411
  else :
 
10412
    # compilation failed
 
10413
    lt_cv_dlopen_self=no
 
10414
  fi
 
10415
fi
 
10416
rm -fr conftest*
 
10417
 
 
10418
 
 
10419
fi
 
10420
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10421
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
10422
 
 
10423
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10424
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10425
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10426
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
10427
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10428
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10429
else
 
10430
          if test "$cross_compiling" = yes; then :
 
10431
  lt_cv_dlopen_self_static=cross
 
10432
else
 
10433
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10434
  lt_status=$lt_dlunknown
 
10435
  cat > conftest.$ac_ext <<EOF
 
10436
#line 10436 "configure"
 
10437
#include "confdefs.h"
 
10438
 
 
10439
#if HAVE_DLFCN_H
 
10440
#include <dlfcn.h>
 
10441
#endif
 
10442
 
 
10443
#include <stdio.h>
 
10444
 
 
10445
#ifdef RTLD_GLOBAL
 
10446
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10447
#else
 
10448
#  ifdef DL_GLOBAL
 
10449
#    define LT_DLGLOBAL         DL_GLOBAL
 
10450
#  else
 
10451
#    define LT_DLGLOBAL         0
 
10452
#  endif
 
10453
#endif
 
10454
 
 
10455
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10456
   find out it does not work in some platform. */
 
10457
#ifndef LT_DLLAZY_OR_NOW
 
10458
#  ifdef RTLD_LAZY
 
10459
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10460
#  else
 
10461
#    ifdef DL_LAZY
 
10462
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10463
#    else
 
10464
#      ifdef RTLD_NOW
 
10465
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10466
#      else
 
10467
#        ifdef DL_NOW
 
10468
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10469
#        else
 
10470
#          define LT_DLLAZY_OR_NOW      0
 
10471
#        endif
 
10472
#      endif
 
10473
#    endif
 
10474
#  endif
 
10475
#endif
 
10476
 
 
10477
#ifdef __cplusplus
 
10478
extern "C" void exit (int);
 
10479
#endif
 
10480
 
 
10481
void fnord() { int i=42;}
 
10482
int main ()
 
10483
{
 
10484
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10485
  int status = $lt_dlunknown;
 
10486
 
 
10487
  if (self)
 
10488
    {
 
10489
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10490
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10491
      /* dlclose (self); */
 
10492
    }
 
10493
  else
 
10494
    puts (dlerror ());
 
10495
 
 
10496
    exit (status);
 
10497
}
 
10498
EOF
 
10499
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10500
  (eval $ac_link) 2>&5
 
10501
  ac_status=$?
 
10502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10503
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10504
    (./conftest; exit; ) >&5 2>/dev/null
 
10505
    lt_status=$?
 
10506
    case x$lt_status in
 
10507
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10508
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10509
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10510
    esac
 
10511
  else :
 
10512
    # compilation failed
 
10513
    lt_cv_dlopen_self_static=no
 
10514
  fi
 
10515
fi
 
10516
rm -fr conftest*
 
10517
 
 
10518
 
 
10519
fi
 
10520
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10521
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
10522
    fi
 
10523
 
 
10524
    CPPFLAGS="$save_CPPFLAGS"
 
10525
    LDFLAGS="$save_LDFLAGS"
 
10526
    LIBS="$save_LIBS"
 
10527
    ;;
 
10528
  esac
 
10529
 
 
10530
  case $lt_cv_dlopen_self in
 
10531
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10532
  *) enable_dlopen_self=unknown ;;
 
10533
  esac
 
10534
 
 
10535
  case $lt_cv_dlopen_self_static in
 
10536
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10537
  *) enable_dlopen_self_static=unknown ;;
 
10538
  esac
 
10539
fi
 
10540
 
 
10541
 
 
10542
# Report which library types will actually be built
 
10543
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10544
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10545
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10546
echo "${ECHO_T}$can_build_shared" >&6; }
 
10547
 
 
10548
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10549
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
10550
test "$can_build_shared" = "no" && enable_shared=no
 
10551
 
 
10552
# On AIX, shared libraries and static libraries use the same namespace, and
 
10553
# are all built from PIC.
 
10554
case $host_os in
 
10555
aix3*)
 
10556
  test "$enable_shared" = yes && enable_static=no
 
10557
  if test -n "$RANLIB"; then
 
10558
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10559
    postinstall_cmds='$RANLIB $lib'
 
10560
  fi
 
10561
  ;;
 
10562
 
 
10563
aix[4-9]*)
 
10564
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10565
    test "$enable_shared" = yes && enable_static=no
 
10566
  fi
 
10567
    ;;
 
10568
esac
 
10569
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10570
echo "${ECHO_T}$enable_shared" >&6; }
 
10571
 
 
10572
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10573
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
10574
# Make sure either enable_shared or enable_static is yes.
 
10575
test "$enable_shared" = yes || enable_static=yes
 
10576
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10577
echo "${ECHO_T}$enable_static" >&6; }
 
10578
 
 
10579
# The else clause should only fire when bootstrapping the
 
10580
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10581
# with your package, and you will get complaints that there are
 
10582
# no rules to generate ltmain.sh.
 
10583
if test -f "$ltmain"; then
 
10584
  # See if we are running on zsh, and set the options which allow our commands through
 
10585
  # without removal of \ escapes.
 
10586
  if test -n "${ZSH_VERSION+set}" ; then
 
10587
    setopt NO_GLOB_SUBST
 
10588
  fi
 
10589
  # Now quote all the things that may contain metacharacters while being
 
10590
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10591
  # variables and quote the copies for generation of the libtool script.
 
10592
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10593
    SED SHELL STRIP \
 
10594
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10595
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10596
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10597
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10598
    lt_cv_sys_global_symbol_to_c_name_address \
 
10599
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10600
    old_postinstall_cmds old_postuninstall_cmds \
 
10601
    compiler \
 
10602
    CC \
 
10603
    LD \
 
10604
    lt_prog_compiler_wl \
 
10605
    lt_prog_compiler_pic \
 
10606
    lt_prog_compiler_static \
 
10607
    lt_prog_compiler_no_builtin_flag \
 
10608
    export_dynamic_flag_spec \
 
10609
    thread_safe_flag_spec \
 
10610
    whole_archive_flag_spec \
 
10611
    enable_shared_with_static_runtimes \
 
10612
    old_archive_cmds \
 
10613
    old_archive_from_new_cmds \
 
10614
    predep_objects \
 
10615
    postdep_objects \
 
10616
    predeps \
 
10617
    postdeps \
 
10618
    compiler_lib_search_path \
 
10619
    compiler_lib_search_dirs \
 
10620
    archive_cmds \
 
10621
    archive_expsym_cmds \
 
10622
    postinstall_cmds \
 
10623
    postuninstall_cmds \
 
10624
    old_archive_from_expsyms_cmds \
 
10625
    allow_undefined_flag \
 
10626
    no_undefined_flag \
 
10627
    export_symbols_cmds \
 
10628
    hardcode_libdir_flag_spec \
 
10629
    hardcode_libdir_flag_spec_ld \
 
10630
    hardcode_libdir_separator \
 
10631
    hardcode_automatic \
 
10632
    module_cmds \
 
10633
    module_expsym_cmds \
 
10634
    lt_cv_prog_compiler_c_o \
 
10635
    fix_srcfile_path \
 
10636
    exclude_expsyms \
 
10637
    include_expsyms; do
 
10638
 
 
10639
    case $var in
 
10640
    old_archive_cmds | \
 
10641
    old_archive_from_new_cmds | \
 
10642
    archive_cmds | \
 
10643
    archive_expsym_cmds | \
 
10644
    module_cmds | \
 
10645
    module_expsym_cmds | \
 
10646
    old_archive_from_expsyms_cmds | \
 
10647
    export_symbols_cmds | \
 
10648
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10649
    postinstall_cmds | postuninstall_cmds | \
 
10650
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10651
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10652
      # Double-quote double-evaled strings.
 
10653
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10654
      ;;
 
10655
    *)
 
10656
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10657
      ;;
 
10658
    esac
 
10659
  done
 
10660
 
 
10661
  case $lt_echo in
 
10662
  *'\$0 --fallback-echo"')
 
10663
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10664
    ;;
 
10665
  esac
 
10666
 
 
10667
cfgfile="${ofile}T"
 
10668
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10669
  $rm -f "$cfgfile"
 
10670
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10671
echo "$as_me: creating $ofile" >&6;}
 
10672
 
 
10673
  cat <<__EOF__ >> "$cfgfile"
 
10674
#! $SHELL
 
10675
 
 
10676
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10677
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10678
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10679
#
 
10680
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
10681
# Free Software Foundation, Inc.
 
10682
#
 
10683
# This file is part of GNU Libtool:
 
10684
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10685
#
 
10686
# This program is free software; you can redistribute it and/or modify
 
10687
# it under the terms of the GNU General Public License as published by
 
10688
# the Free Software Foundation; either version 2 of the License, or
 
10689
# (at your option) any later version.
 
10690
#
 
10691
# This program is distributed in the hope that it will be useful, but
 
10692
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10693
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10694
# General Public License for more details.
 
10695
#
 
10696
# You should have received a copy of the GNU General Public License
 
10697
# along with this program; if not, write to the Free Software
 
10698
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10699
#
 
10700
# As a special exception to the GNU General Public License, if you
 
10701
# distribute this file as part of a program that contains a
 
10702
# configuration script generated by Autoconf, you may include it under
 
10703
# the same distribution terms that you use for the rest of that program.
 
10704
 
 
10705
# A sed program that does not truncate output.
 
10706
SED=$lt_SED
 
10707
 
 
10708
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10709
Xsed="$SED -e 1s/^X//"
 
10710
 
 
10711
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10712
# if CDPATH is set.
 
10713
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10714
 
 
10715
# The names of the tagged configurations supported by this script.
 
10716
available_tags=
 
10717
 
 
10718
# ### BEGIN LIBTOOL CONFIG
 
10719
 
 
10720
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10721
 
 
10722
# Shell to use when invoking shell scripts.
 
10723
SHELL=$lt_SHELL
 
10724
 
 
10725
# Whether or not to build shared libraries.
 
10726
build_libtool_libs=$enable_shared
 
10727
 
 
10728
# Whether or not to build static libraries.
 
10729
build_old_libs=$enable_static
 
10730
 
 
10731
# Whether or not to add -lc for building shared libraries.
 
10732
build_libtool_need_lc=$archive_cmds_need_lc
 
10733
 
 
10734
# Whether or not to disallow shared libs when runtime libs are static
 
10735
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10736
 
 
10737
# Whether or not to optimize for fast installation.
 
10738
fast_install=$enable_fast_install
 
10739
 
 
10740
# The host system.
 
10741
host_alias=$host_alias
 
10742
host=$host
 
10743
host_os=$host_os
 
10744
 
 
10745
# The build system.
 
10746
build_alias=$build_alias
 
10747
build=$build
 
10748
build_os=$build_os
 
10749
 
 
10750
# An echo program that does not interpret backslashes.
 
10751
echo=$lt_echo
 
10752
 
 
10753
# The archiver.
 
10754
AR=$lt_AR
 
10755
AR_FLAGS=$lt_AR_FLAGS
 
10756
 
 
10757
# A C compiler.
 
10758
LTCC=$lt_LTCC
 
10759
 
 
10760
# LTCC compiler flags.
 
10761
LTCFLAGS=$lt_LTCFLAGS
 
10762
 
 
10763
# A language-specific compiler.
 
10764
CC=$lt_compiler
 
10765
 
 
10766
# Is the compiler the GNU C compiler?
 
10767
with_gcc=$GCC
 
10768
 
 
10769
# An ERE matcher.
 
10770
EGREP=$lt_EGREP
 
10771
 
 
10772
# The linker used to build libraries.
 
10773
LD=$lt_LD
 
10774
 
 
10775
# Whether we need hard or soft links.
 
10776
LN_S=$lt_LN_S
 
10777
 
 
10778
# A BSD-compatible nm program.
 
10779
NM=$lt_NM
 
10780
 
 
10781
# A symbol stripping program
 
10782
STRIP=$lt_STRIP
 
10783
 
 
10784
# Used to examine libraries when file_magic_cmd begins "file"
 
10785
MAGIC_CMD=$MAGIC_CMD
 
10786
 
 
10787
# Used on cygwin: DLL creation program.
 
10788
DLLTOOL="$DLLTOOL"
 
10789
 
 
10790
# Used on cygwin: object dumper.
 
10791
OBJDUMP="$OBJDUMP"
 
10792
 
 
10793
# Used on cygwin: assembler.
 
10794
AS="$AS"
 
10795
 
 
10796
# The name of the directory that contains temporary libtool files.
 
10797
objdir=$objdir
 
10798
 
 
10799
# How to create reloadable object files.
 
10800
reload_flag=$lt_reload_flag
 
10801
reload_cmds=$lt_reload_cmds
 
10802
 
 
10803
# How to pass a linker flag through the compiler.
 
10804
wl=$lt_lt_prog_compiler_wl
 
10805
 
 
10806
# Object file suffix (normally "o").
 
10807
objext="$ac_objext"
 
10808
 
 
10809
# Old archive suffix (normally "a").
 
10810
libext="$libext"
 
10811
 
 
10812
# Shared library suffix (normally ".so").
 
10813
shrext_cmds='$shrext_cmds'
 
10814
 
 
10815
# Executable file suffix (normally "").
 
10816
exeext="$exeext"
 
10817
 
 
10818
# Additional compiler flags for building library objects.
 
10819
pic_flag=$lt_lt_prog_compiler_pic
 
10820
pic_mode=$pic_mode
 
10821
 
 
10822
# What is the maximum length of a command?
 
10823
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10824
 
 
10825
# Does compiler simultaneously support -c and -o options?
 
10826
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10827
 
 
10828
# Must we lock files when doing compilation?
 
10829
need_locks=$lt_need_locks
 
10830
 
 
10831
# Do we need the lib prefix for modules?
 
10832
need_lib_prefix=$need_lib_prefix
 
10833
 
 
10834
# Do we need a version for libraries?
 
10835
need_version=$need_version
 
10836
 
 
10837
# Whether dlopen is supported.
 
10838
dlopen_support=$enable_dlopen
 
10839
 
 
10840
# Whether dlopen of programs is supported.
 
10841
dlopen_self=$enable_dlopen_self
 
10842
 
 
10843
# Whether dlopen of statically linked programs is supported.
 
10844
dlopen_self_static=$enable_dlopen_self_static
 
10845
 
 
10846
# Compiler flag to prevent dynamic linking.
 
10847
link_static_flag=$lt_lt_prog_compiler_static
 
10848
 
 
10849
# Compiler flag to turn off builtin functions.
 
10850
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10851
 
 
10852
# Compiler flag to allow reflexive dlopens.
 
10853
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10854
 
 
10855
# Compiler flag to generate shared objects directly from archives.
 
10856
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10857
 
 
10858
# Compiler flag to generate thread-safe objects.
 
10859
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10860
 
 
10861
# Library versioning type.
 
10862
version_type=$version_type
 
10863
 
 
10864
# Format of library name prefix.
 
10865
libname_spec=$lt_libname_spec
 
10866
 
 
10867
# List of archive names.  First name is the real one, the rest are links.
 
10868
# The last name is the one that the linker finds with -lNAME.
 
10869
library_names_spec=$lt_library_names_spec
 
10870
 
 
10871
# The coded name of the library, if different from the real name.
 
10872
soname_spec=$lt_soname_spec
 
10873
 
 
10874
# Commands used to build and install an old-style archive.
 
10875
RANLIB=$lt_RANLIB
 
10876
old_archive_cmds=$lt_old_archive_cmds
 
10877
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10878
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10879
 
 
10880
# Create an old-style archive from a shared archive.
 
10881
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10882
 
 
10883
# Create a temporary old-style archive to link instead of a shared archive.
 
10884
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10885
 
 
10886
# Commands used to build and install a shared archive.
 
10887
archive_cmds=$lt_archive_cmds
 
10888
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10889
postinstall_cmds=$lt_postinstall_cmds
 
10890
postuninstall_cmds=$lt_postuninstall_cmds
 
10891
 
 
10892
# Commands used to build a loadable module (assumed same as above if empty)
 
10893
module_cmds=$lt_module_cmds
 
10894
module_expsym_cmds=$lt_module_expsym_cmds
 
10895
 
 
10896
# Commands to strip libraries.
 
10897
old_striplib=$lt_old_striplib
 
10898
striplib=$lt_striplib
 
10899
 
 
10900
# Dependencies to place before the objects being linked to create a
 
10901
# shared library.
 
10902
predep_objects=$lt_predep_objects
 
10903
 
 
10904
# Dependencies to place after the objects being linked to create a
 
10905
# shared library.
 
10906
postdep_objects=$lt_postdep_objects
 
10907
 
 
10908
# Dependencies to place before the objects being linked to create a
 
10909
# shared library.
 
10910
predeps=$lt_predeps
 
10911
 
 
10912
# Dependencies to place after the objects being linked to create a
 
10913
# shared library.
 
10914
postdeps=$lt_postdeps
 
10915
 
 
10916
# The directories searched by this compiler when creating a shared
 
10917
# library
 
10918
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
10919
 
 
10920
# The library search path used internally by the compiler when linking
 
10921
# a shared library.
 
10922
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10923
 
 
10924
# Method to check whether dependent libraries are shared objects.
 
10925
deplibs_check_method=$lt_deplibs_check_method
 
10926
 
 
10927
# Command to use when deplibs_check_method == file_magic.
 
10928
file_magic_cmd=$lt_file_magic_cmd
 
10929
 
 
10930
# Flag that allows shared libraries with undefined symbols to be built.
 
10931
allow_undefined_flag=$lt_allow_undefined_flag
 
10932
 
 
10933
# Flag that forces no undefined symbols.
 
10934
no_undefined_flag=$lt_no_undefined_flag
 
10935
 
 
10936
# Commands used to finish a libtool library installation in a directory.
 
10937
finish_cmds=$lt_finish_cmds
 
10938
 
 
10939
# Same as above, but a single script fragment to be evaled but not shown.
 
10940
finish_eval=$lt_finish_eval
 
10941
 
 
10942
# Take the output of nm and produce a listing of raw symbols and C names.
 
10943
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10944
 
 
10945
# Transform the output of nm in a proper C declaration
 
10946
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10947
 
 
10948
# Transform the output of nm in a C name address pair
 
10949
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10950
 
 
10951
# This is the shared library runtime path variable.
 
10952
runpath_var=$runpath_var
 
10953
 
 
10954
# This is the shared library path variable.
 
10955
shlibpath_var=$shlibpath_var
 
10956
 
 
10957
# Is shlibpath searched before the hard-coded library search path?
 
10958
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10959
 
 
10960
# How to hardcode a shared library path into an executable.
 
10961
hardcode_action=$hardcode_action
 
10962
 
 
10963
# Whether we should hardcode library paths into libraries.
 
10964
hardcode_into_libs=$hardcode_into_libs
 
10965
 
 
10966
# Flag to hardcode \$libdir into a binary during linking.
 
10967
# This must work even if \$libdir does not exist.
 
10968
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10969
 
 
10970
# If ld is used when linking, flag to hardcode \$libdir into
 
10971
# a binary during linking. This must work even if \$libdir does
 
10972
# not exist.
 
10973
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10974
 
 
10975
# Whether we need a single -rpath flag with a separated argument.
 
10976
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10977
 
 
10978
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10979
# resulting binary.
 
10980
hardcode_direct=$hardcode_direct
 
10981
 
 
10982
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10983
# resulting binary.
 
10984
hardcode_minus_L=$hardcode_minus_L
 
10985
 
 
10986
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10987
# the resulting binary.
 
10988
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10989
 
 
10990
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10991
# and all subsequent libraries and executables linked against it.
 
10992
hardcode_automatic=$hardcode_automatic
 
10993
 
 
10994
# Variables whose values should be saved in libtool wrapper scripts and
 
10995
# restored at relink time.
 
10996
variables_saved_for_relink="$variables_saved_for_relink"
 
10997
 
 
10998
# Whether libtool must link a program against all its dependency libraries.
 
10999
link_all_deplibs=$link_all_deplibs
 
11000
 
 
11001
# Compile-time system search path for libraries
 
11002
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11003
 
 
11004
# Run-time system search path for libraries
 
11005
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11006
 
 
11007
# Fix the shell variable \$srcfile for the compiler.
 
11008
fix_srcfile_path=$lt_fix_srcfile_path
 
11009
 
 
11010
# Set to yes if exported symbols are required.
 
11011
always_export_symbols=$always_export_symbols
 
11012
 
 
11013
# The commands to list exported symbols.
 
11014
export_symbols_cmds=$lt_export_symbols_cmds
 
11015
 
 
11016
# The commands to extract the exported symbol list from a shared archive.
 
11017
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11018
 
 
11019
# Symbols that should not be listed in the preloaded symbols.
 
11020
exclude_expsyms=$lt_exclude_expsyms
 
11021
 
 
11022
# Symbols that must always be exported.
 
11023
include_expsyms=$lt_include_expsyms
 
11024
 
 
11025
# ### END LIBTOOL CONFIG
 
11026
 
 
11027
__EOF__
 
11028
 
 
11029
 
 
11030
  case $host_os in
 
11031
  aix3*)
 
11032
    cat <<\EOF >> "$cfgfile"
 
11033
 
 
11034
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11035
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11036
# vanish in a puff of smoke.
 
11037
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11038
  COLLECT_NAMES=
 
11039
  export COLLECT_NAMES
 
11040
fi
 
11041
EOF
 
11042
    ;;
 
11043
  esac
 
11044
 
 
11045
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11046
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11047
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11048
  # is reportedly fixed, but why not run on old versions too?
 
11049
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11050
 
 
11051
  mv -f "$cfgfile" "$ofile" || \
 
11052
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11053
  chmod +x "$ofile"
 
11054
 
 
11055
else
 
11056
  # If there is no Makefile yet, we rely on a make rule to execute
 
11057
  # `config.status --recheck' to rerun these tests and create the
 
11058
  # libtool script then.
 
11059
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11060
  if test -f "$ltmain_in"; then
 
11061
    test -f Makefile && make "$ltmain"
 
11062
  fi
 
11063
fi
 
11064
 
 
11065
 
 
11066
ac_ext=c
 
11067
ac_cpp='$CPP $CPPFLAGS'
 
11068
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11069
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11070
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11071
 
 
11072
CC="$lt_save_CC"
 
11073
 
 
11074
 
 
11075
# Check whether --with-tags was given.
 
11076
if test "${with_tags+set}" = set; then
 
11077
  withval=$with_tags; tagnames="$withval"
 
11078
fi
 
11079
 
 
11080
 
 
11081
if test -f "$ltmain" && test -n "$tagnames"; then
 
11082
  if test ! -f "${ofile}"; then
 
11083
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11084
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11085
  fi
 
11086
 
 
11087
  if test -z "$LTCC"; then
 
11088
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11089
    if test -z "$LTCC"; then
 
11090
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11091
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11092
    else
 
11093
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11094
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11095
    fi
 
11096
  fi
 
11097
  if test -z "$LTCFLAGS"; then
 
11098
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11099
  fi
 
11100
 
 
11101
  # Extract list of available tagged configurations in $ofile.
 
11102
  # Note that this assumes the entire list is on one line.
 
11103
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11104
 
 
11105
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11106
  for tagname in $tagnames; do
 
11107
    IFS="$lt_save_ifs"
 
11108
    # Check whether tagname contains only valid characters
 
11109
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11110
    "") ;;
 
11111
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11112
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11113
   { (exit 1); exit 1; }; }
 
11114
        ;;
 
11115
    esac
 
11116
 
 
11117
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11118
    then
 
11119
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11120
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11121
   { (exit 1); exit 1; }; }
 
11122
    fi
 
11123
 
 
11124
    # Update the list of available tags.
 
11125
    if test -n "$tagname"; then
 
11126
      echo appending configuration tag \"$tagname\" to $ofile
 
11127
 
 
11128
      case $tagname in
 
11129
      CXX)
 
11130
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11131
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11132
            (test "X$CXX" != "Xg++"))) ; then
 
11133
          ac_ext=cpp
 
11134
ac_cpp='$CXXCPP $CPPFLAGS'
 
11135
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11136
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11137
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11138
 
 
11139
 
 
11140
 
 
11141
 
 
11142
archive_cmds_need_lc_CXX=no
 
11143
allow_undefined_flag_CXX=
 
11144
always_export_symbols_CXX=no
 
11145
archive_expsym_cmds_CXX=
 
11146
export_dynamic_flag_spec_CXX=
 
11147
hardcode_direct_CXX=no
 
11148
hardcode_libdir_flag_spec_CXX=
 
11149
hardcode_libdir_flag_spec_ld_CXX=
 
11150
hardcode_libdir_separator_CXX=
 
11151
hardcode_minus_L_CXX=no
 
11152
hardcode_shlibpath_var_CXX=unsupported
 
11153
hardcode_automatic_CXX=no
 
11154
module_cmds_CXX=
 
11155
module_expsym_cmds_CXX=
 
11156
link_all_deplibs_CXX=unknown
 
11157
old_archive_cmds_CXX=$old_archive_cmds
 
11158
no_undefined_flag_CXX=
 
11159
whole_archive_flag_spec_CXX=
 
11160
enable_shared_with_static_runtimes_CXX=no
 
11161
 
 
11162
# Dependencies to place before and after the object being linked:
 
11163
predep_objects_CXX=
 
11164
postdep_objects_CXX=
 
11165
predeps_CXX=
 
11166
postdeps_CXX=
 
11167
compiler_lib_search_path_CXX=
 
11168
compiler_lib_search_dirs_CXX=
 
11169
 
 
11170
# Source file extension for C++ test sources.
 
11171
ac_ext=cpp
 
11172
 
 
11173
# Object file extension for compiled C++ test sources.
 
11174
objext=o
 
11175
objext_CXX=$objext
 
11176
 
 
11177
# Code to be used in simple compile tests
 
11178
lt_simple_compile_test_code="int some_variable = 0;"
 
11179
 
 
11180
# Code to be used in simple link tests
 
11181
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11182
 
 
11183
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11184
 
 
11185
# If no C compiler was specified, use CC.
 
11186
LTCC=${LTCC-"$CC"}
 
11187
 
 
11188
# If no C compiler flags were specified, use CFLAGS.
 
11189
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11190
 
 
11191
# Allow CC to be a program name with arguments.
 
11192
compiler=$CC
 
11193
 
 
11194
 
 
11195
# save warnings/boilerplate of simple test code
 
11196
ac_outfile=conftest.$ac_objext
 
11197
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11198
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11199
_lt_compiler_boilerplate=`cat conftest.err`
 
11200
$rm conftest*
 
11201
 
 
11202
ac_outfile=conftest.$ac_objext
 
11203
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11204
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11205
_lt_linker_boilerplate=`cat conftest.err`
 
11206
$rm -r conftest*
 
11207
 
 
11208
 
 
11209
# Allow CC to be a program name with arguments.
 
11210
lt_save_CC=$CC
 
11211
lt_save_LD=$LD
 
11212
lt_save_GCC=$GCC
 
11213
GCC=$GXX
 
11214
lt_save_with_gnu_ld=$with_gnu_ld
 
11215
lt_save_path_LD=$lt_cv_path_LD
 
11216
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11217
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11218
else
 
11219
  $as_unset lt_cv_prog_gnu_ld
 
11220
fi
 
11221
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11222
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11223
else
 
11224
  $as_unset lt_cv_path_LD
 
11225
fi
 
11226
test -z "${LDCXX+set}" || LD=$LDCXX
 
11227
CC=${CXX-"c++"}
 
11228
compiler=$CC
 
11229
compiler_CXX=$CC
 
11230
for cc_temp in $compiler""; do
 
11231
  case $cc_temp in
 
11232
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11233
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11234
    \-*) ;;
 
11235
    *) break;;
 
11236
  esac
 
11237
done
 
11238
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11239
 
 
11240
 
 
11241
# We don't want -fno-exception wen compiling C++ code, so set the
 
11242
# no_builtin_flag separately
 
11243
if test "$GXX" = yes; then
 
11244
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11245
else
 
11246
  lt_prog_compiler_no_builtin_flag_CXX=
 
11247
fi
 
11248
 
 
11249
if test "$GXX" = yes; then
 
11250
  # Set up default GNU C++ configuration
 
11251
 
 
11252
 
 
11253
# Check whether --with-gnu-ld was given.
 
11254
if test "${with_gnu_ld+set}" = set; then
 
11255
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11256
else
 
11257
  with_gnu_ld=no
 
11258
fi
 
11259
 
 
11260
ac_prog=ld
 
11261
if test "$GCC" = yes; then
 
11262
  # Check if gcc -print-prog-name=ld gives a path.
 
11263
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11264
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
11265
  case $host in
 
11266
  *-*-mingw*)
 
11267
    # gcc leaves a trailing carriage return which upsets mingw
 
11268
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11269
  *)
 
11270
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11271
  esac
 
11272
  case $ac_prog in
 
11273
    # Accept absolute paths.
 
11274
    [\\/]* | ?:[\\/]*)
 
11275
      re_direlt='/[^/][^/]*/\.\./'
 
11276
      # Canonicalize the pathname of ld
 
11277
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11278
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11279
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11280
      done
 
11281
      test -z "$LD" && LD="$ac_prog"
 
11282
      ;;
 
11283
  "")
 
11284
    # If it fails, then pretend we aren't using GCC.
 
11285
    ac_prog=ld
 
11286
    ;;
 
11287
  *)
 
11288
    # If it is relative, then search for the first ld in PATH.
 
11289
    with_gnu_ld=unknown
 
11290
    ;;
 
11291
  esac
 
11292
elif test "$with_gnu_ld" = yes; then
 
11293
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11294
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
11295
else
 
11296
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11297
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
11298
fi
 
11299
if test "${lt_cv_path_LD+set}" = set; then
 
11300
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11301
else
 
11302
  if test -z "$LD"; then
 
11303
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11304
  for ac_dir in $PATH; do
 
11305
    IFS="$lt_save_ifs"
 
11306
    test -z "$ac_dir" && ac_dir=.
 
11307
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11308
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11309
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11310
      # but apparently some variants of GNU ld only accept -v.
 
11311
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11312
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11313
      *GNU* | *'with BFD'*)
 
11314
        test "$with_gnu_ld" != no && break
 
11315
        ;;
 
11316
      *)
 
11317
        test "$with_gnu_ld" != yes && break
 
11318
        ;;
 
11319
      esac
 
11320
    fi
 
11321
  done
 
11322
  IFS="$lt_save_ifs"
 
11323
else
 
11324
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11325
fi
 
11326
fi
 
11327
 
 
11328
LD="$lt_cv_path_LD"
 
11329
if test -n "$LD"; then
 
11330
  { echo "$as_me:$LINENO: result: $LD" >&5
 
11331
echo "${ECHO_T}$LD" >&6; }
 
11332
else
 
11333
  { echo "$as_me:$LINENO: result: no" >&5
 
11334
echo "${ECHO_T}no" >&6; }
 
11335
fi
 
11336
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11337
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11338
   { (exit 1); exit 1; }; }
 
11339
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11340
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
11341
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11342
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11343
else
 
11344
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11345
case `$LD -v 2>&1 </dev/null` in
 
11346
*GNU* | *'with BFD'*)
 
11347
  lt_cv_prog_gnu_ld=yes
 
11348
  ;;
 
11349
*)
 
11350
  lt_cv_prog_gnu_ld=no
 
11351
  ;;
 
11352
esac
 
11353
fi
 
11354
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11355
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
11356
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11357
 
 
11358
 
 
11359
 
 
11360
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11361
  # archiving commands below assume that GNU ld is being used.
 
11362
  if test "$with_gnu_ld" = yes; then
 
11363
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11364
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11365
 
 
11366
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11367
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11368
 
 
11369
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11370
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11371
    #     investigate it a little bit more. (MM)
 
11372
    wlarc='${wl}'
 
11373
 
 
11374
    # ancient GNU ld didn't support --whole-archive et. al.
 
11375
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11376
        grep 'no-whole-archive' > /dev/null; then
 
11377
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11378
    else
 
11379
      whole_archive_flag_spec_CXX=
 
11380
    fi
 
11381
  else
 
11382
    with_gnu_ld=no
 
11383
    wlarc=
 
11384
 
 
11385
    # A generic and very simple default shared library creation
 
11386
    # command for GNU C++ for the case where it uses the native
 
11387
    # linker, instead of GNU ld.  If possible, this setting should
 
11388
    # overridden to take advantage of the native linker features on
 
11389
    # the platform it is being used on.
 
11390
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11391
  fi
 
11392
 
 
11393
  # Commands to make compiler produce verbose output that lists
 
11394
  # what "hidden" libraries, object files and flags are used when
 
11395
  # linking a shared library.
 
11396
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11397
 
 
11398
else
 
11399
  GXX=no
 
11400
  with_gnu_ld=no
 
11401
  wlarc=
 
11402
fi
 
11403
 
 
11404
# PORTME: fill in a description of your system's C++ link characteristics
 
11405
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11406
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
11407
ld_shlibs_CXX=yes
 
11408
case $host_os in
 
11409
  aix3*)
 
11410
    # FIXME: insert proper C++ library support
 
11411
    ld_shlibs_CXX=no
 
11412
    ;;
 
11413
  aix[4-9]*)
 
11414
    if test "$host_cpu" = ia64; then
 
11415
      # On IA64, the linker does run time linking by default, so we don't
 
11416
      # have to do anything special.
 
11417
      aix_use_runtimelinking=no
 
11418
      exp_sym_flag='-Bexport'
 
11419
      no_entry_flag=""
 
11420
    else
 
11421
      aix_use_runtimelinking=no
 
11422
 
 
11423
      # Test if we are trying to use run time linking or normal
 
11424
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11425
      # need to do runtime linking.
 
11426
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11427
        for ld_flag in $LDFLAGS; do
 
11428
          case $ld_flag in
 
11429
          *-brtl*)
 
11430
            aix_use_runtimelinking=yes
 
11431
            break
 
11432
            ;;
 
11433
          esac
 
11434
        done
 
11435
        ;;
 
11436
      esac
 
11437
 
 
11438
      exp_sym_flag='-bexport'
 
11439
      no_entry_flag='-bnoentry'
 
11440
    fi
 
11441
 
 
11442
    # When large executables or shared objects are built, AIX ld can
 
11443
    # have problems creating the table of contents.  If linking a library
 
11444
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11445
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11446
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11447
 
 
11448
    archive_cmds_CXX=''
 
11449
    hardcode_direct_CXX=yes
 
11450
    hardcode_libdir_separator_CXX=':'
 
11451
    link_all_deplibs_CXX=yes
 
11452
 
 
11453
    if test "$GXX" = yes; then
 
11454
      case $host_os in aix4.[012]|aix4.[012].*)
 
11455
      # We only want to do this on AIX 4.2 and lower, the check
 
11456
      # below for broken collect2 doesn't work under 4.3+
 
11457
        collect2name=`${CC} -print-prog-name=collect2`
 
11458
        if test -f "$collect2name" && \
 
11459
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11460
        then
 
11461
          # We have reworked collect2
 
11462
          :
 
11463
        else
 
11464
          # We have old collect2
 
11465
          hardcode_direct_CXX=unsupported
 
11466
          # It fails to find uninstalled libraries when the uninstalled
 
11467
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11468
          # to unsupported forces relinking
 
11469
          hardcode_minus_L_CXX=yes
 
11470
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11471
          hardcode_libdir_separator_CXX=
 
11472
        fi
 
11473
        ;;
 
11474
      esac
 
11475
      shared_flag='-shared'
 
11476
      if test "$aix_use_runtimelinking" = yes; then
 
11477
        shared_flag="$shared_flag "'${wl}-G'
 
11478
      fi
 
11479
    else
 
11480
      # not using gcc
 
11481
      if test "$host_cpu" = ia64; then
 
11482
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11483
        # chokes on -Wl,-G. The following line is correct:
 
11484
        shared_flag='-G'
 
11485
      else
 
11486
        if test "$aix_use_runtimelinking" = yes; then
 
11487
          shared_flag='${wl}-G'
 
11488
        else
 
11489
          shared_flag='${wl}-bM:SRE'
 
11490
        fi
 
11491
      fi
 
11492
    fi
 
11493
 
 
11494
    # It seems that -bexpall does not export symbols beginning with
 
11495
    # underscore (_), so it is better to generate a list of symbols to export.
 
11496
    always_export_symbols_CXX=yes
 
11497
    if test "$aix_use_runtimelinking" = yes; then
 
11498
      # Warning - without using the other runtime loading flags (-brtl),
 
11499
      # -berok will link without error, but may produce a broken library.
 
11500
      allow_undefined_flag_CXX='-berok'
 
11501
      # Determine the default libpath from the value encoded in an empty executable.
 
11502
      cat >conftest.$ac_ext <<_ACEOF
 
11503
/* confdefs.h.  */
 
11504
_ACEOF
 
11505
cat confdefs.h >>conftest.$ac_ext
 
11506
cat >>conftest.$ac_ext <<_ACEOF
 
11507
/* end confdefs.h.  */
 
11508
 
 
11509
int
 
11510
main ()
 
11511
{
 
11512
 
 
11513
  ;
 
11514
  return 0;
 
11515
}
 
11516
_ACEOF
 
11517
rm -f conftest.$ac_objext conftest$ac_exeext
 
11518
if { (ac_try="$ac_link"
 
11519
case "(($ac_try" in
 
11520
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11521
  *) ac_try_echo=$ac_try;;
 
11522
esac
 
11523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11524
  (eval "$ac_link") 2>conftest.er1
 
11525
  ac_status=$?
 
11526
  grep -v '^ *+' conftest.er1 >conftest.err
 
11527
  rm -f conftest.er1
 
11528
  cat conftest.err >&5
 
11529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11530
  (exit $ac_status); } && {
 
11531
         test -z "$ac_cxx_werror_flag" ||
 
11532
         test ! -s conftest.err
 
11533
       } && test -s conftest$ac_exeext &&
 
11534
       $as_test_x conftest$ac_exeext; then
 
11535
 
 
11536
lt_aix_libpath_sed='
 
11537
    /Import File Strings/,/^$/ {
 
11538
        /^0/ {
 
11539
            s/^0  *\(.*\)$/\1/
 
11540
            p
 
11541
        }
 
11542
    }'
 
11543
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11544
# Check for a 64-bit object if we didn't find anything.
 
11545
if test -z "$aix_libpath"; then
 
11546
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11547
fi
 
11548
else
 
11549
  echo "$as_me: failed program was:" >&5
 
11550
sed 's/^/| /' conftest.$ac_ext >&5
 
11551
 
 
11552
 
 
11553
fi
 
11554
 
 
11555
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11556
      conftest$ac_exeext conftest.$ac_ext
 
11557
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11558
 
 
11559
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11560
 
 
11561
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11562
     else
 
11563
      if test "$host_cpu" = ia64; then
 
11564
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11565
        allow_undefined_flag_CXX="-z nodefs"
 
11566
        archive_expsym_cmds_CXX="\$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"
 
11567
      else
 
11568
        # Determine the default libpath from the value encoded in an empty executable.
 
11569
        cat >conftest.$ac_ext <<_ACEOF
 
11570
/* confdefs.h.  */
 
11571
_ACEOF
 
11572
cat confdefs.h >>conftest.$ac_ext
 
11573
cat >>conftest.$ac_ext <<_ACEOF
 
11574
/* end confdefs.h.  */
 
11575
 
 
11576
int
 
11577
main ()
 
11578
{
 
11579
 
 
11580
  ;
 
11581
  return 0;
 
11582
}
 
11583
_ACEOF
 
11584
rm -f conftest.$ac_objext conftest$ac_exeext
 
11585
if { (ac_try="$ac_link"
 
11586
case "(($ac_try" in
 
11587
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11588
  *) ac_try_echo=$ac_try;;
 
11589
esac
 
11590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11591
  (eval "$ac_link") 2>conftest.er1
 
11592
  ac_status=$?
 
11593
  grep -v '^ *+' conftest.er1 >conftest.err
 
11594
  rm -f conftest.er1
 
11595
  cat conftest.err >&5
 
11596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11597
  (exit $ac_status); } && {
 
11598
         test -z "$ac_cxx_werror_flag" ||
 
11599
         test ! -s conftest.err
 
11600
       } && test -s conftest$ac_exeext &&
 
11601
       $as_test_x conftest$ac_exeext; then
 
11602
 
 
11603
lt_aix_libpath_sed='
 
11604
    /Import File Strings/,/^$/ {
 
11605
        /^0/ {
 
11606
            s/^0  *\(.*\)$/\1/
 
11607
            p
 
11608
        }
 
11609
    }'
 
11610
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11611
# Check for a 64-bit object if we didn't find anything.
 
11612
if test -z "$aix_libpath"; then
 
11613
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11614
fi
 
11615
else
 
11616
  echo "$as_me: failed program was:" >&5
 
11617
sed 's/^/| /' conftest.$ac_ext >&5
 
11618
 
 
11619
 
 
11620
fi
 
11621
 
 
11622
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11623
      conftest$ac_exeext conftest.$ac_ext
 
11624
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11625
 
 
11626
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11627
        # Warning - without using the other run time loading flags,
 
11628
        # -berok will link without error, but may produce a broken library.
 
11629
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11630
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11631
        # Exported symbols can be pulled into shared objects from archives
 
11632
        whole_archive_flag_spec_CXX='$convenience'
 
11633
        archive_cmds_need_lc_CXX=yes
 
11634
        # This is similar to how AIX traditionally builds its shared libraries.
 
11635
        archive_expsym_cmds_CXX="\$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'
 
11636
      fi
 
11637
    fi
 
11638
    ;;
 
11639
 
 
11640
  beos*)
 
11641
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11642
      allow_undefined_flag_CXX=unsupported
 
11643
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11644
      # support --undefined.  This deserves some investigation.  FIXME
 
11645
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11646
    else
 
11647
      ld_shlibs_CXX=no
 
11648
    fi
 
11649
    ;;
 
11650
 
 
11651
  chorus*)
 
11652
    case $cc_basename in
 
11653
      *)
 
11654
        # FIXME: insert proper C++ library support
 
11655
        ld_shlibs_CXX=no
 
11656
        ;;
 
11657
    esac
 
11658
    ;;
 
11659
 
 
11660
  cygwin* | mingw* | pw32*)
 
11661
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11662
    # as there is no search path for DLLs.
 
11663
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11664
    allow_undefined_flag_CXX=unsupported
 
11665
    always_export_symbols_CXX=no
 
11666
    enable_shared_with_static_runtimes_CXX=yes
 
11667
 
 
11668
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11669
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11670
      # If the export-symbols file already is a .def file (1st line
 
11671
      # is EXPORTS), use it as is; otherwise, prepend...
 
11672
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11673
        cp $export_symbols $output_objdir/$soname.def;
 
11674
      else
 
11675
        echo EXPORTS > $output_objdir/$soname.def;
 
11676
        cat $export_symbols >> $output_objdir/$soname.def;
 
11677
      fi~
 
11678
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11679
    else
 
11680
      ld_shlibs_CXX=no
 
11681
    fi
 
11682
  ;;
 
11683
      darwin* | rhapsody*)
 
11684
      archive_cmds_need_lc_CXX=no
 
11685
      hardcode_direct_CXX=no
 
11686
      hardcode_automatic_CXX=yes
 
11687
      hardcode_shlibpath_var_CXX=unsupported
 
11688
      whole_archive_flag_spec_CXX=''
 
11689
      link_all_deplibs_CXX=yes
 
11690
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
11691
      if test "$GXX" = yes ; then
 
11692
      output_verbose_link_cmd='echo'
 
11693
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
11694
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
11695
      archive_expsym_cmds_CXX="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}"
 
11696
      module_expsym_cmds_CXX="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}"
 
11697
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
11698
        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
11699
        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
11700
      fi
 
11701
      else
 
11702
      case $cc_basename in
 
11703
        xlc*)
 
11704
         output_verbose_link_cmd='echo'
 
11705
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
11706
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11707
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11708
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11709
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11710
          ;;
 
11711
       *)
 
11712
         ld_shlibs_CXX=no
 
11713
          ;;
 
11714
      esac
 
11715
      fi
 
11716
        ;;
 
11717
 
 
11718
  dgux*)
 
11719
    case $cc_basename in
 
11720
      ec++*)
 
11721
        # FIXME: insert proper C++ library support
 
11722
        ld_shlibs_CXX=no
 
11723
        ;;
 
11724
      ghcx*)
 
11725
        # Green Hills C++ Compiler
 
11726
        # FIXME: insert proper C++ library support
 
11727
        ld_shlibs_CXX=no
 
11728
        ;;
 
11729
      *)
 
11730
        # FIXME: insert proper C++ library support
 
11731
        ld_shlibs_CXX=no
 
11732
        ;;
 
11733
    esac
 
11734
    ;;
 
11735
  freebsd[12]*)
 
11736
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11737
    ld_shlibs_CXX=no
 
11738
    ;;
 
11739
  freebsd-elf*)
 
11740
    archive_cmds_need_lc_CXX=no
 
11741
    ;;
 
11742
  freebsd* | dragonfly*)
 
11743
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11744
    # conventions
 
11745
    ld_shlibs_CXX=yes
 
11746
    ;;
 
11747
  gnu*)
 
11748
    ;;
 
11749
  hpux9*)
 
11750
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11751
    hardcode_libdir_separator_CXX=:
 
11752
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11753
    hardcode_direct_CXX=yes
 
11754
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11755
                                # but as the default
 
11756
                                # location of the library.
 
11757
 
 
11758
    case $cc_basename in
 
11759
    CC*)
 
11760
      # FIXME: insert proper C++ library support
 
11761
      ld_shlibs_CXX=no
 
11762
      ;;
 
11763
    aCC*)
 
11764
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11765
      # Commands to make compiler produce verbose output that lists
 
11766
      # what "hidden" libraries, object files and flags are used when
 
11767
      # linking a shared library.
 
11768
      #
 
11769
      # There doesn't appear to be a way to prevent this compiler from
 
11770
      # explicitly linking system object files so we need to strip them
 
11771
      # from the output so that they don't get included in the library
 
11772
      # dependencies.
 
11773
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11774
      ;;
 
11775
    *)
 
11776
      if test "$GXX" = yes; then
 
11777
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11778
      else
 
11779
        # FIXME: insert proper C++ library support
 
11780
        ld_shlibs_CXX=no
 
11781
      fi
 
11782
      ;;
 
11783
    esac
 
11784
    ;;
 
11785
  hpux10*|hpux11*)
 
11786
    if test $with_gnu_ld = no; then
 
11787
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11788
      hardcode_libdir_separator_CXX=:
 
11789
 
 
11790
      case $host_cpu in
 
11791
      hppa*64*|ia64*) ;;
 
11792
      *)
 
11793
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11794
        ;;
 
11795
      esac
 
11796
    fi
 
11797
    case $host_cpu in
 
11798
    hppa*64*|ia64*)
 
11799
      hardcode_direct_CXX=no
 
11800
      hardcode_shlibpath_var_CXX=no
 
11801
      ;;
 
11802
    *)
 
11803
      hardcode_direct_CXX=yes
 
11804
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11805
                                              # but as the default
 
11806
                                              # location of the library.
 
11807
      ;;
 
11808
    esac
 
11809
 
 
11810
    case $cc_basename in
 
11811
      CC*)
 
11812
        # FIXME: insert proper C++ library support
 
11813
        ld_shlibs_CXX=no
 
11814
        ;;
 
11815
      aCC*)
 
11816
        case $host_cpu in
 
11817
        hppa*64*)
 
11818
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11819
          ;;
 
11820
        ia64*)
 
11821
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11822
          ;;
 
11823
        *)
 
11824
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11825
          ;;
 
11826
        esac
 
11827
        # Commands to make compiler produce verbose output that lists
 
11828
        # what "hidden" libraries, object files and flags are used when
 
11829
        # linking a shared library.
 
11830
        #
 
11831
        # There doesn't appear to be a way to prevent this compiler from
 
11832
        # explicitly linking system object files so we need to strip them
 
11833
        # from the output so that they don't get included in the library
 
11834
        # dependencies.
 
11835
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11836
        ;;
 
11837
      *)
 
11838
        if test "$GXX" = yes; then
 
11839
          if test $with_gnu_ld = no; then
 
11840
            case $host_cpu in
 
11841
            hppa*64*)
 
11842
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11843
              ;;
 
11844
            ia64*)
 
11845
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11846
              ;;
 
11847
            *)
 
11848
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11849
              ;;
 
11850
            esac
 
11851
          fi
 
11852
        else
 
11853
          # FIXME: insert proper C++ library support
 
11854
          ld_shlibs_CXX=no
 
11855
        fi
 
11856
        ;;
 
11857
    esac
 
11858
    ;;
 
11859
  interix[3-9]*)
 
11860
    hardcode_direct_CXX=no
 
11861
    hardcode_shlibpath_var_CXX=no
 
11862
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11863
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11864
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11865
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11866
    # default) and relocated if they conflict, which is a slow very memory
 
11867
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11868
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11869
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11870
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
11871
    archive_expsym_cmds_CXX='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'
 
11872
    ;;
 
11873
  irix5* | irix6*)
 
11874
    case $cc_basename in
 
11875
      CC*)
 
11876
        # SGI C++
 
11877
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11878
 
 
11879
        # Archives containing C++ object files must be created using
 
11880
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11881
        # necessary to make sure instantiated templates are included
 
11882
        # in the archive.
 
11883
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11884
        ;;
 
11885
      *)
 
11886
        if test "$GXX" = yes; then
 
11887
          if test "$with_gnu_ld" = no; then
 
11888
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11889
          else
 
11890
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
11891
          fi
 
11892
        fi
 
11893
        link_all_deplibs_CXX=yes
 
11894
        ;;
 
11895
    esac
 
11896
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11897
    hardcode_libdir_separator_CXX=:
 
11898
    ;;
 
11899
  linux* | k*bsd*-gnu)
 
11900
    case $cc_basename in
 
11901
      KCC*)
 
11902
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11903
 
 
11904
        # KCC will only create a shared library if the output file
 
11905
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11906
        # to its proper name (with version) after linking.
 
11907
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11908
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
11909
        # Commands to make compiler produce verbose output that lists
 
11910
        # what "hidden" libraries, object files and flags are used when
 
11911
        # linking a shared library.
 
11912
        #
 
11913
        # There doesn't appear to be a way to prevent this compiler from
 
11914
        # explicitly linking system object files so we need to strip them
 
11915
        # from the output so that they don't get included in the library
 
11916
        # dependencies.
 
11917
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11918
 
 
11919
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11920
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11921
 
 
11922
        # Archives containing C++ object files must be created using
 
11923
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11924
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11925
        ;;
 
11926
      icpc*)
 
11927
        # Intel C++
 
11928
        with_gnu_ld=yes
 
11929
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11930
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11931
        # earlier do not add the objects themselves.
 
11932
        case `$CC -V 2>&1` in
 
11933
        *"Version 7."*)
 
11934
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11935
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11936
          ;;
 
11937
        *)  # Version 8.0 or newer
 
11938
          tmp_idyn=
 
11939
          case $host_cpu in
 
11940
            ia64*) tmp_idyn=' -i_dynamic';;
 
11941
          esac
 
11942
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11943
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11944
          ;;
 
11945
        esac
 
11946
        archive_cmds_need_lc_CXX=no
 
11947
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11948
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11949
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11950
        ;;
 
11951
      pgCC* | pgcpp*)
 
11952
        # Portland Group C++ compiler
 
11953
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11954
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
11955
 
 
11956
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11957
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11958
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
11959
        ;;
 
11960
      cxx*)
 
11961
        # Compaq C++
 
11962
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11963
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
11964
 
 
11965
        runpath_var=LD_RUN_PATH
 
11966
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11967
        hardcode_libdir_separator_CXX=:
 
11968
 
 
11969
        # Commands to make compiler produce verbose output that lists
 
11970
        # what "hidden" libraries, object files and flags are used when
 
11971
        # linking a shared library.
 
11972
        #
 
11973
        # There doesn't appear to be a way to prevent this compiler from
 
11974
        # explicitly linking system object files so we need to strip them
 
11975
        # from the output so that they don't get included in the library
 
11976
        # dependencies.
 
11977
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11978
        ;;
 
11979
      *)
 
11980
        case `$CC -V 2>&1 | sed 5q` in
 
11981
        *Sun\ C*)
 
11982
          # Sun C++ 5.9
 
11983
          no_undefined_flag_CXX=' -zdefs'
 
11984
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11985
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
11986
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11987
          whole_archive_flag_spec_CXX='${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'
 
11988
 
 
11989
          # Not sure whether something based on
 
11990
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
11991
          # would be better.
 
11992
          output_verbose_link_cmd='echo'
 
11993
 
 
11994
          # Archives containing C++ object files must be created using
 
11995
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11996
          # necessary to make sure instantiated templates are included
 
11997
          # in the archive.
 
11998
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11999
          ;;
 
12000
        esac
 
12001
        ;;
 
12002
    esac
 
12003
    ;;
 
12004
  lynxos*)
 
12005
    # FIXME: insert proper C++ library support
 
12006
    ld_shlibs_CXX=no
 
12007
    ;;
 
12008
  m88k*)
 
12009
    # FIXME: insert proper C++ library support
 
12010
    ld_shlibs_CXX=no
 
12011
    ;;
 
12012
  mvs*)
 
12013
    case $cc_basename in
 
12014
      cxx*)
 
12015
        # FIXME: insert proper C++ library support
 
12016
        ld_shlibs_CXX=no
 
12017
        ;;
 
12018
      *)
 
12019
        # FIXME: insert proper C++ library support
 
12020
        ld_shlibs_CXX=no
 
12021
        ;;
 
12022
    esac
 
12023
    ;;
 
12024
  netbsd* | netbsdelf*-gnu)
 
12025
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12026
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12027
      wlarc=
 
12028
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12029
      hardcode_direct_CXX=yes
 
12030
      hardcode_shlibpath_var_CXX=no
 
12031
    fi
 
12032
    # Workaround some broken pre-1.5 toolchains
 
12033
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12034
    ;;
 
12035
  openbsd2*)
 
12036
    # C++ shared libraries are fairly broken
 
12037
    ld_shlibs_CXX=no
 
12038
    ;;
 
12039
  openbsd*)
 
12040
    if test -f /usr/libexec/ld.so; then
 
12041
      hardcode_direct_CXX=yes
 
12042
      hardcode_shlibpath_var_CXX=no
 
12043
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12044
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12045
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12046
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12047
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12048
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12049
      fi
 
12050
      output_verbose_link_cmd='echo'
 
12051
    else
 
12052
      ld_shlibs_CXX=no
 
12053
    fi
 
12054
    ;;
 
12055
  osf3*)
 
12056
    case $cc_basename in
 
12057
      KCC*)
 
12058
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12059
 
 
12060
        # KCC will only create a shared library if the output file
 
12061
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12062
        # to its proper name (with version) after linking.
 
12063
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
12064
 
 
12065
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12066
        hardcode_libdir_separator_CXX=:
 
12067
 
 
12068
        # Archives containing C++ object files must be created using
 
12069
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12070
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12071
 
 
12072
        ;;
 
12073
      RCC*)
 
12074
        # Rational C++ 2.4.1
 
12075
        # FIXME: insert proper C++ library support
 
12076
        ld_shlibs_CXX=no
 
12077
        ;;
 
12078
      cxx*)
 
12079
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12080
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
12081
 
 
12082
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12083
        hardcode_libdir_separator_CXX=:
 
12084
 
 
12085
        # Commands to make compiler produce verbose output that lists
 
12086
        # what "hidden" libraries, object files and flags are used when
 
12087
        # linking a shared library.
 
12088
        #
 
12089
        # There doesn't appear to be a way to prevent this compiler from
 
12090
        # explicitly linking system object files so we need to strip them
 
12091
        # from the output so that they don't get included in the library
 
12092
        # dependencies.
 
12093
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12094
        ;;
 
12095
      *)
 
12096
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12097
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12098
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12099
 
 
12100
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12101
          hardcode_libdir_separator_CXX=:
 
12102
 
 
12103
          # Commands to make compiler produce verbose output that lists
 
12104
          # what "hidden" libraries, object files and flags are used when
 
12105
          # linking a shared library.
 
12106
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12107
 
 
12108
        else
 
12109
          # FIXME: insert proper C++ library support
 
12110
          ld_shlibs_CXX=no
 
12111
        fi
 
12112
        ;;
 
12113
    esac
 
12114
    ;;
 
12115
  osf4* | osf5*)
 
12116
    case $cc_basename in
 
12117
      KCC*)
 
12118
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12119
 
 
12120
        # KCC will only create a shared library if the output file
 
12121
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12122
        # to its proper name (with version) after linking.
 
12123
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
12124
 
 
12125
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12126
        hardcode_libdir_separator_CXX=:
 
12127
 
 
12128
        # Archives containing C++ object files must be created using
 
12129
        # the KAI C++ compiler.
 
12130
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12131
        ;;
 
12132
      RCC*)
 
12133
        # Rational C++ 2.4.1
 
12134
        # FIXME: insert proper C++ library support
 
12135
        ld_shlibs_CXX=no
 
12136
        ;;
 
12137
      cxx*)
 
12138
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12139
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
12140
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12141
          echo "-hidden">> $lib.exp~
 
12142
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
12143
          $rm $lib.exp'
 
12144
 
 
12145
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12146
        hardcode_libdir_separator_CXX=:
 
12147
 
 
12148
        # Commands to make compiler produce verbose output that lists
 
12149
        # what "hidden" libraries, object files and flags are used when
 
12150
        # linking a shared library.
 
12151
        #
 
12152
        # There doesn't appear to be a way to prevent this compiler from
 
12153
        # explicitly linking system object files so we need to strip them
 
12154
        # from the output so that they don't get included in the library
 
12155
        # dependencies.
 
12156
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12157
        ;;
 
12158
      *)
 
12159
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12160
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12161
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12162
 
 
12163
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12164
          hardcode_libdir_separator_CXX=:
 
12165
 
 
12166
          # Commands to make compiler produce verbose output that lists
 
12167
          # what "hidden" libraries, object files and flags are used when
 
12168
          # linking a shared library.
 
12169
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12170
 
 
12171
        else
 
12172
          # FIXME: insert proper C++ library support
 
12173
          ld_shlibs_CXX=no
 
12174
        fi
 
12175
        ;;
 
12176
    esac
 
12177
    ;;
 
12178
  psos*)
 
12179
    # FIXME: insert proper C++ library support
 
12180
    ld_shlibs_CXX=no
 
12181
    ;;
 
12182
  sunos4*)
 
12183
    case $cc_basename in
 
12184
      CC*)
 
12185
        # Sun C++ 4.x
 
12186
        # FIXME: insert proper C++ library support
 
12187
        ld_shlibs_CXX=no
 
12188
        ;;
 
12189
      lcc*)
 
12190
        # Lucid
 
12191
        # FIXME: insert proper C++ library support
 
12192
        ld_shlibs_CXX=no
 
12193
        ;;
 
12194
      *)
 
12195
        # FIXME: insert proper C++ library support
 
12196
        ld_shlibs_CXX=no
 
12197
        ;;
 
12198
    esac
 
12199
    ;;
 
12200
  solaris*)
 
12201
    case $cc_basename in
 
12202
      CC*)
 
12203
        # Sun C++ 4.2, 5.x and Centerline C++
 
12204
        archive_cmds_need_lc_CXX=yes
 
12205
        no_undefined_flag_CXX=' -zdefs'
 
12206
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12207
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12208
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12209
 
 
12210
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12211
        hardcode_shlibpath_var_CXX=no
 
12212
        case $host_os in
 
12213
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12214
          *)
 
12215
            # The compiler driver will combine and reorder linker options,
 
12216
            # but understands `-z linker_flag'.
 
12217
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12218
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12219
            ;;
 
12220
        esac
 
12221
        link_all_deplibs_CXX=yes
 
12222
 
 
12223
        output_verbose_link_cmd='echo'
 
12224
 
 
12225
        # Archives containing C++ object files must be created using
 
12226
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12227
        # necessary to make sure instantiated templates are included
 
12228
        # in the archive.
 
12229
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12230
        ;;
 
12231
      gcx*)
 
12232
        # Green Hills C++ Compiler
 
12233
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12234
 
 
12235
        # The C++ compiler must be used to create the archive.
 
12236
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12237
        ;;
 
12238
      *)
 
12239
        # GNU C++ compiler with Solaris linker
 
12240
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12241
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12242
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12243
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12244
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12245
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12246
 
 
12247
            # Commands to make compiler produce verbose output that lists
 
12248
            # what "hidden" libraries, object files and flags are used when
 
12249
            # linking a shared library.
 
12250
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12251
          else
 
12252
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12253
            # platform.
 
12254
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12255
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12256
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12257
 
 
12258
            # Commands to make compiler produce verbose output that lists
 
12259
            # what "hidden" libraries, object files and flags are used when
 
12260
            # linking a shared library.
 
12261
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12262
          fi
 
12263
 
 
12264
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12265
          case $host_os in
 
12266
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12267
          *)
 
12268
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12269
            ;;
 
12270
          esac
 
12271
        fi
 
12272
        ;;
 
12273
    esac
 
12274
    ;;
 
12275
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12276
    no_undefined_flag_CXX='${wl}-z,text'
 
12277
    archive_cmds_need_lc_CXX=no
 
12278
    hardcode_shlibpath_var_CXX=no
 
12279
    runpath_var='LD_RUN_PATH'
 
12280
 
 
12281
    case $cc_basename in
 
12282
      CC*)
 
12283
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12284
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12285
        ;;
 
12286
      *)
 
12287
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12288
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12289
        ;;
 
12290
    esac
 
12291
    ;;
 
12292
  sysv5* | sco3.2v5* | sco5v6*)
 
12293
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12294
    # link with -lc, and that would cause any symbols used from libc to
 
12295
    # always be unresolved, which means just about no library would
 
12296
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12297
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12298
    # as -z defs.
 
12299
    # For security reasons, it is highly recommended that you always
 
12300
    # use absolute paths for naming shared libraries, and exclude the
 
12301
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12302
    # requires that you compile everything twice, which is a pain.
 
12303
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12304
    # non-empty value in the environment.  Most likely only useful for
 
12305
    # creating official distributions of packages.
 
12306
    # This is a hack until libtool officially supports absolute path
 
12307
    # names for shared libraries.
 
12308
    no_undefined_flag_CXX='${wl}-z,text'
 
12309
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12310
    archive_cmds_need_lc_CXX=no
 
12311
    hardcode_shlibpath_var_CXX=no
 
12312
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12313
    hardcode_libdir_separator_CXX=':'
 
12314
    link_all_deplibs_CXX=yes
 
12315
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12316
    runpath_var='LD_RUN_PATH'
 
12317
 
 
12318
    case $cc_basename in
 
12319
      CC*)
 
12320
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12321
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12322
        ;;
 
12323
      *)
 
12324
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12325
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12326
        ;;
 
12327
    esac
 
12328
    ;;
 
12329
  tandem*)
 
12330
    case $cc_basename in
 
12331
      NCC*)
 
12332
        # NonStop-UX NCC 3.20
 
12333
        # FIXME: insert proper C++ library support
 
12334
        ld_shlibs_CXX=no
 
12335
        ;;
 
12336
      *)
 
12337
        # FIXME: insert proper C++ library support
 
12338
        ld_shlibs_CXX=no
 
12339
        ;;
 
12340
    esac
 
12341
    ;;
 
12342
  vxworks*)
 
12343
    # FIXME: insert proper C++ library support
 
12344
    ld_shlibs_CXX=no
 
12345
    ;;
 
12346
  *)
 
12347
    # FIXME: insert proper C++ library support
 
12348
    ld_shlibs_CXX=no
 
12349
    ;;
 
12350
esac
 
12351
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12352
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12353
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12354
 
 
12355
GCC_CXX="$GXX"
 
12356
LD_CXX="$LD"
 
12357
 
 
12358
cat > conftest.$ac_ext <<EOF
 
12359
class Foo
 
12360
{
 
12361
public:
 
12362
  Foo (void) { a = 0; }
 
12363
private:
 
12364
  int a;
 
12365
};
 
12366
EOF
 
12367
 
 
12368
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12369
  (eval $ac_compile) 2>&5
 
12370
  ac_status=$?
 
12371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12372
  (exit $ac_status); }; then
 
12373
  # Parse the compiler output and extract the necessary
 
12374
  # objects, libraries and library flags.
 
12375
 
 
12376
  # Sentinel used to keep track of whether or not we are before
 
12377
  # the conftest object file.
 
12378
  pre_test_object_deps_done=no
 
12379
 
 
12380
  # The `*' in the case matches for architectures that use `case' in
 
12381
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12382
  # eval without this substitution.
 
12383
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12384
 
 
12385
  for p in `eval $output_verbose_link_cmd`; do
 
12386
    case $p in
 
12387
 
 
12388
    -L* | -R* | -l*)
 
12389
       # Some compilers place space between "-{L,R}" and the path.
 
12390
       # Remove the space.
 
12391
       if test $p = "-L" \
 
12392
          || test $p = "-R"; then
 
12393
         prev=$p
 
12394
         continue
 
12395
       else
 
12396
         prev=
 
12397
       fi
 
12398
 
 
12399
       if test "$pre_test_object_deps_done" = no; then
 
12400
         case $p in
 
12401
         -L* | -R*)
 
12402
           # Internal compiler library paths should come after those
 
12403
           # provided the user.  The postdeps already come after the
 
12404
           # user supplied libs so there is no need to process them.
 
12405
           if test -z "$compiler_lib_search_path_CXX"; then
 
12406
             compiler_lib_search_path_CXX="${prev}${p}"
 
12407
           else
 
12408
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12409
           fi
 
12410
           ;;
 
12411
         # The "-l" case would never come before the object being
 
12412
         # linked, so don't bother handling this case.
 
12413
         esac
 
12414
       else
 
12415
         if test -z "$postdeps_CXX"; then
 
12416
           postdeps_CXX="${prev}${p}"
 
12417
         else
 
12418
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12419
         fi
 
12420
       fi
 
12421
       ;;
 
12422
 
 
12423
    *.$objext)
 
12424
       # This assumes that the test object file only shows up
 
12425
       # once in the compiler output.
 
12426
       if test "$p" = "conftest.$objext"; then
 
12427
         pre_test_object_deps_done=yes
 
12428
         continue
 
12429
       fi
 
12430
 
 
12431
       if test "$pre_test_object_deps_done" = no; then
 
12432
         if test -z "$predep_objects_CXX"; then
 
12433
           predep_objects_CXX="$p"
 
12434
         else
 
12435
           predep_objects_CXX="$predep_objects_CXX $p"
 
12436
         fi
 
12437
       else
 
12438
         if test -z "$postdep_objects_CXX"; then
 
12439
           postdep_objects_CXX="$p"
 
12440
         else
 
12441
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12442
         fi
 
12443
       fi
 
12444
       ;;
 
12445
 
 
12446
    *) ;; # Ignore the rest.
 
12447
 
 
12448
    esac
 
12449
  done
 
12450
 
 
12451
  # Clean up.
 
12452
  rm -f a.out a.exe
 
12453
else
 
12454
  echo "libtool.m4: error: problem compiling CXX test program"
 
12455
fi
 
12456
 
 
12457
$rm -f confest.$objext
 
12458
 
 
12459
compiler_lib_search_dirs_CXX=
 
12460
if test -n "$compiler_lib_search_path_CXX"; then
 
12461
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12462
fi
 
12463
 
 
12464
# PORTME: override above test on systems where it is broken
 
12465
case $host_os in
 
12466
interix[3-9]*)
 
12467
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12468
  # hack all around it, let's just trust "g++" to DTRT.
 
12469
  predep_objects_CXX=
 
12470
  postdep_objects_CXX=
 
12471
  postdeps_CXX=
 
12472
  ;;
 
12473
 
 
12474
linux*)
 
12475
  case `$CC -V 2>&1 | sed 5q` in
 
12476
  *Sun\ C*)
 
12477
    # Sun C++ 5.9
 
12478
    #
 
12479
    # The more standards-conforming stlport4 library is
 
12480
    # incompatible with the Cstd library. Avoid specifying
 
12481
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12482
    # -library=stlport4 depends on it.
 
12483
    case " $CXX $CXXFLAGS " in
 
12484
    *" -library=stlport4 "*)
 
12485
      solaris_use_stlport4=yes
 
12486
      ;;
 
12487
    esac
 
12488
    if test "$solaris_use_stlport4" != yes; then
 
12489
      postdeps_CXX='-library=Cstd -library=Crun'
 
12490
    fi
 
12491
    ;;
 
12492
  esac
 
12493
  ;;
 
12494
 
 
12495
solaris*)
 
12496
  case $cc_basename in
 
12497
  CC*)
 
12498
    # The more standards-conforming stlport4 library is
 
12499
    # incompatible with the Cstd library. Avoid specifying
 
12500
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12501
    # -library=stlport4 depends on it.
 
12502
    case " $CXX $CXXFLAGS " in
 
12503
    *" -library=stlport4 "*)
 
12504
      solaris_use_stlport4=yes
 
12505
      ;;
 
12506
    esac
 
12507
 
 
12508
    # Adding this requires a known-good setup of shared libraries for
 
12509
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12510
    # archive will be linked into the output, leading to subtle bugs.
 
12511
    if test "$solaris_use_stlport4" != yes; then
 
12512
      postdeps_CXX='-library=Cstd -library=Crun'
 
12513
    fi
 
12514
    ;;
 
12515
  esac
 
12516
  ;;
 
12517
esac
 
12518
 
 
12519
case " $postdeps_CXX " in
 
12520
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12521
esac
 
12522
 
 
12523
lt_prog_compiler_wl_CXX=
 
12524
lt_prog_compiler_pic_CXX=
 
12525
lt_prog_compiler_static_CXX=
 
12526
 
 
12527
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12528
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
12529
 
 
12530
  # C++ specific cases for pic, static, wl, etc.
 
12531
  if test "$GXX" = yes; then
 
12532
    lt_prog_compiler_wl_CXX='-Wl,'
 
12533
    lt_prog_compiler_static_CXX='-static'
 
12534
 
 
12535
    case $host_os in
 
12536
    aix*)
 
12537
      # All AIX code is PIC.
 
12538
      if test "$host_cpu" = ia64; then
 
12539
        # AIX 5 now supports IA64 processor
 
12540
        lt_prog_compiler_static_CXX='-Bstatic'
 
12541
      fi
 
12542
      ;;
 
12543
    amigaos*)
 
12544
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12545
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12546
      # like `-m68040'.
 
12547
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12548
      ;;
 
12549
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12550
      # PIC is the default for these OSes.
 
12551
      ;;
 
12552
    mingw* | cygwin* | os2* | pw32*)
 
12553
      # This hack is so that the source file can tell whether it is being
 
12554
      # built for inclusion in a dll (and should export symbols for example).
 
12555
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12556
      # (--disable-auto-import) libraries
 
12557
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12558
      ;;
 
12559
    darwin* | rhapsody*)
 
12560
      # PIC is the default on this platform
 
12561
      # Common symbols not allowed in MH_DYLIB files
 
12562
      lt_prog_compiler_pic_CXX='-fno-common'
 
12563
      ;;
 
12564
    *djgpp*)
 
12565
      # DJGPP does not support shared libraries at all
 
12566
      lt_prog_compiler_pic_CXX=
 
12567
      ;;
 
12568
    interix[3-9]*)
 
12569
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12570
      # Instead, we relocate shared libraries at runtime.
 
12571
      ;;
 
12572
    sysv4*MP*)
 
12573
      if test -d /usr/nec; then
 
12574
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12575
      fi
 
12576
      ;;
 
12577
    hpux*)
 
12578
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12579
      # not for PA HP-UX.
 
12580
      case $host_cpu in
 
12581
      hppa*64*|ia64*)
 
12582
        ;;
 
12583
      *)
 
12584
        lt_prog_compiler_pic_CXX='-fPIC'
 
12585
        ;;
 
12586
      esac
 
12587
      ;;
 
12588
    *)
 
12589
      lt_prog_compiler_pic_CXX='-fPIC'
 
12590
      ;;
 
12591
    esac
 
12592
  else
 
12593
    case $host_os in
 
12594
      aix[4-9]*)
 
12595
        # All AIX code is PIC.
 
12596
        if test "$host_cpu" = ia64; then
 
12597
          # AIX 5 now supports IA64 processor
 
12598
          lt_prog_compiler_static_CXX='-Bstatic'
 
12599
        else
 
12600
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12601
        fi
 
12602
        ;;
 
12603
      chorus*)
 
12604
        case $cc_basename in
 
12605
        cxch68*)
 
12606
          # Green Hills C++ Compiler
 
12607
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
12608
          ;;
 
12609
        esac
 
12610
        ;;
 
12611
       darwin*)
 
12612
         # PIC is the default on this platform
 
12613
         # Common symbols not allowed in MH_DYLIB files
 
12614
         case $cc_basename in
 
12615
           xlc*)
 
12616
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12617
           lt_prog_compiler_wl_CXX='-Wl,'
 
12618
           ;;
 
12619
         esac
 
12620
       ;;
 
12621
      dgux*)
 
12622
        case $cc_basename in
 
12623
          ec++*)
 
12624
            lt_prog_compiler_pic_CXX='-KPIC'
 
12625
            ;;
 
12626
          ghcx*)
 
12627
            # Green Hills C++ Compiler
 
12628
            lt_prog_compiler_pic_CXX='-pic'
 
12629
            ;;
 
12630
          *)
 
12631
            ;;
 
12632
        esac
 
12633
        ;;
 
12634
      freebsd* | dragonfly*)
 
12635
        # FreeBSD uses GNU C++
 
12636
        ;;
 
12637
      hpux9* | hpux10* | hpux11*)
 
12638
        case $cc_basename in
 
12639
          CC*)
 
12640
            lt_prog_compiler_wl_CXX='-Wl,'
 
12641
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12642
            if test "$host_cpu" != ia64; then
 
12643
              lt_prog_compiler_pic_CXX='+Z'
 
12644
            fi
 
12645
            ;;
 
12646
          aCC*)
 
12647
            lt_prog_compiler_wl_CXX='-Wl,'
 
12648
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12649
            case $host_cpu in
 
12650
            hppa*64*|ia64*)
 
12651
              # +Z the default
 
12652
              ;;
 
12653
            *)
 
12654
              lt_prog_compiler_pic_CXX='+Z'
 
12655
              ;;
 
12656
            esac
 
12657
            ;;
 
12658
          *)
 
12659
            ;;
 
12660
        esac
 
12661
        ;;
 
12662
      interix*)
 
12663
        # This is c89, which is MS Visual C++ (no shared libs)
 
12664
        # Anyone wants to do a port?
 
12665
        ;;
 
12666
      irix5* | irix6* | nonstopux*)
 
12667
        case $cc_basename in
 
12668
          CC*)
 
12669
            lt_prog_compiler_wl_CXX='-Wl,'
 
12670
            lt_prog_compiler_static_CXX='-non_shared'
 
12671
            # CC pic flag -KPIC is the default.
 
12672
            ;;
 
12673
          *)
 
12674
            ;;
 
12675
        esac
 
12676
        ;;
 
12677
      linux* | k*bsd*-gnu)
 
12678
        case $cc_basename in
 
12679
          KCC*)
 
12680
            # KAI C++ Compiler
 
12681
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12682
            lt_prog_compiler_pic_CXX='-fPIC'
 
12683
            ;;
 
12684
          icpc* | ecpc*)
 
12685
            # Intel C++
 
12686
            lt_prog_compiler_wl_CXX='-Wl,'
 
12687
            lt_prog_compiler_pic_CXX='-KPIC'
 
12688
            lt_prog_compiler_static_CXX='-static'
 
12689
            ;;
 
12690
          pgCC* | pgcpp*)
 
12691
            # Portland Group C++ compiler.
 
12692
            lt_prog_compiler_wl_CXX='-Wl,'
 
12693
            lt_prog_compiler_pic_CXX='-fpic'
 
12694
            lt_prog_compiler_static_CXX='-Bstatic'
 
12695
            ;;
 
12696
          cxx*)
 
12697
            # Compaq C++
 
12698
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12699
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12700
            lt_prog_compiler_pic_CXX=
 
12701
            lt_prog_compiler_static_CXX='-non_shared'
 
12702
            ;;
 
12703
          *)
 
12704
            case `$CC -V 2>&1 | sed 5q` in
 
12705
            *Sun\ C*)
 
12706
              # Sun C++ 5.9
 
12707
              lt_prog_compiler_pic_CXX='-KPIC'
 
12708
              lt_prog_compiler_static_CXX='-Bstatic'
 
12709
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12710
              ;;
 
12711
            esac
 
12712
            ;;
 
12713
        esac
 
12714
        ;;
 
12715
      lynxos*)
 
12716
        ;;
 
12717
      m88k*)
 
12718
        ;;
 
12719
      mvs*)
 
12720
        case $cc_basename in
 
12721
          cxx*)
 
12722
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12723
            ;;
 
12724
          *)
 
12725
            ;;
 
12726
        esac
 
12727
        ;;
 
12728
      netbsd* | netbsdelf*-gnu)
 
12729
        ;;
 
12730
      osf3* | osf4* | osf5*)
 
12731
        case $cc_basename in
 
12732
          KCC*)
 
12733
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12734
            ;;
 
12735
          RCC*)
 
12736
            # Rational C++ 2.4.1
 
12737
            lt_prog_compiler_pic_CXX='-pic'
 
12738
            ;;
 
12739
          cxx*)
 
12740
            # Digital/Compaq C++
 
12741
            lt_prog_compiler_wl_CXX='-Wl,'
 
12742
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12743
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12744
            lt_prog_compiler_pic_CXX=
 
12745
            lt_prog_compiler_static_CXX='-non_shared'
 
12746
            ;;
 
12747
          *)
 
12748
            ;;
 
12749
        esac
 
12750
        ;;
 
12751
      psos*)
 
12752
        ;;
 
12753
      solaris*)
 
12754
        case $cc_basename in
 
12755
          CC*)
 
12756
            # Sun C++ 4.2, 5.x and Centerline C++
 
12757
            lt_prog_compiler_pic_CXX='-KPIC'
 
12758
            lt_prog_compiler_static_CXX='-Bstatic'
 
12759
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12760
            ;;
 
12761
          gcx*)
 
12762
            # Green Hills C++ Compiler
 
12763
            lt_prog_compiler_pic_CXX='-PIC'
 
12764
            ;;
 
12765
          *)
 
12766
            ;;
 
12767
        esac
 
12768
        ;;
 
12769
      sunos4*)
 
12770
        case $cc_basename in
 
12771
          CC*)
 
12772
            # Sun C++ 4.x
 
12773
            lt_prog_compiler_pic_CXX='-pic'
 
12774
            lt_prog_compiler_static_CXX='-Bstatic'
 
12775
            ;;
 
12776
          lcc*)
 
12777
            # Lucid
 
12778
            lt_prog_compiler_pic_CXX='-pic'
 
12779
            ;;
 
12780
          *)
 
12781
            ;;
 
12782
        esac
 
12783
        ;;
 
12784
      tandem*)
 
12785
        case $cc_basename in
 
12786
          NCC*)
 
12787
            # NonStop-UX NCC 3.20
 
12788
            lt_prog_compiler_pic_CXX='-KPIC'
 
12789
            ;;
 
12790
          *)
 
12791
            ;;
 
12792
        esac
 
12793
        ;;
 
12794
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12795
        case $cc_basename in
 
12796
          CC*)
 
12797
            lt_prog_compiler_wl_CXX='-Wl,'
 
12798
            lt_prog_compiler_pic_CXX='-KPIC'
 
12799
            lt_prog_compiler_static_CXX='-Bstatic'
 
12800
            ;;
 
12801
        esac
 
12802
        ;;
 
12803
      vxworks*)
 
12804
        ;;
 
12805
      *)
 
12806
        lt_prog_compiler_can_build_shared_CXX=no
 
12807
        ;;
 
12808
    esac
 
12809
  fi
 
12810
 
 
12811
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12812
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
12813
 
 
12814
#
 
12815
# Check to make sure the PIC flag actually works.
 
12816
#
 
12817
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12818
 
 
12819
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12820
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
12821
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
12822
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12823
else
 
12824
  lt_cv_prog_compiler_pic_works_CXX=no
 
12825
  ac_outfile=conftest.$ac_objext
 
12826
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12827
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12828
   # Insert the option either (1) after the last *FLAGS variable, or
 
12829
   # (2) before a word containing "conftest.", or (3) at the end.
 
12830
   # Note that $ac_compile itself does not contain backslashes and begins
 
12831
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12832
   # The option is referenced via a variable to avoid confusing sed.
 
12833
   lt_compile=`echo "$ac_compile" | $SED \
 
12834
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12835
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12836
   -e 's:$: $lt_compiler_flag:'`
 
12837
   (eval echo "\"\$as_me:12837: $lt_compile\"" >&5)
 
12838
   (eval "$lt_compile" 2>conftest.err)
 
12839
   ac_status=$?
 
12840
   cat conftest.err >&5
 
12841
   echo "$as_me:12841: \$? = $ac_status" >&5
 
12842
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12843
     # The compiler can only warn and ignore the option if not recognized
 
12844
     # So say no if there are warnings other than the usual output.
 
12845
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12846
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12847
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12848
       lt_cv_prog_compiler_pic_works_CXX=yes
 
12849
     fi
 
12850
   fi
 
12851
   $rm conftest*
 
12852
 
 
12853
fi
 
12854
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
12855
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
12856
 
 
12857
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
12858
    case $lt_prog_compiler_pic_CXX in
 
12859
     "" | " "*) ;;
 
12860
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12861
     esac
 
12862
else
 
12863
    lt_prog_compiler_pic_CXX=
 
12864
     lt_prog_compiler_can_build_shared_CXX=no
 
12865
fi
 
12866
 
 
12867
fi
 
12868
case $host_os in
 
12869
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12870
  *djgpp*)
 
12871
    lt_prog_compiler_pic_CXX=
 
12872
    ;;
 
12873
  *)
 
12874
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12875
    ;;
 
12876
esac
 
12877
 
 
12878
#
 
12879
# Check to make sure the static flag actually works.
 
12880
#
 
12881
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12882
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12883
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
12884
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
12885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12886
else
 
12887
  lt_cv_prog_compiler_static_works_CXX=no
 
12888
   save_LDFLAGS="$LDFLAGS"
 
12889
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12890
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
12891
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12892
     # The linker can only warn and ignore the option if not recognized
 
12893
     # So say no if there are warnings
 
12894
     if test -s conftest.err; then
 
12895
       # Append any errors to the config.log.
 
12896
       cat conftest.err 1>&5
 
12897
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12898
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12899
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12900
         lt_cv_prog_compiler_static_works_CXX=yes
 
12901
       fi
 
12902
     else
 
12903
       lt_cv_prog_compiler_static_works_CXX=yes
 
12904
     fi
 
12905
   fi
 
12906
   $rm -r conftest*
 
12907
   LDFLAGS="$save_LDFLAGS"
 
12908
 
 
12909
fi
 
12910
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
12911
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
12912
 
 
12913
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
12914
    :
 
12915
else
 
12916
    lt_prog_compiler_static_CXX=
 
12917
fi
 
12918
 
 
12919
 
 
12920
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12921
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
12922
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12924
else
 
12925
  lt_cv_prog_compiler_c_o_CXX=no
 
12926
   $rm -r conftest 2>/dev/null
 
12927
   mkdir conftest
 
12928
   cd conftest
 
12929
   mkdir out
 
12930
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12931
 
 
12932
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12933
   # Insert the option either (1) after the last *FLAGS variable, or
 
12934
   # (2) before a word containing "conftest.", or (3) at the end.
 
12935
   # Note that $ac_compile itself does not contain backslashes and begins
 
12936
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12937
   lt_compile=`echo "$ac_compile" | $SED \
 
12938
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12939
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12940
   -e 's:$: $lt_compiler_flag:'`
 
12941
   (eval echo "\"\$as_me:12941: $lt_compile\"" >&5)
 
12942
   (eval "$lt_compile" 2>out/conftest.err)
 
12943
   ac_status=$?
 
12944
   cat out/conftest.err >&5
 
12945
   echo "$as_me:12945: \$? = $ac_status" >&5
 
12946
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12947
   then
 
12948
     # The compiler can only warn and ignore the option if not recognized
 
12949
     # So say no if there are warnings
 
12950
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12951
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12952
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12953
       lt_cv_prog_compiler_c_o_CXX=yes
 
12954
     fi
 
12955
   fi
 
12956
   chmod u+w . 2>&5
 
12957
   $rm conftest*
 
12958
   # SGI C++ compiler will create directory out/ii_files/ for
 
12959
   # template instantiation
 
12960
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12961
   $rm out/* && rmdir out
 
12962
   cd ..
 
12963
   rmdir conftest
 
12964
   $rm conftest*
 
12965
 
 
12966
fi
 
12967
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12968
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
12969
 
 
12970
 
 
12971
hard_links="nottested"
 
12972
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12973
  # do not overwrite the value of need_locks provided by the user
 
12974
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12975
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
12976
  hard_links=yes
 
12977
  $rm conftest*
 
12978
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12979
  touch conftest.a
 
12980
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12981
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12982
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
12983
echo "${ECHO_T}$hard_links" >&6; }
 
12984
  if test "$hard_links" = no; then
 
12985
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12986
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12987
    need_locks=warn
 
12988
  fi
 
12989
else
 
12990
  need_locks=no
 
12991
fi
 
12992
 
 
12993
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12994
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
12995
 
 
12996
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12997
  case $host_os in
 
12998
  aix[4-9]*)
 
12999
    # If we're using GNU nm, then we don't want the "-C" option.
 
13000
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13001
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13002
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
13003
    else
 
13004
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
13005
    fi
 
13006
    ;;
 
13007
  pw32*)
 
13008
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13009
  ;;
 
13010
  cygwin* | mingw*)
 
13011
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
13012
  ;;
 
13013
  linux* | k*bsd*-gnu)
 
13014
    link_all_deplibs_CXX=no
 
13015
  ;;
 
13016
  *)
 
13017
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13018
  ;;
 
13019
  esac
 
13020
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
13021
 
 
13022
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13023
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
13024
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13025
 
 
13026
#
 
13027
# Do we need to explicitly link libc?
 
13028
#
 
13029
case "x$archive_cmds_need_lc_CXX" in
 
13030
x|xyes)
 
13031
  # Assume -lc should be added
 
13032
  archive_cmds_need_lc_CXX=yes
 
13033
 
 
13034
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13035
    case $archive_cmds_CXX in
 
13036
    *'~'*)
 
13037
      # FIXME: we may have to deal with multi-command sequences.
 
13038
      ;;
 
13039
    '$CC '*)
 
13040
      # Test whether the compiler implicitly links with -lc since on some
 
13041
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13042
      # to ld, don't add -lc before -lgcc.
 
13043
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13044
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
13045
      $rm conftest*
 
13046
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13047
 
 
13048
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13049
  (eval $ac_compile) 2>&5
 
13050
  ac_status=$?
 
13051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13052
  (exit $ac_status); } 2>conftest.err; then
 
13053
        soname=conftest
 
13054
        lib=conftest
 
13055
        libobjs=conftest.$ac_objext
 
13056
        deplibs=
 
13057
        wl=$lt_prog_compiler_wl_CXX
 
13058
        pic_flag=$lt_prog_compiler_pic_CXX
 
13059
        compiler_flags=-v
 
13060
        linker_flags=-v
 
13061
        verstring=
 
13062
        output_objdir=.
 
13063
        libname=conftest
 
13064
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13065
        allow_undefined_flag_CXX=
 
13066
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13067
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13068
  ac_status=$?
 
13069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13070
  (exit $ac_status); }
 
13071
        then
 
13072
          archive_cmds_need_lc_CXX=no
 
13073
        else
 
13074
          archive_cmds_need_lc_CXX=yes
 
13075
        fi
 
13076
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13077
      else
 
13078
        cat conftest.err 1>&5
 
13079
      fi
 
13080
      $rm conftest*
 
13081
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13082
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
13083
      ;;
 
13084
    esac
 
13085
  fi
 
13086
  ;;
 
13087
esac
 
13088
 
 
13089
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13090
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
13091
library_names_spec=
 
13092
libname_spec='lib$name'
 
13093
soname_spec=
 
13094
shrext_cmds=".so"
 
13095
postinstall_cmds=
 
13096
postuninstall_cmds=
 
13097
finish_cmds=
 
13098
finish_eval=
 
13099
shlibpath_var=
 
13100
shlibpath_overrides_runpath=unknown
 
13101
version_type=none
 
13102
dynamic_linker="$host_os ld.so"
 
13103
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13104
 
 
13105
need_lib_prefix=unknown
 
13106
hardcode_into_libs=no
 
13107
 
 
13108
# when you set need_version to no, make sure it does not cause -set_version
 
13109
# flags to be left without arguments
 
13110
need_version=unknown
 
13111
 
 
13112
case $host_os in
 
13113
aix3*)
 
13114
  version_type=linux
 
13115
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13116
  shlibpath_var=LIBPATH
 
13117
 
 
13118
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13119
  soname_spec='${libname}${release}${shared_ext}$major'
 
13120
  ;;
 
13121
 
 
13122
aix[4-9]*)
 
13123
  version_type=linux
 
13124
  need_lib_prefix=no
 
13125
  need_version=no
 
13126
  hardcode_into_libs=yes
 
13127
  if test "$host_cpu" = ia64; then
 
13128
    # AIX 5 supports IA64
 
13129
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13130
    shlibpath_var=LD_LIBRARY_PATH
 
13131
  else
 
13132
    # With GCC up to 2.95.x, collect2 would create an import file
 
13133
    # for dependence libraries.  The import file would start with
 
13134
    # the line `#! .'.  This would cause the generated library to
 
13135
    # depend on `.', always an invalid library.  This was fixed in
 
13136
    # development snapshots of GCC prior to 3.0.
 
13137
    case $host_os in
 
13138
      aix4 | aix4.[01] | aix4.[01].*)
 
13139
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13140
           echo ' yes '
 
13141
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13142
        :
 
13143
      else
 
13144
        can_build_shared=no
 
13145
      fi
 
13146
      ;;
 
13147
    esac
 
13148
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13149
    # soname into executable. Probably we can add versioning support to
 
13150
    # collect2, so additional links can be useful in future.
 
13151
    if test "$aix_use_runtimelinking" = yes; then
 
13152
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13153
      # instead of lib<name>.a to let people know that these are not
 
13154
      # typical AIX shared libraries.
 
13155
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13156
    else
 
13157
      # We preserve .a as extension for shared libraries through AIX4.2
 
13158
      # and later when we are not doing run time linking.
 
13159
      library_names_spec='${libname}${release}.a $libname.a'
 
13160
      soname_spec='${libname}${release}${shared_ext}$major'
 
13161
    fi
 
13162
    shlibpath_var=LIBPATH
 
13163
  fi
 
13164
  ;;
 
13165
 
 
13166
amigaos*)
 
13167
  library_names_spec='$libname.ixlibrary $libname.a'
 
13168
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13169
  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'
 
13170
  ;;
 
13171
 
 
13172
beos*)
 
13173
  library_names_spec='${libname}${shared_ext}'
 
13174
  dynamic_linker="$host_os ld.so"
 
13175
  shlibpath_var=LIBRARY_PATH
 
13176
  ;;
 
13177
 
 
13178
bsdi[45]*)
 
13179
  version_type=linux
 
13180
  need_version=no
 
13181
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13182
  soname_spec='${libname}${release}${shared_ext}$major'
 
13183
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13184
  shlibpath_var=LD_LIBRARY_PATH
 
13185
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13186
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13187
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13188
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13189
  # libtool to hard-code these into programs
 
13190
  ;;
 
13191
 
 
13192
cygwin* | mingw* | pw32*)
 
13193
  version_type=windows
 
13194
  shrext_cmds=".dll"
 
13195
  need_version=no
 
13196
  need_lib_prefix=no
 
13197
 
 
13198
  case $GCC,$host_os in
 
13199
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13200
    library_names_spec='$libname.dll.a'
 
13201
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13202
    postinstall_cmds='base_file=`basename \${file}`~
 
13203
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13204
      dldir=$destdir/`dirname \$dlpath`~
 
13205
      test -d \$dldir || mkdir -p \$dldir~
 
13206
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13207
      chmod a+x \$dldir/$dlname'
 
13208
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13209
      dlpath=$dir/\$dldll~
 
13210
       $rm \$dlpath'
 
13211
    shlibpath_overrides_runpath=yes
 
13212
 
 
13213
    case $host_os in
 
13214
    cygwin*)
 
13215
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13216
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13217
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13218
      ;;
 
13219
    mingw*)
 
13220
      # MinGW DLLs use traditional 'lib' prefix
 
13221
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13222
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13223
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13224
        # It is most probably a Windows format PATH printed by
 
13225
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13226
        # path with ; separators, and with drive letters. We can handle the
 
13227
        # drive letters (cygwin fileutils understands them), so leave them,
 
13228
        # especially as we might pass files found there to a mingw objdump,
 
13229
        # which wouldn't understand a cygwinified path. Ahh.
 
13230
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13231
      else
 
13232
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13233
      fi
 
13234
      ;;
 
13235
    pw32*)
 
13236
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13237
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13238
      ;;
 
13239
    esac
 
13240
    ;;
 
13241
 
 
13242
  *)
 
13243
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13244
    ;;
 
13245
  esac
 
13246
  dynamic_linker='Win32 ld.exe'
 
13247
  # FIXME: first we should search . and the directory the executable is in
 
13248
  shlibpath_var=PATH
 
13249
  ;;
 
13250
 
 
13251
darwin* | rhapsody*)
 
13252
  dynamic_linker="$host_os dyld"
 
13253
  version_type=darwin
 
13254
  need_lib_prefix=no
 
13255
  need_version=no
 
13256
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13257
  soname_spec='${libname}${release}${major}$shared_ext'
 
13258
  shlibpath_overrides_runpath=yes
 
13259
  shlibpath_var=DYLD_LIBRARY_PATH
 
13260
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13261
 
 
13262
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13263
  ;;
 
13264
 
 
13265
dgux*)
 
13266
  version_type=linux
 
13267
  need_lib_prefix=no
 
13268
  need_version=no
 
13269
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13270
  soname_spec='${libname}${release}${shared_ext}$major'
 
13271
  shlibpath_var=LD_LIBRARY_PATH
 
13272
  ;;
 
13273
 
 
13274
freebsd1*)
 
13275
  dynamic_linker=no
 
13276
  ;;
 
13277
 
 
13278
freebsd* | dragonfly*)
 
13279
  # DragonFly does not have aout.  When/if they implement a new
 
13280
  # versioning mechanism, adjust this.
 
13281
  if test -x /usr/bin/objformat; then
 
13282
    objformat=`/usr/bin/objformat`
 
13283
  else
 
13284
    case $host_os in
 
13285
    freebsd[123]*) objformat=aout ;;
 
13286
    *) objformat=elf ;;
 
13287
    esac
 
13288
  fi
 
13289
  version_type=freebsd-$objformat
 
13290
  case $version_type in
 
13291
    freebsd-elf*)
 
13292
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13293
      need_version=no
 
13294
      need_lib_prefix=no
 
13295
      ;;
 
13296
    freebsd-*)
 
13297
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13298
      need_version=yes
 
13299
      ;;
 
13300
  esac
 
13301
  shlibpath_var=LD_LIBRARY_PATH
 
13302
  case $host_os in
 
13303
  freebsd2*)
 
13304
    shlibpath_overrides_runpath=yes
 
13305
    ;;
 
13306
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13307
    shlibpath_overrides_runpath=yes
 
13308
    hardcode_into_libs=yes
 
13309
    ;;
 
13310
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13311
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13312
    shlibpath_overrides_runpath=no
 
13313
    hardcode_into_libs=yes
 
13314
    ;;
 
13315
  *) # from 4.6 on, and DragonFly
 
13316
    shlibpath_overrides_runpath=yes
 
13317
    hardcode_into_libs=yes
 
13318
    ;;
 
13319
  esac
 
13320
  ;;
 
13321
 
 
13322
gnu*)
 
13323
  version_type=linux
 
13324
  need_lib_prefix=no
 
13325
  need_version=no
 
13326
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13327
  soname_spec='${libname}${release}${shared_ext}$major'
 
13328
  shlibpath_var=LD_LIBRARY_PATH
 
13329
  hardcode_into_libs=yes
 
13330
  ;;
 
13331
 
 
13332
hpux9* | hpux10* | hpux11*)
 
13333
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13334
  # link against other versions.
 
13335
  version_type=sunos
 
13336
  need_lib_prefix=no
 
13337
  need_version=no
 
13338
  case $host_cpu in
 
13339
  ia64*)
 
13340
    shrext_cmds='.so'
 
13341
    hardcode_into_libs=yes
 
13342
    dynamic_linker="$host_os dld.so"
 
13343
    shlibpath_var=LD_LIBRARY_PATH
 
13344
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13345
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13346
    soname_spec='${libname}${release}${shared_ext}$major'
 
13347
    if test "X$HPUX_IA64_MODE" = X32; then
 
13348
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13349
    else
 
13350
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13351
    fi
 
13352
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13353
    ;;
 
13354
   hppa*64*)
 
13355
     shrext_cmds='.sl'
 
13356
     hardcode_into_libs=yes
 
13357
     dynamic_linker="$host_os dld.sl"
 
13358
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13359
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13360
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13361
     soname_spec='${libname}${release}${shared_ext}$major'
 
13362
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13363
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13364
     ;;
 
13365
   *)
 
13366
    shrext_cmds='.sl'
 
13367
    dynamic_linker="$host_os dld.sl"
 
13368
    shlibpath_var=SHLIB_PATH
 
13369
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13370
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13371
    soname_spec='${libname}${release}${shared_ext}$major'
 
13372
    ;;
 
13373
  esac
 
13374
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13375
  postinstall_cmds='chmod 555 $lib'
 
13376
  ;;
 
13377
 
 
13378
interix[3-9]*)
 
13379
  version_type=linux
 
13380
  need_lib_prefix=no
 
13381
  need_version=no
 
13382
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13383
  soname_spec='${libname}${release}${shared_ext}$major'
 
13384
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13385
  shlibpath_var=LD_LIBRARY_PATH
 
13386
  shlibpath_overrides_runpath=no
 
13387
  hardcode_into_libs=yes
 
13388
  ;;
 
13389
 
 
13390
irix5* | irix6* | nonstopux*)
 
13391
  case $host_os in
 
13392
    nonstopux*) version_type=nonstopux ;;
 
13393
    *)
 
13394
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13395
                version_type=linux
 
13396
        else
 
13397
                version_type=irix
 
13398
        fi ;;
 
13399
  esac
 
13400
  need_lib_prefix=no
 
13401
  need_version=no
 
13402
  soname_spec='${libname}${release}${shared_ext}$major'
 
13403
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13404
  case $host_os in
 
13405
  irix5* | nonstopux*)
 
13406
    libsuff= shlibsuff=
 
13407
    ;;
 
13408
  *)
 
13409
    case $LD in # libtool.m4 will add one of these switches to LD
 
13410
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13411
      libsuff= shlibsuff= libmagic=32-bit;;
 
13412
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13413
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13414
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13415
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13416
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13417
    esac
 
13418
    ;;
 
13419
  esac
 
13420
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13421
  shlibpath_overrides_runpath=no
 
13422
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13423
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13424
  hardcode_into_libs=yes
 
13425
  ;;
 
13426
 
 
13427
# No shared lib support for Linux oldld, aout, or coff.
 
13428
linux*oldld* | linux*aout* | linux*coff*)
 
13429
  dynamic_linker=no
 
13430
  ;;
 
13431
 
 
13432
# This must be Linux ELF.
 
13433
linux* | k*bsd*-gnu)
 
13434
  version_type=linux
 
13435
  need_lib_prefix=no
 
13436
  need_version=no
 
13437
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13438
  soname_spec='${libname}${release}${shared_ext}$major'
 
13439
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13440
  shlibpath_var=LD_LIBRARY_PATH
 
13441
  shlibpath_overrides_runpath=no
 
13442
  # This implies no fast_install, which is unacceptable.
 
13443
  # Some rework will be needed to allow for fast_install
 
13444
  # before this can be enabled.
 
13445
  hardcode_into_libs=yes
 
13446
 
 
13447
  # Append ld.so.conf contents to the search path
 
13448
  if test -f /etc/ld.so.conf; then
 
13449
    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' ' '`
 
13450
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13451
  fi
 
13452
 
 
13453
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13454
  # powerpc, because MkLinux only supported shared libraries with the
 
13455
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13456
  # most powerpc-linux boxes support dynamic linking these days and
 
13457
  # people can always --disable-shared, the test was removed, and we
 
13458
  # assume the GNU/Linux dynamic linker is in use.
 
13459
  dynamic_linker='GNU/Linux ld.so'
 
13460
  ;;
 
13461
 
 
13462
netbsdelf*-gnu)
 
13463
  version_type=linux
 
13464
  need_lib_prefix=no
 
13465
  need_version=no
 
13466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13467
  soname_spec='${libname}${release}${shared_ext}$major'
 
13468
  shlibpath_var=LD_LIBRARY_PATH
 
13469
  shlibpath_overrides_runpath=no
 
13470
  hardcode_into_libs=yes
 
13471
  dynamic_linker='NetBSD ld.elf_so'
 
13472
  ;;
 
13473
 
 
13474
netbsd*)
 
13475
  version_type=sunos
 
13476
  need_lib_prefix=no
 
13477
  need_version=no
 
13478
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13479
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13480
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13481
    dynamic_linker='NetBSD (a.out) ld.so'
 
13482
  else
 
13483
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13484
    soname_spec='${libname}${release}${shared_ext}$major'
 
13485
    dynamic_linker='NetBSD ld.elf_so'
 
13486
  fi
 
13487
  shlibpath_var=LD_LIBRARY_PATH
 
13488
  shlibpath_overrides_runpath=yes
 
13489
  hardcode_into_libs=yes
 
13490
  ;;
 
13491
 
 
13492
newsos6)
 
13493
  version_type=linux
 
13494
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13495
  shlibpath_var=LD_LIBRARY_PATH
 
13496
  shlibpath_overrides_runpath=yes
 
13497
  ;;
 
13498
 
 
13499
nto-qnx*)
 
13500
  version_type=linux
 
13501
  need_lib_prefix=no
 
13502
  need_version=no
 
13503
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13504
  soname_spec='${libname}${release}${shared_ext}$major'
 
13505
  shlibpath_var=LD_LIBRARY_PATH
 
13506
  shlibpath_overrides_runpath=yes
 
13507
  ;;
 
13508
 
 
13509
openbsd*)
 
13510
  version_type=sunos
 
13511
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13512
  need_lib_prefix=no
 
13513
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13514
  case $host_os in
 
13515
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13516
    *)                         need_version=no  ;;
 
13517
  esac
 
13518
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13519
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13520
  shlibpath_var=LD_LIBRARY_PATH
 
13521
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13522
    case $host_os in
 
13523
      openbsd2.[89] | openbsd2.[89].*)
 
13524
        shlibpath_overrides_runpath=no
 
13525
        ;;
 
13526
      *)
 
13527
        shlibpath_overrides_runpath=yes
 
13528
        ;;
 
13529
      esac
 
13530
  else
 
13531
    shlibpath_overrides_runpath=yes
 
13532
  fi
 
13533
  ;;
 
13534
 
 
13535
os2*)
 
13536
  libname_spec='$name'
 
13537
  shrext_cmds=".dll"
 
13538
  need_lib_prefix=no
 
13539
  library_names_spec='$libname${shared_ext} $libname.a'
 
13540
  dynamic_linker='OS/2 ld.exe'
 
13541
  shlibpath_var=LIBPATH
 
13542
  ;;
 
13543
 
 
13544
osf3* | osf4* | osf5*)
 
13545
  version_type=osf
 
13546
  need_lib_prefix=no
 
13547
  need_version=no
 
13548
  soname_spec='${libname}${release}${shared_ext}$major'
 
13549
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13550
  shlibpath_var=LD_LIBRARY_PATH
 
13551
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13552
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13553
  ;;
 
13554
 
 
13555
rdos*)
 
13556
  dynamic_linker=no
 
13557
  ;;
 
13558
 
 
13559
solaris*)
 
13560
  version_type=linux
 
13561
  need_lib_prefix=no
 
13562
  need_version=no
 
13563
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13564
  soname_spec='${libname}${release}${shared_ext}$major'
 
13565
  shlibpath_var=LD_LIBRARY_PATH
 
13566
  shlibpath_overrides_runpath=yes
 
13567
  hardcode_into_libs=yes
 
13568
  # ldd complains unless libraries are executable
 
13569
  postinstall_cmds='chmod +x $lib'
 
13570
  ;;
 
13571
 
 
13572
sunos4*)
 
13573
  version_type=sunos
 
13574
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13575
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13576
  shlibpath_var=LD_LIBRARY_PATH
 
13577
  shlibpath_overrides_runpath=yes
 
13578
  if test "$with_gnu_ld" = yes; then
 
13579
    need_lib_prefix=no
 
13580
  fi
 
13581
  need_version=yes
 
13582
  ;;
 
13583
 
 
13584
sysv4 | sysv4.3*)
 
13585
  version_type=linux
 
13586
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13587
  soname_spec='${libname}${release}${shared_ext}$major'
 
13588
  shlibpath_var=LD_LIBRARY_PATH
 
13589
  case $host_vendor in
 
13590
    sni)
 
13591
      shlibpath_overrides_runpath=no
 
13592
      need_lib_prefix=no
 
13593
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13594
      runpath_var=LD_RUN_PATH
 
13595
      ;;
 
13596
    siemens)
 
13597
      need_lib_prefix=no
 
13598
      ;;
 
13599
    motorola)
 
13600
      need_lib_prefix=no
 
13601
      need_version=no
 
13602
      shlibpath_overrides_runpath=no
 
13603
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13604
      ;;
 
13605
  esac
 
13606
  ;;
 
13607
 
 
13608
sysv4*MP*)
 
13609
  if test -d /usr/nec ;then
 
13610
    version_type=linux
 
13611
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13612
    soname_spec='$libname${shared_ext}.$major'
 
13613
    shlibpath_var=LD_LIBRARY_PATH
 
13614
  fi
 
13615
  ;;
 
13616
 
 
13617
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13618
  version_type=freebsd-elf
 
13619
  need_lib_prefix=no
 
13620
  need_version=no
 
13621
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13622
  soname_spec='${libname}${release}${shared_ext}$major'
 
13623
  shlibpath_var=LD_LIBRARY_PATH
 
13624
  hardcode_into_libs=yes
 
13625
  if test "$with_gnu_ld" = yes; then
 
13626
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13627
    shlibpath_overrides_runpath=no
 
13628
  else
 
13629
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13630
    shlibpath_overrides_runpath=yes
 
13631
    case $host_os in
 
13632
      sco3.2v5*)
 
13633
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13634
        ;;
 
13635
    esac
 
13636
  fi
 
13637
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13638
  ;;
 
13639
 
 
13640
uts4*)
 
13641
  version_type=linux
 
13642
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13643
  soname_spec='${libname}${release}${shared_ext}$major'
 
13644
  shlibpath_var=LD_LIBRARY_PATH
 
13645
  ;;
 
13646
 
 
13647
*)
 
13648
  dynamic_linker=no
 
13649
  ;;
 
13650
esac
 
13651
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13652
echo "${ECHO_T}$dynamic_linker" >&6; }
 
13653
test "$dynamic_linker" = no && can_build_shared=no
 
13654
 
 
13655
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
13656
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13657
else
 
13658
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
13659
fi
 
13660
 
 
13661
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
13662
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
13663
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13664
else
 
13665
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
13666
fi
 
13667
 
 
13668
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
13669
 
 
13670
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13671
if test "$GCC" = yes; then
 
13672
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13673
fi
 
13674
 
 
13675
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13676
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
13677
hardcode_action_CXX=
 
13678
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13679
   test -n "$runpath_var_CXX" || \
 
13680
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13681
 
 
13682
  # We can hardcode non-existant directories.
 
13683
  if test "$hardcode_direct_CXX" != no &&
 
13684
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13685
     # have to relink, otherwise we might link with an installed library
 
13686
     # when we should be linking with a yet-to-be-installed one
 
13687
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13688
     test "$hardcode_minus_L_CXX" != no; then
 
13689
    # Linking always hardcodes the temporary library directory.
 
13690
    hardcode_action_CXX=relink
 
13691
  else
 
13692
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13693
    hardcode_action_CXX=immediate
 
13694
  fi
 
13695
else
 
13696
  # We cannot hardcode anything, or else we can only hardcode existing
 
13697
  # directories.
 
13698
  hardcode_action_CXX=unsupported
 
13699
fi
 
13700
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13701
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
13702
 
 
13703
if test "$hardcode_action_CXX" = relink; then
 
13704
  # Fast installation is not supported
 
13705
  enable_fast_install=no
 
13706
elif test "$shlibpath_overrides_runpath" = yes ||
 
13707
     test "$enable_shared" = no; then
 
13708
  # Fast installation is not necessary
 
13709
  enable_fast_install=needless
 
13710
fi
 
13711
 
 
13712
 
 
13713
# The else clause should only fire when bootstrapping the
 
13714
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13715
# with your package, and you will get complaints that there are
 
13716
# no rules to generate ltmain.sh.
 
13717
if test -f "$ltmain"; then
 
13718
  # See if we are running on zsh, and set the options which allow our commands through
 
13719
  # without removal of \ escapes.
 
13720
  if test -n "${ZSH_VERSION+set}" ; then
 
13721
    setopt NO_GLOB_SUBST
 
13722
  fi
 
13723
  # Now quote all the things that may contain metacharacters while being
 
13724
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13725
  # variables and quote the copies for generation of the libtool script.
 
13726
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13727
    SED SHELL STRIP \
 
13728
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13729
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13730
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13731
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13732
    lt_cv_sys_global_symbol_to_c_name_address \
 
13733
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13734
    old_postinstall_cmds old_postuninstall_cmds \
 
13735
    compiler_CXX \
 
13736
    CC_CXX \
 
13737
    LD_CXX \
 
13738
    lt_prog_compiler_wl_CXX \
 
13739
    lt_prog_compiler_pic_CXX \
 
13740
    lt_prog_compiler_static_CXX \
 
13741
    lt_prog_compiler_no_builtin_flag_CXX \
 
13742
    export_dynamic_flag_spec_CXX \
 
13743
    thread_safe_flag_spec_CXX \
 
13744
    whole_archive_flag_spec_CXX \
 
13745
    enable_shared_with_static_runtimes_CXX \
 
13746
    old_archive_cmds_CXX \
 
13747
    old_archive_from_new_cmds_CXX \
 
13748
    predep_objects_CXX \
 
13749
    postdep_objects_CXX \
 
13750
    predeps_CXX \
 
13751
    postdeps_CXX \
 
13752
    compiler_lib_search_path_CXX \
 
13753
    compiler_lib_search_dirs_CXX \
 
13754
    archive_cmds_CXX \
 
13755
    archive_expsym_cmds_CXX \
 
13756
    postinstall_cmds_CXX \
 
13757
    postuninstall_cmds_CXX \
 
13758
    old_archive_from_expsyms_cmds_CXX \
 
13759
    allow_undefined_flag_CXX \
 
13760
    no_undefined_flag_CXX \
 
13761
    export_symbols_cmds_CXX \
 
13762
    hardcode_libdir_flag_spec_CXX \
 
13763
    hardcode_libdir_flag_spec_ld_CXX \
 
13764
    hardcode_libdir_separator_CXX \
 
13765
    hardcode_automatic_CXX \
 
13766
    module_cmds_CXX \
 
13767
    module_expsym_cmds_CXX \
 
13768
    lt_cv_prog_compiler_c_o_CXX \
 
13769
    fix_srcfile_path_CXX \
 
13770
    exclude_expsyms_CXX \
 
13771
    include_expsyms_CXX; do
 
13772
 
 
13773
    case $var in
 
13774
    old_archive_cmds_CXX | \
 
13775
    old_archive_from_new_cmds_CXX | \
 
13776
    archive_cmds_CXX | \
 
13777
    archive_expsym_cmds_CXX | \
 
13778
    module_cmds_CXX | \
 
13779
    module_expsym_cmds_CXX | \
 
13780
    old_archive_from_expsyms_cmds_CXX | \
 
13781
    export_symbols_cmds_CXX | \
 
13782
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13783
    postinstall_cmds | postuninstall_cmds | \
 
13784
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13785
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13786
      # Double-quote double-evaled strings.
 
13787
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13788
      ;;
 
13789
    *)
 
13790
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13791
      ;;
 
13792
    esac
 
13793
  done
 
13794
 
 
13795
  case $lt_echo in
 
13796
  *'\$0 --fallback-echo"')
 
13797
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13798
    ;;
 
13799
  esac
 
13800
 
 
13801
cfgfile="$ofile"
 
13802
 
 
13803
  cat <<__EOF__ >> "$cfgfile"
 
13804
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13805
 
 
13806
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13807
 
 
13808
# Shell to use when invoking shell scripts.
 
13809
SHELL=$lt_SHELL
 
13810
 
 
13811
# Whether or not to build shared libraries.
 
13812
build_libtool_libs=$enable_shared
 
13813
 
 
13814
# Whether or not to build static libraries.
 
13815
build_old_libs=$enable_static
 
13816
 
 
13817
# Whether or not to add -lc for building shared libraries.
 
13818
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13819
 
 
13820
# Whether or not to disallow shared libs when runtime libs are static
 
13821
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13822
 
 
13823
# Whether or not to optimize for fast installation.
 
13824
fast_install=$enable_fast_install
 
13825
 
 
13826
# The host system.
 
13827
host_alias=$host_alias
 
13828
host=$host
 
13829
host_os=$host_os
 
13830
 
 
13831
# The build system.
 
13832
build_alias=$build_alias
 
13833
build=$build
 
13834
build_os=$build_os
 
13835
 
 
13836
# An echo program that does not interpret backslashes.
 
13837
echo=$lt_echo
 
13838
 
 
13839
# The archiver.
 
13840
AR=$lt_AR
 
13841
AR_FLAGS=$lt_AR_FLAGS
 
13842
 
 
13843
# A C compiler.
 
13844
LTCC=$lt_LTCC
 
13845
 
 
13846
# LTCC compiler flags.
 
13847
LTCFLAGS=$lt_LTCFLAGS
 
13848
 
 
13849
# A language-specific compiler.
 
13850
CC=$lt_compiler_CXX
 
13851
 
 
13852
# Is the compiler the GNU C compiler?
 
13853
with_gcc=$GCC_CXX
 
13854
 
 
13855
# An ERE matcher.
 
13856
EGREP=$lt_EGREP
 
13857
 
 
13858
# The linker used to build libraries.
 
13859
LD=$lt_LD_CXX
 
13860
 
 
13861
# Whether we need hard or soft links.
 
13862
LN_S=$lt_LN_S
 
13863
 
 
13864
# A BSD-compatible nm program.
 
13865
NM=$lt_NM
 
13866
 
 
13867
# A symbol stripping program
 
13868
STRIP=$lt_STRIP
 
13869
 
 
13870
# Used to examine libraries when file_magic_cmd begins "file"
 
13871
MAGIC_CMD=$MAGIC_CMD
 
13872
 
 
13873
# Used on cygwin: DLL creation program.
 
13874
DLLTOOL="$DLLTOOL"
 
13875
 
 
13876
# Used on cygwin: object dumper.
 
13877
OBJDUMP="$OBJDUMP"
 
13878
 
 
13879
# Used on cygwin: assembler.
 
13880
AS="$AS"
 
13881
 
 
13882
# The name of the directory that contains temporary libtool files.
 
13883
objdir=$objdir
 
13884
 
 
13885
# How to create reloadable object files.
 
13886
reload_flag=$lt_reload_flag
 
13887
reload_cmds=$lt_reload_cmds
 
13888
 
 
13889
# How to pass a linker flag through the compiler.
 
13890
wl=$lt_lt_prog_compiler_wl_CXX
 
13891
 
 
13892
# Object file suffix (normally "o").
 
13893
objext="$ac_objext"
 
13894
 
 
13895
# Old archive suffix (normally "a").
 
13896
libext="$libext"
 
13897
 
 
13898
# Shared library suffix (normally ".so").
 
13899
shrext_cmds='$shrext_cmds'
 
13900
 
 
13901
# Executable file suffix (normally "").
 
13902
exeext="$exeext"
 
13903
 
 
13904
# Additional compiler flags for building library objects.
 
13905
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13906
pic_mode=$pic_mode
 
13907
 
 
13908
# What is the maximum length of a command?
 
13909
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13910
 
 
13911
# Does compiler simultaneously support -c and -o options?
 
13912
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13913
 
 
13914
# Must we lock files when doing compilation?
 
13915
need_locks=$lt_need_locks
 
13916
 
 
13917
# Do we need the lib prefix for modules?
 
13918
need_lib_prefix=$need_lib_prefix
 
13919
 
 
13920
# Do we need a version for libraries?
 
13921
need_version=$need_version
 
13922
 
 
13923
# Whether dlopen is supported.
 
13924
dlopen_support=$enable_dlopen
 
13925
 
 
13926
# Whether dlopen of programs is supported.
 
13927
dlopen_self=$enable_dlopen_self
 
13928
 
 
13929
# Whether dlopen of statically linked programs is supported.
 
13930
dlopen_self_static=$enable_dlopen_self_static
 
13931
 
 
13932
# Compiler flag to prevent dynamic linking.
 
13933
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13934
 
 
13935
# Compiler flag to turn off builtin functions.
 
13936
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13937
 
 
13938
# Compiler flag to allow reflexive dlopens.
 
13939
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13940
 
 
13941
# Compiler flag to generate shared objects directly from archives.
 
13942
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13943
 
 
13944
# Compiler flag to generate thread-safe objects.
 
13945
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13946
 
 
13947
# Library versioning type.
 
13948
version_type=$version_type
 
13949
 
 
13950
# Format of library name prefix.
 
13951
libname_spec=$lt_libname_spec
 
13952
 
 
13953
# List of archive names.  First name is the real one, the rest are links.
 
13954
# The last name is the one that the linker finds with -lNAME.
 
13955
library_names_spec=$lt_library_names_spec
 
13956
 
 
13957
# The coded name of the library, if different from the real name.
 
13958
soname_spec=$lt_soname_spec
 
13959
 
 
13960
# Commands used to build and install an old-style archive.
 
13961
RANLIB=$lt_RANLIB
 
13962
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13963
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13964
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13965
 
 
13966
# Create an old-style archive from a shared archive.
 
13967
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13968
 
 
13969
# Create a temporary old-style archive to link instead of a shared archive.
 
13970
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13971
 
 
13972
# Commands used to build and install a shared archive.
 
13973
archive_cmds=$lt_archive_cmds_CXX
 
13974
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13975
postinstall_cmds=$lt_postinstall_cmds
 
13976
postuninstall_cmds=$lt_postuninstall_cmds
 
13977
 
 
13978
# Commands used to build a loadable module (assumed same as above if empty)
 
13979
module_cmds=$lt_module_cmds_CXX
 
13980
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13981
 
 
13982
# Commands to strip libraries.
 
13983
old_striplib=$lt_old_striplib
 
13984
striplib=$lt_striplib
 
13985
 
 
13986
# Dependencies to place before the objects being linked to create a
 
13987
# shared library.
 
13988
predep_objects=$lt_predep_objects_CXX
 
13989
 
 
13990
# Dependencies to place after the objects being linked to create a
 
13991
# shared library.
 
13992
postdep_objects=$lt_postdep_objects_CXX
 
13993
 
 
13994
# Dependencies to place before the objects being linked to create a
 
13995
# shared library.
 
13996
predeps=$lt_predeps_CXX
 
13997
 
 
13998
# Dependencies to place after the objects being linked to create a
 
13999
# shared library.
 
14000
postdeps=$lt_postdeps_CXX
 
14001
 
 
14002
# The directories searched by this compiler when creating a shared
 
14003
# library
 
14004
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
14005
 
 
14006
# The library search path used internally by the compiler when linking
 
14007
# a shared library.
 
14008
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14009
 
 
14010
# Method to check whether dependent libraries are shared objects.
 
14011
deplibs_check_method=$lt_deplibs_check_method
 
14012
 
 
14013
# Command to use when deplibs_check_method == file_magic.
 
14014
file_magic_cmd=$lt_file_magic_cmd
 
14015
 
 
14016
# Flag that allows shared libraries with undefined symbols to be built.
 
14017
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14018
 
 
14019
# Flag that forces no undefined symbols.
 
14020
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14021
 
 
14022
# Commands used to finish a libtool library installation in a directory.
 
14023
finish_cmds=$lt_finish_cmds
 
14024
 
 
14025
# Same as above, but a single script fragment to be evaled but not shown.
 
14026
finish_eval=$lt_finish_eval
 
14027
 
 
14028
# Take the output of nm and produce a listing of raw symbols and C names.
 
14029
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14030
 
 
14031
# Transform the output of nm in a proper C declaration
 
14032
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14033
 
 
14034
# Transform the output of nm in a C name address pair
 
14035
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14036
 
 
14037
# This is the shared library runtime path variable.
 
14038
runpath_var=$runpath_var
 
14039
 
 
14040
# This is the shared library path variable.
 
14041
shlibpath_var=$shlibpath_var
 
14042
 
 
14043
# Is shlibpath searched before the hard-coded library search path?
 
14044
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14045
 
 
14046
# How to hardcode a shared library path into an executable.
 
14047
hardcode_action=$hardcode_action_CXX
 
14048
 
 
14049
# Whether we should hardcode library paths into libraries.
 
14050
hardcode_into_libs=$hardcode_into_libs
 
14051
 
 
14052
# Flag to hardcode \$libdir into a binary during linking.
 
14053
# This must work even if \$libdir does not exist.
 
14054
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14055
 
 
14056
# If ld is used when linking, flag to hardcode \$libdir into
 
14057
# a binary during linking. This must work even if \$libdir does
 
14058
# not exist.
 
14059
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14060
 
 
14061
# Whether we need a single -rpath flag with a separated argument.
 
14062
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14063
 
 
14064
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14065
# resulting binary.
 
14066
hardcode_direct=$hardcode_direct_CXX
 
14067
 
 
14068
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14069
# resulting binary.
 
14070
hardcode_minus_L=$hardcode_minus_L_CXX
 
14071
 
 
14072
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14073
# the resulting binary.
 
14074
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14075
 
 
14076
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14077
# and all subsequent libraries and executables linked against it.
 
14078
hardcode_automatic=$hardcode_automatic_CXX
 
14079
 
 
14080
# Variables whose values should be saved in libtool wrapper scripts and
 
14081
# restored at relink time.
 
14082
variables_saved_for_relink="$variables_saved_for_relink"
 
14083
 
 
14084
# Whether libtool must link a program against all its dependency libraries.
 
14085
link_all_deplibs=$link_all_deplibs_CXX
 
14086
 
 
14087
# Compile-time system search path for libraries
 
14088
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14089
 
 
14090
# Run-time system search path for libraries
 
14091
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14092
 
 
14093
# Fix the shell variable \$srcfile for the compiler.
 
14094
fix_srcfile_path=$lt_fix_srcfile_path
 
14095
 
 
14096
# Set to yes if exported symbols are required.
 
14097
always_export_symbols=$always_export_symbols_CXX
 
14098
 
 
14099
# The commands to list exported symbols.
 
14100
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14101
 
 
14102
# The commands to extract the exported symbol list from a shared archive.
 
14103
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14104
 
 
14105
# Symbols that should not be listed in the preloaded symbols.
 
14106
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14107
 
 
14108
# Symbols that must always be exported.
 
14109
include_expsyms=$lt_include_expsyms_CXX
 
14110
 
 
14111
# ### END LIBTOOL TAG CONFIG: $tagname
 
14112
 
 
14113
__EOF__
 
14114
 
 
14115
 
 
14116
else
 
14117
  # If there is no Makefile yet, we rely on a make rule to execute
 
14118
  # `config.status --recheck' to rerun these tests and create the
 
14119
  # libtool script then.
 
14120
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14121
  if test -f "$ltmain_in"; then
 
14122
    test -f Makefile && make "$ltmain"
 
14123
  fi
 
14124
fi
 
14125
 
 
14126
 
 
14127
ac_ext=c
 
14128
ac_cpp='$CPP $CPPFLAGS'
 
14129
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14130
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14131
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14132
 
 
14133
CC=$lt_save_CC
 
14134
LDCXX=$LD
 
14135
LD=$lt_save_LD
 
14136
GCC=$lt_save_GCC
 
14137
with_gnu_ldcxx=$with_gnu_ld
 
14138
with_gnu_ld=$lt_save_with_gnu_ld
 
14139
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14140
lt_cv_path_LD=$lt_save_path_LD
 
14141
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14142
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14143
 
 
14144
        else
 
14145
          tagname=""
 
14146
        fi
 
14147
        ;;
 
14148
 
 
14149
      F77)
 
14150
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14151
 
 
14152
ac_ext=f
 
14153
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14154
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14155
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14156
 
 
14157
 
 
14158
archive_cmds_need_lc_F77=no
 
14159
allow_undefined_flag_F77=
 
14160
always_export_symbols_F77=no
 
14161
archive_expsym_cmds_F77=
 
14162
export_dynamic_flag_spec_F77=
 
14163
hardcode_direct_F77=no
 
14164
hardcode_libdir_flag_spec_F77=
 
14165
hardcode_libdir_flag_spec_ld_F77=
 
14166
hardcode_libdir_separator_F77=
 
14167
hardcode_minus_L_F77=no
 
14168
hardcode_automatic_F77=no
 
14169
module_cmds_F77=
 
14170
module_expsym_cmds_F77=
 
14171
link_all_deplibs_F77=unknown
 
14172
old_archive_cmds_F77=$old_archive_cmds
 
14173
no_undefined_flag_F77=
 
14174
whole_archive_flag_spec_F77=
 
14175
enable_shared_with_static_runtimes_F77=no
 
14176
 
 
14177
# Source file extension for f77 test sources.
 
14178
ac_ext=f
 
14179
 
 
14180
# Object file extension for compiled f77 test sources.
 
14181
objext=o
 
14182
objext_F77=$objext
 
14183
 
 
14184
# Code to be used in simple compile tests
 
14185
lt_simple_compile_test_code="\
 
14186
      subroutine t
 
14187
      return
 
14188
      end
 
14189
"
 
14190
 
 
14191
# Code to be used in simple link tests
 
14192
lt_simple_link_test_code="\
 
14193
      program t
 
14194
      end
 
14195
"
 
14196
 
 
14197
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14198
 
 
14199
# If no C compiler was specified, use CC.
 
14200
LTCC=${LTCC-"$CC"}
 
14201
 
 
14202
# If no C compiler flags were specified, use CFLAGS.
 
14203
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14204
 
 
14205
# Allow CC to be a program name with arguments.
 
14206
compiler=$CC
 
14207
 
 
14208
 
 
14209
# save warnings/boilerplate of simple test code
 
14210
ac_outfile=conftest.$ac_objext
 
14211
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14212
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14213
_lt_compiler_boilerplate=`cat conftest.err`
 
14214
$rm conftest*
 
14215
 
 
14216
ac_outfile=conftest.$ac_objext
 
14217
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
14218
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14219
_lt_linker_boilerplate=`cat conftest.err`
 
14220
$rm -r conftest*
 
14221
 
 
14222
 
 
14223
# Allow CC to be a program name with arguments.
 
14224
lt_save_CC="$CC"
 
14225
CC=${F77-"f77"}
 
14226
compiler=$CC
 
14227
compiler_F77=$CC
 
14228
for cc_temp in $compiler""; do
 
14229
  case $cc_temp in
 
14230
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14231
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14232
    \-*) ;;
 
14233
    *) break;;
 
14234
  esac
 
14235
done
 
14236
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14237
 
 
14238
 
 
14239
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14240
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
14241
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14242
echo "${ECHO_T}$can_build_shared" >&6; }
 
14243
 
 
14244
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14245
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
14246
test "$can_build_shared" = "no" && enable_shared=no
 
14247
 
 
14248
# On AIX, shared libraries and static libraries use the same namespace, and
 
14249
# are all built from PIC.
 
14250
case $host_os in
 
14251
aix3*)
 
14252
  test "$enable_shared" = yes && enable_static=no
 
14253
  if test -n "$RANLIB"; then
 
14254
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14255
    postinstall_cmds='$RANLIB $lib'
 
14256
  fi
 
14257
  ;;
 
14258
aix[4-9]*)
 
14259
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14260
    test "$enable_shared" = yes && enable_static=no
 
14261
  fi
 
14262
  ;;
 
14263
esac
 
14264
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14265
echo "${ECHO_T}$enable_shared" >&6; }
 
14266
 
 
14267
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14268
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
14269
# Make sure either enable_shared or enable_static is yes.
 
14270
test "$enable_shared" = yes || enable_static=yes
 
14271
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
14272
echo "${ECHO_T}$enable_static" >&6; }
 
14273
 
 
14274
GCC_F77="$G77"
 
14275
LD_F77="$LD"
 
14276
 
 
14277
lt_prog_compiler_wl_F77=
 
14278
lt_prog_compiler_pic_F77=
 
14279
lt_prog_compiler_static_F77=
 
14280
 
 
14281
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14282
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
14283
 
 
14284
  if test "$GCC" = yes; then
 
14285
    lt_prog_compiler_wl_F77='-Wl,'
 
14286
    lt_prog_compiler_static_F77='-static'
 
14287
 
 
14288
    case $host_os in
 
14289
      aix*)
 
14290
      # All AIX code is PIC.
 
14291
      if test "$host_cpu" = ia64; then
 
14292
        # AIX 5 now supports IA64 processor
 
14293
        lt_prog_compiler_static_F77='-Bstatic'
 
14294
      fi
 
14295
      ;;
 
14296
 
 
14297
    amigaos*)
 
14298
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14299
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14300
      # like `-m68040'.
 
14301
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14302
      ;;
 
14303
 
 
14304
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14305
      # PIC is the default for these OSes.
 
14306
      ;;
 
14307
 
 
14308
    mingw* | cygwin* | pw32* | os2*)
 
14309
      # This hack is so that the source file can tell whether it is being
 
14310
      # built for inclusion in a dll (and should export symbols for example).
 
14311
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14312
      # (--disable-auto-import) libraries
 
14313
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14314
      ;;
 
14315
 
 
14316
    darwin* | rhapsody*)
 
14317
      # PIC is the default on this platform
 
14318
      # Common symbols not allowed in MH_DYLIB files
 
14319
      lt_prog_compiler_pic_F77='-fno-common'
 
14320
      ;;
 
14321
 
 
14322
    interix[3-9]*)
 
14323
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14324
      # Instead, we relocate shared libraries at runtime.
 
14325
      ;;
 
14326
 
 
14327
    msdosdjgpp*)
 
14328
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14329
      # on systems that don't support them.
 
14330
      lt_prog_compiler_can_build_shared_F77=no
 
14331
      enable_shared=no
 
14332
      ;;
 
14333
 
 
14334
    sysv4*MP*)
 
14335
      if test -d /usr/nec; then
 
14336
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14337
      fi
 
14338
      ;;
 
14339
 
 
14340
    hpux*)
 
14341
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14342
      # not for PA HP-UX.
 
14343
      case $host_cpu in
 
14344
      hppa*64*|ia64*)
 
14345
        # +Z the default
 
14346
        ;;
 
14347
      *)
 
14348
        lt_prog_compiler_pic_F77='-fPIC'
 
14349
        ;;
 
14350
      esac
 
14351
      ;;
 
14352
 
 
14353
    *)
 
14354
      lt_prog_compiler_pic_F77='-fPIC'
 
14355
      ;;
 
14356
    esac
 
14357
  else
 
14358
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14359
    case $host_os in
 
14360
    aix*)
 
14361
      lt_prog_compiler_wl_F77='-Wl,'
 
14362
      if test "$host_cpu" = ia64; then
 
14363
        # AIX 5 now supports IA64 processor
 
14364
        lt_prog_compiler_static_F77='-Bstatic'
 
14365
      else
 
14366
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14367
      fi
 
14368
      ;;
 
14369
      darwin*)
 
14370
        # PIC is the default on this platform
 
14371
        # Common symbols not allowed in MH_DYLIB files
 
14372
       case $cc_basename in
 
14373
         xlc*)
 
14374
         lt_prog_compiler_pic_F77='-qnocommon'
 
14375
         lt_prog_compiler_wl_F77='-Wl,'
 
14376
         ;;
 
14377
       esac
 
14378
       ;;
 
14379
 
 
14380
    mingw* | cygwin* | pw32* | os2*)
 
14381
      # This hack is so that the source file can tell whether it is being
 
14382
      # built for inclusion in a dll (and should export symbols for example).
 
14383
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14384
      ;;
 
14385
 
 
14386
    hpux9* | hpux10* | hpux11*)
 
14387
      lt_prog_compiler_wl_F77='-Wl,'
 
14388
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14389
      # not for PA HP-UX.
 
14390
      case $host_cpu in
 
14391
      hppa*64*|ia64*)
 
14392
        # +Z the default
 
14393
        ;;
 
14394
      *)
 
14395
        lt_prog_compiler_pic_F77='+Z'
 
14396
        ;;
 
14397
      esac
 
14398
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14399
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14400
      ;;
 
14401
 
 
14402
    irix5* | irix6* | nonstopux*)
 
14403
      lt_prog_compiler_wl_F77='-Wl,'
 
14404
      # PIC (with -KPIC) is the default.
 
14405
      lt_prog_compiler_static_F77='-non_shared'
 
14406
      ;;
 
14407
 
 
14408
    newsos6)
 
14409
      lt_prog_compiler_pic_F77='-KPIC'
 
14410
      lt_prog_compiler_static_F77='-Bstatic'
 
14411
      ;;
 
14412
 
 
14413
    linux* | k*bsd*-gnu)
 
14414
      case $cc_basename in
 
14415
      icc* | ecc*)
 
14416
        lt_prog_compiler_wl_F77='-Wl,'
 
14417
        lt_prog_compiler_pic_F77='-KPIC'
 
14418
        lt_prog_compiler_static_F77='-static'
 
14419
        ;;
 
14420
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14421
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14422
        # which looks to be a dead project)
 
14423
        lt_prog_compiler_wl_F77='-Wl,'
 
14424
        lt_prog_compiler_pic_F77='-fpic'
 
14425
        lt_prog_compiler_static_F77='-Bstatic'
 
14426
        ;;
 
14427
      ccc*)
 
14428
        lt_prog_compiler_wl_F77='-Wl,'
 
14429
        # All Alpha code is PIC.
 
14430
        lt_prog_compiler_static_F77='-non_shared'
 
14431
        ;;
 
14432
      *)
 
14433
        case `$CC -V 2>&1 | sed 5q` in
 
14434
        *Sun\ C*)
 
14435
          # Sun C 5.9
 
14436
          lt_prog_compiler_pic_F77='-KPIC'
 
14437
          lt_prog_compiler_static_F77='-Bstatic'
 
14438
          lt_prog_compiler_wl_F77='-Wl,'
 
14439
          ;;
 
14440
        *Sun\ F*)
 
14441
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14442
          lt_prog_compiler_pic_F77='-KPIC'
 
14443
          lt_prog_compiler_static_F77='-Bstatic'
 
14444
          lt_prog_compiler_wl_F77=''
 
14445
          ;;
 
14446
        esac
 
14447
        ;;
 
14448
      esac
 
14449
      ;;
 
14450
 
 
14451
    osf3* | osf4* | osf5*)
 
14452
      lt_prog_compiler_wl_F77='-Wl,'
 
14453
      # All OSF/1 code is PIC.
 
14454
      lt_prog_compiler_static_F77='-non_shared'
 
14455
      ;;
 
14456
 
 
14457
    rdos*)
 
14458
      lt_prog_compiler_static_F77='-non_shared'
 
14459
      ;;
 
14460
 
 
14461
    solaris*)
 
14462
      lt_prog_compiler_pic_F77='-KPIC'
 
14463
      lt_prog_compiler_static_F77='-Bstatic'
 
14464
      case $cc_basename in
 
14465
      f77* | f90* | f95*)
 
14466
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14467
      *)
 
14468
        lt_prog_compiler_wl_F77='-Wl,';;
 
14469
      esac
 
14470
      ;;
 
14471
 
 
14472
    sunos4*)
 
14473
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14474
      lt_prog_compiler_pic_F77='-PIC'
 
14475
      lt_prog_compiler_static_F77='-Bstatic'
 
14476
      ;;
 
14477
 
 
14478
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14479
      lt_prog_compiler_wl_F77='-Wl,'
 
14480
      lt_prog_compiler_pic_F77='-KPIC'
 
14481
      lt_prog_compiler_static_F77='-Bstatic'
 
14482
      ;;
 
14483
 
 
14484
    sysv4*MP*)
 
14485
      if test -d /usr/nec ;then
 
14486
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14487
        lt_prog_compiler_static_F77='-Bstatic'
 
14488
      fi
 
14489
      ;;
 
14490
 
 
14491
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14492
      lt_prog_compiler_wl_F77='-Wl,'
 
14493
      lt_prog_compiler_pic_F77='-KPIC'
 
14494
      lt_prog_compiler_static_F77='-Bstatic'
 
14495
      ;;
 
14496
 
 
14497
    unicos*)
 
14498
      lt_prog_compiler_wl_F77='-Wl,'
 
14499
      lt_prog_compiler_can_build_shared_F77=no
 
14500
      ;;
 
14501
 
 
14502
    uts4*)
 
14503
      lt_prog_compiler_pic_F77='-pic'
 
14504
      lt_prog_compiler_static_F77='-Bstatic'
 
14505
      ;;
 
14506
 
 
14507
    *)
 
14508
      lt_prog_compiler_can_build_shared_F77=no
 
14509
      ;;
 
14510
    esac
 
14511
  fi
 
14512
 
 
14513
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14514
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
14515
 
 
14516
#
 
14517
# Check to make sure the PIC flag actually works.
 
14518
#
 
14519
if test -n "$lt_prog_compiler_pic_F77"; then
 
14520
 
 
14521
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14522
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
14523
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
 
14524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14525
else
 
14526
  lt_cv_prog_compiler_pic_works_F77=no
 
14527
  ac_outfile=conftest.$ac_objext
 
14528
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14529
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14530
   # Insert the option either (1) after the last *FLAGS variable, or
 
14531
   # (2) before a word containing "conftest.", or (3) at the end.
 
14532
   # Note that $ac_compile itself does not contain backslashes and begins
 
14533
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14534
   # The option is referenced via a variable to avoid confusing sed.
 
14535
   lt_compile=`echo "$ac_compile" | $SED \
 
14536
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14537
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14538
   -e 's:$: $lt_compiler_flag:'`
 
14539
   (eval echo "\"\$as_me:14539: $lt_compile\"" >&5)
 
14540
   (eval "$lt_compile" 2>conftest.err)
 
14541
   ac_status=$?
 
14542
   cat conftest.err >&5
 
14543
   echo "$as_me:14543: \$? = $ac_status" >&5
 
14544
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14545
     # The compiler can only warn and ignore the option if not recognized
 
14546
     # So say no if there are warnings other than the usual output.
 
14547
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14548
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14549
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14550
       lt_cv_prog_compiler_pic_works_F77=yes
 
14551
     fi
 
14552
   fi
 
14553
   $rm conftest*
 
14554
 
 
14555
fi
 
14556
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
14557
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
 
14558
 
 
14559
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
 
14560
    case $lt_prog_compiler_pic_F77 in
 
14561
     "" | " "*) ;;
 
14562
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14563
     esac
 
14564
else
 
14565
    lt_prog_compiler_pic_F77=
 
14566
     lt_prog_compiler_can_build_shared_F77=no
 
14567
fi
 
14568
 
 
14569
fi
 
14570
case $host_os in
 
14571
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14572
  *djgpp*)
 
14573
    lt_prog_compiler_pic_F77=
 
14574
    ;;
 
14575
  *)
 
14576
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14577
    ;;
 
14578
esac
 
14579
 
 
14580
#
 
14581
# Check to make sure the static flag actually works.
 
14582
#
 
14583
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14584
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14585
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14586
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
 
14587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14588
else
 
14589
  lt_cv_prog_compiler_static_works_F77=no
 
14590
   save_LDFLAGS="$LDFLAGS"
 
14591
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14592
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14593
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14594
     # The linker can only warn and ignore the option if not recognized
 
14595
     # So say no if there are warnings
 
14596
     if test -s conftest.err; then
 
14597
       # Append any errors to the config.log.
 
14598
       cat conftest.err 1>&5
 
14599
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14600
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14601
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14602
         lt_cv_prog_compiler_static_works_F77=yes
 
14603
       fi
 
14604
     else
 
14605
       lt_cv_prog_compiler_static_works_F77=yes
 
14606
     fi
 
14607
   fi
 
14608
   $rm -r conftest*
 
14609
   LDFLAGS="$save_LDFLAGS"
 
14610
 
 
14611
fi
 
14612
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
14613
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
 
14614
 
 
14615
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
 
14616
    :
 
14617
else
 
14618
    lt_prog_compiler_static_F77=
 
14619
fi
 
14620
 
 
14621
 
 
14622
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14623
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14624
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14625
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14626
else
 
14627
  lt_cv_prog_compiler_c_o_F77=no
 
14628
   $rm -r conftest 2>/dev/null
 
14629
   mkdir conftest
 
14630
   cd conftest
 
14631
   mkdir out
 
14632
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14633
 
 
14634
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14635
   # Insert the option either (1) after the last *FLAGS variable, or
 
14636
   # (2) before a word containing "conftest.", or (3) at the end.
 
14637
   # Note that $ac_compile itself does not contain backslashes and begins
 
14638
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14639
   lt_compile=`echo "$ac_compile" | $SED \
 
14640
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14641
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14642
   -e 's:$: $lt_compiler_flag:'`
 
14643
   (eval echo "\"\$as_me:14643: $lt_compile\"" >&5)
 
14644
   (eval "$lt_compile" 2>out/conftest.err)
 
14645
   ac_status=$?
 
14646
   cat out/conftest.err >&5
 
14647
   echo "$as_me:14647: \$? = $ac_status" >&5
 
14648
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14649
   then
 
14650
     # The compiler can only warn and ignore the option if not recognized
 
14651
     # So say no if there are warnings
 
14652
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14653
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14654
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14655
       lt_cv_prog_compiler_c_o_F77=yes
 
14656
     fi
 
14657
   fi
 
14658
   chmod u+w . 2>&5
 
14659
   $rm conftest*
 
14660
   # SGI C++ compiler will create directory out/ii_files/ for
 
14661
   # template instantiation
 
14662
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14663
   $rm out/* && rmdir out
 
14664
   cd ..
 
14665
   rmdir conftest
 
14666
   $rm conftest*
 
14667
 
 
14668
fi
 
14669
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14670
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14671
 
 
14672
 
 
14673
hard_links="nottested"
 
14674
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14675
  # do not overwrite the value of need_locks provided by the user
 
14676
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14677
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
14678
  hard_links=yes
 
14679
  $rm conftest*
 
14680
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14681
  touch conftest.a
 
14682
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14683
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14684
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14685
echo "${ECHO_T}$hard_links" >&6; }
 
14686
  if test "$hard_links" = no; then
 
14687
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14688
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14689
    need_locks=warn
 
14690
  fi
 
14691
else
 
14692
  need_locks=no
 
14693
fi
 
14694
 
 
14695
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14696
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
14697
 
 
14698
  runpath_var=
 
14699
  allow_undefined_flag_F77=
 
14700
  enable_shared_with_static_runtimes_F77=no
 
14701
  archive_cmds_F77=
 
14702
  archive_expsym_cmds_F77=
 
14703
  old_archive_From_new_cmds_F77=
 
14704
  old_archive_from_expsyms_cmds_F77=
 
14705
  export_dynamic_flag_spec_F77=
 
14706
  whole_archive_flag_spec_F77=
 
14707
  thread_safe_flag_spec_F77=
 
14708
  hardcode_libdir_flag_spec_F77=
 
14709
  hardcode_libdir_flag_spec_ld_F77=
 
14710
  hardcode_libdir_separator_F77=
 
14711
  hardcode_direct_F77=no
 
14712
  hardcode_minus_L_F77=no
 
14713
  hardcode_shlibpath_var_F77=unsupported
 
14714
  link_all_deplibs_F77=unknown
 
14715
  hardcode_automatic_F77=no
 
14716
  module_cmds_F77=
 
14717
  module_expsym_cmds_F77=
 
14718
  always_export_symbols_F77=no
 
14719
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14720
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14721
  # included in the symbol list
 
14722
  include_expsyms_F77=
 
14723
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14724
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14725
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14726
  # as well as any symbol that contains `d'.
 
14727
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14728
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14729
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14730
  # the symbol is explicitly referenced.  Since portable code cannot
 
14731
  # rely on this symbol name, it's probably fine to never include it in
 
14732
  # preloaded symbol tables.
 
14733
  # Exclude shared library initialization/finalization symbols.
 
14734
  extract_expsyms_cmds=
 
14735
  # Just being paranoid about ensuring that cc_basename is set.
 
14736
  for cc_temp in $compiler""; do
 
14737
  case $cc_temp in
 
14738
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14739
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14740
    \-*) ;;
 
14741
    *) break;;
 
14742
  esac
 
14743
done
 
14744
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14745
 
 
14746
  case $host_os in
 
14747
  cygwin* | mingw* | pw32*)
 
14748
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14749
    # When not using gcc, we currently assume that we are using
 
14750
    # Microsoft Visual C++.
 
14751
    if test "$GCC" != yes; then
 
14752
      with_gnu_ld=no
 
14753
    fi
 
14754
    ;;
 
14755
  interix*)
 
14756
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14757
    with_gnu_ld=yes
 
14758
    ;;
 
14759
  openbsd*)
 
14760
    with_gnu_ld=no
 
14761
    ;;
 
14762
  esac
 
14763
 
 
14764
  ld_shlibs_F77=yes
 
14765
  if test "$with_gnu_ld" = yes; then
 
14766
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14767
    wlarc='${wl}'
 
14768
 
 
14769
    # Set some defaults for GNU ld with shared library support. These
 
14770
    # are reset later if shared libraries are not supported. Putting them
 
14771
    # here allows them to be overridden if necessary.
 
14772
    runpath_var=LD_RUN_PATH
 
14773
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14774
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14775
    # ancient GNU ld didn't support --whole-archive et. al.
 
14776
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14777
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14778
      else
 
14779
        whole_archive_flag_spec_F77=
 
14780
    fi
 
14781
    supports_anon_versioning=no
 
14782
    case `$LD -v 2>/dev/null` in
 
14783
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14784
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14785
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14786
      *\ 2.11.*) ;; # other 2.11 versions
 
14787
      *) supports_anon_versioning=yes ;;
 
14788
    esac
 
14789
 
 
14790
    # See if GNU ld supports shared libraries.
 
14791
    case $host_os in
 
14792
    aix[3-9]*)
 
14793
      # On AIX/PPC, the GNU linker is very broken
 
14794
      if test "$host_cpu" != ia64; then
 
14795
        ld_shlibs_F77=no
 
14796
        cat <<EOF 1>&2
 
14797
 
 
14798
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14799
*** to be unable to reliably create shared libraries on AIX.
 
14800
*** Therefore, libtool is disabling shared libraries support.  If you
 
14801
*** really care for shared libraries, you may want to modify your PATH
 
14802
*** so that a non-GNU linker is found, and then restart.
 
14803
 
 
14804
EOF
 
14805
      fi
 
14806
      ;;
 
14807
 
 
14808
    amigaos*)
 
14809
      archive_cmds_F77='$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)'
 
14810
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14811
      hardcode_minus_L_F77=yes
 
14812
 
 
14813
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14814
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14815
      # to version 4, is to share data among multiple programs linked
 
14816
      # with the same dynamic library.  Since this doesn't match the
 
14817
      # behavior of shared libraries on other platforms, we can't use
 
14818
      # them.
 
14819
      ld_shlibs_F77=no
 
14820
      ;;
 
14821
 
 
14822
    beos*)
 
14823
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14824
        allow_undefined_flag_F77=unsupported
 
14825
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14826
        # support --undefined.  This deserves some investigation.  FIXME
 
14827
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14828
      else
 
14829
        ld_shlibs_F77=no
 
14830
      fi
 
14831
      ;;
 
14832
 
 
14833
    cygwin* | mingw* | pw32*)
 
14834
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14835
      # as there is no search path for DLLs.
 
14836
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14837
      allow_undefined_flag_F77=unsupported
 
14838
      always_export_symbols_F77=no
 
14839
      enable_shared_with_static_runtimes_F77=yes
 
14840
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
14841
 
 
14842
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14843
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14844
        # If the export-symbols file already is a .def file (1st line
 
14845
        # is EXPORTS), use it as is; otherwise, prepend...
 
14846
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14847
          cp $export_symbols $output_objdir/$soname.def;
 
14848
        else
 
14849
          echo EXPORTS > $output_objdir/$soname.def;
 
14850
          cat $export_symbols >> $output_objdir/$soname.def;
 
14851
        fi~
 
14852
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14853
      else
 
14854
        ld_shlibs_F77=no
 
14855
      fi
 
14856
      ;;
 
14857
 
 
14858
    interix[3-9]*)
 
14859
      hardcode_direct_F77=no
 
14860
      hardcode_shlibpath_var_F77=no
 
14861
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14862
      export_dynamic_flag_spec_F77='${wl}-E'
 
14863
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14864
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14865
      # default) and relocated if they conflict, which is a slow very memory
 
14866
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14867
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14868
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14869
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
14870
      archive_expsym_cmds_F77='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'
 
14871
      ;;
 
14872
 
 
14873
    gnu* | linux* | k*bsd*-gnu)
 
14874
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14875
        tmp_addflag=
 
14876
        case $cc_basename,$host_cpu in
 
14877
        pgcc*)                          # Portland Group C compiler
 
14878
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14879
          tmp_addflag=' $pic_flag'
 
14880
          ;;
 
14881
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14882
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14883
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14884
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14885
          tmp_addflag=' -i_dynamic' ;;
 
14886
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14887
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14888
        ifc* | ifort*)                  # Intel Fortran compiler
 
14889
          tmp_addflag=' -nofor_main' ;;
 
14890
        esac
 
14891
        case `$CC -V 2>&1 | sed 5q` in
 
14892
        *Sun\ C*)                       # Sun C 5.9
 
14893
          whole_archive_flag_spec_F77='${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'
 
14894
          tmp_sharedflag='-G' ;;
 
14895
        *Sun\ F*)                       # Sun Fortran 8.3
 
14896
          tmp_sharedflag='-G' ;;
 
14897
        *)
 
14898
          tmp_sharedflag='-shared' ;;
 
14899
        esac
 
14900
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14901
 
 
14902
        if test $supports_anon_versioning = yes; then
 
14903
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14904
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14905
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14906
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14907
        fi
 
14908
        link_all_deplibs_F77=no
 
14909
      else
 
14910
        ld_shlibs_F77=no
 
14911
      fi
 
14912
      ;;
 
14913
 
 
14914
    netbsd* | netbsdelf*-gnu)
 
14915
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14916
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14917
        wlarc=
 
14918
      else
 
14919
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14920
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14921
      fi
 
14922
      ;;
 
14923
 
 
14924
    solaris*)
 
14925
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14926
        ld_shlibs_F77=no
 
14927
        cat <<EOF 1>&2
 
14928
 
 
14929
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14930
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14931
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14932
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14933
*** your PATH or compiler configuration so that the native linker is
 
14934
*** used, and then restart.
 
14935
 
 
14936
EOF
 
14937
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14938
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14939
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14940
      else
 
14941
        ld_shlibs_F77=no
 
14942
      fi
 
14943
      ;;
 
14944
 
 
14945
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14946
      case `$LD -v 2>&1` in
 
14947
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14948
        ld_shlibs_F77=no
 
14949
        cat <<_LT_EOF 1>&2
 
14950
 
 
14951
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14952
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14953
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14954
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14955
*** your PATH or compiler configuration so that the native linker is
 
14956
*** used, and then restart.
 
14957
 
 
14958
_LT_EOF
 
14959
        ;;
 
14960
        *)
 
14961
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14962
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14963
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14964
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14965
          else
 
14966
            ld_shlibs_F77=no
 
14967
          fi
 
14968
        ;;
 
14969
      esac
 
14970
      ;;
 
14971
 
 
14972
    sunos4*)
 
14973
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14974
      wlarc=
 
14975
      hardcode_direct_F77=yes
 
14976
      hardcode_shlibpath_var_F77=no
 
14977
      ;;
 
14978
 
 
14979
    *)
 
14980
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14981
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14982
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14983
      else
 
14984
        ld_shlibs_F77=no
 
14985
      fi
 
14986
      ;;
 
14987
    esac
 
14988
 
 
14989
    if test "$ld_shlibs_F77" = no; then
 
14990
      runpath_var=
 
14991
      hardcode_libdir_flag_spec_F77=
 
14992
      export_dynamic_flag_spec_F77=
 
14993
      whole_archive_flag_spec_F77=
 
14994
    fi
 
14995
  else
 
14996
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14997
    case $host_os in
 
14998
    aix3*)
 
14999
      allow_undefined_flag_F77=unsupported
 
15000
      always_export_symbols_F77=yes
 
15001
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
15002
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15003
      # are no directories specified by -L.
 
15004
      hardcode_minus_L_F77=yes
 
15005
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15006
        # Neither direct hardcoding nor static linking is supported with a
 
15007
        # broken collect2.
 
15008
        hardcode_direct_F77=unsupported
 
15009
      fi
 
15010
      ;;
 
15011
 
 
15012
    aix[4-9]*)
 
15013
      if test "$host_cpu" = ia64; then
 
15014
        # On IA64, the linker does run time linking by default, so we don't
 
15015
        # have to do anything special.
 
15016
        aix_use_runtimelinking=no
 
15017
        exp_sym_flag='-Bexport'
 
15018
        no_entry_flag=""
 
15019
      else
 
15020
        # If we're using GNU nm, then we don't want the "-C" option.
 
15021
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15022
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15023
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
15024
        else
 
15025
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
15026
        fi
 
15027
        aix_use_runtimelinking=no
 
15028
 
 
15029
        # Test if we are trying to use run time linking or normal
 
15030
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15031
        # need to do runtime linking.
 
15032
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
15033
          for ld_flag in $LDFLAGS; do
 
15034
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15035
            aix_use_runtimelinking=yes
 
15036
            break
 
15037
          fi
 
15038
          done
 
15039
          ;;
 
15040
        esac
 
15041
 
 
15042
        exp_sym_flag='-bexport'
 
15043
        no_entry_flag='-bnoentry'
 
15044
      fi
 
15045
 
 
15046
      # When large executables or shared objects are built, AIX ld can
 
15047
      # have problems creating the table of contents.  If linking a library
 
15048
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15049
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15050
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15051
 
 
15052
      archive_cmds_F77=''
 
15053
      hardcode_direct_F77=yes
 
15054
      hardcode_libdir_separator_F77=':'
 
15055
      link_all_deplibs_F77=yes
 
15056
 
 
15057
      if test "$GCC" = yes; then
 
15058
        case $host_os in aix4.[012]|aix4.[012].*)
 
15059
        # We only want to do this on AIX 4.2 and lower, the check
 
15060
        # below for broken collect2 doesn't work under 4.3+
 
15061
          collect2name=`${CC} -print-prog-name=collect2`
 
15062
          if test -f "$collect2name" && \
 
15063
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15064
          then
 
15065
          # We have reworked collect2
 
15066
          :
 
15067
          else
 
15068
          # We have old collect2
 
15069
          hardcode_direct_F77=unsupported
 
15070
          # It fails to find uninstalled libraries when the uninstalled
 
15071
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15072
          # to unsupported forces relinking
 
15073
          hardcode_minus_L_F77=yes
 
15074
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15075
          hardcode_libdir_separator_F77=
 
15076
          fi
 
15077
          ;;
 
15078
        esac
 
15079
        shared_flag='-shared'
 
15080
        if test "$aix_use_runtimelinking" = yes; then
 
15081
          shared_flag="$shared_flag "'${wl}-G'
 
15082
        fi
 
15083
      else
 
15084
        # not using gcc
 
15085
        if test "$host_cpu" = ia64; then
 
15086
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15087
        # chokes on -Wl,-G. The following line is correct:
 
15088
          shared_flag='-G'
 
15089
        else
 
15090
          if test "$aix_use_runtimelinking" = yes; then
 
15091
            shared_flag='${wl}-G'
 
15092
          else
 
15093
            shared_flag='${wl}-bM:SRE'
 
15094
          fi
 
15095
        fi
 
15096
      fi
 
15097
 
 
15098
      # It seems that -bexpall does not export symbols beginning with
 
15099
      # underscore (_), so it is better to generate a list of symbols to export.
 
15100
      always_export_symbols_F77=yes
 
15101
      if test "$aix_use_runtimelinking" = yes; then
 
15102
        # Warning - without using the other runtime loading flags (-brtl),
 
15103
        # -berok will link without error, but may produce a broken library.
 
15104
        allow_undefined_flag_F77='-berok'
 
15105
       # Determine the default libpath from the value encoded in an empty executable.
 
15106
       cat >conftest.$ac_ext <<_ACEOF
 
15107
      program main
 
15108
 
 
15109
      end
 
15110
_ACEOF
 
15111
rm -f conftest.$ac_objext conftest$ac_exeext
 
15112
if { (ac_try="$ac_link"
 
15113
case "(($ac_try" in
 
15114
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15115
  *) ac_try_echo=$ac_try;;
 
15116
esac
 
15117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15118
  (eval "$ac_link") 2>conftest.er1
 
15119
  ac_status=$?
 
15120
  grep -v '^ *+' conftest.er1 >conftest.err
 
15121
  rm -f conftest.er1
 
15122
  cat conftest.err >&5
 
15123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15124
  (exit $ac_status); } && {
 
15125
         test -z "$ac_f77_werror_flag" ||
 
15126
         test ! -s conftest.err
 
15127
       } && test -s conftest$ac_exeext &&
 
15128
       $as_test_x conftest$ac_exeext; then
 
15129
 
 
15130
lt_aix_libpath_sed='
 
15131
    /Import File Strings/,/^$/ {
 
15132
        /^0/ {
 
15133
            s/^0  *\(.*\)$/\1/
 
15134
            p
 
15135
        }
 
15136
    }'
 
15137
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15138
# Check for a 64-bit object if we didn't find anything.
 
15139
if test -z "$aix_libpath"; then
 
15140
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15141
fi
 
15142
else
 
15143
  echo "$as_me: failed program was:" >&5
 
15144
sed 's/^/| /' conftest.$ac_ext >&5
 
15145
 
 
15146
 
 
15147
fi
 
15148
 
 
15149
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15150
      conftest$ac_exeext conftest.$ac_ext
 
15151
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15152
 
 
15153
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15154
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
15155
       else
 
15156
        if test "$host_cpu" = ia64; then
 
15157
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15158
          allow_undefined_flag_F77="-z nodefs"
 
15159
          archive_expsym_cmds_F77="\$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"
 
15160
        else
 
15161
         # Determine the default libpath from the value encoded in an empty executable.
 
15162
         cat >conftest.$ac_ext <<_ACEOF
 
15163
      program main
 
15164
 
 
15165
      end
 
15166
_ACEOF
 
15167
rm -f conftest.$ac_objext conftest$ac_exeext
 
15168
if { (ac_try="$ac_link"
 
15169
case "(($ac_try" in
 
15170
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15171
  *) ac_try_echo=$ac_try;;
 
15172
esac
 
15173
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15174
  (eval "$ac_link") 2>conftest.er1
 
15175
  ac_status=$?
 
15176
  grep -v '^ *+' conftest.er1 >conftest.err
 
15177
  rm -f conftest.er1
 
15178
  cat conftest.err >&5
 
15179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15180
  (exit $ac_status); } && {
 
15181
         test -z "$ac_f77_werror_flag" ||
 
15182
         test ! -s conftest.err
 
15183
       } && test -s conftest$ac_exeext &&
 
15184
       $as_test_x conftest$ac_exeext; then
 
15185
 
 
15186
lt_aix_libpath_sed='
 
15187
    /Import File Strings/,/^$/ {
 
15188
        /^0/ {
 
15189
            s/^0  *\(.*\)$/\1/
 
15190
            p
 
15191
        }
 
15192
    }'
 
15193
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15194
# Check for a 64-bit object if we didn't find anything.
 
15195
if test -z "$aix_libpath"; then
 
15196
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15197
fi
 
15198
else
 
15199
  echo "$as_me: failed program was:" >&5
 
15200
sed 's/^/| /' conftest.$ac_ext >&5
 
15201
 
 
15202
 
 
15203
fi
 
15204
 
 
15205
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15206
      conftest$ac_exeext conftest.$ac_ext
 
15207
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15208
 
 
15209
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15210
          # Warning - without using the other run time loading flags,
 
15211
          # -berok will link without error, but may produce a broken library.
 
15212
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15213
          allow_undefined_flag_F77=' ${wl}-berok'
 
15214
          # Exported symbols can be pulled into shared objects from archives
 
15215
          whole_archive_flag_spec_F77='$convenience'
 
15216
          archive_cmds_need_lc_F77=yes
 
15217
          # This is similar to how AIX traditionally builds its shared libraries.
 
15218
          archive_expsym_cmds_F77="\$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'
 
15219
        fi
 
15220
      fi
 
15221
      ;;
 
15222
 
 
15223
    amigaos*)
 
15224
      archive_cmds_F77='$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)'
 
15225
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15226
      hardcode_minus_L_F77=yes
 
15227
      # see comment about different semantics on the GNU ld section
 
15228
      ld_shlibs_F77=no
 
15229
      ;;
 
15230
 
 
15231
    bsdi[45]*)
 
15232
      export_dynamic_flag_spec_F77=-rdynamic
 
15233
      ;;
 
15234
 
 
15235
    cygwin* | mingw* | pw32*)
 
15236
      # When not using gcc, we currently assume that we are using
 
15237
      # Microsoft Visual C++.
 
15238
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15239
      # no search path for DLLs.
 
15240
      hardcode_libdir_flag_spec_F77=' '
 
15241
      allow_undefined_flag_F77=unsupported
 
15242
      # Tell ltmain to make .lib files, not .a files.
 
15243
      libext=lib
 
15244
      # Tell ltmain to make .dll files, not .so files.
 
15245
      shrext_cmds=".dll"
 
15246
      # FIXME: Setting linknames here is a bad hack.
 
15247
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15248
      # The linker will automatically build a .lib file if we build a DLL.
 
15249
      old_archive_From_new_cmds_F77='true'
 
15250
      # FIXME: Should let the user specify the lib program.
 
15251
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
15252
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15253
      enable_shared_with_static_runtimes_F77=yes
 
15254
      ;;
 
15255
 
 
15256
    darwin* | rhapsody*)
 
15257
      case $host_os in
 
15258
        rhapsody* | darwin1.[012])
 
15259
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15260
         ;;
 
15261
       *) # Darwin 1.3 on
 
15262
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15263
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15264
         else
 
15265
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15266
             10.[012])
 
15267
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15268
               ;;
 
15269
             10.*)
 
15270
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15271
               ;;
 
15272
           esac
 
15273
         fi
 
15274
         ;;
 
15275
      esac
 
15276
      archive_cmds_need_lc_F77=no
 
15277
      hardcode_direct_F77=no
 
15278
      hardcode_automatic_F77=yes
 
15279
      hardcode_shlibpath_var_F77=unsupported
 
15280
      whole_archive_flag_spec_F77=''
 
15281
      link_all_deplibs_F77=yes
 
15282
    if test "$GCC" = yes ; then
 
15283
        output_verbose_link_cmd='echo'
 
15284
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
15285
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15286
        archive_expsym_cmds_F77="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}"
 
15287
        module_expsym_cmds_F77="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}"
 
15288
    else
 
15289
      case $cc_basename in
 
15290
        xlc*)
 
15291
         output_verbose_link_cmd='echo'
 
15292
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
15293
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15294
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15295
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15296
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15297
          ;;
 
15298
       *)
 
15299
         ld_shlibs_F77=no
 
15300
          ;;
 
15301
      esac
 
15302
    fi
 
15303
      ;;
 
15304
 
 
15305
    dgux*)
 
15306
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15307
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15308
      hardcode_shlibpath_var_F77=no
 
15309
      ;;
 
15310
 
 
15311
    freebsd1*)
 
15312
      ld_shlibs_F77=no
 
15313
      ;;
 
15314
 
 
15315
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15316
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15317
    # does not break anything, and helps significantly (at the cost of a little
 
15318
    # extra space).
 
15319
    freebsd2.2*)
 
15320
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15321
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15322
      hardcode_direct_F77=yes
 
15323
      hardcode_shlibpath_var_F77=no
 
15324
      ;;
 
15325
 
 
15326
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15327
    freebsd2*)
 
15328
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15329
      hardcode_direct_F77=yes
 
15330
      hardcode_minus_L_F77=yes
 
15331
      hardcode_shlibpath_var_F77=no
 
15332
      ;;
 
15333
 
 
15334
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15335
    freebsd* | dragonfly*)
 
15336
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15337
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15338
      hardcode_direct_F77=yes
 
15339
      hardcode_shlibpath_var_F77=no
 
15340
      ;;
 
15341
 
 
15342
    hpux9*)
 
15343
      if test "$GCC" = yes; then
 
15344
        archive_cmds_F77='$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'
 
15345
      else
 
15346
        archive_cmds_F77='$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'
 
15347
      fi
 
15348
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15349
      hardcode_libdir_separator_F77=:
 
15350
      hardcode_direct_F77=yes
 
15351
 
 
15352
      # hardcode_minus_L: Not really in the search PATH,
 
15353
      # but as the default location of the library.
 
15354
      hardcode_minus_L_F77=yes
 
15355
      export_dynamic_flag_spec_F77='${wl}-E'
 
15356
      ;;
 
15357
 
 
15358
    hpux10*)
 
15359
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15360
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15361
      else
 
15362
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15363
      fi
 
15364
      if test "$with_gnu_ld" = no; then
 
15365
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15366
        hardcode_libdir_separator_F77=:
 
15367
 
 
15368
        hardcode_direct_F77=yes
 
15369
        export_dynamic_flag_spec_F77='${wl}-E'
 
15370
 
 
15371
        # hardcode_minus_L: Not really in the search PATH,
 
15372
        # but as the default location of the library.
 
15373
        hardcode_minus_L_F77=yes
 
15374
      fi
 
15375
      ;;
 
15376
 
 
15377
    hpux11*)
 
15378
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15379
        case $host_cpu in
 
15380
        hppa*64*)
 
15381
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15382
          ;;
 
15383
        ia64*)
 
15384
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15385
          ;;
 
15386
        *)
 
15387
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15388
          ;;
 
15389
        esac
 
15390
      else
 
15391
        case $host_cpu in
 
15392
        hppa*64*)
 
15393
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15394
          ;;
 
15395
        ia64*)
 
15396
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15397
          ;;
 
15398
        *)
 
15399
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15400
          ;;
 
15401
        esac
 
15402
      fi
 
15403
      if test "$with_gnu_ld" = no; then
 
15404
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15405
        hardcode_libdir_separator_F77=:
 
15406
 
 
15407
        case $host_cpu in
 
15408
        hppa*64*|ia64*)
 
15409
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15410
          hardcode_direct_F77=no
 
15411
          hardcode_shlibpath_var_F77=no
 
15412
          ;;
 
15413
        *)
 
15414
          hardcode_direct_F77=yes
 
15415
          export_dynamic_flag_spec_F77='${wl}-E'
 
15416
 
 
15417
          # hardcode_minus_L: Not really in the search PATH,
 
15418
          # but as the default location of the library.
 
15419
          hardcode_minus_L_F77=yes
 
15420
          ;;
 
15421
        esac
 
15422
      fi
 
15423
      ;;
 
15424
 
 
15425
    irix5* | irix6* | nonstopux*)
 
15426
      if test "$GCC" = yes; then
 
15427
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15428
      else
 
15429
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15430
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15431
      fi
 
15432
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15433
      hardcode_libdir_separator_F77=:
 
15434
      link_all_deplibs_F77=yes
 
15435
      ;;
 
15436
 
 
15437
    netbsd* | netbsdelf*-gnu)
 
15438
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15439
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15440
      else
 
15441
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15442
      fi
 
15443
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15444
      hardcode_direct_F77=yes
 
15445
      hardcode_shlibpath_var_F77=no
 
15446
      ;;
 
15447
 
 
15448
    newsos6)
 
15449
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15450
      hardcode_direct_F77=yes
 
15451
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15452
      hardcode_libdir_separator_F77=:
 
15453
      hardcode_shlibpath_var_F77=no
 
15454
      ;;
 
15455
 
 
15456
    openbsd*)
 
15457
      if test -f /usr/libexec/ld.so; then
 
15458
        hardcode_direct_F77=yes
 
15459
        hardcode_shlibpath_var_F77=no
 
15460
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15461
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15462
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15463
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15464
          export_dynamic_flag_spec_F77='${wl}-E'
 
15465
        else
 
15466
          case $host_os in
 
15467
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15468
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15469
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15470
             ;;
 
15471
           *)
 
15472
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15473
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15474
             ;;
 
15475
          esac
 
15476
        fi
 
15477
      else
 
15478
        ld_shlibs_F77=no
 
15479
      fi
 
15480
      ;;
 
15481
 
 
15482
    os2*)
 
15483
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15484
      hardcode_minus_L_F77=yes
 
15485
      allow_undefined_flag_F77=unsupported
 
15486
      archive_cmds_F77='$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'
 
15487
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15488
      ;;
 
15489
 
 
15490
    osf3*)
 
15491
      if test "$GCC" = yes; then
 
15492
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15493
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15494
      else
 
15495
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15496
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15497
      fi
 
15498
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15499
      hardcode_libdir_separator_F77=:
 
15500
      ;;
 
15501
 
 
15502
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15503
      if test "$GCC" = yes; then
 
15504
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15505
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15506
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15507
      else
 
15508
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15509
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15510
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
15511
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
15512
 
 
15513
        # Both c and cxx compiler support -rpath directly
 
15514
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15515
      fi
 
15516
      hardcode_libdir_separator_F77=:
 
15517
      ;;
 
15518
 
 
15519
    solaris*)
 
15520
      no_undefined_flag_F77=' -z text'
 
15521
      if test "$GCC" = yes; then
 
15522
        wlarc='${wl}'
 
15523
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15524
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15525
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15526
      else
 
15527
        wlarc=''
 
15528
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15529
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15530
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15531
      fi
 
15532
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15533
      hardcode_shlibpath_var_F77=no
 
15534
      case $host_os in
 
15535
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15536
      *)
 
15537
        # The compiler driver will combine and reorder linker options,
 
15538
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15539
        # but is careful enough not to reorder.
 
15540
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15541
        if test "$GCC" = yes; then
 
15542
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15543
        else
 
15544
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15545
        fi
 
15546
        ;;
 
15547
      esac
 
15548
      link_all_deplibs_F77=yes
 
15549
      ;;
 
15550
 
 
15551
    sunos4*)
 
15552
      if test "x$host_vendor" = xsequent; then
 
15553
        # Use $CC to link under sequent, because it throws in some extra .o
 
15554
        # files that make .init and .fini sections work.
 
15555
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15556
      else
 
15557
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15558
      fi
 
15559
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15560
      hardcode_direct_F77=yes
 
15561
      hardcode_minus_L_F77=yes
 
15562
      hardcode_shlibpath_var_F77=no
 
15563
      ;;
 
15564
 
 
15565
    sysv4)
 
15566
      case $host_vendor in
 
15567
        sni)
 
15568
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15569
          hardcode_direct_F77=yes # is this really true???
 
15570
        ;;
 
15571
        siemens)
 
15572
          ## LD is ld it makes a PLAMLIB
 
15573
          ## CC just makes a GrossModule.
 
15574
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15575
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15576
          hardcode_direct_F77=no
 
15577
        ;;
 
15578
        motorola)
 
15579
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15580
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15581
        ;;
 
15582
      esac
 
15583
      runpath_var='LD_RUN_PATH'
 
15584
      hardcode_shlibpath_var_F77=no
 
15585
      ;;
 
15586
 
 
15587
    sysv4.3*)
 
15588
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15589
      hardcode_shlibpath_var_F77=no
 
15590
      export_dynamic_flag_spec_F77='-Bexport'
 
15591
      ;;
 
15592
 
 
15593
    sysv4*MP*)
 
15594
      if test -d /usr/nec; then
 
15595
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15596
        hardcode_shlibpath_var_F77=no
 
15597
        runpath_var=LD_RUN_PATH
 
15598
        hardcode_runpath_var=yes
 
15599
        ld_shlibs_F77=yes
 
15600
      fi
 
15601
      ;;
 
15602
 
 
15603
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15604
      no_undefined_flag_F77='${wl}-z,text'
 
15605
      archive_cmds_need_lc_F77=no
 
15606
      hardcode_shlibpath_var_F77=no
 
15607
      runpath_var='LD_RUN_PATH'
 
15608
 
 
15609
      if test "$GCC" = yes; then
 
15610
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15611
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15612
      else
 
15613
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15614
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15615
      fi
 
15616
      ;;
 
15617
 
 
15618
    sysv5* | sco3.2v5* | sco5v6*)
 
15619
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15620
      # link with -lc, and that would cause any symbols used from libc to
 
15621
      # always be unresolved, which means just about no library would
 
15622
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15623
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15624
      # as -z defs.
 
15625
      no_undefined_flag_F77='${wl}-z,text'
 
15626
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15627
      archive_cmds_need_lc_F77=no
 
15628
      hardcode_shlibpath_var_F77=no
 
15629
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15630
      hardcode_libdir_separator_F77=':'
 
15631
      link_all_deplibs_F77=yes
 
15632
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15633
      runpath_var='LD_RUN_PATH'
 
15634
 
 
15635
      if test "$GCC" = yes; then
 
15636
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15637
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15638
      else
 
15639
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15640
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15641
      fi
 
15642
      ;;
 
15643
 
 
15644
    uts4*)
 
15645
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15646
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15647
      hardcode_shlibpath_var_F77=no
 
15648
      ;;
 
15649
 
 
15650
    *)
 
15651
      ld_shlibs_F77=no
 
15652
      ;;
 
15653
    esac
 
15654
  fi
 
15655
 
 
15656
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15657
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
15658
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15659
 
 
15660
#
 
15661
# Do we need to explicitly link libc?
 
15662
#
 
15663
case "x$archive_cmds_need_lc_F77" in
 
15664
x|xyes)
 
15665
  # Assume -lc should be added
 
15666
  archive_cmds_need_lc_F77=yes
 
15667
 
 
15668
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15669
    case $archive_cmds_F77 in
 
15670
    *'~'*)
 
15671
      # FIXME: we may have to deal with multi-command sequences.
 
15672
      ;;
 
15673
    '$CC '*)
 
15674
      # Test whether the compiler implicitly links with -lc since on some
 
15675
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15676
      # to ld, don't add -lc before -lgcc.
 
15677
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15678
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
15679
      $rm conftest*
 
15680
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15681
 
 
15682
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15683
  (eval $ac_compile) 2>&5
 
15684
  ac_status=$?
 
15685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15686
  (exit $ac_status); } 2>conftest.err; then
 
15687
        soname=conftest
 
15688
        lib=conftest
 
15689
        libobjs=conftest.$ac_objext
 
15690
        deplibs=
 
15691
        wl=$lt_prog_compiler_wl_F77
 
15692
        pic_flag=$lt_prog_compiler_pic_F77
 
15693
        compiler_flags=-v
 
15694
        linker_flags=-v
 
15695
        verstring=
 
15696
        output_objdir=.
 
15697
        libname=conftest
 
15698
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15699
        allow_undefined_flag_F77=
 
15700
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15701
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15702
  ac_status=$?
 
15703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15704
  (exit $ac_status); }
 
15705
        then
 
15706
          archive_cmds_need_lc_F77=no
 
15707
        else
 
15708
          archive_cmds_need_lc_F77=yes
 
15709
        fi
 
15710
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15711
      else
 
15712
        cat conftest.err 1>&5
 
15713
      fi
 
15714
      $rm conftest*
 
15715
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15716
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
15717
      ;;
 
15718
    esac
 
15719
  fi
 
15720
  ;;
 
15721
esac
 
15722
 
 
15723
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15724
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
15725
library_names_spec=
 
15726
libname_spec='lib$name'
 
15727
soname_spec=
 
15728
shrext_cmds=".so"
 
15729
postinstall_cmds=
 
15730
postuninstall_cmds=
 
15731
finish_cmds=
 
15732
finish_eval=
 
15733
shlibpath_var=
 
15734
shlibpath_overrides_runpath=unknown
 
15735
version_type=none
 
15736
dynamic_linker="$host_os ld.so"
 
15737
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15738
 
 
15739
need_lib_prefix=unknown
 
15740
hardcode_into_libs=no
 
15741
 
 
15742
# when you set need_version to no, make sure it does not cause -set_version
 
15743
# flags to be left without arguments
 
15744
need_version=unknown
 
15745
 
 
15746
case $host_os in
 
15747
aix3*)
 
15748
  version_type=linux
 
15749
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15750
  shlibpath_var=LIBPATH
 
15751
 
 
15752
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15753
  soname_spec='${libname}${release}${shared_ext}$major'
 
15754
  ;;
 
15755
 
 
15756
aix[4-9]*)
 
15757
  version_type=linux
 
15758
  need_lib_prefix=no
 
15759
  need_version=no
 
15760
  hardcode_into_libs=yes
 
15761
  if test "$host_cpu" = ia64; then
 
15762
    # AIX 5 supports IA64
 
15763
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15764
    shlibpath_var=LD_LIBRARY_PATH
 
15765
  else
 
15766
    # With GCC up to 2.95.x, collect2 would create an import file
 
15767
    # for dependence libraries.  The import file would start with
 
15768
    # the line `#! .'.  This would cause the generated library to
 
15769
    # depend on `.', always an invalid library.  This was fixed in
 
15770
    # development snapshots of GCC prior to 3.0.
 
15771
    case $host_os in
 
15772
      aix4 | aix4.[01] | aix4.[01].*)
 
15773
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15774
           echo ' yes '
 
15775
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15776
        :
 
15777
      else
 
15778
        can_build_shared=no
 
15779
      fi
 
15780
      ;;
 
15781
    esac
 
15782
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15783
    # soname into executable. Probably we can add versioning support to
 
15784
    # collect2, so additional links can be useful in future.
 
15785
    if test "$aix_use_runtimelinking" = yes; then
 
15786
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15787
      # instead of lib<name>.a to let people know that these are not
 
15788
      # typical AIX shared libraries.
 
15789
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15790
    else
 
15791
      # We preserve .a as extension for shared libraries through AIX4.2
 
15792
      # and later when we are not doing run time linking.
 
15793
      library_names_spec='${libname}${release}.a $libname.a'
 
15794
      soname_spec='${libname}${release}${shared_ext}$major'
 
15795
    fi
 
15796
    shlibpath_var=LIBPATH
 
15797
  fi
 
15798
  ;;
 
15799
 
 
15800
amigaos*)
 
15801
  library_names_spec='$libname.ixlibrary $libname.a'
 
15802
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15803
  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'
 
15804
  ;;
 
15805
 
 
15806
beos*)
 
15807
  library_names_spec='${libname}${shared_ext}'
 
15808
  dynamic_linker="$host_os ld.so"
 
15809
  shlibpath_var=LIBRARY_PATH
 
15810
  ;;
 
15811
 
 
15812
bsdi[45]*)
 
15813
  version_type=linux
 
15814
  need_version=no
 
15815
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15816
  soname_spec='${libname}${release}${shared_ext}$major'
 
15817
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15818
  shlibpath_var=LD_LIBRARY_PATH
 
15819
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15820
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15821
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15822
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15823
  # libtool to hard-code these into programs
 
15824
  ;;
 
15825
 
 
15826
cygwin* | mingw* | pw32*)
 
15827
  version_type=windows
 
15828
  shrext_cmds=".dll"
 
15829
  need_version=no
 
15830
  need_lib_prefix=no
 
15831
 
 
15832
  case $GCC,$host_os in
 
15833
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15834
    library_names_spec='$libname.dll.a'
 
15835
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15836
    postinstall_cmds='base_file=`basename \${file}`~
 
15837
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15838
      dldir=$destdir/`dirname \$dlpath`~
 
15839
      test -d \$dldir || mkdir -p \$dldir~
 
15840
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15841
      chmod a+x \$dldir/$dlname'
 
15842
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15843
      dlpath=$dir/\$dldll~
 
15844
       $rm \$dlpath'
 
15845
    shlibpath_overrides_runpath=yes
 
15846
 
 
15847
    case $host_os in
 
15848
    cygwin*)
 
15849
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15850
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15851
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15852
      ;;
 
15853
    mingw*)
 
15854
      # MinGW DLLs use traditional 'lib' prefix
 
15855
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15856
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15857
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15858
        # It is most probably a Windows format PATH printed by
 
15859
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15860
        # path with ; separators, and with drive letters. We can handle the
 
15861
        # drive letters (cygwin fileutils understands them), so leave them,
 
15862
        # especially as we might pass files found there to a mingw objdump,
 
15863
        # which wouldn't understand a cygwinified path. Ahh.
 
15864
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15865
      else
 
15866
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15867
      fi
 
15868
      ;;
 
15869
    pw32*)
 
15870
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15871
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15872
      ;;
 
15873
    esac
 
15874
    ;;
 
15875
 
 
15876
  *)
 
15877
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15878
    ;;
 
15879
  esac
 
15880
  dynamic_linker='Win32 ld.exe'
 
15881
  # FIXME: first we should search . and the directory the executable is in
 
15882
  shlibpath_var=PATH
 
15883
  ;;
 
15884
 
 
15885
darwin* | rhapsody*)
 
15886
  dynamic_linker="$host_os dyld"
 
15887
  version_type=darwin
 
15888
  need_lib_prefix=no
 
15889
  need_version=no
 
15890
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15891
  soname_spec='${libname}${release}${major}$shared_ext'
 
15892
  shlibpath_overrides_runpath=yes
 
15893
  shlibpath_var=DYLD_LIBRARY_PATH
 
15894
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15895
 
 
15896
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15897
  ;;
 
15898
 
 
15899
dgux*)
 
15900
  version_type=linux
 
15901
  need_lib_prefix=no
 
15902
  need_version=no
 
15903
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15904
  soname_spec='${libname}${release}${shared_ext}$major'
 
15905
  shlibpath_var=LD_LIBRARY_PATH
 
15906
  ;;
 
15907
 
 
15908
freebsd1*)
 
15909
  dynamic_linker=no
 
15910
  ;;
 
15911
 
 
15912
freebsd* | dragonfly*)
 
15913
  # DragonFly does not have aout.  When/if they implement a new
 
15914
  # versioning mechanism, adjust this.
 
15915
  if test -x /usr/bin/objformat; then
 
15916
    objformat=`/usr/bin/objformat`
 
15917
  else
 
15918
    case $host_os in
 
15919
    freebsd[123]*) objformat=aout ;;
 
15920
    *) objformat=elf ;;
 
15921
    esac
 
15922
  fi
 
15923
  version_type=freebsd-$objformat
 
15924
  case $version_type in
 
15925
    freebsd-elf*)
 
15926
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15927
      need_version=no
 
15928
      need_lib_prefix=no
 
15929
      ;;
 
15930
    freebsd-*)
 
15931
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15932
      need_version=yes
 
15933
      ;;
 
15934
  esac
 
15935
  shlibpath_var=LD_LIBRARY_PATH
 
15936
  case $host_os in
 
15937
  freebsd2*)
 
15938
    shlibpath_overrides_runpath=yes
 
15939
    ;;
 
15940
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15941
    shlibpath_overrides_runpath=yes
 
15942
    hardcode_into_libs=yes
 
15943
    ;;
 
15944
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15945
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15946
    shlibpath_overrides_runpath=no
 
15947
    hardcode_into_libs=yes
 
15948
    ;;
 
15949
  *) # from 4.6 on, and DragonFly
 
15950
    shlibpath_overrides_runpath=yes
 
15951
    hardcode_into_libs=yes
 
15952
    ;;
 
15953
  esac
 
15954
  ;;
 
15955
 
 
15956
gnu*)
 
15957
  version_type=linux
 
15958
  need_lib_prefix=no
 
15959
  need_version=no
 
15960
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15961
  soname_spec='${libname}${release}${shared_ext}$major'
 
15962
  shlibpath_var=LD_LIBRARY_PATH
 
15963
  hardcode_into_libs=yes
 
15964
  ;;
 
15965
 
 
15966
hpux9* | hpux10* | hpux11*)
 
15967
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15968
  # link against other versions.
 
15969
  version_type=sunos
 
15970
  need_lib_prefix=no
 
15971
  need_version=no
 
15972
  case $host_cpu in
 
15973
  ia64*)
 
15974
    shrext_cmds='.so'
 
15975
    hardcode_into_libs=yes
 
15976
    dynamic_linker="$host_os dld.so"
 
15977
    shlibpath_var=LD_LIBRARY_PATH
 
15978
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15979
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15980
    soname_spec='${libname}${release}${shared_ext}$major'
 
15981
    if test "X$HPUX_IA64_MODE" = X32; then
 
15982
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15983
    else
 
15984
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15985
    fi
 
15986
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15987
    ;;
 
15988
   hppa*64*)
 
15989
     shrext_cmds='.sl'
 
15990
     hardcode_into_libs=yes
 
15991
     dynamic_linker="$host_os dld.sl"
 
15992
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15993
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15994
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15995
     soname_spec='${libname}${release}${shared_ext}$major'
 
15996
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15997
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15998
     ;;
 
15999
   *)
 
16000
    shrext_cmds='.sl'
 
16001
    dynamic_linker="$host_os dld.sl"
 
16002
    shlibpath_var=SHLIB_PATH
 
16003
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16004
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16005
    soname_spec='${libname}${release}${shared_ext}$major'
 
16006
    ;;
 
16007
  esac
 
16008
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16009
  postinstall_cmds='chmod 555 $lib'
 
16010
  ;;
 
16011
 
 
16012
interix[3-9]*)
 
16013
  version_type=linux
 
16014
  need_lib_prefix=no
 
16015
  need_version=no
 
16016
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16017
  soname_spec='${libname}${release}${shared_ext}$major'
 
16018
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16019
  shlibpath_var=LD_LIBRARY_PATH
 
16020
  shlibpath_overrides_runpath=no
 
16021
  hardcode_into_libs=yes
 
16022
  ;;
 
16023
 
 
16024
irix5* | irix6* | nonstopux*)
 
16025
  case $host_os in
 
16026
    nonstopux*) version_type=nonstopux ;;
 
16027
    *)
 
16028
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16029
                version_type=linux
 
16030
        else
 
16031
                version_type=irix
 
16032
        fi ;;
 
16033
  esac
 
16034
  need_lib_prefix=no
 
16035
  need_version=no
 
16036
  soname_spec='${libname}${release}${shared_ext}$major'
 
16037
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16038
  case $host_os in
 
16039
  irix5* | nonstopux*)
 
16040
    libsuff= shlibsuff=
 
16041
    ;;
 
16042
  *)
 
16043
    case $LD in # libtool.m4 will add one of these switches to LD
 
16044
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16045
      libsuff= shlibsuff= libmagic=32-bit;;
 
16046
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16047
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16048
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16049
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16050
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16051
    esac
 
16052
    ;;
 
16053
  esac
 
16054
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16055
  shlibpath_overrides_runpath=no
 
16056
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16057
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16058
  hardcode_into_libs=yes
 
16059
  ;;
 
16060
 
 
16061
# No shared lib support for Linux oldld, aout, or coff.
 
16062
linux*oldld* | linux*aout* | linux*coff*)
 
16063
  dynamic_linker=no
 
16064
  ;;
 
16065
 
 
16066
# This must be Linux ELF.
 
16067
linux* | k*bsd*-gnu)
 
16068
  version_type=linux
 
16069
  need_lib_prefix=no
 
16070
  need_version=no
 
16071
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16072
  soname_spec='${libname}${release}${shared_ext}$major'
 
16073
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16074
  shlibpath_var=LD_LIBRARY_PATH
 
16075
  shlibpath_overrides_runpath=no
 
16076
  # This implies no fast_install, which is unacceptable.
 
16077
  # Some rework will be needed to allow for fast_install
 
16078
  # before this can be enabled.
 
16079
  hardcode_into_libs=yes
 
16080
 
 
16081
  # Append ld.so.conf contents to the search path
 
16082
  if test -f /etc/ld.so.conf; then
 
16083
    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' ' '`
 
16084
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
16085
  fi
 
16086
 
 
16087
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16088
  # powerpc, because MkLinux only supported shared libraries with the
 
16089
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16090
  # most powerpc-linux boxes support dynamic linking these days and
 
16091
  # people can always --disable-shared, the test was removed, and we
 
16092
  # assume the GNU/Linux dynamic linker is in use.
 
16093
  dynamic_linker='GNU/Linux ld.so'
 
16094
  ;;
 
16095
 
 
16096
netbsdelf*-gnu)
 
16097
  version_type=linux
 
16098
  need_lib_prefix=no
 
16099
  need_version=no
 
16100
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16101
  soname_spec='${libname}${release}${shared_ext}$major'
 
16102
  shlibpath_var=LD_LIBRARY_PATH
 
16103
  shlibpath_overrides_runpath=no
 
16104
  hardcode_into_libs=yes
 
16105
  dynamic_linker='NetBSD ld.elf_so'
 
16106
  ;;
 
16107
 
 
16108
netbsd*)
 
16109
  version_type=sunos
 
16110
  need_lib_prefix=no
 
16111
  need_version=no
 
16112
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16113
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16114
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16115
    dynamic_linker='NetBSD (a.out) ld.so'
 
16116
  else
 
16117
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16118
    soname_spec='${libname}${release}${shared_ext}$major'
 
16119
    dynamic_linker='NetBSD ld.elf_so'
 
16120
  fi
 
16121
  shlibpath_var=LD_LIBRARY_PATH
 
16122
  shlibpath_overrides_runpath=yes
 
16123
  hardcode_into_libs=yes
 
16124
  ;;
 
16125
 
 
16126
newsos6)
 
16127
  version_type=linux
 
16128
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16129
  shlibpath_var=LD_LIBRARY_PATH
 
16130
  shlibpath_overrides_runpath=yes
 
16131
  ;;
 
16132
 
 
16133
nto-qnx*)
 
16134
  version_type=linux
 
16135
  need_lib_prefix=no
 
16136
  need_version=no
 
16137
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16138
  soname_spec='${libname}${release}${shared_ext}$major'
 
16139
  shlibpath_var=LD_LIBRARY_PATH
 
16140
  shlibpath_overrides_runpath=yes
 
16141
  ;;
 
16142
 
 
16143
openbsd*)
 
16144
  version_type=sunos
 
16145
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16146
  need_lib_prefix=no
 
16147
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16148
  case $host_os in
 
16149
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16150
    *)                         need_version=no  ;;
 
16151
  esac
 
16152
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16153
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16154
  shlibpath_var=LD_LIBRARY_PATH
 
16155
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16156
    case $host_os in
 
16157
      openbsd2.[89] | openbsd2.[89].*)
 
16158
        shlibpath_overrides_runpath=no
 
16159
        ;;
 
16160
      *)
 
16161
        shlibpath_overrides_runpath=yes
 
16162
        ;;
 
16163
      esac
 
16164
  else
 
16165
    shlibpath_overrides_runpath=yes
 
16166
  fi
 
16167
  ;;
 
16168
 
 
16169
os2*)
 
16170
  libname_spec='$name'
 
16171
  shrext_cmds=".dll"
 
16172
  need_lib_prefix=no
 
16173
  library_names_spec='$libname${shared_ext} $libname.a'
 
16174
  dynamic_linker='OS/2 ld.exe'
 
16175
  shlibpath_var=LIBPATH
 
16176
  ;;
 
16177
 
 
16178
osf3* | osf4* | osf5*)
 
16179
  version_type=osf
 
16180
  need_lib_prefix=no
 
16181
  need_version=no
 
16182
  soname_spec='${libname}${release}${shared_ext}$major'
 
16183
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16184
  shlibpath_var=LD_LIBRARY_PATH
 
16185
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16186
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16187
  ;;
 
16188
 
 
16189
rdos*)
 
16190
  dynamic_linker=no
 
16191
  ;;
 
16192
 
 
16193
solaris*)
 
16194
  version_type=linux
 
16195
  need_lib_prefix=no
 
16196
  need_version=no
 
16197
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16198
  soname_spec='${libname}${release}${shared_ext}$major'
 
16199
  shlibpath_var=LD_LIBRARY_PATH
 
16200
  shlibpath_overrides_runpath=yes
 
16201
  hardcode_into_libs=yes
 
16202
  # ldd complains unless libraries are executable
 
16203
  postinstall_cmds='chmod +x $lib'
 
16204
  ;;
 
16205
 
 
16206
sunos4*)
 
16207
  version_type=sunos
 
16208
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16209
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16210
  shlibpath_var=LD_LIBRARY_PATH
 
16211
  shlibpath_overrides_runpath=yes
 
16212
  if test "$with_gnu_ld" = yes; then
 
16213
    need_lib_prefix=no
 
16214
  fi
 
16215
  need_version=yes
 
16216
  ;;
 
16217
 
 
16218
sysv4 | sysv4.3*)
 
16219
  version_type=linux
 
16220
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16221
  soname_spec='${libname}${release}${shared_ext}$major'
 
16222
  shlibpath_var=LD_LIBRARY_PATH
 
16223
  case $host_vendor in
 
16224
    sni)
 
16225
      shlibpath_overrides_runpath=no
 
16226
      need_lib_prefix=no
 
16227
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16228
      runpath_var=LD_RUN_PATH
 
16229
      ;;
 
16230
    siemens)
 
16231
      need_lib_prefix=no
 
16232
      ;;
 
16233
    motorola)
 
16234
      need_lib_prefix=no
 
16235
      need_version=no
 
16236
      shlibpath_overrides_runpath=no
 
16237
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16238
      ;;
 
16239
  esac
 
16240
  ;;
 
16241
 
 
16242
sysv4*MP*)
 
16243
  if test -d /usr/nec ;then
 
16244
    version_type=linux
 
16245
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16246
    soname_spec='$libname${shared_ext}.$major'
 
16247
    shlibpath_var=LD_LIBRARY_PATH
 
16248
  fi
 
16249
  ;;
 
16250
 
 
16251
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16252
  version_type=freebsd-elf
 
16253
  need_lib_prefix=no
 
16254
  need_version=no
 
16255
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16256
  soname_spec='${libname}${release}${shared_ext}$major'
 
16257
  shlibpath_var=LD_LIBRARY_PATH
 
16258
  hardcode_into_libs=yes
 
16259
  if test "$with_gnu_ld" = yes; then
 
16260
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16261
    shlibpath_overrides_runpath=no
 
16262
  else
 
16263
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16264
    shlibpath_overrides_runpath=yes
 
16265
    case $host_os in
 
16266
      sco3.2v5*)
 
16267
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16268
        ;;
 
16269
    esac
 
16270
  fi
 
16271
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16272
  ;;
 
16273
 
 
16274
uts4*)
 
16275
  version_type=linux
 
16276
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16277
  soname_spec='${libname}${release}${shared_ext}$major'
 
16278
  shlibpath_var=LD_LIBRARY_PATH
 
16279
  ;;
 
16280
 
 
16281
*)
 
16282
  dynamic_linker=no
 
16283
  ;;
 
16284
esac
 
16285
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16286
echo "${ECHO_T}$dynamic_linker" >&6; }
 
16287
test "$dynamic_linker" = no && can_build_shared=no
 
16288
 
 
16289
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16291
else
 
16292
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16293
fi
 
16294
 
 
16295
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16296
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16297
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16298
else
 
16299
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16300
fi
 
16301
 
 
16302
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16303
 
 
16304
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16305
if test "$GCC" = yes; then
 
16306
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16307
fi
 
16308
 
 
16309
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16310
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
16311
hardcode_action_F77=
 
16312
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16313
   test -n "$runpath_var_F77" || \
 
16314
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16315
 
 
16316
  # We can hardcode non-existant directories.
 
16317
  if test "$hardcode_direct_F77" != no &&
 
16318
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16319
     # have to relink, otherwise we might link with an installed library
 
16320
     # when we should be linking with a yet-to-be-installed one
 
16321
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16322
     test "$hardcode_minus_L_F77" != no; then
 
16323
    # Linking always hardcodes the temporary library directory.
 
16324
    hardcode_action_F77=relink
 
16325
  else
 
16326
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16327
    hardcode_action_F77=immediate
 
16328
  fi
 
16329
else
 
16330
  # We cannot hardcode anything, or else we can only hardcode existing
 
16331
  # directories.
 
16332
  hardcode_action_F77=unsupported
 
16333
fi
 
16334
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16335
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
16336
 
 
16337
if test "$hardcode_action_F77" = relink; then
 
16338
  # Fast installation is not supported
 
16339
  enable_fast_install=no
 
16340
elif test "$shlibpath_overrides_runpath" = yes ||
 
16341
     test "$enable_shared" = no; then
 
16342
  # Fast installation is not necessary
 
16343
  enable_fast_install=needless
 
16344
fi
 
16345
 
 
16346
 
 
16347
# The else clause should only fire when bootstrapping the
 
16348
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16349
# with your package, and you will get complaints that there are
 
16350
# no rules to generate ltmain.sh.
 
16351
if test -f "$ltmain"; then
 
16352
  # See if we are running on zsh, and set the options which allow our commands through
 
16353
  # without removal of \ escapes.
 
16354
  if test -n "${ZSH_VERSION+set}" ; then
 
16355
    setopt NO_GLOB_SUBST
 
16356
  fi
 
16357
  # Now quote all the things that may contain metacharacters while being
 
16358
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16359
  # variables and quote the copies for generation of the libtool script.
 
16360
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16361
    SED SHELL STRIP \
 
16362
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16363
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16364
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16365
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16366
    lt_cv_sys_global_symbol_to_c_name_address \
 
16367
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16368
    old_postinstall_cmds old_postuninstall_cmds \
 
16369
    compiler_F77 \
 
16370
    CC_F77 \
 
16371
    LD_F77 \
 
16372
    lt_prog_compiler_wl_F77 \
 
16373
    lt_prog_compiler_pic_F77 \
 
16374
    lt_prog_compiler_static_F77 \
 
16375
    lt_prog_compiler_no_builtin_flag_F77 \
 
16376
    export_dynamic_flag_spec_F77 \
 
16377
    thread_safe_flag_spec_F77 \
 
16378
    whole_archive_flag_spec_F77 \
 
16379
    enable_shared_with_static_runtimes_F77 \
 
16380
    old_archive_cmds_F77 \
 
16381
    old_archive_from_new_cmds_F77 \
 
16382
    predep_objects_F77 \
 
16383
    postdep_objects_F77 \
 
16384
    predeps_F77 \
 
16385
    postdeps_F77 \
 
16386
    compiler_lib_search_path_F77 \
 
16387
    compiler_lib_search_dirs_F77 \
 
16388
    archive_cmds_F77 \
 
16389
    archive_expsym_cmds_F77 \
 
16390
    postinstall_cmds_F77 \
 
16391
    postuninstall_cmds_F77 \
 
16392
    old_archive_from_expsyms_cmds_F77 \
 
16393
    allow_undefined_flag_F77 \
 
16394
    no_undefined_flag_F77 \
 
16395
    export_symbols_cmds_F77 \
 
16396
    hardcode_libdir_flag_spec_F77 \
 
16397
    hardcode_libdir_flag_spec_ld_F77 \
 
16398
    hardcode_libdir_separator_F77 \
 
16399
    hardcode_automatic_F77 \
 
16400
    module_cmds_F77 \
 
16401
    module_expsym_cmds_F77 \
 
16402
    lt_cv_prog_compiler_c_o_F77 \
 
16403
    fix_srcfile_path_F77 \
 
16404
    exclude_expsyms_F77 \
 
16405
    include_expsyms_F77; do
 
16406
 
 
16407
    case $var in
 
16408
    old_archive_cmds_F77 | \
 
16409
    old_archive_from_new_cmds_F77 | \
 
16410
    archive_cmds_F77 | \
 
16411
    archive_expsym_cmds_F77 | \
 
16412
    module_cmds_F77 | \
 
16413
    module_expsym_cmds_F77 | \
 
16414
    old_archive_from_expsyms_cmds_F77 | \
 
16415
    export_symbols_cmds_F77 | \
 
16416
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16417
    postinstall_cmds | postuninstall_cmds | \
 
16418
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16419
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16420
      # Double-quote double-evaled strings.
 
16421
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16422
      ;;
 
16423
    *)
 
16424
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16425
      ;;
 
16426
    esac
 
16427
  done
 
16428
 
 
16429
  case $lt_echo in
 
16430
  *'\$0 --fallback-echo"')
 
16431
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16432
    ;;
 
16433
  esac
 
16434
 
 
16435
cfgfile="$ofile"
 
16436
 
 
16437
  cat <<__EOF__ >> "$cfgfile"
 
16438
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16439
 
 
16440
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16441
 
 
16442
# Shell to use when invoking shell scripts.
 
16443
SHELL=$lt_SHELL
 
16444
 
 
16445
# Whether or not to build shared libraries.
 
16446
build_libtool_libs=$enable_shared
 
16447
 
 
16448
# Whether or not to build static libraries.
 
16449
build_old_libs=$enable_static
 
16450
 
 
16451
# Whether or not to add -lc for building shared libraries.
 
16452
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16453
 
 
16454
# Whether or not to disallow shared libs when runtime libs are static
 
16455
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16456
 
 
16457
# Whether or not to optimize for fast installation.
 
16458
fast_install=$enable_fast_install
 
16459
 
 
16460
# The host system.
 
16461
host_alias=$host_alias
 
16462
host=$host
 
16463
host_os=$host_os
 
16464
 
 
16465
# The build system.
 
16466
build_alias=$build_alias
 
16467
build=$build
 
16468
build_os=$build_os
 
16469
 
 
16470
# An echo program that does not interpret backslashes.
 
16471
echo=$lt_echo
 
16472
 
 
16473
# The archiver.
 
16474
AR=$lt_AR
 
16475
AR_FLAGS=$lt_AR_FLAGS
 
16476
 
 
16477
# A C compiler.
 
16478
LTCC=$lt_LTCC
 
16479
 
 
16480
# LTCC compiler flags.
 
16481
LTCFLAGS=$lt_LTCFLAGS
 
16482
 
 
16483
# A language-specific compiler.
 
16484
CC=$lt_compiler_F77
 
16485
 
 
16486
# Is the compiler the GNU C compiler?
 
16487
with_gcc=$GCC_F77
 
16488
 
 
16489
# An ERE matcher.
 
16490
EGREP=$lt_EGREP
 
16491
 
 
16492
# The linker used to build libraries.
 
16493
LD=$lt_LD_F77
 
16494
 
 
16495
# Whether we need hard or soft links.
 
16496
LN_S=$lt_LN_S
 
16497
 
 
16498
# A BSD-compatible nm program.
 
16499
NM=$lt_NM
 
16500
 
 
16501
# A symbol stripping program
 
16502
STRIP=$lt_STRIP
 
16503
 
 
16504
# Used to examine libraries when file_magic_cmd begins "file"
 
16505
MAGIC_CMD=$MAGIC_CMD
 
16506
 
 
16507
# Used on cygwin: DLL creation program.
 
16508
DLLTOOL="$DLLTOOL"
 
16509
 
 
16510
# Used on cygwin: object dumper.
 
16511
OBJDUMP="$OBJDUMP"
 
16512
 
 
16513
# Used on cygwin: assembler.
 
16514
AS="$AS"
 
16515
 
 
16516
# The name of the directory that contains temporary libtool files.
 
16517
objdir=$objdir
 
16518
 
 
16519
# How to create reloadable object files.
 
16520
reload_flag=$lt_reload_flag
 
16521
reload_cmds=$lt_reload_cmds
 
16522
 
 
16523
# How to pass a linker flag through the compiler.
 
16524
wl=$lt_lt_prog_compiler_wl_F77
 
16525
 
 
16526
# Object file suffix (normally "o").
 
16527
objext="$ac_objext"
 
16528
 
 
16529
# Old archive suffix (normally "a").
 
16530
libext="$libext"
 
16531
 
 
16532
# Shared library suffix (normally ".so").
 
16533
shrext_cmds='$shrext_cmds'
 
16534
 
 
16535
# Executable file suffix (normally "").
 
16536
exeext="$exeext"
 
16537
 
 
16538
# Additional compiler flags for building library objects.
 
16539
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16540
pic_mode=$pic_mode
 
16541
 
 
16542
# What is the maximum length of a command?
 
16543
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16544
 
 
16545
# Does compiler simultaneously support -c and -o options?
 
16546
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16547
 
 
16548
# Must we lock files when doing compilation?
 
16549
need_locks=$lt_need_locks
 
16550
 
 
16551
# Do we need the lib prefix for modules?
 
16552
need_lib_prefix=$need_lib_prefix
 
16553
 
 
16554
# Do we need a version for libraries?
 
16555
need_version=$need_version
 
16556
 
 
16557
# Whether dlopen is supported.
 
16558
dlopen_support=$enable_dlopen
 
16559
 
 
16560
# Whether dlopen of programs is supported.
 
16561
dlopen_self=$enable_dlopen_self
 
16562
 
 
16563
# Whether dlopen of statically linked programs is supported.
 
16564
dlopen_self_static=$enable_dlopen_self_static
 
16565
 
 
16566
# Compiler flag to prevent dynamic linking.
 
16567
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16568
 
 
16569
# Compiler flag to turn off builtin functions.
 
16570
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16571
 
 
16572
# Compiler flag to allow reflexive dlopens.
 
16573
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16574
 
 
16575
# Compiler flag to generate shared objects directly from archives.
 
16576
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16577
 
 
16578
# Compiler flag to generate thread-safe objects.
 
16579
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16580
 
 
16581
# Library versioning type.
 
16582
version_type=$version_type
 
16583
 
 
16584
# Format of library name prefix.
 
16585
libname_spec=$lt_libname_spec
 
16586
 
 
16587
# List of archive names.  First name is the real one, the rest are links.
 
16588
# The last name is the one that the linker finds with -lNAME.
 
16589
library_names_spec=$lt_library_names_spec
 
16590
 
 
16591
# The coded name of the library, if different from the real name.
 
16592
soname_spec=$lt_soname_spec
 
16593
 
 
16594
# Commands used to build and install an old-style archive.
 
16595
RANLIB=$lt_RANLIB
 
16596
old_archive_cmds=$lt_old_archive_cmds_F77
 
16597
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16598
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16599
 
 
16600
# Create an old-style archive from a shared archive.
 
16601
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16602
 
 
16603
# Create a temporary old-style archive to link instead of a shared archive.
 
16604
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16605
 
 
16606
# Commands used to build and install a shared archive.
 
16607
archive_cmds=$lt_archive_cmds_F77
 
16608
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16609
postinstall_cmds=$lt_postinstall_cmds
 
16610
postuninstall_cmds=$lt_postuninstall_cmds
 
16611
 
 
16612
# Commands used to build a loadable module (assumed same as above if empty)
 
16613
module_cmds=$lt_module_cmds_F77
 
16614
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16615
 
 
16616
# Commands to strip libraries.
 
16617
old_striplib=$lt_old_striplib
 
16618
striplib=$lt_striplib
 
16619
 
 
16620
# Dependencies to place before the objects being linked to create a
 
16621
# shared library.
 
16622
predep_objects=$lt_predep_objects_F77
 
16623
 
 
16624
# Dependencies to place after the objects being linked to create a
 
16625
# shared library.
 
16626
postdep_objects=$lt_postdep_objects_F77
 
16627
 
 
16628
# Dependencies to place before the objects being linked to create a
 
16629
# shared library.
 
16630
predeps=$lt_predeps_F77
 
16631
 
 
16632
# Dependencies to place after the objects being linked to create a
 
16633
# shared library.
 
16634
postdeps=$lt_postdeps_F77
 
16635
 
 
16636
# The directories searched by this compiler when creating a shared
 
16637
# library
 
16638
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
16639
 
 
16640
# The library search path used internally by the compiler when linking
 
16641
# a shared library.
 
16642
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16643
 
 
16644
# Method to check whether dependent libraries are shared objects.
 
16645
deplibs_check_method=$lt_deplibs_check_method
 
16646
 
 
16647
# Command to use when deplibs_check_method == file_magic.
 
16648
file_magic_cmd=$lt_file_magic_cmd
 
16649
 
 
16650
# Flag that allows shared libraries with undefined symbols to be built.
 
16651
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16652
 
 
16653
# Flag that forces no undefined symbols.
 
16654
no_undefined_flag=$lt_no_undefined_flag_F77
 
16655
 
 
16656
# Commands used to finish a libtool library installation in a directory.
 
16657
finish_cmds=$lt_finish_cmds
 
16658
 
 
16659
# Same as above, but a single script fragment to be evaled but not shown.
 
16660
finish_eval=$lt_finish_eval
 
16661
 
 
16662
# Take the output of nm and produce a listing of raw symbols and C names.
 
16663
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16664
 
 
16665
# Transform the output of nm in a proper C declaration
 
16666
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16667
 
 
16668
# Transform the output of nm in a C name address pair
 
16669
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16670
 
 
16671
# This is the shared library runtime path variable.
 
16672
runpath_var=$runpath_var
 
16673
 
 
16674
# This is the shared library path variable.
 
16675
shlibpath_var=$shlibpath_var
 
16676
 
 
16677
# Is shlibpath searched before the hard-coded library search path?
 
16678
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16679
 
 
16680
# How to hardcode a shared library path into an executable.
 
16681
hardcode_action=$hardcode_action_F77
 
16682
 
 
16683
# Whether we should hardcode library paths into libraries.
 
16684
hardcode_into_libs=$hardcode_into_libs
 
16685
 
 
16686
# Flag to hardcode \$libdir into a binary during linking.
 
16687
# This must work even if \$libdir does not exist.
 
16688
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16689
 
 
16690
# If ld is used when linking, flag to hardcode \$libdir into
 
16691
# a binary during linking. This must work even if \$libdir does
 
16692
# not exist.
 
16693
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16694
 
 
16695
# Whether we need a single -rpath flag with a separated argument.
 
16696
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16697
 
 
16698
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16699
# resulting binary.
 
16700
hardcode_direct=$hardcode_direct_F77
 
16701
 
 
16702
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16703
# resulting binary.
 
16704
hardcode_minus_L=$hardcode_minus_L_F77
 
16705
 
 
16706
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16707
# the resulting binary.
 
16708
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16709
 
 
16710
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16711
# and all subsequent libraries and executables linked against it.
 
16712
hardcode_automatic=$hardcode_automatic_F77
 
16713
 
 
16714
# Variables whose values should be saved in libtool wrapper scripts and
 
16715
# restored at relink time.
 
16716
variables_saved_for_relink="$variables_saved_for_relink"
 
16717
 
 
16718
# Whether libtool must link a program against all its dependency libraries.
 
16719
link_all_deplibs=$link_all_deplibs_F77
 
16720
 
 
16721
# Compile-time system search path for libraries
 
16722
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16723
 
 
16724
# Run-time system search path for libraries
 
16725
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16726
 
 
16727
# Fix the shell variable \$srcfile for the compiler.
 
16728
fix_srcfile_path=$lt_fix_srcfile_path
 
16729
 
 
16730
# Set to yes if exported symbols are required.
 
16731
always_export_symbols=$always_export_symbols_F77
 
16732
 
 
16733
# The commands to list exported symbols.
 
16734
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16735
 
 
16736
# The commands to extract the exported symbol list from a shared archive.
 
16737
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16738
 
 
16739
# Symbols that should not be listed in the preloaded symbols.
 
16740
exclude_expsyms=$lt_exclude_expsyms_F77
 
16741
 
 
16742
# Symbols that must always be exported.
 
16743
include_expsyms=$lt_include_expsyms_F77
 
16744
 
 
16745
# ### END LIBTOOL TAG CONFIG: $tagname
 
16746
 
 
16747
__EOF__
 
16748
 
 
16749
 
 
16750
else
 
16751
  # If there is no Makefile yet, we rely on a make rule to execute
 
16752
  # `config.status --recheck' to rerun these tests and create the
 
16753
  # libtool script then.
 
16754
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16755
  if test -f "$ltmain_in"; then
 
16756
    test -f Makefile && make "$ltmain"
 
16757
  fi
 
16758
fi
 
16759
 
 
16760
 
 
16761
ac_ext=c
 
16762
ac_cpp='$CPP $CPPFLAGS'
 
16763
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16764
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16765
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16766
 
 
16767
CC="$lt_save_CC"
 
16768
 
 
16769
        else
 
16770
          tagname=""
 
16771
        fi
 
16772
        ;;
 
16773
 
 
16774
      GCJ)
 
16775
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16776
 
 
16777
 
 
16778
# Source file extension for Java test sources.
 
16779
ac_ext=java
 
16780
 
 
16781
# Object file extension for compiled Java test sources.
 
16782
objext=o
 
16783
objext_GCJ=$objext
 
16784
 
 
16785
# Code to be used in simple compile tests
 
16786
lt_simple_compile_test_code="class foo {}"
 
16787
 
 
16788
# Code to be used in simple link tests
 
16789
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
16790
 
 
16791
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16792
 
 
16793
# If no C compiler was specified, use CC.
 
16794
LTCC=${LTCC-"$CC"}
 
16795
 
 
16796
# If no C compiler flags were specified, use CFLAGS.
 
16797
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16798
 
 
16799
# Allow CC to be a program name with arguments.
 
16800
compiler=$CC
 
16801
 
 
16802
 
 
16803
# save warnings/boilerplate of simple test code
 
16804
ac_outfile=conftest.$ac_objext
 
16805
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16806
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16807
_lt_compiler_boilerplate=`cat conftest.err`
 
16808
$rm conftest*
 
16809
 
 
16810
ac_outfile=conftest.$ac_objext
 
16811
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
16812
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16813
_lt_linker_boilerplate=`cat conftest.err`
 
16814
$rm -r conftest*
 
16815
 
 
16816
 
 
16817
# Allow CC to be a program name with arguments.
 
16818
lt_save_CC="$CC"
 
16819
CC=${GCJ-"gcj"}
 
16820
compiler=$CC
 
16821
compiler_GCJ=$CC
 
16822
for cc_temp in $compiler""; do
 
16823
  case $cc_temp in
 
16824
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16825
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16826
    \-*) ;;
 
16827
    *) break;;
 
16828
  esac
 
16829
done
 
16830
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16831
 
 
16832
 
 
16833
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16834
archive_cmds_need_lc_GCJ=no
 
16835
 
 
16836
old_archive_cmds_GCJ=$old_archive_cmds
 
16837
 
 
16838
 
 
16839
lt_prog_compiler_no_builtin_flag_GCJ=
 
16840
 
 
16841
if test "$GCC" = yes; then
 
16842
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16843
 
 
16844
 
 
16845
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16846
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
16847
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16848
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16849
else
 
16850
  lt_cv_prog_compiler_rtti_exceptions=no
 
16851
  ac_outfile=conftest.$ac_objext
 
16852
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16853
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16854
   # Insert the option either (1) after the last *FLAGS variable, or
 
16855
   # (2) before a word containing "conftest.", or (3) at the end.
 
16856
   # Note that $ac_compile itself does not contain backslashes and begins
 
16857
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16858
   # The option is referenced via a variable to avoid confusing sed.
 
16859
   lt_compile=`echo "$ac_compile" | $SED \
 
16860
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16861
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16862
   -e 's:$: $lt_compiler_flag:'`
 
16863
   (eval echo "\"\$as_me:16863: $lt_compile\"" >&5)
 
16864
   (eval "$lt_compile" 2>conftest.err)
 
16865
   ac_status=$?
 
16866
   cat conftest.err >&5
 
16867
   echo "$as_me:16867: \$? = $ac_status" >&5
 
16868
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16869
     # The compiler can only warn and ignore the option if not recognized
 
16870
     # So say no if there are warnings other than the usual output.
 
16871
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16872
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16873
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16874
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16875
     fi
 
16876
   fi
 
16877
   $rm conftest*
 
16878
 
 
16879
fi
 
16880
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16881
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16882
 
 
16883
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16884
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16885
else
 
16886
    :
 
16887
fi
 
16888
 
 
16889
fi
 
16890
 
 
16891
lt_prog_compiler_wl_GCJ=
 
16892
lt_prog_compiler_pic_GCJ=
 
16893
lt_prog_compiler_static_GCJ=
 
16894
 
 
16895
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16896
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
16897
 
 
16898
  if test "$GCC" = yes; then
 
16899
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16900
    lt_prog_compiler_static_GCJ='-static'
 
16901
 
 
16902
    case $host_os in
 
16903
      aix*)
 
16904
      # All AIX code is PIC.
 
16905
      if test "$host_cpu" = ia64; then
 
16906
        # AIX 5 now supports IA64 processor
 
16907
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16908
      fi
 
16909
      ;;
 
16910
 
 
16911
    amigaos*)
 
16912
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16913
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16914
      # like `-m68040'.
 
16915
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16916
      ;;
 
16917
 
 
16918
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16919
      # PIC is the default for these OSes.
 
16920
      ;;
 
16921
 
 
16922
    mingw* | cygwin* | pw32* | os2*)
 
16923
      # This hack is so that the source file can tell whether it is being
 
16924
      # built for inclusion in a dll (and should export symbols for example).
 
16925
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
16926
      # (--disable-auto-import) libraries
 
16927
 
 
16928
      ;;
 
16929
 
 
16930
    darwin* | rhapsody*)
 
16931
      # PIC is the default on this platform
 
16932
      # Common symbols not allowed in MH_DYLIB files
 
16933
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16934
      ;;
 
16935
 
 
16936
    interix[3-9]*)
 
16937
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16938
      # Instead, we relocate shared libraries at runtime.
 
16939
      ;;
 
16940
 
 
16941
    msdosdjgpp*)
 
16942
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16943
      # on systems that don't support them.
 
16944
      lt_prog_compiler_can_build_shared_GCJ=no
 
16945
      enable_shared=no
 
16946
      ;;
 
16947
 
 
16948
    sysv4*MP*)
 
16949
      if test -d /usr/nec; then
 
16950
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16951
      fi
 
16952
      ;;
 
16953
 
 
16954
    hpux*)
 
16955
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16956
      # not for PA HP-UX.
 
16957
      case $host_cpu in
 
16958
      hppa*64*|ia64*)
 
16959
        # +Z the default
 
16960
        ;;
 
16961
      *)
 
16962
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16963
        ;;
 
16964
      esac
 
16965
      ;;
 
16966
 
 
16967
    *)
 
16968
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16969
      ;;
 
16970
    esac
 
16971
  else
 
16972
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16973
    case $host_os in
 
16974
    aix*)
 
16975
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16976
      if test "$host_cpu" = ia64; then
 
16977
        # AIX 5 now supports IA64 processor
 
16978
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16979
      else
 
16980
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16981
      fi
 
16982
      ;;
 
16983
      darwin*)
 
16984
        # PIC is the default on this platform
 
16985
        # Common symbols not allowed in MH_DYLIB files
 
16986
       case $cc_basename in
 
16987
         xlc*)
 
16988
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16989
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16990
         ;;
 
16991
       esac
 
16992
       ;;
 
16993
 
 
16994
    mingw* | cygwin* | pw32* | os2*)
 
16995
      # This hack is so that the source file can tell whether it is being
 
16996
      # built for inclusion in a dll (and should export symbols for example).
 
16997
 
 
16998
      ;;
 
16999
 
 
17000
    hpux9* | hpux10* | hpux11*)
 
17001
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17002
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17003
      # not for PA HP-UX.
 
17004
      case $host_cpu in
 
17005
      hppa*64*|ia64*)
 
17006
        # +Z the default
 
17007
        ;;
 
17008
      *)
 
17009
        lt_prog_compiler_pic_GCJ='+Z'
 
17010
        ;;
 
17011
      esac
 
17012
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17013
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17014
      ;;
 
17015
 
 
17016
    irix5* | irix6* | nonstopux*)
 
17017
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17018
      # PIC (with -KPIC) is the default.
 
17019
      lt_prog_compiler_static_GCJ='-non_shared'
 
17020
      ;;
 
17021
 
 
17022
    newsos6)
 
17023
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17024
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17025
      ;;
 
17026
 
 
17027
    linux* | k*bsd*-gnu)
 
17028
      case $cc_basename in
 
17029
      icc* | ecc*)
 
17030
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17031
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17032
        lt_prog_compiler_static_GCJ='-static'
 
17033
        ;;
 
17034
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17035
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17036
        # which looks to be a dead project)
 
17037
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17038
        lt_prog_compiler_pic_GCJ='-fpic'
 
17039
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17040
        ;;
 
17041
      ccc*)
 
17042
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17043
        # All Alpha code is PIC.
 
17044
        lt_prog_compiler_static_GCJ='-non_shared'
 
17045
        ;;
 
17046
      *)
 
17047
        case `$CC -V 2>&1 | sed 5q` in
 
17048
        *Sun\ C*)
 
17049
          # Sun C 5.9
 
17050
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17051
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17052
          lt_prog_compiler_wl_GCJ='-Wl,'
 
17053
          ;;
 
17054
        *Sun\ F*)
 
17055
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
17056
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17057
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17058
          lt_prog_compiler_wl_GCJ=''
 
17059
          ;;
 
17060
        esac
 
17061
        ;;
 
17062
      esac
 
17063
      ;;
 
17064
 
 
17065
    osf3* | osf4* | osf5*)
 
17066
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17067
      # All OSF/1 code is PIC.
 
17068
      lt_prog_compiler_static_GCJ='-non_shared'
 
17069
      ;;
 
17070
 
 
17071
    rdos*)
 
17072
      lt_prog_compiler_static_GCJ='-non_shared'
 
17073
      ;;
 
17074
 
 
17075
    solaris*)
 
17076
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17077
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17078
      case $cc_basename in
 
17079
      f77* | f90* | f95*)
 
17080
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17081
      *)
 
17082
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17083
      esac
 
17084
      ;;
 
17085
 
 
17086
    sunos4*)
 
17087
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17088
      lt_prog_compiler_pic_GCJ='-PIC'
 
17089
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17090
      ;;
 
17091
 
 
17092
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
17093
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17094
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17095
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17096
      ;;
 
17097
 
 
17098
    sysv4*MP*)
 
17099
      if test -d /usr/nec ;then
 
17100
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17101
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17102
      fi
 
17103
      ;;
 
17104
 
 
17105
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17106
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17107
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17108
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17109
      ;;
 
17110
 
 
17111
    unicos*)
 
17112
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17113
      lt_prog_compiler_can_build_shared_GCJ=no
 
17114
      ;;
 
17115
 
 
17116
    uts4*)
 
17117
      lt_prog_compiler_pic_GCJ='-pic'
 
17118
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17119
      ;;
 
17120
 
 
17121
    *)
 
17122
      lt_prog_compiler_can_build_shared_GCJ=no
 
17123
      ;;
 
17124
    esac
 
17125
  fi
 
17126
 
 
17127
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17128
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
17129
 
 
17130
#
 
17131
# Check to make sure the PIC flag actually works.
 
17132
#
 
17133
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17134
 
 
17135
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17136
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
17137
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
 
17138
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17139
else
 
17140
  lt_cv_prog_compiler_pic_works_GCJ=no
 
17141
  ac_outfile=conftest.$ac_objext
 
17142
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17143
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17144
   # Insert the option either (1) after the last *FLAGS variable, or
 
17145
   # (2) before a word containing "conftest.", or (3) at the end.
 
17146
   # Note that $ac_compile itself does not contain backslashes and begins
 
17147
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17148
   # The option is referenced via a variable to avoid confusing sed.
 
17149
   lt_compile=`echo "$ac_compile" | $SED \
 
17150
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17151
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17152
   -e 's:$: $lt_compiler_flag:'`
 
17153
   (eval echo "\"\$as_me:17153: $lt_compile\"" >&5)
 
17154
   (eval "$lt_compile" 2>conftest.err)
 
17155
   ac_status=$?
 
17156
   cat conftest.err >&5
 
17157
   echo "$as_me:17157: \$? = $ac_status" >&5
 
17158
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17159
     # The compiler can only warn and ignore the option if not recognized
 
17160
     # So say no if there are warnings other than the usual output.
 
17161
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17162
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17163
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17164
       lt_cv_prog_compiler_pic_works_GCJ=yes
 
17165
     fi
 
17166
   fi
 
17167
   $rm conftest*
 
17168
 
 
17169
fi
 
17170
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
17171
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
 
17172
 
 
17173
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
 
17174
    case $lt_prog_compiler_pic_GCJ in
 
17175
     "" | " "*) ;;
 
17176
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17177
     esac
 
17178
else
 
17179
    lt_prog_compiler_pic_GCJ=
 
17180
     lt_prog_compiler_can_build_shared_GCJ=no
 
17181
fi
 
17182
 
 
17183
fi
 
17184
case $host_os in
 
17185
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17186
  *djgpp*)
 
17187
    lt_prog_compiler_pic_GCJ=
 
17188
    ;;
 
17189
  *)
 
17190
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17191
    ;;
 
17192
esac
 
17193
 
 
17194
#
 
17195
# Check to make sure the static flag actually works.
 
17196
#
 
17197
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17198
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17199
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
17200
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
 
17201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17202
else
 
17203
  lt_cv_prog_compiler_static_works_GCJ=no
 
17204
   save_LDFLAGS="$LDFLAGS"
 
17205
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17206
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
17207
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17208
     # The linker can only warn and ignore the option if not recognized
 
17209
     # So say no if there are warnings
 
17210
     if test -s conftest.err; then
 
17211
       # Append any errors to the config.log.
 
17212
       cat conftest.err 1>&5
 
17213
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17214
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17215
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17216
         lt_cv_prog_compiler_static_works_GCJ=yes
 
17217
       fi
 
17218
     else
 
17219
       lt_cv_prog_compiler_static_works_GCJ=yes
 
17220
     fi
 
17221
   fi
 
17222
   $rm -r conftest*
 
17223
   LDFLAGS="$save_LDFLAGS"
 
17224
 
 
17225
fi
 
17226
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
17227
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
 
17228
 
 
17229
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
 
17230
    :
 
17231
else
 
17232
    lt_prog_compiler_static_GCJ=
 
17233
fi
 
17234
 
 
17235
 
 
17236
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17237
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
17238
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17239
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17240
else
 
17241
  lt_cv_prog_compiler_c_o_GCJ=no
 
17242
   $rm -r conftest 2>/dev/null
 
17243
   mkdir conftest
 
17244
   cd conftest
 
17245
   mkdir out
 
17246
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17247
 
 
17248
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17249
   # Insert the option either (1) after the last *FLAGS variable, or
 
17250
   # (2) before a word containing "conftest.", or (3) at the end.
 
17251
   # Note that $ac_compile itself does not contain backslashes and begins
 
17252
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17253
   lt_compile=`echo "$ac_compile" | $SED \
 
17254
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17255
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17256
   -e 's:$: $lt_compiler_flag:'`
 
17257
   (eval echo "\"\$as_me:17257: $lt_compile\"" >&5)
 
17258
   (eval "$lt_compile" 2>out/conftest.err)
 
17259
   ac_status=$?
 
17260
   cat out/conftest.err >&5
 
17261
   echo "$as_me:17261: \$? = $ac_status" >&5
 
17262
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17263
   then
 
17264
     # The compiler can only warn and ignore the option if not recognized
 
17265
     # So say no if there are warnings
 
17266
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17267
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17268
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17269
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17270
     fi
 
17271
   fi
 
17272
   chmod u+w . 2>&5
 
17273
   $rm conftest*
 
17274
   # SGI C++ compiler will create directory out/ii_files/ for
 
17275
   # template instantiation
 
17276
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17277
   $rm out/* && rmdir out
 
17278
   cd ..
 
17279
   rmdir conftest
 
17280
   $rm conftest*
 
17281
 
 
17282
fi
 
17283
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17284
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17285
 
 
17286
 
 
17287
hard_links="nottested"
 
17288
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17289
  # do not overwrite the value of need_locks provided by the user
 
17290
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17291
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
17292
  hard_links=yes
 
17293
  $rm conftest*
 
17294
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17295
  touch conftest.a
 
17296
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17297
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17298
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
17299
echo "${ECHO_T}$hard_links" >&6; }
 
17300
  if test "$hard_links" = no; then
 
17301
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17302
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17303
    need_locks=warn
 
17304
  fi
 
17305
else
 
17306
  need_locks=no
 
17307
fi
 
17308
 
 
17309
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17310
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
17311
 
 
17312
  runpath_var=
 
17313
  allow_undefined_flag_GCJ=
 
17314
  enable_shared_with_static_runtimes_GCJ=no
 
17315
  archive_cmds_GCJ=
 
17316
  archive_expsym_cmds_GCJ=
 
17317
  old_archive_From_new_cmds_GCJ=
 
17318
  old_archive_from_expsyms_cmds_GCJ=
 
17319
  export_dynamic_flag_spec_GCJ=
 
17320
  whole_archive_flag_spec_GCJ=
 
17321
  thread_safe_flag_spec_GCJ=
 
17322
  hardcode_libdir_flag_spec_GCJ=
 
17323
  hardcode_libdir_flag_spec_ld_GCJ=
 
17324
  hardcode_libdir_separator_GCJ=
 
17325
  hardcode_direct_GCJ=no
 
17326
  hardcode_minus_L_GCJ=no
 
17327
  hardcode_shlibpath_var_GCJ=unsupported
 
17328
  link_all_deplibs_GCJ=unknown
 
17329
  hardcode_automatic_GCJ=no
 
17330
  module_cmds_GCJ=
 
17331
  module_expsym_cmds_GCJ=
 
17332
  always_export_symbols_GCJ=no
 
17333
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17334
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17335
  # included in the symbol list
 
17336
  include_expsyms_GCJ=
 
17337
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17338
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17339
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17340
  # as well as any symbol that contains `d'.
 
17341
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
17342
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17343
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17344
  # the symbol is explicitly referenced.  Since portable code cannot
 
17345
  # rely on this symbol name, it's probably fine to never include it in
 
17346
  # preloaded symbol tables.
 
17347
  # Exclude shared library initialization/finalization symbols.
 
17348
  extract_expsyms_cmds=
 
17349
  # Just being paranoid about ensuring that cc_basename is set.
 
17350
  for cc_temp in $compiler""; do
 
17351
  case $cc_temp in
 
17352
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17353
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17354
    \-*) ;;
 
17355
    *) break;;
 
17356
  esac
 
17357
done
 
17358
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17359
 
 
17360
  case $host_os in
 
17361
  cygwin* | mingw* | pw32*)
 
17362
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17363
    # When not using gcc, we currently assume that we are using
 
17364
    # Microsoft Visual C++.
 
17365
    if test "$GCC" != yes; then
 
17366
      with_gnu_ld=no
 
17367
    fi
 
17368
    ;;
 
17369
  interix*)
 
17370
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17371
    with_gnu_ld=yes
 
17372
    ;;
 
17373
  openbsd*)
 
17374
    with_gnu_ld=no
 
17375
    ;;
 
17376
  esac
 
17377
 
 
17378
  ld_shlibs_GCJ=yes
 
17379
  if test "$with_gnu_ld" = yes; then
 
17380
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17381
    wlarc='${wl}'
 
17382
 
 
17383
    # Set some defaults for GNU ld with shared library support. These
 
17384
    # are reset later if shared libraries are not supported. Putting them
 
17385
    # here allows them to be overridden if necessary.
 
17386
    runpath_var=LD_RUN_PATH
 
17387
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17388
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17389
    # ancient GNU ld didn't support --whole-archive et. al.
 
17390
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17391
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17392
      else
 
17393
        whole_archive_flag_spec_GCJ=
 
17394
    fi
 
17395
    supports_anon_versioning=no
 
17396
    case `$LD -v 2>/dev/null` in
 
17397
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17398
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17399
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17400
      *\ 2.11.*) ;; # other 2.11 versions
 
17401
      *) supports_anon_versioning=yes ;;
 
17402
    esac
 
17403
 
 
17404
    # See if GNU ld supports shared libraries.
 
17405
    case $host_os in
 
17406
    aix[3-9]*)
 
17407
      # On AIX/PPC, the GNU linker is very broken
 
17408
      if test "$host_cpu" != ia64; then
 
17409
        ld_shlibs_GCJ=no
 
17410
        cat <<EOF 1>&2
 
17411
 
 
17412
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17413
*** to be unable to reliably create shared libraries on AIX.
 
17414
*** Therefore, libtool is disabling shared libraries support.  If you
 
17415
*** really care for shared libraries, you may want to modify your PATH
 
17416
*** so that a non-GNU linker is found, and then restart.
 
17417
 
 
17418
EOF
 
17419
      fi
 
17420
      ;;
 
17421
 
 
17422
    amigaos*)
 
17423
      archive_cmds_GCJ='$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)'
 
17424
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17425
      hardcode_minus_L_GCJ=yes
 
17426
 
 
17427
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17428
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17429
      # to version 4, is to share data among multiple programs linked
 
17430
      # with the same dynamic library.  Since this doesn't match the
 
17431
      # behavior of shared libraries on other platforms, we can't use
 
17432
      # them.
 
17433
      ld_shlibs_GCJ=no
 
17434
      ;;
 
17435
 
 
17436
    beos*)
 
17437
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17438
        allow_undefined_flag_GCJ=unsupported
 
17439
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17440
        # support --undefined.  This deserves some investigation.  FIXME
 
17441
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17442
      else
 
17443
        ld_shlibs_GCJ=no
 
17444
      fi
 
17445
      ;;
 
17446
 
 
17447
    cygwin* | mingw* | pw32*)
 
17448
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17449
      # as there is no search path for DLLs.
 
17450
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17451
      allow_undefined_flag_GCJ=unsupported
 
17452
      always_export_symbols_GCJ=no
 
17453
      enable_shared_with_static_runtimes_GCJ=yes
 
17454
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17455
 
 
17456
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17457
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17458
        # If the export-symbols file already is a .def file (1st line
 
17459
        # is EXPORTS), use it as is; otherwise, prepend...
 
17460
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17461
          cp $export_symbols $output_objdir/$soname.def;
 
17462
        else
 
17463
          echo EXPORTS > $output_objdir/$soname.def;
 
17464
          cat $export_symbols >> $output_objdir/$soname.def;
 
17465
        fi~
 
17466
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17467
      else
 
17468
        ld_shlibs_GCJ=no
 
17469
      fi
 
17470
      ;;
 
17471
 
 
17472
    interix[3-9]*)
 
17473
      hardcode_direct_GCJ=no
 
17474
      hardcode_shlibpath_var_GCJ=no
 
17475
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17476
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17477
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17478
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17479
      # default) and relocated if they conflict, which is a slow very memory
 
17480
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17481
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17482
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17483
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
17484
      archive_expsym_cmds_GCJ='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'
 
17485
      ;;
 
17486
 
 
17487
    gnu* | linux* | k*bsd*-gnu)
 
17488
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17489
        tmp_addflag=
 
17490
        case $cc_basename,$host_cpu in
 
17491
        pgcc*)                          # Portland Group C compiler
 
17492
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17493
          tmp_addflag=' $pic_flag'
 
17494
          ;;
 
17495
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17496
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17497
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17498
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17499
          tmp_addflag=' -i_dynamic' ;;
 
17500
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17501
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17502
        ifc* | ifort*)                  # Intel Fortran compiler
 
17503
          tmp_addflag=' -nofor_main' ;;
 
17504
        esac
 
17505
        case `$CC -V 2>&1 | sed 5q` in
 
17506
        *Sun\ C*)                       # Sun C 5.9
 
17507
          whole_archive_flag_spec_GCJ='${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'
 
17508
          tmp_sharedflag='-G' ;;
 
17509
        *Sun\ F*)                       # Sun Fortran 8.3
 
17510
          tmp_sharedflag='-G' ;;
 
17511
        *)
 
17512
          tmp_sharedflag='-shared' ;;
 
17513
        esac
 
17514
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17515
 
 
17516
        if test $supports_anon_versioning = yes; then
 
17517
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17518
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17519
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17520
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17521
        fi
 
17522
        link_all_deplibs_GCJ=no
 
17523
      else
 
17524
        ld_shlibs_GCJ=no
 
17525
      fi
 
17526
      ;;
 
17527
 
 
17528
    netbsd* | netbsdelf*-gnu)
 
17529
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17530
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17531
        wlarc=
 
17532
      else
 
17533
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17534
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17535
      fi
 
17536
      ;;
 
17537
 
 
17538
    solaris*)
 
17539
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17540
        ld_shlibs_GCJ=no
 
17541
        cat <<EOF 1>&2
 
17542
 
 
17543
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17544
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17545
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17546
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17547
*** your PATH or compiler configuration so that the native linker is
 
17548
*** used, and then restart.
 
17549
 
 
17550
EOF
 
17551
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17552
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17553
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17554
      else
 
17555
        ld_shlibs_GCJ=no
 
17556
      fi
 
17557
      ;;
 
17558
 
 
17559
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17560
      case `$LD -v 2>&1` in
 
17561
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17562
        ld_shlibs_GCJ=no
 
17563
        cat <<_LT_EOF 1>&2
 
17564
 
 
17565
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17566
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17567
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17568
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17569
*** your PATH or compiler configuration so that the native linker is
 
17570
*** used, and then restart.
 
17571
 
 
17572
_LT_EOF
 
17573
        ;;
 
17574
        *)
 
17575
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17576
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17577
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17578
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17579
          else
 
17580
            ld_shlibs_GCJ=no
 
17581
          fi
 
17582
        ;;
 
17583
      esac
 
17584
      ;;
 
17585
 
 
17586
    sunos4*)
 
17587
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17588
      wlarc=
 
17589
      hardcode_direct_GCJ=yes
 
17590
      hardcode_shlibpath_var_GCJ=no
 
17591
      ;;
 
17592
 
 
17593
    *)
 
17594
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17595
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17596
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17597
      else
 
17598
        ld_shlibs_GCJ=no
 
17599
      fi
 
17600
      ;;
 
17601
    esac
 
17602
 
 
17603
    if test "$ld_shlibs_GCJ" = no; then
 
17604
      runpath_var=
 
17605
      hardcode_libdir_flag_spec_GCJ=
 
17606
      export_dynamic_flag_spec_GCJ=
 
17607
      whole_archive_flag_spec_GCJ=
 
17608
    fi
 
17609
  else
 
17610
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17611
    case $host_os in
 
17612
    aix3*)
 
17613
      allow_undefined_flag_GCJ=unsupported
 
17614
      always_export_symbols_GCJ=yes
 
17615
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
17616
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17617
      # are no directories specified by -L.
 
17618
      hardcode_minus_L_GCJ=yes
 
17619
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17620
        # Neither direct hardcoding nor static linking is supported with a
 
17621
        # broken collect2.
 
17622
        hardcode_direct_GCJ=unsupported
 
17623
      fi
 
17624
      ;;
 
17625
 
 
17626
    aix[4-9]*)
 
17627
      if test "$host_cpu" = ia64; then
 
17628
        # On IA64, the linker does run time linking by default, so we don't
 
17629
        # have to do anything special.
 
17630
        aix_use_runtimelinking=no
 
17631
        exp_sym_flag='-Bexport'
 
17632
        no_entry_flag=""
 
17633
      else
 
17634
        # If we're using GNU nm, then we don't want the "-C" option.
 
17635
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17636
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17637
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17638
        else
 
17639
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17640
        fi
 
17641
        aix_use_runtimelinking=no
 
17642
 
 
17643
        # Test if we are trying to use run time linking or normal
 
17644
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17645
        # need to do runtime linking.
 
17646
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
17647
          for ld_flag in $LDFLAGS; do
 
17648
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17649
            aix_use_runtimelinking=yes
 
17650
            break
 
17651
          fi
 
17652
          done
 
17653
          ;;
 
17654
        esac
 
17655
 
 
17656
        exp_sym_flag='-bexport'
 
17657
        no_entry_flag='-bnoentry'
 
17658
      fi
 
17659
 
 
17660
      # When large executables or shared objects are built, AIX ld can
 
17661
      # have problems creating the table of contents.  If linking a library
 
17662
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17663
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17664
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17665
 
 
17666
      archive_cmds_GCJ=''
 
17667
      hardcode_direct_GCJ=yes
 
17668
      hardcode_libdir_separator_GCJ=':'
 
17669
      link_all_deplibs_GCJ=yes
 
17670
 
 
17671
      if test "$GCC" = yes; then
 
17672
        case $host_os in aix4.[012]|aix4.[012].*)
 
17673
        # We only want to do this on AIX 4.2 and lower, the check
 
17674
        # below for broken collect2 doesn't work under 4.3+
 
17675
          collect2name=`${CC} -print-prog-name=collect2`
 
17676
          if test -f "$collect2name" && \
 
17677
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17678
          then
 
17679
          # We have reworked collect2
 
17680
          :
 
17681
          else
 
17682
          # We have old collect2
 
17683
          hardcode_direct_GCJ=unsupported
 
17684
          # It fails to find uninstalled libraries when the uninstalled
 
17685
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17686
          # to unsupported forces relinking
 
17687
          hardcode_minus_L_GCJ=yes
 
17688
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17689
          hardcode_libdir_separator_GCJ=
 
17690
          fi
 
17691
          ;;
 
17692
        esac
 
17693
        shared_flag='-shared'
 
17694
        if test "$aix_use_runtimelinking" = yes; then
 
17695
          shared_flag="$shared_flag "'${wl}-G'
 
17696
        fi
 
17697
      else
 
17698
        # not using gcc
 
17699
        if test "$host_cpu" = ia64; then
 
17700
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17701
        # chokes on -Wl,-G. The following line is correct:
 
17702
          shared_flag='-G'
 
17703
        else
 
17704
          if test "$aix_use_runtimelinking" = yes; then
 
17705
            shared_flag='${wl}-G'
 
17706
          else
 
17707
            shared_flag='${wl}-bM:SRE'
 
17708
          fi
 
17709
        fi
 
17710
      fi
 
17711
 
 
17712
      # It seems that -bexpall does not export symbols beginning with
 
17713
      # underscore (_), so it is better to generate a list of symbols to export.
 
17714
      always_export_symbols_GCJ=yes
 
17715
      if test "$aix_use_runtimelinking" = yes; then
 
17716
        # Warning - without using the other runtime loading flags (-brtl),
 
17717
        # -berok will link without error, but may produce a broken library.
 
17718
        allow_undefined_flag_GCJ='-berok'
 
17719
       # Determine the default libpath from the value encoded in an empty executable.
 
17720
       cat >conftest.$ac_ext <<_ACEOF
 
17721
/* confdefs.h.  */
 
17722
_ACEOF
 
17723
cat confdefs.h >>conftest.$ac_ext
 
17724
cat >>conftest.$ac_ext <<_ACEOF
 
17725
/* end confdefs.h.  */
 
17726
 
 
17727
int
 
17728
main ()
 
17729
{
 
17730
 
 
17731
  ;
 
17732
  return 0;
 
17733
}
 
17734
_ACEOF
 
17735
rm -f conftest.$ac_objext conftest$ac_exeext
 
17736
if { (ac_try="$ac_link"
 
17737
case "(($ac_try" in
 
17738
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17739
  *) ac_try_echo=$ac_try;;
 
17740
esac
 
17741
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17742
  (eval "$ac_link") 2>conftest.er1
 
17743
  ac_status=$?
 
17744
  grep -v '^ *+' conftest.er1 >conftest.err
 
17745
  rm -f conftest.er1
 
17746
  cat conftest.err >&5
 
17747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17748
  (exit $ac_status); } && {
 
17749
         test -z "$ac_c_werror_flag" ||
 
17750
         test ! -s conftest.err
 
17751
       } && test -s conftest$ac_exeext &&
 
17752
       $as_test_x conftest$ac_exeext; then
 
17753
 
 
17754
lt_aix_libpath_sed='
 
17755
    /Import File Strings/,/^$/ {
 
17756
        /^0/ {
 
17757
            s/^0  *\(.*\)$/\1/
 
17758
            p
 
17759
        }
 
17760
    }'
 
17761
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17762
# Check for a 64-bit object if we didn't find anything.
 
17763
if test -z "$aix_libpath"; then
 
17764
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17765
fi
 
17766
else
 
17767
  echo "$as_me: failed program was:" >&5
 
17768
sed 's/^/| /' conftest.$ac_ext >&5
 
17769
 
 
17770
 
 
17771
fi
 
17772
 
 
17773
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17774
      conftest$ac_exeext conftest.$ac_ext
 
17775
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17776
 
 
17777
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17778
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
17779
       else
 
17780
        if test "$host_cpu" = ia64; then
 
17781
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17782
          allow_undefined_flag_GCJ="-z nodefs"
 
17783
          archive_expsym_cmds_GCJ="\$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"
 
17784
        else
 
17785
         # Determine the default libpath from the value encoded in an empty executable.
 
17786
         cat >conftest.$ac_ext <<_ACEOF
 
17787
/* confdefs.h.  */
 
17788
_ACEOF
 
17789
cat confdefs.h >>conftest.$ac_ext
 
17790
cat >>conftest.$ac_ext <<_ACEOF
 
17791
/* end confdefs.h.  */
 
17792
 
 
17793
int
 
17794
main ()
 
17795
{
 
17796
 
 
17797
  ;
 
17798
  return 0;
 
17799
}
 
17800
_ACEOF
 
17801
rm -f conftest.$ac_objext conftest$ac_exeext
 
17802
if { (ac_try="$ac_link"
 
17803
case "(($ac_try" in
 
17804
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17805
  *) ac_try_echo=$ac_try;;
 
17806
esac
 
17807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17808
  (eval "$ac_link") 2>conftest.er1
 
17809
  ac_status=$?
 
17810
  grep -v '^ *+' conftest.er1 >conftest.err
 
17811
  rm -f conftest.er1
 
17812
  cat conftest.err >&5
 
17813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17814
  (exit $ac_status); } && {
 
17815
         test -z "$ac_c_werror_flag" ||
 
17816
         test ! -s conftest.err
 
17817
       } && test -s conftest$ac_exeext &&
 
17818
       $as_test_x conftest$ac_exeext; then
 
17819
 
 
17820
lt_aix_libpath_sed='
 
17821
    /Import File Strings/,/^$/ {
 
17822
        /^0/ {
 
17823
            s/^0  *\(.*\)$/\1/
 
17824
            p
 
17825
        }
 
17826
    }'
 
17827
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17828
# Check for a 64-bit object if we didn't find anything.
 
17829
if test -z "$aix_libpath"; then
 
17830
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17831
fi
 
17832
else
 
17833
  echo "$as_me: failed program was:" >&5
 
17834
sed 's/^/| /' conftest.$ac_ext >&5
 
17835
 
 
17836
 
 
17837
fi
 
17838
 
 
17839
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17840
      conftest$ac_exeext conftest.$ac_ext
 
17841
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17842
 
 
17843
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17844
          # Warning - without using the other run time loading flags,
 
17845
          # -berok will link without error, but may produce a broken library.
 
17846
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17847
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17848
          # Exported symbols can be pulled into shared objects from archives
 
17849
          whole_archive_flag_spec_GCJ='$convenience'
 
17850
          archive_cmds_need_lc_GCJ=yes
 
17851
          # This is similar to how AIX traditionally builds its shared libraries.
 
17852
          archive_expsym_cmds_GCJ="\$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'
 
17853
        fi
 
17854
      fi
 
17855
      ;;
 
17856
 
 
17857
    amigaos*)
 
17858
      archive_cmds_GCJ='$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)'
 
17859
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17860
      hardcode_minus_L_GCJ=yes
 
17861
      # see comment about different semantics on the GNU ld section
 
17862
      ld_shlibs_GCJ=no
 
17863
      ;;
 
17864
 
 
17865
    bsdi[45]*)
 
17866
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17867
      ;;
 
17868
 
 
17869
    cygwin* | mingw* | pw32*)
 
17870
      # When not using gcc, we currently assume that we are using
 
17871
      # Microsoft Visual C++.
 
17872
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17873
      # no search path for DLLs.
 
17874
      hardcode_libdir_flag_spec_GCJ=' '
 
17875
      allow_undefined_flag_GCJ=unsupported
 
17876
      # Tell ltmain to make .lib files, not .a files.
 
17877
      libext=lib
 
17878
      # Tell ltmain to make .dll files, not .so files.
 
17879
      shrext_cmds=".dll"
 
17880
      # FIXME: Setting linknames here is a bad hack.
 
17881
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17882
      # The linker will automatically build a .lib file if we build a DLL.
 
17883
      old_archive_From_new_cmds_GCJ='true'
 
17884
      # FIXME: Should let the user specify the lib program.
 
17885
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
17886
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
17887
      enable_shared_with_static_runtimes_GCJ=yes
 
17888
      ;;
 
17889
 
 
17890
    darwin* | rhapsody*)
 
17891
      case $host_os in
 
17892
        rhapsody* | darwin1.[012])
 
17893
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17894
         ;;
 
17895
       *) # Darwin 1.3 on
 
17896
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17897
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17898
         else
 
17899
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17900
             10.[012])
 
17901
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17902
               ;;
 
17903
             10.*)
 
17904
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17905
               ;;
 
17906
           esac
 
17907
         fi
 
17908
         ;;
 
17909
      esac
 
17910
      archive_cmds_need_lc_GCJ=no
 
17911
      hardcode_direct_GCJ=no
 
17912
      hardcode_automatic_GCJ=yes
 
17913
      hardcode_shlibpath_var_GCJ=unsupported
 
17914
      whole_archive_flag_spec_GCJ=''
 
17915
      link_all_deplibs_GCJ=yes
 
17916
    if test "$GCC" = yes ; then
 
17917
        output_verbose_link_cmd='echo'
 
17918
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
17919
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
17920
        archive_expsym_cmds_GCJ="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}"
 
17921
        module_expsym_cmds_GCJ="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}"
 
17922
    else
 
17923
      case $cc_basename in
 
17924
        xlc*)
 
17925
         output_verbose_link_cmd='echo'
 
17926
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
17927
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17928
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17929
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17930
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17931
          ;;
 
17932
       *)
 
17933
         ld_shlibs_GCJ=no
 
17934
          ;;
 
17935
      esac
 
17936
    fi
 
17937
      ;;
 
17938
 
 
17939
    dgux*)
 
17940
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17941
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17942
      hardcode_shlibpath_var_GCJ=no
 
17943
      ;;
 
17944
 
 
17945
    freebsd1*)
 
17946
      ld_shlibs_GCJ=no
 
17947
      ;;
 
17948
 
 
17949
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17950
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17951
    # does not break anything, and helps significantly (at the cost of a little
 
17952
    # extra space).
 
17953
    freebsd2.2*)
 
17954
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17955
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17956
      hardcode_direct_GCJ=yes
 
17957
      hardcode_shlibpath_var_GCJ=no
 
17958
      ;;
 
17959
 
 
17960
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17961
    freebsd2*)
 
17962
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17963
      hardcode_direct_GCJ=yes
 
17964
      hardcode_minus_L_GCJ=yes
 
17965
      hardcode_shlibpath_var_GCJ=no
 
17966
      ;;
 
17967
 
 
17968
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17969
    freebsd* | dragonfly*)
 
17970
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17971
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17972
      hardcode_direct_GCJ=yes
 
17973
      hardcode_shlibpath_var_GCJ=no
 
17974
      ;;
 
17975
 
 
17976
    hpux9*)
 
17977
      if test "$GCC" = yes; then
 
17978
        archive_cmds_GCJ='$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'
 
17979
      else
 
17980
        archive_cmds_GCJ='$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'
 
17981
      fi
 
17982
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17983
      hardcode_libdir_separator_GCJ=:
 
17984
      hardcode_direct_GCJ=yes
 
17985
 
 
17986
      # hardcode_minus_L: Not really in the search PATH,
 
17987
      # but as the default location of the library.
 
17988
      hardcode_minus_L_GCJ=yes
 
17989
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17990
      ;;
 
17991
 
 
17992
    hpux10*)
 
17993
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17994
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17995
      else
 
17996
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17997
      fi
 
17998
      if test "$with_gnu_ld" = no; then
 
17999
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18000
        hardcode_libdir_separator_GCJ=:
 
18001
 
 
18002
        hardcode_direct_GCJ=yes
 
18003
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18004
 
 
18005
        # hardcode_minus_L: Not really in the search PATH,
 
18006
        # but as the default location of the library.
 
18007
        hardcode_minus_L_GCJ=yes
 
18008
      fi
 
18009
      ;;
 
18010
 
 
18011
    hpux11*)
 
18012
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18013
        case $host_cpu in
 
18014
        hppa*64*)
 
18015
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18016
          ;;
 
18017
        ia64*)
 
18018
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18019
          ;;
 
18020
        *)
 
18021
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18022
          ;;
 
18023
        esac
 
18024
      else
 
18025
        case $host_cpu in
 
18026
        hppa*64*)
 
18027
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18028
          ;;
 
18029
        ia64*)
 
18030
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18031
          ;;
 
18032
        *)
 
18033
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18034
          ;;
 
18035
        esac
 
18036
      fi
 
18037
      if test "$with_gnu_ld" = no; then
 
18038
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18039
        hardcode_libdir_separator_GCJ=:
 
18040
 
 
18041
        case $host_cpu in
 
18042
        hppa*64*|ia64*)
 
18043
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18044
          hardcode_direct_GCJ=no
 
18045
          hardcode_shlibpath_var_GCJ=no
 
18046
          ;;
 
18047
        *)
 
18048
          hardcode_direct_GCJ=yes
 
18049
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18050
 
 
18051
          # hardcode_minus_L: Not really in the search PATH,
 
18052
          # but as the default location of the library.
 
18053
          hardcode_minus_L_GCJ=yes
 
18054
          ;;
 
18055
        esac
 
18056
      fi
 
18057
      ;;
 
18058
 
 
18059
    irix5* | irix6* | nonstopux*)
 
18060
      if test "$GCC" = yes; then
 
18061
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18062
      else
 
18063
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18064
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18065
      fi
 
18066
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18067
      hardcode_libdir_separator_GCJ=:
 
18068
      link_all_deplibs_GCJ=yes
 
18069
      ;;
 
18070
 
 
18071
    netbsd* | netbsdelf*-gnu)
 
18072
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18073
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18074
      else
 
18075
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18076
      fi
 
18077
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18078
      hardcode_direct_GCJ=yes
 
18079
      hardcode_shlibpath_var_GCJ=no
 
18080
      ;;
 
18081
 
 
18082
    newsos6)
 
18083
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18084
      hardcode_direct_GCJ=yes
 
18085
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18086
      hardcode_libdir_separator_GCJ=:
 
18087
      hardcode_shlibpath_var_GCJ=no
 
18088
      ;;
 
18089
 
 
18090
    openbsd*)
 
18091
      if test -f /usr/libexec/ld.so; then
 
18092
        hardcode_direct_GCJ=yes
 
18093
        hardcode_shlibpath_var_GCJ=no
 
18094
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18095
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18096
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18097
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18098
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18099
        else
 
18100
          case $host_os in
 
18101
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18102
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18103
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18104
             ;;
 
18105
           *)
 
18106
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18107
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18108
             ;;
 
18109
          esac
 
18110
        fi
 
18111
      else
 
18112
        ld_shlibs_GCJ=no
 
18113
      fi
 
18114
      ;;
 
18115
 
 
18116
    os2*)
 
18117
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18118
      hardcode_minus_L_GCJ=yes
 
18119
      allow_undefined_flag_GCJ=unsupported
 
18120
      archive_cmds_GCJ='$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'
 
18121
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18122
      ;;
 
18123
 
 
18124
    osf3*)
 
18125
      if test "$GCC" = yes; then
 
18126
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18127
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18128
      else
 
18129
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18130
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18131
      fi
 
18132
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18133
      hardcode_libdir_separator_GCJ=:
 
18134
      ;;
 
18135
 
 
18136
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18137
      if test "$GCC" = yes; then
 
18138
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18139
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18140
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18141
      else
 
18142
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18143
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18144
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
18145
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
18146
 
 
18147
        # Both c and cxx compiler support -rpath directly
 
18148
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18149
      fi
 
18150
      hardcode_libdir_separator_GCJ=:
 
18151
      ;;
 
18152
 
 
18153
    solaris*)
 
18154
      no_undefined_flag_GCJ=' -z text'
 
18155
      if test "$GCC" = yes; then
 
18156
        wlarc='${wl}'
 
18157
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18158
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18159
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18160
      else
 
18161
        wlarc=''
 
18162
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18163
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18164
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18165
      fi
 
18166
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18167
      hardcode_shlibpath_var_GCJ=no
 
18168
      case $host_os in
 
18169
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18170
      *)
 
18171
        # The compiler driver will combine and reorder linker options,
 
18172
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
18173
        # but is careful enough not to reorder.
 
18174
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18175
        if test "$GCC" = yes; then
 
18176
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18177
        else
 
18178
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
18179
        fi
 
18180
        ;;
 
18181
      esac
 
18182
      link_all_deplibs_GCJ=yes
 
18183
      ;;
 
18184
 
 
18185
    sunos4*)
 
18186
      if test "x$host_vendor" = xsequent; then
 
18187
        # Use $CC to link under sequent, because it throws in some extra .o
 
18188
        # files that make .init and .fini sections work.
 
18189
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18190
      else
 
18191
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18192
      fi
 
18193
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18194
      hardcode_direct_GCJ=yes
 
18195
      hardcode_minus_L_GCJ=yes
 
18196
      hardcode_shlibpath_var_GCJ=no
 
18197
      ;;
 
18198
 
 
18199
    sysv4)
 
18200
      case $host_vendor in
 
18201
        sni)
 
18202
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18203
          hardcode_direct_GCJ=yes # is this really true???
 
18204
        ;;
 
18205
        siemens)
 
18206
          ## LD is ld it makes a PLAMLIB
 
18207
          ## CC just makes a GrossModule.
 
18208
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18209
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18210
          hardcode_direct_GCJ=no
 
18211
        ;;
 
18212
        motorola)
 
18213
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18214
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18215
        ;;
 
18216
      esac
 
18217
      runpath_var='LD_RUN_PATH'
 
18218
      hardcode_shlibpath_var_GCJ=no
 
18219
      ;;
 
18220
 
 
18221
    sysv4.3*)
 
18222
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18223
      hardcode_shlibpath_var_GCJ=no
 
18224
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18225
      ;;
 
18226
 
 
18227
    sysv4*MP*)
 
18228
      if test -d /usr/nec; then
 
18229
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18230
        hardcode_shlibpath_var_GCJ=no
 
18231
        runpath_var=LD_RUN_PATH
 
18232
        hardcode_runpath_var=yes
 
18233
        ld_shlibs_GCJ=yes
 
18234
      fi
 
18235
      ;;
 
18236
 
 
18237
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
18238
      no_undefined_flag_GCJ='${wl}-z,text'
 
18239
      archive_cmds_need_lc_GCJ=no
 
18240
      hardcode_shlibpath_var_GCJ=no
 
18241
      runpath_var='LD_RUN_PATH'
 
18242
 
 
18243
      if test "$GCC" = yes; then
 
18244
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18245
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18246
      else
 
18247
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18248
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18249
      fi
 
18250
      ;;
 
18251
 
 
18252
    sysv5* | sco3.2v5* | sco5v6*)
 
18253
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18254
      # link with -lc, and that would cause any symbols used from libc to
 
18255
      # always be unresolved, which means just about no library would
 
18256
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18257
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18258
      # as -z defs.
 
18259
      no_undefined_flag_GCJ='${wl}-z,text'
 
18260
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18261
      archive_cmds_need_lc_GCJ=no
 
18262
      hardcode_shlibpath_var_GCJ=no
 
18263
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18264
      hardcode_libdir_separator_GCJ=':'
 
18265
      link_all_deplibs_GCJ=yes
 
18266
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18267
      runpath_var='LD_RUN_PATH'
 
18268
 
 
18269
      if test "$GCC" = yes; then
 
18270
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18271
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18272
      else
 
18273
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18274
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18275
      fi
 
18276
      ;;
 
18277
 
 
18278
    uts4*)
 
18279
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18280
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18281
      hardcode_shlibpath_var_GCJ=no
 
18282
      ;;
 
18283
 
 
18284
    *)
 
18285
      ld_shlibs_GCJ=no
 
18286
      ;;
 
18287
    esac
 
18288
  fi
 
18289
 
 
18290
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18291
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
18292
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18293
 
 
18294
#
 
18295
# Do we need to explicitly link libc?
 
18296
#
 
18297
case "x$archive_cmds_need_lc_GCJ" in
 
18298
x|xyes)
 
18299
  # Assume -lc should be added
 
18300
  archive_cmds_need_lc_GCJ=yes
 
18301
 
 
18302
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18303
    case $archive_cmds_GCJ in
 
18304
    *'~'*)
 
18305
      # FIXME: we may have to deal with multi-command sequences.
 
18306
      ;;
 
18307
    '$CC '*)
 
18308
      # Test whether the compiler implicitly links with -lc since on some
 
18309
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18310
      # to ld, don't add -lc before -lgcc.
 
18311
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18312
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
18313
      $rm conftest*
 
18314
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18315
 
 
18316
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18317
  (eval $ac_compile) 2>&5
 
18318
  ac_status=$?
 
18319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18320
  (exit $ac_status); } 2>conftest.err; then
 
18321
        soname=conftest
 
18322
        lib=conftest
 
18323
        libobjs=conftest.$ac_objext
 
18324
        deplibs=
 
18325
        wl=$lt_prog_compiler_wl_GCJ
 
18326
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18327
        compiler_flags=-v
 
18328
        linker_flags=-v
 
18329
        verstring=
 
18330
        output_objdir=.
 
18331
        libname=conftest
 
18332
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18333
        allow_undefined_flag_GCJ=
 
18334
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18335
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18336
  ac_status=$?
 
18337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18338
  (exit $ac_status); }
 
18339
        then
 
18340
          archive_cmds_need_lc_GCJ=no
 
18341
        else
 
18342
          archive_cmds_need_lc_GCJ=yes
 
18343
        fi
 
18344
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18345
      else
 
18346
        cat conftest.err 1>&5
 
18347
      fi
 
18348
      $rm conftest*
 
18349
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18350
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
18351
      ;;
 
18352
    esac
 
18353
  fi
 
18354
  ;;
 
18355
esac
 
18356
 
 
18357
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18358
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
18359
library_names_spec=
 
18360
libname_spec='lib$name'
 
18361
soname_spec=
 
18362
shrext_cmds=".so"
 
18363
postinstall_cmds=
 
18364
postuninstall_cmds=
 
18365
finish_cmds=
 
18366
finish_eval=
 
18367
shlibpath_var=
 
18368
shlibpath_overrides_runpath=unknown
 
18369
version_type=none
 
18370
dynamic_linker="$host_os ld.so"
 
18371
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18372
 
 
18373
need_lib_prefix=unknown
 
18374
hardcode_into_libs=no
 
18375
 
 
18376
# when you set need_version to no, make sure it does not cause -set_version
 
18377
# flags to be left without arguments
 
18378
need_version=unknown
 
18379
 
 
18380
case $host_os in
 
18381
aix3*)
 
18382
  version_type=linux
 
18383
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18384
  shlibpath_var=LIBPATH
 
18385
 
 
18386
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18387
  soname_spec='${libname}${release}${shared_ext}$major'
 
18388
  ;;
 
18389
 
 
18390
aix[4-9]*)
 
18391
  version_type=linux
 
18392
  need_lib_prefix=no
 
18393
  need_version=no
 
18394
  hardcode_into_libs=yes
 
18395
  if test "$host_cpu" = ia64; then
 
18396
    # AIX 5 supports IA64
 
18397
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18398
    shlibpath_var=LD_LIBRARY_PATH
 
18399
  else
 
18400
    # With GCC up to 2.95.x, collect2 would create an import file
 
18401
    # for dependence libraries.  The import file would start with
 
18402
    # the line `#! .'.  This would cause the generated library to
 
18403
    # depend on `.', always an invalid library.  This was fixed in
 
18404
    # development snapshots of GCC prior to 3.0.
 
18405
    case $host_os in
 
18406
      aix4 | aix4.[01] | aix4.[01].*)
 
18407
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18408
           echo ' yes '
 
18409
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18410
        :
 
18411
      else
 
18412
        can_build_shared=no
 
18413
      fi
 
18414
      ;;
 
18415
    esac
 
18416
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18417
    # soname into executable. Probably we can add versioning support to
 
18418
    # collect2, so additional links can be useful in future.
 
18419
    if test "$aix_use_runtimelinking" = yes; then
 
18420
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18421
      # instead of lib<name>.a to let people know that these are not
 
18422
      # typical AIX shared libraries.
 
18423
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18424
    else
 
18425
      # We preserve .a as extension for shared libraries through AIX4.2
 
18426
      # and later when we are not doing run time linking.
 
18427
      library_names_spec='${libname}${release}.a $libname.a'
 
18428
      soname_spec='${libname}${release}${shared_ext}$major'
 
18429
    fi
 
18430
    shlibpath_var=LIBPATH
 
18431
  fi
 
18432
  ;;
 
18433
 
 
18434
amigaos*)
 
18435
  library_names_spec='$libname.ixlibrary $libname.a'
 
18436
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18437
  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'
 
18438
  ;;
 
18439
 
 
18440
beos*)
 
18441
  library_names_spec='${libname}${shared_ext}'
 
18442
  dynamic_linker="$host_os ld.so"
 
18443
  shlibpath_var=LIBRARY_PATH
 
18444
  ;;
 
18445
 
 
18446
bsdi[45]*)
 
18447
  version_type=linux
 
18448
  need_version=no
 
18449
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18450
  soname_spec='${libname}${release}${shared_ext}$major'
 
18451
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18452
  shlibpath_var=LD_LIBRARY_PATH
 
18453
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18454
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18455
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18456
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18457
  # libtool to hard-code these into programs
 
18458
  ;;
 
18459
 
 
18460
cygwin* | mingw* | pw32*)
 
18461
  version_type=windows
 
18462
  shrext_cmds=".dll"
 
18463
  need_version=no
 
18464
  need_lib_prefix=no
 
18465
 
 
18466
  case $GCC,$host_os in
 
18467
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18468
    library_names_spec='$libname.dll.a'
 
18469
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18470
    postinstall_cmds='base_file=`basename \${file}`~
 
18471
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18472
      dldir=$destdir/`dirname \$dlpath`~
 
18473
      test -d \$dldir || mkdir -p \$dldir~
 
18474
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18475
      chmod a+x \$dldir/$dlname'
 
18476
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18477
      dlpath=$dir/\$dldll~
 
18478
       $rm \$dlpath'
 
18479
    shlibpath_overrides_runpath=yes
 
18480
 
 
18481
    case $host_os in
 
18482
    cygwin*)
 
18483
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18484
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18485
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18486
      ;;
 
18487
    mingw*)
 
18488
      # MinGW DLLs use traditional 'lib' prefix
 
18489
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18490
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18491
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18492
        # It is most probably a Windows format PATH printed by
 
18493
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18494
        # path with ; separators, and with drive letters. We can handle the
 
18495
        # drive letters (cygwin fileutils understands them), so leave them,
 
18496
        # especially as we might pass files found there to a mingw objdump,
 
18497
        # which wouldn't understand a cygwinified path. Ahh.
 
18498
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18499
      else
 
18500
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18501
      fi
 
18502
      ;;
 
18503
    pw32*)
 
18504
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18505
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18506
      ;;
 
18507
    esac
 
18508
    ;;
 
18509
 
 
18510
  *)
 
18511
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18512
    ;;
 
18513
  esac
 
18514
  dynamic_linker='Win32 ld.exe'
 
18515
  # FIXME: first we should search . and the directory the executable is in
 
18516
  shlibpath_var=PATH
 
18517
  ;;
 
18518
 
 
18519
darwin* | rhapsody*)
 
18520
  dynamic_linker="$host_os dyld"
 
18521
  version_type=darwin
 
18522
  need_lib_prefix=no
 
18523
  need_version=no
 
18524
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18525
  soname_spec='${libname}${release}${major}$shared_ext'
 
18526
  shlibpath_overrides_runpath=yes
 
18527
  shlibpath_var=DYLD_LIBRARY_PATH
 
18528
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18529
 
 
18530
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18531
  ;;
 
18532
 
 
18533
dgux*)
 
18534
  version_type=linux
 
18535
  need_lib_prefix=no
 
18536
  need_version=no
 
18537
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18538
  soname_spec='${libname}${release}${shared_ext}$major'
 
18539
  shlibpath_var=LD_LIBRARY_PATH
 
18540
  ;;
 
18541
 
 
18542
freebsd1*)
 
18543
  dynamic_linker=no
 
18544
  ;;
 
18545
 
 
18546
freebsd* | dragonfly*)
 
18547
  # DragonFly does not have aout.  When/if they implement a new
 
18548
  # versioning mechanism, adjust this.
 
18549
  if test -x /usr/bin/objformat; then
 
18550
    objformat=`/usr/bin/objformat`
 
18551
  else
 
18552
    case $host_os in
 
18553
    freebsd[123]*) objformat=aout ;;
 
18554
    *) objformat=elf ;;
 
18555
    esac
 
18556
  fi
 
18557
  version_type=freebsd-$objformat
 
18558
  case $version_type in
 
18559
    freebsd-elf*)
 
18560
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18561
      need_version=no
 
18562
      need_lib_prefix=no
 
18563
      ;;
 
18564
    freebsd-*)
 
18565
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18566
      need_version=yes
 
18567
      ;;
 
18568
  esac
 
18569
  shlibpath_var=LD_LIBRARY_PATH
 
18570
  case $host_os in
 
18571
  freebsd2*)
 
18572
    shlibpath_overrides_runpath=yes
 
18573
    ;;
 
18574
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18575
    shlibpath_overrides_runpath=yes
 
18576
    hardcode_into_libs=yes
 
18577
    ;;
 
18578
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18579
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18580
    shlibpath_overrides_runpath=no
 
18581
    hardcode_into_libs=yes
 
18582
    ;;
 
18583
  *) # from 4.6 on, and DragonFly
 
18584
    shlibpath_overrides_runpath=yes
 
18585
    hardcode_into_libs=yes
 
18586
    ;;
 
18587
  esac
 
18588
  ;;
 
18589
 
 
18590
gnu*)
 
18591
  version_type=linux
 
18592
  need_lib_prefix=no
 
18593
  need_version=no
 
18594
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18595
  soname_spec='${libname}${release}${shared_ext}$major'
 
18596
  shlibpath_var=LD_LIBRARY_PATH
 
18597
  hardcode_into_libs=yes
 
18598
  ;;
 
18599
 
 
18600
hpux9* | hpux10* | hpux11*)
 
18601
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18602
  # link against other versions.
 
18603
  version_type=sunos
 
18604
  need_lib_prefix=no
 
18605
  need_version=no
 
18606
  case $host_cpu in
 
18607
  ia64*)
 
18608
    shrext_cmds='.so'
 
18609
    hardcode_into_libs=yes
 
18610
    dynamic_linker="$host_os dld.so"
 
18611
    shlibpath_var=LD_LIBRARY_PATH
 
18612
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18613
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18614
    soname_spec='${libname}${release}${shared_ext}$major'
 
18615
    if test "X$HPUX_IA64_MODE" = X32; then
 
18616
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18617
    else
 
18618
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18619
    fi
 
18620
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18621
    ;;
 
18622
   hppa*64*)
 
18623
     shrext_cmds='.sl'
 
18624
     hardcode_into_libs=yes
 
18625
     dynamic_linker="$host_os dld.sl"
 
18626
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18627
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18628
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18629
     soname_spec='${libname}${release}${shared_ext}$major'
 
18630
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18631
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18632
     ;;
 
18633
   *)
 
18634
    shrext_cmds='.sl'
 
18635
    dynamic_linker="$host_os dld.sl"
 
18636
    shlibpath_var=SHLIB_PATH
 
18637
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18638
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18639
    soname_spec='${libname}${release}${shared_ext}$major'
 
18640
    ;;
 
18641
  esac
 
18642
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18643
  postinstall_cmds='chmod 555 $lib'
 
18644
  ;;
 
18645
 
 
18646
interix[3-9]*)
 
18647
  version_type=linux
 
18648
  need_lib_prefix=no
 
18649
  need_version=no
 
18650
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18651
  soname_spec='${libname}${release}${shared_ext}$major'
 
18652
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18653
  shlibpath_var=LD_LIBRARY_PATH
 
18654
  shlibpath_overrides_runpath=no
 
18655
  hardcode_into_libs=yes
 
18656
  ;;
 
18657
 
 
18658
irix5* | irix6* | nonstopux*)
 
18659
  case $host_os in
 
18660
    nonstopux*) version_type=nonstopux ;;
 
18661
    *)
 
18662
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18663
                version_type=linux
 
18664
        else
 
18665
                version_type=irix
 
18666
        fi ;;
 
18667
  esac
 
18668
  need_lib_prefix=no
 
18669
  need_version=no
 
18670
  soname_spec='${libname}${release}${shared_ext}$major'
 
18671
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18672
  case $host_os in
 
18673
  irix5* | nonstopux*)
 
18674
    libsuff= shlibsuff=
 
18675
    ;;
 
18676
  *)
 
18677
    case $LD in # libtool.m4 will add one of these switches to LD
 
18678
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18679
      libsuff= shlibsuff= libmagic=32-bit;;
 
18680
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18681
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18682
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18683
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18684
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18685
    esac
 
18686
    ;;
 
18687
  esac
 
18688
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18689
  shlibpath_overrides_runpath=no
 
18690
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18691
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18692
  hardcode_into_libs=yes
 
18693
  ;;
 
18694
 
 
18695
# No shared lib support for Linux oldld, aout, or coff.
 
18696
linux*oldld* | linux*aout* | linux*coff*)
 
18697
  dynamic_linker=no
 
18698
  ;;
 
18699
 
 
18700
# This must be Linux ELF.
 
18701
linux* | k*bsd*-gnu)
 
18702
  version_type=linux
 
18703
  need_lib_prefix=no
 
18704
  need_version=no
 
18705
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18706
  soname_spec='${libname}${release}${shared_ext}$major'
 
18707
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18708
  shlibpath_var=LD_LIBRARY_PATH
 
18709
  shlibpath_overrides_runpath=no
 
18710
  # This implies no fast_install, which is unacceptable.
 
18711
  # Some rework will be needed to allow for fast_install
 
18712
  # before this can be enabled.
 
18713
  hardcode_into_libs=yes
 
18714
 
 
18715
  # Append ld.so.conf contents to the search path
 
18716
  if test -f /etc/ld.so.conf; then
 
18717
    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' ' '`
 
18718
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18719
  fi
 
18720
 
 
18721
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18722
  # powerpc, because MkLinux only supported shared libraries with the
 
18723
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18724
  # most powerpc-linux boxes support dynamic linking these days and
 
18725
  # people can always --disable-shared, the test was removed, and we
 
18726
  # assume the GNU/Linux dynamic linker is in use.
 
18727
  dynamic_linker='GNU/Linux ld.so'
 
18728
  ;;
 
18729
 
 
18730
netbsdelf*-gnu)
 
18731
  version_type=linux
 
18732
  need_lib_prefix=no
 
18733
  need_version=no
 
18734
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18735
  soname_spec='${libname}${release}${shared_ext}$major'
 
18736
  shlibpath_var=LD_LIBRARY_PATH
 
18737
  shlibpath_overrides_runpath=no
 
18738
  hardcode_into_libs=yes
 
18739
  dynamic_linker='NetBSD ld.elf_so'
 
18740
  ;;
 
18741
 
 
18742
netbsd*)
 
18743
  version_type=sunos
 
18744
  need_lib_prefix=no
 
18745
  need_version=no
 
18746
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18747
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18748
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18749
    dynamic_linker='NetBSD (a.out) ld.so'
 
18750
  else
 
18751
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18752
    soname_spec='${libname}${release}${shared_ext}$major'
 
18753
    dynamic_linker='NetBSD ld.elf_so'
 
18754
  fi
 
18755
  shlibpath_var=LD_LIBRARY_PATH
 
18756
  shlibpath_overrides_runpath=yes
 
18757
  hardcode_into_libs=yes
 
18758
  ;;
 
18759
 
 
18760
newsos6)
 
18761
  version_type=linux
 
18762
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18763
  shlibpath_var=LD_LIBRARY_PATH
 
18764
  shlibpath_overrides_runpath=yes
 
18765
  ;;
 
18766
 
 
18767
nto-qnx*)
 
18768
  version_type=linux
 
18769
  need_lib_prefix=no
 
18770
  need_version=no
 
18771
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18772
  soname_spec='${libname}${release}${shared_ext}$major'
 
18773
  shlibpath_var=LD_LIBRARY_PATH
 
18774
  shlibpath_overrides_runpath=yes
 
18775
  ;;
 
18776
 
 
18777
openbsd*)
 
18778
  version_type=sunos
 
18779
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18780
  need_lib_prefix=no
 
18781
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18782
  case $host_os in
 
18783
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18784
    *)                         need_version=no  ;;
 
18785
  esac
 
18786
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18787
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18788
  shlibpath_var=LD_LIBRARY_PATH
 
18789
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18790
    case $host_os in
 
18791
      openbsd2.[89] | openbsd2.[89].*)
 
18792
        shlibpath_overrides_runpath=no
 
18793
        ;;
 
18794
      *)
 
18795
        shlibpath_overrides_runpath=yes
 
18796
        ;;
 
18797
      esac
 
18798
  else
 
18799
    shlibpath_overrides_runpath=yes
 
18800
  fi
 
18801
  ;;
 
18802
 
 
18803
os2*)
 
18804
  libname_spec='$name'
 
18805
  shrext_cmds=".dll"
 
18806
  need_lib_prefix=no
 
18807
  library_names_spec='$libname${shared_ext} $libname.a'
 
18808
  dynamic_linker='OS/2 ld.exe'
 
18809
  shlibpath_var=LIBPATH
 
18810
  ;;
 
18811
 
 
18812
osf3* | osf4* | osf5*)
 
18813
  version_type=osf
 
18814
  need_lib_prefix=no
 
18815
  need_version=no
 
18816
  soname_spec='${libname}${release}${shared_ext}$major'
 
18817
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18818
  shlibpath_var=LD_LIBRARY_PATH
 
18819
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18820
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18821
  ;;
 
18822
 
 
18823
rdos*)
 
18824
  dynamic_linker=no
 
18825
  ;;
 
18826
 
 
18827
solaris*)
 
18828
  version_type=linux
 
18829
  need_lib_prefix=no
 
18830
  need_version=no
 
18831
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18832
  soname_spec='${libname}${release}${shared_ext}$major'
 
18833
  shlibpath_var=LD_LIBRARY_PATH
 
18834
  shlibpath_overrides_runpath=yes
 
18835
  hardcode_into_libs=yes
 
18836
  # ldd complains unless libraries are executable
 
18837
  postinstall_cmds='chmod +x $lib'
 
18838
  ;;
 
18839
 
 
18840
sunos4*)
 
18841
  version_type=sunos
 
18842
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18843
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18844
  shlibpath_var=LD_LIBRARY_PATH
 
18845
  shlibpath_overrides_runpath=yes
 
18846
  if test "$with_gnu_ld" = yes; then
 
18847
    need_lib_prefix=no
 
18848
  fi
 
18849
  need_version=yes
 
18850
  ;;
 
18851
 
 
18852
sysv4 | sysv4.3*)
 
18853
  version_type=linux
 
18854
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18855
  soname_spec='${libname}${release}${shared_ext}$major'
 
18856
  shlibpath_var=LD_LIBRARY_PATH
 
18857
  case $host_vendor in
 
18858
    sni)
 
18859
      shlibpath_overrides_runpath=no
 
18860
      need_lib_prefix=no
 
18861
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18862
      runpath_var=LD_RUN_PATH
 
18863
      ;;
 
18864
    siemens)
 
18865
      need_lib_prefix=no
 
18866
      ;;
 
18867
    motorola)
 
18868
      need_lib_prefix=no
 
18869
      need_version=no
 
18870
      shlibpath_overrides_runpath=no
 
18871
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18872
      ;;
 
18873
  esac
 
18874
  ;;
 
18875
 
 
18876
sysv4*MP*)
 
18877
  if test -d /usr/nec ;then
 
18878
    version_type=linux
 
18879
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18880
    soname_spec='$libname${shared_ext}.$major'
 
18881
    shlibpath_var=LD_LIBRARY_PATH
 
18882
  fi
 
18883
  ;;
 
18884
 
 
18885
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18886
  version_type=freebsd-elf
 
18887
  need_lib_prefix=no
 
18888
  need_version=no
 
18889
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18890
  soname_spec='${libname}${release}${shared_ext}$major'
 
18891
  shlibpath_var=LD_LIBRARY_PATH
 
18892
  hardcode_into_libs=yes
 
18893
  if test "$with_gnu_ld" = yes; then
 
18894
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18895
    shlibpath_overrides_runpath=no
 
18896
  else
 
18897
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18898
    shlibpath_overrides_runpath=yes
 
18899
    case $host_os in
 
18900
      sco3.2v5*)
 
18901
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18902
        ;;
 
18903
    esac
 
18904
  fi
 
18905
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18906
  ;;
 
18907
 
 
18908
uts4*)
 
18909
  version_type=linux
 
18910
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18911
  soname_spec='${libname}${release}${shared_ext}$major'
 
18912
  shlibpath_var=LD_LIBRARY_PATH
 
18913
  ;;
 
18914
 
 
18915
*)
 
18916
  dynamic_linker=no
 
18917
  ;;
 
18918
esac
 
18919
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18920
echo "${ECHO_T}$dynamic_linker" >&6; }
 
18921
test "$dynamic_linker" = no && can_build_shared=no
 
18922
 
 
18923
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
18924
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18925
else
 
18926
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
18927
fi
 
18928
 
 
18929
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
18930
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
18931
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18932
else
 
18933
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
18934
fi
 
18935
 
 
18936
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
18937
 
 
18938
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18939
if test "$GCC" = yes; then
 
18940
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18941
fi
 
18942
 
 
18943
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18944
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
18945
hardcode_action_GCJ=
 
18946
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18947
   test -n "$runpath_var_GCJ" || \
 
18948
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18949
 
 
18950
  # We can hardcode non-existant directories.
 
18951
  if test "$hardcode_direct_GCJ" != no &&
 
18952
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18953
     # have to relink, otherwise we might link with an installed library
 
18954
     # when we should be linking with a yet-to-be-installed one
 
18955
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18956
     test "$hardcode_minus_L_GCJ" != no; then
 
18957
    # Linking always hardcodes the temporary library directory.
 
18958
    hardcode_action_GCJ=relink
 
18959
  else
 
18960
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18961
    hardcode_action_GCJ=immediate
 
18962
  fi
 
18963
else
 
18964
  # We cannot hardcode anything, or else we can only hardcode existing
 
18965
  # directories.
 
18966
  hardcode_action_GCJ=unsupported
 
18967
fi
 
18968
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18969
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
18970
 
 
18971
if test "$hardcode_action_GCJ" = relink; then
 
18972
  # Fast installation is not supported
 
18973
  enable_fast_install=no
 
18974
elif test "$shlibpath_overrides_runpath" = yes ||
 
18975
     test "$enable_shared" = no; then
 
18976
  # Fast installation is not necessary
 
18977
  enable_fast_install=needless
 
18978
fi
 
18979
 
 
18980
 
 
18981
# The else clause should only fire when bootstrapping the
 
18982
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18983
# with your package, and you will get complaints that there are
 
18984
# no rules to generate ltmain.sh.
 
18985
if test -f "$ltmain"; then
 
18986
  # See if we are running on zsh, and set the options which allow our commands through
 
18987
  # without removal of \ escapes.
 
18988
  if test -n "${ZSH_VERSION+set}" ; then
 
18989
    setopt NO_GLOB_SUBST
 
18990
  fi
 
18991
  # Now quote all the things that may contain metacharacters while being
 
18992
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18993
  # variables and quote the copies for generation of the libtool script.
 
18994
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18995
    SED SHELL STRIP \
 
18996
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18997
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18998
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18999
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19000
    lt_cv_sys_global_symbol_to_c_name_address \
 
19001
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19002
    old_postinstall_cmds old_postuninstall_cmds \
 
19003
    compiler_GCJ \
 
19004
    CC_GCJ \
 
19005
    LD_GCJ \
 
19006
    lt_prog_compiler_wl_GCJ \
 
19007
    lt_prog_compiler_pic_GCJ \
 
19008
    lt_prog_compiler_static_GCJ \
 
19009
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19010
    export_dynamic_flag_spec_GCJ \
 
19011
    thread_safe_flag_spec_GCJ \
 
19012
    whole_archive_flag_spec_GCJ \
 
19013
    enable_shared_with_static_runtimes_GCJ \
 
19014
    old_archive_cmds_GCJ \
 
19015
    old_archive_from_new_cmds_GCJ \
 
19016
    predep_objects_GCJ \
 
19017
    postdep_objects_GCJ \
 
19018
    predeps_GCJ \
 
19019
    postdeps_GCJ \
 
19020
    compiler_lib_search_path_GCJ \
 
19021
    compiler_lib_search_dirs_GCJ \
 
19022
    archive_cmds_GCJ \
 
19023
    archive_expsym_cmds_GCJ \
 
19024
    postinstall_cmds_GCJ \
 
19025
    postuninstall_cmds_GCJ \
 
19026
    old_archive_from_expsyms_cmds_GCJ \
 
19027
    allow_undefined_flag_GCJ \
 
19028
    no_undefined_flag_GCJ \
 
19029
    export_symbols_cmds_GCJ \
 
19030
    hardcode_libdir_flag_spec_GCJ \
 
19031
    hardcode_libdir_flag_spec_ld_GCJ \
 
19032
    hardcode_libdir_separator_GCJ \
 
19033
    hardcode_automatic_GCJ \
 
19034
    module_cmds_GCJ \
 
19035
    module_expsym_cmds_GCJ \
 
19036
    lt_cv_prog_compiler_c_o_GCJ \
 
19037
    fix_srcfile_path_GCJ \
 
19038
    exclude_expsyms_GCJ \
 
19039
    include_expsyms_GCJ; do
 
19040
 
 
19041
    case $var in
 
19042
    old_archive_cmds_GCJ | \
 
19043
    old_archive_from_new_cmds_GCJ | \
 
19044
    archive_cmds_GCJ | \
 
19045
    archive_expsym_cmds_GCJ | \
 
19046
    module_cmds_GCJ | \
 
19047
    module_expsym_cmds_GCJ | \
 
19048
    old_archive_from_expsyms_cmds_GCJ | \
 
19049
    export_symbols_cmds_GCJ | \
 
19050
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19051
    postinstall_cmds | postuninstall_cmds | \
 
19052
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19053
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19054
      # Double-quote double-evaled strings.
 
19055
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19056
      ;;
 
19057
    *)
 
19058
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19059
      ;;
 
19060
    esac
 
19061
  done
 
19062
 
 
19063
  case $lt_echo in
 
19064
  *'\$0 --fallback-echo"')
 
19065
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19066
    ;;
 
19067
  esac
 
19068
 
 
19069
cfgfile="$ofile"
 
19070
 
 
19071
  cat <<__EOF__ >> "$cfgfile"
 
19072
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19073
 
 
19074
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19075
 
 
19076
# Shell to use when invoking shell scripts.
 
19077
SHELL=$lt_SHELL
 
19078
 
 
19079
# Whether or not to build shared libraries.
 
19080
build_libtool_libs=$enable_shared
 
19081
 
 
19082
# Whether or not to build static libraries.
 
19083
build_old_libs=$enable_static
 
19084
 
 
19085
# Whether or not to add -lc for building shared libraries.
 
19086
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19087
 
 
19088
# Whether or not to disallow shared libs when runtime libs are static
 
19089
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19090
 
 
19091
# Whether or not to optimize for fast installation.
 
19092
fast_install=$enable_fast_install
 
19093
 
 
19094
# The host system.
 
19095
host_alias=$host_alias
 
19096
host=$host
 
19097
host_os=$host_os
 
19098
 
 
19099
# The build system.
 
19100
build_alias=$build_alias
 
19101
build=$build
 
19102
build_os=$build_os
 
19103
 
 
19104
# An echo program that does not interpret backslashes.
 
19105
echo=$lt_echo
 
19106
 
 
19107
# The archiver.
 
19108
AR=$lt_AR
 
19109
AR_FLAGS=$lt_AR_FLAGS
 
19110
 
 
19111
# A C compiler.
 
19112
LTCC=$lt_LTCC
 
19113
 
 
19114
# LTCC compiler flags.
 
19115
LTCFLAGS=$lt_LTCFLAGS
 
19116
 
 
19117
# A language-specific compiler.
 
19118
CC=$lt_compiler_GCJ
 
19119
 
 
19120
# Is the compiler the GNU C compiler?
 
19121
with_gcc=$GCC_GCJ
 
19122
 
 
19123
# An ERE matcher.
 
19124
EGREP=$lt_EGREP
 
19125
 
 
19126
# The linker used to build libraries.
 
19127
LD=$lt_LD_GCJ
 
19128
 
 
19129
# Whether we need hard or soft links.
 
19130
LN_S=$lt_LN_S
 
19131
 
 
19132
# A BSD-compatible nm program.
 
19133
NM=$lt_NM
 
19134
 
 
19135
# A symbol stripping program
 
19136
STRIP=$lt_STRIP
 
19137
 
 
19138
# Used to examine libraries when file_magic_cmd begins "file"
 
19139
MAGIC_CMD=$MAGIC_CMD
 
19140
 
 
19141
# Used on cygwin: DLL creation program.
 
19142
DLLTOOL="$DLLTOOL"
 
19143
 
 
19144
# Used on cygwin: object dumper.
 
19145
OBJDUMP="$OBJDUMP"
 
19146
 
 
19147
# Used on cygwin: assembler.
 
19148
AS="$AS"
 
19149
 
 
19150
# The name of the directory that contains temporary libtool files.
 
19151
objdir=$objdir
 
19152
 
 
19153
# How to create reloadable object files.
 
19154
reload_flag=$lt_reload_flag
 
19155
reload_cmds=$lt_reload_cmds
 
19156
 
 
19157
# How to pass a linker flag through the compiler.
 
19158
wl=$lt_lt_prog_compiler_wl_GCJ
 
19159
 
 
19160
# Object file suffix (normally "o").
 
19161
objext="$ac_objext"
 
19162
 
 
19163
# Old archive suffix (normally "a").
 
19164
libext="$libext"
 
19165
 
 
19166
# Shared library suffix (normally ".so").
 
19167
shrext_cmds='$shrext_cmds'
 
19168
 
 
19169
# Executable file suffix (normally "").
 
19170
exeext="$exeext"
 
19171
 
 
19172
# Additional compiler flags for building library objects.
 
19173
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19174
pic_mode=$pic_mode
 
19175
 
 
19176
# What is the maximum length of a command?
 
19177
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19178
 
 
19179
# Does compiler simultaneously support -c and -o options?
 
19180
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19181
 
 
19182
# Must we lock files when doing compilation?
 
19183
need_locks=$lt_need_locks
 
19184
 
 
19185
# Do we need the lib prefix for modules?
 
19186
need_lib_prefix=$need_lib_prefix
 
19187
 
 
19188
# Do we need a version for libraries?
 
19189
need_version=$need_version
 
19190
 
 
19191
# Whether dlopen is supported.
 
19192
dlopen_support=$enable_dlopen
 
19193
 
 
19194
# Whether dlopen of programs is supported.
 
19195
dlopen_self=$enable_dlopen_self
 
19196
 
 
19197
# Whether dlopen of statically linked programs is supported.
 
19198
dlopen_self_static=$enable_dlopen_self_static
 
19199
 
 
19200
# Compiler flag to prevent dynamic linking.
 
19201
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19202
 
 
19203
# Compiler flag to turn off builtin functions.
 
19204
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19205
 
 
19206
# Compiler flag to allow reflexive dlopens.
 
19207
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19208
 
 
19209
# Compiler flag to generate shared objects directly from archives.
 
19210
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19211
 
 
19212
# Compiler flag to generate thread-safe objects.
 
19213
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19214
 
 
19215
# Library versioning type.
 
19216
version_type=$version_type
 
19217
 
 
19218
# Format of library name prefix.
 
19219
libname_spec=$lt_libname_spec
 
19220
 
 
19221
# List of archive names.  First name is the real one, the rest are links.
 
19222
# The last name is the one that the linker finds with -lNAME.
 
19223
library_names_spec=$lt_library_names_spec
 
19224
 
 
19225
# The coded name of the library, if different from the real name.
 
19226
soname_spec=$lt_soname_spec
 
19227
 
 
19228
# Commands used to build and install an old-style archive.
 
19229
RANLIB=$lt_RANLIB
 
19230
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19231
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19232
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19233
 
 
19234
# Create an old-style archive from a shared archive.
 
19235
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19236
 
 
19237
# Create a temporary old-style archive to link instead of a shared archive.
 
19238
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19239
 
 
19240
# Commands used to build and install a shared archive.
 
19241
archive_cmds=$lt_archive_cmds_GCJ
 
19242
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19243
postinstall_cmds=$lt_postinstall_cmds
 
19244
postuninstall_cmds=$lt_postuninstall_cmds
 
19245
 
 
19246
# Commands used to build a loadable module (assumed same as above if empty)
 
19247
module_cmds=$lt_module_cmds_GCJ
 
19248
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19249
 
 
19250
# Commands to strip libraries.
 
19251
old_striplib=$lt_old_striplib
 
19252
striplib=$lt_striplib
 
19253
 
 
19254
# Dependencies to place before the objects being linked to create a
 
19255
# shared library.
 
19256
predep_objects=$lt_predep_objects_GCJ
 
19257
 
 
19258
# Dependencies to place after the objects being linked to create a
 
19259
# shared library.
 
19260
postdep_objects=$lt_postdep_objects_GCJ
 
19261
 
 
19262
# Dependencies to place before the objects being linked to create a
 
19263
# shared library.
 
19264
predeps=$lt_predeps_GCJ
 
19265
 
 
19266
# Dependencies to place after the objects being linked to create a
 
19267
# shared library.
 
19268
postdeps=$lt_postdeps_GCJ
 
19269
 
 
19270
# The directories searched by this compiler when creating a shared
 
19271
# library
 
19272
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19273
 
 
19274
# The library search path used internally by the compiler when linking
 
19275
# a shared library.
 
19276
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19277
 
 
19278
# Method to check whether dependent libraries are shared objects.
 
19279
deplibs_check_method=$lt_deplibs_check_method
 
19280
 
 
19281
# Command to use when deplibs_check_method == file_magic.
 
19282
file_magic_cmd=$lt_file_magic_cmd
 
19283
 
 
19284
# Flag that allows shared libraries with undefined symbols to be built.
 
19285
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19286
 
 
19287
# Flag that forces no undefined symbols.
 
19288
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19289
 
 
19290
# Commands used to finish a libtool library installation in a directory.
 
19291
finish_cmds=$lt_finish_cmds
 
19292
 
 
19293
# Same as above, but a single script fragment to be evaled but not shown.
 
19294
finish_eval=$lt_finish_eval
 
19295
 
 
19296
# Take the output of nm and produce a listing of raw symbols and C names.
 
19297
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19298
 
 
19299
# Transform the output of nm in a proper C declaration
 
19300
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19301
 
 
19302
# Transform the output of nm in a C name address pair
 
19303
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19304
 
 
19305
# This is the shared library runtime path variable.
 
19306
runpath_var=$runpath_var
 
19307
 
 
19308
# This is the shared library path variable.
 
19309
shlibpath_var=$shlibpath_var
 
19310
 
 
19311
# Is shlibpath searched before the hard-coded library search path?
 
19312
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19313
 
 
19314
# How to hardcode a shared library path into an executable.
 
19315
hardcode_action=$hardcode_action_GCJ
 
19316
 
 
19317
# Whether we should hardcode library paths into libraries.
 
19318
hardcode_into_libs=$hardcode_into_libs
 
19319
 
 
19320
# Flag to hardcode \$libdir into a binary during linking.
 
19321
# This must work even if \$libdir does not exist.
 
19322
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19323
 
 
19324
# If ld is used when linking, flag to hardcode \$libdir into
 
19325
# a binary during linking. This must work even if \$libdir does
 
19326
# not exist.
 
19327
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19328
 
 
19329
# Whether we need a single -rpath flag with a separated argument.
 
19330
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19331
 
 
19332
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19333
# resulting binary.
 
19334
hardcode_direct=$hardcode_direct_GCJ
 
19335
 
 
19336
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19337
# resulting binary.
 
19338
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19339
 
 
19340
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19341
# the resulting binary.
 
19342
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19343
 
 
19344
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19345
# and all subsequent libraries and executables linked against it.
 
19346
hardcode_automatic=$hardcode_automatic_GCJ
 
19347
 
 
19348
# Variables whose values should be saved in libtool wrapper scripts and
 
19349
# restored at relink time.
 
19350
variables_saved_for_relink="$variables_saved_for_relink"
 
19351
 
 
19352
# Whether libtool must link a program against all its dependency libraries.
 
19353
link_all_deplibs=$link_all_deplibs_GCJ
 
19354
 
 
19355
# Compile-time system search path for libraries
 
19356
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19357
 
 
19358
# Run-time system search path for libraries
 
19359
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19360
 
 
19361
# Fix the shell variable \$srcfile for the compiler.
 
19362
fix_srcfile_path=$lt_fix_srcfile_path
 
19363
 
 
19364
# Set to yes if exported symbols are required.
 
19365
always_export_symbols=$always_export_symbols_GCJ
 
19366
 
 
19367
# The commands to list exported symbols.
 
19368
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19369
 
 
19370
# The commands to extract the exported symbol list from a shared archive.
 
19371
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19372
 
 
19373
# Symbols that should not be listed in the preloaded symbols.
 
19374
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19375
 
 
19376
# Symbols that must always be exported.
 
19377
include_expsyms=$lt_include_expsyms_GCJ
 
19378
 
 
19379
# ### END LIBTOOL TAG CONFIG: $tagname
 
19380
 
 
19381
__EOF__
 
19382
 
 
19383
 
 
19384
else
 
19385
  # If there is no Makefile yet, we rely on a make rule to execute
 
19386
  # `config.status --recheck' to rerun these tests and create the
 
19387
  # libtool script then.
 
19388
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19389
  if test -f "$ltmain_in"; then
 
19390
    test -f Makefile && make "$ltmain"
 
19391
  fi
 
19392
fi
 
19393
 
 
19394
 
 
19395
ac_ext=c
 
19396
ac_cpp='$CPP $CPPFLAGS'
 
19397
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19398
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19399
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19400
 
 
19401
CC="$lt_save_CC"
 
19402
 
 
19403
        else
 
19404
          tagname=""
 
19405
        fi
 
19406
        ;;
 
19407
 
 
19408
      RC)
 
19409
 
 
19410
 
 
19411
# Source file extension for RC test sources.
 
19412
ac_ext=rc
 
19413
 
 
19414
# Object file extension for compiled RC test sources.
 
19415
objext=o
 
19416
objext_RC=$objext
 
19417
 
 
19418
# Code to be used in simple compile tests
 
19419
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19420
 
 
19421
# Code to be used in simple link tests
 
19422
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19423
 
 
19424
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19425
 
 
19426
# If no C compiler was specified, use CC.
 
19427
LTCC=${LTCC-"$CC"}
 
19428
 
 
19429
# If no C compiler flags were specified, use CFLAGS.
 
19430
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19431
 
 
19432
# Allow CC to be a program name with arguments.
 
19433
compiler=$CC
 
19434
 
 
19435
 
 
19436
# save warnings/boilerplate of simple test code
 
19437
ac_outfile=conftest.$ac_objext
 
19438
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19439
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19440
_lt_compiler_boilerplate=`cat conftest.err`
 
19441
$rm conftest*
 
19442
 
 
19443
ac_outfile=conftest.$ac_objext
 
19444
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19445
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19446
_lt_linker_boilerplate=`cat conftest.err`
 
19447
$rm -r conftest*
 
19448
 
 
19449
 
 
19450
# Allow CC to be a program name with arguments.
 
19451
lt_save_CC="$CC"
 
19452
CC=${RC-"windres"}
 
19453
compiler=$CC
 
19454
compiler_RC=$CC
 
19455
for cc_temp in $compiler""; do
 
19456
  case $cc_temp in
 
19457
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19458
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19459
    \-*) ;;
 
19460
    *) break;;
 
19461
  esac
 
19462
done
 
19463
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19464
 
 
19465
lt_cv_prog_compiler_c_o_RC=yes
 
19466
 
 
19467
# The else clause should only fire when bootstrapping the
 
19468
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19469
# with your package, and you will get complaints that there are
 
19470
# no rules to generate ltmain.sh.
 
19471
if test -f "$ltmain"; then
 
19472
  # See if we are running on zsh, and set the options which allow our commands through
 
19473
  # without removal of \ escapes.
 
19474
  if test -n "${ZSH_VERSION+set}" ; then
 
19475
    setopt NO_GLOB_SUBST
 
19476
  fi
 
19477
  # Now quote all the things that may contain metacharacters while being
 
19478
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19479
  # variables and quote the copies for generation of the libtool script.
 
19480
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19481
    SED SHELL STRIP \
 
19482
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19483
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19484
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19485
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19486
    lt_cv_sys_global_symbol_to_c_name_address \
 
19487
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19488
    old_postinstall_cmds old_postuninstall_cmds \
 
19489
    compiler_RC \
 
19490
    CC_RC \
 
19491
    LD_RC \
 
19492
    lt_prog_compiler_wl_RC \
 
19493
    lt_prog_compiler_pic_RC \
 
19494
    lt_prog_compiler_static_RC \
 
19495
    lt_prog_compiler_no_builtin_flag_RC \
 
19496
    export_dynamic_flag_spec_RC \
 
19497
    thread_safe_flag_spec_RC \
 
19498
    whole_archive_flag_spec_RC \
 
19499
    enable_shared_with_static_runtimes_RC \
 
19500
    old_archive_cmds_RC \
 
19501
    old_archive_from_new_cmds_RC \
 
19502
    predep_objects_RC \
 
19503
    postdep_objects_RC \
 
19504
    predeps_RC \
 
19505
    postdeps_RC \
 
19506
    compiler_lib_search_path_RC \
 
19507
    compiler_lib_search_dirs_RC \
 
19508
    archive_cmds_RC \
 
19509
    archive_expsym_cmds_RC \
 
19510
    postinstall_cmds_RC \
 
19511
    postuninstall_cmds_RC \
 
19512
    old_archive_from_expsyms_cmds_RC \
 
19513
    allow_undefined_flag_RC \
 
19514
    no_undefined_flag_RC \
 
19515
    export_symbols_cmds_RC \
 
19516
    hardcode_libdir_flag_spec_RC \
 
19517
    hardcode_libdir_flag_spec_ld_RC \
 
19518
    hardcode_libdir_separator_RC \
 
19519
    hardcode_automatic_RC \
 
19520
    module_cmds_RC \
 
19521
    module_expsym_cmds_RC \
 
19522
    lt_cv_prog_compiler_c_o_RC \
 
19523
    fix_srcfile_path_RC \
 
19524
    exclude_expsyms_RC \
 
19525
    include_expsyms_RC; do
 
19526
 
 
19527
    case $var in
 
19528
    old_archive_cmds_RC | \
 
19529
    old_archive_from_new_cmds_RC | \
 
19530
    archive_cmds_RC | \
 
19531
    archive_expsym_cmds_RC | \
 
19532
    module_cmds_RC | \
 
19533
    module_expsym_cmds_RC | \
 
19534
    old_archive_from_expsyms_cmds_RC | \
 
19535
    export_symbols_cmds_RC | \
 
19536
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19537
    postinstall_cmds | postuninstall_cmds | \
 
19538
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19539
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19540
      # Double-quote double-evaled strings.
 
19541
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19542
      ;;
 
19543
    *)
 
19544
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19545
      ;;
 
19546
    esac
 
19547
  done
 
19548
 
 
19549
  case $lt_echo in
 
19550
  *'\$0 --fallback-echo"')
 
19551
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19552
    ;;
 
19553
  esac
 
19554
 
 
19555
cfgfile="$ofile"
 
19556
 
 
19557
  cat <<__EOF__ >> "$cfgfile"
 
19558
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19559
 
 
19560
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19561
 
 
19562
# Shell to use when invoking shell scripts.
 
19563
SHELL=$lt_SHELL
 
19564
 
 
19565
# Whether or not to build shared libraries.
 
19566
build_libtool_libs=$enable_shared
 
19567
 
 
19568
# Whether or not to build static libraries.
 
19569
build_old_libs=$enable_static
 
19570
 
 
19571
# Whether or not to add -lc for building shared libraries.
 
19572
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19573
 
 
19574
# Whether or not to disallow shared libs when runtime libs are static
 
19575
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19576
 
 
19577
# Whether or not to optimize for fast installation.
 
19578
fast_install=$enable_fast_install
 
19579
 
 
19580
# The host system.
 
19581
host_alias=$host_alias
 
19582
host=$host
 
19583
host_os=$host_os
 
19584
 
 
19585
# The build system.
 
19586
build_alias=$build_alias
 
19587
build=$build
 
19588
build_os=$build_os
 
19589
 
 
19590
# An echo program that does not interpret backslashes.
 
19591
echo=$lt_echo
 
19592
 
 
19593
# The archiver.
 
19594
AR=$lt_AR
 
19595
AR_FLAGS=$lt_AR_FLAGS
 
19596
 
 
19597
# A C compiler.
 
19598
LTCC=$lt_LTCC
 
19599
 
 
19600
# LTCC compiler flags.
 
19601
LTCFLAGS=$lt_LTCFLAGS
 
19602
 
 
19603
# A language-specific compiler.
 
19604
CC=$lt_compiler_RC
 
19605
 
 
19606
# Is the compiler the GNU C compiler?
 
19607
with_gcc=$GCC_RC
 
19608
 
 
19609
# An ERE matcher.
 
19610
EGREP=$lt_EGREP
 
19611
 
 
19612
# The linker used to build libraries.
 
19613
LD=$lt_LD_RC
 
19614
 
 
19615
# Whether we need hard or soft links.
 
19616
LN_S=$lt_LN_S
 
19617
 
 
19618
# A BSD-compatible nm program.
 
19619
NM=$lt_NM
 
19620
 
 
19621
# A symbol stripping program
 
19622
STRIP=$lt_STRIP
 
19623
 
 
19624
# Used to examine libraries when file_magic_cmd begins "file"
 
19625
MAGIC_CMD=$MAGIC_CMD
 
19626
 
 
19627
# Used on cygwin: DLL creation program.
 
19628
DLLTOOL="$DLLTOOL"
 
19629
 
 
19630
# Used on cygwin: object dumper.
 
19631
OBJDUMP="$OBJDUMP"
 
19632
 
 
19633
# Used on cygwin: assembler.
 
19634
AS="$AS"
 
19635
 
 
19636
# The name of the directory that contains temporary libtool files.
 
19637
objdir=$objdir
 
19638
 
 
19639
# How to create reloadable object files.
 
19640
reload_flag=$lt_reload_flag
 
19641
reload_cmds=$lt_reload_cmds
 
19642
 
 
19643
# How to pass a linker flag through the compiler.
 
19644
wl=$lt_lt_prog_compiler_wl_RC
 
19645
 
 
19646
# Object file suffix (normally "o").
 
19647
objext="$ac_objext"
 
19648
 
 
19649
# Old archive suffix (normally "a").
 
19650
libext="$libext"
 
19651
 
 
19652
# Shared library suffix (normally ".so").
 
19653
shrext_cmds='$shrext_cmds'
 
19654
 
 
19655
# Executable file suffix (normally "").
 
19656
exeext="$exeext"
 
19657
 
 
19658
# Additional compiler flags for building library objects.
 
19659
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19660
pic_mode=$pic_mode
 
19661
 
 
19662
# What is the maximum length of a command?
 
19663
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19664
 
 
19665
# Does compiler simultaneously support -c and -o options?
 
19666
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19667
 
 
19668
# Must we lock files when doing compilation?
 
19669
need_locks=$lt_need_locks
 
19670
 
 
19671
# Do we need the lib prefix for modules?
 
19672
need_lib_prefix=$need_lib_prefix
 
19673
 
 
19674
# Do we need a version for libraries?
 
19675
need_version=$need_version
 
19676
 
 
19677
# Whether dlopen is supported.
 
19678
dlopen_support=$enable_dlopen
 
19679
 
 
19680
# Whether dlopen of programs is supported.
 
19681
dlopen_self=$enable_dlopen_self
 
19682
 
 
19683
# Whether dlopen of statically linked programs is supported.
 
19684
dlopen_self_static=$enable_dlopen_self_static
 
19685
 
 
19686
# Compiler flag to prevent dynamic linking.
 
19687
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19688
 
 
19689
# Compiler flag to turn off builtin functions.
 
19690
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19691
 
 
19692
# Compiler flag to allow reflexive dlopens.
 
19693
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19694
 
 
19695
# Compiler flag to generate shared objects directly from archives.
 
19696
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19697
 
 
19698
# Compiler flag to generate thread-safe objects.
 
19699
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19700
 
 
19701
# Library versioning type.
 
19702
version_type=$version_type
 
19703
 
 
19704
# Format of library name prefix.
 
19705
libname_spec=$lt_libname_spec
 
19706
 
 
19707
# List of archive names.  First name is the real one, the rest are links.
 
19708
# The last name is the one that the linker finds with -lNAME.
 
19709
library_names_spec=$lt_library_names_spec
 
19710
 
 
19711
# The coded name of the library, if different from the real name.
 
19712
soname_spec=$lt_soname_spec
 
19713
 
 
19714
# Commands used to build and install an old-style archive.
 
19715
RANLIB=$lt_RANLIB
 
19716
old_archive_cmds=$lt_old_archive_cmds_RC
 
19717
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19718
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19719
 
 
19720
# Create an old-style archive from a shared archive.
 
19721
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19722
 
 
19723
# Create a temporary old-style archive to link instead of a shared archive.
 
19724
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19725
 
 
19726
# Commands used to build and install a shared archive.
 
19727
archive_cmds=$lt_archive_cmds_RC
 
19728
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19729
postinstall_cmds=$lt_postinstall_cmds
 
19730
postuninstall_cmds=$lt_postuninstall_cmds
 
19731
 
 
19732
# Commands used to build a loadable module (assumed same as above if empty)
 
19733
module_cmds=$lt_module_cmds_RC
 
19734
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19735
 
 
19736
# Commands to strip libraries.
 
19737
old_striplib=$lt_old_striplib
 
19738
striplib=$lt_striplib
 
19739
 
 
19740
# Dependencies to place before the objects being linked to create a
 
19741
# shared library.
 
19742
predep_objects=$lt_predep_objects_RC
 
19743
 
 
19744
# Dependencies to place after the objects being linked to create a
 
19745
# shared library.
 
19746
postdep_objects=$lt_postdep_objects_RC
 
19747
 
 
19748
# Dependencies to place before the objects being linked to create a
 
19749
# shared library.
 
19750
predeps=$lt_predeps_RC
 
19751
 
 
19752
# Dependencies to place after the objects being linked to create a
 
19753
# shared library.
 
19754
postdeps=$lt_postdeps_RC
 
19755
 
 
19756
# The directories searched by this compiler when creating a shared
 
19757
# library
 
19758
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
19759
 
 
19760
# The library search path used internally by the compiler when linking
 
19761
# a shared library.
 
19762
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19763
 
 
19764
# Method to check whether dependent libraries are shared objects.
 
19765
deplibs_check_method=$lt_deplibs_check_method
 
19766
 
 
19767
# Command to use when deplibs_check_method == file_magic.
 
19768
file_magic_cmd=$lt_file_magic_cmd
 
19769
 
 
19770
# Flag that allows shared libraries with undefined symbols to be built.
 
19771
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19772
 
 
19773
# Flag that forces no undefined symbols.
 
19774
no_undefined_flag=$lt_no_undefined_flag_RC
 
19775
 
 
19776
# Commands used to finish a libtool library installation in a directory.
 
19777
finish_cmds=$lt_finish_cmds
 
19778
 
 
19779
# Same as above, but a single script fragment to be evaled but not shown.
 
19780
finish_eval=$lt_finish_eval
 
19781
 
 
19782
# Take the output of nm and produce a listing of raw symbols and C names.
 
19783
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19784
 
 
19785
# Transform the output of nm in a proper C declaration
 
19786
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19787
 
 
19788
# Transform the output of nm in a C name address pair
 
19789
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19790
 
 
19791
# This is the shared library runtime path variable.
 
19792
runpath_var=$runpath_var
 
19793
 
 
19794
# This is the shared library path variable.
 
19795
shlibpath_var=$shlibpath_var
 
19796
 
 
19797
# Is shlibpath searched before the hard-coded library search path?
 
19798
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19799
 
 
19800
# How to hardcode a shared library path into an executable.
 
19801
hardcode_action=$hardcode_action_RC
 
19802
 
 
19803
# Whether we should hardcode library paths into libraries.
 
19804
hardcode_into_libs=$hardcode_into_libs
 
19805
 
 
19806
# Flag to hardcode \$libdir into a binary during linking.
 
19807
# This must work even if \$libdir does not exist.
 
19808
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19809
 
 
19810
# If ld is used when linking, flag to hardcode \$libdir into
 
19811
# a binary during linking. This must work even if \$libdir does
 
19812
# not exist.
 
19813
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19814
 
 
19815
# Whether we need a single -rpath flag with a separated argument.
 
19816
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19817
 
 
19818
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19819
# resulting binary.
 
19820
hardcode_direct=$hardcode_direct_RC
 
19821
 
 
19822
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19823
# resulting binary.
 
19824
hardcode_minus_L=$hardcode_minus_L_RC
 
19825
 
 
19826
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19827
# the resulting binary.
 
19828
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19829
 
 
19830
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19831
# and all subsequent libraries and executables linked against it.
 
19832
hardcode_automatic=$hardcode_automatic_RC
 
19833
 
 
19834
# Variables whose values should be saved in libtool wrapper scripts and
 
19835
# restored at relink time.
 
19836
variables_saved_for_relink="$variables_saved_for_relink"
 
19837
 
 
19838
# Whether libtool must link a program against all its dependency libraries.
 
19839
link_all_deplibs=$link_all_deplibs_RC
 
19840
 
 
19841
# Compile-time system search path for libraries
 
19842
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19843
 
 
19844
# Run-time system search path for libraries
 
19845
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19846
 
 
19847
# Fix the shell variable \$srcfile for the compiler.
 
19848
fix_srcfile_path=$lt_fix_srcfile_path
 
19849
 
 
19850
# Set to yes if exported symbols are required.
 
19851
always_export_symbols=$always_export_symbols_RC
 
19852
 
 
19853
# The commands to list exported symbols.
 
19854
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19855
 
 
19856
# The commands to extract the exported symbol list from a shared archive.
 
19857
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19858
 
 
19859
# Symbols that should not be listed in the preloaded symbols.
 
19860
exclude_expsyms=$lt_exclude_expsyms_RC
 
19861
 
 
19862
# Symbols that must always be exported.
 
19863
include_expsyms=$lt_include_expsyms_RC
 
19864
 
 
19865
# ### END LIBTOOL TAG CONFIG: $tagname
 
19866
 
 
19867
__EOF__
 
19868
 
 
19869
 
 
19870
else
 
19871
  # If there is no Makefile yet, we rely on a make rule to execute
 
19872
  # `config.status --recheck' to rerun these tests and create the
 
19873
  # libtool script then.
 
19874
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19875
  if test -f "$ltmain_in"; then
 
19876
    test -f Makefile && make "$ltmain"
 
19877
  fi
 
19878
fi
 
19879
 
 
19880
 
 
19881
ac_ext=c
 
19882
ac_cpp='$CPP $CPPFLAGS'
 
19883
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19884
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19885
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19886
 
 
19887
CC="$lt_save_CC"
 
19888
 
 
19889
        ;;
 
19890
 
 
19891
      *)
 
19892
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19893
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19894
   { (exit 1); exit 1; }; }
 
19895
        ;;
 
19896
      esac
 
19897
 
 
19898
      # Append the new tag name to the list of available tags.
 
19899
      if test -n "$tagname" ; then
 
19900
      available_tags="$available_tags $tagname"
 
19901
    fi
 
19902
    fi
 
19903
  done
 
19904
  IFS="$lt_save_ifs"
 
19905
 
 
19906
  # Now substitute the updated list of available tags.
 
19907
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19908
    mv "${ofile}T" "$ofile"
 
19909
    chmod +x "$ofile"
 
19910
  else
 
19911
    rm -f "${ofile}T"
 
19912
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19913
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19914
   { (exit 1); exit 1; }; }
 
19915
  fi
 
19916
fi
 
19917
 
 
19918
 
 
19919
 
 
19920
# This can be used to rebuild libtool when needed
 
19921
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19922
 
 
19923
# Always use our own libtool.
 
19924
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19925
 
 
19926
# Prevent multiple expansion
 
19927
 
 
19928
 
 
19929
 
 
19930
 
 
19931
 
 
19932
 
 
19933
 
 
19934
 
 
19935
 
 
19936
 
 
19937
 
 
19938
 
 
19939
 
 
19940
 
 
19941
 
 
19942
 
 
19943
 
 
19944
 
 
19945
 
 
19946
 
 
19947
 
 
19948
# Platform
 
19949
case "${target_os}" in
 
19950
darwin*)
 
19951
 
 
19952
cat >>confdefs.h <<\_ACEOF
 
19953
#define DARWIN 1
 
19954
_ACEOF
 
19955
 
 
19956
esac
 
19957
 
 
19958
# Checks for programs.
 
19959
ac_ext=cpp
 
19960
ac_cpp='$CXXCPP $CPPFLAGS'
 
19961
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19962
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19963
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
19964
if test -z "$CXX"; then
 
19965
  if test -n "$CCC"; then
 
19966
    CXX=$CCC
 
19967
  else
 
19968
    if test -n "$ac_tool_prefix"; then
 
19969
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
19970
  do
 
19971
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
19972
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
19973
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19974
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19975
if test "${ac_cv_prog_CXX+set}" = set; then
 
19976
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19977
else
 
19978
  if test -n "$CXX"; then
 
19979
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
19980
else
 
19981
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19982
for as_dir in $PATH
 
19983
do
 
19984
  IFS=$as_save_IFS
 
19985
  test -z "$as_dir" && as_dir=.
 
19986
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19987
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19988
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
19989
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19990
    break 2
 
19991
  fi
 
19992
done
 
19993
done
 
19994
IFS=$as_save_IFS
 
19995
 
 
19996
fi
 
19997
fi
 
19998
CXX=$ac_cv_prog_CXX
 
19999
if test -n "$CXX"; then
 
20000
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
20001
echo "${ECHO_T}$CXX" >&6; }
 
20002
else
 
20003
  { echo "$as_me:$LINENO: result: no" >&5
 
20004
echo "${ECHO_T}no" >&6; }
 
20005
fi
 
20006
 
 
20007
 
 
20008
    test -n "$CXX" && break
 
20009
  done
 
20010
fi
 
20011
if test -z "$CXX"; then
 
20012
  ac_ct_CXX=$CXX
 
20013
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
20014
do
 
20015
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
20016
set dummy $ac_prog; ac_word=$2
 
20017
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20018
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20019
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
20020
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20021
else
 
20022
  if test -n "$ac_ct_CXX"; then
 
20023
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
20024
else
 
20025
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20026
for as_dir in $PATH
 
20027
do
 
20028
  IFS=$as_save_IFS
 
20029
  test -z "$as_dir" && as_dir=.
 
20030
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20031
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20032
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
20033
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20034
    break 2
 
20035
  fi
 
20036
done
 
20037
done
 
20038
IFS=$as_save_IFS
 
20039
 
 
20040
fi
 
20041
fi
 
20042
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
20043
if test -n "$ac_ct_CXX"; then
 
20044
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
20045
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
20046
else
 
20047
  { echo "$as_me:$LINENO: result: no" >&5
 
20048
echo "${ECHO_T}no" >&6; }
 
20049
fi
 
20050
 
 
20051
 
 
20052
  test -n "$ac_ct_CXX" && break
 
20053
done
 
20054
 
 
20055
  if test "x$ac_ct_CXX" = x; then
 
20056
    CXX="g++"
 
20057
  else
 
20058
    case $cross_compiling:$ac_tool_warned in
 
20059
yes:)
 
20060
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
20061
whose name does not start with the host triplet.  If you think this
 
20062
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
20063
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
20064
whose name does not start with the host triplet.  If you think this
 
20065
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
20066
ac_tool_warned=yes ;;
 
20067
esac
 
20068
    CXX=$ac_ct_CXX
 
20069
  fi
 
20070
fi
 
20071
 
 
20072
  fi
 
20073
fi
 
20074
# Provide some information about the compiler.
 
20075
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
20076
ac_compiler=`set X $ac_compile; echo $2`
 
20077
{ (ac_try="$ac_compiler --version >&5"
 
20078
case "(($ac_try" in
 
20079
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20080
  *) ac_try_echo=$ac_try;;
 
20081
esac
 
20082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20083
  (eval "$ac_compiler --version >&5") 2>&5
 
20084
  ac_status=$?
 
20085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20086
  (exit $ac_status); }
 
20087
{ (ac_try="$ac_compiler -v >&5"
 
20088
case "(($ac_try" in
 
20089
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20090
  *) ac_try_echo=$ac_try;;
 
20091
esac
 
20092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20093
  (eval "$ac_compiler -v >&5") 2>&5
 
20094
  ac_status=$?
 
20095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20096
  (exit $ac_status); }
 
20097
{ (ac_try="$ac_compiler -V >&5"
 
20098
case "(($ac_try" in
 
20099
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20100
  *) ac_try_echo=$ac_try;;
 
20101
esac
 
20102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20103
  (eval "$ac_compiler -V >&5") 2>&5
 
20104
  ac_status=$?
 
20105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20106
  (exit $ac_status); }
 
20107
 
 
20108
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
20109
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
20110
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
20111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20112
else
 
20113
  cat >conftest.$ac_ext <<_ACEOF
 
20114
/* confdefs.h.  */
 
20115
_ACEOF
 
20116
cat confdefs.h >>conftest.$ac_ext
 
20117
cat >>conftest.$ac_ext <<_ACEOF
 
20118
/* end confdefs.h.  */
 
20119
 
 
20120
int
 
20121
main ()
 
20122
{
 
20123
#ifndef __GNUC__
 
20124
       choke me
 
20125
#endif
 
20126
 
 
20127
  ;
 
20128
  return 0;
 
20129
}
 
20130
_ACEOF
 
20131
rm -f conftest.$ac_objext
 
20132
if { (ac_try="$ac_compile"
 
20133
case "(($ac_try" in
 
20134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20135
  *) ac_try_echo=$ac_try;;
 
20136
esac
 
20137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20138
  (eval "$ac_compile") 2>conftest.er1
 
20139
  ac_status=$?
 
20140
  grep -v '^ *+' conftest.er1 >conftest.err
 
20141
  rm -f conftest.er1
 
20142
  cat conftest.err >&5
 
20143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20144
  (exit $ac_status); } && {
 
20145
         test -z "$ac_cxx_werror_flag" ||
 
20146
         test ! -s conftest.err
 
20147
       } && test -s conftest.$ac_objext; then
 
20148
  ac_compiler_gnu=yes
 
20149
else
 
20150
  echo "$as_me: failed program was:" >&5
 
20151
sed 's/^/| /' conftest.$ac_ext >&5
 
20152
 
 
20153
        ac_compiler_gnu=no
 
20154
fi
 
20155
 
 
20156
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20157
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
20158
 
 
20159
fi
 
20160
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
20161
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
20162
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
20163
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
20164
ac_save_CXXFLAGS=$CXXFLAGS
 
20165
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
20166
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
20167
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
20168
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20169
else
 
20170
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
20171
   ac_cxx_werror_flag=yes
 
20172
   ac_cv_prog_cxx_g=no
 
20173
   CXXFLAGS="-g"
 
20174
   cat >conftest.$ac_ext <<_ACEOF
 
20175
/* confdefs.h.  */
 
20176
_ACEOF
 
20177
cat confdefs.h >>conftest.$ac_ext
 
20178
cat >>conftest.$ac_ext <<_ACEOF
 
20179
/* end confdefs.h.  */
 
20180
 
 
20181
int
 
20182
main ()
 
20183
{
 
20184
 
 
20185
  ;
 
20186
  return 0;
 
20187
}
 
20188
_ACEOF
 
20189
rm -f conftest.$ac_objext
 
20190
if { (ac_try="$ac_compile"
 
20191
case "(($ac_try" in
 
20192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20193
  *) ac_try_echo=$ac_try;;
 
20194
esac
 
20195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20196
  (eval "$ac_compile") 2>conftest.er1
 
20197
  ac_status=$?
 
20198
  grep -v '^ *+' conftest.er1 >conftest.err
 
20199
  rm -f conftest.er1
 
20200
  cat conftest.err >&5
 
20201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20202
  (exit $ac_status); } && {
 
20203
         test -z "$ac_cxx_werror_flag" ||
 
20204
         test ! -s conftest.err
 
20205
       } && test -s conftest.$ac_objext; then
 
20206
  ac_cv_prog_cxx_g=yes
 
20207
else
 
20208
  echo "$as_me: failed program was:" >&5
 
20209
sed 's/^/| /' conftest.$ac_ext >&5
 
20210
 
 
20211
        CXXFLAGS=""
 
20212
      cat >conftest.$ac_ext <<_ACEOF
 
20213
/* confdefs.h.  */
 
20214
_ACEOF
 
20215
cat confdefs.h >>conftest.$ac_ext
 
20216
cat >>conftest.$ac_ext <<_ACEOF
 
20217
/* end confdefs.h.  */
 
20218
 
 
20219
int
 
20220
main ()
 
20221
{
 
20222
 
 
20223
  ;
 
20224
  return 0;
 
20225
}
 
20226
_ACEOF
 
20227
rm -f conftest.$ac_objext
 
20228
if { (ac_try="$ac_compile"
 
20229
case "(($ac_try" in
 
20230
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20231
  *) ac_try_echo=$ac_try;;
 
20232
esac
 
20233
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20234
  (eval "$ac_compile") 2>conftest.er1
 
20235
  ac_status=$?
 
20236
  grep -v '^ *+' conftest.er1 >conftest.err
 
20237
  rm -f conftest.er1
 
20238
  cat conftest.err >&5
 
20239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20240
  (exit $ac_status); } && {
 
20241
         test -z "$ac_cxx_werror_flag" ||
 
20242
         test ! -s conftest.err
 
20243
       } && test -s conftest.$ac_objext; then
 
20244
  :
 
20245
else
 
20246
  echo "$as_me: failed program was:" >&5
 
20247
sed 's/^/| /' conftest.$ac_ext >&5
 
20248
 
 
20249
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
20250
         CXXFLAGS="-g"
 
20251
         cat >conftest.$ac_ext <<_ACEOF
 
20252
/* confdefs.h.  */
 
20253
_ACEOF
 
20254
cat confdefs.h >>conftest.$ac_ext
 
20255
cat >>conftest.$ac_ext <<_ACEOF
 
20256
/* end confdefs.h.  */
 
20257
 
 
20258
int
 
20259
main ()
 
20260
{
 
20261
 
 
20262
  ;
 
20263
  return 0;
 
20264
}
 
20265
_ACEOF
 
20266
rm -f conftest.$ac_objext
 
20267
if { (ac_try="$ac_compile"
 
20268
case "(($ac_try" in
 
20269
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20270
  *) ac_try_echo=$ac_try;;
 
20271
esac
 
20272
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20273
  (eval "$ac_compile") 2>conftest.er1
 
20274
  ac_status=$?
 
20275
  grep -v '^ *+' conftest.er1 >conftest.err
 
20276
  rm -f conftest.er1
 
20277
  cat conftest.err >&5
 
20278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20279
  (exit $ac_status); } && {
 
20280
         test -z "$ac_cxx_werror_flag" ||
 
20281
         test ! -s conftest.err
 
20282
       } && test -s conftest.$ac_objext; then
 
20283
  ac_cv_prog_cxx_g=yes
 
20284
else
 
20285
  echo "$as_me: failed program was:" >&5
 
20286
sed 's/^/| /' conftest.$ac_ext >&5
 
20287
 
 
20288
 
 
20289
fi
 
20290
 
 
20291
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20292
fi
 
20293
 
 
20294
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20295
fi
 
20296
 
 
20297
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20298
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
20299
fi
 
20300
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
20301
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
20302
if test "$ac_test_CXXFLAGS" = set; then
 
20303
  CXXFLAGS=$ac_save_CXXFLAGS
 
20304
elif test $ac_cv_prog_cxx_g = yes; then
 
20305
  if test "$GXX" = yes; then
 
20306
    CXXFLAGS="-g -O2"
 
20307
  else
 
20308
    CXXFLAGS="-g"
 
20309
  fi
 
20310
else
 
20311
  if test "$GXX" = yes; then
 
20312
    CXXFLAGS="-O2"
 
20313
  else
 
20314
    CXXFLAGS=
 
20315
  fi
 
20316
fi
 
20317
ac_ext=c
 
20318
ac_cpp='$CPP $CPPFLAGS'
 
20319
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20320
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20321
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20322
 
 
20323
depcc="$CXX"  am_compiler_list=
 
20324
 
 
20325
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
20326
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
20327
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
20328
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20329
else
 
20330
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
20331
  # We make a subdir and do the tests there.  Otherwise we can end up
 
20332
  # making bogus files that we don't know about and never remove.  For
 
20333
  # instance it was reported that on HP-UX the gcc test will end up
 
20334
  # making a dummy file named `D' -- because `-MD' means `put the output
 
20335
  # in D'.
 
20336
  mkdir conftest.dir
 
20337
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
20338
  # using a relative directory.
 
20339
  cp "$am_depcomp" conftest.dir
 
20340
  cd conftest.dir
 
20341
  # We will build objects and dependencies in a subdirectory because
 
20342
  # it helps to detect inapplicable dependency modes.  For instance
 
20343
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
20344
  # side effect of compilation, but ICC will put the dependencies in
 
20345
  # the current directory while Tru64 will put them in the object
 
20346
  # directory.
 
20347
  mkdir sub
 
20348
 
 
20349
  am_cv_CXX_dependencies_compiler_type=none
 
20350
  if test "$am_compiler_list" = ""; then
 
20351
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
20352
  fi
 
20353
  for depmode in $am_compiler_list; do
 
20354
    # Setup a source with many dependencies, because some compilers
 
20355
    # like to wrap large dependency lists on column 80 (with \), and
 
20356
    # we should not choose a depcomp mode which is confused by this.
 
20357
    #
 
20358
    # We need to recreate these files for each test, as the compiler may
 
20359
    # overwrite some of them when testing with obscure command lines.
 
20360
    # This happens at least with the AIX C compiler.
 
20361
    : > sub/conftest.c
 
20362
    for i in 1 2 3 4 5 6; do
 
20363
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
20364
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
20365
      # Solaris 8's {/usr,}/bin/sh.
 
20366
      touch sub/conftst$i.h
 
20367
    done
 
20368
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
20369
 
 
20370
    case $depmode in
 
20371
    nosideeffect)
 
20372
      # after this tag, mechanisms are not by side-effect, so they'll
 
20373
      # only be used when explicitly requested
 
20374
      if test "x$enable_dependency_tracking" = xyes; then
 
20375
        continue
 
20376
      else
 
20377
        break
 
20378
      fi
 
20379
      ;;
 
20380
    none) break ;;
 
20381
    esac
 
20382
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
20383
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
20384
    # handle `-M -o', and we need to detect this.
 
20385
    if depmode=$depmode \
 
20386
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
20387
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
20388
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
20389
         >/dev/null 2>conftest.err &&
 
20390
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
20391
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
20392
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
20393
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
20394
      # icc doesn't choke on unknown options, it will just issue warnings
 
20395
      # or remarks (even with -Werror).  So we grep stderr for any message
 
20396
      # that says an option was ignored or not supported.
 
20397
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
20398
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
20399
      # The diagnosis changed in icc 8.0:
 
20400
      #   icc: Command line remark: option '-MP' not supported
 
20401
      if (grep 'ignoring option' conftest.err ||
 
20402
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
20403
        am_cv_CXX_dependencies_compiler_type=$depmode
 
20404
        break
 
20405
      fi
 
20406
    fi
 
20407
  done
 
20408
 
 
20409
  cd ..
 
20410
  rm -rf conftest.dir
 
20411
else
 
20412
  am_cv_CXX_dependencies_compiler_type=none
 
20413
fi
 
20414
 
 
20415
fi
 
20416
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
20417
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
20418
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
20419
 
 
20420
 if
 
20421
  test "x$enable_dependency_tracking" != xno \
 
20422
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
20423
  am__fastdepCXX_TRUE=
 
20424
  am__fastdepCXX_FALSE='#'
 
20425
else
 
20426
  am__fastdepCXX_TRUE='#'
 
20427
  am__fastdepCXX_FALSE=
 
20428
fi
 
20429
 
 
20430
 
 
20431
#AC_PROG_CC
 
20432
#AC_PROG_RANLIB
 
20433
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
20434
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
20435
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
20436
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
20437
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20438
else
 
20439
  cat >conftest.make <<\_ACEOF
 
20440
SHELL = /bin/sh
 
20441
all:
 
20442
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
20443
_ACEOF
 
20444
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
20445
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
20446
  *@@@%%%=?*=@@@%%%*)
 
20447
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
20448
  *)
 
20449
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
20450
esac
 
20451
rm -f conftest.make
 
20452
fi
 
20453
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
20454
  { echo "$as_me:$LINENO: result: yes" >&5
 
20455
echo "${ECHO_T}yes" >&6; }
 
20456
  SET_MAKE=
 
20457
else
 
20458
  { echo "$as_me:$LINENO: result: no" >&5
 
20459
echo "${ECHO_T}no" >&6; }
 
20460
  SET_MAKE="MAKE=${MAKE-make}"
 
20461
fi
 
20462
 
 
20463
 
 
20464
 
 
20465
# Checks for libraries.
 
20466
{ echo "$as_me:$LINENO: checking for pow in -lm" >&5
 
20467
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
 
20468
if test "${ac_cv_lib_m_pow+set}" = set; then
 
20469
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20470
else
 
20471
  ac_check_lib_save_LIBS=$LIBS
 
20472
LIBS="-lm  $LIBS"
 
20473
cat >conftest.$ac_ext <<_ACEOF
 
20474
/* confdefs.h.  */
 
20475
_ACEOF
 
20476
cat confdefs.h >>conftest.$ac_ext
 
20477
cat >>conftest.$ac_ext <<_ACEOF
 
20478
/* end confdefs.h.  */
 
20479
 
 
20480
/* Override any GCC internal prototype to avoid an error.
 
20481
   Use char because int might match the return type of a GCC
 
20482
   builtin and then its argument prototype would still apply.  */
 
20483
#ifdef __cplusplus
 
20484
extern "C"
 
20485
#endif
 
20486
char pow ();
 
20487
int
 
20488
main ()
 
20489
{
 
20490
return pow ();
 
20491
  ;
 
20492
  return 0;
 
20493
}
 
20494
_ACEOF
 
20495
rm -f conftest.$ac_objext conftest$ac_exeext
 
20496
if { (ac_try="$ac_link"
 
20497
case "(($ac_try" in
 
20498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20499
  *) ac_try_echo=$ac_try;;
 
20500
esac
 
20501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20502
  (eval "$ac_link") 2>conftest.er1
 
20503
  ac_status=$?
 
20504
  grep -v '^ *+' conftest.er1 >conftest.err
 
20505
  rm -f conftest.er1
 
20506
  cat conftest.err >&5
 
20507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20508
  (exit $ac_status); } && {
 
20509
         test -z "$ac_c_werror_flag" ||
 
20510
         test ! -s conftest.err
 
20511
       } && test -s conftest$ac_exeext &&
 
20512
       $as_test_x conftest$ac_exeext; then
 
20513
  ac_cv_lib_m_pow=yes
 
20514
else
 
20515
  echo "$as_me: failed program was:" >&5
 
20516
sed 's/^/| /' conftest.$ac_ext >&5
 
20517
 
 
20518
        ac_cv_lib_m_pow=no
 
20519
fi
 
20520
 
 
20521
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20522
      conftest$ac_exeext conftest.$ac_ext
 
20523
LIBS=$ac_check_lib_save_LIBS
 
20524
fi
 
20525
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
 
20526
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
 
20527
if test $ac_cv_lib_m_pow = yes; then
 
20528
  true
 
20529
else
 
20530
  { { echo "$as_me:$LINENO: error: libm not found
 
20531
See \`config.log' for more details." >&5
 
20532
echo "$as_me: error: libm not found
 
20533
See \`config.log' for more details." >&2;}
 
20534
   { (exit 1); exit 1; }; }
 
20535
fi
 
20536
 
 
20537
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
20538
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
 
20539
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
 
20540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20541
else
 
20542
  ac_check_lib_save_LIBS=$LIBS
 
20543
LIBS="-lpthread  $LIBS"
 
20544
cat >conftest.$ac_ext <<_ACEOF
 
20545
/* confdefs.h.  */
 
20546
_ACEOF
 
20547
cat confdefs.h >>conftest.$ac_ext
 
20548
cat >>conftest.$ac_ext <<_ACEOF
 
20549
/* end confdefs.h.  */
 
20550
 
 
20551
/* Override any GCC internal prototype to avoid an error.
 
20552
   Use char because int might match the return type of a GCC
 
20553
   builtin and then its argument prototype would still apply.  */
 
20554
#ifdef __cplusplus
 
20555
extern "C"
 
20556
#endif
 
20557
char pthread_create ();
 
20558
int
 
20559
main ()
 
20560
{
 
20561
return pthread_create ();
 
20562
  ;
 
20563
  return 0;
 
20564
}
 
20565
_ACEOF
 
20566
rm -f conftest.$ac_objext conftest$ac_exeext
 
20567
if { (ac_try="$ac_link"
 
20568
case "(($ac_try" in
 
20569
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20570
  *) ac_try_echo=$ac_try;;
 
20571
esac
 
20572
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20573
  (eval "$ac_link") 2>conftest.er1
 
20574
  ac_status=$?
 
20575
  grep -v '^ *+' conftest.er1 >conftest.err
 
20576
  rm -f conftest.er1
 
20577
  cat conftest.err >&5
 
20578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20579
  (exit $ac_status); } && {
 
20580
         test -z "$ac_c_werror_flag" ||
 
20581
         test ! -s conftest.err
 
20582
       } && test -s conftest$ac_exeext &&
 
20583
       $as_test_x conftest$ac_exeext; then
 
20584
  ac_cv_lib_pthread_pthread_create=yes
 
20585
else
 
20586
  echo "$as_me: failed program was:" >&5
 
20587
sed 's/^/| /' conftest.$ac_ext >&5
 
20588
 
 
20589
        ac_cv_lib_pthread_pthread_create=no
 
20590
fi
 
20591
 
 
20592
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20593
      conftest$ac_exeext conftest.$ac_ext
 
20594
LIBS=$ac_check_lib_save_LIBS
 
20595
fi
 
20596
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
 
20597
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
 
20598
if test $ac_cv_lib_pthread_pthread_create = yes; then
 
20599
  true
 
20600
else
 
20601
  { { echo "$as_me:$LINENO: error: libpthread not found
 
20602
See \`config.log' for more details." >&5
 
20603
echo "$as_me: error: libpthread not found
 
20604
See \`config.log' for more details." >&2;}
 
20605
   { (exit 1); exit 1; }; }
 
20606
fi
 
20607
 
 
20608
 
 
20609
# debug crap?
 
20610
 
 
20611
# Check whether --with-debug was given.
 
20612
if test "${with_debug+set}" = set; then
 
20613
  withval=$with_debug; with_debug=yes
 
20614
else
 
20615
  with_debug=no
 
20616
fi
 
20617
 
 
20618
 if test "$with_debug" = "yes"; then
 
20619
  WITH_DEBUG_TRUE=
 
20620
  WITH_DEBUG_FALSE='#'
 
20621
else
 
20622
  WITH_DEBUG_TRUE='#'
 
20623
  WITH_DEBUG_FALSE=
 
20624
fi
 
20625
 
 
20626
 
 
20627
# radosgw?
 
20628
 
 
20629
# Check whether --with-radosgw was given.
 
20630
if test "${with_radosgw+set}" = set; then
 
20631
  withval=$with_radosgw;
 
20632
else
 
20633
  with_radosgw=check
 
20634
fi
 
20635
 
 
20636
RADOSGW=0
 
20637
if test "x$with_radosgw" != xno; then
 
20638
  { echo "$as_me:$LINENO: checking for FCGX_Init in -lfcgi" >&5
 
20639
echo $ECHO_N "checking for FCGX_Init in -lfcgi... $ECHO_C" >&6; }
 
20640
if test "${ac_cv_lib_fcgi_FCGX_Init+set}" = set; then
 
20641
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20642
else
 
20643
  ac_check_lib_save_LIBS=$LIBS
 
20644
LIBS="-lfcgi  $LIBS"
 
20645
cat >conftest.$ac_ext <<_ACEOF
 
20646
/* confdefs.h.  */
 
20647
_ACEOF
 
20648
cat confdefs.h >>conftest.$ac_ext
 
20649
cat >>conftest.$ac_ext <<_ACEOF
 
20650
/* end confdefs.h.  */
 
20651
 
 
20652
/* Override any GCC internal prototype to avoid an error.
 
20653
   Use char because int might match the return type of a GCC
 
20654
   builtin and then its argument prototype would still apply.  */
 
20655
#ifdef __cplusplus
 
20656
extern "C"
 
20657
#endif
 
20658
char FCGX_Init ();
 
20659
int
 
20660
main ()
 
20661
{
 
20662
return FCGX_Init ();
 
20663
  ;
 
20664
  return 0;
 
20665
}
 
20666
_ACEOF
 
20667
rm -f conftest.$ac_objext conftest$ac_exeext
 
20668
if { (ac_try="$ac_link"
 
20669
case "(($ac_try" in
 
20670
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20671
  *) ac_try_echo=$ac_try;;
 
20672
esac
 
20673
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20674
  (eval "$ac_link") 2>conftest.er1
 
20675
  ac_status=$?
 
20676
  grep -v '^ *+' conftest.er1 >conftest.err
 
20677
  rm -f conftest.er1
 
20678
  cat conftest.err >&5
 
20679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20680
  (exit $ac_status); } && {
 
20681
         test -z "$ac_c_werror_flag" ||
 
20682
         test ! -s conftest.err
 
20683
       } && test -s conftest$ac_exeext &&
 
20684
       $as_test_x conftest$ac_exeext; then
 
20685
  ac_cv_lib_fcgi_FCGX_Init=yes
 
20686
else
 
20687
  echo "$as_me: failed program was:" >&5
 
20688
sed 's/^/| /' conftest.$ac_ext >&5
 
20689
 
 
20690
        ac_cv_lib_fcgi_FCGX_Init=no
 
20691
fi
 
20692
 
 
20693
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20694
      conftest$ac_exeext conftest.$ac_ext
 
20695
LIBS=$ac_check_lib_save_LIBS
 
20696
fi
 
20697
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fcgi_FCGX_Init" >&5
 
20698
echo "${ECHO_T}$ac_cv_lib_fcgi_FCGX_Init" >&6; }
 
20699
if test $ac_cv_lib_fcgi_FCGX_Init = yes; then
 
20700
  { echo "$as_me:$LINENO: checking for XML_Parse in -lexpat" >&5
 
20701
echo $ECHO_N "checking for XML_Parse in -lexpat... $ECHO_C" >&6; }
 
20702
if test "${ac_cv_lib_expat_XML_Parse+set}" = set; then
 
20703
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20704
else
 
20705
  ac_check_lib_save_LIBS=$LIBS
 
20706
LIBS="-lexpat  $LIBS"
 
20707
cat >conftest.$ac_ext <<_ACEOF
 
20708
/* confdefs.h.  */
 
20709
_ACEOF
 
20710
cat confdefs.h >>conftest.$ac_ext
 
20711
cat >>conftest.$ac_ext <<_ACEOF
 
20712
/* end confdefs.h.  */
 
20713
 
 
20714
/* Override any GCC internal prototype to avoid an error.
 
20715
   Use char because int might match the return type of a GCC
 
20716
   builtin and then its argument prototype would still apply.  */
 
20717
#ifdef __cplusplus
 
20718
extern "C"
 
20719
#endif
 
20720
char XML_Parse ();
 
20721
int
 
20722
main ()
 
20723
{
 
20724
return XML_Parse ();
 
20725
  ;
 
20726
  return 0;
 
20727
}
 
20728
_ACEOF
 
20729
rm -f conftest.$ac_objext conftest$ac_exeext
 
20730
if { (ac_try="$ac_link"
 
20731
case "(($ac_try" in
 
20732
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20733
  *) ac_try_echo=$ac_try;;
 
20734
esac
 
20735
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20736
  (eval "$ac_link") 2>conftest.er1
 
20737
  ac_status=$?
 
20738
  grep -v '^ *+' conftest.er1 >conftest.err
 
20739
  rm -f conftest.er1
 
20740
  cat conftest.err >&5
 
20741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20742
  (exit $ac_status); } && {
 
20743
         test -z "$ac_c_werror_flag" ||
 
20744
         test ! -s conftest.err
 
20745
       } && test -s conftest$ac_exeext &&
 
20746
       $as_test_x conftest$ac_exeext; then
 
20747
  ac_cv_lib_expat_XML_Parse=yes
 
20748
else
 
20749
  echo "$as_me: failed program was:" >&5
 
20750
sed 's/^/| /' conftest.$ac_ext >&5
 
20751
 
 
20752
        ac_cv_lib_expat_XML_Parse=no
 
20753
fi
 
20754
 
 
20755
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20756
      conftest$ac_exeext conftest.$ac_ext
 
20757
LIBS=$ac_check_lib_save_LIBS
 
20758
fi
 
20759
{ echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_Parse" >&5
 
20760
echo "${ECHO_T}$ac_cv_lib_expat_XML_Parse" >&6; }
 
20761
if test $ac_cv_lib_expat_XML_Parse = yes; then
 
20762
  RADOSGW=1
 
20763
else
 
20764
  if test "x$with_radosgw" != "xcheck"; then
 
20765
                   { { echo "$as_me:$LINENO: error: --with-radosgw was given but libexpat (libexpat1-dev on debian) not found
 
20766
See \`config.log' for more details." >&5
 
20767
echo "$as_me: error: --with-radosgw was given but libexpat (libexpat1-dev on debian) not found
 
20768
See \`config.log' for more details." >&2;}
 
20769
   { (exit 1); exit 1; }; }
 
20770
              fi
 
20771
fi
 
20772
 
 
20773
 
 
20774
else
 
20775
  if test "x$with_radosgw" != "xcheck"; then
 
20776
                { { echo "$as_me:$LINENO: error: --with-radosgw was given but libfcgi (libfcgi-dev on debian) not found
 
20777
See \`config.log' for more details." >&5
 
20778
echo "$as_me: error: --with-radosgw was given but libfcgi (libfcgi-dev on debian) not found
 
20779
See \`config.log' for more details." >&2;}
 
20780
   { (exit 1); exit 1; }; }
 
20781
             fi
 
20782
fi
 
20783
 
 
20784
fi
 
20785
 
 
20786
 if test "$RADOSGW" = "1"; then
 
20787
  WITH_RADOSGW_TRUE=
 
20788
  WITH_RADOSGW_FALSE='#'
 
20789
else
 
20790
  WITH_RADOSGW_TRUE='#'
 
20791
  WITH_RADOSGW_FALSE=
 
20792
fi
 
20793
 
 
20794
 
 
20795
# fuse?
 
20796
 
 
20797
# Check whether --with-fuse was given.
 
20798
if test "${with_fuse+set}" = set; then
 
20799
  withval=$with_fuse;
 
20800
else
 
20801
  with_fuse=check
 
20802
fi
 
20803
 
 
20804
LIBFUSE=
 
20805
if test "x$with_fuse" != xno; then
 
20806
  { echo "$as_me:$LINENO: checking for fuse_main in -lfuse" >&5
 
20807
echo $ECHO_N "checking for fuse_main in -lfuse... $ECHO_C" >&6; }
 
20808
if test "${ac_cv_lib_fuse_fuse_main+set}" = set; then
 
20809
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20810
else
 
20811
  ac_check_lib_save_LIBS=$LIBS
 
20812
LIBS="-lfuse  $LIBS"
 
20813
cat >conftest.$ac_ext <<_ACEOF
 
20814
/* confdefs.h.  */
 
20815
_ACEOF
 
20816
cat confdefs.h >>conftest.$ac_ext
 
20817
cat >>conftest.$ac_ext <<_ACEOF
 
20818
/* end confdefs.h.  */
 
20819
 
 
20820
/* Override any GCC internal prototype to avoid an error.
 
20821
   Use char because int might match the return type of a GCC
 
20822
   builtin and then its argument prototype would still apply.  */
 
20823
#ifdef __cplusplus
 
20824
extern "C"
 
20825
#endif
 
20826
char fuse_main ();
 
20827
int
 
20828
main ()
 
20829
{
 
20830
return fuse_main ();
 
20831
  ;
 
20832
  return 0;
 
20833
}
 
20834
_ACEOF
 
20835
rm -f conftest.$ac_objext conftest$ac_exeext
 
20836
if { (ac_try="$ac_link"
 
20837
case "(($ac_try" in
 
20838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20839
  *) ac_try_echo=$ac_try;;
 
20840
esac
 
20841
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20842
  (eval "$ac_link") 2>conftest.er1
 
20843
  ac_status=$?
 
20844
  grep -v '^ *+' conftest.er1 >conftest.err
 
20845
  rm -f conftest.er1
 
20846
  cat conftest.err >&5
 
20847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20848
  (exit $ac_status); } && {
 
20849
         test -z "$ac_c_werror_flag" ||
 
20850
         test ! -s conftest.err
 
20851
       } && test -s conftest$ac_exeext &&
 
20852
       $as_test_x conftest$ac_exeext; then
 
20853
  ac_cv_lib_fuse_fuse_main=yes
 
20854
else
 
20855
  echo "$as_me: failed program was:" >&5
 
20856
sed 's/^/| /' conftest.$ac_ext >&5
 
20857
 
 
20858
        ac_cv_lib_fuse_fuse_main=no
 
20859
fi
 
20860
 
 
20861
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20862
      conftest$ac_exeext conftest.$ac_ext
 
20863
LIBS=$ac_check_lib_save_LIBS
 
20864
fi
 
20865
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fuse_fuse_main" >&5
 
20866
echo "${ECHO_T}$ac_cv_lib_fuse_fuse_main" >&6; }
 
20867
if test $ac_cv_lib_fuse_fuse_main = yes; then
 
20868
  LIBFUSE="-lfuse"
 
20869
 
 
20870
 
 
20871
cat >>confdefs.h <<\_ACEOF
 
20872
#define HAVE_LIBFUSE 1
 
20873
_ACEOF
 
20874
 
 
20875
               HAVE_LIBFUSE=1
 
20876
 
 
20877
else
 
20878
  if test "x$with_fuse" != xcheck; then
 
20879
                 { { echo "$as_me:$LINENO: error: --with-fuse was given but test failed
 
20880
See \`config.log' for more details." >&5
 
20881
echo "$as_me: error: --with-fuse was given but test failed
 
20882
See \`config.log' for more details." >&2;}
 
20883
   { (exit 1); exit 1; }; }
 
20884
               fi
 
20885
 
 
20886
fi
 
20887
 
 
20888
fi
 
20889
 
 
20890
 if test "$HAVE_LIBFUSE" = "1"; then
 
20891
  WITH_FUSE_TRUE=
 
20892
  WITH_FUSE_FALSE='#'
 
20893
else
 
20894
  WITH_FUSE_TRUE='#'
 
20895
  WITH_FUSE_FALSE=
 
20896
fi
 
20897
 
 
20898
 
 
20899
# jni?
 
20900
 
 
20901
# Check whether --with-hadoop was given.
 
20902
if test "${with_hadoop+set}" = set; then
 
20903
  withval=$with_hadoop;
 
20904
else
 
20905
  with_hadoop=check
 
20906
fi
 
20907
 
 
20908
if test "x$with_hadoop" != xno; then
 
20909
  if test "${ac_cv_header_jni_h+set}" = set; then
 
20910
  { echo "$as_me:$LINENO: checking for jni.h" >&5
 
20911
echo $ECHO_N "checking for jni.h... $ECHO_C" >&6; }
 
20912
if test "${ac_cv_header_jni_h+set}" = set; then
 
20913
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20914
fi
 
20915
{ echo "$as_me:$LINENO: result: $ac_cv_header_jni_h" >&5
 
20916
echo "${ECHO_T}$ac_cv_header_jni_h" >&6; }
 
20917
else
 
20918
  # Is the header compilable?
 
20919
{ echo "$as_me:$LINENO: checking jni.h usability" >&5
 
20920
echo $ECHO_N "checking jni.h usability... $ECHO_C" >&6; }
 
20921
cat >conftest.$ac_ext <<_ACEOF
 
20922
/* confdefs.h.  */
 
20923
_ACEOF
 
20924
cat confdefs.h >>conftest.$ac_ext
 
20925
cat >>conftest.$ac_ext <<_ACEOF
 
20926
/* end confdefs.h.  */
 
20927
$ac_includes_default
 
20928
#include <jni.h>
 
20929
_ACEOF
 
20930
rm -f conftest.$ac_objext
 
20931
if { (ac_try="$ac_compile"
 
20932
case "(($ac_try" in
 
20933
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20934
  *) ac_try_echo=$ac_try;;
 
20935
esac
 
20936
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20937
  (eval "$ac_compile") 2>conftest.er1
 
20938
  ac_status=$?
 
20939
  grep -v '^ *+' conftest.er1 >conftest.err
 
20940
  rm -f conftest.er1
 
20941
  cat conftest.err >&5
 
20942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20943
  (exit $ac_status); } && {
 
20944
         test -z "$ac_c_werror_flag" ||
 
20945
         test ! -s conftest.err
 
20946
       } && test -s conftest.$ac_objext; then
 
20947
  ac_header_compiler=yes
 
20948
else
 
20949
  echo "$as_me: failed program was:" >&5
 
20950
sed 's/^/| /' conftest.$ac_ext >&5
 
20951
 
 
20952
        ac_header_compiler=no
 
20953
fi
 
20954
 
 
20955
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20956
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20957
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20958
 
 
20959
# Is the header present?
 
20960
{ echo "$as_me:$LINENO: checking jni.h presence" >&5
 
20961
echo $ECHO_N "checking jni.h presence... $ECHO_C" >&6; }
 
20962
cat >conftest.$ac_ext <<_ACEOF
 
20963
/* confdefs.h.  */
 
20964
_ACEOF
 
20965
cat confdefs.h >>conftest.$ac_ext
 
20966
cat >>conftest.$ac_ext <<_ACEOF
 
20967
/* end confdefs.h.  */
 
20968
#include <jni.h>
 
20969
_ACEOF
 
20970
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20971
case "(($ac_try" in
 
20972
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20973
  *) ac_try_echo=$ac_try;;
 
20974
esac
 
20975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20976
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20977
  ac_status=$?
 
20978
  grep -v '^ *+' conftest.er1 >conftest.err
 
20979
  rm -f conftest.er1
 
20980
  cat conftest.err >&5
 
20981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20982
  (exit $ac_status); } >/dev/null && {
 
20983
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20984
         test ! -s conftest.err
 
20985
       }; then
 
20986
  ac_header_preproc=yes
 
20987
else
 
20988
  echo "$as_me: failed program was:" >&5
 
20989
sed 's/^/| /' conftest.$ac_ext >&5
 
20990
 
 
20991
  ac_header_preproc=no
 
20992
fi
 
20993
 
 
20994
rm -f conftest.err conftest.$ac_ext
 
20995
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20996
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20997
 
 
20998
# So?  What about this header?
 
20999
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21000
  yes:no: )
 
21001
    { echo "$as_me:$LINENO: WARNING: jni.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21002
echo "$as_me: WARNING: jni.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21003
    { echo "$as_me:$LINENO: WARNING: jni.h: proceeding with the compiler's result" >&5
 
21004
echo "$as_me: WARNING: jni.h: proceeding with the compiler's result" >&2;}
 
21005
    ac_header_preproc=yes
 
21006
    ;;
 
21007
  no:yes:* )
 
21008
    { echo "$as_me:$LINENO: WARNING: jni.h: present but cannot be compiled" >&5
 
21009
echo "$as_me: WARNING: jni.h: present but cannot be compiled" >&2;}
 
21010
    { echo "$as_me:$LINENO: WARNING: jni.h:     check for missing prerequisite headers?" >&5
 
21011
echo "$as_me: WARNING: jni.h:     check for missing prerequisite headers?" >&2;}
 
21012
    { echo "$as_me:$LINENO: WARNING: jni.h: see the Autoconf documentation" >&5
 
21013
echo "$as_me: WARNING: jni.h: see the Autoconf documentation" >&2;}
 
21014
    { echo "$as_me:$LINENO: WARNING: jni.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21015
echo "$as_me: WARNING: jni.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21016
    { echo "$as_me:$LINENO: WARNING: jni.h: proceeding with the preprocessor's result" >&5
 
21017
echo "$as_me: WARNING: jni.h: proceeding with the preprocessor's result" >&2;}
 
21018
    { echo "$as_me:$LINENO: WARNING: jni.h: in the future, the compiler will take precedence" >&5
 
21019
echo "$as_me: WARNING: jni.h: in the future, the compiler will take precedence" >&2;}
 
21020
    ( cat <<\_ASBOX
 
21021
## -------------------------------------------- ##
 
21022
## Report this to Sage Weil <sage@newdream.net> ##
 
21023
## -------------------------------------------- ##
 
21024
_ASBOX
 
21025
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21026
    ;;
 
21027
esac
 
21028
{ echo "$as_me:$LINENO: checking for jni.h" >&5
 
21029
echo $ECHO_N "checking for jni.h... $ECHO_C" >&6; }
 
21030
if test "${ac_cv_header_jni_h+set}" = set; then
 
21031
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21032
else
 
21033
  ac_cv_header_jni_h=$ac_header_preproc
 
21034
fi
 
21035
{ echo "$as_me:$LINENO: result: $ac_cv_header_jni_h" >&5
 
21036
echo "${ECHO_T}$ac_cv_header_jni_h" >&6; }
 
21037
 
 
21038
fi
 
21039
if test $ac_cv_header_jni_h = yes; then
 
21040
  HAVE_JNI=1
 
21041
else
 
21042
  if test "x$with_hadoop" != xcheck; then
 
21043
                 { { echo "$as_me:$LINENO: error: --with-hadoop was given but jni.h not found
 
21044
See \`config.log' for more details." >&5
 
21045
echo "$as_me: error: --with-hadoop was given but jni.h not found
 
21046
See \`config.log' for more details." >&2;}
 
21047
   { (exit 1); exit 1; }; }
 
21048
               fi
 
21049
 
 
21050
fi
 
21051
 
 
21052
 
 
21053
fi
 
21054
 
 
21055
 if test "$HAVE_JNI" = "1"; then
 
21056
  WITH_HADOOPCLIENT_TRUE=
 
21057
  WITH_HADOOPCLIENT_FALSE='#'
 
21058
else
 
21059
  WITH_HADOOPCLIENT_TRUE='#'
 
21060
  WITH_HADOOPCLIENT_FALSE=
 
21061
fi
 
21062
 
 
21063
 
 
21064
#libatomic-ops? You want it!
 
21065
 
 
21066
# Check whether --with-libatomic-ops was given.
 
21067
if test "${with_libatomic_ops+set}" = set; then
 
21068
  withval=$with_libatomic_ops;
 
21069
else
 
21070
  with_libatomic_ops=check
 
21071
fi
 
21072
 
 
21073
if test "x$with_libatomic_ops" != xno; then
 
21074
  if test "${ac_cv_header_atomic_ops_h+set}" = set; then
 
21075
  { echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
 
21076
echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; }
 
21077
if test "${ac_cv_header_atomic_ops_h+set}" = set; then
 
21078
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21079
fi
 
21080
{ echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
 
21081
echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; }
 
21082
else
 
21083
  # Is the header compilable?
 
21084
{ echo "$as_me:$LINENO: checking atomic_ops.h usability" >&5
 
21085
echo $ECHO_N "checking atomic_ops.h usability... $ECHO_C" >&6; }
 
21086
cat >conftest.$ac_ext <<_ACEOF
 
21087
/* confdefs.h.  */
 
21088
_ACEOF
 
21089
cat confdefs.h >>conftest.$ac_ext
 
21090
cat >>conftest.$ac_ext <<_ACEOF
 
21091
/* end confdefs.h.  */
 
21092
$ac_includes_default
 
21093
#include <atomic_ops.h>
 
21094
_ACEOF
 
21095
rm -f conftest.$ac_objext
 
21096
if { (ac_try="$ac_compile"
 
21097
case "(($ac_try" in
 
21098
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21099
  *) ac_try_echo=$ac_try;;
 
21100
esac
 
21101
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21102
  (eval "$ac_compile") 2>conftest.er1
 
21103
  ac_status=$?
 
21104
  grep -v '^ *+' conftest.er1 >conftest.err
 
21105
  rm -f conftest.er1
 
21106
  cat conftest.err >&5
 
21107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21108
  (exit $ac_status); } && {
 
21109
         test -z "$ac_c_werror_flag" ||
 
21110
         test ! -s conftest.err
 
21111
       } && test -s conftest.$ac_objext; then
 
21112
  ac_header_compiler=yes
 
21113
else
 
21114
  echo "$as_me: failed program was:" >&5
 
21115
sed 's/^/| /' conftest.$ac_ext >&5
 
21116
 
 
21117
        ac_header_compiler=no
 
21118
fi
 
21119
 
 
21120
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21121
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21122
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21123
 
 
21124
# Is the header present?
 
21125
{ echo "$as_me:$LINENO: checking atomic_ops.h presence" >&5
 
21126
echo $ECHO_N "checking atomic_ops.h presence... $ECHO_C" >&6; }
 
21127
cat >conftest.$ac_ext <<_ACEOF
 
21128
/* confdefs.h.  */
 
21129
_ACEOF
 
21130
cat confdefs.h >>conftest.$ac_ext
 
21131
cat >>conftest.$ac_ext <<_ACEOF
 
21132
/* end confdefs.h.  */
 
21133
#include <atomic_ops.h>
 
21134
_ACEOF
 
21135
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21136
case "(($ac_try" in
 
21137
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21138
  *) ac_try_echo=$ac_try;;
 
21139
esac
 
21140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21141
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21142
  ac_status=$?
 
21143
  grep -v '^ *+' conftest.er1 >conftest.err
 
21144
  rm -f conftest.er1
 
21145
  cat conftest.err >&5
 
21146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21147
  (exit $ac_status); } >/dev/null && {
 
21148
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
21149
         test ! -s conftest.err
 
21150
       }; then
 
21151
  ac_header_preproc=yes
 
21152
else
 
21153
  echo "$as_me: failed program was:" >&5
 
21154
sed 's/^/| /' conftest.$ac_ext >&5
 
21155
 
 
21156
  ac_header_preproc=no
 
21157
fi
 
21158
 
 
21159
rm -f conftest.err conftest.$ac_ext
 
21160
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21161
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21162
 
 
21163
# So?  What about this header?
 
21164
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21165
  yes:no: )
 
21166
    { echo "$as_me:$LINENO: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21167
echo "$as_me: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21168
    { echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the compiler's result" >&5
 
21169
echo "$as_me: WARNING: atomic_ops.h: proceeding with the compiler's result" >&2;}
 
21170
    ac_header_preproc=yes
 
21171
    ;;
 
21172
  no:yes:* )
 
21173
    { echo "$as_me:$LINENO: WARNING: atomic_ops.h: present but cannot be compiled" >&5
 
21174
echo "$as_me: WARNING: atomic_ops.h: present but cannot be compiled" >&2;}
 
21175
    { echo "$as_me:$LINENO: WARNING: atomic_ops.h:     check for missing prerequisite headers?" >&5
 
21176
echo "$as_me: WARNING: atomic_ops.h:     check for missing prerequisite headers?" >&2;}
 
21177
    { echo "$as_me:$LINENO: WARNING: atomic_ops.h: see the Autoconf documentation" >&5
 
21178
echo "$as_me: WARNING: atomic_ops.h: see the Autoconf documentation" >&2;}
 
21179
    { echo "$as_me:$LINENO: WARNING: atomic_ops.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21180
echo "$as_me: WARNING: atomic_ops.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21181
    { echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&5
 
21182
echo "$as_me: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&2;}
 
21183
    { echo "$as_me:$LINENO: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&5
 
21184
echo "$as_me: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&2;}
 
21185
    ( cat <<\_ASBOX
 
21186
## -------------------------------------------- ##
 
21187
## Report this to Sage Weil <sage@newdream.net> ##
 
21188
## -------------------------------------------- ##
 
21189
_ASBOX
 
21190
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21191
    ;;
 
21192
esac
 
21193
{ echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
 
21194
echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; }
 
21195
if test "${ac_cv_header_atomic_ops_h+set}" = set; then
 
21196
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21197
else
 
21198
  ac_cv_header_atomic_ops_h=$ac_header_preproc
 
21199
fi
 
21200
{ echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
 
21201
echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; }
 
21202
 
 
21203
fi
 
21204
if test $ac_cv_header_atomic_ops_h = yes; then
 
21205
  HAVE_ATOMIC_OPS=1
 
21206
else
 
21207
  if test "x$with_libatomic_ops" != xcheck; then
 
21208
                 { { echo "$as_me:$LINENO: error: --with-libatomic-ops was given but atomic_ops.h not found
 
21209
See \`config.log' for more details." >&5
 
21210
echo "$as_me: error: --with-libatomic-ops was given but atomic_ops.h not found
 
21211
See \`config.log' for more details." >&2;}
 
21212
   { (exit 1); exit 1; }; }
 
21213
               fi
 
21214
 
 
21215
fi
 
21216
 
 
21217
 
 
21218
fi
 
21219
 
 
21220
if test "$HAVE_ATOMIC_OPS" = "1"; then
 
21221
  :
 
21222
else
 
21223
 
 
21224
cat >>confdefs.h <<\_ACEOF
 
21225
#define NO_ATOMIC_OPS 1
 
21226
_ACEOF
 
21227
 
 
21228
fi
 
21229
 
 
21230
 if test "$HAVE_ATOMIC_OPS" = "1"; then
 
21231
  WITH_LIBATOMIC_TRUE=
 
21232
  WITH_LIBATOMIC_FALSE='#'
 
21233
else
 
21234
  WITH_LIBATOMIC_TRUE='#'
 
21235
  WITH_LIBATOMIC_FALSE=
 
21236
fi
 
21237
 
 
21238
 
 
21239
# newsyn?  requires mpi.
 
21240
#AC_ARG_WITH([newsyn],
 
21241
#            [AS_HELP_STRING([--with-newsyn], [build newsyn target requires mpi])],
 
21242
#            [],
 
21243
#            [with_newsyn=no])
 
21244
 
 
21245
# Checks for header files.
 
21246
 
 
21247
 
 
21248
 
 
21249
 
 
21250
 
 
21251
ac_header_dirent=no
 
21252
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
21253
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
21254
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
21255
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
 
21256
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21257
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21258
else
 
21259
  cat >conftest.$ac_ext <<_ACEOF
 
21260
/* confdefs.h.  */
 
21261
_ACEOF
 
21262
cat confdefs.h >>conftest.$ac_ext
 
21263
cat >>conftest.$ac_ext <<_ACEOF
 
21264
/* end confdefs.h.  */
 
21265
#include <sys/types.h>
 
21266
#include <$ac_hdr>
 
21267
 
 
21268
int
 
21269
main ()
 
21270
{
 
21271
if ((DIR *) 0)
 
21272
return 0;
 
21273
  ;
 
21274
  return 0;
 
21275
}
 
21276
_ACEOF
 
21277
rm -f conftest.$ac_objext
 
21278
if { (ac_try="$ac_compile"
 
21279
case "(($ac_try" in
 
21280
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21281
  *) ac_try_echo=$ac_try;;
 
21282
esac
 
21283
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21284
  (eval "$ac_compile") 2>conftest.er1
 
21285
  ac_status=$?
 
21286
  grep -v '^ *+' conftest.er1 >conftest.err
 
21287
  rm -f conftest.er1
 
21288
  cat conftest.err >&5
 
21289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21290
  (exit $ac_status); } && {
 
21291
         test -z "$ac_c_werror_flag" ||
 
21292
         test ! -s conftest.err
 
21293
       } && test -s conftest.$ac_objext; then
 
21294
  eval "$as_ac_Header=yes"
 
21295
else
 
21296
  echo "$as_me: failed program was:" >&5
 
21297
sed 's/^/| /' conftest.$ac_ext >&5
 
21298
 
 
21299
        eval "$as_ac_Header=no"
 
21300
fi
 
21301
 
 
21302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21303
fi
 
21304
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21305
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21306
echo "${ECHO_T}$ac_res" >&6; }
 
21307
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21308
  cat >>confdefs.h <<_ACEOF
 
21309
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
21310
_ACEOF
 
21311
 
 
21312
ac_header_dirent=$ac_hdr; break
 
21313
fi
 
21314
 
 
21315
done
 
21316
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
21317
if test $ac_header_dirent = dirent.h; then
 
21318
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
21319
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
21320
if test "${ac_cv_search_opendir+set}" = set; then
 
21321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21322
else
 
21323
  ac_func_search_save_LIBS=$LIBS
 
21324
cat >conftest.$ac_ext <<_ACEOF
 
21325
/* confdefs.h.  */
 
21326
_ACEOF
 
21327
cat confdefs.h >>conftest.$ac_ext
 
21328
cat >>conftest.$ac_ext <<_ACEOF
 
21329
/* end confdefs.h.  */
 
21330
 
 
21331
/* Override any GCC internal prototype to avoid an error.
 
21332
   Use char because int might match the return type of a GCC
 
21333
   builtin and then its argument prototype would still apply.  */
 
21334
#ifdef __cplusplus
 
21335
extern "C"
 
21336
#endif
 
21337
char opendir ();
 
21338
int
 
21339
main ()
 
21340
{
 
21341
return opendir ();
 
21342
  ;
 
21343
  return 0;
 
21344
}
 
21345
_ACEOF
 
21346
for ac_lib in '' dir; do
 
21347
  if test -z "$ac_lib"; then
 
21348
    ac_res="none required"
 
21349
  else
 
21350
    ac_res=-l$ac_lib
 
21351
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
21352
  fi
 
21353
  rm -f conftest.$ac_objext conftest$ac_exeext
 
21354
if { (ac_try="$ac_link"
 
21355
case "(($ac_try" in
 
21356
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21357
  *) ac_try_echo=$ac_try;;
 
21358
esac
 
21359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21360
  (eval "$ac_link") 2>conftest.er1
 
21361
  ac_status=$?
 
21362
  grep -v '^ *+' conftest.er1 >conftest.err
 
21363
  rm -f conftest.er1
 
21364
  cat conftest.err >&5
 
21365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21366
  (exit $ac_status); } && {
 
21367
         test -z "$ac_c_werror_flag" ||
 
21368
         test ! -s conftest.err
 
21369
       } && test -s conftest$ac_exeext &&
 
21370
       $as_test_x conftest$ac_exeext; then
 
21371
  ac_cv_search_opendir=$ac_res
 
21372
else
 
21373
  echo "$as_me: failed program was:" >&5
 
21374
sed 's/^/| /' conftest.$ac_ext >&5
 
21375
 
 
21376
 
 
21377
fi
 
21378
 
 
21379
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21380
      conftest$ac_exeext
 
21381
  if test "${ac_cv_search_opendir+set}" = set; then
 
21382
  break
 
21383
fi
 
21384
done
 
21385
if test "${ac_cv_search_opendir+set}" = set; then
 
21386
  :
 
21387
else
 
21388
  ac_cv_search_opendir=no
 
21389
fi
 
21390
rm conftest.$ac_ext
 
21391
LIBS=$ac_func_search_save_LIBS
 
21392
fi
 
21393
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
21394
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
21395
ac_res=$ac_cv_search_opendir
 
21396
if test "$ac_res" != no; then
 
21397
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
21398
 
 
21399
fi
 
21400
 
 
21401
else
 
21402
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
21403
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
21404
if test "${ac_cv_search_opendir+set}" = set; then
 
21405
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21406
else
 
21407
  ac_func_search_save_LIBS=$LIBS
 
21408
cat >conftest.$ac_ext <<_ACEOF
 
21409
/* confdefs.h.  */
 
21410
_ACEOF
 
21411
cat confdefs.h >>conftest.$ac_ext
 
21412
cat >>conftest.$ac_ext <<_ACEOF
 
21413
/* end confdefs.h.  */
 
21414
 
 
21415
/* Override any GCC internal prototype to avoid an error.
 
21416
   Use char because int might match the return type of a GCC
 
21417
   builtin and then its argument prototype would still apply.  */
 
21418
#ifdef __cplusplus
 
21419
extern "C"
 
21420
#endif
 
21421
char opendir ();
 
21422
int
 
21423
main ()
 
21424
{
 
21425
return opendir ();
 
21426
  ;
 
21427
  return 0;
 
21428
}
 
21429
_ACEOF
 
21430
for ac_lib in '' x; do
 
21431
  if test -z "$ac_lib"; then
 
21432
    ac_res="none required"
 
21433
  else
 
21434
    ac_res=-l$ac_lib
 
21435
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
21436
  fi
 
21437
  rm -f conftest.$ac_objext conftest$ac_exeext
 
21438
if { (ac_try="$ac_link"
 
21439
case "(($ac_try" in
 
21440
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21441
  *) ac_try_echo=$ac_try;;
 
21442
esac
 
21443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21444
  (eval "$ac_link") 2>conftest.er1
 
21445
  ac_status=$?
 
21446
  grep -v '^ *+' conftest.er1 >conftest.err
 
21447
  rm -f conftest.er1
 
21448
  cat conftest.err >&5
 
21449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21450
  (exit $ac_status); } && {
 
21451
         test -z "$ac_c_werror_flag" ||
 
21452
         test ! -s conftest.err
 
21453
       } && test -s conftest$ac_exeext &&
 
21454
       $as_test_x conftest$ac_exeext; then
 
21455
  ac_cv_search_opendir=$ac_res
 
21456
else
 
21457
  echo "$as_me: failed program was:" >&5
 
21458
sed 's/^/| /' conftest.$ac_ext >&5
 
21459
 
 
21460
 
 
21461
fi
 
21462
 
 
21463
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21464
      conftest$ac_exeext
 
21465
  if test "${ac_cv_search_opendir+set}" = set; then
 
21466
  break
 
21467
fi
 
21468
done
 
21469
if test "${ac_cv_search_opendir+set}" = set; then
 
21470
  :
 
21471
else
 
21472
  ac_cv_search_opendir=no
 
21473
fi
 
21474
rm conftest.$ac_ext
 
21475
LIBS=$ac_func_search_save_LIBS
 
21476
fi
 
21477
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
21478
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
21479
ac_res=$ac_cv_search_opendir
 
21480
if test "$ac_res" != no; then
 
21481
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
21482
 
 
21483
fi
 
21484
 
 
21485
fi
 
21486
 
 
21487
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
21488
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
21489
if test "${ac_cv_header_stdc+set}" = set; then
 
21490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21491
else
 
21492
  cat >conftest.$ac_ext <<_ACEOF
 
21493
/* confdefs.h.  */
 
21494
_ACEOF
 
21495
cat confdefs.h >>conftest.$ac_ext
 
21496
cat >>conftest.$ac_ext <<_ACEOF
 
21497
/* end confdefs.h.  */
 
21498
#include <stdlib.h>
 
21499
#include <stdarg.h>
 
21500
#include <string.h>
 
21501
#include <float.h>
 
21502
 
 
21503
int
 
21504
main ()
 
21505
{
 
21506
 
 
21507
  ;
 
21508
  return 0;
 
21509
}
 
21510
_ACEOF
 
21511
rm -f conftest.$ac_objext
 
21512
if { (ac_try="$ac_compile"
 
21513
case "(($ac_try" in
 
21514
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21515
  *) ac_try_echo=$ac_try;;
 
21516
esac
 
21517
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21518
  (eval "$ac_compile") 2>conftest.er1
 
21519
  ac_status=$?
 
21520
  grep -v '^ *+' conftest.er1 >conftest.err
 
21521
  rm -f conftest.er1
 
21522
  cat conftest.err >&5
 
21523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21524
  (exit $ac_status); } && {
 
21525
         test -z "$ac_c_werror_flag" ||
 
21526
         test ! -s conftest.err
 
21527
       } && test -s conftest.$ac_objext; then
 
21528
  ac_cv_header_stdc=yes
 
21529
else
 
21530
  echo "$as_me: failed program was:" >&5
 
21531
sed 's/^/| /' conftest.$ac_ext >&5
 
21532
 
 
21533
        ac_cv_header_stdc=no
 
21534
fi
 
21535
 
 
21536
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21537
 
 
21538
if test $ac_cv_header_stdc = yes; then
 
21539
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
21540
  cat >conftest.$ac_ext <<_ACEOF
 
21541
/* confdefs.h.  */
 
21542
_ACEOF
 
21543
cat confdefs.h >>conftest.$ac_ext
 
21544
cat >>conftest.$ac_ext <<_ACEOF
 
21545
/* end confdefs.h.  */
 
21546
#include <string.h>
 
21547
 
 
21548
_ACEOF
 
21549
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21550
  $EGREP "memchr" >/dev/null 2>&1; then
 
21551
  :
 
21552
else
 
21553
  ac_cv_header_stdc=no
 
21554
fi
 
21555
rm -f conftest*
 
21556
 
 
21557
fi
 
21558
 
 
21559
if test $ac_cv_header_stdc = yes; then
 
21560
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
21561
  cat >conftest.$ac_ext <<_ACEOF
 
21562
/* confdefs.h.  */
 
21563
_ACEOF
 
21564
cat confdefs.h >>conftest.$ac_ext
 
21565
cat >>conftest.$ac_ext <<_ACEOF
 
21566
/* end confdefs.h.  */
 
21567
#include <stdlib.h>
 
21568
 
 
21569
_ACEOF
 
21570
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21571
  $EGREP "free" >/dev/null 2>&1; then
 
21572
  :
 
21573
else
 
21574
  ac_cv_header_stdc=no
 
21575
fi
 
21576
rm -f conftest*
 
21577
 
 
21578
fi
 
21579
 
 
21580
if test $ac_cv_header_stdc = yes; then
 
21581
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
21582
  if test "$cross_compiling" = yes; then
 
21583
  :
 
21584
else
 
21585
  cat >conftest.$ac_ext <<_ACEOF
 
21586
/* confdefs.h.  */
 
21587
_ACEOF
 
21588
cat confdefs.h >>conftest.$ac_ext
 
21589
cat >>conftest.$ac_ext <<_ACEOF
 
21590
/* end confdefs.h.  */
 
21591
#include <ctype.h>
 
21592
#include <stdlib.h>
 
21593
#if ((' ' & 0x0FF) == 0x020)
 
21594
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
21595
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
21596
#else
 
21597
# define ISLOWER(c) \
 
21598
                   (('a' <= (c) && (c) <= 'i') \
 
21599
                     || ('j' <= (c) && (c) <= 'r') \
 
21600
                     || ('s' <= (c) && (c) <= 'z'))
 
21601
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
21602
#endif
 
21603
 
 
21604
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
21605
int
 
21606
main ()
 
21607
{
 
21608
  int i;
 
21609
  for (i = 0; i < 256; i++)
 
21610
    if (XOR (islower (i), ISLOWER (i))
 
21611
        || toupper (i) != TOUPPER (i))
 
21612
      return 2;
 
21613
  return 0;
 
21614
}
 
21615
_ACEOF
 
21616
rm -f conftest$ac_exeext
 
21617
if { (ac_try="$ac_link"
 
21618
case "(($ac_try" in
 
21619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21620
  *) ac_try_echo=$ac_try;;
 
21621
esac
 
21622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21623
  (eval "$ac_link") 2>&5
 
21624
  ac_status=$?
 
21625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21626
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21627
  { (case "(($ac_try" in
 
21628
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21629
  *) ac_try_echo=$ac_try;;
 
21630
esac
 
21631
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21632
  (eval "$ac_try") 2>&5
 
21633
  ac_status=$?
 
21634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21635
  (exit $ac_status); }; }; then
 
21636
  :
 
21637
else
 
21638
  echo "$as_me: program exited with status $ac_status" >&5
 
21639
echo "$as_me: failed program was:" >&5
 
21640
sed 's/^/| /' conftest.$ac_ext >&5
 
21641
 
 
21642
( exit $ac_status )
 
21643
ac_cv_header_stdc=no
 
21644
fi
 
21645
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21646
fi
 
21647
 
 
21648
 
 
21649
fi
 
21650
fi
 
21651
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
21652
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
21653
if test $ac_cv_header_stdc = yes; then
 
21654
 
 
21655
cat >>confdefs.h <<\_ACEOF
 
21656
#define STDC_HEADERS 1
 
21657
_ACEOF
 
21658
 
 
21659
fi
 
21660
 
 
21661
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
21662
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
 
21663
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
21664
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21665
else
 
21666
  cat >conftest.$ac_ext <<_ACEOF
 
21667
/* confdefs.h.  */
 
21668
_ACEOF
 
21669
cat confdefs.h >>conftest.$ac_ext
 
21670
cat >>conftest.$ac_ext <<_ACEOF
 
21671
/* end confdefs.h.  */
 
21672
#include <sys/types.h>
 
21673
#include <sys/wait.h>
 
21674
#ifndef WEXITSTATUS
 
21675
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
 
21676
#endif
 
21677
#ifndef WIFEXITED
 
21678
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
21679
#endif
 
21680
 
 
21681
int
 
21682
main ()
 
21683
{
 
21684
  int s;
 
21685
  wait (&s);
 
21686
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
21687
  ;
 
21688
  return 0;
 
21689
}
 
21690
_ACEOF
 
21691
rm -f conftest.$ac_objext
 
21692
if { (ac_try="$ac_compile"
 
21693
case "(($ac_try" in
 
21694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21695
  *) ac_try_echo=$ac_try;;
 
21696
esac
 
21697
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21698
  (eval "$ac_compile") 2>conftest.er1
 
21699
  ac_status=$?
 
21700
  grep -v '^ *+' conftest.er1 >conftest.err
 
21701
  rm -f conftest.er1
 
21702
  cat conftest.err >&5
 
21703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21704
  (exit $ac_status); } && {
 
21705
         test -z "$ac_c_werror_flag" ||
 
21706
         test ! -s conftest.err
 
21707
       } && test -s conftest.$ac_objext; then
 
21708
  ac_cv_header_sys_wait_h=yes
 
21709
else
 
21710
  echo "$as_me: failed program was:" >&5
 
21711
sed 's/^/| /' conftest.$ac_ext >&5
 
21712
 
 
21713
        ac_cv_header_sys_wait_h=no
 
21714
fi
 
21715
 
 
21716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21717
fi
 
21718
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
21719
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
 
21720
if test $ac_cv_header_sys_wait_h = yes; then
 
21721
 
 
21722
cat >>confdefs.h <<\_ACEOF
 
21723
#define HAVE_SYS_WAIT_H 1
 
21724
_ACEOF
 
21725
 
 
21726
fi
 
21727
 
 
21728
 
 
21729
# spirit?
 
21730
ac_ext=cpp
 
21731
ac_cpp='$CXXCPP $CPPFLAGS'
 
21732
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21733
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21734
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21735
 
 
21736
 
 
21737
cat >>confdefs.h <<\_ACEOF
 
21738
#define HAVE_BOOST_SPIRIT_CORE_HPP
 
21739
_ACEOF
 
21740
 
 
21741
 
 
21742
if test "${ac_cv_header_boost_spirit_hpp+set}" = set; then
 
21743
  { echo "$as_me:$LINENO: checking for boost/spirit.hpp" >&5
 
21744
echo $ECHO_N "checking for boost/spirit.hpp... $ECHO_C" >&6; }
 
21745
if test "${ac_cv_header_boost_spirit_hpp+set}" = set; then
 
21746
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21747
fi
 
21748
{ echo "$as_me:$LINENO: result: $ac_cv_header_boost_spirit_hpp" >&5
 
21749
echo "${ECHO_T}$ac_cv_header_boost_spirit_hpp" >&6; }
 
21750
else
 
21751
  # Is the header compilable?
 
21752
{ echo "$as_me:$LINENO: checking boost/spirit.hpp usability" >&5
 
21753
echo $ECHO_N "checking boost/spirit.hpp usability... $ECHO_C" >&6; }
 
21754
cat >conftest.$ac_ext <<_ACEOF
 
21755
/* confdefs.h.  */
 
21756
_ACEOF
 
21757
cat confdefs.h >>conftest.$ac_ext
 
21758
cat >>conftest.$ac_ext <<_ACEOF
 
21759
/* end confdefs.h.  */
 
21760
$ac_includes_default
 
21761
#include <boost/spirit.hpp>
 
21762
_ACEOF
 
21763
rm -f conftest.$ac_objext
 
21764
if { (ac_try="$ac_compile"
 
21765
case "(($ac_try" in
 
21766
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21767
  *) ac_try_echo=$ac_try;;
 
21768
esac
 
21769
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21770
  (eval "$ac_compile") 2>conftest.er1
 
21771
  ac_status=$?
 
21772
  grep -v '^ *+' conftest.er1 >conftest.err
 
21773
  rm -f conftest.er1
 
21774
  cat conftest.err >&5
 
21775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21776
  (exit $ac_status); } && {
 
21777
         test -z "$ac_cxx_werror_flag" ||
 
21778
         test ! -s conftest.err
 
21779
       } && test -s conftest.$ac_objext; then
 
21780
  ac_header_compiler=yes
 
21781
else
 
21782
  echo "$as_me: failed program was:" >&5
 
21783
sed 's/^/| /' conftest.$ac_ext >&5
 
21784
 
 
21785
        ac_header_compiler=no
 
21786
fi
 
21787
 
 
21788
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21789
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21790
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21791
 
 
21792
# Is the header present?
 
21793
{ echo "$as_me:$LINENO: checking boost/spirit.hpp presence" >&5
 
21794
echo $ECHO_N "checking boost/spirit.hpp presence... $ECHO_C" >&6; }
 
21795
cat >conftest.$ac_ext <<_ACEOF
 
21796
/* confdefs.h.  */
 
21797
_ACEOF
 
21798
cat confdefs.h >>conftest.$ac_ext
 
21799
cat >>conftest.$ac_ext <<_ACEOF
 
21800
/* end confdefs.h.  */
 
21801
#include <boost/spirit.hpp>
 
21802
_ACEOF
 
21803
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21804
case "(($ac_try" in
 
21805
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21806
  *) ac_try_echo=$ac_try;;
 
21807
esac
 
21808
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21809
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21810
  ac_status=$?
 
21811
  grep -v '^ *+' conftest.er1 >conftest.err
 
21812
  rm -f conftest.er1
 
21813
  cat conftest.err >&5
 
21814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21815
  (exit $ac_status); } >/dev/null && {
 
21816
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
21817
         test ! -s conftest.err
 
21818
       }; then
 
21819
  ac_header_preproc=yes
 
21820
else
 
21821
  echo "$as_me: failed program was:" >&5
 
21822
sed 's/^/| /' conftest.$ac_ext >&5
 
21823
 
 
21824
  ac_header_preproc=no
 
21825
fi
 
21826
 
 
21827
rm -f conftest.err conftest.$ac_ext
 
21828
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21829
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21830
 
 
21831
# So?  What about this header?
 
21832
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
 
21833
  yes:no: )
 
21834
    { echo "$as_me:$LINENO: WARNING: boost/spirit.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
 
21835
echo "$as_me: WARNING: boost/spirit.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21836
    { echo "$as_me:$LINENO: WARNING: boost/spirit.hpp: proceeding with the compiler's result" >&5
 
21837
echo "$as_me: WARNING: boost/spirit.hpp: proceeding with the compiler's result" >&2;}
 
21838
    ac_header_preproc=yes
 
21839
    ;;
 
21840
  no:yes:* )
 
21841
    { echo "$as_me:$LINENO: WARNING: boost/spirit.hpp: present but cannot be compiled" >&5
 
21842
echo "$as_me: WARNING: boost/spirit.hpp: present but cannot be compiled" >&2;}
 
21843
    { echo "$as_me:$LINENO: WARNING: boost/spirit.hpp:     check for missing prerequisite headers?" >&5
 
21844
echo "$as_me: WARNING: boost/spirit.hpp:     check for missing prerequisite headers?" >&2;}
 
21845
    { echo "$as_me:$LINENO: WARNING: boost/spirit.hpp: see the Autoconf documentation" >&5
 
21846
echo "$as_me: WARNING: boost/spirit.hpp: see the Autoconf documentation" >&2;}
 
21847
    { echo "$as_me:$LINENO: WARNING: boost/spirit.hpp:     section \"Present But Cannot Be Compiled\"" >&5
 
21848
echo "$as_me: WARNING: boost/spirit.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21849
    { echo "$as_me:$LINENO: WARNING: boost/spirit.hpp: proceeding with the preprocessor's result" >&5
 
21850
echo "$as_me: WARNING: boost/spirit.hpp: proceeding with the preprocessor's result" >&2;}
 
21851
    { echo "$as_me:$LINENO: WARNING: boost/spirit.hpp: in the future, the compiler will take precedence" >&5
 
21852
echo "$as_me: WARNING: boost/spirit.hpp: in the future, the compiler will take precedence" >&2;}
 
21853
    ( cat <<\_ASBOX
 
21854
## -------------------------------------------- ##
 
21855
## Report this to Sage Weil <sage@newdream.net> ##
 
21856
## -------------------------------------------- ##
 
21857
_ASBOX
 
21858
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21859
    ;;
 
21860
esac
 
21861
{ echo "$as_me:$LINENO: checking for boost/spirit.hpp" >&5
 
21862
echo $ECHO_N "checking for boost/spirit.hpp... $ECHO_C" >&6; }
 
21863
if test "${ac_cv_header_boost_spirit_hpp+set}" = set; then
 
21864
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21865
else
 
21866
  ac_cv_header_boost_spirit_hpp=$ac_header_preproc
 
21867
fi
 
21868
{ echo "$as_me:$LINENO: result: $ac_cv_header_boost_spirit_hpp" >&5
 
21869
echo "${ECHO_T}$ac_cv_header_boost_spirit_hpp" >&6; }
 
21870
 
 
21871
fi
 
21872
if test $ac_cv_header_boost_spirit_hpp = yes; then
 
21873
  cat >>confdefs.h <<\_ACEOF
 
21874
#define HAVE_BOOST_SPIRIT_CORE_HPP 1
 
21875
_ACEOF
 
21876
 
 
21877
else
 
21878
  { { echo "$as_me:$LINENO: error: Sorry you need to install the Boost spirit parser library (libboost-dev on debian)" >&5
 
21879
echo "$as_me: error: Sorry you need to install the Boost spirit parser library (libboost-dev on debian)" >&2;}
 
21880
   { (exit 1); exit 1; }; }
 
21881
fi
 
21882
 
 
21883
 
 
21884
 
 
21885
ac_ext=c
 
21886
ac_cpp='$CPP $CPPFLAGS'
 
21887
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21888
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21889
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21890
 
 
21891
 
 
21892
if test "${ac_cv_header_histedit_h+set}" = set; then
 
21893
  { echo "$as_me:$LINENO: checking for histedit.h" >&5
 
21894
echo $ECHO_N "checking for histedit.h... $ECHO_C" >&6; }
 
21895
if test "${ac_cv_header_histedit_h+set}" = set; then
 
21896
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21897
fi
 
21898
{ echo "$as_me:$LINENO: result: $ac_cv_header_histedit_h" >&5
 
21899
echo "${ECHO_T}$ac_cv_header_histedit_h" >&6; }
 
21900
else
 
21901
  # Is the header compilable?
 
21902
{ echo "$as_me:$LINENO: checking histedit.h usability" >&5
 
21903
echo $ECHO_N "checking histedit.h usability... $ECHO_C" >&6; }
 
21904
cat >conftest.$ac_ext <<_ACEOF
 
21905
/* confdefs.h.  */
 
21906
_ACEOF
 
21907
cat confdefs.h >>conftest.$ac_ext
 
21908
cat >>conftest.$ac_ext <<_ACEOF
 
21909
/* end confdefs.h.  */
 
21910
$ac_includes_default
 
21911
#include <histedit.h>
 
21912
_ACEOF
 
21913
rm -f conftest.$ac_objext
 
21914
if { (ac_try="$ac_compile"
 
21915
case "(($ac_try" in
 
21916
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21917
  *) ac_try_echo=$ac_try;;
 
21918
esac
 
21919
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21920
  (eval "$ac_compile") 2>conftest.er1
 
21921
  ac_status=$?
 
21922
  grep -v '^ *+' conftest.er1 >conftest.err
 
21923
  rm -f conftest.er1
 
21924
  cat conftest.err >&5
 
21925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21926
  (exit $ac_status); } && {
 
21927
         test -z "$ac_c_werror_flag" ||
 
21928
         test ! -s conftest.err
 
21929
       } && test -s conftest.$ac_objext; then
 
21930
  ac_header_compiler=yes
 
21931
else
 
21932
  echo "$as_me: failed program was:" >&5
 
21933
sed 's/^/| /' conftest.$ac_ext >&5
 
21934
 
 
21935
        ac_header_compiler=no
 
21936
fi
 
21937
 
 
21938
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21939
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21940
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21941
 
 
21942
# Is the header present?
 
21943
{ echo "$as_me:$LINENO: checking histedit.h presence" >&5
 
21944
echo $ECHO_N "checking histedit.h presence... $ECHO_C" >&6; }
 
21945
cat >conftest.$ac_ext <<_ACEOF
 
21946
/* confdefs.h.  */
 
21947
_ACEOF
 
21948
cat confdefs.h >>conftest.$ac_ext
 
21949
cat >>conftest.$ac_ext <<_ACEOF
 
21950
/* end confdefs.h.  */
 
21951
#include <histedit.h>
 
21952
_ACEOF
 
21953
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21954
case "(($ac_try" in
 
21955
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21956
  *) ac_try_echo=$ac_try;;
 
21957
esac
 
21958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21959
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21960
  ac_status=$?
 
21961
  grep -v '^ *+' conftest.er1 >conftest.err
 
21962
  rm -f conftest.er1
 
21963
  cat conftest.err >&5
 
21964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21965
  (exit $ac_status); } >/dev/null && {
 
21966
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
21967
         test ! -s conftest.err
 
21968
       }; then
 
21969
  ac_header_preproc=yes
 
21970
else
 
21971
  echo "$as_me: failed program was:" >&5
 
21972
sed 's/^/| /' conftest.$ac_ext >&5
 
21973
 
 
21974
  ac_header_preproc=no
 
21975
fi
 
21976
 
 
21977
rm -f conftest.err conftest.$ac_ext
 
21978
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21979
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21980
 
 
21981
# So?  What about this header?
 
21982
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21983
  yes:no: )
 
21984
    { echo "$as_me:$LINENO: WARNING: histedit.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21985
echo "$as_me: WARNING: histedit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21986
    { echo "$as_me:$LINENO: WARNING: histedit.h: proceeding with the compiler's result" >&5
 
21987
echo "$as_me: WARNING: histedit.h: proceeding with the compiler's result" >&2;}
 
21988
    ac_header_preproc=yes
 
21989
    ;;
 
21990
  no:yes:* )
 
21991
    { echo "$as_me:$LINENO: WARNING: histedit.h: present but cannot be compiled" >&5
 
21992
echo "$as_me: WARNING: histedit.h: present but cannot be compiled" >&2;}
 
21993
    { echo "$as_me:$LINENO: WARNING: histedit.h:     check for missing prerequisite headers?" >&5
 
21994
echo "$as_me: WARNING: histedit.h:     check for missing prerequisite headers?" >&2;}
 
21995
    { echo "$as_me:$LINENO: WARNING: histedit.h: see the Autoconf documentation" >&5
 
21996
echo "$as_me: WARNING: histedit.h: see the Autoconf documentation" >&2;}
 
21997
    { echo "$as_me:$LINENO: WARNING: histedit.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21998
echo "$as_me: WARNING: histedit.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21999
    { echo "$as_me:$LINENO: WARNING: histedit.h: proceeding with the preprocessor's result" >&5
 
22000
echo "$as_me: WARNING: histedit.h: proceeding with the preprocessor's result" >&2;}
 
22001
    { echo "$as_me:$LINENO: WARNING: histedit.h: in the future, the compiler will take precedence" >&5
 
22002
echo "$as_me: WARNING: histedit.h: in the future, the compiler will take precedence" >&2;}
 
22003
    ( cat <<\_ASBOX
 
22004
## -------------------------------------------- ##
 
22005
## Report this to Sage Weil <sage@newdream.net> ##
 
22006
## -------------------------------------------- ##
 
22007
_ASBOX
 
22008
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
22009
    ;;
 
22010
esac
 
22011
{ echo "$as_me:$LINENO: checking for histedit.h" >&5
 
22012
echo $ECHO_N "checking for histedit.h... $ECHO_C" >&6; }
 
22013
if test "${ac_cv_header_histedit_h+set}" = set; then
 
22014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22015
else
 
22016
  ac_cv_header_histedit_h=$ac_header_preproc
 
22017
fi
 
22018
{ echo "$as_me:$LINENO: result: $ac_cv_header_histedit_h" >&5
 
22019
echo "${ECHO_T}$ac_cv_header_histedit_h" >&6; }
 
22020
 
 
22021
fi
 
22022
if test $ac_cv_header_histedit_h = yes; then
 
22023
  :
 
22024
else
 
22025
  { { echo "$as_me:$LINENO: error: Sorry you need histedit.h (libedit-dev on debian)" >&5
 
22026
echo "$as_me: error: Sorry you need histedit.h (libedit-dev on debian)" >&2;}
 
22027
   { (exit 1); exit 1; }; }
 
22028
fi
 
22029
 
 
22030
 
 
22031
 
 
22032
if test "${ac_cv_header_openssl_md5_h+set}" = set; then
 
22033
  { echo "$as_me:$LINENO: checking for openssl/md5.h" >&5
 
22034
echo $ECHO_N "checking for openssl/md5.h... $ECHO_C" >&6; }
 
22035
if test "${ac_cv_header_openssl_md5_h+set}" = set; then
 
22036
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22037
fi
 
22038
{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_md5_h" >&5
 
22039
echo "${ECHO_T}$ac_cv_header_openssl_md5_h" >&6; }
 
22040
else
 
22041
  # Is the header compilable?
 
22042
{ echo "$as_me:$LINENO: checking openssl/md5.h usability" >&5
 
22043
echo $ECHO_N "checking openssl/md5.h usability... $ECHO_C" >&6; }
 
22044
cat >conftest.$ac_ext <<_ACEOF
 
22045
/* confdefs.h.  */
 
22046
_ACEOF
 
22047
cat confdefs.h >>conftest.$ac_ext
 
22048
cat >>conftest.$ac_ext <<_ACEOF
 
22049
/* end confdefs.h.  */
 
22050
$ac_includes_default
 
22051
#include <openssl/md5.h>
 
22052
_ACEOF
 
22053
rm -f conftest.$ac_objext
 
22054
if { (ac_try="$ac_compile"
 
22055
case "(($ac_try" in
 
22056
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22057
  *) ac_try_echo=$ac_try;;
 
22058
esac
 
22059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22060
  (eval "$ac_compile") 2>conftest.er1
 
22061
  ac_status=$?
 
22062
  grep -v '^ *+' conftest.er1 >conftest.err
 
22063
  rm -f conftest.er1
 
22064
  cat conftest.err >&5
 
22065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22066
  (exit $ac_status); } && {
 
22067
         test -z "$ac_c_werror_flag" ||
 
22068
         test ! -s conftest.err
 
22069
       } && test -s conftest.$ac_objext; then
 
22070
  ac_header_compiler=yes
 
22071
else
 
22072
  echo "$as_me: failed program was:" >&5
 
22073
sed 's/^/| /' conftest.$ac_ext >&5
 
22074
 
 
22075
        ac_header_compiler=no
 
22076
fi
 
22077
 
 
22078
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22079
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22080
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
22081
 
 
22082
# Is the header present?
 
22083
{ echo "$as_me:$LINENO: checking openssl/md5.h presence" >&5
 
22084
echo $ECHO_N "checking openssl/md5.h presence... $ECHO_C" >&6; }
 
22085
cat >conftest.$ac_ext <<_ACEOF
 
22086
/* confdefs.h.  */
 
22087
_ACEOF
 
22088
cat confdefs.h >>conftest.$ac_ext
 
22089
cat >>conftest.$ac_ext <<_ACEOF
 
22090
/* end confdefs.h.  */
 
22091
#include <openssl/md5.h>
 
22092
_ACEOF
 
22093
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22094
case "(($ac_try" in
 
22095
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22096
  *) ac_try_echo=$ac_try;;
 
22097
esac
 
22098
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22099
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22100
  ac_status=$?
 
22101
  grep -v '^ *+' conftest.er1 >conftest.err
 
22102
  rm -f conftest.er1
 
22103
  cat conftest.err >&5
 
22104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22105
  (exit $ac_status); } >/dev/null && {
 
22106
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22107
         test ! -s conftest.err
 
22108
       }; then
 
22109
  ac_header_preproc=yes
 
22110
else
 
22111
  echo "$as_me: failed program was:" >&5
 
22112
sed 's/^/| /' conftest.$ac_ext >&5
 
22113
 
 
22114
  ac_header_preproc=no
 
22115
fi
 
22116
 
 
22117
rm -f conftest.err conftest.$ac_ext
 
22118
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22119
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
22120
 
 
22121
# So?  What about this header?
 
22122
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22123
  yes:no: )
 
22124
    { echo "$as_me:$LINENO: WARNING: openssl/md5.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
22125
echo "$as_me: WARNING: openssl/md5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22126
    { echo "$as_me:$LINENO: WARNING: openssl/md5.h: proceeding with the compiler's result" >&5
 
22127
echo "$as_me: WARNING: openssl/md5.h: proceeding with the compiler's result" >&2;}
 
22128
    ac_header_preproc=yes
 
22129
    ;;
 
22130
  no:yes:* )
 
22131
    { echo "$as_me:$LINENO: WARNING: openssl/md5.h: present but cannot be compiled" >&5
 
22132
echo "$as_me: WARNING: openssl/md5.h: present but cannot be compiled" >&2;}
 
22133
    { echo "$as_me:$LINENO: WARNING: openssl/md5.h:     check for missing prerequisite headers?" >&5
 
22134
echo "$as_me: WARNING: openssl/md5.h:     check for missing prerequisite headers?" >&2;}
 
22135
    { echo "$as_me:$LINENO: WARNING: openssl/md5.h: see the Autoconf documentation" >&5
 
22136
echo "$as_me: WARNING: openssl/md5.h: see the Autoconf documentation" >&2;}
 
22137
    { echo "$as_me:$LINENO: WARNING: openssl/md5.h:     section \"Present But Cannot Be Compiled\"" >&5
 
22138
echo "$as_me: WARNING: openssl/md5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22139
    { echo "$as_me:$LINENO: WARNING: openssl/md5.h: proceeding with the preprocessor's result" >&5
 
22140
echo "$as_me: WARNING: openssl/md5.h: proceeding with the preprocessor's result" >&2;}
 
22141
    { echo "$as_me:$LINENO: WARNING: openssl/md5.h: in the future, the compiler will take precedence" >&5
 
22142
echo "$as_me: WARNING: openssl/md5.h: in the future, the compiler will take precedence" >&2;}
 
22143
    ( cat <<\_ASBOX
 
22144
## -------------------------------------------- ##
 
22145
## Report this to Sage Weil <sage@newdream.net> ##
 
22146
## -------------------------------------------- ##
 
22147
_ASBOX
 
22148
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
22149
    ;;
 
22150
esac
 
22151
{ echo "$as_me:$LINENO: checking for openssl/md5.h" >&5
 
22152
echo $ECHO_N "checking for openssl/md5.h... $ECHO_C" >&6; }
 
22153
if test "${ac_cv_header_openssl_md5_h+set}" = set; then
 
22154
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22155
else
 
22156
  ac_cv_header_openssl_md5_h=$ac_header_preproc
 
22157
fi
 
22158
{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_md5_h" >&5
 
22159
echo "${ECHO_T}$ac_cv_header_openssl_md5_h" >&6; }
 
22160
 
 
22161
fi
 
22162
if test $ac_cv_header_openssl_md5_h = yes; then
 
22163
  :
 
22164
else
 
22165
  { { echo "$as_me:$LINENO: error: Sorry you need openssl dev files (libssl-dev on debian)" >&5
 
22166
echo "$as_me: error: Sorry you need openssl dev files (libssl-dev on debian)" >&2;}
 
22167
   { (exit 1); exit 1; }; }
 
22168
fi
 
22169
 
 
22170
 
 
22171
 
 
22172
 
 
22173
 
 
22174
 
 
22175
 
 
22176
 
 
22177
 
 
22178
 
 
22179
 
 
22180
 
 
22181
 
 
22182
 
 
22183
 
 
22184
 
 
22185
 
 
22186
for ac_header in sys/xattr.h arpa/inet.h netdb.h netinet/in.h sys/file.h sys/ioctl.h sys/mount.h sys/param.h sys/socket.h sys/statvfs.h sys/time.h sys/vfs.h syslog.h utime.h
 
22187
do
 
22188
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22189
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22190
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22191
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22192
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22194
fi
 
22195
ac_res=`eval echo '${'$as_ac_Header'}'`
 
22196
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22197
echo "${ECHO_T}$ac_res" >&6; }
 
22198
else
 
22199
  # Is the header compilable?
 
22200
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22201
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
22202
cat >conftest.$ac_ext <<_ACEOF
 
22203
/* confdefs.h.  */
 
22204
_ACEOF
 
22205
cat confdefs.h >>conftest.$ac_ext
 
22206
cat >>conftest.$ac_ext <<_ACEOF
 
22207
/* end confdefs.h.  */
 
22208
$ac_includes_default
 
22209
#include <$ac_header>
 
22210
_ACEOF
 
22211
rm -f conftest.$ac_objext
 
22212
if { (ac_try="$ac_compile"
 
22213
case "(($ac_try" in
 
22214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22215
  *) ac_try_echo=$ac_try;;
 
22216
esac
 
22217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22218
  (eval "$ac_compile") 2>conftest.er1
 
22219
  ac_status=$?
 
22220
  grep -v '^ *+' conftest.er1 >conftest.err
 
22221
  rm -f conftest.er1
 
22222
  cat conftest.err >&5
 
22223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22224
  (exit $ac_status); } && {
 
22225
         test -z "$ac_c_werror_flag" ||
 
22226
         test ! -s conftest.err
 
22227
       } && test -s conftest.$ac_objext; then
 
22228
  ac_header_compiler=yes
 
22229
else
 
22230
  echo "$as_me: failed program was:" >&5
 
22231
sed 's/^/| /' conftest.$ac_ext >&5
 
22232
 
 
22233
        ac_header_compiler=no
 
22234
fi
 
22235
 
 
22236
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22237
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22238
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
22239
 
 
22240
# Is the header present?
 
22241
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22242
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
22243
cat >conftest.$ac_ext <<_ACEOF
 
22244
/* confdefs.h.  */
 
22245
_ACEOF
 
22246
cat confdefs.h >>conftest.$ac_ext
 
22247
cat >>conftest.$ac_ext <<_ACEOF
 
22248
/* end confdefs.h.  */
 
22249
#include <$ac_header>
 
22250
_ACEOF
 
22251
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22252
case "(($ac_try" in
 
22253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22254
  *) ac_try_echo=$ac_try;;
 
22255
esac
 
22256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22257
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22258
  ac_status=$?
 
22259
  grep -v '^ *+' conftest.er1 >conftest.err
 
22260
  rm -f conftest.er1
 
22261
  cat conftest.err >&5
 
22262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22263
  (exit $ac_status); } >/dev/null && {
 
22264
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22265
         test ! -s conftest.err
 
22266
       }; then
 
22267
  ac_header_preproc=yes
 
22268
else
 
22269
  echo "$as_me: failed program was:" >&5
 
22270
sed 's/^/| /' conftest.$ac_ext >&5
 
22271
 
 
22272
  ac_header_preproc=no
 
22273
fi
 
22274
 
 
22275
rm -f conftest.err conftest.$ac_ext
 
22276
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22277
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
22278
 
 
22279
# So?  What about this header?
 
22280
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22281
  yes:no: )
 
22282
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22283
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22284
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22285
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22286
    ac_header_preproc=yes
 
22287
    ;;
 
22288
  no:yes:* )
 
22289
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22290
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22291
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22292
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22293
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22294
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22295
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22296
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22297
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22298
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22299
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22300
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22301
    ( cat <<\_ASBOX
 
22302
## -------------------------------------------- ##
 
22303
## Report this to Sage Weil <sage@newdream.net> ##
 
22304
## -------------------------------------------- ##
 
22305
_ASBOX
 
22306
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
22307
    ;;
 
22308
esac
 
22309
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22310
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22311
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22312
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22313
else
 
22314
  eval "$as_ac_Header=\$ac_header_preproc"
 
22315
fi
 
22316
ac_res=`eval echo '${'$as_ac_Header'}'`
 
22317
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22318
echo "${ECHO_T}$ac_res" >&6; }
 
22319
 
 
22320
fi
 
22321
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22322
  cat >>confdefs.h <<_ACEOF
 
22323
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22324
_ACEOF
 
22325
 
 
22326
fi
 
22327
 
 
22328
done
 
22329
 
 
22330
 
 
22331
# sync_file_range
 
22332
{ echo "$as_me:$LINENO: checking for sync_file_range" >&5
 
22333
echo $ECHO_N "checking for sync_file_range... $ECHO_C" >&6; }
 
22334
if test "${ac_cv_func_sync_file_range+set}" = set; then
 
22335
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22336
else
 
22337
  cat >conftest.$ac_ext <<_ACEOF
 
22338
/* confdefs.h.  */
 
22339
_ACEOF
 
22340
cat confdefs.h >>conftest.$ac_ext
 
22341
cat >>conftest.$ac_ext <<_ACEOF
 
22342
/* end confdefs.h.  */
 
22343
/* Define sync_file_range to an innocuous variant, in case <limits.h> declares sync_file_range.
 
22344
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22345
#define sync_file_range innocuous_sync_file_range
 
22346
 
 
22347
/* System header to define __stub macros and hopefully few prototypes,
 
22348
    which can conflict with char sync_file_range (); below.
 
22349
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22350
    <limits.h> exists even on freestanding compilers.  */
 
22351
 
 
22352
#ifdef __STDC__
 
22353
# include <limits.h>
 
22354
#else
 
22355
# include <assert.h>
 
22356
#endif
 
22357
 
 
22358
#undef sync_file_range
 
22359
 
 
22360
/* Override any GCC internal prototype to avoid an error.
 
22361
   Use char because int might match the return type of a GCC
 
22362
   builtin and then its argument prototype would still apply.  */
 
22363
#ifdef __cplusplus
 
22364
extern "C"
 
22365
#endif
 
22366
char sync_file_range ();
 
22367
/* The GNU C library defines this for functions which it implements
 
22368
    to always fail with ENOSYS.  Some functions are actually named
 
22369
    something starting with __ and the normal name is an alias.  */
 
22370
#if defined __stub_sync_file_range || defined __stub___sync_file_range
 
22371
choke me
 
22372
#endif
 
22373
 
 
22374
int
 
22375
main ()
 
22376
{
 
22377
return sync_file_range ();
 
22378
  ;
 
22379
  return 0;
 
22380
}
 
22381
_ACEOF
 
22382
rm -f conftest.$ac_objext conftest$ac_exeext
 
22383
if { (ac_try="$ac_link"
 
22384
case "(($ac_try" in
 
22385
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22386
  *) ac_try_echo=$ac_try;;
 
22387
esac
 
22388
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22389
  (eval "$ac_link") 2>conftest.er1
 
22390
  ac_status=$?
 
22391
  grep -v '^ *+' conftest.er1 >conftest.err
 
22392
  rm -f conftest.er1
 
22393
  cat conftest.err >&5
 
22394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22395
  (exit $ac_status); } && {
 
22396
         test -z "$ac_c_werror_flag" ||
 
22397
         test ! -s conftest.err
 
22398
       } && test -s conftest$ac_exeext &&
 
22399
       $as_test_x conftest$ac_exeext; then
 
22400
  ac_cv_func_sync_file_range=yes
 
22401
else
 
22402
  echo "$as_me: failed program was:" >&5
 
22403
sed 's/^/| /' conftest.$ac_ext >&5
 
22404
 
 
22405
        ac_cv_func_sync_file_range=no
 
22406
fi
 
22407
 
 
22408
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22409
      conftest$ac_exeext conftest.$ac_ext
 
22410
fi
 
22411
{ echo "$as_me:$LINENO: result: $ac_cv_func_sync_file_range" >&5
 
22412
echo "${ECHO_T}$ac_cv_func_sync_file_range" >&6; }
 
22413
if test $ac_cv_func_sync_file_range = yes; then
 
22414
 
 
22415
cat >>confdefs.h <<\_ACEOF
 
22416
#define HAVE_SYNC_FILE_RANGE
 
22417
_ACEOF
 
22418
 
 
22419
fi
 
22420
 
 
22421
 
 
22422
# Checks for typedefs, structures, and compiler characteristics.
 
22423
#AC_HEADER_STDBOOL
 
22424
#AC_C_CONST
 
22425
#AC_TYPE_UID_T
 
22426
#AC_C_INLINE
 
22427
#AC_TYPE_INT16_T
 
22428
#AC_TYPE_INT32_T
 
22429
#AC_TYPE_INT64_T
 
22430
#AC_TYPE_INT8_T
 
22431
#AC_TYPE_MODE_T
 
22432
#AC_TYPE_OFF_T
 
22433
#AC_TYPE_PID_T
 
22434
#AC_TYPE_SIZE_T
 
22435
#AC_TYPE_SSIZE_T
 
22436
#AC_CHECK_MEMBERS([struct stat.st_blksize])
 
22437
#AC_STRUCT_ST_BLOCKS
 
22438
#AC_CHECK_MEMBERS([struct stat.st_rdev])
 
22439
#AC_HEADER_TIME
 
22440
#AC_STRUCT_TM
 
22441
#AC_TYPE_UINT16_T
 
22442
#AC_TYPE_UINT32_T
 
22443
#AC_TYPE_UINT64_T
 
22444
#AC_TYPE_UINT8_T
 
22445
 
 
22446
# Checks for library functions.
 
22447
#AC_FUNC_CHOWN
 
22448
#AC_FUNC_CLOSEDIR_VOID
 
22449
#AC_FUNC_ERROR_AT_LINE
 
22450
#AC_FUNC_FORK
 
22451
#AC_PROG_GCC_TRADITIONAL
 
22452
#AC_FUNC_LSTAT
 
22453
#AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
 
22454
#AC_FUNC_MALLOC   # this causes annoying rpl_malloc error on some machines; skip it
 
22455
#AC_FUNC_MEMCMP
 
22456
#AC_FUNC_MMAP
 
22457
#AC_FUNC_REALLOC
 
22458
#AC_FUNC_SELECT_ARGTYPES
 
22459
#AC_TYPE_SIGNAL
 
22460
#AC_FUNC_STAT
 
22461
#AC_FUNC_UTIME_NULL
 
22462
#AC_CHECK_FUNCS([bzero fchdir fdatasync floor ftruncate getcwd gethostbyname gethostname gettimeofday inet_ntoa localtime_r memmove memset mkdir munmap pow rmdir select socket sqrt strcasecmp strchr strerror strstr utime])
 
22463
 
 
22464
ac_config_headers="$ac_config_headers src/acconfig.h"
 
22465
 
 
22466
ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile ceph.spec"
 
22467
 
 
22468
cat >confcache <<\_ACEOF
 
22469
# This file is a shell script that caches the results of configure
 
22470
# tests run on this system so they can be shared between configure
 
22471
# scripts and configure runs, see configure's option --config-cache.
 
22472
# It is not useful on other systems.  If it contains results you don't
 
22473
# want to keep, you may remove or edit it.
 
22474
#
 
22475
# config.status only pays attention to the cache file if you give it
 
22476
# the --recheck option to rerun configure.
 
22477
#
 
22478
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
22479
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
22480
# following values.
 
22481
 
 
22482
_ACEOF
 
22483
 
 
22484
# The following way of writing the cache mishandles newlines in values,
 
22485
# but we know of no workaround that is simple, portable, and efficient.
 
22486
# So, we kill variables containing newlines.
 
22487
# Ultrix sh set writes to stderr and can't be redirected directly,
 
22488
# and sets the high bit in the cache file unless we assign to the vars.
 
22489
(
 
22490
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
22491
    eval ac_val=\$$ac_var
 
22492
    case $ac_val in #(
 
22493
    *${as_nl}*)
 
22494
      case $ac_var in #(
 
22495
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
22496
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
22497
      esac
 
22498
      case $ac_var in #(
 
22499
      _ | IFS | as_nl) ;; #(
 
22500
      *) $as_unset $ac_var ;;
 
22501
      esac ;;
 
22502
    esac
 
22503
  done
 
22504
 
 
22505
  (set) 2>&1 |
 
22506
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
22507
    *${as_nl}ac_space=\ *)
 
22508
      # `set' does not quote correctly, so add quotes (double-quote
 
22509
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
22510
      sed -n \
 
22511
        "s/'/'\\\\''/g;
 
22512
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
22513
      ;; #(
 
22514
    *)
 
22515
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
22516
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
22517
      ;;
 
22518
    esac |
 
22519
    sort
 
22520
) |
 
22521
  sed '
 
22522
     /^ac_cv_env_/b end
 
22523
     t clear
 
22524
     :clear
 
22525
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
22526
     t end
 
22527
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
22528
     :end' >>confcache
 
22529
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
22530
  if test -w "$cache_file"; then
 
22531
    test "x$cache_file" != "x/dev/null" &&
 
22532
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
22533
echo "$as_me: updating cache $cache_file" >&6;}
 
22534
    cat confcache >$cache_file
 
22535
  else
 
22536
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
22537
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
22538
  fi
 
22539
fi
 
22540
rm -f confcache
 
22541
 
 
22542
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
22543
# Let make expand exec_prefix.
 
22544
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
22545
 
 
22546
DEFS=-DHAVE_CONFIG_H
 
22547
 
 
22548
ac_libobjs=
 
22549
ac_ltlibobjs=
 
22550
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
22551
  # 1. Remove the extension, and $U if already installed.
 
22552
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
22553
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
22554
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
22555
  #    will be set to the directory where LIBOBJS objects are built.
 
22556
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
22557
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
22558
done
 
22559
LIBOBJS=$ac_libobjs
 
22560
 
 
22561
LTLIBOBJS=$ac_ltlibobjs
 
22562
 
 
22563
 
 
22564
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
22565
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
22566
Usually this means the macro was only invoked conditionally." >&5
 
22567
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
22568
Usually this means the macro was only invoked conditionally." >&2;}
 
22569
   { (exit 1); exit 1; }; }
 
22570
fi
 
22571
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22572
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22573
Usually this means the macro was only invoked conditionally." >&5
 
22574
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22575
Usually this means the macro was only invoked conditionally." >&2;}
 
22576
   { (exit 1); exit 1; }; }
 
22577
fi
 
22578
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
22579
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
22580
Usually this means the macro was only invoked conditionally." >&5
 
22581
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
22582
Usually this means the macro was only invoked conditionally." >&2;}
 
22583
   { (exit 1); exit 1; }; }
 
22584
fi
 
22585
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
22586
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
22587
Usually this means the macro was only invoked conditionally." >&5
 
22588
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
22589
Usually this means the macro was only invoked conditionally." >&2;}
 
22590
   { (exit 1); exit 1; }; }
 
22591
fi
 
22592
if test -z "${WITH_DEBUG_TRUE}" && test -z "${WITH_DEBUG_FALSE}"; then
 
22593
  { { echo "$as_me:$LINENO: error: conditional \"WITH_DEBUG\" was never defined.
 
22594
Usually this means the macro was only invoked conditionally." >&5
 
22595
echo "$as_me: error: conditional \"WITH_DEBUG\" was never defined.
 
22596
Usually this means the macro was only invoked conditionally." >&2;}
 
22597
   { (exit 1); exit 1; }; }
 
22598
fi
 
22599
if test -z "${WITH_RADOSGW_TRUE}" && test -z "${WITH_RADOSGW_FALSE}"; then
 
22600
  { { echo "$as_me:$LINENO: error: conditional \"WITH_RADOSGW\" was never defined.
 
22601
Usually this means the macro was only invoked conditionally." >&5
 
22602
echo "$as_me: error: conditional \"WITH_RADOSGW\" was never defined.
 
22603
Usually this means the macro was only invoked conditionally." >&2;}
 
22604
   { (exit 1); exit 1; }; }
 
22605
fi
 
22606
if test -z "${WITH_FUSE_TRUE}" && test -z "${WITH_FUSE_FALSE}"; then
 
22607
  { { echo "$as_me:$LINENO: error: conditional \"WITH_FUSE\" was never defined.
 
22608
Usually this means the macro was only invoked conditionally." >&5
 
22609
echo "$as_me: error: conditional \"WITH_FUSE\" was never defined.
 
22610
Usually this means the macro was only invoked conditionally." >&2;}
 
22611
   { (exit 1); exit 1; }; }
 
22612
fi
 
22613
if test -z "${WITH_HADOOPCLIENT_TRUE}" && test -z "${WITH_HADOOPCLIENT_FALSE}"; then
 
22614
  { { echo "$as_me:$LINENO: error: conditional \"WITH_HADOOPCLIENT\" was never defined.
 
22615
Usually this means the macro was only invoked conditionally." >&5
 
22616
echo "$as_me: error: conditional \"WITH_HADOOPCLIENT\" was never defined.
 
22617
Usually this means the macro was only invoked conditionally." >&2;}
 
22618
   { (exit 1); exit 1; }; }
 
22619
fi
 
22620
if test -z "${WITH_LIBATOMIC_TRUE}" && test -z "${WITH_LIBATOMIC_FALSE}"; then
 
22621
  { { echo "$as_me:$LINENO: error: conditional \"WITH_LIBATOMIC\" was never defined.
 
22622
Usually this means the macro was only invoked conditionally." >&5
 
22623
echo "$as_me: error: conditional \"WITH_LIBATOMIC\" was never defined.
 
22624
Usually this means the macro was only invoked conditionally." >&2;}
 
22625
   { (exit 1); exit 1; }; }
 
22626
fi
 
22627
 
 
22628
: ${CONFIG_STATUS=./config.status}
 
22629
ac_clean_files_save=$ac_clean_files
 
22630
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
22631
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
22632
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
22633
cat >$CONFIG_STATUS <<_ACEOF
 
22634
#! $SHELL
 
22635
# Generated by $as_me.
 
22636
# Run this file to recreate the current configuration.
 
22637
# Compiler output produced by configure, useful for debugging
 
22638
# configure, is in config.log if it exists.
 
22639
 
 
22640
debug=false
 
22641
ac_cs_recheck=false
 
22642
ac_cs_silent=false
 
22643
SHELL=\${CONFIG_SHELL-$SHELL}
 
22644
_ACEOF
 
22645
 
 
22646
cat >>$CONFIG_STATUS <<\_ACEOF
 
22647
## --------------------- ##
 
22648
## M4sh Initialization.  ##
 
22649
## --------------------- ##
 
22650
 
 
22651
# Be more Bourne compatible
 
22652
DUALCASE=1; export DUALCASE # for MKS sh
 
22653
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
22654
  emulate sh
 
22655
  NULLCMD=:
 
22656
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
22657
  # is contrary to our usage.  Disable this feature.
 
22658
  alias -g '${1+"$@"}'='"$@"'
 
22659
  setopt NO_GLOB_SUBST
 
22660
else
 
22661
  case `(set -o) 2>/dev/null` in
 
22662
  *posix*) set -o posix ;;
 
22663
esac
 
22664
 
 
22665
fi
 
22666
 
 
22667
 
 
22668
 
 
22669
 
 
22670
# PATH needs CR
 
22671
# Avoid depending upon Character Ranges.
 
22672
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
22673
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
22674
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
22675
as_cr_digits='0123456789'
 
22676
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
22677
 
 
22678
# The user is always right.
 
22679
if test "${PATH_SEPARATOR+set}" != set; then
 
22680
  echo "#! /bin/sh" >conf$$.sh
 
22681
  echo  "exit 0"   >>conf$$.sh
 
22682
  chmod +x conf$$.sh
 
22683
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
22684
    PATH_SEPARATOR=';'
 
22685
  else
 
22686
    PATH_SEPARATOR=:
 
22687
  fi
 
22688
  rm -f conf$$.sh
 
22689
fi
 
22690
 
 
22691
# Support unset when possible.
 
22692
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
22693
  as_unset=unset
 
22694
else
 
22695
  as_unset=false
 
22696
fi
 
22697
 
 
22698
 
 
22699
# IFS
 
22700
# We need space, tab and new line, in precisely that order.  Quoting is
 
22701
# there to prevent editors from complaining about space-tab.
 
22702
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
22703
# splitting by setting IFS to empty value.)
 
22704
as_nl='
 
22705
'
 
22706
IFS=" ""        $as_nl"
 
22707
 
 
22708
# Find who we are.  Look in the path if we contain no directory separator.
 
22709
case $0 in
 
22710
  *[\\/]* ) as_myself=$0 ;;
 
22711
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22712
for as_dir in $PATH
 
22713
do
 
22714
  IFS=$as_save_IFS
 
22715
  test -z "$as_dir" && as_dir=.
 
22716
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
22717
done
 
22718
IFS=$as_save_IFS
 
22719
 
 
22720
     ;;
 
22721
esac
 
22722
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
22723
# in which case we are not to be found in the path.
 
22724
if test "x$as_myself" = x; then
 
22725
  as_myself=$0
 
22726
fi
 
22727
if test ! -f "$as_myself"; then
 
22728
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
22729
  { (exit 1); exit 1; }
 
22730
fi
 
22731
 
 
22732
# Work around bugs in pre-3.0 UWIN ksh.
 
22733
for as_var in ENV MAIL MAILPATH
 
22734
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
22735
done
 
22736
PS1='$ '
 
22737
PS2='> '
 
22738
PS4='+ '
 
22739
 
 
22740
# NLS nuisances.
 
22741
for as_var in \
 
22742
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
22743
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
22744
  LC_TELEPHONE LC_TIME
 
22745
do
 
22746
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
22747
    eval $as_var=C; export $as_var
 
22748
  else
 
22749
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
22750
  fi
 
22751
done
 
22752
 
 
22753
# Required to use basename.
 
22754
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
22755
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
22756
  as_expr=expr
 
22757
else
 
22758
  as_expr=false
 
22759
fi
 
22760
 
 
22761
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
22762
  as_basename=basename
 
22763
else
 
22764
  as_basename=false
 
22765
fi
 
22766
 
 
22767
 
 
22768
# Name of the executable.
 
22769
as_me=`$as_basename -- "$0" ||
 
22770
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
22771
         X"$0" : 'X\(//\)$' \| \
 
22772
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
22773
echo X/"$0" |
 
22774
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
22775
            s//\1/
 
22776
            q
 
22777
          }
 
22778
          /^X\/\(\/\/\)$/{
 
22779
            s//\1/
 
22780
            q
 
22781
          }
 
22782
          /^X\/\(\/\).*/{
 
22783
            s//\1/
 
22784
            q
 
22785
          }
 
22786
          s/.*/./; q'`
 
22787
 
 
22788
# CDPATH.
 
22789
$as_unset CDPATH
 
22790
 
 
22791
 
 
22792
 
 
22793
  as_lineno_1=$LINENO
 
22794
  as_lineno_2=$LINENO
 
22795
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22796
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
22797
 
 
22798
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
22799
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
22800
  # line-number line after each line using $LINENO; the second 'sed'
 
22801
  # does the real work.  The second script uses 'N' to pair each
 
22802
  # line-number line with the line containing $LINENO, and appends
 
22803
  # trailing '-' during substitution so that $LINENO is not a special
 
22804
  # case at line end.
 
22805
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
22806
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
22807
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
22808
  sed -n '
 
22809
    p
 
22810
    /[$]LINENO/=
 
22811
  ' <$as_myself |
 
22812
    sed '
 
22813
      s/[$]LINENO.*/&-/
 
22814
      t lineno
 
22815
      b
 
22816
      :lineno
 
22817
      N
 
22818
      :loop
 
22819
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
22820
      t loop
 
22821
      s/-\n.*//
 
22822
    ' >$as_me.lineno &&
 
22823
  chmod +x "$as_me.lineno" ||
 
22824
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
22825
   { (exit 1); exit 1; }; }
 
22826
 
 
22827
  # Don't try to exec as it changes $[0], causing all sort of problems
 
22828
  # (the dirname of $[0] is not the place where we might find the
 
22829
  # original and so on.  Autoconf is especially sensitive to this).
 
22830
  . "./$as_me.lineno"
 
22831
  # Exit status is that of the last command.
 
22832
  exit
 
22833
}
 
22834
 
 
22835
 
 
22836
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
22837
  as_dirname=dirname
 
22838
else
 
22839
  as_dirname=false
 
22840
fi
 
22841
 
 
22842
ECHO_C= ECHO_N= ECHO_T=
 
22843
case `echo -n x` in
 
22844
-n*)
 
22845
  case `echo 'x\c'` in
 
22846
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
22847
  *)   ECHO_C='\c';;
 
22848
  esac;;
 
22849
*)
 
22850
  ECHO_N='-n';;
 
22851
esac
 
22852
 
 
22853
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
22854
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
22855
  as_expr=expr
 
22856
else
 
22857
  as_expr=false
 
22858
fi
 
22859
 
 
22860
rm -f conf$$ conf$$.exe conf$$.file
 
22861
if test -d conf$$.dir; then
 
22862
  rm -f conf$$.dir/conf$$.file
 
22863
else
 
22864
  rm -f conf$$.dir
 
22865
  mkdir conf$$.dir
 
22866
fi
 
22867
echo >conf$$.file
 
22868
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
22869
  as_ln_s='ln -s'
 
22870
  # ... but there are two gotchas:
 
22871
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
22872
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
22873
  # In both cases, we have to default to `cp -p'.
 
22874
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
22875
    as_ln_s='cp -p'
 
22876
elif ln conf$$.file conf$$ 2>/dev/null; then
 
22877
  as_ln_s=ln
 
22878
else
 
22879
  as_ln_s='cp -p'
 
22880
fi
 
22881
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
22882
rmdir conf$$.dir 2>/dev/null
 
22883
 
 
22884
if mkdir -p . 2>/dev/null; then
 
22885
  as_mkdir_p=:
 
22886
else
 
22887
  test -d ./-p && rmdir ./-p
 
22888
  as_mkdir_p=false
 
22889
fi
 
22890
 
 
22891
if test -x / >/dev/null 2>&1; then
 
22892
  as_test_x='test -x'
 
22893
else
 
22894
  if ls -dL / >/dev/null 2>&1; then
 
22895
    as_ls_L_option=L
 
22896
  else
 
22897
    as_ls_L_option=
 
22898
  fi
 
22899
  as_test_x='
 
22900
    eval sh -c '\''
 
22901
      if test -d "$1"; then
 
22902
        test -d "$1/.";
 
22903
      else
 
22904
        case $1 in
 
22905
        -*)set "./$1";;
 
22906
        esac;
 
22907
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
22908
        ???[sx]*):;;*)false;;esac;fi
 
22909
    '\'' sh
 
22910
  '
 
22911
fi
 
22912
as_executable_p=$as_test_x
 
22913
 
 
22914
# Sed expression to map a string onto a valid CPP name.
 
22915
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
22916
 
 
22917
# Sed expression to map a string onto a valid variable name.
 
22918
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
22919
 
 
22920
 
 
22921
exec 6>&1
 
22922
 
 
22923
# Save the log message, to keep $[0] and so on meaningful, and to
 
22924
# report actual input values of CONFIG_FILES etc. instead of their
 
22925
# values after options handling.
 
22926
ac_log="
 
22927
This file was extended by Ceph distributed file system $as_me .1, which was
 
22928
generated by GNU Autoconf 2.61.  Invocation command line was
 
22929
 
 
22930
  CONFIG_FILES    = $CONFIG_FILES
 
22931
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
22932
  CONFIG_LINKS    = $CONFIG_LINKS
 
22933
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
22934
  $ $0 $@
 
22935
 
 
22936
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
22937
"
 
22938
 
 
22939
_ACEOF
 
22940
 
 
22941
cat >>$CONFIG_STATUS <<_ACEOF
 
22942
# Files that config.status was made for.
 
22943
config_files="$ac_config_files"
 
22944
config_headers="$ac_config_headers"
 
22945
config_commands="$ac_config_commands"
 
22946
 
 
22947
_ACEOF
 
22948
 
 
22949
cat >>$CONFIG_STATUS <<\_ACEOF
 
22950
ac_cs_usage="\
 
22951
\`$as_me' instantiates files from templates according to the
 
22952
current configuration.
 
22953
 
 
22954
Usage: $0 [OPTIONS] [FILE]...
 
22955
 
 
22956
  -h, --help       print this help, then exit
 
22957
  -V, --version    print version number and configuration settings, then exit
 
22958
  -q, --quiet      do not print progress messages
 
22959
  -d, --debug      don't remove temporary files
 
22960
      --recheck    update $as_me by reconfiguring in the same conditions
 
22961
  --file=FILE[:TEMPLATE]
 
22962
                   instantiate the configuration file FILE
 
22963
  --header=FILE[:TEMPLATE]
 
22964
                   instantiate the configuration header FILE
 
22965
 
 
22966
Configuration files:
 
22967
$config_files
 
22968
 
 
22969
Configuration headers:
 
22970
$config_headers
 
22971
 
 
22972
Configuration commands:
 
22973
$config_commands
 
22974
 
 
22975
Report bugs to <bug-autoconf@gnu.org>."
 
22976
 
 
22977
_ACEOF
 
22978
cat >>$CONFIG_STATUS <<_ACEOF
 
22979
ac_cs_version="\\
 
22980
Ceph distributed file system config.status .1
 
22981
configured by $0, generated by GNU Autoconf 2.61,
 
22982
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
22983
 
 
22984
Copyright (C) 2006 Free Software Foundation, Inc.
 
22985
This config.status script is free software; the Free Software Foundation
 
22986
gives unlimited permission to copy, distribute and modify it."
 
22987
 
 
22988
ac_pwd='$ac_pwd'
 
22989
srcdir='$srcdir'
 
22990
INSTALL='$INSTALL'
 
22991
MKDIR_P='$MKDIR_P'
 
22992
_ACEOF
 
22993
 
 
22994
cat >>$CONFIG_STATUS <<\_ACEOF
 
22995
# If no file are specified by the user, then we need to provide default
 
22996
# value.  By we need to know if files were specified by the user.
 
22997
ac_need_defaults=:
 
22998
while test $# != 0
 
22999
do
 
23000
  case $1 in
 
23001
  --*=*)
 
23002
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
23003
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
23004
    ac_shift=:
 
23005
    ;;
 
23006
  *)
 
23007
    ac_option=$1
 
23008
    ac_optarg=$2
 
23009
    ac_shift=shift
 
23010
    ;;
 
23011
  esac
 
23012
 
 
23013
  case $ac_option in
 
23014
  # Handling of the options.
 
23015
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
23016
    ac_cs_recheck=: ;;
 
23017
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
23018
    echo "$ac_cs_version"; exit ;;
 
23019
  --debug | --debu | --deb | --de | --d | -d )
 
23020
    debug=: ;;
 
23021
  --file | --fil | --fi | --f )
 
23022
    $ac_shift
 
23023
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
23024
    ac_need_defaults=false;;
 
23025
  --header | --heade | --head | --hea )
 
23026
    $ac_shift
 
23027
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
23028
    ac_need_defaults=false;;
 
23029
  --he | --h)
 
23030
    # Conflict between --help and --header
 
23031
    { echo "$as_me: error: ambiguous option: $1
 
23032
Try \`$0 --help' for more information." >&2
 
23033
   { (exit 1); exit 1; }; };;
 
23034
  --help | --hel | -h )
 
23035
    echo "$ac_cs_usage"; exit ;;
 
23036
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
23037
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
23038
    ac_cs_silent=: ;;
 
23039
 
 
23040
  # This is an error.
 
23041
  -*) { echo "$as_me: error: unrecognized option: $1
 
23042
Try \`$0 --help' for more information." >&2
 
23043
   { (exit 1); exit 1; }; } ;;
 
23044
 
 
23045
  *) ac_config_targets="$ac_config_targets $1"
 
23046
     ac_need_defaults=false ;;
 
23047
 
 
23048
  esac
 
23049
  shift
 
23050
done
 
23051
 
 
23052
ac_configure_extra_args=
 
23053
 
 
23054
if $ac_cs_silent; then
 
23055
  exec 6>/dev/null
 
23056
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
23057
fi
 
23058
 
 
23059
_ACEOF
 
23060
cat >>$CONFIG_STATUS <<_ACEOF
 
23061
if \$ac_cs_recheck; then
 
23062
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
23063
  CONFIG_SHELL=$SHELL
 
23064
  export CONFIG_SHELL
 
23065
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
23066
fi
 
23067
 
 
23068
_ACEOF
 
23069
cat >>$CONFIG_STATUS <<\_ACEOF
 
23070
exec 5>>config.log
 
23071
{
 
23072
  echo
 
23073
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
23074
## Running $as_me. ##
 
23075
_ASBOX
 
23076
  echo "$ac_log"
 
23077
} >&5
 
23078
 
 
23079
_ACEOF
 
23080
cat >>$CONFIG_STATUS <<_ACEOF
 
23081
#
 
23082
# INIT-COMMANDS
 
23083
#
 
23084
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
23085
 
 
23086
_ACEOF
 
23087
 
 
23088
cat >>$CONFIG_STATUS <<\_ACEOF
 
23089
 
 
23090
# Handling of arguments.
 
23091
for ac_config_target in $ac_config_targets
 
23092
do
 
23093
  case $ac_config_target in
 
23094
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
23095
    "src/acconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/acconfig.h" ;;
 
23096
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
23097
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
23098
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
23099
    "ceph.spec") CONFIG_FILES="$CONFIG_FILES ceph.spec" ;;
 
23100
 
 
23101
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
23102
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
23103
   { (exit 1); exit 1; }; };;
 
23104
  esac
 
23105
done
 
23106
 
 
23107
 
 
23108
# If the user did not use the arguments to specify the items to instantiate,
 
23109
# then the envvar interface is used.  Set only those that are not.
 
23110
# We use the long form for the default assignment because of an extremely
 
23111
# bizarre bug on SunOS 4.1.3.
 
23112
if $ac_need_defaults; then
 
23113
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
23114
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
23115
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
23116
fi
 
23117
 
 
23118
# Have a temporary directory for convenience.  Make it in the build tree
 
23119
# simply because there is no reason against having it here, and in addition,
 
23120
# creating and moving files from /tmp can sometimes cause problems.
 
23121
# Hook for its removal unless debugging.
 
23122
# Note that there is a small window in which the directory will not be cleaned:
 
23123
# after its creation but before its name has been assigned to `$tmp'.
 
23124
$debug ||
 
23125
{
 
23126
  tmp=
 
23127
  trap 'exit_status=$?
 
23128
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
23129
' 0
 
23130
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
23131
}
 
23132
# Create a (secure) tmp directory for tmp files.
 
23133
 
 
23134
{
 
23135
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
23136
  test -n "$tmp" && test -d "$tmp"
 
23137
}  ||
 
23138
{
 
23139
  tmp=./conf$$-$RANDOM
 
23140
  (umask 077 && mkdir "$tmp")
 
23141
} ||
 
23142
{
 
23143
   echo "$me: cannot create a temporary directory in ." >&2
 
23144
   { (exit 1); exit 1; }
 
23145
}
 
23146
 
 
23147
#
 
23148
# Set up the sed scripts for CONFIG_FILES section.
 
23149
#
 
23150
 
 
23151
# No need to generate the scripts if there are no CONFIG_FILES.
 
23152
# This happens for instance when ./config.status config.h
 
23153
if test -n "$CONFIG_FILES"; then
 
23154
 
 
23155
_ACEOF
 
23156
 
 
23157
 
 
23158
 
 
23159
ac_delim='%!_!# '
 
23160
for ac_last_try in false false false false false :; do
 
23161
  cat >conf$$subs.sed <<_ACEOF
 
23162
SHELL!$SHELL$ac_delim
 
23163
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
23164
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
23165
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
23166
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
23167
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
23168
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
23169
exec_prefix!$exec_prefix$ac_delim
 
23170
prefix!$prefix$ac_delim
 
23171
program_transform_name!$program_transform_name$ac_delim
 
23172
bindir!$bindir$ac_delim
 
23173
sbindir!$sbindir$ac_delim
 
23174
libexecdir!$libexecdir$ac_delim
 
23175
datarootdir!$datarootdir$ac_delim
 
23176
datadir!$datadir$ac_delim
 
23177
sysconfdir!$sysconfdir$ac_delim
 
23178
sharedstatedir!$sharedstatedir$ac_delim
 
23179
localstatedir!$localstatedir$ac_delim
 
23180
includedir!$includedir$ac_delim
 
23181
oldincludedir!$oldincludedir$ac_delim
 
23182
docdir!$docdir$ac_delim
 
23183
infodir!$infodir$ac_delim
 
23184
htmldir!$htmldir$ac_delim
 
23185
dvidir!$dvidir$ac_delim
 
23186
pdfdir!$pdfdir$ac_delim
 
23187
psdir!$psdir$ac_delim
 
23188
libdir!$libdir$ac_delim
 
23189
localedir!$localedir$ac_delim
 
23190
mandir!$mandir$ac_delim
 
23191
DEFS!$DEFS$ac_delim
 
23192
ECHO_C!$ECHO_C$ac_delim
 
23193
ECHO_N!$ECHO_N$ac_delim
 
23194
ECHO_T!$ECHO_T$ac_delim
 
23195
LIBS!$LIBS$ac_delim
 
23196
build_alias!$build_alias$ac_delim
 
23197
host_alias!$host_alias$ac_delim
 
23198
target_alias!$target_alias$ac_delim
 
23199
build!$build$ac_delim
 
23200
build_cpu!$build_cpu$ac_delim
 
23201
build_vendor!$build_vendor$ac_delim
 
23202
build_os!$build_os$ac_delim
 
23203
host!$host$ac_delim
 
23204
host_cpu!$host_cpu$ac_delim
 
23205
host_vendor!$host_vendor$ac_delim
 
23206
host_os!$host_os$ac_delim
 
23207
target!$target$ac_delim
 
23208
target_cpu!$target_cpu$ac_delim
 
23209
target_vendor!$target_vendor$ac_delim
 
23210
target_os!$target_os$ac_delim
 
23211
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
23212
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
23213
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
23214
am__isrc!$am__isrc$ac_delim
 
23215
CYGPATH_W!$CYGPATH_W$ac_delim
 
23216
PACKAGE!$PACKAGE$ac_delim
 
23217
VERSION!$VERSION$ac_delim
 
23218
ACLOCAL!$ACLOCAL$ac_delim
 
23219
AUTOCONF!$AUTOCONF$ac_delim
 
23220
AUTOMAKE!$AUTOMAKE$ac_delim
 
23221
AUTOHEADER!$AUTOHEADER$ac_delim
 
23222
MAKEINFO!$MAKEINFO$ac_delim
 
23223
install_sh!$install_sh$ac_delim
 
23224
STRIP!$STRIP$ac_delim
 
23225
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
23226
mkdir_p!$mkdir_p$ac_delim
 
23227
AWK!$AWK$ac_delim
 
23228
SET_MAKE!$SET_MAKE$ac_delim
 
23229
am__leading_dot!$am__leading_dot$ac_delim
 
23230
AMTAR!$AMTAR$ac_delim
 
23231
am__tar!$am__tar$ac_delim
 
23232
am__untar!$am__untar$ac_delim
 
23233
CC!$CC$ac_delim
 
23234
CFLAGS!$CFLAGS$ac_delim
 
23235
LDFLAGS!$LDFLAGS$ac_delim
 
23236
CPPFLAGS!$CPPFLAGS$ac_delim
 
23237
ac_ct_CC!$ac_ct_CC$ac_delim
 
23238
EXEEXT!$EXEEXT$ac_delim
 
23239
OBJEXT!$OBJEXT$ac_delim
 
23240
DEPDIR!$DEPDIR$ac_delim
 
23241
am__include!$am__include$ac_delim
 
23242
am__quote!$am__quote$ac_delim
 
23243
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
23244
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
23245
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
23246
CCDEPMODE!$CCDEPMODE$ac_delim
 
23247
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
23248
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
23249
SED!$SED$ac_delim
 
23250
GREP!$GREP$ac_delim
 
23251
EGREP!$EGREP$ac_delim
 
23252
LN_S!$LN_S$ac_delim
 
23253
ECHO!$ECHO$ac_delim
 
23254
AR!$AR$ac_delim
 
23255
RANLIB!$RANLIB$ac_delim
 
23256
DSYMUTIL!$DSYMUTIL$ac_delim
 
23257
NMEDIT!$NMEDIT$ac_delim
 
23258
CPP!$CPP$ac_delim
 
23259
_ACEOF
 
23260
 
 
23261
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
23262
    break
 
23263
  elif $ac_last_try; then
 
23264
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
23265
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
23266
   { (exit 1); exit 1; }; }
 
23267
  else
 
23268
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
23269
  fi
 
23270
done
 
23271
 
 
23272
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
23273
if test -n "$ac_eof"; then
 
23274
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
23275
  ac_eof=`expr $ac_eof + 1`
 
23276
fi
 
23277
 
 
23278
cat >>$CONFIG_STATUS <<_ACEOF
 
23279
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
23280
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
23281
_ACEOF
 
23282
sed '
 
23283
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
23284
s/^/s,@/; s/!/@,|#_!!_#|/
 
23285
:n
 
23286
t n
 
23287
s/'"$ac_delim"'$/,g/; t
 
23288
s/$/\\/; p
 
23289
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
23290
' >>$CONFIG_STATUS <conf$$subs.sed
 
23291
rm -f conf$$subs.sed
 
23292
cat >>$CONFIG_STATUS <<_ACEOF
 
23293
CEOF$ac_eof
 
23294
_ACEOF
 
23295
 
 
23296
 
 
23297
ac_delim='%!_!# '
 
23298
for ac_last_try in false false false false false :; do
 
23299
  cat >conf$$subs.sed <<_ACEOF
 
23300
CXX!$CXX$ac_delim
 
23301
CXXFLAGS!$CXXFLAGS$ac_delim
 
23302
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
23303
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
23304
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
23305
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
23306
CXXCPP!$CXXCPP$ac_delim
 
23307
F77!$F77$ac_delim
 
23308
FFLAGS!$FFLAGS$ac_delim
 
23309
ac_ct_F77!$ac_ct_F77$ac_delim
 
23310
LIBTOOL!$LIBTOOL$ac_delim
 
23311
WITH_DEBUG_TRUE!$WITH_DEBUG_TRUE$ac_delim
 
23312
WITH_DEBUG_FALSE!$WITH_DEBUG_FALSE$ac_delim
 
23313
WITH_RADOSGW_TRUE!$WITH_RADOSGW_TRUE$ac_delim
 
23314
WITH_RADOSGW_FALSE!$WITH_RADOSGW_FALSE$ac_delim
 
23315
LIBFUSE!$LIBFUSE$ac_delim
 
23316
WITH_FUSE_TRUE!$WITH_FUSE_TRUE$ac_delim
 
23317
WITH_FUSE_FALSE!$WITH_FUSE_FALSE$ac_delim
 
23318
WITH_HADOOPCLIENT_TRUE!$WITH_HADOOPCLIENT_TRUE$ac_delim
 
23319
WITH_HADOOPCLIENT_FALSE!$WITH_HADOOPCLIENT_FALSE$ac_delim
 
23320
WITH_LIBATOMIC_TRUE!$WITH_LIBATOMIC_TRUE$ac_delim
 
23321
WITH_LIBATOMIC_FALSE!$WITH_LIBATOMIC_FALSE$ac_delim
 
23322
LIBOBJS!$LIBOBJS$ac_delim
 
23323
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
23324
_ACEOF
 
23325
 
 
23326
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
 
23327
    break
 
23328
  elif $ac_last_try; then
 
23329
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
23330
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
23331
   { (exit 1); exit 1; }; }
 
23332
  else
 
23333
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
23334
  fi
 
23335
done
 
23336
 
 
23337
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
23338
if test -n "$ac_eof"; then
 
23339
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
23340
  ac_eof=`expr $ac_eof + 1`
 
23341
fi
 
23342
 
 
23343
cat >>$CONFIG_STATUS <<_ACEOF
 
23344
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
23345
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
23346
_ACEOF
 
23347
sed '
 
23348
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
23349
s/^/s,@/; s/!/@,|#_!!_#|/
 
23350
:n
 
23351
t n
 
23352
s/'"$ac_delim"'$/,g/; t
 
23353
s/$/\\/; p
 
23354
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
23355
' >>$CONFIG_STATUS <conf$$subs.sed
 
23356
rm -f conf$$subs.sed
 
23357
cat >>$CONFIG_STATUS <<_ACEOF
 
23358
:end
 
23359
s/|#_!!_#|//g
 
23360
CEOF$ac_eof
 
23361
_ACEOF
 
23362
 
 
23363
 
 
23364
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
23365
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
23366
# trailing colons and then remove the whole line if VPATH becomes empty
 
23367
# (actually we leave an empty line to preserve line numbers).
 
23368
if test "x$srcdir" = x.; then
 
23369
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
23370
s/:*\$(srcdir):*/:/
 
23371
s/:*\${srcdir}:*/:/
 
23372
s/:*@srcdir@:*/:/
 
23373
s/^\([^=]*=[     ]*\):*/\1/
 
23374
s/:*$//
 
23375
s/^[^=]*=[       ]*$//
 
23376
}'
 
23377
fi
 
23378
 
 
23379
cat >>$CONFIG_STATUS <<\_ACEOF
 
23380
fi # test -n "$CONFIG_FILES"
 
23381
 
 
23382
 
 
23383
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
23384
do
 
23385
  case $ac_tag in
 
23386
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
23387
  esac
 
23388
  case $ac_mode$ac_tag in
 
23389
  :[FHL]*:*);;
 
23390
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
23391
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
23392
   { (exit 1); exit 1; }; };;
 
23393
  :[FH]-) ac_tag=-:-;;
 
23394
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
23395
  esac
 
23396
  ac_save_IFS=$IFS
 
23397
  IFS=:
 
23398
  set x $ac_tag
 
23399
  IFS=$ac_save_IFS
 
23400
  shift
 
23401
  ac_file=$1
 
23402
  shift
 
23403
 
 
23404
  case $ac_mode in
 
23405
  :L) ac_source=$1;;
 
23406
  :[FH])
 
23407
    ac_file_inputs=
 
23408
    for ac_f
 
23409
    do
 
23410
      case $ac_f in
 
23411
      -) ac_f="$tmp/stdin";;
 
23412
      *) # Look for the file first in the build tree, then in the source tree
 
23413
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
23414
         # because $ac_f cannot contain `:'.
 
23415
         test -f "$ac_f" ||
 
23416
           case $ac_f in
 
23417
           [\\/$]*) false;;
 
23418
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
23419
           esac ||
 
23420
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
23421
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
23422
   { (exit 1); exit 1; }; };;
 
23423
      esac
 
23424
      ac_file_inputs="$ac_file_inputs $ac_f"
 
23425
    done
 
23426
 
 
23427
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23428
    # use $as_me), people would be surprised to read:
 
23429
    #    /* config.h.  Generated by config.status.  */
 
23430
    configure_input="Generated from "`IFS=:
 
23431
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
23432
    if test x"$ac_file" != x-; then
 
23433
      configure_input="$ac_file.  $configure_input"
 
23434
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
23435
echo "$as_me: creating $ac_file" >&6;}
 
23436
    fi
 
23437
 
 
23438
    case $ac_tag in
 
23439
    *:-:* | *:-) cat >"$tmp/stdin";;
 
23440
    esac
 
23441
    ;;
 
23442
  esac
 
23443
 
 
23444
  ac_dir=`$as_dirname -- "$ac_file" ||
 
23445
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23446
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23447
         X"$ac_file" : 'X\(//\)$' \| \
 
23448
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
23449
echo X"$ac_file" |
 
23450
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23451
            s//\1/
 
23452
            q
 
23453
          }
 
23454
          /^X\(\/\/\)[^/].*/{
 
23455
            s//\1/
 
23456
            q
 
23457
          }
 
23458
          /^X\(\/\/\)$/{
 
23459
            s//\1/
 
23460
            q
 
23461
          }
 
23462
          /^X\(\/\).*/{
 
23463
            s//\1/
 
23464
            q
 
23465
          }
 
23466
          s/.*/./; q'`
 
23467
  { as_dir="$ac_dir"
 
23468
  case $as_dir in #(
 
23469
  -*) as_dir=./$as_dir;;
 
23470
  esac
 
23471
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
23472
    as_dirs=
 
23473
    while :; do
 
23474
      case $as_dir in #(
 
23475
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
23476
      *) as_qdir=$as_dir;;
 
23477
      esac
 
23478
      as_dirs="'$as_qdir' $as_dirs"
 
23479
      as_dir=`$as_dirname -- "$as_dir" ||
 
23480
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23481
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23482
         X"$as_dir" : 'X\(//\)$' \| \
 
23483
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
23484
echo X"$as_dir" |
 
23485
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23486
            s//\1/
 
23487
            q
 
23488
          }
 
23489
          /^X\(\/\/\)[^/].*/{
 
23490
            s//\1/
 
23491
            q
 
23492
          }
 
23493
          /^X\(\/\/\)$/{
 
23494
            s//\1/
 
23495
            q
 
23496
          }
 
23497
          /^X\(\/\).*/{
 
23498
            s//\1/
 
23499
            q
 
23500
          }
 
23501
          s/.*/./; q'`
 
23502
      test -d "$as_dir" && break
 
23503
    done
 
23504
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
23505
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
23506
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
23507
   { (exit 1); exit 1; }; }; }
 
23508
  ac_builddir=.
 
23509
 
 
23510
case "$ac_dir" in
 
23511
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23512
*)
 
23513
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23514
  # A ".." for each directory in $ac_dir_suffix.
 
23515
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
23516
  case $ac_top_builddir_sub in
 
23517
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23518
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
23519
  esac ;;
 
23520
esac
 
23521
ac_abs_top_builddir=$ac_pwd
 
23522
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
23523
# for backward compatibility:
 
23524
ac_top_builddir=$ac_top_build_prefix
 
23525
 
 
23526
case $srcdir in
 
23527
  .)  # We are building in place.
 
23528
    ac_srcdir=.
 
23529
    ac_top_srcdir=$ac_top_builddir_sub
 
23530
    ac_abs_top_srcdir=$ac_pwd ;;
 
23531
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
23532
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23533
    ac_top_srcdir=$srcdir
 
23534
    ac_abs_top_srcdir=$srcdir ;;
 
23535
  *) # Relative name.
 
23536
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
23537
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
23538
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
23539
esac
 
23540
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
23541
 
 
23542
 
 
23543
  case $ac_mode in
 
23544
  :F)
 
23545
  #
 
23546
  # CONFIG_FILE
 
23547
  #
 
23548
 
 
23549
  case $INSTALL in
 
23550
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
23551
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
23552
  esac
 
23553
  ac_MKDIR_P=$MKDIR_P
 
23554
  case $MKDIR_P in
 
23555
  [\\/$]* | ?:[\\/]* ) ;;
 
23556
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
23557
  esac
 
23558
_ACEOF
 
23559
 
 
23560
cat >>$CONFIG_STATUS <<\_ACEOF
 
23561
# If the template does not know about datarootdir, expand it.
 
23562
# FIXME: This hack should be removed a few years after 2.60.
 
23563
ac_datarootdir_hack=; ac_datarootdir_seen=
 
23564
 
 
23565
case `sed -n '/datarootdir/ {
 
23566
  p
 
23567
  q
 
23568
}
 
23569
/@datadir@/p
 
23570
/@docdir@/p
 
23571
/@infodir@/p
 
23572
/@localedir@/p
 
23573
/@mandir@/p
 
23574
' $ac_file_inputs` in
 
23575
*datarootdir*) ac_datarootdir_seen=yes;;
 
23576
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
23577
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
23578
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
23579
_ACEOF
 
23580
cat >>$CONFIG_STATUS <<_ACEOF
 
23581
  ac_datarootdir_hack='
 
23582
  s&@datadir@&$datadir&g
 
23583
  s&@docdir@&$docdir&g
 
23584
  s&@infodir@&$infodir&g
 
23585
  s&@localedir@&$localedir&g
 
23586
  s&@mandir@&$mandir&g
 
23587
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
23588
esac
 
23589
_ACEOF
 
23590
 
 
23591
# Neutralize VPATH when `$srcdir' = `.'.
 
23592
# Shell code in configure.ac might set extrasub.
 
23593
# FIXME: do we really want to maintain this feature?
 
23594
cat >>$CONFIG_STATUS <<_ACEOF
 
23595
  sed "$ac_vpsub
 
23596
$extrasub
 
23597
_ACEOF
 
23598
cat >>$CONFIG_STATUS <<\_ACEOF
 
23599
:t
 
23600
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
23601
s&@configure_input@&$configure_input&;t t
 
23602
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
23603
s&@srcdir@&$ac_srcdir&;t t
 
23604
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
23605
s&@top_srcdir@&$ac_top_srcdir&;t t
 
23606
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
23607
s&@builddir@&$ac_builddir&;t t
 
23608
s&@abs_builddir@&$ac_abs_builddir&;t t
 
23609
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
23610
s&@INSTALL@&$ac_INSTALL&;t t
 
23611
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
23612
$ac_datarootdir_hack
 
23613
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
23614
 
 
23615
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
23616
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
23617
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
23618
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
23619
which seems to be undefined.  Please make sure it is defined." >&5
 
23620
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
23621
which seems to be undefined.  Please make sure it is defined." >&2;}
 
23622
 
 
23623
  rm -f "$tmp/stdin"
 
23624
  case $ac_file in
 
23625
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
23626
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
23627
  esac
 
23628
 ;;
 
23629
  :H)
 
23630
  #
 
23631
  # CONFIG_HEADER
 
23632
  #
 
23633
_ACEOF
 
23634
 
 
23635
# Transform confdefs.h into a sed script `conftest.defines', that
 
23636
# substitutes the proper values into config.h.in to produce config.h.
 
23637
rm -f conftest.defines conftest.tail
 
23638
# First, append a space to every undef/define line, to ease matching.
 
23639
echo 's/$/ /' >conftest.defines
 
23640
# Then, protect against being on the right side of a sed subst, or in
 
23641
# an unquoted here document, in config.status.  If some macros were
 
23642
# called several times there might be several #defines for the same
 
23643
# symbol, which is useless.  But do not sort them, since the last
 
23644
# AC_DEFINE must be honored.
 
23645
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
23646
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
23647
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
23648
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
23649
# just an empty string.
 
23650
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
23651
ac_dB='\\)[      (].*,\\1define\\2'
 
23652
ac_dC=' '
 
23653
ac_dD=' ,'
 
23654
 
 
23655
uniq confdefs.h |
 
23656
  sed -n '
 
23657
        t rset
 
23658
        :rset
 
23659
        s/^[     ]*#[    ]*define[       ][      ]*//
 
23660
        t ok
 
23661
        d
 
23662
        :ok
 
23663
        s/[\\&,]/\\&/g
 
23664
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
23665
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
23666
  ' >>conftest.defines
 
23667
 
 
23668
# Remove the space that was appended to ease matching.
 
23669
# Then replace #undef with comments.  This is necessary, for
 
23670
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
23671
# on some systems where configure will not decide to define it.
 
23672
# (The regexp can be short, since the line contains either #define or #undef.)
 
23673
echo 's/ $//
 
23674
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
23675
 
 
23676
# Break up conftest.defines:
 
23677
ac_max_sed_lines=50
 
23678
 
 
23679
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
23680
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
23681
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
23682
# et cetera.
 
23683
ac_in='$ac_file_inputs'
 
23684
ac_out='"$tmp/out1"'
 
23685
ac_nxt='"$tmp/out2"'
 
23686
 
 
23687
while :
 
23688
do
 
23689
  # Write a here document:
 
23690
    cat >>$CONFIG_STATUS <<_ACEOF
 
23691
    # First, check the format of the line:
 
23692
    cat >"\$tmp/defines.sed" <<\\CEOF
 
23693
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
23694
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
23695
b
 
23696
:def
 
23697
_ACEOF
 
23698
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
23699
  echo 'CEOF
 
23700
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
23701
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
23702
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
23703
  grep . conftest.tail >/dev/null || break
 
23704
  rm -f conftest.defines
 
23705
  mv conftest.tail conftest.defines
 
23706
done
 
23707
rm -f conftest.defines conftest.tail
 
23708
 
 
23709
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
23710
cat >>$CONFIG_STATUS <<\_ACEOF
 
23711
  if test x"$ac_file" != x-; then
 
23712
    echo "/* $configure_input  */" >"$tmp/config.h"
 
23713
    cat "$ac_result" >>"$tmp/config.h"
 
23714
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
23715
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
23716
echo "$as_me: $ac_file is unchanged" >&6;}
 
23717
    else
 
23718
      rm -f $ac_file
 
23719
      mv "$tmp/config.h" $ac_file
 
23720
    fi
 
23721
  else
 
23722
    echo "/* $configure_input  */"
 
23723
    cat "$ac_result"
 
23724
  fi
 
23725
  rm -f "$tmp/out12"
 
23726
# Compute $ac_file's index in $config_headers.
 
23727
_am_arg=$ac_file
 
23728
_am_stamp_count=1
 
23729
for _am_header in $config_headers :; do
 
23730
  case $_am_header in
 
23731
    $_am_arg | $_am_arg:* )
 
23732
      break ;;
 
23733
    * )
 
23734
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
23735
  esac
 
23736
done
 
23737
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
23738
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23739
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
23740
         X"$_am_arg" : 'X\(//\)$' \| \
 
23741
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
23742
echo X"$_am_arg" |
 
23743
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23744
            s//\1/
 
23745
            q
 
23746
          }
 
23747
          /^X\(\/\/\)[^/].*/{
 
23748
            s//\1/
 
23749
            q
 
23750
          }
 
23751
          /^X\(\/\/\)$/{
 
23752
            s//\1/
 
23753
            q
 
23754
          }
 
23755
          /^X\(\/\).*/{
 
23756
            s//\1/
 
23757
            q
 
23758
          }
 
23759
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
23760
 ;;
 
23761
 
 
23762
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
23763
echo "$as_me: executing $ac_file commands" >&6;}
 
23764
 ;;
 
23765
  esac
 
23766
 
 
23767
 
 
23768
  case $ac_file$ac_mode in
 
23769
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
23770
  # Strip MF so we end up with the name of the file.
 
23771
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
23772
  # Check whether this is an Automake generated Makefile or not.
 
23773
  # We used to match only the files named `Makefile.in', but
 
23774
  # some people rename them; so instead we look at the file content.
 
23775
  # Grep'ing the first line is not enough: some people post-process
 
23776
  # each Makefile.in and add a new line on top of each file to say so.
 
23777
  # Grep'ing the whole file is not good either: AIX grep has a line
 
23778
  # limit of 2048, but all sed's we know have understand at least 4000.
 
23779
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
23780
    dirpart=`$as_dirname -- "$mf" ||
 
23781
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23782
         X"$mf" : 'X\(//\)[^/]' \| \
 
23783
         X"$mf" : 'X\(//\)$' \| \
 
23784
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
23785
echo X"$mf" |
 
23786
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23787
            s//\1/
 
23788
            q
 
23789
          }
 
23790
          /^X\(\/\/\)[^/].*/{
 
23791
            s//\1/
 
23792
            q
 
23793
          }
 
23794
          /^X\(\/\/\)$/{
 
23795
            s//\1/
 
23796
            q
 
23797
          }
 
23798
          /^X\(\/\).*/{
 
23799
            s//\1/
 
23800
            q
 
23801
          }
 
23802
          s/.*/./; q'`
 
23803
  else
 
23804
    continue
 
23805
  fi
 
23806
  # Extract the definition of DEPDIR, am__include, and am__quote
 
23807
  # from the Makefile without running `make'.
 
23808
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
23809
  test -z "$DEPDIR" && continue
 
23810
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
23811
  test -z "am__include" && continue
 
23812
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
23813
  # When using ansi2knr, U may be empty or an underscore; expand it
 
23814
  U=`sed -n 's/^U = //p' < "$mf"`
 
23815
  # Find all dependency output files, they are included files with
 
23816
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
23817
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
23818
  # expansion.
 
23819
  for file in `sed -n "
 
23820
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
23821
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
23822
    # Make sure the directory exists.
 
23823
    test -f "$dirpart/$file" && continue
 
23824
    fdir=`$as_dirname -- "$file" ||
 
23825
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23826
         X"$file" : 'X\(//\)[^/]' \| \
 
23827
         X"$file" : 'X\(//\)$' \| \
 
23828
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
23829
echo X"$file" |
 
23830
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23831
            s//\1/
 
23832
            q
 
23833
          }
 
23834
          /^X\(\/\/\)[^/].*/{
 
23835
            s//\1/
 
23836
            q
 
23837
          }
 
23838
          /^X\(\/\/\)$/{
 
23839
            s//\1/
 
23840
            q
 
23841
          }
 
23842
          /^X\(\/\).*/{
 
23843
            s//\1/
 
23844
            q
 
23845
          }
 
23846
          s/.*/./; q'`
 
23847
    { as_dir=$dirpart/$fdir
 
23848
  case $as_dir in #(
 
23849
  -*) as_dir=./$as_dir;;
 
23850
  esac
 
23851
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
23852
    as_dirs=
 
23853
    while :; do
 
23854
      case $as_dir in #(
 
23855
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
23856
      *) as_qdir=$as_dir;;
 
23857
      esac
 
23858
      as_dirs="'$as_qdir' $as_dirs"
 
23859
      as_dir=`$as_dirname -- "$as_dir" ||
 
23860
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23861
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23862
         X"$as_dir" : 'X\(//\)$' \| \
 
23863
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
23864
echo X"$as_dir" |
 
23865
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23866
            s//\1/
 
23867
            q
 
23868
          }
 
23869
          /^X\(\/\/\)[^/].*/{
 
23870
            s//\1/
 
23871
            q
 
23872
          }
 
23873
          /^X\(\/\/\)$/{
 
23874
            s//\1/
 
23875
            q
 
23876
          }
 
23877
          /^X\(\/\).*/{
 
23878
            s//\1/
 
23879
            q
 
23880
          }
 
23881
          s/.*/./; q'`
 
23882
      test -d "$as_dir" && break
 
23883
    done
 
23884
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
23885
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
23886
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
23887
   { (exit 1); exit 1; }; }; }
 
23888
    # echo "creating $dirpart/$file"
 
23889
    echo '# dummy' > "$dirpart/$file"
 
23890
  done
 
23891
done
 
23892
 ;;
 
23893
 
 
23894
  esac
 
23895
done # for ac_tag
 
23896
 
 
23897
 
 
23898
{ (exit 0); exit 0; }
 
23899
_ACEOF
 
23900
chmod +x $CONFIG_STATUS
 
23901
ac_clean_files=$ac_clean_files_save
 
23902
 
 
23903
 
 
23904
# configure is writing to config.log, and then calls config.status.
 
23905
# config.status does its own redirection, appending to config.log.
 
23906
# Unfortunately, on DOS this fails, as config.log is still kept open
 
23907
# by configure, so config.status won't be able to write to it; its
 
23908
# output is simply discarded.  So we exec the FD to /dev/null,
 
23909
# effectively closing config.log, so it can be properly (re)opened and
 
23910
# appended to by config.status.  When coming back to configure, we
 
23911
# need to make the FD available again.
 
23912
if test "$no_create" != yes; then
 
23913
  ac_cs_success=:
 
23914
  ac_config_status_args=
 
23915
  test "$silent" = yes &&
 
23916
    ac_config_status_args="$ac_config_status_args --quiet"
 
23917
  exec 5>/dev/null
 
23918
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
23919
  exec 5>>config.log
 
23920
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
23921
  # would make configure fail if this is the last instruction.
 
23922
  $ac_cs_success || { (exit 1); exit 1; }
 
23923
fi
 
23924
 
 
23925